@visitwonders/assembly 0.1.0
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/LICENSE.md +9 -0
- package/README.md +26 -0
- package/addon-main.cjs +4 -0
- package/declarations/action/button.d.ts +50 -0
- package/declarations/action/button.d.ts.map +1 -0
- package/declarations/action/index.d.ts +3 -0
- package/declarations/action/index.d.ts.map +1 -0
- package/declarations/action/link.d.ts +16 -0
- package/declarations/action/link.d.ts.map +1 -0
- package/declarations/components/form/checkbox.d.ts +65 -0
- package/declarations/components/form/checkbox.d.ts.map +1 -0
- package/declarations/components/form/control.d.ts +36 -0
- package/declarations/components/form/control.d.ts.map +1 -0
- package/declarations/components/form/error-message.d.ts +22 -0
- package/declarations/components/form/error-message.d.ts.map +1 -0
- package/declarations/components/form/field.d.ts +21 -0
- package/declarations/components/form/field.d.ts.map +1 -0
- package/declarations/components/form/form.d.ts +14 -0
- package/declarations/components/form/form.d.ts.map +1 -0
- package/declarations/components/form/help-text.d.ts +14 -0
- package/declarations/components/form/help-text.d.ts.map +1 -0
- package/declarations/components/form/index.d.ts +15 -0
- package/declarations/components/form/index.d.ts.map +1 -0
- package/declarations/components/form/input.d.ts +80 -0
- package/declarations/components/form/input.d.ts.map +1 -0
- package/declarations/components/form/label.d.ts +34 -0
- package/declarations/components/form/label.d.ts.map +1 -0
- package/declarations/components/form/radio-group.d.ts +43 -0
- package/declarations/components/form/radio-group.d.ts.map +1 -0
- package/declarations/components/form/radio.d.ts +54 -0
- package/declarations/components/form/radio.d.ts.map +1 -0
- package/declarations/components/form/search-input.d.ts +35 -0
- package/declarations/components/form/search-input.d.ts.map +1 -0
- package/declarations/components/form/select.d.ts +36 -0
- package/declarations/components/form/select.d.ts.map +1 -0
- package/declarations/components/form/test.d.ts +11 -0
- package/declarations/components/form/test.d.ts.map +1 -0
- package/declarations/components/form/textarea.d.ts +79 -0
- package/declarations/components/form/textarea.d.ts.map +1 -0
- package/declarations/components/form/toggle.d.ts +23 -0
- package/declarations/components/form/toggle.d.ts.map +1 -0
- package/declarations/components/primitives/grid-item.d.ts +21 -0
- package/declarations/components/primitives/grid-item.d.ts.map +1 -0
- package/declarations/components/primitives/grid.d.ts +49 -0
- package/declarations/components/primitives/grid.d.ts.map +1 -0
- package/declarations/components/primitives/h-stack.d.ts +17 -0
- package/declarations/components/primitives/h-stack.d.ts.map +1 -0
- package/declarations/components/primitives/heading.d.ts +52 -0
- package/declarations/components/primitives/heading.d.ts.map +1 -0
- package/declarations/components/primitives/image.d.ts +24 -0
- package/declarations/components/primitives/image.d.ts.map +1 -0
- package/declarations/components/primitives/index.d.ts +8 -0
- package/declarations/components/primitives/index.d.ts.map +1 -0
- package/declarations/components/primitives/link.d.ts +16 -0
- package/declarations/components/primitives/link.d.ts.map +1 -0
- package/declarations/components/primitives/stack.d.ts +23 -0
- package/declarations/components/primitives/stack.d.ts.map +1 -0
- package/declarations/components/primitives/text.d.ts +50 -0
- package/declarations/components/primitives/text.d.ts.map +1 -0
- package/declarations/components/primitives/v-stack.d.ts +16 -0
- package/declarations/components/primitives/v-stack.d.ts.map +1 -0
- package/declarations/components/ui/badge.d.ts +14 -0
- package/declarations/components/ui/badge.d.ts.map +1 -0
- package/declarations/components/ui/button.d.ts +32 -0
- package/declarations/components/ui/button.d.ts.map +1 -0
- package/declarations/components/ui/card.d.ts +27 -0
- package/declarations/components/ui/card.d.ts.map +1 -0
- package/declarations/components/ui/description-list.d.ts +22 -0
- package/declarations/components/ui/description-list.d.ts.map +1 -0
- package/declarations/components/ui/drawer.d.ts +14 -0
- package/declarations/components/ui/drawer.d.ts.map +1 -0
- package/declarations/components/ui/icon-button.d.ts +21 -0
- package/declarations/components/ui/icon-button.d.ts.map +1 -0
- package/declarations/components/ui/icon.d.ts +21 -0
- package/declarations/components/ui/icon.d.ts.map +1 -0
- package/declarations/components/ui/index.d.ts +17 -0
- package/declarations/components/ui/index.d.ts.map +1 -0
- package/declarations/components/ui/modal.d.ts +14 -0
- package/declarations/components/ui/modal.d.ts.map +1 -0
- package/declarations/components/ui/page-header.d.ts +16 -0
- package/declarations/components/ui/page-header.d.ts.map +1 -0
- package/declarations/components/ui/skeleton-card.d.ts +17 -0
- package/declarations/components/ui/skeleton-card.d.ts.map +1 -0
- package/declarations/components/ui/skeleton-text.d.ts +16 -0
- package/declarations/components/ui/skeleton-text.d.ts.map +1 -0
- package/declarations/components/ui/skeleton.d.ts +20 -0
- package/declarations/components/ui/skeleton.d.ts.map +1 -0
- package/declarations/components/ui/spinner.d.ts +11 -0
- package/declarations/components/ui/spinner.d.ts.map +1 -0
- package/declarations/components/ui/tab-nav/index.d.ts +36 -0
- package/declarations/components/ui/tab-nav/index.d.ts.map +1 -0
- package/declarations/components/ui/table/body.d.ts +11 -0
- package/declarations/components/ui/table/body.d.ts.map +1 -0
- package/declarations/components/ui/table/caption.d.ts +18 -0
- package/declarations/components/ui/table/caption.d.ts.map +1 -0
- package/declarations/components/ui/table/cell.d.ts +31 -0
- package/declarations/components/ui/table/cell.d.ts.map +1 -0
- package/declarations/components/ui/table/footer.d.ts +11 -0
- package/declarations/components/ui/table/footer.d.ts.map +1 -0
- package/declarations/components/ui/table/header-cell.d.ts +35 -0
- package/declarations/components/ui/table/header-cell.d.ts.map +1 -0
- package/declarations/components/ui/table/header.d.ts +11 -0
- package/declarations/components/ui/table/header.d.ts.map +1 -0
- package/declarations/components/ui/table/index.d.ts +0 -0
- package/declarations/components/ui/table/index.d.ts.map +1 -0
- package/declarations/components/ui/table/row.d.ts +21 -0
- package/declarations/components/ui/table/row.d.ts.map +1 -0
- package/declarations/components/ui/table_old.d.ts +29 -0
- package/declarations/components/ui/table_old.d.ts.map +1 -0
- package/declarations/data/index.d.ts +2 -0
- package/declarations/data/index.d.ts.map +1 -0
- package/declarations/data/table.d.ts +147 -0
- package/declarations/data/table.d.ts.map +1 -0
- package/declarations/form/calendar.d.ts +113 -0
- package/declarations/form/calendar.d.ts.map +1 -0
- package/declarations/form/checkbox-group.d.ts +84 -0
- package/declarations/form/checkbox-group.d.ts.map +1 -0
- package/declarations/form/checkbox.d.ts +65 -0
- package/declarations/form/checkbox.d.ts.map +1 -0
- package/declarations/form/control.d.ts +53 -0
- package/declarations/form/control.d.ts.map +1 -0
- package/declarations/form/country-data.d.ts +42 -0
- package/declarations/form/country-data.d.ts.map +1 -0
- package/declarations/form/country-select-field.d.ts +52 -0
- package/declarations/form/country-select-field.d.ts.map +1 -0
- package/declarations/form/country-select.d.ts +117 -0
- package/declarations/form/country-select.d.ts.map +1 -0
- package/declarations/form/date-picker-field.d.ts +69 -0
- package/declarations/form/date-picker-field.d.ts.map +1 -0
- package/declarations/form/date-picker.d.ts +128 -0
- package/declarations/form/date-picker.d.ts.map +1 -0
- package/declarations/form/date-range-picker-field.d.ts +71 -0
- package/declarations/form/date-range-picker-field.d.ts.map +1 -0
- package/declarations/form/date-range-picker.d.ts +146 -0
- package/declarations/form/date-range-picker.d.ts.map +1 -0
- package/declarations/form/error-message.d.ts +22 -0
- package/declarations/form/error-message.d.ts.map +1 -0
- package/declarations/form/field.d.ts +21 -0
- package/declarations/form/field.d.ts.map +1 -0
- package/declarations/form/form.d.ts +61 -0
- package/declarations/form/form.d.ts.map +1 -0
- package/declarations/form/help-text.d.ts +14 -0
- package/declarations/form/help-text.d.ts.map +1 -0
- package/declarations/form/index.d.ts +35 -0
- package/declarations/form/index.d.ts.map +1 -0
- package/declarations/form/input.d.ts +78 -0
- package/declarations/form/input.d.ts.map +1 -0
- package/declarations/form/label.d.ts +34 -0
- package/declarations/form/label.d.ts.map +1 -0
- package/declarations/form/listbox.d.ts +181 -0
- package/declarations/form/listbox.d.ts.map +1 -0
- package/declarations/form/money-field.d.ts +74 -0
- package/declarations/form/money-field.d.ts.map +1 -0
- package/declarations/form/multi-select.d.ts +121 -0
- package/declarations/form/multi-select.d.ts.map +1 -0
- package/declarations/form/number-field.d.ts +86 -0
- package/declarations/form/number-field.d.ts.map +1 -0
- package/declarations/form/option-group.d.ts +2 -0
- package/declarations/form/option-group.d.ts.map +1 -0
- package/declarations/form/option.d.ts +2 -0
- package/declarations/form/option.d.ts.map +1 -0
- package/declarations/form/radio-group.d.ts +43 -0
- package/declarations/form/radio-group.d.ts.map +1 -0
- package/declarations/form/radio.d.ts +54 -0
- package/declarations/form/radio.d.ts.map +1 -0
- package/declarations/form/search-input.d.ts +35 -0
- package/declarations/form/search-input.d.ts.map +1 -0
- package/declarations/form/select-field.d.ts +49 -0
- package/declarations/form/select-field.d.ts.map +1 -0
- package/declarations/form/select.d.ts +145 -0
- package/declarations/form/select.d.ts.map +1 -0
- package/declarations/form/test.d.ts +11 -0
- package/declarations/form/test.d.ts.map +1 -0
- package/declarations/form/text-field.d.ts +95 -0
- package/declarations/form/text-field.d.ts.map +1 -0
- package/declarations/form/textarea.d.ts +81 -0
- package/declarations/form/textarea.d.ts.map +1 -0
- package/declarations/form/time-picker-field.d.ts +61 -0
- package/declarations/form/time-picker-field.d.ts.map +1 -0
- package/declarations/form/time-picker.d.ts +151 -0
- package/declarations/form/time-picker.d.ts.map +1 -0
- package/declarations/form/toggle-field.d.ts +45 -0
- package/declarations/form/toggle-field.d.ts.map +1 -0
- package/declarations/form/toggle-group.d.ts +21 -0
- package/declarations/form/toggle-group.d.ts.map +1 -0
- package/declarations/form/toggle.d.ts +59 -0
- package/declarations/form/toggle.d.ts.map +1 -0
- package/declarations/index.d.ts +1 -0
- package/declarations/index.d.ts.map +1 -0
- package/declarations/layout/divider.d.ts +21 -0
- package/declarations/layout/divider.d.ts.map +1 -0
- package/declarations/layout/grid-item.d.ts +21 -0
- package/declarations/layout/grid-item.d.ts.map +1 -0
- package/declarations/layout/grid.d.ts +49 -0
- package/declarations/layout/grid.d.ts.map +1 -0
- package/declarations/layout/h-stack.d.ts +17 -0
- package/declarations/layout/h-stack.d.ts.map +1 -0
- package/declarations/layout/index.d.ts +7 -0
- package/declarations/layout/index.d.ts.map +1 -0
- package/declarations/layout/stack.d.ts +23 -0
- package/declarations/layout/stack.d.ts.map +1 -0
- package/declarations/layout/v-stack.d.ts +16 -0
- package/declarations/layout/v-stack.d.ts.map +1 -0
- package/declarations/media/icon.d.ts +34 -0
- package/declarations/media/icon.d.ts.map +1 -0
- package/declarations/media/image.d.ts +24 -0
- package/declarations/media/image.d.ts.map +1 -0
- package/declarations/media/index.d.ts +3 -0
- package/declarations/media/index.d.ts.map +1 -0
- package/declarations/overlay/blanket.d.ts +78 -0
- package/declarations/overlay/blanket.d.ts.map +1 -0
- package/declarations/overlay/drawer.d.ts +140 -0
- package/declarations/overlay/drawer.d.ts.map +1 -0
- package/declarations/overlay/index.d.ts +7 -0
- package/declarations/overlay/index.d.ts.map +1 -0
- package/declarations/overlay/modal.d.ts +138 -0
- package/declarations/overlay/modal.d.ts.map +1 -0
- package/declarations/overlay/popover.d.ts +205 -0
- package/declarations/overlay/popover.d.ts.map +1 -0
- package/declarations/overlay/toast.d.ts +58 -0
- package/declarations/overlay/toast.d.ts.map +1 -0
- package/declarations/overlay/tooltip.d.ts +154 -0
- package/declarations/overlay/tooltip.d.ts.map +1 -0
- package/declarations/primitives/grid-item.d.ts +21 -0
- package/declarations/primitives/grid-item.d.ts.map +1 -0
- package/declarations/primitives/grid.d.ts +49 -0
- package/declarations/primitives/grid.d.ts.map +1 -0
- package/declarations/primitives/h-stack.d.ts +17 -0
- package/declarations/primitives/h-stack.d.ts.map +1 -0
- package/declarations/primitives/heading.d.ts +52 -0
- package/declarations/primitives/heading.d.ts.map +1 -0
- package/declarations/primitives/image.d.ts +24 -0
- package/declarations/primitives/image.d.ts.map +1 -0
- package/declarations/primitives/index.d.ts +4 -0
- package/declarations/primitives/index.d.ts.map +1 -0
- package/declarations/primitives/link.d.ts +16 -0
- package/declarations/primitives/link.d.ts.map +1 -0
- package/declarations/primitives/stack.d.ts +23 -0
- package/declarations/primitives/stack.d.ts.map +1 -0
- package/declarations/primitives/text.d.ts +50 -0
- package/declarations/primitives/text.d.ts.map +1 -0
- package/declarations/primitives/v-stack.d.ts +16 -0
- package/declarations/primitives/v-stack.d.ts.map +1 -0
- package/declarations/services/index.d.ts +3 -0
- package/declarations/services/index.d.ts.map +1 -0
- package/declarations/services/toast.d.ts +81 -0
- package/declarations/services/toast.d.ts.map +1 -0
- package/declarations/status/badge.d.ts +38 -0
- package/declarations/status/badge.d.ts.map +1 -0
- package/declarations/status/index.d.ts +8 -0
- package/declarations/status/index.d.ts.map +1 -0
- package/declarations/status/skeleton-avatar.d.ts +22 -0
- package/declarations/status/skeleton-avatar.d.ts.map +1 -0
- package/declarations/status/skeleton-button.d.ts +21 -0
- package/declarations/status/skeleton-button.d.ts.map +1 -0
- package/declarations/status/skeleton-image.d.ts +21 -0
- package/declarations/status/skeleton-image.d.ts.map +1 -0
- package/declarations/status/skeleton-text.d.ts +24 -0
- package/declarations/status/skeleton-text.d.ts.map +1 -0
- package/declarations/status/skeleton.d.ts +33 -0
- package/declarations/status/skeleton.d.ts.map +1 -0
- package/declarations/status/tag.d.ts +48 -0
- package/declarations/status/tag.d.ts.map +1 -0
- package/declarations/template-registry.d.ts +1 -0
- package/declarations/template-registry.d.ts.map +1 -0
- package/declarations/types/design-system.d.ts +42 -0
- package/declarations/types/design-system.d.ts.map +1 -0
- package/declarations/typography/heading.d.ts +52 -0
- package/declarations/typography/heading.d.ts.map +1 -0
- package/declarations/typography/index.d.ts +3 -0
- package/declarations/typography/index.d.ts.map +1 -0
- package/declarations/typography/link.d.ts +16 -0
- package/declarations/typography/link.d.ts.map +1 -0
- package/declarations/typography/text.d.ts +50 -0
- package/declarations/typography/text.d.ts.map +1 -0
- package/declarations/ui/button.d.ts +50 -0
- package/declarations/ui/button.d.ts.map +1 -0
- package/declarations/ui/icon.d.ts +21 -0
- package/declarations/ui/icon.d.ts.map +1 -0
- package/declarations/ui/index.d.ts +2 -0
- package/declarations/ui/index.d.ts.map +1 -0
- package/dist/_app_/action/button.js +1 -0
- package/dist/_app_/action/link.js +1 -0
- package/dist/_app_/data/table.js +1 -0
- package/dist/_app_/form/calendar.js +1 -0
- package/dist/_app_/form/checkbox-group.js +1 -0
- package/dist/_app_/form/checkbox.js +1 -0
- package/dist/_app_/form/control.js +1 -0
- package/dist/_app_/form/country-data.js +1 -0
- package/dist/_app_/form/country-select-field.js +1 -0
- package/dist/_app_/form/country-select.js +1 -0
- package/dist/_app_/form/date-picker-field.js +1 -0
- package/dist/_app_/form/date-picker.js +1 -0
- package/dist/_app_/form/date-range-picker-field.js +1 -0
- package/dist/_app_/form/date-range-picker.js +1 -0
- package/dist/_app_/form/error-message.js +1 -0
- package/dist/_app_/form/field.js +1 -0
- package/dist/_app_/form/form.js +1 -0
- package/dist/_app_/form/help-text.js +1 -0
- package/dist/_app_/form/input.js +1 -0
- package/dist/_app_/form/label.js +1 -0
- package/dist/_app_/form/listbox.js +1 -0
- package/dist/_app_/form/money-field.js +1 -0
- package/dist/_app_/form/multi-select.js +1 -0
- package/dist/_app_/form/number-field.js +1 -0
- package/dist/_app_/form/option-group.js +1 -0
- package/dist/_app_/form/option.js +1 -0
- package/dist/_app_/form/radio-group.js +1 -0
- package/dist/_app_/form/radio.js +1 -0
- package/dist/_app_/form/search-input.js +1 -0
- package/dist/_app_/form/select-field.js +1 -0
- package/dist/_app_/form/select.js +1 -0
- package/dist/_app_/form/text-field.js +1 -0
- package/dist/_app_/form/textarea.js +1 -0
- package/dist/_app_/form/time-picker-field.js +1 -0
- package/dist/_app_/form/time-picker.js +1 -0
- package/dist/_app_/form/toggle-field.js +1 -0
- package/dist/_app_/form/toggle-group.js +1 -0
- package/dist/_app_/form/toggle.js +1 -0
- package/dist/_app_/layout/divider.js +1 -0
- package/dist/_app_/layout/grid-item.js +1 -0
- package/dist/_app_/layout/grid.js +1 -0
- package/dist/_app_/layout/h-stack.js +1 -0
- package/dist/_app_/layout/stack.js +1 -0
- package/dist/_app_/layout/v-stack.js +1 -0
- package/dist/_app_/media/icon.js +1 -0
- package/dist/_app_/media/image.js +1 -0
- package/dist/_app_/overlay/blanket.js +1 -0
- package/dist/_app_/overlay/drawer.js +1 -0
- package/dist/_app_/overlay/modal.js +1 -0
- package/dist/_app_/overlay/popover.js +1 -0
- package/dist/_app_/overlay/toast.js +1 -0
- package/dist/_app_/overlay/tooltip.js +1 -0
- package/dist/_app_/services/toast.js +1 -0
- package/dist/_app_/status/badge.js +1 -0
- package/dist/_app_/status/skeleton-avatar.js +1 -0
- package/dist/_app_/status/skeleton-button.js +1 -0
- package/dist/_app_/status/skeleton-image.js +1 -0
- package/dist/_app_/status/skeleton-text.js +1 -0
- package/dist/_app_/status/skeleton.js +1 -0
- package/dist/_app_/status/tag.js +1 -0
- package/dist/_app_/typography/heading.js +1 -0
- package/dist/_app_/typography/text.js +1 -0
- package/dist/action/button.css +360 -0
- package/dist/action/button.js +50 -0
- package/dist/action/button.js.map +1 -0
- package/dist/action/index.js +3 -0
- package/dist/action/index.js.map +1 -0
- package/dist/action/link-css-2b7265326c02ebb264835b3680b7e81e.css +19 -0
- package/dist/action/link.js +17 -0
- package/dist/action/link.js.map +1 -0
- package/dist/data/index.js +2 -0
- package/dist/data/index.js.map +1 -0
- package/dist/data/table.css +270 -0
- package/dist/data/table.js +478 -0
- package/dist/data/table.js.map +1 -0
- package/dist/form/calendar.css +239 -0
- package/dist/form/calendar.js +532 -0
- package/dist/form/calendar.js.map +1 -0
- package/dist/form/checkbox-group.css +47 -0
- package/dist/form/checkbox-group.js +102 -0
- package/dist/form/checkbox-group.js.map +1 -0
- package/dist/form/checkbox.css +193 -0
- package/dist/form/checkbox.js +70 -0
- package/dist/form/checkbox.js.map +1 -0
- package/dist/form/control-css-6c81caf37fd813b36033091d5340bc70.css +20 -0
- package/dist/form/control.js +57 -0
- package/dist/form/control.js.map +1 -0
- package/dist/form/country-data.js +1075 -0
- package/dist/form/country-data.js.map +1 -0
- package/dist/form/country-select-field.js +37 -0
- package/dist/form/country-select-field.js.map +1 -0
- package/dist/form/country-select.css +299 -0
- package/dist/form/country-select.js +336 -0
- package/dist/form/country-select.js.map +1 -0
- package/dist/form/date-picker-field.js +37 -0
- package/dist/form/date-picker-field.js.map +1 -0
- package/dist/form/date-picker.css +177 -0
- package/dist/form/date-picker.js +366 -0
- package/dist/form/date-picker.js.map +1 -0
- package/dist/form/date-range-picker-field.js +37 -0
- package/dist/form/date-range-picker-field.js.map +1 -0
- package/dist/form/date-range-picker.css +259 -0
- package/dist/form/date-range-picker.js +451 -0
- package/dist/form/date-range-picker.js.map +1 -0
- package/dist/form/error-message.css +27 -0
- package/dist/form/error-message.js +27 -0
- package/dist/form/error-message.js.map +1 -0
- package/dist/form/field.css +45 -0
- package/dist/form/field.js +28 -0
- package/dist/form/field.js.map +1 -0
- package/dist/form/form.css +6 -0
- package/dist/form/form.js +120 -0
- package/dist/form/form.js.map +1 -0
- package/dist/form/help-text.css +7 -0
- package/dist/form/help-text.js +13 -0
- package/dist/form/help-text.js.map +1 -0
- package/dist/form/index.js +33 -0
- package/dist/form/index.js.map +1 -0
- package/dist/form/input.css +176 -0
- package/dist/form/input.js +43 -0
- package/dist/form/input.js.map +1 -0
- package/dist/form/label.css +59 -0
- package/dist/form/label.js +54 -0
- package/dist/form/label.js.map +1 -0
- package/dist/form/listbox.css +125 -0
- package/dist/form/listbox.js +388 -0
- package/dist/form/listbox.js.map +1 -0
- package/dist/form/money-field.css +9 -0
- package/dist/form/money-field.js +203 -0
- package/dist/form/money-field.js.map +1 -0
- package/dist/form/multi-select.css +343 -0
- package/dist/form/multi-select.js +429 -0
- package/dist/form/multi-select.js.map +1 -0
- package/dist/form/number-field.css +170 -0
- package/dist/form/number-field.js +184 -0
- package/dist/form/number-field.js.map +1 -0
- package/dist/form/option-group.js +2 -0
- package/dist/form/option-group.js.map +1 -0
- package/dist/form/option.js +2 -0
- package/dist/form/option.js.map +1 -0
- package/dist/form/radio-group.css +54 -0
- package/dist/form/radio-group.js +53 -0
- package/dist/form/radio-group.js.map +1 -0
- package/dist/form/radio.css +183 -0
- package/dist/form/radio.js +65 -0
- package/dist/form/radio.js.map +1 -0
- package/dist/form/search-input.css +118 -0
- package/dist/form/search-input.js +87 -0
- package/dist/form/search-input.js.map +1 -0
- package/dist/form/select-field.js +39 -0
- package/dist/form/select-field.js.map +1 -0
- package/dist/form/select.css +201 -0
- package/dist/form/select.js +394 -0
- package/dist/form/select.js.map +1 -0
- package/dist/form/text-field-css-f60360f3f8aaf4da664eaccd1bcc9f8f.css +31 -0
- package/dist/form/text-field.js +141 -0
- package/dist/form/text-field.js.map +1 -0
- package/dist/form/textarea.css +139 -0
- package/dist/form/textarea.js +140 -0
- package/dist/form/textarea.js.map +1 -0
- package/dist/form/time-picker-field.js +37 -0
- package/dist/form/time-picker-field.js.map +1 -0
- package/dist/form/time-picker.css +239 -0
- package/dist/form/time-picker.js +618 -0
- package/dist/form/time-picker.js.map +1 -0
- package/dist/form/toggle-field.css +6 -0
- package/dist/form/toggle-field.js +40 -0
- package/dist/form/toggle-field.js.map +1 -0
- package/dist/form/toggle-group.css +46 -0
- package/dist/form/toggle-group.js +20 -0
- package/dist/form/toggle-group.js.map +1 -0
- package/dist/form/toggle.css +206 -0
- package/dist/form/toggle.js +103 -0
- package/dist/form/toggle.js.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/layout/divider-css-1ba104b9c606cbd1f542b45640fb5f2b.css +122 -0
- package/dist/layout/divider.js +35 -0
- package/dist/layout/divider.js.map +1 -0
- package/dist/layout/grid-css-086976eb41686e3714554f56c098d3d5.css +155 -0
- package/dist/layout/grid-item-css-8d0f842568d1e8345ac709bdf2ed6745.css +122 -0
- package/dist/layout/grid-item.js +13 -0
- package/dist/layout/grid-item.js.map +1 -0
- package/dist/layout/grid.js +96 -0
- package/dist/layout/grid.js.map +1 -0
- package/dist/layout/h-stack.js +14 -0
- package/dist/layout/h-stack.js.map +1 -0
- package/dist/layout/index.js +7 -0
- package/dist/layout/index.js.map +1 -0
- package/dist/layout/stack-css-f094dc4a0a45b6af2acedca81dcce289.css +77 -0
- package/dist/layout/stack.js +32 -0
- package/dist/layout/stack.js.map +1 -0
- package/dist/layout/v-stack.js +14 -0
- package/dist/layout/v-stack.js.map +1 -0
- package/dist/media/icon.css +43 -0
- package/dist/media/icon.js +71 -0
- package/dist/media/icon.js.map +1 -0
- package/dist/media/image-css-6bc4899d3a8b992c3d4d2f1a796ce0fc.css +78 -0
- package/dist/media/image.js +47 -0
- package/dist/media/image.js.map +1 -0
- package/dist/media/index.js +3 -0
- package/dist/media/index.js.map +1 -0
- package/dist/overlay/blanket.css +67 -0
- package/dist/overlay/blanket.js +139 -0
- package/dist/overlay/blanket.js.map +1 -0
- package/dist/overlay/drawer.css +369 -0
- package/dist/overlay/drawer.js +275 -0
- package/dist/overlay/drawer.js.map +1 -0
- package/dist/overlay/index.js +7 -0
- package/dist/overlay/index.js.map +1 -0
- package/dist/overlay/modal.css +209 -0
- package/dist/overlay/modal.js +269 -0
- package/dist/overlay/modal.js.map +1 -0
- package/dist/overlay/popover.css +210 -0
- package/dist/overlay/popover.js +396 -0
- package/dist/overlay/popover.js.map +1 -0
- package/dist/overlay/toast.css +300 -0
- package/dist/overlay/toast.js +123 -0
- package/dist/overlay/toast.js.map +1 -0
- package/dist/overlay/tooltip.css +246 -0
- package/dist/overlay/tooltip.js +368 -0
- package/dist/overlay/tooltip.js.map +1 -0
- package/dist/services/index.js +2 -0
- package/dist/services/index.js.map +1 -0
- package/dist/services/toast.js +162 -0
- package/dist/services/toast.js.map +1 -0
- package/dist/skeleton-CL5Pcwrk.js +3 -0
- package/dist/skeleton-CL5Pcwrk.js.map +1 -0
- package/dist/status/badge.css +218 -0
- package/dist/status/badge.js +38 -0
- package/dist/status/badge.js.map +1 -0
- package/dist/status/index.js +8 -0
- package/dist/status/index.js.map +1 -0
- package/dist/status/skeleton-avatar.js +29 -0
- package/dist/status/skeleton-avatar.js.map +1 -0
- package/dist/status/skeleton-button.js +25 -0
- package/dist/status/skeleton-button.js.map +1 -0
- package/dist/status/skeleton-image.js +31 -0
- package/dist/status/skeleton-image.js.map +1 -0
- package/dist/status/skeleton-text.js +41 -0
- package/dist/status/skeleton-text.js.map +1 -0
- package/dist/status/skeleton.css +185 -0
- package/dist/status/skeleton.js +44 -0
- package/dist/status/skeleton.js.map +1 -0
- package/dist/status/tag.css +352 -0
- package/dist/status/tag.js +81 -0
- package/dist/status/tag.js.map +1 -0
- package/dist/styles/animations.css +11 -0
- package/dist/styles/base/typography.css +47 -0
- package/dist/styles/ember-promise-modals.css +43 -0
- package/dist/styles/primitive/colors.css +86 -0
- package/dist/styles/primitive/effects.css +29 -0
- package/dist/styles/primitive/fonts.css +19 -0
- package/dist/styles/primitive/motion.css +18 -0
- package/dist/styles/primitive/shape.css +17 -0
- package/dist/styles/primitive/spacing.css +29 -0
- package/dist/styles/primitive/typography.css +45 -0
- package/dist/styles/primitive/z-index.css +14 -0
- package/dist/styles/semantic/colors.css +155 -0
- package/dist/styles/semantic/component.css +0 -0
- package/dist/styles/semantic/effects.css +17 -0
- package/dist/styles/semantic/motion.css +10 -0
- package/dist/styles/semantic/shape.css +20 -0
- package/dist/styles/semantic/sizing.css +53 -0
- package/dist/styles/semantic/spacing.css +32 -0
- package/dist/styles/semantic/typography.css +32 -0
- package/dist/styles/tokens.css +31 -0
- package/dist/styles.css +710 -0
- package/dist/template-registry.js +2 -0
- package/dist/template-registry.js.map +1 -0
- package/dist/types/design-system.js +2 -0
- package/dist/types/design-system.js.map +1 -0
- package/dist/typography/heading-css-8850735eabc2efb34f15240b852c99e7.css +99 -0
- package/dist/typography/heading.js +80 -0
- package/dist/typography/heading.js.map +1 -0
- package/dist/typography/index.js +3 -0
- package/dist/typography/index.js.map +1 -0
- package/dist/typography/text-css-73e03f1b750b32d7064d4ef87562289c.css +143 -0
- package/dist/typography/text.js +76 -0
- package/dist/typography/text.js.map +1 -0
- package/dist/ui/index.js +3 -0
- package/dist/ui/index.js.map +1 -0
- package/package.json +218 -0
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
import "./date-picker.css"
|
|
2
|
+
import Component from '@glimmer/component';
|
|
3
|
+
import { tracked } from '@glimmer/tracking';
|
|
4
|
+
import { on } from '@ember/modifier';
|
|
5
|
+
import { modifier } from 'ember-modifier';
|
|
6
|
+
import { guidFor } from '@ember/object/internals';
|
|
7
|
+
import { isBefore, isAfter, isSameDay, isValid, format, parse } from 'date-fns';
|
|
8
|
+
import Popover from '../overlay/popover.js';
|
|
9
|
+
import Icon from '../media/icon.js';
|
|
10
|
+
import { Calendar as Calendar$1, X } from 'lucide';
|
|
11
|
+
import Calendar from './calendar.js';
|
|
12
|
+
import { precompileTemplate } from '@ember/template-compilation';
|
|
13
|
+
import { setComponentTemplate } from '@ember/component';
|
|
14
|
+
import { g, i } from 'decorator-transforms/runtime';
|
|
15
|
+
|
|
16
|
+
;
|
|
17
|
+
|
|
18
|
+
// ============================================================================
|
|
19
|
+
// Date Parsing Utilities
|
|
20
|
+
// ============================================================================
|
|
21
|
+
/** Supported input formats for parsing user input */
|
|
22
|
+
const PARSE_FORMATS = ['dd/MM/yyyy', 'dd-MM-yyyy', 'd/M/yyyy', 'd-M-yyyy', 'yyyy-MM-dd', 'dd.MM.yyyy', 'd.M.yyyy'];
|
|
23
|
+
/**
|
|
24
|
+
* Try to parse a date string using multiple formats
|
|
25
|
+
*/
|
|
26
|
+
function parseDateString(input) {
|
|
27
|
+
if (!input || !input.trim()) return null;
|
|
28
|
+
const trimmed = input.trim();
|
|
29
|
+
// Try each format until one works
|
|
30
|
+
for (const fmt of PARSE_FORMATS) {
|
|
31
|
+
try {
|
|
32
|
+
const parsed = parse(trimmed, fmt, new Date());
|
|
33
|
+
if (isValid(parsed)) {
|
|
34
|
+
return parsed;
|
|
35
|
+
}
|
|
36
|
+
} catch {
|
|
37
|
+
// Continue to next format
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Format a date for display
|
|
44
|
+
*/
|
|
45
|
+
function formatDate(date, dateFormat) {
|
|
46
|
+
if (!date || !isValid(date)) return '';
|
|
47
|
+
return format(date, dateFormat);
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Format a date for form submission (ISO format)
|
|
51
|
+
*/
|
|
52
|
+
function formatDateForSubmission(date) {
|
|
53
|
+
if (!date || !isValid(date)) return '';
|
|
54
|
+
return format(date, 'yyyy-MM-dd');
|
|
55
|
+
}
|
|
56
|
+
// ============================================================================
|
|
57
|
+
// Main Component
|
|
58
|
+
// ============================================================================
|
|
59
|
+
let datePickerIdCounter = 0;
|
|
60
|
+
class DatePicker extends Component {
|
|
61
|
+
static {
|
|
62
|
+
g(this.prototype, "isOpen", [tracked], function () {
|
|
63
|
+
return false;
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
#isOpen = (i(this, "isOpen"), void 0);
|
|
67
|
+
static {
|
|
68
|
+
g(this.prototype, "inputValue", [tracked], function () {
|
|
69
|
+
return '';
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
#inputValue = (i(this, "inputValue"), void 0);
|
|
73
|
+
static {
|
|
74
|
+
g(this.prototype, "internalValue", [tracked], function () {
|
|
75
|
+
return null;
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
#internalValue = (i(this, "internalValue"), void 0);
|
|
79
|
+
static {
|
|
80
|
+
g(this.prototype, "hasInternalValueChanged", [tracked], function () {
|
|
81
|
+
return false;
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
#hasInternalValueChanged = (i(this, "hasInternalValueChanged"), void 0);
|
|
85
|
+
static {
|
|
86
|
+
g(this.prototype, "skipInputReset", [tracked], function () {
|
|
87
|
+
return false;
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
#skipInputReset = (i(this, "skipInputReset"), void 0);
|
|
91
|
+
/** Flag to prevent closeDropdown from resetting inputValue after a successful typed submission */
|
|
92
|
+
calendarId = `date-picker-calendar-${++datePickerIdCounter}`;
|
|
93
|
+
inputElement = null;
|
|
94
|
+
get componentId() {
|
|
95
|
+
return this.args.id || guidFor(this);
|
|
96
|
+
}
|
|
97
|
+
get dateFormat() {
|
|
98
|
+
return this.args.format ?? 'dd/MM/yyyy';
|
|
99
|
+
}
|
|
100
|
+
get closeOnSelect() {
|
|
101
|
+
return this.args.closeOnSelect ?? true;
|
|
102
|
+
}
|
|
103
|
+
get allowTextInput() {
|
|
104
|
+
return this.args.allowTextInput ?? true;
|
|
105
|
+
}
|
|
106
|
+
get showIcon() {
|
|
107
|
+
return this.args.showIcon ?? true;
|
|
108
|
+
}
|
|
109
|
+
get clearable() {
|
|
110
|
+
return this.args.clearable ?? false;
|
|
111
|
+
}
|
|
112
|
+
get weekStartsOn() {
|
|
113
|
+
return this.args.weekStartsOn ?? 0;
|
|
114
|
+
}
|
|
115
|
+
get showOutsideDays() {
|
|
116
|
+
return this.args.showOutsideDays ?? true;
|
|
117
|
+
}
|
|
118
|
+
get showToday() {
|
|
119
|
+
return this.args.showToday ?? true;
|
|
120
|
+
}
|
|
121
|
+
/** Check if component is controlled */
|
|
122
|
+
get isControlled() {
|
|
123
|
+
return this.args.value !== undefined;
|
|
124
|
+
}
|
|
125
|
+
/** Get current selected value (controlled or uncontrolled) */
|
|
126
|
+
get selectedValue() {
|
|
127
|
+
if (this.isControlled) {
|
|
128
|
+
return this.args.value ?? null;
|
|
129
|
+
}
|
|
130
|
+
if (this.args.defaultValue !== undefined && !this.hasInternalValueChanged) {
|
|
131
|
+
return this.args.defaultValue;
|
|
132
|
+
}
|
|
133
|
+
return this.internalValue;
|
|
134
|
+
}
|
|
135
|
+
/** Value for Calendar component (converts null to undefined) */
|
|
136
|
+
get calendarValue() {
|
|
137
|
+
return this.selectedValue ?? undefined;
|
|
138
|
+
}
|
|
139
|
+
get displayValue() {
|
|
140
|
+
return formatDate(this.selectedValue, this.dateFormat);
|
|
141
|
+
}
|
|
142
|
+
/** The value to show in the input field */
|
|
143
|
+
get inputDisplayValue() {
|
|
144
|
+
// When dropdown is open, show what user is typing
|
|
145
|
+
if (this.isOpen) {
|
|
146
|
+
return this.inputValue;
|
|
147
|
+
}
|
|
148
|
+
// After submitting a typed value, show the submitted value until args.value syncs
|
|
149
|
+
if (this.skipInputReset) {
|
|
150
|
+
return this.inputValue;
|
|
151
|
+
}
|
|
152
|
+
// Otherwise show the current selected value
|
|
153
|
+
return this.displayValue;
|
|
154
|
+
}
|
|
155
|
+
get placeholder() {
|
|
156
|
+
return this.args.placeholder ?? this.dateFormat.toLowerCase();
|
|
157
|
+
}
|
|
158
|
+
get showClearButton() {
|
|
159
|
+
return this.clearable && this.selectedValue !== null && !this.args.isDisabled && !this.args.isReadOnly;
|
|
160
|
+
}
|
|
161
|
+
get ariaExpanded() {
|
|
162
|
+
return this.isOpen ? 'true' : 'false';
|
|
163
|
+
}
|
|
164
|
+
get ariaRequired() {
|
|
165
|
+
return this.args.isRequired ? 'true' : undefined;
|
|
166
|
+
}
|
|
167
|
+
get ariaInvalid() {
|
|
168
|
+
return this.args.isInvalid ? 'true' : undefined;
|
|
169
|
+
}
|
|
170
|
+
// ============================================================================
|
|
171
|
+
// Modifiers
|
|
172
|
+
// ============================================================================
|
|
173
|
+
setupInput = modifier(element => {
|
|
174
|
+
this.inputElement = element;
|
|
175
|
+
return () => {
|
|
176
|
+
this.inputElement = null;
|
|
177
|
+
};
|
|
178
|
+
});
|
|
179
|
+
// ============================================================================
|
|
180
|
+
// Event Handlers
|
|
181
|
+
// ============================================================================
|
|
182
|
+
handleInputClick = event => {
|
|
183
|
+
// Stop propagation to prevent the Popover trigger from toggling
|
|
184
|
+
event.stopPropagation();
|
|
185
|
+
if (!this.args.isDisabled && !this.args.isReadOnly) {
|
|
186
|
+
this.openDropdown();
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
handleInputFocus = event => {
|
|
190
|
+
this.args.onFocus?.(event);
|
|
191
|
+
};
|
|
192
|
+
handleInputBlur = event => {
|
|
193
|
+
// Parse and validate text input on blur
|
|
194
|
+
if (this.allowTextInput && this.inputValue !== this.displayValue) {
|
|
195
|
+
this.parseAndSubmitTypedValue();
|
|
196
|
+
}
|
|
197
|
+
this.args.onBlur?.(event);
|
|
198
|
+
};
|
|
199
|
+
/** Parse the typed input value, validate, and submit */
|
|
200
|
+
parseAndSubmitTypedValue() {
|
|
201
|
+
// If input is empty, clear the value
|
|
202
|
+
if (!this.inputValue.trim()) {
|
|
203
|
+
this.setValue(null);
|
|
204
|
+
return true;
|
|
205
|
+
}
|
|
206
|
+
const parsed = parseDateString(this.inputValue);
|
|
207
|
+
if (parsed) {
|
|
208
|
+
// Check constraints
|
|
209
|
+
let isValidDate = true;
|
|
210
|
+
if (this.args.minDate && isBefore(parsed, this.args.minDate)) {
|
|
211
|
+
isValidDate = false;
|
|
212
|
+
}
|
|
213
|
+
if (this.args.maxDate && isAfter(parsed, this.args.maxDate)) {
|
|
214
|
+
isValidDate = false;
|
|
215
|
+
}
|
|
216
|
+
// Check disabled dates
|
|
217
|
+
if (this.args.disabledDates) {
|
|
218
|
+
if (Array.isArray(this.args.disabledDates)) {
|
|
219
|
+
if (this.args.disabledDates.some(d => isSameDay(d, parsed))) {
|
|
220
|
+
isValidDate = false;
|
|
221
|
+
}
|
|
222
|
+
} else if (this.args.disabledDates(parsed)) {
|
|
223
|
+
isValidDate = false;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
// Check disabled days of week
|
|
227
|
+
if (this.args.disabledDaysOfWeek?.includes(parsed.getDay())) {
|
|
228
|
+
isValidDate = false;
|
|
229
|
+
}
|
|
230
|
+
if (isValidDate) {
|
|
231
|
+
this.setValue(parsed);
|
|
232
|
+
// Update inputValue to the formatted new value immediately
|
|
233
|
+
this.inputValue = formatDate(parsed, this.dateFormat);
|
|
234
|
+
// Prevent closeDropdown from resetting inputValue
|
|
235
|
+
this.skipInputReset = true;
|
|
236
|
+
return true;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
// Reset input to display value on invalid input
|
|
240
|
+
this.inputValue = this.displayValue;
|
|
241
|
+
return false;
|
|
242
|
+
}
|
|
243
|
+
handleInputChange = event => {
|
|
244
|
+
const target = event.target;
|
|
245
|
+
this.inputValue = target.value;
|
|
246
|
+
};
|
|
247
|
+
handleKeyDown = event => {
|
|
248
|
+
if (this.args.isDisabled) return;
|
|
249
|
+
switch (event.key) {
|
|
250
|
+
case 'ArrowDown':
|
|
251
|
+
event.preventDefault();
|
|
252
|
+
event.stopPropagation();
|
|
253
|
+
if (!this.isOpen) {
|
|
254
|
+
this.openDropdown();
|
|
255
|
+
}
|
|
256
|
+
break;
|
|
257
|
+
case 'ArrowUp':
|
|
258
|
+
event.preventDefault();
|
|
259
|
+
event.stopPropagation();
|
|
260
|
+
if (!this.isOpen) {
|
|
261
|
+
this.openDropdown();
|
|
262
|
+
}
|
|
263
|
+
break;
|
|
264
|
+
case 'Enter':
|
|
265
|
+
event.preventDefault();
|
|
266
|
+
event.stopPropagation();
|
|
267
|
+
// If user typed a custom value, parse and submit it
|
|
268
|
+
if (this.allowTextInput && this.inputValue !== this.displayValue) {
|
|
269
|
+
this.parseAndSubmitTypedValue();
|
|
270
|
+
this.closeDropdown();
|
|
271
|
+
} else if (!this.isOpen) {
|
|
272
|
+
this.openDropdown();
|
|
273
|
+
}
|
|
274
|
+
break;
|
|
275
|
+
case 'Escape':
|
|
276
|
+
if (this.isOpen) {
|
|
277
|
+
event.preventDefault();
|
|
278
|
+
event.stopPropagation();
|
|
279
|
+
this.closeDropdown();
|
|
280
|
+
}
|
|
281
|
+
break;
|
|
282
|
+
case 'Tab':
|
|
283
|
+
// Parse typed value before closing
|
|
284
|
+
if (this.allowTextInput && this.inputValue !== this.displayValue) {
|
|
285
|
+
this.parseAndSubmitTypedValue();
|
|
286
|
+
}
|
|
287
|
+
if (this.isOpen) {
|
|
288
|
+
this.closeDropdown();
|
|
289
|
+
}
|
|
290
|
+
break;
|
|
291
|
+
}
|
|
292
|
+
};
|
|
293
|
+
handleCalendarSelect = date => {
|
|
294
|
+
this.setValue(date);
|
|
295
|
+
if (this.closeOnSelect) {
|
|
296
|
+
this.closeDropdown();
|
|
297
|
+
this.inputElement?.focus();
|
|
298
|
+
}
|
|
299
|
+
};
|
|
300
|
+
handleClearClick = event => {
|
|
301
|
+
event.preventDefault();
|
|
302
|
+
event.stopPropagation();
|
|
303
|
+
this.setValue(null);
|
|
304
|
+
this.inputElement?.focus();
|
|
305
|
+
};
|
|
306
|
+
// ============================================================================
|
|
307
|
+
// Methods
|
|
308
|
+
// ============================================================================
|
|
309
|
+
setValue(date) {
|
|
310
|
+
if (!this.isControlled) {
|
|
311
|
+
this.hasInternalValueChanged = true;
|
|
312
|
+
this.internalValue = date;
|
|
313
|
+
}
|
|
314
|
+
this.args.onChange?.(date);
|
|
315
|
+
this.inputValue = formatDate(date, this.dateFormat);
|
|
316
|
+
}
|
|
317
|
+
openDropdown = () => {
|
|
318
|
+
if (this.args.isDisabled || this.args.isReadOnly) return;
|
|
319
|
+
this.isOpen = true;
|
|
320
|
+
this.skipInputReset = false;
|
|
321
|
+
this.inputValue = this.displayValue;
|
|
322
|
+
this.args.onOpenChange?.(true);
|
|
323
|
+
};
|
|
324
|
+
closeDropdown = () => {
|
|
325
|
+
this.isOpen = false;
|
|
326
|
+
// Only reset inputValue if we didn't just submit a typed value
|
|
327
|
+
if (!this.skipInputReset) {
|
|
328
|
+
this.inputValue = this.displayValue;
|
|
329
|
+
}
|
|
330
|
+
this.args.onOpenChange?.(false);
|
|
331
|
+
};
|
|
332
|
+
toggleDropdown = () => {
|
|
333
|
+
if (this.isOpen) {
|
|
334
|
+
this.closeDropdown();
|
|
335
|
+
} else {
|
|
336
|
+
this.openDropdown();
|
|
337
|
+
}
|
|
338
|
+
};
|
|
339
|
+
handleOpenChange = open => {
|
|
340
|
+
if (open) {
|
|
341
|
+
this.openDropdown();
|
|
342
|
+
} else {
|
|
343
|
+
this.closeDropdown();
|
|
344
|
+
}
|
|
345
|
+
};
|
|
346
|
+
// ============================================================================
|
|
347
|
+
// Template
|
|
348
|
+
// ============================================================================
|
|
349
|
+
static {
|
|
350
|
+
setComponentTemplate(precompileTemplate("<Popover @trigger=\"click\" @open={{this.isOpen}} @onOpenChange={{this.handleOpenChange}} @dismissOnClickOutside={{true}} @dismissOnEscape={{true}} class=\"date-picker_e103d84e0\" data-invalid={{if @isInvalid \"true\"}} data-disabled={{if @isDisabled \"true\"}} data-readonly={{if @isReadOnly \"true\"}} data-open={{if this.isOpen \"true\"}} data-test-date-picker ...attributes as |popover|>\n {{!-- Hidden input for form submission --}}\n {{#if @name}}\n <input type=\"hidden\" name={{@name}} value={{formatDateForSubmission this.selectedValue}} data-test-date-picker-hidden-input />\n {{/if}}\n\n <popover.Trigger class=\"date-picker-trigger-wrapper_e103d84e0\" disabled={{@isDisabled}} data-test-date-picker-trigger-wrapper>\n <div class=\"date-picker-input-wrapper_e103d84e0\">\n {{!-- template-lint-disable no-redundant-role --}}\n <input id={{this.componentId}} type=\"text\" role=\"combobox\" class=\"date-picker-input_e103d84e0\" aria-haspopup=\"dialog\" aria-expanded={{this.ariaExpanded}} aria-controls={{this.calendarId}} aria-required={{this.ariaRequired}} aria-invalid={{this.ariaInvalid}} aria-describedby={{@aria-describedby}} placeholder={{this.placeholder}} value={{this.inputDisplayValue}} disabled={{@isDisabled}} readonly={{if this.allowTextInput @isReadOnly true}} autocomplete=\"off\" {{this.setupInput}} {{on \"click\" this.handleInputClick}} {{on \"focus\" this.handleInputFocus}} {{on \"blur\" this.handleInputBlur}} {{on \"input\" this.handleInputChange}} {{on \"keydown\" this.handleKeyDown}} data-test-date-picker-input />\n\n {{#if this.showClearButton}}\n <button type=\"button\" class=\"date-picker-clear_e103d84e0\" aria-label=\"Clear date\" {{on \"click\" this.handleClearClick}} data-test-date-picker-clear>\n <Icon @icon={{X}} @size=\"sm\" />\n </button>\n {{/if}}\n\n {{#if this.showIcon}}\n <span class=\"date-picker-trigger_e103d84e0\" aria-hidden=\"true\" data-test-date-picker-trigger>\n <Icon @icon={{CalendarIcon}} @size=\"sm\" />\n </span>\n {{/if}}\n </div>\n </popover.Trigger>\n\n <popover.Content @side=\"bottom\" @align=\"start\" @sideOffset={{4}} @animation=\"scale\" class=\"date-picker-popover-content_e103d84e0\" aria-label=\"Choose date\">\n <Calendar id={{this.calendarId}} @mode=\"single\" @value={{this.calendarValue}} @onChange={{this.handleCalendarSelect}} @minDate={{@minDate}} @maxDate={{@maxDate}} @disabledDates={{@disabledDates}} @disabledDaysOfWeek={{@disabledDaysOfWeek}} @weekStartsOn={{this.weekStartsOn}} @showOutsideDays={{this.showOutsideDays}} @showToday={{this.showToday}} data-test-date-picker-calendar />\n </popover.Content>\n</Popover>", {
|
|
351
|
+
strictMode: true,
|
|
352
|
+
scope: () => ({
|
|
353
|
+
Popover,
|
|
354
|
+
formatDateForSubmission,
|
|
355
|
+
on,
|
|
356
|
+
Icon,
|
|
357
|
+
X,
|
|
358
|
+
CalendarIcon: Calendar$1,
|
|
359
|
+
Calendar
|
|
360
|
+
})
|
|
361
|
+
}), this);
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
export { DatePicker as default, formatDate, formatDateForSubmission, parseDateString };
|
|
366
|
+
//# sourceMappingURL=date-picker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-picker.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import Control from './control.js';
|
|
3
|
+
import DateRangePicker from './date-range-picker.js';
|
|
4
|
+
import { precompileTemplate } from '@ember/template-compilation';
|
|
5
|
+
import { setComponentTemplate } from '@ember/component';
|
|
6
|
+
|
|
7
|
+
class DateRangePickerField extends Component {
|
|
8
|
+
get isInvalid() {
|
|
9
|
+
return !!this.args.error;
|
|
10
|
+
}
|
|
11
|
+
get isLabelHidden() {
|
|
12
|
+
return this.args.labelVisibility === 'hidden';
|
|
13
|
+
}
|
|
14
|
+
/** Build aria-describedby from the control's help text and error message IDs */
|
|
15
|
+
getAriaDescribedBy = controlId => {
|
|
16
|
+
const parts = [];
|
|
17
|
+
if (this.args.helpText) {
|
|
18
|
+
parts.push(`${controlId}-help-text`);
|
|
19
|
+
}
|
|
20
|
+
if (this.args.error) {
|
|
21
|
+
parts.push(`${controlId}-error-message`);
|
|
22
|
+
}
|
|
23
|
+
return parts.length > 0 ? parts.join(' ') : undefined;
|
|
24
|
+
};
|
|
25
|
+
static {
|
|
26
|
+
setComponentTemplate(precompileTemplate("<Control @isInvalid={{this.isInvalid}} @isDisabled={{@isDisabled}} @isRequired={{@isRequired}} @isReadOnly={{@isReadOnly}} ...attributes as |ctrl|>\n <ctrl.Label @isVisuallyHidden={{this.isLabelHidden}}>\n {{@label}}\n </ctrl.Label>\n\n <DateRangePicker @id={{ctrl.id}} @name={{@name}} @value={{@value}} @defaultValue={{@defaultValue}} @startPlaceholder={{@startPlaceholder}} @endPlaceholder={{@endPlaceholder}} @format={{@format}} @minDate={{@minDate}} @maxDate={{@maxDate}} @disabledDates={{@disabledDates}} @disabledDaysOfWeek={{@disabledDaysOfWeek}} @weekStartsOn={{@weekStartsOn}} @showOutsideDays={{@showOutsideDays}} @showToday={{@showToday}} @presets={{@presets}} @allowTextInput={{@allowTextInput}} @showIcon={{@showIcon}} @clearable={{@clearable}} @isDisabled={{@isDisabled}} @isInvalid={{this.isInvalid}} @isRequired={{@isRequired}} @isReadOnly={{@isReadOnly}} @aria-describedby={{this.getAriaDescribedBy ctrl.id}} @onChange={{@onChange}} @onBlur={{@onBlur}} @onFocus={{@onFocus}} @onOpenChange={{@onOpenChange}} data-test-date-range-picker-field />\n\n {{#if @helpText}}\n <ctrl.HelpText>{{@helpText}}</ctrl.HelpText>\n {{/if}}\n\n {{#if @error}}\n <ctrl.ErrorMessage>{{@error}}</ctrl.ErrorMessage>\n {{/if}}\n</Control>", {
|
|
27
|
+
strictMode: true,
|
|
28
|
+
scope: () => ({
|
|
29
|
+
Control,
|
|
30
|
+
DateRangePicker
|
|
31
|
+
})
|
|
32
|
+
}), this);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export { DateRangePickerField as default };
|
|
37
|
+
//# sourceMappingURL=date-range-picker-field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-range-picker-field.js","sources":["../../src/form/date-range-picker-field.gts"],"sourcesContent":["import Component from '@glimmer/component';\n\nimport Control from './control.gts';\nimport DateRangePicker, {\n type DateFormat,\n type DateRangePreset,\n type DateRange,\n} from './date-range-picker.gts';\n\nexport type LabelVisibility = 'visible' | 'hidden';\n\nexport interface DateRangePickerFieldSignature {\n Element: HTMLDivElement;\n Args: {\n /** Label text (required) */\n label: string;\n\n /** Current selected date range value */\n value?: DateRange | null;\n\n /** Default value (uncontrolled) */\n defaultValue?: DateRange | null;\n\n /** Placeholder text for start date */\n startPlaceholder?: string;\n\n /** Placeholder text for end date */\n endPlaceholder?: string;\n\n /** Date format for display and parsing (date-fns format) */\n format?: DateFormat;\n\n /** Minimum allowed date */\n minDate?: Date;\n\n /** Maximum allowed date */\n maxDate?: Date;\n\n /** Array of disabled dates or a function to check if a date is disabled */\n disabledDates?: Date[] | ((date: Date) => boolean);\n\n /** Array of day numbers (0-6, Sunday-Saturday) to disable */\n disabledDaysOfWeek?: number[];\n\n /** Day to start the week on (0 = Sunday, 1 = Monday, etc.) */\n weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6;\n\n /** Show days from adjacent months */\n showOutsideDays?: boolean;\n\n /** Show today indicator */\n showToday?: boolean;\n\n /** Preset date range options */\n presets?: DateRangePreset[];\n\n /** Allow typing in the inputs */\n allowTextInput?: boolean;\n\n /** Show calendar icon */\n showIcon?: boolean;\n\n /** Show clear button when value is selected */\n clearable?: boolean;\n\n /** Help text displayed below the input */\n helpText?: string;\n\n /** Error message (also sets invalid state) */\n error?: string;\n\n /** Field is required */\n isRequired?: boolean;\n\n /** Field is disabled */\n isDisabled?: boolean;\n\n /** Field is read-only */\n isReadOnly?: boolean;\n\n /** Label visibility */\n labelVisibility?: LabelVisibility;\n\n /** Input name prefix for forms (creates {name}_start and {name}_end) */\n name?: string;\n\n /** Change event handler */\n onChange?: (value: DateRange | null) => void;\n\n /** Blur event handler */\n onBlur?: (event: FocusEvent) => void;\n\n /** Focus event handler */\n onFocus?: (event: FocusEvent) => void;\n\n /** Open state change handler */\n onOpenChange?: (open: boolean) => void;\n };\n}\n\nexport default class DateRangePickerField extends Component<DateRangePickerFieldSignature> {\n get isInvalid(): boolean {\n return !!this.args.error;\n }\n\n get isLabelHidden(): boolean {\n return this.args.labelVisibility === 'hidden';\n }\n\n /** Build aria-describedby from the control's help text and error message IDs */\n getAriaDescribedBy = (controlId: string): string | undefined => {\n const parts: string[] = [];\n if (this.args.helpText) {\n parts.push(`${controlId}-help-text`);\n }\n if (this.args.error) {\n parts.push(`${controlId}-error-message`);\n }\n return parts.length > 0 ? parts.join(' ') : undefined;\n };\n\n <template>\n <Control\n @isInvalid={{this.isInvalid}}\n @isDisabled={{@isDisabled}}\n @isRequired={{@isRequired}}\n @isReadOnly={{@isReadOnly}}\n ...attributes\n as |ctrl|\n >\n <ctrl.Label @isVisuallyHidden={{this.isLabelHidden}}>\n {{@label}}\n </ctrl.Label>\n\n <DateRangePicker\n @id={{ctrl.id}}\n @name={{@name}}\n @value={{@value}}\n @defaultValue={{@defaultValue}}\n @startPlaceholder={{@startPlaceholder}}\n @endPlaceholder={{@endPlaceholder}}\n @format={{@format}}\n @minDate={{@minDate}}\n @maxDate={{@maxDate}}\n @disabledDates={{@disabledDates}}\n @disabledDaysOfWeek={{@disabledDaysOfWeek}}\n @weekStartsOn={{@weekStartsOn}}\n @showOutsideDays={{@showOutsideDays}}\n @showToday={{@showToday}}\n @presets={{@presets}}\n @allowTextInput={{@allowTextInput}}\n @showIcon={{@showIcon}}\n @clearable={{@clearable}}\n @isDisabled={{@isDisabled}}\n @isInvalid={{this.isInvalid}}\n @isRequired={{@isRequired}}\n @isReadOnly={{@isReadOnly}}\n @aria-describedby={{this.getAriaDescribedBy ctrl.id}}\n @onChange={{@onChange}}\n @onBlur={{@onBlur}}\n @onFocus={{@onFocus}}\n @onOpenChange={{@onOpenChange}}\n data-test-date-range-picker-field\n />\n\n {{#if @helpText}}\n <ctrl.HelpText>{{@helpText}}</ctrl.HelpText>\n {{/if}}\n\n {{#if @error}}\n <ctrl.ErrorMessage>{{@error}}</ctrl.ErrorMessage>\n {{/if}}\n </Control>\n </template>\n}\n"],"names":["DateRangePickerField","Component","isInvalid","args","error","isLabelHidden","labelVisibility","getAriaDescribedBy","controlId","parts","helpText","push","length","join","undefined","setComponentTemplate","precompileTemplate","strictMode","scope","Control","DateRangePicker"],"mappings":";;;;;;AAoGe,MAAMA,6BAA6BC,SAAA,CAAU;EAC1D,IAAIC,SAAAA,GAAqB;AACvB,IAAA,OAAO,CAAC,CAAC,IAAI,CAACC,IAAI,CAACC,KAAK;AAC1B,EAAA;EAEA,IAAIC,aAAAA,GAAyB;AAC3B,IAAA,OAAO,IAAI,CAACF,IAAI,CAACG,eAAe,KAAK,QAAA;AACvC,EAAA;AAEA;EACAC,qBAAsBC,SAAiB,IAAqB;IAC1D,MAAMC,KAAa,GAAK,EAAE;AAC1B,IAAA,IAAI,IAAI,CAACN,IAAI,CAACO,QAAQ,EAAE;AACtBD,MAAAA,KAAA,CAAME,IAAI,CAAC,CAAA,EAAGH,SAAA,YAAqB,CAAA;AACrC,IAAA;AACA,IAAA,IAAI,IAAI,CAACL,IAAI,CAACC,KAAK,EAAE;AACnBK,MAAAA,KAAA,CAAME,IAAI,CAAC,CAAA,EAAGH,SAAA,gBAAyB,CAAA;AACzC,IAAA;AACA,IAAA,OAAOC,MAAMG,MAAM,GAAG,IAAIH,KAAA,CAAMI,IAAI,CAAC,GAAA,CAAA,GAAOC,SAAA;EAC9C,CAAA;AAEA,EAAA;IAAAC,oBAAA,CAAAC,kBAAA,CAAA,kuCAAA,EAoDA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,OAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
/* src/form/date-range-picker.css */
|
|
2
|
+
/* Date Range Picker Container */
|
|
3
|
+
.date-range-picker_e973c8cc7 {
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
width: 100%;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/* Trigger Wrapper - Reset button styles from popover.Trigger */
|
|
10
|
+
.date-range-picker-trigger-wrapper_e973c8cc7 {
|
|
11
|
+
display: block;
|
|
12
|
+
width: 100%;
|
|
13
|
+
padding: 0;
|
|
14
|
+
margin: 0;
|
|
15
|
+
border: none;
|
|
16
|
+
background: transparent;
|
|
17
|
+
font: inherit;
|
|
18
|
+
text-align: inherit;
|
|
19
|
+
cursor: text;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.date-range-picker-trigger-wrapper_e973c8cc7:disabled {
|
|
23
|
+
cursor: not-allowed;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* Input Wrapper */
|
|
27
|
+
.date-range-picker-input-wrapper_e973c8cc7 {
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: stretch;
|
|
30
|
+
height: var(--input-height-md);
|
|
31
|
+
border: var(--border-width-1) solid var(--color-border-control);
|
|
32
|
+
border-radius: var(--radius-md);
|
|
33
|
+
background-color: var(--color-bg);
|
|
34
|
+
font-size: var(--font-size-md);
|
|
35
|
+
transition:
|
|
36
|
+
border-color var(--transition-fast),
|
|
37
|
+
box-shadow var(--transition-fast);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* Focus state */
|
|
41
|
+
.date-range-picker-input-wrapper_e973c8cc7:focus-within {
|
|
42
|
+
border-color: var(--color-border-focus);
|
|
43
|
+
box-shadow: var(--focus-ring);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* Invalid state */
|
|
47
|
+
.date-range-picker_e973c8cc7[data-invalid="true"] .date-range-picker-input-wrapper_e973c8cc7 {
|
|
48
|
+
border-color: var(--color-border-critical);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.date-range-picker_e973c8cc7[data-invalid="true"]
|
|
52
|
+
.date-range-picker-input-wrapper_e973c8cc7:focus-within {
|
|
53
|
+
box-shadow: var(--focus-ring-critical);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* Disabled state */
|
|
57
|
+
.date-range-picker_e973c8cc7[data-disabled="true"] .date-range-picker-input-wrapper_e973c8cc7 {
|
|
58
|
+
background-color: var(--color-bg-disabled);
|
|
59
|
+
border-color: var(--color-border-control-disabled);
|
|
60
|
+
cursor: not-allowed;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* Read-only state */
|
|
64
|
+
.date-range-picker_e973c8cc7[data-readonly="true"] .date-range-picker-input-wrapper_e973c8cc7 {
|
|
65
|
+
background-color: var(--color-bg-disabled);
|
|
66
|
+
border-color: var(--color-border-control-readonly);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* Calendar Icon (prefix) */
|
|
70
|
+
.date-range-picker-icon_e973c8cc7 {
|
|
71
|
+
display: flex;
|
|
72
|
+
align-items: center;
|
|
73
|
+
padding-left: var(--spacing-3);
|
|
74
|
+
color: var(--color-icon-secondary);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.date-range-picker_e973c8cc7[data-disabled="true"] .date-range-picker-icon_e973c8cc7 {
|
|
78
|
+
color: var(--color-icon-disabled);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* Input Elements */
|
|
82
|
+
.date-range-picker-input_e973c8cc7 {
|
|
83
|
+
flex: 1;
|
|
84
|
+
min-width: 0;
|
|
85
|
+
height: 100%;
|
|
86
|
+
padding: 0 var(--spacing-2);
|
|
87
|
+
border: none;
|
|
88
|
+
background: transparent;
|
|
89
|
+
color: var(--color-text);
|
|
90
|
+
font-family: var(--font-family-mono);
|
|
91
|
+
font-size: inherit;
|
|
92
|
+
line-height: var(--line-height-tight);
|
|
93
|
+
text-align: center;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.date-range-picker-input_e973c8cc7:focus {
|
|
97
|
+
outline: none;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.date-range-picker-input_e973c8cc7::placeholder {
|
|
101
|
+
color: var(--color-text-tertiary);
|
|
102
|
+
font-family: var(--font-family-sans);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.date-range-picker-input_e973c8cc7:disabled {
|
|
106
|
+
color: var(--color-text-disabled);
|
|
107
|
+
cursor: not-allowed;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.date-range-picker-input_e973c8cc7:read-only {
|
|
111
|
+
cursor: default;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/* Active input highlight */
|
|
115
|
+
.date-range-picker-input_e973c8cc7[data-active="true"] {
|
|
116
|
+
background-color: color-mix(
|
|
117
|
+
in srgb,
|
|
118
|
+
var(--color-bg-fill-accent) 10%,
|
|
119
|
+
transparent
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/* Separator */
|
|
124
|
+
.date-range-picker-separator_e973c8cc7 {
|
|
125
|
+
display: flex;
|
|
126
|
+
align-items: center;
|
|
127
|
+
justify-content: center;
|
|
128
|
+
padding: 0 var(--spacing-1);
|
|
129
|
+
color: var(--color-icon-secondary);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.date-range-picker_e973c8cc7[data-disabled="true"] .date-range-picker-separator_e973c8cc7 {
|
|
133
|
+
color: var(--color-icon-disabled);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/* Clear Button */
|
|
137
|
+
.date-range-picker-clear_e973c8cc7 {
|
|
138
|
+
display: flex;
|
|
139
|
+
align-items: center;
|
|
140
|
+
justify-content: center;
|
|
141
|
+
width: 32px;
|
|
142
|
+
padding: 0;
|
|
143
|
+
border: none;
|
|
144
|
+
background: transparent;
|
|
145
|
+
color: var(--color-icon-secondary);
|
|
146
|
+
cursor: pointer;
|
|
147
|
+
transition:
|
|
148
|
+
background-color var(--transition-fast),
|
|
149
|
+
color var(--transition-fast);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.date-range-picker-clear_e973c8cc7:hover {
|
|
153
|
+
color: var(--color-icon-primary);
|
|
154
|
+
background-color: var(--color-bg-surface-hover);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.date-range-picker-clear_e973c8cc7:focus-visible {
|
|
158
|
+
outline: none;
|
|
159
|
+
box-shadow: var(--focus-ring);
|
|
160
|
+
border-radius: var(--radius-sm);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/* Dropdown Trigger Icon */
|
|
164
|
+
.date-range-picker-trigger_e973c8cc7 {
|
|
165
|
+
display: flex;
|
|
166
|
+
align-items: center;
|
|
167
|
+
justify-content: center;
|
|
168
|
+
width: 32px;
|
|
169
|
+
border-left: var(--border-width-1) solid var(--color-border-control);
|
|
170
|
+
color: var(--color-icon-secondary);
|
|
171
|
+
cursor: pointer;
|
|
172
|
+
border-top-right-radius: calc(var(--radius-md) - 1px);
|
|
173
|
+
border-bottom-right-radius: calc(var(--radius-md) - 1px);
|
|
174
|
+
transition:
|
|
175
|
+
background-color var(--transition-fast),
|
|
176
|
+
color var(--transition-fast);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.date-range-picker-trigger_e973c8cc7:hover {
|
|
180
|
+
background-color: var(--color-bg-surface-hover);
|
|
181
|
+
color: var(--color-icon-primary);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.date-range-picker-trigger_e973c8cc7:active {
|
|
185
|
+
background-color: var(--color-bg-surface-pressed);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.date-range-picker_e973c8cc7[data-disabled="true"] .date-range-picker-trigger_e973c8cc7 {
|
|
189
|
+
color: var(--color-icon-disabled);
|
|
190
|
+
border-left-color: var(--color-border-control-disabled);
|
|
191
|
+
cursor: not-allowed;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.date-range-picker_e973c8cc7[data-disabled="true"] .date-range-picker-trigger_e973c8cc7:hover {
|
|
195
|
+
background-color: transparent;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.date-range-picker_e973c8cc7[data-invalid="true"] .date-range-picker-trigger_e973c8cc7 {
|
|
199
|
+
border-left-color: var(--color-border-critical);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/* Popover Content */
|
|
203
|
+
.date-range-picker-popover-content_e973c8cc7 {
|
|
204
|
+
padding: 0;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/* Popover Inner - contains presets sidebar and calendar */
|
|
208
|
+
.date-range-picker-popover-inner_e973c8cc7 {
|
|
209
|
+
display: flex;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/* Presets Sidebar */
|
|
213
|
+
.date-range-picker-presets_e973c8cc7 {
|
|
214
|
+
display: flex;
|
|
215
|
+
flex-direction: column;
|
|
216
|
+
gap: var(--spacing-1);
|
|
217
|
+
padding: var(--spacing-3);
|
|
218
|
+
border-right: var(--border-width-1) solid var(--color-border-subtle);
|
|
219
|
+
background-color: var(--color-bg-surface-secondary);
|
|
220
|
+
min-width: 140px;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.date-range-picker-preset_e973c8cc7 {
|
|
224
|
+
display: flex;
|
|
225
|
+
align-items: center;
|
|
226
|
+
padding: var(--spacing-2) var(--spacing-3);
|
|
227
|
+
border: none;
|
|
228
|
+
background: transparent;
|
|
229
|
+
color: var(--color-text);
|
|
230
|
+
font-size: var(--font-size-sm);
|
|
231
|
+
font-family: var(--font-family-sans);
|
|
232
|
+
text-align: left;
|
|
233
|
+
border-radius: var(--radius-sm);
|
|
234
|
+
cursor: pointer;
|
|
235
|
+
transition:
|
|
236
|
+
background-color var(--transition-fast),
|
|
237
|
+
color var(--transition-fast);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.date-range-picker-preset_e973c8cc7:hover {
|
|
241
|
+
background-color: var(--color-bg-fill-interactive-hover);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.date-range-picker-preset_e973c8cc7:focus-visible {
|
|
245
|
+
outline: none;
|
|
246
|
+
box-shadow: var(--focus-ring);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/* Calendar Container */
|
|
250
|
+
.date-range-picker-calendar-container_e973c8cc7 {
|
|
251
|
+
padding: 0;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/* Remove Calendar's own border when inside DateRangePicker popover */
|
|
255
|
+
.date-range-picker-popover-content_e973c8cc7 .calendar_e973c8cc7 {
|
|
256
|
+
border: none;
|
|
257
|
+
border-radius: 0;
|
|
258
|
+
box-shadow: none;
|
|
259
|
+
}
|