@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,352 @@
|
|
|
1
|
+
/* ===================================
|
|
2
|
+
* Tag Component
|
|
3
|
+
* =================================== */
|
|
4
|
+
|
|
5
|
+
.tag {
|
|
6
|
+
/* Layout */
|
|
7
|
+
position: relative;
|
|
8
|
+
display: inline-flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
|
|
12
|
+
/* Shape */
|
|
13
|
+
border-radius: var(--radius-full);
|
|
14
|
+
|
|
15
|
+
/* Typography */
|
|
16
|
+
font-weight: var(--font-weight-medium);
|
|
17
|
+
line-height: 1;
|
|
18
|
+
white-space: nowrap;
|
|
19
|
+
|
|
20
|
+
/* Transitions */
|
|
21
|
+
transition:
|
|
22
|
+
background-color 0.15s ease,
|
|
23
|
+
border-color 0.15s ease,
|
|
24
|
+
color 0.15s ease,
|
|
25
|
+
box-shadow 0.15s ease;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* ===================================
|
|
29
|
+
* Tag Content (inner interactive/static element)
|
|
30
|
+
* =================================== */
|
|
31
|
+
|
|
32
|
+
.tag-content {
|
|
33
|
+
/* Reset */
|
|
34
|
+
appearance: none;
|
|
35
|
+
border: none;
|
|
36
|
+
background: none;
|
|
37
|
+
font: inherit;
|
|
38
|
+
text-decoration: none;
|
|
39
|
+
color: inherit;
|
|
40
|
+
|
|
41
|
+
/* Layout */
|
|
42
|
+
display: inline-flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
gap: var(--spacing-1);
|
|
45
|
+
flex: 1 1 auto;
|
|
46
|
+
min-width: 0;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/* Interactive content */
|
|
50
|
+
button.tag-content,
|
|
51
|
+
a.tag-content {
|
|
52
|
+
cursor: pointer;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
button.tag-content:focus-visible,
|
|
56
|
+
a.tag-content:focus-visible {
|
|
57
|
+
outline: none;
|
|
58
|
+
box-shadow: inset 0 0 0 2px var(--color-focus-ring-halo);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* ===================================
|
|
62
|
+
* Sizes
|
|
63
|
+
* =================================== */
|
|
64
|
+
|
|
65
|
+
.tag[data-size="sm"] {
|
|
66
|
+
height: var(--spacing-5);
|
|
67
|
+
font-size: var(--font-size-xs);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.tag[data-size="sm"] .tag-content {
|
|
71
|
+
padding: 0 var(--spacing-2);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.tag[data-size="md"] {
|
|
75
|
+
height: var(--spacing-6);
|
|
76
|
+
font-size: var(--font-size-sm);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.tag[data-size="md"] .tag-content {
|
|
80
|
+
padding: 0 var(--spacing-2-5);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.tag[data-size="lg"] {
|
|
84
|
+
height: var(--spacing-7);
|
|
85
|
+
font-size: var(--font-size-sm);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.tag[data-size="lg"] .tag-content {
|
|
89
|
+
padding: 0 var(--spacing-3);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* Adjust padding when has accent bar */
|
|
93
|
+
.tag[data-has-accent="true"][data-size="sm"] .tag-content {
|
|
94
|
+
padding-left: var(--spacing-2);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.tag[data-has-accent="true"][data-size="md"] .tag-content {
|
|
98
|
+
padding-left: var(--spacing-2-5);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.tag[data-has-accent="true"][data-size="lg"] .tag-content {
|
|
102
|
+
padding-left: var(--spacing-3);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/* Adjust padding when removable */
|
|
106
|
+
.tag[data-removable="true"][data-size="sm"] .tag-content {
|
|
107
|
+
padding-right: var(--spacing-1);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.tag[data-removable="true"][data-size="md"] .tag-content {
|
|
111
|
+
padding-right: var(--spacing-1);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.tag[data-removable="true"][data-size="lg"] .tag-content {
|
|
115
|
+
padding-right: var(--spacing-1-5);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/* ===================================
|
|
119
|
+
* Tones
|
|
120
|
+
* =================================== */
|
|
121
|
+
|
|
122
|
+
/* Neutral */
|
|
123
|
+
.tag[data-tone="neutral"] {
|
|
124
|
+
background: var(--color-bg-neutral-subtle);
|
|
125
|
+
color: var(--color-text);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.tag[data-tone="neutral"][data-interactive="true"]:hover:not(
|
|
129
|
+
[data-disabled="true"]
|
|
130
|
+
) {
|
|
131
|
+
background: var(--color-bg-neutral-subtle-hover);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.tag[data-tone="neutral"][data-interactive="true"]:active:not(
|
|
135
|
+
[data-disabled="true"]
|
|
136
|
+
) {
|
|
137
|
+
background: var(--color-bg-neutral-subtle-active);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.tag[data-tone="neutral"][data-selected="true"] {
|
|
141
|
+
background: var(--color-bg-fill-neutral);
|
|
142
|
+
color: var(--color-text-on-neutral);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/* Primary */
|
|
146
|
+
.tag[data-tone="primary"] {
|
|
147
|
+
background: var(--color-bg-primary-subtle);
|
|
148
|
+
color: var(--color-text-primary);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.tag[data-tone="primary"][data-interactive="true"]:hover:not(
|
|
152
|
+
[data-disabled="true"]
|
|
153
|
+
) {
|
|
154
|
+
background: var(--color-bg-primary-subtle-hover);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.tag[data-tone="primary"][data-interactive="true"]:active:not(
|
|
158
|
+
[data-disabled="true"]
|
|
159
|
+
) {
|
|
160
|
+
background: var(--color-bg-primary-subtle-active);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.tag[data-tone="primary"][data-selected="true"] {
|
|
164
|
+
background: var(--color-bg-fill-primary);
|
|
165
|
+
color: var(--color-text-on-primary);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/* Success */
|
|
169
|
+
.tag[data-tone="success"] {
|
|
170
|
+
background: var(--color-bg-success-subtle);
|
|
171
|
+
color: var(--color-text-success);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.tag[data-tone="success"][data-interactive="true"]:hover:not(
|
|
175
|
+
[data-disabled="true"]
|
|
176
|
+
) {
|
|
177
|
+
background: var(--color-bg-success-subtle-hover);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.tag[data-tone="success"][data-interactive="true"]:active:not(
|
|
181
|
+
[data-disabled="true"]
|
|
182
|
+
) {
|
|
183
|
+
background: var(--color-bg-success-subtle-active);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.tag[data-tone="success"][data-selected="true"] {
|
|
187
|
+
background: var(--color-bg-fill-success);
|
|
188
|
+
color: var(--color-text-on-success);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/* Warning */
|
|
192
|
+
.tag[data-tone="warning"] {
|
|
193
|
+
background: var(--color-bg-warning-subtle);
|
|
194
|
+
color: var(--color-text-warning);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.tag[data-tone="warning"][data-interactive="true"]:hover:not(
|
|
198
|
+
[data-disabled="true"]
|
|
199
|
+
) {
|
|
200
|
+
background: var(--color-bg-warning-subtle-hover);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.tag[data-tone="warning"][data-interactive="true"]:active:not(
|
|
204
|
+
[data-disabled="true"]
|
|
205
|
+
) {
|
|
206
|
+
background: var(--color-bg-warning-subtle-active);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.tag[data-tone="warning"][data-selected="true"] {
|
|
210
|
+
background: var(--color-bg-fill-warning);
|
|
211
|
+
color: var(--color-text-on-warning);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/* Critical */
|
|
215
|
+
.tag[data-tone="critical"] {
|
|
216
|
+
background: var(--color-bg-critical-subtle);
|
|
217
|
+
color: var(--color-text-critical);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.tag[data-tone="critical"][data-interactive="true"]:hover:not(
|
|
221
|
+
[data-disabled="true"]
|
|
222
|
+
) {
|
|
223
|
+
background: var(--color-bg-critical-subtle-hover);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.tag[data-tone="critical"][data-interactive="true"]:active:not(
|
|
227
|
+
[data-disabled="true"]
|
|
228
|
+
) {
|
|
229
|
+
background: var(--color-bg-critical-subtle-active);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.tag[data-tone="critical"][data-selected="true"] {
|
|
233
|
+
background: var(--color-bg-fill-critical);
|
|
234
|
+
color: var(--color-text-on-critical);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/* Info */
|
|
238
|
+
.tag[data-tone="info"] {
|
|
239
|
+
background: var(--color-bg-info-subtle);
|
|
240
|
+
color: var(--color-text-info);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.tag[data-tone="info"][data-interactive="true"]:hover:not(
|
|
244
|
+
[data-disabled="true"]
|
|
245
|
+
) {
|
|
246
|
+
background: var(--color-bg-info-subtle-hover);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.tag[data-tone="info"][data-interactive="true"]:active:not(
|
|
250
|
+
[data-disabled="true"]
|
|
251
|
+
) {
|
|
252
|
+
background: var(--color-bg-info-subtle-active);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.tag[data-tone="info"][data-selected="true"] {
|
|
256
|
+
background: var(--color-bg-fill-info);
|
|
257
|
+
color: var(--color-text-on-info);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
/* ===================================
|
|
261
|
+
* States
|
|
262
|
+
* =================================== */
|
|
263
|
+
|
|
264
|
+
/* Disabled */
|
|
265
|
+
.tag[data-disabled="true"] {
|
|
266
|
+
opacity: 0.5;
|
|
267
|
+
cursor: not-allowed;
|
|
268
|
+
pointer-events: none;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
/* ===================================
|
|
272
|
+
* Inner Elements
|
|
273
|
+
* =================================== */
|
|
274
|
+
|
|
275
|
+
.tag-icon {
|
|
276
|
+
display: inline-flex;
|
|
277
|
+
align-items: center;
|
|
278
|
+
flex-shrink: 0;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.tag-label {
|
|
282
|
+
flex: 1 1 auto;
|
|
283
|
+
min-width: 0;
|
|
284
|
+
overflow: hidden;
|
|
285
|
+
text-overflow: ellipsis;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/* Accent bar */
|
|
289
|
+
.tag-accent {
|
|
290
|
+
position: absolute;
|
|
291
|
+
left: 0;
|
|
292
|
+
top: 0;
|
|
293
|
+
bottom: 0;
|
|
294
|
+
width: 3px;
|
|
295
|
+
background: var(--tag-accent-color);
|
|
296
|
+
border-radius: var(--radius-full) 0 0 var(--radius-full);
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
/* Remove button */
|
|
300
|
+
.tag-remove {
|
|
301
|
+
/* Reset */
|
|
302
|
+
appearance: none;
|
|
303
|
+
border: none;
|
|
304
|
+
background: none;
|
|
305
|
+
padding: 0;
|
|
306
|
+
margin: 0;
|
|
307
|
+
cursor: pointer;
|
|
308
|
+
|
|
309
|
+
/* Layout */
|
|
310
|
+
display: inline-flex;
|
|
311
|
+
align-items: center;
|
|
312
|
+
justify-content: center;
|
|
313
|
+
flex-shrink: 0;
|
|
314
|
+
|
|
315
|
+
/* Size */
|
|
316
|
+
width: var(--spacing-4);
|
|
317
|
+
height: var(--spacing-4);
|
|
318
|
+
margin-right: var(--spacing-1);
|
|
319
|
+
|
|
320
|
+
/* Shape */
|
|
321
|
+
border-radius: var(--radius-full);
|
|
322
|
+
|
|
323
|
+
/* Color */
|
|
324
|
+
color: currentColor;
|
|
325
|
+
opacity: 0.7;
|
|
326
|
+
|
|
327
|
+
/* Transitions */
|
|
328
|
+
transition:
|
|
329
|
+
opacity 0.15s ease,
|
|
330
|
+
background-color 0.15s ease;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.tag-remove:hover:not(:disabled) {
|
|
334
|
+
opacity: 1;
|
|
335
|
+
background: rgba(0, 0, 0, 0.1);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.tag-remove:focus-visible {
|
|
339
|
+
outline: none;
|
|
340
|
+
opacity: 1;
|
|
341
|
+
box-shadow: 0 0 0 2px var(--color-focus-ring-halo);
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.tag-remove:disabled {
|
|
345
|
+
cursor: not-allowed;
|
|
346
|
+
pointer-events: none;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
/* Selected state remove button styling */
|
|
350
|
+
.tag[data-selected="true"] .tag-remove:hover:not(:disabled) {
|
|
351
|
+
background: rgba(255, 255, 255, 0.2);
|
|
352
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import "./tag.css"
|
|
2
|
+
import Component from '@glimmer/component';
|
|
3
|
+
import { on } from '@ember/modifier';
|
|
4
|
+
import { X } from 'lucide';
|
|
5
|
+
import Icon from '../media/icon.js';
|
|
6
|
+
import { precompileTemplate } from '@ember/template-compilation';
|
|
7
|
+
import { setComponentTemplate } from '@ember/component';
|
|
8
|
+
|
|
9
|
+
;
|
|
10
|
+
|
|
11
|
+
class Tag extends Component {
|
|
12
|
+
get tone() {
|
|
13
|
+
return this.args.tone ?? 'neutral';
|
|
14
|
+
}
|
|
15
|
+
get size() {
|
|
16
|
+
return this.args.size ?? 'md';
|
|
17
|
+
}
|
|
18
|
+
get iconSize() {
|
|
19
|
+
return this.size === 'sm' ? 'xs' : 'sm';
|
|
20
|
+
}
|
|
21
|
+
get isInteractive() {
|
|
22
|
+
return !!(this.args.onClick || this.args.href);
|
|
23
|
+
}
|
|
24
|
+
get isLink() {
|
|
25
|
+
return !!this.args.href;
|
|
26
|
+
}
|
|
27
|
+
get removeLabel() {
|
|
28
|
+
return this.args.removeLabel ?? 'Remove';
|
|
29
|
+
}
|
|
30
|
+
get ariaPressed() {
|
|
31
|
+
if (this.args.selected === undefined || !this.args.onClick) {
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
return this.args.selected ? 'true' : 'false';
|
|
35
|
+
}
|
|
36
|
+
get isValidHexColor() {
|
|
37
|
+
return !!this.args.color && /^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(this.args.color);
|
|
38
|
+
}
|
|
39
|
+
get accentStyle() {
|
|
40
|
+
if (this.isValidHexColor) {
|
|
41
|
+
return `--tag-accent-color: ${this.args.color}`;
|
|
42
|
+
}
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
handleClick = event => {
|
|
46
|
+
if (this.args.disabled) {
|
|
47
|
+
event.preventDefault();
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
this.args.onClick?.();
|
|
51
|
+
};
|
|
52
|
+
handleRemove = event => {
|
|
53
|
+
event.stopPropagation();
|
|
54
|
+
if (this.args.disabled) {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
this.args.onRemove?.();
|
|
58
|
+
};
|
|
59
|
+
handleKeyDown = event => {
|
|
60
|
+
if (this.args.disabled) {
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
if ((event.key === 'Backspace' || event.key === 'Delete') && this.args.onRemove) {
|
|
64
|
+
event.preventDefault();
|
|
65
|
+
this.args.onRemove();
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
static {
|
|
69
|
+
setComponentTemplate(precompileTemplate("<span class=\"tag\" style={{this.accentStyle}} data-tone={{this.tone}} data-size={{this.size}} data-selected={{if @selected \"true\"}} data-disabled={{if @disabled \"true\"}} data-has-accent={{if @color \"true\"}} data-removable={{if @onRemove \"true\"}} data-interactive={{if this.isInteractive \"true\"}} data-test-tag ...attributes>\n {{#if this.isValidHexColor}}\n <span class=\"tag-accent\" data-test-tag-accent></span>\n {{/if}}\n\n {{#if this.isLink}}\n <a class=\"tag-content\" href={{@href}} tabindex={{if @disabled \"-1\"}} data-test-tag-link {{on \"click\" this.handleClick}} {{on \"keydown\" this.handleKeyDown}}>\n {{#if @icon}}\n <span class=\"tag-icon\" data-test-tag-icon><Icon @icon={{@icon}} @size={{this.iconSize}} /></span>\n {{/if}}\n <span class=\"tag-label\" data-test-tag-label>{{yield}}</span>\n </a>\n {{else if this.isInteractive}}\n <button type=\"button\" class=\"tag-content\" disabled={{@disabled}} aria-pressed={{this.ariaPressed}} data-test-tag-button {{on \"click\" this.handleClick}} {{on \"keydown\" this.handleKeyDown}}>\n {{#if @icon}}\n <span class=\"tag-icon\" data-test-tag-icon><Icon @icon={{@icon}} @size={{this.iconSize}} /></span>\n {{/if}}\n <span class=\"tag-label\" data-test-tag-label>{{yield}}</span>\n </button>\n {{else}}\n <span class=\"tag-content\" tabindex={{if @onRemove \"0\"}} data-test-tag-content {{on \"keydown\" this.handleKeyDown}}>\n {{#if @icon}}\n <span class=\"tag-icon\" data-test-tag-icon><Icon @icon={{@icon}} @size={{this.iconSize}} /></span>\n {{/if}}\n <span class=\"tag-label\" data-test-tag-label>{{yield}}</span>\n </span>\n {{/if}}\n\n {{#if @onRemove}}\n <button type=\"button\" class=\"tag-remove\" aria-label={{this.removeLabel}} disabled={{@disabled}} data-test-tag-remove {{on \"click\" this.handleRemove}}>\n <Icon @icon={{X}} @size={{this.iconSize}} />\n </button>\n {{/if}}\n</span>", {
|
|
70
|
+
strictMode: true,
|
|
71
|
+
scope: () => ({
|
|
72
|
+
on,
|
|
73
|
+
Icon,
|
|
74
|
+
X
|
|
75
|
+
})
|
|
76
|
+
}), this);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export { Tag as default };
|
|
81
|
+
//# sourceMappingURL=tag.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--font-color: var(--color-text);
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
h1 {
|
|
6
|
+
color: var(--color-text);
|
|
7
|
+
font-family: var(--font-family-sans);
|
|
8
|
+
font-weight: 600;
|
|
9
|
+
font-size: var(--font-size-24);
|
|
10
|
+
letter-spacing: var(--letter-spacing-snug);
|
|
11
|
+
margin: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
h2 {
|
|
15
|
+
color: var(--color-text);
|
|
16
|
+
font-family: var(--font-family-sans);
|
|
17
|
+
font-weight: 600;
|
|
18
|
+
font-size: var(--font-size-20);
|
|
19
|
+
letter-spacing: var(--letter-spacing-snug);
|
|
20
|
+
margin: 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
h3 {
|
|
24
|
+
color: var(--color-text);
|
|
25
|
+
font-family: var(--font-family-sans);
|
|
26
|
+
font-weight: 600;
|
|
27
|
+
font-size: var(--font-size-18);
|
|
28
|
+
letter-spacing: var(--letter-spacing-snug);
|
|
29
|
+
margin: 0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
h4 {
|
|
33
|
+
color: var(--color-text);
|
|
34
|
+
font-family: var(--font-family-sans);
|
|
35
|
+
font-weight: 600;
|
|
36
|
+
font-size: var(--font-size-16);
|
|
37
|
+
letter-spacing: var(--letter-spacing-snug);
|
|
38
|
+
margin: 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
body {
|
|
42
|
+
color: var(--color-text);
|
|
43
|
+
font-family: var(--font-family-sans);
|
|
44
|
+
font-size: var(--font-size-13);
|
|
45
|
+
font-weight: var(--font-weight-400);
|
|
46
|
+
line-height: var(--line-height-1-5);
|
|
47
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
/* Third-party library integration */
|
|
3
|
+
--epm-backdrop-background: var(--color-bg-overlay);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
/* Drawer animation
|
|
7
|
+
|
|
8
|
+
These styles must be in a global (non-scoped) CSS file because:
|
|
9
|
+
1. EPM listens for animationend events where the animation name ends in "-out"
|
|
10
|
+
to know when to remove modals from the DOM
|
|
11
|
+
2. ember-scoped-css would mangle the keyframe names (e.g., drawer-animation-out__hash)
|
|
12
|
+
which breaks EPM's detection pattern
|
|
13
|
+
3. Additionally, ember-scoped-css has a bug where hyphens in animation names
|
|
14
|
+
are converted to underscores in references but not in @keyframes definitions
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
.epm-modal.modal-drawer {
|
|
18
|
+
animation: drawer-animation-in 200ms;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.epm-modal.modal-drawer.epm-out {
|
|
22
|
+
animation: drawer-animation-out 200ms forwards;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@keyframes drawer-animation-in {
|
|
26
|
+
0% {
|
|
27
|
+
transform: translate(100%, 0);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
100% {
|
|
31
|
+
transform: translate(0, 0);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@keyframes drawer-animation-out {
|
|
36
|
+
0% {
|
|
37
|
+
transform: translate(0, 0);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
100% {
|
|
41
|
+
transform: translate(100%, 0);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
/* Gray Scale - Indigo-tinted neutrals (hue ~228°) */
|
|
3
|
+
--gray-25: #f9f9fb;
|
|
4
|
+
--gray-50: #f4f6fb;
|
|
5
|
+
--gray-100: #ebeef6;
|
|
6
|
+
--gray-175: #dfe2ee;
|
|
7
|
+
--gray-200: #d8dcea;
|
|
8
|
+
--gray-300: #c2c7d9;
|
|
9
|
+
--gray-400: #9aa1b8;
|
|
10
|
+
--gray-500: #6b7394;
|
|
11
|
+
--gray-600: #4e5574;
|
|
12
|
+
--gray-700: #3a4060;
|
|
13
|
+
--gray-800: #252a40;
|
|
14
|
+
--gray-900: #161a2e;
|
|
15
|
+
--gray-950: #0a0c18;
|
|
16
|
+
|
|
17
|
+
/* Indigo Scale - Custom indigo (~228° hue) */
|
|
18
|
+
--indigo-50: #f1f3ff;
|
|
19
|
+
--indigo-100: #e4e8ff;
|
|
20
|
+
--indigo-200: #ccd3ff;
|
|
21
|
+
--indigo-300: #a8b4ff;
|
|
22
|
+
--indigo-400: #7c8bfc;
|
|
23
|
+
--indigo-500: #5865f5;
|
|
24
|
+
--indigo-600: #4650e5;
|
|
25
|
+
--indigo-700: #3840c9;
|
|
26
|
+
--indigo-800: #2f36a3;
|
|
27
|
+
--indigo-900: #2a3182;
|
|
28
|
+
--indigo-950: #1a1e4e;
|
|
29
|
+
|
|
30
|
+
/* Red Scale */
|
|
31
|
+
--red-50: #fff1f2;
|
|
32
|
+
--red-100: #ffe4e6;
|
|
33
|
+
--red-200: #fecdd3;
|
|
34
|
+
--red-300: #fda4af;
|
|
35
|
+
--red-400: #fb7185;
|
|
36
|
+
--red-500: #f43f5e;
|
|
37
|
+
--red-600: #e11d48;
|
|
38
|
+
--red-700: #be123c;
|
|
39
|
+
--red-800: #9f1239;
|
|
40
|
+
--red-900: #881337;
|
|
41
|
+
--red-950: #4c0519;
|
|
42
|
+
|
|
43
|
+
/* Green Scale */
|
|
44
|
+
--green-50: #ecfdf5;
|
|
45
|
+
--green-100: #d1fae5;
|
|
46
|
+
--green-200: #a7f3d0;
|
|
47
|
+
--green-300: #6ee7b7;
|
|
48
|
+
--green-400: #34d399;
|
|
49
|
+
--green-500: #05ac61;
|
|
50
|
+
--green-600: #0b8451;
|
|
51
|
+
--green-700: #0a6b42;
|
|
52
|
+
--green-800: #085536;
|
|
53
|
+
--green-900: #053f28;
|
|
54
|
+
--green-950: #032618;
|
|
55
|
+
|
|
56
|
+
/* Amber Scale */
|
|
57
|
+
--amber-50: #fffbeb;
|
|
58
|
+
--amber-100: #fef3c7;
|
|
59
|
+
--amber-200: #fde68a;
|
|
60
|
+
--amber-300: #fcd34d;
|
|
61
|
+
--amber-400: #fbbf24;
|
|
62
|
+
--amber-500: #f59e0b;
|
|
63
|
+
--amber-600: #d97706;
|
|
64
|
+
--amber-700: #b45309;
|
|
65
|
+
--amber-800: #92400e;
|
|
66
|
+
--amber-900: #78350f;
|
|
67
|
+
--amber-950: #451a03;
|
|
68
|
+
|
|
69
|
+
/* Cyan Scale */
|
|
70
|
+
--cyan-50: #ecfeff;
|
|
71
|
+
--cyan-100: #cffafe;
|
|
72
|
+
--cyan-200: #a5f3fc;
|
|
73
|
+
--cyan-300: #67e8f9;
|
|
74
|
+
--cyan-400: #22d3ee;
|
|
75
|
+
--cyan-500: #06b6d4;
|
|
76
|
+
--cyan-600: #0891b2;
|
|
77
|
+
--cyan-700: #0e7490;
|
|
78
|
+
--cyan-800: #155e75;
|
|
79
|
+
--cyan-900: #164e63;
|
|
80
|
+
--cyan-950: #083344;
|
|
81
|
+
|
|
82
|
+
/* Static Colors */
|
|
83
|
+
--white: #fff;
|
|
84
|
+
--black: #000;
|
|
85
|
+
--transparent: transparent;
|
|
86
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
/* Shadows */
|
|
3
|
+
--shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 5%);
|
|
4
|
+
--shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 10%), 0 1px 2px -1px rgb(0 0 0 / 10%);
|
|
5
|
+
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 10%), 0 2px 4px -2px rgb(0 0 0 / 10%);
|
|
6
|
+
--shadow-lg:
|
|
7
|
+
0 10px 15px -3px rgb(0 0 0 / 10%), 0 4px 6px -4px rgb(0 0 0 / 10%);
|
|
8
|
+
--shadow-xl:
|
|
9
|
+
0 20px 25px -5px rgb(0 0 0 / 10%), 0 8px 10px -6px rgb(0 0 0 / 10%);
|
|
10
|
+
--shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 25%);
|
|
11
|
+
--shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 5%);
|
|
12
|
+
|
|
13
|
+
/* Opacity */
|
|
14
|
+
--opacity-0: 0;
|
|
15
|
+
--opacity-5: 0.05;
|
|
16
|
+
--opacity-10: 0.1;
|
|
17
|
+
--opacity-20: 0.2;
|
|
18
|
+
--opacity-25: 0.25;
|
|
19
|
+
--opacity-30: 0.3;
|
|
20
|
+
--opacity-40: 0.4;
|
|
21
|
+
--opacity-50: 0.5;
|
|
22
|
+
--opacity-60: 0.6;
|
|
23
|
+
--opacity-70: 0.7;
|
|
24
|
+
--opacity-75: 0.75;
|
|
25
|
+
--opacity-80: 0.8;
|
|
26
|
+
--opacity-90: 0.9;
|
|
27
|
+
--opacity-95: 0.95;
|
|
28
|
+
--opacity-100: 1;
|
|
29
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* Geist Mono - Web font for cross-platform monospace consistency */
|
|
2
|
+
/* Loaded from jsDelivr CDN for zero-config usage */
|
|
3
|
+
@font-face {
|
|
4
|
+
font-family: "Geist Mono";
|
|
5
|
+
font-style: normal;
|
|
6
|
+
font-weight: 400;
|
|
7
|
+
font-display: swap;
|
|
8
|
+
src: url("https://cdn.jsdelivr.net/npm/geist@1.4.1/dist/fonts/geist-mono/GeistMono-Regular.woff2")
|
|
9
|
+
format("woff2");
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@font-face {
|
|
13
|
+
font-family: "Geist Mono";
|
|
14
|
+
font-style: normal;
|
|
15
|
+
font-weight: 500;
|
|
16
|
+
font-display: swap;
|
|
17
|
+
src: url("https://cdn.jsdelivr.net/npm/geist@1.4.1/dist/fonts/geist-mono/GeistMono-Medium.woff2")
|
|
18
|
+
format("woff2");
|
|
19
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
/* Duration */
|
|
3
|
+
--duration-0: 0ms;
|
|
4
|
+
--duration-75: 75ms;
|
|
5
|
+
--duration-100: 100ms;
|
|
6
|
+
--duration-150: 150ms;
|
|
7
|
+
--duration-200: 200ms;
|
|
8
|
+
--duration-300: 300ms;
|
|
9
|
+
--duration-500: 500ms;
|
|
10
|
+
--duration-700: 700ms;
|
|
11
|
+
--duration-1000: 1000ms;
|
|
12
|
+
|
|
13
|
+
/* Easing */
|
|
14
|
+
--easing-linear: linear;
|
|
15
|
+
--easing-in: cubic-bezier(0.4, 0, 1, 1);
|
|
16
|
+
--easing-out: cubic-bezier(0, 0, 0.2, 1);
|
|
17
|
+
--easing-in-out: cubic-bezier(0.4, 0, 0.2, 1);
|
|
18
|
+
}
|