@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,157 @@
|
|
|
1
|
+
import { LitElement, type PropertyDeclarations, type PropertyValues } from 'lit';
|
|
2
|
+
import { GROUP_PLACE, GlyphDrawnController, type GroupPlace, type PlacingGroup } from '../../primitives/index.js';
|
|
3
|
+
import type { TanreiCalloutSizeRegistry, TanreiCalloutVariantRegistry } from '../../registry.js';
|
|
4
|
+
/** The core variants (tonal, outlined), plus any a design system's generated `.d.ts` registers. */
|
|
5
|
+
export type TanreiCalloutVariant = keyof TanreiCalloutVariantRegistry;
|
|
6
|
+
/** The core sizes (medium, large), plus any a design system's generated `.d.ts` registers. */
|
|
7
|
+
export type TanreiCalloutSize = keyof TanreiCalloutSizeRegistry;
|
|
8
|
+
/** What the notice is, in the snackbar's and the tag's names. A closed set. */
|
|
9
|
+
export type TanreiCalloutStatus = 'default' | 'info' | 'warning' | 'error' | 'success';
|
|
10
|
+
/**
|
|
11
|
+
* A notice that is part of the content and stays there, as a quiet fill or an outline, in a status's colors with its glyph.
|
|
12
|
+
* A note, a caution, the reason for something or a summary of what is wrong, in the flow of the page, with an optional
|
|
13
|
+
* title, actions and a close button.
|
|
14
|
+
*
|
|
15
|
+
* Contract: specs/callout.spec.json. `<tanrei-callout status="warning">…</tanrei-callout>`: the body is the element's
|
|
16
|
+
* own content (text, or the product's blocks — long-form blocks in a `<div class="tanrei-prose" data-measure="false">`),
|
|
17
|
+
* the title is the `headline` attribute or the `title` slot, a glyph of the icon set goes in the `icon` slot, and the
|
|
18
|
+
* product's Buttons or links in the `actions` slot. Every visual value is a `--tanrei-comp-callout-*` token, one set per
|
|
19
|
+
* variant and status; how far its corners ease is the system's amount (`--tanrei-sys-shape-corner-smoothing`).
|
|
20
|
+
*
|
|
21
|
+
* It is a note (`role="note"`), read where it stands and never announced. With `live` it is a live region instead: it
|
|
22
|
+
* is announced once when it is shown after the page was presented and when its title, body or status changes — politely
|
|
23
|
+
* (`role="status"`), or assertively for warning and error (`role="alert"`). It never takes focus.
|
|
24
|
+
*
|
|
25
|
+
* A status is never told by color alone: a status form draws the status's glyph, and the title says it or
|
|
26
|
+
* `statusLabel` adds it in words for assistive technology ("Warning, …") without drawing it.
|
|
27
|
+
*
|
|
28
|
+
* `title` is the `headline` property and attribute, because HTML's global `title` would show a tooltip over the block.
|
|
29
|
+
* `open` defaults to true; `open="false"` is how markup starts a callout closed.
|
|
30
|
+
*
|
|
31
|
+
* @tag tanrei-callout
|
|
32
|
+
* @slot - The body: text, or the product's own blocks (paragraphs, lists, a table, a code block, any component). Text placed directly takes the callout's text style and color; long-form blocks go in a `<div class="tanrei-prose" data-measure="false">` (with `data-size="large"` in a large callout).
|
|
33
|
+
* @slot icon - A glyph of the system's icon set (its ligature text, in an element), drawn in place of the status glyph, or as the glyph of a callout without a status. A glyph the icon set flags is mirrored in right-to-left; `data-mirror="auto | always | never"` on the element decides for one use.
|
|
34
|
+
* @slot title - The product's own title content in place of `headline`: text with inline content, or a heading of the level the page's outline needs. It is drawn in the title's style; its role and its level are not changed.
|
|
35
|
+
* @slot actions - The product's own Buttons or links, one or two, laid out in a row below the text.
|
|
36
|
+
* @csspart container - The block: its fill, its edge in the outlined look, its corners and paddings.
|
|
37
|
+
* @csspart icon - The box the glyph is drawn in (hidden from assistive technology).
|
|
38
|
+
* @csspart title - The title.
|
|
39
|
+
* @csspart body - The body.
|
|
40
|
+
* @csspart actions - The row of actions.
|
|
41
|
+
* @csspart close - The close button.
|
|
42
|
+
* @fires dismiss - The person closed the callout with its close button. Fired once, after `open` became false; never when the product sets `open`.
|
|
43
|
+
*/
|
|
44
|
+
export declare class TanreiCallout extends LitElement implements PlacingGroup {
|
|
45
|
+
private readonly availability;
|
|
46
|
+
/** The product's words, read where the instance gives none (src/primitives/words.ts). */
|
|
47
|
+
private readonly words;
|
|
48
|
+
static styles: import("lit").CSSResult;
|
|
49
|
+
static properties: PropertyDeclarations;
|
|
50
|
+
/** A few words above the body that name the notice ("Not published yet"): the spec's `title`. Plain text, never a heading. Empty draws the body alone; the `title` slot takes its place. */
|
|
51
|
+
headline: string;
|
|
52
|
+
/** What the notice is: default (a neutral aside, no glyph unless the product gives one), info, warning, error or success, each in its colors with its glyph. A live callout is announced assertively for warning and error. */
|
|
53
|
+
status: TanreiCalloutStatus;
|
|
54
|
+
/** The status in words ("Warning"), read by assistive technology before the title and the body and not drawn. For a callout whose title does not itself say the status. Ignored while `status` is default. */
|
|
55
|
+
statusLabel: string;
|
|
56
|
+
/** How much the callout weighs: tonal is a quiet fill; outlined has no fill and one hairline, for a tinted surface or many callouts close together. */
|
|
57
|
+
variant: TanreiCalloutVariant;
|
|
58
|
+
/** The size of the text: medium sets it in the interface's text style, large in the style for long reading. Paddings, the glyph and the close button are the same at both. */
|
|
59
|
+
size: TanreiCalloutSize;
|
|
60
|
+
/** Whether the callout is announced: false is a note, read where it stands; true is a live region, announced once when it is shown after the page was presented and when its content changes. It changes nothing that is drawn. */
|
|
61
|
+
live: boolean;
|
|
62
|
+
/** Draws a close button, for a notice the person may put away. */
|
|
63
|
+
closable: boolean;
|
|
64
|
+
/** The close button's accessible name, in the product's language ("Close"). Required while `closable` is set. */
|
|
65
|
+
closeLabel: string;
|
|
66
|
+
/** Whether the callout is shown. The close button sets it to false. The attribute: absent is true, `open="false"` is false. */
|
|
67
|
+
open: boolean;
|
|
68
|
+
/** Whether the icon slot has content. */
|
|
69
|
+
protected hasIcon: boolean;
|
|
70
|
+
/** Whether the title slot has content. */
|
|
71
|
+
protected hasTitle: boolean;
|
|
72
|
+
/** Whether the default slot has content: an element, or text that is not white space. */
|
|
73
|
+
protected hasBody: boolean;
|
|
74
|
+
/** Whether the actions slot has content. */
|
|
75
|
+
protected hasActions: boolean;
|
|
76
|
+
/** CLO-23: the actions that were told their place. */
|
|
77
|
+
private placed;
|
|
78
|
+
/** CLO-30: sizes and variants a design system adds, and a value the active system does not have (src/primitives/axes.ts). */
|
|
79
|
+
private readonly axes;
|
|
80
|
+
/**
|
|
81
|
+
* CLO-27: the glyph in the icon slot is marked when the icon set mirrors its name in right-to-left, or the product's
|
|
82
|
+
* `data-mirror` says so; the callout's own glyphs go through the same rule, which marks none of them under the
|
|
83
|
+
* default icon set. `iconGlyph()` draws the mark. The callout mirrors nothing itself.
|
|
84
|
+
*/
|
|
85
|
+
private readonly mirror;
|
|
86
|
+
/** CLO-29: each glyph box carries `data-drawn` while the icon set can draw its ligature; until then it draws nothing. */
|
|
87
|
+
protected readonly glyphs: GlyphDrawnController;
|
|
88
|
+
/** CLO-17, CLO-18: the close button's pressed state. */
|
|
89
|
+
private readonly press;
|
|
90
|
+
/** CLO-31: the custom state the styles read to take an empty callout out of the layout. */
|
|
91
|
+
private readonly internals;
|
|
92
|
+
/** CLO-12: the element that had focus before focus entered the callout. */
|
|
93
|
+
private cameFrom;
|
|
94
|
+
private focusInside;
|
|
95
|
+
/**
|
|
96
|
+
* CLO-21: whether this callout was already in the document when its element was made — written in the page's markup
|
|
97
|
+
* and upgraded — which is being drawn with the page's first presentation.
|
|
98
|
+
*/
|
|
99
|
+
private readonly upgraded;
|
|
100
|
+
/** CLO-21: whether its first render is announced: it was added by the product after the page was presented. */
|
|
101
|
+
private announceFirst;
|
|
102
|
+
/** Whether it has been drawn once: what changes after that is a change. */
|
|
103
|
+
private presented;
|
|
104
|
+
private pending;
|
|
105
|
+
/** CLO-21: hears the title and the body change while it is live. */
|
|
106
|
+
private content$;
|
|
107
|
+
constructor();
|
|
108
|
+
/** CLO-30: a status this spec does not have is `default`. */
|
|
109
|
+
private get form();
|
|
110
|
+
/** CLO-21: warning and error are announced assertively, as a snackbar's. */
|
|
111
|
+
private get assertive();
|
|
112
|
+
private get titled();
|
|
113
|
+
/** CLO-31: neither a title nor a body — a glyph, actions or a close button alone are not a notice. */
|
|
114
|
+
private get empty();
|
|
115
|
+
/** The element in the title slot, if any. */
|
|
116
|
+
private get slottedTitle();
|
|
117
|
+
/** @internal What a live callout announces (CLO-21): statusLabel in a status form, the title, then the whole body. */
|
|
118
|
+
get announcement(): string;
|
|
119
|
+
/** What the light DOM holds for each slot, read from the children: they are there before a slot says so. */
|
|
120
|
+
private scan;
|
|
121
|
+
/** @internal CLO-23: where an action stands, for the Button that asks when it connects (src/primitives/group-item.ts); null for anything else. */
|
|
122
|
+
[GROUP_PLACE](child: Element): GroupPlace | null;
|
|
123
|
+
/** CLO-23: every action is told its place, and one that is an action no more is told it has none. */
|
|
124
|
+
private place;
|
|
125
|
+
private readonly onSlotChange;
|
|
126
|
+
/** Whether `node` is in the callout: its own content or its shadow root. */
|
|
127
|
+
private holds;
|
|
128
|
+
/** CLO-12: where focus was before it entered the callout. */
|
|
129
|
+
private readonly onFocusIn;
|
|
130
|
+
private readonly onFocusOut;
|
|
131
|
+
/**
|
|
132
|
+
* CLO-11: the close button, by pointer, touch, Enter or Space (the native button's click): `open` becomes false,
|
|
133
|
+
* focus goes back where it was before it entered the callout (CLO-12), and `dismiss` says the person closed it — once.
|
|
134
|
+
*/
|
|
135
|
+
private readonly onClose;
|
|
136
|
+
/** CLO-19: where style queries are missing, the focus style is read when focus arrives. */
|
|
137
|
+
private readonly onFocus;
|
|
138
|
+
/**
|
|
139
|
+
* CLO-21: announced once — through the live region of its politeness, a frame after both were emptied, so that a text
|
|
140
|
+
* equal to the last one is announced again. Nothing is announced while it is not live, not open or empty. The two
|
|
141
|
+
* regions carry `aria-live` and no role: the role is the host's, and a note must not hold an empty alert.
|
|
142
|
+
*/
|
|
143
|
+
private announce;
|
|
144
|
+
/** CLO-21: a change of the title or the body while it is shown; what changes inside a glyph or an action is not one. */
|
|
145
|
+
private readonly onContent;
|
|
146
|
+
private watchContent;
|
|
147
|
+
connectedCallback(): void;
|
|
148
|
+
disconnectedCallback(): void;
|
|
149
|
+
protected willUpdate(changed: PropertyValues): void;
|
|
150
|
+
protected updated(changed: PropertyValues): void;
|
|
151
|
+
protected render(): import("lit").TemplateResult<1>;
|
|
152
|
+
}
|
|
153
|
+
declare global {
|
|
154
|
+
interface HTMLElementTagNameMap {
|
|
155
|
+
'tanrei-callout': TanreiCallout;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
@@ -0,0 +1,436 @@
|
|
|
1
|
+
import { LitElement, html, nothing } from 'lit';
|
|
2
|
+
import { classMap } from 'lit/directives/class-map.js';
|
|
3
|
+
import { AvailabilityController, GROUP_ITEM, GROUP_PLACE, GlyphDrawnController, GlyphMirrorController, OpenAxesController, PressController, focusWithin, hostAria, report, returnFocus, syncFocusStyle, WordsController, } from '../../primitives/index.js';
|
|
4
|
+
import { AXES, STATUSES, styles } from './callout.styles.js';
|
|
5
|
+
/** CLO-5: each status's glyph from the system's icon set, the ones a snackbar draws. */
|
|
6
|
+
const GLYPHS = { info: 'info', warning: 'warning', error: 'error', success: 'check_circle' };
|
|
7
|
+
/**
|
|
8
|
+
* CLO-9, CLO-23: what an action is told through the Button's internal channel (src/primitives/group-item.ts) — the one
|
|
9
|
+
* thing a button group's standard item has that a Button alone has not: its label may wrap when its line gives it less
|
|
10
|
+
* than one line needs. First and last, so its hit area reaches as far as it would alone. (As the empty state: EMP-6.)
|
|
11
|
+
*/
|
|
12
|
+
const ACTION_PLACE = { variant: 'standard', first: true, last: true };
|
|
13
|
+
const isStatus = (status) => STATUSES.includes(status);
|
|
14
|
+
/**
|
|
15
|
+
* `open` is a boolean that defaults to true, and its attribute says so: absent is true, `open` (or any other value) is
|
|
16
|
+
* true, and `open="false"` is false — the one way markup starts a callout closed.
|
|
17
|
+
*/
|
|
18
|
+
const openConverter = {
|
|
19
|
+
fromAttribute: (value) => value === null || value.trim().toLowerCase() !== 'false',
|
|
20
|
+
toAttribute: (value) => (value === false ? 'false' : null),
|
|
21
|
+
};
|
|
22
|
+
/** Text as it is read: one run, its white space collapsed. */
|
|
23
|
+
const spoken = (text) => (text ?? '').replace(/\s+/gu, ' ').trim();
|
|
24
|
+
let titles = 0;
|
|
25
|
+
/**
|
|
26
|
+
* A notice that is part of the content and stays there, as a quiet fill or an outline, in a status's colors with its glyph.
|
|
27
|
+
* A note, a caution, the reason for something or a summary of what is wrong, in the flow of the page, with an optional
|
|
28
|
+
* title, actions and a close button.
|
|
29
|
+
*
|
|
30
|
+
* Contract: specs/callout.spec.json. `<tanrei-callout status="warning">…</tanrei-callout>`: the body is the element's
|
|
31
|
+
* own content (text, or the product's blocks — long-form blocks in a `<div class="tanrei-prose" data-measure="false">`),
|
|
32
|
+
* the title is the `headline` attribute or the `title` slot, a glyph of the icon set goes in the `icon` slot, and the
|
|
33
|
+
* product's Buttons or links in the `actions` slot. Every visual value is a `--tanrei-comp-callout-*` token, one set per
|
|
34
|
+
* variant and status; how far its corners ease is the system's amount (`--tanrei-sys-shape-corner-smoothing`).
|
|
35
|
+
*
|
|
36
|
+
* It is a note (`role="note"`), read where it stands and never announced. With `live` it is a live region instead: it
|
|
37
|
+
* is announced once when it is shown after the page was presented and when its title, body or status changes — politely
|
|
38
|
+
* (`role="status"`), or assertively for warning and error (`role="alert"`). It never takes focus.
|
|
39
|
+
*
|
|
40
|
+
* A status is never told by color alone: a status form draws the status's glyph, and the title says it or
|
|
41
|
+
* `statusLabel` adds it in words for assistive technology ("Warning, …") without drawing it.
|
|
42
|
+
*
|
|
43
|
+
* `title` is the `headline` property and attribute, because HTML's global `title` would show a tooltip over the block.
|
|
44
|
+
* `open` defaults to true; `open="false"` is how markup starts a callout closed.
|
|
45
|
+
*
|
|
46
|
+
* @tag tanrei-callout
|
|
47
|
+
* @slot - The body: text, or the product's own blocks (paragraphs, lists, a table, a code block, any component). Text placed directly takes the callout's text style and color; long-form blocks go in a `<div class="tanrei-prose" data-measure="false">` (with `data-size="large"` in a large callout).
|
|
48
|
+
* @slot icon - A glyph of the system's icon set (its ligature text, in an element), drawn in place of the status glyph, or as the glyph of a callout without a status. A glyph the icon set flags is mirrored in right-to-left; `data-mirror="auto | always | never"` on the element decides for one use.
|
|
49
|
+
* @slot title - The product's own title content in place of `headline`: text with inline content, or a heading of the level the page's outline needs. It is drawn in the title's style; its role and its level are not changed.
|
|
50
|
+
* @slot actions - The product's own Buttons or links, one or two, laid out in a row below the text.
|
|
51
|
+
* @csspart container - The block: its fill, its edge in the outlined look, its corners and paddings.
|
|
52
|
+
* @csspart icon - The box the glyph is drawn in (hidden from assistive technology).
|
|
53
|
+
* @csspart title - The title.
|
|
54
|
+
* @csspart body - The body.
|
|
55
|
+
* @csspart actions - The row of actions.
|
|
56
|
+
* @csspart close - The close button.
|
|
57
|
+
* @fires dismiss - The person closed the callout with its close button. Fired once, after `open` became false; never when the product sets `open`.
|
|
58
|
+
*/
|
|
59
|
+
export class TanreiCallout extends LitElement {
|
|
60
|
+
static { this.styles = styles; }
|
|
61
|
+
static { this.properties = {
|
|
62
|
+
headline: { type: String },
|
|
63
|
+
status: { type: String, reflect: true },
|
|
64
|
+
statusLabel: { type: String, attribute: 'status-label' },
|
|
65
|
+
variant: { type: String, reflect: true },
|
|
66
|
+
size: { type: String, reflect: true },
|
|
67
|
+
live: { type: Boolean, reflect: true },
|
|
68
|
+
closable: { type: Boolean, reflect: true },
|
|
69
|
+
closeLabel: { type: String, attribute: 'close-label' },
|
|
70
|
+
open: { reflect: true, converter: openConverter },
|
|
71
|
+
hasIcon: { state: true },
|
|
72
|
+
hasTitle: { state: true },
|
|
73
|
+
hasBody: { state: true },
|
|
74
|
+
hasActions: { state: true },
|
|
75
|
+
}; }
|
|
76
|
+
constructor() {
|
|
77
|
+
super();
|
|
78
|
+
this.availability = new AvailabilityController(this, 'callout');
|
|
79
|
+
/** The product's words, read where the instance gives none (src/primitives/words.ts). */
|
|
80
|
+
this.words = new WordsController(this);
|
|
81
|
+
/** A few words above the body that name the notice ("Not published yet"): the spec's `title`. Plain text, never a heading. Empty draws the body alone; the `title` slot takes its place. */
|
|
82
|
+
this.headline = '';
|
|
83
|
+
/** What the notice is: default (a neutral aside, no glyph unless the product gives one), info, warning, error or success, each in its colors with its glyph. A live callout is announced assertively for warning and error. */
|
|
84
|
+
this.status = 'default';
|
|
85
|
+
/** The status in words ("Warning"), read by assistive technology before the title and the body and not drawn. For a callout whose title does not itself say the status. Ignored while `status` is default. */
|
|
86
|
+
this.statusLabel = '';
|
|
87
|
+
/** How much the callout weighs: tonal is a quiet fill; outlined has no fill and one hairline, for a tinted surface or many callouts close together. */
|
|
88
|
+
this.variant = 'tonal';
|
|
89
|
+
/** The size of the text: medium sets it in the interface's text style, large in the style for long reading. Paddings, the glyph and the close button are the same at both. */
|
|
90
|
+
this.size = 'medium';
|
|
91
|
+
/** Whether the callout is announced: false is a note, read where it stands; true is a live region, announced once when it is shown after the page was presented and when its content changes. It changes nothing that is drawn. */
|
|
92
|
+
this.live = false;
|
|
93
|
+
/** Draws a close button, for a notice the person may put away. */
|
|
94
|
+
this.closable = false;
|
|
95
|
+
/** The close button's accessible name, in the product's language ("Close"). Required while `closable` is set. */
|
|
96
|
+
this.closeLabel = '';
|
|
97
|
+
/** Whether the callout is shown. The close button sets it to false. The attribute: absent is true, `open="false"` is false. */
|
|
98
|
+
this.open = true;
|
|
99
|
+
/** Whether the icon slot has content. */
|
|
100
|
+
this.hasIcon = false;
|
|
101
|
+
/** Whether the title slot has content. */
|
|
102
|
+
this.hasTitle = false;
|
|
103
|
+
/** Whether the default slot has content: an element, or text that is not white space. */
|
|
104
|
+
this.hasBody = false;
|
|
105
|
+
/** Whether the actions slot has content. */
|
|
106
|
+
this.hasActions = false;
|
|
107
|
+
/** CLO-23: the actions that were told their place. */
|
|
108
|
+
this.placed = new Set();
|
|
109
|
+
/** CLO-30: sizes and variants a design system adds, and a value the active system does not have (src/primitives/axes.ts). */
|
|
110
|
+
this.axes = new OpenAxesController(this, { component: 'callout', behavior: 'CLO-30', axes: AXES });
|
|
111
|
+
/**
|
|
112
|
+
* CLO-27: the glyph in the icon slot is marked when the icon set mirrors its name in right-to-left, or the product's
|
|
113
|
+
* `data-mirror` says so; the callout's own glyphs go through the same rule, which marks none of them under the
|
|
114
|
+
* default icon set. `iconGlyph()` draws the mark. The callout mirrors nothing itself.
|
|
115
|
+
*/
|
|
116
|
+
this.mirror = new GlyphMirrorController(this, { slots: 'slot[name="icon"]', drawn: '.icon.own, .glyph' });
|
|
117
|
+
/** CLO-29: each glyph box carries `data-drawn` while the icon set can draw its ligature; until then it draws nothing. */
|
|
118
|
+
this.glyphs = new GlyphDrawnController(this, () => this.renderRoot?.querySelectorAll('.icon, .glyph') ?? []);
|
|
119
|
+
/** CLO-17, CLO-18: the close button's pressed state. */
|
|
120
|
+
this.press = new PressController(this, {
|
|
121
|
+
container: () => this.renderRoot?.querySelector('.close') ?? null,
|
|
122
|
+
holdCarrier: () => this.renderRoot.querySelector('.close .hold'),
|
|
123
|
+
disabled: () => false,
|
|
124
|
+
});
|
|
125
|
+
/** CLO-31: the custom state the styles read to take an empty callout out of the layout. */
|
|
126
|
+
this.internals = typeof this.attachInternals === 'function' ? this.attachInternals() : null;
|
|
127
|
+
/** CLO-12: the element that had focus before focus entered the callout. */
|
|
128
|
+
this.cameFrom = null;
|
|
129
|
+
this.focusInside = false;
|
|
130
|
+
/**
|
|
131
|
+
* CLO-21: whether this callout was already in the document when its element was made — written in the page's markup
|
|
132
|
+
* and upgraded — which is being drawn with the page's first presentation.
|
|
133
|
+
*/
|
|
134
|
+
this.upgraded = this.isConnected;
|
|
135
|
+
/** CLO-21: whether its first render is announced: it was added by the product after the page was presented. */
|
|
136
|
+
this.announceFirst = false;
|
|
137
|
+
/** Whether it has been drawn once: what changes after that is a change. */
|
|
138
|
+
this.presented = false;
|
|
139
|
+
this.pending = 0;
|
|
140
|
+
/** CLO-21: hears the title and the body change while it is live. */
|
|
141
|
+
this.content$ = null;
|
|
142
|
+
this.onSlotChange = () => this.scan();
|
|
143
|
+
/** CLO-12: where focus was before it entered the callout. */
|
|
144
|
+
this.onFocusIn = (event) => {
|
|
145
|
+
if (!this.focusInside)
|
|
146
|
+
this.cameFrom = event.relatedTarget instanceof Element && !this.holds(event.relatedTarget) ? event.relatedTarget : null;
|
|
147
|
+
this.focusInside = true;
|
|
148
|
+
};
|
|
149
|
+
this.onFocusOut = (event) => {
|
|
150
|
+
const to = event.relatedTarget;
|
|
151
|
+
if (to instanceof Node && this.holds(to))
|
|
152
|
+
return;
|
|
153
|
+
this.focusInside = false;
|
|
154
|
+
};
|
|
155
|
+
/**
|
|
156
|
+
* CLO-11: the close button, by pointer, touch, Enter or Space (the native button's click): `open` becomes false,
|
|
157
|
+
* focus goes back where it was before it entered the callout (CLO-12), and `dismiss` says the person closed it — once.
|
|
158
|
+
*/
|
|
159
|
+
this.onClose = () => {
|
|
160
|
+
if (!this.open)
|
|
161
|
+
return;
|
|
162
|
+
const inside = focusWithin(this);
|
|
163
|
+
const from = this.cameFrom;
|
|
164
|
+
this.open = false;
|
|
165
|
+
if (inside)
|
|
166
|
+
returnFocus(from, this);
|
|
167
|
+
this.cameFrom = null;
|
|
168
|
+
this.dispatchEvent(new CustomEvent('dismiss', { bubbles: true }));
|
|
169
|
+
};
|
|
170
|
+
/** CLO-19: where style queries are missing, the focus style is read when focus arrives. */
|
|
171
|
+
this.onFocus = (event) => syncFocusStyle(this, event.target);
|
|
172
|
+
/** CLO-21: a change of the title or the body while it is shown; what changes inside a glyph or an action is not one. */
|
|
173
|
+
this.onContent = (records) => {
|
|
174
|
+
const SLOTS = '[slot="icon"], [slot="actions"]';
|
|
175
|
+
const apart = (element) => {
|
|
176
|
+
const mark = element?.closest(SLOTS);
|
|
177
|
+
return !!mark && mark !== this && this.contains(mark);
|
|
178
|
+
};
|
|
179
|
+
const touched = (record) => {
|
|
180
|
+
if (apart(record.target instanceof Element ? record.target : record.target.parentElement))
|
|
181
|
+
return false;
|
|
182
|
+
if (record.type !== 'childList' || record.target !== this)
|
|
183
|
+
return true;
|
|
184
|
+
return [...record.addedNodes, ...record.removedNodes].some((node) => !(node instanceof Element && (node.slot === 'icon' || node.slot === 'actions')));
|
|
185
|
+
};
|
|
186
|
+
if (this.presented && records.some(touched))
|
|
187
|
+
this.announce();
|
|
188
|
+
};
|
|
189
|
+
this.addEventListener('focusin', this.onFocusIn);
|
|
190
|
+
this.addEventListener('focusout', this.onFocusOut);
|
|
191
|
+
}
|
|
192
|
+
/** CLO-30: a status this spec does not have is `default`. */
|
|
193
|
+
get form() {
|
|
194
|
+
return isStatus(this.status) ? this.status : 'default';
|
|
195
|
+
}
|
|
196
|
+
/** CLO-21: warning and error are announced assertively, as a snackbar's. */
|
|
197
|
+
get assertive() {
|
|
198
|
+
return this.form === 'warning' || this.form === 'error';
|
|
199
|
+
}
|
|
200
|
+
get titled() {
|
|
201
|
+
return this.hasTitle || this.headline.trim() !== '';
|
|
202
|
+
}
|
|
203
|
+
/** CLO-31: neither a title nor a body — a glyph, actions or a close button alone are not a notice. */
|
|
204
|
+
get empty() {
|
|
205
|
+
return !this.titled && !this.hasBody;
|
|
206
|
+
}
|
|
207
|
+
/** The element in the title slot, if any. */
|
|
208
|
+
get slottedTitle() {
|
|
209
|
+
return [...this.children].find((child) => child.slot === 'title') ?? null;
|
|
210
|
+
}
|
|
211
|
+
/** @internal What a live callout announces (CLO-21): statusLabel in a status form, the title, then the whole body. */
|
|
212
|
+
get announcement() {
|
|
213
|
+
const status = this.form === 'default' ? '' : this.statusLabel;
|
|
214
|
+
const title = this.hasTitle ? [...this.children].filter((child) => child.slot === 'title').map((child) => child.textContent).join(' ') : this.headline;
|
|
215
|
+
const body = [...this.childNodes]
|
|
216
|
+
.filter((node) => node.nodeType === Node.TEXT_NODE || (node instanceof Element && !node.slot))
|
|
217
|
+
.map((node) => node.textContent)
|
|
218
|
+
.join(' ');
|
|
219
|
+
return [status, title, body]
|
|
220
|
+
.map(spoken)
|
|
221
|
+
.filter(Boolean)
|
|
222
|
+
.reduce((said, part) => (said ? `${said}${/[.!?。!?]$/u.test(said) ? ' ' : '. '}${part}` : part), '');
|
|
223
|
+
}
|
|
224
|
+
/** What the light DOM holds for each slot, read from the children: they are there before a slot says so. */
|
|
225
|
+
scan() {
|
|
226
|
+
let icon = false;
|
|
227
|
+
let title = false;
|
|
228
|
+
let actions = false;
|
|
229
|
+
let body = false;
|
|
230
|
+
for (const node of this.childNodes) {
|
|
231
|
+
if (node instanceof Element) {
|
|
232
|
+
if (node.slot === 'icon')
|
|
233
|
+
icon = true;
|
|
234
|
+
else if (node.slot === 'title')
|
|
235
|
+
title ||= spoken(node.textContent) !== '' || node.childElementCount > 0;
|
|
236
|
+
else if (node.slot === 'actions')
|
|
237
|
+
actions = true;
|
|
238
|
+
else if (!node.slot)
|
|
239
|
+
body = true;
|
|
240
|
+
}
|
|
241
|
+
else if (node.nodeType === Node.TEXT_NODE && spoken(node.textContent) !== '')
|
|
242
|
+
body = true;
|
|
243
|
+
}
|
|
244
|
+
this.hasIcon = icon;
|
|
245
|
+
this.hasTitle = title;
|
|
246
|
+
this.hasActions = actions;
|
|
247
|
+
this.hasBody = body;
|
|
248
|
+
this.place();
|
|
249
|
+
}
|
|
250
|
+
/** @internal CLO-23: where an action stands, for the Button that asks when it connects (src/primitives/group-item.ts); null for anything else. */
|
|
251
|
+
[GROUP_PLACE](child) {
|
|
252
|
+
return child.parentElement === this && child.slot === 'actions' ? ACTION_PLACE : null;
|
|
253
|
+
}
|
|
254
|
+
/** CLO-23: every action is told its place, and one that is an action no more is told it has none. */
|
|
255
|
+
place() {
|
|
256
|
+
const actions = new Set([...this.children].filter((child) => child.slot === 'actions'));
|
|
257
|
+
for (const gone of this.placed)
|
|
258
|
+
if (!actions.has(gone) && gone.parentElement === this)
|
|
259
|
+
gone[GROUP_ITEM]?.set(null);
|
|
260
|
+
for (const action of actions)
|
|
261
|
+
action[GROUP_ITEM]?.set(ACTION_PLACE);
|
|
262
|
+
this.placed = actions;
|
|
263
|
+
}
|
|
264
|
+
/** Whether `node` is in the callout: its own content or its shadow root. */
|
|
265
|
+
holds(node) {
|
|
266
|
+
return this.contains(node) || !!this.shadowRoot?.contains(node);
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* CLO-21: announced once — through the live region of its politeness, a frame after both were emptied, so that a text
|
|
270
|
+
* equal to the last one is announced again. Nothing is announced while it is not live, not open or empty. The two
|
|
271
|
+
* regions carry `aria-live` and no role: the role is the host's, and a note must not hold an empty alert.
|
|
272
|
+
*/
|
|
273
|
+
announce() {
|
|
274
|
+
cancelAnimationFrame(this.pending);
|
|
275
|
+
const regions = [...(this.renderRoot?.querySelectorAll('.announce') ?? [])];
|
|
276
|
+
for (const region of regions)
|
|
277
|
+
region.textContent = '';
|
|
278
|
+
if (!this.live || !this.open || this.empty)
|
|
279
|
+
return;
|
|
280
|
+
this.pending = requestAnimationFrame(() => {
|
|
281
|
+
const region = this.renderRoot.querySelector(this.assertive ? '.announce[aria-live="assertive"]' : '.announce[aria-live="polite"]');
|
|
282
|
+
if (region && this.live && this.open && !this.empty)
|
|
283
|
+
region.textContent = this.announcement;
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
watchContent() {
|
|
287
|
+
if (this.live && this.isConnected && typeof MutationObserver !== 'undefined') {
|
|
288
|
+
if (this.content$)
|
|
289
|
+
return;
|
|
290
|
+
this.content$ = new MutationObserver(this.onContent);
|
|
291
|
+
this.content$.observe(this, { childList: true, characterData: true, subtree: true });
|
|
292
|
+
}
|
|
293
|
+
else {
|
|
294
|
+
this.content$?.disconnect();
|
|
295
|
+
this.content$ = null;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
connectedCallback() {
|
|
299
|
+
super.connectedCallback();
|
|
300
|
+
// CLO-21: one written in the page's markup, or made while the page is still being read, is part of its first
|
|
301
|
+
// presentation and is not announced then; one the product adds later is.
|
|
302
|
+
if (!this.presented)
|
|
303
|
+
this.announceFirst = !this.upgraded && document.readyState === 'complete';
|
|
304
|
+
if (this.presented)
|
|
305
|
+
this.watchContent();
|
|
306
|
+
}
|
|
307
|
+
disconnectedCallback() {
|
|
308
|
+
super.disconnectedCallback();
|
|
309
|
+
cancelAnimationFrame(this.pending);
|
|
310
|
+
this.content$?.disconnect();
|
|
311
|
+
this.content$ = null;
|
|
312
|
+
}
|
|
313
|
+
willUpdate(changed) {
|
|
314
|
+
// The first render already draws the right parts: the light-DOM children are there before a slot says so.
|
|
315
|
+
if (!this.hasUpdated)
|
|
316
|
+
this.scan();
|
|
317
|
+
// CLO-12: closed by the product while focus is inside it (the close button's own path has already moved it).
|
|
318
|
+
if (changed.has('open') && !this.open && this.hasUpdated && focusWithin(this)) {
|
|
319
|
+
returnFocus(this.cameFrom, this);
|
|
320
|
+
this.cameFrom = null;
|
|
321
|
+
}
|
|
322
|
+
// CLO-31: neither a title nor a body, no callout.
|
|
323
|
+
try {
|
|
324
|
+
if (this.empty)
|
|
325
|
+
this.internals?.states.add('empty');
|
|
326
|
+
else
|
|
327
|
+
this.internals?.states.delete('empty');
|
|
328
|
+
}
|
|
329
|
+
catch {
|
|
330
|
+
// A browser without custom states: the empty callout is a block of no height.
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
updated(changed) {
|
|
334
|
+
const has = (name) => changed.has(name);
|
|
335
|
+
const shown = this.open && !this.empty;
|
|
336
|
+
const title = this.hasTitle ? this.slottedTitle : null;
|
|
337
|
+
// CLO-7, CLO-20: the product's title names the callout from where it is; it needs an id to be named by.
|
|
338
|
+
if (title && !title.id)
|
|
339
|
+
title.id = `tanrei-callout-title-${++titles}`;
|
|
340
|
+
const statusLabel = this.form !== 'default' ? this.statusLabel.trim() : '';
|
|
341
|
+
// CLO-20, CLO-21: a note, or — live — a live region by its status. The announcement is made by the live region in
|
|
342
|
+
// the shadow root, once (announce()), so the host's own role does not announce a second time. Named by its title,
|
|
343
|
+
// or by statusLabel without one. Closed or empty it exposes nothing (CLO-13, CLO-31).
|
|
344
|
+
hostAria(this, {
|
|
345
|
+
role: shown ? (this.live ? (this.assertive ? 'alert' : 'status') : 'note') : null,
|
|
346
|
+
'aria-live': shown && this.live ? 'off' : null,
|
|
347
|
+
'aria-labelledby': shown && title ? title.id : null,
|
|
348
|
+
'aria-label': shown && !title ? this.headline.trim() || statusLabel || null : null,
|
|
349
|
+
});
|
|
350
|
+
this.watchContent();
|
|
351
|
+
// CLO-21: shown after its first presentation, or its title, body or status changed while shown.
|
|
352
|
+
if (this.live) {
|
|
353
|
+
const first = !this.presented;
|
|
354
|
+
const opened = has('open') && this.open && !first;
|
|
355
|
+
const altered = !first && (has('headline') || has('status') || has('statusLabel') || has('hasTitle') || has('hasBody'));
|
|
356
|
+
if ((first && this.announceFirst) || opened || altered)
|
|
357
|
+
this.announce();
|
|
358
|
+
}
|
|
359
|
+
if (has('open') && !this.open)
|
|
360
|
+
this.announce();
|
|
361
|
+
this.presented = true;
|
|
362
|
+
// CLO-30: a status this spec does not have is drawn as default. (An unknown size or variant is the axes' to report.)
|
|
363
|
+
if (has('status') && this.status !== 'default' && !isStatus(this.status)) {
|
|
364
|
+
report(this, 'CLO-30', `status "${this.status}" is not a status of a callout; it is drawn as "default"`);
|
|
365
|
+
}
|
|
366
|
+
// CLO-31: what a debug build tells the product.
|
|
367
|
+
if (this.empty && (has('headline') || has('hasTitle') || has('hasBody'))) {
|
|
368
|
+
report(this, 'CLO-31', 'the callout has no title and no body, so it draws nothing; a glyph, actions or a close button alone are not a notice');
|
|
369
|
+
}
|
|
370
|
+
if (!this.empty && this.form !== 'default' && !this.titled && !this.statusLabel.trim()) {
|
|
371
|
+
report(this, 'CLO-31', `status is "${this.form}" but the callout has no title and status-label is empty, so the status is not given in words; give it a title that says it, or a status-label`);
|
|
372
|
+
}
|
|
373
|
+
if ((has('closable') || has('closeLabel')) && this.closable && this.words.lacks('closeLabel', this.closeLabel)) {
|
|
374
|
+
report(this, 'CLO-31', 'closable is set but close-label is empty, so the close button has no accessible name; give it a close-label');
|
|
375
|
+
}
|
|
376
|
+
if ((has('statusLabel') || has('status')) && this.statusLabel.trim() && this.form === 'default') {
|
|
377
|
+
report(this, 'CLO-31', `status-label "${this.statusLabel}" is ignored while status is default; give the callout a status, or put the words in its title`);
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
render() {
|
|
381
|
+
const form = this.form;
|
|
382
|
+
const empty = this.empty;
|
|
383
|
+
const headline = this.headline.trim();
|
|
384
|
+
// CLO-5, CLO-6: the status's glyph, unless the product gave one; none without a status.
|
|
385
|
+
const own = form !== 'default' && !this.hasIcon ? GLYPHS[form] : '';
|
|
386
|
+
// CLO-20: the status in words, then the title and the body — phrases of one text ("Warning, …"). Not while status is default.
|
|
387
|
+
const statusLabel = form !== 'default' ? this.statusLabel.trim() : '';
|
|
388
|
+
const p = this.press;
|
|
389
|
+
return html `
|
|
390
|
+
<div
|
|
391
|
+
part="container"
|
|
392
|
+
class="container ${classMap({ 'has-lead': !!own || this.hasIcon, titled: this.titled, 'has-body': this.hasBody, 'has-actions': this.hasActions, closable: this.closable })}"
|
|
393
|
+
data-tanrei-shape
|
|
394
|
+
?hidden=${empty}
|
|
395
|
+
@slotchange=${this.onSlotChange}
|
|
396
|
+
>
|
|
397
|
+
<span class="lead" aria-hidden="true">
|
|
398
|
+
<span part="icon" class="icon ${classMap({ own: !!own })}">${own ? html `<span class="ink">${own}</span>` : nothing}<slot name="icon"></slot></span>
|
|
399
|
+
</span>
|
|
400
|
+
<div class="text">
|
|
401
|
+
${statusLabel ? html `<span class="status-label">${statusLabel}, </span>` : nothing}
|
|
402
|
+
<div part="title" class="title">${headline && !this.hasTitle ? html `<span class="headline">${this.headline}</span>` : nothing}<slot name="title"></slot></div>
|
|
403
|
+
<div part="body" class="body"><slot></slot></div>
|
|
404
|
+
<div part="actions" class="actions"><slot name="actions"></slot></div>
|
|
405
|
+
</div>
|
|
406
|
+
${this.closable
|
|
407
|
+
? html `<span class="end"
|
|
408
|
+
><button
|
|
409
|
+
part="close"
|
|
410
|
+
class="close"
|
|
411
|
+
type="button"
|
|
412
|
+
data-tanrei-shape
|
|
413
|
+
aria-label=${this.words.get('closeLabel', this.closeLabel).trim() || nothing}
|
|
414
|
+
@click=${this.onClose}
|
|
415
|
+
@focus=${this.onFocus}
|
|
416
|
+
@pointerdown=${p.onPointerDown}
|
|
417
|
+
@pointerup=${p.release}
|
|
418
|
+
@pointercancel=${p.release}
|
|
419
|
+
@pointerleave=${p.release}
|
|
420
|
+
@keydown=${p.onKeyDown}
|
|
421
|
+
@keyup=${p.onKeyUp}
|
|
422
|
+
@blur=${p.onBlur}
|
|
423
|
+
>
|
|
424
|
+
<span class="glyph hold" aria-hidden="true"><span class="ink">close</span></span>
|
|
425
|
+
</button></span
|
|
426
|
+
>`
|
|
427
|
+
: nothing}
|
|
428
|
+
</div>
|
|
429
|
+
<div class="announce" aria-live="polite" aria-atomic="true"></div>
|
|
430
|
+
<div class="announce" aria-live="assertive" aria-atomic="true"></div>
|
|
431
|
+
`;
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
if (!customElements.get('tanrei-callout'))
|
|
435
|
+
customElements.define('tanrei-callout', TanreiCallout);
|
|
436
|
+
//# sourceMappingURL=callout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"callout.js","sourceRoot":"","sources":["../../../src/components/callout/callout.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,EACL,sBAAsB,EACtB,UAAU,EACV,WAAW,EACX,oBAAoB,EACpB,qBAAqB,EAGrB,kBAAkB,EAElB,eAAe,EACf,WAAW,EACX,QAAQ,EACR,MAAM,EACN,WAAW,EACX,cAAc,EACd,eAAe,GAChB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE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QAAQ,SAAS,CAAC,CAAC,CAAC,OAAO;;;;UAI7H,IAAI,CAAC,QAAQ;YACb,CAAC,CAAC,IAAI,CAAA;;;;;;6BAMa,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,YAAY,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,IAAI,EAAE,IAAI,OAAO;yBACnE,IAAI,CAAC,OAAO;yBACZ,IAAI,CAAC,OAAO;+BACN,CAAC,CAAC,aAAa;6BACjB,CAAC,CAAC,OAAO;iCACL,CAAC,CAAC,OAAO;gCACV,CAAC,CAAC,OAAO;2BACd,CAAC,CAAC,SAAS;yBACb,CAAC,CAAC,OAAO;wBACV,CAAC,CAAC,MAAM;;;;cAIlB;YACJ,CAAC,CAAC,OAAO;;;;KAId,CAAC;IACJ,CAAC;CACF;AAED,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,gBAAgB,CAAC;IAAE,cAAc,CAAC,MAAM,CAAC,gBAAgB,EAAE,aAAa,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type OpenAxis } from '../../primitives/index.js';
|
|
2
|
+
/** The values every design system has. A layer may add more; those get their styles on demand. */
|
|
3
|
+
export declare const CORE_VARIANTS: readonly ['tonal', 'outlined'];
|
|
4
|
+
export declare const CORE_SIZES: readonly ['medium', 'large'];
|
|
5
|
+
/** The statuses besides `default`: a closed set (CLO-30), each a prefix before the callout's parts (CLO-3). */
|
|
6
|
+
export declare const STATUSES: readonly ['info', 'warning', 'error', 'success'];
|
|
7
|
+
/**
|
|
8
|
+
* The open axes (CLO-30): a size or variant a layer added gets its block on demand, built by the same
|
|
9
|
+
* functions as the core blocks and falling back to the default's tokens; a value the active system lacks is reported in
|
|
10
|
+
* debug builds. A variant a layer adds has no edge: only `outlined` draws one (CLO-4).
|
|
11
|
+
*/
|
|
12
|
+
export declare const AXES: readonly OpenAxis[];
|
|
13
|
+
export declare const styles: import("lit").CSSResult;
|