mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
* removed daisy from config * removed tw-elements artefact * removed comments from tailwind config * removed safelist * migrated to tailwind4 and daisyui5 * deleted tailwind.config.js which is not eeded anymore * 3.0.79 * version number * fixed broken layouts * more fixing * more layout fixing * tested theming * small fixes * adapt snapshots to changes * package.json: add unit test update script * more ui refactoring & theme controller * ui improvements * package-lock.json * fix linting * fixed tabs * fix linting * fixed typing --------- Co-authored-by: mahula <lenzmath@posteo.de>
28 lines
598 B
TypeScript
28 lines
598 B
TypeScript
import type { Item } from '#types/Item'
|
|
|
|
/**
|
|
* @category Map
|
|
*/
|
|
export const PopupCheckboxInput = ({
|
|
dataField,
|
|
label,
|
|
item,
|
|
}: {
|
|
dataField: string
|
|
label: string
|
|
item?: Item
|
|
}) => {
|
|
return (
|
|
<label htmlFor={item?.id} className='tw:label tw:justify-normal tw:pt-1 tw:pb-1'>
|
|
<input
|
|
id={item?.id}
|
|
type='checkbox'
|
|
name={dataField}
|
|
className='tw:checkbox tw:checkbox-xs tw:checkbox-success'
|
|
checked={item?.public_edit}
|
|
/>
|
|
<span className='tw:text-sm tw:label-text tw:mx-2 tw:cursor-pointer'>{label}</span>
|
|
</label>
|
|
)
|
|
}
|