@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,383 @@
|
|
|
1
|
+
import { css, unsafeCSS } from 'lit';
|
|
2
|
+
import { focusRing, iconGlyph, minimumTarget, pressHold, rippleStyles, stateRules } from '../../primitives/index.js';
|
|
3
|
+
import { productText } from '../../styles/product-text.js';
|
|
4
|
+
import { cornerRadius, shape } from '../../styles/shape.js';
|
|
5
|
+
// Every visual value is a token (tokens/comp/callout.tokens.json). The callout itself has no state (CLO-14): what
|
|
6
|
+
// changes what it draws is its variant, its status and its size, each read from that form's own tokens. The close
|
|
7
|
+
// button is the one control: its container and content colors per state, in the callout's form — none
|
|
8
|
+
// (tonal, no status), `<status>` (tonal with a status) or `outlined` (the outlined look, in every status).
|
|
9
|
+
/** The values every design system has. A layer may add more; those get their styles on demand. */
|
|
10
|
+
export const CORE_VARIANTS = ['tonal', 'outlined'];
|
|
11
|
+
export const CORE_SIZES = ['medium', 'large'];
|
|
12
|
+
/** The statuses besides `default`: a closed set (CLO-30), each a prefix before the callout's parts (CLO-3). */
|
|
13
|
+
export const STATUSES = ['info', 'warning', 'error', 'success'];
|
|
14
|
+
const DEFAULT_VARIANT = 'tonal';
|
|
15
|
+
const DEFAULT_SIZE = 'medium';
|
|
16
|
+
/** The parts of a form (CLO-2, CLO-3, CLO-15): the fill, the title, the body, the glyph and the focus indicator's outer stroke. */
|
|
17
|
+
const PARTS = { bg: 'container-color', title: 'title-color', body: 'body-color', icon: 'icon-color', focus: 'focus-ring-color' };
|
|
18
|
+
/** The close button's states, as the suffix of the private property that holds each one's color. */
|
|
19
|
+
const STATES = { '': '-r', hovered: '-h', focused: '-f', pressed: '-p' };
|
|
20
|
+
const PREFIX = '--tanrei-comp-callout';
|
|
21
|
+
const T = (name) => `var(${PREFIX}-${name})`;
|
|
22
|
+
const t = (name) => unsafeCSS(T(name));
|
|
23
|
+
// A value the core does not have may be missing from the active design system: fall back to the default's token.
|
|
24
|
+
const ref = (name, key, fallback) => (fallback ? `var(${name(key)}, var(${name(fallback)}))` : `var(${name(key)})`);
|
|
25
|
+
/**
|
|
26
|
+
* A part's color drawn at one of the component's opacities (CLO-5): the color mixed with transparent, never the
|
|
27
|
+
* element's `opacity`, so nothing else fades with it. At 1 it is the color.
|
|
28
|
+
*/
|
|
29
|
+
const faded = (color, opacity) => unsafeCSS(`color-mix(in srgb, ${color} calc(${T(opacity)} * 100%), transparent)`);
|
|
30
|
+
/**
|
|
31
|
+
* The close button's form in a variant and a status (CLO-10): the tonal look's is its status (none without one); every
|
|
32
|
+
* other look has one form, its own name, in every status. A look a layer adds falls back to the tonal form of the status.
|
|
33
|
+
*/
|
|
34
|
+
const closeToken = (variant, status, state, part) => {
|
|
35
|
+
const name = (form) => `${PREFIX}-${['close', state, form].filter(Boolean).join('-')}-${part}`;
|
|
36
|
+
if (variant === DEFAULT_VARIANT)
|
|
37
|
+
return `var(${name(status)})`;
|
|
38
|
+
return CORE_VARIANTS.includes(variant) ? `var(${name(variant)})` : `var(${name(variant)}, var(${name(status)}))`;
|
|
39
|
+
};
|
|
40
|
+
// Per variant, the five parts and the close button's eight colors, with no status (`d`) and under each status, as
|
|
41
|
+
// private custom properties: `--_d-bg` (the fill with no status), `--_error-icon`, `--_info-cc-h` (the close button's
|
|
42
|
+
// container, hovered, in an info callout). The part's token is `[<status>-]<part>-<variant>`.
|
|
43
|
+
const variantBlock = (variant, selector, fallback = null) => `${selector} {\n${['', ...STATUSES]
|
|
44
|
+
.flatMap((status) => {
|
|
45
|
+
const key = status || 'd';
|
|
46
|
+
return [
|
|
47
|
+
...Object.entries(PARTS).map(([name, part]) => ` --_${key}-${name}: ${ref((v) => `${PREFIX}-${status ? `${status}-` : ''}${part}-${v}`, variant, fallback)};`),
|
|
48
|
+
...Object.entries(STATES).flatMap(([state, suffix]) => [
|
|
49
|
+
` --_${key}-cc${suffix}: ${closeToken(variant, status, state, 'container-color')};`,
|
|
50
|
+
` --_${key}-co${suffix}: ${closeToken(variant, status, state, 'content-color')};`,
|
|
51
|
+
]),
|
|
52
|
+
];
|
|
53
|
+
})
|
|
54
|
+
.join('\n')}\n}`;
|
|
55
|
+
// Per size, the title's and the body's text roles, each used whole: the font shorthand and the letter
|
|
56
|
+
// spacing — and the height of one line of each, for a browser that does not know the `lh` unit.
|
|
57
|
+
const sizeBlock = (size, selector, fallback = null) => `${selector} {\n${['title', 'body']
|
|
58
|
+
.flatMap((part) => {
|
|
59
|
+
const role = (member) => ref((v) => `${PREFIX}-${part}-typescale-${v}-${member}`, size, fallback);
|
|
60
|
+
return [` --_${part}-font: ${role('font')};`, ` --_${part}-tracking: ${role('letter-spacing')};`, ` --_${part}-line: calc(${role('line-height')} * ${role('font-size')});`];
|
|
61
|
+
})
|
|
62
|
+
.join('\n')}\n}`;
|
|
63
|
+
/** What a form paints (CLO-2, CLO-3): the same parts, from the variant's parts of that status. Colors only. */
|
|
64
|
+
const formBlock = (status, selector) => {
|
|
65
|
+
const key = status || 'd';
|
|
66
|
+
return `${selector} {
|
|
67
|
+
${Object.keys(PARTS)
|
|
68
|
+
.map((name) => ` --_${name}: var(--_${key}-${name});`)
|
|
69
|
+
.join('\n')}
|
|
70
|
+
${Object.values(STATES)
|
|
71
|
+
.flatMap((suffix) => [` --_cc${suffix}: var(--_${key}-cc${suffix});`, ` --_co${suffix}: var(--_${key}-co${suffix});`])
|
|
72
|
+
.join('\n')}
|
|
73
|
+
}`;
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* The open axes (CLO-30): a size or variant a layer added gets its block on demand, built by the same
|
|
77
|
+
* functions as the core blocks and falling back to the default's tokens; a value the active system lacks is reported in
|
|
78
|
+
* debug builds. A variant a layer adds has no edge: only `outlined` draws one (CLO-4).
|
|
79
|
+
*/
|
|
80
|
+
export const AXES = [
|
|
81
|
+
{ name: 'size', core: CORE_SIZES, default: DEFAULT_SIZE, rules: (value, selector) => sizeBlock(value, selector, DEFAULT_SIZE), probe: (value) => `${PREFIX}-body-typescale-${value}-font` },
|
|
82
|
+
{ name: 'variant', core: CORE_VARIANTS, default: DEFAULT_VARIANT, rules: (value, selector) => variantBlock(value, selector, DEFAULT_VARIANT), probe: (value) => `${PREFIX}-container-color-${value}` },
|
|
83
|
+
];
|
|
84
|
+
/** Where each state is read (CLO-14): on the close button, a native button. */
|
|
85
|
+
const on = (state) => `.close${state}`;
|
|
86
|
+
const paint = (suffix, container = true) => `${container ? `\n background: var(--_cc${suffix});` : ''}
|
|
87
|
+
color: var(--_co${suffix});`;
|
|
88
|
+
export const styles = css `
|
|
89
|
+
/* CLO-22: a block in the flow of its container — the whole inline size it is given, no outer space, no minimum, no
|
|
90
|
+
maximum, no measure, nothing that floats, sticks or scrolls. It has no role of its own in the styles and takes no
|
|
91
|
+
input: only the close button answers (CLO-14). */
|
|
92
|
+
:host {
|
|
93
|
+
display: block;
|
|
94
|
+
}
|
|
95
|
+
/* CLO-13: not open, it draws nothing and takes no space; nothing in it is exposed or reachable. open="false" is how
|
|
96
|
+
the property is spelled as an attribute (it defaults to true). */
|
|
97
|
+
:host([open='false' i]),
|
|
98
|
+
:host([hidden]) {
|
|
99
|
+
display: none;
|
|
100
|
+
}
|
|
101
|
+
/* CLO-31: a callout with no title and no body draws nothing and takes no space. Its own rule: a browser without
|
|
102
|
+
custom states drops only this one, and the empty callout is then a block of no height (.container[hidden]). */
|
|
103
|
+
:host(:state(empty)) {
|
|
104
|
+
display: none;
|
|
105
|
+
}
|
|
106
|
+
${unsafeCSS(sizeBlock(DEFAULT_SIZE, ':host'))}
|
|
107
|
+
${unsafeCSS(CORE_SIZES.filter((size) => size !== DEFAULT_SIZE).map((size) => sizeBlock(size, `:host([size='${size}'])`)).join('\n'))}
|
|
108
|
+
${unsafeCSS(variantBlock(DEFAULT_VARIANT, ':host'))}
|
|
109
|
+
${unsafeCSS(CORE_VARIANTS.filter((v) => v !== DEFAULT_VARIANT).map((v) => variantBlock(v, `:host([variant='${v}'])`)).join('\n'))}
|
|
110
|
+
|
|
111
|
+
/* CLO-1: the container — as wide as the host, as tall as its content, container.shape corners through the shared
|
|
112
|
+
corner rule, no elevation; the paddings; and from the start the glyph, the column of text, and the close button.
|
|
113
|
+
Everything is aligned to the top: any height beyond the content lies below it.
|
|
114
|
+
CLO-2: the form's fill; its title, body and glyph colors go to the parts below. */
|
|
115
|
+
.container {
|
|
116
|
+
box-sizing: border-box;
|
|
117
|
+
display: grid;
|
|
118
|
+
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
119
|
+
align-items: start;
|
|
120
|
+
align-content: start;
|
|
121
|
+
padding-block: ${t('container-padding-block')};
|
|
122
|
+
padding-inline: ${t('container-padding-inline')};
|
|
123
|
+
${unsafeCSS(cornerRadius(`${PREFIX}-container-shape`))}
|
|
124
|
+
background: var(--_bg);
|
|
125
|
+
text-align: start;
|
|
126
|
+
/* The first line of the text is the body's, or the title's where there is one: the glyph and the close button are
|
|
127
|
+
centred on a line of this font (CLO-1). */
|
|
128
|
+
--_first-font: var(--_body-font);
|
|
129
|
+
--_first-line: var(--_body-line);
|
|
130
|
+
}
|
|
131
|
+
.container[hidden] {
|
|
132
|
+
display: none;
|
|
133
|
+
}
|
|
134
|
+
.container.titled {
|
|
135
|
+
--_first-font: var(--_title-font);
|
|
136
|
+
--_first-line: var(--_title-line);
|
|
137
|
+
}
|
|
138
|
+
/* CLO-1: after the close button the end padding is the nearer one. */
|
|
139
|
+
.container.closable {
|
|
140
|
+
padding-inline-end: ${t('container-padding-inline-end-with-close')};
|
|
141
|
+
}
|
|
142
|
+
${unsafeCSS(formBlock('', '.container'))}
|
|
143
|
+
${unsafeCSS(STATUSES.map((status) => formBlock(status, `:host([status='${status}']) .container`)).join('\n '))}
|
|
144
|
+
/* CLO-4: the outlined look's edge, inside the container's size and following its corners — an inset ring changes
|
|
145
|
+
neither the box nor the place of its content. The system's one hairline, in every status. */
|
|
146
|
+
:host([variant='outlined']) .container {
|
|
147
|
+
box-shadow: inset 0 0 0 ${t('outline-width')} ${t('outline-color')};
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/* CLO-1, CLO-5: the glyph's place — one line of the first line's font tall (the lh unit; the role's own line height
|
|
151
|
+
where a browser does not know it), the glyph centred in it, icon.gap before the text. A box that holds nothing draws
|
|
152
|
+
no room (CLO-5: without a status and without a glyph of the product's the text starts at the padding). */
|
|
153
|
+
.lead,
|
|
154
|
+
.end {
|
|
155
|
+
display: flex;
|
|
156
|
+
align-items: center;
|
|
157
|
+
font: var(--_first-font);
|
|
158
|
+
block-size: var(--_first-line);
|
|
159
|
+
block-size: 1lh;
|
|
160
|
+
}
|
|
161
|
+
.lead {
|
|
162
|
+
margin-inline-end: ${t('icon-gap')};
|
|
163
|
+
}
|
|
164
|
+
.container:not(.has-lead) .lead {
|
|
165
|
+
display: none;
|
|
166
|
+
}
|
|
167
|
+
/* CLO-5, CLO-6: the status glyph, or the product's in its place — a box of icon.size, the form's icon color at
|
|
168
|
+
icon.opacity (an opacity of the glyph alone), the icon set's unselected family and fill, sys.icon.weight, the
|
|
169
|
+
optical size of the box, no transition. CLO-27: iconGlyph() mirrors the slotted glyph GlyphMirrorController marked. */
|
|
170
|
+
${iconGlyph('.icon', { size: `${PREFIX}-icon-size`, selected: ':not(*)' })}
|
|
171
|
+
.icon {
|
|
172
|
+
color: ${faded('var(--_icon)', 'icon-opacity')};
|
|
173
|
+
}
|
|
174
|
+
/* The slot is the glyph's ink for GlyphDrawnController: an inline block as wide as the name it holds. */
|
|
175
|
+
.icon slot {
|
|
176
|
+
display: inline-block;
|
|
177
|
+
vertical-align: top;
|
|
178
|
+
}
|
|
179
|
+
.icon ::slotted(svg),
|
|
180
|
+
.icon ::slotted(img) {
|
|
181
|
+
display: block;
|
|
182
|
+
inline-size: var(--tanrei-icon-size);
|
|
183
|
+
block-size: var(--tanrei-icon-size);
|
|
184
|
+
}
|
|
185
|
+
/* CLO-29: nothing in a glyph's place until the icon set can draw it (GlyphDrawnController sets data-drawn); the box
|
|
186
|
+
keeps its size. */
|
|
187
|
+
.icon:not([data-drawn]),
|
|
188
|
+
.glyph:not([data-drawn]) {
|
|
189
|
+
visibility: hidden;
|
|
190
|
+
}
|
|
191
|
+
/* The ligature's own width, which GlyphDrawnController compares with the glyph box. */
|
|
192
|
+
.ink {
|
|
193
|
+
display: inline-block;
|
|
194
|
+
vertical-align: top;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/* CLO-1: the column that takes the remaining width: the title, the body, the actions. */
|
|
198
|
+
.text {
|
|
199
|
+
position: relative;
|
|
200
|
+
grid-column: 2;
|
|
201
|
+
min-inline-size: 0;
|
|
202
|
+
}
|
|
203
|
+
/* CLO-20: the status in words, read before the title and the body and never drawn. */
|
|
204
|
+
.status-label,
|
|
205
|
+
.announce {
|
|
206
|
+
position: absolute;
|
|
207
|
+
inline-size: 1px;
|
|
208
|
+
block-size: 1px;
|
|
209
|
+
margin: -1px;
|
|
210
|
+
padding: 0;
|
|
211
|
+
overflow: hidden;
|
|
212
|
+
clip-path: inset(50%);
|
|
213
|
+
white-space: nowrap;
|
|
214
|
+
border: 0;
|
|
215
|
+
}
|
|
216
|
+
/* The two live regions are in no positioned box of the callout's (the callout itself is not positioned: CLO-22), so
|
|
217
|
+
they are laid out against whatever is positioned above it — which may be outside a box the callout scrolls in,
|
|
218
|
+
and that box then does not cut them. Left where they would have stood, far along a row the box scrolls, they
|
|
219
|
+
widened the page itself, which scrolled sideways to reach one invisible pixel (src/scroll-box.test.ts). So they
|
|
220
|
+
name their place: the start corner of what they are laid out against, inside it (no margin that would put the
|
|
221
|
+
pixel past its edge — in a right-to-left part of a left-to-right page that edge is the page's). Nothing is drawn
|
|
222
|
+
there, and what a live region says does not depend on where it is. */
|
|
223
|
+
.announce {
|
|
224
|
+
inset-block-start: 0;
|
|
225
|
+
inset-inline-start: 0;
|
|
226
|
+
margin: 0;
|
|
227
|
+
}
|
|
228
|
+
/* CLO-7: the title, in the text style of its size and the title color of its form; it wraps and is never cut. A
|
|
229
|
+
heading the product gives in the slot is drawn as every other title is: its own margins and text style are taken
|
|
230
|
+
off, its role and level are untouched. */
|
|
231
|
+
.title {
|
|
232
|
+
font: var(--_title-font);
|
|
233
|
+
letter-spacing: var(--_title-tracking);
|
|
234
|
+
color: var(--_title);
|
|
235
|
+
overflow-wrap: break-word;
|
|
236
|
+
}
|
|
237
|
+
.container:not(.titled) .title {
|
|
238
|
+
display: none;
|
|
239
|
+
}
|
|
240
|
+
::slotted([slot='title']) {
|
|
241
|
+
display: block;
|
|
242
|
+
margin: 0;
|
|
243
|
+
font: inherit;
|
|
244
|
+
letter-spacing: inherit;
|
|
245
|
+
color: inherit;
|
|
246
|
+
}
|
|
247
|
+
/* CLO-28: a title given as text is text of its own direction, isolated, its lines aligned by the layout's. */
|
|
248
|
+
${productText('.headline', { align: 'start' })}
|
|
249
|
+
.headline {
|
|
250
|
+
display: block;
|
|
251
|
+
}
|
|
252
|
+
/* CLO-8: the body — the text style of its size and the body color of its form, inherited by what the product placed
|
|
253
|
+
there, so bare text is styled and a component or a prose inside keeps its own. It wraps; nothing cuts it. */
|
|
254
|
+
.body {
|
|
255
|
+
font: var(--_body-font);
|
|
256
|
+
letter-spacing: var(--_body-tracking);
|
|
257
|
+
color: var(--_body);
|
|
258
|
+
overflow-wrap: break-word;
|
|
259
|
+
}
|
|
260
|
+
.container:not(.has-body) .body {
|
|
261
|
+
display: none;
|
|
262
|
+
}
|
|
263
|
+
/* CLO-7: title.gap between the title and the body. */
|
|
264
|
+
.container.titled.has-body .body {
|
|
265
|
+
margin-block-start: ${t('title-gap')};
|
|
266
|
+
}
|
|
267
|
+
/* CLO-9: the actions — a row below the text, actions.gap below it, starting at the text's start edge, item-gap
|
|
268
|
+
between two along the row and between rows where they wrap. Nothing of an action is styled. */
|
|
269
|
+
.actions {
|
|
270
|
+
display: flex;
|
|
271
|
+
flex-wrap: wrap;
|
|
272
|
+
align-items: center;
|
|
273
|
+
gap: ${t('actions-item-gap')};
|
|
274
|
+
margin-block-start: ${t('actions-gap')};
|
|
275
|
+
}
|
|
276
|
+
.container:not(.has-actions) .actions {
|
|
277
|
+
display: none;
|
|
278
|
+
}
|
|
279
|
+
/* CLO-9, CLO-23: an action alone on its line is never wider than that line. One that would be is given the line's
|
|
280
|
+
width and no less: a Button then wraps its label, as it does when a button group narrows it (the element tells it
|
|
281
|
+
so), and a link wraps as text does. An action that fits is not touched, and nothing of it is cut: one whose
|
|
282
|
+
longest word does not fit the line keeps that word whole and is as wide as it needs (its box is what it draws). */
|
|
283
|
+
::slotted([slot='actions']) {
|
|
284
|
+
max-inline-size: 100%;
|
|
285
|
+
min-inline-size: min-content;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/* CLO-10: the close button at the end of the first row, container.gap after the text, centred on the first line: its
|
|
289
|
+
box is one line tall and the button, taller, overflows it above and below alike — it overlaps the padding rather
|
|
290
|
+
than making the row taller. */
|
|
291
|
+
.end {
|
|
292
|
+
grid-column: 3;
|
|
293
|
+
margin-inline-start: ${t('container-gap')};
|
|
294
|
+
}
|
|
295
|
+
.close {
|
|
296
|
+
all: unset;
|
|
297
|
+
box-sizing: border-box;
|
|
298
|
+
position: relative;
|
|
299
|
+
/* Its own stacking context, so the ripple sits above the container color and below the glyph. */
|
|
300
|
+
isolation: isolate;
|
|
301
|
+
flex: none;
|
|
302
|
+
display: inline-flex;
|
|
303
|
+
align-items: center;
|
|
304
|
+
justify-content: center;
|
|
305
|
+
inline-size: ${t('controls-height')};
|
|
306
|
+
block-size: ${t('controls-height')};
|
|
307
|
+
${unsafeCSS(cornerRadius(`${PREFIX}-controls-shape`))}
|
|
308
|
+
${unsafeCSS(paint('-r'))}
|
|
309
|
+
cursor: pointer;
|
|
310
|
+
-webkit-user-select: none;
|
|
311
|
+
user-select: none;
|
|
312
|
+
-webkit-tap-highlight-color: transparent;
|
|
313
|
+
transition-property: background-color, color, opacity;
|
|
314
|
+
transition-duration: ${t('motion-state-duration')};
|
|
315
|
+
transition-timing-function: ${t('motion-state-easing')};
|
|
316
|
+
}
|
|
317
|
+
${iconGlyph('.glyph', { size: `${PREFIX}-controls-icon-size`, selected: ':not(*)' })}
|
|
318
|
+
|
|
319
|
+
/* CLO-16: the close button's hit area meets the minimum target without changing its visual size. */
|
|
320
|
+
${minimumTarget('.close')}
|
|
321
|
+
|
|
322
|
+
/* CLO-14, CLO-17, CLO-18: each state paints the close button from that state's tokens; pressed > focused > hovered. */
|
|
323
|
+
${stateRules(on, {
|
|
324
|
+
hovered: `${paint('-h')}
|
|
325
|
+
opacity: ${T('hovered-opacity')};`,
|
|
326
|
+
focused: `${paint('-f')}
|
|
327
|
+
opacity: ${T('focused-opacity')};`,
|
|
328
|
+
pressed: `${paint('-p')}
|
|
329
|
+
opacity: ${T('pressed-opacity')};`,
|
|
330
|
+
pressedContent: `${paint('-p', false)}
|
|
331
|
+
opacity: ${T('pressed-opacity')};`,
|
|
332
|
+
disabled: '',
|
|
333
|
+
})}
|
|
334
|
+
|
|
335
|
+
/* CLO-18 ripple: grows over motion.feedback-duration and fades over motion.state-duration. */
|
|
336
|
+
${rippleStyles({
|
|
337
|
+
color: '--_cc-p',
|
|
338
|
+
grow: `${PREFIX}-motion-feedback-duration`,
|
|
339
|
+
fade: `${PREFIX}-motion-state-duration`,
|
|
340
|
+
easing: `${PREFIX}-motion-state-easing`,
|
|
341
|
+
})}
|
|
342
|
+
|
|
343
|
+
/* CLO-15, CLO-19: the ring (or the glow) around the focused close button, never animated, its outer stroke in the
|
|
344
|
+
form's focus color: the indicator is drawn on the callout's fill, so the form decides what shows on it. */
|
|
345
|
+
${focusRing(on, { color: 'var(--_focus)' })}
|
|
346
|
+
|
|
347
|
+
/* CLO-1, CLO-19: corner smoothing on the container and the close button (data-tanrei-shape) — after the button's
|
|
348
|
+
own reset, which would otherwise take its corners away. */
|
|
349
|
+
${shape}
|
|
350
|
+
|
|
351
|
+
/* CLO-17: the glyph carries press-hold for PressController. */
|
|
352
|
+
${pressHold('.hold')}
|
|
353
|
+
|
|
354
|
+
@media (prefers-reduced-motion: reduce) {
|
|
355
|
+
.close {
|
|
356
|
+
transition: none;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
/* CLO-24: forced colors remove every fill, so every look gains an edge in the text color, inside the container's
|
|
361
|
+
size: a border the paddings give room for, so nothing moves. The title, the body and the glyph take the text color
|
|
362
|
+
— the glyph whole — and the close button the platform's colors for a button. */
|
|
363
|
+
@media (forced-colors: active) {
|
|
364
|
+
.container {
|
|
365
|
+
border: ${t('outline-width')} solid CanvasText;
|
|
366
|
+
padding-block: calc(${t('container-padding-block')} - ${t('outline-width')});
|
|
367
|
+
padding-inline: calc(${t('container-padding-inline')} - ${t('outline-width')});
|
|
368
|
+
}
|
|
369
|
+
.container.closable {
|
|
370
|
+
padding-inline-end: calc(${t('container-padding-inline-end-with-close')} - ${t('outline-width')});
|
|
371
|
+
}
|
|
372
|
+
.title,
|
|
373
|
+
.body,
|
|
374
|
+
.icon {
|
|
375
|
+
color: CanvasText;
|
|
376
|
+
}
|
|
377
|
+
.close {
|
|
378
|
+
border: ${t('outline-width')} solid ButtonText;
|
|
379
|
+
color: ButtonText;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
`;
|
|
383
|
+
//# sourceMappingURL=callout.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"callout.styles.js","sourceRoot":"","sources":["../../../src/components/callout/callout.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAiB,SAAS,EAAE,SAAS,EAAE,aAAa,EAAE,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index.js';
|
|
3
|
+
import type { TanreiCardVariantRegistry } from '../../registry.js';
|
|
4
|
+
/** The core variants (elevated, filled, outlined), plus any a design system's generated `.d.ts` registers. */
|
|
5
|
+
export type TanreiCardVariant = keyof TanreiCardVariantRegistry;
|
|
6
|
+
/**
|
|
7
|
+
* Sets a group of related content apart from its background, and can be one action that opens what it shows.
|
|
8
|
+
*
|
|
9
|
+
* Contract: specs/card.spec.json. Every visual value comes from `--tanrei-comp-card-*` tokens, one set per variant and
|
|
10
|
+
* state: how a state looks is the active design system's decision, not this component's. How a press is answered and
|
|
11
|
+
* how keyboard focus is drawn are the system's choices of kind (`--tanrei-sys-behavior-*`), and how far its
|
|
12
|
+
* corners ease is the system's amount (`--tanrei-sys-shape-corner-smoothing`), read from the cascade.
|
|
13
|
+
*
|
|
14
|
+
* The content is the default slot: any layout. The card insets it by `comp.card.container.padding` (not with `flush`),
|
|
15
|
+
* clips it to its corners and hands it the variant's content color as the inherited `color`. With `interactive` the
|
|
16
|
+
* whole card is one action with the button role — its content must then hold nothing interactive (reported in debug
|
|
17
|
+
* builds) — and it can be `disabled`, which dims it as a whole. Without `interactive` it has no role (a named group
|
|
18
|
+
* with `label`) and leaves its content's semantics alone.
|
|
19
|
+
*
|
|
20
|
+
* With `href` the whole card is one link — a link card (CRD-19), whether `interactive` is set or not: the
|
|
21
|
+
* shadow root holds an `<a href>` around the slot in place of the element with the button role, drawn as an interactive
|
|
22
|
+
* card is. Enter activates it and Space does not; `click` fires first and cancelling it cancels the navigation.
|
|
23
|
+
* `target="new"` opens a new tab, safely (`noopener`), and reads `target-label` as the link's description; the card
|
|
24
|
+
* draws no mark, because its content is yours — put the icon set's `open_in_new` in it. Its content must hold nothing
|
|
25
|
+
* interactive, as an interactive card's.
|
|
26
|
+
*
|
|
27
|
+
* @tag tanrei-card
|
|
28
|
+
* @slot - The content: any layout of media, text and — only when the card is neither interactive nor a link — actions.
|
|
29
|
+
* @csspart container - The card's shape: its color, elevation, corners and, when interactive or a link, every state and the button or link semantics.
|
|
30
|
+
* @csspart content - The box that insets the content and clips it to the corners.
|
|
31
|
+
* @csspart outline - The outlined variant's edge, drawn above the content.
|
|
32
|
+
* @fires click - An interactive card or a link card was activated by pointer, touch, keyboard or assistive technology. A link card fires it before the browser follows the address; `preventDefault()` cancels the navigation.
|
|
33
|
+
*/
|
|
34
|
+
export declare class TanreiCard extends LitElement {
|
|
35
|
+
private readonly availability;
|
|
36
|
+
static styles: import("lit").CSSResult[];
|
|
37
|
+
static shadowRootOptions: ShadowRootInit;
|
|
38
|
+
static properties: PropertyDeclarations;
|
|
39
|
+
/** How the card separates from its background: by depth (elevated), by tone (filled) or by an edge (outlined). Pick by the background. */
|
|
40
|
+
variant: TanreiCardVariant;
|
|
41
|
+
/** Makes the whole card one pressable action with the button role (it emits click). Its content must then hold nothing interactive. */
|
|
42
|
+
interactive: boolean;
|
|
43
|
+
/** Prevents interaction and removes an interactive card or a link card from the focus order. Ignored for a card that is neither. */
|
|
44
|
+
disabled: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Insets the content by the card's padding. False (the `flush` attribute) lets content reach the card's edges — a
|
|
47
|
+
* photo on top — and that content pads its own text (`--tanrei-comp-card-container-padding`).
|
|
48
|
+
*/
|
|
49
|
+
inset: boolean;
|
|
50
|
+
/** The accessible name: of the action or the link when interactive or a link card (normally its heading's text), of a named group otherwise. */
|
|
51
|
+
label: string;
|
|
52
|
+
/**
|
|
53
|
+
* The destination: a URL, a path or a fragment. Not empty, the whole card is one link (CRD-19) whether `interactive`
|
|
54
|
+
* is set or not: the link role, one tab stop, an `<a href>` around the content, activated by Enter and not by Space.
|
|
55
|
+
* White space is no destination, and a `javascript:` address or one that cannot be read is refused and reported in
|
|
56
|
+
* debug builds (CRD-23).
|
|
57
|
+
*/
|
|
58
|
+
href: string;
|
|
59
|
+
/**
|
|
60
|
+
* Where the destination opens: `same` (here) or `new` (a new tab or window, with `noopener`), which the card says
|
|
61
|
+
* through `targetLabel`; it draws no mark (CRD-21). HTML's `_self` and `_blank` are read as those two; anything else is
|
|
62
|
+
* `same` and reported. Ignored without `href`.
|
|
63
|
+
*/
|
|
64
|
+
target: TanreiLinkTarget;
|
|
65
|
+
/** What assistive technology reads after the link's name while `target` is `new` ("opens in a new tab"): your words, in your language. Required then; ignored otherwise. */
|
|
66
|
+
targetLabel: string;
|
|
67
|
+
/** Web only: forwarded to the anchor's `rel`; `target="new"` adds `noopener` to it. Ignored without `href`. */
|
|
68
|
+
rel: string | null;
|
|
69
|
+
/** Web only: forwarded to the anchor's `download` (the file name; empty for the address's own). Ignored without `href`. */
|
|
70
|
+
download: string | null;
|
|
71
|
+
/** CRD-7: variants a design system adds, and a value the active system does not have (src/primitives/axes.ts). */
|
|
72
|
+
private readonly axes;
|
|
73
|
+
/**
|
|
74
|
+
* CRD-19 … CRD-23: the link the card is while it has a destination, what its anchor carries, and what a debug build
|
|
75
|
+
* is told (src/primitives/link.ts).
|
|
76
|
+
*/
|
|
77
|
+
private readonly link;
|
|
78
|
+
/**
|
|
79
|
+
* CRD-8 / CRD-9: the pressed state, press-hold and the answer the system chooses (src/primitives/press.ts). CRD-20: a
|
|
80
|
+
* link card is pressed by Enter alone; Space is the browser's.
|
|
81
|
+
*/
|
|
82
|
+
private readonly press;
|
|
83
|
+
/** Space activates on key-up, as a native button does, and only when the key went down on the card. */
|
|
84
|
+
private spaceDown;
|
|
85
|
+
private get container();
|
|
86
|
+
/** Whether the card is one pressable thing: an action (`interactive`) or a link (CRD-19). */
|
|
87
|
+
private get pressable();
|
|
88
|
+
/** Whether the card is an action or a link that can be taken now. */
|
|
89
|
+
private get active();
|
|
90
|
+
constructor();
|
|
91
|
+
/** `element.click()` activates an interactive card as a person would, and follows a link card; otherwise it does nothing (CRD-2, CRD-11). */
|
|
92
|
+
click(): void;
|
|
93
|
+
/** CRD-10: where style queries are missing, the focus style is read when focus arrives. */
|
|
94
|
+
private onFocus;
|
|
95
|
+
/** CRD-1: Enter activates on key-down and Space on key-up, as a native button does. */
|
|
96
|
+
private onKeyDown;
|
|
97
|
+
private onKeyUp;
|
|
98
|
+
private onBlur;
|
|
99
|
+
/** CRD-15: an interactive card's or a link card's content holds nothing interactive; a debug build names what it found, on every slot change. */
|
|
100
|
+
private inspectContent;
|
|
101
|
+
protected updated(changed: PropertyValues<this>): void;
|
|
102
|
+
protected render(): import("lit").TemplateResult;
|
|
103
|
+
}
|
|
104
|
+
declare global {
|
|
105
|
+
interface HTMLElementTagNameMap {
|
|
106
|
+
'tanrei-card': TanreiCard;
|
|
107
|
+
}
|
|
108
|
+
}
|