@finhay-pro/leaf-design-system 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +454 -182
- package/dist/accordion.css +142 -0
- package/dist/avatar.css +168 -0
- package/dist/badge.css +193 -0
- package/dist/breadcrumb.css +105 -0
- package/dist/button.css +221 -0
- package/dist/calendar.css +487 -0
- package/dist/carousel.css +159 -0
- package/dist/cdn/leaf-0.2.4.min.css +2 -0
- package/dist/cdn/leaf-0.2.4.min.js +177 -0
- package/dist/checkbox.css +140 -0
- package/dist/classes.css +7924 -0
- package/dist/color.css +260 -0
- package/dist/components/Accordion/Accordion.d.ts +43 -0
- package/dist/components/Accordion/Accordion.d.ts.map +1 -0
- package/dist/components/Accordion/Accordion.js +37 -0
- package/dist/components/Accordion/Accordion.js.map +1 -0
- package/dist/components/Accordion/index.d.ts +2 -0
- package/dist/components/Accordion/index.d.ts.map +1 -0
- package/dist/components/Accordion/index.js +2 -0
- package/dist/components/Accordion/index.js.map +1 -0
- package/dist/components/Avatar/Avatar.d.ts +32 -0
- package/dist/components/Avatar/Avatar.d.ts.map +1 -0
- package/dist/components/Avatar/Avatar.js +20 -0
- package/dist/components/Avatar/Avatar.js.map +1 -0
- package/dist/components/Avatar/index.d.ts +2 -0
- package/dist/components/Avatar/index.d.ts.map +1 -0
- package/dist/components/Avatar/index.js +2 -0
- package/dist/components/Avatar/index.js.map +1 -0
- package/dist/components/Badge/Badge.d.ts +44 -0
- package/dist/components/Badge/Badge.d.ts.map +1 -0
- package/dist/components/Badge/Badge.js +21 -0
- package/dist/components/Badge/Badge.js.map +1 -0
- package/dist/components/Badge/index.d.ts +2 -0
- package/dist/components/Badge/index.d.ts.map +1 -0
- package/dist/components/Badge/index.js +2 -0
- package/dist/components/Badge/index.js.map +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +33 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts.map +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.js +60 -0
- package/dist/components/Breadcrumb/Breadcrumb.js.map +1 -0
- package/dist/components/Breadcrumb/index.d.ts +2 -0
- package/dist/components/Breadcrumb/index.d.ts.map +1 -0
- package/dist/components/Breadcrumb/index.js +2 -0
- package/dist/components/Breadcrumb/index.js.map +1 -0
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Calendar/Calendar.js +1 -1
- package/dist/components/CalendarRange/CalendarRange.d.ts +41 -0
- package/dist/components/CalendarRange/CalendarRange.d.ts.map +1 -0
- package/dist/components/CalendarRange/CalendarRange.js +74 -0
- package/dist/components/CalendarRange/CalendarRange.js.map +1 -0
- package/dist/components/CalendarRange/index.d.ts +2 -0
- package/dist/components/CalendarRange/index.d.ts.map +1 -0
- package/dist/components/CalendarRange/index.js +2 -0
- package/dist/components/CalendarRange/index.js.map +1 -0
- package/dist/components/Carousel/Carousel.d.ts +23 -3
- package/dist/components/Carousel/Carousel.d.ts.map +1 -1
- package/dist/components/Carousel/Carousel.js +30 -8
- package/dist/components/Carousel/Carousel.js.map +1 -1
- package/dist/components/Date/Date.d.ts +1 -1
- package/dist/components/Date/Date.d.ts.map +1 -1
- package/dist/components/Date/Date.js +2 -2
- package/dist/components/Date/Date.js.map +1 -1
- package/dist/components/Dialog/Dialog.d.ts +29 -3
- package/dist/components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.js +40 -7
- package/dist/components/Dialog/Dialog.js.map +1 -1
- package/dist/components/Dialog/Drawer.d.ts +18 -0
- package/dist/components/Dialog/Drawer.d.ts.map +1 -0
- package/dist/components/Dialog/Drawer.js +12 -0
- package/dist/components/Dialog/Drawer.js.map +1 -0
- package/dist/components/Dialog/index.d.ts +2 -1
- package/dist/components/Dialog/index.d.ts.map +1 -1
- package/dist/components/Dialog/index.js +2 -1
- package/dist/components/Dialog/index.js.map +1 -1
- package/dist/components/Dropdown/Dropdown.d.ts +15 -1
- package/dist/components/Dropdown/Dropdown.d.ts.map +1 -1
- package/dist/components/Dropdown/Dropdown.js +106 -20
- package/dist/components/Dropdown/Dropdown.js.map +1 -1
- package/dist/components/FileViewer/FileViewer.d.ts +3 -1
- package/dist/components/FileViewer/FileViewer.d.ts.map +1 -1
- package/dist/components/FileViewer/FileViewer.js +2 -1
- package/dist/components/FileViewer/FileViewer.js.map +1 -1
- package/dist/components/Form/DynamicForm.js +1 -1
- package/dist/components/Form/Form.js +1 -1
- package/dist/components/Input/Input.d.ts.map +1 -1
- package/dist/components/Input/Input.js +3 -1
- package/dist/components/Input/Input.js.map +1 -1
- package/dist/components/Input/InputDate.d.ts +6 -1
- package/dist/components/Input/InputDate.d.ts.map +1 -1
- package/dist/components/Input/InputDate.js +36 -11
- package/dist/components/Input/InputDate.js.map +1 -1
- package/dist/components/Input/InputDateRange.d.ts +43 -0
- package/dist/components/Input/InputDateRange.d.ts.map +1 -0
- package/dist/components/Input/InputDateRange.js +86 -0
- package/dist/components/Input/InputDateRange.js.map +1 -0
- package/dist/components/Input/InputNumber.d.ts +28 -0
- package/dist/components/Input/InputNumber.d.ts.map +1 -0
- package/dist/components/Input/InputNumber.js +58 -0
- package/dist/components/Input/InputNumber.js.map +1 -0
- package/dist/components/Input/InputOtp.d.ts.map +1 -1
- package/dist/components/Input/InputOtp.js +2 -2
- package/dist/components/Input/InputOtp.js.map +1 -1
- package/dist/components/Input/InputStepper.d.ts +3 -1
- package/dist/components/Input/InputStepper.d.ts.map +1 -1
- package/dist/components/Input/InputStepper.js +32 -5
- package/dist/components/Input/InputStepper.js.map +1 -1
- package/dist/components/Input/index.d.ts +2 -0
- package/dist/components/Input/index.d.ts.map +1 -1
- package/dist/components/Input/index.js +2 -0
- package/dist/components/Input/index.js.map +1 -1
- package/dist/components/Menu/Menu.d.ts +69 -0
- package/dist/components/Menu/Menu.d.ts.map +1 -0
- package/dist/components/Menu/Menu.js +140 -0
- package/dist/components/Menu/Menu.js.map +1 -0
- package/dist/components/Menu/index.d.ts +2 -0
- package/dist/components/Menu/index.d.ts.map +1 -0
- package/dist/components/Menu/index.js +2 -0
- package/dist/components/Menu/index.js.map +1 -0
- package/dist/components/MultiSelect/MultiSelect.d.ts +6 -1
- package/dist/components/MultiSelect/MultiSelect.d.ts.map +1 -1
- package/dist/components/MultiSelect/MultiSelect.js +42 -23
- package/dist/components/MultiSelect/MultiSelect.js.map +1 -1
- package/dist/components/Number/Number.d.ts +4 -2
- package/dist/components/Number/Number.d.ts.map +1 -1
- package/dist/components/Number/Number.js +3 -1
- package/dist/components/Number/Number.js.map +1 -1
- package/dist/components/Pagination/Pagination.d.ts +35 -0
- package/dist/components/Pagination/Pagination.d.ts.map +1 -0
- package/dist/components/Pagination/Pagination.js +40 -0
- package/dist/components/Pagination/Pagination.js.map +1 -0
- package/dist/components/Pagination/index.d.ts +2 -0
- package/dist/components/Pagination/index.d.ts.map +1 -0
- package/dist/components/Pagination/index.js +2 -0
- package/dist/components/Pagination/index.js.map +1 -0
- package/dist/components/Popover/Popover.d.ts +51 -0
- package/dist/components/Popover/Popover.d.ts.map +1 -0
- package/dist/components/Popover/Popover.js +83 -0
- package/dist/components/Popover/Popover.js.map +1 -0
- package/dist/components/Popover/index.d.ts +2 -0
- package/dist/components/Popover/index.d.ts.map +1 -0
- package/dist/components/Popover/index.js +2 -0
- package/dist/components/Popover/index.js.map +1 -0
- package/dist/components/Progress/Progress.d.ts +30 -0
- package/dist/components/Progress/Progress.d.ts.map +1 -0
- package/dist/components/Progress/Progress.js +17 -0
- package/dist/components/Progress/Progress.js.map +1 -0
- package/dist/components/Progress/index.d.ts +2 -0
- package/dist/components/Progress/index.d.ts.map +1 -0
- package/dist/components/Progress/index.js +2 -0
- package/dist/components/Progress/index.js.map +1 -0
- package/dist/components/SafeHtml/SafeHtml.d.ts +326 -0
- package/dist/components/SafeHtml/SafeHtml.d.ts.map +1 -0
- package/dist/components/SafeHtml/SafeHtml.js +44 -0
- package/dist/components/SafeHtml/SafeHtml.js.map +1 -0
- package/dist/components/SafeHtml/index.d.ts +2 -0
- package/dist/components/SafeHtml/index.d.ts.map +1 -0
- package/dist/components/SafeHtml/index.js +2 -0
- package/dist/components/SafeHtml/index.js.map +1 -0
- package/dist/components/Sidebar/Sidebar.d.ts +50 -0
- package/dist/components/Sidebar/Sidebar.d.ts.map +1 -0
- package/dist/components/Sidebar/Sidebar.js +71 -0
- package/dist/components/Sidebar/Sidebar.js.map +1 -0
- package/dist/components/Sidebar/index.d.ts +2 -0
- package/dist/components/Sidebar/index.d.ts.map +1 -0
- package/dist/components/Sidebar/index.js +2 -0
- package/dist/components/Sidebar/index.js.map +1 -0
- package/dist/components/Slider/Slider.js +1 -4
- package/dist/components/Slider/Slider.js.map +1 -1
- package/dist/components/Spinner/Spinner.js +1 -1
- package/dist/components/Steps/Steps.d.ts +30 -0
- package/dist/components/Steps/Steps.d.ts.map +1 -0
- package/dist/components/Steps/Steps.js +26 -0
- package/dist/components/Steps/Steps.js.map +1 -0
- package/dist/components/Steps/index.d.ts +2 -0
- package/dist/components/Steps/index.d.ts.map +1 -0
- package/dist/components/Steps/index.js +2 -0
- package/dist/components/Steps/index.js.map +1 -0
- package/dist/components/Table/Table.d.ts +61 -3
- package/dist/components/Table/Table.d.ts.map +1 -1
- package/dist/components/Table/Table.js +176 -33
- package/dist/components/Table/Table.js.map +1 -1
- package/dist/components/Table/TableHeader.d.ts +8 -3
- package/dist/components/Table/TableHeader.d.ts.map +1 -1
- package/dist/components/Table/TableHeader.js +7 -5
- package/dist/components/Table/TableHeader.js.map +1 -1
- package/dist/components/Table/TableRow.d.ts +5 -1
- package/dist/components/Table/TableRow.d.ts.map +1 -1
- package/dist/components/Table/TableRow.js +2 -2
- package/dist/components/Table/TableRow.js.map +1 -1
- package/dist/components/Table/index.d.ts +1 -1
- package/dist/components/Table/index.d.ts.map +1 -1
- package/dist/components/Table/index.js +1 -1
- package/dist/components/Table/index.js.map +1 -1
- package/dist/components/Toast/Toast.d.ts +8 -4
- package/dist/components/Toast/Toast.d.ts.map +1 -1
- package/dist/components/Toast/Toast.js +15 -4
- package/dist/components/Toast/Toast.js.map +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.js +5 -2
- package/dist/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/components/VirtualList/VirtualList.d.ts +39 -0
- package/dist/components/VirtualList/VirtualList.d.ts.map +1 -0
- package/dist/components/VirtualList/VirtualList.js +113 -0
- package/dist/components/VirtualList/VirtualList.js.map +1 -0
- package/dist/components/VirtualList/index.d.ts +2 -0
- package/dist/components/VirtualList/index.d.ts.map +1 -0
- package/dist/components/VirtualList/index.js +2 -0
- package/dist/components/VirtualList/index.js.map +1 -0
- package/dist/core/accordion.d.ts +15 -0
- package/dist/core/accordion.d.ts.map +1 -0
- package/dist/core/accordion.js +37 -0
- package/dist/core/accordion.js.map +1 -0
- package/dist/core/avatar.d.ts +4 -0
- package/dist/core/avatar.d.ts.map +1 -0
- package/dist/core/avatar.js +12 -0
- package/dist/core/avatar.js.map +1 -0
- package/dist/core/calendar.d.ts +1 -2
- package/dist/core/calendar.d.ts.map +1 -1
- package/dist/core/calendar.js +2 -10
- package/dist/core/calendar.js.map +1 -1
- package/dist/core/carousel.d.ts +8 -0
- package/dist/core/carousel.d.ts.map +1 -1
- package/dist/core/carousel.js +27 -0
- package/dist/core/carousel.js.map +1 -1
- package/dist/core/date-math.d.ts +39 -0
- package/dist/core/date-math.d.ts.map +1 -0
- package/dist/core/date-math.js +82 -0
- package/dist/core/date-math.js.map +1 -0
- package/dist/core/date-range.d.ts +44 -0
- package/dist/core/date-range.d.ts.map +1 -0
- package/dist/core/date-range.js +88 -0
- package/dist/core/date-range.js.map +1 -0
- package/dist/core/date.d.ts +23 -4
- package/dist/core/date.d.ts.map +1 -1
- package/dist/core/date.js +114 -4
- package/dist/core/date.js.map +1 -1
- package/dist/core/dialog.d.ts +43 -5
- package/dist/core/dialog.d.ts.map +1 -1
- package/dist/core/dialog.js +85 -8
- package/dist/core/dialog.js.map +1 -1
- package/dist/core/file/csv.d.ts +10 -0
- package/dist/core/file/csv.d.ts.map +1 -1
- package/dist/core/file/csv.js +26 -3
- package/dist/core/file/csv.js.map +1 -1
- package/dist/core/file/detect.js.map +1 -1
- package/dist/core/file/docx-render.js.map +1 -1
- package/dist/core/file/docx.js.map +1 -1
- package/dist/core/file/dom.d.ts +1 -1
- package/dist/core/file/dom.d.ts.map +1 -1
- package/dist/core/file/dom.js +3 -3
- package/dist/core/file/dom.js.map +1 -1
- package/dist/core/file/download.d.ts +5 -0
- package/dist/core/file/download.d.ts.map +1 -1
- package/dist/core/file/download.js +10 -3
- package/dist/core/file/download.js.map +1 -1
- package/dist/core/file/error.d.ts.map +1 -1
- package/dist/core/file/error.js.map +1 -1
- package/dist/core/file/source.d.ts +15 -1
- package/dist/core/file/source.d.ts.map +1 -1
- package/dist/core/file/source.js +99 -6
- package/dist/core/file/source.js.map +1 -1
- package/dist/core/file/text.js.map +1 -1
- package/dist/core/file/viewer.d.ts +2 -0
- package/dist/core/file/viewer.d.ts.map +1 -1
- package/dist/core/file/viewer.js +3 -2
- package/dist/core/file/viewer.js.map +1 -1
- package/dist/core/file/xlsx-format.js.map +1 -1
- package/dist/core/file/xlsx-write.js.map +1 -1
- package/dist/core/file/xlsx.d.ts.map +1 -1
- package/dist/core/file/xlsx.js +4 -3
- package/dist/core/file/xlsx.js.map +1 -1
- package/dist/core/file/xml.d.ts.map +1 -1
- package/dist/core/file/xml.js +5 -0
- package/dist/core/file/xml.js.map +1 -1
- package/dist/core/file/zip-write.js.map +1 -1
- package/dist/core/file/zip.js.map +1 -1
- package/dist/core/floating.d.ts +69 -0
- package/dist/core/floating.d.ts.map +1 -0
- package/dist/core/floating.js +185 -0
- package/dist/core/floating.js.map +1 -0
- package/dist/core/html/css.d.ts +32 -0
- package/dist/core/html/css.d.ts.map +1 -0
- package/dist/core/html/css.js +222 -0
- package/dist/core/html/css.js.map +1 -0
- package/dist/core/html/entities.d.ts +19 -0
- package/dist/core/html/entities.d.ts.map +1 -0
- package/dist/core/html/entities.js +167 -0
- package/dist/core/html/entities.js.map +1 -0
- package/dist/core/html/entity-data.d.ts +14 -0
- package/dist/core/html/entity-data.d.ts.map +1 -0
- package/dist/core/html/entity-data.js +14 -0
- package/dist/core/html/entity-data.js.map +1 -0
- package/dist/core/html/props.d.ts +9 -0
- package/dist/core/html/props.d.ts.map +1 -0
- package/dist/core/html/props.js +98 -0
- package/dist/core/html/props.js.map +1 -0
- package/dist/core/html/sanitize.d.ts +150 -0
- package/dist/core/html/sanitize.d.ts.map +1 -0
- package/dist/core/html/sanitize.js +800 -0
- package/dist/core/html/sanitize.js.map +1 -0
- package/dist/core/html/tokenizer.d.ts +33 -0
- package/dist/core/html/tokenizer.d.ts.map +1 -0
- package/dist/core/html/tokenizer.js +306 -0
- package/dist/core/html/tokenizer.js.map +1 -0
- package/dist/core/html/tree.d.ts +35 -0
- package/dist/core/html/tree.d.ts.map +1 -0
- package/dist/core/html/tree.js +253 -0
- package/dist/core/html/tree.js.map +1 -0
- package/dist/core/icons.d.ts +8 -3
- package/dist/core/icons.d.ts.map +1 -1
- package/dist/core/icons.js +20 -5
- package/dist/core/icons.js.map +1 -1
- package/dist/core/language.d.ts.map +1 -1
- package/dist/core/menu.d.ts +22 -0
- package/dist/core/menu.d.ts.map +1 -0
- package/dist/core/menu.js +69 -0
- package/dist/core/menu.js.map +1 -0
- package/dist/core/motion.d.ts +12 -0
- package/dist/core/motion.d.ts.map +1 -0
- package/dist/core/motion.js +17 -0
- package/dist/core/motion.js.map +1 -0
- package/dist/core/number-input.d.ts +29 -0
- package/dist/core/number-input.d.ts.map +1 -0
- package/dist/core/number-input.js +92 -0
- package/dist/core/number-input.js.map +1 -0
- package/dist/core/number.d.ts +14 -0
- package/dist/core/number.d.ts.map +1 -1
- package/dist/core/number.js +48 -2
- package/dist/core/number.js.map +1 -1
- package/dist/core/otp.d.ts +2 -0
- package/dist/core/otp.d.ts.map +1 -1
- package/dist/core/otp.js +4 -0
- package/dist/core/otp.js.map +1 -1
- package/dist/core/pacer.d.ts +63 -0
- package/dist/core/pacer.d.ts.map +1 -0
- package/dist/core/pacer.js +129 -0
- package/dist/core/pacer.js.map +1 -0
- package/dist/core/pagination.d.ts +44 -0
- package/dist/core/pagination.d.ts.map +1 -0
- package/dist/core/pagination.js +78 -0
- package/dist/core/pagination.js.map +1 -0
- package/dist/core/popover.d.ts +6 -0
- package/dist/core/popover.d.ts.map +1 -0
- package/dist/core/popover.js +6 -0
- package/dist/core/popover.js.map +1 -0
- package/dist/core/progress.d.ts +3 -0
- package/dist/core/progress.d.ts.map +1 -0
- package/dist/core/progress.js +8 -0
- package/dist/core/progress.js.map +1 -0
- package/dist/core/qr-code.d.ts +7 -0
- package/dist/core/qr-code.d.ts.map +1 -1
- package/dist/core/qr-code.js +15 -9
- package/dist/core/qr-code.js.map +1 -1
- package/dist/core/roving.d.ts +19 -0
- package/dist/core/roving.d.ts.map +1 -0
- package/dist/core/roving.js +54 -0
- package/dist/core/roving.js.map +1 -0
- package/dist/core/safe-url.d.ts +37 -0
- package/dist/core/safe-url.d.ts.map +1 -0
- package/dist/core/safe-url.js +68 -0
- package/dist/core/safe-url.js.map +1 -0
- package/dist/core/sheet.d.ts +19 -0
- package/dist/core/sheet.d.ts.map +1 -0
- package/dist/core/sheet.js +54 -0
- package/dist/core/sheet.js.map +1 -0
- package/dist/core/spinner.d.ts +2 -2
- package/dist/core/spinner.d.ts.map +1 -1
- package/dist/core/spinner.js +22 -4
- package/dist/core/spinner.js.map +1 -1
- package/dist/core/status.d.ts +20 -0
- package/dist/core/status.d.ts.map +1 -0
- package/dist/core/status.js +30 -0
- package/dist/core/status.js.map +1 -0
- package/dist/core/stepper.js.map +1 -1
- package/dist/core/table/attrs.d.ts +8 -2
- package/dist/core/table/attrs.d.ts.map +1 -1
- package/dist/core/table/attrs.js +12 -3
- package/dist/core/table/attrs.js.map +1 -1
- package/dist/core/table/columns.d.ts +12 -0
- package/dist/core/table/columns.d.ts.map +1 -1
- package/dist/core/table/columns.js.map +1 -1
- package/dist/core/table/features.d.ts +72 -0
- package/dist/core/table/features.d.ts.map +1 -0
- package/dist/core/table/features.js +198 -0
- package/dist/core/table/features.js.map +1 -0
- package/dist/core/table/index.d.ts +2 -0
- package/dist/core/table/index.d.ts.map +1 -1
- package/dist/core/table/index.js +2 -0
- package/dist/core/table/index.js.map +1 -1
- package/dist/core/table/reorder.d.ts +21 -0
- package/dist/core/table/reorder.d.ts.map +1 -0
- package/dist/core/table/reorder.js +70 -0
- package/dist/core/table/reorder.js.map +1 -0
- package/dist/core/table/virtual.d.ts +5 -18
- package/dist/core/table/virtual.d.ts.map +1 -1
- package/dist/core/table/virtual.js +4 -15
- package/dist/core/table/virtual.js.map +1 -1
- package/dist/core/tabs.d.ts.map +1 -1
- package/dist/core/tabs.js +2 -15
- package/dist/core/tabs.js.map +1 -1
- package/dist/core/toast.d.ts +15 -3
- package/dist/core/toast.d.ts.map +1 -1
- package/dist/core/toast.js +9 -6
- package/dist/core/toast.js.map +1 -1
- package/dist/core/tooltip.d.ts +8 -7
- package/dist/core/tooltip.d.ts.map +1 -1
- package/dist/core/tooltip.js +14 -119
- package/dist/core/tooltip.js.map +1 -1
- package/dist/core/upload.d.ts +1 -0
- package/dist/core/upload.d.ts.map +1 -1
- package/dist/core/upload.js +6 -0
- package/dist/core/upload.js.map +1 -1
- package/dist/core/virtual.d.ts +76 -0
- package/dist/core/virtual.d.ts.map +1 -0
- package/dist/core/virtual.js +214 -0
- package/dist/core/virtual.js.map +1 -0
- package/dist/date.css +19 -0
- package/dist/dialog.css +408 -0
- package/dist/dropdown.css +514 -0
- package/dist/empty.css +82 -0
- package/dist/file-viewer.css +519 -0
- package/dist/fn/async.d.ts +39 -0
- package/dist/fn/async.d.ts.map +1 -0
- package/dist/fn/async.js +91 -0
- package/dist/fn/async.js.map +1 -0
- package/dist/fn/clipboard.d.ts +6 -0
- package/dist/fn/clipboard.d.ts.map +1 -0
- package/dist/fn/clipboard.js +35 -0
- package/dist/fn/clipboard.js.map +1 -0
- package/dist/fn/cookie.d.ts +7 -0
- package/dist/fn/cookie.d.ts.map +1 -0
- package/dist/fn/cookie.js +22 -0
- package/dist/fn/cookie.js.map +1 -0
- package/dist/fn/error.d.ts +24 -0
- package/dist/fn/error.d.ts.map +1 -0
- package/dist/fn/error.js +50 -0
- package/dist/fn/error.js.map +1 -0
- package/dist/fn/html.d.ts +34 -0
- package/dist/fn/html.d.ts.map +1 -0
- package/dist/fn/html.js +60 -0
- package/dist/fn/html.js.map +1 -0
- package/dist/fn/index.d.ts +39 -0
- package/dist/fn/index.d.ts.map +1 -0
- package/dist/fn/index.js +40 -0
- package/dist/fn/index.js.map +1 -0
- package/dist/fn/jwt.d.ts +12 -0
- package/dist/fn/jwt.d.ts.map +1 -0
- package/dist/fn/jwt.js +42 -0
- package/dist/fn/jwt.js.map +1 -0
- package/dist/fn/locale.d.ts +20 -0
- package/dist/fn/locale.d.ts.map +1 -0
- package/dist/fn/locale.js +33 -0
- package/dist/fn/locale.js.map +1 -0
- package/dist/fn/query.d.ts +11 -0
- package/dist/fn/query.d.ts.map +1 -0
- package/dist/fn/query.js +41 -0
- package/dist/fn/query.js.map +1 -0
- package/dist/fn/sanitize.d.ts +15 -0
- package/dist/fn/sanitize.d.ts.map +1 -0
- package/dist/fn/sanitize.js +15 -0
- package/dist/fn/sanitize.js.map +1 -0
- package/dist/fn/storage.d.ts +13 -0
- package/dist/fn/storage.d.ts.map +1 -0
- package/dist/fn/storage.js +69 -0
- package/dist/fn/storage.js.map +1 -0
- package/dist/fn/string.d.ts +13 -0
- package/dist/fn/string.d.ts.map +1 -0
- package/dist/fn/string.js +30 -0
- package/dist/fn/string.js.map +1 -0
- package/dist/fn/url.d.ts +27 -0
- package/dist/fn/url.d.ts.map +1 -0
- package/dist/fn/url.js +71 -0
- package/dist/fn/url.js.map +1 -0
- package/dist/fn/version.d.ts +5 -0
- package/dist/fn/version.d.ts.map +1 -0
- package/dist/fn/version.js +23 -0
- package/dist/fn/version.js.map +1 -0
- package/dist/focus.css +18 -0
- package/dist/form.css +64 -0
- package/dist/hooks/index.d.ts +43 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +43 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/useAsync.d.ts +17 -0
- package/dist/hooks/useAsync.d.ts.map +1 -0
- package/dist/hooks/useAsync.js +38 -0
- package/dist/hooks/useAsync.js.map +1 -0
- package/dist/hooks/useAsyncCallback.d.ts +26 -0
- package/dist/hooks/useAsyncCallback.d.ts.map +1 -0
- package/dist/hooks/useAsyncCallback.js +57 -0
- package/dist/hooks/useAsyncCallback.js.map +1 -0
- package/dist/hooks/useBatcher.d.ts +11 -0
- package/dist/hooks/useBatcher.d.ts.map +1 -0
- package/dist/hooks/useBatcher.js +16 -0
- package/dist/hooks/useBatcher.js.map +1 -0
- package/dist/hooks/useClickOutside.d.ts +12 -0
- package/dist/hooks/useClickOutside.d.ts.map +1 -0
- package/dist/hooks/useClickOutside.js +29 -0
- package/dist/hooks/useClickOutside.js.map +1 -0
- package/dist/hooks/useControllableState.d.ts +2 -0
- package/dist/hooks/useControllableState.d.ts.map +1 -0
- package/dist/hooks/useControllableState.js +3 -0
- package/dist/hooks/useControllableState.js.map +1 -0
- package/dist/hooks/useCopyToClipboard.d.ts +9 -0
- package/dist/hooks/useCopyToClipboard.d.ts.map +1 -0
- package/dist/hooks/useCopyToClipboard.js +23 -0
- package/dist/hooks/useCopyToClipboard.js.map +1 -0
- package/dist/hooks/useCountdown.d.ts +24 -0
- package/dist/hooks/useCountdown.d.ts.map +1 -0
- package/dist/hooks/useCountdown.js +59 -0
- package/dist/hooks/useCountdown.js.map +1 -0
- package/dist/hooks/useDebouncedCallback.d.ts +7 -0
- package/dist/hooks/useDebouncedCallback.d.ts.map +1 -0
- package/dist/hooks/useDebouncedCallback.js +15 -0
- package/dist/hooks/useDebouncedCallback.js.map +1 -0
- package/dist/hooks/useDebouncedValue.d.ts +4 -0
- package/dist/hooks/useDebouncedValue.d.ts.map +1 -0
- package/dist/hooks/useDebouncedValue.js +19 -0
- package/dist/hooks/useDebouncedValue.js.map +1 -0
- package/dist/hooks/useDisclosure.d.ts +21 -0
- package/dist/hooks/useDisclosure.d.ts.map +1 -0
- package/dist/hooks/useDisclosure.js +20 -0
- package/dist/hooks/useDisclosure.js.map +1 -0
- package/dist/hooks/useDocumentTitle.d.ts +8 -0
- package/dist/hooks/useDocumentTitle.d.ts.map +1 -0
- package/dist/hooks/useDocumentTitle.js +18 -0
- package/dist/hooks/useDocumentTitle.js.map +1 -0
- package/dist/hooks/useElementSize.d.ts +13 -0
- package/dist/hooks/useElementSize.d.ts.map +1 -0
- package/dist/hooks/useElementSize.js +28 -0
- package/dist/hooks/useElementSize.js.map +1 -0
- package/dist/hooks/useEventListener.d.ts +10 -0
- package/dist/hooks/useEventListener.d.ts.map +1 -0
- package/dist/hooks/useEventListener.js +30 -0
- package/dist/hooks/useEventListener.js.map +1 -0
- package/dist/hooks/useHotkeys.d.ts +24 -0
- package/dist/hooks/useHotkeys.d.ts.map +1 -0
- package/dist/hooks/useHotkeys.js +69 -0
- package/dist/hooks/useHotkeys.js.map +1 -0
- package/dist/hooks/useIdle.d.ts +16 -0
- package/dist/hooks/useIdle.d.ts.map +1 -0
- package/dist/hooks/useIdle.js +63 -0
- package/dist/hooks/useIdle.js.map +1 -0
- package/dist/hooks/useInView.d.ts +13 -0
- package/dist/hooks/useInView.d.ts.map +1 -0
- package/dist/hooks/useInView.js +32 -0
- package/dist/hooks/useInView.js.map +1 -0
- package/dist/hooks/useInfiniteScroll.d.ts +20 -0
- package/dist/hooks/useInfiniteScroll.d.ts.map +1 -0
- package/dist/hooks/useInfiniteScroll.js +38 -0
- package/dist/hooks/useInfiniteScroll.js.map +1 -0
- package/dist/hooks/useInterval.d.ts +3 -0
- package/dist/hooks/useInterval.d.ts.map +1 -0
- package/dist/hooks/useInterval.js +15 -0
- package/dist/hooks/useInterval.js.map +1 -0
- package/dist/hooks/useIsClient.d.ts +6 -0
- package/dist/hooks/useIsClient.d.ts.map +1 -0
- package/dist/hooks/useIsClient.js +11 -0
- package/dist/hooks/useIsClient.js.map +1 -0
- package/dist/hooks/useLatest.d.ts +7 -0
- package/dist/hooks/useLatest.d.ts.map +1 -0
- package/dist/hooks/useLatest.js +14 -0
- package/dist/hooks/useLatest.js.map +1 -0
- package/dist/hooks/useMediaQuery.d.ts +6 -0
- package/dist/hooks/useMediaQuery.d.ts.map +1 -0
- package/dist/hooks/useMediaQuery.js +20 -0
- package/dist/hooks/useMediaQuery.js.map +1 -0
- package/dist/hooks/useMergedRefs.d.ts +6 -0
- package/dist/hooks/useMergedRefs.d.ts.map +1 -0
- package/dist/hooks/useMergedRefs.js +9 -0
- package/dist/hooks/useMergedRefs.js.map +1 -0
- package/dist/hooks/useObjectUrl.d.ts +7 -0
- package/dist/hooks/useObjectUrl.d.ts.map +1 -0
- package/dist/hooks/useObjectUrl.js +21 -0
- package/dist/hooks/useObjectUrl.js.map +1 -0
- package/dist/hooks/useOnlineStatus.d.ts +3 -0
- package/dist/hooks/useOnlineStatus.d.ts.map +1 -0
- package/dist/hooks/useOnlineStatus.js +15 -0
- package/dist/hooks/useOnlineStatus.js.map +1 -0
- package/dist/hooks/usePageVisibility.d.ts +3 -0
- package/dist/hooks/usePageVisibility.d.ts.map +1 -0
- package/dist/hooks/usePageVisibility.js +11 -0
- package/dist/hooks/usePageVisibility.js.map +1 -0
- package/dist/hooks/usePolling.d.ts +17 -0
- package/dist/hooks/usePolling.d.ts.map +1 -0
- package/dist/hooks/usePolling.js +46 -0
- package/dist/hooks/usePolling.js.map +1 -0
- package/dist/hooks/usePrefersReducedMotion.d.ts +3 -0
- package/dist/hooks/usePrefersReducedMotion.d.ts.map +1 -0
- package/dist/hooks/usePrefersReducedMotion.js +7 -0
- package/dist/hooks/usePrefersReducedMotion.js.map +1 -0
- package/dist/hooks/usePresence.d.ts +2 -0
- package/dist/hooks/usePresence.d.ts.map +1 -0
- package/dist/hooks/usePresence.js +3 -0
- package/dist/hooks/usePresence.js.map +1 -0
- package/dist/hooks/usePrevious.d.ts +3 -0
- package/dist/hooks/usePrevious.d.ts.map +1 -0
- package/dist/hooks/usePrevious.js +15 -0
- package/dist/hooks/usePrevious.js.map +1 -0
- package/dist/hooks/useScroll.d.ts +22 -0
- package/dist/hooks/useScroll.d.ts.map +1 -0
- package/dist/hooks/useScroll.js +73 -0
- package/dist/hooks/useScroll.js.map +1 -0
- package/dist/hooks/useScrollLock.d.ts +6 -0
- package/dist/hooks/useScrollLock.d.ts.map +1 -0
- package/dist/hooks/useScrollLock.js +17 -0
- package/dist/hooks/useScrollLock.js.map +1 -0
- package/dist/hooks/useStorageState.d.ts +14 -0
- package/dist/hooks/useStorageState.d.ts.map +1 -0
- package/dist/hooks/useStorageState.js +62 -0
- package/dist/hooks/useStorageState.js.map +1 -0
- package/dist/hooks/useSyncedState.d.ts +6 -0
- package/dist/hooks/useSyncedState.d.ts.map +1 -0
- package/dist/hooks/useSyncedState.js +16 -0
- package/dist/hooks/useSyncedState.js.map +1 -0
- package/dist/hooks/useThrottledCallback.d.ts +4 -0
- package/dist/hooks/useThrottledCallback.d.ts.map +1 -0
- package/dist/hooks/useThrottledCallback.js +12 -0
- package/dist/hooks/useThrottledCallback.js.map +1 -0
- package/dist/hooks/useThrottledValue.d.ts +4 -0
- package/dist/hooks/useThrottledValue.d.ts.map +1 -0
- package/dist/hooks/useThrottledValue.js +19 -0
- package/dist/hooks/useThrottledValue.js.map +1 -0
- package/dist/hooks/useTimeout.d.ts +9 -0
- package/dist/hooks/useTimeout.d.ts.map +1 -0
- package/dist/hooks/useTimeout.js +23 -0
- package/dist/hooks/useTimeout.js.map +1 -0
- package/dist/hooks/useWindowSize.d.ts +12 -0
- package/dist/hooks/useWindowSize.d.ts.map +1 -0
- package/dist/hooks/useWindowSize.js +38 -0
- package/dist/hooks/useWindowSize.js.map +1 -0
- package/dist/index.d.ts +26 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +26 -6
- package/dist/index.js.map +1 -1
- package/dist/input-date.css +99 -0
- package/dist/input-otp.css +76 -0
- package/dist/input-stepper.css +179 -0
- package/dist/input.css +231 -0
- package/dist/logo-assets.css +81 -0
- package/dist/logo.css +59 -0
- package/dist/menu.css +198 -0
- package/dist/multiselect.css +147 -0
- package/dist/number.css +53 -0
- package/dist/pagination.css +140 -0
- package/dist/popover.css +106 -0
- package/dist/progress.css +187 -0
- package/dist/qr-code.css +28 -0
- package/dist/radio.css +124 -0
- package/dist/server/crypto.d.ts +26 -0
- package/dist/server/crypto.d.ts.map +1 -0
- package/dist/server/crypto.js +50 -0
- package/dist/server/crypto.js.map +1 -0
- package/dist/server/index.d.ts +9 -0
- package/dist/server/index.d.ts.map +1 -0
- package/dist/server/index.js +9 -0
- package/dist/server/index.js.map +1 -0
- package/dist/server/rate-limit.d.ts +20 -0
- package/dist/server/rate-limit.d.ts.map +1 -0
- package/dist/server/rate-limit.js +42 -0
- package/dist/server/rate-limit.js.map +1 -0
- package/dist/server/request.d.ts +42 -0
- package/dist/server/request.d.ts.map +1 -0
- package/dist/server/request.js +94 -0
- package/dist/server/request.js.map +1 -0
- package/dist/server/response.d.ts +19 -0
- package/dist/server/response.d.ts.map +1 -0
- package/dist/server/response.js +44 -0
- package/dist/server/response.js.map +1 -0
- package/dist/sidebar.css +271 -0
- package/dist/skeleton.css +57 -0
- package/dist/skill/leaf-design-system-0.2.4.zip +0 -0
- package/dist/slider.css +312 -0
- package/dist/spinner.css +132 -0
- package/dist/steps.css +211 -0
- package/dist/{leaf.css → styles.css} +4665 -2198
- package/dist/table.css +421 -0
- package/dist/tabs.css +260 -0
- package/dist/textarea.css +28 -0
- package/dist/toast.css +272 -0
- package/dist/toggle.css +123 -0
- package/dist/tokens.css +264 -0
- package/dist/tooltip.css +259 -0
- package/dist/typography.css +150 -0
- package/dist/upload.css +326 -0
- package/dist/utils/RemixGlyph.d.ts +1 -1
- package/dist/utils/RemixGlyph.d.ts.map +1 -1
- package/dist/utils/RemixGlyph.js +1 -1
- package/dist/utils/RemixGlyph.js.map +1 -1
- package/dist/utils/useFloating.d.ts +11 -0
- package/dist/utils/useFloating.d.ts.map +1 -0
- package/dist/utils/useFloating.js +34 -0
- package/dist/utils/useFloating.js.map +1 -0
- package/dist/utils/useFloatingLayer.d.ts +40 -0
- package/dist/utils/useFloatingLayer.d.ts.map +1 -0
- package/dist/utils/useFloatingLayer.js +95 -0
- package/dist/utils/useFloatingLayer.js.map +1 -0
- package/dist/utils/usePresence.d.ts +9 -0
- package/dist/utils/usePresence.d.ts.map +1 -0
- package/dist/utils/usePresence.js +25 -0
- package/dist/utils/usePresence.js.map +1 -0
- package/dist/virtual-list.css +60 -0
- package/package.json +82 -21
- package/dist/cdn/leaf-0.2.3.min.css +0 -8
- package/dist/cdn/leaf-0.2.3.min.js +0 -204
- package/dist/engine/assets.json +0 -1
- package/dist/engine/chunk-X2H56OKG.js +0 -4854
- package/dist/engine/cli.js +0 -8
- package/dist/engine/postcss.d.ts +0 -3
- package/dist/engine/postcss.js +0 -7
- package/dist/engine/vite.d.ts +0 -3
- package/dist/engine/vite.js +0 -7
- package/dist/skill/leaf-design-system-0.2.3.zip +0 -0
package/dist/button.css
ADDED
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
/* @finhay-pro/leaf-design-system — generated by scripts/build-css.mjs. Do not edit. */
|
|
2
|
+
@layer theme, base, components, utilities;
|
|
3
|
+
|
|
4
|
+
/* --- src/components/Button/button.css --- */
|
|
5
|
+
|
|
6
|
+
/*
|
|
7
|
+
* Button — Figma 246:1135.
|
|
8
|
+
*
|
|
9
|
+
* Variant màu qua data-priority / data-status; size qua data-size; icon-only
|
|
10
|
+
* qua data-icon-only. Disabled dùng attribute native `:disabled` (và
|
|
11
|
+
* `aria-disabled`) nên không cần class riêng.
|
|
12
|
+
*
|
|
13
|
+
* Width / height override qua --leaf-button-width / --leaf-button-height
|
|
14
|
+
* (React gắn bằng prop; HTML tĩnh set style hoặc để mặc định theo size).
|
|
15
|
+
*
|
|
16
|
+
* Toàn bộ hình thức (kể cả typography của label) nằm ở đây — React chỉ gắn
|
|
17
|
+
* attribute, nên HTML tĩnh viết cùng markup là ra cùng kết quả. Thiếu attribute
|
|
18
|
+
* nào thì lấy mặc định giống prop của React: lg · primary · normal.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
@layer components {
|
|
22
|
+
.leaf-button {
|
|
23
|
+
/* Mặc định: size lg — Figma Large: h 56 · px XL · py S · gap L · icon 30 */
|
|
24
|
+
/* --leaf-button-width chỉ set khi prop width; không set → auto / icon-only = height */
|
|
25
|
+
--leaf-button-height: 56px;
|
|
26
|
+
--leaf-button-padding: 8px 24px;
|
|
27
|
+
--leaf-button-icon-only-padding: 8px;
|
|
28
|
+
--leaf-button-gap: 16px;
|
|
29
|
+
--leaf-button-icon-size: 30px;
|
|
30
|
+
--leaf-button-font-size: var(--body-1-size);
|
|
31
|
+
--leaf-button-line-height: var(--body-1-line-height);
|
|
32
|
+
--leaf-button-font-weight: var(--body-1-highlight-weight);
|
|
33
|
+
--leaf-button-letter-spacing: 0.5px;
|
|
34
|
+
|
|
35
|
+
/* Mặc định: priority primary, status normal */
|
|
36
|
+
--leaf-button-bg: var(--button-base-primary);
|
|
37
|
+
--leaf-button-fg: var(--button-content-primary);
|
|
38
|
+
|
|
39
|
+
display: inline-flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
justify-content: center;
|
|
42
|
+
box-sizing: border-box;
|
|
43
|
+
width: var(--leaf-button-width, auto);
|
|
44
|
+
height: var(--leaf-button-height);
|
|
45
|
+
gap: var(--leaf-button-gap);
|
|
46
|
+
border: none;
|
|
47
|
+
margin: 0;
|
|
48
|
+
padding: var(--leaf-button-padding);
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
border-radius: 1000px;
|
|
51
|
+
background-color: var(--leaf-button-bg);
|
|
52
|
+
color: var(--leaf-button-fg);
|
|
53
|
+
font: inherit;
|
|
54
|
+
font-family: var(--font-sans);
|
|
55
|
+
font-size: var(--leaf-button-font-size);
|
|
56
|
+
line-height: var(--leaf-button-line-height);
|
|
57
|
+
font-weight: var(--leaf-button-font-weight);
|
|
58
|
+
letter-spacing: var(--leaf-button-letter-spacing);
|
|
59
|
+
text-align: center;
|
|
60
|
+
white-space: nowrap;
|
|
61
|
+
vertical-align: middle;
|
|
62
|
+
text-decoration: none;
|
|
63
|
+
appearance: none;
|
|
64
|
+
outline: none;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* Chỉ báo focus bàn phím (WCAG 2.4.7) — :focus-visible nên click chuột không hiện ring. */
|
|
68
|
+
.leaf-button:focus-visible {
|
|
69
|
+
outline: 2px solid var(--text-highlight);
|
|
70
|
+
outline-offset: 2px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.leaf-button__icon {
|
|
74
|
+
display: inline-flex;
|
|
75
|
+
flex-shrink: 0;
|
|
76
|
+
align-items: center;
|
|
77
|
+
justify-content: center;
|
|
78
|
+
width: var(--leaf-button-icon-size);
|
|
79
|
+
height: var(--leaf-button-icon-size);
|
|
80
|
+
font-size: var(--leaf-button-icon-size);
|
|
81
|
+
line-height: 1;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.leaf-button__icon > svg {
|
|
85
|
+
display: block;
|
|
86
|
+
width: 1em;
|
|
87
|
+
height: 1em;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* `hidden` luôn ẩn — rule trên set display; selector `[hidden]` specificity cao hơn nên thắng. */
|
|
91
|
+
.leaf-button[hidden],
|
|
92
|
+
.leaf-button__icon[hidden] {
|
|
93
|
+
display: none;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* ── Size — Figma Medium/Small dùng padding (không ép height trong auto-layout);
|
|
97
|
+
* vẫn set height mặc định khớp frame để icon-only / căn hàng ổn định.
|
|
98
|
+
* Truyền height="auto" (prop) → chiều cao theo padding + nội dung. */
|
|
99
|
+
|
|
100
|
+
.leaf-button[data-size="md"] {
|
|
101
|
+
/* Medium: px L · py S · gap M · icon 24 · frame 40 */
|
|
102
|
+
--leaf-button-height: 40px;
|
|
103
|
+
--leaf-button-padding: 8px 16px;
|
|
104
|
+
--leaf-button-gap: 12px;
|
|
105
|
+
--leaf-button-icon-size: 24px;
|
|
106
|
+
--leaf-button-font-size: var(--body-3-size);
|
|
107
|
+
--leaf-button-line-height: var(--body-3-line-height);
|
|
108
|
+
--leaf-button-font-weight: var(--body-3-highlight-weight);
|
|
109
|
+
--leaf-button-letter-spacing: 0;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.leaf-button[data-size="sm"] {
|
|
113
|
+
/* Small: px M · py XS · gap S · icon 20 · frame 28 */
|
|
114
|
+
--leaf-button-height: 28px;
|
|
115
|
+
--leaf-button-padding: 4px 12px;
|
|
116
|
+
--leaf-button-icon-only-padding: 4px;
|
|
117
|
+
--leaf-button-gap: 8px;
|
|
118
|
+
--leaf-button-icon-size: 20px;
|
|
119
|
+
--leaf-button-font-size: var(--body-4-size);
|
|
120
|
+
--leaf-button-line-height: var(--body-4-line-height);
|
|
121
|
+
--leaf-button-font-weight: var(--body-4-highlight-weight);
|
|
122
|
+
--leaf-button-letter-spacing: 0;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/* Icon-only: khung vuông (tròn nhờ border-radius). Width custom vẫn được tôn trọng. */
|
|
126
|
+
.leaf-button[data-icon-only="true"] {
|
|
127
|
+
width: var(--leaf-button-width, var(--leaf-button-height));
|
|
128
|
+
padding: var(--leaf-button-icon-only-padding);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/* Ghost text — không khung; icon-only ghost vẫn giữ hit-area theo size. */
|
|
132
|
+
.leaf-button[data-priority="ghost"]:not([data-icon-only="true"]) {
|
|
133
|
+
--leaf-button-height: auto;
|
|
134
|
+
--leaf-button-padding: 0;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.leaf-button[data-priority="ghost"][data-icon-only="true"] {
|
|
138
|
+
--leaf-button-bg: transparent;
|
|
139
|
+
--leaf-button-padding: 0;
|
|
140
|
+
--leaf-button-icon-only-padding: 0;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/* ── Priority × status ───────────────────────────────────────────────── */
|
|
144
|
+
|
|
145
|
+
.leaf-button[data-status="destruction"] {
|
|
146
|
+
--leaf-button-bg: var(--button-base-destruction);
|
|
147
|
+
--leaf-button-fg: var(--button-content-primary);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.leaf-button[data-priority="secondary"] {
|
|
151
|
+
--leaf-button-bg: var(--button-base-secondary);
|
|
152
|
+
--leaf-button-fg: var(--button-content-secondary);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.leaf-button[data-priority="secondary"][data-status="destruction"] {
|
|
156
|
+
--leaf-button-bg: var(--button-base-secondary-destruction);
|
|
157
|
+
--leaf-button-fg: var(--button-content-destruction);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.leaf-button[data-priority="tertiary"] {
|
|
161
|
+
--leaf-button-bg: var(--button-base-tertiary);
|
|
162
|
+
--leaf-button-fg: var(--button-content-secondary);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.leaf-button[data-priority="tertiary"][data-status="destruction"] {
|
|
166
|
+
--leaf-button-bg: var(--button-base-tertiary);
|
|
167
|
+
--leaf-button-fg: var(--button-content-destruction);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.leaf-button[data-priority="ghost"] {
|
|
171
|
+
--leaf-button-bg: transparent;
|
|
172
|
+
--leaf-button-fg: var(--button-content-secondary);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.leaf-button[data-priority="ghost"][data-status="destruction"] {
|
|
176
|
+
--leaf-button-bg: transparent;
|
|
177
|
+
--leaf-button-fg: var(--button-content-destruction);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/*
|
|
181
|
+
* Disabled — token --button-disabled-* (alias của --button-*-disable).
|
|
182
|
+
* Specificity (0,3,0) và đứng cuối để thắng mọi tổ hợp priority × status.
|
|
183
|
+
*/
|
|
184
|
+
.leaf-button:disabled:not([data-priority="ghost"]),
|
|
185
|
+
.leaf-button[aria-disabled="true"]:not([data-priority="ghost"]) {
|
|
186
|
+
--leaf-button-bg: var(--button-disabled-base);
|
|
187
|
+
--leaf-button-fg: var(--button-disabled-content);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.leaf-button[data-priority="ghost"]:disabled,
|
|
191
|
+
.leaf-button[data-priority="ghost"][aria-disabled="true"] {
|
|
192
|
+
--leaf-button-bg: transparent;
|
|
193
|
+
--leaf-button-fg: var(--button-disabled-content);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.leaf-button:disabled,
|
|
197
|
+
.leaf-button[aria-disabled="true"] {
|
|
198
|
+
cursor: not-allowed;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/*
|
|
202
|
+
* Loading — `data-loading="true"` (React: `loading` / onClick trả Promise; HTML tĩnh:
|
|
203
|
+
* `Leaf.button.setLoading`). Spinner thay leading icon, ăn --leaf-button-icon-size và
|
|
204
|
+
* màu chữ. Nút gắn `aria-disabled="true"` (không dùng `:disabled` để vẫn giữ focus) nên
|
|
205
|
+
* mang màu disabled như rule ở trên — có chủ đích: đang xử lý = tạm khoá.
|
|
206
|
+
*/
|
|
207
|
+
.leaf-button[data-loading="true"] {
|
|
208
|
+
cursor: progress;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.leaf-button__spinner > svg {
|
|
212
|
+
animation: leaf-spinner-spin var(--leaf-spinner-duration, 1.2s) linear infinite;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/* Trùng tên với spinner.css để button.css tự đủ khi import riêng. */
|
|
217
|
+
@keyframes leaf-spinner-spin {
|
|
218
|
+
to {
|
|
219
|
+
transform: rotate(360deg);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
@@ -0,0 +1,487 @@
|
|
|
1
|
+
/* @finhay-pro/leaf-design-system — generated by scripts/build-css.mjs. Do not edit. */
|
|
2
|
+
@layer theme, base, components, utilities;
|
|
3
|
+
|
|
4
|
+
/* --- src/components/Calendar/calendar.css --- */
|
|
5
|
+
|
|
6
|
+
/*
|
|
7
|
+
* Calendar — port từ vnsc Calendar (panel chọn ngày / giờ / tháng).
|
|
8
|
+
*
|
|
9
|
+
* Typography và màu tĩnh (nền, màu viền) là class Leaf trên markup. File này giữ khung
|
|
10
|
+
* (padding, radius, độ dày viền), layout, size cố định (panel 256, ô 28, ô tháng 40, select 64),
|
|
11
|
+
* hover, trạng thái ngày / tháng (data-selected / data-today / :disabled), vị trí dropdown
|
|
12
|
+
* (data-placement), bóng đổ, reset button. Footer là `Button` (cần button.css).
|
|
13
|
+
*
|
|
14
|
+
* Khoảng ngày (CalendarRange, data-range="true"): cột preset `.leaf-calendar__preset` + một hoặc
|
|
15
|
+
* hai `.leaf-calendar__panel` tháng cạnh nhau. Hai đầu khoảng data-range-start / data-range-end
|
|
16
|
+
* (+ data-selected, nền --text-highlight), ngày giữa data-in-range (nền --base-tertiary, không
|
|
17
|
+
* bo). Màn ≤ 640px: preset thành hàng cuộn ngang, các tháng xếp dọc.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
@layer components {
|
|
21
|
+
.leaf-calendar {
|
|
22
|
+
--leaf-calendar-width: 256px;
|
|
23
|
+
--leaf-calendar-cell: 28px;
|
|
24
|
+
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: column;
|
|
27
|
+
gap: 8px;
|
|
28
|
+
box-sizing: border-box;
|
|
29
|
+
width: var(--leaf-calendar-width);
|
|
30
|
+
max-width: 100%;
|
|
31
|
+
padding: 12px;
|
|
32
|
+
border-width: 1px;
|
|
33
|
+
border-style: solid;
|
|
34
|
+
border-radius: 12px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.leaf-calendar__header {
|
|
38
|
+
position: relative;
|
|
39
|
+
display: flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
justify-content: space-between;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.leaf-calendar[data-time-only="true"] {
|
|
45
|
+
--leaf-calendar-width: auto;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* Reset button của panel — không đụng footer `.leaf-button` (tự reset trong button.css). */
|
|
49
|
+
:is(
|
|
50
|
+
.leaf-calendar__nav,
|
|
51
|
+
.leaf-calendar__title,
|
|
52
|
+
.leaf-calendar__day,
|
|
53
|
+
.leaf-calendar__option,
|
|
54
|
+
.leaf-calendar__select
|
|
55
|
+
) {
|
|
56
|
+
margin: 0;
|
|
57
|
+
font-family: var(--font-sans);
|
|
58
|
+
appearance: none;
|
|
59
|
+
cursor: pointer;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.leaf-calendar__nav {
|
|
63
|
+
display: inline-flex;
|
|
64
|
+
align-items: center;
|
|
65
|
+
justify-content: center;
|
|
66
|
+
border-radius: 8px;
|
|
67
|
+
width: var(--leaf-calendar-cell);
|
|
68
|
+
height: var(--leaf-calendar-cell);
|
|
69
|
+
padding: 0;
|
|
70
|
+
border: none;
|
|
71
|
+
background-color: var(--base-tertiary);
|
|
72
|
+
font-size: 16px;
|
|
73
|
+
line-height: 1;
|
|
74
|
+
transition: background-color 0.15s ease;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.leaf-calendar__nav[data-size="sm"] {
|
|
78
|
+
width: 24px;
|
|
79
|
+
height: 24px;
|
|
80
|
+
font-size: 14px;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.leaf-calendar__nav:hover {
|
|
84
|
+
background-color: var(--base-quaternary);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.leaf-calendar__nav > svg,
|
|
88
|
+
.leaf-calendar__caret > svg {
|
|
89
|
+
display: block;
|
|
90
|
+
width: 1em;
|
|
91
|
+
height: 1em;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.leaf-calendar__title {
|
|
95
|
+
display: inline-flex;
|
|
96
|
+
align-items: center;
|
|
97
|
+
gap: 4px;
|
|
98
|
+
border-radius: 8px;
|
|
99
|
+
padding: 2px 8px;
|
|
100
|
+
border: none;
|
|
101
|
+
background-color: transparent;
|
|
102
|
+
transition: background-color 0.15s ease;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.leaf-calendar__title:hover,
|
|
106
|
+
.leaf-calendar__title[aria-expanded="true"] {
|
|
107
|
+
background-color: var(--base-tertiary);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.leaf-calendar__heading {
|
|
111
|
+
display: flex;
|
|
112
|
+
flex-direction: column;
|
|
113
|
+
align-items: center;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.leaf-calendar__caret {
|
|
117
|
+
display: inline-flex;
|
|
118
|
+
font-size: 12px;
|
|
119
|
+
color: var(--text-tertiary);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/* Bóng theo token --overlay (80% alpha) × 44% ≈ độ đậm 35% trước đây. */
|
|
123
|
+
.leaf-calendar__months,
|
|
124
|
+
.leaf-calendar__list {
|
|
125
|
+
box-shadow: 0 16px 40px color-mix(in srgb, var(--overlay) 44%, transparent);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.leaf-calendar__months {
|
|
129
|
+
position: absolute;
|
|
130
|
+
top: 100%;
|
|
131
|
+
right: 0;
|
|
132
|
+
left: 0;
|
|
133
|
+
z-index: 30;
|
|
134
|
+
display: flex;
|
|
135
|
+
flex-direction: column;
|
|
136
|
+
gap: 8px;
|
|
137
|
+
margin-top: 6px;
|
|
138
|
+
padding: 8px;
|
|
139
|
+
border-width: 1px;
|
|
140
|
+
border-style: solid;
|
|
141
|
+
border-radius: 12px;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.leaf-calendar__months-header {
|
|
145
|
+
display: flex;
|
|
146
|
+
align-items: center;
|
|
147
|
+
justify-content: space-between;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.leaf-calendar__months-grid {
|
|
151
|
+
display: grid;
|
|
152
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
153
|
+
gap: 4px;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/* monthOnly — lưới 12 tháng thay cho lưới ngày. */
|
|
157
|
+
.leaf-calendar[data-month-only="true"] .leaf-calendar__months-grid {
|
|
158
|
+
row-gap: 8px;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.leaf-calendar[data-month-only="true"] .leaf-calendar__option {
|
|
162
|
+
height: 40px;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.leaf-calendar__weekdays,
|
|
166
|
+
.leaf-calendar__days {
|
|
167
|
+
display: grid;
|
|
168
|
+
grid-template-columns: repeat(7, minmax(0, 1fr));
|
|
169
|
+
gap: 2px;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.leaf-calendar__weekday {
|
|
173
|
+
padding-block: 2px;
|
|
174
|
+
text-align: center;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.leaf-calendar__num,
|
|
178
|
+
.leaf-calendar__select,
|
|
179
|
+
.leaf-calendar__option--time {
|
|
180
|
+
font-variant-numeric: tabular-nums;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/* Ô ngày / tháng / giờ — màu theo state nên nằm ở đây, không gắn class màu trên markup. */
|
|
184
|
+
.leaf-calendar__day,
|
|
185
|
+
.leaf-calendar__option {
|
|
186
|
+
display: inline-flex;
|
|
187
|
+
align-items: center;
|
|
188
|
+
justify-content: center;
|
|
189
|
+
border-radius: 8px;
|
|
190
|
+
height: var(--leaf-calendar-cell);
|
|
191
|
+
padding: 0;
|
|
192
|
+
border: 1px solid transparent;
|
|
193
|
+
background-color: transparent;
|
|
194
|
+
color: var(--text-primary);
|
|
195
|
+
transition:
|
|
196
|
+
background-color 0.15s ease,
|
|
197
|
+
color 0.15s ease;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.leaf-calendar__option--time {
|
|
201
|
+
flex-shrink: 0;
|
|
202
|
+
height: 24px;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.leaf-calendar__day:not(:disabled):not([data-selected="true"]):hover,
|
|
206
|
+
.leaf-calendar__option:not(:disabled):not([data-selected="true"]):hover {
|
|
207
|
+
background-color: var(--base-tertiary);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.leaf-calendar__day[data-today="true"],
|
|
211
|
+
.leaf-calendar__option[data-today="true"] {
|
|
212
|
+
border-color: var(--text-highlight);
|
|
213
|
+
color: var(--text-highlight);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.leaf-calendar__day[data-selected="true"],
|
|
217
|
+
.leaf-calendar__option[data-selected="true"] {
|
|
218
|
+
border-color: transparent;
|
|
219
|
+
background-color: var(--text-highlight);
|
|
220
|
+
color: var(--text-quaternary);
|
|
221
|
+
font-weight: var(--body-5-highlight-weight);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.leaf-calendar__day:disabled,
|
|
225
|
+
.leaf-calendar__option:disabled {
|
|
226
|
+
border-color: transparent;
|
|
227
|
+
background-color: transparent;
|
|
228
|
+
color: var(--text-tertiary);
|
|
229
|
+
opacity: 0.5;
|
|
230
|
+
cursor: not-allowed;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.leaf-calendar__day:focus-visible,
|
|
234
|
+
.leaf-calendar__option:focus-visible,
|
|
235
|
+
.leaf-calendar__nav:focus-visible,
|
|
236
|
+
.leaf-calendar__title:focus-visible,
|
|
237
|
+
.leaf-calendar__select:focus-visible {
|
|
238
|
+
outline: 2px solid var(--text-highlight);
|
|
239
|
+
outline-offset: 1px;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.leaf-calendar__empty {
|
|
243
|
+
height: var(--leaf-calendar-cell);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.leaf-calendar__divider {
|
|
247
|
+
height: 1px;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.leaf-calendar__time {
|
|
251
|
+
display: flex;
|
|
252
|
+
align-items: center;
|
|
253
|
+
justify-content: space-between;
|
|
254
|
+
gap: 8px;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.leaf-calendar__time-group {
|
|
258
|
+
display: flex;
|
|
259
|
+
align-items: center;
|
|
260
|
+
gap: 4px;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.leaf-calendar__select-wrap {
|
|
264
|
+
position: relative;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.leaf-calendar__select {
|
|
268
|
+
display: inline-flex;
|
|
269
|
+
align-items: center;
|
|
270
|
+
justify-content: space-between;
|
|
271
|
+
padding-inline: 8px;
|
|
272
|
+
border-radius: 8px;
|
|
273
|
+
box-sizing: border-box;
|
|
274
|
+
width: 64px;
|
|
275
|
+
height: var(--leaf-calendar-cell);
|
|
276
|
+
padding-block: 0;
|
|
277
|
+
border: 1px solid var(--base-quaternary);
|
|
278
|
+
background-color: var(--base-tertiary);
|
|
279
|
+
color: var(--text-primary);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.leaf-calendar__select[aria-expanded="true"] {
|
|
283
|
+
border-color: var(--text-highlight);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.leaf-calendar__list {
|
|
287
|
+
position: absolute;
|
|
288
|
+
left: 0;
|
|
289
|
+
z-index: 20;
|
|
290
|
+
display: flex;
|
|
291
|
+
flex-direction: column;
|
|
292
|
+
gap: 2px;
|
|
293
|
+
padding: 4px;
|
|
294
|
+
border-width: 1px;
|
|
295
|
+
border-style: solid;
|
|
296
|
+
border-radius: 8px;
|
|
297
|
+
overflow-y: auto;
|
|
298
|
+
box-sizing: border-box;
|
|
299
|
+
width: 64px;
|
|
300
|
+
max-height: 160px;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.leaf-calendar__list[data-placement="bottom"] {
|
|
304
|
+
top: 100%;
|
|
305
|
+
margin-top: 4px;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.leaf-calendar__list[data-placement="top"] {
|
|
309
|
+
bottom: 100%;
|
|
310
|
+
margin-bottom: 4px;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.leaf-calendar__footer {
|
|
314
|
+
display: flex;
|
|
315
|
+
gap: 8px;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.leaf-calendar[data-range="true"] {
|
|
319
|
+
--leaf-calendar-width: auto;
|
|
320
|
+
flex-direction: row;
|
|
321
|
+
gap: 16px;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.leaf-calendar__presets {
|
|
325
|
+
display: flex;
|
|
326
|
+
flex-direction: column;
|
|
327
|
+
gap: 2px;
|
|
328
|
+
min-width: 112px;
|
|
329
|
+
padding-right: 12px;
|
|
330
|
+
border-right: 1px solid var(--base-tertiary);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.leaf-calendar__preset {
|
|
334
|
+
display: flex;
|
|
335
|
+
align-items: center;
|
|
336
|
+
height: 32px;
|
|
337
|
+
margin: 0;
|
|
338
|
+
padding: 0 8px;
|
|
339
|
+
border: none;
|
|
340
|
+
border-radius: 8px;
|
|
341
|
+
background: transparent;
|
|
342
|
+
color: var(--text-secondary);
|
|
343
|
+
font-family: var(--font-sans);
|
|
344
|
+
text-align: left;
|
|
345
|
+
white-space: nowrap;
|
|
346
|
+
cursor: pointer;
|
|
347
|
+
appearance: none;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.leaf-calendar__preset:hover {
|
|
351
|
+
background-color: var(--base-tertiary);
|
|
352
|
+
color: var(--text-primary);
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.leaf-calendar__preset[data-selected="true"] {
|
|
356
|
+
background-color: var(--base-tertiary);
|
|
357
|
+
color: var(--text-highlight);
|
|
358
|
+
font-weight: var(--body-5-highlight-weight);
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.leaf-calendar__preset:focus-visible {
|
|
362
|
+
outline: 2px solid var(--text-highlight);
|
|
363
|
+
outline-offset: 1px;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.leaf-calendar__range-body {
|
|
367
|
+
display: flex;
|
|
368
|
+
flex-direction: column;
|
|
369
|
+
gap: 12px;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.leaf-calendar__months-row {
|
|
373
|
+
display: flex;
|
|
374
|
+
gap: 24px;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.leaf-calendar__panel {
|
|
378
|
+
display: flex;
|
|
379
|
+
flex-direction: column;
|
|
380
|
+
gap: 8px;
|
|
381
|
+
width: 232px;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.leaf-calendar__nav-spacer {
|
|
385
|
+
display: inline-block;
|
|
386
|
+
width: var(--leaf-calendar-cell);
|
|
387
|
+
height: var(--leaf-calendar-cell);
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
.leaf-calendar__day[data-in-range="true"] {
|
|
391
|
+
border-radius: 0;
|
|
392
|
+
background-color: var(--base-tertiary);
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.leaf-calendar__day[data-range-start="true"]:not([data-range-end="true"]) {
|
|
396
|
+
border-radius: 8px 0 0 8px;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
.leaf-calendar__day[data-range-end="true"]:not([data-range-start="true"]) {
|
|
400
|
+
border-radius: 0 8px 8px 0;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
@media (max-width: 640px) {
|
|
404
|
+
.leaf-calendar[data-range="true"] {
|
|
405
|
+
flex-direction: column;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.leaf-calendar__presets {
|
|
409
|
+
flex-direction: row;
|
|
410
|
+
min-width: 0;
|
|
411
|
+
padding: 0 0 8px;
|
|
412
|
+
overflow-x: auto;
|
|
413
|
+
border-right: none;
|
|
414
|
+
border-bottom: 1px solid var(--base-tertiary);
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.leaf-calendar__months-row {
|
|
418
|
+
flex-direction: column;
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
.leaf-calendar__footer > .leaf-button {
|
|
423
|
+
flex: 1;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
.leaf-calendar[hidden],
|
|
427
|
+
.leaf-calendar__header[hidden],
|
|
428
|
+
.leaf-calendar__nav[hidden],
|
|
429
|
+
.leaf-calendar__title[hidden],
|
|
430
|
+
.leaf-calendar__heading[hidden],
|
|
431
|
+
.leaf-calendar__caret[hidden],
|
|
432
|
+
.leaf-calendar__months[hidden],
|
|
433
|
+
.leaf-calendar__months-header[hidden],
|
|
434
|
+
.leaf-calendar__months-grid[hidden],
|
|
435
|
+
.leaf-calendar__weekdays[hidden],
|
|
436
|
+
.leaf-calendar__presets[hidden],
|
|
437
|
+
.leaf-calendar__preset[hidden],
|
|
438
|
+
.leaf-calendar__range-body[hidden],
|
|
439
|
+
.leaf-calendar__months-row[hidden],
|
|
440
|
+
.leaf-calendar__panel[hidden],
|
|
441
|
+
.leaf-calendar__nav-spacer[hidden],
|
|
442
|
+
.leaf-calendar__days[hidden],
|
|
443
|
+
.leaf-calendar__time[hidden],
|
|
444
|
+
.leaf-calendar__time-group[hidden],
|
|
445
|
+
.leaf-calendar__select[hidden],
|
|
446
|
+
.leaf-calendar__footer[hidden],
|
|
447
|
+
.leaf-calendar__list[hidden],
|
|
448
|
+
.leaf-calendar__day[hidden],
|
|
449
|
+
.leaf-calendar__option[hidden] {
|
|
450
|
+
display: none;
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
/*
|
|
455
|
+
* Hiệu ứng hiện / ẩn — `@starting-style` cho lúc hiện, `hidden` / `data-state="closing"` cho lúc
|
|
456
|
+
* ẩn; `display … allow-discrete` giữ phần tử tới hết transition. Tắt khi giảm chuyển động.
|
|
457
|
+
*/
|
|
458
|
+
@layer components {
|
|
459
|
+
.leaf-calendar__months,
|
|
460
|
+
.leaf-calendar__list {
|
|
461
|
+
transition:
|
|
462
|
+
opacity 150ms ease,
|
|
463
|
+
translate 150ms ease,
|
|
464
|
+
display 150ms allow-discrete;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
.leaf-calendar__months[hidden],
|
|
468
|
+
.leaf-calendar__list[hidden] {
|
|
469
|
+
opacity: 0;
|
|
470
|
+
translate: 0 -4px;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
@starting-style {
|
|
474
|
+
.leaf-calendar__months,
|
|
475
|
+
.leaf-calendar__list {
|
|
476
|
+
opacity: 0;
|
|
477
|
+
translate: 0 -4px;
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
@media (prefers-reduced-motion: reduce) {
|
|
482
|
+
.leaf-calendar__months,
|
|
483
|
+
.leaf-calendar__list {
|
|
484
|
+
transition: none;
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
}
|