@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,797 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Tree view (specs/tree-view.spec.json, TRV-1 to TRV-42): a hierarchy of items that open and
|
|
3
|
+
* close — rows that begin further in at each level, a chevron at the start of every row that holds others.
|
|
4
|
+
*
|
|
5
|
+
* `<tanrei-tree-view>` is an element with no shadow root around the product's own nested lists, which stay in the
|
|
6
|
+
* document: a hierarchy is a nested list, and that is what the page shows, a crawler keeps and a reader mode reads
|
|
7
|
+
* where no script runs.
|
|
8
|
+
*
|
|
9
|
+
* <tanrei-tree-view label="Project files" selection="single" value="src/index.ts" density="compact" guides>
|
|
10
|
+
* <ul>
|
|
11
|
+
* <li data-value="src" data-open>
|
|
12
|
+
* <span>
|
|
13
|
+
* <i class="tanrei-icon" aria-hidden="true">folder</i>
|
|
14
|
+
* <bdi>src<small data-supporting-text>what is published</small></bdi>
|
|
15
|
+
* <span data-trailing><tanrei-tag>new</tanrei-tag></span>
|
|
16
|
+
* <span data-trailing-text>12 files</span>
|
|
17
|
+
* </span>
|
|
18
|
+
* <ul>
|
|
19
|
+
* <li data-value="src/index.ts"><span>index.ts</span></li>
|
|
20
|
+
* </ul>
|
|
21
|
+
* </li>
|
|
22
|
+
* <li data-expandable data-loading><span>node_modules</span></li>
|
|
23
|
+
* <li data-value="LICENSE" data-disabled><span>LICENSE</span></li>
|
|
24
|
+
* </ul>
|
|
25
|
+
* </tanrei-tree-view>
|
|
26
|
+
*
|
|
27
|
+
* An item is an `<li>`; its FIRST child element is its row and a `<ul>` after it holds its items. In the row: a
|
|
28
|
+
* `.tanrei-icon` is the icon, an element with `data-trailing` the trailing content, one with `data-trailing-text` the
|
|
29
|
+
* trailing text, and the rest is the label — the row's own text, or ONE element around it (a `<bdi>`: text with inline
|
|
30
|
+
* content, and a name whose direction is not the layout's). An element with `data-supporting-text` is the supporting
|
|
31
|
+
* text: inside the label's element it goes on where the label ends, set apart by the row's gap; directly in the row,
|
|
32
|
+
* after the row's own text, it goes on after the space the product wrote.
|
|
33
|
+
*
|
|
34
|
+
* Inside a `<bdi>` that is the label's element, the supporting text goes on at the end of the NAME's direction: a
|
|
35
|
+
* left-to-right name in a right-to-left tree has it at its right. Where it must stand on the layout's side whatever
|
|
36
|
+
* the name's direction — a tree of file names or ids with notes in the page's language — the label's element is a
|
|
37
|
+
* `<span>`, and the name has a `<bdi>` of its own inside it:
|
|
38
|
+
*
|
|
39
|
+
* <span><bdi>tokens/</bdi><small data-supporting-text>source of truth</small></span>
|
|
40
|
+
*
|
|
41
|
+
* Attributes of the item: `data-value`, `data-open`, `data-expandable`, `data-loading`, `data-disabled`.
|
|
42
|
+
*
|
|
43
|
+
* This stylesheet draws everything, before the element is defined (an element that is not yet defined is still an
|
|
44
|
+
* element), and where script does not run every level is shown and no chevron is drawn: a nested list in the tree's
|
|
45
|
+
* type and spacing. The element (src/components/tree-view/tree-view.ts) adds what a stylesheet cannot, and writes here:
|
|
46
|
+
*
|
|
47
|
+
* aria-selected="true" (on a row) the selected condition (TRV-15)
|
|
48
|
+
* data-pressed (on a row) the answer to a press the system names: overlay, ripple, dim, none (TRV-29)
|
|
49
|
+
* data-focus-style (on a row) the focus style, where the browser has no style queries (TRV-30)
|
|
50
|
+
* data-glyphs="pending" (on the tree) the icon set cannot draw a glyph yet: none is drawn, every box is kept (TRV-40)
|
|
51
|
+
* data-tanrei-leaf (on an li) an item whose list holds no item and that is not expandable: a leaf (TRV-42)
|
|
52
|
+
* data-tanrei-moving (on a list) the list is being revealed or hidden: drawn and clipped while its height moves (TRV-11)
|
|
53
|
+
* data-tanrei-at-once (on an li) this change of open is drawn without motion (TRV-9, TRV-14, TRV-42)
|
|
54
|
+
* hidden="until-found" (on a list) a closed list the browser's find-in-page may still search (TRV-14)
|
|
55
|
+
* li[data-tanrei-loading] the loading row, the last item of a loading parent's list (TRV-13)
|
|
56
|
+
*
|
|
57
|
+
* Every value is a `--tanrei-comp-tree-view-*` token, or the system's focus, target and icon tokens.
|
|
58
|
+
*
|
|
59
|
+
* HOW IT IS WRITTEN
|
|
60
|
+
*
|
|
61
|
+
* - Every selector starts at the element's name and has no specificity (`:where()`; a rule on a pseudo-element has a
|
|
62
|
+
* pseudo-element's), so one class of the product's wins, and the ORDER of the rules decides between two of them.
|
|
63
|
+
* The one exception is the icon, which must win over icons.css's own class.
|
|
64
|
+
* - What changes while a tree is used — the selection, the focus, a press — is said on the ROW, which is the tree
|
|
65
|
+
* item, and read from the row: an `<li>` holds every row under it, and an engine that is told an `<li>` changed
|
|
66
|
+
* goes through all of them (5,000 rows: an arrow key onto an open parent styled its 100 rows again). So a change
|
|
67
|
+
* of one row styles that row again and no other. What the product writes on the `<li>` (`data-open`,
|
|
68
|
+
* `data-disabled`, …) is read by a child combinator, and nothing an item says is inherited by the items it holds.
|
|
69
|
+
* - The depth is a length, not a count: a list adds one indent to what its item holds (`--_trv-in`), and an item
|
|
70
|
+
* hands it on (`--_trv-from`) — two names, because a custom property cannot be computed from itself. Neither is
|
|
71
|
+
* registered: the value a level holds is the sum as it is written, one `calc()` longer a level, and is computed
|
|
72
|
+
* where a real property reads it. No list is set in: every `<li>` and every row is as wide as the tree, so the
|
|
73
|
+
* row is the hit area (TRV-26) and half of the tree's width is the same length everywhere (TRV-3).
|
|
74
|
+
* - No custom property is registered (one registered
|
|
75
|
+
* name in a document makes every element on which a transition starts dear in Chromium). A part whose font is its
|
|
76
|
+
* own (the chevron, the icon, the trailing text) centres itself on the label's first line by saying `1lh` in its
|
|
77
|
+
* own `line-height` — there the unit is the PARENT's line, the row's, as a length — and reading it back as its own
|
|
78
|
+
* `1lh`; a glyph's one line of text, then taller than its box, is centred on the box by a flex container. The two
|
|
79
|
+
* lengths the element reads from script — the indent of a level and the least width of a chevron's hit area — are
|
|
80
|
+
* computed by a real property that draws nothing on the tree: `object-position`, which places the content of a
|
|
81
|
+
* replaced element and of no other.
|
|
82
|
+
* - A row has three boxes. The row itself: the whole width, transparent — the hit area, the hover and the press.
|
|
83
|
+
* Its `::before`: the chevron's box. Its `::after`: the container — the fill, the corners, the focus indicator —
|
|
84
|
+
* which begins where the level's indent ends.
|
|
85
|
+
* - The row is a grid: [lead: chevron, icon] [text] [trailing] [value]. The row's own text is the grid's anonymous
|
|
86
|
+
* item and falls into the first free cell, the text column. The gaps are the parts' own margins, so a column
|
|
87
|
+
* without a part takes no room.
|
|
88
|
+
* - The state rules and the ripple's layer say what `stateRules()` and `rippleStyles()` (src/primitives) say for a
|
|
89
|
+
* shadow root; they are restated here for an element of the document.
|
|
90
|
+
* - The corner rule (src/styles/shape.ts) is written by the build in place of the `tree-view:shape` mark.
|
|
91
|
+
* - Names that begin `--_trv-` are private.
|
|
92
|
+
*/
|
|
93
|
+
@layer tanrei.components {
|
|
94
|
+
/* ── The corners of a row's container, and of the ripple's layer in it (TRV-2, TRV-30) ──────────────────────── */
|
|
95
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child:not(ul, ol))::after {
|
|
96
|
+
--tanrei-corner-pill: 0;
|
|
97
|
+
}
|
|
98
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child:not(ul, ol))::after {
|
|
99
|
+
--_corner-scale: 1;
|
|
100
|
+
border-radius: calc(var(--tanrei-corner-radius) * var(--_corner-scale));
|
|
101
|
+
}
|
|
102
|
+
@supports (corner-shape: superellipse(log(2, 2))) {
|
|
103
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child:not(ul, ol))::after {
|
|
104
|
+
--_corner-smoothing: calc(var(--tanrei-sys-shape-corner-smoothing, 0) * (1 - var(--tanrei-corner-pill, 0)));
|
|
105
|
+
--_corner-scale: calc(1 + 0.4 * var(--_corner-smoothing));
|
|
106
|
+
corner-shape: superellipse(log(calc(2 + var(--_corner-smoothing)), 2));
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child:not(ul, ol)) > :where(.ripple) {
|
|
110
|
+
--tanrei-corner-pill: 0;
|
|
111
|
+
}
|
|
112
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child:not(ul, ol)) > :where(.ripple) {
|
|
113
|
+
--_corner-scale: 1;
|
|
114
|
+
border-radius: calc(var(--tanrei-corner-radius) * var(--_corner-scale));
|
|
115
|
+
}
|
|
116
|
+
@supports (corner-shape: superellipse(log(2, 2))) {
|
|
117
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child:not(ul, ol)) > :where(.ripple) {
|
|
118
|
+
--_corner-smoothing: calc(var(--tanrei-sys-shape-corner-smoothing, 0) * (1 - var(--tanrei-corner-pill, 0)));
|
|
119
|
+
--_corner-scale: calc(1 + 0.4 * var(--_corner-smoothing));
|
|
120
|
+
corner-shape: superellipse(log(calc(2 + var(--_corner-smoothing)), 2));
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* ── The column (TRV-1): as wide as its layout, no space, no size and no look of its own ────────────────────── */
|
|
125
|
+
:where(tanrei-tree-view) {
|
|
126
|
+
/* TRV-2 to TRV-7: the density's sizes and text style (TRV-41: any other density is the default's). */
|
|
127
|
+
--_trv-height: var(--tanrei-comp-tree-view-container-height-regular);
|
|
128
|
+
--_trv-pad-block: var(--tanrei-comp-tree-view-container-padding-block-regular);
|
|
129
|
+
--_trv-pad-inline: var(--tanrei-comp-tree-view-container-padding-inline-regular);
|
|
130
|
+
--_trv-gap: var(--tanrei-comp-tree-view-container-gap-regular);
|
|
131
|
+
--_trv-indent: var(--tanrei-comp-tree-view-level-indent-regular);
|
|
132
|
+
--_trv-label-font: var(--tanrei-comp-tree-view-label-typescale-regular-font);
|
|
133
|
+
--_trv-label-tracking: var(--tanrei-comp-tree-view-label-typescale-regular-letter-spacing);
|
|
134
|
+
--_trv-icon-size: var(--tanrei-comp-tree-view-icon-size-regular);
|
|
135
|
+
--_trv-chevron-size: var(--tanrei-comp-tree-view-chevron-size-regular);
|
|
136
|
+
/* TRV-26: for a fine pointer a regular row is at least the pointer target high. */
|
|
137
|
+
--_trv-min: max(var(--_trv-height), var(--tanrei-sys-target-pointer));
|
|
138
|
+
--_trv-target: var(--tanrei-sys-target-pointer);
|
|
139
|
+
/* TRV-3: the first level begins at the tree's start edge. */
|
|
140
|
+
--_trv-from: calc(var(--_trv-indent) * -1);
|
|
141
|
+
/* TRV-36, TRV-39: start as a side, by the layout direction — not by a text's own. */
|
|
142
|
+
--_trv-start: left;
|
|
143
|
+
/* The space after the chevron's box, and around the icon after it: by side, because a glyph's own box is
|
|
144
|
+
left-to-right whatever the layout is (its ligature), and its logical sides are that box's. */
|
|
145
|
+
--_trv-after-left: 0px;
|
|
146
|
+
--_trv-after-right: var(--_trv-gap);
|
|
147
|
+
--_trv-rtl: 0;
|
|
148
|
+
--_trv-turn: 0.25turn;
|
|
149
|
+
--_trv-mirror: none;
|
|
150
|
+
--_trv-guide-color: var(--tanrei-comp-tree-view-guide-color);
|
|
151
|
+
|
|
152
|
+
display: block;
|
|
153
|
+
box-sizing: border-box;
|
|
154
|
+
margin: 0;
|
|
155
|
+
padding: 0;
|
|
156
|
+
/* Where the element reads two lengths as the cascade computes them (a token is an expression; a property computes
|
|
157
|
+
it): the indent of one level (TRV-3) and the least width of a chevron's own hit area (TRV-26). The property
|
|
158
|
+
draws nothing here: it places the content of a replaced element, and the tree is not one. */
|
|
159
|
+
object-position: var(--_trv-indent) var(--_trv-target);
|
|
160
|
+
}
|
|
161
|
+
:where(tanrei-tree-view[hidden]) {
|
|
162
|
+
display: none;
|
|
163
|
+
}
|
|
164
|
+
/* TRV-36: the chevron is mirrored, and its quarter turn ends pointing down all the same. */
|
|
165
|
+
:where(tanrei-tree-view):dir(rtl) {
|
|
166
|
+
--_trv-start: right;
|
|
167
|
+
--_trv-after-left: var(--_trv-gap);
|
|
168
|
+
--_trv-after-right: 0px;
|
|
169
|
+
--_trv-rtl: 1;
|
|
170
|
+
--_trv-turn: -0.25turn;
|
|
171
|
+
--_trv-mirror: -1 1;
|
|
172
|
+
}
|
|
173
|
+
:where(tanrei-tree-view[density='compact']) {
|
|
174
|
+
--_trv-height: var(--tanrei-comp-tree-view-container-height-compact);
|
|
175
|
+
--_trv-pad-block: var(--tanrei-comp-tree-view-container-padding-block-compact);
|
|
176
|
+
--_trv-pad-inline: var(--tanrei-comp-tree-view-container-padding-inline-compact);
|
|
177
|
+
--_trv-gap: var(--tanrei-comp-tree-view-container-gap-compact);
|
|
178
|
+
--_trv-indent: var(--tanrei-comp-tree-view-level-indent-compact);
|
|
179
|
+
--_trv-label-font: var(--tanrei-comp-tree-view-label-typescale-compact-font);
|
|
180
|
+
--_trv-label-tracking: var(--tanrei-comp-tree-view-label-typescale-compact-letter-spacing);
|
|
181
|
+
--_trv-icon-size: var(--tanrei-comp-tree-view-icon-size-compact);
|
|
182
|
+
--_trv-chevron-size: var(--tanrei-comp-tree-view-chevron-size-compact);
|
|
183
|
+
/* TRV-26: the one place where a row is lower than the pointer target. */
|
|
184
|
+
--_trv-min: var(--_trv-height);
|
|
185
|
+
}
|
|
186
|
+
/* TRV-26: for touch a row is at least the touch target high, in every density. */
|
|
187
|
+
@media (pointer: coarse) {
|
|
188
|
+
:where(tanrei-tree-view) {
|
|
189
|
+
--_trv-min: max(var(--_trv-height), var(--tanrei-sys-target-touch));
|
|
190
|
+
--_trv-target: var(--tanrei-sys-target-touch);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/* ── The lists and the items (TRV-1, TRV-3): no marker, no space; each list one indent further in ───────────── */
|
|
195
|
+
:where(tanrei-tree-view) :where(ul, ol) {
|
|
196
|
+
--_trv-in: calc(var(--_trv-from) + var(--_trv-indent));
|
|
197
|
+
display: block;
|
|
198
|
+
box-sizing: border-box;
|
|
199
|
+
margin: 0;
|
|
200
|
+
padding: 0;
|
|
201
|
+
list-style: none;
|
|
202
|
+
/* TRV-11: where the element reads the disclosure's time and curve (a token is an expression; a property computes
|
|
203
|
+
it). It moves the list's height itself, so nothing here is moved by this. */
|
|
204
|
+
transition: --_trv-disclosure var(--tanrei-comp-tree-view-motion-disclosure-duration) var(--tanrei-comp-tree-view-motion-disclosure-easing);
|
|
205
|
+
}
|
|
206
|
+
:where(tanrei-tree-view) :where(li) {
|
|
207
|
+
--_trv-from: var(--_trv-in);
|
|
208
|
+
/* TRV-3: where this level's rows begin — never past half of the tree's width. (A percentage: of the tree's
|
|
209
|
+
width wherever it is read, because every box it is read in is as wide as the tree.) */
|
|
210
|
+
--_trv-at: min(var(--_trv-in), 50%);
|
|
211
|
+
display: block;
|
|
212
|
+
box-sizing: border-box;
|
|
213
|
+
margin: 0;
|
|
214
|
+
padding: 0;
|
|
215
|
+
}
|
|
216
|
+
/* The deepest level that still fits in half of the width, where the browser can round to a step. */
|
|
217
|
+
@supports (inline-size: round(down, 50%, 1px)) {
|
|
218
|
+
:where(tanrei-tree-view) :where(li) {
|
|
219
|
+
--_trv-at: min(var(--_trv-in), round(down, 50%, var(--_trv-indent)));
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/* ── Open and closed (TRV-9): a closed parent's rows are not drawn and take no space ────────────────────────── */
|
|
224
|
+
:where(tanrei-tree-view) :where(li:not([data-open])) > :where(ul, ol) {
|
|
225
|
+
display: none;
|
|
226
|
+
}
|
|
227
|
+
/* TRV-14: closed, and still searched by the browser's find-in-page (written by the element where the browser can). */
|
|
228
|
+
:where(tanrei-tree-view) :where(li:not([data-open])) > :where(ul[hidden='until-found'], ol[hidden='until-found']) {
|
|
229
|
+
display: block;
|
|
230
|
+
content-visibility: hidden;
|
|
231
|
+
}
|
|
232
|
+
/* TRV-11: while its height moves a list is drawn, whatever its item's open says, and clipped. */
|
|
233
|
+
:where(tanrei-tree-view) :where(li) > :where(ul[data-tanrei-moving], ol[data-tanrei-moving]) {
|
|
234
|
+
display: block;
|
|
235
|
+
overflow: clip;
|
|
236
|
+
content-visibility: visible;
|
|
237
|
+
}
|
|
238
|
+
/* TRV-13, before the element is defined: the room of the loading row it will write, so that nothing moves. */
|
|
239
|
+
:where(tanrei-tree-view:not(:defined)) :where(li[data-loading][data-open]:is([data-expandable], :has(> ul, > ol)))::after {
|
|
240
|
+
content: '';
|
|
241
|
+
display: block;
|
|
242
|
+
block-size: var(--_trv-min);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/* ── The guides (TRV-8): one hairline under an open parent's chevron, beside the rows it holds ──────────────── */
|
|
246
|
+
:where(tanrei-tree-view[guides]) :where(li) > :where(ul, ol) {
|
|
247
|
+
position: relative;
|
|
248
|
+
}
|
|
249
|
+
:where(tanrei-tree-view[guides]) :where(li) > :where(ul, ol)::before {
|
|
250
|
+
content: '';
|
|
251
|
+
position: absolute;
|
|
252
|
+
z-index: 1;
|
|
253
|
+
inset-block: 0;
|
|
254
|
+
/* (The list inherits where ITS item's row begins: the line stands under that row's chevron.) */
|
|
255
|
+
inset-inline-start: calc(var(--_trv-at) + var(--_trv-pad-inline) + (var(--_trv-chevron-size) - var(--tanrei-comp-tree-view-guide-width)) / 2);
|
|
256
|
+
border-inline-start: var(--tanrei-comp-tree-view-guide-width) solid var(--_trv-guide-color);
|
|
257
|
+
pointer-events: none;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
/* ── A row (TRV-2, TRV-3, TRV-26): the whole width; its container begins where its level does ───────────────── */
|
|
261
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child:not(ul, ol)) {
|
|
262
|
+
/* TRV-15: the unselected condition, in each state. */
|
|
263
|
+
--_trv-container: var(--tanrei-comp-tree-view-unselected-container-color);
|
|
264
|
+
--_trv-label: var(--tanrei-comp-tree-view-unselected-label-color);
|
|
265
|
+
--_trv-supporting: var(--tanrei-comp-tree-view-unselected-supporting-text-color);
|
|
266
|
+
--_trv-trailing: var(--tanrei-comp-tree-view-unselected-trailing-text-color);
|
|
267
|
+
--_trv-icon: var(--tanrei-comp-tree-view-unselected-icon-color);
|
|
268
|
+
--_trv-chevron: var(--tanrei-comp-tree-view-unselected-chevron-color);
|
|
269
|
+
--_trv-hovered-container: var(--tanrei-comp-tree-view-unselected-hovered-container-color);
|
|
270
|
+
--_trv-hovered-label: var(--tanrei-comp-tree-view-unselected-hovered-label-color);
|
|
271
|
+
--_trv-hovered-supporting: var(--tanrei-comp-tree-view-unselected-hovered-supporting-text-color);
|
|
272
|
+
--_trv-hovered-trailing: var(--tanrei-comp-tree-view-unselected-hovered-trailing-text-color);
|
|
273
|
+
--_trv-hovered-icon: var(--tanrei-comp-tree-view-unselected-hovered-icon-color);
|
|
274
|
+
--_trv-hovered-chevron: var(--tanrei-comp-tree-view-unselected-hovered-chevron-color);
|
|
275
|
+
--_trv-focused-container: var(--tanrei-comp-tree-view-unselected-focused-container-color);
|
|
276
|
+
--_trv-focused-label: var(--tanrei-comp-tree-view-unselected-focused-label-color);
|
|
277
|
+
--_trv-focused-supporting: var(--tanrei-comp-tree-view-unselected-focused-supporting-text-color);
|
|
278
|
+
--_trv-focused-trailing: var(--tanrei-comp-tree-view-unselected-focused-trailing-text-color);
|
|
279
|
+
--_trv-focused-icon: var(--tanrei-comp-tree-view-unselected-focused-icon-color);
|
|
280
|
+
--_trv-focused-chevron: var(--tanrei-comp-tree-view-unselected-focused-chevron-color);
|
|
281
|
+
--_trv-pressed-container: var(--tanrei-comp-tree-view-unselected-pressed-container-color);
|
|
282
|
+
--_trv-pressed-label: var(--tanrei-comp-tree-view-unselected-pressed-label-color);
|
|
283
|
+
--_trv-pressed-supporting: var(--tanrei-comp-tree-view-unselected-pressed-supporting-text-color);
|
|
284
|
+
--_trv-pressed-trailing: var(--tanrei-comp-tree-view-unselected-pressed-trailing-text-color);
|
|
285
|
+
--_trv-pressed-icon: var(--tanrei-comp-tree-view-unselected-pressed-icon-color);
|
|
286
|
+
--_trv-pressed-chevron: var(--tanrei-comp-tree-view-unselected-pressed-chevron-color);
|
|
287
|
+
--_trv-disabled-container: var(--tanrei-comp-tree-view-unselected-disabled-container-color);
|
|
288
|
+
--_trv-disabled-label: var(--tanrei-comp-tree-view-unselected-disabled-label-color);
|
|
289
|
+
--_trv-disabled-supporting: var(--tanrei-comp-tree-view-unselected-disabled-supporting-text-color);
|
|
290
|
+
--_trv-disabled-trailing: var(--tanrei-comp-tree-view-unselected-disabled-trailing-text-color);
|
|
291
|
+
--_trv-disabled-icon: var(--tanrei-comp-tree-view-unselected-disabled-icon-color);
|
|
292
|
+
--_trv-disabled-chevron: var(--tanrei-comp-tree-view-unselected-disabled-chevron-color);
|
|
293
|
+
--_trv-icon-fill: var(--tanrei-sys-icon-fill-unselected);
|
|
294
|
+
--_trv-icon-family: var(--tanrei-sys-icon-family-unselected);
|
|
295
|
+
/* What it is drawn from now: at rest. */
|
|
296
|
+
--_trv-now-container: var(--_trv-container);
|
|
297
|
+
--_trv-now-label: var(--_trv-label);
|
|
298
|
+
--_trv-now-supporting: var(--_trv-supporting);
|
|
299
|
+
--_trv-now-trailing: var(--_trv-trailing);
|
|
300
|
+
--_trv-now-icon: var(--_trv-icon);
|
|
301
|
+
--_trv-now-chevron: var(--_trv-chevron);
|
|
302
|
+
position: relative;
|
|
303
|
+
isolation: isolate;
|
|
304
|
+
display: grid;
|
|
305
|
+
/* What stands before the text: the chevron's box and its gap (and the icon and its gap: below). */
|
|
306
|
+
--_trv-lead: calc(var(--_trv-chevron-size) + var(--_trv-gap));
|
|
307
|
+
/* TRV-7: the trailing text takes at most half of the width the chevron and the icon leave, so that the label
|
|
308
|
+
keeps at least as much as it takes. */
|
|
309
|
+
grid-template-columns: [lead] auto [text] minmax(0, 1fr) [trailing] auto [value] fit-content(calc((100% - var(--_trv-lead)) / 2));
|
|
310
|
+
align-content: center;
|
|
311
|
+
align-items: start;
|
|
312
|
+
box-sizing: border-box;
|
|
313
|
+
min-block-size: var(--_trv-min);
|
|
314
|
+
margin: 0;
|
|
315
|
+
padding-block: var(--_trv-pad-block);
|
|
316
|
+
padding-inline: calc(var(--_trv-at) + var(--_trv-pad-inline)) var(--_trv-pad-inline);
|
|
317
|
+
/* TRV-6: the label's text style and color; it wraps, breaks where it must and is never cut. TRV-39: text of its
|
|
318
|
+
own direction, its lines on the layout's side. */
|
|
319
|
+
font: var(--_trv-label-font);
|
|
320
|
+
letter-spacing: var(--_trv-label-tracking);
|
|
321
|
+
color: var(--_trv-now-label);
|
|
322
|
+
text-align: var(--_trv-start);
|
|
323
|
+
overflow-wrap: anywhere;
|
|
324
|
+
unicode-bidi: plaintext;
|
|
325
|
+
cursor: default;
|
|
326
|
+
-webkit-tap-highlight-color: transparent;
|
|
327
|
+
/* (The hold stands first: its delay is where the script reads sys.motion.duration.press-hold as a time. It
|
|
328
|
+
names a property that is never set, so nothing is held.) */
|
|
329
|
+
transition:
|
|
330
|
+
--_trv-hold 0s linear var(--tanrei-sys-motion-duration-press-hold),
|
|
331
|
+
color var(--tanrei-comp-tree-view-motion-state-duration) var(--tanrei-comp-tree-view-motion-state-easing),
|
|
332
|
+
opacity var(--tanrei-comp-tree-view-motion-state-duration) var(--tanrei-comp-tree-view-motion-state-easing);
|
|
333
|
+
}
|
|
334
|
+
/* (Asked of the row for itself: whether it holds an icon.) */
|
|
335
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child:not(ul, ol):has(> .tanrei-icon)) {
|
|
336
|
+
--_trv-lead: calc(var(--_trv-chevron-size) + var(--_trv-icon-size) + var(--_trv-gap) * 2);
|
|
337
|
+
}
|
|
338
|
+
/* TRV-15: the selected condition, on the item's own row and on no other. */
|
|
339
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child:not(ul, ol)[aria-selected='true']) {
|
|
340
|
+
--_trv-container: var(--tanrei-comp-tree-view-selected-container-color);
|
|
341
|
+
--_trv-label: var(--tanrei-comp-tree-view-selected-label-color);
|
|
342
|
+
--_trv-supporting: var(--tanrei-comp-tree-view-selected-supporting-text-color);
|
|
343
|
+
--_trv-trailing: var(--tanrei-comp-tree-view-selected-trailing-text-color);
|
|
344
|
+
--_trv-icon: var(--tanrei-comp-tree-view-selected-icon-color);
|
|
345
|
+
--_trv-chevron: var(--tanrei-comp-tree-view-selected-chevron-color);
|
|
346
|
+
--_trv-hovered-container: var(--tanrei-comp-tree-view-selected-hovered-container-color);
|
|
347
|
+
--_trv-hovered-label: var(--tanrei-comp-tree-view-selected-hovered-label-color);
|
|
348
|
+
--_trv-hovered-supporting: var(--tanrei-comp-tree-view-selected-hovered-supporting-text-color);
|
|
349
|
+
--_trv-hovered-trailing: var(--tanrei-comp-tree-view-selected-hovered-trailing-text-color);
|
|
350
|
+
--_trv-hovered-icon: var(--tanrei-comp-tree-view-selected-hovered-icon-color);
|
|
351
|
+
--_trv-hovered-chevron: var(--tanrei-comp-tree-view-selected-hovered-chevron-color);
|
|
352
|
+
--_trv-focused-container: var(--tanrei-comp-tree-view-selected-focused-container-color);
|
|
353
|
+
--_trv-focused-label: var(--tanrei-comp-tree-view-selected-focused-label-color);
|
|
354
|
+
--_trv-focused-supporting: var(--tanrei-comp-tree-view-selected-focused-supporting-text-color);
|
|
355
|
+
--_trv-focused-trailing: var(--tanrei-comp-tree-view-selected-focused-trailing-text-color);
|
|
356
|
+
--_trv-focused-icon: var(--tanrei-comp-tree-view-selected-focused-icon-color);
|
|
357
|
+
--_trv-focused-chevron: var(--tanrei-comp-tree-view-selected-focused-chevron-color);
|
|
358
|
+
--_trv-pressed-container: var(--tanrei-comp-tree-view-selected-pressed-container-color);
|
|
359
|
+
--_trv-pressed-label: var(--tanrei-comp-tree-view-selected-pressed-label-color);
|
|
360
|
+
--_trv-pressed-supporting: var(--tanrei-comp-tree-view-selected-pressed-supporting-text-color);
|
|
361
|
+
--_trv-pressed-trailing: var(--tanrei-comp-tree-view-selected-pressed-trailing-text-color);
|
|
362
|
+
--_trv-pressed-icon: var(--tanrei-comp-tree-view-selected-pressed-icon-color);
|
|
363
|
+
--_trv-pressed-chevron: var(--tanrei-comp-tree-view-selected-pressed-chevron-color);
|
|
364
|
+
--_trv-disabled-container: var(--tanrei-comp-tree-view-selected-disabled-container-color);
|
|
365
|
+
--_trv-disabled-label: var(--tanrei-comp-tree-view-selected-disabled-label-color);
|
|
366
|
+
--_trv-disabled-supporting: var(--tanrei-comp-tree-view-selected-disabled-supporting-text-color);
|
|
367
|
+
--_trv-disabled-trailing: var(--tanrei-comp-tree-view-selected-disabled-trailing-text-color);
|
|
368
|
+
--_trv-disabled-icon: var(--tanrei-comp-tree-view-selected-disabled-icon-color);
|
|
369
|
+
--_trv-disabled-chevron: var(--tanrei-comp-tree-view-selected-disabled-chevron-color);
|
|
370
|
+
--_trv-icon-fill: var(--tanrei-sys-icon-fill-selected);
|
|
371
|
+
--_trv-icon-family: var(--tanrei-sys-icon-family-selected);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
/* The container (TRV-2, TRV-3): the fill and the corners, from the level's indent to the tree's end edge, under
|
|
375
|
+
the row's parts. */
|
|
376
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child:not(ul, ol))::after {
|
|
377
|
+
--tanrei-corner-radius: var(--tanrei-comp-tree-view-container-shape);
|
|
378
|
+
--tanrei-corner-pill: var(--tanrei-comp-tree-view-container-shape-pill, 0);
|
|
379
|
+
content: '';
|
|
380
|
+
position: absolute;
|
|
381
|
+
z-index: -1;
|
|
382
|
+
inset: 0;
|
|
383
|
+
inset-inline-start: var(--_trv-at);
|
|
384
|
+
box-sizing: border-box;
|
|
385
|
+
background-color: var(--_trv-now-container);
|
|
386
|
+
pointer-events: none;
|
|
387
|
+
transition: background-color var(--tanrei-comp-tree-view-motion-state-duration) var(--tanrei-comp-tree-view-motion-state-easing);
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
/* ── The chevron (TRV-4): a box at the start of every row; chevron_right in a parent's, turned while it is open ── */
|
|
391
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child:not(ul, ol))::before {
|
|
392
|
+
content: '';
|
|
393
|
+
grid-column: lead;
|
|
394
|
+
grid-row: 1;
|
|
395
|
+
/* The label's line is this box's `1lh` (said in `line-height`, where the unit is the row's line); the glyph's one
|
|
396
|
+
line, that tall, is centred on a box the size of the glyph. */
|
|
397
|
+
display: flex;
|
|
398
|
+
align-items: center;
|
|
399
|
+
overflow: hidden;
|
|
400
|
+
inline-size: var(--_trv-chevron-size);
|
|
401
|
+
block-size: var(--_trv-chevron-size);
|
|
402
|
+
margin-block: calc((1lh - var(--_trv-chevron-size)) / 2) 0;
|
|
403
|
+
margin-left: var(--_trv-after-left);
|
|
404
|
+
margin-right: var(--_trv-after-right);
|
|
405
|
+
font-family: var(--tanrei-sys-icon-family-unselected);
|
|
406
|
+
font-size: var(--_trv-chevron-size);
|
|
407
|
+
font-style: normal;
|
|
408
|
+
font-weight: normal;
|
|
409
|
+
line-height: 1lh;
|
|
410
|
+
letter-spacing: normal;
|
|
411
|
+
text-transform: none;
|
|
412
|
+
white-space: nowrap;
|
|
413
|
+
word-wrap: normal;
|
|
414
|
+
direction: ltr;
|
|
415
|
+
color: var(--_trv-now-chevron);
|
|
416
|
+
pointer-events: none;
|
|
417
|
+
font-feature-settings: 'liga';
|
|
418
|
+
-webkit-font-smoothing: antialiased;
|
|
419
|
+
font-optical-sizing: auto;
|
|
420
|
+
font-variation-settings:
|
|
421
|
+
'FILL' var(--tanrei-sys-icon-fill-unselected),
|
|
422
|
+
'wght' var(--tanrei-sys-icon-weight),
|
|
423
|
+
'GRAD' 0;
|
|
424
|
+
/* (The glyph is icons.css's font: it is not drawn where icons.css is not loaded, and its box is kept.) */
|
|
425
|
+
opacity: var(--tanrei-icons, 0);
|
|
426
|
+
/* TRV-36, TRV-38: mirrored in a right-to-left layout, as the icon set marks chevron_right. */
|
|
427
|
+
scale: var(--_trv-mirror);
|
|
428
|
+
transition:
|
|
429
|
+
rotate var(--tanrei-comp-tree-view-motion-disclosure-duration) var(--tanrei-comp-tree-view-motion-disclosure-easing),
|
|
430
|
+
color var(--tanrei-comp-tree-view-motion-state-duration) var(--tanrei-comp-tree-view-motion-state-easing);
|
|
431
|
+
}
|
|
432
|
+
/* The optical size is the box's, written by hand where the engine can turn the box's size into a number: the
|
|
433
|
+
arithmetic and the condition are src/styles/icons.ts's, written in place by the build (writeGlyphAxes). */
|
|
434
|
+
@supports (font-variation-settings: 'opsz' tan(atan2(1em, 1px))) {
|
|
435
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child:not(ul, ol))::before {
|
|
436
|
+
font-variation-settings: 'FILL' var(--tanrei-sys-icon-fill-unselected), 'wght' var(--tanrei-sys-icon-weight), 'GRAD' 0, 'opsz' clamp(var(--tanrei-sys-icon-optical-size-min), tan(atan2(var(--_trv-chevron-size), 1px)), var(--tanrei-sys-icon-optical-size-max));
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
/* A parent: an item that holds a list, or says it will. Decorative: the state is the item's own, in words. */
|
|
440
|
+
:where(tanrei-tree-view) :where(li:not([data-tanrei-leaf])) > :where(:first-child:not(ul, ol, :only-child))::before,
|
|
441
|
+
:where(tanrei-tree-view) :where(li[data-expandable]) > :where(:first-child:not(ul, ol))::before {
|
|
442
|
+
content: 'chevron_right';
|
|
443
|
+
content: 'chevron_right' / '';
|
|
444
|
+
}
|
|
445
|
+
:where(tanrei-tree-view) :where(li[data-open]) > :where(:first-child:not(ul, ol))::before {
|
|
446
|
+
rotate: var(--_trv-turn);
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
/* ── The parts of a row (TRV-2): each on the label's first line ─────────────────────────────────────────────── */
|
|
450
|
+
/* TRV-6: the product's own label — ONE element around text with inline content — in the label's place, style and
|
|
451
|
+
color. TRV-39: text of its own direction. */
|
|
452
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child:not(ul, ol)) > :where(:not(.tanrei-icon, [data-supporting-text], [data-trailing], [data-trailing-text], [data-tanrei-loading-box], .ripple)) {
|
|
453
|
+
grid-column: text;
|
|
454
|
+
grid-row: 1;
|
|
455
|
+
min-inline-size: 0;
|
|
456
|
+
margin: 0;
|
|
457
|
+
padding: 0;
|
|
458
|
+
font: inherit;
|
|
459
|
+
letter-spacing: inherit;
|
|
460
|
+
color: inherit;
|
|
461
|
+
text-align: inherit;
|
|
462
|
+
unicode-bidi: plaintext;
|
|
463
|
+
}
|
|
464
|
+
/* TRV-39: a label whose name has an isolate of its own — a `<bdi>`, or an element that says its `dir` — is laid out
|
|
465
|
+
in the layout's direction: the name and the supporting text are each a run of their own, and the supporting text
|
|
466
|
+
stands after the name on the layout's side, its gap between them. (Under `plaintext` it would be left to right in
|
|
467
|
+
every layout: a text with no strong character outside its isolates is, UAX #9 P3.) `:has()` is asked of the
|
|
468
|
+
element the rule styles (has.test.ts). */
|
|
469
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child:not(ul, ol)) > :where(:not(.tanrei-icon, [data-supporting-text], [data-trailing], [data-trailing-text], [data-tanrei-loading-box], .ripple):has(> bdi, > [dir])) {
|
|
470
|
+
unicode-bidi: isolate;
|
|
471
|
+
}
|
|
472
|
+
/* TRV-7: the supporting text, after the label in the same block of text and on its baseline; it wraps with it. */
|
|
473
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child:not(ul, ol)) :where([data-supporting-text]) {
|
|
474
|
+
margin-inline-start: var(--_trv-gap);
|
|
475
|
+
font: var(--tanrei-comp-tree-view-supporting-text-typescale-font);
|
|
476
|
+
letter-spacing: var(--tanrei-comp-tree-view-supporting-text-typescale-letter-spacing);
|
|
477
|
+
color: var(--_trv-now-supporting);
|
|
478
|
+
unicode-bidi: plaintext;
|
|
479
|
+
transition: color var(--tanrei-comp-tree-view-motion-state-duration) var(--tanrei-comp-tree-view-motion-state-easing);
|
|
480
|
+
}
|
|
481
|
+
/* Inside the label's element: a place to break before it that has no width, after its gap — so that where it
|
|
482
|
+
begins a line, it begins at the line's start. */
|
|
483
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child:not(ul, ol)) > :where(*) :where([data-supporting-text])::before {
|
|
484
|
+
content: '\200B';
|
|
485
|
+
}
|
|
486
|
+
/* Directly in the row it has no box of its own: its text goes on in the row's own block of text. */
|
|
487
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child:not(ul, ol)) > :where([data-supporting-text]) {
|
|
488
|
+
display: contents;
|
|
489
|
+
}
|
|
490
|
+
/* TRV-7: the trailing content, placed and given no style: centred on the first line, whatever its height. */
|
|
491
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child:not(ul, ol)) > :where([data-trailing]) {
|
|
492
|
+
grid-column: trailing;
|
|
493
|
+
grid-row: 1;
|
|
494
|
+
display: flex;
|
|
495
|
+
align-items: center;
|
|
496
|
+
min-inline-size: 0;
|
|
497
|
+
/* The row's line is this box's `1lh` (said in `line-height`, where the unit is the row's line): the box is one
|
|
498
|
+
line of the label high whatever font size the product gives its element. */
|
|
499
|
+
line-height: 1lh;
|
|
500
|
+
block-size: 1lh;
|
|
501
|
+
/* (The gap before it, by side: the product's element may have a direction of its own.) */
|
|
502
|
+
margin-left: var(--_trv-after-right);
|
|
503
|
+
margin-right: var(--_trv-after-left);
|
|
504
|
+
}
|
|
505
|
+
/* TRV-7: the trailing text, one line, cut with an ellipsis where its column ends. */
|
|
506
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child:not(ul, ol)) > :where([data-trailing-text]) {
|
|
507
|
+
grid-column: value;
|
|
508
|
+
grid-row: 1;
|
|
509
|
+
min-inline-size: 0;
|
|
510
|
+
/* (The gap before it, by side: it is text of its own direction.) */
|
|
511
|
+
margin-left: var(--_trv-after-right);
|
|
512
|
+
margin-right: var(--_trv-after-left);
|
|
513
|
+
overflow: hidden;
|
|
514
|
+
font: var(--tanrei-comp-tree-view-trailing-text-typescale-font);
|
|
515
|
+
/* One line, as tall as the label's (the row's `1lh`, which the unit means here): its text stands in the middle
|
|
516
|
+
of the label's first line, as a line of its own height moved down by half the difference did. */
|
|
517
|
+
line-height: 1lh;
|
|
518
|
+
letter-spacing: var(--tanrei-comp-tree-view-trailing-text-typescale-letter-spacing);
|
|
519
|
+
color: var(--_trv-now-trailing);
|
|
520
|
+
/* (From its own start: a line that does not fit is cut at its own end, TRV-39.) */
|
|
521
|
+
text-align: start;
|
|
522
|
+
text-overflow: ellipsis;
|
|
523
|
+
white-space: nowrap;
|
|
524
|
+
unicode-bidi: plaintext;
|
|
525
|
+
transition: color var(--tanrei-comp-tree-view-motion-state-duration) var(--tanrei-comp-tree-view-motion-state-easing);
|
|
526
|
+
}
|
|
527
|
+
/* TRV-5: the icon — a glyph of icons.css in the density's box after the chevron's, outlined unless its own item is
|
|
528
|
+
selected, whatever an ancestor says of a selection. (The glyph's declarations, and its mirroring, are icons.css's:
|
|
529
|
+
TRV-38.) */
|
|
530
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child:not(ul, ol)) > .tanrei-icon.tanrei-icon {
|
|
531
|
+
--_size: var(--_trv-icon-size);
|
|
532
|
+
--_fill: var(--_trv-icon-fill);
|
|
533
|
+
--_family: var(--_trv-icon-family);
|
|
534
|
+
grid-column: lead;
|
|
535
|
+
grid-row: 1;
|
|
536
|
+
/* (As the chevron: a flex box whose one line is the label's line high, centred on a box the size of the glyph.) */
|
|
537
|
+
display: flex;
|
|
538
|
+
align-items: center;
|
|
539
|
+
line-height: 1lh;
|
|
540
|
+
margin-block-start: calc((1lh - var(--_trv-icon-size)) / 2);
|
|
541
|
+
/* After the chevron's box and its gap, with the gap after itself — on the sides the layout gives. */
|
|
542
|
+
margin-left: calc(var(--_trv-gap) + var(--_trv-chevron-size) * (1 - var(--_trv-rtl)));
|
|
543
|
+
margin-right: calc(var(--_trv-gap) + var(--_trv-chevron-size) * var(--_trv-rtl));
|
|
544
|
+
color: var(--_trv-now-icon);
|
|
545
|
+
vertical-align: baseline;
|
|
546
|
+
}
|
|
547
|
+
/* TRV-40: while the icon set cannot draw a glyph, none is drawn and every box is kept. */
|
|
548
|
+
:where(tanrei-tree-view[data-glyphs='pending']) :where(li) > :where(:first-child:not(ul, ol))::before,
|
|
549
|
+
:where(tanrei-tree-view[data-glyphs='pending']) :where(li) > :where(:first-child:not(ul, ol)) > :where(.tanrei-icon) {
|
|
550
|
+
visibility: hidden;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
/* ── The loading row (TRV-13): the indicator in the chevron's box, the product's words after it ─────────────── */
|
|
554
|
+
:where(tanrei-tree-view) :where(li[data-tanrei-loading]) > :where(:first-child)::before {
|
|
555
|
+
content: none;
|
|
556
|
+
}
|
|
557
|
+
:where(tanrei-tree-view) :where(li[data-tanrei-loading]) > :where(:first-child) > :where([data-tanrei-loading-box]) {
|
|
558
|
+
grid-column: lead;
|
|
559
|
+
grid-row: 1;
|
|
560
|
+
display: grid;
|
|
561
|
+
place-items: center;
|
|
562
|
+
inline-size: var(--_trv-chevron-size);
|
|
563
|
+
/* (The loading row's line: the box has the row's text style.) */
|
|
564
|
+
block-size: 1lh;
|
|
565
|
+
margin-inline-end: var(--_trv-gap);
|
|
566
|
+
}
|
|
567
|
+
:where(tanrei-tree-view) :where(li[data-tanrei-loading]) > :where(:first-child) > :where([data-tanrei-loading-label]) {
|
|
568
|
+
font: var(--tanrei-comp-tree-view-supporting-text-typescale-font);
|
|
569
|
+
letter-spacing: var(--tanrei-comp-tree-view-supporting-text-typescale-letter-spacing);
|
|
570
|
+
color: var(--tanrei-comp-tree-view-unselected-supporting-text-color);
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
/* ── States (TRV-24): pressed over focused over hovered, each from its own tokens ───────────────────────────── */
|
|
574
|
+
/* TRV-18: a row answers a pointer where its item opens (a parent) or can be chosen; any other answers nothing. */
|
|
575
|
+
:where(tanrei-tree-view) :where(li:not([data-disabled], [data-tanrei-leaf])) > :where(:first-child:not(ul, ol, :only-child)),
|
|
576
|
+
:where(tanrei-tree-view) :where(li[data-expandable]:not([data-disabled])) > :where(:first-child:not(ul, ol)),
|
|
577
|
+
:where(tanrei-tree-view:is([selection='single'], [selection='multiple'])) :where(li[data-value]:not([data-value=''], [data-disabled])) > :where(:first-child:not(ul, ol)) {
|
|
578
|
+
cursor: pointer;
|
|
579
|
+
-webkit-user-select: none;
|
|
580
|
+
user-select: none;
|
|
581
|
+
}
|
|
582
|
+
@media (hover: hover) {
|
|
583
|
+
:where(tanrei-tree-view) :where(li:not([data-disabled], [data-tanrei-leaf])) > :where(:first-child:not(ul, ol, :only-child):hover),
|
|
584
|
+
:where(tanrei-tree-view) :where(li[data-expandable]:not([data-disabled])) > :where(:first-child:not(ul, ol):hover),
|
|
585
|
+
:where(tanrei-tree-view:is([selection='single'], [selection='multiple'])) :where(li[data-value]:not([data-value=''], [data-disabled])) > :where(:first-child:not(ul, ol):hover) {
|
|
586
|
+
--_trv-now-container: var(--_trv-hovered-container);
|
|
587
|
+
--_trv-now-label: var(--_trv-hovered-label);
|
|
588
|
+
--_trv-now-supporting: var(--_trv-hovered-supporting);
|
|
589
|
+
--_trv-now-trailing: var(--_trv-hovered-trailing);
|
|
590
|
+
--_trv-now-icon: var(--_trv-hovered-icon);
|
|
591
|
+
--_trv-now-chevron: var(--_trv-hovered-chevron);
|
|
592
|
+
opacity: var(--tanrei-comp-tree-view-hovered-opacity);
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
/* TRV-25: the focus indicator, inside the row's container, so that no neighbour and no scrolling box cuts it; never
|
|
596
|
+
animated, never for a pointer. The outer stroke on the container's edge, the inner stroke (where the system has
|
|
597
|
+
one) within it. */
|
|
598
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child:not(ul, ol):focus-visible) {
|
|
599
|
+
--_trv-now-container: var(--_trv-focused-container);
|
|
600
|
+
--_trv-now-label: var(--_trv-focused-label);
|
|
601
|
+
--_trv-now-supporting: var(--_trv-focused-supporting);
|
|
602
|
+
--_trv-now-trailing: var(--_trv-focused-trailing);
|
|
603
|
+
--_trv-now-icon: var(--_trv-focused-icon);
|
|
604
|
+
--_trv-now-chevron: var(--_trv-focused-chevron);
|
|
605
|
+
opacity: var(--tanrei-comp-tree-view-focused-opacity);
|
|
606
|
+
}
|
|
607
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child:not(ul, ol):focus-visible)::after {
|
|
608
|
+
border: var(--tanrei-sys-focus-outer-width) solid var(--tanrei-sys-color-focus-ring);
|
|
609
|
+
outline: var(--tanrei-sys-focus-inner-width) solid var(--tanrei-sys-color-focus-ring-inner);
|
|
610
|
+
outline-offset: calc((var(--tanrei-sys-focus-outer-width) + var(--tanrei-sys-focus-inner-width)) * -1);
|
|
611
|
+
}
|
|
612
|
+
/* (The row's own outline is not drawn: the indicator is its container's, which begins where the level does.) */
|
|
613
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child:not(ul, ol):focus) {
|
|
614
|
+
outline: none;
|
|
615
|
+
}
|
|
616
|
+
/* TRV-30, focus-style: glow — the same two colors as a halo inside the container; read by a style query, and from
|
|
617
|
+
data-focus-style (written by the element when focus arrives) where there are none. The container's box is drawn
|
|
618
|
+
in by the halo's reach, and its fill goes on to its edge as the last layer under the halo. */
|
|
619
|
+
@container style(--tanrei-sys-behavior-focus-style: glow) {
|
|
620
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child:not(ul, ol):focus-visible)::after {
|
|
621
|
+
--_trv-glow: calc((var(--tanrei-sys-focus-inner-width) + var(--tanrei-sys-focus-outer-width)) * 2);
|
|
622
|
+
inset: var(--_trv-glow);
|
|
623
|
+
inset-inline-start: calc(var(--_trv-at) + var(--_trv-glow));
|
|
624
|
+
border: 0;
|
|
625
|
+
border-radius: max(0px, calc(var(--tanrei-corner-radius) * var(--_corner-scale) - var(--_trv-glow)));
|
|
626
|
+
/* Transparent, not none: forced colors repaint it in a system color, where a box-shadow is dropped. */
|
|
627
|
+
outline-color: transparent;
|
|
628
|
+
box-shadow:
|
|
629
|
+
0 0 var(--tanrei-sys-focus-inner-width) var(--tanrei-sys-focus-inner-width) var(--tanrei-sys-color-focus-ring-inner),
|
|
630
|
+
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),
|
|
631
|
+
0 0 0 var(--_trv-glow) var(--_trv-now-container);
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child:not(ul, ol)[data-focus-style='glow']:focus-visible)::after {
|
|
635
|
+
--_trv-glow: calc((var(--tanrei-sys-focus-inner-width) + var(--tanrei-sys-focus-outer-width)) * 2);
|
|
636
|
+
inset: var(--_trv-glow);
|
|
637
|
+
inset-inline-start: calc(var(--_trv-at) + var(--_trv-glow));
|
|
638
|
+
border: 0;
|
|
639
|
+
border-radius: max(0px, calc(var(--tanrei-corner-radius) * var(--_corner-scale) - var(--_trv-glow)));
|
|
640
|
+
outline-color: transparent;
|
|
641
|
+
box-shadow:
|
|
642
|
+
0 0 var(--tanrei-sys-focus-inner-width) var(--tanrei-sys-focus-inner-width) var(--tanrei-sys-color-focus-ring-inner),
|
|
643
|
+
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),
|
|
644
|
+
0 0 0 var(--_trv-glow) var(--_trv-now-container);
|
|
645
|
+
}
|
|
646
|
+
/* TRV-28, TRV-29: `data-pressed` (the shared press primitive) names the feedback. `none` changes nothing at all. */
|
|
647
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child[data-pressed]:not([data-pressed='none'])),
|
|
648
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child[data-pressed]:not([data-pressed='none']))::after,
|
|
649
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child[data-pressed]:not([data-pressed='none'])) > :where([data-supporting-text], [data-trailing-text]) {
|
|
650
|
+
transition-duration: 0s;
|
|
651
|
+
}
|
|
652
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child[data-pressed='overlay']) {
|
|
653
|
+
--_trv-now-container: var(--_trv-pressed-container);
|
|
654
|
+
--_trv-now-label: var(--_trv-pressed-label);
|
|
655
|
+
--_trv-now-supporting: var(--_trv-pressed-supporting);
|
|
656
|
+
--_trv-now-trailing: var(--_trv-pressed-trailing);
|
|
657
|
+
--_trv-now-icon: var(--_trv-pressed-icon);
|
|
658
|
+
--_trv-now-chevron: var(--_trv-pressed-chevron);
|
|
659
|
+
opacity: var(--tanrei-comp-tree-view-pressed-opacity);
|
|
660
|
+
}
|
|
661
|
+
/* ripple, dim: everything but the container color, which stays with the state under the press. */
|
|
662
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child[data-pressed='ripple'], :first-child[data-pressed='dim']) {
|
|
663
|
+
--_trv-now-label: var(--_trv-pressed-label);
|
|
664
|
+
--_trv-now-supporting: var(--_trv-pressed-supporting);
|
|
665
|
+
--_trv-now-trailing: var(--_trv-pressed-trailing);
|
|
666
|
+
--_trv-now-icon: var(--_trv-pressed-icon);
|
|
667
|
+
--_trv-now-chevron: var(--_trv-pressed-chevron);
|
|
668
|
+
opacity: var(--tanrei-comp-tree-view-pressed-opacity);
|
|
669
|
+
}
|
|
670
|
+
/* The ripple's layer (src/primitives/ripple.ts adds it and sets --_x, --_y, --_r): the pressed container color, in
|
|
671
|
+
the container's box and shape and clipped to a circle around the point of contact, under the row's parts. */
|
|
672
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child:not(ul, ol)) > :where(.ripple) {
|
|
673
|
+
position: absolute;
|
|
674
|
+
z-index: -1;
|
|
675
|
+
inset: 0;
|
|
676
|
+
--tanrei-corner-radius: var(--tanrei-comp-tree-view-container-shape);
|
|
677
|
+
--tanrei-corner-pill: var(--tanrei-comp-tree-view-container-shape-pill, 0);
|
|
678
|
+
inset-inline-start: var(--_trv-at);
|
|
679
|
+
background: var(--_trv-pressed-container);
|
|
680
|
+
pointer-events: none;
|
|
681
|
+
clip-path: circle(var(--_r) at var(--_x) var(--_y));
|
|
682
|
+
animation: tanrei-tree-view-ripple var(--tanrei-comp-tree-view-motion-feedback-duration) var(--tanrei-comp-tree-view-motion-state-easing) both;
|
|
683
|
+
transition: opacity var(--tanrei-comp-tree-view-motion-state-duration) var(--tanrei-comp-tree-view-motion-state-easing);
|
|
684
|
+
}
|
|
685
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child:not(ul, ol)) > :where(.ripple.leaving) {
|
|
686
|
+
opacity: 0;
|
|
687
|
+
}
|
|
688
|
+
@keyframes tanrei-tree-view-ripple {
|
|
689
|
+
from {
|
|
690
|
+
clip-path: circle(0 at var(--_x) var(--_y));
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
/* ── Disabled (TRV-27): its look on the whole row, and no answer; the arrow keys still reach it ─────────────── */
|
|
695
|
+
:where(tanrei-tree-view) :where(li[data-disabled]) > :where(:first-child:not(ul, ol)) {
|
|
696
|
+
--_trv-now-container: var(--_trv-disabled-container);
|
|
697
|
+
--_trv-now-label: var(--_trv-disabled-label);
|
|
698
|
+
--_trv-now-supporting: var(--_trv-disabled-supporting);
|
|
699
|
+
--_trv-now-trailing: var(--_trv-disabled-trailing);
|
|
700
|
+
--_trv-now-icon: var(--_trv-disabled-icon);
|
|
701
|
+
--_trv-now-chevron: var(--_trv-disabled-chevron);
|
|
702
|
+
opacity: var(--tanrei-comp-tree-view-disabled-opacity);
|
|
703
|
+
cursor: default;
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
/* ── Where script does not run (TRV-9's web note): every level shown, no chevron drawn, nothing to press ────── */
|
|
707
|
+
@media (scripting: none) {
|
|
708
|
+
:where(tanrei-tree-view) :where(li:not([data-open])) > :where(ul, ol) {
|
|
709
|
+
display: block;
|
|
710
|
+
}
|
|
711
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child:not(ul, ol))::before {
|
|
712
|
+
content: '';
|
|
713
|
+
}
|
|
714
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child:not(ul, ol)) {
|
|
715
|
+
cursor: auto;
|
|
716
|
+
-webkit-user-select: auto;
|
|
717
|
+
user-select: auto;
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
/* ── Drawn at once (TRV-9, TRV-14, TRV-42), and where motion is reduced (TRV-11, TRV-31) ────────────────────── */
|
|
722
|
+
:where(tanrei-tree-view) :where(li[data-tanrei-at-once]) > :where(:first-child:not(ul, ol))::before {
|
|
723
|
+
transition: none;
|
|
724
|
+
}
|
|
725
|
+
@media (prefers-reduced-motion: reduce) {
|
|
726
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child:not(ul, ol)) {
|
|
727
|
+
transition: --_trv-hold 0s linear var(--tanrei-sys-motion-duration-press-hold);
|
|
728
|
+
}
|
|
729
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child:not(ul, ol))::before,
|
|
730
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child:not(ul, ol))::after,
|
|
731
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child:not(ul, ol)) :where([data-supporting-text], [data-trailing-text]) {
|
|
732
|
+
transition: none;
|
|
733
|
+
}
|
|
734
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child:not(ul, ol)) > :where(.ripple) {
|
|
735
|
+
animation: none;
|
|
736
|
+
transition: none;
|
|
737
|
+
}
|
|
738
|
+
/* The element reads the disclosure's time from here (below): none. */
|
|
739
|
+
:where(tanrei-tree-view) :where(li) > :where(ul, ol) {
|
|
740
|
+
transition-duration: 0s;
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
/* ── Forced colors (TRV-35): text, chevrons and guides in the text color; a selected row in the selection's
|
|
745
|
+
colors with an edge; a disabled row in the disabled text's; hover and press in a button's; focus in the highlight ── */
|
|
746
|
+
@media (forced-colors: active) {
|
|
747
|
+
:where(tanrei-tree-view) {
|
|
748
|
+
--_trv-guide-color: CanvasText;
|
|
749
|
+
}
|
|
750
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child:not(ul, ol)) {
|
|
751
|
+
--_trv-forced: CanvasText;
|
|
752
|
+
--_trv-forced-fill: transparent;
|
|
753
|
+
color: var(--_trv-forced);
|
|
754
|
+
/* Every color of a row is one of the mode's own, named here: an engine that would repaint a fill or a text of
|
|
755
|
+
a selected row in the page's colors leaves them as named. */
|
|
756
|
+
forced-color-adjust: none;
|
|
757
|
+
}
|
|
758
|
+
/* The product's own trailing content keeps the mode's colors. */
|
|
759
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child:not(ul, ol)) > :where([data-trailing]) {
|
|
760
|
+
forced-color-adjust: auto;
|
|
761
|
+
}
|
|
762
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child:not(ul, ol)) :where([data-supporting-text], [data-trailing-text], [data-tanrei-loading-label]),
|
|
763
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child:not(ul, ol)) > .tanrei-icon.tanrei-icon,
|
|
764
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child:not(ul, ol))::before {
|
|
765
|
+
color: var(--_trv-forced);
|
|
766
|
+
}
|
|
767
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child:not(ul, ol))::after {
|
|
768
|
+
background-color: var(--_trv-forced-fill);
|
|
769
|
+
}
|
|
770
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child:not(ul, ol)[aria-selected='true']) {
|
|
771
|
+
--_trv-forced: SelectedItemText;
|
|
772
|
+
--_trv-forced-fill: SelectedItem;
|
|
773
|
+
}
|
|
774
|
+
/* The edge, because the mode may remove a fill. */
|
|
775
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child:not(ul, ol)[aria-selected='true'])::after {
|
|
776
|
+
border: var(--tanrei-comp-tree-view-guide-width) solid CanvasText;
|
|
777
|
+
}
|
|
778
|
+
:where(tanrei-tree-view) :where(li:not([data-disabled], [data-tanrei-leaf])) > :where(:first-child:not(ul, ol, :only-child):hover),
|
|
779
|
+
:where(tanrei-tree-view) :where(li[data-expandable]:not([data-disabled])) > :where(:first-child:not(ul, ol):hover),
|
|
780
|
+
:where(tanrei-tree-view:is([selection='single'], [selection='multiple'])) :where(li[data-value]:not([data-value=''], [data-disabled])) > :where(:first-child:not(ul, ol):hover),
|
|
781
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child[data-pressed]:not([data-pressed='none'])) {
|
|
782
|
+
--_trv-forced: ButtonText;
|
|
783
|
+
--_trv-forced-fill: ButtonFace;
|
|
784
|
+
}
|
|
785
|
+
:where(tanrei-tree-view) :where(li[data-disabled]) > :where(:first-child:not(ul, ol)) {
|
|
786
|
+
--_trv-forced: GrayText;
|
|
787
|
+
opacity: 1;
|
|
788
|
+
}
|
|
789
|
+
:where(tanrei-tree-view) :where(li) > :where(:first-child:not(ul, ol):focus-visible)::after {
|
|
790
|
+
inset: 0;
|
|
791
|
+
inset-inline-start: var(--_trv-at);
|
|
792
|
+
border: var(--tanrei-sys-focus-outer-width) solid Highlight;
|
|
793
|
+
outline: var(--tanrei-sys-focus-inner-width) solid Highlight;
|
|
794
|
+
box-shadow: none;
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
}
|