@tanrei/web 0.0.0-stage → 0.1.0-next.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 +202 -0
- package/NOTICE +58 -0
- package/README.md +9743 -2
- package/custom-elements.json +86072 -0
- package/dist/THIRD_PARTY_LICENSES.md +136 -0
- package/dist/accordion.css +812 -0
- package/dist/app-shell.css +493 -0
- package/dist/avatar.css +80 -0
- package/dist/breadcrumbs.css +511 -0
- package/dist/callout.css +65 -0
- package/dist/code.css +595 -0
- package/dist/components/accordion/accordion.d.ts +197 -0
- package/dist/components/accordion/accordion.js +763 -0
- package/dist/components/accordion/accordion.js.map +1 -0
- package/dist/components/app-bar/app-bar.d.ts +107 -0
- package/dist/components/app-bar/app-bar.js +295 -0
- package/dist/components/app-bar/app-bar.js.map +1 -0
- package/dist/components/app-bar/app-bar.styles.d.ts +12 -0
- package/dist/components/app-bar/app-bar.styles.js +223 -0
- package/dist/components/app-bar/app-bar.styles.js.map +1 -0
- package/dist/components/app-shell/app-shell.d.ts +220 -0
- package/dist/components/app-shell/app-shell.js +677 -0
- package/dist/components/app-shell/app-shell.js.map +1 -0
- package/dist/components/avatar/avatar.d.ts +162 -0
- package/dist/components/avatar/avatar.js +390 -0
- package/dist/components/avatar/avatar.js.map +1 -0
- package/dist/components/avatar/avatar.styles.d.ts +9 -0
- package/dist/components/avatar/avatar.styles.js +258 -0
- package/dist/components/avatar/avatar.styles.js.map +1 -0
- package/dist/components/badge/badge.d.ts +59 -0
- package/dist/components/badge/badge.js +176 -0
- package/dist/components/badge/badge.js.map +1 -0
- package/dist/components/badge/badge.styles.d.ts +1 -0
- package/dist/components/badge/badge.styles.js +106 -0
- package/dist/components/badge/badge.styles.js.map +1 -0
- package/dist/components/bottom-sheet/bottom-sheet.d.ts +207 -0
- package/dist/components/bottom-sheet/bottom-sheet.js +724 -0
- package/dist/components/bottom-sheet/bottom-sheet.js.map +1 -0
- package/dist/components/bottom-sheet/bottom-sheet.styles.d.ts +1 -0
- package/dist/components/bottom-sheet/bottom-sheet.styles.js +393 -0
- package/dist/components/bottom-sheet/bottom-sheet.styles.js.map +1 -0
- package/dist/components/breadcrumbs/breadcrumbs.d.ts +176 -0
- package/dist/components/breadcrumbs/breadcrumbs.js +638 -0
- package/dist/components/breadcrumbs/breadcrumbs.js.map +1 -0
- package/dist/components/breadcrumbs/breadcrumbs.styles.d.ts +1 -0
- package/dist/components/breadcrumbs/breadcrumbs.styles.js +225 -0
- package/dist/components/breadcrumbs/breadcrumbs.styles.js.map +1 -0
- package/dist/components/button/button.d.ts +280 -0
- package/dist/components/button/button.js +530 -0
- package/dist/components/button/button.js.map +1 -0
- package/dist/components/button/button.styles.d.ts +20 -0
- package/dist/components/button/button.styles.js +328 -0
- package/dist/components/button/button.styles.js.map +1 -0
- package/dist/components/button-group/button-group.d.ts +124 -0
- package/dist/components/button-group/button-group.js +287 -0
- package/dist/components/button-group/button-group.js.map +1 -0
- package/dist/components/button-group/button-group.styles.d.ts +1 -0
- package/dist/components/button-group/button-group.styles.js +220 -0
- package/dist/components/button-group/button-group.styles.js.map +1 -0
- package/dist/components/button-with-menu/button-with-menu.d.ts +224 -0
- package/dist/components/button-with-menu/button-with-menu.js +635 -0
- package/dist/components/button-with-menu/button-with-menu.js.map +1 -0
- package/dist/components/button-with-menu/button-with-menu.styles.d.ts +15 -0
- package/dist/components/button-with-menu/button-with-menu.styles.js +418 -0
- package/dist/components/button-with-menu/button-with-menu.styles.js.map +1 -0
- package/dist/components/calendar/calendar.d.ts +380 -0
- package/dist/components/calendar/calendar.js +1619 -0
- package/dist/components/calendar/calendar.js.map +1 -0
- package/dist/components/calendar/calendar.styles.d.ts +11 -0
- package/dist/components/calendar/calendar.styles.js +412 -0
- package/dist/components/calendar/calendar.styles.js.map +1 -0
- package/dist/components/callout/callout.d.ts +157 -0
- package/dist/components/callout/callout.js +436 -0
- package/dist/components/callout/callout.js.map +1 -0
- package/dist/components/callout/callout.styles.d.ts +13 -0
- package/dist/components/callout/callout.styles.js +383 -0
- package/dist/components/callout/callout.styles.js.map +1 -0
- package/dist/components/card/card.d.ts +108 -0
- package/dist/components/card/card.js +235 -0
- package/dist/components/card/card.js.map +1 -0
- package/dist/components/card/card.styles.d.ts +9 -0
- package/dist/components/card/card.styles.js +170 -0
- package/dist/components/card/card.styles.js.map +1 -0
- package/dist/components/carousel/carousel-geometry.d.ts +178 -0
- package/dist/components/carousel/carousel-geometry.js +356 -0
- package/dist/components/carousel/carousel-geometry.js.map +1 -0
- package/dist/components/carousel/carousel.d.ts +401 -0
- package/dist/components/carousel/carousel.js +1352 -0
- package/dist/components/carousel/carousel.js.map +1 -0
- package/dist/components/carousel/carousel.styles.d.ts +4 -0
- package/dist/components/carousel/carousel.styles.js +475 -0
- package/dist/components/carousel/carousel.styles.js.map +1 -0
- package/dist/components/chat-composer/chat-composer.d.ts +482 -0
- package/dist/components/chat-composer/chat-composer.js +1374 -0
- package/dist/components/chat-composer/chat-composer.js.map +1 -0
- package/dist/components/chat-composer/chat-composer.styles.d.ts +9 -0
- package/dist/components/chat-composer/chat-composer.styles.js +308 -0
- package/dist/components/chat-composer/chat-composer.styles.js.map +1 -0
- package/dist/components/checkbox/checkbox.d.ts +135 -0
- package/dist/components/checkbox/checkbox.js +296 -0
- package/dist/components/checkbox/checkbox.js.map +1 -0
- package/dist/components/checkbox/checkbox.styles.d.ts +13 -0
- package/dist/components/checkbox/checkbox.styles.js +226 -0
- package/dist/components/checkbox/checkbox.styles.js.map +1 -0
- package/dist/components/checkbox-group/checkbox-group.d.ts +199 -0
- package/dist/components/checkbox-group/checkbox-group.js +500 -0
- package/dist/components/checkbox-group/checkbox-group.js.map +1 -0
- package/dist/components/chip/chip.d.ts +176 -0
- package/dist/components/chip/chip.js +376 -0
- package/dist/components/chip/chip.js.map +1 -0
- package/dist/components/chip/chip.styles.d.ts +10 -0
- package/dist/components/chip/chip.styles.js +465 -0
- package/dist/components/chip/chip.styles.js.map +1 -0
- package/dist/components/chip-field/chip-field.d.ts +315 -0
- package/dist/components/chip-field/chip-field.js +887 -0
- package/dist/components/chip-field/chip-field.js.map +1 -0
- package/dist/components/code-block/code-block.before.d.ts +2 -0
- package/dist/components/code-block/code-block.before.js +193 -0
- package/dist/components/code-block/code-block.before.js.map +1 -0
- package/dist/components/code-block/code-block.d.ts +268 -0
- package/dist/components/code-block/code-block.js +1009 -0
- package/dist/components/code-block/code-block.js.map +1 -0
- package/dist/components/code-block/code-block.light.d.ts +50 -0
- package/dist/components/code-block/code-block.light.js +287 -0
- package/dist/components/code-block/code-block.light.js.map +1 -0
- package/dist/components/code-block/code-block.lines.d.ts +49 -0
- package/dist/components/code-block/code-block.lines.js +75 -0
- package/dist/components/code-block/code-block.lines.js.map +1 -0
- package/dist/components/code-block/code-block.styles.d.ts +8 -0
- package/dist/components/code-block/code-block.styles.js +212 -0
- package/dist/components/code-block/code-block.styles.js.map +1 -0
- package/dist/components/color-field/color-field.d.ts +120 -0
- package/dist/components/color-field/color-field.js +182 -0
- package/dist/components/color-field/color-field.js.map +1 -0
- package/dist/components/color-input/color-input.d.ts +302 -0
- package/dist/components/color-input/color-input.js +748 -0
- package/dist/components/color-input/color-input.js.map +1 -0
- package/dist/components/color-input/color-input.styles.d.ts +22 -0
- package/dist/components/color-input/color-input.styles.js +373 -0
- package/dist/components/color-input/color-input.styles.js.map +1 -0
- package/dist/components/color-input/color-text.d.ts +48 -0
- package/dist/components/color-input/color-text.js +77 -0
- package/dist/components/color-input/color-text.js.map +1 -0
- package/dist/components/combobox/combobox.d.ts +387 -0
- package/dist/components/combobox/combobox.js +1108 -0
- package/dist/components/combobox/combobox.js.map +1 -0
- package/dist/components/combobox/combobox.styles.d.ts +26 -0
- package/dist/components/combobox/combobox.styles.js +497 -0
- package/dist/components/combobox/combobox.styles.js.map +1 -0
- package/dist/components/combobox-field/combobox-field.d.ts +159 -0
- package/dist/components/combobox-field/combobox-field.js +280 -0
- package/dist/components/combobox-field/combobox-field.js.map +1 -0
- package/dist/components/copy-button/copy-button.d.ts +112 -0
- package/dist/components/copy-button/copy-button.js +237 -0
- package/dist/components/copy-button/copy-button.js.map +1 -0
- package/dist/components/copy-button/copy-button.styles.d.ts +1 -0
- package/dist/components/copy-button/copy-button.styles.js +62 -0
- package/dist/components/copy-button/copy-button.styles.js.map +1 -0
- package/dist/components/date-time-picker/date-time-picker.d.ts +603 -0
- package/dist/components/date-time-picker/date-time-picker.js +2537 -0
- package/dist/components/date-time-picker/date-time-picker.js.map +1 -0
- package/dist/components/date-time-picker/date-time-picker.styles.d.ts +1 -0
- package/dist/components/date-time-picker/date-time-picker.styles.js +842 -0
- package/dist/components/date-time-picker/date-time-picker.styles.js.map +1 -0
- package/dist/components/description-list/description-list.d.ts +133 -0
- package/dist/components/description-list/description-list.js +395 -0
- package/dist/components/description-list/description-list.js.map +1 -0
- package/dist/components/dialog/dialog.d.ts +140 -0
- package/dist/components/dialog/dialog.js +440 -0
- package/dist/components/dialog/dialog.js.map +1 -0
- package/dist/components/dialog/dialog.styles.d.ts +1 -0
- package/dist/components/dialog/dialog.styles.js +306 -0
- package/dist/components/dialog/dialog.styles.js.map +1 -0
- package/dist/components/divider/divider.d.ts +112 -0
- package/dist/components/divider/divider.js +331 -0
- package/dist/components/divider/divider.js.map +1 -0
- package/dist/components/divider/divider.styles.d.ts +6 -0
- package/dist/components/divider/divider.styles.js +183 -0
- package/dist/components/divider/divider.styles.js.map +1 -0
- package/dist/components/embedded-text-input/embedded-text-input.d.ts +246 -0
- package/dist/components/embedded-text-input/embedded-text-input.js +673 -0
- package/dist/components/embedded-text-input/embedded-text-input.js.map +1 -0
- package/dist/components/embedded-text-input/embedded-text-input.styles.d.ts +1 -0
- package/dist/components/embedded-text-input/embedded-text-input.styles.js +204 -0
- package/dist/components/embedded-text-input/embedded-text-input.styles.js.map +1 -0
- package/dist/components/empty-state/empty-state.d.ts +132 -0
- package/dist/components/empty-state/empty-state.js +333 -0
- package/dist/components/empty-state/empty-state.js.map +1 -0
- package/dist/components/empty-state/empty-state.styles.d.ts +11 -0
- package/dist/components/empty-state/empty-state.styles.js +218 -0
- package/dist/components/empty-state/empty-state.styles.js.map +1 -0
- package/dist/components/fab-menu/fab-menu.d.ts +240 -0
- package/dist/components/fab-menu/fab-menu.js +605 -0
- package/dist/components/fab-menu/fab-menu.js.map +1 -0
- package/dist/components/fab-menu/fab-menu.styles.d.ts +21 -0
- package/dist/components/fab-menu/fab-menu.styles.js +427 -0
- package/dist/components/fab-menu/fab-menu.styles.js.map +1 -0
- package/dist/components/field/field.d.ts +165 -0
- package/dist/components/field/field.js +399 -0
- package/dist/components/field/field.js.map +1 -0
- package/dist/components/field/field.styles.d.ts +2 -0
- package/dist/components/field/field.styles.js +177 -0
- package/dist/components/field/field.styles.js.map +1 -0
- package/dist/components/field-group/field-group.d.ts +122 -0
- package/dist/components/field-group/field-group.js +246 -0
- package/dist/components/field-group/field-group.js.map +1 -0
- package/dist/components/field-group/field-group.styles.d.ts +7 -0
- package/dist/components/field-group/field-group.styles.js +28 -0
- package/dist/components/field-group/field-group.styles.js.map +1 -0
- package/dist/components/figure/figure.d.ts +152 -0
- package/dist/components/figure/figure.js +435 -0
- package/dist/components/figure/figure.js.map +1 -0
- package/dist/components/file-item/file-item.d.ts +232 -0
- package/dist/components/file-item/file-item.js +665 -0
- package/dist/components/file-item/file-item.js.map +1 -0
- package/dist/components/file-item/file-item.styles.d.ts +2 -0
- package/dist/components/file-item/file-item.styles.js +582 -0
- package/dist/components/file-item/file-item.styles.js.map +1 -0
- package/dist/components/file-picker/file-picker.d.ts +221 -0
- package/dist/components/file-picker/file-picker.js +588 -0
- package/dist/components/file-picker/file-picker.js.map +1 -0
- package/dist/components/file-picker/file-picker.styles.d.ts +2 -0
- package/dist/components/file-picker/file-picker.styles.js +303 -0
- package/dist/components/file-picker/file-picker.styles.js.map +1 -0
- package/dist/components/file-upload/file-upload.d.ts +353 -0
- package/dist/components/file-upload/file-upload.js +939 -0
- package/dist/components/file-upload/file-upload.js.map +1 -0
- package/dist/components/file-upload/file-upload.styles.d.ts +1 -0
- package/dist/components/file-upload/file-upload.styles.js +91 -0
- package/dist/components/file-upload/file-upload.styles.js.map +1 -0
- package/dist/components/image-preview/image-preview.d.ts +336 -0
- package/dist/components/image-preview/image-preview.js +1510 -0
- package/dist/components/image-preview/image-preview.js.map +1 -0
- package/dist/components/image-preview/image-preview.styles.d.ts +1 -0
- package/dist/components/image-preview/image-preview.styles.js +418 -0
- package/dist/components/image-preview/image-preview.styles.js.map +1 -0
- package/dist/components/keyboard-shortcut/keyboard-shortcut.d.ts +94 -0
- package/dist/components/keyboard-shortcut/keyboard-shortcut.js +285 -0
- package/dist/components/keyboard-shortcut/keyboard-shortcut.js.map +1 -0
- package/dist/components/keyboard-shortcut/keyboard-shortcut.styles.d.ts +11 -0
- package/dist/components/keyboard-shortcut/keyboard-shortcut.styles.js +155 -0
- package/dist/components/keyboard-shortcut/keyboard-shortcut.styles.js.map +1 -0
- package/dist/components/link-card/link-card.d.ts +156 -0
- package/dist/components/link-card/link-card.js +713 -0
- package/dist/components/link-card/link-card.js.map +1 -0
- package/dist/components/list/list.d.ts +430 -0
- package/dist/components/list/list.js +1230 -0
- package/dist/components/list/list.js.map +1 -0
- package/dist/components/list/list.styles.d.ts +3 -0
- package/dist/components/list/list.styles.js +334 -0
- package/dist/components/list/list.styles.js.map +1 -0
- package/dist/components/loading-indicator/loading-indicator.d.ts +83 -0
- package/dist/components/loading-indicator/loading-indicator.js +195 -0
- package/dist/components/loading-indicator/loading-indicator.js.map +1 -0
- package/dist/components/loading-indicator/loading-indicator.styles.d.ts +6 -0
- package/dist/components/loading-indicator/loading-indicator.styles.js +124 -0
- package/dist/components/loading-indicator/loading-indicator.styles.js.map +1 -0
- package/dist/components/main-action-button/main-action-button.d.ts +95 -0
- package/dist/components/main-action-button/main-action-button.js +202 -0
- package/dist/components/main-action-button/main-action-button.js.map +1 -0
- package/dist/components/main-action-button/main-action-button.styles.d.ts +10 -0
- package/dist/components/main-action-button/main-action-button.styles.js +285 -0
- package/dist/components/main-action-button/main-action-button.styles.js.map +1 -0
- package/dist/components/menu/menu.d.ts +813 -0
- package/dist/components/menu/menu.js +2061 -0
- package/dist/components/menu/menu.js.map +1 -0
- package/dist/components/menu/menu.styles.d.ts +18 -0
- package/dist/components/menu/menu.styles.js +587 -0
- package/dist/components/menu/menu.styles.js.map +1 -0
- package/dist/components/menubar/menubar.d.ts +477 -0
- package/dist/components/menubar/menubar.js +1677 -0
- package/dist/components/menubar/menubar.js.map +1 -0
- package/dist/components/menubar/menubar.styles.d.ts +43 -0
- package/dist/components/menubar/menubar.styles.js +379 -0
- package/dist/components/menubar/menubar.styles.js.map +1 -0
- package/dist/components/navigation-bar/navigation-bar.d.ts +239 -0
- package/dist/components/navigation-bar/navigation-bar.js +544 -0
- package/dist/components/navigation-bar/navigation-bar.js.map +1 -0
- package/dist/components/navigation-bar/navigation-bar.styles.d.ts +21 -0
- package/dist/components/navigation-bar/navigation-bar.styles.js +320 -0
- package/dist/components/navigation-bar/navigation-bar.styles.js.map +1 -0
- package/dist/components/navigation-drawer/navigation-drawer.d.ts +627 -0
- package/dist/components/navigation-drawer/navigation-drawer.js +1917 -0
- package/dist/components/navigation-drawer/navigation-drawer.js.map +1 -0
- package/dist/components/navigation-drawer/navigation-drawer.styles.d.ts +40 -0
- package/dist/components/navigation-drawer/navigation-drawer.styles.js +934 -0
- package/dist/components/navigation-drawer/navigation-drawer.styles.js.map +1 -0
- package/dist/components/number-field/number-field.d.ts +147 -0
- package/dist/components/number-field/number-field.js +252 -0
- package/dist/components/number-field/number-field.js.map +1 -0
- package/dist/components/number-input/number-input.d.ts +347 -0
- package/dist/components/number-input/number-input.js +929 -0
- package/dist/components/number-input/number-input.js.map +1 -0
- package/dist/components/number-input/number-input.styles.d.ts +22 -0
- package/dist/components/number-input/number-input.styles.js +395 -0
- package/dist/components/number-input/number-input.styles.js.map +1 -0
- package/dist/components/number-input/number-text.d.ts +74 -0
- package/dist/components/number-input/number-text.js +230 -0
- package/dist/components/number-input/number-text.js.map +1 -0
- package/dist/components/one-time-code-field/one-time-code-field.d.ts +94 -0
- package/dist/components/one-time-code-field/one-time-code-field.js +135 -0
- package/dist/components/one-time-code-field/one-time-code-field.js.map +1 -0
- package/dist/components/one-time-code-input/code-text.d.ts +51 -0
- package/dist/components/one-time-code-input/code-text.js +145 -0
- package/dist/components/one-time-code-input/code-text.js.map +1 -0
- package/dist/components/one-time-code-input/one-time-code-input.d.ts +219 -0
- package/dist/components/one-time-code-input/one-time-code-input.js +710 -0
- package/dist/components/one-time-code-input/one-time-code-input.js.map +1 -0
- package/dist/components/one-time-code-input/one-time-code-input.styles.d.ts +8 -0
- package/dist/components/one-time-code-input/one-time-code-input.styles.js +323 -0
- package/dist/components/one-time-code-input/one-time-code-input.styles.js.map +1 -0
- package/dist/components/option/option.d.ts +51 -0
- package/dist/components/option/option.js +75 -0
- package/dist/components/option/option.js.map +1 -0
- package/dist/components/page-header/page-header.d.ts +97 -0
- package/dist/components/page-header/page-header.js +258 -0
- package/dist/components/page-header/page-header.js.map +1 -0
- package/dist/components/popover/popover.d.ts +217 -0
- package/dist/components/popover/popover.js +616 -0
- package/dist/components/popover/popover.js.map +1 -0
- package/dist/components/popover/popover.styles.d.ts +8 -0
- package/dist/components/popover/popover.styles.js +299 -0
- package/dist/components/popover/popover.styles.js.map +1 -0
- package/dist/components/progress-indicator/progress-indicator.d.ts +76 -0
- package/dist/components/progress-indicator/progress-indicator.js +165 -0
- package/dist/components/progress-indicator/progress-indicator.js.map +1 -0
- package/dist/components/progress-indicator/progress-indicator.styles.d.ts +7 -0
- package/dist/components/progress-indicator/progress-indicator.styles.js +271 -0
- package/dist/components/progress-indicator/progress-indicator.styles.js.map +1 -0
- package/dist/components/radio-button/radio-button.d.ts +149 -0
- package/dist/components/radio-button/radio-button.js +370 -0
- package/dist/components/radio-button/radio-button.js.map +1 -0
- package/dist/components/radio-button/radio-button.styles.d.ts +8 -0
- package/dist/components/radio-button/radio-button.styles.js +190 -0
- package/dist/components/radio-button/radio-button.styles.js.map +1 -0
- package/dist/components/radio-group/radio-group.d.ts +188 -0
- package/dist/components/radio-group/radio-group.js +380 -0
- package/dist/components/radio-group/radio-group.js.map +1 -0
- package/dist/components/search/search.d.ts +569 -0
- package/dist/components/search/search.js +1801 -0
- package/dist/components/search/search.js.map +1 -0
- package/dist/components/search/search.styles.d.ts +15 -0
- package/dist/components/search/search.styles.js +967 -0
- package/dist/components/search/search.styles.js.map +1 -0
- package/dist/components/segmented-button/segmented-button.d.ts +183 -0
- package/dist/components/segmented-button/segmented-button.js +483 -0
- package/dist/components/segmented-button/segmented-button.js.map +1 -0
- package/dist/components/segmented-button/segmented-button.styles.d.ts +19 -0
- package/dist/components/segmented-button/segmented-button.styles.js +400 -0
- package/dist/components/segmented-button/segmented-button.styles.js.map +1 -0
- package/dist/components/select/select.d.ts +259 -0
- package/dist/components/select/select.js +702 -0
- package/dist/components/select/select.js.map +1 -0
- package/dist/components/select/select.styles.d.ts +27 -0
- package/dist/components/select/select.styles.js +359 -0
- package/dist/components/select/select.styles.js.map +1 -0
- package/dist/components/select-field/select-field.d.ts +141 -0
- package/dist/components/select-field/select-field.js +234 -0
- package/dist/components/select-field/select-field.js.map +1 -0
- package/dist/components/side-sheet/side-sheet.d.ts +190 -0
- package/dist/components/side-sheet/side-sheet.js +592 -0
- package/dist/components/side-sheet/side-sheet.js.map +1 -0
- package/dist/components/side-sheet/side-sheet.styles.d.ts +9 -0
- package/dist/components/side-sheet/side-sheet.styles.js +352 -0
- package/dist/components/side-sheet/side-sheet.styles.js.map +1 -0
- package/dist/components/skeleton/skeleton.d.ts +157 -0
- package/dist/components/skeleton/skeleton.js +550 -0
- package/dist/components/skeleton/skeleton.js.map +1 -0
- package/dist/components/slider/slider.d.ts +235 -0
- package/dist/components/slider/slider.js +792 -0
- package/dist/components/slider/slider.js.map +1 -0
- package/dist/components/slider/slider.styles.d.ts +6 -0
- package/dist/components/slider/slider.styles.js +492 -0
- package/dist/components/slider/slider.styles.js.map +1 -0
- package/dist/components/slider-field/slider-field.d.ts +150 -0
- package/dist/components/slider-field/slider-field.js +269 -0
- package/dist/components/slider-field/slider-field.js.map +1 -0
- package/dist/components/snackbar/snackbar.d.ts +237 -0
- package/dist/components/snackbar/snackbar.js +607 -0
- package/dist/components/snackbar/snackbar.js.map +1 -0
- package/dist/components/snackbar/snackbar.styles.d.ts +10 -0
- package/dist/components/snackbar/snackbar.styles.js +510 -0
- package/dist/components/snackbar/snackbar.styles.js.map +1 -0
- package/dist/components/switch/switch.d.ts +161 -0
- package/dist/components/switch/switch.js +470 -0
- package/dist/components/switch/switch.js.map +1 -0
- package/dist/components/switch/switch.styles.d.ts +3 -0
- package/dist/components/switch/switch.styles.js +440 -0
- package/dist/components/switch/switch.styles.js.map +1 -0
- package/dist/components/tab-view/tab-view.d.ts +303 -0
- package/dist/components/tab-view/tab-view.js +917 -0
- package/dist/components/tab-view/tab-view.js.map +1 -0
- package/dist/components/tab-view/tab-view.styles.d.ts +19 -0
- package/dist/components/tab-view/tab-view.styles.js +85 -0
- package/dist/components/tab-view/tab-view.styles.js.map +1 -0
- package/dist/components/table/table.d.ts +386 -0
- package/dist/components/table/table.js +1320 -0
- package/dist/components/table/table.js.map +1 -0
- package/dist/components/table-of-contents/table-of-contents.d.ts +227 -0
- package/dist/components/table-of-contents/table-of-contents.js +963 -0
- package/dist/components/table-of-contents/table-of-contents.js.map +1 -0
- package/dist/components/table-of-contents/table-of-contents.styles.d.ts +1 -0
- package/dist/components/table-of-contents/table-of-contents.styles.js +243 -0
- package/dist/components/table-of-contents/table-of-contents.styles.js.map +1 -0
- package/dist/components/tabs/tabs.d.ts +800 -0
- package/dist/components/tabs/tabs.js +2183 -0
- package/dist/components/tabs/tabs.js.map +1 -0
- package/dist/components/tabs/tabs.styles.d.ts +47 -0
- package/dist/components/tabs/tabs.styles.js +595 -0
- package/dist/components/tabs/tabs.styles.js.map +1 -0
- package/dist/components/tag/tag.d.ts +77 -0
- package/dist/components/tag/tag.js +143 -0
- package/dist/components/tag/tag.js.map +1 -0
- package/dist/components/tag/tag.styles.d.ts +13 -0
- package/dist/components/tag/tag.styles.js +215 -0
- package/dist/components/tag/tag.styles.js.map +1 -0
- package/dist/components/tag-group/tag-group.d.ts +110 -0
- package/dist/components/tag-group/tag-group.js +298 -0
- package/dist/components/tag-group/tag-group.js.map +1 -0
- package/dist/components/tag-group/tag-group.styles.d.ts +8 -0
- package/dist/components/tag-group/tag-group.styles.js +66 -0
- package/dist/components/tag-group/tag-group.styles.js.map +1 -0
- package/dist/components/text-field/text-field.d.ts +159 -0
- package/dist/components/text-field/text-field.js +272 -0
- package/dist/components/text-field/text-field.js.map +1 -0
- package/dist/components/text-input/text-input-segments.d.ts +93 -0
- package/dist/components/text-input/text-input-segments.js +233 -0
- package/dist/components/text-input/text-input-segments.js.map +1 -0
- package/dist/components/text-input/text-input.d.ts +683 -0
- package/dist/components/text-input/text-input.js +2120 -0
- package/dist/components/text-input/text-input.js.map +1 -0
- package/dist/components/text-input/text-input.styles.d.ts +27 -0
- package/dist/components/text-input/text-input.styles.js +1071 -0
- package/dist/components/text-input/text-input.styles.js.map +1 -0
- package/dist/components/toolbar/toolbar.d.ts +123 -0
- package/dist/components/toolbar/toolbar.js +336 -0
- package/dist/components/toolbar/toolbar.js.map +1 -0
- package/dist/components/toolbar/toolbar.styles.d.ts +10 -0
- package/dist/components/toolbar/toolbar.styles.js +156 -0
- package/dist/components/toolbar/toolbar.styles.js.map +1 -0
- package/dist/components/tooltip/tooltip-placement.d.ts +22 -0
- package/dist/components/tooltip/tooltip-placement.js +15 -0
- package/dist/components/tooltip/tooltip-placement.js.map +1 -0
- package/dist/components/tooltip/tooltip.d.ts +267 -0
- package/dist/components/tooltip/tooltip.js +902 -0
- package/dist/components/tooltip/tooltip.js.map +1 -0
- package/dist/components/tooltip/tooltip.styles.d.ts +7 -0
- package/dist/components/tooltip/tooltip.styles.js +240 -0
- package/dist/components/tooltip/tooltip.styles.js.map +1 -0
- package/dist/components/tree-view/tree-view.d.ts +264 -0
- package/dist/components/tree-view/tree-view.js +1228 -0
- package/dist/components/tree-view/tree-view.js.map +1 -0
- package/dist/description-list.css +337 -0
- package/dist/empty-state.css +70 -0
- package/dist/figure.css +381 -0
- package/dist/generated/icon-sets.d.ts +9 -0
- package/dist/generated/icon-sets.js +18 -0
- package/dist/generated/icon-sets.js.map +1 -0
- package/dist/generated/words.d.ts +161 -0
- package/dist/generated/words.js +91 -0
- package/dist/generated/words.js.map +1 -0
- package/dist/highlight/grammars/css.d.ts +3 -0
- package/dist/highlight/grammars/css.js +56 -0
- package/dist/highlight/grammars/css.js.map +1 -0
- package/dist/highlight/grammars/dart.d.ts +3 -0
- package/dist/highlight/grammars/dart.js +53 -0
- package/dist/highlight/grammars/dart.js.map +1 -0
- package/dist/highlight/grammars/javascript.d.ts +4 -0
- package/dist/highlight/grammars/javascript.js +119 -0
- package/dist/highlight/grammars/javascript.js.map +1 -0
- package/dist/highlight/grammars/json.d.ts +3 -0
- package/dist/highlight/grammars/json.js +19 -0
- package/dist/highlight/grammars/json.js.map +1 -0
- package/dist/highlight/grammars/kotlin.d.ts +3 -0
- package/dist/highlight/grammars/kotlin.js +46 -0
- package/dist/highlight/grammars/kotlin.js.map +1 -0
- package/dist/highlight/grammars/markup.d.ts +3 -0
- package/dist/highlight/grammars/markup.js +45 -0
- package/dist/highlight/grammars/markup.js.map +1 -0
- package/dist/highlight/grammars/shared.d.ts +25 -0
- package/dist/highlight/grammars/shared.js +37 -0
- package/dist/highlight/grammars/shared.js.map +1 -0
- package/dist/highlight/grammars/shell.d.ts +3 -0
- package/dist/highlight/grammars/shell.js +48 -0
- package/dist/highlight/grammars/shell.js.map +1 -0
- package/dist/highlight/grammars/swift.d.ts +3 -0
- package/dist/highlight/grammars/swift.js +46 -0
- package/dist/highlight/grammars/swift.js.map +1 -0
- package/dist/highlight/grammars/typescript.d.ts +2 -0
- package/dist/highlight/grammars/typescript.js +5 -0
- package/dist/highlight/grammars/typescript.js.map +1 -0
- package/dist/highlight/index.d.ts +104 -0
- package/dist/highlight/index.js +331 -0
- package/dist/highlight/index.js.map +1 -0
- package/dist/icons.css +107 -0
- package/dist/icons.d.ts +2 -0
- package/dist/icons.js +10 -0
- package/dist/icons.js.map +1 -0
- package/dist/index.d.ts +85 -0
- package/dist/index.js +100 -0
- package/dist/index.js.map +1 -0
- package/dist/link-card.css +678 -0
- package/dist/link.css +728 -0
- package/dist/link.d.ts +21 -0
- package/dist/link.js +594 -0
- package/dist/link.js.map +1 -0
- package/dist/links/index.d.ts +136 -0
- package/dist/links/index.js +404 -0
- package/dist/links/index.js.map +1 -0
- package/dist/links/node/address.js +154 -0
- package/dist/links/node/cli.js +102 -0
- package/dist/links/node/fetcher.js +267 -0
- package/dist/links/node/head.js +278 -0
- package/dist/links/node/index.d.ts +164 -0
- package/dist/links/node/index.js +26 -0
- package/dist/links/node/links.js +275 -0
- package/dist/links/node/lock.js +86 -0
- package/dist/links/node/mark.js +71 -0
- package/dist/links/node/options.js +120 -0
- package/dist/links/node/pictures.js +265 -0
- package/dist/links/node/refresh.js +28 -0
- package/dist/menu.css +97 -0
- package/dist/menubar.css +69 -0
- package/dist/page-header.css +324 -0
- package/dist/pagination.css +410 -0
- package/dist/pagination.d.ts +6 -0
- package/dist/pagination.js +256 -0
- package/dist/pagination.js.map +1 -0
- package/dist/primitives/actions.d.ts +75 -0
- package/dist/primitives/actions.js +142 -0
- package/dist/primitives/actions.js.map +1 -0
- package/dist/primitives/after-click.d.ts +8 -0
- package/dist/primitives/after-click.js +21 -0
- package/dist/primitives/after-click.js.map +1 -0
- package/dist/primitives/anchored.d.ts +134 -0
- package/dist/primitives/anchored.js +425 -0
- package/dist/primitives/anchored.js.map +1 -0
- package/dist/primitives/arc.d.ts +13 -0
- package/dist/primitives/arc.js +49 -0
- package/dist/primitives/arc.js.map +1 -0
- package/dist/primitives/arrow.d.ts +47 -0
- package/dist/primitives/arrow.js +159 -0
- package/dist/primitives/arrow.js.map +1 -0
- package/dist/primitives/auto-height.d.ts +56 -0
- package/dist/primitives/auto-height.js +150 -0
- package/dist/primitives/auto-height.js.map +1 -0
- package/dist/primitives/autofocus.d.ts +11 -0
- package/dist/primitives/autofocus.js +26 -0
- package/dist/primitives/autofocus.js.map +1 -0
- package/dist/primitives/availability.d.ts +32 -0
- package/dist/primitives/availability.js +122 -0
- package/dist/primitives/availability.js.map +1 -0
- package/dist/primitives/axes.d.ts +45 -0
- package/dist/primitives/axes.js +72 -0
- package/dist/primitives/axes.js.map +1 -0
- package/dist/primitives/behavior.d.ts +14 -0
- package/dist/primitives/behavior.js +19 -0
- package/dist/primitives/behavior.js.map +1 -0
- package/dist/primitives/calendar-date.d.ts +79 -0
- package/dist/primitives/calendar-date.js +135 -0
- package/dist/primitives/calendar-date.js.map +1 -0
- package/dist/primitives/composed.d.ts +144 -0
- package/dist/primitives/composed.js +303 -0
- package/dist/primitives/composed.js.map +1 -0
- package/dist/primitives/default-button.d.ts +49 -0
- package/dist/primitives/default-button.js +270 -0
- package/dist/primitives/default-button.js.map +1 -0
- package/dist/primitives/description.d.ts +18 -0
- package/dist/primitives/description.js +18 -0
- package/dist/primitives/description.js.map +1 -0
- package/dist/primitives/destination.d.ts +259 -0
- package/dist/primitives/destination.js +651 -0
- package/dist/primitives/destination.js.map +1 -0
- package/dist/primitives/direction.d.ts +23 -0
- package/dist/primitives/direction.js +90 -0
- package/dist/primitives/direction.js.map +1 -0
- package/dist/primitives/disabled-while-focused.d.ts +46 -0
- package/dist/primitives/disabled-while-focused.js +126 -0
- package/dist/primitives/disabled-while-focused.js.map +1 -0
- package/dist/primitives/disclosure.d.ts +9 -0
- package/dist/primitives/disclosure.js +15 -0
- package/dist/primitives/disclosure.js.map +1 -0
- package/dist/primitives/dismiss.d.ts +88 -0
- package/dist/primitives/dismiss.js +232 -0
- package/dist/primitives/dismiss.js.map +1 -0
- package/dist/primitives/field-frame.d.ts +166 -0
- package/dist/primitives/field-frame.js +358 -0
- package/dist/primitives/field-frame.js.map +1 -0
- package/dist/primitives/field-group-frame.d.ts +59 -0
- package/dist/primitives/field-group-frame.js +174 -0
- package/dist/primitives/field-group-frame.js.map +1 -0
- package/dist/primitives/field-trigger.d.ts +117 -0
- package/dist/primitives/field-trigger.js +387 -0
- package/dist/primitives/field-trigger.js.map +1 -0
- package/dist/primitives/field.d.ts +186 -0
- package/dist/primitives/field.js +349 -0
- package/dist/primitives/field.js.map +1 -0
- package/dist/primitives/file-format.d.ts +23 -0
- package/dist/primitives/file-format.js +185 -0
- package/dist/primitives/file-format.js.map +1 -0
- package/dist/primitives/file-item-holder.d.ts +45 -0
- package/dist/primitives/file-item-holder.js +39 -0
- package/dist/primitives/file-item-holder.js.map +1 -0
- package/dist/primitives/focus-order.d.ts +11 -0
- package/dist/primitives/focus-order.js +11 -0
- package/dist/primitives/focus-order.js.map +1 -0
- package/dist/primitives/focus-ring.d.ts +76 -0
- package/dist/primitives/focus-ring.js +230 -0
- package/dist/primitives/focus-ring.js.map +1 -0
- package/dist/primitives/follow.d.ts +65 -0
- package/dist/primitives/follow.js +283 -0
- package/dist/primitives/follow.js.map +1 -0
- package/dist/primitives/form-disabled.d.ts +20 -0
- package/dist/primitives/form-disabled.js +46 -0
- package/dist/primitives/form-disabled.js.map +1 -0
- package/dist/primitives/form-says.d.ts +33 -0
- package/dist/primitives/form-says.js +45 -0
- package/dist/primitives/form-says.js.map +1 -0
- package/dist/primitives/forward.d.ts +13 -0
- package/dist/primitives/forward.js +28 -0
- package/dist/primitives/forward.js.map +1 -0
- package/dist/primitives/glyph-mirror.d.ts +77 -0
- package/dist/primitives/glyph-mirror.js +211 -0
- package/dist/primitives/glyph-mirror.js.map +1 -0
- package/dist/primitives/glyph-pending.d.ts +17 -0
- package/dist/primitives/glyph-pending.js +91 -0
- package/dist/primitives/glyph-pending.js.map +1 -0
- package/dist/primitives/glyph.d.ts +53 -0
- package/dist/primitives/glyph.js +161 -0
- package/dist/primitives/glyph.js.map +1 -0
- package/dist/primitives/group-item.d.ts +128 -0
- package/dist/primitives/group-item.js +334 -0
- package/dist/primitives/group-item.js.map +1 -0
- package/dist/primitives/hidden.d.ts +2 -0
- package/dist/primitives/hidden.js +23 -0
- package/dist/primitives/hidden.js.map +1 -0
- package/dist/primitives/host-aria.d.ts +8 -0
- package/dist/primitives/host-aria.js +18 -0
- package/dist/primitives/host-aria.js.map +1 -0
- package/dist/primitives/index.d.ts +59 -0
- package/dist/primitives/index.js +189 -0
- package/dist/primitives/index.js.map +1 -0
- package/dist/primitives/indicator-drag.d.ts +90 -0
- package/dist/primitives/indicator-drag.js +207 -0
- package/dist/primitives/indicator-drag.js.map +1 -0
- package/dist/primitives/interactive.d.ts +13 -0
- package/dist/primitives/interactive.js +67 -0
- package/dist/primitives/interactive.js.map +1 -0
- package/dist/primitives/item-row.d.ts +34 -0
- package/dist/primitives/item-row.js +76 -0
- package/dist/primitives/item-row.js.map +1 -0
- package/dist/primitives/item-update.d.ts +2 -0
- package/dist/primitives/item-update.js +12 -0
- package/dist/primitives/item-update.js.map +1 -0
- package/dist/primitives/kept-length.d.ts +34 -0
- package/dist/primitives/kept-length.js +154 -0
- package/dist/primitives/kept-length.js.map +1 -0
- package/dist/primitives/keyboard-convention.d.ts +30 -0
- package/dist/primitives/keyboard-convention.js +88 -0
- package/dist/primitives/keyboard-convention.js.map +1 -0
- package/dist/primitives/label-lines.d.ts +12 -0
- package/dist/primitives/label-lines.js +34 -0
- package/dist/primitives/label-lines.js.map +1 -0
- package/dist/primitives/layout-scale.d.ts +18 -0
- package/dist/primitives/layout-scale.js +35 -0
- package/dist/primitives/layout-scale.js.map +1 -0
- package/dist/primitives/link.d.ts +147 -0
- package/dist/primitives/link.js +204 -0
- package/dist/primitives/link.js.map +1 -0
- package/dist/primitives/locale-date.d.ts +132 -0
- package/dist/primitives/locale-date.js +508 -0
- package/dist/primitives/locale-date.js.map +1 -0
- package/dist/primitives/missing-value.d.ts +16 -0
- package/dist/primitives/missing-value.js +31 -0
- package/dist/primitives/missing-value.js.map +1 -0
- package/dist/primitives/modal.d.ts +38 -0
- package/dist/primitives/modal.js +175 -0
- package/dist/primitives/modal.js.map +1 -0
- package/dist/primitives/native-text.d.ts +51 -0
- package/dist/primitives/native-text.js +77 -0
- package/dist/primitives/native-text.js.map +1 -0
- package/dist/primitives/natural-height.d.ts +21 -0
- package/dist/primitives/natural-height.js +36 -0
- package/dist/primitives/natural-height.js.map +1 -0
- package/dist/primitives/option-list.d.ts +314 -0
- package/dist/primitives/option-list.js +1098 -0
- package/dist/primitives/option-list.js.map +1 -0
- package/dist/primitives/overlay-focus.d.ts +48 -0
- package/dist/primitives/overlay-focus.js +152 -0
- package/dist/primitives/overlay-focus.js.map +1 -0
- package/dist/primitives/placement.d.ts +131 -0
- package/dist/primitives/placement.js +144 -0
- package/dist/primitives/placement.js.map +1 -0
- package/dist/primitives/places.d.ts +44 -0
- package/dist/primitives/places.js +98 -0
- package/dist/primitives/places.js.map +1 -0
- package/dist/primitives/press.d.ts +90 -0
- package/dist/primitives/press.js +153 -0
- package/dist/primitives/press.js.map +1 -0
- package/dist/primitives/report.d.ts +17 -0
- package/dist/primitives/report.js +34 -0
- package/dist/primitives/report.js.map +1 -0
- package/dist/primitives/ripple.d.ts +40 -0
- package/dist/primitives/ripple.js +70 -0
- package/dist/primitives/ripple.js.map +1 -0
- package/dist/primitives/roving.d.ts +41 -0
- package/dist/primitives/roving.js +71 -0
- package/dist/primitives/roving.js.map +1 -0
- package/dist/primitives/selection.d.ts +134 -0
- package/dist/primitives/selection.js +287 -0
- package/dist/primitives/selection.js.map +1 -0
- package/dist/primitives/separation.d.ts +28 -0
- package/dist/primitives/separation.js +96 -0
- package/dist/primitives/separation.js.map +1 -0
- package/dist/primitives/shared-choice.d.ts +33 -0
- package/dist/primitives/shared-choice.js +110 -0
- package/dist/primitives/shared-choice.js.map +1 -0
- package/dist/primitives/sheet.d.ts +63 -0
- package/dist/primitives/sheet.js +139 -0
- package/dist/primitives/sheet.js.map +1 -0
- package/dist/primitives/sheets.d.ts +8 -0
- package/dist/primitives/sheets.js +96 -0
- package/dist/primitives/sheets.js.map +1 -0
- package/dist/primitives/states.d.ts +33 -0
- package/dist/primitives/states.js +30 -0
- package/dist/primitives/states.js.map +1 -0
- package/dist/primitives/system-watch.d.ts +9 -0
- package/dist/primitives/system-watch.js +29 -0
- package/dist/primitives/system-watch.js.map +1 -0
- package/dist/primitives/target.d.ts +21 -0
- package/dist/primitives/target.js +79 -0
- package/dist/primitives/target.js.map +1 -0
- package/dist/primitives/values.d.ts +6 -0
- package/dist/primitives/values.js +22 -0
- package/dist/primitives/values.js.map +1 -0
- package/dist/primitives/visibility.d.ts +12 -0
- package/dist/primitives/visibility.js +50 -0
- package/dist/primitives/visibility.js.map +1 -0
- package/dist/primitives/words.d.ts +81 -0
- package/dist/primitives/words.js +236 -0
- package/dist/primitives/words.js.map +1 -0
- package/dist/prose.css +1917 -0
- package/dist/registry.d.ts +182 -0
- package/dist/registry.js +2 -0
- package/dist/registry.js.map +1 -0
- package/dist/shape.css +21 -0
- package/dist/skeleton.css +428 -0
- package/dist/steps.css +231 -0
- package/dist/steps.d.ts +6 -0
- package/dist/steps.js +156 -0
- package/dist/steps.js.map +1 -0
- package/dist/styles/icons.d.ts +62 -0
- package/dist/styles/icons.js +237 -0
- package/dist/styles/icons.js.map +1 -0
- package/dist/styles/product-text.d.ts +66 -0
- package/dist/styles/product-text.js +114 -0
- package/dist/styles/product-text.js.map +1 -0
- package/dist/styles/registered-properties.d.ts +6 -0
- package/dist/styles/registered-properties.js +68 -0
- package/dist/styles/registered-properties.js.map +1 -0
- package/dist/styles/shape.d.ts +59 -0
- package/dist/styles/shape.js +95 -0
- package/dist/styles/shape.js.map +1 -0
- package/dist/systems/cupertino.css +8793 -0
- package/dist/systems/m3-expressive-like.css +8786 -0
- package/dist/systems/m3-like.css +8748 -0
- package/dist/table-of-contents.css +482 -0
- package/dist/table.css +902 -0
- package/dist/tanrei.bundle.js +26644 -0
- package/dist/tanrei.bundle.js.map +7 -0
- package/dist/text.css +104 -0
- package/dist/timeline.css +410 -0
- package/dist/timeline.d.ts +6 -0
- package/dist/timeline.js +176 -0
- package/dist/timeline.js.map +1 -0
- package/dist/tokens.css +8801 -0
- package/dist/tree-view.css +797 -0
- package/dist/words.d.ts +2 -0
- package/dist/words.js +6 -0
- package/dist/words.js.map +1 -0
- package/package.json +132 -3
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
import { LitElement, type PropertyDeclarations, type PropertyValues } from 'lit';
|
|
2
|
+
import type { TanreiInputBoxSizeRegistry, TanreiInputBoxVariantRegistry } from '../../registry.js';
|
|
3
|
+
import '../button/button.js';
|
|
4
|
+
/** The three looks of the input box (`comp.input-box`): a filled box that draws no label (`stacked`), or the label floating inside a `filled` or `outlined` box. A design system may leave some out or add values. */
|
|
5
|
+
export type TanreiColorInputVariant = keyof TanreiInputBoxVariantRegistry;
|
|
6
|
+
/** The container's minimum height: the box's `medium` and `large` (`small` is a size of the box this control does not offer). A design system may add values. */
|
|
7
|
+
export type TanreiColorInputSize = Exclude<keyof TanreiInputBoxSizeRegistry, 'small'>;
|
|
8
|
+
/** `pickerrequest`'s detail: the value the input holds — a color, or the empty string. */
|
|
9
|
+
export interface TanreiColorInputPickerRequestDetail {
|
|
10
|
+
value: string;
|
|
11
|
+
}
|
|
12
|
+
/** `entryerror`'s detail: the text as the person left it, and `invalidText`, the words the input has for it (empty while the product gave none). */
|
|
13
|
+
export interface TanreiColorInputEntryErrorDetail {
|
|
14
|
+
text: string;
|
|
15
|
+
message: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The box in which people set one color: a text value they can read, type and paste, a sample of it beside the text, a
|
|
19
|
+
* button that asks for a picker and — in the looks that float one — its label inside the box. It looks and measures
|
|
20
|
+
* like a text input. It has no label row, no help and no error text of its own: put it in a `<tanrei-field>`, which
|
|
21
|
+
* names it, describes it and marks it — or use `<tanrei-color-field>`, which is the two together.
|
|
22
|
+
*
|
|
23
|
+
* Contract: specs/color-input.spec.json. Every visual value is a token: the box is drawn from
|
|
24
|
+
* `--tanrei-comp-input-box-*`, the one set every input box is drawn from (CLI-45) — the swatch has the box's icon
|
|
25
|
+
* size — and the swatch's shape and hairline from `--tanrei-comp-color-input-*`; the swatch's fill is the value itself; the picker
|
|
26
|
+
* button is a `<tanrei-button>`, drawn from Button's own tokens.
|
|
27
|
+
*
|
|
28
|
+
* ```html
|
|
29
|
+
* <!-- A row of a list of colors that names each: the box alone, named by its own label. -->
|
|
30
|
+
* <tanrei-color-input label="Primary, tone 40" value="#0f766e" picker picker-label="Choose the color of Primary, tone 40"></tanrei-color-input>
|
|
31
|
+
*
|
|
32
|
+
* <tanrei-field label="Brand color" supporting-text="Six hexadecimal digits, like #0f766e.">
|
|
33
|
+
* <tanrei-color-input name="brand" value="#0f766e" invalid-text="Enter six hexadecimal digits, like #0f766e."></tanrei-color-input>
|
|
34
|
+
* </tanrei-field>
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* `value` is a number sign and six hexadecimal digits in lowercase (`#0f766e`) — an opaque sRGB color — or the empty
|
|
38
|
+
* string for no color, and never anything else. The text is the person's: nothing typed is refused, replaced or
|
|
39
|
+
* reformatted. It is read on every edit — six hexadecimal digits in either case, with or without the number sign, the
|
|
40
|
+
* white space around them left out — and `value` is the color it reads as, or empty. `input` fires when that changes
|
|
41
|
+
* `value`. When focus leaves or Enter is pressed the input commits: a color is rewritten in the value's own form and
|
|
42
|
+
* `change` fires if the value differs from the one last committed; a text that is not a color is kept, marked as an
|
|
43
|
+
* error and reported with `entryerror` — and to the Field that frames it, which shows `invalidText` (FLD-28).
|
|
44
|
+
*
|
|
45
|
+
* With `picker`, a button at the end asks for a picker: it fires a cancelable `pickerrequest` and, unless that was
|
|
46
|
+
* cancelled, presents the browser's own color picker. A pick is an edit by the person. The input draws no picker
|
|
47
|
+
* surface of its own: a product that has one cancels the request, presents it and sets `value`.
|
|
48
|
+
*
|
|
49
|
+
* Inside a `<tanrei-field>` it takes the Field's name, description and states — required, invalid, disabled — through
|
|
50
|
+
* the connection every framed control uses (`src/primitives/field.ts`), and says what only it knows: that it draws the
|
|
51
|
+
* label itself while its look floats one, how far its value's text is inset — past the swatch — and its own refusal
|
|
52
|
+
* of a text that is not a color, with its words (CLI-43). Bare, `label` names it, and a filled or outlined input
|
|
53
|
+
* draws that label floating.
|
|
54
|
+
*
|
|
55
|
+
* It is a block as wide as its place, and exactly as tall as its box (CLI-44). It is a form-associated element: it
|
|
56
|
+
* takes `name`, submits its value, resets to the `value` attribute, is restored on navigation, follows
|
|
57
|
+
* `<fieldset disabled>` and reports `valueMissing` while its Field says it is required and `value` is empty, and
|
|
58
|
+
* `badInput` while an entry error lasts.
|
|
59
|
+
*
|
|
60
|
+
* It has no words of its own: `invalidText`, `pickerLabel` and `label` are the product's, in the product's language.
|
|
61
|
+
*
|
|
62
|
+
* @tag tanrei-color-input
|
|
63
|
+
* @csspart container - The input's box.
|
|
64
|
+
* @csspart outline - A stacked color input's inner line, or an outlined one's border.
|
|
65
|
+
* @csspart active-indicator - The line along the bottom of a filled color input.
|
|
66
|
+
* @csspart label - The label that floats in a filled or an outlined color input.
|
|
67
|
+
* @csspart requirement-label - The required asterisk after a floating label.
|
|
68
|
+
* @csspart swatch - The sample of the value: a square filled with exactly the value's color. Decorative.
|
|
69
|
+
* @csspart input - The native `<input>`: the value as text.
|
|
70
|
+
* @csspart picker-button - The picker button, a `<tanrei-button>`.
|
|
71
|
+
* @attr {string} form - The id of the form the color input belongs to, where it stands outside it: the platform's own attribute, which then wins over a form around it. The `form` property is read-only and returns the form element.
|
|
72
|
+
* @fires input - The person changed the value: an edit of the text made it a color, another color or no color, or a color was picked in the browser's picker. `value` is already the new one. Composed and bubbling. Never fired when the product sets `value`, nor for an edit that leaves `value` as it was.
|
|
73
|
+
* @fires change - The person committed a changed value: focus left the input, Enter was pressed, or the browser's picker closed. `value` is already the new one. Composed and bubbling. Never fired when the product sets `value`.
|
|
74
|
+
* @fires {CustomEvent<TanreiColorInputPickerRequestDetail>} pickerrequest - The person activated the picker button. `detail.value` is the value. Cancelable: `preventDefault()` keeps the input from presenting the browser's picker; the product then presents its own surface and sets `value`. Composed and bubbling.
|
|
75
|
+
* @fires {CustomEvent<TanreiColorInputEntryErrorDetail>} entryerror - The person committed a text that is not empty and is not a color. `detail.text` is the text as typed, `detail.message` is `invalidText` — empty where the product gave none. Composed and bubbling.
|
|
76
|
+
*/
|
|
77
|
+
export declare class TanreiColorInput extends LitElement {
|
|
78
|
+
private readonly availability;
|
|
79
|
+
static styles: import("lit").CSSResult;
|
|
80
|
+
static formAssociated: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Its documented parts, once: what an element composed around it exports (src/primitives/composed.ts). Held equal to
|
|
83
|
+
* the `@csspart` lines above by src/primitives/composed.test.ts.
|
|
84
|
+
*
|
|
85
|
+
* @internal
|
|
86
|
+
*/
|
|
87
|
+
static readonly parts: readonly string[];
|
|
88
|
+
static properties: PropertyDeclarations;
|
|
89
|
+
/** The look, as the text inputs beside it: `stacked` is a filled box that draws no label — the label of the Field that frames it stands above it; `filled` and `outlined` float the label inside the box. Use one style per form. A value the color input does not know by name is laid out as stacked. Reflected. */
|
|
90
|
+
variant: TanreiColorInputVariant;
|
|
91
|
+
/** The container's minimum height: `medium` or `large` (48 / 56 in the default system), the text input's two sizes. The hit area always meets the minimum target. Reflected. */
|
|
92
|
+
size: TanreiColorInputSize;
|
|
93
|
+
/** The color the input holds: a number sign and six hexadecimal digits in lowercase (`#0f766e`), an opaque sRGB color; or empty for no color. It is never a half-typed text: while the input holds something that is not a color, `value` is empty. A text set in capitals or without its number sign is held in the value's own form; one that is not a color is treated as empty. The `value` attribute is also the value a form reset returns to. */
|
|
94
|
+
get value(): string;
|
|
95
|
+
set value(value: string);
|
|
96
|
+
/** The value the element holds: what the product set, or the person's last edit or pick as the element took it. */
|
|
97
|
+
private held;
|
|
98
|
+
/** The native text element, once drawn, and what it held when the element last wrote to it or took from it. */
|
|
99
|
+
private nativeInput;
|
|
100
|
+
private nativeSeen;
|
|
101
|
+
/** What the browser's color input held when the element last wrote to it or took a pick from it. */
|
|
102
|
+
private pickSeen;
|
|
103
|
+
/** The name the value is submitted under in a form. Reflected. */
|
|
104
|
+
name: string;
|
|
105
|
+
/** Names the input for assistive technology where no Field frames it; a filled or outlined input also draws it, as the label that floats in its box. Inside a Field leave it empty: the Field's label names the input, and is what floats. */
|
|
106
|
+
label: string;
|
|
107
|
+
/** Does not draw the floating label of a filled or outlined input, which stays the accessible name (`label-hidden`). Inside a Field, hide the label on the Field. A stacked input draws no label, so this changes nothing there. */
|
|
108
|
+
labelHidden: boolean;
|
|
109
|
+
/** Draws the input in its error condition and exposes it as invalid. A Field sets it from its own error; set it here only where no Field frames the input. What a color means is the product's to validate; the input never sets this itself, and enters an error of its own only while the text it was left with is not a color. */
|
|
110
|
+
error: boolean;
|
|
111
|
+
/** Prevents focus, editing, the picker button and form submission. Inside a Field, disable the Field, so that its label follows. */
|
|
112
|
+
disabled: boolean;
|
|
113
|
+
/** The words for an input committed with a text that is not a color (`invalid-text`), in the product's language: given to the Field that frames the input, which shows them as its error text. While it is empty that Field shows its own `errorText`. Where no Field frames the input they are its description while the error lasts. */
|
|
114
|
+
invalidText: string;
|
|
115
|
+
/** Shows the picker button. Activated, it fires `pickerrequest` and, unless that was cancelled, presents the browser's own color picker. Reflected. */
|
|
116
|
+
picker: boolean;
|
|
117
|
+
/** The accessible name of the picker button, in the product's language (`picker-label`). Required while `picker` is set. */
|
|
118
|
+
pickerLabel: string;
|
|
119
|
+
/** The text in the input: the person's while they edit, the value in its own form otherwise (CLI-17, CLI-19). */
|
|
120
|
+
protected text: string;
|
|
121
|
+
/** CLI-20: the input was committed with a text that is not a color, and holds it still. */
|
|
122
|
+
protected entryError: boolean;
|
|
123
|
+
/** CLI-22: the input has focus, however it was gained. The picker button's focus is its own. */
|
|
124
|
+
protected focused: boolean;
|
|
125
|
+
/** Set by the platform (the element's `formDisabledCallback`): an ancestor `<fieldset disabled>`, or its own `disabled` attribute. */
|
|
126
|
+
protected formDisabled: boolean;
|
|
127
|
+
private readonly internals;
|
|
128
|
+
/** What it tells its form, said where an element composed around it hears it (src/primitives/form-says.ts). */
|
|
129
|
+
private readonly says;
|
|
130
|
+
/** The value the color input made or took from the product last: another `value` is the product's (CLI-21). */
|
|
131
|
+
private ownValue;
|
|
132
|
+
/** CLI-19: the value last committed — when the product set it, or at the last `change`. */
|
|
133
|
+
private base;
|
|
134
|
+
/** CLI-19: the person changed the text since it was last committed or written. */
|
|
135
|
+
private edited;
|
|
136
|
+
/** CLI-21: the product set a value while an input method was composing: its text is written when the composition ends, and is not the person's. */
|
|
137
|
+
private awaited;
|
|
138
|
+
/** CLI-29: the browser's picker was presented and no sign of its closing has been seen yet. */
|
|
139
|
+
private picking;
|
|
140
|
+
/** The Field's answer changed since the last update: the floating label may have other lines (CLI-15). */
|
|
141
|
+
private frameChanged;
|
|
142
|
+
/** CLI-41: sizes and variants a design system adds, and a value the active system does not have (src/primitives/axes.ts). */
|
|
143
|
+
private readonly axes;
|
|
144
|
+
/**
|
|
145
|
+
* CLI-43: the input's side of the exchange with the Field that frames it (src/primitives/field.ts). It takes the
|
|
146
|
+
* Field's name, description and states, whether the label is hidden and whether an asterisk follows it; and it says
|
|
147
|
+
* what only it knows — that it draws the label, how far its value's text is inset, its own refusal of an entry. It
|
|
148
|
+
* has an error condition of its own (CLI-9). No Field: it is drawn as a bare input.
|
|
149
|
+
*/
|
|
150
|
+
private readonly frame;
|
|
151
|
+
/** CLI-17, CLI-21: the text and the native element kept in step without breaking an input method (src/primitives/native-text.ts). */
|
|
152
|
+
private readonly native;
|
|
153
|
+
/** CLI-15: a floating label that does not fit on one line is given the room its lines take. */
|
|
154
|
+
private readonly floating;
|
|
155
|
+
/** A glyph the color input draws by name is drawn once the icon set can draw it; until then nothing stands in its place. */
|
|
156
|
+
private readonly glyphs;
|
|
157
|
+
constructor();
|
|
158
|
+
private get input();
|
|
159
|
+
private get nativePicker();
|
|
160
|
+
private get pickerButton();
|
|
161
|
+
/** CLI-31: disabled by its own `disabled`, a fieldset's, or the Field's or the field group's around it. */
|
|
162
|
+
private get inert_();
|
|
163
|
+
/** How the variant is laid out: filled and outlined by name, every other value as stacked (CLI-41). */
|
|
164
|
+
private get layout();
|
|
165
|
+
/** CLI-11: the accessible name — its own label, else the label of the Field that frames it. */
|
|
166
|
+
private get name_();
|
|
167
|
+
/** CLI-11: its Field says it is required. It has no requirement of its own. */
|
|
168
|
+
private get required_();
|
|
169
|
+
/** CLI-9: in error — its own `error`, its Field's, or an entry error while it lasts. */
|
|
170
|
+
private get inError();
|
|
171
|
+
/** CLI-15: the label floats in the box — a filled or an outlined input with a name, unless its own `labelHidden` or its Field's says to draw none. */
|
|
172
|
+
private get labelled();
|
|
173
|
+
/** CLI-20: the words of an entry error while it lasts — `invalidText`; empty where the product gave none. */
|
|
174
|
+
private get refusalText();
|
|
175
|
+
/**
|
|
176
|
+
* CLI-43: what the input says to the Field that frames it. That it draws the label while its look floats one — its
|
|
177
|
+
* name, or nothing while the label is hidden; the Field draws no label row either way. How far the value's text
|
|
178
|
+
* stands from its start edge — past the padding beside the swatch, the swatch and the gap — and the text padding it
|
|
179
|
+
* keeps at its end edge, with or without the picker button, as lengths of the box's tokens (`INSET`, in the styles).
|
|
180
|
+
* And an entry error, with its words. No count: a color has one length.
|
|
181
|
+
*/
|
|
182
|
+
private get saysToField();
|
|
183
|
+
/**
|
|
184
|
+
* CLI-11, CLI-20: the input's description — the words of an entry error while no Field frames it (a Field shows
|
|
185
|
+
* them and gives them back as its own description, FLD-28), and then the description its Field gives.
|
|
186
|
+
*/
|
|
187
|
+
private get described();
|
|
188
|
+
/** CLI-27: the Button size with the input's size name, or Button's default for a size Button does not have. */
|
|
189
|
+
private get pickerSize();
|
|
190
|
+
/** The form it belongs to, if any. */
|
|
191
|
+
get form(): HTMLFormElement | null;
|
|
192
|
+
/** The native constraint validity: `valueMissing` while its Field says the color input is required and `value` is empty, `badInput` while it holds a committed text that is not a color. */
|
|
193
|
+
get validity(): ValidityState;
|
|
194
|
+
get validationMessage(): string;
|
|
195
|
+
get willValidate(): boolean;
|
|
196
|
+
checkValidity(): boolean;
|
|
197
|
+
reportValidity(): boolean;
|
|
198
|
+
/** Moves focus to the input — never to the picker button. */
|
|
199
|
+
focus(options?: FocusOptions): void;
|
|
200
|
+
blur(): void;
|
|
201
|
+
/** Selects the text in the input. */
|
|
202
|
+
select(): void;
|
|
203
|
+
formResetCallback(): void;
|
|
204
|
+
formStateRestoreCallback(state: string | File | FormData | null): void;
|
|
205
|
+
/**
|
|
206
|
+
* The platform's word on whether the element is disabled: by a `<fieldset disabled>` around it, and by its own
|
|
207
|
+
* `disabled` attribute too. Lit writes that attribute in the middle of an update, where a change of state would not
|
|
208
|
+
* be drawn: it is taken once that update is over, so an input whose `disabled` was unset is drawn enabled again.
|
|
209
|
+
*/
|
|
210
|
+
formDisabledCallback(disabled: boolean): void;
|
|
211
|
+
/**
|
|
212
|
+
* The form's view: the value — a color in its own form, or the empty string — left out while disabled (CLI-31); a
|
|
213
|
+
* missing value while its Field says it is required (CLI-11), and a bad input while an entry error lasts (CLI-20).
|
|
214
|
+
* Said when the color input is drawn, and at once when its value changes: a listener of `input` or `change`, and the
|
|
215
|
+
* form Enter submits, already see the new value. The message of an entry error is `invalidText`, else what its Field
|
|
216
|
+
* shows for it, else the browser's own words; of a missing value, the browser's own words. Said through `FormSays`,
|
|
217
|
+
* so that an element composed around the input repeats it (src/primitives/form-says.ts).
|
|
218
|
+
*/
|
|
219
|
+
private syncForm;
|
|
220
|
+
/** CLI-21: the product gave a value: it is shown in the input and the swatch, an entry error ends, and nothing is said. */
|
|
221
|
+
private took;
|
|
222
|
+
/** The color input makes `value` the value itself, and the form sees it at once. */
|
|
223
|
+
private keep;
|
|
224
|
+
/**
|
|
225
|
+
* CLI-17, CLI-29: `input`, once, when an edit or a pick changed the value; `value` is already the new one. The event
|
|
226
|
+
* is the browser's own, of the native element the person edited or picked in, where that event leaves the shadow
|
|
227
|
+
* root by itself — it is composed and bubbles, and outside its target is this element. It is then left to pass, and
|
|
228
|
+
* nothing is dispatched in its place: a second event would be heard twice by a capturing listener on an ancestor.
|
|
229
|
+
* Where it would not leave — a pick taken as the picker closes, from its `change` — the element dispatches one.
|
|
230
|
+
*/
|
|
231
|
+
private said;
|
|
232
|
+
/** CLI-19, CLI-29: `change`, once, while the value differs from the one last committed. `value` is already the new one. */
|
|
233
|
+
private changed;
|
|
234
|
+
/**
|
|
235
|
+
* CLI-17, CLI-18, CLI-20: the person changed the text. Nothing is rewritten: the text is theirs. The whole text is
|
|
236
|
+
* read, and `value` becomes the color it reads as, or empty. An entry error ends with the edit. Returns whether the
|
|
237
|
+
* edit changed `value`: `input` is heard for such an edit, and for no other.
|
|
238
|
+
*/
|
|
239
|
+
private typed;
|
|
240
|
+
private onInput;
|
|
241
|
+
/**
|
|
242
|
+
* CLI-19, CLI-20: commits the text. A color is rewritten in the value's own form — the number sign added, the digits
|
|
243
|
+
* in lowercase, the white space gone; a text of white space alone is no color and is cleared; a text that is not
|
|
244
|
+
* empty and not a color is kept as typed and enters the entry error (`entryerror`, with `invalidText`). Then
|
|
245
|
+
* `change`, once, while the value differs from the one last committed. A text the person did not change since the
|
|
246
|
+
* last commit commits nothing.
|
|
247
|
+
*/
|
|
248
|
+
private commit;
|
|
249
|
+
/**
|
|
250
|
+
* CLI-19: the action key commits and, inside a form, then asks for its submission, as a native input does — its own
|
|
251
|
+
* form, or the form of the element composed around it (src/primitives/default-button.ts, `formOf`). While an input
|
|
252
|
+
* method composes, every key is its own (CLI-17).
|
|
253
|
+
*/
|
|
254
|
+
private onKeyDown;
|
|
255
|
+
private onFocus;
|
|
256
|
+
/** CLI-19: the input lost focus: the text is committed. */
|
|
257
|
+
private onBlur;
|
|
258
|
+
/**
|
|
259
|
+
* CLI-28: the picker button asks for a picker — `pickerrequest`, once, with the value — and then, unless the product
|
|
260
|
+
* cancelled the request, presents the browser's own color picker showing the value, or black while the input holds
|
|
261
|
+
* none, inside the same user activation. Where the browser has none to present, nothing is presented, nothing
|
|
262
|
+
* changes and no focus moves.
|
|
263
|
+
*/
|
|
264
|
+
private onPickerClick;
|
|
265
|
+
/**
|
|
266
|
+
* CLI-29: a pick in the browser's picker is an edit by the person: the color is written into the input in the value's
|
|
267
|
+
* own form, the swatch drawn in it, an entry error ended, and `input` fired when it changed the value — for every
|
|
268
|
+
* pick the browser reports, a drag across the picker included.
|
|
269
|
+
*/
|
|
270
|
+
private onPick;
|
|
271
|
+
/** CLI-29: the browser's picker closed: its `change`, or — where a browser gives none — the page's next focus. */
|
|
272
|
+
private onPickerChange;
|
|
273
|
+
/**
|
|
274
|
+
* Where a browser gives no sign that its picker closed (nothing was picked, or it tells no one), the next focus of
|
|
275
|
+
* the page counts as one: the window's, when a picker that is a window of its own goes, or any element's.
|
|
276
|
+
*/
|
|
277
|
+
private readonly onPageFocus;
|
|
278
|
+
private unwatchPage;
|
|
279
|
+
/**
|
|
280
|
+
* CLI-29: when the picker closes, `change` once while the value differs from the one last committed, and focus on
|
|
281
|
+
* the picker button, as a popover returns focus to its opener. Focus is never taken from where the person has put it
|
|
282
|
+
* since: the button takes it only while nothing else in the page has it, or what has it is this input's own native
|
|
283
|
+
* picker.
|
|
284
|
+
*/
|
|
285
|
+
private pickerClosed;
|
|
286
|
+
/**
|
|
287
|
+
* CLI-24: a press on the container's padding, on the swatch or on a floating label moves focus to the input and does
|
|
288
|
+
* nothing else. A press in the input places the caret; the picker button keeps its own press.
|
|
289
|
+
*/
|
|
290
|
+
private onContainerPress;
|
|
291
|
+
disconnectedCallback(): void;
|
|
292
|
+
protected willUpdate(changed: PropertyValues): void;
|
|
293
|
+
protected updated(changed: PropertyValues): void;
|
|
294
|
+
/** What a debug build tells the developer; the color input still renders. */
|
|
295
|
+
private reports;
|
|
296
|
+
protected render(): import("lit").TemplateResult<1>;
|
|
297
|
+
}
|
|
298
|
+
declare global {
|
|
299
|
+
interface HTMLElementTagNameMap {
|
|
300
|
+
'tanrei-color-input': TanreiColorInput;
|
|
301
|
+
}
|
|
302
|
+
}
|