@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,212 @@
|
|
|
1
|
+
import { css, unsafeCSS } from 'lit';
|
|
2
|
+
import { focusRing } from '../../primitives/index.js';
|
|
3
|
+
import { productText } from '../../styles/product-text.js';
|
|
4
|
+
import { cornerRadius, shape } from '../../styles/shape.js';
|
|
5
|
+
import { CORE_SIZES, CORE_VARIANTS, DEFAULT_SIZE, DEFAULT_VARIANT, layoutBlock, sizeBlock, variantBlock } from './code-block.light.js';
|
|
6
|
+
// Every visual value is a token (tokens/comp/code-block.tokens.json). The block is not pressed (COD-26): there is no
|
|
7
|
+
// state rule, no state layer and no ripple here. What it draws in its shadow root is the frame — the container, the
|
|
8
|
+
// header, the copy button's place, the scrolling body and its focus indicator; the code is the product's own
|
|
9
|
+
// `<pre><code>`, slotted, and its rules are code-block.light.ts.
|
|
10
|
+
const PREFIX = '--tanrei-comp-code-block';
|
|
11
|
+
const T = (name) => unsafeCSS(`var(${PREFIX}-${name})`);
|
|
12
|
+
/**
|
|
13
|
+
* The copy button is a small Button (COD-9): its height — which is its width, icon-only — is the Button's
|
|
14
|
+
* own token, read here to keep its place clear (COD-9's minimum height, COD-10's padding).
|
|
15
|
+
*/
|
|
16
|
+
const BUTTON = unsafeCSS('var(--tanrei-comp-button-container-height-small)');
|
|
17
|
+
/**
|
|
18
|
+
* The open axes (COD-25): a size or variant a layer added gets its block on demand, built by the same
|
|
19
|
+
* functions as the core blocks and falling back to the default's tokens; a value the active system lacks is reported in
|
|
20
|
+
* debug builds. A variant a layer adds has no edge: only `outlined` draws one (COD-1).
|
|
21
|
+
*/
|
|
22
|
+
export const AXES = [
|
|
23
|
+
{ name: 'size', core: CORE_SIZES, default: DEFAULT_SIZE, rules: (value, selector) => sizeBlock(value, selector, DEFAULT_SIZE), probe: (value) => `${PREFIX}-container-padding-block-${value}` },
|
|
24
|
+
{ name: 'variant', core: CORE_VARIANTS, default: DEFAULT_VARIANT, rules: (value, selector) => variantBlock(value, selector, DEFAULT_VARIANT), probe: (value) => `${PREFIX}-${value}-container-color` },
|
|
25
|
+
];
|
|
26
|
+
export const styles = css `
|
|
27
|
+
/* COD-1: a block as wide as its layout gives it and never wider, with no space outside itself. */
|
|
28
|
+
:host {
|
|
29
|
+
display: block;
|
|
30
|
+
min-inline-size: 0;
|
|
31
|
+
max-inline-size: 100%;
|
|
32
|
+
}
|
|
33
|
+
:host([hidden]) {
|
|
34
|
+
display: none;
|
|
35
|
+
}
|
|
36
|
+
/* COD-25: a block with no code draws nothing and takes no space. Its own rule: a browser without custom states drops
|
|
37
|
+
only this one, and the empty block is then an empty box. */
|
|
38
|
+
:host(:state(empty)) {
|
|
39
|
+
display: none;
|
|
40
|
+
}
|
|
41
|
+
${unsafeCSS(sizeBlock(DEFAULT_SIZE, ':host'))}
|
|
42
|
+
${unsafeCSS(CORE_SIZES.filter((size) => size !== DEFAULT_SIZE).map((size) => sizeBlock(size, `:host([size='${size}'])`)).join('\n'))}
|
|
43
|
+
${unsafeCSS(variantBlock(DEFAULT_VARIANT, ':host'))}
|
|
44
|
+
${unsafeCSS(CORE_VARIANTS.filter((variant) => variant !== DEFAULT_VARIANT).map((variant) => variantBlock(variant, `:host([variant='${variant}'])`)).join('\n'))}
|
|
45
|
+
${unsafeCSS(layoutBlock(':host'))}
|
|
46
|
+
|
|
47
|
+
/* COD-1: the container — the look's fill, container.shape corners through the shared corner rule, no elevation. It
|
|
48
|
+
clips nothing: the body rounds its own corners, so the copy button's hit area can reach past the edge (CPY-1). The
|
|
49
|
+
code's text style is set here so that a line of it (1lh) is a length the body and the copy button's patch can use. */
|
|
50
|
+
.container {
|
|
51
|
+
position: relative;
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-direction: column;
|
|
54
|
+
box-sizing: border-box;
|
|
55
|
+
${unsafeCSS(cornerRadius(`${PREFIX}-container-shape`))}
|
|
56
|
+
background: var(--_code-block-container);
|
|
57
|
+
font: var(--_code-block-font);
|
|
58
|
+
letter-spacing: var(--_code-block-tracking);
|
|
59
|
+
}
|
|
60
|
+
/* COD-9: at least as tall as the copy button and its inset above and below. */
|
|
61
|
+
.container.copy {
|
|
62
|
+
min-block-size: calc(${BUTTON} + ${T('copy-button-inset')} * 2);
|
|
63
|
+
}
|
|
64
|
+
/* COD-1: the outlined look's edge, inside the container's size and following its corners — drawn over what the block
|
|
65
|
+
holds, so a band, the gutter and the copy button's patch never cover it, and nothing moves for it. */
|
|
66
|
+
:host([variant='outlined']) .container::after {
|
|
67
|
+
content: '';
|
|
68
|
+
position: absolute;
|
|
69
|
+
inset: 0;
|
|
70
|
+
border: ${T('outline-width')} solid ${T('outline-color')};
|
|
71
|
+
border-radius: inherit;
|
|
72
|
+
pointer-events: none;
|
|
73
|
+
}
|
|
74
|
+
${shape}
|
|
75
|
+
|
|
76
|
+
/* COD-8: the header — the top of the same container, with no fill and no line: a row that begins copy-button.inset
|
|
77
|
+
from the top edge, as tall as the copy button where there is one and as one line of the title's text style
|
|
78
|
+
otherwise, its items centred and header.gap apart; the title begins at the inline padding of COD-3, and the copy
|
|
79
|
+
button stands copy-button.inset from the end edge (COD-9). */
|
|
80
|
+
.header {
|
|
81
|
+
display: flex;
|
|
82
|
+
flex: none;
|
|
83
|
+
align-items: center;
|
|
84
|
+
gap: ${T('header-gap')};
|
|
85
|
+
box-sizing: border-box;
|
|
86
|
+
padding-block-start: ${T('copy-button-inset')};
|
|
87
|
+
padding-inline: var(--_code-block-pad-inline);
|
|
88
|
+
}
|
|
89
|
+
.container.copy .header {
|
|
90
|
+
padding-inline-end: ${T('copy-button-inset')};
|
|
91
|
+
}
|
|
92
|
+
/* The title: one line, cut with an ellipsis at the end of its own direction (the element gives it dir="auto"). */
|
|
93
|
+
.title {
|
|
94
|
+
flex: 0 1 auto;
|
|
95
|
+
min-inline-size: 0;
|
|
96
|
+
overflow: hidden;
|
|
97
|
+
font: ${T('title-typescale-font')};
|
|
98
|
+
letter-spacing: ${T('title-typescale-letter-spacing')};
|
|
99
|
+
color: ${T('title-color')};
|
|
100
|
+
text-overflow: ellipsis;
|
|
101
|
+
white-space: nowrap;
|
|
102
|
+
}
|
|
103
|
+
${productText('.title')}
|
|
104
|
+
/* The title's box is as wide as its text, so the layout places it — at the start — whatever its own direction is;
|
|
105
|
+
what is left of the row is between it and the items at the end. */
|
|
106
|
+
.space {
|
|
107
|
+
flex: 1 1 0;
|
|
108
|
+
}
|
|
109
|
+
/* The language: at the end, before the copy button, never cut. */
|
|
110
|
+
.language {
|
|
111
|
+
flex: none;
|
|
112
|
+
font: ${T('language-typescale-font')};
|
|
113
|
+
letter-spacing: ${T('language-typescale-letter-spacing')};
|
|
114
|
+
color: ${T('language-color')};
|
|
115
|
+
white-space: nowrap;
|
|
116
|
+
}
|
|
117
|
+
.header > tanrei-copy-button {
|
|
118
|
+
flex: none;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/* COD-9, COD-10: without a header the copy button stands over the top end corner of the body, copy-button.inset from
|
|
122
|
+
the top and the end edge, on a patch of the block's ground: whole lines high (a line is never half covered), no
|
|
123
|
+
taller than the block, with the container's corners at that end. It does not scroll with the code. */
|
|
124
|
+
.corner {
|
|
125
|
+
position: absolute;
|
|
126
|
+
inset-block-start: 0;
|
|
127
|
+
inset-inline-end: 0;
|
|
128
|
+
z-index: 1;
|
|
129
|
+
box-sizing: border-box;
|
|
130
|
+
block-size: calc(var(--_code-block-pad-block) + round(up, ${BUTTON} + ${T('copy-button-inset')} - var(--_code-block-pad-block), 1lh));
|
|
131
|
+
max-block-size: 100%;
|
|
132
|
+
padding-block-start: ${T('copy-button-inset')};
|
|
133
|
+
padding-inline-end: ${T('copy-button-inset')};
|
|
134
|
+
border-start-end-radius: calc(var(--tanrei-corner-radius) * var(--_corner-scale));
|
|
135
|
+
border-end-end-radius: calc(var(--tanrei-corner-radius) * var(--_corner-scale));
|
|
136
|
+
corner-shape: inherit;
|
|
137
|
+
background: var(--_code-block-ground);
|
|
138
|
+
}
|
|
139
|
+
/* Wrapped, every row ends before the button's column (COD-10): no code passes under it, and it needs no patch. */
|
|
140
|
+
:host([wrap]) .corner {
|
|
141
|
+
background: none;
|
|
142
|
+
}
|
|
143
|
+
/* COD-20: in a right-to-left layout the button is at the left, over the gutter where the lines have one. The gutter
|
|
144
|
+
stays in view there, on the block's ground (COD-13), so no code passes under the button and it needs no patch —
|
|
145
|
+
which would cover the bar and the start of the band of the lines beside it (COD-15). */
|
|
146
|
+
:host(:dir(rtl)) .container.gutter .corner {
|
|
147
|
+
background: none;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/* COD-4, COD-6: the body holds the lines and scrolls inside the container — sideways when a line does not fit,
|
|
151
|
+
up and down past maxLines lines — and never scrolls the page sideways. Left to right in every layout (COD-20): the
|
|
152
|
+
element writes dir="ltr" on it. Its corners are the container's, so what scrolls is cut where the container ends. */
|
|
153
|
+
.body {
|
|
154
|
+
position: relative;
|
|
155
|
+
flex: 1 1 auto;
|
|
156
|
+
box-sizing: border-box;
|
|
157
|
+
min-inline-size: 0;
|
|
158
|
+
overflow: auto;
|
|
159
|
+
${unsafeCSS(cornerRadius(`${PREFIX}-container-shape`))}
|
|
160
|
+
outline: none;
|
|
161
|
+
}
|
|
162
|
+
.container.has-header .body {
|
|
163
|
+
/* COD-8: the code begins header.padding-block-end below the header's row, in place of the block padding. */
|
|
164
|
+
--_code-block-pad-top: ${T('header-padding-block-end')};
|
|
165
|
+
border-start-start-radius: 0;
|
|
166
|
+
border-start-end-radius: 0;
|
|
167
|
+
}
|
|
168
|
+
/* COD-10: without a header the padding at the copy button's side is widened by the button and its inset, so a line's
|
|
169
|
+
end can be scrolled clear of it and a wrapped row ends before its column. COD-20: in a right-to-left layout the
|
|
170
|
+
button is at the left, where the lines begin, and the padding is widened there. */
|
|
171
|
+
.container.copy:not(.has-header) .body {
|
|
172
|
+
--_code-block-pad-end: calc(var(--_code-block-pad-inline) + ${BUTTON} + ${T('copy-button-inset')});
|
|
173
|
+
}
|
|
174
|
+
:host(:dir(rtl)) .container.copy:not(.has-header) .body {
|
|
175
|
+
--_code-block-pad-start: calc(var(--_code-block-pad-inline) + ${BUTTON} + ${T('copy-button-inset')});
|
|
176
|
+
--_code-block-pad-end: var(--_code-block-pad-inline);
|
|
177
|
+
}
|
|
178
|
+
/* COD-6: no more than maxLines lines of the code's text style and the paddings; more scroll up and down. */
|
|
179
|
+
.body.capped {
|
|
180
|
+
max-block-size: calc(var(--_max-lines) * 1lh + var(--_code-block-pad-top) + var(--_code-block-pad-block));
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/* COD-7: the body's keyboard focus, drawn inside the container's edge with the container's corners by a box that
|
|
184
|
+
does not scroll with the code. Pointer focus never shows it. */
|
|
185
|
+
.focus {
|
|
186
|
+
position: absolute;
|
|
187
|
+
inset: 0;
|
|
188
|
+
${unsafeCSS(cornerRadius(`${PREFIX}-container-shape`))}
|
|
189
|
+
pointer-events: none;
|
|
190
|
+
}
|
|
191
|
+
${focusRing((focus) => `.body${focus} ~ .focus`, { inside: true })}
|
|
192
|
+
|
|
193
|
+
/* COD-23: forced colors remove every fill, so every look gains the edge, in the platform's text color; the patch is
|
|
194
|
+
the page's own ground there. */
|
|
195
|
+
@media (forced-colors: active) {
|
|
196
|
+
.container::after {
|
|
197
|
+
content: '';
|
|
198
|
+
position: absolute;
|
|
199
|
+
inset: 0;
|
|
200
|
+
border: ${T('outline-width')} solid CanvasText;
|
|
201
|
+
border-radius: inherit;
|
|
202
|
+
pointer-events: none;
|
|
203
|
+
}
|
|
204
|
+
:host([variant='outlined']) .container::after {
|
|
205
|
+
border-color: CanvasText;
|
|
206
|
+
}
|
|
207
|
+
.corner {
|
|
208
|
+
background: Canvas;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
`;
|
|
212
|
+
//# sourceMappingURL=code-block.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-block.styles.js","sourceRoot":"","sources":["../../../src/components/code-block/code-block.styles.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { type PropertyDeclarations } from 'lit';
|
|
2
|
+
import { ComposedControl, type ValueMember } from '../../primitives/composed.js';
|
|
3
|
+
import { type TanreiFieldRequiredMark, type TanreiFieldRequirement } from '../field/field.js';
|
|
4
|
+
import { type TanreiColorInputEntryErrorDetail, type TanreiColorInputPickerRequestDetail, type TanreiColorInputSize, type TanreiColorInputVariant } from '../color-input/color-input.js';
|
|
5
|
+
export type { TanreiColorInputEntryErrorDetail, TanreiColorInputPickerRequestDetail, TanreiColorInputSize, TanreiColorInputVariant, TanreiFieldRequiredMark, TanreiFieldRequirement };
|
|
6
|
+
/**
|
|
7
|
+
* Lets people set one color as one complete field of a form. Built from a Field (`<tanrei-field>`) and the Color
|
|
8
|
+
* input (`<tanrei-color-input>`) it frames: the box — a sample of the value, the value as text, a button that asks
|
|
9
|
+
* for a picker — under the Field's label, or, in the filled and the outlined look, with the label floating in it,
|
|
10
|
+
* with the Field's help and its error, tied together for assistive technology and taking part in a form as one
|
|
11
|
+
* control. It looks and measures like a text field.
|
|
12
|
+
*
|
|
13
|
+
* Contract: specs/color-field.spec.json. `<tanrei-color-field name="brand" label="Brand color" value="#0f766e"
|
|
14
|
+
* supporting-text="Six hexadecimal digits, like #0f766e." invalid-text="Enter six hexadecimal digits, like #0f766e."
|
|
15
|
+
* picker picker-label="Choose color"></tanrei-color-field>`.
|
|
16
|
+
*
|
|
17
|
+
* Composed (`src/primitives/composed.ts`): its shadow root holds the two members' own elements and nothing
|
|
18
|
+
* else, so it draws nothing of its own and has no token — every `--tanrei-comp-field-*`,
|
|
19
|
+
* `--tanrei-comp-input-box-*` and `--tanrei-comp-color-input-*` value reaches the members by inheritance, and one color field is set apart by setting
|
|
20
|
+
* such a property on this element. Each property is its member's, set on that member unchanged: `label`,
|
|
21
|
+
* `label-hidden`, `supporting-text`, `error-text`, `error`, `disabled`, `requirement`, `required-mark`,
|
|
22
|
+
* `required-text` and `optional-text` are the Field's; `variant`, `size`, `value`, `invalid-text`, `picker` and
|
|
23
|
+
* `picker-label` the color input's. One level down, the same by hand: `<tanrei-field label="Brand color"
|
|
24
|
+
* supporting-text="Six hexadecimal digits, like #0f766e."><tanrei-color-input name="brand" value="#0f766e"
|
|
25
|
+
* invalid-text="Enter six hexadecimal digits, like #0f766e." picker picker-label="Choose color"></tanrei-color-input>
|
|
26
|
+
* </tanrei-field>` — and the box alone, where a row or a column names the color, is `<tanrei-color-input>` with a
|
|
27
|
+
* `label` of its own.
|
|
28
|
+
*
|
|
29
|
+
* It is a block as wide as its place, and its box fills it (CLF-43): give it a narrower place for a narrower box.
|
|
30
|
+
*
|
|
31
|
+
* `value` is at every moment the color input's — a number sign and six lowercase hexadecimal digits, or empty: a
|
|
32
|
+
* value set as `0F766E` is read back as `#0f766e`, and one that is not a color as empty, with no event. The four
|
|
33
|
+
* events are that input's own, with this element as their target: `event.target.value` is the new value in every
|
|
34
|
+
* listener, and `pickerrequest` stays cancelable. It dispatches none itself.
|
|
35
|
+
*
|
|
36
|
+
* Form-associated: it submits the value under `name` — nothing while disabled —, resets to its `value` attribute, is
|
|
37
|
+
* restored on navigation, follows a disabled `<fieldset>`, and reports what its color input reports: a missing value
|
|
38
|
+
* while `requirement` is `required` and it is empty, and a bad input while a committed text is not a color. Enter in
|
|
39
|
+
* the input presses the default button of this element's form.
|
|
40
|
+
*
|
|
41
|
+
* The element is not focusable itself and has no role: `focus()` goes to the input — never to the picker button —,
|
|
42
|
+
* and its name is `label` (with `label-hidden` where it is not drawn), never `aria-label`. It has two focus stops,
|
|
43
|
+
* its input's: the input, then the picker button while it is shown. A press on the label row, on the box, on the
|
|
44
|
+
* swatch or on a floating label focuses the input; a press on the help, the error text or the gap between a row and
|
|
45
|
+
* the box does nothing.
|
|
46
|
+
*
|
|
47
|
+
* @tag tanrei-color-field
|
|
48
|
+
* @slot label-icon - => tanrei-field
|
|
49
|
+
* @csspart field - The frame: the `<tanrei-field>` it is built from.
|
|
50
|
+
* @csspart color-input - The control: the `<tanrei-color-input>` it is built from.
|
|
51
|
+
* @exportparts tanrei-field -counter, -value-text, label: field-label, label, requirement-label: field-requirement-label, requirement-label
|
|
52
|
+
* @exportparts tanrei-color-input label: color-input-label, label, requirement-label: color-input-requirement-label, requirement-label
|
|
53
|
+
* @attr {string} form - The id of the form the color field belongs to, where it stands outside it: the platform's own attribute, which then wins over a form around it. The `form` property is read-only and returns the form element.
|
|
54
|
+
* @fires input - => tanrei-color-input
|
|
55
|
+
* @fires change - => tanrei-color-input
|
|
56
|
+
* @fires pickerrequest - => tanrei-color-input
|
|
57
|
+
* @fires entryerror - => tanrei-color-input
|
|
58
|
+
*/
|
|
59
|
+
export declare class TanreiColorField extends ComposedControl<string> {
|
|
60
|
+
/** CLF-44: the one control the form meets. Its members stand in its shadow root, outside every form. */
|
|
61
|
+
static formAssociated: boolean;
|
|
62
|
+
static styles: import("lit").CSSResult[];
|
|
63
|
+
/**
|
|
64
|
+
* Its parts, once: the two members and what each exports — a name both export, once.
|
|
65
|
+
*
|
|
66
|
+
* @internal
|
|
67
|
+
*/
|
|
68
|
+
static readonly parts: readonly string[];
|
|
69
|
+
static properties: PropertyDeclarations;
|
|
70
|
+
/** @from tanrei-field.label */
|
|
71
|
+
label: string;
|
|
72
|
+
/** @from tanrei-field.labelHidden */
|
|
73
|
+
labelHidden: boolean;
|
|
74
|
+
/** @from tanrei-field.supportingText */
|
|
75
|
+
supportingText: string;
|
|
76
|
+
/** @from tanrei-field.errorText */
|
|
77
|
+
errorText: string;
|
|
78
|
+
/** @from tanrei-field.error */
|
|
79
|
+
error: boolean;
|
|
80
|
+
/** @from tanrei-field.disabled */
|
|
81
|
+
disabled: boolean;
|
|
82
|
+
/** @from tanrei-field.requirement */
|
|
83
|
+
requirement: TanreiFieldRequirement;
|
|
84
|
+
/** @from tanrei-field.requiredMark */
|
|
85
|
+
requiredMark: TanreiFieldRequiredMark;
|
|
86
|
+
/** @from tanrei-field.requiredText */
|
|
87
|
+
requiredText: string;
|
|
88
|
+
/** @from tanrei-field.optionalText */
|
|
89
|
+
optionalText: string;
|
|
90
|
+
/** @from tanrei-color-input.variant */
|
|
91
|
+
variant: TanreiColorInputVariant;
|
|
92
|
+
/** @from tanrei-color-input.size */
|
|
93
|
+
size: TanreiColorInputSize;
|
|
94
|
+
/** @from tanrei-color-input.value */
|
|
95
|
+
get value(): string;
|
|
96
|
+
set value(value: string);
|
|
97
|
+
/** @from tanrei-color-input.invalidText */
|
|
98
|
+
invalidText: string;
|
|
99
|
+
/** @from tanrei-color-input.picker */
|
|
100
|
+
picker: boolean;
|
|
101
|
+
/** @from tanrei-color-input.pickerLabel */
|
|
102
|
+
pickerLabel: string;
|
|
103
|
+
protected readonly hostNameSentence = "CLF-43";
|
|
104
|
+
protected get valueMember(): ValueMember<string> | null;
|
|
105
|
+
/**
|
|
106
|
+
* CLF-44: a form's reset reaches the color input. The value is the one this element was first given — its `value`
|
|
107
|
+
* attribute (W6, item 4) — and with it go the text as typed and an entry error, as they do when the input stands in
|
|
108
|
+
* the form by hand: a value that is what the input already holds would otherwise leave the text as the person typed
|
|
109
|
+
* it (CLI-21). The input takes it the way it takes a restored value, and its value is then this element's.
|
|
110
|
+
*/
|
|
111
|
+
formResetCallback(): void;
|
|
112
|
+
/** Selects the text in the input, as the color input's `select()` does. */
|
|
113
|
+
select(): void;
|
|
114
|
+
protected render(): import("lit").TemplateResult<1>;
|
|
115
|
+
}
|
|
116
|
+
declare global {
|
|
117
|
+
interface HTMLElementTagNameMap {
|
|
118
|
+
'tanrei-color-field': TanreiColorField;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { css, html } from 'lit';
|
|
2
|
+
import { ComposedControl, composedHost, exported, forward } from '../../primitives/composed.js';
|
|
3
|
+
import { hiddenHost } from '../../primitives/hidden.js';
|
|
4
|
+
import { TanreiField } from '../field/field.js';
|
|
5
|
+
import { TanreiColorInput, } from '../color-input/color-input.js';
|
|
6
|
+
/** CLF-43: the props that are the Field's, given to it unchanged. `disabled` is the Field's too, joined with a disabled fieldset's (W6). */
|
|
7
|
+
const FIELD = ['label', 'labelHidden', 'supportingText', 'errorText', 'error', 'requirement', 'requiredMark', 'requiredText', 'optionalText'];
|
|
8
|
+
/** CLF-43: the six props that are the color input's. Its own `label`, `labelHidden`, `error` and `disabled` are never set. */
|
|
9
|
+
const INPUT = ['variant', 'size', 'value', 'invalidText', 'picker', 'pickerLabel'];
|
|
10
|
+
/**
|
|
11
|
+
* W4: each member's documented parts, from the member's own list. Two names are shared — `label` and
|
|
12
|
+
* `requirement-label` — and each is exported with its member's name before it, always, and under the bare name from
|
|
13
|
+
* both: the two are one thing to a person and are never drawn at once. FLD-25 is the sentence that holds it — while
|
|
14
|
+
* its control draws the label itself the Field draws no label row and no requirement tag — and a stacked input draws
|
|
15
|
+
* neither (CLI-15, CLI-7). So `::part(label)` is the drawn label, whichever member draws it. The Field's `counter` is
|
|
16
|
+
* left out: a color field gives its Field no count, so the part is never drawn in it.
|
|
17
|
+
*/
|
|
18
|
+
const FIELD_PARTS = exported(TanreiField, { label: { as: 'field-label', bare: true }, 'requirement-label': { as: 'field-requirement-label', bare: true } }, ['counter', 'value-text']);
|
|
19
|
+
const INPUT_PARTS = exported(TanreiColorInput, { label: { as: 'color-input-label', bare: true }, 'requirement-label': { as: 'color-input-requirement-label', bare: true } });
|
|
20
|
+
/**
|
|
21
|
+
* Lets people set one color as one complete field of a form. Built from a Field (`<tanrei-field>`) and the Color
|
|
22
|
+
* input (`<tanrei-color-input>`) it frames: the box — a sample of the value, the value as text, a button that asks
|
|
23
|
+
* for a picker — under the Field's label, or, in the filled and the outlined look, with the label floating in it,
|
|
24
|
+
* with the Field's help and its error, tied together for assistive technology and taking part in a form as one
|
|
25
|
+
* control. It looks and measures like a text field.
|
|
26
|
+
*
|
|
27
|
+
* Contract: specs/color-field.spec.json. `<tanrei-color-field name="brand" label="Brand color" value="#0f766e"
|
|
28
|
+
* supporting-text="Six hexadecimal digits, like #0f766e." invalid-text="Enter six hexadecimal digits, like #0f766e."
|
|
29
|
+
* picker picker-label="Choose color"></tanrei-color-field>`.
|
|
30
|
+
*
|
|
31
|
+
* Composed (`src/primitives/composed.ts`): its shadow root holds the two members' own elements and nothing
|
|
32
|
+
* else, so it draws nothing of its own and has no token — every `--tanrei-comp-field-*`,
|
|
33
|
+
* `--tanrei-comp-input-box-*` and `--tanrei-comp-color-input-*` value reaches the members by inheritance, and one color field is set apart by setting
|
|
34
|
+
* such a property on this element. Each property is its member's, set on that member unchanged: `label`,
|
|
35
|
+
* `label-hidden`, `supporting-text`, `error-text`, `error`, `disabled`, `requirement`, `required-mark`,
|
|
36
|
+
* `required-text` and `optional-text` are the Field's; `variant`, `size`, `value`, `invalid-text`, `picker` and
|
|
37
|
+
* `picker-label` the color input's. One level down, the same by hand: `<tanrei-field label="Brand color"
|
|
38
|
+
* supporting-text="Six hexadecimal digits, like #0f766e."><tanrei-color-input name="brand" value="#0f766e"
|
|
39
|
+
* invalid-text="Enter six hexadecimal digits, like #0f766e." picker picker-label="Choose color"></tanrei-color-input>
|
|
40
|
+
* </tanrei-field>` — and the box alone, where a row or a column names the color, is `<tanrei-color-input>` with a
|
|
41
|
+
* `label` of its own.
|
|
42
|
+
*
|
|
43
|
+
* It is a block as wide as its place, and its box fills it (CLF-43): give it a narrower place for a narrower box.
|
|
44
|
+
*
|
|
45
|
+
* `value` is at every moment the color input's — a number sign and six lowercase hexadecimal digits, or empty: a
|
|
46
|
+
* value set as `0F766E` is read back as `#0f766e`, and one that is not a color as empty, with no event. The four
|
|
47
|
+
* events are that input's own, with this element as their target: `event.target.value` is the new value in every
|
|
48
|
+
* listener, and `pickerrequest` stays cancelable. It dispatches none itself.
|
|
49
|
+
*
|
|
50
|
+
* Form-associated: it submits the value under `name` — nothing while disabled —, resets to its `value` attribute, is
|
|
51
|
+
* restored on navigation, follows a disabled `<fieldset>`, and reports what its color input reports: a missing value
|
|
52
|
+
* while `requirement` is `required` and it is empty, and a bad input while a committed text is not a color. Enter in
|
|
53
|
+
* the input presses the default button of this element's form.
|
|
54
|
+
*
|
|
55
|
+
* The element is not focusable itself and has no role: `focus()` goes to the input — never to the picker button —,
|
|
56
|
+
* and its name is `label` (with `label-hidden` where it is not drawn), never `aria-label`. It has two focus stops,
|
|
57
|
+
* its input's: the input, then the picker button while it is shown. A press on the label row, on the box, on the
|
|
58
|
+
* swatch or on a floating label focuses the input; a press on the help, the error text or the gap between a row and
|
|
59
|
+
* the box does nothing.
|
|
60
|
+
*
|
|
61
|
+
* @tag tanrei-color-field
|
|
62
|
+
* @slot label-icon - => tanrei-field
|
|
63
|
+
* @csspart field - The frame: the `<tanrei-field>` it is built from.
|
|
64
|
+
* @csspart color-input - The control: the `<tanrei-color-input>` it is built from.
|
|
65
|
+
* @exportparts tanrei-field -counter, -value-text, label: field-label, label, requirement-label: field-requirement-label, requirement-label
|
|
66
|
+
* @exportparts tanrei-color-input label: color-input-label, label, requirement-label: color-input-requirement-label, requirement-label
|
|
67
|
+
* @attr {string} form - The id of the form the color field belongs to, where it stands outside it: the platform's own attribute, which then wins over a form around it. The `form` property is read-only and returns the form element.
|
|
68
|
+
* @fires input - => tanrei-color-input
|
|
69
|
+
* @fires change - => tanrei-color-input
|
|
70
|
+
* @fires pickerrequest - => tanrei-color-input
|
|
71
|
+
* @fires entryerror - => tanrei-color-input
|
|
72
|
+
*/
|
|
73
|
+
export class TanreiColorField extends ComposedControl {
|
|
74
|
+
constructor() {
|
|
75
|
+
super(...arguments);
|
|
76
|
+
/** @from tanrei-field.label */
|
|
77
|
+
this.label = '';
|
|
78
|
+
/** @from tanrei-field.labelHidden */
|
|
79
|
+
this.labelHidden = false;
|
|
80
|
+
/** @from tanrei-field.supportingText */
|
|
81
|
+
this.supportingText = '';
|
|
82
|
+
/** @from tanrei-field.errorText */
|
|
83
|
+
this.errorText = '';
|
|
84
|
+
/** @from tanrei-field.error */
|
|
85
|
+
this.error = false;
|
|
86
|
+
/** @from tanrei-field.disabled */
|
|
87
|
+
this.disabled = false;
|
|
88
|
+
/** @from tanrei-field.requirement */
|
|
89
|
+
this.requirement = 'none';
|
|
90
|
+
/** @from tanrei-field.requiredMark */
|
|
91
|
+
this.requiredMark = 'auto';
|
|
92
|
+
/** @from tanrei-field.requiredText */
|
|
93
|
+
this.requiredText = '';
|
|
94
|
+
/** @from tanrei-field.optionalText */
|
|
95
|
+
this.optionalText = '';
|
|
96
|
+
/** @from tanrei-color-input.variant */
|
|
97
|
+
this.variant = 'stacked';
|
|
98
|
+
/** @from tanrei-color-input.size */
|
|
99
|
+
this.size = 'medium';
|
|
100
|
+
/** @from tanrei-color-input.invalidText */
|
|
101
|
+
this.invalidText = '';
|
|
102
|
+
/** @from tanrei-color-input.picker */
|
|
103
|
+
this.picker = false;
|
|
104
|
+
/** @from tanrei-color-input.pickerLabel */
|
|
105
|
+
this.pickerLabel = '';
|
|
106
|
+
this.hostNameSentence = 'CLF-43';
|
|
107
|
+
}
|
|
108
|
+
/** CLF-44: the one control the form meets. Its members stand in its shadow root, outside every form. */
|
|
109
|
+
static { this.formAssociated = true; }
|
|
110
|
+
// CLF-43: no width of its own — as an item of a row too (a horizontal field group, a product's own flex row), where
|
|
111
|
+
// a block's least width would be its native element's: the row decides, and the box fills what it is given.
|
|
112
|
+
static { this.styles = [
|
|
113
|
+
composedHost,
|
|
114
|
+
hiddenHost,
|
|
115
|
+
css `
|
|
116
|
+
:host {
|
|
117
|
+
min-inline-size: 0;
|
|
118
|
+
}
|
|
119
|
+
`,
|
|
120
|
+
]; }
|
|
121
|
+
/**
|
|
122
|
+
* Its parts, once: the two members and what each exports — a name both export, once.
|
|
123
|
+
*
|
|
124
|
+
* @internal
|
|
125
|
+
*/
|
|
126
|
+
static { this.parts = [...new Set(['field', 'color-input', ...FIELD_PARTS.names, ...INPUT_PARTS.names])]; }
|
|
127
|
+
static { this.properties = {
|
|
128
|
+
label: { type: String },
|
|
129
|
+
labelHidden: { type: Boolean, attribute: 'label-hidden', reflect: true },
|
|
130
|
+
supportingText: { type: String, attribute: 'supporting-text' },
|
|
131
|
+
errorText: { type: String, attribute: 'error-text' },
|
|
132
|
+
error: { type: Boolean, reflect: true },
|
|
133
|
+
disabled: { type: Boolean, reflect: true },
|
|
134
|
+
requirement: { type: String, reflect: true },
|
|
135
|
+
requiredMark: { type: String, attribute: 'required-mark', reflect: true },
|
|
136
|
+
requiredText: { type: String, attribute: 'required-text' },
|
|
137
|
+
optionalText: { type: String, attribute: 'optional-text' },
|
|
138
|
+
variant: { type: String, reflect: true },
|
|
139
|
+
size: { type: String, reflect: true },
|
|
140
|
+
value: { type: String },
|
|
141
|
+
invalidText: { type: String, attribute: 'invalid-text' },
|
|
142
|
+
picker: { type: Boolean, reflect: true },
|
|
143
|
+
pickerLabel: { type: String, attribute: 'picker-label' },
|
|
144
|
+
}; }
|
|
145
|
+
/** @from tanrei-color-input.value */
|
|
146
|
+
get value() {
|
|
147
|
+
return this.memberValue('');
|
|
148
|
+
}
|
|
149
|
+
set value(value) {
|
|
150
|
+
this.giveValue(value);
|
|
151
|
+
}
|
|
152
|
+
get valueMember() {
|
|
153
|
+
return this.renderRoot?.querySelector('tanrei-color-input') ?? null;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* CLF-44: a form's reset reaches the color input. The value is the one this element was first given — its `value`
|
|
157
|
+
* attribute (W6, item 4) — and with it go the text as typed and an entry error, as they do when the input stands in
|
|
158
|
+
* the form by hand: a value that is what the input already holds would otherwise leave the text as the person typed
|
|
159
|
+
* it (CLI-21). The input takes it the way it takes a restored value, and its value is then this element's.
|
|
160
|
+
*/
|
|
161
|
+
formResetCallback() {
|
|
162
|
+
if (this.valueMember)
|
|
163
|
+
this.formStateRestoreCallback(this.firstValue(), 'restore');
|
|
164
|
+
else
|
|
165
|
+
super.formResetCallback();
|
|
166
|
+
}
|
|
167
|
+
/** Selects the text in the input, as the color input's `select()` does. */
|
|
168
|
+
select() {
|
|
169
|
+
this.renderRoot?.querySelector('tanrei-color-input')?.select();
|
|
170
|
+
}
|
|
171
|
+
// CLF-43: a Field whose one control is a color input, exactly as a product writes the two — and nothing else but the
|
|
172
|
+
// passage of the Field's label glyph. No text stands between the tags: the Field's control is its one child without
|
|
173
|
+
// a slot.
|
|
174
|
+
render() {
|
|
175
|
+
return html `<tanrei-field part="field" exportparts=${FIELD_PARTS.attribute} ${forward(this, FIELD)} .disabled=${this.disabled || this.formDisabled}
|
|
176
|
+
>${this.pass('label-icon')}<tanrei-color-input part="color-input" exportparts=${INPUT_PARTS.attribute} ${forward(this, INPUT)}></tanrei-color-input
|
|
177
|
+
></tanrei-field>`;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
if (!customElements.get('tanrei-color-field'))
|
|
181
|
+
customElements.define('tanrei-color-field', TanreiColorField);
|
|
182
|
+
//# sourceMappingURL=color-field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"color-field.js","sourceRoot":"","sources":["../../../src/components/color-field/color-field.ts"],"names":[],"mappings":"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"}
|