@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,493 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* App shell (specs/app-shell.spec.json, APS-1 to APS-30): the frame of a page or an
|
|
3
|
+
* app. It places a header, the navigation, the main content, an aside and a footer, decides from the window's width
|
|
4
|
+
* how each is shown, and lets a keyboard reach the content in one step. It draws the frame and none of what stands
|
|
5
|
+
* in it.
|
|
6
|
+
*
|
|
7
|
+
* `<tanrei-app-shell>` is an element with no shadow root around the product's own regions, which stay in the
|
|
8
|
+
* document and keep their semantics — a `header` is the page's banner, the one `main` its main landmark:
|
|
9
|
+
*
|
|
10
|
+
* <tanrei-app-shell aside-order="before" aside-label="On this page">
|
|
11
|
+
* <a class="tanrei-link" data-standalone slot="skip-link" href="#main">Skip to content</a>
|
|
12
|
+
* <div slot="announcement">…a callout…</div>
|
|
13
|
+
* <header slot="header">
|
|
14
|
+
* <tanrei-app-bar headline="Tanrei">
|
|
15
|
+
* <tanrei-button slot="navigation" data-app-shell-menu variant="text" label="Menu">…</tanrei-button>
|
|
16
|
+
* </tanrei-app-bar>
|
|
17
|
+
* </header>
|
|
18
|
+
* <tanrei-navigation-drawer slot="navigation" responsive collapsible label="Documentation">…</tanrei-navigation-drawer>
|
|
19
|
+
* <aside slot="aside">…</aside>
|
|
20
|
+
* <main id="main" tabindex="-1">…</main>
|
|
21
|
+
* <footer slot="footer">…</footer>
|
|
22
|
+
* <tanrei-navigation-bar slot="navigation-bar" label="Sections">…</tanrei-navigation-bar>
|
|
23
|
+
* </tanrei-app-shell>
|
|
24
|
+
*
|
|
25
|
+
* The regions are children with a `slot` attribute (no shadow root reads it: it is the region's name) and the one
|
|
26
|
+
* `main` without one, written in the order a keyboard walks them (APS-22): the skip link, the announcement, the
|
|
27
|
+
* header, the navigation, the aside while `aside-order` is `before`, the main region, the aside while it is `after`,
|
|
28
|
+
* the footer, the navigation bar. The stylesheet places them on a grid by name and never reorders focus.
|
|
29
|
+
*
|
|
30
|
+
* Attributes of the element: `scroll` (page | main), `header-position` (sticky | static), `main-width`
|
|
31
|
+
* (contained | full), `aside-order` (after | before), `separation` (auto | divider | gap), `navigation-open`,
|
|
32
|
+
* `aside-label`.
|
|
33
|
+
*
|
|
34
|
+
* This stylesheet lays the whole frame out before and without script (APS-24): the window's class is three media
|
|
35
|
+
* conditions, a region that the class does not show has no box, the skip link is an anchor to the main region's id.
|
|
36
|
+
* The element (src/components/app-shell/app-shell.ts) adds what a stylesheet cannot: the two events, the menu
|
|
37
|
+
* button's opening of the navigation, the measured height of the header, the landmark of a region whose element
|
|
38
|
+
* does not give one, and the debug reports. It writes
|
|
39
|
+
*
|
|
40
|
+
* data-window-class (on the element) compact | medium | expanded: the class, for a rule or a script of the product
|
|
41
|
+
* data-separation (on the element) the separation the tokens name, where the browser has no style queries (APS-18)
|
|
42
|
+
* data-menu (on the element) shown | hidden, where the browser has no style queries (APS-6)
|
|
43
|
+
* --tanrei-app-shell-scroll-offset (on the document's root) the header's measured height (APS-17)
|
|
44
|
+
* --tanrei-app-shell-scroll-offset-end (on the document's root) the navigation bar's measured height
|
|
45
|
+
* --_aps-footer (on the element) the footer's measured height: where the navigation and the aside stop staying in view (APS-11)
|
|
46
|
+
*
|
|
47
|
+
* and this stylesheet gives everything the frame holds
|
|
48
|
+
*
|
|
49
|
+
* --tanrei-app-shell-window-class compact | medium | expanded, inherited: a component inside the frame
|
|
50
|
+
* follows the class with `@container style(…)`, with no script (APS-3)
|
|
51
|
+
*
|
|
52
|
+
* THE WINDOW'S WIDTHS
|
|
53
|
+
*
|
|
54
|
+
* A custom property cannot stand in a media condition. The two widths are written here as
|
|
55
|
+
* `token(comp.app-shell.breakpoint.medium)` and `token(comp.app-shell.breakpoint.expanded)`, and the build
|
|
56
|
+
* (scripts/build.js, scripts/conditions.js) writes the resolved value of each, in rem, in its place — in the
|
|
57
|
+
* conditions and in the two `--_aps-breakpoint-*` properties the element reads them back from, so the script and
|
|
58
|
+
* the stylesheet can never part. A system or a layer that changes the widths gets a stylesheet of its own
|
|
59
|
+
* (`dist/systems/<id>.app-shell.css`); src/components/app-shell/app-shell.test.ts fails if a condition drifts from
|
|
60
|
+
* its token. rem in a media condition is the reader's own text size, so enlarged text moves the frame to a narrower
|
|
61
|
+
* class (APS-2).
|
|
62
|
+
*
|
|
63
|
+
* HOW IT IS WRITTEN
|
|
64
|
+
*
|
|
65
|
+
* - Every selector starts at the element's name and has no specificity (`:where()`), so one class of the product's
|
|
66
|
+
* wins, and the ORDER of the rules decides between two of them.
|
|
67
|
+
* - A rule reaches the frame's own regions by the child combinator only: a `main` or a `[slot]` deeper in the page
|
|
68
|
+
* is the product's.
|
|
69
|
+
* - `:has()` is asked only of the element a rule styles (src/styles/has.test.ts): what the frame learns of its
|
|
70
|
+
* regions — whether it has a navigation, and one with a collapsed form — reaches the menu button as an inherited
|
|
71
|
+
* value (`--_aps-menu`), read there by a style query.
|
|
72
|
+
* - The navigation and the aside that stay in view are `position: sticky` in the row of the main region, with a
|
|
73
|
+
* block size of zero and a least block size of the row or the window less the header, whichever is less: they
|
|
74
|
+
* add nothing to the height of the row, so a short page with a footer is exactly as tall as the window.
|
|
75
|
+
* - The lines of APS-18 are borders whose width is taken out of the padding beside them: they take no room.
|
|
76
|
+
* - Names that begin `--_aps-` are private.
|
|
77
|
+
*/
|
|
78
|
+
@layer tanrei.components {
|
|
79
|
+
/* ── The frame (APS-1, APS-14, APS-27) ──────────────────────────────────────────────────────────────────────── */
|
|
80
|
+
:where(tanrei-app-shell) {
|
|
81
|
+
/* APS-2: the two widths the conditions below were written from, for the element's two listeners. */
|
|
82
|
+
--_aps-breakpoint-medium: 37.5rem;
|
|
83
|
+
--_aps-breakpoint-expanded: 64rem;
|
|
84
|
+
/* APS-3: the class, for everything the frame holds. */
|
|
85
|
+
--tanrei-app-shell-window-class: compact;
|
|
86
|
+
/* APS-8: the gutter of the class, and what centres a contained main region in its room. */
|
|
87
|
+
--_aps-gutter: var(--tanrei-comp-app-shell-gutter-compact);
|
|
88
|
+
--_aps-centring: calc((100% - var(--tanrei-comp-app-shell-main-max-width)) / 2);
|
|
89
|
+
/* APS-27: the system insets at the start, the end and the bottom. */
|
|
90
|
+
--_aps-inset-start: env(safe-area-inset-left, 0px);
|
|
91
|
+
--_aps-inset-end: env(safe-area-inset-right, 0px);
|
|
92
|
+
--_aps-inset-bottom: env(safe-area-inset-bottom, 0px);
|
|
93
|
+
/* APS-8, APS-9, APS-11: the inset of the main region, of a stacked aside and of the footer, from each edge. */
|
|
94
|
+
--_aps-inline-start: max(var(--_aps-gutter), var(--_aps-inset-start));
|
|
95
|
+
--_aps-inline-end: max(var(--_aps-gutter), var(--_aps-inset-end));
|
|
96
|
+
/* APS-18: the separation this frame draws — its attribute's, else comp.app-shell.separation's — and its line. */
|
|
97
|
+
--_aps-separation: var(--tanrei-comp-app-shell-separation);
|
|
98
|
+
--_aps-line: var(--tanrei-comp-app-shell-outline-width);
|
|
99
|
+
--_aps-line-color: var(--tanrei-comp-app-shell-outline-color);
|
|
100
|
+
/* APS-6: whether the menu button is shown: only while the navigation has no place in the layout. */
|
|
101
|
+
--_aps-menu: hidden;
|
|
102
|
+
/* APS-5, APS-9: what is kept over the top of the window, and the height the navigation and the aside stay in. */
|
|
103
|
+
--_aps-top: var(--tanrei-app-shell-scroll-offset, 0px);
|
|
104
|
+
--_aps-view: calc(100vh - var(--_aps-top));
|
|
105
|
+
--_aps-view: calc(100dvh - var(--_aps-top));
|
|
106
|
+
|
|
107
|
+
display: grid;
|
|
108
|
+
grid-template-columns: [frame-start] auto [main-start] minmax(0, 1fr) [aside-start] auto [frame-end];
|
|
109
|
+
grid-template-rows: [announcement] auto [header] auto [before] auto [main] minmax(0, 1fr) [after] auto [footer] auto [bar] auto [frame-end];
|
|
110
|
+
box-sizing: border-box;
|
|
111
|
+
/* The skip link, while it is not shown, is laid out against the frame (src/scroll-box.test.ts). */
|
|
112
|
+
position: relative;
|
|
113
|
+
min-inline-size: 0;
|
|
114
|
+
/* APS-14: at least as tall as the window, and as tall as its content: the window scrolls the page. */
|
|
115
|
+
min-block-size: 100vh;
|
|
116
|
+
min-block-size: 100dvh;
|
|
117
|
+
/* APS-27: the fill reaches under every inset; the content ends above the bottom one. */
|
|
118
|
+
padding-block-end: var(--_aps-inset-bottom);
|
|
119
|
+
/* APS-1: the frame's fill, and the foreground of what it holds. No elevation and no corner of its own. */
|
|
120
|
+
background-color: var(--tanrei-comp-app-shell-container-color);
|
|
121
|
+
color: var(--tanrei-comp-app-shell-content-color);
|
|
122
|
+
}
|
|
123
|
+
:where(tanrei-app-shell[hidden]) {
|
|
124
|
+
display: none;
|
|
125
|
+
}
|
|
126
|
+
/* APS-28: start and end as sides, by the layout direction. */
|
|
127
|
+
:where(tanrei-app-shell):dir(rtl) {
|
|
128
|
+
--_aps-inset-start: env(safe-area-inset-right, 0px);
|
|
129
|
+
--_aps-inset-end: env(safe-area-inset-left, 0px);
|
|
130
|
+
}
|
|
131
|
+
/* APS-8: `main-width="full"` takes all the room inside the gutters (APS-29: any other value is contained). */
|
|
132
|
+
:where(tanrei-app-shell[main-width='full']) {
|
|
133
|
+
--_aps-centring: 0px;
|
|
134
|
+
}
|
|
135
|
+
:where(tanrei-app-shell[separation='divider']) {
|
|
136
|
+
--_aps-separation: divider;
|
|
137
|
+
}
|
|
138
|
+
:where(tanrei-app-shell[separation='gap']) {
|
|
139
|
+
--_aps-separation: gap;
|
|
140
|
+
}
|
|
141
|
+
/* APS-6: a compact window with a navigation region shows the menu button. */
|
|
142
|
+
:where(tanrei-app-shell):where(:has(> [slot='navigation'])) {
|
|
143
|
+
--_aps-menu: shown;
|
|
144
|
+
}
|
|
145
|
+
/* APS-13: the navigation bar lays itself out over the bottom inset (NVB-18); the frame adds none under it. */
|
|
146
|
+
:where(tanrei-app-shell):where(:has(> [slot='navigation-bar'])) {
|
|
147
|
+
--_aps-inset-bottom: 0px;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/* ── The regions (APS-1): each in its place; one that is absent has no box, so it takes no room ─────────────── */
|
|
151
|
+
:where(tanrei-app-shell) > :where([slot='announcement']) {
|
|
152
|
+
/* APS-12: across the frame's whole width above the header, with no inset of its own. */
|
|
153
|
+
grid-area: announcement / frame-start / auto / frame-end;
|
|
154
|
+
min-inline-size: 0;
|
|
155
|
+
}
|
|
156
|
+
:where(tanrei-app-shell) > :where([slot='header']) {
|
|
157
|
+
grid-area: header / frame-start / auto / frame-end;
|
|
158
|
+
min-inline-size: 0;
|
|
159
|
+
/* APS-16: kept at the top of the window while the page scrolls under it; no fill, elevation or edge of the frame's. */
|
|
160
|
+
position: sticky;
|
|
161
|
+
inset-block-start: 0;
|
|
162
|
+
z-index: 1;
|
|
163
|
+
}
|
|
164
|
+
:where(tanrei-app-shell[header-position='static'], tanrei-app-shell[scroll='main']) > :where([slot='header']) {
|
|
165
|
+
position: static;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/* APS-4, APS-5: the navigation. In a compact window it has no place in the layout: a navigation drawer presents
|
|
169
|
+
itself over the content (its own modal presentation, which has no box here), and anything else is not shown. */
|
|
170
|
+
:where(tanrei-app-shell) > :where([slot='navigation']) {
|
|
171
|
+
grid-area: before / frame-start / footer / main-start;
|
|
172
|
+
/* APS-5: as wide as what it holds draws itself, and never wider than the window less a touch target. */
|
|
173
|
+
max-inline-size: calc(100vw - var(--tanrei-sys-target-touch));
|
|
174
|
+
/* APS-5: in view while the page scrolls, from below what is kept over the top to the window's bottom edge, and
|
|
175
|
+
never past the row: it adds nothing to the row's height (see HOW IT IS WRITTEN). */
|
|
176
|
+
position: sticky;
|
|
177
|
+
inset-block-start: var(--_aps-top);
|
|
178
|
+
align-self: start;
|
|
179
|
+
block-size: 0;
|
|
180
|
+
min-block-size: min(100%, var(--_aps-view));
|
|
181
|
+
/* APS-11: …and it stops staying in view where the footer begins (the footer's height, as the element measures it). */
|
|
182
|
+
margin-block-end: var(--_aps-footer, 0px);
|
|
183
|
+
}
|
|
184
|
+
/* APS-5: what is not a navigation drawer scrolls inside that height by itself (a drawer does: NVD-61). */
|
|
185
|
+
:where(tanrei-app-shell) > :where([slot='navigation']:not(tanrei-navigation-drawer)) {
|
|
186
|
+
overflow: auto;
|
|
187
|
+
overscroll-behavior: contain;
|
|
188
|
+
}
|
|
189
|
+
@media (width < 64rem) {
|
|
190
|
+
/* APS-4: what cannot present itself over the content is not shown, and so is kept from focus and from assistive
|
|
191
|
+
technology. APS-24: a drawer that is not defined yet presents nothing; one with a collapsed form keeps its
|
|
192
|
+
column's place in a medium window (below). */
|
|
193
|
+
:where(tanrei-app-shell) > :where([slot='navigation']:not(tanrei-navigation-drawer)),
|
|
194
|
+
:where(tanrei-app-shell) > :where(tanrei-navigation-drawer[slot='navigation']:not(:defined, [collapsible])) {
|
|
195
|
+
display: none;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
@media (width < 37.5rem) {
|
|
199
|
+
:where(tanrei-app-shell) > :where(tanrei-navigation-drawer[slot='navigation']:not(:defined)) {
|
|
200
|
+
display: none;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/* APS-8: the main region, inset by the gutter of the class and by main.padding-block, its content no wider than
|
|
205
|
+
main.max-width and centred while contained. Never wider than the room the row leaves it. */
|
|
206
|
+
:where(tanrei-app-shell) > :where(main, [role='main']) {
|
|
207
|
+
grid-area: main / main-start / auto / frame-end;
|
|
208
|
+
box-sizing: border-box;
|
|
209
|
+
min-inline-size: 0;
|
|
210
|
+
padding-block: var(--tanrei-comp-app-shell-main-padding-block);
|
|
211
|
+
padding-inline: max(var(--_aps-inline-start), var(--_aps-centring)) max(var(--_aps-inline-end), var(--_aps-centring));
|
|
212
|
+
}
|
|
213
|
+
/* APS-20: the main region takes focus when the skip link is followed; it is not a control, and draws no ring. */
|
|
214
|
+
:where(tanrei-app-shell) > :where(main:focus, [role='main']:focus) {
|
|
215
|
+
outline: none;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/* APS-9: the aside, in the main region's column while the window is compact or medium: above the main content
|
|
219
|
+
(`aside-order="before"`) or below it, aside.gap from it, with the main region's gutters, width and centring.
|
|
220
|
+
The space between the two is the aside's: it reaches into the main region's own padding by a margin, so the
|
|
221
|
+
main region is the same with and without an aside. APS-18: the line stands in the middle of that space. */
|
|
222
|
+
:where(tanrei-app-shell) > :where([slot='aside']) {
|
|
223
|
+
grid-area: after / main-start / auto / frame-end;
|
|
224
|
+
box-sizing: border-box;
|
|
225
|
+
min-inline-size: 0;
|
|
226
|
+
margin-inline: max(var(--_aps-inline-start), var(--_aps-centring)) max(var(--_aps-inline-end), var(--_aps-centring));
|
|
227
|
+
margin-block-start: calc((var(--tanrei-comp-app-shell-aside-gap) - var(--_aps-line)) / 2 - var(--tanrei-comp-app-shell-main-padding-block));
|
|
228
|
+
border-block-start: var(--_aps-line) solid var(--_aps-line-color);
|
|
229
|
+
padding-block: calc((var(--tanrei-comp-app-shell-aside-gap) - var(--_aps-line)) / 2) var(--tanrei-comp-app-shell-main-padding-block);
|
|
230
|
+
}
|
|
231
|
+
:where(tanrei-app-shell[aside-order='before']) > :where([slot='aside']) {
|
|
232
|
+
grid-row: before;
|
|
233
|
+
margin-block: 0 calc((var(--tanrei-comp-app-shell-aside-gap) - var(--_aps-line)) / 2 - var(--tanrei-comp-app-shell-main-padding-block));
|
|
234
|
+
border-block-start: 0;
|
|
235
|
+
border-block-end: var(--_aps-line) solid var(--_aps-line-color);
|
|
236
|
+
padding-block: var(--tanrei-comp-app-shell-main-padding-block) calc((var(--tanrei-comp-app-shell-aside-gap) - var(--_aps-line)) / 2);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/* APS-11: the footer, after the row, across the frame's whole width; the frame lays out nothing inside it. */
|
|
240
|
+
:where(tanrei-app-shell) > :where([slot='footer']) {
|
|
241
|
+
grid-area: footer / frame-start / auto / frame-end;
|
|
242
|
+
box-sizing: border-box;
|
|
243
|
+
min-inline-size: 0;
|
|
244
|
+
border-block-start: var(--_aps-line) solid var(--_aps-line-color);
|
|
245
|
+
padding-block: calc(var(--tanrei-comp-app-shell-footer-padding-block) - var(--_aps-line)) var(--tanrei-comp-app-shell-footer-padding-block);
|
|
246
|
+
padding-inline: var(--_aps-inline-start) var(--_aps-inline-end);
|
|
247
|
+
/* A browser keeps a sticky part inside the frame, not inside its row: until the element has measured the footer
|
|
248
|
+
(above), the footer is drawn over the end of the navigation and the aside, on the frame's own fill. */
|
|
249
|
+
position: relative;
|
|
250
|
+
z-index: 1;
|
|
251
|
+
background-color: var(--tanrei-comp-app-shell-container-color);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/* APS-13: the navigation bar, at the bottom edge of a compact window, in view while the page scrolls; the page
|
|
255
|
+
ends above it. */
|
|
256
|
+
:where(tanrei-app-shell) > :where([slot='navigation-bar']) {
|
|
257
|
+
grid-area: bar / frame-start / auto / frame-end;
|
|
258
|
+
min-inline-size: 0;
|
|
259
|
+
position: sticky;
|
|
260
|
+
inset-block-end: 0;
|
|
261
|
+
z-index: 1;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/* ── The menu button (APS-6): shown only while the navigation has no place in the layout; never restyled ────── */
|
|
265
|
+
@container style(--_aps-menu: hidden) {
|
|
266
|
+
:where(tanrei-app-shell) :where([data-app-shell-menu]) {
|
|
267
|
+
display: none;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
/* …and where the browser has no style queries, by the element's own word. */
|
|
271
|
+
:where(tanrei-app-shell[data-menu='hidden']) :where([data-app-shell-menu]) {
|
|
272
|
+
display: none;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
/* ── The skip link (APS-19): nothing of it is drawn until the keyboard reaches it — clipped, never removed, so
|
|
276
|
+
it stays the first stop and stays exposed — and then in a small raised box at the top start corner of the
|
|
277
|
+
window, inside the insets, above every region and every sticky part. The box is the anchor's own `::after`,
|
|
278
|
+
under its text: the Link keeps its color, its underline, its focus ring and its states (LNK-1). Nothing moves.
|
|
279
|
+
(These rules have an attribute's specificity, not none: the link's own stylesheet, wherever the page loads it,
|
|
280
|
+
says `position: relative` of the same anchor.) */
|
|
281
|
+
:where(tanrei-app-shell) > [slot='skip-link'] {
|
|
282
|
+
position: absolute;
|
|
283
|
+
overflow: hidden;
|
|
284
|
+
inline-size: var(--tanrei-sys-border-hairline);
|
|
285
|
+
block-size: var(--tanrei-sys-border-hairline);
|
|
286
|
+
clip-path: inset(50%);
|
|
287
|
+
white-space: nowrap;
|
|
288
|
+
}
|
|
289
|
+
:where(tanrei-app-shell) > [slot='skip-link']:focus-visible {
|
|
290
|
+
position: fixed;
|
|
291
|
+
z-index: 2;
|
|
292
|
+
overflow: visible;
|
|
293
|
+
inset-block-start: calc(env(safe-area-inset-top, 0px) + var(--tanrei-comp-app-shell-skip-link-offset) + var(--tanrei-comp-app-shell-skip-link-container-padding-block));
|
|
294
|
+
inset-inline-start: calc(var(--_aps-inset-start) + var(--tanrei-comp-app-shell-skip-link-offset) + var(--tanrei-comp-app-shell-skip-link-container-padding-inline));
|
|
295
|
+
inline-size: auto;
|
|
296
|
+
block-size: auto;
|
|
297
|
+
max-inline-size: calc(100vw - 2 * (var(--tanrei-comp-app-shell-skip-link-offset) + var(--tanrei-comp-app-shell-skip-link-container-padding-inline)) - var(--_aps-inset-start) - var(--_aps-inset-end));
|
|
298
|
+
clip-path: none;
|
|
299
|
+
white-space: normal;
|
|
300
|
+
font: var(--tanrei-comp-app-shell-skip-link-label-typescale-font);
|
|
301
|
+
letter-spacing: var(--tanrei-comp-app-shell-skip-link-label-typescale-letter-spacing);
|
|
302
|
+
}
|
|
303
|
+
:where(tanrei-app-shell) > [slot='skip-link']:focus-visible::after {
|
|
304
|
+
--tanrei-corner-pill: 0;
|
|
305
|
+
}
|
|
306
|
+
:where(tanrei-app-shell) > [slot='skip-link']:focus-visible::after {
|
|
307
|
+
--_corner-scale: 1;
|
|
308
|
+
border-radius: calc(var(--tanrei-corner-radius) * var(--_corner-scale));
|
|
309
|
+
}
|
|
310
|
+
@supports (corner-shape: superellipse(log(2, 2))) {
|
|
311
|
+
:where(tanrei-app-shell) > [slot='skip-link']:focus-visible::after {
|
|
312
|
+
--_corner-smoothing: calc(var(--tanrei-sys-shape-corner-smoothing, 0) * (1 - var(--tanrei-corner-pill, 0)));
|
|
313
|
+
--_corner-scale: calc(1 + 0.4 * var(--_corner-smoothing));
|
|
314
|
+
corner-shape: superellipse(log(calc(2 + var(--_corner-smoothing)), 2));
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
:where(tanrei-app-shell) > [slot='skip-link']:focus-visible::after {
|
|
318
|
+
content: '';
|
|
319
|
+
position: absolute;
|
|
320
|
+
z-index: -1;
|
|
321
|
+
inset-block: calc(-1 * var(--tanrei-comp-app-shell-skip-link-container-padding-block));
|
|
322
|
+
inset-inline: calc(-1 * var(--tanrei-comp-app-shell-skip-link-container-padding-inline));
|
|
323
|
+
box-sizing: border-box;
|
|
324
|
+
background-color: var(--tanrei-comp-app-shell-skip-link-container-color);
|
|
325
|
+
box-shadow: var(--tanrei-comp-app-shell-skip-link-container-elevation);
|
|
326
|
+
/* The corners, eased by sys.shape.corner-smoothing (the rule above, written by the build). */
|
|
327
|
+
--tanrei-corner-radius: var(--tanrei-comp-app-shell-skip-link-container-shape);
|
|
328
|
+
--tanrei-corner-pill: var(--tanrei-comp-app-shell-skip-link-container-shape-pill, 0);
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
/* ── APS-2: a medium window ─────────────────────────────────────────────────────────────────────────────────── */
|
|
332
|
+
@media (width >= 37.5rem) {
|
|
333
|
+
:where(tanrei-app-shell) {
|
|
334
|
+
--tanrei-app-shell-window-class: medium;
|
|
335
|
+
--_aps-gutter: var(--tanrei-comp-app-shell-gutter-medium);
|
|
336
|
+
/* APS-13: the navigation bar is not shown, so the frame ends above the bottom inset itself. */
|
|
337
|
+
--_aps-inset-bottom: env(safe-area-inset-bottom, 0px);
|
|
338
|
+
}
|
|
339
|
+
/* APS-4, APS-6: a navigation with a collapsed form stands as its column, and the menu button is the drawer's
|
|
340
|
+
own (NVD-37); any other is still presented over the content from the menu button. */
|
|
341
|
+
:where(tanrei-app-shell):where(:has(> [slot='navigation'][collapsible])) {
|
|
342
|
+
--_aps-menu: hidden;
|
|
343
|
+
}
|
|
344
|
+
/* APS-24: the column of a drawer that is not defined yet keeps its place. */
|
|
345
|
+
:where(tanrei-app-shell) > :where(tanrei-navigation-drawer[slot='navigation'][collapsible]:not(:defined)) {
|
|
346
|
+
inline-size: var(--tanrei-comp-navigation-drawer-collapsed-container-width);
|
|
347
|
+
}
|
|
348
|
+
/* APS-13: not shown, kept from focus and from assistive technology, and given no space. */
|
|
349
|
+
:where(tanrei-app-shell) > :where([slot='navigation-bar']) {
|
|
350
|
+
display: none;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
/* ── APS-2: an expanded window ──────────────────────────────────────────────────────────────────────────────── */
|
|
355
|
+
@media (width >= 64rem) {
|
|
356
|
+
:where(tanrei-app-shell) {
|
|
357
|
+
--tanrei-app-shell-window-class: expanded;
|
|
358
|
+
--_aps-gutter: var(--tanrei-comp-app-shell-gutter-expanded);
|
|
359
|
+
}
|
|
360
|
+
/* APS-4, APS-6: the navigation stands beside the main region, whatever it is, and no menu button is shown. */
|
|
361
|
+
:where(tanrei-app-shell):where(:has(> [slot='navigation'])) {
|
|
362
|
+
--_aps-menu: hidden;
|
|
363
|
+
}
|
|
364
|
+
/* APS-24: a drawer that is not defined yet keeps its place. */
|
|
365
|
+
:where(tanrei-app-shell) > :where(tanrei-navigation-drawer[slot='navigation']:not(:defined)) {
|
|
366
|
+
inline-size: var(--tanrei-comp-navigation-drawer-container-width);
|
|
367
|
+
}
|
|
368
|
+
:where(tanrei-app-shell) > :where([slot='aside']:not(tanrei-side-sheet)) {
|
|
369
|
+
inline-size: var(--tanrei-comp-app-shell-aside-width);
|
|
370
|
+
}
|
|
371
|
+
/* APS-9: the aside beside the main region at the end edge, aside.width wide, its first line level with the main
|
|
372
|
+
content's, in view while the page scrolls and scrolling inside that height by itself. APS-18: its line is at
|
|
373
|
+
its start edge. */
|
|
374
|
+
:where(tanrei-app-shell) > :where(main, [role='main']) {
|
|
375
|
+
grid-column: main-start / aside-start;
|
|
376
|
+
}
|
|
377
|
+
:where(tanrei-app-shell) > :where([slot='aside']) {
|
|
378
|
+
grid-area: before / aside-start / footer / frame-end;
|
|
379
|
+
margin: 0;
|
|
380
|
+
border-block: 0;
|
|
381
|
+
border-inline-start: var(--_aps-line) solid var(--_aps-line-color);
|
|
382
|
+
padding-block: var(--tanrei-comp-app-shell-main-padding-block);
|
|
383
|
+
padding-inline: calc(var(--tanrei-comp-app-shell-aside-padding-inline) - var(--_aps-line)) max(var(--tanrei-comp-app-shell-aside-padding-inline), var(--_aps-inset-end));
|
|
384
|
+
position: sticky;
|
|
385
|
+
inset-block-start: var(--_aps-top);
|
|
386
|
+
align-self: start;
|
|
387
|
+
block-size: 0;
|
|
388
|
+
min-block-size: min(100%, var(--_aps-view));
|
|
389
|
+
margin-block-end: var(--_aps-footer, 0px);
|
|
390
|
+
overflow: auto;
|
|
391
|
+
overscroll-behavior: contain;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
/* ── APS-15: `scroll="main"` — the frame is exactly the window, and the main region is its one scrolling view ── */
|
|
395
|
+
:where(tanrei-app-shell[scroll='main']) {
|
|
396
|
+
/* Nothing is kept over the top of the scrolling view: the header stands above it. */
|
|
397
|
+
--_aps-top: 0px;
|
|
398
|
+
block-size: calc(100vh - env(keyboard-inset-height, 0px));
|
|
399
|
+
block-size: calc(100dvh - env(keyboard-inset-height, 0px));
|
|
400
|
+
min-block-size: 0;
|
|
401
|
+
overflow: clip;
|
|
402
|
+
}
|
|
403
|
+
:where(tanrei-app-shell[scroll='main']) > :where(main, [role='main']) {
|
|
404
|
+
min-block-size: 0;
|
|
405
|
+
overflow: auto;
|
|
406
|
+
overscroll-behavior: contain;
|
|
407
|
+
}
|
|
408
|
+
/* The navigation and an aside beside the main region are as tall as the row, and scroll inside it. */
|
|
409
|
+
:where(tanrei-app-shell[scroll='main']) > :where([slot='navigation']) {
|
|
410
|
+
position: static;
|
|
411
|
+
min-block-size: 100%;
|
|
412
|
+
margin-block-end: 0;
|
|
413
|
+
}
|
|
414
|
+
/* The navigation bar and the footer stay in place (APS-11, APS-13). */
|
|
415
|
+
:where(tanrei-app-shell[scroll='main']) > :where([slot='navigation-bar']) {
|
|
416
|
+
position: static;
|
|
417
|
+
}
|
|
418
|
+
/* An aside above or below the main region keeps its place beside the scrolling view; its space is its own. */
|
|
419
|
+
:where(tanrei-app-shell[scroll='main']) > :where([slot='aside']) {
|
|
420
|
+
margin-block: 0;
|
|
421
|
+
padding-block: calc((var(--tanrei-comp-app-shell-aside-gap) - var(--_aps-line)) / 2);
|
|
422
|
+
}
|
|
423
|
+
@media (width >= 64rem) {
|
|
424
|
+
:where(tanrei-app-shell[scroll='main']) > :where([slot='aside']) {
|
|
425
|
+
position: static;
|
|
426
|
+
min-block-size: 100%;
|
|
427
|
+
margin-block-end: 0;
|
|
428
|
+
padding-block: var(--tanrei-comp-app-shell-main-padding-block);
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
/* ── APS-18: gap — no line, and the same spaces. Read from the cascade by a style query; `data-separation` is
|
|
433
|
+
the element's word for it where the browser has none ───────────────────────────────────────────────────────── */
|
|
434
|
+
@container style(--_aps-separation: gap) {
|
|
435
|
+
:where(tanrei-app-shell) > :where([slot='aside'], [slot='footer']) {
|
|
436
|
+
--_aps-line: 0px;
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
:where(tanrei-app-shell[data-separation='gap']) > :where([slot='aside'], [slot='footer']) {
|
|
440
|
+
--_aps-line: 0px;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
/* ── APS-10: a side sheet in the aside takes its own width and draws its own edge: no width, inset or line of the
|
|
444
|
+
frame's, in any class. One that presents itself over the content has no box here, and so takes no space ────── */
|
|
445
|
+
:where(tanrei-app-shell) > :where(tanrei-side-sheet[slot='aside']) {
|
|
446
|
+
margin: 0;
|
|
447
|
+
border: 0;
|
|
448
|
+
padding: 0;
|
|
449
|
+
overflow: visible;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
/* ── APS-17: the scroll offset. Until the element has measured the header, a small app bar's height while the
|
|
453
|
+
header is sticky; the page's scrolling view keeps that much clear above an anchor's target and a focused
|
|
454
|
+
element, and the navigation bar's height below ────────────────────────────────────────────────────────────── */
|
|
455
|
+
:where(:root):where(:has(tanrei-app-shell:not([scroll='main'], [header-position='static']) > [slot='header'])) {
|
|
456
|
+
--tanrei-app-shell-scroll-offset: var(--tanrei-comp-app-bar-container-height-small);
|
|
457
|
+
scroll-padding-block-start: var(--tanrei-app-shell-scroll-offset);
|
|
458
|
+
}
|
|
459
|
+
@media (width < 37.5rem) {
|
|
460
|
+
:where(:root):where(:has(tanrei-app-shell:not([scroll='main']) > [slot='navigation-bar'])) {
|
|
461
|
+
--tanrei-app-shell-scroll-offset-end: var(--tanrei-comp-navigation-bar-container-height);
|
|
462
|
+
scroll-padding-block-end: var(--tanrei-app-shell-scroll-offset-end);
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
/* ── APS-26: forced colors — the system's colors fill the frame; the lines and the skip link's edge are the
|
|
467
|
+
system's text color ──────────────────────────────────────────────────────────────────────────────────────── */
|
|
468
|
+
@media (forced-colors: active) {
|
|
469
|
+
:where(tanrei-app-shell) {
|
|
470
|
+
--_aps-line-color: CanvasText;
|
|
471
|
+
background-color: Canvas;
|
|
472
|
+
color: CanvasText;
|
|
473
|
+
}
|
|
474
|
+
:where(tanrei-app-shell) > :where([slot='footer']) {
|
|
475
|
+
background-color: Canvas;
|
|
476
|
+
}
|
|
477
|
+
:where(tanrei-app-shell) > [slot='skip-link']:focus-visible::after {
|
|
478
|
+
border: var(--tanrei-comp-app-shell-outline-width) solid CanvasText;
|
|
479
|
+
background-color: Canvas;
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
/* ── Print: the content, not the frame's sticky parts ───────────────────────────────────────────────────────── */
|
|
484
|
+
@media print {
|
|
485
|
+
:where(tanrei-app-shell) > :where([slot='header'], [slot='navigation'], [slot='aside'], [slot='navigation-bar']) {
|
|
486
|
+
position: static;
|
|
487
|
+
}
|
|
488
|
+
:where(tanrei-app-shell) > [slot='skip-link'],
|
|
489
|
+
:where(tanrei-app-shell) > :where([slot='navigation'], [slot='navigation-bar']) {
|
|
490
|
+
display: none;
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
}
|
package/dist/avatar.css
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Avatar before its element is defined (specs/avatar.spec.json; AVT-1, AVT-16): `<tanrei-avatar>` draws everything in
|
|
3
|
+
* its shadow root, so a page that is rendered on a server shows nothing in its place until the script runs — and would
|
|
4
|
+
* move when it does. This stylesheet gives that first paint the box the element will have:
|
|
5
|
+
*
|
|
6
|
+
* <tanrei-avatar decorative size="small" initials="AL" src="/people/ada.jpg"></tanrei-avatar> Ada Lovelace
|
|
7
|
+
*
|
|
8
|
+
* - an inline box of the side of its `size`, with the corners of its `shape`, in the container color;
|
|
9
|
+
* - nothing inside it: no picture, no initials, no glyph (the name of a glyph in the `icon` slot is not shown as text)
|
|
10
|
+
* and no name — which is why a byline writes the name as text beside a decorative avatar;
|
|
11
|
+
* - a `<tanrei-avatar-group>` as a row of those boxes, each over the one before it by the overlap of the group's size,
|
|
12
|
+
* with the gap around each.
|
|
13
|
+
*
|
|
14
|
+
* What it cannot give: the corner smoothing (a square is drawn with circular corners until the element is defined;
|
|
15
|
+
* nothing moves), a size or a shape a design system added (drawn as the default), and a group's `max` — every member
|
|
16
|
+
* given is a box until the element counts them, so a group that will draw an overflow box is wider before than after.
|
|
17
|
+
* A page that must not move gives a group the members it will draw, and the rest as `total`.
|
|
18
|
+
*
|
|
19
|
+
* Every value is a `--tanrei-comp-avatar-*` token. Every selector has no specificity (`:where()`), and none matches
|
|
20
|
+
* once the element is defined.
|
|
21
|
+
*/
|
|
22
|
+
@layer tanrei.components {
|
|
23
|
+
:where(tanrei-avatar:not(:defined)) {
|
|
24
|
+
display: inline-block;
|
|
25
|
+
flex: none;
|
|
26
|
+
box-sizing: border-box;
|
|
27
|
+
vertical-align: middle;
|
|
28
|
+
inline-size: var(--tanrei-comp-avatar-container-size-medium);
|
|
29
|
+
block-size: var(--tanrei-comp-avatar-container-size-medium);
|
|
30
|
+
border-radius: var(--tanrei-comp-avatar-container-shape-circle);
|
|
31
|
+
background: var(--tanrei-comp-avatar-container-color);
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
}
|
|
34
|
+
:where(tanrei-avatar[size='small']:not(:defined), tanrei-avatar-group[size='small']:not(:defined) > tanrei-avatar) {
|
|
35
|
+
inline-size: var(--tanrei-comp-avatar-container-size-small);
|
|
36
|
+
block-size: var(--tanrei-comp-avatar-container-size-small);
|
|
37
|
+
}
|
|
38
|
+
:where(tanrei-avatar[size='large']:not(:defined), tanrei-avatar-group[size='large']:not(:defined) > tanrei-avatar) {
|
|
39
|
+
inline-size: var(--tanrei-comp-avatar-container-size-large);
|
|
40
|
+
block-size: var(--tanrei-comp-avatar-container-size-large);
|
|
41
|
+
}
|
|
42
|
+
:where(tanrei-avatar[shape='square']:not(:defined), tanrei-avatar-group[shape='square']:not(:defined) > tanrei-avatar) {
|
|
43
|
+
border-radius: var(--tanrei-comp-avatar-container-shape-square);
|
|
44
|
+
}
|
|
45
|
+
:where(tanrei-avatar[hidden]:not(:defined), tanrei-avatar-group[hidden]:not(:defined)) {
|
|
46
|
+
display: none;
|
|
47
|
+
}
|
|
48
|
+
/* A glyph is a name until its element draws it: the name is not shown. */
|
|
49
|
+
:where(tanrei-avatar:not(:defined)) > :where(*) {
|
|
50
|
+
display: none;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* The group: one row that does not wrap. Every box is drawn back by the overlap and the row starts that far in. */
|
|
54
|
+
:where(tanrei-avatar-group:not(:defined)) {
|
|
55
|
+
display: inline-flex;
|
|
56
|
+
flex: none;
|
|
57
|
+
vertical-align: middle;
|
|
58
|
+
padding-inline-start: var(--tanrei-comp-avatar-group-overlap-medium);
|
|
59
|
+
}
|
|
60
|
+
:where(tanrei-avatar-group:not(:defined)) > :where(tanrei-avatar) {
|
|
61
|
+
margin-inline-start: calc(-1 * var(--tanrei-comp-avatar-group-overlap-medium));
|
|
62
|
+
box-shadow: 0 0 0 var(--tanrei-comp-avatar-group-outline-width) var(--tanrei-comp-avatar-group-outline-color);
|
|
63
|
+
}
|
|
64
|
+
:where(tanrei-avatar-group[size='small']:not(:defined)) {
|
|
65
|
+
padding-inline-start: var(--tanrei-comp-avatar-group-overlap-small);
|
|
66
|
+
}
|
|
67
|
+
:where(tanrei-avatar-group[size='small']:not(:defined)) > :where(tanrei-avatar) {
|
|
68
|
+
margin-inline-start: calc(-1 * var(--tanrei-comp-avatar-group-overlap-small));
|
|
69
|
+
}
|
|
70
|
+
:where(tanrei-avatar-group[size='large']:not(:defined)) {
|
|
71
|
+
padding-inline-start: var(--tanrei-comp-avatar-group-overlap-large);
|
|
72
|
+
}
|
|
73
|
+
:where(tanrei-avatar-group[size='large']:not(:defined)) > :where(tanrei-avatar) {
|
|
74
|
+
margin-inline-start: calc(-1 * var(--tanrei-comp-avatar-group-overlap-large));
|
|
75
|
+
}
|
|
76
|
+
/* What is not a member is not drawn by the group. */
|
|
77
|
+
:where(tanrei-avatar-group:not(:defined)) > :where(:not(tanrei-avatar)) {
|
|
78
|
+
display: none;
|
|
79
|
+
}
|
|
80
|
+
}
|