@lushly-dev/violet-elements 0.0.0-stage → 0.2.0-preview.1
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 +21 -0
- package/README.md +262 -2
- package/custom-elements.json +42309 -0
- package/dist/accordion/violet-accordion.d.ts +24 -0
- package/dist/accordion/violet-accordion.js +133 -0
- package/dist/accordion/violet-accordion.js.map +1 -0
- package/dist/accordion-item/violet-accordion-item.d.ts +27 -0
- package/dist/accordion-item/violet-accordion-item.js +228 -0
- package/dist/accordion-item/violet-accordion-item.js.map +1 -0
- package/dist/alert/violet-alert.d.ts +44 -0
- package/dist/alert/violet-alert.js +346 -0
- package/dist/alert/violet-alert.js.map +1 -0
- package/dist/badge/violet-badge.d.ts +27 -0
- package/dist/badge/violet-badge.js +179 -0
- package/dist/badge/violet-badge.js.map +1 -0
- package/dist/breadcrumb/violet-breadcrumb.d.ts +20 -0
- package/dist/breadcrumb/violet-breadcrumb.js +88 -0
- package/dist/breadcrumb/violet-breadcrumb.js.map +1 -0
- package/dist/breadcrumb-item/violet-breadcrumb-item.d.ts +20 -0
- package/dist/breadcrumb-item/violet-breadcrumb-item.js +130 -0
- package/dist/breadcrumb-item/violet-breadcrumb-item.js.map +1 -0
- package/dist/button/violet-button.d.ts +76 -0
- package/dist/button/violet-button.js +281 -0
- package/dist/button/violet-button.js.map +1 -0
- package/dist/calendar/violet-calendar.d.ts +59 -0
- package/dist/calendar/violet-calendar.js +485 -0
- package/dist/calendar/violet-calendar.js.map +1 -0
- package/dist/card/violet-card.d.ts +30 -0
- package/dist/card/violet-card.js +249 -0
- package/dist/card/violet-card.js.map +1 -0
- package/dist/carousel/violet-carousel.d.ts +56 -0
- package/dist/carousel/violet-carousel.js +600 -0
- package/dist/carousel/violet-carousel.js.map +1 -0
- package/dist/checkbox/violet-checkbox.d.ts +82 -0
- package/dist/checkbox/violet-checkbox.js +465 -0
- package/dist/checkbox/violet-checkbox.js.map +1 -0
- package/dist/color-picker/violet-color-picker.d.ts +111 -0
- package/dist/color-picker/violet-color-picker.js +997 -0
- package/dist/color-picker/violet-color-picker.js.map +1 -0
- package/dist/color-picker/violet-color-utils.d.ts +21 -0
- package/dist/color-picker/violet-color-utils.js +126 -0
- package/dist/color-picker/violet-color-utils.js.map +1 -0
- package/dist/color-swatch/violet-color-swatch.d.ts +19 -0
- package/dist/color-swatch/violet-color-swatch.js +93 -0
- package/dist/color-swatch/violet-color-swatch.js.map +1 -0
- package/dist/combobox/violet-combobox.d.ts +86 -0
- package/dist/combobox/violet-combobox.js +669 -0
- package/dist/combobox/violet-combobox.js.map +1 -0
- package/dist/conversation/violet-approval-card.d.ts +34 -0
- package/dist/conversation/violet-approval-card.js +289 -0
- package/dist/conversation/violet-approval-card.js.map +1 -0
- package/dist/conversation/violet-chat-composer.d.ts +47 -0
- package/dist/conversation/violet-chat-composer.js +308 -0
- package/dist/conversation/violet-chat-composer.js.map +1 -0
- package/dist/conversation/violet-chat-suggestions.d.ts +21 -0
- package/dist/conversation/violet-chat-suggestions.js +159 -0
- package/dist/conversation/violet-chat-suggestions.js.map +1 -0
- package/dist/conversation/violet-conversation-thread.d.ts +26 -0
- package/dist/conversation/violet-conversation-thread.js +207 -0
- package/dist/conversation/violet-conversation-thread.js.map +1 -0
- package/dist/conversation/violet-message-media.d.ts +38 -0
- package/dist/conversation/violet-message-media.js +230 -0
- package/dist/conversation/violet-message-media.js.map +1 -0
- package/dist/conversation/violet-message-status.d.ts +17 -0
- package/dist/conversation/violet-message-status.js +168 -0
- package/dist/conversation/violet-message-status.js.map +1 -0
- package/dist/conversation/violet-message-text.d.ts +15 -0
- package/dist/conversation/violet-message-text.js +83 -0
- package/dist/conversation/violet-message-text.js.map +1 -0
- package/dist/conversation/violet-message.d.ts +28 -0
- package/dist/conversation/violet-message.js +189 -0
- package/dist/conversation/violet-message.js.map +1 -0
- package/dist/conversation/violet-reasoning-block.d.ts +22 -0
- package/dist/conversation/violet-reasoning-block.js +171 -0
- package/dist/conversation/violet-reasoning-block.js.map +1 -0
- package/dist/conversation/violet-source-citation.d.ts +25 -0
- package/dist/conversation/violet-source-citation.js +155 -0
- package/dist/conversation/violet-source-citation.js.map +1 -0
- package/dist/conversation/violet-tool-call-card.d.ts +37 -0
- package/dist/conversation/violet-tool-call-card.js +370 -0
- package/dist/conversation/violet-tool-call-card.js.map +1 -0
- package/dist/conversation/violet-tool-result-card.d.ts +27 -0
- package/dist/conversation/violet-tool-result-card.js +264 -0
- package/dist/conversation/violet-tool-result-card.js.map +1 -0
- package/dist/data-grid/violet-data-grid-attachment-cell-values.d.ts +15 -0
- package/dist/data-grid/violet-data-grid-attachment-cell-values.js +122 -0
- package/dist/data-grid/violet-data-grid-attachment-cell-values.js.map +1 -0
- package/dist/data-grid/violet-data-grid-attachment-cell.d.ts +79 -0
- package/dist/data-grid/violet-data-grid-attachment-cell.js +812 -0
- package/dist/data-grid/violet-data-grid-attachment-cell.js.map +1 -0
- package/dist/data-grid/violet-data-grid-cell-state.d.ts +20 -0
- package/dist/data-grid/violet-data-grid-cell-state.js +68 -0
- package/dist/data-grid/violet-data-grid-cell-state.js.map +1 -0
- package/dist/data-grid/violet-data-grid-cell-templates.d.ts +28 -0
- package/dist/data-grid/violet-data-grid-cell-templates.js +36 -0
- package/dist/data-grid/violet-data-grid-cell-templates.js.map +1 -0
- package/dist/data-grid/violet-data-grid-clipboard.d.ts +44 -0
- package/dist/data-grid/violet-data-grid-clipboard.js +127 -0
- package/dist/data-grid/violet-data-grid-clipboard.js.map +1 -0
- package/dist/data-grid/violet-data-grid-css.d.ts +7 -0
- package/dist/data-grid/violet-data-grid-css.js +20 -0
- package/dist/data-grid/violet-data-grid-css.js.map +1 -0
- package/dist/data-grid/violet-data-grid-data.d.ts +34 -0
- package/dist/data-grid/violet-data-grid-data.js +93 -0
- package/dist/data-grid/violet-data-grid-data.js.map +1 -0
- package/dist/data-grid/violet-data-grid-editing.d.ts +46 -0
- package/dist/data-grid/violet-data-grid-editing.js +75 -0
- package/dist/data-grid/violet-data-grid-editing.js.map +1 -0
- package/dist/data-grid/violet-data-grid-editor-option-helpers.d.ts +10 -0
- package/dist/data-grid/violet-data-grid-editor-option-helpers.js +84 -0
- package/dist/data-grid/violet-data-grid-editor-option-helpers.js.map +1 -0
- package/dist/data-grid/violet-data-grid-events.d.ts +4 -0
- package/dist/data-grid/violet-data-grid-events.js +46 -0
- package/dist/data-grid/violet-data-grid-events.js.map +1 -0
- package/dist/data-grid/violet-data-grid-fill.d.ts +37 -0
- package/dist/data-grid/violet-data-grid-fill.js +155 -0
- package/dist/data-grid/violet-data-grid-fill.js.map +1 -0
- package/dist/data-grid/violet-data-grid-geometry.d.ts +13 -0
- package/dist/data-grid/violet-data-grid-geometry.js +59 -0
- package/dist/data-grid/violet-data-grid-geometry.js.map +1 -0
- package/dist/data-grid/violet-data-grid-multi-picker-values.d.ts +3 -0
- package/dist/data-grid/violet-data-grid-multi-picker-values.js +40 -0
- package/dist/data-grid/violet-data-grid-multi-picker-values.js.map +1 -0
- package/dist/data-grid/violet-data-grid-multi-picker.d.ts +87 -0
- package/dist/data-grid/violet-data-grid-multi-picker.js +789 -0
- package/dist/data-grid/violet-data-grid-multi-picker.js.map +1 -0
- package/dist/data-grid/violet-data-grid-navigation.d.ts +29 -0
- package/dist/data-grid/violet-data-grid-navigation.js +63 -0
- package/dist/data-grid/violet-data-grid-navigation.js.map +1 -0
- package/dist/data-grid/violet-data-grid-persona-picker-values.d.ts +3 -0
- package/dist/data-grid/violet-data-grid-persona-picker-values.js +40 -0
- package/dist/data-grid/violet-data-grid-persona-picker-values.js.map +1 -0
- package/dist/data-grid/violet-data-grid-persona-picker.d.ts +86 -0
- package/dist/data-grid/violet-data-grid-persona-picker.js +840 -0
- package/dist/data-grid/violet-data-grid-persona-picker.js.map +1 -0
- package/dist/data-grid/violet-data-grid-pill-select.d.ts +65 -0
- package/dist/data-grid/violet-data-grid-pill-select.js +635 -0
- package/dist/data-grid/violet-data-grid-pill-select.js.map +1 -0
- package/dist/data-grid/violet-data-grid-pointer.d.ts +17 -0
- package/dist/data-grid/violet-data-grid-pointer.js +45 -0
- package/dist/data-grid/violet-data-grid-pointer.js.map +1 -0
- package/dist/data-grid/violet-data-grid-presentation.d.ts +142 -0
- package/dist/data-grid/violet-data-grid-presentation.js +152 -0
- package/dist/data-grid/violet-data-grid-presentation.js.map +1 -0
- package/dist/data-grid/violet-data-grid-rating-values.d.ts +3 -0
- package/dist/data-grid/violet-data-grid-rating-values.js +30 -0
- package/dist/data-grid/violet-data-grid-rating-values.js.map +1 -0
- package/dist/data-grid/violet-data-grid-rating.d.ts +39 -0
- package/dist/data-grid/violet-data-grid-rating.js +346 -0
- package/dist/data-grid/violet-data-grid-rating.js.map +1 -0
- package/dist/data-grid/violet-data-grid-reference-picker-values.d.ts +3 -0
- package/dist/data-grid/violet-data-grid-reference-picker-values.js +40 -0
- package/dist/data-grid/violet-data-grid-reference-picker-values.js.map +1 -0
- package/dist/data-grid/violet-data-grid-reference-picker.d.ts +98 -0
- package/dist/data-grid/violet-data-grid-reference-picker.js +933 -0
- package/dist/data-grid/violet-data-grid-reference-picker.js.map +1 -0
- package/dist/data-grid/violet-data-grid-resize.d.ts +36 -0
- package/dist/data-grid/violet-data-grid-resize.js +47 -0
- package/dist/data-grid/violet-data-grid-resize.js.map +1 -0
- package/dist/data-grid/violet-data-grid-selection.d.ts +27 -0
- package/dist/data-grid/violet-data-grid-selection.js +88 -0
- package/dist/data-grid/violet-data-grid-selection.js.map +1 -0
- package/dist/data-grid/violet-data-grid-sizing.d.ts +38 -0
- package/dist/data-grid/violet-data-grid-sizing.js +82 -0
- package/dist/data-grid/violet-data-grid-sizing.js.map +1 -0
- package/dist/data-grid/violet-data-grid-targets.d.ts +5 -0
- package/dist/data-grid/violet-data-grid-targets.js +41 -0
- package/dist/data-grid/violet-data-grid-targets.js.map +1 -0
- package/dist/data-grid/violet-data-grid-values.d.ts +19 -0
- package/dist/data-grid/violet-data-grid-values.js +60 -0
- package/dist/data-grid/violet-data-grid-values.js.map +1 -0
- package/dist/data-grid/violet-data-grid-virtualization.d.ts +31 -0
- package/dist/data-grid/violet-data-grid-virtualization.js +41 -0
- package/dist/data-grid/violet-data-grid-virtualization.js.map +1 -0
- package/dist/data-grid/violet-data-grid.d.ts +590 -0
- package/dist/data-grid/violet-data-grid.js +2998 -0
- package/dist/data-grid/violet-data-grid.js.map +1 -0
- package/dist/data-grid/violet-data-grid.styles.d.ts +1 -0
- package/dist/data-grid/violet-data-grid.styles.js +638 -0
- package/dist/data-grid/violet-data-grid.styles.js.map +1 -0
- package/dist/date-picker/violet-date-picker.d.ts +90 -0
- package/dist/date-picker/violet-date-picker.js +624 -0
- package/dist/date-picker/violet-date-picker.js.map +1 -0
- package/dist/date-range-picker/violet-date-range-picker.d.ts +64 -0
- package/dist/date-range-picker/violet-date-range-picker.js +470 -0
- package/dist/date-range-picker/violet-date-range-picker.js.map +1 -0
- package/dist/date-time/violet-date-utils.d.ts +50 -0
- package/dist/date-time/violet-date-utils.js +176 -0
- package/dist/date-time/violet-date-utils.js.map +1 -0
- package/dist/dialog/violet-dialog.d.ts +53 -0
- package/dist/dialog/violet-dialog.js +439 -0
- package/dist/dialog/violet-dialog.js.map +1 -0
- package/dist/divider/violet-divider.d.ts +15 -0
- package/dist/divider/violet-divider.js +88 -0
- package/dist/divider/violet-divider.js.map +1 -0
- package/dist/empty-state/violet-empty-state.d.ts +31 -0
- package/dist/empty-state/violet-empty-state.js +182 -0
- package/dist/empty-state/violet-empty-state.js.map +1 -0
- package/dist/file-explorer/violet-file-explorer.d.ts +164 -0
- package/dist/file-explorer/violet-file-explorer.js +1094 -0
- package/dist/file-explorer/violet-file-explorer.js.map +1 -0
- package/dist/file-upload/violet-file-upload.d.ts +109 -0
- package/dist/file-upload/violet-file-upload.js +950 -0
- package/dist/file-upload/violet-file-upload.js.map +1 -0
- package/dist/foundations/reference-component-set.d.ts +9 -0
- package/dist/foundations/reference-component-set.js +107 -0
- package/dist/foundations/reference-component-set.js.map +1 -0
- package/dist/foundations/token-registry.d.ts +38 -0
- package/dist/foundations/token-registry.js +203 -0
- package/dist/foundations/token-registry.js.map +1 -0
- package/dist/foundations/violet-direction.d.ts +11 -0
- package/dist/foundations/violet-direction.js +22 -0
- package/dist/foundations/violet-direction.js.map +1 -0
- package/dist/foundations/violet-form-disabled.d.ts +25 -0
- package/dist/foundations/violet-form-disabled.js +79 -0
- package/dist/foundations/violet-form-disabled.js.map +1 -0
- package/dist/foundations/violet-safe-url.d.ts +8 -0
- package/dist/foundations/violet-safe-url.js +21 -0
- package/dist/foundations/violet-safe-url.js.map +1 -0
- package/dist/gantt/violet-gantt-geometry.d.ts +18 -0
- package/dist/gantt/violet-gantt-geometry.js +78 -0
- package/dist/gantt/violet-gantt-geometry.js.map +1 -0
- package/dist/gantt/violet-gantt.d.ts +239 -0
- package/dist/gantt/violet-gantt.js +1627 -0
- package/dist/gantt/violet-gantt.js.map +1 -0
- package/dist/gantt/violet-gantt.styles.d.ts +1 -0
- package/dist/gantt/violet-gantt.styles.js +580 -0
- package/dist/gantt/violet-gantt.styles.js.map +1 -0
- package/dist/icon/generated/icon-sources.d.ts +9 -0
- package/dist/icon/generated/icon-sources.js +15 -0
- package/dist/icon/generated/icon-sources.js.map +1 -0
- package/dist/icon/generated/icons/system-arrow-up.d.ts +8 -0
- package/dist/icon/generated/icons/system-arrow-up.js +15 -0
- package/dist/icon/generated/icons/system-arrow-up.js.map +1 -0
- package/dist/icon/generated/icons/system-attach.d.ts +8 -0
- package/dist/icon/generated/icons/system-attach.js +15 -0
- package/dist/icon/generated/icons/system-attach.js.map +1 -0
- package/dist/icon/generated/icons/system-calendar.d.ts +8 -0
- package/dist/icon/generated/icons/system-calendar.js +15 -0
- package/dist/icon/generated/icons/system-calendar.js.map +1 -0
- package/dist/icon/generated/icons/system-checkmark.d.ts +8 -0
- package/dist/icon/generated/icons/system-checkmark.js +15 -0
- package/dist/icon/generated/icons/system-checkmark.js.map +1 -0
- package/dist/icon/generated/icons/system-chevron-right.d.ts +8 -0
- package/dist/icon/generated/icons/system-chevron-right.js +15 -0
- package/dist/icon/generated/icons/system-chevron-right.js.map +1 -0
- package/dist/icon/generated/icons/system-clock.d.ts +8 -0
- package/dist/icon/generated/icons/system-clock.js +15 -0
- package/dist/icon/generated/icons/system-clock.js.map +1 -0
- package/dist/icon/generated/icons/system-close.d.ts +8 -0
- package/dist/icon/generated/icons/system-close.js +15 -0
- package/dist/icon/generated/icons/system-close.js.map +1 -0
- package/dist/icon/generated/icons/system-dismiss.d.ts +8 -0
- package/dist/icon/generated/icons/system-dismiss.js +15 -0
- package/dist/icon/generated/icons/system-dismiss.js.map +1 -0
- package/dist/icon/generated/icons/system-document.d.ts +8 -0
- package/dist/icon/generated/icons/system-document.js +15 -0
- package/dist/icon/generated/icons/system-document.js.map +1 -0
- package/dist/icon/generated/icons/system-folder.d.ts +8 -0
- package/dist/icon/generated/icons/system-folder.js +15 -0
- package/dist/icon/generated/icons/system-folder.js.map +1 -0
- package/dist/icon/generated/icons/system-search.d.ts +8 -0
- package/dist/icon/generated/icons/system-search.js +15 -0
- package/dist/icon/generated/icons/system-search.js.map +1 -0
- package/dist/icon/generated/icons/system-settings.d.ts +8 -0
- package/dist/icon/generated/icons/system-settings.js +15 -0
- package/dist/icon/generated/icons/system-settings.js.map +1 -0
- package/dist/icon/generated/icons/system-sort-ascending.d.ts +8 -0
- package/dist/icon/generated/icons/system-sort-ascending.js +15 -0
- package/dist/icon/generated/icons/system-sort-ascending.js.map +1 -0
- package/dist/icon/generated/icons/system-sort-descending.d.ts +8 -0
- package/dist/icon/generated/icons/system-sort-descending.js +15 -0
- package/dist/icon/generated/icons/system-sort-descending.js.map +1 -0
- package/dist/icon/generated/icons/system-stop.d.ts +8 -0
- package/dist/icon/generated/icons/system-stop.js +15 -0
- package/dist/icon/generated/icons/system-stop.js.map +1 -0
- package/dist/icon/generated/icons/system-warning.d.ts +8 -0
- package/dist/icon/generated/icons/system-warning.js +15 -0
- package/dist/icon/generated/icons/system-warning.js.map +1 -0
- package/dist/icon/generated/index.d.ts +17 -0
- package/dist/icon/generated/index.js +22 -0
- package/dist/icon/generated/index.js.map +1 -0
- package/dist/icon/icon-registry.d.ts +20 -0
- package/dist/icon/icon-registry.js +22 -0
- package/dist/icon/icon-registry.js.map +1 -0
- package/dist/icon/violet-icon.d.ts +22 -0
- package/dist/icon/violet-icon.js +75 -0
- package/dist/icon/violet-icon.js.map +1 -0
- package/dist/icon-button/violet-icon-button.d.ts +29 -0
- package/dist/icon-button/violet-icon-button.js +193 -0
- package/dist/icon-button/violet-icon-button.js.map +1 -0
- package/dist/image/violet-image.d.ts +33 -0
- package/dist/image/violet-image.js +215 -0
- package/dist/image/violet-image.js.map +1 -0
- package/dist/index.d.ts +86 -0
- package/dist/index.js +87 -0
- package/dist/index.js.map +1 -0
- package/dist/listbox/violet-listbox.d.ts +41 -0
- package/dist/listbox/violet-listbox.js +323 -0
- package/dist/listbox/violet-listbox.js.map +1 -0
- package/dist/listbox/violet-selection-helpers.d.ts +9 -0
- package/dist/listbox/violet-selection-helpers.js +52 -0
- package/dist/listbox/violet-selection-helpers.js.map +1 -0
- package/dist/menu/violet-menu-item.d.ts +30 -0
- package/dist/menu/violet-menu-item.js +148 -0
- package/dist/menu/violet-menu-item.js.map +1 -0
- package/dist/menu/violet-menu.d.ts +70 -0
- package/dist/menu/violet-menu.js +480 -0
- package/dist/menu/violet-menu.js.map +1 -0
- package/dist/option/violet-option.d.ts +38 -0
- package/dist/option/violet-option.js +258 -0
- package/dist/option/violet-option.js.map +1 -0
- package/dist/option-group/violet-option-group.d.ts +20 -0
- package/dist/option-group/violet-option-group.js +100 -0
- package/dist/option-group/violet-option-group.js.map +1 -0
- package/dist/pagination/violet-pagination.d.ts +36 -0
- package/dist/pagination/violet-pagination.js +356 -0
- package/dist/pagination/violet-pagination.js.map +1 -0
- package/dist/persona/violet-persona.d.ts +28 -0
- package/dist/persona/violet-persona.js +250 -0
- package/dist/persona/violet-persona.js.map +1 -0
- package/dist/popover/violet-popover.d.ts +32 -0
- package/dist/popover/violet-popover.js +225 -0
- package/dist/popover/violet-popover.js.map +1 -0
- package/dist/progress/violet-progress.d.ts +22 -0
- package/dist/progress/violet-progress.js +197 -0
- package/dist/progress/violet-progress.js.map +1 -0
- package/dist/radio/violet-radio.d.ts +59 -0
- package/dist/radio/violet-radio.js +402 -0
- package/dist/radio/violet-radio.js.map +1 -0
- package/dist/radio-group/violet-radio-group.d.ts +89 -0
- package/dist/radio-group/violet-radio-group.js +388 -0
- package/dist/radio-group/violet-radio-group.js.map +1 -0
- package/dist/segment/violet-segment.d.ts +29 -0
- package/dist/segment/violet-segment.js +166 -0
- package/dist/segment/violet-segment.js.map +1 -0
- package/dist/segmented-control/violet-segmented-control.d.ts +64 -0
- package/dist/segmented-control/violet-segmented-control.js +349 -0
- package/dist/segmented-control/violet-segmented-control.js.map +1 -0
- package/dist/select/violet-select.d.ts +84 -0
- package/dist/select/violet-select.js +690 -0
- package/dist/select/violet-select.js.map +1 -0
- package/dist/skeleton/violet-skeleton.d.ts +18 -0
- package/dist/skeleton/violet-skeleton.js +150 -0
- package/dist/skeleton/violet-skeleton.js.map +1 -0
- package/dist/slider/violet-range-slider.d.ts +96 -0
- package/dist/slider/violet-range-slider.js +833 -0
- package/dist/slider/violet-range-slider.js.map +1 -0
- package/dist/slider/violet-slider.d.ts +80 -0
- package/dist/slider/violet-slider.js +666 -0
- package/dist/slider/violet-slider.js.map +1 -0
- package/dist/snackbar/violet-snackbar.d.ts +39 -0
- package/dist/snackbar/violet-snackbar.js +310 -0
- package/dist/snackbar/violet-snackbar.js.map +1 -0
- package/dist/spinner/violet-spinner.d.ts +15 -0
- package/dist/spinner/violet-spinner.js +99 -0
- package/dist/spinner/violet-spinner.js.map +1 -0
- package/dist/switch/violet-switch.d.ts +59 -0
- package/dist/switch/violet-switch.js +459 -0
- package/dist/switch/violet-switch.js.map +1 -0
- package/dist/tab/violet-tab.d.ts +23 -0
- package/dist/tab/violet-tab.js +245 -0
- package/dist/tab/violet-tab.js.map +1 -0
- package/dist/tab-panel/violet-tab-panel.d.ts +10 -0
- package/dist/tab-panel/violet-tab-panel.js +46 -0
- package/dist/tab-panel/violet-tab-panel.js.map +1 -0
- package/dist/tabs/violet-tabs.d.ts +48 -0
- package/dist/tabs/violet-tabs.js +398 -0
- package/dist/tabs/violet-tabs.js.map +1 -0
- package/dist/teaching-tip/violet-teaching-tip.d.ts +48 -0
- package/dist/teaching-tip/violet-teaching-tip.js +418 -0
- package/dist/teaching-tip/violet-teaching-tip.js.map +1 -0
- package/dist/text/violet-text.d.ts +18 -0
- package/dist/text/violet-text.js +128 -0
- package/dist/text/violet-text.js.map +1 -0
- package/dist/text-area/violet-text-area.d.ts +93 -0
- package/dist/text-area/violet-text-area.js +323 -0
- package/dist/text-area/violet-text-area.js.map +1 -0
- package/dist/text-field/violet-text-field.d.ts +132 -0
- package/dist/text-field/violet-text-field.js +445 -0
- package/dist/text-field/violet-text-field.js.map +1 -0
- package/dist/theme/generated/violet-theme-presets.generated.d.ts +9 -0
- package/dist/theme/generated/violet-theme-presets.generated.js +9 -0
- package/dist/theme/generated/violet-theme-presets.generated.js.map +1 -0
- package/dist/theme/generated/violet-theme.generated.d.ts +1048 -0
- package/dist/theme/generated/violet-theme.generated.js +362 -0
- package/dist/theme/generated/violet-theme.generated.js.map +1 -0
- package/dist/theme/index.d.ts +4 -0
- package/dist/theme/index.js +7 -0
- package/dist/theme/index.js.map +1 -0
- package/dist/theme/violet-theme-builtin.d.ts +14 -0
- package/dist/theme/violet-theme-builtin.js +19 -0
- package/dist/theme/violet-theme-builtin.js.map +1 -0
- package/dist/theme/violet-theme-css.d.ts +77 -0
- package/dist/theme/violet-theme-css.js +154 -0
- package/dist/theme/violet-theme-css.js.map +1 -0
- package/dist/theme/violet-theme-runtime.d.ts +72 -0
- package/dist/theme/violet-theme-runtime.js +221 -0
- package/dist/theme/violet-theme-runtime.js.map +1 -0
- package/dist/theme/violet-theme.d.ts +22 -0
- package/dist/theme/violet-theme.js +60 -0
- package/dist/theme/violet-theme.js.map +1 -0
- package/dist/theme/violet-token-defaults.d.ts +4 -0
- package/dist/theme/violet-token-defaults.js +198 -0
- package/dist/theme/violet-token-defaults.js.map +1 -0
- package/dist/time-picker/violet-time-picker.d.ts +59 -0
- package/dist/time-picker/violet-time-picker.js +369 -0
- package/dist/time-picker/violet-time-picker.js.map +1 -0
- package/dist/toast/violet-toast.d.ts +50 -0
- package/dist/toast/violet-toast.js +395 -0
- package/dist/toast/violet-toast.js.map +1 -0
- package/dist/tooltip/violet-tooltip.d.ts +34 -0
- package/dist/tooltip/violet-tooltip.js +387 -0
- package/dist/tooltip/violet-tooltip.js.map +1 -0
- package/dist/tree/violet-tree.d.ts +44 -0
- package/dist/tree/violet-tree.js +451 -0
- package/dist/tree/violet-tree.js.map +1 -0
- package/dist/tree-item/violet-tree-item.d.ts +49 -0
- package/dist/tree-item/violet-tree-item.js +359 -0
- package/dist/tree-item/violet-tree-item.js.map +1 -0
- package/package.json +78 -3
- package/tokens/interface.json +364 -0
- package/tokens/master-semantic.tokens.jsonc +7 -0
- package/tokens/raw-palette.proposal.jsonc +159 -0
- package/tokens/theme-presets.jsonc +7 -0
- package/tokens/violet-theme.export.json +1392 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Lushly Dev
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,263 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Violet Elements
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
> Reusable Violet web components for FAST-AF.
|
|
4
|
+
|
|
5
|
+
This package is the home for reusable platform components built on FAST-AF and Violet semantics.
|
|
6
|
+
|
|
7
|
+
## Scope
|
|
8
|
+
|
|
9
|
+
`@lushly-dev/violet-elements` is for:
|
|
10
|
+
|
|
11
|
+
1. Reusable primitives
|
|
12
|
+
2. Reference-grade composite components
|
|
13
|
+
3. Components intended to be shared across multiple projects
|
|
14
|
+
|
|
15
|
+
Examples:
|
|
16
|
+
|
|
17
|
+
- buttons
|
|
18
|
+
- fields and form primitives
|
|
19
|
+
- overlays and menus
|
|
20
|
+
- tables and data grids
|
|
21
|
+
- reusable layout/surface primitives
|
|
22
|
+
|
|
23
|
+
## Non-Goals
|
|
24
|
+
|
|
25
|
+
This package is **not** for:
|
|
26
|
+
|
|
27
|
+
- Lushly-specific product components
|
|
28
|
+
- domain composites tied to one application
|
|
29
|
+
- page/shell components for a single product
|
|
30
|
+
|
|
31
|
+
Those belong in the product repo.
|
|
32
|
+
|
|
33
|
+
## Boundary Rules
|
|
34
|
+
|
|
35
|
+
- `violet-*` tags are reusable platform components.
|
|
36
|
+
- Product tags such as `lushly-*` should not be added here.
|
|
37
|
+
- This package may depend on FAST-AF runtime packages.
|
|
38
|
+
- This package must not depend on product repositories.
|
|
39
|
+
|
|
40
|
+
## Direction
|
|
41
|
+
|
|
42
|
+
This package is the preferred destination for new reusable components.
|
|
43
|
+
|
|
44
|
+
The older `packages/components` package remains available as a Fluent-era legacy/reference layer, but it is not the golden path for new platform work.
|
|
45
|
+
|
|
46
|
+
## Package Entry Points
|
|
47
|
+
|
|
48
|
+
```ts
|
|
49
|
+
// Registers every Violet element and exports their classes and types.
|
|
50
|
+
import "@lushly-dev/violet-elements";
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
- `@lushly-dev/violet-elements/custom-elements.json` is the Custom Elements Manifest (also referenced by the `customElements` field).
|
|
54
|
+
- `@lushly-dev/violet-elements/tokens/*` exposes the token sources: `tokens/interface.json`, the custom properties the components read, and `tokens/violet-theme.export.json`, the built-in default theme.
|
|
55
|
+
- `@lushly-dev/violet-elements/theme-css` is the Node-safe theme-set helpers (`findVioletThemeSetGaps` and the types), side-effect free; see [Runtime Theme](#runtime-theme).
|
|
56
|
+
- Element modules register themselves when imported, so the package declares `sideEffects: true`.
|
|
57
|
+
|
|
58
|
+
## Storybook Review
|
|
59
|
+
|
|
60
|
+
Reusable components in this package should be reviewed in the root Storybook 10
|
|
61
|
+
workspace before they are treated as reference-grade.
|
|
62
|
+
|
|
63
|
+
- Run `pnpm storybook` from the repo root.
|
|
64
|
+
- New components should include co-located `*.stories.ts` files.
|
|
65
|
+
- Stories are required as part of component creation, not a follow-up task.
|
|
66
|
+
|
|
67
|
+
## The Token Interface
|
|
68
|
+
|
|
69
|
+
The components read semantic tokens as CSS custom properties (`color.surface.page` is
|
|
70
|
+
`--color-surface-page`), each with a literal fallback. This package owns the list:
|
|
71
|
+
[tokens/interface.json](./tokens/interface.json), published as
|
|
72
|
+
`@lushly-dev/violet-elements/tokens/interface.json`, names every custom property a component
|
|
73
|
+
reads, by token id, with its type:
|
|
74
|
+
|
|
75
|
+
```json
|
|
76
|
+
{
|
|
77
|
+
"contractVersion": 1,
|
|
78
|
+
"package": "@lushly-dev/violet-elements",
|
|
79
|
+
"tokens": {
|
|
80
|
+
"color.surface.page": { "property": "--color-surface-page", "type": "color" },
|
|
81
|
+
"font.family.body": { "property": "--font-family-body", "type": "fontFamily" },
|
|
82
|
+
"font.family.mono": { "property": "--font-family-mono", "type": "fontFamily", "reserved": true }
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
- A theme set supplies every id in its default preset. `reserved` marks an id of the interface
|
|
88
|
+
that no component reads yet; supply it anyway.
|
|
89
|
+
- `contractVersion` changes whenever an id is added, removed, renamed or retyped.
|
|
90
|
+
- Types: `color`, `dimension`, `duration`, `cubicBezier`, `fontWeight`, `fontFamily`, `number`
|
|
91
|
+
and `shadow`.
|
|
92
|
+
- `src/theme/violet-token-interface.spec.ts` fails when a component reads a property the file
|
|
93
|
+
does not list (private `--_*` aliases and the components' own `--violet-*` knobs aside), or
|
|
94
|
+
when the file lists one nothing reads that is not `reserved`.
|
|
95
|
+
- Typefaces come from `font.family.body`; no component names a font family except as that
|
|
96
|
+
token's fallback.
|
|
97
|
+
|
|
98
|
+
## The Built-In Default Theme
|
|
99
|
+
|
|
100
|
+
Without a product theme, the components use AFD's default theme set, shared with Loam. Its
|
|
101
|
+
values are Loam's Violet themes, taken as data, never as a package dependency (decision D50 of
|
|
102
|
+
AFD's Loam documents; `endpoints/loam/docs/phases/0-kernel-chrome/spec.md`, section 2.4):
|
|
103
|
+
|
|
104
|
+
- [tokens/violet-theme.export.json](./tokens/violet-theme.export.json) holds the component ids
|
|
105
|
+
of Loam's resolved `light`, `dark` and `high-contrast` themes:
|
|
106
|
+
`{ "contractVersion": 1, "source": "loam", "presets": { "<preset>": [{ "id", "value" }] } }`.
|
|
107
|
+
Loam's theme package writes it (`pnpm -F @lushly-dev/loam-theme theme:export-components`);
|
|
108
|
+
do not edit it by hand. `theme:check` there fails when Loam's tree does not supply an
|
|
109
|
+
interface id with its property and type.
|
|
110
|
+
- `theme:build` generates `src/theme/generated/violet-theme.generated.ts`, the built-in set, from
|
|
111
|
+
it, and fails when a preset lacks an interface id.
|
|
112
|
+
- Every literal fallback, `var(--<id>, <literal>)` in `src/`, equals the light value, so a
|
|
113
|
+
component renders the light theme with no theme installed.
|
|
114
|
+
`pnpm -F @lushly-dev/loam-theme theme:check` fails when one differs, and
|
|
115
|
+
`theme:export-components --fallbacks` rewrites them. `src/theme/violet-token-defaults.ts` is
|
|
116
|
+
hand-written and checked the same way.
|
|
117
|
+
- `src/foundations/token-registry.ts` and the foundations story read the export.
|
|
118
|
+
|
|
119
|
+
The former registries, `tokens/master-semantic.tokens.jsonc` and `tokens/theme-presets.jsonc`,
|
|
120
|
+
are retired: empty, kept only for the FAST-AF provenance records, and read by nothing.
|
|
121
|
+
|
|
122
|
+
## Runtime Theme
|
|
123
|
+
|
|
124
|
+
The theme is a stylesheet the runtime installs once, so components work without a provider
|
|
125
|
+
wrapper around every usage site. Presets apply to the document root or to any element marked
|
|
126
|
+
`data-violet-theme-root` (the `violet-theme` host marks itself).
|
|
127
|
+
|
|
128
|
+
The zero-config route installs the built-in default:
|
|
129
|
+
|
|
130
|
+
```ts
|
|
131
|
+
import { applyVioletThemePreset, installVioletTheme } from "@lushly-dev/violet-elements";
|
|
132
|
+
|
|
133
|
+
installVioletTheme();
|
|
134
|
+
applyVioletThemePreset(document, "dark");
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
The runtime (`dist/theme/violet-theme-runtime.js`) never imports the built-in set's values:
|
|
138
|
+
`installVioletTheme()` loads them on first use with a dynamic import and writes the stylesheet when
|
|
139
|
+
they arrive; `await loadVioletBuiltInTheme()` to know it is applied. Until then the components
|
|
140
|
+
render their literal fallbacks, which are the built-in light values. A load that fails is reported
|
|
141
|
+
with `console.error`, not cached, and retried by the next install or call.
|
|
142
|
+
|
|
143
|
+
The laziness helps only a consumer that deep-imports the runtime and the element modules. The
|
|
144
|
+
package root and `theme/index.ts` statically re-export the built-in module (`violetThemeCssText`,
|
|
145
|
+
`violetThemeBuiltInSet` and the rest), so importing either loads it eagerly, and Vite may warn that
|
|
146
|
+
the module is imported both statically and dynamically (it then stays in the same chunk). A product
|
|
147
|
+
that installs its own set and wants the built-in values out of its bundle imports the element
|
|
148
|
+
modules (`@lushly-dev/violet-elements/dist/<element>/<element>.js`) and
|
|
149
|
+
`@lushly-dev/violet-elements/dist/theme/violet-theme-runtime.js`, never the root.
|
|
150
|
+
|
|
151
|
+
A product that brings its own Violet tree installs its complete theme set as data instead. The
|
|
152
|
+
set replaces the built-in default, which is then never written, wherever this package installed a
|
|
153
|
+
theme, scoped `violet-theme` hosts in shadow roots included. Preset names are the product's:
|
|
154
|
+
|
|
155
|
+
```ts
|
|
156
|
+
import { applyVioletThemePreset, applyVioletThemeRoot, installVioletThemeSet } from "@lushly-dev/violet-elements";
|
|
157
|
+
|
|
158
|
+
installVioletThemeSet({
|
|
159
|
+
defaultPreset: "light",
|
|
160
|
+
presets: {
|
|
161
|
+
light: lightTokens, // [{ id: "color.surface.page", value: "#fbfaf4" }, ...]
|
|
162
|
+
dark: darkTokens,
|
|
163
|
+
"high-contrast": highContrastTokens,
|
|
164
|
+
sepia: sepiaTokens, // a preset lists what it sets and inherits the rest from the default
|
|
165
|
+
},
|
|
166
|
+
});
|
|
167
|
+
applyVioletThemePreset(document, "sepia");
|
|
168
|
+
applyVioletThemeRoot(panel, "dark");
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
- `installVioletThemeSet(set, target?)` throws a `TypeError` for an unsound set (an unknown
|
|
172
|
+
default preset, a preset name other than letters, digits, `-` and `_`, a malformed or repeated
|
|
173
|
+
id, or a value holding `;`, `{`, `}`, `<`, `>`, a backslash, a comment, a line break, an
|
|
174
|
+
unclosed quote or an unbalanced `(` or `[`).
|
|
175
|
+
- **Completeness is the product's check.** At runtime an id a set omits is not an error: the
|
|
176
|
+
component silently uses its literal `var()` fallback, the built-in light value. Run
|
|
177
|
+
`findVioletThemeSetGaps(set, tokenInterface)` in the product's build, with the
|
|
178
|
+
`tokens/interface.json` of the installed version. It returns `{ problems, missing, complete }`:
|
|
179
|
+
`problems` from `validateVioletThemeSet`, `missing` as `{ preset, id, property }` for every
|
|
180
|
+
interface id a preset does not supply (counting what it inherits from the default). Ids the
|
|
181
|
+
interface lacks are allowed.
|
|
182
|
+
- `@lushly-dev/violet-elements/theme-css` is the Node-safe entry for that check: side-effect
|
|
183
|
+
free, with no DOM and no element registration (the package root registers every element and
|
|
184
|
+
does not load in plain Node). It exports `findVioletThemeSetGaps`, `validateVioletThemeSet`,
|
|
185
|
+
`createVioletThemeCss`, `violetTokenProperty`, `VIOLET_TOKEN_TYPES` and the types
|
|
186
|
+
(`VioletThemeSet`, `VioletTokenInterface`, `VioletTokenType`, `VioletThemeSetGaps`):
|
|
187
|
+
|
|
188
|
+
```ts
|
|
189
|
+
import { findVioletThemeSetGaps } from "@lushly-dev/violet-elements/theme-css";
|
|
190
|
+
import tokenInterface from "@lushly-dev/violet-elements/tokens/interface.json" with { type: "json" };
|
|
191
|
+
|
|
192
|
+
const { problems, missing, complete } = findVioletThemeSetGaps(themeSet, tokenInterface);
|
|
193
|
+
if (!complete) throw new Error([...problems, ...missing.map(gap => `${gap.preset}: ${gap.id}`)].join("
|
|
194
|
+
"));
|
|
195
|
+
```
|
|
196
|
+
- `applyVioletThemePreset`, `applyVioletThemeRoot` and `normalizeVioletThemePreset` throw a
|
|
197
|
+
`RangeError` for a name the installed set lacks; it is never mapped to the default. A
|
|
198
|
+
`violet-theme` host keeps such a name as written and warns.
|
|
199
|
+
- `getVioletThemePresets()` and `getVioletThemeDefaultPreset()` describe the installed set;
|
|
200
|
+
`resetVioletThemeSet()` goes back to the built-in one. `violetThemeBuiltInSet` (typed narrowly,
|
|
201
|
+
`as const`), `violetThemePresets`, `VIOLET_THEME_DEFAULT_PRESET` and `violetThemeCssText` are the
|
|
202
|
+
built-in set.
|
|
203
|
+
- Runtime styles are tracked weakly and rewritten on every change, so a shadow root detached when
|
|
204
|
+
the set changed is current when it is attached again.
|
|
205
|
+
|
|
206
|
+
```html
|
|
207
|
+
<violet-theme preset="dark">
|
|
208
|
+
<violet-button>Scoped button</violet-button>
|
|
209
|
+
</violet-theme>
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
Inside this repository (for example the root Storybook), the same functions are
|
|
213
|
+
imported from `packages/violet-elements/src/theme`.
|
|
214
|
+
|
|
215
|
+
## Gantt foundation
|
|
216
|
+
|
|
217
|
+
`violet-gantt` is a reusable, read-only calendar-day timeline. Consumers provide
|
|
218
|
+
controlled rows, items, expansion, selection, viewport, status, and an optional
|
|
219
|
+
explicit `today` value. The component does not infer a calendar day from the
|
|
220
|
+
browser clock or from midnight instants.
|
|
221
|
+
|
|
222
|
+
Ranges use strict `YYYY-MM-DD` values with exclusive ends. Supported item dates
|
|
223
|
+
are `0000-01-01` through `9999-12-30`; `9999-12-31` is the final representable
|
|
224
|
+
exclusive boundary. One viewport may span at most 36,600 days. Import
|
|
225
|
+
`VIOLET_GANTT_DATE_LIMITS` when projecting source records so out-of-range values
|
|
226
|
+
can remain explicit in the consumer instead of being mistaken for scheduled geometry.
|
|
227
|
+
Invalid dates, identities, hierarchy links, item references, and presentation/time
|
|
228
|
+
combinations are omitted with a visible status. A `milestone` requires a
|
|
229
|
+
`day-point`; `work` and `window` require a `day-range`; `time: null` renders an
|
|
230
|
+
explicit unscheduled entry.
|
|
231
|
+
|
|
232
|
+
The host fills a definite-height parent. Each density sets a minimum row
|
|
233
|
+
height: 36px `compact`, 64px `natural`, and 76px `comfortable`. Rows grow in 24px
|
|
234
|
+
item lanes, capped at six visible lanes. The single scroll viewport
|
|
235
|
+
owns both the sticky name column and timeline geometry. It mounts only the visible
|
|
236
|
+
logical rows and day headers plus bounded overscan; it never creates a cell for
|
|
237
|
+
every row/day pair. Item lanes retain a 24px pointer target and readable one-line
|
|
238
|
+
labels. When a row has more items than its stable height can show, its `+N` count
|
|
239
|
+
is paired with pointer- and keyboard-operable previous/next controls that reveal
|
|
240
|
+
each logical item without mounting a hidden copy of the whole collection.
|
|
241
|
+
|
|
242
|
+
The axis keeps the visible month and year on screen while scrolling. Week and
|
|
243
|
+
month tick labels use readable widths independent of the underlying day geometry.
|
|
244
|
+
Chronology always runs left to right; row names retain the document's text
|
|
245
|
+
direction. The sticky name column responds to the component's actual container
|
|
246
|
+
width, and item reveal calculations use its measured width.
|
|
247
|
+
|
|
248
|
+
Keyboard focus moves through logical rows with Up, Down, Home, End, Page Up, and
|
|
249
|
+
Page Down. Right and Left follow tree expansion behavior. Alt+Right and Alt+Left
|
|
250
|
+
cycle through every logical item in the active row and reveal horizontally culled
|
|
251
|
+
items as needed. Enter activates the current item, Shift+Enter inspects the active
|
|
252
|
+
row, and Escape returns to row focus without changing selection. Data replacements
|
|
253
|
+
reconcile stale row and item identities; focus follows a remaining row only when
|
|
254
|
+
the timeline owned focus before the replacement. `focusItem()` returns `false`
|
|
255
|
+
without changing active state when the row is collapsed or the item's date is
|
|
256
|
+
outside the controlled viewport. Consumers loop
|
|
257
|
+
`item-selection-change`, `expanded-change`,
|
|
258
|
+
and `viewport-change` details into the corresponding controlled properties.
|
|
259
|
+
When the accepted range is too short to fill the measured timeline width, the
|
|
260
|
+
component emits an additive `viewport-change` request with reason `resize`.
|
|
261
|
+
The consumer remains responsible for loading and accepting that later exclusive
|
|
262
|
+
end; the component keeps the current fixed scale and never paints unloaded days
|
|
263
|
+
or shortens an accepted range when its container narrows.
|