@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,147 @@
|
|
|
1
|
+
import { type CSSResult, type ReactiveController, type ReactiveControllerHost } from 'lit';
|
|
2
|
+
import { Directive, type ElementPart, type PartInfo } from 'lit/directive.js';
|
|
3
|
+
/** Where a destination opens: where the person is, or a new context — a new tab or window on the web. */
|
|
4
|
+
export type TanreiLinkTarget = 'same' | 'new';
|
|
5
|
+
/** D7: the glyph of the system's icon set that marks a link which opens a new context. The icon set mirrors it. */
|
|
6
|
+
export declare const LINK_MARK = "open_in_new";
|
|
7
|
+
/** D3: the keys that press a link. Enter activates; Space does what it does on any link and shows no pressed state. */
|
|
8
|
+
export declare const LINK_KEYS: readonly string[];
|
|
9
|
+
/**
|
|
10
|
+
* D9 in a stylesheet: the disabled condition of an element that is a native control or the anchor of its link form — a
|
|
11
|
+
* disabled anchor has no `:disabled`, it carries `aria-disabled="true"`. One pseudo-class, so a selector that ends in it
|
|
12
|
+
* weighs what it weighed with `:disabled`.
|
|
13
|
+
*/
|
|
14
|
+
export declare const DISABLED = ":is(:disabled, [aria-disabled='true'])";
|
|
15
|
+
/** Why an address is not a destination (D11): it names a script to run, or the platform cannot read it as an address. */
|
|
16
|
+
export type LinkRefusal = 'script' | 'unreadable';
|
|
17
|
+
/**
|
|
18
|
+
* D11 — what is not a place to go is not a destination. White space is no destination (and no finding); an address
|
|
19
|
+
* with the `javascript:` scheme, or one the URL parser rejects, is refused. A path or a fragment is an address whatever
|
|
20
|
+
* the document's own is: it is read against the document's base, and against a hierarchical one where the document's
|
|
21
|
+
* cannot resolve it — whether a control is a link does not depend on where its page was loaded from. The address is
|
|
22
|
+
* handed to the anchor as it was given; the browser resolves it.
|
|
23
|
+
*/
|
|
24
|
+
export declare function readDestination(href: string | null | undefined): {
|
|
25
|
+
href: string | null;
|
|
26
|
+
refusal: LinkRefusal | null;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* The `target` prop as one of its two values: `same` and `new`, and HTML's spellings `_self` and `_blank` read as
|
|
30
|
+
* those (ASCII case-insensitively, as HTML reads them). Anything else — a named frame, `_top`, `_parent` — is `same`,
|
|
31
|
+
* and `known` is false (D11).
|
|
32
|
+
*/
|
|
33
|
+
export declare function readTarget(target: string | null | undefined): {
|
|
34
|
+
target: TanreiLinkTarget;
|
|
35
|
+
known: boolean;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* D6: the anchor's `rel` — the product's own, with `noopener` added for a new context so that the opened page has no
|
|
39
|
+
* handle to the one that opened it. `noreferrer` is never added: that is the product's choice, made through `rel`.
|
|
40
|
+
*/
|
|
41
|
+
export declare function linkRel(rel: string | null | undefined, target: TanreiLinkTarget): string | null;
|
|
42
|
+
/** The link a control is now: what its anchor carries and what the control draws and says for it. */
|
|
43
|
+
export interface LinkForm {
|
|
44
|
+
/** The address the anchor carries; null while the link is disabled (D9: an anchor without a destination). */
|
|
45
|
+
readonly href: string | null;
|
|
46
|
+
readonly target: TanreiLinkTarget;
|
|
47
|
+
/** D9: it cannot be followed. */
|
|
48
|
+
readonly disabled: boolean;
|
|
49
|
+
/** D7: it opens a new context, so a control that lays out its own content marks it with `LINK_MARK`. */
|
|
50
|
+
readonly opensNew: boolean;
|
|
51
|
+
/** D8: `targetLabel` while it opens a new context and the product gave one; null otherwise. */
|
|
52
|
+
readonly targetLabel: string | null;
|
|
53
|
+
/** The attributes of the anchor, null for one it does not carry (`linkAttributes()` writes them). */
|
|
54
|
+
readonly attributes: Readonly<Record<(typeof ANCHOR_ATTRIBUTES)[number], string | null>>;
|
|
55
|
+
}
|
|
56
|
+
/** Everything `linkAttributes()` owns on the anchor. A component's template binds none of these on its link form. */
|
|
57
|
+
declare const ANCHOR_ATTRIBUTES: readonly ['href', 'target', 'rel', 'download', 'role', 'aria-disabled'];
|
|
58
|
+
/** The destination props, and the two attributes the web forwards to the anchor. */
|
|
59
|
+
export interface LinkProps {
|
|
60
|
+
href: string;
|
|
61
|
+
target: string;
|
|
62
|
+
targetLabel: string;
|
|
63
|
+
rel: string | null;
|
|
64
|
+
download: string | null;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* The link form of `props`, or null where they name no destination (D11). `disabled`: D9 — the anchor without `href`,
|
|
68
|
+
* with `role="link"` (an anchor without an address has no role of its own) and `aria-disabled="true"`, and nothing a
|
|
69
|
+
* browser could follow or save. `role`: the role the anchor keeps in both forms, where its container's role fixes its
|
|
70
|
+
* children's (a link item of a menu is a menu item: MNU-53) — the element is still the browser's link.
|
|
71
|
+
*/
|
|
72
|
+
export declare function linkForm(props: LinkProps, disabled: boolean, role?: string | null): LinkForm | null;
|
|
73
|
+
declare class LinkAttributesDirective extends Directive {
|
|
74
|
+
constructor(part: PartInfo);
|
|
75
|
+
render(_form: LinkForm | null): symbol;
|
|
76
|
+
update(part: ElementPart, [form]: [LinkForm | null]): symbol;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* The anchor's attributes, written on the element it is placed on: `<a ${linkAttributes(form)}>`. With a form it owns
|
|
80
|
+
* `href`, `target` (`_blank` for a new context), `rel` (D6), `download`, `role` (none, or the one the form keeps) and
|
|
81
|
+
* — for a disabled link (D9) — `role="link"` and `aria-disabled="true"` in place of the first four. With `null` it touches nothing, so one template can draw the
|
|
82
|
+
* component's native element and its anchor.
|
|
83
|
+
*/
|
|
84
|
+
export declare const linkAttributes: (_form: LinkForm | null) => import("lit/directive.js").DirectiveResult<typeof LinkAttributesDirective>;
|
|
85
|
+
export interface LinkOptions {
|
|
86
|
+
/**
|
|
87
|
+
* The behaviour ids a debug report cites: `refused` — the sentence that says which forms take no destination, that an
|
|
88
|
+
* unknown `target` is `same` and which addresses are refused (BTN-26, CRD-23, CHP-37, LST-35); `newContext` — the one
|
|
89
|
+
* that says a link which opens a new context says so through `targetLabel` (BTN-24, CRD-21, CHP-35, LST-33).
|
|
90
|
+
*/
|
|
91
|
+
ids: {
|
|
92
|
+
refused: string;
|
|
93
|
+
newContext: string;
|
|
94
|
+
};
|
|
95
|
+
/** Whether the control is disabled now (D9). */
|
|
96
|
+
disabled: () => boolean;
|
|
97
|
+
/**
|
|
98
|
+
* D10 — a control that holds a state, or a second action, takes no destination: what the control is now when it is
|
|
99
|
+
* one of those ("a toggle", "a filter chip", "an option of a selectable list"), or null. The destination props are
|
|
100
|
+
* then ignored and a debug build says so.
|
|
101
|
+
*/
|
|
102
|
+
holds?: () => string | null;
|
|
103
|
+
/**
|
|
104
|
+
* The role the anchor carries in place of the link's, for a link inside a container whose role fixes its children's:
|
|
105
|
+
* a menu is read by its items, so a link item is exposed as a menu item (`menuitem`, MNU-53). The anchor stays the
|
|
106
|
+
* browser's link in everything else. Such a host also keeps its container's keys: it does not pass `pressKeys` on.
|
|
107
|
+
*/
|
|
108
|
+
role?: string;
|
|
109
|
+
}
|
|
110
|
+
type LinkHost = ReactiveControllerHost & HTMLElement & LinkProps;
|
|
111
|
+
/**
|
|
112
|
+
* The link form of a control, as a Lit controller: `form` is the link the host is now — null while it is
|
|
113
|
+
* the control it would be without a destination — and after every update a debug build is told what the host
|
|
114
|
+
* survived: a refused address (D11), an unknown `target` (D11), a destination on a control that takes none (D10), and
|
|
115
|
+
* a new context that is not said (D8). It listens to nothing: activation is the anchor's (see the top of this file).
|
|
116
|
+
*/
|
|
117
|
+
export declare class LinkController implements ReactiveController {
|
|
118
|
+
private readonly host;
|
|
119
|
+
private readonly options;
|
|
120
|
+
constructor(host: LinkHost, options: LinkOptions);
|
|
121
|
+
/** D8: `targetLabel` is the control's own prop, else the product's words of that name (`setWords()`). */
|
|
122
|
+
private readonly words;
|
|
123
|
+
/** The link the host is now, or null: no destination (D11), or a control that takes none (D10). */
|
|
124
|
+
get form(): LinkForm | null;
|
|
125
|
+
/**
|
|
126
|
+
* The keys that press the host, for `PressController`'s `keys`: Enter alone while it is a link (D3), the control's
|
|
127
|
+
* own keys (undefined: Enter and Space) otherwise.
|
|
128
|
+
*/
|
|
129
|
+
get pressKeys(): readonly string[] | undefined;
|
|
130
|
+
/**
|
|
131
|
+
* D8, D12: the description the anchor exposes — what the component already describes itself with (`before`, in
|
|
132
|
+
* reading order), then `targetLabel` while the link opens a new context. Nothing is added to the name. Null: none.
|
|
133
|
+
*/
|
|
134
|
+
describe(...before: (string | null | undefined)[]): string | null;
|
|
135
|
+
hostConnected(): void;
|
|
136
|
+
hostUpdated(): void;
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* D1 in a stylesheet whose rules name a native element by its tag: every rule written for `native` (`button`) names the
|
|
140
|
+
* anchor of the link form as well — `:is(button, a)`, which weighs what `button` weighed — so that the anchor IS the
|
|
141
|
+
* same styled part, in every state and from the same tokens, and a rule added for the native element later cannot be
|
|
142
|
+
* forgotten for the link. The tag is matched as a type selector only: never inside a custom property's name
|
|
143
|
+
* (`--tanrei-comp-button-…`), a keyword (`ButtonText`) or a quoted value (`[role='button']`). A stylesheet that names
|
|
144
|
+
* its part by a class needs none of this; `DISABLED` is the disabled condition both forms share.
|
|
145
|
+
*/
|
|
146
|
+
export declare function styledAsAnchorToo(styles: CSSResult, native: string): CSSResult;
|
|
147
|
+
export {};
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import { noChange, unsafeCSS } from 'lit';
|
|
2
|
+
import { Directive, PartType, directive } from 'lit/directive.js';
|
|
3
|
+
import { report } from './report.js';
|
|
4
|
+
import { WordsController } from './words.js';
|
|
5
|
+
/** D7: the glyph of the system's icon set that marks a link which opens a new context. The icon set mirrors it. */
|
|
6
|
+
export const LINK_MARK = 'open_in_new';
|
|
7
|
+
/** D3: the keys that press a link. Enter activates; Space does what it does on any link and shows no pressed state. */
|
|
8
|
+
export const LINK_KEYS = ['Enter'];
|
|
9
|
+
/**
|
|
10
|
+
* D9 in a stylesheet: the disabled condition of an element that is a native control or the anchor of its link form — a
|
|
11
|
+
* disabled anchor has no `:disabled`, it carries `aria-disabled="true"`. One pseudo-class, so a selector that ends in it
|
|
12
|
+
* weighs what it weighed with `:disabled`.
|
|
13
|
+
*/
|
|
14
|
+
export const DISABLED = ":is(:disabled, [aria-disabled='true'])";
|
|
15
|
+
/** A base that has a hierarchy, for a document whose own address has none (`about:blank`, a `data:` page). */
|
|
16
|
+
const HIERARCHICAL_BASE = 'https://tanrei.invalid/';
|
|
17
|
+
/**
|
|
18
|
+
* D11 — what is not a place to go is not a destination. White space is no destination (and no finding); an address
|
|
19
|
+
* with the `javascript:` scheme, or one the URL parser rejects, is refused. A path or a fragment is an address whatever
|
|
20
|
+
* the document's own is: it is read against the document's base, and against a hierarchical one where the document's
|
|
21
|
+
* cannot resolve it — whether a control is a link does not depend on where its page was loaded from. The address is
|
|
22
|
+
* handed to the anchor as it was given; the browser resolves it.
|
|
23
|
+
*/
|
|
24
|
+
export function readDestination(href) {
|
|
25
|
+
const given = href ?? '';
|
|
26
|
+
if (!given.trim())
|
|
27
|
+
return { href: null, refusal: null };
|
|
28
|
+
let url = null;
|
|
29
|
+
for (const base of [typeof document === 'undefined' ? HIERARCHICAL_BASE : document.baseURI, HIERARCHICAL_BASE]) {
|
|
30
|
+
try {
|
|
31
|
+
url = new URL(given, base);
|
|
32
|
+
break;
|
|
33
|
+
}
|
|
34
|
+
catch {
|
|
35
|
+
// The next base.
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
if (!url)
|
|
39
|
+
return { href: null, refusal: 'unreadable' };
|
|
40
|
+
// The parser has already dropped what a browser drops before it reads the scheme (leading control characters, tabs
|
|
41
|
+
// and line breaks inside it), so `java\nscript:` is caught as the browser would run it.
|
|
42
|
+
if (url.protocol === 'javascript:')
|
|
43
|
+
return { href: null, refusal: 'script' };
|
|
44
|
+
return { href: given, refusal: null };
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* The `target` prop as one of its two values: `same` and `new`, and HTML's spellings `_self` and `_blank` read as
|
|
48
|
+
* those (ASCII case-insensitively, as HTML reads them). Anything else — a named frame, `_top`, `_parent` — is `same`,
|
|
49
|
+
* and `known` is false (D11).
|
|
50
|
+
*/
|
|
51
|
+
export function readTarget(target) {
|
|
52
|
+
const given = (target ?? '').trim();
|
|
53
|
+
const html = given.toLowerCase();
|
|
54
|
+
if (given === '' || given === 'same' || html === '_self')
|
|
55
|
+
return { target: 'same', known: true };
|
|
56
|
+
if (given === 'new' || html === '_blank')
|
|
57
|
+
return { target: 'new', known: true };
|
|
58
|
+
return { target: 'same', known: false };
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* D6: the anchor's `rel` — the product's own, with `noopener` added for a new context so that the opened page has no
|
|
62
|
+
* handle to the one that opened it. `noreferrer` is never added: that is the product's choice, made through `rel`.
|
|
63
|
+
*/
|
|
64
|
+
export function linkRel(rel, target) {
|
|
65
|
+
const tokens = (rel ?? '').split(/\s+/).filter(Boolean);
|
|
66
|
+
if (target === 'new' && !tokens.some((token) => token.toLowerCase() === 'noopener'))
|
|
67
|
+
tokens.push('noopener');
|
|
68
|
+
return tokens.length ? tokens.join(' ') : null;
|
|
69
|
+
}
|
|
70
|
+
/** Everything `linkAttributes()` owns on the anchor. A component's template binds none of these on its link form. */
|
|
71
|
+
const ANCHOR_ATTRIBUTES = ['href', 'target', 'rel', 'download', 'role', 'aria-disabled'];
|
|
72
|
+
/**
|
|
73
|
+
* The link form of `props`, or null where they name no destination (D11). `disabled`: D9 — the anchor without `href`,
|
|
74
|
+
* with `role="link"` (an anchor without an address has no role of its own) and `aria-disabled="true"`, and nothing a
|
|
75
|
+
* browser could follow or save. `role`: the role the anchor keeps in both forms, where its container's role fixes its
|
|
76
|
+
* children's (a link item of a menu is a menu item: MNU-53) — the element is still the browser's link.
|
|
77
|
+
*/
|
|
78
|
+
export function linkForm(props, disabled, role = null) {
|
|
79
|
+
const { href } = readDestination(props.href);
|
|
80
|
+
if (href === null)
|
|
81
|
+
return null;
|
|
82
|
+
const { target } = readTarget(props.target);
|
|
83
|
+
const opensNew = target === 'new';
|
|
84
|
+
return {
|
|
85
|
+
href: disabled ? null : href,
|
|
86
|
+
target,
|
|
87
|
+
disabled,
|
|
88
|
+
opensNew,
|
|
89
|
+
targetLabel: opensNew && props.targetLabel.trim() ? props.targetLabel : null,
|
|
90
|
+
attributes: disabled
|
|
91
|
+
? { href: null, target: null, rel: null, download: null, role: role ?? 'link', 'aria-disabled': 'true' }
|
|
92
|
+
: { href, target: opensNew ? '_blank' : null, rel: linkRel(props.rel, target), download: props.download ?? null, role, 'aria-disabled': null },
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
class LinkAttributesDirective extends Directive {
|
|
96
|
+
constructor(part) {
|
|
97
|
+
super(part);
|
|
98
|
+
if (part.type !== PartType.ELEMENT)
|
|
99
|
+
throw new Error('linkAttributes() goes on the element itself: <a ${linkAttributes(form)}>');
|
|
100
|
+
}
|
|
101
|
+
render(_form) {
|
|
102
|
+
return noChange;
|
|
103
|
+
}
|
|
104
|
+
update(part, [form]) {
|
|
105
|
+
// Not a link: the element is the component's own (a native button, an element with the button role) and every
|
|
106
|
+
// attribute on it is the template's.
|
|
107
|
+
if (!form)
|
|
108
|
+
return noChange;
|
|
109
|
+
for (const name of ANCHOR_ATTRIBUTES) {
|
|
110
|
+
const value = form.attributes[name];
|
|
111
|
+
if (value === null) {
|
|
112
|
+
if (part.element.hasAttribute(name))
|
|
113
|
+
part.element.removeAttribute(name);
|
|
114
|
+
}
|
|
115
|
+
else if (part.element.getAttribute(name) !== value)
|
|
116
|
+
part.element.setAttribute(name, value);
|
|
117
|
+
}
|
|
118
|
+
return noChange;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* The anchor's attributes, written on the element it is placed on: `<a ${linkAttributes(form)}>`. With a form it owns
|
|
123
|
+
* `href`, `target` (`_blank` for a new context), `rel` (D6), `download`, `role` (none, or the one the form keeps) and
|
|
124
|
+
* — for a disabled link (D9) — `role="link"` and `aria-disabled="true"` in place of the first four. With `null` it touches nothing, so one template can draw the
|
|
125
|
+
* component's native element and its anchor.
|
|
126
|
+
*/
|
|
127
|
+
export const linkAttributes = directive(LinkAttributesDirective);
|
|
128
|
+
/**
|
|
129
|
+
* The link form of a control, as a Lit controller: `form` is the link the host is now — null while it is
|
|
130
|
+
* the control it would be without a destination — and after every update a debug build is told what the host
|
|
131
|
+
* survived: a refused address (D11), an unknown `target` (D11), a destination on a control that takes none (D10), and
|
|
132
|
+
* a new context that is not said (D8). It listens to nothing: activation is the anchor's (see the top of this file).
|
|
133
|
+
*/
|
|
134
|
+
export class LinkController {
|
|
135
|
+
constructor(host, options) {
|
|
136
|
+
this.host = host;
|
|
137
|
+
this.options = options;
|
|
138
|
+
host.addController(this);
|
|
139
|
+
this.words = new WordsController(host);
|
|
140
|
+
}
|
|
141
|
+
/** The link the host is now, or null: no destination (D11), or a control that takes none (D10). */
|
|
142
|
+
get form() {
|
|
143
|
+
if (this.options.holds?.())
|
|
144
|
+
return null;
|
|
145
|
+
const { host } = this;
|
|
146
|
+
// Named one by one: the props are a component's accessors, which a spread would not copy.
|
|
147
|
+
const props = { href: host.href, target: host.target, targetLabel: this.words.get('targetLabel', host.targetLabel), rel: host.rel, download: host.download };
|
|
148
|
+
return linkForm(props, this.options.disabled(), this.options.role ?? null);
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* The keys that press the host, for `PressController`'s `keys`: Enter alone while it is a link (D3), the control's
|
|
152
|
+
* own keys (undefined: Enter and Space) otherwise.
|
|
153
|
+
*/
|
|
154
|
+
get pressKeys() {
|
|
155
|
+
return this.form ? LINK_KEYS : undefined;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* D8, D12: the description the anchor exposes — what the component already describes itself with (`before`, in
|
|
159
|
+
* reading order), then `targetLabel` while the link opens a new context. Nothing is added to the name. Null: none.
|
|
160
|
+
*/
|
|
161
|
+
describe(...before) {
|
|
162
|
+
const parts = [...before, this.form?.targetLabel].filter((part) => !!part);
|
|
163
|
+
return parts.length ? parts.join(', ') : null;
|
|
164
|
+
}
|
|
165
|
+
hostConnected() { }
|
|
166
|
+
hostUpdated() {
|
|
167
|
+
const { host } = this;
|
|
168
|
+
const { refused, newContext } = this.options.ids;
|
|
169
|
+
const held = this.options.holds?.() ?? null;
|
|
170
|
+
const { href, refusal } = readDestination(host.href);
|
|
171
|
+
if (held) {
|
|
172
|
+
// D10: said once per control and kind, and only where a destination was actually given.
|
|
173
|
+
if (href !== null || refusal)
|
|
174
|
+
report(host, refused, `${held} cannot be a link: a control that holds a state, or a second action, is not a destination; href, target and targetLabel are ignored`);
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
if (refusal === 'script')
|
|
178
|
+
report(host, refused, 'href names a script to run, not a place to go; it is ignored and the control has no destination');
|
|
179
|
+
if (refusal === 'unreadable')
|
|
180
|
+
report(host, refused, `href "${host.href}" cannot be read as an address; it is ignored and the control has no destination`);
|
|
181
|
+
if (!readTarget(host.target).known)
|
|
182
|
+
report(host, refused, `target "${host.target}" is not a value it defines ("same" or "new"); it opens as "same"`);
|
|
183
|
+
const form = this.form;
|
|
184
|
+
if (form?.opensNew && !form.targetLabel) {
|
|
185
|
+
// Neither the control nor the product's words gave it: recorded for `missingWords()`, and said for this control.
|
|
186
|
+
this.words.lacks('targetLabel', host.targetLabel);
|
|
187
|
+
report(host, newContext, 'it opens a new context and targetLabel is empty, so nothing says so to people who cannot see the mark; give it the words ("opens in a new tab")');
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* D1 in a stylesheet whose rules name a native element by its tag: every rule written for `native` (`button`) names the
|
|
193
|
+
* anchor of the link form as well — `:is(button, a)`, which weighs what `button` weighed — so that the anchor IS the
|
|
194
|
+
* same styled part, in every state and from the same tokens, and a rule added for the native element later cannot be
|
|
195
|
+
* forgotten for the link. The tag is matched as a type selector only: never inside a custom property's name
|
|
196
|
+
* (`--tanrei-comp-button-…`), a keyword (`ButtonText`) or a quoted value (`[role='button']`). A stylesheet that names
|
|
197
|
+
* its part by a class needs none of this; `DISABLED` is the disabled condition both forms share.
|
|
198
|
+
*/
|
|
199
|
+
export function styledAsAnchorToo(styles, native) {
|
|
200
|
+
// No lookbehind: a browser without it would fail to load the component at all.
|
|
201
|
+
const type = new RegExp(`(^|[^-\\w'"])${native}(?![-\\w'"])`, 'g');
|
|
202
|
+
return unsafeCSS(styles.cssText.replace(type, `$1:is(${native}, a)`));
|
|
203
|
+
}
|
|
204
|
+
//# sourceMappingURL=link.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link.js","sourceRoot":"","sources":["../../src/primitives/link.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwE,QAAQ,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAChH,OAAO,EAAE,SAAS,EAAmC,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACnG,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAmB7C,mHAAmH;AACnH,MAAM,CAAC,MAAM,SAAS,GAAG,aAAa,CAAC;AAEvC,uHAAuH;AACvH,MAAM,CAAC,MAAM,SAAS,GAAsB,CAAC,OAAO,CAAC,CAAC;AAEtD;;;;GAIG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,wCAAwC,CAAC;AAKjE,8GAA8G;AAC9G,MAAM,iBAAiB,GAAG,yBAAyB,CAAC;AAEpD;;;;;;GAMG;AACH,MAAM,UAAU,eAAe,CAAC,IAA+B;IAC7D,MAAM,KAAK,GAAG,IAAI,IAAI,EAAE,CAAC;IACzB,IAAI,CAAC,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AE,WAAW,IAAI,CAAC,MAAM,mEAAmE,CAAC,CAAC;QACrJ,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACvB,IAAI,IAAI,EAAE,QAAQ,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;YACxC,iHAAiH;YACjH,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;YAClD,MAAM,CAAC,IAAI,EAAE,UAAU,EAAE,iJAAiJ,CAAC,CAAC;QAC9K,CAAC;IACH,CAAC;CACF;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,iBAAiB,CAAC,MAAiB,EAAE,MAAc;IACjE,+EAA+E;IAC/E,MAAM,IAAI,GAAG,IAAI,MAAM,CAAC,gBAAgB,MAAM,cAAc,EAAE,GAAG,CAAC,CAAC;IACnE,OAAO,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,SAAS,MAAM,MAAM,CAAC,CAAC,CAAC;AACxE,CAAC"}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { type CalendarDate, type CalendarMonth, type ClockTime, type HourCycle, type Weekday } from './calendar-date.js';
|
|
2
|
+
/** What a date, time or date-time value is (TXF-28). */
|
|
3
|
+
export type DateKind = 'date' | 'time' | 'date-time';
|
|
4
|
+
export declare const DATE_KINDS: ReadonlySet<string>;
|
|
5
|
+
/** The locale every fallback uses. */
|
|
6
|
+
export declare const FALLBACK_LOCALE = "en-US";
|
|
7
|
+
/** `tag` when the browser's `Intl` knows it, otherwise null. */
|
|
8
|
+
export declare function supportedLocale(tag: string): string | null;
|
|
9
|
+
/** The nearest `lang` attribute around `element` (through shadow roots), else the browser's language, else English. */
|
|
10
|
+
export declare function ambientLocale(element: Element): string;
|
|
11
|
+
/** The direction the locale writes in: its text is laid out in it (TXF-24). */
|
|
12
|
+
export declare function localeDirection(locale: string): 'ltr' | 'rtl';
|
|
13
|
+
/**
|
|
14
|
+
* `text` when it is the ISO 8601 form of `kind` — a calendar date (2026-09-27), hours and minutes on the 24-hour clock
|
|
15
|
+
* (14:30), or both joined by T (2026-09-27T14:30), with no time zone — otherwise null (TXF-31).
|
|
16
|
+
*/
|
|
17
|
+
export declare function isoValue(kind: DateKind, text: string): string | null;
|
|
18
|
+
/** Whether an ISO value lies between `min` and `max` (each ISO or empty for no limit): the fixed-width forms compare as text. */
|
|
19
|
+
export declare const withinRange: (value: string, min: string, max: string) => boolean;
|
|
20
|
+
/** The locale's ten digits ("0"…"9"; "٠"…"٩" in Arabic as Egypt writes it). */
|
|
21
|
+
export declare function localeDigits(locale: string): readonly string[];
|
|
22
|
+
/** An integer in the locale's digits, at least `minimumDigits` long ("09" for 9 at two digits). */
|
|
23
|
+
export declare const numberText: (locale: string, value: number, minimumDigits?: number) => string;
|
|
24
|
+
/** `text` with the locale's digits written as ASCII ones. */
|
|
25
|
+
export declare function asciiDigits(locale: string, text: string): string;
|
|
26
|
+
/**
|
|
27
|
+
* An ISO value in the locale's numeric form (TXF-28): "09/27/2026", "2026/09/27", "27.09.2026"; "2:30 PM", "14:30";
|
|
28
|
+
* "09/27/2026, 2:30 PM" — with a four-digit year and a two-digit month and day, the locale's clock and digits. An
|
|
29
|
+
* empty or malformed value is the empty text.
|
|
30
|
+
*/
|
|
31
|
+
export declare function formatValue(locale: string, kind: DateKind, value: string): string;
|
|
32
|
+
/**
|
|
33
|
+
* The placeholder of an empty field (TXF-28): the date pattern written with yyyy, mm and dd in the locale's order and with
|
|
34
|
+
* its separators ("mm/dd/yyyy"), hh:mm for a time, and the two joined by a space for a date-time.
|
|
35
|
+
*/
|
|
36
|
+
export declare function valuePattern(locale: string, kind: DateKind): string;
|
|
37
|
+
/** One unit of a date or a time that a segment holds (TXF-42). */
|
|
38
|
+
export type SegmentUnit = 'year' | 'month' | 'day' | 'hour' | 'minute' | 'period';
|
|
39
|
+
/** A piece of the row a date, time or date-time is drawn as: a unit's segment, or the text between two of them. */
|
|
40
|
+
export type RowPart = {
|
|
41
|
+
unit: SegmentUnit;
|
|
42
|
+
literal?: undefined;
|
|
43
|
+
} | {
|
|
44
|
+
literal: string;
|
|
45
|
+
unit?: undefined;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* The row of a `kind` in the locale's numeric form (TXF-42): its units in the locale's order and the text between them
|
|
49
|
+
* — month, day, year with "/" in en-US; year, month, day in ja-JP; hour, minute and, on a 12-hour clock, the day
|
|
50
|
+
* period where the locale writes it; a date-time's date, the text the locale joins them with, then its time. The text
|
|
51
|
+
* has plain spaces and no direction marks. Text before the first unit or after the last ("2026. 09. 27.") stays.
|
|
52
|
+
*/
|
|
53
|
+
export declare function valueRow(locale: string, kind: DateKind): readonly RowPart[];
|
|
54
|
+
/**
|
|
55
|
+
* The locale's own name for a unit ("year", "month", "AM/PM"; "年", "月", "午前/午後"): a segment's accessible name
|
|
56
|
+
* (TXF-47), and the hour's, the minute's and the period's in a picker (DTM-48). It is the platform's locale data and
|
|
57
|
+
* nothing else: an engine without the names of date and time fields gives the empty string, and no
|
|
58
|
+
* language's names stand in.
|
|
59
|
+
*/
|
|
60
|
+
export declare function unitName(locale: string, unit: SegmentUnit): string;
|
|
61
|
+
/**
|
|
62
|
+
* The locale's own word for the present day ("today", "今日", "aujourd’hui"): what a calendar and a picker say of the
|
|
63
|
+
* current year where the product gave no word (CAL-35, DTM-48). The platform's locale data — the relative form of
|
|
64
|
+
* "in 0 days" — and nothing else: empty where an engine has none.
|
|
65
|
+
*/
|
|
66
|
+
export declare function todayName(locale: string): string;
|
|
67
|
+
/** A month's name in the locale ("September", "9月"): part of the month segment's value text (TXF-47). */
|
|
68
|
+
export declare const monthName: (locale: string, month: number) => string;
|
|
69
|
+
/** A year with four digits, in the locale's digits ("2026", "0987"). */
|
|
70
|
+
export declare const yearText: (locale: string, year: number) => string;
|
|
71
|
+
/**
|
|
72
|
+
* What typed text reads as (TXF-29), as an ISO value, or null: a date, a time, or a date and then a time separated by
|
|
73
|
+
* white space, a comma or T. The locale's digits read as ASCII ones; a two-digit year is not read.
|
|
74
|
+
*/
|
|
75
|
+
export declare function readText(locale: string, kind: DateKind, typed: string): string | null;
|
|
76
|
+
/**
|
|
77
|
+
* The locale's first day of the week (CAL-24): `Intl.Locale`'s week information where the browser has it (it honours a
|
|
78
|
+
* `-u-fw-` extension), otherwise CLDR's weekData for the locale's region — the region `Intl.Locale.maximize()` gives a
|
|
79
|
+
* tag without one.
|
|
80
|
+
*/
|
|
81
|
+
export declare function localeFirstDay(locale: string): Weekday;
|
|
82
|
+
/** The weekdays' narrow names ("S", "M" in English; "日", "月" in Japanese), Sunday first (CAL-4). */
|
|
83
|
+
export declare const narrowWeekdays: (locale: string) => string[];
|
|
84
|
+
/** The weekdays' full names ("Sunday"), Sunday first: the column headers' names (CAL-4). */
|
|
85
|
+
export declare const longWeekdays: (locale: string) => string[];
|
|
86
|
+
/** The month and year in the locale's form ("September 2026", "2026年9月"): the view toggle and the grid's name (CAL-6). */
|
|
87
|
+
export declare const monthYearText: (locale: string, month: CalendarMonth) => string;
|
|
88
|
+
/** The full date ("Thursday, September 17, 2026"): a day's accessible name (CAL-23). */
|
|
89
|
+
export declare const fullDateText: (locale: string, date: CalendarDate) => string;
|
|
90
|
+
/**
|
|
91
|
+
* The locale's preferred clock (DTM-16): `resolvedOptions().hourCycle` of an hour format, a locale that counts 0 to 11
|
|
92
|
+
* taken as h12 and one that counts 1 to 24 as h23. The web does not report a device-wide 12/24-hour choice, so the
|
|
93
|
+
* locale alone decides.
|
|
94
|
+
*/
|
|
95
|
+
export declare function localeHourCycle(locale: string): HourCycle;
|
|
96
|
+
/**
|
|
97
|
+
* The clock a locale can draw: a 12-hour clock needs the names of its two periods, which are the platform's locale
|
|
98
|
+
* data and nobody else's — a locale without them draws the 24-hour clock, whatever was asked.
|
|
99
|
+
*/
|
|
100
|
+
export declare const clockFor: (locale: string, cycle: HourCycle) => HourCycle;
|
|
101
|
+
/**
|
|
102
|
+
* An hour as the locale writes an hour of the clock in use (DTM-18, DTM-21): "7" in en-US with h12, "07" with h23 — the
|
|
103
|
+
* hour part of the locale's own hour-and-minute format, in its digits.
|
|
104
|
+
*/
|
|
105
|
+
export declare function hourText(locale: string, cycle: HourCycle, hour: number): string;
|
|
106
|
+
/** A minute with two digits, in the locale's digits. */
|
|
107
|
+
export declare const minuteText: (locale: string, minute: number) => string;
|
|
108
|
+
/** The locale's separator between hours and minutes (":" in most). */
|
|
109
|
+
export declare function timeSeparator(locale: string): string;
|
|
110
|
+
/**
|
|
111
|
+
* The locale's names of the periods, before and after noon ("AM" and "PM"; "午前" and "午後") (DTM-14) — the platform's
|
|
112
|
+
* locale data; empty where it has none, and then the clock is the 24-hour one (`clockFor()`).
|
|
113
|
+
*/
|
|
114
|
+
export declare function periodNames(locale: string): [string, string];
|
|
115
|
+
/**
|
|
116
|
+
* Where the locale's 12-hour pattern writes the period: `before` the hour ("午後7:30") or `after` the minutes ("7:30 PM"),
|
|
117
|
+
* from the order of the `dayPeriod` part — what an hour's spoken value follows (DTM-20).
|
|
118
|
+
*/
|
|
119
|
+
export declare function periodPlace(locale: string): 'before' | 'after';
|
|
120
|
+
/** A time as the locale writes it in the clock in use ("7:30 PM", "19:30", "午後7:30"), with plain spaces (DTM-15). */
|
|
121
|
+
export declare const timeText: (locale: string, cycle: HourCycle, time: ClockTime) => string;
|
|
122
|
+
/**
|
|
123
|
+
* A date in the picker's header (DTM-10): the abbreviated weekday, month and day ("Thu, Sep 17", "9月17日(木)") — or, for
|
|
124
|
+
* a range's end, the abbreviated month and day ("Sep 10") — with the year when it is not `currentYear`, and with the time
|
|
125
|
+
* in the clock in use when one is given ("Thu, Sep 17, 7:30 PM"): the date as the locale writes it, the locale's join
|
|
126
|
+
* and the time as the locale writes it (`timeText`), put together here so that every engine draws the same text.
|
|
127
|
+
*/
|
|
128
|
+
export declare function headerDateText(locale: string, date: CalendarDate, currentYear: number, { weekday, time, cycle }?: {
|
|
129
|
+
cycle?: HourCycle | undefined;
|
|
130
|
+
time?: ClockTime | null | undefined;
|
|
131
|
+
weekday?: boolean | undefined;
|
|
132
|
+
}): string;
|