@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,46 @@
|
|
|
1
|
+
/* src/form/toggle-group.css */
|
|
2
|
+
.fieldset_e5e69723c {
|
|
3
|
+
border: none;
|
|
4
|
+
margin: 0;
|
|
5
|
+
padding: 0;
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
gap: var(--spacing-1-5);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.legend_e5e69723c {
|
|
12
|
+
display: block;
|
|
13
|
+
font-size: var(--font-size-sm);
|
|
14
|
+
font-weight: var(--font-weight-medium);
|
|
15
|
+
color: var(--color-text);
|
|
16
|
+
line-height: var(--line-height-normal);
|
|
17
|
+
margin-bottom: var(--spacing-1-5);
|
|
18
|
+
padding: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.fieldset_e5e69723c[data-disabled="true"] .legend_e5e69723c {
|
|
22
|
+
color: var(--color-text-disabled);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.description_e5e69723c {
|
|
26
|
+
margin: 0;
|
|
27
|
+
font-size: var(--font-size-sm);
|
|
28
|
+
line-height: var(--line-height-normal);
|
|
29
|
+
color: var(--color-text-secondary);
|
|
30
|
+
margin-bottom: var(--spacing-1);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.options_e5e69723c {
|
|
34
|
+
display: flex;
|
|
35
|
+
gap: var(--spacing-4);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.options_e5e69723c[data-orientation="vertical"] {
|
|
39
|
+
flex-direction: column;
|
|
40
|
+
gap: var(--spacing-3);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.options_e5e69723c[data-orientation="horizontal"] {
|
|
44
|
+
flex-flow: row wrap;
|
|
45
|
+
gap: var(--spacing-6);
|
|
46
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import "./toggle-group.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 ToggleGroup extends Component {
|
|
9
|
+
get orientation() {
|
|
10
|
+
return this.args.orientation ?? 'vertical';
|
|
11
|
+
}
|
|
12
|
+
static {
|
|
13
|
+
setComponentTemplate(precompileTemplate("<fieldset class=\"fieldset_e5e69723c\" data-orientation={{this.orientation}} data-disabled={{if @isDisabled \"true\"}} data-test-toggle-group ...attributes>\n {{#if @label}}\n <legend class=\"legend_e5e69723c\" data-test-toggle-group-legend>\n {{@label}}\n </legend>\n {{/if}}\n\n {{#if @description}}\n <p class=\"description_e5e69723c\" data-test-toggle-group-description>\n {{@description}}\n </p>\n {{/if}}\n\n <div class=\"options_e5e69723c\" data-orientation={{this.orientation}} data-test-toggle-group-options>\n {{yield}}\n </div>\n</fieldset>", {
|
|
14
|
+
strictMode: true
|
|
15
|
+
}), this);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { ToggleGroup as default };
|
|
20
|
+
//# sourceMappingURL=toggle-group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toggle-group.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
/* src/form/toggle.css */
|
|
2
|
+
.wrapper_eb612ecfd {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
gap: var(--spacing-1);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.label-wrapper_eb612ecfd {
|
|
9
|
+
display: inline-flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
gap: var(--spacing-2);
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
user-select: none;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.wrapper_eb612ecfd[data-disabled="true"] .label-wrapper_eb612ecfd {
|
|
17
|
+
cursor: not-allowed;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* Hide native input */
|
|
21
|
+
.input_eb612ecfd {
|
|
22
|
+
position: absolute;
|
|
23
|
+
opacity: 0;
|
|
24
|
+
width: 0;
|
|
25
|
+
height: 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* Track (switch background) */
|
|
29
|
+
.track_eb612ecfd {
|
|
30
|
+
position: relative;
|
|
31
|
+
flex-shrink: 0;
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
background-color: var(--color-bg-neutral-subtle);
|
|
35
|
+
border-radius: 999px;
|
|
36
|
+
transition: background-color 150ms ease;
|
|
37
|
+
padding: var(--spacing-0-5);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* Track sizes - sm: 32x18, md: 40x22, lg: 48x26 */
|
|
41
|
+
.wrapper_eb612ecfd[data-size="sm"] .track_eb612ecfd {
|
|
42
|
+
width: 32px;
|
|
43
|
+
height: 18px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.wrapper_eb612ecfd[data-size="md"] .track_eb612ecfd {
|
|
47
|
+
width: 40px;
|
|
48
|
+
height: 22px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.wrapper_eb612ecfd[data-size="lg"] .track_eb612ecfd {
|
|
52
|
+
width: 48px;
|
|
53
|
+
height: 26px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* Thumb (switch knob) */
|
|
57
|
+
.thumb_eb612ecfd {
|
|
58
|
+
background-color: var(--white);
|
|
59
|
+
border-radius: 50%;
|
|
60
|
+
box-shadow: var(--shadow-sm);
|
|
61
|
+
transition:
|
|
62
|
+
transform 150ms ease,
|
|
63
|
+
box-shadow 150ms ease;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* Thumb sizes - sm: 14px, md: 18px, lg: 22px */
|
|
67
|
+
.wrapper_eb612ecfd[data-size="sm"] .thumb_eb612ecfd {
|
|
68
|
+
width: 14px;
|
|
69
|
+
height: 14px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.wrapper_eb612ecfd[data-size="md"] .thumb_eb612ecfd {
|
|
73
|
+
width: 18px;
|
|
74
|
+
height: 18px;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.wrapper_eb612ecfd[data-size="lg"] .thumb_eb612ecfd {
|
|
78
|
+
width: 22px;
|
|
79
|
+
height: 22px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/* Hover state (off) */
|
|
83
|
+
.label-wrapper_eb612ecfd:hover .track_eb612ecfd:not(.checked_eb612ecfd) {
|
|
84
|
+
background-color: var(--color-bg-neutral);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.wrapper_eb612ecfd[data-disabled="true"] .label-wrapper_eb612ecfd:hover .track_eb612ecfd {
|
|
88
|
+
background-color: var(--color-bg-disabled);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/* Hover state - increase shadow */
|
|
92
|
+
.label-wrapper_eb612ecfd:hover .thumb_eb612ecfd {
|
|
93
|
+
box-shadow: var(--shadow-md);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.wrapper_eb612ecfd[data-disabled="true"] .label-wrapper_eb612ecfd:hover .thumb_eb612ecfd {
|
|
97
|
+
box-shadow: var(--shadow-sm);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/* Focus state */
|
|
101
|
+
.track_eb612ecfd.focused_eb612ecfd {
|
|
102
|
+
outline: none;
|
|
103
|
+
box-shadow: var(--focus-ring);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/* Active state - scale thumb */
|
|
107
|
+
.label-wrapper_eb612ecfd:active .thumb_eb612ecfd {
|
|
108
|
+
transform: scale(0.95);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/* Checked state - track */
|
|
112
|
+
.track_eb612ecfd.checked_eb612ecfd {
|
|
113
|
+
background-color: var(--color-bg-fill-accent);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/* Checked + hover */
|
|
117
|
+
.label-wrapper_eb612ecfd:hover .track_eb612ecfd.checked_eb612ecfd {
|
|
118
|
+
background-color: var(--color-bg-fill-accent-hover);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/* Checked state - thumb position */
|
|
122
|
+
.wrapper_eb612ecfd[data-size="sm"] .track_eb612ecfd.checked_eb612ecfd .thumb_eb612ecfd {
|
|
123
|
+
transform: translateX(14px);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.wrapper_eb612ecfd[data-size="md"] .track_eb612ecfd.checked_eb612ecfd .thumb_eb612ecfd {
|
|
127
|
+
transform: translateX(18px);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.wrapper_eb612ecfd[data-size="lg"] .track_eb612ecfd.checked_eb612ecfd .thumb_eb612ecfd {
|
|
131
|
+
transform: translateX(22px);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/* Active + checked - maintain position with scale */
|
|
135
|
+
.wrapper_eb612ecfd[data-size="sm"] .label-wrapper_eb612ecfd:active .track_eb612ecfd.checked_eb612ecfd .thumb_eb612ecfd {
|
|
136
|
+
transform: translateX(14px) scale(0.95);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.wrapper_eb612ecfd[data-size="md"] .label-wrapper_eb612ecfd:active .track_eb612ecfd.checked_eb612ecfd .thumb_eb612ecfd {
|
|
140
|
+
transform: translateX(18px) scale(0.95);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.wrapper_eb612ecfd[data-size="lg"] .label-wrapper_eb612ecfd:active .track_eb612ecfd.checked_eb612ecfd .thumb_eb612ecfd {
|
|
144
|
+
transform: translateX(22px) scale(0.95);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/* Disabled state - track */
|
|
148
|
+
.wrapper_eb612ecfd[data-disabled="true"] .track_eb612ecfd {
|
|
149
|
+
background-color: var(--color-bg-disabled);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.wrapper_eb612ecfd[data-disabled="true"] .track_eb612ecfd.checked_eb612ecfd {
|
|
153
|
+
background-color: var(--color-bg-disabled);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/* Disabled state - thumb */
|
|
157
|
+
.wrapper_eb612ecfd[data-disabled="true"] .thumb_eb612ecfd {
|
|
158
|
+
background-color: var(--color-bg-surface);
|
|
159
|
+
box-shadow: none;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/* Label */
|
|
163
|
+
.label_eb612ecfd {
|
|
164
|
+
font-size: var(--font-size-md);
|
|
165
|
+
color: var(--color-text);
|
|
166
|
+
line-height: var(--line-height-normal);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.wrapper_eb612ecfd[data-size="sm"] .label_eb612ecfd {
|
|
170
|
+
font-size: var(--font-size-sm);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.wrapper_eb612ecfd[data-size="lg"] .label_eb612ecfd {
|
|
174
|
+
font-size: var(--font-size-lg);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.wrapper_eb612ecfd[data-disabled="true"] .label_eb612ecfd {
|
|
178
|
+
color: var(--color-text-disabled);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/* Required indicator */
|
|
182
|
+
.required_eb612ecfd {
|
|
183
|
+
color: var(--color-text-critical);
|
|
184
|
+
margin-left: var(--spacing-0-5);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/* Description */
|
|
188
|
+
.description_eb612ecfd {
|
|
189
|
+
margin: 0;
|
|
190
|
+
font-size: var(--font-size-sm);
|
|
191
|
+
line-height: var(--line-height-normal);
|
|
192
|
+
color: var(--color-text-secondary);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/* Description offset when label is at end (align under the label, not the toggle) */
|
|
196
|
+
.wrapper_eb612ecfd[data-label-position="end"] .description_eb612ecfd {
|
|
197
|
+
margin-left: calc(var(--spacing-2) + 40px);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.wrapper_eb612ecfd[data-label-position="end"][data-size="sm"] .description_eb612ecfd {
|
|
201
|
+
margin-left: calc(var(--spacing-2) + 32px);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.wrapper_eb612ecfd[data-label-position="end"][data-size="lg"] .description_eb612ecfd {
|
|
205
|
+
margin-left: calc(var(--spacing-2) + 48px);
|
|
206
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import "./toggle.css"
|
|
2
|
+
import Component from '@glimmer/component';
|
|
3
|
+
import { tracked } from '@glimmer/tracking';
|
|
4
|
+
import { action } from '@ember/object';
|
|
5
|
+
import { guidFor } from '@ember/object/internals';
|
|
6
|
+
import { on } from '@ember/modifier';
|
|
7
|
+
import { eq } from 'ember-truth-helpers';
|
|
8
|
+
import { precompileTemplate } from '@ember/template-compilation';
|
|
9
|
+
import { setComponentTemplate } from '@ember/component';
|
|
10
|
+
import { g, i, n } from 'decorator-transforms/runtime';
|
|
11
|
+
|
|
12
|
+
;
|
|
13
|
+
|
|
14
|
+
class Toggle extends Component {
|
|
15
|
+
static {
|
|
16
|
+
g(this.prototype, "internalChecked", [tracked]);
|
|
17
|
+
}
|
|
18
|
+
#internalChecked = (i(this, "internalChecked"), void 0);
|
|
19
|
+
static {
|
|
20
|
+
g(this.prototype, "isFocused", [tracked], function () {
|
|
21
|
+
return false;
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
#isFocused = (i(this, "isFocused"), void 0);
|
|
25
|
+
constructor(owner, args) {
|
|
26
|
+
super(owner, args);
|
|
27
|
+
this.internalChecked = args.defaultChecked ?? false;
|
|
28
|
+
}
|
|
29
|
+
guid = guidFor(this);
|
|
30
|
+
get inputId() {
|
|
31
|
+
return this.args.id ?? this.guid;
|
|
32
|
+
}
|
|
33
|
+
get descriptionId() {
|
|
34
|
+
return `${this.guid}-description`;
|
|
35
|
+
}
|
|
36
|
+
get size() {
|
|
37
|
+
return this.args.size ?? 'md';
|
|
38
|
+
}
|
|
39
|
+
get labelPosition() {
|
|
40
|
+
return this.args.labelPosition ?? 'start';
|
|
41
|
+
}
|
|
42
|
+
get value() {
|
|
43
|
+
return this.args.value ?? 'on';
|
|
44
|
+
}
|
|
45
|
+
get isControlled() {
|
|
46
|
+
return this.args.checked !== undefined;
|
|
47
|
+
}
|
|
48
|
+
get checked() {
|
|
49
|
+
return this.isControlled ? this.args.checked ?? false : this.internalChecked;
|
|
50
|
+
}
|
|
51
|
+
get hasLabel() {
|
|
52
|
+
return !!this.args.label;
|
|
53
|
+
}
|
|
54
|
+
get hasDescription() {
|
|
55
|
+
return !!this.args.description;
|
|
56
|
+
}
|
|
57
|
+
get ariaDescribedBy() {
|
|
58
|
+
if (this.args['aria-describedby']) {
|
|
59
|
+
return this.args['aria-describedby'];
|
|
60
|
+
}
|
|
61
|
+
if (this.hasDescription) {
|
|
62
|
+
return this.descriptionId;
|
|
63
|
+
}
|
|
64
|
+
return undefined;
|
|
65
|
+
}
|
|
66
|
+
handleChange(event) {
|
|
67
|
+
const target = event.target;
|
|
68
|
+
const newChecked = target.checked;
|
|
69
|
+
if (!this.isControlled) {
|
|
70
|
+
this.internalChecked = newChecked;
|
|
71
|
+
}
|
|
72
|
+
this.args.onChange?.(newChecked);
|
|
73
|
+
}
|
|
74
|
+
static {
|
|
75
|
+
n(this.prototype, "handleChange", [action]);
|
|
76
|
+
}
|
|
77
|
+
handleFocus() {
|
|
78
|
+
this.isFocused = true;
|
|
79
|
+
this.args.onFocus?.();
|
|
80
|
+
}
|
|
81
|
+
static {
|
|
82
|
+
n(this.prototype, "handleFocus", [action]);
|
|
83
|
+
}
|
|
84
|
+
handleBlur() {
|
|
85
|
+
this.isFocused = false;
|
|
86
|
+
this.args.onBlur?.();
|
|
87
|
+
}
|
|
88
|
+
static {
|
|
89
|
+
n(this.prototype, "handleBlur", [action]);
|
|
90
|
+
}
|
|
91
|
+
static {
|
|
92
|
+
setComponentTemplate(precompileTemplate("<div class=\"wrapper_eb612ecfd\" data-size={{this.size}} data-label-position={{this.labelPosition}} data-disabled={{if @isDisabled \"true\"}} data-test-toggle-wrapper ...attributes>\n <label class=\"label-wrapper_eb612ecfd\">\n {{#if this.hasLabel}}\n {{#if (eq this.labelPosition \"start\")}}\n <span class=\"label_eb612ecfd\" data-test-toggle-label>\n {{@label}}\n {{#if @isRequired}}\n <span class=\"required_eb612ecfd\">*</span>\n {{/if}}\n </span>\n {{/if}}\n {{/if}}\n\n <input id={{this.inputId}} type=\"checkbox\" role=\"switch\" class=\"input_eb612ecfd\" name={{@name}} value={{this.value}} checked={{this.checked}} disabled={{@isDisabled}} required={{@isRequired}} aria-checked={{if this.checked \"true\" \"false\"}} aria-describedby={{this.ariaDescribedBy}} {{on \"change\" this.handleChange}} {{on \"focus\" this.handleFocus}} {{on \"blur\" this.handleBlur}} data-test-toggle />\n\n <span class=\"track_eb612ecfd\n {{if this.checked \"checked_eb612ecfd\"}}\n {{if this.isFocused \"focused_eb612ecfd\"}}\" data-focused={{if this.isFocused \"true\"}} data-test-toggle-track>\n <span class=\"thumb_eb612ecfd\" data-test-toggle-thumb></span>\n </span>\n\n {{#if this.hasLabel}}\n {{#if (eq this.labelPosition \"end\")}}\n <span class=\"label_eb612ecfd\" data-test-toggle-label>\n {{@label}}\n {{#if @isRequired}}\n <span class=\"required_eb612ecfd\">*</span>\n {{/if}}\n </span>\n {{/if}}\n {{/if}}\n </label>\n\n {{#if this.hasDescription}}\n <p id={{this.descriptionId}} class=\"description_eb612ecfd\" data-test-toggle-description>\n {{@description}}\n </p>\n {{/if}}\n</div>", {
|
|
93
|
+
strictMode: true,
|
|
94
|
+
scope: () => ({
|
|
95
|
+
eq,
|
|
96
|
+
on
|
|
97
|
+
})
|
|
98
|
+
}), this);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export { Toggle as default };
|
|
103
|
+
//# sourceMappingURL=toggle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toggle.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/* <inline>/src/layout/divider-css-1ba104b9c606cbd1f542b45640fb5f2b.css */
|
|
2
|
+
|
|
3
|
+
.divider_e11f7c205 {
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/* Orientation */
|
|
9
|
+
.divider_e11f7c205[data-orientation="horizontal"] {
|
|
10
|
+
flex-direction: row;
|
|
11
|
+
width: 100%;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.divider_e11f7c205[data-orientation="vertical"] {
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
height: 100%;
|
|
17
|
+
align-self: stretch;
|
|
18
|
+
min-height: 1rem;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* Line styles */
|
|
22
|
+
.divider__line_e11f7c205 {
|
|
23
|
+
flex: 1;
|
|
24
|
+
border: none;
|
|
25
|
+
margin: 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.divider_e11f7c205[data-orientation="horizontal"] .divider__line_e11f7c205 {
|
|
29
|
+
height: var(--border-width-1);
|
|
30
|
+
width: auto;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.divider_e11f7c205[data-orientation="vertical"] .divider__line_e11f7c205 {
|
|
34
|
+
width: var(--border-width-1);
|
|
35
|
+
height: auto;
|
|
36
|
+
min-height: 0.5rem;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/* Variants */
|
|
40
|
+
.divider_e11f7c205[data-variant="default"] .divider__line_e11f7c205 {
|
|
41
|
+
background-color: var(--color-border-subtle);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.divider_e11f7c205[data-variant="subtle"] .divider__line_e11f7c205 {
|
|
45
|
+
background-color: var(--color-border-subtle);
|
|
46
|
+
opacity: 0.5;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.divider_e11f7c205[data-variant="strong"] .divider__line_e11f7c205 {
|
|
50
|
+
background-color: var(--color-border);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* Spacing - Horizontal */
|
|
54
|
+
.divider_e11f7c205[data-orientation="horizontal"][data-spacing="none"] {
|
|
55
|
+
margin-top: 0;
|
|
56
|
+
margin-bottom: 0;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.divider_e11f7c205[data-orientation="horizontal"][data-spacing="sm"] {
|
|
60
|
+
margin-top: var(--spacing-gap-sm);
|
|
61
|
+
margin-bottom: var(--spacing-gap-sm);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.divider_e11f7c205[data-orientation="horizontal"][data-spacing="md"] {
|
|
65
|
+
margin-top: var(--spacing-gap-md);
|
|
66
|
+
margin-bottom: var(--spacing-gap-md);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.divider_e11f7c205[data-orientation="horizontal"][data-spacing="lg"] {
|
|
70
|
+
margin-top: var(--spacing-gap-lg);
|
|
71
|
+
margin-bottom: var(--spacing-gap-lg);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* Spacing - Vertical */
|
|
75
|
+
.divider_e11f7c205[data-orientation="vertical"][data-spacing="none"] {
|
|
76
|
+
margin-left: 0;
|
|
77
|
+
margin-right: 0;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.divider_e11f7c205[data-orientation="vertical"][data-spacing="sm"] {
|
|
81
|
+
margin-left: var(--spacing-gap-sm);
|
|
82
|
+
margin-right: var(--spacing-gap-sm);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.divider_e11f7c205[data-orientation="vertical"][data-spacing="md"] {
|
|
86
|
+
margin-left: var(--spacing-gap-md);
|
|
87
|
+
margin-right: var(--spacing-gap-md);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.divider_e11f7c205[data-orientation="vertical"][data-spacing="lg"] {
|
|
91
|
+
margin-left: var(--spacing-gap-lg);
|
|
92
|
+
margin-right: var(--spacing-gap-lg);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* Label */
|
|
96
|
+
.divider__label_e11f7c205 {
|
|
97
|
+
flex-shrink: 0;
|
|
98
|
+
color: var(--color-text-tertiary);
|
|
99
|
+
font-size: var(--font-size-sm);
|
|
100
|
+
line-height: var(--line-height-sm);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.divider_e11f7c205[data-orientation="horizontal"] .divider__label_e11f7c205 {
|
|
104
|
+
padding-left: var(--spacing-gap-md);
|
|
105
|
+
padding-right: var(--spacing-gap-md);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.divider_e11f7c205[data-orientation="vertical"] .divider__label_e11f7c205 {
|
|
109
|
+
padding-top: var(--spacing-gap-sm);
|
|
110
|
+
padding-bottom: var(--spacing-gap-sm);
|
|
111
|
+
writing-mode: vertical-rl;
|
|
112
|
+
text-orientation: mixed;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/* Label positioning - hide lines based on position */
|
|
116
|
+
.divider_e11f7c205[data-label-position="start"] .divider__line--start_e11f7c205 {
|
|
117
|
+
display: none;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.divider_e11f7c205[data-label-position="end"] .divider__line--end_e11f7c205 {
|
|
121
|
+
display: none;
|
|
122
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import "./divider-css-1ba104b9c606cbd1f542b45640fb5f2b.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 Divider extends Component {
|
|
9
|
+
get orientation() {
|
|
10
|
+
return this.args.orientation ?? 'horizontal';
|
|
11
|
+
}
|
|
12
|
+
get variant() {
|
|
13
|
+
return this.args.variant ?? 'default';
|
|
14
|
+
}
|
|
15
|
+
get spacing() {
|
|
16
|
+
return this.args.spacing ?? 'md';
|
|
17
|
+
}
|
|
18
|
+
get labelPosition() {
|
|
19
|
+
return this.args.labelPosition ?? 'center';
|
|
20
|
+
}
|
|
21
|
+
get decorative() {
|
|
22
|
+
return this.args.decorative ?? true;
|
|
23
|
+
}
|
|
24
|
+
get ariaOrientation() {
|
|
25
|
+
return this.orientation === 'vertical' ? 'vertical' : undefined;
|
|
26
|
+
}
|
|
27
|
+
static {
|
|
28
|
+
setComponentTemplate(precompileTemplate("\n\n<div class=\"divider_e11f7c205\" role=\"separator\" aria-orientation={{this.ariaOrientation}} aria-hidden={{if this.decorative \"true\"}} data-orientation={{this.orientation}} data-variant={{this.variant}} data-spacing={{this.spacing}} data-label-position={{if @label this.labelPosition}} ...attributes>\n {{#if @label}}\n <span class=\"divider__line_e11f7c205 divider__line--start_e11f7c205\"></span>\n <span class=\"divider__label_e11f7c205\">{{@label}}</span>\n <span class=\"divider__line_e11f7c205 divider__line--end_e11f7c205\"></span>\n {{else}}\n <span class=\"divider__line_e11f7c205\"></span>\n {{/if}}\n</div>", {
|
|
29
|
+
strictMode: true
|
|
30
|
+
}), this);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { Divider as default };
|
|
35
|
+
//# sourceMappingURL=divider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"divider.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|