Anton Tranelis 9e6bcf1846
fix(source): update tailwind and daisyui (#196)
* 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>
2025-04-25 16:03:42 +02:00

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>
)
}