@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,120 @@
|
|
|
1
|
+
import "./form.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 { hash } from '@ember/helper';
|
|
7
|
+
import Control from './control.js';
|
|
8
|
+
import TextField from './text-field.js';
|
|
9
|
+
import NumberField from './number-field.js';
|
|
10
|
+
import MoneyField from './money-field.js';
|
|
11
|
+
import SelectField from './select-field.js';
|
|
12
|
+
import CountrySelectField from './country-select-field.js';
|
|
13
|
+
import DatePickerField from './date-picker-field.js';
|
|
14
|
+
import TimePickerField from './time-picker-field.js';
|
|
15
|
+
import DateRangePickerField from './date-range-picker-field.js';
|
|
16
|
+
import RadioGroup from './radio-group.js';
|
|
17
|
+
import CheckboxGroup from './checkbox-group.js';
|
|
18
|
+
import Toggle from './toggle.js';
|
|
19
|
+
import Button from '../action/button.js';
|
|
20
|
+
import { precompileTemplate } from '@ember/template-compilation';
|
|
21
|
+
import { setComponentTemplate } from '@ember/component';
|
|
22
|
+
import { g, i, n } from 'decorator-transforms/runtime';
|
|
23
|
+
|
|
24
|
+
;
|
|
25
|
+
|
|
26
|
+
class Form extends Component {
|
|
27
|
+
static {
|
|
28
|
+
g(this.prototype, "isSubmitting", [tracked], function () {
|
|
29
|
+
return false;
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
#isSubmitting = (i(this, "isSubmitting"), void 0);
|
|
33
|
+
static {
|
|
34
|
+
g(this.prototype, "isSubmitted", [tracked], function () {
|
|
35
|
+
return false;
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
#isSubmitted = (i(this, "isSubmitted"), void 0);
|
|
39
|
+
static {
|
|
40
|
+
g(this.prototype, "isDirty", [tracked], function () {
|
|
41
|
+
return false;
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
#isDirty = (i(this, "isDirty"), void 0);
|
|
45
|
+
get effectiveDisabled() {
|
|
46
|
+
return this.isSubmitting || (this.args.isDisabled ?? false);
|
|
47
|
+
}
|
|
48
|
+
async handleSubmit(event) {
|
|
49
|
+
event.preventDefault();
|
|
50
|
+
if (this.isSubmitting) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
this.isSubmitting = true;
|
|
54
|
+
try {
|
|
55
|
+
const result = this.args.onSubmit?.(event);
|
|
56
|
+
// Handle async onSubmit (Promise-like)
|
|
57
|
+
if (result && typeof result.then === 'function') {
|
|
58
|
+
await result;
|
|
59
|
+
}
|
|
60
|
+
this.isSubmitted = true;
|
|
61
|
+
} catch {
|
|
62
|
+
// Error is swallowed - consumer should handle errors in their onSubmit
|
|
63
|
+
} finally {
|
|
64
|
+
this.isSubmitting = false;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
static {
|
|
68
|
+
n(this.prototype, "handleSubmit", [action]);
|
|
69
|
+
}
|
|
70
|
+
handleReset() {
|
|
71
|
+
if (this.isSubmitting) {
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
this.isSubmitted = false;
|
|
75
|
+
this.isDirty = false;
|
|
76
|
+
this.args.onReset?.();
|
|
77
|
+
}
|
|
78
|
+
static {
|
|
79
|
+
n(this.prototype, "handleReset", [action]);
|
|
80
|
+
}
|
|
81
|
+
handleInput() {
|
|
82
|
+
if (!this.isDirty) {
|
|
83
|
+
this.isDirty = true;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
static {
|
|
87
|
+
n(this.prototype, "handleInput", [action]);
|
|
88
|
+
}
|
|
89
|
+
reset() {
|
|
90
|
+
this.handleReset();
|
|
91
|
+
}
|
|
92
|
+
static {
|
|
93
|
+
n(this.prototype, "reset", [action]);
|
|
94
|
+
}
|
|
95
|
+
static {
|
|
96
|
+
setComponentTemplate(precompileTemplate("<form class=\"assembly-form_ee0c8bf9e\" data-test-form data-submitting={{if this.isSubmitting \"true\" \"false\"}} data-submitted={{if this.isSubmitted \"true\" \"false\"}} data-dirty={{if this.isDirty \"true\" \"false\"}} data-disabled={{if this.effectiveDisabled \"true\" \"false\"}} {{on \"submit\" this.handleSubmit}} {{on \"reset\" this.handleReset}} {{on \"input\" this.handleInput}} ...attributes>\n {{yield (hash Control=(component Control isDisabled=this.effectiveDisabled) TextField=(component TextField isDisabled=this.effectiveDisabled) NumberField=(component NumberField isDisabled=this.effectiveDisabled) MoneyField=(component MoneyField isDisabled=this.effectiveDisabled) SelectField=(component SelectField isDisabled=this.effectiveDisabled) CountrySelectField=(component CountrySelectField isDisabled=this.effectiveDisabled) DatePickerField=(component DatePickerField isDisabled=this.effectiveDisabled) TimePickerField=(component TimePickerField isDisabled=this.effectiveDisabled) DateRangePickerField=(component DateRangePickerField isDisabled=this.effectiveDisabled) RadioGroup=(component RadioGroup disabled=this.effectiveDisabled) CheckboxGroup=(component CheckboxGroup isDisabled=this.effectiveDisabled) Toggle=(component Toggle isDisabled=this.effectiveDisabled) Button=(component Button isDisabled=this.effectiveDisabled) isSubmitting=this.isSubmitting isSubmitted=this.isSubmitted isDirty=this.isDirty reset=this.reset)}}\n</form>", {
|
|
97
|
+
strictMode: true,
|
|
98
|
+
scope: () => ({
|
|
99
|
+
on,
|
|
100
|
+
hash,
|
|
101
|
+
Control,
|
|
102
|
+
TextField,
|
|
103
|
+
NumberField,
|
|
104
|
+
MoneyField,
|
|
105
|
+
SelectField,
|
|
106
|
+
CountrySelectField,
|
|
107
|
+
DatePickerField,
|
|
108
|
+
TimePickerField,
|
|
109
|
+
DateRangePickerField,
|
|
110
|
+
RadioGroup,
|
|
111
|
+
CheckboxGroup,
|
|
112
|
+
Toggle,
|
|
113
|
+
Button
|
|
114
|
+
})
|
|
115
|
+
}), this);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export { Form as default };
|
|
120
|
+
//# sourceMappingURL=form.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "./help-text.css"
|
|
2
|
+
import { precompileTemplate } from '@ember/template-compilation';
|
|
3
|
+
import { setComponentTemplate } from '@ember/component';
|
|
4
|
+
import templateOnly from '@ember/component/template-only';
|
|
5
|
+
|
|
6
|
+
;
|
|
7
|
+
|
|
8
|
+
const HelpText = setComponentTemplate(precompileTemplate("<span class=\"help-text_e4685b9e4\" id={{@id}} data-test-form-help-text ...attributes>\n {{yield}}\n</span>", {
|
|
9
|
+
strictMode: true
|
|
10
|
+
}), templateOnly());
|
|
11
|
+
|
|
12
|
+
export { HelpText as default };
|
|
13
|
+
//# sourceMappingURL=help-text.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"help-text.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export { default as Calendar } from './calendar.js';
|
|
2
|
+
export { default as Checkbox } from './checkbox.js';
|
|
3
|
+
export { default as CheckboxGroup } from './checkbox-group.js';
|
|
4
|
+
export { default as Control } from './control.js';
|
|
5
|
+
export { default as CountrySelect } from './country-select.js';
|
|
6
|
+
export { default as CountrySelectField } from './country-select-field.js';
|
|
7
|
+
export { default as DatePicker } from './date-picker.js';
|
|
8
|
+
export { default as DatePickerField } from './date-picker-field.js';
|
|
9
|
+
export { default as DateRangePicker } from './date-range-picker.js';
|
|
10
|
+
export { default as DateRangePickerField } from './date-range-picker-field.js';
|
|
11
|
+
export { default as ErrorMessage } from './error-message.js';
|
|
12
|
+
export { default as Field } from './field.js';
|
|
13
|
+
export { default as Form } from './form.js';
|
|
14
|
+
export { default as HelpText } from './help-text.js';
|
|
15
|
+
export { default as Input } from './input.js';
|
|
16
|
+
export { default as Label } from './label.js';
|
|
17
|
+
export { default as MoneyField } from './money-field.js';
|
|
18
|
+
export { default as NumberField } from './number-field.js';
|
|
19
|
+
export { SelectOption as Option, SelectOptionGroup as OptionGroup, default as Select } from './select.js';
|
|
20
|
+
export { default as Radio } from './radio.js';
|
|
21
|
+
export { default as RadioGroup } from './radio-group.js';
|
|
22
|
+
export { default as SearchInput } from './search-input.js';
|
|
23
|
+
export { default as SelectField } from './select-field.js';
|
|
24
|
+
export { default as Textarea } from './textarea.js';
|
|
25
|
+
export { default as TextField } from './text-field.js';
|
|
26
|
+
export { default as Toggle } from './toggle.js';
|
|
27
|
+
export { default as ToggleField } from './toggle-field.js';
|
|
28
|
+
export { default as ToggleGroup } from './toggle-group.js';
|
|
29
|
+
export { default as Listbox } from './listbox.js';
|
|
30
|
+
export { default as MultiSelect } from './multi-select.js';
|
|
31
|
+
export { default as TimePicker } from './time-picker.js';
|
|
32
|
+
export { default as TimePickerField } from './time-picker-field.js';
|
|
33
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
/* src/form/input.css */
|
|
2
|
+
/* Input Wrapper */
|
|
3
|
+
.input-wrapper_ef268a5e9 {
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
align-items: stretch;
|
|
6
|
+
position: relative;
|
|
7
|
+
width: 100%;
|
|
8
|
+
font-family: inherit;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.input-wrapper_ef268a5e9[data-full-width="false"] {
|
|
12
|
+
width: auto;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* Sizes */
|
|
16
|
+
.input-wrapper_ef268a5e9[data-size="sm"] {
|
|
17
|
+
height: var(--input-height-sm);
|
|
18
|
+
font-size: var(--font-size-sm);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.input-wrapper_ef268a5e9[data-size="md"] {
|
|
22
|
+
height: var(--input-height-md);
|
|
23
|
+
font-size: var(--font-size-md);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.input-wrapper_ef268a5e9[data-size="lg"] {
|
|
27
|
+
height: var(--input-height-lg);
|
|
28
|
+
font-size: var(--font-size-lg);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* Input Element */
|
|
32
|
+
.input_ef268a5e9 {
|
|
33
|
+
flex: 1;
|
|
34
|
+
min-width: 0;
|
|
35
|
+
height: 100%;
|
|
36
|
+
box-sizing: border-box;
|
|
37
|
+
border: var(--border-width-1) solid var(--color-border-control);
|
|
38
|
+
border-radius: var(--radius-md);
|
|
39
|
+
background-color: var(--color-bg);
|
|
40
|
+
color: var(--color-text);
|
|
41
|
+
font-family: inherit;
|
|
42
|
+
font-size: inherit;
|
|
43
|
+
line-height: var(--line-height-tight);
|
|
44
|
+
transition:
|
|
45
|
+
border-color var(--transition-fast),
|
|
46
|
+
box-shadow var(--transition-fast);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/* Size-specific padding */
|
|
50
|
+
.input-wrapper_ef268a5e9[data-size="sm"] .input_ef268a5e9 {
|
|
51
|
+
padding: 0 var(--input-padding-horizontal-sm);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.input-wrapper_ef268a5e9[data-size="md"] .input_ef268a5e9 {
|
|
55
|
+
padding: 0 var(--input-padding-horizontal-md);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.input-wrapper_ef268a5e9[data-size="lg"] .input_ef268a5e9 {
|
|
59
|
+
padding: 0 var(--input-padding-horizontal-lg);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/* Placeholder */
|
|
63
|
+
.input_ef268a5e9::placeholder {
|
|
64
|
+
color: var(--color-text-tertiary);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* Hover */
|
|
68
|
+
.input_ef268a5e9:hover:not(:disabled, :focus, :read-only) {
|
|
69
|
+
border-color: var(--color-border-control-hover);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/* Focus */
|
|
73
|
+
.input_ef268a5e9:focus {
|
|
74
|
+
outline: none;
|
|
75
|
+
border-color: var(--color-border-focus);
|
|
76
|
+
box-shadow: var(--focus-ring);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/* Filled Variant */
|
|
80
|
+
.input-wrapper_ef268a5e9[data-variant="filled"] .input_ef268a5e9 {
|
|
81
|
+
background-color: var(--color-bg-surface-sunken);
|
|
82
|
+
border-color: transparent;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.input-wrapper_ef268a5e9[data-variant="filled"]
|
|
86
|
+
.input_ef268a5e9:hover:not(:disabled, :focus, :read-only) {
|
|
87
|
+
border-color: var(--color-border-control);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.input-wrapper_ef268a5e9[data-variant="filled"] .input_ef268a5e9:focus {
|
|
91
|
+
background-color: var(--color-bg);
|
|
92
|
+
border-color: var(--color-border-focus);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* Invalid State */
|
|
96
|
+
.input-wrapper_ef268a5e9[data-invalid="true"] .input_ef268a5e9 {
|
|
97
|
+
border-color: var(--color-border-critical);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.input-wrapper_ef268a5e9[data-invalid="true"] .input_ef268a5e9:focus {
|
|
101
|
+
box-shadow: var(--focus-ring-critical);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* Disabled State */
|
|
105
|
+
.input_ef268a5e9:disabled {
|
|
106
|
+
background-color: var(--color-bg-disabled);
|
|
107
|
+
color: var(--color-text-disabled);
|
|
108
|
+
border-color: var(--color-border-control-disabled);
|
|
109
|
+
cursor: not-allowed;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/* Read-only State */
|
|
113
|
+
.input_ef268a5e9:read-only {
|
|
114
|
+
background-color: var(--color-bg-disabled);
|
|
115
|
+
border-color: var(--color-border-control-readonly);
|
|
116
|
+
cursor: default;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/* Prefix and Suffix */
|
|
120
|
+
.input-prefix_ef268a5e9,
|
|
121
|
+
.input-suffix_ef268a5e9 {
|
|
122
|
+
display: flex;
|
|
123
|
+
align-items: center;
|
|
124
|
+
padding: 0 var(--spacing-3);
|
|
125
|
+
background-color: var(--color-bg-surface-sunken);
|
|
126
|
+
border: var(--border-width-1) solid var(--color-border-control);
|
|
127
|
+
color: var(--color-text-secondary);
|
|
128
|
+
white-space: nowrap;
|
|
129
|
+
font-size: inherit;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.input-prefix_ef268a5e9 {
|
|
133
|
+
border-right: none;
|
|
134
|
+
border-radius: var(--radius-md) 0 0 var(--radius-md);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.input-suffix_ef268a5e9 {
|
|
138
|
+
border-left: none;
|
|
139
|
+
border-radius: 0 var(--radius-md) var(--radius-md) 0;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/* Hide empty prefix/suffix containers */
|
|
143
|
+
.input-prefix_ef268a5e9:empty,
|
|
144
|
+
.input-suffix_ef268a5e9:empty {
|
|
145
|
+
display: none;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/* Input border radius when prefix/suffix present (non-empty) */
|
|
149
|
+
.input-prefix_ef268a5e9:not(:empty) + .input_ef268a5e9 {
|
|
150
|
+
border-top-left-radius: 0;
|
|
151
|
+
border-bottom-left-radius: 0;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.input_ef268a5e9:has(+ .input-suffix_ef268a5e9:not(:empty)) {
|
|
155
|
+
border-top-right-radius: 0;
|
|
156
|
+
border-bottom-right-radius: 0;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/* Disabled state for prefix/suffix */
|
|
160
|
+
.input-wrapper_ef268a5e9[data-disabled="true"] .input-prefix_ef268a5e9,
|
|
161
|
+
.input-wrapper_ef268a5e9[data-disabled="true"] .input-suffix_ef268a5e9 {
|
|
162
|
+
background-color: var(--color-bg-disabled);
|
|
163
|
+
color: var(--color-text-disabled);
|
|
164
|
+
border-color: var(--color-border-control-disabled);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/* Invalid state for prefix/suffix borders */
|
|
168
|
+
.input-wrapper_ef268a5e9[data-invalid="true"] .input-prefix_ef268a5e9 {
|
|
169
|
+
border-color: var(--color-border-critical);
|
|
170
|
+
border-right: none;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.input-wrapper_ef268a5e9[data-invalid="true"] .input-suffix_ef268a5e9 {
|
|
174
|
+
border-color: var(--color-border-critical);
|
|
175
|
+
border-left: none;
|
|
176
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import "./input.css"
|
|
2
|
+
import Component from '@glimmer/component';
|
|
3
|
+
import { modifier } from 'ember-modifier';
|
|
4
|
+
import { precompileTemplate } from '@ember/template-compilation';
|
|
5
|
+
import { setComponentTemplate } from '@ember/component';
|
|
6
|
+
|
|
7
|
+
;
|
|
8
|
+
|
|
9
|
+
class Input extends Component {
|
|
10
|
+
get type() {
|
|
11
|
+
return this.args.type ?? 'text';
|
|
12
|
+
}
|
|
13
|
+
get size() {
|
|
14
|
+
return this.args.size ?? 'md';
|
|
15
|
+
}
|
|
16
|
+
get variant() {
|
|
17
|
+
return this.args.variant ?? 'outline';
|
|
18
|
+
}
|
|
19
|
+
get autoComplete() {
|
|
20
|
+
return this.args.autoComplete ?? 'off';
|
|
21
|
+
}
|
|
22
|
+
get isFullWidth() {
|
|
23
|
+
return this.args.isFullWidth ?? true;
|
|
24
|
+
}
|
|
25
|
+
get inputValue() {
|
|
26
|
+
// Controlled mode: use value prop
|
|
27
|
+
// Uncontrolled mode: use defaultValue for initial render
|
|
28
|
+
return this.args.value ?? this.args.defaultValue;
|
|
29
|
+
}
|
|
30
|
+
autoFocusModifier = modifier(element => {
|
|
31
|
+
if (this.args.autoFocus) {
|
|
32
|
+
element.focus();
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
static {
|
|
36
|
+
setComponentTemplate(precompileTemplate("<div class=\"input-wrapper_ef268a5e9\" 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-test-input-wrapper>\n {{#if (has-block \"prefix\")}}\n <span class=\"input-prefix_ef268a5e9\" data-test-input-prefix>{{yield to=\"prefix\"}}</span>\n {{else if @prefix}}\n <span class=\"input-prefix_ef268a5e9\" data-test-input-prefix>{{@prefix}}</span>\n {{/if}}\n\n <input class=\"input_ef268a5e9\" id={{@id}} type={{this.type}} name={{@name}} value={{this.inputValue}} placeholder={{@placeholder}} disabled={{@isDisabled}} readonly={{@isReadOnly}} required={{@isRequired}} autocomplete={{this.autoComplete}} inputmode={{@inputMode}} min={{@min}} max={{@max}} step={{@step}} pattern={{@pattern}} maxlength={{@maxLength}} aria-invalid={{if @isInvalid \"true\"}} aria-required={{if @isRequired \"true\"}} aria-describedby={{@aria-describedby}} {{this.autoFocusModifier}} data-test-input ...attributes />\n\n {{#if (has-block \"suffix\")}}\n <span class=\"input-suffix_ef268a5e9\" data-test-input-suffix>{{yield to=\"suffix\"}}</span>\n {{else if @suffix}}\n <span class=\"input-suffix_ef268a5e9\" data-test-input-suffix>{{@suffix}}</span>\n {{/if}}\n</div>", {
|
|
37
|
+
strictMode: true
|
|
38
|
+
}), this);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export { Input as default };
|
|
43
|
+
//# sourceMappingURL=input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/* src/form/label.css */
|
|
2
|
+
.label_e7fa6e7a3 {
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: baseline;
|
|
5
|
+
gap: var(--spacing-1);
|
|
6
|
+
font-weight: var(--font-weight-medium);
|
|
7
|
+
color: var(--color-text);
|
|
8
|
+
line-height: var(--line-height-tight);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/* Size variants */
|
|
12
|
+
.label_e7fa6e7a3[data-size="sm"] {
|
|
13
|
+
font-size: var(--font-size-xs);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.label_e7fa6e7a3[data-size="md"] {
|
|
17
|
+
font-size: var(--font-size-sm);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.label_e7fa6e7a3[data-size="lg"] {
|
|
21
|
+
font-size: var(--font-size-md);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* Disabled state */
|
|
25
|
+
.label_e7fa6e7a3[data-disabled="true"] {
|
|
26
|
+
color: var(--color-text-disabled);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* Visually hidden (accessible) */
|
|
30
|
+
.label_e7fa6e7a3[data-visually-hidden="true"] {
|
|
31
|
+
position: absolute;
|
|
32
|
+
width: 1px;
|
|
33
|
+
height: 1px;
|
|
34
|
+
padding: 0;
|
|
35
|
+
margin: -1px;
|
|
36
|
+
overflow: hidden;
|
|
37
|
+
clip: rect(0, 0, 0, 0);
|
|
38
|
+
white-space: nowrap;
|
|
39
|
+
border: 0;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* Required indicator */
|
|
43
|
+
.label-required_e7fa6e7a3 {
|
|
44
|
+
color: var(--color-text-critical);
|
|
45
|
+
font-weight: var(--font-weight-semibold);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* Optional indicator */
|
|
49
|
+
.label-optional_e7fa6e7a3 {
|
|
50
|
+
color: var(--color-text-secondary);
|
|
51
|
+
font-weight: var(--font-weight-regular);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* Secondary label */
|
|
55
|
+
.label-secondary_e7fa6e7a3 {
|
|
56
|
+
color: var(--color-text-secondary);
|
|
57
|
+
font-weight: var(--font-weight-regular);
|
|
58
|
+
font-style: italic;
|
|
59
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import "./label.css"
|
|
2
|
+
import Component from '@glimmer/component';
|
|
3
|
+
import { precompileTemplate } from '@ember/template-compilation';
|
|
4
|
+
import { setComponentTemplate } from '@ember/component';
|
|
5
|
+
|
|
6
|
+
;
|
|
7
|
+
|
|
8
|
+
class Label extends Component {
|
|
9
|
+
get size() {
|
|
10
|
+
return this.args.size ?? 'md';
|
|
11
|
+
}
|
|
12
|
+
get showRequiredIndicator() {
|
|
13
|
+
const {
|
|
14
|
+
isRequired,
|
|
15
|
+
requiredIndicator
|
|
16
|
+
} = this.args;
|
|
17
|
+
// Show when required AND requiredIndicator is not explicitly false
|
|
18
|
+
return isRequired === true && requiredIndicator !== false;
|
|
19
|
+
}
|
|
20
|
+
get requiredIndicatorText() {
|
|
21
|
+
const {
|
|
22
|
+
requiredIndicator
|
|
23
|
+
} = this.args;
|
|
24
|
+
if (typeof requiredIndicator === 'string') {
|
|
25
|
+
return requiredIndicator;
|
|
26
|
+
}
|
|
27
|
+
return '*';
|
|
28
|
+
}
|
|
29
|
+
get showOptionalIndicator() {
|
|
30
|
+
const {
|
|
31
|
+
isRequired,
|
|
32
|
+
optionalIndicator
|
|
33
|
+
} = this.args;
|
|
34
|
+
// Show when NOT required AND optionalIndicator is truthy
|
|
35
|
+
return isRequired !== true && !!optionalIndicator;
|
|
36
|
+
}
|
|
37
|
+
get optionalIndicatorText() {
|
|
38
|
+
const {
|
|
39
|
+
optionalIndicator
|
|
40
|
+
} = this.args;
|
|
41
|
+
if (typeof optionalIndicator === 'string') {
|
|
42
|
+
return optionalIndicator;
|
|
43
|
+
}
|
|
44
|
+
return '(optional)';
|
|
45
|
+
}
|
|
46
|
+
static {
|
|
47
|
+
setComponentTemplate(precompileTemplate("<label class=\"label_e7fa6e7a3\" for={{@for}} data-size={{this.size}} data-disabled={{if @isDisabled \"true\"}} data-visually-hidden={{if @isVisuallyHidden \"true\"}} data-test-form-label ...attributes>\n <span class=\"label-text\" data-test-label-text>{{yield}}</span>\n {{#if this.showRequiredIndicator}}\n <span class=\"label-required_e7fa6e7a3\" data-test-label-required aria-hidden=\"true\">{{this.requiredIndicatorText}}</span>\n {{/if}}\n {{#if this.showOptionalIndicator}}\n <span class=\"label-optional_e7fa6e7a3\" data-test-label-optional>{{this.optionalIndicatorText}}</span>\n {{/if}}\n {{#if @secondaryLabel}}\n <span class=\"label-secondary_e7fa6e7a3\" data-test-label-secondary>{{@secondaryLabel}}</span>\n {{/if}}\n</label>", {
|
|
48
|
+
strictMode: true
|
|
49
|
+
}), this);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export { Label as default };
|
|
54
|
+
//# sourceMappingURL=label.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/* src/form/listbox.css */
|
|
2
|
+
/* ============================================================================
|
|
3
|
+
Listbox Component Styles
|
|
4
|
+
============================================================================ */
|
|
5
|
+
|
|
6
|
+
/* Container */
|
|
7
|
+
.listbox_efb584ef0 {
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
overflow-y: auto;
|
|
11
|
+
background-color: var(--color-bg-surface);
|
|
12
|
+
border: 1px solid var(--color-border-control);
|
|
13
|
+
border-radius: var(--radius-md);
|
|
14
|
+
outline: none;
|
|
15
|
+
max-height: 20rem;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/* Focus state */
|
|
19
|
+
.listbox_efb584ef0:focus {
|
|
20
|
+
border-color: var(--color-border-focus);
|
|
21
|
+
box-shadow: var(--focus-ring);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* Disabled state */
|
|
25
|
+
.listbox_efb584ef0[data-disabled="true"] {
|
|
26
|
+
opacity: 0.5;
|
|
27
|
+
cursor: not-allowed;
|
|
28
|
+
pointer-events: none;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* ============================================================================
|
|
32
|
+
Option Styles
|
|
33
|
+
============================================================================ */
|
|
34
|
+
|
|
35
|
+
.listbox-option_efb584ef0 {
|
|
36
|
+
position: relative;
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
gap: var(--spacing-2);
|
|
40
|
+
padding: var(--spacing-2) var(--spacing-8) var(--spacing-2) var(--spacing-3);
|
|
41
|
+
min-height: 2.25rem;
|
|
42
|
+
font-size: var(--font-size-sm);
|
|
43
|
+
line-height: var(--line-height-normal);
|
|
44
|
+
color: var(--color-text);
|
|
45
|
+
cursor: pointer;
|
|
46
|
+
user-select: none;
|
|
47
|
+
transition: background-color var(--duration-fast) var(--easing-default);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* Hover state */
|
|
51
|
+
.listbox-option_efb584ef0:hover:not([data-disabled="true"]) {
|
|
52
|
+
background-color: var(--color-bg-fill-interactive-hover);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* Focused state (via keyboard navigation) - light grey background */
|
|
56
|
+
.listbox-option_efb584ef0[data-focused="true"]:not([data-disabled="true"]) {
|
|
57
|
+
background-color: var(--color-bg-fill-interactive-hover);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* Selected state - checkmark on the right */
|
|
61
|
+
.listbox-option_efb584ef0[data-selected="true"]::after {
|
|
62
|
+
content: "";
|
|
63
|
+
position: absolute;
|
|
64
|
+
right: var(--spacing-3);
|
|
65
|
+
top: 50%;
|
|
66
|
+
transform: translateY(-50%);
|
|
67
|
+
width: 1rem;
|
|
68
|
+
height: 1rem;
|
|
69
|
+
background-color: var(--color-text);
|
|
70
|
+
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");
|
|
71
|
+
mask-size: contain;
|
|
72
|
+
mask-position: center;
|
|
73
|
+
mask-repeat: no-repeat;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/* Disabled state */
|
|
77
|
+
.listbox-option_efb584ef0[data-disabled="true"] {
|
|
78
|
+
color: var(--color-text-disabled);
|
|
79
|
+
cursor: not-allowed;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/* Disabled + Selected state */
|
|
83
|
+
.listbox-option_efb584ef0[data-disabled="true"][data-selected="true"]::after {
|
|
84
|
+
background-color: var(--color-text-disabled);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/* ============================================================================
|
|
88
|
+
Group Styles
|
|
89
|
+
============================================================================ */
|
|
90
|
+
|
|
91
|
+
.listbox-group_efb584ef0 {
|
|
92
|
+
display: flex;
|
|
93
|
+
flex-direction: column;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* Add separator between groups (except first) */
|
|
97
|
+
.listbox-group_efb584ef0 + .listbox-group_efb584ef0 {
|
|
98
|
+
border-top: 1px solid var(--color-border-subtle);
|
|
99
|
+
margin-top: var(--spacing-1);
|
|
100
|
+
padding-top: var(--spacing-1);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.listbox-group-label_efb584ef0 {
|
|
104
|
+
padding: var(--spacing-2) var(--spacing-3);
|
|
105
|
+
font-size: var(--font-size-xs);
|
|
106
|
+
font-weight: var(--font-weight-semibold);
|
|
107
|
+
color: var(--color-text-secondary);
|
|
108
|
+
text-transform: uppercase;
|
|
109
|
+
letter-spacing: 0.05em;
|
|
110
|
+
user-select: none;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/* ============================================================================
|
|
114
|
+
Empty State
|
|
115
|
+
============================================================================ */
|
|
116
|
+
|
|
117
|
+
.listbox-empty_efb584ef0 {
|
|
118
|
+
display: flex;
|
|
119
|
+
align-items: center;
|
|
120
|
+
justify-content: center;
|
|
121
|
+
padding: var(--spacing-4) var(--spacing-3);
|
|
122
|
+
font-size: var(--font-size-sm);
|
|
123
|
+
color: var(--color-text-secondary);
|
|
124
|
+
text-align: center;
|
|
125
|
+
}
|