@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,544 @@
|
|
|
1
|
+
import { LitElement, html, nothing } from 'lit';
|
|
2
|
+
import { AvailabilityController, DestinationsController, GlyphMirrorController, IndicatorDragController, NavigationDestination, hostAria, indicatorChoice, indicatorPlace, layoutScale, } from '../../primitives/index.js';
|
|
3
|
+
import { ownDirection } from '../../styles/product-text.js';
|
|
4
|
+
import { TanreiBadge } from '../badge/badge.js';
|
|
5
|
+
import { barStyles, itemStyles } from './navigation-bar.styles.js';
|
|
6
|
+
/** The item container's corners, for a clip drawn to its shape. */
|
|
7
|
+
const RADIUS = 'calc(var(--tanrei-corner-radius) * var(--_corner-scale))';
|
|
8
|
+
/** A length in px, to a hundredth (never in exponent notation). */
|
|
9
|
+
const px = (value) => `${Math.round(value * 100) / 100}px`;
|
|
10
|
+
const num = (value) => Math.round(value * 100) / 100;
|
|
11
|
+
const lerp = (a, b, p) => a + (b - a) * p;
|
|
12
|
+
const between = (a, b, p) => ({ left: lerp(a.left, b.left, p), top: lerp(a.top, b.top, p), right: lerp(a.right, b.right, p), bottom: lerp(a.bottom, b.bottom, p) });
|
|
13
|
+
/**
|
|
14
|
+
* A clip of `element` to `box`, with the item container's corners (negative insets reach outside the element). Both are
|
|
15
|
+
* read on the page and the clip is in the element's own pixels: under a scaled ancestor the two differ by `scale`.
|
|
16
|
+
*/
|
|
17
|
+
function clipTo(element, box, scale) {
|
|
18
|
+
const own = element.getBoundingClientRect();
|
|
19
|
+
return `inset(${px((box.top - own.top) / scale.y)} ${px((own.right - box.right) / scale.x)} ${px((own.bottom - box.bottom) / scale.y)} ${px((box.left - own.left) / scale.x)} round ${RADIUS})`;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* A clip of `element` to everything but `box` (rounded by `radius`), or nothing where the box does not meet it: the
|
|
23
|
+
* plain copy is cut away exactly where the covered copy is drawn, so nothing is painted twice (NVB-23).
|
|
24
|
+
*/
|
|
25
|
+
function cutOut(element, box, radius, scale) {
|
|
26
|
+
const own = element.getBoundingClientRect();
|
|
27
|
+
const [x, y, w, h] = [(box.left - own.left) / scale.x, (box.top - own.top) / scale.y, (box.right - box.left) / scale.x, (box.bottom - box.top) / scale.y];
|
|
28
|
+
if (!(w > 0 && h > 0 && x < own.width / scale.x && x + w > 0 && y < own.height / scale.y && y + h > 0))
|
|
29
|
+
return '';
|
|
30
|
+
// As the browser clamps a radius: at most half of either side.
|
|
31
|
+
const r = Math.max(0, Math.min(radius, w / 2, h / 2));
|
|
32
|
+
return `path(evenodd, "M-99999 -99999H99999V99999H-99999Z M${num(x + r)} ${num(y)}H${num(x + w - r)}A${num(r)} ${num(r)} 0 0 1 ${num(x + w)} ${num(y + r)}V${num(y + h - r)}A${num(r)} ${num(r)} 0 0 1 ${num(x + w - r)} ${num(y + h)}H${num(x + r)}A${num(r)} ${num(r)} 0 0 1 ${num(x)} ${num(y + h - r)}V${num(y + r)}A${num(r)} ${num(r)} 0 0 1 ${num(x + r)} ${num(y)}Z")`;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* One destination of a navigation bar — the spec's item kind `destination`: an icon, a label under it and an
|
|
36
|
+
* optional badge on the icon, inside the item container. Placed as a child of `<tanrei-navigation-bar>`, in order; the
|
|
37
|
+
* bar decides whether it is the selected one and answers its activation.
|
|
38
|
+
*
|
|
39
|
+
* It is a button, or with `href` a link (NVB-30): an `<a href>` in the shadow root, drawn exactly as the button
|
|
40
|
+
* is, whose context menu, new-tab gestures and address are the browser's own — except that it is not dragged as a link,
|
|
41
|
+
* because a sideways drag moves the active indicator. A link is not selected by a press (NVB-31): a plain activation
|
|
42
|
+
* makes the bar fire `change` (or `reselect`) — cancelable, with `detail.href`, before the browser follows the link —
|
|
43
|
+
* and the page shown next sets the bar's `value`; a modified or a middle click, a link whose `target` is `new` and a
|
|
44
|
+
* download fire nothing. Without a `value` a link's `href` is its value. `target="new"` opens a new tab, safely
|
|
45
|
+
* (`noopener`), and draws no mark — a cell has no place for one — so `targetLabel` says it (NVB-32). Space does not
|
|
46
|
+
* activate a link.
|
|
47
|
+
*
|
|
48
|
+
* It is named by its label whether or not the label is drawn, the selected one `aria-current="page"`, its badge's
|
|
49
|
+
* text and then, for a link that opens a new context, `targetLabel` its description; its host is a list item of the
|
|
50
|
+
* bar's list. Its icon and label are drawn twice: the second copy, in the covered colors and clipped to the active
|
|
51
|
+
* indicator, is hidden from assistive technology (NVB-23).
|
|
52
|
+
*
|
|
53
|
+
* Its properties are the shared destination's (`src/primitives/destination.ts`): `value`, `label`, `icon`, `disabled`,
|
|
54
|
+
* `badge`, `badgeCount` (`badge-count`), `badgeLabel` (`badge-label`), `href`, `target`, `targetLabel`
|
|
55
|
+
* (`target-label`) and the web-only `rel` and `download`.
|
|
56
|
+
*
|
|
57
|
+
* @tag tanrei-navigation-bar-item
|
|
58
|
+
* @csspart cell - The whole cell: the native button or link, the hit area.
|
|
59
|
+
* @csspart container - The item container: the destination's whole share of the bar, held in from the bar's edges by `comp.navigation-bar.container.padding` — the same box for every destination. The state layer's box, the focus ring's and the ripple's.
|
|
60
|
+
* @csspart active-indicator - The fill of the item container (the active indicator while selected).
|
|
61
|
+
* @csspart icon-indicator - The box behind the icon alone (transparent in the default system).
|
|
62
|
+
* @csspart icon - The glyph (hidden from assistive technology).
|
|
63
|
+
* @csspart label - The label (hidden from assistive technology: the cell is named by it).
|
|
64
|
+
* @csspart covered-content - The copy of the icon and label in the covered colors, clipped to the active indicator (hidden from assistive technology).
|
|
65
|
+
*/
|
|
66
|
+
export class TanreiNavigationBarItem extends NavigationDestination {
|
|
67
|
+
constructor() {
|
|
68
|
+
super(...arguments);
|
|
69
|
+
/**
|
|
70
|
+
* NVB-25: the destination's glyph, in both of its copies (NVB-23), is marked when the icon set mirrors its name in
|
|
71
|
+
* right-to-left (src/primitives/glyph-mirror.ts); `iconGlyph()` draws the mark.
|
|
72
|
+
*/
|
|
73
|
+
this.mirror = new GlyphMirrorController(this, { drawn: '.icon, .c-icon' });
|
|
74
|
+
}
|
|
75
|
+
static { this.styles = itemStyles; }
|
|
76
|
+
/** @internal The item container, which the bar measures to move its active indicator (NVB-15, NVB-27). */
|
|
77
|
+
get itemContainer() {
|
|
78
|
+
return this.renderRoot?.querySelector('.container') ?? null;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* @internal NVB-23: clips the covered copy to where the bar draws the active indicator while it moves, cuts the plain
|
|
82
|
+
* copy away there — and, on the destination whose colors the indicator has, leaves the item container's own fill
|
|
83
|
+
* undrawn, so that the indicator is painted once. `null` gives all of them back to the styles: at rest the
|
|
84
|
+
* selected destination draws its covered copy whole and every other destination none of it.
|
|
85
|
+
*/
|
|
86
|
+
setCover(cover) {
|
|
87
|
+
const root = this.renderRoot;
|
|
88
|
+
const covered = root?.querySelector('.covered');
|
|
89
|
+
const fill = root?.querySelector('.indicator');
|
|
90
|
+
if (!covered || !fill)
|
|
91
|
+
return;
|
|
92
|
+
const plain = [...root.querySelectorAll('.plain, .label-box')];
|
|
93
|
+
// While the indicator moves the plain copy is drawn wherever it is not covered; at rest the selected one is wholly covered.
|
|
94
|
+
this.itemContainer?.toggleAttribute('data-moving', !!cover);
|
|
95
|
+
if (!cover) {
|
|
96
|
+
for (const each of [covered, ...plain])
|
|
97
|
+
each.style.removeProperty('clip-path');
|
|
98
|
+
covered.style.removeProperty('opacity');
|
|
99
|
+
fill.style.removeProperty('visibility');
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
// Everything is read before anything is written.
|
|
103
|
+
const clip = clipTo(covered, cover.box, cover.scale);
|
|
104
|
+
// A fading indicator (NVB-15: appearing or disappearing in place) cross-fades the two copies instead.
|
|
105
|
+
const cuts = plain.map((each) => (cover.opacity >= 1 ? cutOut(each, cover.box, cover.radius, cover.scale) : ''));
|
|
106
|
+
covered.style.clipPath = clip;
|
|
107
|
+
covered.style.opacity = String(cover.opacity);
|
|
108
|
+
// The bar's layer is the indicator while it moves: the selected destination's own fill would be a second one.
|
|
109
|
+
if (cover.fill)
|
|
110
|
+
fill.style.visibility = 'hidden';
|
|
111
|
+
else
|
|
112
|
+
fill.style.removeProperty('visibility');
|
|
113
|
+
plain.forEach((each, index) => {
|
|
114
|
+
if (cuts[index])
|
|
115
|
+
each.style.clipPath = cuts[index];
|
|
116
|
+
else
|
|
117
|
+
each.style.removeProperty('clip-path');
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
/** NVB-15: the new icon indicator grows in width from its centre; the item container is the bar's to move. */
|
|
121
|
+
growIndicator() {
|
|
122
|
+
super.growIndicator('.icon-fill');
|
|
123
|
+
}
|
|
124
|
+
/** The glyph, inside the badge when there is one (NVB-16): the badge is drawn above it. */
|
|
125
|
+
badged(glyph, covered = false) {
|
|
126
|
+
if (!this.badge)
|
|
127
|
+
return glyph;
|
|
128
|
+
return html `<tanrei-badge class=${covered ? 'covered-badge' : nothing} .count=${this.badgeCount ?? null} label=${this.badgeLabel}>${glyph}</tanrei-badge>`;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* NVB-12, NVB-23: the item container around the column — the icon indicator with the icon in it, the label under it —
|
|
132
|
+
* and the same column again in the covered colors. Each copy has its own badge, so the badge is above both.
|
|
133
|
+
*/
|
|
134
|
+
content() {
|
|
135
|
+
return html `
|
|
136
|
+
<span part="container" class="container" data-tanrei-shape>
|
|
137
|
+
<span part="active-indicator" class="indicator" aria-hidden="true"></span>
|
|
138
|
+
<span class="content">
|
|
139
|
+
<span part="icon-indicator" class="icon-indicator" data-tanrei-shape>
|
|
140
|
+
<span class="icon-fill" aria-hidden="true"></span>
|
|
141
|
+
<span class="plain">${this.badged(html `<span part="icon" class="icon" aria-hidden="true">${this.icon}</span>`)}</span>
|
|
142
|
+
</span>
|
|
143
|
+
<span class="label-box" aria-hidden="true"><span part="label" class="label" dir=${ownDirection(this.label)}>${this.label}</span></span>
|
|
144
|
+
</span>
|
|
145
|
+
<span part="covered-content" class="covered" aria-hidden="true">
|
|
146
|
+
<span class="c-icon-indicator">${this.badged(html `<span class="c-icon">${this.icon}</span>`, true)}</span>
|
|
147
|
+
<span class="c-label-box"><span class="c-label" dir=${ownDirection(this.label)}>${this.label}</span></span>
|
|
148
|
+
</span>
|
|
149
|
+
</span>
|
|
150
|
+
<span class="hold"></span>
|
|
151
|
+
`;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Three to five top-level destinations along the bottom edge of a compact window, one of them the current screen.
|
|
156
|
+
*
|
|
157
|
+
* Contract: specs/navigation-bar.spec.json. `<tanrei-navigation-bar-item>` children are the destinations, in order. The
|
|
158
|
+
* bar's `value` is the selected destination's value; the bar sets it when a destination is activated — pointer, Enter,
|
|
159
|
+
* Space, `item.click()` — and then fires `change`, or `reselect` when the selected destination is activated again. The
|
|
160
|
+
* host is a navigation landmark named by `label`.
|
|
161
|
+
*
|
|
162
|
+
* A bar of links (NVB-30…33): a destination with `href` is a link, and the selected destination is the current page
|
|
163
|
+
* (`aria-current="page"`) — one state, which in a site of separate pages the page says, through `value` (a link without
|
|
164
|
+
* a `value` takes its `href`). The bar never writes `value` for a link: a plain activation (Enter, not Space) fires
|
|
165
|
+
* `change` or `reselect` with `detail.href`, cancelable, before the browser follows the link (a router cancels it, goes
|
|
166
|
+
* to `detail.href` itself and sets `value`), and the active indicator stays on the destination `value` selects until
|
|
167
|
+
* `value` changes; a modified or a middle click, a link whose `target` is `new` and a download are the browser's and
|
|
168
|
+
* fire nothing.
|
|
169
|
+
*
|
|
170
|
+
* The bar is the ground the active indicator moves on: one constant color. Each destination's item container is its
|
|
171
|
+
* whole equal share of the bar, held in from the bar's edges by `comp.navigation-bar.container.padding` — the same box
|
|
172
|
+
* for every destination, whatever it holds — and it is where the active indicator, hover, press and the focus indicator
|
|
173
|
+
* are drawn. When the selection changes, the active indicator — one layer of the bar — slides at its full size from the
|
|
174
|
+
* previous destination's item container to the new one's, and the covered copy of every destination's icon and label is
|
|
175
|
+
* clipped to it in the same frame (NVB-15, NVB-23); where nothing was selected it fades in, in place.
|
|
176
|
+
*
|
|
177
|
+
* A drag across the bar — by touch, a pen or a mouse, past 8 px and further sideways than up or down, while a
|
|
178
|
+
* destination is selected — carries the indicator with the pointer, its place and the covered colors changing
|
|
179
|
+
* continuously (NVB-27). Nothing is selected before the release, which chooses the nearer of the two destinations the
|
|
180
|
+
* indicator lies between (or the one a fling is toward), activates it as a tap would — `value`, one `change` — or
|
|
181
|
+
* returns the indicator and fires nothing; a release on a link is a plain press on that link (`change` with its
|
|
182
|
+
* `href`, the link followed, `value` not written), so the indicator returns to the destination `value` selects and goes
|
|
183
|
+
* on to the chosen one when the product sets `value`; Escape, a cancelled pointer, or `value` set meanwhile returns it
|
|
184
|
+
* (NVB-28, NVB-29).
|
|
185
|
+
*
|
|
186
|
+
* Every visual value comes from `--tanrei-comp-navigation-bar-*` tokens: `variant` chooses the conditions the
|
|
187
|
+
* destinations are drawn from (tonal: unselected and selected; filled: filled-unselected and filled-selected). How a
|
|
188
|
+
* press is answered and how keyboard focus is drawn are the system's choices of kind (`--tanrei-sys-behavior-*`).
|
|
189
|
+
* The color reaches under `env(safe-area-inset-bottom)` and the side insets; the destinations stay inside them.
|
|
190
|
+
*
|
|
191
|
+
* @tag tanrei-navigation-bar
|
|
192
|
+
* @slot - `<tanrei-navigation-bar-item>` children: the destinations.
|
|
193
|
+
* @csspart container - The bar: its color, elevation and the insets it reaches under.
|
|
194
|
+
* @csspart outline - The bar's top edge.
|
|
195
|
+
* @csspart indicator - The active indicator while it moves between destinations or follows a drag (at rest, the selected destination's item container is the indicator).
|
|
196
|
+
* @csspart list - The row of destinations (a list).
|
|
197
|
+
* @fires {CustomEvent<TanreiNavigationChangeDetail>} change - The user activated another destination, or released a drag of the active indicator on one: `detail.value` (and, for a button destination, the bar's `value`) is its value. For a link it is fired before the link is followed, only for a plain activation of a link that opens in place, carries `detail.href`, leaves `value` to the page, and is cancelable: `preventDefault()` stops the browser's navigation.
|
|
198
|
+
* @fires {CustomEvent<TanreiNavigationChangeDetail>} reselect - The user activated the selected destination again: `detail.value` is its value; for a link, as `change`. A drag that returns the indicator to it does not fire it.
|
|
199
|
+
*/
|
|
200
|
+
export class TanreiNavigationBar extends LitElement {
|
|
201
|
+
static { this.styles = barStyles; }
|
|
202
|
+
static { this.properties = {
|
|
203
|
+
value: { type: String },
|
|
204
|
+
variant: { type: String, reflect: true },
|
|
205
|
+
labelVisibility: { type: String, attribute: 'label-visibility', reflect: true },
|
|
206
|
+
label: { type: String },
|
|
207
|
+
}; }
|
|
208
|
+
constructor() {
|
|
209
|
+
super();
|
|
210
|
+
this.availability = new AvailabilityController(this, 'navigation-bar');
|
|
211
|
+
/** The value of the selected destination; empty selects none. The bar sets it when a button destination is activated, and never for a link (NVB-31): in a site of separate pages each page sets it to its own destination (a link's `href` where it has no `value`). */
|
|
212
|
+
this.value = '';
|
|
213
|
+
/** How the active indicator is filled: `tonal` (a soft container, the default) or `filled` (the strong color, the content inverted on it); anything else is `tonal`. Reflected. */
|
|
214
|
+
this.variant = 'tonal';
|
|
215
|
+
/** Which destinations draw their label: `always`, `selected` (only the selected one) or `never` (anything else is `always`). No item container changes size with it. Reflected. */
|
|
216
|
+
this.labelVisibility = 'always';
|
|
217
|
+
/** Names the navigation landmark ("Main"). */
|
|
218
|
+
this.label = '';
|
|
219
|
+
/** NVB-1…3, NVB-17, NVB-19, NVB-20, NVB-22, NVB-31: selection, activation and the debug reports (src/primitives/destination.ts). */
|
|
220
|
+
this.destinations = new DestinationsController(this, {
|
|
221
|
+
items: () => [...this.children].filter((child) => child instanceof TanreiNavigationBarItem),
|
|
222
|
+
ids: { unknownValue: 'NVB-3', emptyLabel: 'NVB-20', duplicate: 'NVB-22', count: 'NVB-17' },
|
|
223
|
+
range: [3, 5],
|
|
224
|
+
labelShown: (selected) => (this.labelVisibility === 'never' ? false : this.labelVisibility === 'selected' ? selected : true),
|
|
225
|
+
variant: () => (this.variant === 'filled' ? 'filled' : ''),
|
|
226
|
+
synced: (selected, items) => this.follow(selected, items),
|
|
227
|
+
// NVB-31: a link is followed, not selected.
|
|
228
|
+
link: (item, event) => item.linkActivation(event),
|
|
229
|
+
});
|
|
230
|
+
/** NVB-27…29: the drag of the active indicator — the gesture (src/primitives/indicator-drag.ts); the bar draws it. */
|
|
231
|
+
this.drag = new IndicatorDragController(this, {
|
|
232
|
+
// NVB-27: on the bar, and only while a destination is selected and there is one to carry the indicator to.
|
|
233
|
+
accepts: (event) => {
|
|
234
|
+
const bar = this.renderRoot?.querySelector('.bar');
|
|
235
|
+
return !!bar && event.composedPath().includes(bar) && !!this.destinations.selected && this.items.some((item) => !item.disabled);
|
|
236
|
+
},
|
|
237
|
+
taken: (x) => this.takeDrag(x),
|
|
238
|
+
moved: (x) => {
|
|
239
|
+
if (!this.following)
|
|
240
|
+
return;
|
|
241
|
+
this.following.x = x;
|
|
242
|
+
this.followPointer();
|
|
243
|
+
},
|
|
244
|
+
released: (x, velocity) => this.releaseDrag(x, velocity),
|
|
245
|
+
cancelled: () => this.returnIndicator(),
|
|
246
|
+
});
|
|
247
|
+
/** The destination drawn selected at the last sync; undefined until the first (which is drawn, not animated). */
|
|
248
|
+
this.shown = undefined;
|
|
249
|
+
/** The destinations seen at an earlier sync: one that arrives selected is put in place at once. */
|
|
250
|
+
this.known = new WeakSet();
|
|
251
|
+
this.slide = null;
|
|
252
|
+
this.following = null;
|
|
253
|
+
/** Where the indicator was last drawn while moving: a new selection, a drag or a return starts from there. */
|
|
254
|
+
this.drawn = null;
|
|
255
|
+
this.frameId = 0;
|
|
256
|
+
// NVB-28, NVB-30: nothing of the bar is dragged as content (a link, where a browser would start one anyway): a
|
|
257
|
+
// sideways drag moves the active indicator, the one behaviour of a link the bar takes.
|
|
258
|
+
this.addEventListener('dragstart', (event) => event.preventDefault());
|
|
259
|
+
}
|
|
260
|
+
/** The bar's destinations, in order. */
|
|
261
|
+
get items() {
|
|
262
|
+
return this.destinations.items;
|
|
263
|
+
}
|
|
264
|
+
get pill() {
|
|
265
|
+
return this.renderRoot?.querySelector('.pill') ?? null;
|
|
266
|
+
}
|
|
267
|
+
disconnectedCallback() {
|
|
268
|
+
super.disconnectedCallback();
|
|
269
|
+
this.rest();
|
|
270
|
+
}
|
|
271
|
+
updated(changed) {
|
|
272
|
+
// NVB-19: a navigation landmark named by the bar's label.
|
|
273
|
+
if (changed.has('label') || !this.hasAttribute('role'))
|
|
274
|
+
hostAria(this, { role: 'navigation', 'aria-label': this.label || null });
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* NVB-15: a new selection moves the active indicator from the destination drawn selected before — or from where the
|
|
278
|
+
* indicator is, mid-way or where a released drag left it — to the new one. The first selection, and a destination
|
|
279
|
+
* that arrives already selected, are put in place at once; so is every change of size or place without a new
|
|
280
|
+
* selection (the styles draw the rest state).
|
|
281
|
+
*
|
|
282
|
+
* NVB-29: while a drag lasts, a selection the product sets — or a destination under the indicator that it removes or
|
|
283
|
+
* disables — ends the drag, and the indicator goes to the selected destination from where it is.
|
|
284
|
+
*/
|
|
285
|
+
follow(selected, items) {
|
|
286
|
+
const before = this.shown;
|
|
287
|
+
const arrived = !!selected && !this.known.has(selected);
|
|
288
|
+
this.shown = selected;
|
|
289
|
+
for (const item of items)
|
|
290
|
+
this.known.add(item);
|
|
291
|
+
if (this.drag.taken) {
|
|
292
|
+
const place = this.following?.place;
|
|
293
|
+
const gone = (item) => !!item && (item.disabled || !items.includes(item));
|
|
294
|
+
if (before === selected && !gone(place?.from) && !gone(place?.to))
|
|
295
|
+
return;
|
|
296
|
+
this.drag.cancel(false);
|
|
297
|
+
this.returnIndicator();
|
|
298
|
+
return;
|
|
299
|
+
}
|
|
300
|
+
if (before === undefined || before === selected)
|
|
301
|
+
return;
|
|
302
|
+
if (!this.hasUpdated || arrived) {
|
|
303
|
+
this.rest();
|
|
304
|
+
return;
|
|
305
|
+
}
|
|
306
|
+
this.slideTo(selected, before && before.isConnected && items.includes(before) ? before : null);
|
|
307
|
+
}
|
|
308
|
+
/** A motion of the indicator's own, read through real properties of its layer — 0 where motion is reduced. */
|
|
309
|
+
motion(of) {
|
|
310
|
+
const style = getComputedStyle(this.pill ?? this);
|
|
311
|
+
const [duration, easing] = of === 'selection' ? [style.animationDuration, style.animationTimingFunction] : [style.transitionDuration, style.transitionTimingFunction];
|
|
312
|
+
return { duration: (Number.parseFloat(duration) || 0) * 1000, easing: easing || 'ease' };
|
|
313
|
+
}
|
|
314
|
+
/** A clock: an effect without keyframes on the indicator's layer (it draws nothing), whose progress follows `easing`. */
|
|
315
|
+
clock(id, duration, easing) {
|
|
316
|
+
const pill = this.pill;
|
|
317
|
+
if (!pill || duration <= 0 || typeof KeyframeEffect === 'undefined')
|
|
318
|
+
return null;
|
|
319
|
+
const timing = new Animation(new KeyframeEffect(pill, [], { duration, easing }), document.timeline);
|
|
320
|
+
timing.id = id;
|
|
321
|
+
timing.play();
|
|
322
|
+
return timing;
|
|
323
|
+
}
|
|
324
|
+
boxOf(item) {
|
|
325
|
+
const box = item?.itemContainer?.getBoundingClientRect();
|
|
326
|
+
return box && (box.width || box.height) ? { left: box.left, top: box.top, right: box.right, bottom: box.bottom } : null;
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* NVB-15, NVB-28, NVB-29: the indicator goes to `to` over the selection motion — from where it is drawn, or from
|
|
330
|
+
* `from`'s item container, at its full size all the way; with nowhere to come from it fades in on `to`, and with
|
|
331
|
+
* nowhere to go it fades out where it is. At once where motion is reduced.
|
|
332
|
+
*/
|
|
333
|
+
slideTo(to, from) {
|
|
334
|
+
const start = this.drawn ?? this.boxOf(from);
|
|
335
|
+
this.rest();
|
|
336
|
+
const { duration, easing } = this.motion('selection');
|
|
337
|
+
if (!start && !to)
|
|
338
|
+
return;
|
|
339
|
+
const timing = this.clock('tanrei-navigation-bar-slide', duration, easing);
|
|
340
|
+
if (!timing)
|
|
341
|
+
return;
|
|
342
|
+
this.slide = { timing, start, to, from };
|
|
343
|
+
// The first frame now, before the destinations draw their new conditions: nothing is drawn in its new place early.
|
|
344
|
+
this.frame();
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* One frame of a slide: the indicator at the eased progress between where it started and the new destination's item
|
|
348
|
+
* container as it is now, and every covered copy clipped to it — the look a drag draws with the indicator at that
|
|
349
|
+
* place (NVB-27).
|
|
350
|
+
*/
|
|
351
|
+
frame() {
|
|
352
|
+
const slide = this.slide;
|
|
353
|
+
if (!slide)
|
|
354
|
+
return;
|
|
355
|
+
const state = slide.timing.playState;
|
|
356
|
+
if (state === 'finished' || state === 'idle') {
|
|
357
|
+
this.rest();
|
|
358
|
+
return;
|
|
359
|
+
}
|
|
360
|
+
const progress = slide.timing.effect?.getComputedTiming().progress ?? 0;
|
|
361
|
+
let box;
|
|
362
|
+
let opacity = 1;
|
|
363
|
+
if (slide.to) {
|
|
364
|
+
const target = this.boxOf(slide.to);
|
|
365
|
+
if (!target) {
|
|
366
|
+
this.rest();
|
|
367
|
+
return;
|
|
368
|
+
}
|
|
369
|
+
if (slide.start)
|
|
370
|
+
box = between(slide.start, target, progress);
|
|
371
|
+
else {
|
|
372
|
+
// NVB-15: where none was selected before it fades in at its full size; it does not grow in width.
|
|
373
|
+
box = target;
|
|
374
|
+
opacity = Math.min(1, Math.max(0, progress));
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
else {
|
|
378
|
+
box = this.boxOf(slide.from) ?? slide.start;
|
|
379
|
+
opacity = Math.min(1, Math.max(0, 1 - progress));
|
|
380
|
+
}
|
|
381
|
+
if (!box) {
|
|
382
|
+
this.rest();
|
|
383
|
+
return;
|
|
384
|
+
}
|
|
385
|
+
this.draw(box, opacity, slide.to ?? slide.from, slide.to);
|
|
386
|
+
this.frameId = requestAnimationFrame(() => this.frame());
|
|
387
|
+
}
|
|
388
|
+
/**
|
|
389
|
+
* Draws the indicator at `box`, in `owner`'s colors (the destination it belongs to), and clips every destination's
|
|
390
|
+
* covered copy to it in the same frame (NVB-23); `fill` is the destination drawn selected, whose own item container's
|
|
391
|
+
* fill is not drawn meanwhile.
|
|
392
|
+
*/
|
|
393
|
+
draw(box, opacity, owner, fill) {
|
|
394
|
+
const pill = this.pill;
|
|
395
|
+
const bar = this.renderRoot.querySelector('.bar');
|
|
396
|
+
const origin = bar?.getBoundingClientRect();
|
|
397
|
+
if (!pill || !bar || !origin)
|
|
398
|
+
return;
|
|
399
|
+
// The boxes are the page's; what is written is in the bar's own pixels, whatever scales the bar (a sheet or a
|
|
400
|
+
// dialog growing in around it): the indicator and every clip are right at any scale.
|
|
401
|
+
const scale = layoutScale(bar);
|
|
402
|
+
// Drawn flat (scaled to nothing), nothing is seen and nothing can be measured: the next frame draws it.
|
|
403
|
+
if (!scale.x || !scale.y)
|
|
404
|
+
return;
|
|
405
|
+
pill.style.left = px((box.left - origin.left) / scale.x);
|
|
406
|
+
pill.style.top = px((box.top - origin.top) / scale.y);
|
|
407
|
+
pill.style.width = px((box.right - box.left) / scale.x);
|
|
408
|
+
pill.style.height = px((box.bottom - box.top) / scale.y);
|
|
409
|
+
pill.style.opacity = String(opacity);
|
|
410
|
+
pill.classList.add('moving');
|
|
411
|
+
pill.classList.toggle('filled', this.variant === 'filled');
|
|
412
|
+
pill.classList.toggle('d', !!owner?.disabled);
|
|
413
|
+
this.drawn = box;
|
|
414
|
+
const radius = Number.parseFloat(getComputedStyle(pill).borderTopLeftRadius) || 0;
|
|
415
|
+
for (const item of this.items)
|
|
416
|
+
item.setCover({ box, opacity, fill: item === fill, radius, scale });
|
|
417
|
+
}
|
|
418
|
+
/** Nothing moves the indicator any longer; what is drawn stays as it is. */
|
|
419
|
+
stopMoving() {
|
|
420
|
+
cancelAnimationFrame(this.frameId);
|
|
421
|
+
this.slide?.timing.cancel();
|
|
422
|
+
this.slide = null;
|
|
423
|
+
this.following?.catchUp?.timing.cancel();
|
|
424
|
+
this.following = null;
|
|
425
|
+
}
|
|
426
|
+
/** The indicator at rest: the bar's layer is not drawn, and every destination's styles draw its item container and covered copy. */
|
|
427
|
+
rest() {
|
|
428
|
+
this.stopMoving();
|
|
429
|
+
this.drawn = null;
|
|
430
|
+
const pill = this.pill;
|
|
431
|
+
if (pill) {
|
|
432
|
+
pill.classList.remove('moving');
|
|
433
|
+
for (const property of ['left', 'top', 'width', 'height', 'opacity'])
|
|
434
|
+
pill.style.removeProperty(property);
|
|
435
|
+
}
|
|
436
|
+
for (const item of this.items)
|
|
437
|
+
item.setCover(null);
|
|
438
|
+
}
|
|
439
|
+
// ---- the drag (NVB-27…29) ----
|
|
440
|
+
/**
|
|
441
|
+
* NVB-27: the bar took the drag. The press activates nothing and the destination under it leaves its pressed state as
|
|
442
|
+
* when a press ends; the indicator comes from where it is drawn — a running slide stops there — to the pointer's place
|
|
443
|
+
* over the state motion (not where motion is reduced), following the pointer meanwhile.
|
|
444
|
+
*/
|
|
445
|
+
takeDrag(x) {
|
|
446
|
+
for (const item of this.items)
|
|
447
|
+
item.releasePress();
|
|
448
|
+
const from = this.drawn ?? this.boxOf(this.destinations.selected);
|
|
449
|
+
this.stopMoving();
|
|
450
|
+
const { duration, easing } = this.motion('state');
|
|
451
|
+
const timing = from ? this.clock('tanrei-navigation-bar-catch-up', duration, easing) : null;
|
|
452
|
+
this.following = { x, catchUp: timing && from ? { timing, from } : null, place: null };
|
|
453
|
+
this.followPointer();
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
456
|
+
* NVB-27: where the indicator is drawn while the pointer is at `x` — on an enabled destination's item container at its
|
|
457
|
+
* cell's centre, halfway between two neighbouring enabled ones where their cells meet, at the linear interpolation in
|
|
458
|
+
* between — and the two destinations it lies between.
|
|
459
|
+
*/
|
|
460
|
+
placeAt(x) {
|
|
461
|
+
const stops = this.items
|
|
462
|
+
.filter((item) => !item.disabled)
|
|
463
|
+
.flatMap((item) => {
|
|
464
|
+
const box = this.boxOf(item);
|
|
465
|
+
return box ? [{ item, left: box.left, right: box.right }] : [];
|
|
466
|
+
})
|
|
467
|
+
.sort((a, b) => a.left - b.left);
|
|
468
|
+
const place = indicatorPlace(stops, x);
|
|
469
|
+
if (!place)
|
|
470
|
+
return null;
|
|
471
|
+
const [from, to] = [this.boxOf(place.from), this.boxOf(place.to)];
|
|
472
|
+
return from && to ? { place, box: between(from, to, place.p) } : null;
|
|
473
|
+
}
|
|
474
|
+
/**
|
|
475
|
+
* NVB-27: draws the indicator where the pointer is, in the frame it moves — without a motion of its own, except the
|
|
476
|
+
* catch-up that brings it from where it rested — in the selected destination's colors.
|
|
477
|
+
*/
|
|
478
|
+
followPointer() {
|
|
479
|
+
cancelAnimationFrame(this.frameId);
|
|
480
|
+
const following = this.following;
|
|
481
|
+
if (!following)
|
|
482
|
+
return;
|
|
483
|
+
const at = this.placeAt(following.x);
|
|
484
|
+
if (!at)
|
|
485
|
+
return;
|
|
486
|
+
following.place = at.place;
|
|
487
|
+
let box = at.box;
|
|
488
|
+
const catchUp = following.catchUp;
|
|
489
|
+
if (catchUp) {
|
|
490
|
+
const over = catchUp.timing.playState === 'finished' || catchUp.timing.playState === 'idle';
|
|
491
|
+
if (over)
|
|
492
|
+
following.catchUp = null;
|
|
493
|
+
else
|
|
494
|
+
box = between(catchUp.from, box, catchUp.timing.effect?.getComputedTiming().progress ?? 1);
|
|
495
|
+
}
|
|
496
|
+
const selected = this.destinations.selected;
|
|
497
|
+
this.draw(box, 1, selected, selected);
|
|
498
|
+
if (following.catchUp)
|
|
499
|
+
this.frameId = requestAnimationFrame(() => this.followPointer());
|
|
500
|
+
}
|
|
501
|
+
/**
|
|
502
|
+
* NVB-28: a release chooses one enabled destination — the one the indicator is nearer to of the two it lies between
|
|
503
|
+
* (the one after it from halfway on), or the one of the two a fling is toward. Another than the selected one is
|
|
504
|
+
* activated as a tap activates it: with its own click, so the bar sets `value` and fires `change` once, and the
|
|
505
|
+
* indicator settles from where the release left it. A link is pressed the same way and is not selected by it
|
|
506
|
+
* (NVB-31): `change` with its `href`, the link followed, `value` not written — so the indicator returns to the
|
|
507
|
+
* destination `value` selects, unless the product set `value` in its listener, and then it goes on to the chosen one
|
|
508
|
+
* from where it is. The selected one: the indicator returns, and nothing is fired.
|
|
509
|
+
*/
|
|
510
|
+
releaseDrag(x, velocity) {
|
|
511
|
+
const place = this.placeAt(x)?.place ?? this.following?.place ?? null;
|
|
512
|
+
this.stopMoving();
|
|
513
|
+
const selected = this.destinations.selected;
|
|
514
|
+
const chosen = place ? indicatorChoice(place, velocity) : null;
|
|
515
|
+
if (chosen && chosen !== selected && !chosen.disabled) {
|
|
516
|
+
this.drag.activate(() => chosen.click());
|
|
517
|
+
if (this.destinations.selected === chosen)
|
|
518
|
+
return;
|
|
519
|
+
}
|
|
520
|
+
this.returnIndicator();
|
|
521
|
+
}
|
|
522
|
+
/** NVB-28, NVB-29: the indicator goes back to the selected destination from where it is, over the selection motion. */
|
|
523
|
+
returnIndicator() {
|
|
524
|
+
this.stopMoving();
|
|
525
|
+
this.slideTo(this.destinations.selected, null);
|
|
526
|
+
}
|
|
527
|
+
render() {
|
|
528
|
+
return html `
|
|
529
|
+
<div part="container" class="bar">
|
|
530
|
+
<div part="outline" class="outline" aria-hidden="true"></div>
|
|
531
|
+
<span part="indicator" class="pill" data-tanrei-shape aria-hidden="true"></span>
|
|
532
|
+
<div part="list" class="destinations" role="list"><slot></slot></div>
|
|
533
|
+
</div>
|
|
534
|
+
`;
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
// A destination's badge is the badge component (NVB-16): it is defined wherever a bar is.
|
|
538
|
+
if (!customElements.get('tanrei-badge'))
|
|
539
|
+
customElements.define('tanrei-badge', TanreiBadge);
|
|
540
|
+
if (!customElements.get('tanrei-navigation-bar-item'))
|
|
541
|
+
customElements.define('tanrei-navigation-bar-item', TanreiNavigationBarItem);
|
|
542
|
+
if (!customElements.get('tanrei-navigation-bar'))
|
|
543
|
+
customElements.define('tanrei-navigation-bar', TanreiNavigationBar);
|
|
544
|
+
//# sourceMappingURL=navigation-bar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation-bar.js","sourceRoot":"","sources":["../../../src/components/navigation-bar/navigation-bar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAuE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACrH,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,qBAAqB,EACrB,uBAAuB,EAEvB,qBAAqB,EAErB,QAAQ,EACR,eAAe,EACf,cAAc,EACd,WAAW,GACZ,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAgCnE,mEAAmE;AACnE,MAAM,MAAM,GAAG,0DAA0D,CAAC;AAE1E,mEAAmE;AACnE,MAAM,EAAE,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,GAAG,CAAC,GAAG,GAAG,IAAI,CAAC;AACnE,MAAM,GAAG,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC;AAC7D,MAAM,IAAI,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;AAClE,MAAM,OAAO,GAAG,CAAC,CAAM,EAAE,CAAM,EAAE,CAAS,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cAAc,CAAC,MAAM,CAAC,4BAA4B,EAAE,uBAAuB,CAAC,CAAC;AACpI,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,uBAAuB,CAAC;IAAE,cAAc,CAAC,MAAM,CAAC,uBAAuB,EAAE,mBAAmB,CAAC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The bar (NVB-11, NVB-18): the parent's full width, at least container.height above the bottom inset, on its color and
|
|
3
|
+
* elevation with its top edge — the same whichever destination is selected and while the indicator moves; its width,
|
|
4
|
+
* less container.padding at its start and at its end, divided into equal cells in reading order (logical, so RTL
|
|
5
|
+
* mirrors). The color reaches under the bottom and side insets, the destinations stay inside them.
|
|
6
|
+
*
|
|
7
|
+
* The active indicator while it moves (NVB-15, NVB-27): one layer under the destinations, an item container's size, in
|
|
8
|
+
* the selected destination's item container color, which the element places between the destinations' item containers —
|
|
9
|
+
* sliding to a new selection, or where a dragged pointer is. At rest it is not drawn: the selected destination's item
|
|
10
|
+
* container is the indicator, so it is never painted twice.
|
|
11
|
+
*
|
|
12
|
+
* NVB-27: a sideways drag on the bar is the indicator's and a vertical one the page's (`touch-action: pan-y`).
|
|
13
|
+
*/
|
|
14
|
+
export declare const barStyles: import("lit").CSSResult;
|
|
15
|
+
/**
|
|
16
|
+
* A destination (NVB-4…10, NVB-12…16, NVB-23): the shared destination styles with the icon indicator and the covered
|
|
17
|
+
* colors as parts of every condition and the filled conditions, its cell the bar's full height and an equal share of its
|
|
18
|
+
* width, narrower than the touch target when the bar is (NVB-6), its focus indicator held inside the bar (NVB-5: the room
|
|
19
|
+
* around the item container is container.padding); then the item container that is the whole cell.
|
|
20
|
+
*/
|
|
21
|
+
export declare const itemStyles: import("lit").CSSResult[];
|