@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,842 @@
|
|
|
1
|
+
import { css, unsafeCSS } from 'lit';
|
|
2
|
+
import { conditionBlock, focusRing, minimumTarget, pressHold, rippleStyles, stateRules } from '../../primitives/index.js';
|
|
3
|
+
import { cornerRadius, shape } from '../../styles/shape.js';
|
|
4
|
+
// Every visual value is a token (tokens/comp/date-time-picker.tokens.json). The selectors have two conditions —
|
|
5
|
+
// unselected and selected — which are their state variants: each colors the container, the label and the
|
|
6
|
+
// outline in every state. A range field reads the same condition tokens (DTM-15): selected is the end being set, as it
|
|
7
|
+
// is the unit being set — and a wheel that a number is typed into reads the selected ones at rest (DTM-43). How a state looks is the design system's decision; the picker only says which
|
|
8
|
+
// state's tokens are drawn. The components it places — the calendar, the tabs, Cancel and OK — keep their own tokens.
|
|
9
|
+
const PREFIX = '--tanrei-comp-date-time-picker';
|
|
10
|
+
const T = (name) => `var(${PREFIX}-${name})`;
|
|
11
|
+
const t = (name) => unsafeCSS(T(name));
|
|
12
|
+
/** The window less the safe area and the margins on each side (DTM-1): what a modal picker is centred in. */
|
|
13
|
+
const INLINE_ROOM = `calc(100% - 2 * ${T('modal-container-margin')} - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px))`;
|
|
14
|
+
const BLOCK_ROOM = `calc(100% - 2 * ${T('modal-container-margin')} - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px))`;
|
|
15
|
+
/** What each condition colors in every state, as private properties (`--_c-h`: the container, hovered). */
|
|
16
|
+
const SELECTOR_PARTS = { c: 'selector-container-color', l: 'selector-label-color', o: 'selector-outline-color', w: 'selector-outline-width' };
|
|
17
|
+
/**
|
|
18
|
+
* DTM-27, DTM-30: each state sets, on the selector, the current value of every part from that state's tokens of its
|
|
19
|
+
* condition, and the picker's opacity for that state; pressed > focused > hovered. Under ripple and dim everything but
|
|
20
|
+
* the container color comes from the pressed tokens; under none nothing changes.
|
|
21
|
+
*/
|
|
22
|
+
function conditionRules(on, parts) {
|
|
23
|
+
const set = (suffix, skip) => Object.keys(parts)
|
|
24
|
+
.filter((key) => key !== skip)
|
|
25
|
+
.map((key) => `\n --_${key}: var(--_${key}${suffix});`)
|
|
26
|
+
.join('');
|
|
27
|
+
const opacity = (state) => `\n opacity: var(${PREFIX}-${state}-opacity);`;
|
|
28
|
+
const where = (state) => `${on}:where(${state})`;
|
|
29
|
+
return `
|
|
30
|
+
${on} {${set('-r')}
|
|
31
|
+
}
|
|
32
|
+
${stateRules(where, {
|
|
33
|
+
hovered: `${set('-h')}${opacity('hovered')}`,
|
|
34
|
+
focused: `${set('-f')}${opacity('focused')}`,
|
|
35
|
+
pressed: `${set('-p')}${opacity('pressed')}`,
|
|
36
|
+
pressedContent: `${set('-p', 'c')}${opacity('pressed')}`,
|
|
37
|
+
disabled: '',
|
|
38
|
+
})}`;
|
|
39
|
+
}
|
|
40
|
+
const WHEEL = `${T('motion-wheel-duration')} ${T('motion-wheel-easing')}`;
|
|
41
|
+
const STATE = `${T('motion-state-duration')} ${T('motion-state-easing')}`;
|
|
42
|
+
/** What is drawn from the selector's condition tokens: a selector of the time display, and a range field (DTM-15, DTM-27). */
|
|
43
|
+
const FIELD = ':is(.selector, .range-field)';
|
|
44
|
+
/** The focus condition of a control whose keyboard focus the picker tracks itself (`data-ring`): focus, however the browser reads it. */
|
|
45
|
+
const ownFocus = (focus) => focus.replace(':focus-visible', ':focus');
|
|
46
|
+
export const styles = css `
|
|
47
|
+
:host {
|
|
48
|
+
display: contents;
|
|
49
|
+
/* DTM-32: the selectors sit side by side, and a wheel's rows one above the other, so each is at least the target. */
|
|
50
|
+
--_target: var(--tanrei-sys-target-pointer);
|
|
51
|
+
}
|
|
52
|
+
@media (pointer: coarse) {
|
|
53
|
+
:host {
|
|
54
|
+
--_target: var(--tanrei-sys-target-touch);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.surface {
|
|
59
|
+
box-sizing: border-box;
|
|
60
|
+
flex-direction: column;
|
|
61
|
+
margin: 0;
|
|
62
|
+
border: 0;
|
|
63
|
+
padding: 0;
|
|
64
|
+
overflow: hidden;
|
|
65
|
+
color: ${t('separator-color')};
|
|
66
|
+
text-align: start;
|
|
67
|
+
outline: none;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* DTM-1: a native modal <dialog> in the top layer, centred in the window above the keyboard, at least modal.margin
|
|
71
|
+
from every edge; its color, elevation and corners (eased by the smoothing). */
|
|
72
|
+
.surface.modal {
|
|
73
|
+
position: fixed;
|
|
74
|
+
inset: 0 0 var(--_keyboard, 0px) 0;
|
|
75
|
+
margin: auto;
|
|
76
|
+
inline-size: fit-content;
|
|
77
|
+
max-inline-size: ${unsafeCSS(INLINE_ROOM)};
|
|
78
|
+
block-size: fit-content;
|
|
79
|
+
max-block-size: ${unsafeCSS(BLOCK_ROOM)};
|
|
80
|
+
background: ${t('modal-container-color')};
|
|
81
|
+
box-shadow: ${t('modal-container-elevation')};
|
|
82
|
+
${unsafeCSS(cornerRadius(`${PREFIX}-modal-container-shape`))}
|
|
83
|
+
/* DTM-35: out, it fades over the close motion — kept in the top layer and displayed until it has. */
|
|
84
|
+
opacity: 0;
|
|
85
|
+
transition-property: opacity, scale, display, overlay;
|
|
86
|
+
transition-duration: ${t('modal-motion-close-duration')};
|
|
87
|
+
transition-timing-function: ${t('modal-motion-close-easing')};
|
|
88
|
+
transition-behavior: allow-discrete;
|
|
89
|
+
}
|
|
90
|
+
.surface.modal[open] {
|
|
91
|
+
display: flex;
|
|
92
|
+
opacity: 1;
|
|
93
|
+
/* DTM-35: in, it fades in and grows about its centre from enter-scale over the open motion. */
|
|
94
|
+
transition-duration: ${t('modal-motion-open-duration')};
|
|
95
|
+
transition-timing-function: ${t('modal-motion-open-easing')};
|
|
96
|
+
}
|
|
97
|
+
@starting-style {
|
|
98
|
+
.surface.modal[open] {
|
|
99
|
+
opacity: 0;
|
|
100
|
+
scale: ${t('modal-motion-enter-scale')};
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
/* DTM-1: the scrim, over the whole window behind the picker, fading with it. */
|
|
104
|
+
.surface.modal::backdrop {
|
|
105
|
+
background: ${t('modal-scrim-color')};
|
|
106
|
+
opacity: 0;
|
|
107
|
+
transition-property: opacity, display, overlay;
|
|
108
|
+
transition-duration: ${t('modal-motion-close-duration')};
|
|
109
|
+
transition-timing-function: ${t('modal-motion-close-easing')};
|
|
110
|
+
transition-behavior: allow-discrete;
|
|
111
|
+
}
|
|
112
|
+
.surface.modal[open]::backdrop {
|
|
113
|
+
opacity: 1;
|
|
114
|
+
transition-duration: ${t('modal-motion-open-duration')};
|
|
115
|
+
transition-timing-function: ${t('modal-motion-open-easing')};
|
|
116
|
+
}
|
|
117
|
+
@starting-style {
|
|
118
|
+
.surface.modal[open]::backdrop {
|
|
119
|
+
opacity: 0;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
/* DTM-35: where motion is reduced a modal picker only fades. */
|
|
123
|
+
@media (prefers-reduced-motion: reduce) {
|
|
124
|
+
.surface.modal {
|
|
125
|
+
transition-property: opacity, display, overlay;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/* DTM-2: a docked picker is a manual popover in the top layer, placed by script below its anchor; its color,
|
|
130
|
+
elevation and corners. Its placement reads its two lengths through real properties. */
|
|
131
|
+
.surface.docked {
|
|
132
|
+
position: fixed;
|
|
133
|
+
inset: auto;
|
|
134
|
+
inline-size: fit-content;
|
|
135
|
+
max-inline-size: 100vw;
|
|
136
|
+
background: ${t('docked-container-color')};
|
|
137
|
+
box-shadow: ${t('docked-container-elevation')};
|
|
138
|
+
${unsafeCSS(cornerRadius(`${PREFIX}-docked-container-shape`))}
|
|
139
|
+
scroll-margin-block-start: ${t('docked-offset')};
|
|
140
|
+
scroll-margin-block-end: ${t('docked-viewport-margin')};
|
|
141
|
+
}
|
|
142
|
+
.surface.docked:popover-open,
|
|
143
|
+
.surface.inline {
|
|
144
|
+
display: flex;
|
|
145
|
+
}
|
|
146
|
+
/* In place (the inline test attribute): at its natural size where it stands, without the overlay. */
|
|
147
|
+
.surface.inline {
|
|
148
|
+
position: relative;
|
|
149
|
+
inset: auto;
|
|
150
|
+
opacity: 1;
|
|
151
|
+
max-block-size: none;
|
|
152
|
+
}
|
|
153
|
+
/* DTM-35: a docked picker fades in and grows from the edge that faces the anchor; it fades out. At once where motion is reduced. */
|
|
154
|
+
.surface.docked.entering {
|
|
155
|
+
transform-origin: top;
|
|
156
|
+
animation: docked-open ${t('docked-motion-open-duration')} ${t('docked-motion-open-easing')} both;
|
|
157
|
+
}
|
|
158
|
+
.surface.docked.entering.side-top {
|
|
159
|
+
transform-origin: bottom;
|
|
160
|
+
}
|
|
161
|
+
.surface.docked.leaving {
|
|
162
|
+
animation: docked-close ${t('docked-motion-close-duration')} ${t('docked-motion-close-easing')} both;
|
|
163
|
+
}
|
|
164
|
+
@keyframes docked-open {
|
|
165
|
+
from {
|
|
166
|
+
opacity: 0;
|
|
167
|
+
transform: scaleY(0);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
@keyframes docked-close {
|
|
171
|
+
to {
|
|
172
|
+
opacity: 0;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
@media (prefers-reduced-motion: reduce) {
|
|
176
|
+
.surface.docked.entering,
|
|
177
|
+
.surface.docked.leaving {
|
|
178
|
+
animation: none;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/* DTM-10: the title row — the label at the start, the entry-mode tabs at the end — and, in a modal picker with a date,
|
|
183
|
+
the pending value below it, header.gap apart, and the divider below the header. It grows with enlarged text; the
|
|
184
|
+
value wraps. */
|
|
185
|
+
.header {
|
|
186
|
+
display: flex;
|
|
187
|
+
flex: none;
|
|
188
|
+
flex-direction: column;
|
|
189
|
+
gap: ${t('header-gap')};
|
|
190
|
+
padding-block: ${t('header-padding-block')};
|
|
191
|
+
padding-inline: ${t('header-padding-inline-start')} ${t('header-padding-inline-end')};
|
|
192
|
+
}
|
|
193
|
+
.title-row {
|
|
194
|
+
display: flex;
|
|
195
|
+
align-items: center;
|
|
196
|
+
gap: ${t('header-gap')};
|
|
197
|
+
}
|
|
198
|
+
.title {
|
|
199
|
+
flex: 1 1 auto;
|
|
200
|
+
min-inline-size: 0;
|
|
201
|
+
font: ${t('header-label-typescale-font')};
|
|
202
|
+
letter-spacing: ${t('header-label-typescale-letter-spacing')};
|
|
203
|
+
color: ${t('header-label-color')};
|
|
204
|
+
overflow-wrap: break-word;
|
|
205
|
+
}
|
|
206
|
+
.entry-tabs {
|
|
207
|
+
flex: none;
|
|
208
|
+
max-inline-size: 100%;
|
|
209
|
+
}
|
|
210
|
+
/* (The header's value alone: a selector's and a range field's text carry the same class, in their own roles.) */
|
|
211
|
+
.header > .value {
|
|
212
|
+
font: ${t('header-value-typescale-font')};
|
|
213
|
+
letter-spacing: ${t('header-value-typescale-letter-spacing')};
|
|
214
|
+
color: ${t('header-value-color')};
|
|
215
|
+
overflow-wrap: break-word;
|
|
216
|
+
}
|
|
217
|
+
.placeholder {
|
|
218
|
+
color: ${t('header-placeholder-color')};
|
|
219
|
+
}
|
|
220
|
+
.divider {
|
|
221
|
+
flex: none;
|
|
222
|
+
block-size: ${t('divider-width')};
|
|
223
|
+
background: ${t('divider-color')};
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/* DTM-9: the body — the calendar above the time section (vertical) or beside it (horizontal), container.gap apart,
|
|
227
|
+
inset by the padding. DTM-36: the header and the actions stay; the body scrolls between them; with no room left for
|
|
228
|
+
them, everything scrolls together. */
|
|
229
|
+
.body {
|
|
230
|
+
--_line: max(${t('wheel-row-height')}, var(--_target));
|
|
231
|
+
display: flex;
|
|
232
|
+
flex: 0 1 auto;
|
|
233
|
+
flex-direction: column;
|
|
234
|
+
align-items: center;
|
|
235
|
+
gap: ${t('container-gap')};
|
|
236
|
+
min-block-size: 0;
|
|
237
|
+
padding-block: ${t('container-padding-block')};
|
|
238
|
+
padding-inline: ${t('container-padding-inline')};
|
|
239
|
+
overflow-y: auto;
|
|
240
|
+
overscroll-behavior: contain;
|
|
241
|
+
}
|
|
242
|
+
.surface[data-layout='horizontal'] .body {
|
|
243
|
+
flex-direction: row;
|
|
244
|
+
align-items: flex-start;
|
|
245
|
+
justify-content: center;
|
|
246
|
+
}
|
|
247
|
+
.surface.whole {
|
|
248
|
+
overflow-y: auto;
|
|
249
|
+
}
|
|
250
|
+
.surface.whole .body {
|
|
251
|
+
flex: none;
|
|
252
|
+
overflow: visible;
|
|
253
|
+
}
|
|
254
|
+
.calendar {
|
|
255
|
+
flex: none;
|
|
256
|
+
max-inline-size: 100%;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/* DTM-12: the time section — the range display across its whole width, then the time display and the wheels or the
|
|
260
|
+
dial, each centred, container.gap apart; the time display is the row next to the dial. No row of tabs. */
|
|
261
|
+
.time {
|
|
262
|
+
display: flex;
|
|
263
|
+
flex: none;
|
|
264
|
+
flex-direction: column;
|
|
265
|
+
align-items: center;
|
|
266
|
+
gap: ${t('container-gap')};
|
|
267
|
+
max-inline-size: 100%;
|
|
268
|
+
/* Never narrower than the dial (as wheel.height is the dial's diameter). */
|
|
269
|
+
min-inline-size: ${t('dial-container-size')};
|
|
270
|
+
}
|
|
271
|
+
.surface.mode-date-time[data-layout='vertical'] .time {
|
|
272
|
+
align-self: stretch;
|
|
273
|
+
}
|
|
274
|
+
/* DTM-12: what the other entry mode needs of the width — its rows, measured and never drawn (no height, nothing
|
|
275
|
+
shown, no gap of its own) — so that the section is as wide in the one mode as in the other. */
|
|
276
|
+
.other-mode {
|
|
277
|
+
display: flex;
|
|
278
|
+
flex: none;
|
|
279
|
+
flex-direction: column;
|
|
280
|
+
align-items: center;
|
|
281
|
+
block-size: 0;
|
|
282
|
+
margin-block-start: calc(-1 * ${t('container-gap')});
|
|
283
|
+
overflow: hidden;
|
|
284
|
+
visibility: hidden;
|
|
285
|
+
pointer-events: none;
|
|
286
|
+
}
|
|
287
|
+
.other-mode .dial-room {
|
|
288
|
+
flex: none;
|
|
289
|
+
inline-size: ${t('dial-container-size')};
|
|
290
|
+
}
|
|
291
|
+
/* DTM-9: mode time, horizontal, the dial mode — the range display across both columns, and below it the time display
|
|
292
|
+
in a start column and the dial in an end column, each centred on the other. The wheels mode has one row below the
|
|
293
|
+
range display and is drawn as the vertical layout is — as wide as the dial mode's two columns (DTM-12). */
|
|
294
|
+
.surface.mode-time[data-layout='horizontal'] .time.by-dial {
|
|
295
|
+
display: grid;
|
|
296
|
+
grid-template-columns: auto auto;
|
|
297
|
+
column-gap: ${t('container-gap')};
|
|
298
|
+
row-gap: ${t('container-gap')};
|
|
299
|
+
align-items: center;
|
|
300
|
+
justify-items: center;
|
|
301
|
+
align-content: center;
|
|
302
|
+
}
|
|
303
|
+
.surface.mode-time[data-layout='horizontal'] .time.by-dial > .display {
|
|
304
|
+
grid-column: 1;
|
|
305
|
+
}
|
|
306
|
+
.surface.mode-time[data-layout='horizontal'] .time.by-dial > .dial {
|
|
307
|
+
grid-column: 2;
|
|
308
|
+
}
|
|
309
|
+
.surface.mode-time[data-layout='horizontal'] .time.by-dial > .other-mode {
|
|
310
|
+
display: none;
|
|
311
|
+
}
|
|
312
|
+
.surface.mode-time[data-layout='horizontal'] .other-mode {
|
|
313
|
+
flex-direction: row;
|
|
314
|
+
gap: ${t('container-gap')};
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
/* DTM-15, DTM-36, DTM-39: the range display — the start's range field, an en dash and the end's, in reading order (the
|
|
318
|
+
start at the right of the dash, right to left), range-field.gap apart, across the whole width of the time section
|
|
319
|
+
(both columns of mode time's horizontal layout): it is the first branch. The two fields are equally wide — never
|
|
320
|
+
less than the wider one needs — so the dash is at the middle; in a narrow section they narrow equally and their
|
|
321
|
+
text wraps. */
|
|
322
|
+
.range-display {
|
|
323
|
+
display: grid;
|
|
324
|
+
flex: none;
|
|
325
|
+
align-self: stretch;
|
|
326
|
+
justify-self: stretch;
|
|
327
|
+
grid-column: 1 / -1;
|
|
328
|
+
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
|
|
329
|
+
align-items: center;
|
|
330
|
+
gap: ${t('range-field-gap')};
|
|
331
|
+
max-inline-size: 100%;
|
|
332
|
+
}
|
|
333
|
+
/* DTM-15, DTM-32: a range field — at least its height (and the target in each dimension: the two sit side by side),
|
|
334
|
+
padded at each end, its time centred in its role, on the selector's shape. Its colors are the selector's, below. */
|
|
335
|
+
.range-field {
|
|
336
|
+
all: unset;
|
|
337
|
+
box-sizing: border-box;
|
|
338
|
+
position: relative;
|
|
339
|
+
isolation: isolate;
|
|
340
|
+
display: flex;
|
|
341
|
+
align-items: center;
|
|
342
|
+
justify-content: center;
|
|
343
|
+
min-inline-size: var(--_target);
|
|
344
|
+
min-block-size: max(${t('range-field-container-height')}, var(--_target));
|
|
345
|
+
padding-inline: ${t('range-field-container-padding-inline')};
|
|
346
|
+
font: ${t('range-field-label-typescale-font')};
|
|
347
|
+
letter-spacing: ${t('range-field-label-typescale-letter-spacing')};
|
|
348
|
+
text-align: center;
|
|
349
|
+
overflow-wrap: anywhere;
|
|
350
|
+
${unsafeCSS(cornerRadius(`${PREFIX}-selector-container-shape`))}
|
|
351
|
+
cursor: pointer;
|
|
352
|
+
-webkit-user-select: none;
|
|
353
|
+
user-select: none;
|
|
354
|
+
-webkit-tap-highlight-color: transparent;
|
|
355
|
+
outline: none;
|
|
356
|
+
}
|
|
357
|
+
/* DTM-15: the dash, in the range field's role and the separator's color; hidden from assistive technology. */
|
|
358
|
+
.range-separator {
|
|
359
|
+
font: ${t('range-field-label-typescale-font')};
|
|
360
|
+
letter-spacing: ${t('range-field-label-typescale-letter-spacing')};
|
|
361
|
+
color: ${t('separator-color')};
|
|
362
|
+
-webkit-user-select: none;
|
|
363
|
+
user-select: none;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
/* DTM-18, DTM-39: the wheels — the hour wheel, the separator and the minute wheel, wheel.gap apart, always left to
|
|
367
|
+
right (.digits) — and, with the 12-hour clock, the period wheel period.gap from them, at the side the locale and
|
|
368
|
+
the layout direction give (DTM-14, DTM-46). Each wheel's chosen value stands on a selection container of its own,
|
|
369
|
+
behind its middle row (wheel.selection.span: each); where the span is joined, one band lies behind every middle
|
|
370
|
+
row and the separator. */
|
|
371
|
+
.wheels {
|
|
372
|
+
--_row: max(${t('wheel-row-height')}, var(--_target));
|
|
373
|
+
position: relative;
|
|
374
|
+
isolation: isolate;
|
|
375
|
+
display: flex;
|
|
376
|
+
flex: none;
|
|
377
|
+
align-items: center;
|
|
378
|
+
gap: ${t('period-gap')};
|
|
379
|
+
}
|
|
380
|
+
.wheels > .digits {
|
|
381
|
+
display: flex;
|
|
382
|
+
flex: none;
|
|
383
|
+
align-items: center;
|
|
384
|
+
gap: ${t('wheel-gap')};
|
|
385
|
+
}
|
|
386
|
+
.wheels > .band,
|
|
387
|
+
.wheel > .ground {
|
|
388
|
+
position: absolute;
|
|
389
|
+
z-index: -1;
|
|
390
|
+
inset-inline: 0;
|
|
391
|
+
inset-block-start: calc(50% - var(--_row) / 2);
|
|
392
|
+
block-size: var(--_row);
|
|
393
|
+
box-sizing: border-box;
|
|
394
|
+
${unsafeCSS(cornerRadius(`${PREFIX}-wheel-selection-container-shape`))}
|
|
395
|
+
}
|
|
396
|
+
.wheels[data-span='joined'] > .band,
|
|
397
|
+
.wheels[data-span='each'] .wheel > .ground {
|
|
398
|
+
background: ${t('wheel-selection-container-color')};
|
|
399
|
+
}
|
|
400
|
+
/* DTM-43, DTM-27: while a number is typed into a wheel, its selection container — its own part of a joined one — its
|
|
401
|
+
value and its outline are the selected selector's, changing over the state motion. */
|
|
402
|
+
.wheel > .ground {
|
|
403
|
+
box-shadow: inset 0 0 0 ${t('selected-selector-outline-width')} transparent;
|
|
404
|
+
transition:
|
|
405
|
+
background-color ${unsafeCSS(STATE)},
|
|
406
|
+
box-shadow ${unsafeCSS(STATE)};
|
|
407
|
+
}
|
|
408
|
+
.wheels .wheel.typing > .ground {
|
|
409
|
+
background: ${t('selected-selector-container-color')};
|
|
410
|
+
box-shadow: inset 0 0 0 ${t('selected-selector-outline-width')} ${t('selected-selector-outline-color')};
|
|
411
|
+
}
|
|
412
|
+
.wheel {
|
|
413
|
+
position: relative;
|
|
414
|
+
/* Its own stacking context: the selection container lies behind the rows, above what is behind the wheel. */
|
|
415
|
+
isolation: isolate;
|
|
416
|
+
flex: none;
|
|
417
|
+
inline-size: ${t('wheel-width')};
|
|
418
|
+
block-size: max(${t('wheel-height')}, var(--_row));
|
|
419
|
+
overflow: hidden;
|
|
420
|
+
font: ${t('wheel-label-typescale-font')};
|
|
421
|
+
letter-spacing: ${t('wheel-label-typescale-letter-spacing')};
|
|
422
|
+
cursor: grab;
|
|
423
|
+
touch-action: none;
|
|
424
|
+
-webkit-user-select: none;
|
|
425
|
+
user-select: none;
|
|
426
|
+
-webkit-tap-highlight-color: transparent;
|
|
427
|
+
outline: none;
|
|
428
|
+
}
|
|
429
|
+
.wheel.following {
|
|
430
|
+
cursor: grabbing;
|
|
431
|
+
}
|
|
432
|
+
/* DTM-46: the period wheel — at least period.container.width (and the target) wide, growing with a longer name, as
|
|
433
|
+
tall as the others, its two names in period.label.typescale. The names are measured in the flow (.measure, never
|
|
434
|
+
drawn); the rows are placed as any wheel's. */
|
|
435
|
+
.wheel.period {
|
|
436
|
+
display: grid;
|
|
437
|
+
inline-size: auto;
|
|
438
|
+
min-inline-size: max(${t('period-container-width')}, var(--_target));
|
|
439
|
+
font: ${t('period-label-typescale-font')};
|
|
440
|
+
letter-spacing: ${t('period-label-typescale-letter-spacing')};
|
|
441
|
+
}
|
|
442
|
+
.measure {
|
|
443
|
+
display: grid;
|
|
444
|
+
block-size: 0;
|
|
445
|
+
overflow: hidden;
|
|
446
|
+
visibility: hidden;
|
|
447
|
+
white-space: nowrap;
|
|
448
|
+
}
|
|
449
|
+
/* DTM-14, DTM-46: the two names share one place, so the period is as wide as the wider needs whichever it shows. */
|
|
450
|
+
.name {
|
|
451
|
+
grid-area: 1 / 1;
|
|
452
|
+
text-align: center;
|
|
453
|
+
}
|
|
454
|
+
.name[data-off] {
|
|
455
|
+
visibility: hidden;
|
|
456
|
+
}
|
|
457
|
+
.rows {
|
|
458
|
+
position: absolute;
|
|
459
|
+
inset: 0;
|
|
460
|
+
}
|
|
461
|
+
/* DTM-19: each row at its place from the band; a settle, a key and a tab move them over the wheel motion. */
|
|
462
|
+
.row {
|
|
463
|
+
position: absolute;
|
|
464
|
+
inset-inline: 0;
|
|
465
|
+
inset-block-start: calc(50% - var(--_row) / 2);
|
|
466
|
+
display: grid;
|
|
467
|
+
place-items: center;
|
|
468
|
+
block-size: var(--_row);
|
|
469
|
+
translate: 0 calc(var(--_at) * var(--_row));
|
|
470
|
+
color: ${t('wheel-label-color')};
|
|
471
|
+
white-space: nowrap;
|
|
472
|
+
transition:
|
|
473
|
+
translate ${unsafeCSS(WHEEL)},
|
|
474
|
+
color ${unsafeCSS(WHEEL)};
|
|
475
|
+
}
|
|
476
|
+
.row.on {
|
|
477
|
+
color: ${t('wheel-selected-label-color')};
|
|
478
|
+
}
|
|
479
|
+
.wheel.typing .row.on {
|
|
480
|
+
color: ${t('selected-selector-label-color')};
|
|
481
|
+
}
|
|
482
|
+
/* DTM-44: what has been typed stands on the middle row in place of the value. */
|
|
483
|
+
.wheel.typed .row.on {
|
|
484
|
+
visibility: hidden;
|
|
485
|
+
}
|
|
486
|
+
.wheel.following .row {
|
|
487
|
+
transition: none;
|
|
488
|
+
}
|
|
489
|
+
/* DTM-20, DTM-43: the wheel's control is its middle row — a native input that is a spin button, read-only until a
|
|
490
|
+
number is typed into it (so that a drag raises no on-screen keyboard), showing only the digits typed. No caret and
|
|
491
|
+
no selection: an entry is two digits at most. */
|
|
492
|
+
.entry {
|
|
493
|
+
all: unset;
|
|
494
|
+
box-sizing: border-box;
|
|
495
|
+
position: absolute;
|
|
496
|
+
inset-inline: 0;
|
|
497
|
+
inset-block-start: calc(50% - var(--_row) / 2);
|
|
498
|
+
inline-size: 100%;
|
|
499
|
+
block-size: var(--_row);
|
|
500
|
+
font: inherit;
|
|
501
|
+
letter-spacing: inherit;
|
|
502
|
+
color: ${t('selected-selector-label-color')};
|
|
503
|
+
text-align: center;
|
|
504
|
+
caret-color: transparent;
|
|
505
|
+
cursor: inherit;
|
|
506
|
+
/* Unprefixed on purpose: Safari reads only the prefixed property, and an input it applies to takes no text. */
|
|
507
|
+
user-select: none;
|
|
508
|
+
touch-action: none;
|
|
509
|
+
}
|
|
510
|
+
.entry::selection {
|
|
511
|
+
background: transparent;
|
|
512
|
+
}
|
|
513
|
+
/* DTM-20: the keyboard focus is drawn around the wheel's selection container (its part of a joined one). */
|
|
514
|
+
.wheel .ring {
|
|
515
|
+
position: absolute;
|
|
516
|
+
inset-inline: 0;
|
|
517
|
+
inset-block-start: calc(50% - var(--_row) / 2);
|
|
518
|
+
block-size: var(--_row);
|
|
519
|
+
pointer-events: none;
|
|
520
|
+
${unsafeCSS(cornerRadius(`${PREFIX}-wheel-selection-container-shape`))}
|
|
521
|
+
}
|
|
522
|
+
/* The picker says which wheel's focus is keyboard focus (data-ring): the hour's and the minute's control is an input,
|
|
523
|
+
which matches :focus-visible however it was focused, and the period's is not one, whose match after a press and a
|
|
524
|
+
key is each browser's guess (DTM-47). So the condition is focus, and the ring is the picker's to show. */
|
|
525
|
+
${focusRing((focus) => `.wheel[data-ring]:has(> .entry${ownFocus(focus)}) .ring`, { inside: true })}
|
|
526
|
+
|
|
527
|
+
/* DTM-21, DTM-39: the time display — the hour selector, the separator and the minute selector, always left to right
|
|
528
|
+
(.digits) — and, with the 12-hour clock, the period selector period.gap from them, at the side the locale and the
|
|
529
|
+
layout direction give (DTM-14). */
|
|
530
|
+
.display {
|
|
531
|
+
display: flex;
|
|
532
|
+
flex: none;
|
|
533
|
+
align-items: stretch;
|
|
534
|
+
gap: ${t('period-gap')};
|
|
535
|
+
max-inline-size: 100%;
|
|
536
|
+
}
|
|
537
|
+
.display > .digits {
|
|
538
|
+
display: flex;
|
|
539
|
+
flex: none;
|
|
540
|
+
align-items: center;
|
|
541
|
+
gap: ${t('selector-gap')};
|
|
542
|
+
}
|
|
543
|
+
.separator {
|
|
544
|
+
flex: none;
|
|
545
|
+
font: ${t('separator-typescale-font')};
|
|
546
|
+
letter-spacing: ${t('separator-typescale-letter-spacing')};
|
|
547
|
+
color: ${t('separator-color')};
|
|
548
|
+
-webkit-user-select: none;
|
|
549
|
+
user-select: none;
|
|
550
|
+
}
|
|
551
|
+
.wheels .separator {
|
|
552
|
+
font: ${t('wheel-label-typescale-font')};
|
|
553
|
+
letter-spacing: ${t('wheel-label-typescale-letter-spacing')};
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
/* DTM-21, DTM-27, DTM-32: a selector — at least its width and height (and the target), its corners eased by the
|
|
557
|
+
smoothing, its condition's container, label and outline in each state, the value centred in its role. The outline is
|
|
558
|
+
drawn inside its edge, so that its width never moves anything. */
|
|
559
|
+
${unsafeCSS(conditionBlock(PREFIX, 'unselected', SELECTOR_PARTS, FIELD))}
|
|
560
|
+
${unsafeCSS(conditionBlock(PREFIX, 'selected', SELECTOR_PARTS, `${FIELD}.selected`))}
|
|
561
|
+
.selector {
|
|
562
|
+
box-sizing: border-box;
|
|
563
|
+
position: relative;
|
|
564
|
+
/* Its own stacking context: the ripple sits above the container color and below the value. */
|
|
565
|
+
isolation: isolate;
|
|
566
|
+
display: flex;
|
|
567
|
+
flex: none;
|
|
568
|
+
align-items: center;
|
|
569
|
+
justify-content: center;
|
|
570
|
+
min-inline-size: max(${t('selector-container-width')}, var(--_target));
|
|
571
|
+
min-block-size: max(${t('selector-container-height')}, var(--_target));
|
|
572
|
+
font: ${t('selector-label-typescale-font')};
|
|
573
|
+
letter-spacing: ${t('selector-label-typescale-letter-spacing')};
|
|
574
|
+
${unsafeCSS(cornerRadius(`${PREFIX}-selector-container-shape`))}
|
|
575
|
+
cursor: pointer;
|
|
576
|
+
-webkit-user-select: none;
|
|
577
|
+
user-select: none;
|
|
578
|
+
-webkit-tap-highlight-color: transparent;
|
|
579
|
+
outline: none;
|
|
580
|
+
}
|
|
581
|
+
/* DTM-14: the period selector — at least period.container.width (and the target) wide, as tall as the selectors, its
|
|
582
|
+
name in period.label.typescale. It is a selector of the unselected condition in every state: nothing here colors it. */
|
|
583
|
+
.selector.period {
|
|
584
|
+
min-inline-size: max(${t('period-container-width')}, var(--_target));
|
|
585
|
+
font: ${t('period-label-typescale-font')};
|
|
586
|
+
letter-spacing: ${t('period-label-typescale-letter-spacing')};
|
|
587
|
+
}
|
|
588
|
+
.selector.period > .value {
|
|
589
|
+
display: grid;
|
|
590
|
+
white-space: nowrap;
|
|
591
|
+
}
|
|
592
|
+
/* DTM-15, DTM-27: a selector and a range field paint their condition's container, label and outline. */
|
|
593
|
+
${unsafeCSS(FIELD)} {
|
|
594
|
+
background: var(--_c);
|
|
595
|
+
color: var(--_l);
|
|
596
|
+
box-shadow: inset 0 0 0 var(--_w) var(--_o);
|
|
597
|
+
/* DTM-27: the colors change over the state motion, between states and between conditions. */
|
|
598
|
+
transition-property: background-color, color, box-shadow, opacity;
|
|
599
|
+
transition-duration: ${t('motion-state-duration')};
|
|
600
|
+
transition-timing-function: ${t('motion-state-easing')};
|
|
601
|
+
}
|
|
602
|
+
${unsafeCSS(conditionRules(FIELD, SELECTOR_PARTS))}
|
|
603
|
+
/* DTM-29, DTM-30: pressed is data-pressed (PressController), held for press-hold; its carrier is the value. */
|
|
604
|
+
${pressHold('.value')}
|
|
605
|
+
.value {
|
|
606
|
+
pointer-events: none;
|
|
607
|
+
}
|
|
608
|
+
.hold {
|
|
609
|
+
display: none;
|
|
610
|
+
}
|
|
611
|
+
/* DTM-30 ripple: the pressed container color of the selector's condition, grown over motion.feedback-duration and
|
|
612
|
+
faded over motion.state-duration, inside its outline, clipped to its corners. */
|
|
613
|
+
${rippleStyles({ color: '--_c-p', inset: '--_w', grow: `${PREFIX}-motion-feedback-duration`, fade: `${PREFIX}-motion-state-duration`, easing: `${PREFIX}-motion-state-easing` })}
|
|
614
|
+
/* DTM-28, DTM-31: the ring (or the glow) around a selector or a range field for keyboard focus only, never animated. */
|
|
615
|
+
/* DTM-47: the period selector's ring is the picker's to show too (data-ring), as the period wheel's is; and a range
|
|
616
|
+
field's, which a key pressed after a press of the pointer must show in every engine. */
|
|
617
|
+
${focusRing((focus) => `:is(.selector:not(.period)${focus}, :is(.selector.period, .range-field)[data-ring]${ownFocus(focus)})`)}
|
|
618
|
+
${minimumTarget('.selector')}
|
|
619
|
+
|
|
620
|
+
/* DTM-23, DTM-24: the dial — a circle of dial.container.size, running clockwise in every direction; its numbers on
|
|
621
|
+
two rings; the handle over the pending value joined to the centre by the track; the part of a number under the handle
|
|
622
|
+
in selected-label.color (a copy of the numbers inside the handle, turned back so that it lies over the dial). */
|
|
623
|
+
.dial {
|
|
624
|
+
--_size: ${t('dial-container-size')};
|
|
625
|
+
--_handle: ${t('dial-handle-size')};
|
|
626
|
+
--_outer: calc(var(--_size) / 2 - ${t('dial-padding')} - var(--_handle) / 2);
|
|
627
|
+
--_inner: calc(var(--_outer) - var(--_handle));
|
|
628
|
+
--_radius: var(--_outer);
|
|
629
|
+
--_move: ${t('motion-dial-duration')} ${t('motion-dial-easing')};
|
|
630
|
+
position: relative;
|
|
631
|
+
flex: none;
|
|
632
|
+
direction: ltr;
|
|
633
|
+
inline-size: var(--_size);
|
|
634
|
+
block-size: var(--_size);
|
|
635
|
+
border-radius: 50%;
|
|
636
|
+
overflow: clip;
|
|
637
|
+
background: ${t('dial-container-color')};
|
|
638
|
+
cursor: pointer;
|
|
639
|
+
touch-action: none;
|
|
640
|
+
-webkit-user-select: none;
|
|
641
|
+
user-select: none;
|
|
642
|
+
-webkit-tap-highlight-color: transparent;
|
|
643
|
+
}
|
|
644
|
+
.dial[data-ring='inner'] {
|
|
645
|
+
--_radius: var(--_inner);
|
|
646
|
+
}
|
|
647
|
+
.numbers {
|
|
648
|
+
position: absolute;
|
|
649
|
+
inset: 0;
|
|
650
|
+
transition: opacity var(--_move);
|
|
651
|
+
}
|
|
652
|
+
.numbers.faded {
|
|
653
|
+
opacity: 0;
|
|
654
|
+
}
|
|
655
|
+
.number {
|
|
656
|
+
position: absolute;
|
|
657
|
+
left: calc(50% + var(--_r) * var(--_x));
|
|
658
|
+
top: calc(50% + var(--_r) * var(--_y));
|
|
659
|
+
translate: -50% -50%;
|
|
660
|
+
font: ${t('dial-label-typescale-font')};
|
|
661
|
+
letter-spacing: ${t('dial-label-typescale-letter-spacing')};
|
|
662
|
+
color: ${t('dial-label-color')};
|
|
663
|
+
white-space: nowrap;
|
|
664
|
+
pointer-events: none;
|
|
665
|
+
}
|
|
666
|
+
.number.outer {
|
|
667
|
+
--_r: var(--_outer);
|
|
668
|
+
}
|
|
669
|
+
.number.inner {
|
|
670
|
+
--_r: var(--_inner);
|
|
671
|
+
}
|
|
672
|
+
.center {
|
|
673
|
+
position: absolute;
|
|
674
|
+
left: 50%;
|
|
675
|
+
top: 50%;
|
|
676
|
+
inline-size: ${t('dial-center-size')};
|
|
677
|
+
block-size: ${t('dial-center-size')};
|
|
678
|
+
translate: -50% -50%;
|
|
679
|
+
border-radius: 50%;
|
|
680
|
+
background: ${t('dial-track-color')};
|
|
681
|
+
pointer-events: none;
|
|
682
|
+
}
|
|
683
|
+
/* DTM-26: the arm turns to the value's angle (along the shorter arc: the element keeps the angle continuous) and the
|
|
684
|
+
handle moves between the rings over the dial motion; the copy inside the handle turns back by as much. */
|
|
685
|
+
.arm {
|
|
686
|
+
position: absolute;
|
|
687
|
+
inset: 0;
|
|
688
|
+
rotate: var(--_angle, 0deg);
|
|
689
|
+
transition: rotate var(--_move);
|
|
690
|
+
pointer-events: none;
|
|
691
|
+
}
|
|
692
|
+
.track {
|
|
693
|
+
position: absolute;
|
|
694
|
+
left: calc(50% - ${t('dial-track-width')} / 2);
|
|
695
|
+
top: calc(50% - var(--_radius));
|
|
696
|
+
inline-size: ${t('dial-track-width')};
|
|
697
|
+
block-size: var(--_radius);
|
|
698
|
+
background: ${t('dial-track-color')};
|
|
699
|
+
transition:
|
|
700
|
+
top var(--_move),
|
|
701
|
+
block-size var(--_move);
|
|
702
|
+
}
|
|
703
|
+
.handle {
|
|
704
|
+
position: absolute;
|
|
705
|
+
left: calc(50% - var(--_handle) / 2);
|
|
706
|
+
top: calc(50% - var(--_radius) - var(--_handle) / 2);
|
|
707
|
+
inline-size: var(--_handle);
|
|
708
|
+
block-size: var(--_handle);
|
|
709
|
+
border-radius: 50%;
|
|
710
|
+
overflow: hidden;
|
|
711
|
+
background: ${t('dial-handle-color')};
|
|
712
|
+
transition: top var(--_move);
|
|
713
|
+
}
|
|
714
|
+
.copy {
|
|
715
|
+
position: absolute;
|
|
716
|
+
left: calc(var(--_handle) / 2 - var(--_size) / 2);
|
|
717
|
+
top: calc(var(--_radius) + var(--_handle) / 2 - var(--_size) / 2);
|
|
718
|
+
inline-size: var(--_size);
|
|
719
|
+
block-size: var(--_size);
|
|
720
|
+
rotate: calc(var(--_angle, 0deg) * -1);
|
|
721
|
+
transition:
|
|
722
|
+
rotate var(--_move),
|
|
723
|
+
top var(--_move);
|
|
724
|
+
}
|
|
725
|
+
.copy .number {
|
|
726
|
+
color: ${t('dial-selected-label-color')};
|
|
727
|
+
}
|
|
728
|
+
.between {
|
|
729
|
+
position: absolute;
|
|
730
|
+
left: 50%;
|
|
731
|
+
top: 50%;
|
|
732
|
+
inline-size: ${t('dial-center-size')};
|
|
733
|
+
block-size: ${t('dial-center-size')};
|
|
734
|
+
translate: -50% -50%;
|
|
735
|
+
border-radius: 50%;
|
|
736
|
+
background: ${t('dial-selected-label-color')};
|
|
737
|
+
}
|
|
738
|
+
/* DTM-25: a press or a drag moves the handle without animation. */
|
|
739
|
+
.dial[data-instant] :is(.arm, .track, .handle, .copy) {
|
|
740
|
+
transition: none;
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
/* DTM-33: the error line, set as a field's supporting text. */
|
|
744
|
+
.error {
|
|
745
|
+
flex: none;
|
|
746
|
+
padding-inline: ${t('container-padding-inline')};
|
|
747
|
+
font: ${t('error-typescale-font')};
|
|
748
|
+
letter-spacing: ${t('error-typescale-letter-spacing')};
|
|
749
|
+
color: ${t('error-color')};
|
|
750
|
+
overflow-wrap: break-word;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
/* DTM-34: Cancel and OK as a full-width Button group places them (fill): a row they share equally — each Button's
|
|
754
|
+
container stretched across its share — or, when a label does not fit its share, a column (OK on top) as wide as the
|
|
755
|
+
container; actions.gap apart, actions.padding-block above and below. end: at their own widths, aligned to the end. */
|
|
756
|
+
.actions {
|
|
757
|
+
display: flex;
|
|
758
|
+
flex: none;
|
|
759
|
+
gap: ${t('actions-gap')};
|
|
760
|
+
padding-block: ${t('actions-padding-block')};
|
|
761
|
+
padding-inline: ${t('container-padding-inline')};
|
|
762
|
+
}
|
|
763
|
+
.actions > * {
|
|
764
|
+
display: grid;
|
|
765
|
+
flex: 1 1 0;
|
|
766
|
+
min-inline-size: 0;
|
|
767
|
+
}
|
|
768
|
+
.actions.stacked {
|
|
769
|
+
flex-direction: column;
|
|
770
|
+
}
|
|
771
|
+
.actions.stacked > *,
|
|
772
|
+
.actions.measuring > * {
|
|
773
|
+
flex: none;
|
|
774
|
+
}
|
|
775
|
+
.surface[data-arrangement='end'] .actions {
|
|
776
|
+
justify-content: flex-end;
|
|
777
|
+
}
|
|
778
|
+
.surface[data-arrangement='end'] .actions > * {
|
|
779
|
+
flex: none;
|
|
780
|
+
}
|
|
781
|
+
.surface[data-arrangement='end'] .actions.stacked {
|
|
782
|
+
align-items: flex-end;
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
/* DTM-33: the polite announcement of the error line, read and never drawn. */
|
|
786
|
+
.announce {
|
|
787
|
+
position: absolute;
|
|
788
|
+
inline-size: 1px;
|
|
789
|
+
block-size: 1px;
|
|
790
|
+
overflow: hidden;
|
|
791
|
+
clip-path: inset(50%);
|
|
792
|
+
white-space: nowrap;
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
/* DTM-19, DTM-26, DTM-27, DTM-35: where motion is reduced every change is made at once (a modal surface still fades). */
|
|
796
|
+
@media (prefers-reduced-motion: reduce) {
|
|
797
|
+
.dial *,
|
|
798
|
+
.selector,
|
|
799
|
+
.range-field,
|
|
800
|
+
.ground,
|
|
801
|
+
.row {
|
|
802
|
+
transition: none !important;
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
/* DTM-31: corner smoothing on the surface, the selectors, the range fields and the wheels' selection containers (data-tanrei-shape). */
|
|
807
|
+
${shape}
|
|
808
|
+
|
|
809
|
+
@media (forced-colors: active) {
|
|
810
|
+
.surface {
|
|
811
|
+
border: ${t('divider-width')} solid CanvasText;
|
|
812
|
+
}
|
|
813
|
+
.divider {
|
|
814
|
+
background: CanvasText;
|
|
815
|
+
}
|
|
816
|
+
.selector,
|
|
817
|
+
.range-field {
|
|
818
|
+
border: ${t('divider-width')} solid CanvasText;
|
|
819
|
+
}
|
|
820
|
+
.selector.selected,
|
|
821
|
+
.range-field.selected,
|
|
822
|
+
.wheel.typing > .ground {
|
|
823
|
+
border: ${t('divider-width')} solid Highlight;
|
|
824
|
+
}
|
|
825
|
+
.wheels[data-span='joined'] > .band,
|
|
826
|
+
.wheels[data-span='each'] .wheel > .ground {
|
|
827
|
+
border-block: ${t('divider-width')} solid Highlight;
|
|
828
|
+
}
|
|
829
|
+
.dial {
|
|
830
|
+
border: ${t('divider-width')} solid CanvasText;
|
|
831
|
+
}
|
|
832
|
+
.handle,
|
|
833
|
+
.track,
|
|
834
|
+
.center {
|
|
835
|
+
background: Highlight;
|
|
836
|
+
}
|
|
837
|
+
.copy .number {
|
|
838
|
+
color: HighlightText;
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
`;
|
|
842
|
+
//# sourceMappingURL=date-time-picker.styles.js.map
|