@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,139 @@
|
|
|
1
|
+
/* src/form/textarea.css */
|
|
2
|
+
/* Wrapper */
|
|
3
|
+
.textarea-wrapper_eb3566bbf {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
gap: var(--spacing-1);
|
|
7
|
+
width: 100%;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.textarea-wrapper_eb3566bbf[data-full-width="false"] {
|
|
11
|
+
width: auto;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/* Textarea element */
|
|
15
|
+
.textarea_eb3566bbf {
|
|
16
|
+
width: 100%;
|
|
17
|
+
padding: var(--spacing-2);
|
|
18
|
+
border: var(--border-width-1) solid var(--color-border-control);
|
|
19
|
+
border-radius: var(--radius-md);
|
|
20
|
+
background-color: var(--color-bg);
|
|
21
|
+
color: var(--color-text);
|
|
22
|
+
font-family: inherit;
|
|
23
|
+
font-size: var(--font-size-13);
|
|
24
|
+
line-height: var(--line-height-1-25);
|
|
25
|
+
transition:
|
|
26
|
+
border-color var(--transition-fast),
|
|
27
|
+
box-shadow var(--transition-fast);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.textarea_eb3566bbf::placeholder {
|
|
31
|
+
color: var(--color-text-tertiary);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* Hover state */
|
|
35
|
+
.textarea_eb3566bbf:hover:not(:disabled, :focus, :read-only) {
|
|
36
|
+
border-color: var(--color-border-control-hover);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/* Focus state */
|
|
40
|
+
.textarea_eb3566bbf:focus {
|
|
41
|
+
outline: none;
|
|
42
|
+
border-color: var(--color-border-focus);
|
|
43
|
+
box-shadow: var(--focus-ring);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* Size variants */
|
|
47
|
+
.textarea-wrapper_eb3566bbf[data-size="sm"] .textarea_eb3566bbf {
|
|
48
|
+
padding: var(--spacing-1) var(--spacing-2);
|
|
49
|
+
font-size: var(--font-size-12);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.textarea-wrapper_eb3566bbf[data-size="md"] .textarea_eb3566bbf {
|
|
53
|
+
padding: var(--spacing-2);
|
|
54
|
+
font-size: var(--font-size-13);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.textarea-wrapper_eb3566bbf[data-size="lg"] .textarea_eb3566bbf {
|
|
58
|
+
padding: var(--spacing-3) var(--spacing-4);
|
|
59
|
+
font-size: var(--font-size-16);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/* Filled variant */
|
|
63
|
+
.textarea-wrapper_eb3566bbf[data-variant="filled"] .textarea_eb3566bbf {
|
|
64
|
+
background-color: var(--color-bg-disabled);
|
|
65
|
+
border-color: transparent;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.textarea-wrapper_eb3566bbf[data-variant="filled"]
|
|
69
|
+
.textarea_eb3566bbf:hover:not(:disabled, :focus, :read-only) {
|
|
70
|
+
border-color: transparent;
|
|
71
|
+
background-color: var(--color-bg-surface-sunken);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.textarea-wrapper_eb3566bbf[data-variant="filled"] .textarea_eb3566bbf:focus {
|
|
75
|
+
background-color: var(--color-bg);
|
|
76
|
+
border-color: var(--color-border-focus);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/* Invalid state */
|
|
80
|
+
.textarea-wrapper_eb3566bbf[data-invalid="true"] .textarea_eb3566bbf {
|
|
81
|
+
border-color: var(--color-border-critical);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.textarea-wrapper_eb3566bbf[data-invalid="true"] .textarea_eb3566bbf:focus {
|
|
85
|
+
border-color: var(--color-border-critical);
|
|
86
|
+
box-shadow: var(--focus-ring-critical);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* Disabled state */
|
|
90
|
+
.textarea_eb3566bbf:disabled {
|
|
91
|
+
background-color: var(--color-bg-disabled);
|
|
92
|
+
color: var(--color-text-disabled);
|
|
93
|
+
cursor: not-allowed;
|
|
94
|
+
resize: none;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* Read-only state */
|
|
98
|
+
.textarea_eb3566bbf:read-only {
|
|
99
|
+
background-color: var(--color-bg-disabled);
|
|
100
|
+
cursor: default;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/* Resize behavior */
|
|
104
|
+
.textarea-wrapper_eb3566bbf[data-resize="none"] .textarea_eb3566bbf {
|
|
105
|
+
resize: none;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.textarea-wrapper_eb3566bbf[data-resize="vertical"] .textarea_eb3566bbf {
|
|
109
|
+
resize: vertical;
|
|
110
|
+
cursor: ns-resize;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.textarea-wrapper_eb3566bbf[data-resize="horizontal"] .textarea_eb3566bbf {
|
|
114
|
+
resize: horizontal;
|
|
115
|
+
cursor: ew-resize;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.textarea-wrapper_eb3566bbf[data-resize="both"] .textarea_eb3566bbf {
|
|
119
|
+
resize: both;
|
|
120
|
+
cursor: nwse-resize;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/* Auto-grow disables manual resize */
|
|
124
|
+
.textarea-wrapper_eb3566bbf[data-auto-grow="true"] .textarea_eb3566bbf {
|
|
125
|
+
resize: none;
|
|
126
|
+
overflow-y: hidden;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/* Character count */
|
|
130
|
+
.textarea-count_eb3566bbf {
|
|
131
|
+
align-self: flex-end;
|
|
132
|
+
font-size: var(--font-size-12);
|
|
133
|
+
color: var(--color-text-secondary);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.textarea-count_eb3566bbf[data-over-limit="true"] {
|
|
137
|
+
color: var(--color-text-critical);
|
|
138
|
+
font-weight: var(--font-weight-500);
|
|
139
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import "./textarea.css"
|
|
2
|
+
import Component from '@glimmer/component';
|
|
3
|
+
import { tracked } from '@glimmer/tracking';
|
|
4
|
+
import { action } from '@ember/object';
|
|
5
|
+
import { on } from '@ember/modifier';
|
|
6
|
+
import { modifier } from 'ember-modifier';
|
|
7
|
+
import { precompileTemplate } from '@ember/template-compilation';
|
|
8
|
+
import { setComponentTemplate } from '@ember/component';
|
|
9
|
+
import { g, i, n } from 'decorator-transforms/runtime';
|
|
10
|
+
|
|
11
|
+
;
|
|
12
|
+
|
|
13
|
+
// Module-level modifier for auto-grow functionality
|
|
14
|
+
// Takes [enabled, minRows, maxRows] as positional args
|
|
15
|
+
const autoGrow = modifier((element, [enabled, minRows, maxRows]) => {
|
|
16
|
+
if (!enabled) {
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
const computedStyle = window.getComputedStyle(element);
|
|
20
|
+
const lineHeight = parseFloat(computedStyle.lineHeight) || 20;
|
|
21
|
+
const paddingTop = parseFloat(computedStyle.paddingTop) || 0;
|
|
22
|
+
const paddingBottom = parseFloat(computedStyle.paddingBottom) || 0;
|
|
23
|
+
const borderTop = parseFloat(computedStyle.borderTopWidth) || 0;
|
|
24
|
+
const borderBottom = parseFloat(computedStyle.borderBottomWidth) || 0;
|
|
25
|
+
const minHeight = minRows * lineHeight + paddingTop + paddingBottom + borderTop + borderBottom;
|
|
26
|
+
const maxHeight = maxRows ? maxRows * lineHeight + paddingTop + paddingBottom + borderTop + borderBottom : undefined;
|
|
27
|
+
const resize = () => {
|
|
28
|
+
element.style.height = 'auto';
|
|
29
|
+
let newHeight = element.scrollHeight;
|
|
30
|
+
if (newHeight < minHeight) {
|
|
31
|
+
newHeight = minHeight;
|
|
32
|
+
}
|
|
33
|
+
if (maxHeight && newHeight > maxHeight) {
|
|
34
|
+
newHeight = maxHeight;
|
|
35
|
+
element.style.overflowY = 'auto';
|
|
36
|
+
} else {
|
|
37
|
+
element.style.overflowY = 'hidden';
|
|
38
|
+
}
|
|
39
|
+
element.style.height = `${newHeight}px`;
|
|
40
|
+
};
|
|
41
|
+
resize();
|
|
42
|
+
element.addEventListener('input', resize);
|
|
43
|
+
return () => {
|
|
44
|
+
element.removeEventListener('input', resize);
|
|
45
|
+
};
|
|
46
|
+
});
|
|
47
|
+
class Textarea extends Component {
|
|
48
|
+
static {
|
|
49
|
+
g(this.prototype, "internalValue", [tracked]);
|
|
50
|
+
}
|
|
51
|
+
#internalValue = (i(this, "internalValue"), void 0);
|
|
52
|
+
constructor(owner, args) {
|
|
53
|
+
super(owner, args);
|
|
54
|
+
this.internalValue = args.value ?? args.defaultValue ?? '';
|
|
55
|
+
}
|
|
56
|
+
get isControlled() {
|
|
57
|
+
return this.args.value !== undefined;
|
|
58
|
+
}
|
|
59
|
+
get currentValue() {
|
|
60
|
+
return this.isControlled ? this.args.value ?? '' : this.internalValue;
|
|
61
|
+
}
|
|
62
|
+
get size() {
|
|
63
|
+
return this.args.size ?? 'md';
|
|
64
|
+
}
|
|
65
|
+
get variant() {
|
|
66
|
+
return this.args.variant ?? 'outline';
|
|
67
|
+
}
|
|
68
|
+
get resize() {
|
|
69
|
+
return this.args.resize ?? 'vertical';
|
|
70
|
+
}
|
|
71
|
+
get rows() {
|
|
72
|
+
return this.args.rows ?? 3;
|
|
73
|
+
}
|
|
74
|
+
get minRows() {
|
|
75
|
+
return this.args.minRows ?? this.rows;
|
|
76
|
+
}
|
|
77
|
+
get maxRows() {
|
|
78
|
+
return this.args.maxRows;
|
|
79
|
+
}
|
|
80
|
+
get isFullWidth() {
|
|
81
|
+
return this.args.isFullWidth ?? true;
|
|
82
|
+
}
|
|
83
|
+
get showCount() {
|
|
84
|
+
return this.args.showCount ?? false;
|
|
85
|
+
}
|
|
86
|
+
get characterCount() {
|
|
87
|
+
return this.currentValue.length;
|
|
88
|
+
}
|
|
89
|
+
get isOverLimit() {
|
|
90
|
+
if (this.args.maxLength === undefined) return false;
|
|
91
|
+
return this.characterCount > this.args.maxLength;
|
|
92
|
+
}
|
|
93
|
+
get countDisplay() {
|
|
94
|
+
if (this.args.maxLength !== undefined) {
|
|
95
|
+
return `${this.characterCount}/${this.args.maxLength}`;
|
|
96
|
+
}
|
|
97
|
+
return `${this.characterCount}`;
|
|
98
|
+
}
|
|
99
|
+
handleInput(event) {
|
|
100
|
+
const target = event.target;
|
|
101
|
+
if (!this.isControlled) {
|
|
102
|
+
this.internalValue = target.value;
|
|
103
|
+
}
|
|
104
|
+
this.args.onInput?.(target.value, event);
|
|
105
|
+
}
|
|
106
|
+
static {
|
|
107
|
+
n(this.prototype, "handleInput", [action]);
|
|
108
|
+
}
|
|
109
|
+
handleChange(event) {
|
|
110
|
+
const target = event.target;
|
|
111
|
+
this.args.onChange?.(target.value, event);
|
|
112
|
+
}
|
|
113
|
+
static {
|
|
114
|
+
n(this.prototype, "handleChange", [action]);
|
|
115
|
+
}
|
|
116
|
+
handleFocus(event) {
|
|
117
|
+
this.args.onFocus?.(event);
|
|
118
|
+
}
|
|
119
|
+
static {
|
|
120
|
+
n(this.prototype, "handleFocus", [action]);
|
|
121
|
+
}
|
|
122
|
+
handleBlur(event) {
|
|
123
|
+
this.args.onBlur?.(event);
|
|
124
|
+
}
|
|
125
|
+
static {
|
|
126
|
+
n(this.prototype, "handleBlur", [action]);
|
|
127
|
+
}
|
|
128
|
+
static {
|
|
129
|
+
setComponentTemplate(precompileTemplate("<div class=\"textarea-wrapper_eb3566bbf\" data-size={{this.size}} data-variant={{this.variant}} data-disabled={{if @isDisabled \"true\"}} data-readonly={{if @isReadOnly \"true\"}} data-invalid={{if @isInvalid \"true\"}} data-full-width={{if this.isFullWidth \"true\" \"false\"}} data-resize={{this.resize}} data-auto-grow={{if @autoGrow \"true\"}} data-test-textarea-wrapper>\n <textarea id={{@id}} name={{@name}} class=\"textarea_eb3566bbf\" value={{this.currentValue}} placeholder={{@placeholder}} disabled={{@isDisabled}} readonly={{@isReadOnly}} required={{@isRequired}} rows={{this.rows}} maxlength={{@maxLength}} aria-invalid={{if @isInvalid \"true\"}} aria-required={{if @isRequired \"true\"}} aria-describedby={{@aria-describedby}} {{on \"input\" this.handleInput}} {{on \"change\" this.handleChange}} {{on \"focus\" this.handleFocus}} {{on \"blur\" this.handleBlur}} {{autoGrow (if @autoGrow true false) this.minRows this.maxRows}} data-test-textarea ...attributes></textarea>\n {{#if this.showCount}}\n <span class=\"textarea-count_eb3566bbf\" data-over-limit={{if this.isOverLimit \"true\"}} data-test-textarea-count>\n {{this.countDisplay}}\n </span>\n {{/if}}\n</div>", {
|
|
130
|
+
strictMode: true,
|
|
131
|
+
scope: () => ({
|
|
132
|
+
on,
|
|
133
|
+
autoGrow
|
|
134
|
+
})
|
|
135
|
+
}), this);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export { Textarea as default };
|
|
140
|
+
//# sourceMappingURL=textarea.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textarea.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import Control from './control.js';
|
|
3
|
+
import TimePicker from './time-picker.js';
|
|
4
|
+
import { precompileTemplate } from '@ember/template-compilation';
|
|
5
|
+
import { setComponentTemplate } from '@ember/component';
|
|
6
|
+
|
|
7
|
+
class TimePickerField 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 <TimePicker @id={{ctrl.id}} @name={{@name}} @value={{@value}} @placeholder={{@placeholder}} @format={{@format}} @interval={{@interval}} @minTime={{@minTime}} @maxTime={{@maxTime}} @showNow={{@showNow}} @allowTextInput={{@allowTextInput}} @closeOnSelect={{@closeOnSelect}} @showIcon={{@showIcon}} @hideDisabledOptions={{@hideDisabledOptions}} @snapToInterval={{@snapToInterval}} @isDisabled={{@isDisabled}} @isInvalid={{this.isInvalid}} @isRequired={{@isRequired}} @isReadOnly={{@isReadOnly}} @aria-describedby={{this.getAriaDescribedBy ctrl.id}} @onChange={{@onChange}} @onBlur={{@onBlur}} @onFocus={{@onFocus}} data-test-time-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
|
+
TimePicker
|
|
31
|
+
})
|
|
32
|
+
}), this);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export { TimePickerField as default };
|
|
37
|
+
//# sourceMappingURL=time-picker-field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-picker-field.js","sources":["../../src/form/time-picker-field.gts"],"sourcesContent":["import Component from '@glimmer/component';\n\nimport Control from './control.gts';\nimport TimePicker, { type TimeFormat } from './time-picker.gts';\n\nexport type LabelVisibility = 'visible' | 'hidden';\n\nexport interface TimePickerFieldSignature {\n Element: HTMLDivElement;\n Args: {\n /** Label text (required) */\n label: string;\n\n /** Current selected time value (HH:mm format) */\n value?: string | null;\n\n /** Placeholder text shown when no value is selected */\n placeholder?: string;\n\n /** Time format (12h or 24h) */\n format?: TimeFormat;\n\n /** Minutes between options (default: 15) */\n interval?: number;\n\n /** Minimum allowed time (HH:mm format) */\n minTime?: string;\n\n /** Maximum allowed time (HH:mm format) */\n maxTime?: string;\n\n /** Show \"Now\" option at the top */\n showNow?: boolean;\n\n /** Allow typing in the input */\n allowTextInput?: boolean;\n\n /** Close dropdown when a time is selected */\n closeOnSelect?: boolean;\n\n /** Show clock icon */\n showIcon?: boolean;\n\n /** Hide disabled options from the dropdown */\n hideDisabledOptions?: boolean;\n\n /** Round typed values to the nearest interval on blur */\n snapToInterval?: 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 for forms */\n name?: string;\n\n /** Change event handler */\n onChange?: (value: string | null) => void;\n\n /** Blur event handler */\n onBlur?: (event: FocusEvent) => void;\n\n /** Focus event handler */\n onFocus?: (event: FocusEvent) => void;\n };\n}\n\nexport default class TimePickerField extends Component<TimePickerFieldSignature> {\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 <TimePicker\n @id={{ctrl.id}}\n @name={{@name}}\n @value={{@value}}\n @placeholder={{@placeholder}}\n @format={{@format}}\n @interval={{@interval}}\n @minTime={{@minTime}}\n @maxTime={{@maxTime}}\n @showNow={{@showNow}}\n @allowTextInput={{@allowTextInput}}\n @closeOnSelect={{@closeOnSelect}}\n @showIcon={{@showIcon}}\n @hideDisabledOptions={{@hideDisabledOptions}}\n @snapToInterval={{@snapToInterval}}\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 data-test-time-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":["TimePickerField","Component","isInvalid","args","error","isLabelHidden","labelVisibility","getAriaDescribedBy","controlId","parts","helpText","push","length","join","undefined","setComponentTemplate","precompileTemplate","strictMode","scope","Control","TimePicker"],"mappings":";;;;;;AAiFe,MAAMA,wBAAwBC,SAAA,CAAU;EACrD,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,6iCAAA,EA+CA;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,239 @@
|
|
|
1
|
+
/* src/form/time-picker.css */
|
|
2
|
+
/* Time Picker Container */
|
|
3
|
+
.time-picker_eb934fd65 {
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
width: 100%;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/* Trigger Wrapper - Reset button styles from popover.Trigger */
|
|
10
|
+
.time-picker-trigger-wrapper_eb934fd65 {
|
|
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
|
+
.time-picker-trigger-wrapper_eb934fd65:disabled {
|
|
23
|
+
cursor: not-allowed;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* Input Wrapper */
|
|
27
|
+
.time-picker-input-wrapper_eb934fd65 {
|
|
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
|
+
.time-picker-input-wrapper_eb934fd65:focus-within {
|
|
42
|
+
border-color: var(--color-border-focus);
|
|
43
|
+
box-shadow: var(--focus-ring);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* Invalid state */
|
|
47
|
+
.time-picker_eb934fd65[data-invalid="true"] .time-picker-input-wrapper_eb934fd65 {
|
|
48
|
+
border-color: var(--color-border-critical);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.time-picker_eb934fd65[data-invalid="true"] .time-picker-input-wrapper_eb934fd65:focus-within {
|
|
52
|
+
box-shadow: var(--focus-ring-critical);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* Disabled state */
|
|
56
|
+
.time-picker_eb934fd65[data-disabled="true"] .time-picker-input-wrapper_eb934fd65 {
|
|
57
|
+
background-color: var(--color-bg-disabled);
|
|
58
|
+
border-color: var(--color-border-control-disabled);
|
|
59
|
+
cursor: not-allowed;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/* Read-only state */
|
|
63
|
+
.time-picker_eb934fd65[data-readonly="true"] .time-picker-input-wrapper_eb934fd65 {
|
|
64
|
+
background-color: var(--color-bg-disabled);
|
|
65
|
+
border-color: var(--color-border-control-readonly);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* Clock Icon */
|
|
69
|
+
.time-picker-icon_eb934fd65 {
|
|
70
|
+
display: flex;
|
|
71
|
+
align-items: center;
|
|
72
|
+
padding-left: var(--spacing-3);
|
|
73
|
+
color: var(--color-icon-secondary);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.time-picker_eb934fd65[data-disabled="true"] .time-picker-icon_eb934fd65 {
|
|
77
|
+
color: var(--color-icon-disabled);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/* Input Element */
|
|
81
|
+
.time-picker-input_eb934fd65 {
|
|
82
|
+
flex: 1;
|
|
83
|
+
min-width: 0;
|
|
84
|
+
height: 100%;
|
|
85
|
+
padding: 0 var(--spacing-2);
|
|
86
|
+
border: none;
|
|
87
|
+
background: transparent;
|
|
88
|
+
color: var(--color-text);
|
|
89
|
+
font-family: var(--font-family-mono);
|
|
90
|
+
font-size: inherit;
|
|
91
|
+
line-height: var(--line-height-tight);
|
|
92
|
+
text-align: left;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.time-picker-input_eb934fd65:focus {
|
|
96
|
+
outline: none;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.time-picker-input_eb934fd65::placeholder {
|
|
100
|
+
color: var(--color-text-tertiary);
|
|
101
|
+
font-family: var(--font-family-sans);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.time-picker-input_eb934fd65:disabled {
|
|
105
|
+
color: var(--color-text-disabled);
|
|
106
|
+
cursor: not-allowed;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.time-picker-input_eb934fd65:read-only {
|
|
110
|
+
cursor: default;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/* Dropdown Trigger Icon */
|
|
114
|
+
.time-picker-trigger_eb934fd65 {
|
|
115
|
+
display: flex;
|
|
116
|
+
align-items: center;
|
|
117
|
+
justify-content: center;
|
|
118
|
+
width: 32px;
|
|
119
|
+
border-left: var(--border-width-1) solid var(--color-border-control);
|
|
120
|
+
color: var(--color-icon-secondary);
|
|
121
|
+
cursor: pointer;
|
|
122
|
+
border-top-right-radius: calc(var(--radius-md) - 1px);
|
|
123
|
+
border-bottom-right-radius: calc(var(--radius-md) - 1px);
|
|
124
|
+
transition:
|
|
125
|
+
background-color var(--transition-fast),
|
|
126
|
+
color var(--transition-fast);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.time-picker-trigger_eb934fd65:hover {
|
|
130
|
+
background-color: var(--color-bg-surface-hover);
|
|
131
|
+
color: var(--color-icon-primary);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.time-picker-trigger_eb934fd65:active {
|
|
135
|
+
background-color: var(--color-bg-surface-pressed);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.time-picker_eb934fd65[data-disabled="true"] .time-picker-trigger_eb934fd65 {
|
|
139
|
+
color: var(--color-icon-disabled);
|
|
140
|
+
cursor: not-allowed;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.time-picker_eb934fd65[data-disabled="true"] .time-picker-trigger_eb934fd65:hover {
|
|
144
|
+
background-color: transparent;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.time-picker_eb934fd65[data-invalid="true"] .time-picker-trigger_eb934fd65 {
|
|
148
|
+
border-left-color: var(--color-border-critical);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.time-picker_eb934fd65[data-disabled="true"] .time-picker-trigger_eb934fd65 {
|
|
152
|
+
border-left-color: var(--color-border-control-disabled);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/* Popover Content - override default popover padding */
|
|
156
|
+
.time-picker-popover-content_eb934fd65 {
|
|
157
|
+
min-width: 140px;
|
|
158
|
+
max-width: 200px;
|
|
159
|
+
padding: 0;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/* Listbox */
|
|
163
|
+
.time-picker-listbox_eb934fd65 {
|
|
164
|
+
max-height: 240px;
|
|
165
|
+
overflow-y: auto;
|
|
166
|
+
padding: var(--spacing-1);
|
|
167
|
+
background-color: var(--color-bg-surface);
|
|
168
|
+
border-radius: var(--radius-md);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/* Option */
|
|
172
|
+
.time-picker-option_eb934fd65 {
|
|
173
|
+
position: relative;
|
|
174
|
+
display: flex;
|
|
175
|
+
align-items: center;
|
|
176
|
+
padding: var(--spacing-2) var(--spacing-8) var(--spacing-2) var(--spacing-3);
|
|
177
|
+
font-family: var(--font-family-mono);
|
|
178
|
+
font-size: var(--font-size-sm);
|
|
179
|
+
line-height: var(--line-height-tight);
|
|
180
|
+
color: var(--color-text);
|
|
181
|
+
border-radius: var(--radius-sm);
|
|
182
|
+
cursor: pointer;
|
|
183
|
+
transition:
|
|
184
|
+
background-color var(--transition-fast),
|
|
185
|
+
color var(--transition-fast);
|
|
186
|
+
user-select: none;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/* Hover state */
|
|
190
|
+
.time-picker-option_eb934fd65:hover:not([data-disabled="true"]) {
|
|
191
|
+
background-color: var(--color-bg-fill-interactive-hover);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/* Active/Focused state (via keyboard navigation) */
|
|
195
|
+
.time-picker-option_eb934fd65[data-active="true"]:not([data-disabled="true"]) {
|
|
196
|
+
background-color: var(--color-bg-fill-interactive-hover);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/* Selected state - checkmark on the right */
|
|
200
|
+
.time-picker-option_eb934fd65[data-selected="true"]::after {
|
|
201
|
+
content: "";
|
|
202
|
+
position: absolute;
|
|
203
|
+
right: var(--spacing-3);
|
|
204
|
+
top: 50%;
|
|
205
|
+
transform: translateY(-50%);
|
|
206
|
+
width: 1rem;
|
|
207
|
+
height: 1rem;
|
|
208
|
+
background-color: var(--color-text);
|
|
209
|
+
mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.5 4.5L6 12L2.5 8.5' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
|
|
210
|
+
mask-size: contain;
|
|
211
|
+
mask-position: center;
|
|
212
|
+
mask-repeat: no-repeat;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/* Disabled state */
|
|
216
|
+
.time-picker-option_eb934fd65[data-disabled="true"] {
|
|
217
|
+
color: var(--color-text-disabled);
|
|
218
|
+
cursor: not-allowed;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.time-picker-option_eb934fd65[data-disabled="true"][data-active="true"] {
|
|
222
|
+
background-color: transparent;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/* Now option */
|
|
226
|
+
.time-picker-option_eb934fd65[data-now="true"] {
|
|
227
|
+
color: var(--color-text-brand);
|
|
228
|
+
font-weight: var(--font-weight-medium);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.time-picker-option_eb934fd65[data-now="true"]::before {
|
|
232
|
+
content: "";
|
|
233
|
+
display: inline-block;
|
|
234
|
+
width: 6px;
|
|
235
|
+
height: 6px;
|
|
236
|
+
margin-right: var(--spacing-2);
|
|
237
|
+
background-color: var(--color-bg-brand);
|
|
238
|
+
border-radius: 50%;
|
|
239
|
+
}
|