@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,315 @@
|
|
|
1
|
+
import { type PropertyDeclarations, type PropertyValues } from 'lit';
|
|
2
|
+
import { ComposedElement } from '../../primitives/composed.js';
|
|
3
|
+
import { type TanreiFieldRequiredMark, type TanreiFieldRequirement } from '../field/field.js';
|
|
4
|
+
import { type TanreiTextInputActionDetail, type TanreiTextInputSize, type TanreiTextInputType, type TanreiTextInputVariant } from '../text-input/text-input.js';
|
|
5
|
+
export type { TanreiFieldRequiredMark, TanreiFieldRequirement, TanreiTextInputActionDetail, TanreiTextInputSize, TanreiTextInputType, TanreiTextInputVariant };
|
|
6
|
+
/** Why a candidate entry was refused: the product's check, the same text already in the list, or a full list. */
|
|
7
|
+
export type TanreiChipFieldRejectReason = 'invalid' | 'duplicate' | 'limit';
|
|
8
|
+
/** What `change` carries: the new list, and what the person's act added to it and took from it. */
|
|
9
|
+
export interface TanreiChipFieldChangeDetail {
|
|
10
|
+
value: string[];
|
|
11
|
+
added: string[];
|
|
12
|
+
removed: string[];
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* What `check` carries: the candidate's text and the entries so far. `event.preventDefault()` refuses the candidate;
|
|
16
|
+
* `reason`, set by the listener, gives the words shown for it. Read when the event returns, never later.
|
|
17
|
+
*/
|
|
18
|
+
export interface TanreiChipFieldCheckDetail {
|
|
19
|
+
text: string;
|
|
20
|
+
values: string[];
|
|
21
|
+
reason?: string;
|
|
22
|
+
}
|
|
23
|
+
/** What `reject` carries: the refused text, why, and the words shown for it (empty where nobody gave any). */
|
|
24
|
+
export interface TanreiChipFieldRejectDetail {
|
|
25
|
+
text: string;
|
|
26
|
+
reason: TanreiChipFieldRejectReason;
|
|
27
|
+
message: string;
|
|
28
|
+
}
|
|
29
|
+
interface Refused {
|
|
30
|
+
text: string;
|
|
31
|
+
reason: TanreiChipFieldRejectReason;
|
|
32
|
+
message: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Collects a list of short texts — e-mail addresses, telephone numbers, keywords — typed one after another in one
|
|
36
|
+
* field. Built from a Field (`<tanrei-field>`), the Text input it frames (`<tanrei-text-input>`) and one Chip
|
|
37
|
+
* (`<tanrei-chip>`) for each entry, standing in the Text input's box before the typing part: each text the product's
|
|
38
|
+
* check accepts becomes a chip that can be removed or taken back, and the list is the field's one value.
|
|
39
|
+
*
|
|
40
|
+
* Contract: specs/chip-field.spec.json. `<tanrei-chip-field name="to" label="Recipients" type="email"
|
|
41
|
+
* remove-label="Remove {entry}"></tanrei-chip-field>`, with `field.separators = [',', ';', ' ']` (or the attribute
|
|
42
|
+
* `separators='[",", ";", " "]'`).
|
|
43
|
+
*
|
|
44
|
+
* Composed (`src/primitives/composed.ts`): its shadow root holds the members' own elements, so it draws
|
|
45
|
+
* nothing of its own and has no token — every `--tanrei-comp-field-*`, `--tanrei-comp-input-box-*`,
|
|
46
|
+
* `--tanrei-comp-text-input-*` and `--tanrei-comp-chip-*` value reaches the members by inheritance, and one chip field is set apart by setting such a
|
|
47
|
+
* property on this element. One level down, the same picture by hand: `<tanrei-field label="Recipients">
|
|
48
|
+
* <tanrei-text-input type="email"><tanrei-chip slot="entries" kind="input" size="small" label="ada@example.com"
|
|
49
|
+
* remove-label="Remove ada@example.com"></tanrei-chip></tanrei-text-input></tanrei-field>`. What the chip field adds
|
|
50
|
+
* to that: making entries, the keys among them, the one Tab stop, the announcements, and the list as one form value.
|
|
51
|
+
*
|
|
52
|
+
* **An entry is made** of the typed text by Enter, by a separator the product lists (`separators`; none by default),
|
|
53
|
+
* by focus leaving the field, and from pasted text that holds a separator or a line break. Each candidate is trimmed,
|
|
54
|
+
* refused where the list holds the same text (`duplicate`) or is full (`maxEntries`: `limit`), and otherwise asked of
|
|
55
|
+
* the product with `check`: `event.preventDefault()` refuses it (`invalid`), and `event.detail.reason = '…'` gives the
|
|
56
|
+
* words. The chip field knows no grammar: what an e-mail address is, is the product's check. A refused text stays in
|
|
57
|
+
* the typing part, and while it does the field is in error with the words of the refusal — `error` and `errorText`
|
|
58
|
+
* themselves do not change.
|
|
59
|
+
*
|
|
60
|
+
* **Keys.** The typing part is the one Tab stop. Backspace, or the arrow that points to the line's start, at the start
|
|
61
|
+
* of the text moves focus to the last entry; there the arrows, Home and End move among the entries, Backspace and
|
|
62
|
+
* Delete remove the one that has focus, Enter and Space take it back into the typing part to be changed, Escape and
|
|
63
|
+
* Tab return to the typing part.
|
|
64
|
+
*
|
|
65
|
+
* `value` is an array of strings (assign a new array to change it); the `value` attribute is read once, as a JSON
|
|
66
|
+
* array. `inputValue` is the text being typed. Form-associated: it submits one value per entry under `name` — none
|
|
67
|
+
* while the list is empty, never the typed text —, resets to the list it was first given, is restored on navigation,
|
|
68
|
+
* follows a disabled `<fieldset>`, and reports a missing value while `requirement` is `required` and the list is empty.
|
|
69
|
+
*
|
|
70
|
+
* The element is not focusable itself and has no role: `focus()` goes to the typing part, and its name is `label`.
|
|
71
|
+
*
|
|
72
|
+
* @tag tanrei-chip-field
|
|
73
|
+
* @slot label-icon - => tanrei-field
|
|
74
|
+
* @csspart field - The frame: the `<tanrei-field>` it is built from.
|
|
75
|
+
* @csspart text-input - The control: the `<tanrei-text-input>` it is built from.
|
|
76
|
+
* @csspart chip - One entry: a `<tanrei-chip>` it is built from.
|
|
77
|
+
* @exportparts tanrei-field label: field-label, label, requirement-label: field-requirement-label, requirement-label, -counter, -value-text
|
|
78
|
+
* @exportparts tanrei-text-input label: text-input-label, label, requirement-label: text-input-requirement-label, requirement-label, -segment, -prefix, -suffix, -leading-icon, -trailing-icon, -picker-button, -resize-grip
|
|
79
|
+
* @exportparts tanrei-chip container: entry-container, label: entry-label, remove: entry-remove, -icon, -check, -avatar
|
|
80
|
+
* @attr {string} form - The id of the form the chip field 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.
|
|
81
|
+
* @fires {CustomEvent<TanreiChipFieldChangeDetail>} change - The list changed by the person: an entry was made, several were made from pasted text, one was removed, or one was taken back to be changed. `detail.value` (and the element's `value`) is the new list, `detail.added` and `detail.removed` what the act added and took away. Never fired when the product sets `value`, nor for typed text.
|
|
82
|
+
* @fires input - => tanrei-text-input
|
|
83
|
+
* @fires {CustomEvent<TanreiChipFieldCheckDetail>} check - Asked once for each candidate entry, before it is made: `detail.text` and `detail.values`, the entries so far. Cancelable: `preventDefault()` refuses the candidate, and `detail.reason`, set by the listener, gives the words shown. Read when the event returns; an answer given later is not read.
|
|
84
|
+
* @fires {CustomEvent<TanreiChipFieldRejectDetail>} reject - A candidate entry was refused: `detail.text`, `detail.reason` (`invalid`, `duplicate` or `limit`) and `detail.message`, the words shown. Once for each refused candidate.
|
|
85
|
+
* @fires action - => tanrei-text-input
|
|
86
|
+
*/
|
|
87
|
+
export declare class TanreiChipField extends ComposedElement {
|
|
88
|
+
/** CHF-24: the one control the form meets. Its members stand in its shadow root, outside every form. */
|
|
89
|
+
static formAssociated: boolean;
|
|
90
|
+
static styles: import("lit").CSSResult[];
|
|
91
|
+
/**
|
|
92
|
+
* Its parts, once: the three members and what each exports — a name two export, once.
|
|
93
|
+
*
|
|
94
|
+
* @internal
|
|
95
|
+
*/
|
|
96
|
+
static readonly parts: readonly string[];
|
|
97
|
+
static properties: PropertyDeclarations;
|
|
98
|
+
/**
|
|
99
|
+
* The entries, in the order they were made: the one value the chip field holds. Each is a text; none is empty. The
|
|
100
|
+
* chip field writes it as the person makes, removes and takes back entries, and fires `change`. What the product
|
|
101
|
+
* sets is shown as given and is not checked — assign a new array — and fires nothing; an entry that is empty or only
|
|
102
|
+
* white space is left out. The `value` attribute is read once, as a JSON array of strings, and is what a form reset
|
|
103
|
+
* returns to.
|
|
104
|
+
*/
|
|
105
|
+
get value(): string[];
|
|
106
|
+
set value(value: string[]);
|
|
107
|
+
/** The list the element holds: what the product set, or what the person made of it. */
|
|
108
|
+
private list;
|
|
109
|
+
/** @from tanrei-text-input.value */
|
|
110
|
+
get inputValue(): string;
|
|
111
|
+
set inputValue(value: string);
|
|
112
|
+
/** W5: the text last set on the element, while the Text input has not taken it. */
|
|
113
|
+
private typed;
|
|
114
|
+
/**
|
|
115
|
+
* The texts that end an entry when they are typed or found in what is pasted, as the product names them for what
|
|
116
|
+
* its entries are: `[',', ';', ' ']` for e-mail addresses, `[',']` for keywords that may hold a space. The
|
|
117
|
+
* attribute is read as a JSON array. Empty, the default: Enter and a line break alone make an entry — a name such as
|
|
118
|
+
* "Lovelace, Ada" must not be cut in two by a default. A line break always ends an entry.
|
|
119
|
+
*/
|
|
120
|
+
separators: string[];
|
|
121
|
+
/** The most entries the list may hold (`max-entries`); 0 is no limit. An entry that would exceed it is refused with the reason `limit`; the typing part stays usable. It never cuts a list the product sets. */
|
|
122
|
+
maxEntries: number;
|
|
123
|
+
/** @from tanrei-text-input.variant */
|
|
124
|
+
variant: TanreiTextInputVariant;
|
|
125
|
+
/** @from tanrei-text-input.size */
|
|
126
|
+
size: TanreiTextInputSize;
|
|
127
|
+
/** @from tanrei-text-input.type */
|
|
128
|
+
type: TanreiTextInputType;
|
|
129
|
+
/** @from tanrei-text-input.placeholder */
|
|
130
|
+
placeholder: string;
|
|
131
|
+
/** @from tanrei-text-input.readOnly */
|
|
132
|
+
readOnly: boolean;
|
|
133
|
+
/** @from tanrei-text-input.autocomplete */
|
|
134
|
+
autocomplete: string;
|
|
135
|
+
/** @from tanrei-field.label */
|
|
136
|
+
label: string;
|
|
137
|
+
/** @from tanrei-field.labelHidden */
|
|
138
|
+
labelHidden: boolean;
|
|
139
|
+
/** @from tanrei-field.supportingText */
|
|
140
|
+
supportingText: string;
|
|
141
|
+
/** @from tanrei-field.errorText */
|
|
142
|
+
errorText: string;
|
|
143
|
+
/** @from tanrei-field.error */
|
|
144
|
+
error: boolean;
|
|
145
|
+
/** @from tanrei-field.disabled */
|
|
146
|
+
disabled: boolean;
|
|
147
|
+
/** @from tanrei-field.requirement */
|
|
148
|
+
requirement: TanreiFieldRequirement;
|
|
149
|
+
/** @from tanrei-field.requiredMark */
|
|
150
|
+
requiredMark: TanreiFieldRequiredMark;
|
|
151
|
+
/** @from tanrei-field.requiredText */
|
|
152
|
+
requiredText: string;
|
|
153
|
+
/** @from tanrei-field.optionalText */
|
|
154
|
+
optionalText: string;
|
|
155
|
+
/** The error text shown while an entry was refused by the product's check and the check gave no reason of its own (`invalid-text`). This field's own: it reads no word of the product's. Empty, `errorText` is shown. */
|
|
156
|
+
invalidText: string;
|
|
157
|
+
/** The error text shown while an entry was refused because the list already holds the same text (`duplicate-text`): this instance's words, else the product's (`setWords({ duplicateEntryText })`); with neither, `errorText` is shown. */
|
|
158
|
+
duplicateText: string;
|
|
159
|
+
/** The error text shown while an entry was refused because the list holds `maxEntries` already (`limit-text`): this instance's words, else the product's (`setWords({ entryLimitText })`); with neither, `errorText` is shown. */
|
|
160
|
+
limitText: string;
|
|
161
|
+
/** The accessible name of each entry's remove action (`remove-label`): the whole name in your language, with the place `{entry}` that the chip field fills with that entry's text. This instance's words, else the product's (`setWords({ entryRemoveLabel })`); with neither the action is drawn, works and has no name. */
|
|
162
|
+
removeLabel: string;
|
|
163
|
+
/** The sentence assistive technology is told when one entry is made (`added-text`), with the place `{entry}`: this instance's words, else the product's (`setWords({ entryAddedText })`); with neither nothing is said. */
|
|
164
|
+
addedText: string;
|
|
165
|
+
/** The sentence assistive technology is told when several entries are made at once (`added-count-text`), with the place `{count}`: this instance's words, else the product's (`setWords({ entriesAddedText })`); with neither, `addedText` is said for the last of them. */
|
|
166
|
+
addedCountText: string;
|
|
167
|
+
/** The sentence assistive technology is told when an entry is removed (`removed-text`), with the place `{entry}`: this instance's words, else the product's (`setWords({ entryRemovedText })`); with neither nothing is said. */
|
|
168
|
+
removedText: string;
|
|
169
|
+
/** Web only: the name each entry is submitted under. */
|
|
170
|
+
name: string;
|
|
171
|
+
/** CHF-6: the entry error while it lasts — the first refused candidate of the last offer, and the words shown for it. */
|
|
172
|
+
protected refusal: Refused | null;
|
|
173
|
+
/** W6, item 6: a disabled `<fieldset>` around the element, or its own `disabled` attribute, as the platform says it. */
|
|
174
|
+
protected formDisabled: boolean;
|
|
175
|
+
protected readonly hostNameSentence = "CHF-21";
|
|
176
|
+
private readonly internals;
|
|
177
|
+
/** CHF-23: the product's words, read where the instance gives none (src/primitives/words.ts). */
|
|
178
|
+
private readonly words;
|
|
179
|
+
/** The `value` attribute has been read: it is read once. */
|
|
180
|
+
private attributeRead;
|
|
181
|
+
/** CHF-24: the list it was first given, where no `value` attribute says it. */
|
|
182
|
+
private first;
|
|
183
|
+
/** CHF-7: an input method is composing in the typing part. */
|
|
184
|
+
private composing;
|
|
185
|
+
/** CHF-9: the text of the typing part as the chip field last read or wrote it: what an edit is compared with. */
|
|
186
|
+
private seen;
|
|
187
|
+
/** CHF-14: the key that is being pressed on an entry, while its Chip answers it. */
|
|
188
|
+
private key;
|
|
189
|
+
/** CHF-6: the caret is put at the end of the typing part's text once it is drawn. */
|
|
190
|
+
private caretToEnd;
|
|
191
|
+
constructor();
|
|
192
|
+
private get input();
|
|
193
|
+
/** The typing part itself: the Text input's native element, by its documented part. */
|
|
194
|
+
private get native();
|
|
195
|
+
private get chips();
|
|
196
|
+
private get focusedChip();
|
|
197
|
+
protected get control(): HTMLElement | null;
|
|
198
|
+
/** CHF-19: its own `disabled`, or a disabled fieldset's. */
|
|
199
|
+
private get inert_();
|
|
200
|
+
/** CHF-10: `maxEntries` as a whole number of 0 or more; anything else is no limit. */
|
|
201
|
+
private get limit();
|
|
202
|
+
/** CHF-9: the separators the product lists, the longest first; an empty one is none. */
|
|
203
|
+
private get cuts();
|
|
204
|
+
/** CHF-9: where a text is cut — at every line break, and at every separator. */
|
|
205
|
+
private get cutter();
|
|
206
|
+
private get rtl();
|
|
207
|
+
/** The form it belongs to, if any. */
|
|
208
|
+
get form(): HTMLFormElement | null;
|
|
209
|
+
get validity(): ValidityState;
|
|
210
|
+
get validationMessage(): string;
|
|
211
|
+
get willValidate(): boolean;
|
|
212
|
+
checkValidity(): boolean;
|
|
213
|
+
reportValidity(): boolean;
|
|
214
|
+
/** CHF-24: the `value` attribute is read once — for markup — and is what a reset returns to. */
|
|
215
|
+
attributeChangedCallback(name: string, old: string | null, value: string | null): void;
|
|
216
|
+
/** CHF-24: the list it was first given, an empty typing part and no entry error. */
|
|
217
|
+
formResetCallback(): void;
|
|
218
|
+
/** CHF-24: the list the platform kept for it. */
|
|
219
|
+
formStateRestoreCallback(state: File | string | FormData | null): void;
|
|
220
|
+
formDisabledCallback(disabled: boolean): void;
|
|
221
|
+
/**
|
|
222
|
+
* CHF-24: one value for each entry under its name, in order — none while the list is empty or the field disabled,
|
|
223
|
+
* and never the typed text. CHF-25: an empty required list is a missing value, said where the person types.
|
|
224
|
+
*/
|
|
225
|
+
private tellForm;
|
|
226
|
+
/** CHF-6: the words shown for a refusal — the check's own; the reason's; `errorText`. */
|
|
227
|
+
private wordsOf;
|
|
228
|
+
/**
|
|
229
|
+
* CHF-5: decides each candidate in order, against the list as it grows — the same text, the limit, then the
|
|
230
|
+
* product's check, answered before the event returns. Changes nothing: the caller applies what was decided.
|
|
231
|
+
*/
|
|
232
|
+
private decide;
|
|
233
|
+
/**
|
|
234
|
+
* CHF-4, CHF-8: reads `text` as a row of candidates and offers each. `tail`: the piece after the last separator
|
|
235
|
+
* stays typed text (it was typed) — otherwise it is offered with the others. The accepted become entries, with one
|
|
236
|
+
* `change` and one announcement; the refused stay in the typing part, joined, under the entry error of the first,
|
|
237
|
+
* with one `reject` each. Returns whether nothing was refused.
|
|
238
|
+
*/
|
|
239
|
+
private offer;
|
|
240
|
+
/** The typing part's own events arrive with the Text input as their target; an entry's with its Chip. */
|
|
241
|
+
private fromTyping;
|
|
242
|
+
/**
|
|
243
|
+
* CHF-4: the action key on text makes an entry — before the Text input hears the key, so that it emits no `action`
|
|
244
|
+
* and submits no form. On an empty typing part the key is the Text input's (CHF-16), and so it is while an input
|
|
245
|
+
* method composes (CHF-7) and in a read-only field (CHF-20).
|
|
246
|
+
*/
|
|
247
|
+
private readonly onTypingKeyFirst;
|
|
248
|
+
/**
|
|
249
|
+
* CHF-12: at the start of the text, with nothing selected, Backspace or the arrow that points to where the line
|
|
250
|
+
* starts moves focus to the last entry and removes nothing. Never for the repeats of a held key, and never while
|
|
251
|
+
* the list is empty.
|
|
252
|
+
*/
|
|
253
|
+
private onTypingKey;
|
|
254
|
+
/**
|
|
255
|
+
* CHF-8: text that is pasted or dropped is read before the single line of the typing part loses its line breaks.
|
|
256
|
+
* Where it holds a line break or a separator, it is read with the text already there as a row of candidates, each
|
|
257
|
+
* offered; text that holds neither is the Text input's own to take.
|
|
258
|
+
*/
|
|
259
|
+
private onBeforeInput;
|
|
260
|
+
/**
|
|
261
|
+
* CHF-9: a separator that came to stand in the typing part — by a key, a touch keyboard, a committed composition,
|
|
262
|
+
* dictation, or what the platform filled in — is found in the text, in what the edit added, never by the key. The
|
|
263
|
+
* text before it is offered and the text after it stays typed; filled-in text is offered whole (CHF-8). CHF-6: an
|
|
264
|
+
* edit of the text ends the entry error.
|
|
265
|
+
*/
|
|
266
|
+
private onInput;
|
|
267
|
+
private onCompositionStart;
|
|
268
|
+
private onCompositionEnd;
|
|
269
|
+
/**
|
|
270
|
+
* CHF-4: focus left the chip field for another part of the product: what was typed is offered. Not when the window
|
|
271
|
+
* itself lost focus, and never bringing focus back.
|
|
272
|
+
*/
|
|
273
|
+
private onLeave;
|
|
274
|
+
/** CHF-16: the Text input's own `change` — of its text — is not the chip field's, whose `change` is of the list. */
|
|
275
|
+
private onMemberEvent;
|
|
276
|
+
private readonly onEntryKeyFirst;
|
|
277
|
+
/** CHF-13: the keys among the entries. Each arrow moves the way it points; nothing is activated or removed here. */
|
|
278
|
+
private onEntryKey;
|
|
279
|
+
/** Focus to the typing part; `caret` puts the caret at the start of its text (CHF-13) — otherwise where it was. */
|
|
280
|
+
private focusTyping;
|
|
281
|
+
private placeCaret;
|
|
282
|
+
/**
|
|
283
|
+
* CHF-14: an entry's Chip asked for its removal (CHP-22 leaves the removing and the focus to its owner). Focus goes
|
|
284
|
+
* first, while the chip is still there: after Backspace to the entry before, or the one after where it was the
|
|
285
|
+
* first; after Delete or the remove action to the entry after; to the typing part where there is none.
|
|
286
|
+
*/
|
|
287
|
+
private onEntryRemove;
|
|
288
|
+
/**
|
|
289
|
+
* CHF-15: the Chip itself was activated — the entry is taken back to be changed. What is typed is offered first; if
|
|
290
|
+
* it is refused nothing more happens. Then the entry leaves the list and its text stands in the typing part, with
|
|
291
|
+
* focus and the caret at its end, and `change` is fired once.
|
|
292
|
+
*/
|
|
293
|
+
private onEntryClick;
|
|
294
|
+
private announceAdded;
|
|
295
|
+
/**
|
|
296
|
+
* CHF-22: one sentence of the product's in the live region, in place of what it held. With no sentence nothing is said.
|
|
297
|
+
* CHF-23: another text between braces and a brace that opens or closes nothing are said as written, and reported.
|
|
298
|
+
*/
|
|
299
|
+
private announce;
|
|
300
|
+
/** CHF-23: reports what of a sentence is not a place of its word, and a brace that opens or closes nothing. */
|
|
301
|
+
private reportWord;
|
|
302
|
+
/**
|
|
303
|
+
* CHF-2, CHF-23: the name of one entry's remove action — the product's sentence with its place filled. A plain
|
|
304
|
+
* string: nothing is added to a name for the entry's direction.
|
|
305
|
+
*/
|
|
306
|
+
private removeName;
|
|
307
|
+
protected firstUpdated(): void;
|
|
308
|
+
protected updated(changed: PropertyValues): void;
|
|
309
|
+
protected render(): import("lit").TemplateResult<1>;
|
|
310
|
+
}
|
|
311
|
+
declare global {
|
|
312
|
+
interface HTMLElementTagNameMap {
|
|
313
|
+
'tanrei-chip-field': TanreiChipField;
|
|
314
|
+
}
|
|
315
|
+
}
|