@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,482 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Table of contents (specs/table-of-contents.spec.json, TOC-1 to TOC-40): the headings
|
|
3
|
+
* of the page being read as links to them, sub-headings set in under their heading, the one being read marked.
|
|
4
|
+
*
|
|
5
|
+
* `<tanrei-table-of-contents>` is an element around the product's own nested list of anchors, which stay in the
|
|
6
|
+
* document: before any script runs and without it the page holds a plain list of links that work, which a crawler, a
|
|
7
|
+
* search index and the browser's own list of links read as they are.
|
|
8
|
+
*
|
|
9
|
+
* <tanrei-table-of-contents label="On this page" density="compact">
|
|
10
|
+
* <ul>
|
|
11
|
+
* <li><a href="#install">Install</a>
|
|
12
|
+
* <ul>
|
|
13
|
+
* <li><a href="#npm">npm</a></li>
|
|
14
|
+
* </ul>
|
|
15
|
+
* </li>
|
|
16
|
+
* <li><a href="#configure" aria-current="location">Configure</a></li>
|
|
17
|
+
* </ul>
|
|
18
|
+
* </tanrei-table-of-contents>
|
|
19
|
+
*
|
|
20
|
+
* An item is an `<li>` whose first child is its anchor; its own items are a list after the anchor, inside the same
|
|
21
|
+
* `<li>`. Level is the nesting of the lists. The current item is the anchor that carries `aria-current`.
|
|
22
|
+
*
|
|
23
|
+
* This stylesheet draws the list — the rows, the indent, the rail, the marker, every state — and, until the element
|
|
24
|
+
* is defined, the title from the `label` attribute, so that the list does not change place when the script loads. The
|
|
25
|
+
* element (src/components/table-of-contents/table-of-contents.ts) keeps a shadow root for what the product did not
|
|
26
|
+
* write (the navigation landmark, the title, the compact presentation's row and block) and writes here:
|
|
27
|
+
*
|
|
28
|
+
* aria-current="location" (on an anchor) the current item (TOC-7, TOC-8)
|
|
29
|
+
* data-tanrei-label (on an li) the label's text, drawn unseen at the current item's weight so that a row
|
|
30
|
+
* is as high for its label at either weight (TOC-7)
|
|
31
|
+
* dir="auto" (on an anchor without one) a label with a letter: the anchor takes its text's direction, so that every
|
|
32
|
+
* engine lays its lines out alike (TOC-37); a label without one has none
|
|
33
|
+
* data-tanrei-neutral (on an li) a label without a letter (a version, a number): the layout's direction
|
|
34
|
+
* data-tanrei-empty (on an li) an item whose label is only white space: not drawn (TOC-40)
|
|
35
|
+
* data-empty (on the element) no item is drawn: neither is the element (TOC-32)
|
|
36
|
+
* data-pressed (on an anchor) the answer to a press the system names: overlay, ripple, dim, none (TOC-21)
|
|
37
|
+
* data-focus-style (on an anchor) the focus style, where the browser has no style queries (TOC-22)
|
|
38
|
+
* role="list" (on a list without a role) a list without markers is still exposed as a list in every engine (TOC-31)
|
|
39
|
+
*
|
|
40
|
+
* Every value is a `--tanrei-comp-table-of-contents-*` token, or the system's focus, target and press-hold tokens.
|
|
41
|
+
*
|
|
42
|
+
* HOW IT IS WRITTEN
|
|
43
|
+
*
|
|
44
|
+
* - Every selector starts at the element's name and has no specificity (`:where()`; a rule on a pseudo-element has a
|
|
45
|
+
* pseudo-element's), so one class of the product's wins, and the ORDER of the rules decides between two of them.
|
|
46
|
+
* - The inset of a level is passed down by two names that take turns, because a custom property cannot be computed
|
|
47
|
+
* from itself: a list takes `--_toc-inset` from `--_toc-next`, and an item sets `--_toc-next` one indent further
|
|
48
|
+
* for the lists inside it. Any depth is drawn (TOC-39).
|
|
49
|
+
* - Only the label is set in: every anchor runs from the rail to the list's end edge, so the state layer, the focus
|
|
50
|
+
* ring and the marker of every level start at one edge (TOC-3).
|
|
51
|
+
* - The rail is the first list's `::before` and the marker an anchor's `::before`, both borders — which forced colors
|
|
52
|
+
* keep — drawn over the rows' first pixels: they take no room.
|
|
53
|
+
* - An item is a grid of one column: its anchor and, in the same cell, its `::before` — the label once more at the
|
|
54
|
+
* current item's weight, not seen — so the row is as high as the taller of the two; the item's own list is the
|
|
55
|
+
* second row.
|
|
56
|
+
* - The state rules, the focus indicator and the ripple's layer say what `stateRules()`, `focusRing()` and
|
|
57
|
+
* `rippleStyles()` (src/primitives) say for a shadow root; they are restated here for an element of the document.
|
|
58
|
+
* The inner stroke of the focus ring is the anchor's `::after`.
|
|
59
|
+
* - Pressed: with the package's script it is `data-pressed` (the shared press primitive). Without it, `:active` is
|
|
60
|
+
* the overlay, held for press-hold by a delayed step of two names (below).
|
|
61
|
+
* - The corner rule (src/styles/shape.ts) is written by the build in place of the `table-of-contents:shape`
|
|
62
|
+
* mark.
|
|
63
|
+
* - Names that begin `--_toc-` are private.
|
|
64
|
+
*/
|
|
65
|
+
/* The hold of a press that no script answers. While a row is held down, and for press-hold after, the pressed container
|
|
66
|
+
is drawn as a layer of its own — an image of that one color — and the state's color under it is not drawn: the
|
|
67
|
+
pressed color stands in the state's place, as it does with the script, and is not laid over it. Both are said by two
|
|
68
|
+
names that only a press changes, `--_toc-held-image` and `--_toc-held-clip` (the second layer of the image is there for
|
|
69
|
+
its clip alone: a background's color is clipped as its last layer is, and `text` leaves it behind the glyphs). No one
|
|
70
|
+
registers them — a registered custom property makes every transition of the page dear: each is a custom property like any other, which may change
|
|
71
|
+
in steps (`transition-behavior: allow-discrete`, said wherever the transition is), and a step after press-hold is all
|
|
72
|
+
the hold is; the two properties that read them have no transition, so they follow the names frame by frame. The
|
|
73
|
+
background's COLOR takes no part in the hold: mixed with the pressed one by a held number, it started its own
|
|
74
|
+
transition when the press ended — toward the value it has without the hold, which a transition's start does not
|
|
75
|
+
count — faded there while the press was being held, and came back. Where the browser does not know a step, the press
|
|
76
|
+
ends when the pointer is lifted. */
|
|
77
|
+
|
|
78
|
+
@layer tanrei.components {
|
|
79
|
+
/* ── The corners of a row (TOC-3, TOC-22) ───────────────────────────────────────────────────────────────────── */
|
|
80
|
+
:where(tanrei-table-of-contents) :where(li) > :where(a) {
|
|
81
|
+
& {
|
|
82
|
+
--tanrei-corner-pill: 0;
|
|
83
|
+
}
|
|
84
|
+
& {
|
|
85
|
+
--_corner-scale: 1;
|
|
86
|
+
border-radius: calc(var(--tanrei-corner-radius) * var(--_corner-scale));
|
|
87
|
+
}
|
|
88
|
+
@supports (corner-shape: superellipse(log(2, 2))) {
|
|
89
|
+
& {
|
|
90
|
+
--_corner-smoothing: calc(var(--tanrei-sys-shape-corner-smoothing, 0) * (1 - var(--tanrei-corner-pill, 0)));
|
|
91
|
+
--_corner-scale: calc(1 + 0.4 * var(--_corner-smoothing));
|
|
92
|
+
corner-shape: superellipse(log(calc(2 + var(--_corner-smoothing)), 2));
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
&::before,
|
|
96
|
+
&::after {
|
|
97
|
+
corner-shape: inherit;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/* ── The whole (TOC-1): as wide as its layout; no fill, no edge, no padding, no place of its own ────────────── */
|
|
102
|
+
:where(tanrei-table-of-contents) {
|
|
103
|
+
/* TOC-3: the density's height and block padding (TOC-39: any other density is the default's). */
|
|
104
|
+
--_toc-row-height: var(--tanrei-comp-table-of-contents-row-height-regular);
|
|
105
|
+
--_toc-row-pad: var(--tanrei-comp-table-of-contents-row-padding-block-regular);
|
|
106
|
+
/* TOC-24: what a row is never lower than — the pointer target at the regular density, the touch target for touch. */
|
|
107
|
+
--_toc-row-floor: var(--tanrei-sys-target-pointer);
|
|
108
|
+
/* The first list's labels are not set in. */
|
|
109
|
+
--_toc-next: 0px;
|
|
110
|
+
/* TOC-35, TOC-37: start as a side, by the layout direction — not by a text's own. A label is text of its own
|
|
111
|
+
direction, and its anchor may carry that direction (`dir="auto"`), so nothing of a row is placed by the anchor's
|
|
112
|
+
logical sides: 1 for the side that is the layout's start, 0 for the other. */
|
|
113
|
+
--_toc-start: left;
|
|
114
|
+
--_toc-left: 1;
|
|
115
|
+
--_toc-right: 0;
|
|
116
|
+
display: block;
|
|
117
|
+
box-sizing: border-box;
|
|
118
|
+
min-inline-size: 0;
|
|
119
|
+
margin: 0;
|
|
120
|
+
padding: 0;
|
|
121
|
+
}
|
|
122
|
+
:where(tanrei-table-of-contents):dir(rtl) {
|
|
123
|
+
--_toc-start: right;
|
|
124
|
+
--_toc-left: 0;
|
|
125
|
+
--_toc-right: 1;
|
|
126
|
+
}
|
|
127
|
+
:where(tanrei-table-of-contents[density='compact']) {
|
|
128
|
+
--_toc-row-height: var(--tanrei-comp-table-of-contents-row-height-compact);
|
|
129
|
+
--_toc-row-pad: var(--tanrei-comp-table-of-contents-row-padding-block-compact);
|
|
130
|
+
/* The one place a row is lower than the pointer target: the density is asked for by name. */
|
|
131
|
+
--_toc-row-floor: 0px;
|
|
132
|
+
}
|
|
133
|
+
@media (pointer: coarse) {
|
|
134
|
+
:where(tanrei-table-of-contents),
|
|
135
|
+
:where(tanrei-table-of-contents[density='compact']) {
|
|
136
|
+
--_toc-row-floor: var(--tanrei-sys-target-touch);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
/* TOC-27: the compact presentation is a column whose list gives way — and scrolls — where the layout holds the
|
|
140
|
+
element to less than the list needs. (Said here and not by the shadow root: what the document says of an element
|
|
141
|
+
wins over what its own root says of it.) */
|
|
142
|
+
:where(tanrei-table-of-contents[presentation='compact']:defined) {
|
|
143
|
+
display: flex;
|
|
144
|
+
flex-direction: column;
|
|
145
|
+
}
|
|
146
|
+
/* TOC-32: no items — nothing is drawn, no space is taken. */
|
|
147
|
+
:where(tanrei-table-of-contents[hidden], tanrei-table-of-contents[data-empty], tanrei-table-of-contents:not(:has(li > a))) {
|
|
148
|
+
display: none;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/* ── The title, until the element is defined (TOC-2): the label's text, where the shadow root will draw it ──── */
|
|
152
|
+
:where(tanrei-table-of-contents[label]:not([label=''], [label-hidden], :defined, :has(> [slot='title'])))::before {
|
|
153
|
+
content: attr(label);
|
|
154
|
+
display: block;
|
|
155
|
+
margin-block-end: var(--tanrei-comp-table-of-contents-container-gap);
|
|
156
|
+
font: var(--tanrei-comp-table-of-contents-title-typescale-font);
|
|
157
|
+
letter-spacing: var(--tanrei-comp-table-of-contents-title-typescale-letter-spacing);
|
|
158
|
+
color: var(--tanrei-comp-table-of-contents-title-color);
|
|
159
|
+
text-align: var(--_toc-start);
|
|
160
|
+
overflow-wrap: anywhere;
|
|
161
|
+
unicode-bidi: plaintext;
|
|
162
|
+
}
|
|
163
|
+
/* The product's own title: drawn in the title's text style whatever its level (the shadow root says the same). */
|
|
164
|
+
:where(tanrei-table-of-contents) > :where([slot='title']) {
|
|
165
|
+
margin: 0;
|
|
166
|
+
padding: 0;
|
|
167
|
+
font: var(--tanrei-comp-table-of-contents-title-typescale-font);
|
|
168
|
+
letter-spacing: var(--tanrei-comp-table-of-contents-title-typescale-letter-spacing);
|
|
169
|
+
color: var(--tanrei-comp-table-of-contents-title-color);
|
|
170
|
+
text-align: var(--_toc-start);
|
|
171
|
+
overflow-wrap: anywhere;
|
|
172
|
+
unicode-bidi: plaintext;
|
|
173
|
+
}
|
|
174
|
+
:where(tanrei-table-of-contents:not(:defined)) > :where([slot='title']) {
|
|
175
|
+
margin-block-end: var(--tanrei-comp-table-of-contents-container-gap);
|
|
176
|
+
}
|
|
177
|
+
:where(tanrei-table-of-contents[label-hidden]:not(:defined)) > :where([slot='title']) {
|
|
178
|
+
display: none;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/* ── The lists (TOC-1, TOC-3): one column, rows that follow one another with no space between them ──────────── */
|
|
182
|
+
:where(tanrei-table-of-contents) :where(ul, ol) {
|
|
183
|
+
--_toc-inset: var(--_toc-next);
|
|
184
|
+
display: block;
|
|
185
|
+
box-sizing: border-box;
|
|
186
|
+
min-inline-size: 0;
|
|
187
|
+
margin: 0;
|
|
188
|
+
padding: 0;
|
|
189
|
+
list-style: none;
|
|
190
|
+
}
|
|
191
|
+
:where(tanrei-table-of-contents) :where(li) {
|
|
192
|
+
/* TOC-3: each level of nesting sets its label one indent further in. */
|
|
193
|
+
--_toc-next: calc(var(--_toc-inset) + var(--tanrei-comp-table-of-contents-row-indent));
|
|
194
|
+
display: grid;
|
|
195
|
+
grid-template-columns: minmax(0, 1fr);
|
|
196
|
+
box-sizing: border-box;
|
|
197
|
+
min-inline-size: 0;
|
|
198
|
+
margin: 0;
|
|
199
|
+
padding: 0;
|
|
200
|
+
}
|
|
201
|
+
:where(tanrei-table-of-contents) :where(li) > :where(ul, ol) {
|
|
202
|
+
grid-column: 1;
|
|
203
|
+
grid-row: 2;
|
|
204
|
+
}
|
|
205
|
+
/* TOC-40: an item without a label is not drawn, and neither are its items. */
|
|
206
|
+
:where(tanrei-table-of-contents) :where(li:has(> a:empty), li[data-tanrei-empty]) {
|
|
207
|
+
display: none;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/* ── The rail (TOC-5): one hairline along the first list's start edge, as long as the list ──────────────────── */
|
|
211
|
+
:where(tanrei-table-of-contents) > :where(ul, ol) {
|
|
212
|
+
position: relative;
|
|
213
|
+
}
|
|
214
|
+
:where(tanrei-table-of-contents) > :where(ul, ol)::before {
|
|
215
|
+
content: '';
|
|
216
|
+
position: absolute;
|
|
217
|
+
inset-block: 0;
|
|
218
|
+
inset-inline-start: 0;
|
|
219
|
+
border-inline-start: var(--tanrei-comp-table-of-contents-rail-width) solid var(--tanrei-comp-table-of-contents-rail-color);
|
|
220
|
+
pointer-events: none;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/* ── A row (TOC-3, TOC-4, TOC-6, TOC-24): the product's anchor, from the rail to the list's end edge ────────── */
|
|
224
|
+
:where(tanrei-table-of-contents) :where(li) > :where(a) {
|
|
225
|
+
/* The item part's colors in each state (TOC-18); the current item's are below. */
|
|
226
|
+
--_toc-container: var(--tanrei-comp-table-of-contents-item-container-color);
|
|
227
|
+
--_toc-label: var(--tanrei-comp-table-of-contents-item-label-color);
|
|
228
|
+
--_toc-hovered-container: var(--tanrei-comp-table-of-contents-item-hovered-container-color);
|
|
229
|
+
--_toc-hovered-label: var(--tanrei-comp-table-of-contents-item-hovered-label-color);
|
|
230
|
+
--_toc-focused-container: var(--tanrei-comp-table-of-contents-item-focused-container-color);
|
|
231
|
+
--_toc-focused-label: var(--tanrei-comp-table-of-contents-item-focused-label-color);
|
|
232
|
+
--_toc-pressed-container: var(--tanrei-comp-table-of-contents-item-pressed-container-color);
|
|
233
|
+
--_toc-pressed-label: var(--tanrei-comp-table-of-contents-item-pressed-label-color);
|
|
234
|
+
--_toc-now-container: var(--_toc-container);
|
|
235
|
+
--_toc-now-label: var(--_toc-label);
|
|
236
|
+
--tanrei-corner-radius: var(--tanrei-comp-table-of-contents-row-shape);
|
|
237
|
+
--tanrei-corner-pill: var(--tanrei-comp-table-of-contents-row-shape-pill, 0);
|
|
238
|
+
grid-column: 1;
|
|
239
|
+
grid-row: 1;
|
|
240
|
+
position: relative;
|
|
241
|
+
isolation: isolate;
|
|
242
|
+
display: block;
|
|
243
|
+
box-sizing: border-box;
|
|
244
|
+
min-inline-size: 0;
|
|
245
|
+
min-block-size: max(var(--_toc-row-height), var(--_toc-row-floor));
|
|
246
|
+
margin: 0;
|
|
247
|
+
padding-block: var(--_toc-row-pad);
|
|
248
|
+
padding-left: calc(var(--tanrei-comp-table-of-contents-row-padding-inline) + var(--_toc-inset) * var(--_toc-left));
|
|
249
|
+
padding-right: calc(var(--tanrei-comp-table-of-contents-row-padding-inline) + var(--_toc-inset) * var(--_toc-right));
|
|
250
|
+
/* A row higher than its label (a system whose line is shorter, the touch target) shares the rest above and below. */
|
|
251
|
+
align-content: center;
|
|
252
|
+
font: var(--tanrei-comp-table-of-contents-label-typescale-font);
|
|
253
|
+
letter-spacing: var(--tanrei-comp-table-of-contents-label-typescale-letter-spacing);
|
|
254
|
+
color: var(--_toc-now-label);
|
|
255
|
+
/* TOC-6: a row of a list in a landmark is not told from text beside it — no underline, and no visited state. */
|
|
256
|
+
text-decoration: none;
|
|
257
|
+
/* TOC-4: a label wraps where its language allows and, for a run longer than the line, inside the run. */
|
|
258
|
+
overflow-wrap: anywhere;
|
|
259
|
+
/* TOC-37: text of its own direction, its lines aligned by the layout's. */
|
|
260
|
+
text-align: var(--_toc-start);
|
|
261
|
+
unicode-bidi: plaintext;
|
|
262
|
+
background-color: var(--_toc-now-container);
|
|
263
|
+
background-image: var(--_toc-held-image);
|
|
264
|
+
background-clip: var(--_toc-held-clip);
|
|
265
|
+
cursor: pointer;
|
|
266
|
+
-webkit-tap-highlight-color: transparent;
|
|
267
|
+
/* (The hold stands first: its delay is where the script reads sys.motion.duration.press-hold as a time.) */
|
|
268
|
+
--_toc-held-image: none;
|
|
269
|
+
--_toc-held-clip: border-box;
|
|
270
|
+
transition:
|
|
271
|
+
--_toc-held-image 0s linear var(--tanrei-sys-motion-duration-press-hold),
|
|
272
|
+
--_toc-held-clip 0s linear var(--tanrei-sys-motion-duration-press-hold),
|
|
273
|
+
background-color var(--tanrei-comp-table-of-contents-motion-state-duration) var(--tanrei-comp-table-of-contents-motion-state-easing),
|
|
274
|
+
color var(--tanrei-comp-table-of-contents-motion-state-duration) var(--tanrei-comp-table-of-contents-motion-state-easing),
|
|
275
|
+
opacity var(--tanrei-comp-table-of-contents-motion-state-duration) var(--tanrei-comp-table-of-contents-motion-state-easing);
|
|
276
|
+
transition-behavior: allow-discrete;
|
|
277
|
+
}
|
|
278
|
+
/* TOC-7: the label once more at the current item's weight, in the anchor's own cell and not seen, so that the row
|
|
279
|
+
is as high as its label needs at either weight and no row changes height when the current item does. */
|
|
280
|
+
:where(tanrei-table-of-contents) :where(li[data-tanrei-label])::before {
|
|
281
|
+
content: attr(data-tanrei-label);
|
|
282
|
+
content: attr(data-tanrei-label) / '';
|
|
283
|
+
grid-column: 1;
|
|
284
|
+
grid-row: 1;
|
|
285
|
+
box-sizing: border-box;
|
|
286
|
+
min-inline-size: 0;
|
|
287
|
+
padding-block: var(--_toc-row-pad);
|
|
288
|
+
padding-left: calc(var(--tanrei-comp-table-of-contents-row-padding-inline) + var(--_toc-inset) * var(--_toc-left));
|
|
289
|
+
padding-right: calc(var(--tanrei-comp-table-of-contents-row-padding-inline) + var(--_toc-inset) * var(--_toc-right));
|
|
290
|
+
font: var(--tanrei-comp-table-of-contents-label-typescale-font);
|
|
291
|
+
font-weight: var(--tanrei-comp-table-of-contents-label-typescale-font-weight-emphasized);
|
|
292
|
+
letter-spacing: var(--tanrei-comp-table-of-contents-label-typescale-letter-spacing);
|
|
293
|
+
overflow-wrap: anywhere;
|
|
294
|
+
unicode-bidi: plaintext;
|
|
295
|
+
visibility: hidden;
|
|
296
|
+
pointer-events: none;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
/* TOC-37: a label without a letter has no direction of its own, and is laid out in the layout's. (After the row's own rule: the order decides.) */
|
|
300
|
+
:where(tanrei-table-of-contents) :where(li[data-tanrei-neutral]) > :where(a),
|
|
301
|
+
:where(tanrei-table-of-contents) :where(li[data-tanrei-neutral])::before {
|
|
302
|
+
unicode-bidi: normal;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/* ── The marker (TOC-7): a heavier stroke on the rail beside the current row, as high as the row ────────────── */
|
|
306
|
+
:where(tanrei-table-of-contents) :where(li) > :where(a)::before {
|
|
307
|
+
content: '';
|
|
308
|
+
position: absolute;
|
|
309
|
+
inset-block: 0;
|
|
310
|
+
/* (At the layout's start, whatever direction the anchor's own text gave it: a stroke of no width at the other side.) */
|
|
311
|
+
left: 0;
|
|
312
|
+
right: 0;
|
|
313
|
+
border: 0 solid var(--tanrei-comp-table-of-contents-marker-color);
|
|
314
|
+
border-left-width: calc(var(--tanrei-comp-table-of-contents-marker-width) * var(--_toc-left));
|
|
315
|
+
border-right-width: calc(var(--tanrei-comp-table-of-contents-marker-width) * var(--_toc-right));
|
|
316
|
+
opacity: 0;
|
|
317
|
+
pointer-events: none;
|
|
318
|
+
transition: opacity var(--tanrei-comp-table-of-contents-motion-state-duration) var(--tanrei-comp-table-of-contents-motion-state-easing);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
/* ── The current item (TOC-7, TOC-8): the current part's tokens, the heavier label, the marker ──────────────── */
|
|
322
|
+
:where(tanrei-table-of-contents) :where(li) > :where(a[aria-current]:not([aria-current='false'])) {
|
|
323
|
+
--_toc-container: var(--tanrei-comp-table-of-contents-current-container-color);
|
|
324
|
+
--_toc-label: var(--tanrei-comp-table-of-contents-current-label-color);
|
|
325
|
+
--_toc-hovered-container: var(--tanrei-comp-table-of-contents-current-hovered-container-color);
|
|
326
|
+
--_toc-hovered-label: var(--tanrei-comp-table-of-contents-current-hovered-label-color);
|
|
327
|
+
--_toc-focused-container: var(--tanrei-comp-table-of-contents-current-focused-container-color);
|
|
328
|
+
--_toc-focused-label: var(--tanrei-comp-table-of-contents-current-focused-label-color);
|
|
329
|
+
--_toc-pressed-container: var(--tanrei-comp-table-of-contents-current-pressed-container-color);
|
|
330
|
+
--_toc-pressed-label: var(--tanrei-comp-table-of-contents-current-pressed-label-color);
|
|
331
|
+
font-weight: var(--tanrei-comp-table-of-contents-label-typescale-font-weight-emphasized);
|
|
332
|
+
}
|
|
333
|
+
:where(tanrei-table-of-contents) :where(li) > :where(a[aria-current]:not([aria-current='false']))::before {
|
|
334
|
+
opacity: 1;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
/* ── States (TOC-18): pressed over focused over hovered, each from its own tokens ───────────────────────────── */
|
|
338
|
+
@media (hover: hover) {
|
|
339
|
+
:where(tanrei-table-of-contents) :where(li) > :where(a:hover) {
|
|
340
|
+
--_toc-now-container: var(--_toc-hovered-container);
|
|
341
|
+
--_toc-now-label: var(--_toc-hovered-label);
|
|
342
|
+
opacity: var(--tanrei-comp-table-of-contents-hovered-opacity);
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
/* TOC-19: the focus indicator, inside the row, so that neither a neighbouring row nor the edge of a scrolling
|
|
346
|
+
region cuts it; never animated, never for a pointer. The outer stroke on the row's edge, the inner stroke (where
|
|
347
|
+
the system has one) within it. */
|
|
348
|
+
:where(tanrei-table-of-contents) :where(li) > :where(a:focus-visible) {
|
|
349
|
+
--_toc-now-container: var(--_toc-focused-container);
|
|
350
|
+
--_toc-now-label: var(--_toc-focused-label);
|
|
351
|
+
opacity: var(--tanrei-comp-table-of-contents-focused-opacity);
|
|
352
|
+
outline: var(--tanrei-sys-focus-outer-width) solid var(--tanrei-sys-color-focus-ring);
|
|
353
|
+
outline-offset: calc(var(--tanrei-sys-focus-outer-width) * -1);
|
|
354
|
+
}
|
|
355
|
+
:where(tanrei-table-of-contents) :where(li) > :where(a:focus-visible)::after {
|
|
356
|
+
content: '';
|
|
357
|
+
position: absolute;
|
|
358
|
+
inset: var(--tanrei-sys-focus-outer-width);
|
|
359
|
+
border: var(--tanrei-sys-focus-inner-width) solid var(--tanrei-sys-color-focus-ring-inner);
|
|
360
|
+
border-radius: max(0px, calc(var(--tanrei-corner-radius) * var(--_corner-scale) - var(--tanrei-sys-focus-outer-width)));
|
|
361
|
+
pointer-events: none;
|
|
362
|
+
}
|
|
363
|
+
/* TOC-22, focus-style: glow — the same two colors as a halo inside the row; read by a style query, and from
|
|
364
|
+
data-focus-style (written by the element when focus arrives) where there are none. */
|
|
365
|
+
@container style(--tanrei-sys-behavior-focus-style: glow) {
|
|
366
|
+
:where(tanrei-table-of-contents) :where(li) > :where(a:focus-visible) {
|
|
367
|
+
/* Transparent, not none: forced colors repaint it in a system color, where a box-shadow is dropped. */
|
|
368
|
+
outline-color: transparent;
|
|
369
|
+
}
|
|
370
|
+
:where(tanrei-table-of-contents) :where(li) > :where(a:focus-visible)::after {
|
|
371
|
+
--_toc-glow-inset: calc((var(--tanrei-sys-focus-inner-width) + var(--tanrei-sys-focus-outer-width)) * 2);
|
|
372
|
+
inset: var(--_toc-glow-inset);
|
|
373
|
+
border: 0;
|
|
374
|
+
border-radius: max(0px, calc(var(--tanrei-corner-radius) * var(--_corner-scale) - var(--_toc-glow-inset)));
|
|
375
|
+
box-shadow:
|
|
376
|
+
0 0 var(--tanrei-sys-focus-inner-width) var(--tanrei-sys-focus-inner-width) var(--tanrei-sys-color-focus-ring-inner),
|
|
377
|
+
0 0 var(--tanrei-sys-focus-outer-width) calc(var(--tanrei-sys-focus-inner-width) + var(--tanrei-sys-focus-outer-width)) var(--tanrei-sys-color-focus-ring);
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
:where(tanrei-table-of-contents) :where(li) > :where(a[data-focus-style='glow']:focus-visible) {
|
|
381
|
+
/* Transparent, not none: forced colors repaint it in a system color, where a box-shadow is dropped. */
|
|
382
|
+
outline-color: transparent;
|
|
383
|
+
}
|
|
384
|
+
:where(tanrei-table-of-contents) :where(li) > :where(a[data-focus-style='glow']:focus-visible)::after {
|
|
385
|
+
--_toc-glow-inset: calc((var(--tanrei-sys-focus-inner-width) + var(--tanrei-sys-focus-outer-width)) * 2);
|
|
386
|
+
inset: var(--_toc-glow-inset);
|
|
387
|
+
border: 0;
|
|
388
|
+
border-radius: max(0px, calc(var(--tanrei-corner-radius) * var(--_corner-scale) - var(--_toc-glow-inset)));
|
|
389
|
+
box-shadow:
|
|
390
|
+
0 0 var(--tanrei-sys-focus-inner-width) var(--tanrei-sys-focus-inner-width) var(--tanrei-sys-color-focus-ring-inner),
|
|
391
|
+
0 0 var(--tanrei-sys-focus-outer-width) calc(var(--tanrei-sys-focus-inner-width) + var(--tanrei-sys-focus-outer-width)) var(--tanrei-sys-color-focus-ring);
|
|
392
|
+
}
|
|
393
|
+
/* TOC-20, without script: the overlay at once, and the two names keep the container for press-hold after. */
|
|
394
|
+
:where(tanrei-table-of-contents) :where(li) > :where(a:active:not([data-pressed])) {
|
|
395
|
+
--_toc-held-image: linear-gradient(var(--_toc-pressed-container), var(--_toc-pressed-container)), none;
|
|
396
|
+
--_toc-held-clip: border-box, text;
|
|
397
|
+
--_toc-now-label: var(--_toc-pressed-label);
|
|
398
|
+
opacity: var(--tanrei-comp-table-of-contents-pressed-opacity);
|
|
399
|
+
transition-duration: 0s;
|
|
400
|
+
transition-delay: 0s;
|
|
401
|
+
}
|
|
402
|
+
/* TOC-20, TOC-21, with the script: `data-pressed` names the feedback. `none` changes nothing at all. */
|
|
403
|
+
:where(tanrei-table-of-contents) :where(li) > :where(a[data-pressed]:not([data-pressed='none'])) {
|
|
404
|
+
transition-duration: 0s;
|
|
405
|
+
}
|
|
406
|
+
:where(tanrei-table-of-contents) :where(li) > :where(a[data-pressed='overlay']) {
|
|
407
|
+
--_toc-now-container: var(--_toc-pressed-container);
|
|
408
|
+
--_toc-now-label: var(--_toc-pressed-label);
|
|
409
|
+
opacity: var(--tanrei-comp-table-of-contents-pressed-opacity);
|
|
410
|
+
}
|
|
411
|
+
/* ripple, dim: everything but the container color, which stays with the state under the press. */
|
|
412
|
+
:where(tanrei-table-of-contents) :where(li) > :where(a[data-pressed='ripple'], a[data-pressed='dim']) {
|
|
413
|
+
--_toc-now-label: var(--_toc-pressed-label);
|
|
414
|
+
opacity: var(--tanrei-comp-table-of-contents-pressed-opacity);
|
|
415
|
+
}
|
|
416
|
+
/* The ripple's layer (src/primitives/ripple.ts adds it and sets --_x, --_y, --_r): the pressed container color,
|
|
417
|
+
clipped to the row and to a circle around the point of contact, under the label and the marker. */
|
|
418
|
+
:where(tanrei-table-of-contents) :where(li) > :where(a) > :where(.ripple) {
|
|
419
|
+
position: absolute;
|
|
420
|
+
z-index: -1;
|
|
421
|
+
inset: 0;
|
|
422
|
+
border-radius: inherit;
|
|
423
|
+
corner-shape: inherit;
|
|
424
|
+
background: var(--_toc-pressed-container);
|
|
425
|
+
pointer-events: none;
|
|
426
|
+
clip-path: circle(var(--_r) at var(--_x) var(--_y));
|
|
427
|
+
animation: tanrei-table-of-contents-ripple var(--tanrei-comp-table-of-contents-motion-feedback-duration) var(--tanrei-comp-table-of-contents-motion-state-easing) both;
|
|
428
|
+
transition: opacity var(--tanrei-comp-table-of-contents-motion-state-duration) var(--tanrei-comp-table-of-contents-motion-state-easing);
|
|
429
|
+
}
|
|
430
|
+
:where(tanrei-table-of-contents) :where(li) > :where(a) > :where(.ripple.leaving) {
|
|
431
|
+
opacity: 0;
|
|
432
|
+
}
|
|
433
|
+
@keyframes tanrei-table-of-contents-ripple {
|
|
434
|
+
from {
|
|
435
|
+
clip-path: circle(0 at var(--_x) var(--_y));
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
/* ── Where motion is reduced (TOC-7, TOC-23): every change at once; the hold stays ──────────────────────────── */
|
|
440
|
+
@media (prefers-reduced-motion: reduce) {
|
|
441
|
+
:where(tanrei-table-of-contents) :where(li) > :where(a) {
|
|
442
|
+
transition:
|
|
443
|
+
--_toc-held-image 0s linear var(--tanrei-sys-motion-duration-press-hold),
|
|
444
|
+
--_toc-held-clip 0s linear var(--tanrei-sys-motion-duration-press-hold);
|
|
445
|
+
transition-behavior: allow-discrete;
|
|
446
|
+
}
|
|
447
|
+
:where(tanrei-table-of-contents) :where(li) > :where(a)::before {
|
|
448
|
+
transition: none;
|
|
449
|
+
}
|
|
450
|
+
:where(tanrei-table-of-contents) :where(li) > :where(a) > :where(.ripple) {
|
|
451
|
+
animation: none;
|
|
452
|
+
transition: none;
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
/* ── Forced colors (TOC-34): labels in the link color, the current label, the title, the rail and the marker in
|
|
457
|
+
the text color, focus in the highlight ───────────────────────────────────────────────────────────────────── */
|
|
458
|
+
@media (forced-colors: active) {
|
|
459
|
+
:where(tanrei-table-of-contents[label])::before,
|
|
460
|
+
:where(tanrei-table-of-contents) > :where([slot='title']) {
|
|
461
|
+
color: CanvasText;
|
|
462
|
+
}
|
|
463
|
+
:where(tanrei-table-of-contents) > :where(ul, ol)::before {
|
|
464
|
+
border-inline-start-color: CanvasText;
|
|
465
|
+
}
|
|
466
|
+
:where(tanrei-table-of-contents) :where(li) > :where(a) {
|
|
467
|
+
/* The container is the platform's, and so is a press: no layer of the row's own. */
|
|
468
|
+
background-image: none;
|
|
469
|
+
background-clip: border-box;
|
|
470
|
+
color: LinkText;
|
|
471
|
+
}
|
|
472
|
+
:where(tanrei-table-of-contents) :where(li) > :where(a[aria-current]:not([aria-current='false'])) {
|
|
473
|
+
color: CanvasText;
|
|
474
|
+
}
|
|
475
|
+
:where(tanrei-table-of-contents) :where(li) > :where(a)::before {
|
|
476
|
+
border-color: CanvasText;
|
|
477
|
+
}
|
|
478
|
+
:where(tanrei-table-of-contents) :where(li) > :where(a:focus-visible) {
|
|
479
|
+
outline-color: Highlight;
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
}
|