@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,595 @@
|
|
|
1
|
+
import { css, unsafeCSS } from 'lit';
|
|
2
|
+
import { focusRing, iconGlyph, pressHold, rippleStyles, stateRules, whenChosen } from '../../primitives/index.js';
|
|
3
|
+
import { productText } from '../../styles/product-text.js';
|
|
4
|
+
import { cornerRadius, shape } from '../../styles/shape.js';
|
|
5
|
+
// Every visual value is a token (tokens/comp/tabs.tokens.json). A tab has two looks in each variant: a tab
|
|
6
|
+
// that is not selected reads the variant's own parts, the selected tab its `selected.` parts. How a state looks is the
|
|
7
|
+
// design system's decision: hover, focus and press mix each look's container with its `state-layer.color` in the default
|
|
8
|
+
// system and draw nothing in cupertino, by value; the component only says which state's tokens are drawn.
|
|
9
|
+
export const CORE_VARIANTS = ['primary', 'secondary', 'tonal'];
|
|
10
|
+
const DEFAULT_VARIANT = 'primary';
|
|
11
|
+
/** TAB-44: the sizes every design system has; a layer may add values. */
|
|
12
|
+
export const CORE_SIZES = ['small', 'medium'];
|
|
13
|
+
const DEFAULT_SIZE = 'medium';
|
|
14
|
+
/**
|
|
15
|
+
* TAB-18, TAB-50: the variants whose tab puts its icon before its label and whose underline spans the whole tab —
|
|
16
|
+
* secondary's structure. Anything else, a variant a layer added included, has primary's.
|
|
17
|
+
*/
|
|
18
|
+
export const INLINE_VARIANTS = ['secondary', 'tonal'];
|
|
19
|
+
const PREFIX = '--tanrei-comp-tabs';
|
|
20
|
+
const T = (name) => `var(${PREFIX}-${name})`;
|
|
21
|
+
const t = (name) => unsafeCSS(T(name));
|
|
22
|
+
/** The interaction states as the token names say them, and their private suffix (`-r` is at rest). */
|
|
23
|
+
const STATES = { '': '-r', hovered: '-h', focused: '-f', pressed: '-p', disabled: '-d' };
|
|
24
|
+
/** The parts each look colors in every state. */
|
|
25
|
+
const LOOK_PARTS = {
|
|
26
|
+
c: 'container-color',
|
|
27
|
+
l: 'label-color',
|
|
28
|
+
i: 'icon-color',
|
|
29
|
+
a: 'active-indicator-color',
|
|
30
|
+
cl: 'covered-label-color',
|
|
31
|
+
ci: 'covered-icon-color',
|
|
32
|
+
u: 'underline-color',
|
|
33
|
+
};
|
|
34
|
+
const LOOKS = { plain: '', selected: 'selected-' };
|
|
35
|
+
/**
|
|
36
|
+
* The indicator's corner and the underline's thickness and corner: per variant and state, not per look (the rules pin
|
|
37
|
+
* them to rest). `active-indicator.thickness` is read by no behaviour of this revision (it stays for the lagging platforms).
|
|
38
|
+
*/
|
|
39
|
+
const VARIANT_PARTS = { s: 'active-indicator-shape', ut: 'underline-thickness', us: 'underline-shape' };
|
|
40
|
+
// A value the core does not have may be missing from the active design system: fall back to the default's token.
|
|
41
|
+
const ref = (name, variant, fallback) => (fallback ? `var(${name(variant)}, var(${name(fallback)}))` : `var(${name(variant)})`);
|
|
42
|
+
/**
|
|
43
|
+
* One variant's parts, in every look and state, as private custom properties on the tabs (`--_selected-c-h` is the
|
|
44
|
+
* selected look's container, hovered; `--_ut-r` the underline's thickness at rest). The row declares them on its slotted
|
|
45
|
+
* tabs, so the variant is the row's and every tab inherits it. The token of a look and a state is
|
|
46
|
+
* `<variant>-<state>-<look>-<part>`.
|
|
47
|
+
*/
|
|
48
|
+
const variantBlock = (variant, selector, fallback = null) => `${selector} {\n${[
|
|
49
|
+
...Object.entries(LOOKS).flatMap(([look, prefix]) => Object.entries(STATES).flatMap(([state, suffix]) => Object.entries(LOOK_PARTS).map(([key, part]) => ` --_${look}-${key}${suffix}: ${ref((v) => `${PREFIX}-${v}-${state ? `${state}-` : ''}${prefix}${part}`, variant, fallback)};`))),
|
|
50
|
+
...Object.entries(STATES).flatMap(([state, suffix]) => Object.entries(VARIANT_PARTS).map(([key, part]) => ` --_${key}${suffix}: ${ref((v) => `${PREFIX}-${v}-${state ? `${state}-` : ''}${part}`, variant, fallback)};`)),
|
|
51
|
+
].join('\n')}\n}`;
|
|
52
|
+
const TAB = '::slotted(tanrei-tab)';
|
|
53
|
+
/** TAB-44: the members of the size axis (tokens/comp/tabs.tokens.json, `dev.tanrei.axes`), and the private name of each. */
|
|
54
|
+
const SIZE_PARTS = {
|
|
55
|
+
height: 'container-height',
|
|
56
|
+
'padding-inline': 'container-padding-inline',
|
|
57
|
+
'indicator-padding-inline': 'active-indicator-padding-inline',
|
|
58
|
+
'indicator-padding-block': 'active-indicator-padding-block',
|
|
59
|
+
icon: 'icon-size',
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* One size's five tokens as private custom properties (`--_size-height`…), declared by the row on its slotted tabs as a
|
|
63
|
+
* variant's parts are, so the size is the row's and every tab inherits it.
|
|
64
|
+
*/
|
|
65
|
+
const sizeBlock = (size, selector, fallback = null) => `${selector} {\n${Object.entries(SIZE_PARTS)
|
|
66
|
+
.map(([key, part]) => ` --_size-${key}: ${ref((v) => `${PREFIX}-${part}-${v}`, size, fallback)};`)
|
|
67
|
+
.join('\n')}\n}`;
|
|
68
|
+
const S = (key) => unsafeCSS(`var(--_size-${key})`);
|
|
69
|
+
/** `comp.tabs.track.visible` (TAB-49): a choice's name. The first is what an unknown name is. */
|
|
70
|
+
export const TRACK_CHOICE = ['off', 'on'];
|
|
71
|
+
/** TAB-49: whether the track is filled, as the host carries it: its `track` attribute's, or — unset — the system's choice. */
|
|
72
|
+
export const TRACK_PROPERTY = '--_tabs-track';
|
|
73
|
+
/** `comp.tabs.motion.transition` (TAB-43): a choice's name. The first is what an unknown name is. */
|
|
74
|
+
export const TRANSITION_CHOICE = ['slide', 'none'];
|
|
75
|
+
/** The row's `transition` prop: `auto` takes the component token, and so does a value the tabs do not define. */
|
|
76
|
+
export const TRANSITION_VALUES = ['auto', ...TRANSITION_CHOICE];
|
|
77
|
+
/** TAB-43: how a new selection is drawn, as the host carries it: its `transition` attribute's name, or the system's choice. */
|
|
78
|
+
export const TRANSITION_PROPERTY = '--_tabs-transition';
|
|
79
|
+
/** TAB-27: the track's color is the row's, one per variant, the same in every state of every tab. */
|
|
80
|
+
const trackBlock = (variant, selector, fallback = null) => `${selector} {\n --_track: ${ref((v) => `${PREFIX}-${v}-track-color`, variant, fallback)};\n}`;
|
|
81
|
+
/**
|
|
82
|
+
* TAB-7: a variant a layer added gets its block on demand, built by the same function and falling back to the default's
|
|
83
|
+
* tokens; a value the active system lacks is reported in debug builds (src/primitives/axes.ts).
|
|
84
|
+
*/
|
|
85
|
+
export const AXES = [
|
|
86
|
+
{
|
|
87
|
+
name: 'variant',
|
|
88
|
+
core: CORE_VARIANTS,
|
|
89
|
+
default: DEFAULT_VARIANT,
|
|
90
|
+
rules: (value, selector) => `${variantBlock(value, `${selector} ${TAB}`, DEFAULT_VARIANT)}\n${trackBlock(value, selector, DEFAULT_VARIANT)}`,
|
|
91
|
+
probe: (value) => `${PREFIX}-${value}-container-color`,
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
name: 'size',
|
|
95
|
+
core: CORE_SIZES,
|
|
96
|
+
default: DEFAULT_SIZE,
|
|
97
|
+
rules: (value, selector) => sizeBlock(value, `${selector} ${TAB}`, DEFAULT_SIZE),
|
|
98
|
+
probe: (value) => `${PREFIX}-container-height-${value}`,
|
|
99
|
+
},
|
|
100
|
+
];
|
|
101
|
+
/**
|
|
102
|
+
* The row (TAB-14, TAB-15, TAB-20, TAB-21, TAB-27): the tab list; the divider along its whole bottom; and the track,
|
|
103
|
+
* which is the scroller — one constant color per variant, its corners track.shape, no outline — that lays the tabs out
|
|
104
|
+
* track.padding in from its ends, each its content's width (hug, the default: the track then ends with its last tab)
|
|
105
|
+
* or an equal share of the row (`full-width`), and scrolls them sideways inside itself when they do not fit, clipped to
|
|
106
|
+
* its shape. The panels follow the row.
|
|
107
|
+
*/
|
|
108
|
+
export const tabsStyles = css `
|
|
109
|
+
:host {
|
|
110
|
+
display: block;
|
|
111
|
+
/* TAB-49, TAB-43: the system's choices (their NAMES, as the cascade gives them here)… */
|
|
112
|
+
${unsafeCSS(TRACK_PROPERTY)}: ${t('track-visible')};
|
|
113
|
+
${unsafeCSS(TRANSITION_PROPERTY)}: ${t('motion-transition')};
|
|
114
|
+
}
|
|
115
|
+
/* …unless the row says so itself: \`track\` (true) or ="false"; \`transition\` by name (any other value is auto). */
|
|
116
|
+
:host([track]) {
|
|
117
|
+
${unsafeCSS(TRACK_PROPERTY)}: on;
|
|
118
|
+
}
|
|
119
|
+
:host([track='false' i]) {
|
|
120
|
+
${unsafeCSS(TRACK_PROPERTY)}: off;
|
|
121
|
+
}
|
|
122
|
+
${unsafeCSS(TRANSITION_CHOICE.map((name) => `:host([transition='${name}']) {\n ${TRANSITION_PROPERTY}: ${name};\n }`).join('\n '))}
|
|
123
|
+
${unsafeCSS(sizeBlock(DEFAULT_SIZE, `:host ${TAB}`))}
|
|
124
|
+
${unsafeCSS(CORE_SIZES.filter((size) => size !== DEFAULT_SIZE).map((size) => sizeBlock(size, `:host([size='${size}']) ${TAB}`)).join('\n'))}
|
|
125
|
+
${unsafeCSS(variantBlock(DEFAULT_VARIANT, `:host ${TAB}`))}
|
|
126
|
+
${unsafeCSS(CORE_VARIANTS.filter((v) => v !== DEFAULT_VARIANT).map((v) => variantBlock(v, `:host([variant='${v}']) ${TAB}`)).join('\n'))}
|
|
127
|
+
${unsafeCSS(trackBlock(DEFAULT_VARIANT, ':host'))}
|
|
128
|
+
${unsafeCSS(CORE_VARIANTS.filter((v) => v !== DEFAULT_VARIANT).map((v) => trackBlock(v, `:host([variant='${v}'])`)).join('\n'))}
|
|
129
|
+
|
|
130
|
+
.row {
|
|
131
|
+
position: relative;
|
|
132
|
+
}
|
|
133
|
+
/* TAB-20: the line under the whole row, under the track, the tabs, the indicator and the underline, across the full
|
|
134
|
+
width while the tabs scroll. Transparent in the default system. */
|
|
135
|
+
.divider {
|
|
136
|
+
position: absolute;
|
|
137
|
+
inset-inline: 0;
|
|
138
|
+
inset-block-end: 0;
|
|
139
|
+
block-size: ${t('divider-thickness')};
|
|
140
|
+
background: ${t('divider-color')};
|
|
141
|
+
/* TAB-5: the two minimum targets, read through real properties that do nothing here (the divider is scrolled to
|
|
142
|
+
by nothing): how far above and below a row lower than the target its tabs still answer a press. */
|
|
143
|
+
scroll-margin-block-start: var(--tanrei-sys-target-pointer);
|
|
144
|
+
scroll-margin-block-end: var(--tanrei-sys-target-touch);
|
|
145
|
+
}
|
|
146
|
+
/* TAB-27: the track, behind the whole row — the same whichever tab is selected and whatever state a tab is in. It is
|
|
147
|
+
as wide as its tabs plus track.padding at each end and never wider than the row; it stays still while the tabs
|
|
148
|
+
scroll inside it, and its shape clips them (and a focus ring, TAB-4).
|
|
149
|
+
TAB-14, TAB-15: the tabs scroll sideways when they do not fit — always for tabs that hug a long row, and for tabs
|
|
150
|
+
that share it only when the shares would fall below the minimum target. No scroll bar: a wheel, a trackpad, a drag
|
|
151
|
+
or the arrow keys scroll it. The reveal and the indicator's slide read the indicator's timing through real
|
|
152
|
+
properties (no animation is named, so they change nothing); where motion is reduced it is 0.
|
|
153
|
+
TAB-28: sideways drags are the row's and vertical ones the page's — unless the tabs scroll (.scrolls), where a
|
|
154
|
+
sideways drag scrolls them and only the selected tab keeps it for the indicator (the tab's own touch-action). */
|
|
155
|
+
.scroller {
|
|
156
|
+
position: relative;
|
|
157
|
+
box-sizing: border-box;
|
|
158
|
+
inline-size: fit-content;
|
|
159
|
+
max-inline-size: 100%;
|
|
160
|
+
overflow-x: auto;
|
|
161
|
+
overflow-y: hidden;
|
|
162
|
+
overscroll-behavior-x: contain;
|
|
163
|
+
scrollbar-width: none;
|
|
164
|
+
touch-action: pan-y pinch-zoom;
|
|
165
|
+
${unsafeCSS(cornerRadius('--tanrei-comp-tabs-track-shape'))}
|
|
166
|
+
animation-duration: ${t('motion-indicator-duration')};
|
|
167
|
+
animation-timing-function: ${t('motion-indicator-easing')};
|
|
168
|
+
}
|
|
169
|
+
/* TAB-27, TAB-49: the track is filled while the row's track is on. Off — the first value, and so what an unknown name
|
|
170
|
+
draws — fills nothing and changes nothing else: the box, the inset, the corners and the clip stay. */
|
|
171
|
+
${whenChosen(TRACK_PROPERTY, '.row', 'track', 'on', (row) => `${row} .scroller {\n background: var(--_track);\n }`)}
|
|
172
|
+
.scroller.scrolls {
|
|
173
|
+
touch-action: auto;
|
|
174
|
+
}
|
|
175
|
+
:host([full-width]) .scroller {
|
|
176
|
+
inline-size: auto;
|
|
177
|
+
}
|
|
178
|
+
.scroller::-webkit-scrollbar {
|
|
179
|
+
display: none;
|
|
180
|
+
}
|
|
181
|
+
/* TAB-14, TAB-34: the tabs are placed by the indicator — the first tab's starts track.padding in from the track's
|
|
182
|
+
start and the last one's ends the same distance before its end. Where an end tab is wider than its indicator (a
|
|
183
|
+
circle in a tab widened to the minimum target) the tab reaches into that inset by half the difference (--_reach-*,
|
|
184
|
+
written by the row from what its end tabs measured) and no further than the track's edge: the inset is the row's
|
|
185
|
+
padding, less that reach. A tab as wide as its indicator (a capsule, a share of a row that fills) reaches nowhere.
|
|
186
|
+
TAB-28: the catch-up of a drag reads the
|
|
187
|
+
state motion through real properties here (no property is named, so nothing transitions). */
|
|
188
|
+
.tabs {
|
|
189
|
+
position: relative;
|
|
190
|
+
box-sizing: border-box;
|
|
191
|
+
display: flex;
|
|
192
|
+
padding-inline: calc(${t('track-padding')} - min(${t('track-padding')}, var(--_reach-start, 0px))) calc(${t('track-padding')} - min(${t('track-padding')}, var(--_reach-end, 0px)));
|
|
193
|
+
transition-property: none;
|
|
194
|
+
transition-duration: ${t('motion-state-duration')};
|
|
195
|
+
transition-timing-function: ${t('motion-state-easing')};
|
|
196
|
+
}
|
|
197
|
+
/* TAB-14: tabs that hug are their content's width and the row starts at its start edge (the right one in RTL); the
|
|
198
|
+
row of them is their width, so a change of their size (a font arriving) is seen and the selected tab kept in view. */
|
|
199
|
+
:host(:not([full-width])) .tabs {
|
|
200
|
+
inline-size: max-content;
|
|
201
|
+
}
|
|
202
|
+
${unsafeCSS(TAB)} {
|
|
203
|
+
flex: none;
|
|
204
|
+
}
|
|
205
|
+
/* TAB-14: tabs that fill share the row's width, less the track's padding, equally, each at least the minimum target
|
|
206
|
+
(the tab's own minimum); a row too narrow for that scrolls. */
|
|
207
|
+
:host([full-width]) ${unsafeCSS(TAB)} {
|
|
208
|
+
flex: 1 1 0;
|
|
209
|
+
}
|
|
210
|
+
${shape}
|
|
211
|
+
/* TAB-43: while the row's transition is none, the indicator's motion and the catch-up of a drag take no time — what the
|
|
212
|
+
row reads through these two properties is what it reads where motion is reduced, so a new selection is drawn in one
|
|
213
|
+
frame, a tab is brought into view at once and a drag lands at once. A tab's states keep their motion (the tab's own). */
|
|
214
|
+
${whenChosen(TRANSITION_PROPERTY, '.row', 'transition', 'none', (row) => `${row} .scroller {\n animation-duration: 0s;\n }\n ${row} .tabs {\n transition-duration: 0s;\n }`)}
|
|
215
|
+
@media (prefers-reduced-motion: reduce) {
|
|
216
|
+
.scroller {
|
|
217
|
+
animation-duration: 0s;
|
|
218
|
+
}
|
|
219
|
+
.tabs {
|
|
220
|
+
transition-duration: 0s;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
@media (forced-colors: active) {
|
|
224
|
+
.divider {
|
|
225
|
+
background: CanvasText;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
`;
|
|
229
|
+
// The pieces every control shares (src/primitives): the state rules and their precedence, the ripple, the focus ring
|
|
230
|
+
// drawn inside the tab, the carrier of press-hold and the icon glyph, plus the one corner rule (styles/shape.ts).
|
|
231
|
+
/**
|
|
232
|
+
* Where each state is read (TAB-3): hover and press on the tab's container, keyboard focus on its host (the tab takes
|
|
233
|
+
* focus itself), disabled from `.d`. Every selector has the same specificity, so the order is the precedence.
|
|
234
|
+
*/
|
|
235
|
+
const on = (state) => {
|
|
236
|
+
if (state === ':focus-visible')
|
|
237
|
+
return ':host(:focus-visible) .tab';
|
|
238
|
+
if (state === ':disabled')
|
|
239
|
+
return '.tab.p.d';
|
|
240
|
+
return `.tab.p${state}`;
|
|
241
|
+
};
|
|
242
|
+
const KEYS = [...Object.keys(LOOK_PARTS), ...Object.keys(VARIANT_PARTS)];
|
|
243
|
+
const set = (suffix, skip) => KEYS.filter((key) => key !== skip)
|
|
244
|
+
.map((key) => `\n --_${key}: var(--_${key}${suffix});`)
|
|
245
|
+
.join('');
|
|
246
|
+
const lookBlock = (look, selector) => `${selector} {\n${Object.values(STATES)
|
|
247
|
+
.flatMap((suffix) => Object.keys(LOOK_PARTS).map((key) => ` --_${key}${suffix}: var(--_${look}-${key}${suffix});`))
|
|
248
|
+
.join('\n')}\n}`;
|
|
249
|
+
const STATE_MOTION = `${T('motion-state-duration')} ${T('motion-state-easing')}`;
|
|
250
|
+
/**
|
|
251
|
+
* One tab (TAB-3…6, TAB-8…10, TAB-14, TAB-16, TAB-18, TAB-19, TAB-23, TAB-24): the whole tab answers the pointer; its
|
|
252
|
+
* container (.box) — the state layer and the ripple — is drawn in the box the active indicator has on this tab, or would
|
|
253
|
+
* have if it were selected, never on the tab's rectangle; its icon and label on one line, centred and kept clear of the
|
|
254
|
+
* underline; the covered layer over them, which is the indicator's piece on this tab and carries the covered copy of
|
|
255
|
+
* the icon and label; the underline's piece on its bottom edge (both clipped by the row to where the indicator is,
|
|
256
|
+
* TAB-17); and, above them all, the focus ring around the same box (.ring).
|
|
257
|
+
*/
|
|
258
|
+
export const tabStyles = css `
|
|
259
|
+
:host {
|
|
260
|
+
display: flex;
|
|
261
|
+
/* TAB-5, TAB-14: a tab that shares the row never shrinks below the minimum target. */
|
|
262
|
+
/* TAB-14: nor is it ever narrower than its indicator, which is as tall as the row less the track's padding (--_th,
|
|
263
|
+
written by the tab once it knows the row's height). */
|
|
264
|
+
min-inline-size: calc(max(var(--tanrei-sys-target-pointer), var(--_th, 0px)) - var(--_trim, 0px));
|
|
265
|
+
/* TAB-4: the ring is drawn around the container, never around the host. */
|
|
266
|
+
outline: none;
|
|
267
|
+
}
|
|
268
|
+
/* TAB-4: the ring reaches over the neighbouring tabs, so the focused tab is drawn above them. */
|
|
269
|
+
:host(:focus-visible) {
|
|
270
|
+
z-index: 1;
|
|
271
|
+
}
|
|
272
|
+
@media (pointer: coarse) {
|
|
273
|
+
:host {
|
|
274
|
+
min-inline-size: calc(max(var(--tanrei-sys-target-touch), var(--_th, 0px)) - var(--_trim, 0px));
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
${unsafeCSS(lookBlock('plain', '.tab'))}
|
|
278
|
+
${unsafeCSS(lookBlock('selected', '.tab.selected'))}
|
|
279
|
+
/* TAB-17, TAB-24: the indicator is drawn in the selected tab's colors wherever it is — over this tab mid-slide too. The
|
|
280
|
+
selected tab draws its own state's; the others its resting look, or its disabled one while it is disabled (TAB-6). */
|
|
281
|
+
.tab {
|
|
282
|
+
--_pill: var(--_selected-a-r);
|
|
283
|
+
--_line: var(--_selected-u-r);
|
|
284
|
+
}
|
|
285
|
+
.tab.pill-disabled {
|
|
286
|
+
--_pill: var(--_selected-a-d);
|
|
287
|
+
--_line: var(--_selected-u-d);
|
|
288
|
+
}
|
|
289
|
+
.tab.selected {
|
|
290
|
+
--_pill: var(--_a);
|
|
291
|
+
--_line: var(--_u);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
/* TAB-18: the content centred, inside the indicator's box (track.padding above and below it) and with the underline's
|
|
295
|
+
thickness kept clear above and below; the covered layer lays its copy out the same way, so the two coincide to the
|
|
296
|
+
pixel. */
|
|
297
|
+
.tab,
|
|
298
|
+
.cover {
|
|
299
|
+
box-sizing: border-box;
|
|
300
|
+
display: flex;
|
|
301
|
+
align-items: center;
|
|
302
|
+
justify-content: center;
|
|
303
|
+
padding-inline: ${S('padding-inline')};
|
|
304
|
+
padding-block: max(${t('track-padding')}, var(--_ut));
|
|
305
|
+
font: ${t('label-typescale-font')};
|
|
306
|
+
letter-spacing: ${t('label-typescale-letter-spacing')};
|
|
307
|
+
}
|
|
308
|
+
/* TAB-14: a tab whose indicator is a circle (data-round, measured by the tab in a row that hugs) is that circle and
|
|
309
|
+
no wider: it takes no inline padding, and its width is its least one — the larger of the circle and the minimum
|
|
310
|
+
target. The covered copy is laid out the same way.
|
|
311
|
+
TAB-34: at an end of the row, where that width is more than the circle and the track's inset on each side (a small
|
|
312
|
+
row's 24 circle in a 44 tab), the tab ends at the track's edge — it is laid out narrower by what would lie beyond
|
|
313
|
+
it (--_trim, written by the tab) — and its circle keeps the inset from the track's end: the content leans toward
|
|
314
|
+
that end by the same amount (--_lean-*), and the container and the ring with it. */
|
|
315
|
+
.tab[data-round],
|
|
316
|
+
.tab[data-round] .cover {
|
|
317
|
+
padding-inline: var(--_lean-start, 0px) var(--_lean-end, 0px);
|
|
318
|
+
}
|
|
319
|
+
/* The probe of a capsule's width is not read for a circle; it stays inside the tab, so that it never widens what the
|
|
320
|
+
track scrolls. */
|
|
321
|
+
.tab[data-round] .plate {
|
|
322
|
+
inset-inline: 0;
|
|
323
|
+
}
|
|
324
|
+
/* TAB-34, TAB-35: what is left of the track's inset beside the first and the last tab is theirs: their hit areas
|
|
325
|
+
reach the track's edge (the rest of the row's height is the tab's already). It draws nothing. */
|
|
326
|
+
.tab.first::before,
|
|
327
|
+
.tab.last::after {
|
|
328
|
+
content: '';
|
|
329
|
+
position: absolute;
|
|
330
|
+
inset-block: 0;
|
|
331
|
+
inline-size: max(0px, calc(${t('track-padding')} - var(--_wider, 0px)));
|
|
332
|
+
}
|
|
333
|
+
.tab.first::before {
|
|
334
|
+
inset-inline-end: 100%;
|
|
335
|
+
}
|
|
336
|
+
.tab.last::after {
|
|
337
|
+
inset-inline-start: 100%;
|
|
338
|
+
}
|
|
339
|
+
.tab {
|
|
340
|
+
position: relative;
|
|
341
|
+
/* Its own stacking context: the container under the content, the ring above everything. */
|
|
342
|
+
isolation: isolate;
|
|
343
|
+
flex: 1 1 auto;
|
|
344
|
+
${unsafeCSS(set('-r'))}
|
|
345
|
+
cursor: pointer;
|
|
346
|
+
user-select: none;
|
|
347
|
+
-webkit-user-select: none;
|
|
348
|
+
-webkit-tap-highlight-color: transparent;
|
|
349
|
+
transition-property: opacity;
|
|
350
|
+
transition-duration: ${t('motion-state-duration')};
|
|
351
|
+
transition-timing-function: ${t('motion-state-easing')};
|
|
352
|
+
}
|
|
353
|
+
/* TAB-28: in a row whose tabs scroll, a sideways drag from the selected tab is the indicator's, not the scroll's. */
|
|
354
|
+
.tab.selected {
|
|
355
|
+
touch-action: pan-y pinch-zoom;
|
|
356
|
+
}
|
|
357
|
+
/* TAB-18, TAB-9: the container — hover, focus and press, and the ripple, clipped to it — in the indicator's box:
|
|
358
|
+
track.padding in from the row's top and bottom, centred in the tab, as wide as the tab's content plus
|
|
359
|
+
active-indicator.padding-inline on each side and exactly as wide as it is tall where that content is not wider than
|
|
360
|
+
it is tall (--_bw, measured by the tab; the whole tab until then), and the tab's whole share in a row that fills.
|
|
361
|
+
Its corners are container.shape. It lies above the track and under the indicator, and answers no pointer itself:
|
|
362
|
+
the whole tab does. TAB-4: the ring's box is the same one, drawn above the indicator and under the underline. */
|
|
363
|
+
.box,
|
|
364
|
+
.ring {
|
|
365
|
+
position: absolute;
|
|
366
|
+
inset-block: ${t('track-padding')};
|
|
367
|
+
inset-inline-start: calc(50% - var(--_bw, 100%) / 2 + (var(--_lean-start, 0px) - var(--_lean-end, 0px)) / 2);
|
|
368
|
+
inline-size: var(--_bw, 100%);
|
|
369
|
+
pointer-events: none;
|
|
370
|
+
${unsafeCSS(cornerRadius('--tanrei-comp-tabs-container-shape'))}
|
|
371
|
+
}
|
|
372
|
+
.tab.fill :is(.box, .ring) {
|
|
373
|
+
inset-inline: 0;
|
|
374
|
+
inline-size: auto;
|
|
375
|
+
}
|
|
376
|
+
.box {
|
|
377
|
+
/* Its own stacking context, so the ripple sits above the container color. */
|
|
378
|
+
isolation: isolate;
|
|
379
|
+
background: var(--_c);
|
|
380
|
+
transition: background-color ${unsafeCSS(STATE_MOTION)};
|
|
381
|
+
}
|
|
382
|
+
/* TAB-18, TAB-44: at least the container height of the row's size tall (height-with-icon for a medium primary tab
|
|
383
|
+
that stacks its icon above its label); every tab is as tall as the row (the row stretches them). TAB-5: at least
|
|
384
|
+
the minimum target wide, in layout — tabs touch their neighbours, so the tab itself grows. The height is not met
|
|
385
|
+
in layout: a row lower than the target (the small size) stays as low as it is, and the row answers a press above
|
|
386
|
+
and below it (tabs.ts, \`onPressBeside\`). */
|
|
387
|
+
.tab {
|
|
388
|
+
min-block-size: ${S('height')};
|
|
389
|
+
min-inline-size: calc(max(var(--tanrei-sys-target-pointer), var(--_th, 0px)) - var(--_trim, 0px));
|
|
390
|
+
}
|
|
391
|
+
.tab.stacked {
|
|
392
|
+
min-block-size: ${t('container-height-with-icon')};
|
|
393
|
+
}
|
|
394
|
+
@media (pointer: coarse) {
|
|
395
|
+
.tab {
|
|
396
|
+
min-inline-size: calc(max(var(--tanrei-sys-target-touch), var(--_th, 0px)) - var(--_trim, 0px));
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
/* TAB-16, TAB-18: the content keeps active-indicator.padding-block between itself and the indicator's top and bottom
|
|
401
|
+
edges, so the row grows to hold its tallest content inside the indicator. A primary tab stacks its icon above its
|
|
402
|
+
label; a secondary one puts it before the label, centred on its line. */
|
|
403
|
+
.content {
|
|
404
|
+
position: relative;
|
|
405
|
+
box-sizing: border-box;
|
|
406
|
+
display: flex;
|
|
407
|
+
flex: 0 1 auto;
|
|
408
|
+
align-items: center;
|
|
409
|
+
justify-content: center;
|
|
410
|
+
gap: ${t('container-gap')};
|
|
411
|
+
min-inline-size: 0;
|
|
412
|
+
padding-block: ${S('indicator-padding-block')};
|
|
413
|
+
}
|
|
414
|
+
.tab.stacked .content {
|
|
415
|
+
flex-direction: column;
|
|
416
|
+
}
|
|
417
|
+
/* TAB-16: the indicator's width where the content is wider than it is tall — the content plus
|
|
418
|
+
active-indicator.padding-inline on each side, centred on it — and its corner. It draws nothing: the tab measures it
|
|
419
|
+
(and keeps the box within the tab). */
|
|
420
|
+
.plate {
|
|
421
|
+
position: absolute;
|
|
422
|
+
inset-block: 0;
|
|
423
|
+
inset-inline: calc(-1 * ${S('indicator-padding-inline')});
|
|
424
|
+
border-radius: var(--_s);
|
|
425
|
+
visibility: hidden;
|
|
426
|
+
pointer-events: none;
|
|
427
|
+
}
|
|
428
|
+
/* TAB-14: one line, never wrapped or broken within a word; a tab that shares the row truncates its label with an
|
|
429
|
+
ellipsis. The icon never shrinks for it. TAB-33, TAB-21: the label, in both of its copies, is its own run in the
|
|
430
|
+
direction of its first strong character (src/styles/product-text.ts), so it keeps its order in a right-to-left
|
|
431
|
+
row and is cut at the end of ITS direction — a left-to-right label at its right end, never at its beginning. */
|
|
432
|
+
${productText('.label')}
|
|
433
|
+
.label {
|
|
434
|
+
flex: 0 1 auto;
|
|
435
|
+
min-inline-size: 0;
|
|
436
|
+
max-inline-size: 100%;
|
|
437
|
+
overflow: hidden;
|
|
438
|
+
white-space: nowrap;
|
|
439
|
+
text-overflow: ellipsis;
|
|
440
|
+
color: var(--_l);
|
|
441
|
+
transition: color ${unsafeCSS(STATE_MOTION)};
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
/* TAB-24: the covered layer — the indicator's piece on this tab, in the indicator's color, with the covered copy of the
|
|
445
|
+
icon and label over it in the covered colors of the tab's look — clipped to the indicator's current shape. The row
|
|
446
|
+
writes the clip (inset(… round <corner>)), and the same shape cut out of the plain content (path(evenodd, …)), so
|
|
447
|
+
under a translucent indicator nothing is drawn twice; until it does, and while no tab is selected, the layer draws
|
|
448
|
+
nothing. A clip, not a blend mode: the colors are the tokens'. */
|
|
449
|
+
.cover {
|
|
450
|
+
position: absolute;
|
|
451
|
+
inset: 0;
|
|
452
|
+
background: var(--_pill);
|
|
453
|
+
clip-path: inset(50%);
|
|
454
|
+
pointer-events: none;
|
|
455
|
+
transition: background-color ${unsafeCSS(STATE_MOTION)};
|
|
456
|
+
}
|
|
457
|
+
.cover .label {
|
|
458
|
+
color: var(--_cl);
|
|
459
|
+
}
|
|
460
|
+
/* TAB-16: the underline's piece on the tab's bottom edge (the row's), above the divider, underline.thickness thick; the
|
|
461
|
+
row clips it to the selected tab's content (primary) or the whole tab (secondary), the corners that face away from
|
|
462
|
+
the divider rounded by underline.shape. */
|
|
463
|
+
.underline {
|
|
464
|
+
position: absolute;
|
|
465
|
+
inset-inline: 0;
|
|
466
|
+
inset-block-end: 0;
|
|
467
|
+
block-size: var(--_ut);
|
|
468
|
+
background: var(--_line);
|
|
469
|
+
clip-path: inset(50%);
|
|
470
|
+
pointer-events: none;
|
|
471
|
+
transition: background-color ${unsafeCSS(STATE_MOTION)};
|
|
472
|
+
}
|
|
473
|
+
/* TAB-25: the plain tooltip of a truncated label lies over the whole tab, drawing nothing, so the pointer over the tab
|
|
474
|
+
is over it. */
|
|
475
|
+
.tip {
|
|
476
|
+
position: absolute;
|
|
477
|
+
inset: 0;
|
|
478
|
+
display: block;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
/* TAB-3, TAB-6, TAB-8, TAB-9: each state paints from that state's tokens of the tab's look; pressed > focused > hovered,
|
|
482
|
+
disabled over all. Pressed is data-pressed="<feedback>" (PressController): overlay paints the pressed tokens on the
|
|
483
|
+
whole container; ripple and dim paint everything else from them while the container color stays with the state
|
|
484
|
+
under the press; none paints nothing. */
|
|
485
|
+
${stateRules(on, {
|
|
486
|
+
hovered: `${set('-h')}
|
|
487
|
+
opacity: ${T('hovered-opacity')};`,
|
|
488
|
+
focused: `${set('-f')}
|
|
489
|
+
opacity: ${T('focused-opacity')};`,
|
|
490
|
+
pressed: `${set('-p')}
|
|
491
|
+
opacity: ${T('pressed-opacity')};`,
|
|
492
|
+
pressedContent: `${set('-p', 'c')}
|
|
493
|
+
opacity: ${T('pressed-opacity')};`,
|
|
494
|
+
disabled: `
|
|
495
|
+
cursor: default;${set('-d')}
|
|
496
|
+
opacity: ${T('disabled-opacity')};`,
|
|
497
|
+
})}
|
|
498
|
+
.tab[data-pressed]:not([data-pressed='none']) :is(.box, .label, .icon, .cover, .underline) {
|
|
499
|
+
transition-duration: 0s;
|
|
500
|
+
}
|
|
501
|
+
/* TAB-23, TAB-38: a tab of a row that follows its group's choice, or one restored from storage, changes its colors at
|
|
502
|
+
once — the row marks it for the frame that draws the change. */
|
|
503
|
+
.tab[data-still],
|
|
504
|
+
.tab[data-still] :is(.box, .label, .icon, .cover, .underline) {
|
|
505
|
+
transition-duration: 0s;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
/* TAB-9 ripple: grows over comp.tabs.motion.feedback-duration and fades over motion.state-duration, both with
|
|
509
|
+
motion.state-easing. */
|
|
510
|
+
${rippleStyles({
|
|
511
|
+
color: '--_c-p',
|
|
512
|
+
grow: `${PREFIX}-motion-feedback-duration`,
|
|
513
|
+
fade: `${PREFIX}-motion-state-duration`,
|
|
514
|
+
easing: `${PREFIX}-motion-state-easing`,
|
|
515
|
+
})}
|
|
516
|
+
|
|
517
|
+
/* TAB-4, TAB-10: the ring (or the glow) around the container, concentric and in its shape, sys.focus.offset outside
|
|
518
|
+
it, and held inside the track: where track.padding is less than the ring reaches it is drawn further in by the
|
|
519
|
+
difference. For keyboard focus only, never animated; drawn over the covered layer and the neighbouring tabs. */
|
|
520
|
+
${focusRing((focus) => `:host(${focus}) .ring`, { within: T('track-padding') })}
|
|
521
|
+
|
|
522
|
+
/* TAB-10: corner smoothing on the container and the ring (data-tanrei-shape). */
|
|
523
|
+
${shape}
|
|
524
|
+
|
|
525
|
+
/* TAB-18: the icon, drawn with the system's icon set in the family and fill of the tab's selection. TAB-32: iconGlyph()
|
|
526
|
+
mirrors the glyph GlyphMirrorController marked, in both copies, in right-to-left, in its own box. */
|
|
527
|
+
${iconGlyph('.icon', { size: '--_size-icon', selected: '.tab.selected', duration: `${PREFIX}-motion-state-duration`, easing: `${PREFIX}-motion-state-easing` })}
|
|
528
|
+
.icon {
|
|
529
|
+
flex: none;
|
|
530
|
+
color: var(--_i);
|
|
531
|
+
transition:
|
|
532
|
+
color ${unsafeCSS(STATE_MOTION)},
|
|
533
|
+
font-variation-settings ${unsafeCSS(STATE_MOTION)};
|
|
534
|
+
}
|
|
535
|
+
.cover .icon {
|
|
536
|
+
color: var(--_ci);
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
/* TAB-8: the content carries press-hold for PressController; it has no transition of its own. */
|
|
540
|
+
${pressHold('.content')}
|
|
541
|
+
|
|
542
|
+
@media (prefers-reduced-motion: reduce) {
|
|
543
|
+
.tab,
|
|
544
|
+
.box,
|
|
545
|
+
.label,
|
|
546
|
+
.icon,
|
|
547
|
+
.cover,
|
|
548
|
+
.underline {
|
|
549
|
+
transition: none;
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
@media (forced-colors: active) {
|
|
553
|
+
.cover,
|
|
554
|
+
.underline {
|
|
555
|
+
forced-color-adjust: none;
|
|
556
|
+
background: Highlight;
|
|
557
|
+
}
|
|
558
|
+
.cover :is(.label, .icon) {
|
|
559
|
+
color: HighlightText;
|
|
560
|
+
}
|
|
561
|
+
.tab.p.d :is(.label, .icon) {
|
|
562
|
+
color: GrayText;
|
|
563
|
+
}
|
|
564
|
+
.tab.pill-disabled :is(.cover, .underline) {
|
|
565
|
+
background: GrayText;
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
`;
|
|
569
|
+
/**
|
|
570
|
+
* A tab panel (TAB-13, TBV-9, TBV-10): shown only while its tab is selected; a Tab stop itself when it holds nothing
|
|
571
|
+
* focusable. A panel of a `<tanrei-tab-view>` (`.inside`) draws its ring inside its edge — the view clips what is drawn
|
|
572
|
+
* outside it — with its corners following comp.tab-view.container.shape; the tabs' own panel draws it around its edge.
|
|
573
|
+
*/
|
|
574
|
+
export const panelStyles = css `
|
|
575
|
+
:host {
|
|
576
|
+
display: block;
|
|
577
|
+
outline: none;
|
|
578
|
+
}
|
|
579
|
+
:host([hidden]) {
|
|
580
|
+
display: none;
|
|
581
|
+
}
|
|
582
|
+
.panel {
|
|
583
|
+
position: relative;
|
|
584
|
+
${unsafeCSS(cornerRadius('--tanrei-sys-shape-corner-none'))}
|
|
585
|
+
}
|
|
586
|
+
.panel.inside {
|
|
587
|
+
box-sizing: border-box;
|
|
588
|
+
min-block-size: 100%;
|
|
589
|
+
${unsafeCSS(cornerRadius('--tanrei-comp-tab-view-container-shape'))}
|
|
590
|
+
}
|
|
591
|
+
${focusRing((focus) => `:host(${focus}) .panel:not(.inside)`)}
|
|
592
|
+
${focusRing((focus) => `:host(${focus}) .panel.inside`, { inside: true })}
|
|
593
|
+
${shape}
|
|
594
|
+
`;
|
|
595
|
+
//# sourceMappingURL=tabs.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs.styles.js","sourceRoot":"","sources":["../../../src/components/tabs/tabs.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAiB,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACjI,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAE5D,2GAA2G;AAC3G,uHAAuH;AACvH,yHAAyH;AACzH,0GAA0G;AAC1G,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,SAAS,EAAE,WAAW,EAAE,OAAO,CAAU,CAAC;AACxE,MAAM,eAAe,GAAG,SAAS,CAAC;AAClC,yEAAyE;AACzE,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,OAAO,EAAE,QAAQ,CAAU,CAAC;AACvD,MAAM,YAAY,G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