@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,182 @@
|
|
|
1
|
+
export interface TanreiButtonSizeRegistry {
|
|
2
|
+
small: true;
|
|
3
|
+
medium: true;
|
|
4
|
+
large: true;
|
|
5
|
+
}
|
|
6
|
+
export interface TanreiButtonVariantRegistry {
|
|
7
|
+
filled: true;
|
|
8
|
+
tonal: true;
|
|
9
|
+
elevated: true;
|
|
10
|
+
outlined: true;
|
|
11
|
+
text: true;
|
|
12
|
+
}
|
|
13
|
+
export interface TanreiCardVariantRegistry {
|
|
14
|
+
elevated: true;
|
|
15
|
+
filled: true;
|
|
16
|
+
outlined: true;
|
|
17
|
+
}
|
|
18
|
+
export interface TanreiProgressIndicatorSizeRegistry {
|
|
19
|
+
small: true;
|
|
20
|
+
medium: true;
|
|
21
|
+
large: true;
|
|
22
|
+
}
|
|
23
|
+
export interface TanreiLoadingIndicatorSizeRegistry {
|
|
24
|
+
small: true;
|
|
25
|
+
medium: true;
|
|
26
|
+
large: true;
|
|
27
|
+
}
|
|
28
|
+
export interface TanreiInputBoxSizeRegistry {
|
|
29
|
+
small: true;
|
|
30
|
+
medium: true;
|
|
31
|
+
large: true;
|
|
32
|
+
}
|
|
33
|
+
export interface TanreiInputBoxVariantRegistry {
|
|
34
|
+
stacked: true;
|
|
35
|
+
filled: true;
|
|
36
|
+
outlined: true;
|
|
37
|
+
}
|
|
38
|
+
export interface TanreiFabMenuSizeRegistry {
|
|
39
|
+
small: true;
|
|
40
|
+
medium: true;
|
|
41
|
+
large: true;
|
|
42
|
+
}
|
|
43
|
+
export interface TanreiFabMenuVariantRegistry {
|
|
44
|
+
filled: true;
|
|
45
|
+
tonal: true;
|
|
46
|
+
surface: true;
|
|
47
|
+
}
|
|
48
|
+
export interface TanreiMainActionButtonSizeRegistry {
|
|
49
|
+
small: true;
|
|
50
|
+
medium: true;
|
|
51
|
+
large: true;
|
|
52
|
+
}
|
|
53
|
+
export interface TanreiMainActionButtonVariantRegistry {
|
|
54
|
+
filled: true;
|
|
55
|
+
tonal: true;
|
|
56
|
+
surface: true;
|
|
57
|
+
}
|
|
58
|
+
export interface TanreiChipSizeRegistry {
|
|
59
|
+
small: true;
|
|
60
|
+
medium: true;
|
|
61
|
+
}
|
|
62
|
+
export interface TanreiChipVariantRegistry {
|
|
63
|
+
outlined: true;
|
|
64
|
+
elevated: true;
|
|
65
|
+
}
|
|
66
|
+
export interface TanreiSliderSizeRegistry {
|
|
67
|
+
small: true;
|
|
68
|
+
medium: true;
|
|
69
|
+
large: true;
|
|
70
|
+
}
|
|
71
|
+
export interface TanreiButtonWithMenuSizeRegistry {
|
|
72
|
+
small: true;
|
|
73
|
+
medium: true;
|
|
74
|
+
large: true;
|
|
75
|
+
}
|
|
76
|
+
export interface TanreiButtonWithMenuVariantRegistry {
|
|
77
|
+
filled: true;
|
|
78
|
+
tonal: true;
|
|
79
|
+
elevated: true;
|
|
80
|
+
outlined: true;
|
|
81
|
+
}
|
|
82
|
+
export interface TanreiKeyboardShortcutSizeRegistry {
|
|
83
|
+
small: true;
|
|
84
|
+
medium: true;
|
|
85
|
+
}
|
|
86
|
+
export interface TanreiKeyboardShortcutVariantRegistry {
|
|
87
|
+
keycap: true;
|
|
88
|
+
plain: true;
|
|
89
|
+
}
|
|
90
|
+
export interface TanreiTagSizeRegistry {
|
|
91
|
+
small: true;
|
|
92
|
+
medium: true;
|
|
93
|
+
}
|
|
94
|
+
export interface TanreiTagVariantRegistry {
|
|
95
|
+
tonal: true;
|
|
96
|
+
outlined: true;
|
|
97
|
+
filled: true;
|
|
98
|
+
}
|
|
99
|
+
export interface TanreiCalloutSizeRegistry {
|
|
100
|
+
medium: true;
|
|
101
|
+
large: true;
|
|
102
|
+
}
|
|
103
|
+
export interface TanreiCalloutVariantRegistry {
|
|
104
|
+
tonal: true;
|
|
105
|
+
outlined: true;
|
|
106
|
+
}
|
|
107
|
+
export interface TanreiEmptyStateSizeRegistry {
|
|
108
|
+
medium: true;
|
|
109
|
+
large: true;
|
|
110
|
+
}
|
|
111
|
+
export interface TanreiTableDensityRegistry {
|
|
112
|
+
regular: true;
|
|
113
|
+
compact: true;
|
|
114
|
+
}
|
|
115
|
+
export interface TanreiCodeBlockSizeRegistry {
|
|
116
|
+
small: true;
|
|
117
|
+
medium: true;
|
|
118
|
+
}
|
|
119
|
+
export interface TanreiCodeBlockVariantRegistry {
|
|
120
|
+
filled: true;
|
|
121
|
+
outlined: true;
|
|
122
|
+
}
|
|
123
|
+
export interface TanreiDescriptionListDensityRegistry {
|
|
124
|
+
regular: true;
|
|
125
|
+
compact: true;
|
|
126
|
+
}
|
|
127
|
+
export interface TanreiFigureVariantRegistry {
|
|
128
|
+
outlined: true;
|
|
129
|
+
filled: true;
|
|
130
|
+
plain: true;
|
|
131
|
+
}
|
|
132
|
+
export interface TanreiLinkCardVariantRegistry {
|
|
133
|
+
outlined: true;
|
|
134
|
+
filled: true;
|
|
135
|
+
}
|
|
136
|
+
export interface TanreiAccordionVariantRegistry {
|
|
137
|
+
plain: true;
|
|
138
|
+
outlined: true;
|
|
139
|
+
}
|
|
140
|
+
export interface TanreiAccordionDensityRegistry {
|
|
141
|
+
regular: true;
|
|
142
|
+
compact: true;
|
|
143
|
+
}
|
|
144
|
+
export interface TanreiTreeViewDensityRegistry {
|
|
145
|
+
regular: true;
|
|
146
|
+
compact: true;
|
|
147
|
+
}
|
|
148
|
+
export interface TanreiPageHeaderSizeRegistry {
|
|
149
|
+
small: true;
|
|
150
|
+
medium: true;
|
|
151
|
+
large: true;
|
|
152
|
+
}
|
|
153
|
+
export interface TanreiTableOfContentsDensityRegistry {
|
|
154
|
+
regular: true;
|
|
155
|
+
compact: true;
|
|
156
|
+
}
|
|
157
|
+
export interface TanreiFieldGroupSpacingRegistry {
|
|
158
|
+
controls: true;
|
|
159
|
+
fields: true;
|
|
160
|
+
}
|
|
161
|
+
export interface TanreiTagGroupSpacingRegistry {
|
|
162
|
+
tags: true;
|
|
163
|
+
chips: true;
|
|
164
|
+
}
|
|
165
|
+
export interface TanreiAvatarSizeRegistry {
|
|
166
|
+
small: true;
|
|
167
|
+
medium: true;
|
|
168
|
+
large: true;
|
|
169
|
+
}
|
|
170
|
+
export interface TanreiAvatarShapeRegistry {
|
|
171
|
+
circle: true;
|
|
172
|
+
square: true;
|
|
173
|
+
}
|
|
174
|
+
export interface TanreiTabsVariantRegistry {
|
|
175
|
+
primary: true;
|
|
176
|
+
secondary: true;
|
|
177
|
+
tonal: true;
|
|
178
|
+
}
|
|
179
|
+
export interface TanreiTabsSizeRegistry {
|
|
180
|
+
small: true;
|
|
181
|
+
medium: true;
|
|
182
|
+
}
|
package/dist/registry.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":""}
|
package/dist/shape.css
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/* Corner smoothing for a light-DOM box: put data-tanrei-shape on it and name its radius token in --tanrei-corner-radius (and set --tanrei-corner-pill: 1 on a pill). */
|
|
2
|
+
@layer tanrei.components {
|
|
3
|
+
:where([data-tanrei-shape]) {
|
|
4
|
+
--tanrei-corner-pill: 0;
|
|
5
|
+
}
|
|
6
|
+
[data-tanrei-shape] {
|
|
7
|
+
--_corner-scale: 1;
|
|
8
|
+
border-radius: calc(var(--tanrei-corner-radius) * var(--_corner-scale));
|
|
9
|
+
}
|
|
10
|
+
@supports (corner-shape: superellipse(log(2, 2))) {
|
|
11
|
+
[data-tanrei-shape] {
|
|
12
|
+
--_corner-smoothing: calc(var(--tanrei-sys-shape-corner-smoothing, 0) * (1 - var(--tanrei-corner-pill, 0)));
|
|
13
|
+
--_corner-scale: calc(1 + 0.4 * var(--_corner-smoothing));
|
|
14
|
+
corner-shape: superellipse(log(calc(2 + var(--_corner-smoothing)), 2));
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
[data-tanrei-shape]::before,
|
|
18
|
+
[data-tanrei-shape]::after {
|
|
19
|
+
corner-shape: inherit;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,428 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Skeleton (specs/skeleton.spec.json, SKL-1 to SKL-26): stands where content will be while it
|
|
3
|
+
* loads — quiet placeholders in the shape of what is coming, which keep the box the content will take, in a region
|
|
4
|
+
* that says once that it is busy.
|
|
5
|
+
*
|
|
6
|
+
* `<tanrei-skeleton>` is an element with no shadow root around the product's own layout, and a placeholder is the
|
|
7
|
+
* product's own empty element with a class:
|
|
8
|
+
*
|
|
9
|
+
* <tanrei-skeleton label="Loading the author">
|
|
10
|
+
* <div class="byline">
|
|
11
|
+
* <span class="tanrei-skeleton-placeholder" data-shape="circle" style="block-size: 40px"></span>
|
|
12
|
+
* <div>
|
|
13
|
+
* <p><span class="tanrei-skeleton-placeholder" style="inline-size: 10rem"></span></p>
|
|
14
|
+
* <p><span class="tanrei-skeleton-placeholder" data-lines="2"></span></p>
|
|
15
|
+
* </div>
|
|
16
|
+
* </div>
|
|
17
|
+
* </tanrei-skeleton>
|
|
18
|
+
*
|
|
19
|
+
* A placeholder: `data-shape` (text | block | circle; missing or unknown is text), `data-lines` (text: how many
|
|
20
|
+
* lines), and the CSS properties `inline-size` and `block-size` for its sizes — in its `style` or by a rule of the
|
|
21
|
+
* product's. A text placeholder takes the text style of where it stands (the inherited `font`), so it goes where the
|
|
22
|
+
* text will be: inside the heading, the paragraph, the cell.
|
|
23
|
+
*
|
|
24
|
+
* This stylesheet draws everything, before and without script — a skeleton is what a page shows before its script has
|
|
25
|
+
* run: the shapes and their sizes, the show delay (an animation that keeps the skeleton hidden for its length), the
|
|
26
|
+
* pulse, stillness under reduced motion, outlines in forced colors. The element (src/components/skeleton/skeleton.ts)
|
|
27
|
+
* adds what a stylesheet cannot: the role, the name and the busy state when the delay ends, `inert` for what the
|
|
28
|
+
* skeleton holds, a delay that is counted where the skeleton is not rendered, pausing while unseen, the wave (which
|
|
29
|
+
* has to be measured) and the debug reports. It writes, on the skeleton:
|
|
30
|
+
*
|
|
31
|
+
* data-clocked the element counts this insertion's show delay itself; the stylesheet's own wait is off
|
|
32
|
+
* data-waiting that delay is running: nothing is drawn (SKL-7)
|
|
33
|
+
* data-paused the skeleton cannot be seen: its animation is held (SKL-14)
|
|
34
|
+
* data-animation the manner the tokens name, where the browser has no style queries (SKL-12)
|
|
35
|
+
* data-wave the manner is wave and the placeholders are measured: `--_skl-wave-size` on the skeleton, and
|
|
36
|
+
* `--_skl-wave-offset` on each placeholder
|
|
37
|
+
*
|
|
38
|
+
* Every value is a `--tanrei-comp-skeleton-*` token.
|
|
39
|
+
*
|
|
40
|
+
* HOW IT IS WRITTEN
|
|
41
|
+
*
|
|
42
|
+
* - Every selector starts at the element's name or at the placeholder's class and has no specificity (`:where()`; a
|
|
43
|
+
* rule on a pseudo-element has a pseudo-element's), so one class of the product's wins and the ORDER of the rules
|
|
44
|
+
* decides between two of them. The one `!important` is a text placeholder's height, which is its lines and nothing
|
|
45
|
+
* else (SKL-3: it does not read a block size).
|
|
46
|
+
* - The skeleton is a plain block: what stands in it is laid out as it would be without it (margins collapse through
|
|
47
|
+
* it), so the box it holds is the box the content takes. The gap of SKL-1 is a margin between two placeholders that
|
|
48
|
+
* are both its own children.
|
|
49
|
+
* - A text placeholder is ONE element, `lines` line boxes high (`1lh` each). Its bars are real boxes with real corners:
|
|
50
|
+
* the first is its `::before`, the last of two or more its `::after` (shorter: `last-line-inline-size`), and each
|
|
51
|
+
* bar between them is a shadow of the first, one line box further down — a shadow has the box's size and corners and
|
|
52
|
+
* is drawn once, so a translucent fill stays even. The stylesheet reads `data-lines` up to 24 and holds 22 shadows;
|
|
53
|
+
* the element writes the rule of a larger number.
|
|
54
|
+
* - A block's and a circle's `::before` is a strut one line box long, never painted: it gives the placeholder the size
|
|
55
|
+
* of SKL-4 and SKL-5 where neither the product nor its layout gave one, and yields to a size that is given.
|
|
56
|
+
* - The pulse is an animation of each placeholder's own `opacity`, which a browser runs without layout and off the
|
|
57
|
+
* main thread. Nothing here asks for a frame.
|
|
58
|
+
* - The corner-smoothing rule (src/styles/shape.ts) is written by the build in place of the
|
|
59
|
+
* `skeleton:shape` mark, so the curve has one source.
|
|
60
|
+
* - Names that begin `--_skl-` are private.
|
|
61
|
+
*/
|
|
62
|
+
@layer tanrei.components {
|
|
63
|
+
/* ── The region (SKL-1): a block as wide as its place and as tall as what it holds; no look of its own ─────────── */
|
|
64
|
+
:where(tanrei-skeleton) {
|
|
65
|
+
--_skl-gap: var(--tanrei-comp-skeleton-container-gap);
|
|
66
|
+
/* SKL-9: the show delay of this skeleton — the token's, or none (`show-delay="0"`). */
|
|
67
|
+
--_skl-delay: var(--tanrei-comp-skeleton-motion-show-delay);
|
|
68
|
+
/* SKL-8: a pulse begins when the skeleton is shown. */
|
|
69
|
+
--_skl-pulse-delay: var(--_skl-delay);
|
|
70
|
+
|
|
71
|
+
display: block;
|
|
72
|
+
/* SKL-19: it takes no pointer; `inert`, which the element adds, also keeps focus and assistive technology out. */
|
|
73
|
+
pointer-events: none;
|
|
74
|
+
/* SKL-7: from its insertion it is hidden for its delay, with its box kept: nothing is drawn, nothing is exposed.
|
|
75
|
+
The delay is the animation's length — a wait, not motion, so reduced motion keeps it (SKL-10). */
|
|
76
|
+
animation: tanrei-skeleton-wait var(--_skl-delay) step-end;
|
|
77
|
+
/* The token's delay again, in a property that does nothing, for the element to read as a time (SKL-9). */
|
|
78
|
+
transition: none 0s linear var(--tanrei-comp-skeleton-motion-show-delay);
|
|
79
|
+
}
|
|
80
|
+
:where(tanrei-skeleton[hidden]) {
|
|
81
|
+
display: none;
|
|
82
|
+
}
|
|
83
|
+
:where(tanrei-skeleton[show-delay='0']) {
|
|
84
|
+
--_skl-delay: 0s;
|
|
85
|
+
}
|
|
86
|
+
/* The element counts the delay (see the head of this file): the animation's wait is off, and a pulse begins at the
|
|
87
|
+
moment `data-waiting` is taken away. */
|
|
88
|
+
:where(tanrei-skeleton[data-clocked]) {
|
|
89
|
+
--_skl-pulse-delay: 0s;
|
|
90
|
+
animation: none;
|
|
91
|
+
}
|
|
92
|
+
:where(tanrei-skeleton[data-waiting]) {
|
|
93
|
+
visibility: hidden;
|
|
94
|
+
}
|
|
95
|
+
/* SKL-26: a skeleton that holds no placeholder draws nothing and takes no space. (Asked of the skeleton itself.) */
|
|
96
|
+
:where(tanrei-skeleton:not(:has(.tanrei-skeleton-placeholder))) {
|
|
97
|
+
display: none;
|
|
98
|
+
}
|
|
99
|
+
/* SKL-1: two placeholders that stand directly in the skeleton, one under the other. */
|
|
100
|
+
:where(tanrei-skeleton) > :where(.tanrei-skeleton-placeholder) + :where(.tanrei-skeleton-placeholder) {
|
|
101
|
+
margin-block-start: var(--_skl-gap);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* ── A placeholder (SKL-2): one box — for text, one box a line — filled, with the corners of its shape ─────────── */
|
|
105
|
+
:where(.tanrei-skeleton-placeholder) {
|
|
106
|
+
--tanrei-corner-pill: 0;
|
|
107
|
+
}
|
|
108
|
+
:where(.tanrei-skeleton-placeholder) {
|
|
109
|
+
--_corner-scale: 1;
|
|
110
|
+
border-radius: calc(var(--tanrei-corner-radius) * var(--_corner-scale));
|
|
111
|
+
}
|
|
112
|
+
@supports (corner-shape: superellipse(log(2, 2))) {
|
|
113
|
+
:where(.tanrei-skeleton-placeholder) {
|
|
114
|
+
--_corner-smoothing: calc(var(--tanrei-sys-shape-corner-smoothing, 0) * (1 - var(--tanrei-corner-pill, 0)));
|
|
115
|
+
--_corner-scale: calc(1 + 0.4 * var(--_corner-smoothing));
|
|
116
|
+
corner-shape: superellipse(log(calc(2 + var(--_corner-smoothing)), 2));
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
:where(.tanrei-skeleton-placeholder)::before {
|
|
120
|
+
--tanrei-corner-pill: 0;
|
|
121
|
+
}
|
|
122
|
+
:where(.tanrei-skeleton-placeholder)::before {
|
|
123
|
+
--_corner-scale: 1;
|
|
124
|
+
border-radius: calc(var(--tanrei-corner-radius) * var(--_corner-scale));
|
|
125
|
+
}
|
|
126
|
+
@supports (corner-shape: superellipse(log(2, 2))) {
|
|
127
|
+
:where(.tanrei-skeleton-placeholder)::before {
|
|
128
|
+
--_corner-smoothing: calc(var(--tanrei-sys-shape-corner-smoothing, 0) * (1 - var(--tanrei-corner-pill, 0)));
|
|
129
|
+
--_corner-scale: calc(1 + 0.4 * var(--_corner-smoothing));
|
|
130
|
+
corner-shape: superellipse(log(calc(2 + var(--_corner-smoothing)), 2));
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
:where(.tanrei-skeleton-placeholder)::after {
|
|
134
|
+
--tanrei-corner-pill: 0;
|
|
135
|
+
}
|
|
136
|
+
:where(.tanrei-skeleton-placeholder)::after {
|
|
137
|
+
--_corner-scale: 1;
|
|
138
|
+
border-radius: calc(var(--tanrei-corner-radius) * var(--_corner-scale));
|
|
139
|
+
}
|
|
140
|
+
@supports (corner-shape: superellipse(log(2, 2))) {
|
|
141
|
+
:where(.tanrei-skeleton-placeholder)::after {
|
|
142
|
+
--_corner-smoothing: calc(var(--tanrei-sys-shape-corner-smoothing, 0) * (1 - var(--tanrei-corner-pill, 0)));
|
|
143
|
+
--_corner-scale: calc(1 + 0.4 * var(--_corner-smoothing));
|
|
144
|
+
corner-shape: superellipse(log(calc(2 + var(--_corner-smoothing)), 2));
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
:where(.tanrei-skeleton-placeholder) {
|
|
148
|
+
--_skl-fill: var(--tanrei-comp-skeleton-placeholder-color);
|
|
149
|
+
--_skl-lines: 1;
|
|
150
|
+
/* 1 while the placeholder has a last line that is not its first (SKL-3), else 0. */
|
|
151
|
+
--_skl-more: min(1, var(--_skl-lines) - 1);
|
|
152
|
+
--_skl-line: var(--tanrei-sys-border-hairline);
|
|
153
|
+
|
|
154
|
+
/* A block that keeps its bars' margins inside it. */
|
|
155
|
+
display: flow-root;
|
|
156
|
+
box-sizing: border-box;
|
|
157
|
+
/* SKL-21: never wider than its place; and no least size from what stands in it (a strut). */
|
|
158
|
+
max-inline-size: 100%;
|
|
159
|
+
min-inline-size: 0;
|
|
160
|
+
min-block-size: 0;
|
|
161
|
+
/* SKL-12, pulse: the fill's opacity falls to dim-opacity and returns, every placeholder in step. */
|
|
162
|
+
animation: tanrei-skeleton-pulse var(--tanrei-comp-skeleton-motion-dim-duration) var(--tanrei-comp-skeleton-motion-dim-easing) var(--_skl-pulse-delay, 0s) infinite alternate;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
:where(.tanrei-skeleton-placeholder[hidden]) {
|
|
166
|
+
display: none;
|
|
167
|
+
}
|
|
168
|
+
/* SKL-3, SKL-25: `data-lines`, as far as an attribute can be read here; the element writes the rule of any other. */
|
|
169
|
+
:where(.tanrei-skeleton-placeholder[data-lines='2']) {
|
|
170
|
+
--_skl-lines: 2;
|
|
171
|
+
}
|
|
172
|
+
:where(.tanrei-skeleton-placeholder[data-lines='3']) {
|
|
173
|
+
--_skl-lines: 3;
|
|
174
|
+
}
|
|
175
|
+
:where(.tanrei-skeleton-placeholder[data-lines='4']) {
|
|
176
|
+
--_skl-lines: 4;
|
|
177
|
+
}
|
|
178
|
+
:where(.tanrei-skeleton-placeholder[data-lines='5']) {
|
|
179
|
+
--_skl-lines: 5;
|
|
180
|
+
}
|
|
181
|
+
:where(.tanrei-skeleton-placeholder[data-lines='6']) {
|
|
182
|
+
--_skl-lines: 6;
|
|
183
|
+
}
|
|
184
|
+
:where(.tanrei-skeleton-placeholder[data-lines='7']) {
|
|
185
|
+
--_skl-lines: 7;
|
|
186
|
+
}
|
|
187
|
+
:where(.tanrei-skeleton-placeholder[data-lines='8']) {
|
|
188
|
+
--_skl-lines: 8;
|
|
189
|
+
}
|
|
190
|
+
:where(.tanrei-skeleton-placeholder[data-lines='9']) {
|
|
191
|
+
--_skl-lines: 9;
|
|
192
|
+
}
|
|
193
|
+
:where(.tanrei-skeleton-placeholder[data-lines='10']) {
|
|
194
|
+
--_skl-lines: 10;
|
|
195
|
+
}
|
|
196
|
+
:where(.tanrei-skeleton-placeholder[data-lines='11']) {
|
|
197
|
+
--_skl-lines: 11;
|
|
198
|
+
}
|
|
199
|
+
:where(.tanrei-skeleton-placeholder[data-lines='12']) {
|
|
200
|
+
--_skl-lines: 12;
|
|
201
|
+
}
|
|
202
|
+
:where(.tanrei-skeleton-placeholder[data-lines='13']) {
|
|
203
|
+
--_skl-lines: 13;
|
|
204
|
+
}
|
|
205
|
+
:where(.tanrei-skeleton-placeholder[data-lines='14']) {
|
|
206
|
+
--_skl-lines: 14;
|
|
207
|
+
}
|
|
208
|
+
:where(.tanrei-skeleton-placeholder[data-lines='15']) {
|
|
209
|
+
--_skl-lines: 15;
|
|
210
|
+
}
|
|
211
|
+
:where(.tanrei-skeleton-placeholder[data-lines='16']) {
|
|
212
|
+
--_skl-lines: 16;
|
|
213
|
+
}
|
|
214
|
+
:where(.tanrei-skeleton-placeholder[data-lines='17']) {
|
|
215
|
+
--_skl-lines: 17;
|
|
216
|
+
}
|
|
217
|
+
:where(.tanrei-skeleton-placeholder[data-lines='18']) {
|
|
218
|
+
--_skl-lines: 18;
|
|
219
|
+
}
|
|
220
|
+
:where(.tanrei-skeleton-placeholder[data-lines='19']) {
|
|
221
|
+
--_skl-lines: 19;
|
|
222
|
+
}
|
|
223
|
+
:where(.tanrei-skeleton-placeholder[data-lines='20']) {
|
|
224
|
+
--_skl-lines: 20;
|
|
225
|
+
}
|
|
226
|
+
:where(.tanrei-skeleton-placeholder[data-lines='21']) {
|
|
227
|
+
--_skl-lines: 21;
|
|
228
|
+
}
|
|
229
|
+
:where(.tanrei-skeleton-placeholder[data-lines='22']) {
|
|
230
|
+
--_skl-lines: 22;
|
|
231
|
+
}
|
|
232
|
+
:where(.tanrei-skeleton-placeholder[data-lines='23']) {
|
|
233
|
+
--_skl-lines: 23;
|
|
234
|
+
}
|
|
235
|
+
:where(.tanrei-skeleton-placeholder[data-lines='24']) {
|
|
236
|
+
--_skl-lines: 24;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/* ── Text (SKL-3; SKL-25: a shape this spec does not have is text): `lines` line boxes of the text style in effect ── */
|
|
240
|
+
:where(.tanrei-skeleton-placeholder:not([data-shape='block'], [data-shape='circle'])) {
|
|
241
|
+
block-size: calc(var(--_skl-lines) * 1lh) !important;
|
|
242
|
+
}
|
|
243
|
+
:where(.tanrei-skeleton-placeholder:not([data-shape='block'], [data-shape='circle']))::before,
|
|
244
|
+
:where(.tanrei-skeleton-placeholder:not([data-shape='block'], [data-shape='circle']))::after {
|
|
245
|
+
--tanrei-corner-radius: var(--tanrei-comp-skeleton-placeholder-shape-text);
|
|
246
|
+
--tanrei-corner-pill: var(--tanrei-comp-skeleton-placeholder-shape-text-pill, 0);
|
|
247
|
+
content: '';
|
|
248
|
+
display: block;
|
|
249
|
+
box-sizing: border-box;
|
|
250
|
+
background-color: var(--_skl-fill);
|
|
251
|
+
}
|
|
252
|
+
/* The first bar: as tall as the font size, centred in the first line box; and one shadow of it for each line
|
|
253
|
+
between the first and the last, a line box apart (a shadow that is not needed stands under the bar, undrawn). */
|
|
254
|
+
:where(.tanrei-skeleton-placeholder:not([data-shape='block'], [data-shape='circle']))::before {
|
|
255
|
+
block-size: 1em;
|
|
256
|
+
margin-block-start: calc((1lh - 1em) / 2);
|
|
257
|
+
box-shadow:
|
|
258
|
+
0 calc(1lh * clamp(0, var(--_skl-lines) - 2, 1)) 0 0 var(--_skl-fill),
|
|
259
|
+
0 calc(2lh * clamp(0, var(--_skl-lines) - 3, 1)) 0 0 var(--_skl-fill),
|
|
260
|
+
0 calc(3lh * clamp(0, var(--_skl-lines) - 4, 1)) 0 0 var(--_skl-fill),
|
|
261
|
+
0 calc(4lh * clamp(0, var(--_skl-lines) - 5, 1)) 0 0 var(--_skl-fill),
|
|
262
|
+
0 calc(5lh * clamp(0, var(--_skl-lines) - 6, 1)) 0 0 var(--_skl-fill),
|
|
263
|
+
0 calc(6lh * clamp(0, var(--_skl-lines) - 7, 1)) 0 0 var(--_skl-fill),
|
|
264
|
+
0 calc(7lh * clamp(0, var(--_skl-lines) - 8, 1)) 0 0 var(--_skl-fill),
|
|
265
|
+
0 calc(8lh * clamp(0, var(--_skl-lines) - 9, 1)) 0 0 var(--_skl-fill),
|
|
266
|
+
0 calc(9lh * clamp(0, var(--_skl-lines) - 10, 1)) 0 0 var(--_skl-fill),
|
|
267
|
+
0 calc(10lh * clamp(0, var(--_skl-lines) - 11, 1)) 0 0 var(--_skl-fill),
|
|
268
|
+
0 calc(11lh * clamp(0, var(--_skl-lines) - 12, 1)) 0 0 var(--_skl-fill),
|
|
269
|
+
0 calc(12lh * clamp(0, var(--_skl-lines) - 13, 1)) 0 0 var(--_skl-fill),
|
|
270
|
+
0 calc(13lh * clamp(0, var(--_skl-lines) - 14, 1)) 0 0 var(--_skl-fill),
|
|
271
|
+
0 calc(14lh * clamp(0, var(--_skl-lines) - 15, 1)) 0 0 var(--_skl-fill),
|
|
272
|
+
0 calc(15lh * clamp(0, var(--_skl-lines) - 16, 1)) 0 0 var(--_skl-fill),
|
|
273
|
+
0 calc(16lh * clamp(0, var(--_skl-lines) - 17, 1)) 0 0 var(--_skl-fill),
|
|
274
|
+
0 calc(17lh * clamp(0, var(--_skl-lines) - 18, 1)) 0 0 var(--_skl-fill),
|
|
275
|
+
0 calc(18lh * clamp(0, var(--_skl-lines) - 19, 1)) 0 0 var(--_skl-fill),
|
|
276
|
+
0 calc(19lh * clamp(0, var(--_skl-lines) - 20, 1)) 0 0 var(--_skl-fill),
|
|
277
|
+
0 calc(20lh * clamp(0, var(--_skl-lines) - 21, 1)) 0 0 var(--_skl-fill),
|
|
278
|
+
0 calc(21lh * clamp(0, var(--_skl-lines) - 22, 1)) 0 0 var(--_skl-fill),
|
|
279
|
+
0 calc(22lh * clamp(0, var(--_skl-lines) - 23, 1)) 0 0 var(--_skl-fill);
|
|
280
|
+
}
|
|
281
|
+
/* The last bar of two or more: last-line-inline-size of the placeholder, from the start edge. */
|
|
282
|
+
:where(.tanrei-skeleton-placeholder:not([data-shape='block'], [data-shape='circle']))::after {
|
|
283
|
+
inline-size: calc(100% * var(--tanrei-comp-skeleton-placeholder-last-line-inline-size));
|
|
284
|
+
block-size: calc(1em * var(--_skl-more));
|
|
285
|
+
margin-block-start: calc((var(--_skl-lines) - 1) * 1lh - 1em * var(--_skl-more));
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/* ── Block (SKL-4): the size given, else the layout's, else its place wide and one line box high ───────────────── */
|
|
289
|
+
:where(.tanrei-skeleton-placeholder[data-shape='block']) {
|
|
290
|
+
--tanrei-corner-radius: var(--tanrei-comp-skeleton-placeholder-shape-block);
|
|
291
|
+
--tanrei-corner-pill: var(--tanrei-comp-skeleton-placeholder-shape-block-pill, 0);
|
|
292
|
+
background-color: var(--_skl-fill);
|
|
293
|
+
}
|
|
294
|
+
:where(.tanrei-skeleton-placeholder[data-shape='block'])::before {
|
|
295
|
+
content: '';
|
|
296
|
+
display: block;
|
|
297
|
+
block-size: 1lh;
|
|
298
|
+
max-block-size: 100%;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
/* ── Circle (SKL-5): a square of the side given, else one line box, drawn round ────────────────────────────────── */
|
|
302
|
+
:where(.tanrei-skeleton-placeholder[data-shape='circle']) {
|
|
303
|
+
--tanrei-corner-radius: var(--tanrei-comp-skeleton-placeholder-shape-circle);
|
|
304
|
+
--tanrei-corner-pill: var(--tanrei-comp-skeleton-placeholder-shape-circle-pill, 0);
|
|
305
|
+
/* One size given is both: the other follows from the ratio, also where the place is narrower than the side. */
|
|
306
|
+
inline-size: fit-content;
|
|
307
|
+
aspect-ratio: 1;
|
|
308
|
+
background-color: var(--_skl-fill);
|
|
309
|
+
/* Never an oval: where a block size was given and the place is narrower than it, the box cannot follow (a height
|
|
310
|
+
that is given is kept), and the fill is the circle that fits. On a square this cuts nothing. */
|
|
311
|
+
clip-path: circle(closest-side);
|
|
312
|
+
}
|
|
313
|
+
:where(.tanrei-skeleton-placeholder[data-shape='circle'])::before {
|
|
314
|
+
content: '';
|
|
315
|
+
display: block;
|
|
316
|
+
inline-size: 1lh;
|
|
317
|
+
max-inline-size: 100%;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
/* ── The manner (SKL-12 to SKL-14) ─────────────────────────────────────────────────────────────────────────────── */
|
|
321
|
+
/* SKL-7: while the element's delay runs nothing is animated; a pulse begins when it ends (SKL-8). */
|
|
322
|
+
:where(tanrei-skeleton[data-waiting]) :where(.tanrei-skeleton-placeholder) {
|
|
323
|
+
animation-name: none;
|
|
324
|
+
}
|
|
325
|
+
/* none: still, at the resting opacity. By a style query where the browser has them, else by the element's word. */
|
|
326
|
+
@container style(--tanrei-comp-skeleton-motion-animation: none) {
|
|
327
|
+
:where(.tanrei-skeleton-placeholder) {
|
|
328
|
+
animation-name: none;
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
:where(tanrei-skeleton[data-animation='none']) :where(.tanrei-skeleton-placeholder) {
|
|
332
|
+
animation-name: none;
|
|
333
|
+
}
|
|
334
|
+
/* wave: the same fall and return, each point later than the skeleton's start edge by its share of the skeleton's
|
|
335
|
+
inline size — one mask as wide as the skeleton, placed in every placeholder where the skeleton's start edge is,
|
|
336
|
+
and moved by one skeleton's width a pulse. Only the fill's opacity changes. The element measures the skeleton and
|
|
337
|
+
each placeholder's distance from its left edge; until it has, a wave is drawn as a pulse. The band is the same
|
|
338
|
+
seen from either side, so right to left it only runs the other way (SKL-22). */
|
|
339
|
+
:where(tanrei-skeleton[data-wave]) :where(.tanrei-skeleton-placeholder) {
|
|
340
|
+
mask-image: linear-gradient(to right, rgb(0 0 0 / 1), rgb(0 0 0 / var(--tanrei-comp-skeleton-placeholder-dim-opacity)), rgb(0 0 0 / 1));
|
|
341
|
+
mask-size: var(--_skl-wave-size, 100%) 100%;
|
|
342
|
+
mask-repeat: repeat;
|
|
343
|
+
mask-position: calc(0px - var(--_skl-wave-offset, 0px)) 0;
|
|
344
|
+
animation-name: tanrei-skeleton-wave;
|
|
345
|
+
animation-duration: calc(2 * var(--tanrei-comp-skeleton-motion-dim-duration));
|
|
346
|
+
animation-timing-function: linear;
|
|
347
|
+
animation-direction: normal;
|
|
348
|
+
}
|
|
349
|
+
:where(tanrei-skeleton[data-wave]):dir(rtl) :where(.tanrei-skeleton-placeholder) {
|
|
350
|
+
animation-direction: reverse;
|
|
351
|
+
}
|
|
352
|
+
/* SKL-14: held while the skeleton cannot be seen, and resumed where it stopped. */
|
|
353
|
+
:where(tanrei-skeleton[data-paused]) :where(.tanrei-skeleton-placeholder) {
|
|
354
|
+
animation-play-state: paused;
|
|
355
|
+
}
|
|
356
|
+
/* SKL-13: reduced motion is stillness, whatever the manner; the delay above is kept (SKL-10). */
|
|
357
|
+
@media (prefers-reduced-motion: reduce) {
|
|
358
|
+
:where(.tanrei-skeleton-placeholder),
|
|
359
|
+
:where(tanrei-skeleton[data-wave]) :where(.tanrei-skeleton-placeholder) {
|
|
360
|
+
mask-image: none;
|
|
361
|
+
animation-name: none;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
/* ── Forced colors (SKL-20): each placeholder, and each line of text, the outline of its shape; no fill; still ─── */
|
|
366
|
+
@media (forced-colors: active) {
|
|
367
|
+
:where(.tanrei-skeleton-placeholder),
|
|
368
|
+
:where(tanrei-skeleton[data-wave]) :where(.tanrei-skeleton-placeholder) {
|
|
369
|
+
mask-image: none;
|
|
370
|
+
animation-name: none;
|
|
371
|
+
}
|
|
372
|
+
:where(.tanrei-skeleton-placeholder[data-shape='block']),
|
|
373
|
+
:where(.tanrei-skeleton-placeholder[data-shape='circle']) {
|
|
374
|
+
background-color: transparent;
|
|
375
|
+
outline: var(--_skl-line) solid CanvasText;
|
|
376
|
+
outline-offset: calc(0px - var(--_skl-line));
|
|
377
|
+
}
|
|
378
|
+
:where(.tanrei-skeleton-placeholder:not([data-shape='block'], [data-shape='circle']))::before,
|
|
379
|
+
:where(.tanrei-skeleton-placeholder:not([data-shape='block'], [data-shape='circle']))::after {
|
|
380
|
+
border: var(--_skl-line) solid CanvasText;
|
|
381
|
+
background-color: transparent;
|
|
382
|
+
box-shadow: none;
|
|
383
|
+
}
|
|
384
|
+
/* The lines between the first and the last: a shadow is not drawn in this mode, and a copy of a filled box would
|
|
385
|
+
be a filled bar. The first bar's outline is copied instead, each copy doubling what is there (1, 2, 4, 8 and 16
|
|
386
|
+
line boxes down, each no further than the lines that are left), up to 32 lines. Where the last doubling is not
|
|
387
|
+
a whole one, copies fall on copies: the step is a whole number of pixels where the browser can round, so that
|
|
388
|
+
two copies of one line are one line and not two lines a fraction apart (a line height of 21.98 measured: a
|
|
389
|
+
hairline drawn two thick). */
|
|
390
|
+
:where(.tanrei-skeleton-placeholder:not([data-shape='block'], [data-shape='circle']))::before {
|
|
391
|
+
--_skl-full: max(1, var(--_skl-lines) - 1);
|
|
392
|
+
--_skl-step: 1lh;
|
|
393
|
+
filter: drop-shadow(0 calc(var(--_skl-step) * (min(2, var(--_skl-full)) - 1)) 0 CanvasText) drop-shadow(0 calc(var(--_skl-step) * (min(4, var(--_skl-full)) - min(2, var(--_skl-full)))) 0 CanvasText)
|
|
394
|
+
drop-shadow(0 calc(var(--_skl-step) * (min(8, var(--_skl-full)) - min(4, var(--_skl-full)))) 0 CanvasText) drop-shadow(0 calc(var(--_skl-step) * (min(16, var(--_skl-full)) - min(8, var(--_skl-full)))) 0 CanvasText)
|
|
395
|
+
drop-shadow(0 calc(var(--_skl-step) * (min(32, var(--_skl-full)) - min(16, var(--_skl-full)))) 0 CanvasText);
|
|
396
|
+
}
|
|
397
|
+
@supports (inline-size: round(1lh, 1px)) {
|
|
398
|
+
:where(.tanrei-skeleton-placeholder:not([data-shape='block'], [data-shape='circle']))::before {
|
|
399
|
+
--_skl-step: round(1lh, 1px);
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
:where(.tanrei-skeleton-placeholder:not([data-shape='block'], [data-shape='circle']))::after {
|
|
403
|
+
border-width: calc(var(--_skl-line) * var(--_skl-more));
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
/* SKL-7: hidden for as long as it runs; when it ends the skeleton is what its other rules say — visible. */
|
|
408
|
+
@keyframes tanrei-skeleton-wait {
|
|
409
|
+
from,
|
|
410
|
+
to {
|
|
411
|
+
visibility: hidden;
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
/* SKL-12: from the resting opacity (the placeholder's own) to dim-opacity; `alternate` is the way back. */
|
|
415
|
+
@keyframes tanrei-skeleton-pulse {
|
|
416
|
+
to {
|
|
417
|
+
opacity: var(--tanrei-comp-skeleton-placeholder-dim-opacity);
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
@keyframes tanrei-skeleton-wave {
|
|
421
|
+
from {
|
|
422
|
+
mask-position: calc(0px - var(--_skl-wave-offset, 0px)) 0;
|
|
423
|
+
}
|
|
424
|
+
to {
|
|
425
|
+
mask-position: calc(var(--_skl-wave-size, 100%) - var(--_skl-wave-offset, 0px)) 0;
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
}
|