@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,511 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Breadcrumbs (specs/breadcrumbs.spec.json, BRC-1 to BRC-29): where a page sits in a
|
|
3
|
+
* hierarchy of pages — the levels above as links, in order from the top, the page itself last.
|
|
4
|
+
*
|
|
5
|
+
* `<tanrei-breadcrumbs>` is an element around the product's own anchors, which stay in the document: before any
|
|
6
|
+
* script runs and without it the page holds the whole trail as links that work, which a crawler, a search index and
|
|
7
|
+
* the browser's own list of links read as they are.
|
|
8
|
+
*
|
|
9
|
+
* <tanrei-breadcrumbs label="Breadcrumbs" overflow-label="Show hidden levels">
|
|
10
|
+
* <a href="/" data-icon="home">Home</a>
|
|
11
|
+
* <a href="/components/">Components</a>
|
|
12
|
+
* <span aria-current="page">Button</span>
|
|
13
|
+
* </tanrei-breadcrumbs>
|
|
14
|
+
*
|
|
15
|
+
* A level is a child of the element: an `<a href>` for a level with a destination, a `<span>` (or an anchor without
|
|
16
|
+
* `href`) for one without. Its label is its text; `aria-current="page"` on the last one marks the current page;
|
|
17
|
+
* `data-icon` names a glyph of the icon set, drawn before the label, and `data-icon-only` draws the glyph alone and
|
|
18
|
+
* keeps the text as the name; `data-mirror="always | never"` is the product's word on mirroring that glyph. The
|
|
19
|
+
* element's `underline` attribute (`always | hover | never`) says when the links are underlined (BRC-30); without it
|
|
20
|
+
* they follow `comp.breadcrumbs.underline.visibility`. Both are read here, so a trail is drawn the same before the
|
|
21
|
+
* element is defined.
|
|
22
|
+
*
|
|
23
|
+
* This stylesheet draws the levels — the text style, the underline, the glyph, every state — and, until the element
|
|
24
|
+
* is defined, the whole trail as the wrap form (BRC-15) with its separators. The element
|
|
25
|
+
* (src/components/breadcrumbs/breadcrumbs.ts) keeps a shadow root for what the product did not write (the navigation
|
|
26
|
+
* landmark, the ordered list, the separators, the overflow button and its menu) and writes here:
|
|
27
|
+
*
|
|
28
|
+
* data-pressed (on an anchor) the answer to a press the system names: overlay, ripple, dim, none (BRC-19)
|
|
29
|
+
* data-focus-style (on an anchor) the focus style, where the browser has no style queries (BRC-20)
|
|
30
|
+
* data-tanrei-underline (on the element) comp.breadcrumbs.underline.visibility where it is not `always`, where the
|
|
31
|
+
* browser has no style queries (BRC-30)
|
|
32
|
+
* data-tanrei-mirrored (on a level) the icon set mirrors the glyph `data-icon` names in right-to-left (BRC-27)
|
|
33
|
+
* dir="auto" (on the last level) while its label is cut: it is cut at the end of its own direction (BRC-28)
|
|
34
|
+
* data-empty (on the element) it has no level: nothing is drawn (BRC-1)
|
|
35
|
+
*
|
|
36
|
+
* A glyph and the separators drawn here need icons.css (the page that loads it has the icon font); without it their
|
|
37
|
+
* room is kept and nothing is drawn in it, so nothing moves when it arrives.
|
|
38
|
+
*
|
|
39
|
+
* Every value is a `--tanrei-comp-breadcrumbs-*` token, or the system's focus, target, icon and press-hold tokens.
|
|
40
|
+
*
|
|
41
|
+
* HOW IT IS WRITTEN
|
|
42
|
+
*
|
|
43
|
+
* - Every selector starts at the element's name and has no specificity (`:where()`; a rule on a pseudo-element has a
|
|
44
|
+
* pseudo-element's), so one class of the product's wins, and the ORDER of the rules decides between two of them.
|
|
45
|
+
* - A level is a box one line of the trail's text high (BRC-16, BRC-23), not an inline run: a flex item of the
|
|
46
|
+
* element before it is defined, and of its list item after. Both are laid out alike, so nothing moves when the
|
|
47
|
+
* element is defined (a trail that is then collapsed apart, which only script can measure).
|
|
48
|
+
* - A level has two pseudo-elements. `::before` is its glyph. `::after` is its separator until the element is defined
|
|
49
|
+
* and its hit area after: the element draws the separators itself, outside the link, and hidden from assistive
|
|
50
|
+
* technology by more than `content`'s alternative text.
|
|
51
|
+
* - The state rules, the focus indicator and the ripple's layer say what `stateRules()`, `focusRing()` and
|
|
52
|
+
* `rippleStyles()` (src/primitives) say for a shadow root; they are restated here for an element of the document,
|
|
53
|
+
* as the Link's are.
|
|
54
|
+
* - Pressed: with the package's script it is `data-pressed` (the shared press primitive). Without it, `:active` is
|
|
55
|
+
* the overlay, held for press-hold by a delayed step of two names (below).
|
|
56
|
+
* - The corner rule (src/styles/shape.ts) is written by the build in place of the `breadcrumbs:shape` mark.
|
|
57
|
+
* - Names that begin `--_brc-` are private.
|
|
58
|
+
*/
|
|
59
|
+
/* The hold of a press that no script answers. While a level is held down, and for press-hold after, the pressed container
|
|
60
|
+
is drawn as a layer of its own — an image of that one color — and the state's color under it is not drawn: the
|
|
61
|
+
pressed color stands in the state's place, as it does with the script, and is not laid over it. Both are said by two
|
|
62
|
+
names that only a press changes, `--_brc-held-image` and `--_brc-held-clip` (the second layer of the image is there for
|
|
63
|
+
its clip alone: a background's color is clipped as its last layer is, and `text` leaves it behind the glyphs). No one
|
|
64
|
+
registers them — a registered custom property makes every transition of the page dear: each is a custom property like any other, which may change
|
|
65
|
+
in steps (`transition-behavior: allow-discrete`, said wherever the transition is), and a step after press-hold is all
|
|
66
|
+
the hold is; the two properties that read them have no transition, so they follow the names frame by frame. The
|
|
67
|
+
background's COLOR takes no part in the hold: mixed with the pressed one by a held number, it started its own
|
|
68
|
+
transition when the press ended — toward the value it has without the hold, which a transition's start does not
|
|
69
|
+
count — faded there while the press was being held, and came back. Where the browser does not know a step, the press
|
|
70
|
+
ends when the pointer is lifted. */
|
|
71
|
+
|
|
72
|
+
@layer tanrei.components {
|
|
73
|
+
/* ── The corners of a level that is a link (BRC-16, BRC-20) ─────────────────────────────────────────────────── */
|
|
74
|
+
:where(tanrei-breadcrumbs) > :where(a) {
|
|
75
|
+
--tanrei-corner-pill: 0;
|
|
76
|
+
}
|
|
77
|
+
:where(tanrei-breadcrumbs) > :where(a) {
|
|
78
|
+
--_corner-scale: 1;
|
|
79
|
+
border-radius: calc(var(--tanrei-corner-radius) * var(--_corner-scale));
|
|
80
|
+
}
|
|
81
|
+
@supports (corner-shape: superellipse(log(2, 2))) {
|
|
82
|
+
:where(tanrei-breadcrumbs) > :where(a) {
|
|
83
|
+
--_corner-smoothing: calc(var(--tanrei-sys-shape-corner-smoothing, 0) * (1 - var(--tanrei-corner-pill, 0)));
|
|
84
|
+
--_corner-scale: calc(1 + 0.4 * var(--_corner-smoothing));
|
|
85
|
+
corner-shape: superellipse(log(calc(2 + var(--_corner-smoothing)), 2));
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* ── The whole (BRC-26): the layout's own start, for the lines of a label that has a direction of its own ───── */
|
|
90
|
+
:where(tanrei-breadcrumbs) {
|
|
91
|
+
--_brc-start: left;
|
|
92
|
+
}
|
|
93
|
+
:where(tanrei-breadcrumbs:dir(rtl)) {
|
|
94
|
+
--_brc-start: right;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* ── Before the element is defined: the wrap form (BRC-15) — every level, on as many lines as it needs ──────── */
|
|
98
|
+
:where(tanrei-breadcrumbs:not(:defined)) {
|
|
99
|
+
display: flex;
|
|
100
|
+
flex-wrap: wrap;
|
|
101
|
+
align-items: flex-start;
|
|
102
|
+
row-gap: var(--tanrei-comp-breadcrumbs-row-gap);
|
|
103
|
+
box-sizing: border-box;
|
|
104
|
+
min-inline-size: 0;
|
|
105
|
+
max-inline-size: 100%;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/* ── A level (BRC-3): its label in the trail's text style; text until it has a destination ──────────────────── */
|
|
109
|
+
:where(tanrei-breadcrumbs) > :where(a, span) {
|
|
110
|
+
/* One line of the trail's text, as a length that a glyph — whose own font is the icon set's — can read. */
|
|
111
|
+
--_brc-line: calc(var(--tanrei-comp-breadcrumbs-label-typescale-font-size) * var(--tanrei-comp-breadcrumbs-label-typescale-line-height));
|
|
112
|
+
position: relative;
|
|
113
|
+
isolation: isolate;
|
|
114
|
+
display: block;
|
|
115
|
+
flex: 0 1 auto;
|
|
116
|
+
box-sizing: border-box;
|
|
117
|
+
min-inline-size: 0;
|
|
118
|
+
margin: 0;
|
|
119
|
+
padding: 0;
|
|
120
|
+
font: var(--tanrei-comp-breadcrumbs-label-typescale-font);
|
|
121
|
+
letter-spacing: var(--tanrei-comp-breadcrumbs-label-typescale-letter-spacing);
|
|
122
|
+
color: var(--tanrei-comp-breadcrumbs-label-color);
|
|
123
|
+
text-decoration-line: none;
|
|
124
|
+
/* BRC-15: a label wraps where its language allows and, for a run longer than the line, inside the run. */
|
|
125
|
+
overflow-wrap: anywhere;
|
|
126
|
+
/* BRC-28: text of its own direction, by its first strong character; its lines begin at the layout's start. */
|
|
127
|
+
text-align: var(--_brc-start);
|
|
128
|
+
unicode-bidi: plaintext;
|
|
129
|
+
-webkit-tap-highlight-color: transparent;
|
|
130
|
+
|
|
131
|
+
/* BRC-4: the current page — the last level — in the text color, heavier. */
|
|
132
|
+
&:where([aria-current]:not([aria-current='false'])):where(:last-child) {
|
|
133
|
+
color: var(--tanrei-comp-breadcrumbs-current-content-color);
|
|
134
|
+
font-weight: var(--tanrei-comp-breadcrumbs-label-typescale-font-weight-emphasized);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/* ── A level that is a link (BRC-2): the item part's tokens, underlined in the label's color ─────────────── */
|
|
138
|
+
&:where(:any-link:not([href=''], [href^='javascript:' i])) {
|
|
139
|
+
--_brc-container: var(--tanrei-comp-breadcrumbs-item-container-color);
|
|
140
|
+
--_brc-content: var(--tanrei-comp-breadcrumbs-item-content-color);
|
|
141
|
+
--_brc-hovered-container: var(--tanrei-comp-breadcrumbs-item-hovered-container-color);
|
|
142
|
+
--_brc-hovered-content: var(--tanrei-comp-breadcrumbs-item-hovered-content-color);
|
|
143
|
+
--_brc-focused-container: var(--tanrei-comp-breadcrumbs-item-focused-container-color);
|
|
144
|
+
--_brc-focused-content: var(--tanrei-comp-breadcrumbs-item-focused-content-color);
|
|
145
|
+
--_brc-pressed-container: var(--tanrei-comp-breadcrumbs-item-pressed-container-color);
|
|
146
|
+
--_brc-pressed-content: var(--tanrei-comp-breadcrumbs-item-pressed-content-color);
|
|
147
|
+
--_brc-now-container: var(--_brc-container);
|
|
148
|
+
--_brc-now-content: var(--_brc-content);
|
|
149
|
+
--_brc-target: var(--tanrei-sys-target-pointer);
|
|
150
|
+
--tanrei-corner-radius: var(--tanrei-comp-breadcrumbs-container-shape);
|
|
151
|
+
--tanrei-corner-pill: var(--tanrei-comp-breadcrumbs-container-shape-pill, 0);
|
|
152
|
+
color: var(--_brc-now-content);
|
|
153
|
+
/* BRC-16: the container is the box of the content; it takes no room. */
|
|
154
|
+
background-color: var(--_brc-now-container);
|
|
155
|
+
background-image: var(--_brc-held-image);
|
|
156
|
+
background-clip: var(--_brc-held-clip);
|
|
157
|
+
/* BRC-2, BRC-30: the underline, while it is shown — at rest, and in a state. Both in the default system. */
|
|
158
|
+
--_brc-line-rest: underline;
|
|
159
|
+
--_brc-line-state: underline;
|
|
160
|
+
text-decoration-line: var(--_brc-line-rest);
|
|
161
|
+
text-decoration-thickness: var(--tanrei-comp-breadcrumbs-underline-width);
|
|
162
|
+
text-underline-offset: var(--tanrei-comp-breadcrumbs-underline-offset);
|
|
163
|
+
cursor: pointer;
|
|
164
|
+
/* BRC-21; and the hold of a press that no script answers. */
|
|
165
|
+
/* (The hold stands first: its delay is where the script reads sys.motion.duration.press-hold as a time.) */
|
|
166
|
+
--_brc-held-image: none;
|
|
167
|
+
--_brc-held-clip: border-box;
|
|
168
|
+
transition:
|
|
169
|
+
--_brc-held-image 0s linear var(--tanrei-sys-motion-duration-press-hold),
|
|
170
|
+
--_brc-held-clip 0s linear var(--tanrei-sys-motion-duration-press-hold),
|
|
171
|
+
background-color var(--tanrei-comp-breadcrumbs-motion-state-duration) var(--tanrei-comp-breadcrumbs-motion-state-easing),
|
|
172
|
+
color var(--tanrei-comp-breadcrumbs-motion-state-duration) var(--tanrei-comp-breadcrumbs-motion-state-easing),
|
|
173
|
+
opacity var(--tanrei-comp-breadcrumbs-motion-state-duration) var(--tanrei-comp-breadcrumbs-motion-state-easing);
|
|
174
|
+
transition-behavior: allow-discrete;
|
|
175
|
+
@media (pointer: coarse) {
|
|
176
|
+
--_brc-target: var(--tanrei-sys-target-touch);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
/* ── When the underline is shown (BRC-30): the design system's choice, the trail's own token, then
|
|
180
|
+
the `underline` attribute. `comp.breadcrumbs.underline.visibility` arrives as the choice's name and is read on
|
|
181
|
+
the element by a style query; where the browser has none the element reads it and writes
|
|
182
|
+
`data-tanrei-underline`. A name that is not known is the first value, always: no rule names it. ─────────── */
|
|
183
|
+
@container style(--tanrei-comp-breadcrumbs-underline-visibility: hover) {
|
|
184
|
+
& {
|
|
185
|
+
--_brc-line-rest: none;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
@container style(--tanrei-comp-breadcrumbs-underline-visibility: never) {
|
|
189
|
+
& {
|
|
190
|
+
--_brc-line-rest: none;
|
|
191
|
+
--_brc-line-state: none;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
:where(tanrei-breadcrumbs[data-tanrei-underline='hover']) > & {
|
|
195
|
+
--_brc-line-rest: none;
|
|
196
|
+
}
|
|
197
|
+
:where(tanrei-breadcrumbs[data-tanrei-underline='never']) > & {
|
|
198
|
+
--_brc-line-rest: none;
|
|
199
|
+
--_brc-line-state: none;
|
|
200
|
+
}
|
|
201
|
+
/* The attribute, whatever the tokens say; `auto` and a value it does not have follow them. */
|
|
202
|
+
:where(tanrei-breadcrumbs[underline='always']) > & {
|
|
203
|
+
--_brc-line-rest: underline;
|
|
204
|
+
--_brc-line-state: underline;
|
|
205
|
+
}
|
|
206
|
+
:where(tanrei-breadcrumbs[underline='hover']) > & {
|
|
207
|
+
--_brc-line-rest: none;
|
|
208
|
+
--_brc-line-state: underline;
|
|
209
|
+
}
|
|
210
|
+
:where(tanrei-breadcrumbs[underline='never']) > & {
|
|
211
|
+
--_brc-line-rest: none;
|
|
212
|
+
--_brc-line-state: none;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/* BRC-4: the current page with a destination — a link that keeps the current page's look, from the current part. */
|
|
216
|
+
&:where(:any-link:not([href=''], [href^='javascript:' i])):where([aria-current]:not([aria-current='false'])):where(:last-child) {
|
|
217
|
+
--_brc-container: var(--tanrei-comp-breadcrumbs-current-container-color);
|
|
218
|
+
--_brc-content: var(--tanrei-comp-breadcrumbs-current-content-color);
|
|
219
|
+
--_brc-hovered-container: var(--tanrei-comp-breadcrumbs-current-hovered-container-color);
|
|
220
|
+
--_brc-hovered-content: var(--tanrei-comp-breadcrumbs-current-hovered-content-color);
|
|
221
|
+
--_brc-focused-container: var(--tanrei-comp-breadcrumbs-current-focused-container-color);
|
|
222
|
+
--_brc-focused-content: var(--tanrei-comp-breadcrumbs-current-focused-content-color);
|
|
223
|
+
--_brc-pressed-container: var(--tanrei-comp-breadcrumbs-current-pressed-container-color);
|
|
224
|
+
--_brc-pressed-content: var(--tanrei-comp-breadcrumbs-current-pressed-content-color);
|
|
225
|
+
--_brc-line-rest: none;
|
|
226
|
+
--_brc-line-state: none;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/* ── A level's glyph (BRC-7): before the label, centred on its first line, in the level's color ───────────── */
|
|
230
|
+
/* A level with a glyph is laid out in the layout's direction, so that the glyph stands at the layout's start. */
|
|
231
|
+
&:where([data-icon]:not([data-icon=''])) {
|
|
232
|
+
unicode-bidi: isolate;
|
|
233
|
+
}
|
|
234
|
+
&:where([data-icon]:not([data-icon='']))::before {
|
|
235
|
+
content: attr(data-icon);
|
|
236
|
+
content: attr(data-icon) / '';
|
|
237
|
+
display: inline-block;
|
|
238
|
+
flex: none;
|
|
239
|
+
overflow: hidden;
|
|
240
|
+
inline-size: var(--tanrei-comp-breadcrumbs-icon-size);
|
|
241
|
+
block-size: var(--tanrei-comp-breadcrumbs-icon-size);
|
|
242
|
+
margin-block-start: calc((var(--_brc-line) - var(--tanrei-comp-breadcrumbs-icon-size)) / 2);
|
|
243
|
+
margin-inline-end: var(--tanrei-comp-breadcrumbs-container-gap);
|
|
244
|
+
vertical-align: top;
|
|
245
|
+
font-family: var(--tanrei-sys-icon-family-unselected);
|
|
246
|
+
font-size: var(--tanrei-comp-breadcrumbs-icon-size);
|
|
247
|
+
font-style: normal;
|
|
248
|
+
font-weight: normal;
|
|
249
|
+
line-height: 1;
|
|
250
|
+
letter-spacing: normal;
|
|
251
|
+
text-transform: none;
|
|
252
|
+
white-space: nowrap;
|
|
253
|
+
word-wrap: normal;
|
|
254
|
+
direction: ltr;
|
|
255
|
+
-webkit-user-select: none;
|
|
256
|
+
user-select: none;
|
|
257
|
+
font-feature-settings: 'liga';
|
|
258
|
+
-webkit-font-smoothing: antialiased;
|
|
259
|
+
font-optical-sizing: auto;
|
|
260
|
+
font-variation-settings:
|
|
261
|
+
'FILL' var(--tanrei-sys-icon-fill-unselected),
|
|
262
|
+
'wght' var(--tanrei-sys-icon-weight),
|
|
263
|
+
'GRAD' 0;
|
|
264
|
+
opacity: var(--tanrei-icons, 0);
|
|
265
|
+
}
|
|
266
|
+
/* The optical size is the box's, written by hand where the engine can turn the box's size into a number: the
|
|
267
|
+
arithmetic and the condition are src/styles/icons.ts's, written in place by the build (writeGlyphAxes). */
|
|
268
|
+
@supports (font-variation-settings: 'opsz' tan(atan2(1em, 1px))) {
|
|
269
|
+
&:where([data-icon]:not([data-icon='']))::before {
|
|
270
|
+
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(--tanrei-comp-breadcrumbs-icon-size), 1px)), var(--tanrei-sys-icon-optical-size-max));
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
/* The glyph's own direction is left to right (its name is a ligature), so its own inline end is the right — and in a
|
|
274
|
+
right-to-left layout the label stands on its left: the space goes there. */
|
|
275
|
+
&:where([data-icon]:not([data-icon='']):dir(rtl))::before {
|
|
276
|
+
margin-inline: var(--tanrei-comp-breadcrumbs-container-gap) 0;
|
|
277
|
+
}
|
|
278
|
+
/* BRC-27: mirrored where the icon set marks its name (the element writes the mark) or the product says always. */
|
|
279
|
+
&:where(:is([data-tanrei-mirrored], [data-mirror='always']):not([data-mirror='never']):dir(rtl))::before {
|
|
280
|
+
transform: scaleX(-1);
|
|
281
|
+
}
|
|
282
|
+
/* The glyph alone: a square one line high; the label is not drawn and is still the level's name. */
|
|
283
|
+
&:where([data-icon]:not([data-icon=''])):where([data-icon-only]:not([data-icon-only='false'])) {
|
|
284
|
+
display: flex;
|
|
285
|
+
flex: none;
|
|
286
|
+
align-items: center;
|
|
287
|
+
justify-content: center;
|
|
288
|
+
inline-size: var(--_brc-line);
|
|
289
|
+
block-size: var(--_brc-line);
|
|
290
|
+
font-size: 0;
|
|
291
|
+
letter-spacing: 0;
|
|
292
|
+
white-space: nowrap;
|
|
293
|
+
--_brc-line-rest: none;
|
|
294
|
+
--_brc-line-state: none;
|
|
295
|
+
}
|
|
296
|
+
&:where([data-icon]:not([data-icon=''])):where([data-icon-only]:not([data-icon-only='false']))::before {
|
|
297
|
+
margin: 0;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
/* ── States (BRC-16): pressed over focused over hovered, each from its own tokens ─────────────────────────── */
|
|
301
|
+
@media (hover: hover) {
|
|
302
|
+
&:where(:any-link:not([href=''], [href^='javascript:' i]):hover) {
|
|
303
|
+
--_brc-now-container: var(--_brc-hovered-container);
|
|
304
|
+
--_brc-now-content: var(--_brc-hovered-content);
|
|
305
|
+
--tanrei-corner-radius: var(--tanrei-comp-breadcrumbs-hovered-container-shape);
|
|
306
|
+
--tanrei-corner-pill: var(--tanrei-comp-breadcrumbs-hovered-container-shape-pill, 0);
|
|
307
|
+
opacity: var(--tanrei-comp-breadcrumbs-hovered-opacity);
|
|
308
|
+
text-decoration-line: var(--_brc-line-state);
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
/* BRC-17: the focus indicator around the container; never animated, never for a pointer. */
|
|
312
|
+
&:where(:any-link:not([href=''], [href^='javascript:' i]):focus-visible) {
|
|
313
|
+
--_brc-now-container: var(--_brc-focused-container);
|
|
314
|
+
--_brc-now-content: var(--_brc-focused-content);
|
|
315
|
+
--_brc-focus-inner-edge: calc(var(--tanrei-sys-focus-offset) + var(--tanrei-sys-focus-inner-width));
|
|
316
|
+
--tanrei-corner-radius: var(--tanrei-comp-breadcrumbs-focused-container-shape);
|
|
317
|
+
--tanrei-corner-pill: var(--tanrei-comp-breadcrumbs-focused-container-shape-pill, 0);
|
|
318
|
+
opacity: var(--tanrei-comp-breadcrumbs-focused-opacity);
|
|
319
|
+
text-decoration-line: var(--_brc-line-state);
|
|
320
|
+
outline: var(--tanrei-sys-focus-outer-width) solid var(--tanrei-sys-color-focus-ring);
|
|
321
|
+
outline-offset: var(--_brc-focus-inner-edge);
|
|
322
|
+
/* The inner stroke, where the system has one: from the container to the outer stroke. The second term is 0
|
|
323
|
+
where the inner width is. */
|
|
324
|
+
box-shadow: 0 0 0 min(var(--_brc-focus-inner-edge), calc(var(--tanrei-sys-focus-inner-width) * 1000)) var(--tanrei-sys-color-focus-ring-inner);
|
|
325
|
+
}
|
|
326
|
+
/* BRC-20, focus-style: glow — the same two colors as a halo; read by a style query, and from data-focus-style
|
|
327
|
+
(written by the element when focus arrives) where there are none. */
|
|
328
|
+
@container style(--tanrei-sys-behavior-focus-style: glow) {
|
|
329
|
+
&:where(:any-link:not([href=''], [href^='javascript:' i]):focus-visible) {
|
|
330
|
+
/* Transparent, not none: forced colors repaint it in a system color, where a box-shadow is dropped. */
|
|
331
|
+
outline-color: transparent;
|
|
332
|
+
box-shadow:
|
|
333
|
+
0 0 var(--tanrei-sys-focus-inner-width) calc(var(--tanrei-sys-focus-offset) + var(--tanrei-sys-focus-inner-width)) var(--tanrei-sys-color-focus-ring-inner),
|
|
334
|
+
0 0 var(--tanrei-sys-focus-outer-width) calc(var(--tanrei-sys-focus-offset) + var(--tanrei-sys-focus-inner-width) + var(--tanrei-sys-focus-outer-width)) var(--tanrei-sys-color-focus-ring);
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
&:where(:any-link:not([href=''], [href^='javascript:' i])[data-focus-style='glow']:focus-visible) {
|
|
338
|
+
outline-color: transparent;
|
|
339
|
+
box-shadow:
|
|
340
|
+
0 0 var(--tanrei-sys-focus-inner-width) calc(var(--tanrei-sys-focus-offset) + var(--tanrei-sys-focus-inner-width)) var(--tanrei-sys-color-focus-ring-inner),
|
|
341
|
+
0 0 var(--tanrei-sys-focus-outer-width) calc(var(--tanrei-sys-focus-offset) + var(--tanrei-sys-focus-inner-width) + var(--tanrei-sys-focus-outer-width)) var(--tanrei-sys-color-focus-ring);
|
|
342
|
+
}
|
|
343
|
+
/* BRC-18, without script: the overlay at once, and the two names keep the container for press-hold after. */
|
|
344
|
+
&:where(:any-link:not([href=''], [href^='javascript:' i]):active:not([data-pressed])) {
|
|
345
|
+
--_brc-held-image: linear-gradient(var(--_brc-pressed-container), var(--_brc-pressed-container)), none;
|
|
346
|
+
--_brc-held-clip: border-box, text;
|
|
347
|
+
--_brc-now-content: var(--_brc-pressed-content);
|
|
348
|
+
--tanrei-corner-radius: var(--tanrei-comp-breadcrumbs-pressed-container-shape);
|
|
349
|
+
--tanrei-corner-pill: var(--tanrei-comp-breadcrumbs-pressed-container-shape-pill, 0);
|
|
350
|
+
opacity: var(--tanrei-comp-breadcrumbs-pressed-opacity);
|
|
351
|
+
text-decoration-line: var(--_brc-line-state);
|
|
352
|
+
transition-duration: 0s;
|
|
353
|
+
transition-delay: 0s;
|
|
354
|
+
}
|
|
355
|
+
/* BRC-18, BRC-19, with the script: `data-pressed` names the feedback. `none` changes nothing at all. */
|
|
356
|
+
&:where([data-pressed]:not([data-pressed='none'])) {
|
|
357
|
+
text-decoration-line: var(--_brc-line-state);
|
|
358
|
+
transition-duration: 0s;
|
|
359
|
+
}
|
|
360
|
+
&:where([data-pressed='overlay']) {
|
|
361
|
+
--_brc-now-container: var(--_brc-pressed-container);
|
|
362
|
+
--_brc-now-content: var(--_brc-pressed-content);
|
|
363
|
+
--tanrei-corner-radius: var(--tanrei-comp-breadcrumbs-pressed-container-shape);
|
|
364
|
+
--tanrei-corner-pill: var(--tanrei-comp-breadcrumbs-pressed-container-shape-pill, 0);
|
|
365
|
+
opacity: var(--tanrei-comp-breadcrumbs-pressed-opacity);
|
|
366
|
+
}
|
|
367
|
+
/* ripple, dim: everything but the container color, which stays with the state under the press. */
|
|
368
|
+
&:where([data-pressed='ripple'], [data-pressed='dim']) {
|
|
369
|
+
--_brc-now-content: var(--_brc-pressed-content);
|
|
370
|
+
--tanrei-corner-radius: var(--tanrei-comp-breadcrumbs-pressed-container-shape);
|
|
371
|
+
--tanrei-corner-pill: var(--tanrei-comp-breadcrumbs-pressed-container-shape-pill, 0);
|
|
372
|
+
opacity: var(--tanrei-comp-breadcrumbs-pressed-opacity);
|
|
373
|
+
}
|
|
374
|
+
/* The ripple's layer (src/primitives/ripple.ts adds it and sets --_x, --_y, --_r): the pressed container color,
|
|
375
|
+
clipped to the container and to a circle around the point of contact, under the label. */
|
|
376
|
+
& > :where(.ripple) {
|
|
377
|
+
position: absolute;
|
|
378
|
+
z-index: -1;
|
|
379
|
+
inset: 0;
|
|
380
|
+
border-radius: inherit;
|
|
381
|
+
corner-shape: inherit;
|
|
382
|
+
background: var(--_brc-pressed-container);
|
|
383
|
+
pointer-events: none;
|
|
384
|
+
clip-path: circle(var(--_r) at var(--_x) var(--_y));
|
|
385
|
+
animation: tanrei-breadcrumbs-ripple var(--tanrei-comp-breadcrumbs-motion-feedback-duration) var(--tanrei-comp-breadcrumbs-motion-state-easing) both;
|
|
386
|
+
transition: opacity var(--tanrei-comp-breadcrumbs-motion-state-duration) var(--tanrei-comp-breadcrumbs-motion-state-easing);
|
|
387
|
+
}
|
|
388
|
+
& > :where(.ripple.leaving) {
|
|
389
|
+
opacity: 0;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
/* ── Where motion is reduced (BRC-19, BRC-21): every change at once; the hold stays ───────────────────────── */
|
|
393
|
+
@media (prefers-reduced-motion: reduce) {
|
|
394
|
+
&:where(:any-link:not([href=''], [href^='javascript:' i])) {
|
|
395
|
+
transition:
|
|
396
|
+
--_brc-held-image 0s linear var(--tanrei-sys-motion-duration-press-hold),
|
|
397
|
+
--_brc-held-clip 0s linear var(--tanrei-sys-motion-duration-press-hold);
|
|
398
|
+
transition-behavior: allow-discrete;
|
|
399
|
+
}
|
|
400
|
+
& > :where(.ripple) {
|
|
401
|
+
animation: none;
|
|
402
|
+
transition: none;
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
/* ── Forced colors (BRC-24): a link in the link color, the current page and a level without a destination in
|
|
407
|
+
the text color, focus in the highlight; the underline stays ──────────────────────────────────────────────── */
|
|
408
|
+
@media (forced-colors: active) {
|
|
409
|
+
color: CanvasText;
|
|
410
|
+
/* The underline at rest, whatever was chosen: the colors are the person's, and tell no link from text. */
|
|
411
|
+
&:where(:any-link:not([href=''], [href^='javascript:' i])) {
|
|
412
|
+
--_brc-line-rest: underline;
|
|
413
|
+
--_brc-line-state: underline;
|
|
414
|
+
/* The container is the platform's, and so is a press: no layer of the level's own. */
|
|
415
|
+
background-image: none;
|
|
416
|
+
background-clip: border-box;
|
|
417
|
+
color: LinkText;
|
|
418
|
+
}
|
|
419
|
+
&:where([aria-current]:not([aria-current='false'])):where(:last-child),
|
|
420
|
+
&:where([data-icon]:not([data-icon=''])):where([data-icon-only]:not([data-icon-only='false'])) {
|
|
421
|
+
--_brc-line-rest: none;
|
|
422
|
+
--_brc-line-state: none;
|
|
423
|
+
}
|
|
424
|
+
&:where([aria-current]:not([aria-current='false'])):where(:last-child) {
|
|
425
|
+
color: CanvasText;
|
|
426
|
+
}
|
|
427
|
+
&:where(:any-link:not([href=''], [href^='javascript:' i]):focus-visible) {
|
|
428
|
+
outline-color: Highlight;
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
@keyframes tanrei-breadcrumbs-ripple {
|
|
434
|
+
from {
|
|
435
|
+
clip-path: circle(0 at var(--_x) var(--_y));
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
/* ── The hit area (BRC-23), once the element is defined: the minimum target above and below the line, and along
|
|
440
|
+
the trail halfway to the entry beside it — half a separator and its gap — so that a press on a separator
|
|
441
|
+
reaches the nearer of its two neighbours and no two hit areas overlap ───────────────────────────────────────── */
|
|
442
|
+
:where(tanrei-breadcrumbs:defined) > :where(a:any-link:not([href=''], [href^='javascript:' i]))::after {
|
|
443
|
+
content: '';
|
|
444
|
+
position: absolute;
|
|
445
|
+
inset-block: min(0px, calc((100% - var(--_brc-target)) / 2));
|
|
446
|
+
inset-inline: calc((var(--tanrei-comp-breadcrumbs-separator-size) / 2 + var(--tanrei-comp-breadcrumbs-separator-gap)) * -1);
|
|
447
|
+
}
|
|
448
|
+
/* The trail's two ends have no entry beside them: there the hit area ends with the level, so that a trail which
|
|
449
|
+
stands against the edge of what scrolls it widens nothing. */
|
|
450
|
+
:where(tanrei-breadcrumbs:defined) > :where(a:any-link:not([href=''], [href^='javascript:' i]):first-child)::after {
|
|
451
|
+
inset-inline-start: 0;
|
|
452
|
+
}
|
|
453
|
+
:where(tanrei-breadcrumbs:defined) > :where(a:any-link:not([href=''], [href^='javascript:' i]):last-child)::after {
|
|
454
|
+
inset-inline-end: 0;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
/* ── The separators (BRC-6), until the element is defined and draws them itself: chevron_right after every level
|
|
458
|
+
but the last, in room the level keeps at its end, on its last line; no part of the link's box, and not pressed ── */
|
|
459
|
+
:where(tanrei-breadcrumbs:not(:defined)) > :where(a, span):where(:not(:last-child)) {
|
|
460
|
+
margin-inline-end: calc(var(--tanrei-comp-breadcrumbs-separator-size) + var(--tanrei-comp-breadcrumbs-separator-gap) * 2);
|
|
461
|
+
}
|
|
462
|
+
:where(tanrei-breadcrumbs:not(:defined)) > :where(a, span):where(:not(:last-child))::after {
|
|
463
|
+
content: 'chevron_right';
|
|
464
|
+
content: 'chevron_right' / '';
|
|
465
|
+
position: absolute;
|
|
466
|
+
inset-block-end: calc((var(--_brc-line) - var(--tanrei-comp-breadcrumbs-separator-size)) / 2);
|
|
467
|
+
inset-inline-start: calc(100% + var(--tanrei-comp-breadcrumbs-separator-gap));
|
|
468
|
+
overflow: hidden;
|
|
469
|
+
inline-size: var(--tanrei-comp-breadcrumbs-separator-size);
|
|
470
|
+
block-size: var(--tanrei-comp-breadcrumbs-separator-size);
|
|
471
|
+
color: var(--tanrei-comp-breadcrumbs-separator-color);
|
|
472
|
+
font-family: var(--tanrei-sys-icon-family-unselected);
|
|
473
|
+
font-size: var(--tanrei-comp-breadcrumbs-separator-size);
|
|
474
|
+
font-style: normal;
|
|
475
|
+
font-weight: normal;
|
|
476
|
+
line-height: 1;
|
|
477
|
+
letter-spacing: normal;
|
|
478
|
+
text-transform: none;
|
|
479
|
+
white-space: nowrap;
|
|
480
|
+
word-wrap: normal;
|
|
481
|
+
direction: ltr;
|
|
482
|
+
-webkit-user-select: none;
|
|
483
|
+
user-select: none;
|
|
484
|
+
pointer-events: none;
|
|
485
|
+
font-feature-settings: 'liga';
|
|
486
|
+
-webkit-font-smoothing: antialiased;
|
|
487
|
+
font-optical-sizing: auto;
|
|
488
|
+
font-variation-settings:
|
|
489
|
+
'FILL' var(--tanrei-sys-icon-fill-unselected),
|
|
490
|
+
'wght' var(--tanrei-sys-icon-weight),
|
|
491
|
+
'GRAD' 0;
|
|
492
|
+
opacity: var(--tanrei-icons, 0);
|
|
493
|
+
}
|
|
494
|
+
/* The optical size is the box's, written by hand where the engine can turn the box's size into a number: the
|
|
495
|
+
arithmetic and the condition are src/styles/icons.ts's, written in place by the build (writeGlyphAxes). */
|
|
496
|
+
@supports (font-variation-settings: 'opsz' tan(atan2(1em, 1px))) {
|
|
497
|
+
:where(tanrei-breadcrumbs:not(:defined)) > :where(a, span):where(:not(:last-child))::after {
|
|
498
|
+
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(--tanrei-comp-breadcrumbs-separator-size), 1px)), var(--tanrei-sys-icon-optical-size-max));
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
/* BRC-27: pointing the way the trail reads. (No script reads the icon set's list here: chevron_right is this
|
|
502
|
+
stylesheet's own glyph, and every icon set that has it mirrors it.) */
|
|
503
|
+
:where(tanrei-breadcrumbs:not(:defined):dir(rtl)) > :where(a, span):where(:not(:last-child))::after {
|
|
504
|
+
transform: scaleX(-1);
|
|
505
|
+
}
|
|
506
|
+
@media (forced-colors: active) {
|
|
507
|
+
:where(tanrei-breadcrumbs:not(:defined)) > :where(a, span):where(:not(:last-child))::after {
|
|
508
|
+
color: CanvasText;
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
}
|
package/dist/callout.css
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Callout before its element is defined (specs/callout.spec.json; CLO-13, CLO-22): `<tanrei-callout>` holds its title,
|
|
3
|
+
* its body and its actions as its own children, so a page that is rendered on a server shows them before any script
|
|
4
|
+
* runs — as plain blocks in the page's text, without the fill, the glyph and the close button. This stylesheet gives
|
|
5
|
+
* that first paint the box the element will have, so that nothing moves when the element is defined:
|
|
6
|
+
*
|
|
7
|
+
* <tanrei-callout status="info">
|
|
8
|
+
* <p slot="title">A revised spec</p>
|
|
9
|
+
* The web draws this revision.
|
|
10
|
+
* </tanrei-callout>
|
|
11
|
+
*
|
|
12
|
+
* - a block with the callout's paddings, in the body's text style of its size;
|
|
13
|
+
* - room at the start for the glyph of a status or of the `icon` slot (whose glyph name is not shown as text), and at
|
|
14
|
+
* the end for the close button;
|
|
15
|
+
* - the title slot in the title's text style, the title's gap above the body;
|
|
16
|
+
* - nothing at all for `open="false"`.
|
|
17
|
+
*
|
|
18
|
+
* What it cannot give: a title in the `headline` attribute (it is drawn by the element — content pages use the title
|
|
19
|
+
* slot), and the row of the `actions` slot (its Buttons are elements that are not defined yet either).
|
|
20
|
+
*
|
|
21
|
+
* Every value is a `--tanrei-comp-callout-*` token. Every selector has no specificity (`:where()`), and none matches
|
|
22
|
+
* once the element is defined.
|
|
23
|
+
*/
|
|
24
|
+
@layer tanrei.components {
|
|
25
|
+
:where(tanrei-callout:not(:defined)) {
|
|
26
|
+
display: block;
|
|
27
|
+
box-sizing: border-box;
|
|
28
|
+
padding-block: var(--tanrei-comp-callout-container-padding-block);
|
|
29
|
+
padding-inline: var(--tanrei-comp-callout-container-padding-inline);
|
|
30
|
+
font: var(--tanrei-comp-callout-body-typescale-medium-font);
|
|
31
|
+
letter-spacing: var(--tanrei-comp-callout-body-typescale-medium-letter-spacing);
|
|
32
|
+
overflow-wrap: break-word;
|
|
33
|
+
}
|
|
34
|
+
:where(tanrei-callout[size='large']:not(:defined)) {
|
|
35
|
+
font: var(--tanrei-comp-callout-body-typescale-large-font);
|
|
36
|
+
letter-spacing: var(--tanrei-comp-callout-body-typescale-large-letter-spacing);
|
|
37
|
+
}
|
|
38
|
+
/* CLO-13: a callout that starts closed takes no space before it is defined either. */
|
|
39
|
+
:where(tanrei-callout[open='false' i]:not(:defined)) {
|
|
40
|
+
display: none;
|
|
41
|
+
}
|
|
42
|
+
/* The glyph's room: a status's, or the product's own. */
|
|
43
|
+
:where(tanrei-callout:not(:defined):is([status='info'], [status='warning'], [status='error'], [status='success'], :has(> [slot='icon']))) {
|
|
44
|
+
padding-inline-start: calc(var(--tanrei-comp-callout-container-padding-inline) + var(--tanrei-comp-callout-icon-size) + var(--tanrei-comp-callout-icon-gap));
|
|
45
|
+
}
|
|
46
|
+
/* The close button's room. */
|
|
47
|
+
:where(tanrei-callout[closable]:not(:defined)) {
|
|
48
|
+
padding-inline-end: calc(var(--tanrei-comp-callout-container-padding-inline-end-with-close) + var(--tanrei-comp-callout-controls-height) + var(--tanrei-comp-callout-container-gap));
|
|
49
|
+
}
|
|
50
|
+
/* A glyph is a name until its element draws it: the name is not shown. */
|
|
51
|
+
:where(tanrei-callout:not(:defined)) > :where([slot='icon']) {
|
|
52
|
+
display: none;
|
|
53
|
+
}
|
|
54
|
+
:where(tanrei-callout:not(:defined)) > :where([slot='title']) {
|
|
55
|
+
display: block;
|
|
56
|
+
margin: 0;
|
|
57
|
+
margin-block-end: var(--tanrei-comp-callout-title-gap);
|
|
58
|
+
font: var(--tanrei-comp-callout-title-typescale-medium-font);
|
|
59
|
+
letter-spacing: var(--tanrei-comp-callout-title-typescale-medium-letter-spacing);
|
|
60
|
+
}
|
|
61
|
+
:where(tanrei-callout[size='large']:not(:defined)) > :where([slot='title']) {
|
|
62
|
+
font: var(--tanrei-comp-callout-title-typescale-large-font);
|
|
63
|
+
letter-spacing: var(--tanrei-comp-callout-title-typescale-large-letter-spacing);
|
|
64
|
+
}
|
|
65
|
+
}
|