@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,607 @@
|
|
|
1
|
+
import { LitElement, html, nothing } from 'lit';
|
|
2
|
+
import { classMap } from 'lit/directives/class-map.js';
|
|
3
|
+
import { hiddenHost } from '../../primitives/hidden.js';
|
|
4
|
+
import { AvailabilityController, GlyphDrawnController, PressController, SystemWatchController, compChoice, modalLayer, report, styleQueries, syncFocusStyle, WordsController } from '../../primitives/index.js';
|
|
5
|
+
import { INVERSE, INVERSE_PROPERTY, INVERSE_TOKEN, STATUSES, hostStyles, styles } from './snackbar.styles.js';
|
|
6
|
+
const DURATIONS = ['auto', 'short', 'long', 'indefinite'];
|
|
7
|
+
/** SNK-21: each status form's glyph from the system's icon set. */
|
|
8
|
+
const GLYPHS = { info: 'info', warning: 'warning', error: 'error', success: 'check_circle' };
|
|
9
|
+
/**
|
|
10
|
+
* SNK-30: `inverse` is true, false or null, and its attribute says which: absent is null, present (empty, `true` or
|
|
11
|
+
* anything else) is true, and `inverse="false"` is false — the one way to refuse a system whose choice is on.
|
|
12
|
+
*/
|
|
13
|
+
const inverseConverter = {
|
|
14
|
+
fromAttribute: (value) => (value === null ? null : value.trim().toLowerCase() !== 'false'),
|
|
15
|
+
toAttribute: (value) => (value === true ? '' : value === false ? 'false' : null),
|
|
16
|
+
};
|
|
17
|
+
/** How many lines an element of text takes. */
|
|
18
|
+
const lines = (el) => {
|
|
19
|
+
if (!el)
|
|
20
|
+
return 0;
|
|
21
|
+
const line = Number.parseFloat(getComputedStyle(el).lineHeight) || 0;
|
|
22
|
+
return line ? Math.round(el.getBoundingClientRect().height / line) : 1;
|
|
23
|
+
};
|
|
24
|
+
/** Whether a clamped element of text is cut. */
|
|
25
|
+
const cut = (el) => !!el && el.scrollHeight > el.clientHeight + 0.5;
|
|
26
|
+
/**
|
|
27
|
+
* Tells a person briefly, at the bottom edge of the screen, what the app just did or what happened (neutrally, or as
|
|
28
|
+
* information, a warning, an error or a success), with at most one action, without taking focus or interrupting their
|
|
29
|
+
* work.
|
|
30
|
+
*
|
|
31
|
+
* Contract: specs/snackbar.spec.json. Shown by a `<tanrei-snackbar-host>` (`host.show({ message, action })`), which
|
|
32
|
+
* queues, places, times, announces and closes it. Drawn outside a host (a documentation page, a test) it is drawn in
|
|
33
|
+
* place, at rest: no timeout, queue, entrance or announcement (SNK-19); it still fires `action`, `dismiss` and
|
|
34
|
+
* `expandedchange`.
|
|
35
|
+
*
|
|
36
|
+
* It is drawn on a raised surface of the scheme or, `inverse`, as a bar of the opposite scheme; left unset, the system
|
|
37
|
+
* chooses (`--tanrei-comp-snackbar-container-inverse`, off in the default system). That and its `status` make its form,
|
|
38
|
+
* one of ten, and the form changes colors only (SNK-30).
|
|
39
|
+
*
|
|
40
|
+
* The action, the expand button and the close button are the snackbar's own controls, drawn from
|
|
41
|
+
* `--tanrei-comp-snackbar-action-*` and `-close-*` tokens per state and form; the bar from
|
|
42
|
+
* `--tanrei-comp-snackbar-container-*`, or its form's `-<status>-*`, `-inverse-*` or `-inverse-<status>-*`. The keyboard
|
|
43
|
+
* focus indicator's outer stroke is the form's `-focus-ring-color` (SNK-3). The content is aligned to the top of the bar
|
|
44
|
+
* (SNK-29).
|
|
45
|
+
*
|
|
46
|
+
* `title` is the `headline` property and attribute, because HTML's global `title` would show a tooltip over the bar.
|
|
47
|
+
*
|
|
48
|
+
* @tag tanrei-snackbar
|
|
49
|
+
* @csspart container - The bar: its color, corners, elevation and padding.
|
|
50
|
+
* @csspart icon - The status glyph, in a status form.
|
|
51
|
+
* @csspart text - The title and the message; it scrolls while expanded and taller than the bar may be.
|
|
52
|
+
* @csspart title - The title.
|
|
53
|
+
* @csspart supporting-text - The message.
|
|
54
|
+
* @csspart action - The action button.
|
|
55
|
+
* @csspart expand - The expand button, while the text is longer than its collapsed limit.
|
|
56
|
+
* @csspart close - The close button.
|
|
57
|
+
* @fires action - The action was activated; the snackbar closes.
|
|
58
|
+
* @fires {CustomEvent<TanreiSnackbarDismissDetail>} dismiss - The snackbar closed without its action: `detail.reason` is `close`, `escape`, `timeout` or `host`.
|
|
59
|
+
* @fires {CustomEvent<TanreiSnackbarExpandedChangeDetail>} expandedchange - The person expanded or collapsed the text with the expand button: `detail.expanded` is the new value. Not fired when the product sets `expanded`.
|
|
60
|
+
*/
|
|
61
|
+
export class TanreiSnackbar extends LitElement {
|
|
62
|
+
static { this.styles = [styles, hiddenHost]; }
|
|
63
|
+
static { this.properties = {
|
|
64
|
+
message: { type: String },
|
|
65
|
+
headline: { type: String },
|
|
66
|
+
action: { type: String },
|
|
67
|
+
status: { type: String, reflect: true },
|
|
68
|
+
statusLabel: { type: String, attribute: 'status-label' },
|
|
69
|
+
inverse: { reflect: true, converter: inverseConverter },
|
|
70
|
+
closable: { type: Boolean, reflect: true },
|
|
71
|
+
closeLabel: { type: String, attribute: 'close-label' },
|
|
72
|
+
expanded: { type: Boolean, reflect: true },
|
|
73
|
+
expandLabel: { type: String, attribute: 'expand-label' },
|
|
74
|
+
duration: { type: String, reflect: true },
|
|
75
|
+
stacked: { state: true },
|
|
76
|
+
expandable: { state: true },
|
|
77
|
+
scrolls: { state: true },
|
|
78
|
+
}; }
|
|
79
|
+
constructor() {
|
|
80
|
+
super();
|
|
81
|
+
this.availability = new AvailabilityController(this, 'snackbar');
|
|
82
|
+
/** The product's words, read where the instance gives none (src/primitives/words.ts). */
|
|
83
|
+
this.words = new WordsController(this);
|
|
84
|
+
/** What happened; with a title, the description. Required. Plain text: the whole message is announced. */
|
|
85
|
+
this.message = '';
|
|
86
|
+
/** The title above the message ("Message not sent"): the spec's `title`. Empty draws the message alone. */
|
|
87
|
+
this.headline = '';
|
|
88
|
+
/** The label of the one action ("Undo"), drawn as a tonal button. Empty draws no action. */
|
|
89
|
+
this.action = '';
|
|
90
|
+
/** The form: `default`, or `info`, `warning`, `error` or `success` with its glyph and colors. */
|
|
91
|
+
this.status = 'default';
|
|
92
|
+
/** The status in words, in the product's language ("Error"), announced first. Required while `status` is not default. */
|
|
93
|
+
this.statusLabel = '';
|
|
94
|
+
/**
|
|
95
|
+
* Whether it is drawn inverse — in the opposite scheme's colors, a dark bar in a light scheme. `false` draws it on a
|
|
96
|
+
* surface of the scheme; `null`, the default, takes the system's choice (`comp.snackbar.container.inverse`, off in the
|
|
97
|
+
* default system). The attribute: absent is null, `inverse` is true, `inverse="false"` is false. Colors only.
|
|
98
|
+
*/
|
|
99
|
+
this.inverse = null;
|
|
100
|
+
/** Draws a close button. */
|
|
101
|
+
this.closable = false;
|
|
102
|
+
/** The close button's accessible name, in the product's language ("Close"). Required while `closable` is set. */
|
|
103
|
+
this.closeLabel = '';
|
|
104
|
+
/** Whether the whole title and message show. No effect while they fit within their collapsed limits. */
|
|
105
|
+
this.expanded = false;
|
|
106
|
+
/** The expand button's accessible name ("Show full message"), the same in both states. Required while it is drawn. */
|
|
107
|
+
this.expandLabel = '';
|
|
108
|
+
/** How long it stays by itself: `auto` is short without an action and indefinite with one. */
|
|
109
|
+
this.duration = 'auto';
|
|
110
|
+
/** SNK-16: the action on its own row. */
|
|
111
|
+
this.stacked = false;
|
|
112
|
+
/** SNK-23: the title or the message is longer than its collapsed limit, so the expand button is drawn. */
|
|
113
|
+
this.expandable = false;
|
|
114
|
+
/** SNK-25: the expanded text scrolls inside the bar, so it is a focus stop. */
|
|
115
|
+
this.scrolls = false;
|
|
116
|
+
this.actionPress = this.press('.action');
|
|
117
|
+
this.expandPress = this.press('.expand');
|
|
118
|
+
this.closePress = this.press('.close');
|
|
119
|
+
/** SNK-26: each glyph box carries `data-drawn` while the icon set can draw its ligature; until then it draws nothing. */
|
|
120
|
+
this.glyphs = new GlyphDrawnController(this, () => this.renderRoot?.querySelectorAll('.status, .icon') ?? []);
|
|
121
|
+
this.resize$ = typeof ResizeObserver === 'undefined' ? null : new ResizeObserver(() => this.layout());
|
|
122
|
+
/** Set once it has emitted how it closed: a snackbar closes once. */
|
|
123
|
+
this.settled = false;
|
|
124
|
+
/** SNK-24: the bar's height before `expanded` changed, which it grows or shrinks from. */
|
|
125
|
+
this.resizeFrom = null;
|
|
126
|
+
/** SNK-30, without style queries: renders again when the root switches the system, so the choice is read again. */
|
|
127
|
+
this.systemWatch = null;
|
|
128
|
+
/** SNK-30, without style queries: the form the bar is rendered in (`data-inverse`); null where the cascade says it. */
|
|
129
|
+
this.writtenInverse = null;
|
|
130
|
+
/** SNK-1: the action, by pointer, touch, Enter or Space (the native button's click). */
|
|
131
|
+
this.onAction = () => this.settle('action');
|
|
132
|
+
/** SNK-1: the close button. */
|
|
133
|
+
this.onClose = () => this.settle('dismiss', 'close');
|
|
134
|
+
/** SNK-24: the expand button toggles `expanded` and says so; focus stays on it, and the snackbar stays open. */
|
|
135
|
+
this.onExpand = () => {
|
|
136
|
+
this.expanded = !this.expanded;
|
|
137
|
+
this.dispatchEvent(new CustomEvent('expandedchange', { bubbles: true, detail: { expanded: this.expanded } }));
|
|
138
|
+
};
|
|
139
|
+
/** SNK-11: Escape while focus is inside closes it. */
|
|
140
|
+
this.onKeyDown = (event) => {
|
|
141
|
+
if (event.key !== 'Escape')
|
|
142
|
+
return;
|
|
143
|
+
event.preventDefault();
|
|
144
|
+
event.stopPropagation();
|
|
145
|
+
this.settle('dismiss', 'escape');
|
|
146
|
+
};
|
|
147
|
+
/** SNK-7: where style queries are missing, the focus style is read when focus arrives. */
|
|
148
|
+
this.onFocus = (event) => syncFocusStyle(this, event.target);
|
|
149
|
+
this.addEventListener('keydown', this.onKeyDown);
|
|
150
|
+
}
|
|
151
|
+
press(selector) {
|
|
152
|
+
return new PressController(this, {
|
|
153
|
+
container: () => this.renderRoot?.querySelector(selector) ?? null,
|
|
154
|
+
holdCarrier: () => this.renderRoot.querySelector(`${selector} .hold`),
|
|
155
|
+
disabled: () => false,
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
/** Whether a host shows it (else it is drawn in place, SNK-19). */
|
|
159
|
+
get hosted() {
|
|
160
|
+
return this.parentElement instanceof TanreiSnackbarHost;
|
|
161
|
+
}
|
|
162
|
+
/** The status form it draws: an unknown value is the default. */
|
|
163
|
+
get form() {
|
|
164
|
+
return STATUSES.includes(this.status) ? this.status : 'default';
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* @internal Whether it is drawn inverse right now (SNK-30): `inverse` when it is true or false, else the system's choice as
|
|
168
|
+
* the cascade gives it at this moment — never cached, and an unknown name is the first value (off).
|
|
169
|
+
*/
|
|
170
|
+
get drawnInverse() {
|
|
171
|
+
return compChoice(this, INVERSE_PROPERTY, INVERSE) === 'on';
|
|
172
|
+
}
|
|
173
|
+
/** @internal SNK-9, SNK-23: whether it shows its whole text (expanded, and longer than its collapsed limits). */
|
|
174
|
+
get showsExpanded() {
|
|
175
|
+
return this.expanded && this.expandable;
|
|
176
|
+
}
|
|
177
|
+
/** @internal SNK-10: whether it is announced assertively (warning and error). */
|
|
178
|
+
get assertive() {
|
|
179
|
+
return this.form === 'warning' || this.form === 'error';
|
|
180
|
+
}
|
|
181
|
+
/** SNK-8: how long it stays by itself, in ms, as the tokens resolve now; `null` never times out. */
|
|
182
|
+
get timeout() {
|
|
183
|
+
const duration = DURATIONS.includes(this.duration) ? this.duration : 'auto';
|
|
184
|
+
const kind = duration === 'auto' ? (this.action ? 'indefinite' : 'short') : duration;
|
|
185
|
+
if (kind === 'indefinite')
|
|
186
|
+
return null;
|
|
187
|
+
const probe = this.renderRoot?.querySelector('.timing');
|
|
188
|
+
if (!probe)
|
|
189
|
+
return null;
|
|
190
|
+
const style = getComputedStyle(probe);
|
|
191
|
+
return (Number.parseFloat(kind === 'short' ? style.transitionDelay : style.transitionDuration) || 0) * 1000;
|
|
192
|
+
}
|
|
193
|
+
/** What is announced (SNK-10): statusLabel in a status form, the title, the whole message, then the action's label. */
|
|
194
|
+
get announcement() {
|
|
195
|
+
const status = this.form === 'default' ? '' : this.statusLabel;
|
|
196
|
+
return [status, this.headline, this.message, this.action]
|
|
197
|
+
.map((part) => part.trim())
|
|
198
|
+
.filter(Boolean)
|
|
199
|
+
.reduce((said, part) => (said ? `${said}${/[.!?。!?]$/u.test(said) ? ' ' : '. '}${part}` : part), '');
|
|
200
|
+
}
|
|
201
|
+
/** @internal The host closed it (dismissCurrent, clear): `dismiss` with the reason host. */
|
|
202
|
+
dismissByHost() {
|
|
203
|
+
this.settle('dismiss', 'host');
|
|
204
|
+
}
|
|
205
|
+
/** @internal The host's timeout ran out. */
|
|
206
|
+
dismissByTimeout() {
|
|
207
|
+
this.settle('dismiss', 'timeout');
|
|
208
|
+
}
|
|
209
|
+
/** Emits how it closed, once. */
|
|
210
|
+
settle(how, reason) {
|
|
211
|
+
if (this.settled && this.hosted)
|
|
212
|
+
return;
|
|
213
|
+
this.settled = this.hosted;
|
|
214
|
+
if (how === 'action')
|
|
215
|
+
this.dispatchEvent(new CustomEvent('action', { bubbles: true }));
|
|
216
|
+
else
|
|
217
|
+
this.dispatchEvent(new CustomEvent('dismiss', { bubbles: true, detail: { reason: reason } }));
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* SNK-16, SNK-23, SNK-25, measured with the text collapsed:
|
|
221
|
+
* - the action goes onto its own row when the title and the message together would need more than two lines beside
|
|
222
|
+
* the controls, or the action's label would not fit (measured with the action inline);
|
|
223
|
+
* - the expand button is drawn when the title or the message is cut at its line limit (measured as it is drawn);
|
|
224
|
+
* - expanded, the text is a focus stop when it scrolls inside the bar (measured as it is drawn).
|
|
225
|
+
*/
|
|
226
|
+
layout() {
|
|
227
|
+
const bar = this.renderRoot?.querySelector('.bar');
|
|
228
|
+
const text = this.renderRoot?.querySelector('.text');
|
|
229
|
+
const title = this.renderRoot?.querySelector('.title');
|
|
230
|
+
const message = this.renderRoot?.querySelector('.message');
|
|
231
|
+
const action = this.renderRoot?.querySelector('.action');
|
|
232
|
+
if (!bar || !text || !message)
|
|
233
|
+
return;
|
|
234
|
+
// SNK-24: while the bar grows or shrinks its height is the motion's, not its content's: measured when it ends.
|
|
235
|
+
if (bar.classList.contains('resizing'))
|
|
236
|
+
return;
|
|
237
|
+
bar.classList.remove('stacked', 'expanded');
|
|
238
|
+
const stacked = !!action && (lines(title) + lines(message) > 2 || action.scrollWidth > action.clientWidth + 0.5);
|
|
239
|
+
bar.classList.toggle('stacked', stacked);
|
|
240
|
+
const expandable = cut(title) || cut(message);
|
|
241
|
+
bar.classList.toggle('stacked', this.stacked);
|
|
242
|
+
bar.classList.toggle('expanded', this.showsExpanded);
|
|
243
|
+
const scrolls = this.showsExpanded && text.scrollHeight > text.clientHeight + 0.5;
|
|
244
|
+
if (stacked !== this.stacked)
|
|
245
|
+
this.stacked = stacked;
|
|
246
|
+
if (expandable !== this.expandable)
|
|
247
|
+
this.expandable = expandable;
|
|
248
|
+
if (scrolls !== this.scrolls)
|
|
249
|
+
this.scrolls = scrolls;
|
|
250
|
+
}
|
|
251
|
+
/** SNK-24: grows or shrinks the bar from its height before, keeping its bottom edge where a host places it. */
|
|
252
|
+
resize(from) {
|
|
253
|
+
const bar = this.renderRoot.querySelector('.bar');
|
|
254
|
+
const probe = this.renderRoot.querySelector('.expand-timing');
|
|
255
|
+
if (!bar || !probe || typeof bar.animate !== 'function')
|
|
256
|
+
return;
|
|
257
|
+
for (const running of bar.getAnimations())
|
|
258
|
+
running.cancel();
|
|
259
|
+
const to = bar.getBoundingClientRect().height;
|
|
260
|
+
if (Math.abs(to - from) < 0.5 || matchMedia('(prefers-reduced-motion: reduce)').matches)
|
|
261
|
+
return;
|
|
262
|
+
const style = getComputedStyle(probe);
|
|
263
|
+
const duration = (Number.parseFloat(style.transitionDuration) || 0) * 1000;
|
|
264
|
+
if (!duration)
|
|
265
|
+
return;
|
|
266
|
+
bar.classList.add('resizing');
|
|
267
|
+
const motion = bar.animate([{ blockSize: `${from}px` }, { blockSize: `${to}px` }], { duration, easing: style.transitionTimingFunction });
|
|
268
|
+
const done = () => {
|
|
269
|
+
// Only the motion still running may end it: one cancelled by the next toggle leaves `resizing` to that one.
|
|
270
|
+
if (bar.getAnimations().some((other) => other !== motion && other.playState === 'running'))
|
|
271
|
+
return;
|
|
272
|
+
bar.classList.remove('resizing');
|
|
273
|
+
this.layout();
|
|
274
|
+
};
|
|
275
|
+
motion.addEventListener('finish', done);
|
|
276
|
+
motion.addEventListener('cancel', done);
|
|
277
|
+
}
|
|
278
|
+
firstUpdated() {
|
|
279
|
+
const bar = this.renderRoot.querySelector('.bar');
|
|
280
|
+
const text = this.renderRoot.querySelector('.text');
|
|
281
|
+
if (bar)
|
|
282
|
+
this.resize$?.observe(bar);
|
|
283
|
+
if (text)
|
|
284
|
+
this.resize$?.observe(text);
|
|
285
|
+
this.resize$?.observe(this);
|
|
286
|
+
}
|
|
287
|
+
disconnectedCallback() {
|
|
288
|
+
super.disconnectedCallback();
|
|
289
|
+
this.resize$?.disconnect();
|
|
290
|
+
}
|
|
291
|
+
connectedCallback() {
|
|
292
|
+
super.connectedCallback();
|
|
293
|
+
if (this.hasUpdated)
|
|
294
|
+
this.firstUpdated();
|
|
295
|
+
}
|
|
296
|
+
willUpdate(changed) {
|
|
297
|
+
// SNK-24: only a change of `expanded` moves (the expand button appearing on the first layout does not).
|
|
298
|
+
if (changed.has('expanded') && this.hasUpdated && this.expandable)
|
|
299
|
+
this.resizeFrom = this.renderRoot.querySelector('.bar')?.getBoundingClientRect().height ?? null;
|
|
300
|
+
// SNK-30: where a browser has no style queries, the form the cascade names now is written for the same rules —
|
|
301
|
+
// read here, before the bar is rendered, and rendered with it: a bar that is first drawn in the default form and
|
|
302
|
+
// told its form afterwards would move its controls' colors there (motion.state-duration) each time it appears.
|
|
303
|
+
// (`inverse` itself and not its attribute, which is written after this; unset, the token as the host inherits it.)
|
|
304
|
+
if (!styleQueries()) {
|
|
305
|
+
this.writtenInverse = (this.inverse ?? compChoice(this, INVERSE_TOKEN, INVERSE) === 'on') ? 'on' : 'off';
|
|
306
|
+
// A style query follows a system switched on the root by itself; here the choice is read again when it is.
|
|
307
|
+
this.systemWatch ??= new SystemWatchController(this);
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
updated(changed) {
|
|
311
|
+
const has = (name) => changed.has(name);
|
|
312
|
+
if (['message', 'headline', 'action', 'status', 'closable', 'expanded', 'stacked', 'expandable'].some(has))
|
|
313
|
+
this.layout();
|
|
314
|
+
if (has('expanded') || has('expandable')) {
|
|
315
|
+
if (!this.showsExpanded)
|
|
316
|
+
this.renderRoot.querySelector('.text')?.scrollTo({ top: 0 });
|
|
317
|
+
if (this.resizeFrom !== null)
|
|
318
|
+
this.resize(this.resizeFrom);
|
|
319
|
+
this.resizeFrom = null;
|
|
320
|
+
// SNK-9: the host pauses the timeout while it is expanded.
|
|
321
|
+
if (this.hosted)
|
|
322
|
+
this.parentElement.refresh();
|
|
323
|
+
}
|
|
324
|
+
// SNK-20: what a debug build tells the product.
|
|
325
|
+
if (has('message') && !this.message.trim())
|
|
326
|
+
report(this, 'SNK-20', 'message is empty; give the snackbar a message');
|
|
327
|
+
if ((has('closable') || has('closeLabel')) && this.closable && this.words.lacks('closeLabel', this.closeLabel)) {
|
|
328
|
+
report(this, 'SNK-20', 'closable is set but close-label is empty, so the close button has no accessible name; give it a close-label');
|
|
329
|
+
}
|
|
330
|
+
if ((has('status') || has('statusLabel')) && this.form !== 'default' && !this.statusLabel.trim()) {
|
|
331
|
+
report(this, 'SNK-20', `status is "${this.form}" but status-label is empty, so the status is not given in words; give it a status-label`);
|
|
332
|
+
}
|
|
333
|
+
if ((has('expandable') || has('expandLabel')) && this.expandable && this.words.lacks('expandLabel', this.expandLabel)) {
|
|
334
|
+
report(this, 'SNK-20', 'the text is longer than its collapsed limit, so the expand button is drawn, but expand-label is empty and it has no accessible name; give it an expand-label');
|
|
335
|
+
}
|
|
336
|
+
if ((has('duration') || has('action')) && this.action && (this.duration === 'short' || this.duration === 'long')) {
|
|
337
|
+
report(this, 'SNK-20', `a snackbar that times out (duration "${this.duration}") has the action "${this.action}"; offer it elsewhere too, because a person may not reach it in time (WCAG 2.2.1)`);
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
control(name, press, onClick, content, attributes = {}) {
|
|
341
|
+
return html `<button
|
|
342
|
+
part=${name}
|
|
343
|
+
class="control ${name}"
|
|
344
|
+
type="button"
|
|
345
|
+
data-tanrei-shape
|
|
346
|
+
aria-label=${attributes.label || nothing}
|
|
347
|
+
aria-expanded=${attributes.expanded === undefined ? nothing : String(attributes.expanded)}
|
|
348
|
+
aria-controls=${attributes.expanded === undefined ? nothing : 'text'}
|
|
349
|
+
@click=${onClick}
|
|
350
|
+
@focus=${this.onFocus}
|
|
351
|
+
@pointerdown=${press.onPointerDown}
|
|
352
|
+
@pointerup=${press.release}
|
|
353
|
+
@pointercancel=${press.release}
|
|
354
|
+
@pointerleave=${press.release}
|
|
355
|
+
@keydown=${press.onKeyDown}
|
|
356
|
+
@keyup=${press.onKeyUp}
|
|
357
|
+
@blur=${press.onBlur}
|
|
358
|
+
>
|
|
359
|
+
${content}
|
|
360
|
+
</button>`;
|
|
361
|
+
}
|
|
362
|
+
render() {
|
|
363
|
+
const action = this.action.trim();
|
|
364
|
+
const headline = this.headline.trim();
|
|
365
|
+
const form = this.form;
|
|
366
|
+
const expanded = this.showsExpanded;
|
|
367
|
+
const glyph = (name) => html `<span class="icon hold" aria-hidden="true"><span class="ink">${name}</span></span>`;
|
|
368
|
+
return html `
|
|
369
|
+
<div
|
|
370
|
+
part="container"
|
|
371
|
+
class=${classMap({ bar: true, titled: !!headline, controls: !!action || this.closable || this.expandable, stacked: this.stacked && !!action, expanded, cut: this.expandable && !expanded })}
|
|
372
|
+
data-status=${form}
|
|
373
|
+
data-inverse=${this.writtenInverse ?? nothing}
|
|
374
|
+
data-tanrei-shape
|
|
375
|
+
>
|
|
376
|
+
${form === 'default' ? nothing : html `<span part="icon" class="status" aria-hidden="true"><span class="ink">${GLYPHS[form]}</span></span>`}
|
|
377
|
+
<div
|
|
378
|
+
part="text"
|
|
379
|
+
class="text"
|
|
380
|
+
id="text"
|
|
381
|
+
data-tanrei-shape
|
|
382
|
+
tabindex=${this.scrolls ? '0' : nothing}
|
|
383
|
+
role=${this.scrolls && headline ? 'group' : nothing}
|
|
384
|
+
aria-labelledby=${this.scrolls && headline ? 'title' : nothing}
|
|
385
|
+
@focus=${this.onFocus}
|
|
386
|
+
>
|
|
387
|
+
${form !== 'default' && this.statusLabel.trim() ? html `<span class="status-label">${this.statusLabel}</span>` : nothing}
|
|
388
|
+
${headline ? html `<span part="title" class="title" id="title">${this.headline}</span>` : nothing}
|
|
389
|
+
<span part="supporting-text" class="message">${this.message}</span>
|
|
390
|
+
</div>
|
|
391
|
+
<span class="focus" data-tanrei-shape></span>
|
|
392
|
+
${action ? this.control('action', this.actionPress, this.onAction, html `<span class="hold">${action}</span>`) : nothing}
|
|
393
|
+
${this.expandable ? this.control('expand', this.expandPress, this.onExpand, glyph(expanded ? 'expand_less' : 'expand_more'), { label: this.words.get('expandLabel', this.expandLabel), expanded }) : nothing}
|
|
394
|
+
${this.closable ? this.control('close', this.closePress, this.onClose, glyph('close'), { label: this.words.get('closeLabel', this.closeLabel) }) : nothing}
|
|
395
|
+
</div>
|
|
396
|
+
<span class="timing" aria-hidden="true"></span>
|
|
397
|
+
<span class="expand-timing" aria-hidden="true"></span>
|
|
398
|
+
`;
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
* Shows snackbars, one at a time, in the order they were asked for (SNK-12), at the bottom of the window (SNK-13).
|
|
403
|
+
* Place it once, as the last element of the page: its place in the focus order is where a snackbar's controls are
|
|
404
|
+
* (SNK-11). It holds the two live regions their messages are announced in (SNK-10) — polite (`role="status"`) for the
|
|
405
|
+
* default, info and success forms, assertive (`role="alert"`) for warning and error — so it must be in the document
|
|
406
|
+
* before the first one.
|
|
407
|
+
*
|
|
408
|
+
* `show(options)` resolves once that snackbar has closed: `{ result: 'action' }` or `{ result: 'dismiss', reason }`.
|
|
409
|
+
* `dismissCurrent()` closes the showing one (reason `host`); `clear()` also drops every waiting one.
|
|
410
|
+
*
|
|
411
|
+
* @tag tanrei-snackbar-host
|
|
412
|
+
* @slot - The snackbar being shown (the host puts it there).
|
|
413
|
+
*/
|
|
414
|
+
export class TanreiSnackbarHost extends LitElement {
|
|
415
|
+
constructor() {
|
|
416
|
+
super(...arguments);
|
|
417
|
+
this.queue = [];
|
|
418
|
+
this.current = null;
|
|
419
|
+
/** A snackbar fading out: the next waits for it (SNK-17). */
|
|
420
|
+
this.closing = null;
|
|
421
|
+
this.hovered = false;
|
|
422
|
+
this.focusedInside = false;
|
|
423
|
+
/** SNK-11: where focus was before it entered the snackbar. */
|
|
424
|
+
this.returnFocus = null;
|
|
425
|
+
this.unsubscribe = null;
|
|
426
|
+
/** SNK-8, SNK-9: the timeout runs only while nothing holds it, and starts again from its whole length. */
|
|
427
|
+
this.onConditions = () => {
|
|
428
|
+
const current = this.current;
|
|
429
|
+
clearTimeout(this.timer);
|
|
430
|
+
if (!current) {
|
|
431
|
+
void this.next();
|
|
432
|
+
return;
|
|
433
|
+
}
|
|
434
|
+
const held = this.hovered || this.focusedInside || current.snackbar.showsExpanded || document.visibilityState === 'hidden' || !document.hasFocus() || modalLayer.covered;
|
|
435
|
+
const timeout = current.snackbar.timeout;
|
|
436
|
+
if (held || timeout === null)
|
|
437
|
+
return;
|
|
438
|
+
this.timer = setTimeout(() => current.snackbar.dismissByTimeout(), timeout);
|
|
439
|
+
};
|
|
440
|
+
/** SNK-13: above the on-screen keyboard (the part of the layout viewport the visual viewport no longer covers). */
|
|
441
|
+
this.onViewport = () => {
|
|
442
|
+
const viewport = window.visualViewport;
|
|
443
|
+
if (!viewport)
|
|
444
|
+
return;
|
|
445
|
+
const covered = Math.max(0, document.documentElement.clientHeight - (viewport.offsetTop + viewport.height));
|
|
446
|
+
this.style.setProperty('--tanrei-snackbar-keyboard', `${covered}px`);
|
|
447
|
+
};
|
|
448
|
+
this.onPointerEnter = () => {
|
|
449
|
+
this.hovered = true;
|
|
450
|
+
this.onConditions();
|
|
451
|
+
};
|
|
452
|
+
this.onPointerLeave = () => {
|
|
453
|
+
this.hovered = false;
|
|
454
|
+
this.onConditions();
|
|
455
|
+
};
|
|
456
|
+
this.onFocusIn = (event) => {
|
|
457
|
+
if (!this.focusedInside)
|
|
458
|
+
this.returnFocus = event.relatedTarget instanceof Element ? event.relatedTarget : null;
|
|
459
|
+
this.focusedInside = true;
|
|
460
|
+
this.onConditions();
|
|
461
|
+
};
|
|
462
|
+
this.onFocusOut = (event) => {
|
|
463
|
+
const to = event.relatedTarget;
|
|
464
|
+
const snackbar = this.current?.snackbar;
|
|
465
|
+
if (snackbar && to && (snackbar.contains(to) || snackbar.renderRoot.contains(to)))
|
|
466
|
+
return;
|
|
467
|
+
this.focusedInside = false;
|
|
468
|
+
this.returnFocus = null;
|
|
469
|
+
this.onConditions();
|
|
470
|
+
};
|
|
471
|
+
/** SNK-1, SNK-12: the snackbar closed; its request resolves, it fades out, then the next shows. */
|
|
472
|
+
this.onSettled = (event) => {
|
|
473
|
+
const current = this.current;
|
|
474
|
+
if (!current || event.target !== current.snackbar)
|
|
475
|
+
return;
|
|
476
|
+
const { snackbar, request } = current;
|
|
477
|
+
this.current = null;
|
|
478
|
+
clearTimeout(this.timer);
|
|
479
|
+
const result = event.type === 'action' ? { result: 'action' } : { result: 'dismiss', reason: event.detail.reason };
|
|
480
|
+
// SNK-11: focus goes back where it was before it entered the snackbar, or to the platform's default.
|
|
481
|
+
const active = snackbar.getRootNode().activeElement;
|
|
482
|
+
const hadFocus = this.focusedInside || active === snackbar;
|
|
483
|
+
this.hovered = false;
|
|
484
|
+
this.focusedInside = false;
|
|
485
|
+
if (hadFocus) {
|
|
486
|
+
const back = this.returnFocus;
|
|
487
|
+
if (back && back.isConnected && typeof back.focus === 'function')
|
|
488
|
+
back.focus();
|
|
489
|
+
else {
|
|
490
|
+
// The deepest focused element, which a blur on its shadow host would not reach in every engine.
|
|
491
|
+
let active = document.activeElement;
|
|
492
|
+
while (active?.shadowRoot?.activeElement)
|
|
493
|
+
active = active.shadowRoot.activeElement;
|
|
494
|
+
active?.blur?.();
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
this.returnFocus = null;
|
|
498
|
+
this.clearAnnouncements();
|
|
499
|
+
request.resolve(result);
|
|
500
|
+
// SNK-17: it fades out in place; the next one shows only after that.
|
|
501
|
+
snackbar.classList.remove('entering');
|
|
502
|
+
snackbar.classList.add('leaving');
|
|
503
|
+
this.closing = Promise.allSettled(snackbar.getAnimations().map((a) => a.finished)).then(() => {
|
|
504
|
+
if (snackbar.matches(':popover-open'))
|
|
505
|
+
snackbar.hidePopover();
|
|
506
|
+
snackbar.remove();
|
|
507
|
+
this.closing = null;
|
|
508
|
+
void this.next();
|
|
509
|
+
});
|
|
510
|
+
};
|
|
511
|
+
}
|
|
512
|
+
static { this.styles = [hostStyles, hiddenHost]; }
|
|
513
|
+
connectedCallback() {
|
|
514
|
+
super.connectedCallback();
|
|
515
|
+
this.unsubscribe = modalLayer.subscribe(this.onConditions);
|
|
516
|
+
document.addEventListener('visibilitychange', this.onConditions);
|
|
517
|
+
window.addEventListener('blur', this.onConditions);
|
|
518
|
+
window.addEventListener('focus', this.onConditions);
|
|
519
|
+
window.visualViewport?.addEventListener('resize', this.onViewport);
|
|
520
|
+
}
|
|
521
|
+
disconnectedCallback() {
|
|
522
|
+
super.disconnectedCallback();
|
|
523
|
+
this.unsubscribe?.();
|
|
524
|
+
document.removeEventListener('visibilitychange', this.onConditions);
|
|
525
|
+
window.removeEventListener('blur', this.onConditions);
|
|
526
|
+
window.removeEventListener('focus', this.onConditions);
|
|
527
|
+
window.visualViewport?.removeEventListener('resize', this.onViewport);
|
|
528
|
+
clearTimeout(this.timer);
|
|
529
|
+
}
|
|
530
|
+
/** SNK-12: asks for a snackbar; resolves once it has closed. */
|
|
531
|
+
show(options) {
|
|
532
|
+
return new Promise((resolve) => {
|
|
533
|
+
this.queue.push({ options, resolve });
|
|
534
|
+
void this.next();
|
|
535
|
+
});
|
|
536
|
+
}
|
|
537
|
+
/** SNK-12: closes the showing snackbar (dismiss, reason host); the next waiting one then shows. */
|
|
538
|
+
dismissCurrent() {
|
|
539
|
+
this.current?.snackbar.dismissByHost();
|
|
540
|
+
}
|
|
541
|
+
/** SNK-12: drops every waiting snackbar and closes the showing one, each resolved with dismiss and the reason host. */
|
|
542
|
+
clear() {
|
|
543
|
+
for (const request of this.queue.splice(0))
|
|
544
|
+
request.resolve({ result: 'dismiss', reason: 'host' });
|
|
545
|
+
this.dismissCurrent();
|
|
546
|
+
}
|
|
547
|
+
/** The snackbar being shown, if any. */
|
|
548
|
+
get snackbar() {
|
|
549
|
+
return this.current?.snackbar ?? null;
|
|
550
|
+
}
|
|
551
|
+
/** @internal SNK-9: the showing snackbar was expanded or collapsed; its timeout pauses or starts again. */
|
|
552
|
+
refresh() {
|
|
553
|
+
this.onConditions();
|
|
554
|
+
}
|
|
555
|
+
/** Shows the next waiting snackbar once nothing is showing or closing and no modal dialog covers the host. */
|
|
556
|
+
async next() {
|
|
557
|
+
if (this.current || this.closing || modalLayer.covered || !this.isConnected)
|
|
558
|
+
return;
|
|
559
|
+
const request = this.queue.shift();
|
|
560
|
+
if (!request)
|
|
561
|
+
return;
|
|
562
|
+
const snackbar = document.createElement('tanrei-snackbar');
|
|
563
|
+
const { message, title = '', action = '', status = 'default', statusLabel = '', inverse = null, closable = false, closeLabel = '', expandLabel = '', duration = 'auto' } = request.options;
|
|
564
|
+
Object.assign(snackbar, { message, headline: title, action, status, statusLabel, inverse, closable, closeLabel, expandLabel, duration });
|
|
565
|
+
snackbar.setAttribute('popover', 'manual');
|
|
566
|
+
this.current = { request, snackbar };
|
|
567
|
+
snackbar.addEventListener('action', this.onSettled);
|
|
568
|
+
snackbar.addEventListener('dismiss', this.onSettled);
|
|
569
|
+
snackbar.addEventListener('pointerenter', this.onPointerEnter);
|
|
570
|
+
snackbar.addEventListener('pointerleave', this.onPointerLeave);
|
|
571
|
+
snackbar.addEventListener('focusin', this.onFocusIn);
|
|
572
|
+
snackbar.addEventListener('focusout', this.onFocusOut);
|
|
573
|
+
this.append(snackbar);
|
|
574
|
+
await snackbar.updateComplete;
|
|
575
|
+
if (this.current?.snackbar !== snackbar)
|
|
576
|
+
return;
|
|
577
|
+
snackbar.showPopover();
|
|
578
|
+
// SNK-17: it rises in while fading in (only fades where motion is reduced).
|
|
579
|
+
snackbar.classList.add('entering');
|
|
580
|
+
void Promise.allSettled(snackbar.getAnimations().map((a) => a.finished)).then(() => snackbar.classList.remove('entering'));
|
|
581
|
+
this.announce(snackbar.announcement, snackbar.assertive);
|
|
582
|
+
this.onConditions();
|
|
583
|
+
}
|
|
584
|
+
/** SNK-10: announced once, politely or assertively, through the host's live regions; focus is never moved. */
|
|
585
|
+
announce(text, assertive) {
|
|
586
|
+
const region = this.renderRoot.querySelector(assertive ? '.announce[role="alert"]' : '.announce[role="status"]');
|
|
587
|
+
this.clearAnnouncements();
|
|
588
|
+
if (!region)
|
|
589
|
+
return;
|
|
590
|
+
// A frame later, so a message equal to the last one is announced again.
|
|
591
|
+
requestAnimationFrame(() => (region.textContent = text));
|
|
592
|
+
}
|
|
593
|
+
clearAnnouncements() {
|
|
594
|
+
for (const region of this.renderRoot.querySelectorAll('.announce'))
|
|
595
|
+
region.textContent = '';
|
|
596
|
+
}
|
|
597
|
+
render() {
|
|
598
|
+
return html `<div class="announce" role="status" aria-live="polite" aria-atomic="true"></div>
|
|
599
|
+
<div class="announce" role="alert" aria-live="assertive" aria-atomic="true"></div>
|
|
600
|
+
<slot></slot>`;
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
if (!customElements.get('tanrei-snackbar'))
|
|
604
|
+
customElements.define('tanrei-snackbar', TanreiSnackbar);
|
|
605
|
+
if (!customElements.get('tanrei-snackbar-host'))
|
|
606
|
+
customElements.define('tanrei-snackbar-host', TanreiSnackbarHost);
|
|
607
|
+
//# sourceMappingURL=snackbar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"snackbar.js","sourceRoot":"","sources":["../../../src/components/snackbar/snackbar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAkD,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAChG,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,eAAe,EAAE,qBAAqB,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAChN,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAiC9G,MAAM,SAAS,GAAsC,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,CAAC,CAAC;AAC7F,mEAAmE;AACnE,MAAM,MAAM,GAA8C,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC;AAExI;;;GAGG;AACH,MAAM,gBAAgB,GAAG;IACvB,aAAa,EAAE,CAAC,KAAoB,EAAkB,EAAE,CAAC,CAAC,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,KAAK,OAAO,CAAC;IACzH,WAAW,EAAE,CAAC,KAAc,EAAiB,EAAE,CAAC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