@und-ui/core 0.1.0 → 0.3.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/README.md +7 -1
- package/custom-elements.json +58977 -10716
- package/dist/alert-dialog.d.ts +9 -0
- package/dist/alert-dialog.d.ts.map +1 -0
- package/dist/alert-dialog.js +9 -0
- package/dist/alert-dialog.js.map +1 -0
- package/dist/all.d.ts +79 -0
- package/dist/all.d.ts.map +1 -1
- package/dist/all.js +81 -0
- package/dist/all.js.map +1 -1
- package/dist/app-shell.d.ts +2 -0
- package/dist/app-shell.d.ts.map +1 -0
- package/dist/app-shell.js +8 -0
- package/dist/app-shell.js.map +1 -0
- package/dist/aspect-ratio.d.ts +2 -0
- package/dist/aspect-ratio.d.ts.map +1 -0
- package/dist/aspect-ratio.js +8 -0
- package/dist/aspect-ratio.js.map +1 -0
- package/dist/autoloader.d.ts +9 -0
- package/dist/autoloader.js +147 -0
- package/dist/banner.d.ts +2 -0
- package/dist/banner.d.ts.map +1 -0
- package/dist/banner.js +8 -0
- package/dist/banner.js.map +1 -0
- package/dist/blockquote.d.ts +2 -0
- package/dist/blockquote.d.ts.map +1 -0
- package/dist/blockquote.js +8 -0
- package/dist/blockquote.js.map +1 -0
- package/dist/bottom-sheet.d.ts +2 -0
- package/dist/bottom-sheet.d.ts.map +1 -0
- package/dist/bottom-sheet.js +8 -0
- package/dist/bottom-sheet.js.map +1 -0
- package/dist/button-group.d.ts +2 -0
- package/dist/button-group.d.ts.map +1 -0
- package/dist/button-group.js +8 -0
- package/dist/button-group.js.map +1 -0
- package/dist/calendar.d.ts +2 -0
- package/dist/calendar.d.ts.map +1 -0
- package/dist/calendar.js +8 -0
- package/dist/calendar.js.map +1 -0
- package/dist/carousel.d.ts +2 -0
- package/dist/carousel.d.ts.map +1 -0
- package/dist/carousel.js +8 -0
- package/dist/carousel.js.map +1 -0
- package/dist/cdn/accordion.js +1 -0
- package/dist/cdn/alert.js +214 -0
- package/dist/cdn/all.js +18030 -0
- package/dist/cdn/app-shell.js +172 -0
- package/dist/cdn/aspect-ratio.js +82 -0
- package/dist/cdn/autoloader.js +1 -0
- package/dist/cdn/avatar-group.js +89 -0
- package/dist/cdn/avatar.js +1 -0
- package/dist/cdn/badge.js +243 -0
- package/dist/cdn/banner.js +244 -0
- package/dist/cdn/blockquote.js +54 -0
- package/dist/cdn/bottom-sheet.js +93 -0
- package/dist/cdn/breadcrumb-item.js +1 -0
- package/dist/cdn/breadcrumb.js +1 -0
- package/dist/cdn/button-group.js +1 -0
- package/dist/cdn/button.js +1 -0
- package/dist/cdn/calendar.js +1 -0
- package/dist/cdn/card.js +1 -0
- package/dist/cdn/carousel.js +391 -0
- package/dist/cdn/center.js +69 -0
- package/dist/cdn/chat-composer.js +376 -0
- package/dist/cdn/chat-layout.js +266 -0
- package/dist/cdn/chat-message.js +635 -0
- package/dist/cdn/checkbox-list.js +130 -0
- package/dist/cdn/checkbox.js +1 -0
- package/dist/cdn/chunks/2NKWY2MD.js +1 -0
- package/dist/cdn/chunks/35H42XYK.js +193 -0
- package/dist/cdn/chunks/4LZZFW3X.js +25 -0
- package/dist/cdn/chunks/4NF3RISF.js +197 -0
- package/dist/cdn/chunks/5BX4HEHZ.js +1 -0
- package/dist/cdn/chunks/5QSE3Y2A.js +12 -0
- package/dist/cdn/chunks/62ZR2A52.js +77 -0
- package/dist/cdn/chunks/73BPUMRZ.js +21 -0
- package/dist/cdn/chunks/7FX3ODJD.js +1 -0
- package/dist/cdn/chunks/7Q37LUBP.js +1 -0
- package/dist/cdn/chunks/A2MFQ7MV.js +386 -0
- package/dist/cdn/chunks/AFVQZOYK.js +1 -0
- package/dist/cdn/chunks/AH74TYPT.js +1 -0
- package/dist/cdn/chunks/APG264XI.js +278 -0
- package/dist/cdn/chunks/AQKDJ33E.js +1 -0
- package/dist/cdn/chunks/AXXUTP2F.js +97 -0
- package/dist/cdn/chunks/AYKEMR33.js +223 -0
- package/dist/cdn/chunks/BKDEXOWH.js +1 -0
- package/dist/cdn/chunks/BPAPN5U5.js +184 -0
- package/dist/cdn/chunks/BPVNR2UL.js +208 -0
- package/dist/cdn/chunks/DC5BD7YO.js +340 -0
- package/dist/cdn/chunks/DDMOITKE.js +1 -0
- package/dist/cdn/chunks/DG7YPFFO.js +229 -0
- package/dist/cdn/chunks/DWHDSDOI.js +1 -0
- package/dist/cdn/chunks/DYQMVGAC.js +244 -0
- package/dist/cdn/chunks/E4ULE3CZ.js +28 -0
- package/dist/cdn/chunks/ENXZIAQC.js +202 -0
- package/dist/cdn/chunks/ERZVCCWG.js +1 -0
- package/dist/cdn/chunks/FB4JU25W.js +1 -0
- package/dist/cdn/chunks/FFVAJNZY.js +258 -0
- package/dist/cdn/chunks/FQ5Z2ADE.js +1 -0
- package/dist/cdn/chunks/FSHM6LRG.js +141 -0
- package/dist/cdn/chunks/GABTGDAV.js +9 -0
- package/dist/cdn/chunks/GBWHWWM7.js +1 -0
- package/dist/cdn/chunks/HCAU6QLT.js +195 -0
- package/dist/cdn/chunks/HJLUTHQ4.js +28 -0
- package/dist/cdn/chunks/IJ33CPAJ.js +143 -0
- package/dist/cdn/chunks/IZSGJ2E7.js +1 -0
- package/dist/cdn/chunks/JIAFHSB3.js +1 -0
- package/dist/cdn/chunks/JLEESVNU.js +47 -0
- package/dist/cdn/chunks/JSGBG32L.js +1 -0
- package/dist/cdn/chunks/KJKMJ4CJ.js +1 -0
- package/dist/cdn/chunks/L7GXMZPH.js +124 -0
- package/dist/cdn/chunks/LAHY3QCY.js +1 -0
- package/dist/cdn/chunks/LUMZDQSN.js +1 -0
- package/dist/cdn/chunks/M34HKRAH.js +1 -0
- package/dist/cdn/chunks/MVNBLMZX.js +311 -0
- package/dist/cdn/chunks/NDBYWSKA.js +295 -0
- package/dist/cdn/chunks/NOAT4MJU.js +1 -0
- package/dist/cdn/chunks/NSGFRI4V.js +1 -0
- package/dist/cdn/chunks/OPNTVYNE.js +491 -0
- package/dist/cdn/chunks/ORDFN4FF.js +180 -0
- package/dist/cdn/chunks/QC64VL54.js +1 -0
- package/dist/cdn/chunks/QI5KLKPP.js +2 -0
- package/dist/cdn/chunks/RBKCBV34.js +10 -0
- package/dist/cdn/chunks/S6G53LD3.js +143 -0
- package/dist/cdn/chunks/SCDSMYMG.js +311 -0
- package/dist/cdn/chunks/SNYY4OHN.js +112 -0
- package/dist/cdn/chunks/TRE5MISQ.js +84 -0
- package/dist/cdn/chunks/U7MPBIQK.js +15 -0
- package/dist/cdn/chunks/UOJCBKNF.js +1 -0
- package/dist/cdn/chunks/USD6Y75F.js +105 -0
- package/dist/cdn/chunks/UYQK4UCY.js +120 -0
- package/dist/cdn/chunks/VOHVT25O.js +1 -0
- package/dist/cdn/chunks/VQPJF5GN.js +265 -0
- package/dist/cdn/chunks/VSCNFM2U.js +16 -0
- package/dist/cdn/chunks/VWGB35YM.js +1 -0
- package/dist/cdn/chunks/W7LU44VJ.js +245 -0
- package/dist/cdn/chunks/WPLY7F3R.js +1 -0
- package/dist/cdn/chunks/X4ES62AQ.js +1 -0
- package/dist/cdn/chunks/X4WMYGUB.js +114 -0
- package/dist/cdn/chunks/XJPF373C.js +1 -0
- package/dist/cdn/chunks/Z5CQ6NOH.js +1 -0
- package/dist/cdn/chunks/Z7SOJPLB.js +248 -0
- package/dist/cdn/chunks/ZMEFU637.js +1 -0
- package/dist/cdn/chunks/ZTM5JMU2.js +218 -0
- package/dist/cdn/citation.js +166 -0
- package/dist/cdn/clickable-card.js +35 -0
- package/dist/cdn/code-block.js +396 -0
- package/dist/cdn/code.js +43 -0
- package/dist/cdn/collapsible.js +11 -0
- package/dist/cdn/combobox.js +1 -0
- package/dist/cdn/command-palette.js +242 -0
- package/dist/cdn/context-menu.js +15 -0
- package/dist/cdn/date-input.js +1 -0
- package/dist/cdn/date-range-input.js +1 -0
- package/dist/cdn/date-time-input.js +9 -0
- package/dist/cdn/dialog.js +1 -0
- package/dist/cdn/divider.js +88 -0
- package/dist/cdn/drawer.js +1 -0
- package/dist/cdn/empty-state.js +133 -0
- package/dist/cdn/file-input.js +221 -0
- package/dist/cdn/form-field.js +16 -0
- package/dist/cdn/form-layout.js +97 -0
- package/dist/cdn/grid-item.js +1 -0
- package/dist/cdn/grid.js +109 -0
- package/dist/cdn/heading.js +151 -0
- package/dist/cdn/hover-card.js +9 -0
- package/dist/cdn/icon-button.js +37 -0
- package/dist/cdn/icon.js +143 -0
- package/dist/cdn/indicator.js +166 -0
- package/dist/cdn/info-tip.js +117 -0
- package/dist/cdn/input-group.js +69 -0
- package/dist/cdn/item.js +259 -0
- package/dist/cdn/kbd.js +55 -0
- package/dist/cdn/layout.js +172 -0
- package/dist/cdn/lightbox.js +302 -0
- package/dist/cdn/link.js +160 -0
- package/dist/cdn/list-item.js +1 -0
- package/dist/cdn/list.js +1 -0
- package/dist/cdn/markdown.js +1 -0
- package/dist/cdn/menu-group.js +1 -0
- package/dist/cdn/menu-item.js +1 -0
- package/dist/cdn/menu-separator.js +1 -0
- package/dist/cdn/menu.js +1 -0
- package/dist/cdn/metadata-item.js +1 -0
- package/dist/cdn/metadata-list.js +1 -0
- package/dist/cdn/mobile-nav.js +115 -0
- package/dist/cdn/more-menu.js +62 -0
- package/dist/cdn/multi-select.js +70 -0
- package/dist/cdn/nav-icon.js +48 -0
- package/dist/cdn/nav-item.js +141 -0
- package/dist/cdn/nav-menu-item.js +1 -0
- package/dist/cdn/nav-menu.js +52 -0
- package/dist/cdn/number-input.js +123 -0
- package/dist/cdn/outline.js +155 -0
- package/dist/cdn/overflow-list.js +127 -0
- package/dist/cdn/pagination.js +223 -0
- package/dist/cdn/popover.js +1 -0
- package/dist/cdn/power-search.js +338 -0
- package/dist/cdn/progress.js +227 -0
- package/dist/cdn/radio-group.js +1 -0
- package/dist/cdn/radio-list.js +80 -0
- package/dist/cdn/radio.js +1 -0
- package/dist/cdn/resize-handle.js +1 -0
- package/dist/cdn/scroll-area.js +95 -0
- package/dist/cdn/section.js +71 -0
- package/dist/cdn/segmented-control-item.js +1 -0
- package/dist/cdn/segmented-control.js +1 -0
- package/dist/cdn/select.js +43 -0
- package/dist/cdn/selectable-card.js +212 -0
- package/dist/cdn/side-nav-heading.js +1 -0
- package/dist/cdn/side-nav-item.js +1 -0
- package/dist/cdn/side-nav-section.js +1 -0
- package/dist/cdn/side-nav.js +1 -0
- package/dist/cdn/skeleton.js +134 -0
- package/dist/cdn/slider.js +204 -0
- package/dist/cdn/snap-paging.js +62 -0
- package/dist/cdn/spinner.js +124 -0
- package/dist/cdn/stack.js +88 -0
- package/dist/cdn/status-dot.js +87 -0
- package/dist/cdn/step.js +1 -0
- package/dist/cdn/stepper.js +1 -0
- package/dist/cdn/swipe-action.js +1 -0
- package/dist/cdn/swipe.js +71 -0
- package/dist/cdn/switch.js +201 -0
- package/dist/cdn/tab-menu.js +144 -0
- package/dist/cdn/tab-panel.js +1 -0
- package/dist/cdn/tab.js +1 -0
- package/dist/cdn/table.js +407 -0
- package/dist/cdn/tabs.js +1 -0
- package/dist/cdn/text-field.js +1 -0
- package/dist/cdn/text.js +203 -0
- package/dist/cdn/textarea.js +174 -0
- package/dist/cdn/thumbnail.js +252 -0
- package/dist/cdn/time-input.js +1 -0
- package/dist/cdn/timer.js +34 -0
- package/dist/cdn/timestamp.js +40 -0
- package/dist/cdn/toast.js +1 -0
- package/dist/cdn/toaster.js +1 -0
- package/dist/cdn/toggle-button-group.js +1 -0
- package/dist/cdn/toggle-button.js +29 -0
- package/dist/cdn/token.js +1 -0
- package/dist/cdn/tokenizer.js +191 -0
- package/dist/cdn/toolbar.js +37 -0
- package/dist/cdn/tooltip.js +73 -0
- package/dist/cdn/top-nav-item.js +1 -0
- package/dist/cdn/top-nav-menu.js +1 -0
- package/dist/cdn/top-nav.js +1 -0
- package/dist/cdn/tree-item.js +1 -0
- package/dist/cdn/tree-list.js +1 -0
- package/dist/cdn/typeahead.js +1 -0
- package/dist/cdn/visually-hidden.js +22 -0
- package/dist/center.d.ts +2 -0
- package/dist/center.d.ts.map +1 -0
- package/dist/center.js +8 -0
- package/dist/center.js.map +1 -0
- package/dist/chat-composer.d.ts +2 -0
- package/dist/chat-composer.d.ts.map +1 -0
- package/dist/chat-composer.js +8 -0
- package/dist/chat-composer.js.map +1 -0
- package/dist/chat-layout.d.ts +2 -0
- package/dist/chat-layout.d.ts.map +1 -0
- package/dist/chat-layout.js +8 -0
- package/dist/chat-layout.js.map +1 -0
- package/dist/chat-message.d.ts +2 -0
- package/dist/chat-message.d.ts.map +1 -0
- package/dist/chat-message.js +11 -0
- package/dist/chat-message.js.map +1 -0
- package/dist/checkbox-list.d.ts +3 -0
- package/dist/checkbox-list.d.ts.map +1 -0
- package/dist/checkbox-list.js +11 -0
- package/dist/checkbox-list.js.map +1 -0
- package/dist/citation.d.ts +2 -0
- package/dist/citation.d.ts.map +1 -0
- package/dist/citation.js +8 -0
- package/dist/citation.js.map +1 -0
- package/dist/clickable-card.d.ts +2 -0
- package/dist/clickable-card.d.ts.map +1 -0
- package/dist/clickable-card.js +8 -0
- package/dist/clickable-card.js.map +1 -0
- package/dist/code-block.d.ts +2 -0
- package/dist/code-block.d.ts.map +1 -0
- package/dist/code-block.js +8 -0
- package/dist/code-block.js.map +1 -0
- package/dist/code.d.ts +2 -0
- package/dist/code.d.ts.map +1 -0
- package/dist/code.js +8 -0
- package/dist/code.js.map +1 -0
- package/dist/collapsible.d.ts +2 -0
- package/dist/collapsible.d.ts.map +1 -0
- package/dist/collapsible.js +8 -0
- package/dist/collapsible.js.map +1 -0
- package/dist/command-palette.d.ts +2 -0
- package/dist/command-palette.d.ts.map +1 -0
- package/dist/command-palette.js +8 -0
- package/dist/command-palette.js.map +1 -0
- package/dist/components/accordion/accordion.d.ts +1 -0
- package/dist/components/accordion/accordion.d.ts.map +1 -1
- package/dist/components/accordion/accordion.js +1 -0
- package/dist/components/accordion/accordion.js.map +1 -1
- package/dist/components/accordion/accordion.styles.d.ts.map +1 -1
- package/dist/components/accordion/accordion.styles.js +105 -103
- package/dist/components/accordion/accordion.styles.js.map +1 -1
- package/dist/components/alert/alert.d.ts +5 -2
- package/dist/components/alert/alert.d.ts.map +1 -1
- package/dist/components/alert/alert.js +20 -4
- package/dist/components/alert/alert.js.map +1 -1
- package/dist/components/alert/alert.styles.d.ts +4 -0
- package/dist/components/alert/alert.styles.d.ts.map +1 -1
- package/dist/components/alert/alert.styles.js +185 -145
- package/dist/components/alert/alert.styles.js.map +1 -1
- package/dist/components/alert-dialog/alert-dialog.d.ts +26 -0
- package/dist/components/alert-dialog/alert-dialog.d.ts.map +1 -0
- package/dist/components/alert-dialog/alert-dialog.js +81 -0
- package/dist/components/alert-dialog/alert-dialog.js.map +1 -0
- package/dist/components/app-shell/app-shell.d.ts +103 -0
- package/dist/components/app-shell/app-shell.d.ts.map +1 -0
- package/dist/components/app-shell/app-shell.js +289 -0
- package/dist/components/app-shell/app-shell.js.map +1 -0
- package/dist/components/aspect-ratio/aspect-ratio.d.ts +59 -0
- package/dist/components/aspect-ratio/aspect-ratio.d.ts.map +1 -0
- package/dist/components/aspect-ratio/aspect-ratio.js +131 -0
- package/dist/components/aspect-ratio/aspect-ratio.js.map +1 -0
- package/dist/components/avatar/avatar-group.d.ts +16 -3
- package/dist/components/avatar/avatar-group.d.ts.map +1 -1
- package/dist/components/avatar/avatar-group.js +78 -57
- package/dist/components/avatar/avatar-group.js.map +1 -1
- package/dist/components/avatar/avatar.d.ts +11 -5
- package/dist/components/avatar/avatar.d.ts.map +1 -1
- package/dist/components/avatar/avatar.js +150 -91
- package/dist/components/avatar/avatar.js.map +1 -1
- package/dist/components/badge/badge.d.ts +16 -0
- package/dist/components/badge/badge.d.ts.map +1 -1
- package/dist/components/badge/badge.js +231 -118
- package/dist/components/badge/badge.js.map +1 -1
- package/dist/components/banner/banner.d.ts +144 -0
- package/dist/components/banner/banner.d.ts.map +1 -0
- package/dist/components/banner/banner.js +368 -0
- package/dist/components/banner/banner.js.map +1 -0
- package/dist/components/blockquote/blockquote.d.ts +43 -0
- package/dist/components/blockquote/blockquote.d.ts.map +1 -0
- package/dist/components/blockquote/blockquote.js +95 -0
- package/dist/components/blockquote/blockquote.js.map +1 -0
- package/dist/components/bottom-sheet/bottom-sheet.d.ts +129 -0
- package/dist/components/bottom-sheet/bottom-sheet.d.ts.map +1 -0
- package/dist/components/bottom-sheet/bottom-sheet.js +280 -0
- package/dist/components/bottom-sheet/bottom-sheet.js.map +1 -0
- package/dist/components/bottom-sheet/bottom-sheet.styles.d.ts +8 -0
- package/dist/components/bottom-sheet/bottom-sheet.styles.d.ts.map +1 -0
- package/dist/components/bottom-sheet/bottom-sheet.styles.js +86 -0
- package/dist/components/bottom-sheet/bottom-sheet.styles.js.map +1 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +10 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts.map +1 -1
- package/dist/components/breadcrumb/breadcrumb.js +10 -1
- package/dist/components/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/components/breadcrumb/breadcrumb.styles.d.ts.map +1 -1
- package/dist/components/breadcrumb/breadcrumb.styles.js +97 -94
- package/dist/components/breadcrumb/breadcrumb.styles.js.map +1 -1
- package/dist/components/button/button.d.ts +4 -1
- package/dist/components/button/button.d.ts.map +1 -1
- package/dist/components/button/button.js +27 -2
- package/dist/components/button/button.js.map +1 -1
- package/dist/components/button/button.styles.d.ts.map +1 -1
- package/dist/components/button/button.styles.js +355 -290
- package/dist/components/button/button.styles.js.map +1 -1
- package/dist/components/button-group/button-group.d.ts +60 -0
- package/dist/components/button-group/button-group.d.ts.map +1 -0
- package/dist/components/button-group/button-group.js +126 -0
- package/dist/components/button-group/button-group.js.map +1 -0
- package/dist/components/calendar/calendar.d.ts +163 -0
- package/dist/components/calendar/calendar.d.ts.map +1 -0
- package/dist/components/calendar/calendar.js +420 -0
- package/dist/components/calendar/calendar.js.map +1 -0
- package/dist/components/calendar/calendar.styles.d.ts +3 -0
- package/dist/components/calendar/calendar.styles.d.ts.map +1 -0
- package/dist/components/calendar/calendar.styles.js +267 -0
- package/dist/components/calendar/calendar.styles.js.map +1 -0
- package/dist/components/card/card.d.ts +24 -5
- package/dist/components/card/card.d.ts.map +1 -1
- package/dist/components/card/card.js +195 -119
- package/dist/components/card/card.js.map +1 -1
- package/dist/components/carousel/carousel.d.ts +235 -0
- package/dist/components/carousel/carousel.d.ts.map +1 -0
- package/dist/components/carousel/carousel.js +525 -0
- package/dist/components/carousel/carousel.js.map +1 -0
- package/dist/components/carousel/carousel.styles.d.ts +3 -0
- package/dist/components/carousel/carousel.styles.d.ts.map +1 -0
- package/dist/components/carousel/carousel.styles.js +329 -0
- package/dist/components/carousel/carousel.styles.js.map +1 -0
- package/dist/components/center/center.d.ts +138 -0
- package/dist/components/center/center.d.ts.map +1 -0
- package/dist/components/center/center.js +117 -0
- package/dist/components/center/center.js.map +1 -0
- package/dist/components/chat/chat-composer.d.ts +241 -0
- package/dist/components/chat/chat-composer.d.ts.map +1 -0
- package/dist/components/chat/chat-composer.js +325 -0
- package/dist/components/chat/chat-composer.js.map +1 -0
- package/dist/components/chat/chat-composer.styles.d.ts +5 -0
- package/dist/components/chat/chat-composer.styles.d.ts.map +1 -0
- package/dist/components/chat/chat-composer.styles.js +329 -0
- package/dist/components/chat/chat-composer.styles.js.map +1 -0
- package/dist/components/chat/chat-icons.d.ts +26 -0
- package/dist/components/chat/chat-icons.d.ts.map +1 -0
- package/dist/components/chat/chat-icons.js +27 -0
- package/dist/components/chat/chat-icons.js.map +1 -0
- package/dist/components/chat/chat-layout.d.ts +150 -0
- package/dist/components/chat/chat-layout.d.ts.map +1 -0
- package/dist/components/chat/chat-layout.js +287 -0
- package/dist/components/chat/chat-layout.js.map +1 -0
- package/dist/components/chat/chat-layout.styles.d.ts +3 -0
- package/dist/components/chat/chat-layout.styles.d.ts.map +1 -0
- package/dist/components/chat/chat-layout.styles.js +223 -0
- package/dist/components/chat/chat-layout.styles.js.map +1 -0
- package/dist/components/chat/chat-message.d.ts +233 -0
- package/dist/components/chat/chat-message.d.ts.map +1 -0
- package/dist/components/chat/chat-message.js +338 -0
- package/dist/components/chat/chat-message.js.map +1 -0
- package/dist/components/chat/chat-message.styles.d.ts +3 -0
- package/dist/components/chat/chat-message.styles.d.ts.map +1 -0
- package/dist/components/chat/chat-message.styles.js +569 -0
- package/dist/components/chat/chat-message.styles.js.map +1 -0
- package/dist/components/checkbox/checkbox.styles.d.ts.map +1 -1
- package/dist/components/checkbox/checkbox.styles.js +207 -167
- package/dist/components/checkbox/checkbox.styles.js.map +1 -1
- package/dist/components/checkbox-list/checkbox-list.d.ts +109 -0
- package/dist/components/checkbox-list/checkbox-list.d.ts.map +1 -0
- package/dist/components/checkbox-list/checkbox-list.js +230 -0
- package/dist/components/checkbox-list/checkbox-list.js.map +1 -0
- package/dist/components/checkbox-list/checkbox-list.styles.d.ts +3 -0
- package/dist/components/checkbox-list/checkbox-list.styles.d.ts.map +1 -0
- package/dist/components/checkbox-list/checkbox-list.styles.js +116 -0
- package/dist/components/checkbox-list/checkbox-list.styles.js.map +1 -0
- package/dist/components/citation/citation.d.ts +100 -0
- package/dist/components/citation/citation.d.ts.map +1 -0
- package/dist/components/citation/citation.js +259 -0
- package/dist/components/citation/citation.js.map +1 -0
- package/dist/components/clickable-card/clickable-card.d.ts +67 -0
- package/dist/components/clickable-card/clickable-card.d.ts.map +1 -0
- package/dist/components/clickable-card/clickable-card.js +92 -0
- package/dist/components/clickable-card/clickable-card.js.map +1 -0
- package/dist/components/code/code.d.ts +50 -0
- package/dist/components/code/code.d.ts.map +1 -0
- package/dist/components/code/code.js +78 -0
- package/dist/components/code/code.js.map +1 -0
- package/dist/components/code-block/code-block.d.ts +244 -0
- package/dist/components/code-block/code-block.d.ts.map +1 -0
- package/dist/components/code-block/code-block.js +299 -0
- package/dist/components/code-block/code-block.js.map +1 -0
- package/dist/components/code-block/code-block.styles.d.ts +11 -0
- package/dist/components/code-block/code-block.styles.d.ts.map +1 -0
- package/dist/components/code-block/code-block.styles.js +359 -0
- package/dist/components/code-block/code-block.styles.js.map +1 -0
- package/dist/components/collapsible/collapsible.d.ts +57 -0
- package/dist/components/collapsible/collapsible.d.ts.map +1 -0
- package/dist/components/collapsible/collapsible.js +95 -0
- package/dist/components/collapsible/collapsible.js.map +1 -0
- package/dist/components/collapsible/collapsible.styles.d.ts +10 -0
- package/dist/components/collapsible/collapsible.styles.d.ts.map +1 -0
- package/dist/components/collapsible/collapsible.styles.js +22 -0
- package/dist/components/collapsible/collapsible.styles.js.map +1 -0
- package/dist/components/combobox/combobox.styles.d.ts.map +1 -1
- package/dist/components/combobox/combobox.styles.js +164 -149
- package/dist/components/combobox/combobox.styles.js.map +1 -1
- package/dist/components/command-palette/command-palette.d.ts +192 -0
- package/dist/components/command-palette/command-palette.d.ts.map +1 -0
- package/dist/components/command-palette/command-palette.js +370 -0
- package/dist/components/command-palette/command-palette.js.map +1 -0
- package/dist/components/command-palette/command-palette.styles.d.ts +6 -0
- package/dist/components/command-palette/command-palette.styles.d.ts.map +1 -0
- package/dist/components/command-palette/command-palette.styles.js +182 -0
- package/dist/components/command-palette/command-palette.styles.js.map +1 -0
- package/dist/components/context-menu/context-menu.d.ts +79 -0
- package/dist/components/context-menu/context-menu.d.ts.map +1 -0
- package/dist/components/context-menu/context-menu.js +144 -0
- package/dist/components/context-menu/context-menu.js.map +1 -0
- package/dist/components/context-menu/context-menu.styles.d.ts +3 -0
- package/dist/components/context-menu/context-menu.styles.d.ts.map +1 -0
- package/dist/components/context-menu/context-menu.styles.js +18 -0
- package/dist/components/context-menu/context-menu.styles.js.map +1 -0
- package/dist/components/date-input/date-input.d.ts +150 -0
- package/dist/components/date-input/date-input.d.ts.map +1 -0
- package/dist/components/date-input/date-input.js +273 -0
- package/dist/components/date-input/date-input.js.map +1 -0
- package/dist/components/date-range-input/date-range-input.d.ts +158 -0
- package/dist/components/date-range-input/date-range-input.d.ts.map +1 -0
- package/dist/components/date-range-input/date-range-input.js +387 -0
- package/dist/components/date-range-input/date-range-input.js.map +1 -0
- package/dist/components/date-time-input/date-time-input.d.ts +178 -0
- package/dist/components/date-time-input/date-time-input.d.ts.map +1 -0
- package/dist/components/date-time-input/date-time-input.js +276 -0
- package/dist/components/date-time-input/date-time-input.js.map +1 -0
- package/dist/components/dialog/dialog.d.ts +24 -3
- package/dist/components/dialog/dialog.d.ts.map +1 -1
- package/dist/components/dialog/dialog.js +45 -26
- package/dist/components/dialog/dialog.js.map +1 -1
- package/dist/components/dialog/dialog.styles.d.ts +8 -3
- package/dist/components/dialog/dialog.styles.d.ts.map +1 -1
- package/dist/components/dialog/dialog.styles.js +246 -205
- package/dist/components/dialog/dialog.styles.js.map +1 -1
- package/dist/components/divider/divider.d.ts +21 -1
- package/dist/components/divider/divider.d.ts.map +1 -1
- package/dist/components/divider/divider.js +72 -52
- package/dist/components/divider/divider.js.map +1 -1
- package/dist/components/drawer/drawer.d.ts +4 -2
- package/dist/components/drawer/drawer.d.ts.map +1 -1
- package/dist/components/drawer/drawer.js +4 -2
- package/dist/components/drawer/drawer.js.map +1 -1
- package/dist/components/drawer/drawer.styles.d.ts +8 -3
- package/dist/components/drawer/drawer.styles.d.ts.map +1 -1
- package/dist/components/drawer/drawer.styles.js +122 -97
- package/dist/components/drawer/drawer.styles.js.map +1 -1
- package/dist/components/empty-state/empty-state.d.ts +68 -0
- package/dist/components/empty-state/empty-state.d.ts.map +1 -0
- package/dist/components/empty-state/empty-state.js +200 -0
- package/dist/components/empty-state/empty-state.js.map +1 -0
- package/dist/components/file-input/file-input.d.ts +122 -0
- package/dist/components/file-input/file-input.d.ts.map +1 -0
- package/dist/components/file-input/file-input.js +364 -0
- package/dist/components/file-input/file-input.js.map +1 -0
- package/dist/components/file-input/file-input.styles.d.ts +3 -0
- package/dist/components/file-input/file-input.styles.d.ts.map +1 -0
- package/dist/components/file-input/file-input.styles.js +226 -0
- package/dist/components/file-input/file-input.styles.js.map +1 -0
- package/dist/components/form-field/error-summary.styles.js +46 -46
- package/dist/components/form-field/field-base.d.ts +46 -0
- package/dist/components/form-field/field-base.d.ts.map +1 -1
- package/dist/components/form-field/field-base.js +77 -12
- package/dist/components/form-field/field-base.js.map +1 -1
- package/dist/components/form-field/field-helpers.d.ts +24 -3
- package/dist/components/form-field/field-helpers.d.ts.map +1 -1
- package/dist/components/form-field/field-helpers.js +74 -5
- package/dist/components/form-field/field-helpers.js.map +1 -1
- package/dist/components/form-field/form-field.d.ts +39 -0
- package/dist/components/form-field/form-field.d.ts.map +1 -1
- package/dist/components/form-field/form-field.js +33 -15
- package/dist/components/form-field/form-field.js.map +1 -1
- package/dist/components/form-field/form-field.styles.d.ts.map +1 -1
- package/dist/components/form-field/form-field.styles.js +194 -69
- package/dist/components/form-field/form-field.styles.js.map +1 -1
- package/dist/components/form-layout/form-layout.d.ts +50 -0
- package/dist/components/form-layout/form-layout.d.ts.map +1 -0
- package/dist/components/form-layout/form-layout.js +42 -0
- package/dist/components/form-layout/form-layout.js.map +1 -0
- package/dist/components/form-layout/form-layout.styles.d.ts +3 -0
- package/dist/components/form-layout/form-layout.styles.d.ts.map +1 -0
- package/dist/components/form-layout/form-layout.styles.js +102 -0
- package/dist/components/form-layout/form-layout.styles.js.map +1 -0
- package/dist/components/grid/grid-item.d.ts +36 -0
- package/dist/components/grid/grid-item.d.ts.map +1 -0
- package/dist/components/grid/grid-item.js +45 -0
- package/dist/components/grid/grid-item.js.map +1 -0
- package/dist/components/grid/grid.d.ts +137 -0
- package/dist/components/grid/grid.d.ts.map +1 -0
- package/dist/components/grid/grid.js +174 -0
- package/dist/components/grid/grid.js.map +1 -0
- package/dist/components/heading/heading.d.ts +122 -0
- package/dist/components/heading/heading.d.ts.map +1 -0
- package/dist/components/heading/heading.js +78 -0
- package/dist/components/heading/heading.js.map +1 -0
- package/dist/components/heading/heading.styles.d.ts +9 -0
- package/dist/components/heading/heading.styles.d.ts.map +1 -0
- package/dist/components/heading/heading.styles.js +162 -0
- package/dist/components/heading/heading.styles.js.map +1 -0
- package/dist/components/hover-card/hover-card.d.ts +123 -0
- package/dist/components/hover-card/hover-card.d.ts.map +1 -0
- package/dist/components/hover-card/hover-card.js +324 -0
- package/dist/components/hover-card/hover-card.js.map +1 -0
- package/dist/components/icon/icon-registry.d.ts +60 -0
- package/dist/components/icon/icon-registry.d.ts.map +1 -0
- package/dist/components/icon/icon-registry.js +136 -0
- package/dist/components/icon/icon-registry.js.map +1 -0
- package/dist/components/icon/icon.d.ts +108 -0
- package/dist/components/icon/icon.d.ts.map +1 -0
- package/dist/components/icon/icon.js +222 -0
- package/dist/components/icon/icon.js.map +1 -0
- package/dist/components/icon-button/icon-button.js +30 -30
- package/dist/components/indicator/indicator.d.ts +89 -0
- package/dist/components/indicator/indicator.d.ts.map +1 -0
- package/dist/components/indicator/indicator.js +249 -0
- package/dist/components/indicator/indicator.js.map +1 -0
- package/dist/components/info-tip/info-tip.d.ts +82 -0
- package/dist/components/info-tip/info-tip.d.ts.map +1 -0
- package/dist/components/info-tip/info-tip.js +209 -0
- package/dist/components/info-tip/info-tip.js.map +1 -0
- package/dist/components/input-group/input-group.d.ts +41 -0
- package/dist/components/input-group/input-group.d.ts.map +1 -0
- package/dist/components/input-group/input-group.js +79 -0
- package/dist/components/input-group/input-group.js.map +1 -0
- package/dist/components/input-group/input-group.styles.d.ts +3 -0
- package/dist/components/input-group/input-group.styles.d.ts.map +1 -0
- package/dist/components/input-group/input-group.styles.js +74 -0
- package/dist/components/input-group/input-group.styles.js.map +1 -0
- package/dist/components/item/item.d.ts +163 -0
- package/dist/components/item/item.d.ts.map +1 -0
- package/dist/components/item/item.js +412 -0
- package/dist/components/item/item.js.map +1 -0
- package/dist/components/kbd/kbd.d.ts +52 -0
- package/dist/components/kbd/kbd.d.ts.map +1 -0
- package/dist/components/kbd/kbd.js +170 -0
- package/dist/components/kbd/kbd.js.map +1 -0
- package/dist/components/layout/layout.d.ts +131 -0
- package/dist/components/layout/layout.d.ts.map +1 -0
- package/dist/components/layout/layout.js +260 -0
- package/dist/components/layout/layout.js.map +1 -0
- package/dist/components/lightbox/lightbox.d.ts +171 -0
- package/dist/components/lightbox/lightbox.d.ts.map +1 -0
- package/dist/components/lightbox/lightbox.js +276 -0
- package/dist/components/lightbox/lightbox.js.map +1 -0
- package/dist/components/lightbox/lightbox.styles.d.ts +11 -0
- package/dist/components/lightbox/lightbox.styles.d.ts.map +1 -0
- package/dist/components/lightbox/lightbox.styles.js +236 -0
- package/dist/components/lightbox/lightbox.styles.js.map +1 -0
- package/dist/components/link/link.js +116 -116
- package/dist/components/list/list-item.d.ts +124 -0
- package/dist/components/list/list-item.d.ts.map +1 -0
- package/dist/components/list/list-item.js +387 -0
- package/dist/components/list/list-item.js.map +1 -0
- package/dist/components/list/list.d.ts +98 -0
- package/dist/components/list/list.d.ts.map +1 -0
- package/dist/components/list/list.js +129 -0
- package/dist/components/list/list.js.map +1 -0
- package/dist/components/listbox/listbox.styles.d.ts.map +1 -1
- package/dist/components/listbox/listbox.styles.js +143 -137
- package/dist/components/listbox/listbox.styles.js.map +1 -1
- package/dist/components/markdown/markdown.d.ts +125 -0
- package/dist/components/markdown/markdown.d.ts.map +1 -0
- package/dist/components/markdown/markdown.js +126 -0
- package/dist/components/markdown/markdown.js.map +1 -0
- package/dist/components/markdown/markdown.styles.d.ts +10 -0
- package/dist/components/markdown/markdown.styles.d.ts.map +1 -0
- package/dist/components/markdown/markdown.styles.js +311 -0
- package/dist/components/markdown/markdown.styles.js.map +1 -0
- package/dist/components/markdown/parser.d.ts +67 -0
- package/dist/components/markdown/parser.d.ts.map +1 -0
- package/dist/components/markdown/parser.js +511 -0
- package/dist/components/markdown/parser.js.map +1 -0
- package/dist/components/markdown/render.d.ts +15 -0
- package/dist/components/markdown/render.d.ts.map +1 -0
- package/dist/components/markdown/render.js +172 -0
- package/dist/components/markdown/render.js.map +1 -0
- package/dist/components/menu/menu.d.ts +21 -2
- package/dist/components/menu/menu.d.ts.map +1 -1
- package/dist/components/menu/menu.js +83 -15
- package/dist/components/menu/menu.js.map +1 -1
- package/dist/components/menu/menu.styles.d.ts.map +1 -1
- package/dist/components/menu/menu.styles.js +193 -188
- package/dist/components/menu/menu.styles.js.map +1 -1
- package/dist/components/metadata-list/metadata-item.d.ts +35 -0
- package/dist/components/metadata-list/metadata-item.d.ts.map +1 -0
- package/dist/components/metadata-list/metadata-item.js +39 -0
- package/dist/components/metadata-list/metadata-item.js.map +1 -0
- package/dist/components/metadata-list/metadata-list.d.ts +102 -0
- package/dist/components/metadata-list/metadata-list.d.ts.map +1 -0
- package/dist/components/metadata-list/metadata-list.js +232 -0
- package/dist/components/metadata-list/metadata-list.js.map +1 -0
- package/dist/components/mobile-nav/mobile-nav.d.ts +93 -0
- package/dist/components/mobile-nav/mobile-nav.d.ts.map +1 -0
- package/dist/components/mobile-nav/mobile-nav.js +141 -0
- package/dist/components/mobile-nav/mobile-nav.js.map +1 -0
- package/dist/components/mobile-nav/mobile-nav.styles.d.ts +3 -0
- package/dist/components/mobile-nav/mobile-nav.styles.d.ts.map +1 -0
- package/dist/components/mobile-nav/mobile-nav.styles.js +84 -0
- package/dist/components/mobile-nav/mobile-nav.styles.js.map +1 -0
- package/dist/components/more-menu/more-menu.d.ts +60 -0
- package/dist/components/more-menu/more-menu.d.ts.map +1 -0
- package/dist/components/more-menu/more-menu.js +62 -0
- package/dist/components/more-menu/more-menu.js.map +1 -0
- package/dist/components/more-menu/more-menu.styles.d.ts +3 -0
- package/dist/components/more-menu/more-menu.styles.d.ts.map +1 -0
- package/dist/components/more-menu/more-menu.styles.js +55 -0
- package/dist/components/more-menu/more-menu.styles.js.map +1 -0
- package/dist/components/multi-select/multi-select.d.ts +211 -0
- package/dist/components/multi-select/multi-select.d.ts.map +1 -0
- package/dist/components/multi-select/multi-select.js +562 -0
- package/dist/components/multi-select/multi-select.js.map +1 -0
- package/dist/components/multi-select/multi-select.styles.d.ts +6 -0
- package/dist/components/multi-select/multi-select.styles.d.ts.map +1 -0
- package/dist/components/multi-select/multi-select.styles.js +28 -0
- package/dist/components/multi-select/multi-select.styles.js.map +1 -0
- package/dist/components/nav-icon/nav-icon.d.ts +39 -0
- package/dist/components/nav-icon/nav-icon.d.ts.map +1 -0
- package/dist/components/nav-icon/nav-icon.js +78 -0
- package/dist/components/nav-icon/nav-icon.js.map +1 -0
- package/dist/components/nav-item/nav-item.d.ts +95 -0
- package/dist/components/nav-item/nav-item.d.ts.map +1 -0
- package/dist/components/nav-item/nav-item.js +210 -0
- package/dist/components/nav-item/nav-item.js.map +1 -0
- package/dist/components/nav-menu/nav-menu-item.d.ts +65 -0
- package/dist/components/nav-menu/nav-menu-item.d.ts.map +1 -0
- package/dist/components/nav-menu/nav-menu-item.js +161 -0
- package/dist/components/nav-menu/nav-menu-item.js.map +1 -0
- package/dist/components/nav-menu/nav-menu.d.ts +65 -0
- package/dist/components/nav-menu/nav-menu.d.ts.map +1 -0
- package/dist/components/nav-menu/nav-menu.js +153 -0
- package/dist/components/nav-menu/nav-menu.js.map +1 -0
- package/dist/components/number-input/number-format.d.ts +38 -0
- package/dist/components/number-input/number-format.d.ts.map +1 -0
- package/dist/components/number-input/number-format.js +114 -0
- package/dist/components/number-input/number-format.js.map +1 -0
- package/dist/components/number-input/number-input.d.ts +211 -0
- package/dist/components/number-input/number-input.d.ts.map +1 -0
- package/dist/components/number-input/number-input.js +515 -0
- package/dist/components/number-input/number-input.js.map +1 -0
- package/dist/components/number-input/number-input.styles.d.ts +3 -0
- package/dist/components/number-input/number-input.styles.d.ts.map +1 -0
- package/dist/components/number-input/number-input.styles.js +128 -0
- package/dist/components/number-input/number-input.styles.js.map +1 -0
- package/dist/components/outline/outline.d.ts +125 -0
- package/dist/components/outline/outline.d.ts.map +1 -0
- package/dist/components/outline/outline.js +305 -0
- package/dist/components/outline/outline.js.map +1 -0
- package/dist/components/outline/outline.styles.d.ts +11 -0
- package/dist/components/outline/outline.styles.d.ts.map +1 -0
- package/dist/components/outline/outline.styles.js +152 -0
- package/dist/components/outline/outline.styles.js.map +1 -0
- package/dist/components/overflow-list/overflow-list.d.ts +81 -0
- package/dist/components/overflow-list/overflow-list.d.ts.map +1 -0
- package/dist/components/overflow-list/overflow-list.js +214 -0
- package/dist/components/overflow-list/overflow-list.js.map +1 -0
- package/dist/components/overflow-list/overflow-list.styles.d.ts +3 -0
- package/dist/components/overflow-list/overflow-list.styles.d.ts.map +1 -0
- package/dist/components/overflow-list/overflow-list.styles.js +116 -0
- package/dist/components/overflow-list/overflow-list.styles.js.map +1 -0
- package/dist/components/pagination/pagination.d.ts +46 -1
- package/dist/components/pagination/pagination.d.ts.map +1 -1
- package/dist/components/pagination/pagination.js +47 -10
- package/dist/components/pagination/pagination.js.map +1 -1
- package/dist/components/pagination/pagination.styles.d.ts.map +1 -1
- package/dist/components/pagination/pagination.styles.js +178 -137
- package/dist/components/pagination/pagination.styles.js.map +1 -1
- package/dist/components/popover/popover.d.ts +20 -0
- package/dist/components/popover/popover.d.ts.map +1 -1
- package/dist/components/popover/popover.js +16 -1
- package/dist/components/popover/popover.js.map +1 -1
- package/dist/components/popover/popover.styles.d.ts +8 -5
- package/dist/components/popover/popover.styles.d.ts.map +1 -1
- package/dist/components/popover/popover.styles.js +132 -87
- package/dist/components/popover/popover.styles.js.map +1 -1
- package/dist/components/power-search/power-search.d.ts +230 -0
- package/dist/components/power-search/power-search.d.ts.map +1 -0
- package/dist/components/power-search/power-search.js +782 -0
- package/dist/components/power-search/power-search.js.map +1 -0
- package/dist/components/power-search/power-search.styles.d.ts +8 -0
- package/dist/components/power-search/power-search.styles.d.ts.map +1 -0
- package/dist/components/power-search/power-search.styles.js +264 -0
- package/dist/components/power-search/power-search.styles.js.map +1 -0
- package/dist/components/power-search/query.d.ts +82 -0
- package/dist/components/power-search/query.d.ts.map +1 -0
- package/dist/components/power-search/query.js +164 -0
- package/dist/components/power-search/query.js.map +1 -0
- package/dist/components/progress/progress.d.ts +39 -3
- package/dist/components/progress/progress.d.ts.map +1 -1
- package/dist/components/progress/progress.js +208 -142
- package/dist/components/progress/progress.js.map +1 -1
- package/dist/components/radio-group/radio-group.d.ts +6 -2
- package/dist/components/radio-group/radio-group.d.ts.map +1 -1
- package/dist/components/radio-group/radio-group.js +27 -21
- package/dist/components/radio-group/radio-group.js.map +1 -1
- package/dist/components/radio-group/radio.d.ts +6 -2
- package/dist/components/radio-group/radio.d.ts.map +1 -1
- package/dist/components/radio-group/radio.js +21 -13
- package/dist/components/radio-group/radio.js.map +1 -1
- package/dist/components/radio-group/radio.styles.d.ts.map +1 -1
- package/dist/components/radio-group/radio.styles.js +193 -152
- package/dist/components/radio-group/radio.styles.js.map +1 -1
- package/dist/components/radio-list/radio-list.d.ts +33 -0
- package/dist/components/radio-list/radio-list.d.ts.map +1 -0
- package/dist/components/radio-list/radio-list.js +32 -0
- package/dist/components/radio-list/radio-list.js.map +1 -0
- package/dist/components/radio-list/radio-list.styles.d.ts +3 -0
- package/dist/components/radio-list/radio-list.styles.d.ts.map +1 -0
- package/dist/components/radio-list/radio-list.styles.js +85 -0
- package/dist/components/radio-list/radio-list.styles.js.map +1 -0
- package/dist/components/resize-handle/resize-handle.d.ts +141 -0
- package/dist/components/resize-handle/resize-handle.d.ts.map +1 -0
- package/dist/components/resize-handle/resize-handle.js +426 -0
- package/dist/components/resize-handle/resize-handle.js.map +1 -0
- package/dist/components/scroll-area/scroll-area.d.ts +64 -0
- package/dist/components/scroll-area/scroll-area.d.ts.map +1 -0
- package/dist/components/scroll-area/scroll-area.js +204 -0
- package/dist/components/scroll-area/scroll-area.js.map +1 -0
- package/dist/components/section/section.d.ts +140 -0
- package/dist/components/section/section.d.ts.map +1 -0
- package/dist/components/section/section.js +137 -0
- package/dist/components/section/section.js.map +1 -0
- package/dist/components/segmented-control/segmented-control.d.ts +69 -0
- package/dist/components/segmented-control/segmented-control.d.ts.map +1 -0
- package/dist/components/segmented-control/segmented-control.js +208 -0
- package/dist/components/segmented-control/segmented-control.js.map +1 -0
- package/dist/components/segmented-control/segmented-control.styles.d.ts +3 -0
- package/dist/components/segmented-control/segmented-control.styles.d.ts.map +1 -0
- package/dist/components/segmented-control/segmented-control.styles.js +169 -0
- package/dist/components/segmented-control/segmented-control.styles.js.map +1 -0
- package/dist/components/select/select.d.ts +2 -2
- package/dist/components/select/select.d.ts.map +1 -1
- package/dist/components/select/select.js +6 -4
- package/dist/components/select/select.js.map +1 -1
- package/dist/components/select/select.styles.d.ts.map +1 -1
- package/dist/components/select/select.styles.js +261 -223
- package/dist/components/select/select.styles.js.map +1 -1
- package/dist/components/selectable-card/selectable-card.d.ts +70 -0
- package/dist/components/selectable-card/selectable-card.d.ts.map +1 -0
- package/dist/components/selectable-card/selectable-card.js +128 -0
- package/dist/components/selectable-card/selectable-card.js.map +1 -0
- package/dist/components/selectable-card/selectable-card.styles.d.ts +3 -0
- package/dist/components/selectable-card/selectable-card.styles.d.ts.map +1 -0
- package/dist/components/selectable-card/selectable-card.styles.js +217 -0
- package/dist/components/selectable-card/selectable-card.styles.js.map +1 -0
- package/dist/components/shared/activate-link.d.ts +8 -0
- package/dist/components/shared/activate-link.d.ts.map +1 -0
- package/dist/components/shared/activate-link.js +29 -0
- package/dist/components/shared/activate-link.js.map +1 -0
- package/dist/components/shared/calendar-picker.d.ts +47 -0
- package/dist/components/shared/calendar-picker.d.ts.map +1 -0
- package/dist/components/shared/calendar-picker.js +154 -0
- package/dist/components/shared/calendar-picker.js.map +1 -0
- package/dist/components/shared/date-check.d.ts +18 -0
- package/dist/components/shared/date-check.d.ts.map +1 -0
- package/dist/components/shared/date-check.js +44 -0
- package/dist/components/shared/date-check.js.map +1 -0
- package/dist/components/shared/date-field.styles.d.ts +3 -0
- package/dist/components/shared/date-field.styles.d.ts.map +1 -0
- package/dist/components/shared/date-field.styles.js +189 -0
- package/dist/components/shared/date-field.styles.js.map +1 -0
- package/dist/components/shared/date-strings.d.ts +51 -0
- package/dist/components/shared/date-strings.d.ts.map +1 -0
- package/dist/components/shared/date-strings.js +44 -0
- package/dist/components/shared/date-strings.js.map +1 -0
- package/dist/components/shared/date-utils.d.ts +90 -0
- package/dist/components/shared/date-utils.d.ts.map +1 -0
- package/dist/components/shared/date-utils.js +305 -0
- package/dist/components/shared/date-utils.js.map +1 -0
- package/dist/components/shared/heading-tag.d.ts +10 -0
- package/dist/components/shared/heading-tag.d.ts.map +1 -0
- package/dist/components/shared/heading-tag.js +27 -0
- package/dist/components/shared/heading-tag.js.map +1 -0
- package/dist/components/shared/host-aria.d.ts +15 -0
- package/dist/components/shared/host-aria.d.ts.map +1 -0
- package/dist/components/shared/host-aria.js +48 -0
- package/dist/components/shared/host-aria.js.map +1 -0
- package/dist/components/shared/indic.d.ts +15 -0
- package/dist/components/shared/indic.d.ts.map +1 -0
- package/dist/components/shared/indic.js +33 -0
- package/dist/components/shared/indic.js.map +1 -0
- package/dist/components/shared/layout.d.ts +27 -0
- package/dist/components/shared/layout.d.ts.map +1 -0
- package/dist/components/shared/layout.js +85 -0
- package/dist/components/shared/layout.js.map +1 -0
- package/dist/components/shared/slot-presence.d.ts +14 -0
- package/dist/components/shared/slot-presence.d.ts.map +1 -0
- package/dist/components/shared/slot-presence.js +33 -0
- package/dist/components/shared/slot-presence.js.map +1 -0
- package/dist/components/shared/status-icons.d.ts +8 -0
- package/dist/components/shared/status-icons.d.ts.map +1 -0
- package/dist/components/shared/status-icons.js +24 -0
- package/dist/components/shared/status-icons.js.map +1 -0
- package/dist/components/shared/strings.d.ts +17 -0
- package/dist/components/shared/strings.d.ts.map +1 -0
- package/dist/components/shared/strings.js +21 -0
- package/dist/components/shared/strings.js.map +1 -0
- package/dist/components/side-nav/side-nav.d.ts +257 -0
- package/dist/components/side-nav/side-nav.d.ts.map +1 -0
- package/dist/components/side-nav/side-nav.js +337 -0
- package/dist/components/side-nav/side-nav.js.map +1 -0
- package/dist/components/side-nav/side-nav.styles.d.ts +11 -0
- package/dist/components/side-nav/side-nav.styles.d.ts.map +1 -0
- package/dist/components/side-nav/side-nav.styles.js +437 -0
- package/dist/components/side-nav/side-nav.styles.js.map +1 -0
- package/dist/components/skeleton/skeleton.d.ts +39 -4
- package/dist/components/skeleton/skeleton.d.ts.map +1 -1
- package/dist/components/skeleton/skeleton.js +140 -68
- package/dist/components/skeleton/skeleton.js.map +1 -1
- package/dist/components/slider/slider.styles.d.ts.map +1 -1
- package/dist/components/slider/slider.styles.js +203 -181
- package/dist/components/slider/slider.styles.js.map +1 -1
- package/dist/components/snap-paging/snap-paging.d.ts +78 -0
- package/dist/components/snap-paging/snap-paging.d.ts.map +1 -0
- package/dist/components/snap-paging/snap-paging.js +269 -0
- package/dist/components/snap-paging/snap-paging.js.map +1 -0
- package/dist/components/spinner/spinner.d.ts +18 -4
- package/dist/components/spinner/spinner.d.ts.map +1 -1
- package/dist/components/spinner/spinner.js +117 -52
- package/dist/components/spinner/spinner.js.map +1 -1
- package/dist/components/stack/stack.d.ts +186 -0
- package/dist/components/stack/stack.d.ts.map +1 -0
- package/dist/components/stack/stack.js +180 -0
- package/dist/components/stack/stack.js.map +1 -0
- package/dist/components/status-dot/status-dot.d.ts +76 -0
- package/dist/components/status-dot/status-dot.d.ts.map +1 -0
- package/dist/components/status-dot/status-dot.js +159 -0
- package/dist/components/status-dot/status-dot.js.map +1 -0
- package/dist/components/stepper/stepper.d.ts +185 -0
- package/dist/components/stepper/stepper.d.ts.map +1 -0
- package/dist/components/stepper/stepper.js +203 -0
- package/dist/components/stepper/stepper.js.map +1 -0
- package/dist/components/stepper/stepper.styles.d.ts +7 -0
- package/dist/components/stepper/stepper.styles.d.ts.map +1 -0
- package/dist/components/stepper/stepper.styles.js +238 -0
- package/dist/components/stepper/stepper.styles.js.map +1 -0
- package/dist/components/swipe/swipe-action.d.ts +56 -0
- package/dist/components/swipe/swipe-action.d.ts.map +1 -0
- package/dist/components/swipe/swipe-action.js +123 -0
- package/dist/components/swipe/swipe-action.js.map +1 -0
- package/dist/components/swipe/swipe.d.ts +97 -0
- package/dist/components/swipe/swipe.d.ts.map +1 -0
- package/dist/components/swipe/swipe.js +378 -0
- package/dist/components/swipe/swipe.js.map +1 -0
- package/dist/components/switch/switch.styles.d.ts.map +1 -1
- package/dist/components/switch/switch.styles.js +200 -177
- package/dist/components/switch/switch.styles.js.map +1 -1
- package/dist/components/tab-menu/tab-menu.d.ts +65 -0
- package/dist/components/tab-menu/tab-menu.d.ts.map +1 -0
- package/dist/components/tab-menu/tab-menu.js +56 -0
- package/dist/components/tab-menu/tab-menu.js.map +1 -0
- package/dist/components/tab-menu/tab-menu.styles.d.ts +8 -0
- package/dist/components/tab-menu/tab-menu.styles.d.ts.map +1 -0
- package/dist/components/tab-menu/tab-menu.styles.js +151 -0
- package/dist/components/tab-menu/tab-menu.styles.js.map +1 -0
- package/dist/components/table/sort.d.ts +22 -0
- package/dist/components/table/sort.d.ts.map +1 -0
- package/dist/components/table/sort.js +36 -0
- package/dist/components/table/sort.js.map +1 -0
- package/dist/components/table/table.d.ts +150 -3
- package/dist/components/table/table.d.ts.map +1 -1
- package/dist/components/table/table.js +420 -23
- package/dist/components/table/table.js.map +1 -1
- package/dist/components/table/table.styles.d.ts.map +1 -1
- package/dist/components/table/table.styles.js +394 -149
- package/dist/components/table/table.styles.js.map +1 -1
- package/dist/components/tabs/tabs.styles.d.ts.map +1 -1
- package/dist/components/tabs/tabs.styles.js +188 -164
- package/dist/components/tabs/tabs.styles.js.map +1 -1
- package/dist/components/text/text.d.ts +130 -0
- package/dist/components/text/text.d.ts.map +1 -0
- package/dist/components/text/text.js +81 -0
- package/dist/components/text/text.js.map +1 -0
- package/dist/components/text/text.styles.d.ts +6 -0
- package/dist/components/text/text.styles.d.ts.map +1 -0
- package/dist/components/text/text.styles.js +207 -0
- package/dist/components/text/text.styles.js.map +1 -0
- package/dist/components/text-field/text-field.d.ts +20 -0
- package/dist/components/text-field/text-field.d.ts.map +1 -1
- package/dist/components/text-field/text-field.js +64 -1
- package/dist/components/text-field/text-field.js.map +1 -1
- package/dist/components/text-field/text-field.styles.d.ts.map +1 -1
- package/dist/components/text-field/text-field.styles.js +243 -135
- package/dist/components/text-field/text-field.styles.js.map +1 -1
- package/dist/components/textarea/textarea.d.ts +20 -0
- package/dist/components/textarea/textarea.d.ts.map +1 -1
- package/dist/components/textarea/textarea.js +34 -1
- package/dist/components/textarea/textarea.js.map +1 -1
- package/dist/components/textarea/textarea.styles.d.ts.map +1 -1
- package/dist/components/textarea/textarea.styles.js +173 -101
- package/dist/components/textarea/textarea.styles.js.map +1 -1
- package/dist/components/thumbnail/thumbnail.d.ts +137 -0
- package/dist/components/thumbnail/thumbnail.d.ts.map +1 -0
- package/dist/components/thumbnail/thumbnail.js +394 -0
- package/dist/components/thumbnail/thumbnail.js.map +1 -0
- package/dist/components/time-input/time-input.d.ts +128 -0
- package/dist/components/time-input/time-input.d.ts.map +1 -0
- package/dist/components/time-input/time-input.js +261 -0
- package/dist/components/time-input/time-input.js.map +1 -0
- package/dist/components/timer/timer.d.ts +113 -0
- package/dist/components/timer/timer.d.ts.map +1 -0
- package/dist/components/timer/timer.js +187 -0
- package/dist/components/timer/timer.js.map +1 -0
- package/dist/components/timer/timer.styles.d.ts +3 -0
- package/dist/components/timer/timer.styles.d.ts.map +1 -0
- package/dist/components/timer/timer.styles.js +36 -0
- package/dist/components/timer/timer.styles.js.map +1 -0
- package/dist/components/timestamp/timestamp.d.ts +135 -0
- package/dist/components/timestamp/timestamp.d.ts.map +1 -0
- package/dist/components/timestamp/timestamp.js +238 -0
- package/dist/components/timestamp/timestamp.js.map +1 -0
- package/dist/components/toast/toast.d.ts +14 -0
- package/dist/components/toast/toast.d.ts.map +1 -1
- package/dist/components/toast/toast.js +24 -17
- package/dist/components/toast/toast.js.map +1 -1
- package/dist/components/toast/toast.styles.d.ts +6 -3
- package/dist/components/toast/toast.styles.d.ts.map +1 -1
- package/dist/components/toast/toast.styles.js +274 -230
- package/dist/components/toast/toast.styles.js.map +1 -1
- package/dist/components/toast/toaster.d.ts +3 -1
- package/dist/components/toast/toaster.d.ts.map +1 -1
- package/dist/components/toast/toaster.js +3 -0
- package/dist/components/toast/toaster.js.map +1 -1
- package/dist/components/toggle-button/toggle-button.d.ts +36 -0
- package/dist/components/toggle-button/toggle-button.d.ts.map +1 -0
- package/dist/components/toggle-button/toggle-button.js +69 -0
- package/dist/components/toggle-button/toggle-button.js.map +1 -0
- package/dist/components/toggle-button-group/toggle-button-group.d.ts +123 -0
- package/dist/components/toggle-button-group/toggle-button-group.d.ts.map +1 -0
- package/dist/components/toggle-button-group/toggle-button-group.js +201 -0
- package/dist/components/toggle-button-group/toggle-button-group.js.map +1 -0
- package/dist/components/token/token.d.ts +105 -0
- package/dist/components/token/token.d.ts.map +1 -0
- package/dist/components/token/token.js +95 -0
- package/dist/components/token/token.js.map +1 -0
- package/dist/components/token/token.styles.d.ts +6 -0
- package/dist/components/token/token.styles.d.ts.map +1 -0
- package/dist/components/token/token.styles.js +117 -0
- package/dist/components/token/token.styles.js.map +1 -0
- package/dist/components/tokenizer/tokenizer.d.ts +252 -0
- package/dist/components/tokenizer/tokenizer.d.ts.map +1 -0
- package/dist/components/tokenizer/tokenizer.js +637 -0
- package/dist/components/tokenizer/tokenizer.js.map +1 -0
- package/dist/components/tokenizer/tokenizer.styles.d.ts +7 -0
- package/dist/components/tokenizer/tokenizer.styles.d.ts.map +1 -0
- package/dist/components/tokenizer/tokenizer.styles.js +133 -0
- package/dist/components/tokenizer/tokenizer.styles.js.map +1 -0
- package/dist/components/toolbar/toolbar.d.ts +59 -0
- package/dist/components/toolbar/toolbar.d.ts.map +1 -0
- package/dist/components/toolbar/toolbar.js +148 -0
- package/dist/components/toolbar/toolbar.js.map +1 -0
- package/dist/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip.js +4 -3
- package/dist/components/tooltip/tooltip.js.map +1 -1
- package/dist/components/tooltip/tooltip.styles.d.ts +6 -4
- package/dist/components/tooltip/tooltip.styles.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip.styles.js +79 -53
- package/dist/components/tooltip/tooltip.styles.js.map +1 -1
- package/dist/components/top-nav/top-nav.d.ts +160 -0
- package/dist/components/top-nav/top-nav.d.ts.map +1 -0
- package/dist/components/top-nav/top-nav.js +241 -0
- package/dist/components/top-nav/top-nav.js.map +1 -0
- package/dist/components/top-nav/top-nav.styles.d.ts +9 -0
- package/dist/components/top-nav/top-nav.styles.d.ts.map +1 -0
- package/dist/components/top-nav/top-nav.styles.js +285 -0
- package/dist/components/top-nav/top-nav.styles.js.map +1 -0
- package/dist/components/tree-list/tree-list.d.ts +206 -0
- package/dist/components/tree-list/tree-list.d.ts.map +1 -0
- package/dist/components/tree-list/tree-list.js +516 -0
- package/dist/components/tree-list/tree-list.js.map +1 -0
- package/dist/components/tree-list/tree-list.styles.d.ts +8 -0
- package/dist/components/tree-list/tree-list.styles.d.ts.map +1 -0
- package/dist/components/tree-list/tree-list.styles.js +209 -0
- package/dist/components/tree-list/tree-list.styles.js.map +1 -0
- package/dist/components/typeahead/typeahead.d.ts +102 -0
- package/dist/components/typeahead/typeahead.d.ts.map +1 -0
- package/dist/components/typeahead/typeahead.js +69 -0
- package/dist/components/typeahead/typeahead.js.map +1 -0
- package/dist/components/visually-hidden/visually-hidden.d.ts.map +1 -1
- package/dist/components/visually-hidden/visually-hidden.js +21 -16
- package/dist/components/visually-hidden/visually-hidden.js.map +1 -1
- package/dist/context-menu.d.ts +3 -0
- package/dist/context-menu.d.ts.map +1 -0
- package/dist/context-menu.js +9 -0
- package/dist/context-menu.js.map +1 -0
- package/dist/date-input.d.ts +2 -0
- package/dist/date-input.d.ts.map +1 -0
- package/dist/date-input.js +8 -0
- package/dist/date-input.js.map +1 -0
- package/dist/date-range-input.d.ts +2 -0
- package/dist/date-range-input.d.ts.map +1 -0
- package/dist/date-range-input.js +8 -0
- package/dist/date-range-input.js.map +1 -0
- package/dist/date-time-input.d.ts +2 -0
- package/dist/date-time-input.d.ts.map +1 -0
- package/dist/date-time-input.js +8 -0
- package/dist/date-time-input.js.map +1 -0
- package/dist/empty-state.d.ts +2 -0
- package/dist/empty-state.d.ts.map +1 -0
- package/dist/empty-state.js +8 -0
- package/dist/empty-state.js.map +1 -0
- package/dist/file-input.d.ts +2 -0
- package/dist/file-input.d.ts.map +1 -0
- package/dist/file-input.js +8 -0
- package/dist/file-input.js.map +1 -0
- package/dist/form-layout.d.ts +2 -0
- package/dist/form-layout.d.ts.map +1 -0
- package/dist/form-layout.js +8 -0
- package/dist/form-layout.js.map +1 -0
- package/dist/grid-item.d.ts +2 -0
- package/dist/grid-item.d.ts.map +1 -0
- package/dist/grid-item.js +8 -0
- package/dist/grid-item.js.map +1 -0
- package/dist/grid.d.ts +3 -0
- package/dist/grid.d.ts.map +1 -0
- package/dist/grid.js +11 -0
- package/dist/grid.js.map +1 -0
- package/dist/heading.d.ts +2 -0
- package/dist/heading.d.ts.map +1 -0
- package/dist/heading.js +8 -0
- package/dist/heading.js.map +1 -0
- package/dist/hover-card.d.ts +2 -0
- package/dist/hover-card.d.ts.map +1 -0
- package/dist/hover-card.js +8 -0
- package/dist/hover-card.js.map +1 -0
- package/dist/icon.d.ts +3 -0
- package/dist/icon.d.ts.map +1 -0
- package/dist/icon.js +9 -0
- package/dist/icon.js.map +1 -0
- package/dist/index.d.ts +85 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +86 -0
- package/dist/index.js.map +1 -1
- package/dist/indicator.d.ts +2 -0
- package/dist/indicator.d.ts.map +1 -0
- package/dist/indicator.js +8 -0
- package/dist/indicator.js.map +1 -0
- package/dist/info-tip.d.ts +2 -0
- package/dist/info-tip.d.ts.map +1 -0
- package/dist/info-tip.js +8 -0
- package/dist/info-tip.js.map +1 -0
- package/dist/input-group.d.ts +2 -0
- package/dist/input-group.d.ts.map +1 -0
- package/dist/input-group.js +8 -0
- package/dist/input-group.js.map +1 -0
- package/dist/internal/autoload.d.ts +27 -0
- package/dist/internal/autoload.d.ts.map +1 -0
- package/dist/internal/autoload.js +72 -0
- package/dist/internal/autoload.js.map +1 -0
- package/dist/item.d.ts +2 -0
- package/dist/item.d.ts.map +1 -0
- package/dist/item.js +8 -0
- package/dist/item.js.map +1 -0
- package/dist/kbd.d.ts +2 -0
- package/dist/kbd.d.ts.map +1 -0
- package/dist/kbd.js +8 -0
- package/dist/kbd.js.map +1 -0
- package/dist/layout.d.ts +2 -0
- package/dist/layout.d.ts.map +1 -0
- package/dist/layout.js +8 -0
- package/dist/layout.js.map +1 -0
- package/dist/lightbox.d.ts +2 -0
- package/dist/lightbox.d.ts.map +1 -0
- package/dist/lightbox.js +8 -0
- package/dist/lightbox.js.map +1 -0
- package/dist/list-item.d.ts +6 -0
- package/dist/list-item.d.ts.map +1 -0
- package/dist/list-item.js +6 -0
- package/dist/list-item.js.map +1 -0
- package/dist/list.d.ts +3 -0
- package/dist/list.d.ts.map +1 -0
- package/dist/list.js +11 -0
- package/dist/list.js.map +1 -0
- package/dist/markdown.d.ts +2 -0
- package/dist/markdown.d.ts.map +1 -0
- package/dist/markdown.js +8 -0
- package/dist/markdown.js.map +1 -0
- package/dist/metadata-item.d.ts +6 -0
- package/dist/metadata-item.d.ts.map +1 -0
- package/dist/metadata-item.js +6 -0
- package/dist/metadata-item.js.map +1 -0
- package/dist/metadata-list.d.ts +3 -0
- package/dist/metadata-list.d.ts.map +1 -0
- package/dist/metadata-list.js +11 -0
- package/dist/metadata-list.js.map +1 -0
- package/dist/mobile-nav.d.ts +2 -0
- package/dist/mobile-nav.d.ts.map +1 -0
- package/dist/mobile-nav.js +10 -0
- package/dist/mobile-nav.js.map +1 -0
- package/dist/more-menu.d.ts +3 -0
- package/dist/more-menu.d.ts.map +1 -0
- package/dist/more-menu.js +9 -0
- package/dist/more-menu.js.map +1 -0
- package/dist/multi-select.d.ts +7 -0
- package/dist/multi-select.d.ts.map +1 -0
- package/dist/multi-select.js +9 -0
- package/dist/multi-select.js.map +1 -0
- package/dist/nav-icon.d.ts +2 -0
- package/dist/nav-icon.d.ts.map +1 -0
- package/dist/nav-icon.js +8 -0
- package/dist/nav-icon.js.map +1 -0
- package/dist/nav-item.d.ts +2 -0
- package/dist/nav-item.d.ts.map +1 -0
- package/dist/nav-item.js +8 -0
- package/dist/nav-item.js.map +1 -0
- package/dist/nav-menu-item.d.ts +2 -0
- package/dist/nav-menu-item.d.ts.map +1 -0
- package/dist/nav-menu-item.js +8 -0
- package/dist/nav-menu-item.js.map +1 -0
- package/dist/nav-menu.d.ts +3 -0
- package/dist/nav-menu.d.ts.map +1 -0
- package/dist/nav-menu.js +11 -0
- package/dist/nav-menu.js.map +1 -0
- package/dist/number-input.d.ts +2 -0
- package/dist/number-input.d.ts.map +1 -0
- package/dist/number-input.js +8 -0
- package/dist/number-input.js.map +1 -0
- package/dist/outline.d.ts +2 -0
- package/dist/outline.d.ts.map +1 -0
- package/dist/outline.js +8 -0
- package/dist/outline.js.map +1 -0
- package/dist/overflow-list.d.ts +2 -0
- package/dist/overflow-list.d.ts.map +1 -0
- package/dist/overflow-list.js +8 -0
- package/dist/overflow-list.js.map +1 -0
- package/dist/power-search.d.ts +2 -0
- package/dist/power-search.d.ts.map +1 -0
- package/dist/power-search.js +8 -0
- package/dist/power-search.js.map +1 -0
- package/dist/radio-list.d.ts +3 -0
- package/dist/radio-list.d.ts.map +1 -0
- package/dist/radio-list.js +11 -0
- package/dist/radio-list.js.map +1 -0
- package/dist/resize-handle.d.ts +2 -0
- package/dist/resize-handle.d.ts.map +1 -0
- package/dist/resize-handle.js +8 -0
- package/dist/resize-handle.js.map +1 -0
- package/dist/scroll-area.d.ts +2 -0
- package/dist/scroll-area.d.ts.map +1 -0
- package/dist/scroll-area.js +8 -0
- package/dist/scroll-area.js.map +1 -0
- package/dist/section.d.ts +2 -0
- package/dist/section.d.ts.map +1 -0
- package/dist/section.js +8 -0
- package/dist/section.js.map +1 -0
- package/dist/segmented-control-item.d.ts +6 -0
- package/dist/segmented-control-item.d.ts.map +1 -0
- package/dist/segmented-control-item.js +6 -0
- package/dist/segmented-control-item.js.map +1 -0
- package/dist/segmented-control.d.ts +2 -0
- package/dist/segmented-control.d.ts.map +1 -0
- package/dist/segmented-control.js +9 -0
- package/dist/segmented-control.js.map +1 -0
- package/dist/selectable-card.d.ts +2 -0
- package/dist/selectable-card.d.ts.map +1 -0
- package/dist/selectable-card.js +8 -0
- package/dist/selectable-card.js.map +1 -0
- package/dist/side-nav-heading.d.ts +6 -0
- package/dist/side-nav-heading.d.ts.map +1 -0
- package/dist/side-nav-heading.js +6 -0
- package/dist/side-nav-heading.js.map +1 -0
- package/dist/side-nav-item.d.ts +6 -0
- package/dist/side-nav-item.d.ts.map +1 -0
- package/dist/side-nav-item.js +6 -0
- package/dist/side-nav-item.js.map +1 -0
- package/dist/side-nav-section.d.ts +6 -0
- package/dist/side-nav-section.d.ts.map +1 -0
- package/dist/side-nav-section.js +6 -0
- package/dist/side-nav-section.js.map +1 -0
- package/dist/side-nav.d.ts +2 -0
- package/dist/side-nav.d.ts.map +1 -0
- package/dist/side-nav.js +12 -0
- package/dist/side-nav.js.map +1 -0
- package/dist/snap-paging.d.ts +2 -0
- package/dist/snap-paging.d.ts.map +1 -0
- package/dist/snap-paging.js +8 -0
- package/dist/snap-paging.js.map +1 -0
- package/dist/stack.d.ts +2 -0
- package/dist/stack.d.ts.map +1 -0
- package/dist/stack.js +8 -0
- package/dist/stack.js.map +1 -0
- package/dist/status-dot.d.ts +2 -0
- package/dist/status-dot.d.ts.map +1 -0
- package/dist/status-dot.js +8 -0
- package/dist/status-dot.js.map +1 -0
- package/dist/step.d.ts +6 -0
- package/dist/step.d.ts.map +1 -0
- package/dist/step.js +6 -0
- package/dist/step.js.map +1 -0
- package/dist/stepper.d.ts +2 -0
- package/dist/stepper.d.ts.map +1 -0
- package/dist/stepper.js +9 -0
- package/dist/stepper.js.map +1 -0
- package/dist/swipe-action.d.ts +2 -0
- package/dist/swipe-action.d.ts.map +1 -0
- package/dist/swipe-action.js +8 -0
- package/dist/swipe-action.js.map +1 -0
- package/dist/swipe.d.ts +3 -0
- package/dist/swipe.d.ts.map +1 -0
- package/dist/swipe.js +11 -0
- package/dist/swipe.js.map +1 -0
- package/dist/tab-menu.d.ts +2 -0
- package/dist/tab-menu.d.ts.map +1 -0
- package/dist/tab-menu.js +8 -0
- package/dist/tab-menu.js.map +1 -0
- package/dist/text.d.ts +2 -0
- package/dist/text.d.ts.map +1 -0
- package/dist/text.js +8 -0
- package/dist/text.js.map +1 -0
- package/dist/thumbnail.d.ts +2 -0
- package/dist/thumbnail.d.ts.map +1 -0
- package/dist/thumbnail.js +8 -0
- package/dist/thumbnail.js.map +1 -0
- package/dist/time-input.d.ts +2 -0
- package/dist/time-input.d.ts.map +1 -0
- package/dist/time-input.js +8 -0
- package/dist/time-input.js.map +1 -0
- package/dist/timer.d.ts +2 -0
- package/dist/timer.d.ts.map +1 -0
- package/dist/timer.js +8 -0
- package/dist/timer.js.map +1 -0
- package/dist/timestamp.d.ts +2 -0
- package/dist/timestamp.d.ts.map +1 -0
- package/dist/timestamp.js +8 -0
- package/dist/timestamp.js.map +1 -0
- package/dist/toggle-button-group.d.ts +2 -0
- package/dist/toggle-button-group.d.ts.map +1 -0
- package/dist/toggle-button-group.js +8 -0
- package/dist/toggle-button-group.js.map +1 -0
- package/dist/toggle-button.d.ts +2 -0
- package/dist/toggle-button.d.ts.map +1 -0
- package/dist/toggle-button.js +8 -0
- package/dist/toggle-button.js.map +1 -0
- package/dist/token.d.ts +2 -0
- package/dist/token.d.ts.map +1 -0
- package/dist/token.js +8 -0
- package/dist/token.js.map +1 -0
- package/dist/tokenizer.d.ts +7 -0
- package/dist/tokenizer.d.ts.map +1 -0
- package/dist/tokenizer.js +9 -0
- package/dist/tokenizer.js.map +1 -0
- package/dist/toolbar.d.ts +2 -0
- package/dist/toolbar.d.ts.map +1 -0
- package/dist/toolbar.js +8 -0
- package/dist/toolbar.js.map +1 -0
- package/dist/top-nav-item.d.ts +6 -0
- package/dist/top-nav-item.d.ts.map +1 -0
- package/dist/top-nav-item.js +6 -0
- package/dist/top-nav-item.js.map +1 -0
- package/dist/top-nav-menu.d.ts +6 -0
- package/dist/top-nav-menu.d.ts.map +1 -0
- package/dist/top-nav-menu.js +6 -0
- package/dist/top-nav-menu.js.map +1 -0
- package/dist/top-nav.d.ts +2 -0
- package/dist/top-nav.d.ts.map +1 -0
- package/dist/top-nav.js +10 -0
- package/dist/top-nav.js.map +1 -0
- package/dist/tree-item.d.ts +6 -0
- package/dist/tree-item.d.ts.map +1 -0
- package/dist/tree-item.js +6 -0
- package/dist/tree-item.js.map +1 -0
- package/dist/tree-list.d.ts +2 -0
- package/dist/tree-list.d.ts.map +1 -0
- package/dist/tree-list.js +9 -0
- package/dist/tree-list.js.map +1 -0
- package/dist/typeahead.d.ts +2 -0
- package/dist/typeahead.d.ts.map +1 -0
- package/dist/typeahead.js +8 -0
- package/dist/typeahead.js.map +1 -0
- package/dist/utils/press-feedback.d.ts +3 -0
- package/dist/utils/press-feedback.d.ts.map +1 -0
- package/dist/utils/press-feedback.js +64 -0
- package/dist/utils/press-feedback.js.map +1 -0
- package/package.json +462 -4
- package/src/alert-dialog.ts +9 -0
- package/src/all.ts +81 -0
- package/src/app-shell.ts +9 -0
- package/src/aspect-ratio.ts +9 -0
- package/src/banner.ts +9 -0
- package/src/blockquote.ts +9 -0
- package/src/bottom-sheet.ts +9 -0
- package/src/button-group.ts +9 -0
- package/src/calendar.ts +9 -0
- package/src/carousel.ts +9 -0
- package/src/center.ts +9 -0
- package/src/chat-composer.ts +9 -0
- package/src/chat-layout.ts +9 -0
- package/src/chat-message.ts +12 -0
- package/src/checkbox-list.ts +12 -0
- package/src/citation.ts +9 -0
- package/src/clickable-card.ts +9 -0
- package/src/code-block.ts +9 -0
- package/src/code.ts +9 -0
- package/src/collapsible.ts +9 -0
- package/src/command-palette.ts +9 -0
- package/src/components/accordion/accordion.styles.ts +4 -2
- package/src/components/accordion/accordion.ts +1 -0
- package/src/components/alert/alert.styles.ts +81 -41
- package/src/components/alert/alert.ts +20 -4
- package/src/components/alert-dialog/alert-dialog.ts +110 -0
- package/src/components/app-shell/app-shell.ts +332 -0
- package/src/components/aspect-ratio/aspect-ratio.ts +155 -0
- package/src/components/avatar/avatar-group.ts +46 -19
- package/src/components/avatar/avatar.ts +87 -27
- package/src/components/badge/badge.ts +161 -40
- package/src/components/banner/banner.ts +454 -0
- package/src/components/blockquote/blockquote.ts +113 -0
- package/src/components/bottom-sheet/bottom-sheet.styles.ts +86 -0
- package/src/components/bottom-sheet/bottom-sheet.ts +329 -0
- package/src/components/breadcrumb/breadcrumb.styles.ts +7 -4
- package/src/components/breadcrumb/breadcrumb.ts +16 -1
- package/src/components/button/button.styles.ts +88 -23
- package/src/components/button/button.ts +33 -3
- package/src/components/button-group/button-group.ts +158 -0
- package/src/components/calendar/calendar.styles.ts +267 -0
- package/src/components/calendar/calendar.ts +568 -0
- package/src/components/card/card.ts +135 -49
- package/src/components/carousel/carousel.styles.ts +329 -0
- package/src/components/carousel/carousel.ts +653 -0
- package/src/components/center/center.ts +199 -0
- package/src/components/chat/chat-composer.styles.ts +330 -0
- package/src/components/chat/chat-composer.ts +453 -0
- package/src/components/chat/chat-icons.ts +29 -0
- package/src/components/chat/chat-layout.styles.ts +223 -0
- package/src/components/chat/chat-layout.ts +350 -0
- package/src/components/chat/chat-message.styles.ts +569 -0
- package/src/components/chat/chat-message.ts +499 -0
- package/src/components/checkbox/checkbox.styles.ts +49 -9
- package/src/components/checkbox-list/checkbox-list.styles.ts +116 -0
- package/src/components/checkbox-list/checkbox-list.ts +287 -0
- package/src/components/citation/citation.ts +325 -0
- package/src/components/clickable-card/clickable-card.ts +111 -0
- package/src/components/code/code.ts +103 -0
- package/src/components/code-block/code-block.styles.ts +359 -0
- package/src/components/code-block/code-block.ts +441 -0
- package/src/components/collapsible/collapsible.styles.ts +25 -0
- package/src/components/collapsible/collapsible.ts +119 -0
- package/src/components/combobox/combobox.styles.ts +22 -7
- package/src/components/command-palette/command-palette.styles.ts +182 -0
- package/src/components/command-palette/command-palette.ts +489 -0
- package/src/components/context-menu/context-menu.styles.ts +18 -0
- package/src/components/context-menu/context-menu.ts +172 -0
- package/src/components/date-input/date-input.ts +375 -0
- package/src/components/date-range-input/date-range-input.ts +488 -0
- package/src/components/date-time-input/date-time-input.ts +387 -0
- package/src/components/dialog/dialog.styles.ts +75 -34
- package/src/components/dialog/dialog.ts +57 -28
- package/src/components/divider/divider.ts +40 -7
- package/src/components/drawer/drawer.styles.ts +40 -15
- package/src/components/drawer/drawer.ts +4 -2
- package/src/components/empty-state/empty-state.ts +241 -0
- package/src/components/file-input/file-input.styles.ts +226 -0
- package/src/components/file-input/file-input.ts +418 -0
- package/src/components/form-field/field-base.ts +127 -5
- package/src/components/form-field/field-helpers.ts +94 -5
- package/src/components/form-field/form-field.styles.ts +136 -11
- package/src/components/form-field/form-field.ts +65 -6
- package/src/components/form-layout/form-layout.styles.ts +102 -0
- package/src/components/form-layout/form-layout.ts +62 -0
- package/src/components/grid/grid-item.ts +68 -0
- package/src/components/grid/grid.ts +260 -0
- package/src/components/heading/heading.styles.ts +162 -0
- package/src/components/heading/heading.ts +152 -0
- package/src/components/hover-card/hover-card.ts +401 -0
- package/src/components/icon/icon-registry.ts +168 -0
- package/src/components/icon/icon.ts +315 -0
- package/src/components/icon-button/icon-button.ts +3 -3
- package/src/components/indicator/indicator.ts +293 -0
- package/src/components/info-tip/info-tip.ts +250 -0
- package/src/components/input-group/input-group.styles.ts +74 -0
- package/src/components/input-group/input-group.ts +95 -0
- package/src/components/item/item.ts +505 -0
- package/src/components/kbd/kbd.ts +196 -0
- package/src/components/layout/layout.ts +327 -0
- package/src/components/lightbox/lightbox.styles.ts +236 -0
- package/src/components/lightbox/lightbox.ts +354 -0
- package/src/components/list/list-item.ts +466 -0
- package/src/components/list/list.ts +189 -0
- package/src/components/listbox/listbox.styles.ts +11 -5
- package/src/components/markdown/markdown.styles.ts +311 -0
- package/src/components/markdown/markdown.ts +194 -0
- package/src/components/markdown/parser.ts +549 -0
- package/src/components/markdown/render.ts +201 -0
- package/src/components/menu/menu.styles.ts +12 -7
- package/src/components/menu/menu.ts +88 -18
- package/src/components/metadata-list/metadata-item.ts +55 -0
- package/src/components/metadata-list/metadata-list.ts +295 -0
- package/src/components/mobile-nav/mobile-nav.styles.ts +84 -0
- package/src/components/mobile-nav/mobile-nav.ts +193 -0
- package/src/components/more-menu/more-menu.styles.ts +55 -0
- package/src/components/more-menu/more-menu.ts +78 -0
- package/src/components/multi-select/multi-select.styles.ts +28 -0
- package/src/components/multi-select/multi-select.ts +702 -0
- package/src/components/nav-icon/nav-icon.ts +94 -0
- package/src/components/nav-item/nav-item.ts +270 -0
- package/src/components/nav-menu/nav-menu-item.ts +200 -0
- package/src/components/nav-menu/nav-menu.ts +192 -0
- package/src/components/number-input/number-format.ts +129 -0
- package/src/components/number-input/number-input.styles.ts +128 -0
- package/src/components/number-input/number-input.ts +635 -0
- package/src/components/outline/outline.styles.ts +152 -0
- package/src/components/outline/outline.ts +384 -0
- package/src/components/overflow-list/overflow-list.styles.ts +116 -0
- package/src/components/overflow-list/overflow-list.ts +246 -0
- package/src/components/pagination/pagination.styles.ts +53 -12
- package/src/components/pagination/pagination.ts +89 -12
- package/src/components/popover/popover.styles.ts +61 -16
- package/src/components/popover/popover.ts +30 -1
- package/src/components/power-search/power-search.styles.ts +264 -0
- package/src/components/power-search/power-search.ts +925 -0
- package/src/components/power-search/query.ts +242 -0
- package/src/components/progress/progress.ts +115 -27
- package/src/components/radio-group/radio-group.ts +11 -3
- package/src/components/radio-group/radio.styles.ts +53 -12
- package/src/components/radio-group/radio.ts +18 -7
- package/src/components/radio-list/radio-list.styles.ts +85 -0
- package/src/components/radio-list/radio-list.ts +38 -0
- package/src/components/resize-handle/resize-handle.ts +496 -0
- package/src/components/scroll-area/scroll-area.ts +232 -0
- package/src/components/section/section.ts +215 -0
- package/src/components/segmented-control/segmented-control.styles.ts +169 -0
- package/src/components/segmented-control/segmented-control.ts +227 -0
- package/src/components/select/select.styles.ts +53 -15
- package/src/components/select/select.ts +6 -4
- package/src/components/selectable-card/selectable-card.styles.ts +217 -0
- package/src/components/selectable-card/selectable-card.ts +158 -0
- package/src/components/shared/activate-link.ts +33 -0
- package/src/components/shared/calendar-picker.ts +192 -0
- package/src/components/shared/date-check.ts +61 -0
- package/src/components/shared/date-field.styles.ts +189 -0
- package/src/components/shared/date-strings.ts +90 -0
- package/src/components/shared/date-utils.ts +376 -0
- package/src/components/shared/heading-tag.ts +35 -0
- package/src/components/shared/host-aria.ts +59 -0
- package/src/components/shared/indic.ts +35 -0
- package/src/components/shared/layout.ts +98 -0
- package/src/components/shared/slot-presence.ts +35 -0
- package/src/components/shared/status-icons.ts +29 -0
- package/src/components/shared/strings.ts +35 -0
- package/src/components/side-nav/side-nav.styles.ts +440 -0
- package/src/components/side-nav/side-nav.ts +474 -0
- package/src/components/skeleton/skeleton.ts +110 -14
- package/src/components/slider/slider.styles.ts +39 -17
- package/src/components/snap-paging/snap-paging.ts +299 -0
- package/src/components/spinner/spinner.ts +87 -13
- package/src/components/stack/stack.ts +301 -0
- package/src/components/status-dot/status-dot.ts +206 -0
- package/src/components/stepper/stepper.styles.ts +239 -0
- package/src/components/stepper/stepper.ts +300 -0
- package/src/components/swipe/swipe-action.ts +154 -0
- package/src/components/swipe/swipe.ts +440 -0
- package/src/components/switch/switch.styles.ts +44 -21
- package/src/components/tab-menu/tab-menu.styles.ts +151 -0
- package/src/components/tab-menu/tab-menu.ts +79 -0
- package/src/components/table/sort.ts +45 -0
- package/src/components/table/table.styles.ts +253 -8
- package/src/components/table/table.ts +501 -25
- package/src/components/tabs/tabs.styles.ts +35 -11
- package/src/components/text/text.styles.ts +207 -0
- package/src/components/text/text.ts +171 -0
- package/src/components/text-field/text-field.styles.ts +137 -29
- package/src/components/text-field/text-field.ts +80 -1
- package/src/components/textarea/textarea.styles.ts +93 -21
- package/src/components/textarea/textarea.ts +50 -1
- package/src/components/thumbnail/thumbnail.ts +478 -0
- package/src/components/time-input/time-input.ts +347 -0
- package/src/components/timer/timer.styles.ts +36 -0
- package/src/components/timer/timer.ts +255 -0
- package/src/components/timestamp/timestamp.ts +324 -0
- package/src/components/toast/toast.styles.ts +82 -38
- package/src/components/toast/toast.ts +37 -20
- package/src/components/toast/toaster.ts +5 -1
- package/src/components/toggle-button/toggle-button.ts +77 -0
- package/src/components/toggle-button-group/toggle-button-group.ts +263 -0
- package/src/components/token/token.styles.ts +117 -0
- package/src/components/token/token.ts +167 -0
- package/src/components/tokenizer/tokenizer.styles.ts +133 -0
- package/src/components/tokenizer/tokenizer.ts +817 -0
- package/src/components/toolbar/toolbar.ts +179 -0
- package/src/components/tooltip/tooltip.styles.ts +38 -12
- package/src/components/tooltip/tooltip.ts +4 -3
- package/src/components/top-nav/top-nav.styles.ts +289 -0
- package/src/components/top-nav/top-nav.ts +301 -0
- package/src/components/tree-list/tree-list.styles.ts +210 -0
- package/src/components/tree-list/tree-list.ts +603 -0
- package/src/components/typeahead/typeahead.ts +95 -0
- package/src/components/visually-hidden/visually-hidden.ts +5 -0
- package/src/context-menu.ts +10 -0
- package/src/date-input.ts +9 -0
- package/src/date-range-input.ts +9 -0
- package/src/date-time-input.ts +9 -0
- package/src/empty-state.ts +9 -0
- package/src/file-input.ts +9 -0
- package/src/form-layout.ts +9 -0
- package/src/grid-item.ts +9 -0
- package/src/grid.ts +12 -0
- package/src/heading.ts +9 -0
- package/src/hover-card.ts +9 -0
- package/src/icon.ts +10 -0
- package/src/index.ts +92 -0
- package/src/indicator.ts +9 -0
- package/src/info-tip.ts +9 -0
- package/src/input-group.ts +9 -0
- package/src/internal/autoload.ts +93 -0
- package/src/item.ts +9 -0
- package/src/kbd.ts +9 -0
- package/src/layout.ts +9 -0
- package/src/lightbox.ts +9 -0
- package/src/list-item.ts +5 -0
- package/src/list.ts +12 -0
- package/src/markdown.ts +9 -0
- package/src/metadata-item.ts +5 -0
- package/src/metadata-list.ts +12 -0
- package/src/mobile-nav.ts +11 -0
- package/src/more-menu.ts +10 -0
- package/src/multi-select.ts +10 -0
- package/src/nav-icon.ts +9 -0
- package/src/nav-item.ts +9 -0
- package/src/nav-menu-item.ts +9 -0
- package/src/nav-menu.ts +12 -0
- package/src/number-input.ts +9 -0
- package/src/outline.ts +9 -0
- package/src/overflow-list.ts +9 -0
- package/src/power-search.ts +9 -0
- package/src/radio-list.ts +12 -0
- package/src/resize-handle.ts +9 -0
- package/src/scroll-area.ts +9 -0
- package/src/section.ts +9 -0
- package/src/segmented-control-item.ts +5 -0
- package/src/segmented-control.ts +13 -0
- package/src/selectable-card.ts +9 -0
- package/src/side-nav-heading.ts +5 -0
- package/src/side-nav-item.ts +5 -0
- package/src/side-nav-section.ts +5 -0
- package/src/side-nav.ts +18 -0
- package/src/snap-paging.ts +9 -0
- package/src/stack.ts +9 -0
- package/src/status-dot.ts +9 -0
- package/src/step.ts +5 -0
- package/src/stepper.ts +10 -0
- package/src/swipe-action.ts +9 -0
- package/src/swipe.ts +12 -0
- package/src/tab-menu.ts +9 -0
- package/src/text.ts +9 -0
- package/src/thumbnail.ts +9 -0
- package/src/time-input.ts +9 -0
- package/src/timer.ts +9 -0
- package/src/timestamp.ts +9 -0
- package/src/toggle-button-group.ts +9 -0
- package/src/toggle-button.ts +9 -0
- package/src/token.ts +9 -0
- package/src/tokenizer.ts +10 -0
- package/src/toolbar.ts +9 -0
- package/src/top-nav-item.ts +5 -0
- package/src/top-nav-menu.ts +5 -0
- package/src/top-nav.ts +11 -0
- package/src/tree-item.ts +5 -0
- package/src/tree-list.ts +10 -0
- package/src/typeahead.ts +9 -0
- package/src/utils/press-feedback.ts +64 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Built-in English strings of the date and time components. Override any of
|
|
3
|
+
* them with `setDateStrings()` (for example with a Hindi bundle). Messages use
|
|
4
|
+
* `{name}` placeholders that are replaced when the message is shown.
|
|
5
|
+
*/
|
|
6
|
+
export interface DateStrings {
|
|
7
|
+
/** Accessible name of the calendar button and the calendar dialog. */
|
|
8
|
+
chooseDate: string;
|
|
9
|
+
/** Accessible name of the calendar dialog of a range field. */
|
|
10
|
+
chooseDates: string;
|
|
11
|
+
/** Accessible name of the previous-month button. */
|
|
12
|
+
previousMonth: string;
|
|
13
|
+
/** Accessible name of the next-month button. */
|
|
14
|
+
nextMonth: string;
|
|
15
|
+
/** Accessible name of the calendar grid when no month heading names it. */
|
|
16
|
+
calendar: string;
|
|
17
|
+
/** Labels of the two inputs of a range field, and of a date-time field. */
|
|
18
|
+
startDate: string;
|
|
19
|
+
endDate: string;
|
|
20
|
+
date: string;
|
|
21
|
+
time: string;
|
|
22
|
+
/** Pattern words, for the placeholder (`dd/mm/yyyy`). */
|
|
23
|
+
day: string;
|
|
24
|
+
month: string;
|
|
25
|
+
year: string;
|
|
26
|
+
/** Placeholder words of a time field. */
|
|
27
|
+
hourMinute: string;
|
|
28
|
+
/** Hidden hint read with the field. `{pattern}`: the expected format. */
|
|
29
|
+
formatHint: string;
|
|
30
|
+
/** `{pattern}`: the expected format. */
|
|
31
|
+
invalidDate: string;
|
|
32
|
+
/** `{pattern}`: the expected format. */
|
|
33
|
+
invalidTime: string;
|
|
34
|
+
/** `{date}` */
|
|
35
|
+
dateBeforeMin: string;
|
|
36
|
+
/** `{date}` */
|
|
37
|
+
dateAfterMax: string;
|
|
38
|
+
/** `{time}` */
|
|
39
|
+
timeBeforeMin: string;
|
|
40
|
+
/** `{time}` */
|
|
41
|
+
timeAfterMax: string;
|
|
42
|
+
dateUnavailable: string;
|
|
43
|
+
rangeOrder: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
const strings: DateStrings = {
|
|
47
|
+
chooseDate: 'Choose date',
|
|
48
|
+
chooseDates: 'Choose dates',
|
|
49
|
+
previousMonth: 'Previous month',
|
|
50
|
+
nextMonth: 'Next month',
|
|
51
|
+
calendar: 'Calendar',
|
|
52
|
+
startDate: 'Start date',
|
|
53
|
+
endDate: 'End date',
|
|
54
|
+
date: 'Date',
|
|
55
|
+
time: 'Time',
|
|
56
|
+
day: 'dd',
|
|
57
|
+
month: 'mm',
|
|
58
|
+
year: 'yyyy',
|
|
59
|
+
hourMinute: 'hh:mm',
|
|
60
|
+
formatHint: 'Format: {pattern}',
|
|
61
|
+
invalidDate: 'Enter a date as {pattern}.',
|
|
62
|
+
invalidTime: 'Enter a time such as {pattern}.',
|
|
63
|
+
dateBeforeMin: 'Enter a date on or after {date}.',
|
|
64
|
+
dateAfterMax: 'Enter a date on or before {date}.',
|
|
65
|
+
timeBeforeMin: 'Enter a time at or after {time}.',
|
|
66
|
+
timeAfterMax: 'Enter a time at or before {time}.',
|
|
67
|
+
dateUnavailable: 'This date is not available.',
|
|
68
|
+
rangeOrder: 'The end date must not be before the start date.',
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
const KEYS = Object.keys(strings) as (keyof DateStrings)[];
|
|
72
|
+
|
|
73
|
+
/** Replaces built-in strings. Only known keys with string values are read. */
|
|
74
|
+
export function setDateStrings(next: Partial<DateStrings>): void {
|
|
75
|
+
for (const key of KEYS) {
|
|
76
|
+
if (!Object.hasOwn(next, key)) continue;
|
|
77
|
+
const value: unknown = next[key];
|
|
78
|
+
if (typeof value === 'string') strings[key] = value;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/** The current built-in strings. */
|
|
83
|
+
export function getDateStrings(): Readonly<DateStrings> {
|
|
84
|
+
return strings;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/** Fills `{name}` placeholders. */
|
|
88
|
+
export function fillMessage(message: string, values: Record<string, string>): string {
|
|
89
|
+
return message.replace(/\{(\w+)\}/g, (whole, name: string) => values[name] ?? whole);
|
|
90
|
+
}
|
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure calendar-date and clock-time helpers for the date and time components.
|
|
3
|
+
* No date library: dates are plain `{ y, m, d }` records (`m` is 1 to 12) that
|
|
4
|
+
* are computed in UTC, so a time zone or a daylight-saving change can never
|
|
5
|
+
* move a day. Names, week data and text formats come from `Intl`, with a
|
|
6
|
+
* fallback where `Intl.Locale` week info is missing. Nothing here touches the
|
|
7
|
+
* DOM, so it is safe on the server.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/** A calendar date. `m` is 1 to 12. */
|
|
11
|
+
export interface YMD {
|
|
12
|
+
y: number;
|
|
13
|
+
m: number;
|
|
14
|
+
d: number;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/** A clock time, 24 hour. */
|
|
18
|
+
export interface HM {
|
|
19
|
+
h: number;
|
|
20
|
+
m: number;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const pad = (n: number, length = 2): string => String(n).padStart(length, '0');
|
|
24
|
+
|
|
25
|
+
/** A UTC `Date` at midnight (years below 100 are not mapped to 19xx). */
|
|
26
|
+
function utc(ymd: YMD): Date {
|
|
27
|
+
const date = new Date(0);
|
|
28
|
+
date.setUTCFullYear(ymd.y, ymd.m - 1, ymd.d);
|
|
29
|
+
return date;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
const fromUtc = (date: Date): YMD => ({
|
|
33
|
+
y: date.getUTCFullYear(),
|
|
34
|
+
m: date.getUTCMonth() + 1,
|
|
35
|
+
d: date.getUTCDate(),
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
export function daysInMonth(y: number, m: number): number {
|
|
39
|
+
return fromUtc(utc({ y, m: m + 1, d: 0 })).d;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/** True when `ymd` is a real calendar date. */
|
|
43
|
+
export function isRealDate({ y, m, d }: YMD): boolean {
|
|
44
|
+
return (
|
|
45
|
+
Number.isInteger(y) &&
|
|
46
|
+
y >= 1 &&
|
|
47
|
+
y <= 9999 &&
|
|
48
|
+
m >= 1 &&
|
|
49
|
+
m <= 12 &&
|
|
50
|
+
d >= 1 &&
|
|
51
|
+
d <= daysInMonth(y, m)
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/** `YYYY-MM-DD`. */
|
|
56
|
+
export const toIso = ({ y, m, d }: YMD): string => `${pad(y, 4)}-${pad(m)}-${pad(d)}`;
|
|
57
|
+
|
|
58
|
+
/** Parses a strict `YYYY-MM-DD` string; `null` when it is not a real date. */
|
|
59
|
+
export function parseIso(text: string | null | undefined): YMD | null {
|
|
60
|
+
const match = /^(\d{4})-(\d{2})-(\d{2})$/.exec(text ?? '');
|
|
61
|
+
if (!match) return null;
|
|
62
|
+
const ymd = { y: Number(match[1]), m: Number(match[2]), d: Number(match[3]) };
|
|
63
|
+
return isRealDate(ymd) ? ymd : null;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export const compareDates = (a: YMD, b: YMD): number => a.y - b.y || a.m - b.m || a.d - b.d;
|
|
67
|
+
|
|
68
|
+
export const sameDate = (a: YMD | null | undefined, b: YMD | null | undefined): boolean =>
|
|
69
|
+
Boolean(a && b && compareDates(a, b) === 0);
|
|
70
|
+
|
|
71
|
+
export function addDays(ymd: YMD, days: number): YMD {
|
|
72
|
+
const date = utc(ymd);
|
|
73
|
+
date.setUTCDate(date.getUTCDate() + days);
|
|
74
|
+
return fromUtc(date);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/** Moves by whole months, keeping the day where it exists and clamping it otherwise. */
|
|
78
|
+
export function addMonths(ymd: YMD, months: number): YMD {
|
|
79
|
+
const index = ymd.y * 12 + (ymd.m - 1) + months;
|
|
80
|
+
const y = Math.floor(index / 12);
|
|
81
|
+
const m = (index % 12) + 1;
|
|
82
|
+
return { y, m, d: Math.min(ymd.d, daysInMonth(y, m)) };
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/** Day of the week, 0 = Sunday. */
|
|
86
|
+
export const weekday = (ymd: YMD): number => utc(ymd).getUTCDay();
|
|
87
|
+
|
|
88
|
+
/** Today in the local time zone. */
|
|
89
|
+
export function today(): YMD {
|
|
90
|
+
const now = new Date();
|
|
91
|
+
return { y: now.getFullYear(), m: now.getMonth() + 1, d: now.getDate() };
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function clampDate(ymd: YMD, min: YMD | null, max: YMD | null): YMD {
|
|
95
|
+
if (min && compareDates(ymd, min) < 0) return min;
|
|
96
|
+
if (max && compareDates(ymd, max) > 0) return max;
|
|
97
|
+
return ymd;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// ---------------------------------------------------------------- locale data
|
|
101
|
+
|
|
102
|
+
const FALLBACK_LANGUAGE = 'en';
|
|
103
|
+
|
|
104
|
+
/** A valid BCP 47 tag for `Intl`, falling back to English for junk input. */
|
|
105
|
+
export function resolveLocale(tag: string | null | undefined): string {
|
|
106
|
+
if (!tag) return FALLBACK_LANGUAGE;
|
|
107
|
+
try {
|
|
108
|
+
return Intl.getCanonicalLocales(tag)[0] ?? FALLBACK_LANGUAGE;
|
|
109
|
+
} catch {
|
|
110
|
+
return FALLBACK_LANGUAGE;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/** Regions whose week starts on Sunday (CLDR), used where `Intl.Locale` has no week info. */
|
|
115
|
+
const SUNDAY_REGIONS = new Set(
|
|
116
|
+
'AG AS BD BR BS BT BW BZ CA CO DM DO ET GT GU HK HN ID IL IN JM JP KE KH KR LA MH MM MO MT MX MZ NI NP PA PE PH PK PR PT PY SA SG SV TH TT TW UM US VE VI WS YE ZA ZW'.split(
|
|
117
|
+
' ',
|
|
118
|
+
),
|
|
119
|
+
);
|
|
120
|
+
|
|
121
|
+
interface WeekInfoLocale {
|
|
122
|
+
getWeekInfo?: () => { firstDay: number };
|
|
123
|
+
weekInfo?: { firstDay: number };
|
|
124
|
+
maximize: () => { region?: string };
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/** First day of the week for `locale`, 0 = Sunday. */
|
|
128
|
+
export function firstDayOfWeek(locale: string): number {
|
|
129
|
+
try {
|
|
130
|
+
const info = new Intl.Locale(locale) as unknown as WeekInfoLocale;
|
|
131
|
+
const firstDay = (info.getWeekInfo?.() ?? info.weekInfo)?.firstDay;
|
|
132
|
+
if (typeof firstDay === 'number') return firstDay % 7;
|
|
133
|
+
return SUNDAY_REGIONS.has(info.maximize().region ?? '') ? 0 : 1;
|
|
134
|
+
} catch {
|
|
135
|
+
return 1;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
const formatters = new Map<string, Intl.DateTimeFormat>();
|
|
140
|
+
|
|
141
|
+
/** A cached UTC `Intl.DateTimeFormat`. */
|
|
142
|
+
function formatter(locale: string, options: Intl.DateTimeFormatOptions): Intl.DateTimeFormat {
|
|
143
|
+
const key = `${locale}|${JSON.stringify(options)}`;
|
|
144
|
+
let format = formatters.get(key);
|
|
145
|
+
if (!format) {
|
|
146
|
+
try {
|
|
147
|
+
format = new Intl.DateTimeFormat(locale, { ...options, timeZone: 'UTC' });
|
|
148
|
+
} catch {
|
|
149
|
+
format = new Intl.DateTimeFormat(FALLBACK_LANGUAGE, { ...options, timeZone: 'UTC' });
|
|
150
|
+
}
|
|
151
|
+
formatters.set(key, format);
|
|
152
|
+
}
|
|
153
|
+
return format;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/** `January 2027` in the locale (Hindi: `जनवरी 2027`). */
|
|
157
|
+
export const formatMonthYear = (locale: string, y: number, m: number): string =>
|
|
158
|
+
formatter(locale, { month: 'long', year: 'numeric' }).format(utc({ y, m, d: 1 }));
|
|
159
|
+
|
|
160
|
+
/** Weekday name; 2027-01-03 is a Sunday. */
|
|
161
|
+
export const weekdayName = (
|
|
162
|
+
locale: string,
|
|
163
|
+
dow: number,
|
|
164
|
+
width: 'short' | 'long' | 'narrow',
|
|
165
|
+
): string => formatter(locale, { weekday: width }).format(utc({ y: 2027, m: 1, d: 3 + dow }));
|
|
166
|
+
|
|
167
|
+
/** The day number as the locale writes it. */
|
|
168
|
+
export const formatDayNumber = (locale: string, d: number): string =>
|
|
169
|
+
new Intl.NumberFormat(locale, { useGrouping: false }).format(d);
|
|
170
|
+
|
|
171
|
+
/** `Tuesday, 12 January 2027`: the accessible name of a day. */
|
|
172
|
+
export const formatFullDate = (locale: string, ymd: YMD): string =>
|
|
173
|
+
formatter(locale, { dateStyle: 'full' }).format(utc(ymd));
|
|
174
|
+
|
|
175
|
+
/** `12 Jan 2027`, for messages. */
|
|
176
|
+
export const formatMediumDate = (locale: string, ymd: YMD): string =>
|
|
177
|
+
formatter(locale, { dateStyle: 'medium' }).format(utc(ymd));
|
|
178
|
+
|
|
179
|
+
// ------------------------------------------------------------ date text format
|
|
180
|
+
|
|
181
|
+
export type DateOrder = ('d' | 'm' | 'y')[];
|
|
182
|
+
|
|
183
|
+
/** How dates are typed, shown and parsed in one locale. */
|
|
184
|
+
export interface DateTextFormat {
|
|
185
|
+
order: DateOrder;
|
|
186
|
+
separator: string;
|
|
187
|
+
format: (ymd: YMD) => string;
|
|
188
|
+
/** Parses typed text: the locale order, or ISO `YYYY-MM-DD`. `null` when not a real date. */
|
|
189
|
+
parse: (text: string) => YMD | null;
|
|
190
|
+
/** The pattern with the given words, such as `dd/mm/yyyy`. */
|
|
191
|
+
pattern: (words: { d: string; m: string; y: string }) => string;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
const BIDI_MARKS = /[]/g;
|
|
195
|
+
const textFormats = new Map<string, DateTextFormat>();
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* Field order and separator come from `Intl`: `en-IN` gives day, month, year with `/`.
|
|
199
|
+
* `iso` forces `YYYY-MM-DD`. Digits are always Latin on input and output, so the
|
|
200
|
+
* text stays easy to type; `hi-IN` uses Latin digits in CLDR already.
|
|
201
|
+
*/
|
|
202
|
+
export function dateTextFormat(locale: string, style: 'locale' | 'iso' = 'locale'): DateTextFormat {
|
|
203
|
+
const key = `${locale}|${style}`;
|
|
204
|
+
const cached = textFormats.get(key);
|
|
205
|
+
if (cached) return cached;
|
|
206
|
+
let order: DateOrder = ['y', 'm', 'd'];
|
|
207
|
+
let separator = '-';
|
|
208
|
+
if (style === 'locale') {
|
|
209
|
+
try {
|
|
210
|
+
const parts = new Intl.DateTimeFormat(new Intl.Locale(locale, { numberingSystem: 'latn' }), {
|
|
211
|
+
year: 'numeric',
|
|
212
|
+
month: '2-digit',
|
|
213
|
+
day: '2-digit',
|
|
214
|
+
timeZone: 'UTC',
|
|
215
|
+
}).formatToParts(utc({ y: 2033, m: 11, d: 22 }));
|
|
216
|
+
const found: DateOrder = [];
|
|
217
|
+
for (const part of parts) {
|
|
218
|
+
if (part.type === 'day') found.push('d');
|
|
219
|
+
else if (part.type === 'month') found.push('m');
|
|
220
|
+
else if (part.type === 'year') found.push('y');
|
|
221
|
+
}
|
|
222
|
+
if (found.length === 3) order = found;
|
|
223
|
+
// The first literal is the separator; only `/`, `.` and `-` are accepted.
|
|
224
|
+
const literal = parts
|
|
225
|
+
.find((p) => p.type === 'literal')
|
|
226
|
+
?.value.replace(BIDI_MARKS, '')
|
|
227
|
+
.trim();
|
|
228
|
+
separator = literal && /^[./-]$/.test(literal) ? literal : '/';
|
|
229
|
+
} catch {
|
|
230
|
+
order = ['d', 'm', 'y'];
|
|
231
|
+
separator = '/';
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
const fields = (ymd: YMD): Record<'d' | 'm' | 'y', string> => ({
|
|
235
|
+
d: pad(ymd.d),
|
|
236
|
+
m: pad(ymd.m),
|
|
237
|
+
y: pad(ymd.y, 4),
|
|
238
|
+
});
|
|
239
|
+
const format: DateTextFormat = {
|
|
240
|
+
order,
|
|
241
|
+
separator,
|
|
242
|
+
format: (ymd) => order.map((field) => fields(ymd)[field]).join(separator),
|
|
243
|
+
pattern: (words) => order.map((field) => words[field]).join(separator),
|
|
244
|
+
parse(text) {
|
|
245
|
+
const value = text.trim();
|
|
246
|
+
const iso = /^(\d{4})[-./](\d{1,2})[-./](\d{1,2})$/.exec(value);
|
|
247
|
+
let numbers: number[] | undefined;
|
|
248
|
+
let fieldOrder = order;
|
|
249
|
+
if (iso) {
|
|
250
|
+
numbers = [Number(iso[1]), Number(iso[2]), Number(iso[3])];
|
|
251
|
+
fieldOrder = ['y', 'm', 'd'];
|
|
252
|
+
} else if (/^\d{8}$/.test(value)) {
|
|
253
|
+
const lengths = order.map((field) => (field === 'y' ? 4 : 2));
|
|
254
|
+
let at = 0;
|
|
255
|
+
numbers = lengths.map((length) => Number(value.slice(at, (at += length))));
|
|
256
|
+
} else {
|
|
257
|
+
const pieces = value.split(/\s*[\s./-]\s*/);
|
|
258
|
+
if (pieces.length === 3 && pieces.every((piece) => /^\d+$/.test(piece))) {
|
|
259
|
+
if (pieces[order.indexOf('y')]?.length !== 4) return null;
|
|
260
|
+
numbers = pieces.map(Number);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
if (!numbers) return null;
|
|
264
|
+
const result = { y: 0, m: 0, d: 0 };
|
|
265
|
+
fieldOrder.forEach((field, index) => {
|
|
266
|
+
result[field] = numbers[index] ?? 0;
|
|
267
|
+
});
|
|
268
|
+
return isRealDate(result) ? result : null;
|
|
269
|
+
},
|
|
270
|
+
};
|
|
271
|
+
textFormats.set(key, format);
|
|
272
|
+
return format;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
// ------------------------------------------------------------- time text format
|
|
276
|
+
|
|
277
|
+
export type HourCycle = 'auto' | '12' | '24';
|
|
278
|
+
|
|
279
|
+
export interface TimeTextFormat {
|
|
280
|
+
/** True for a 12-hour clock. */
|
|
281
|
+
hour12: boolean;
|
|
282
|
+
am: string;
|
|
283
|
+
pm: string;
|
|
284
|
+
/** `HH:MM` in 24-hour form, `h:mm am` in 12-hour form. */
|
|
285
|
+
format: (time: HM) => string;
|
|
286
|
+
/** Accepts `14:30`, `2:30 pm`, `2.30pm`, `1430`, `9`. `null` when not a time. */
|
|
287
|
+
parse: (text: string) => HM | null;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
const timeFormats = new Map<string, TimeTextFormat>();
|
|
291
|
+
const periodKey = (text: string): string => text.toLowerCase().replace(/[\s.]/g, '');
|
|
292
|
+
|
|
293
|
+
export function timeTextFormat(locale: string, cycle: HourCycle = 'auto'): TimeTextFormat {
|
|
294
|
+
const key = `${locale}|${cycle}`;
|
|
295
|
+
const cached = timeFormats.get(key);
|
|
296
|
+
if (cached) return cached;
|
|
297
|
+
let hour12 = false;
|
|
298
|
+
let am = 'am';
|
|
299
|
+
let pm = 'pm';
|
|
300
|
+
try {
|
|
301
|
+
if (cycle === 'auto') {
|
|
302
|
+
const resolved = new Intl.DateTimeFormat(locale, { hour: 'numeric' }).resolvedOptions();
|
|
303
|
+
hour12 = resolved.hourCycle === 'h11' || resolved.hourCycle === 'h12';
|
|
304
|
+
} else {
|
|
305
|
+
hour12 = cycle === '12';
|
|
306
|
+
}
|
|
307
|
+
const period = new Intl.DateTimeFormat(new Intl.Locale(locale, { numberingSystem: 'latn' }), {
|
|
308
|
+
hour: 'numeric',
|
|
309
|
+
hour12: true,
|
|
310
|
+
timeZone: 'UTC',
|
|
311
|
+
});
|
|
312
|
+
const label = (hour: number): string =>
|
|
313
|
+
period.formatToParts(new Date(Date.UTC(2027, 0, 1, hour))).find((p) => p.type === 'dayPeriod')
|
|
314
|
+
?.value ?? '';
|
|
315
|
+
am = label(9) || am;
|
|
316
|
+
pm = label(15) || pm;
|
|
317
|
+
} catch {
|
|
318
|
+
// Keep the English defaults.
|
|
319
|
+
}
|
|
320
|
+
const amKey = periodKey(am);
|
|
321
|
+
const pmKey = periodKey(pm);
|
|
322
|
+
const format: TimeTextFormat = {
|
|
323
|
+
hour12,
|
|
324
|
+
am,
|
|
325
|
+
pm,
|
|
326
|
+
format: ({ h, m }) =>
|
|
327
|
+
hour12 ? `${h % 12 || 12}:${pad(m)} ${h < 12 ? am : pm}` : `${pad(h)}:${pad(m)}`,
|
|
328
|
+
parse(text) {
|
|
329
|
+
const match = /^(\d{1,4})(?:\s*[:.hH]\s*(\d{1,2}))?\s*([^\d\s].*)?$/.exec(text.trim());
|
|
330
|
+
if (!match?.[1]) return null;
|
|
331
|
+
let h: number;
|
|
332
|
+
let minutes: number;
|
|
333
|
+
if (match[2] !== undefined) {
|
|
334
|
+
if (match[1].length > 2) return null;
|
|
335
|
+
h = Number(match[1]);
|
|
336
|
+
minutes = Number(match[2]);
|
|
337
|
+
} else if (match[1].length <= 2) {
|
|
338
|
+
h = Number(match[1]);
|
|
339
|
+
minutes = 0;
|
|
340
|
+
} else {
|
|
341
|
+
h = Number(match[1].slice(0, -2));
|
|
342
|
+
minutes = Number(match[1].slice(-2));
|
|
343
|
+
}
|
|
344
|
+
if (minutes > 59) return null;
|
|
345
|
+
if (match[3] !== undefined) {
|
|
346
|
+
const word = periodKey(match[3]);
|
|
347
|
+
const isAm = word === amKey || word === 'am' || word === 'a';
|
|
348
|
+
const isPm = word === pmKey || word === 'pm' || word === 'p';
|
|
349
|
+
if ((!isAm && !isPm) || h < 1 || h > 12) return null;
|
|
350
|
+
h = (h % 12) + (isPm ? 12 : 0);
|
|
351
|
+
}
|
|
352
|
+
return h > 23 ? null : { h, m: minutes };
|
|
353
|
+
},
|
|
354
|
+
};
|
|
355
|
+
timeFormats.set(key, format);
|
|
356
|
+
return format;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
/** `HH:MM`. */
|
|
360
|
+
export const toTimeIso = ({ h, m }: HM): string => `${pad(h)}:${pad(m)}`;
|
|
361
|
+
|
|
362
|
+
/** Parses a strict `HH:MM` value. */
|
|
363
|
+
export function parseTimeIso(text: string | null | undefined): HM | null {
|
|
364
|
+
const match = /^(\d{2}):(\d{2})$/.exec(text ?? '');
|
|
365
|
+
if (!match) return null;
|
|
366
|
+
const h = Number(match[1]);
|
|
367
|
+
const m = Number(match[2]);
|
|
368
|
+
return h > 23 || m > 59 ? null : { h, m };
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
export const timeToMinutes = ({ h, m }: HM): number => h * 60 + m;
|
|
372
|
+
|
|
373
|
+
export const minutesToTime = (minutes: number): HM => ({
|
|
374
|
+
h: Math.floor(minutes / 60),
|
|
375
|
+
m: minutes % 60,
|
|
376
|
+
});
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { html, type TemplateResult } from 'lit';
|
|
2
|
+
|
|
3
|
+
export type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
4
|
+
|
|
5
|
+
/** Clamps anything to a valid heading level (2 for junk). */
|
|
6
|
+
export function toHeadingLevel(value: unknown): HeadingLevel {
|
|
7
|
+
const n = Math.trunc(Number(value));
|
|
8
|
+
return n >= 1 && n <= 6 ? (n as HeadingLevel) : 2;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Renders a real `<h1>` to `<h6>` (a static template per level, so no
|
|
13
|
+
* template string is ever parsed at runtime).
|
|
14
|
+
*/
|
|
15
|
+
export function headingTag(
|
|
16
|
+
level: HeadingLevel,
|
|
17
|
+
className: string,
|
|
18
|
+
part: string,
|
|
19
|
+
content: TemplateResult,
|
|
20
|
+
): TemplateResult {
|
|
21
|
+
switch (level) {
|
|
22
|
+
case 1:
|
|
23
|
+
return html`<h1 part=${part} class=${className}>${content}</h1>`;
|
|
24
|
+
case 3:
|
|
25
|
+
return html`<h3 part=${part} class=${className}>${content}</h3>`;
|
|
26
|
+
case 4:
|
|
27
|
+
return html`<h4 part=${part} class=${className}>${content}</h4>`;
|
|
28
|
+
case 5:
|
|
29
|
+
return html`<h5 part=${part} class=${className}>${content}</h5>`;
|
|
30
|
+
case 6:
|
|
31
|
+
return html`<h6 part=${part} class=${className}>${content}</h6>`;
|
|
32
|
+
default:
|
|
33
|
+
return html`<h2 part=${part} class=${className}>${content}</h2>`;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `und-form-field` labels a custom element control by setting
|
|
3
|
+
* `aria-labelledby` and `aria-describedby` on the element itself. A generic
|
|
4
|
+
* host cannot be named by ARIA, so the date and time fields move those two
|
|
5
|
+
* attributes to their real light-DOM input. That keeps the field named and
|
|
6
|
+
* described when it sits inside `und-form-field` or has a hand-written
|
|
7
|
+
* `aria-labelledby`.
|
|
8
|
+
*/
|
|
9
|
+
import { idList } from '../form-field/field-helpers.js';
|
|
10
|
+
|
|
11
|
+
export const HOST_ARIA_ATTRIBUTES = ['aria-labelledby', 'aria-describedby'] as const;
|
|
12
|
+
|
|
13
|
+
export class HostAria {
|
|
14
|
+
#labelledBy = '';
|
|
15
|
+
#describedBy = '';
|
|
16
|
+
|
|
17
|
+
/** Takes the attributes off the host (call from `updated` and on attribute changes). */
|
|
18
|
+
absorb(host: Element): void {
|
|
19
|
+
const labelled = host.getAttribute('aria-labelledby');
|
|
20
|
+
if (labelled !== null) {
|
|
21
|
+
this.#labelledBy = labelled;
|
|
22
|
+
host.removeAttribute('aria-labelledby');
|
|
23
|
+
}
|
|
24
|
+
const described = host.getAttribute('aria-describedby');
|
|
25
|
+
if (described !== null) {
|
|
26
|
+
this.#describedBy = described;
|
|
27
|
+
host.removeAttribute('aria-describedby');
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/** Adds the absorbed references to `input` (after the field wrote its own). */
|
|
32
|
+
applyTo(input: HTMLInputElement): void {
|
|
33
|
+
if (this.#labelledBy) {
|
|
34
|
+
input.setAttribute('aria-labelledby', this.#labelledBy);
|
|
35
|
+
}
|
|
36
|
+
if (this.#describedBy) {
|
|
37
|
+
input.setAttribute(
|
|
38
|
+
'aria-describedby',
|
|
39
|
+
idList(input.getAttribute('aria-describedby'), this.#describedBy),
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Inside `und-form-field` the wrapper names the field only after its own
|
|
46
|
+
* first update. Until then a plain `aria-label` stands in (the wrapper's
|
|
47
|
+
* `aria-labelledby` wins once it arrives), so the field is never nameless.
|
|
48
|
+
*/
|
|
49
|
+
static fallbackName(
|
|
50
|
+
host: Element,
|
|
51
|
+
input: HTMLInputElement,
|
|
52
|
+
name: string,
|
|
53
|
+
hasLabel: boolean,
|
|
54
|
+
): void {
|
|
55
|
+
if (hasLabel || input.hasAttribute('aria-label') || input.hasAttribute('aria-labelledby'))
|
|
56
|
+
return;
|
|
57
|
+
if (host.closest('und-form-field')) input.setAttribute('aria-label', name);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { unsafeCSS, type CSSResult } from 'lit';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Languages written in Indic scripts. Vowel signs and nukta hang below the
|
|
5
|
+
* baseline and matras sit above the headline, so these need a taller line
|
|
6
|
+
* than Latin (`--und-text-*-lh-indic` tokens; research 02 §2).
|
|
7
|
+
*/
|
|
8
|
+
export const INDIC_LANGUAGES = [
|
|
9
|
+
'hi',
|
|
10
|
+
'mr',
|
|
11
|
+
'ne',
|
|
12
|
+
'bn',
|
|
13
|
+
'gu',
|
|
14
|
+
'pa',
|
|
15
|
+
'ta',
|
|
16
|
+
'te',
|
|
17
|
+
'kn',
|
|
18
|
+
'ml',
|
|
19
|
+
'or',
|
|
20
|
+
'as',
|
|
21
|
+
'sa',
|
|
22
|
+
'kok',
|
|
23
|
+
] as const;
|
|
24
|
+
|
|
25
|
+
const LANG_LIST = INDIC_LANGUAGES.map((lang) => `:lang(${lang})`).join(', ');
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Shadow styles that switch `line-height` to `var(--_lh-indic)` for `selector`
|
|
29
|
+
* when the host (or any ancestor) is in an Indic language. The caller defines
|
|
30
|
+
* `--_lh-indic` next to its latin `--_lh`. Constant input only: nothing here
|
|
31
|
+
* comes from the page.
|
|
32
|
+
*/
|
|
33
|
+
export function indicLineHeight(selector: string): CSSResult {
|
|
34
|
+
return unsafeCSS(`:host(:is(${LANG_LIST})) ${selector} { line-height: var(--_lh-indic); }`);
|
|
35
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/* Visual design ported from Astryx (MIT, (c) Meta Platforms, Inc.); see THIRD_PARTY_NOTICES.md */
|
|
2
|
+
import { unsafeCSS, type CSSResult } from 'lit';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* The space steps a `gap` or `padding` attribute accepts (`--und-space-<step>`).
|
|
6
|
+
* `0.5` (2px) and `1.5` (6px) come from the Astryx spacing scale and have no
|
|
7
|
+
* token, so they resolve to a literal length.
|
|
8
|
+
*/
|
|
9
|
+
export const SPACE_STEPS = [
|
|
10
|
+
'0',
|
|
11
|
+
'0.5',
|
|
12
|
+
'1',
|
|
13
|
+
'1.5',
|
|
14
|
+
'2',
|
|
15
|
+
'3',
|
|
16
|
+
'4',
|
|
17
|
+
'5',
|
|
18
|
+
'6',
|
|
19
|
+
'8',
|
|
20
|
+
'10',
|
|
21
|
+
'12',
|
|
22
|
+
'16',
|
|
23
|
+
'20',
|
|
24
|
+
'24',
|
|
25
|
+
'32',
|
|
26
|
+
] as const;
|
|
27
|
+
|
|
28
|
+
/** Steps without a space token: a literal length (Astryx spacing-0-5 and spacing-1-5). */
|
|
29
|
+
const UNTOKENED = new Set(['0.5', '1.5']);
|
|
30
|
+
|
|
31
|
+
/** The CSS value of a space step, e.g. `var(--und-space-4, 1rem)` or `0.125rem`. */
|
|
32
|
+
export function spaceValue(step: string): string {
|
|
33
|
+
if (step === '0') return '0';
|
|
34
|
+
const length = `${Number(step) / 4}rem`;
|
|
35
|
+
if (UNTOKENED.has(step)) return length;
|
|
36
|
+
// Built from parts so the token-usage scan only sees the real names, never a bare prefix.
|
|
37
|
+
const token = ['--und', 'space', step].join('-');
|
|
38
|
+
return `var(${token}, ${length})`;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/** One declaration per space step, e.g. `:host([gap='4']) { gap: var(--und-space-4, 1rem) }`. */
|
|
42
|
+
export function spaceRules(
|
|
43
|
+
selector: (step: string) => string,
|
|
44
|
+
property: string,
|
|
45
|
+
override?: string,
|
|
46
|
+
): CSSResult {
|
|
47
|
+
const rules = SPACE_STEPS.map((step) => {
|
|
48
|
+
const value = step === '0' ? 'var(--und-space-0, 0)' : spaceValue(step);
|
|
49
|
+
return `${selector(step)}{${property}:${override ? `var(${override},${value})` : value}}`;
|
|
50
|
+
});
|
|
51
|
+
return unsafeCSS(rules.join(''));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Logical padding attributes, least to most specific: a later rule of the same
|
|
56
|
+
* specificity wins, so an edge beats its axis and an axis beats `padding`
|
|
57
|
+
* (the Astryx resolution order).
|
|
58
|
+
*/
|
|
59
|
+
export const PADDING_ATTRIBUTES = [
|
|
60
|
+
['padding', 'padding'],
|
|
61
|
+
['padding-inline', 'padding-inline'],
|
|
62
|
+
['padding-block', 'padding-block'],
|
|
63
|
+
['padding-inline-start', 'padding-inline-start'],
|
|
64
|
+
['padding-inline-end', 'padding-inline-end'],
|
|
65
|
+
['padding-block-start', 'padding-block-start'],
|
|
66
|
+
['padding-block-end', 'padding-block-end'],
|
|
67
|
+
] as const;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Padding rules for every attribute and step, e.g.
|
|
71
|
+
* `:host([padding-inline='4']){padding-inline:var(--und-space-4, 1rem)}`.
|
|
72
|
+
* `skip` leaves out attributes a component styles itself (section keeps its
|
|
73
|
+
* `--und-section-padding` hook on `padding`).
|
|
74
|
+
*/
|
|
75
|
+
export function paddingRules(
|
|
76
|
+
selector: (attribute: string, step: string) => string,
|
|
77
|
+
skip: readonly string[] = [],
|
|
78
|
+
): CSSResult {
|
|
79
|
+
const rules: string[] = [];
|
|
80
|
+
for (const [attribute, property] of PADDING_ATTRIBUTES) {
|
|
81
|
+
if (skip.includes(attribute)) continue;
|
|
82
|
+
for (const step of SPACE_STEPS) {
|
|
83
|
+
rules.push(`${selector(attribute, step)}{${property}:${spaceValue(step)}}`);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return unsafeCSS(rules.join(''));
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/** Rules for a numeric attribute, e.g. `columns='3'` for 1..12. */
|
|
90
|
+
export function countRules(
|
|
91
|
+
selector: (n: number) => string,
|
|
92
|
+
declaration: (n: number) => string,
|
|
93
|
+
max: number,
|
|
94
|
+
): CSSResult {
|
|
95
|
+
const rules: string[] = [];
|
|
96
|
+
for (let n = 1; n <= max; n += 1) rules.push(`${selector(n)}{${declaration(n)}}`);
|
|
97
|
+
return unsafeCSS(rules.join(''));
|
|
98
|
+
}
|