@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,305 @@
|
|
|
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
|
+
const pad = (n, length = 2) => String(n).padStart(length, '0');
|
|
10
|
+
/** A UTC `Date` at midnight (years below 100 are not mapped to 19xx). */
|
|
11
|
+
function utc(ymd) {
|
|
12
|
+
const date = new Date(0);
|
|
13
|
+
date.setUTCFullYear(ymd.y, ymd.m - 1, ymd.d);
|
|
14
|
+
return date;
|
|
15
|
+
}
|
|
16
|
+
const fromUtc = (date) => ({
|
|
17
|
+
y: date.getUTCFullYear(),
|
|
18
|
+
m: date.getUTCMonth() + 1,
|
|
19
|
+
d: date.getUTCDate(),
|
|
20
|
+
});
|
|
21
|
+
export function daysInMonth(y, m) {
|
|
22
|
+
return fromUtc(utc({ y, m: m + 1, d: 0 })).d;
|
|
23
|
+
}
|
|
24
|
+
/** True when `ymd` is a real calendar date. */
|
|
25
|
+
export function isRealDate({ y, m, d }) {
|
|
26
|
+
return (Number.isInteger(y) &&
|
|
27
|
+
y >= 1 &&
|
|
28
|
+
y <= 9999 &&
|
|
29
|
+
m >= 1 &&
|
|
30
|
+
m <= 12 &&
|
|
31
|
+
d >= 1 &&
|
|
32
|
+
d <= daysInMonth(y, m));
|
|
33
|
+
}
|
|
34
|
+
/** `YYYY-MM-DD`. */
|
|
35
|
+
export const toIso = ({ y, m, d }) => `${pad(y, 4)}-${pad(m)}-${pad(d)}`;
|
|
36
|
+
/** Parses a strict `YYYY-MM-DD` string; `null` when it is not a real date. */
|
|
37
|
+
export function parseIso(text) {
|
|
38
|
+
const match = /^(\d{4})-(\d{2})-(\d{2})$/.exec(text ?? '');
|
|
39
|
+
if (!match)
|
|
40
|
+
return null;
|
|
41
|
+
const ymd = { y: Number(match[1]), m: Number(match[2]), d: Number(match[3]) };
|
|
42
|
+
return isRealDate(ymd) ? ymd : null;
|
|
43
|
+
}
|
|
44
|
+
export const compareDates = (a, b) => a.y - b.y || a.m - b.m || a.d - b.d;
|
|
45
|
+
export const sameDate = (a, b) => Boolean(a && b && compareDates(a, b) === 0);
|
|
46
|
+
export function addDays(ymd, days) {
|
|
47
|
+
const date = utc(ymd);
|
|
48
|
+
date.setUTCDate(date.getUTCDate() + days);
|
|
49
|
+
return fromUtc(date);
|
|
50
|
+
}
|
|
51
|
+
/** Moves by whole months, keeping the day where it exists and clamping it otherwise. */
|
|
52
|
+
export function addMonths(ymd, months) {
|
|
53
|
+
const index = ymd.y * 12 + (ymd.m - 1) + months;
|
|
54
|
+
const y = Math.floor(index / 12);
|
|
55
|
+
const m = (index % 12) + 1;
|
|
56
|
+
return { y, m, d: Math.min(ymd.d, daysInMonth(y, m)) };
|
|
57
|
+
}
|
|
58
|
+
/** Day of the week, 0 = Sunday. */
|
|
59
|
+
export const weekday = (ymd) => utc(ymd).getUTCDay();
|
|
60
|
+
/** Today in the local time zone. */
|
|
61
|
+
export function today() {
|
|
62
|
+
const now = new Date();
|
|
63
|
+
return { y: now.getFullYear(), m: now.getMonth() + 1, d: now.getDate() };
|
|
64
|
+
}
|
|
65
|
+
export function clampDate(ymd, min, max) {
|
|
66
|
+
if (min && compareDates(ymd, min) < 0)
|
|
67
|
+
return min;
|
|
68
|
+
if (max && compareDates(ymd, max) > 0)
|
|
69
|
+
return max;
|
|
70
|
+
return ymd;
|
|
71
|
+
}
|
|
72
|
+
// ---------------------------------------------------------------- locale data
|
|
73
|
+
const FALLBACK_LANGUAGE = 'en';
|
|
74
|
+
/** A valid BCP 47 tag for `Intl`, falling back to English for junk input. */
|
|
75
|
+
export function resolveLocale(tag) {
|
|
76
|
+
if (!tag)
|
|
77
|
+
return FALLBACK_LANGUAGE;
|
|
78
|
+
try {
|
|
79
|
+
return Intl.getCanonicalLocales(tag)[0] ?? FALLBACK_LANGUAGE;
|
|
80
|
+
}
|
|
81
|
+
catch {
|
|
82
|
+
return FALLBACK_LANGUAGE;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
/** Regions whose week starts on Sunday (CLDR), used where `Intl.Locale` has no week info. */
|
|
86
|
+
const SUNDAY_REGIONS = new Set('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(' '));
|
|
87
|
+
/** First day of the week for `locale`, 0 = Sunday. */
|
|
88
|
+
export function firstDayOfWeek(locale) {
|
|
89
|
+
try {
|
|
90
|
+
const info = new Intl.Locale(locale);
|
|
91
|
+
const firstDay = (info.getWeekInfo?.() ?? info.weekInfo)?.firstDay;
|
|
92
|
+
if (typeof firstDay === 'number')
|
|
93
|
+
return firstDay % 7;
|
|
94
|
+
return SUNDAY_REGIONS.has(info.maximize().region ?? '') ? 0 : 1;
|
|
95
|
+
}
|
|
96
|
+
catch {
|
|
97
|
+
return 1;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
const formatters = new Map();
|
|
101
|
+
/** A cached UTC `Intl.DateTimeFormat`. */
|
|
102
|
+
function formatter(locale, options) {
|
|
103
|
+
const key = `${locale}|${JSON.stringify(options)}`;
|
|
104
|
+
let format = formatters.get(key);
|
|
105
|
+
if (!format) {
|
|
106
|
+
try {
|
|
107
|
+
format = new Intl.DateTimeFormat(locale, { ...options, timeZone: 'UTC' });
|
|
108
|
+
}
|
|
109
|
+
catch {
|
|
110
|
+
format = new Intl.DateTimeFormat(FALLBACK_LANGUAGE, { ...options, timeZone: 'UTC' });
|
|
111
|
+
}
|
|
112
|
+
formatters.set(key, format);
|
|
113
|
+
}
|
|
114
|
+
return format;
|
|
115
|
+
}
|
|
116
|
+
/** `January 2027` in the locale (Hindi: `जनवरी 2027`). */
|
|
117
|
+
export const formatMonthYear = (locale, y, m) => formatter(locale, { month: 'long', year: 'numeric' }).format(utc({ y, m, d: 1 }));
|
|
118
|
+
/** Weekday name; 2027-01-03 is a Sunday. */
|
|
119
|
+
export const weekdayName = (locale, dow, width) => formatter(locale, { weekday: width }).format(utc({ y: 2027, m: 1, d: 3 + dow }));
|
|
120
|
+
/** The day number as the locale writes it. */
|
|
121
|
+
export const formatDayNumber = (locale, d) => new Intl.NumberFormat(locale, { useGrouping: false }).format(d);
|
|
122
|
+
/** `Tuesday, 12 January 2027`: the accessible name of a day. */
|
|
123
|
+
export const formatFullDate = (locale, ymd) => formatter(locale, { dateStyle: 'full' }).format(utc(ymd));
|
|
124
|
+
/** `12 Jan 2027`, for messages. */
|
|
125
|
+
export const formatMediumDate = (locale, ymd) => formatter(locale, { dateStyle: 'medium' }).format(utc(ymd));
|
|
126
|
+
const BIDI_MARKS = /[]/g;
|
|
127
|
+
const textFormats = new Map();
|
|
128
|
+
/**
|
|
129
|
+
* Field order and separator come from `Intl`: `en-IN` gives day, month, year with `/`.
|
|
130
|
+
* `iso` forces `YYYY-MM-DD`. Digits are always Latin on input and output, so the
|
|
131
|
+
* text stays easy to type; `hi-IN` uses Latin digits in CLDR already.
|
|
132
|
+
*/
|
|
133
|
+
export function dateTextFormat(locale, style = 'locale') {
|
|
134
|
+
const key = `${locale}|${style}`;
|
|
135
|
+
const cached = textFormats.get(key);
|
|
136
|
+
if (cached)
|
|
137
|
+
return cached;
|
|
138
|
+
let order = ['y', 'm', 'd'];
|
|
139
|
+
let separator = '-';
|
|
140
|
+
if (style === 'locale') {
|
|
141
|
+
try {
|
|
142
|
+
const parts = new Intl.DateTimeFormat(new Intl.Locale(locale, { numberingSystem: 'latn' }), {
|
|
143
|
+
year: 'numeric',
|
|
144
|
+
month: '2-digit',
|
|
145
|
+
day: '2-digit',
|
|
146
|
+
timeZone: 'UTC',
|
|
147
|
+
}).formatToParts(utc({ y: 2033, m: 11, d: 22 }));
|
|
148
|
+
const found = [];
|
|
149
|
+
for (const part of parts) {
|
|
150
|
+
if (part.type === 'day')
|
|
151
|
+
found.push('d');
|
|
152
|
+
else if (part.type === 'month')
|
|
153
|
+
found.push('m');
|
|
154
|
+
else if (part.type === 'year')
|
|
155
|
+
found.push('y');
|
|
156
|
+
}
|
|
157
|
+
if (found.length === 3)
|
|
158
|
+
order = found;
|
|
159
|
+
// The first literal is the separator; only `/`, `.` and `-` are accepted.
|
|
160
|
+
const literal = parts
|
|
161
|
+
.find((p) => p.type === 'literal')
|
|
162
|
+
?.value.replace(BIDI_MARKS, '')
|
|
163
|
+
.trim();
|
|
164
|
+
separator = literal && /^[./-]$/.test(literal) ? literal : '/';
|
|
165
|
+
}
|
|
166
|
+
catch {
|
|
167
|
+
order = ['d', 'm', 'y'];
|
|
168
|
+
separator = '/';
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
const fields = (ymd) => ({
|
|
172
|
+
d: pad(ymd.d),
|
|
173
|
+
m: pad(ymd.m),
|
|
174
|
+
y: pad(ymd.y, 4),
|
|
175
|
+
});
|
|
176
|
+
const format = {
|
|
177
|
+
order,
|
|
178
|
+
separator,
|
|
179
|
+
format: (ymd) => order.map((field) => fields(ymd)[field]).join(separator),
|
|
180
|
+
pattern: (words) => order.map((field) => words[field]).join(separator),
|
|
181
|
+
parse(text) {
|
|
182
|
+
const value = text.trim();
|
|
183
|
+
const iso = /^(\d{4})[-./](\d{1,2})[-./](\d{1,2})$/.exec(value);
|
|
184
|
+
let numbers;
|
|
185
|
+
let fieldOrder = order;
|
|
186
|
+
if (iso) {
|
|
187
|
+
numbers = [Number(iso[1]), Number(iso[2]), Number(iso[3])];
|
|
188
|
+
fieldOrder = ['y', 'm', 'd'];
|
|
189
|
+
}
|
|
190
|
+
else if (/^\d{8}$/.test(value)) {
|
|
191
|
+
const lengths = order.map((field) => (field === 'y' ? 4 : 2));
|
|
192
|
+
let at = 0;
|
|
193
|
+
numbers = lengths.map((length) => Number(value.slice(at, (at += length))));
|
|
194
|
+
}
|
|
195
|
+
else {
|
|
196
|
+
const pieces = value.split(/\s*[\s./-]\s*/);
|
|
197
|
+
if (pieces.length === 3 && pieces.every((piece) => /^\d+$/.test(piece))) {
|
|
198
|
+
if (pieces[order.indexOf('y')]?.length !== 4)
|
|
199
|
+
return null;
|
|
200
|
+
numbers = pieces.map(Number);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
if (!numbers)
|
|
204
|
+
return null;
|
|
205
|
+
const result = { y: 0, m: 0, d: 0 };
|
|
206
|
+
fieldOrder.forEach((field, index) => {
|
|
207
|
+
result[field] = numbers[index] ?? 0;
|
|
208
|
+
});
|
|
209
|
+
return isRealDate(result) ? result : null;
|
|
210
|
+
},
|
|
211
|
+
};
|
|
212
|
+
textFormats.set(key, format);
|
|
213
|
+
return format;
|
|
214
|
+
}
|
|
215
|
+
const timeFormats = new Map();
|
|
216
|
+
const periodKey = (text) => text.toLowerCase().replace(/[\s.]/g, '');
|
|
217
|
+
export function timeTextFormat(locale, cycle = 'auto') {
|
|
218
|
+
const key = `${locale}|${cycle}`;
|
|
219
|
+
const cached = timeFormats.get(key);
|
|
220
|
+
if (cached)
|
|
221
|
+
return cached;
|
|
222
|
+
let hour12 = false;
|
|
223
|
+
let am = 'am';
|
|
224
|
+
let pm = 'pm';
|
|
225
|
+
try {
|
|
226
|
+
if (cycle === 'auto') {
|
|
227
|
+
const resolved = new Intl.DateTimeFormat(locale, { hour: 'numeric' }).resolvedOptions();
|
|
228
|
+
hour12 = resolved.hourCycle === 'h11' || resolved.hourCycle === 'h12';
|
|
229
|
+
}
|
|
230
|
+
else {
|
|
231
|
+
hour12 = cycle === '12';
|
|
232
|
+
}
|
|
233
|
+
const period = new Intl.DateTimeFormat(new Intl.Locale(locale, { numberingSystem: 'latn' }), {
|
|
234
|
+
hour: 'numeric',
|
|
235
|
+
hour12: true,
|
|
236
|
+
timeZone: 'UTC',
|
|
237
|
+
});
|
|
238
|
+
const label = (hour) => period.formatToParts(new Date(Date.UTC(2027, 0, 1, hour))).find((p) => p.type === 'dayPeriod')
|
|
239
|
+
?.value ?? '';
|
|
240
|
+
am = label(9) || am;
|
|
241
|
+
pm = label(15) || pm;
|
|
242
|
+
}
|
|
243
|
+
catch {
|
|
244
|
+
// Keep the English defaults.
|
|
245
|
+
}
|
|
246
|
+
const amKey = periodKey(am);
|
|
247
|
+
const pmKey = periodKey(pm);
|
|
248
|
+
const format = {
|
|
249
|
+
hour12,
|
|
250
|
+
am,
|
|
251
|
+
pm,
|
|
252
|
+
format: ({ h, m }) => hour12 ? `${h % 12 || 12}:${pad(m)} ${h < 12 ? am : pm}` : `${pad(h)}:${pad(m)}`,
|
|
253
|
+
parse(text) {
|
|
254
|
+
const match = /^(\d{1,4})(?:\s*[:.hH]\s*(\d{1,2}))?\s*([^\d\s].*)?$/.exec(text.trim());
|
|
255
|
+
if (!match?.[1])
|
|
256
|
+
return null;
|
|
257
|
+
let h;
|
|
258
|
+
let minutes;
|
|
259
|
+
if (match[2] !== undefined) {
|
|
260
|
+
if (match[1].length > 2)
|
|
261
|
+
return null;
|
|
262
|
+
h = Number(match[1]);
|
|
263
|
+
minutes = Number(match[2]);
|
|
264
|
+
}
|
|
265
|
+
else if (match[1].length <= 2) {
|
|
266
|
+
h = Number(match[1]);
|
|
267
|
+
minutes = 0;
|
|
268
|
+
}
|
|
269
|
+
else {
|
|
270
|
+
h = Number(match[1].slice(0, -2));
|
|
271
|
+
minutes = Number(match[1].slice(-2));
|
|
272
|
+
}
|
|
273
|
+
if (minutes > 59)
|
|
274
|
+
return null;
|
|
275
|
+
if (match[3] !== undefined) {
|
|
276
|
+
const word = periodKey(match[3]);
|
|
277
|
+
const isAm = word === amKey || word === 'am' || word === 'a';
|
|
278
|
+
const isPm = word === pmKey || word === 'pm' || word === 'p';
|
|
279
|
+
if ((!isAm && !isPm) || h < 1 || h > 12)
|
|
280
|
+
return null;
|
|
281
|
+
h = (h % 12) + (isPm ? 12 : 0);
|
|
282
|
+
}
|
|
283
|
+
return h > 23 ? null : { h, m: minutes };
|
|
284
|
+
},
|
|
285
|
+
};
|
|
286
|
+
timeFormats.set(key, format);
|
|
287
|
+
return format;
|
|
288
|
+
}
|
|
289
|
+
/** `HH:MM`. */
|
|
290
|
+
export const toTimeIso = ({ h, m }) => `${pad(h)}:${pad(m)}`;
|
|
291
|
+
/** Parses a strict `HH:MM` value. */
|
|
292
|
+
export function parseTimeIso(text) {
|
|
293
|
+
const match = /^(\d{2}):(\d{2})$/.exec(text ?? '');
|
|
294
|
+
if (!match)
|
|
295
|
+
return null;
|
|
296
|
+
const h = Number(match[1]);
|
|
297
|
+
const m = Number(match[2]);
|
|
298
|
+
return h > 23 || m > 59 ? null : { h, m };
|
|
299
|
+
}
|
|
300
|
+
export const timeToMinutes = ({ h, m }) => h * 60 + m;
|
|
301
|
+
export const minutesToTime = (minutes) => ({
|
|
302
|
+
h: Math.floor(minutes / 60),
|
|
303
|
+
m: minutes % 60,
|
|
304
|
+
});
|
|
305
|
+
//# sourceMappingURL=date-utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-utils.js","sourceRoot":"","sources":["../../../src/components/shared/date-utils.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAeH,MAAM,GAAG,GAAG,CAAC,CAAS,EAAE,MAAM,GAAG,CAAC,EAAU,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAE/E,yEAAyE;AACzE,SAAS,GAAG,CAAC,GAAQ;IACnB,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;IACzB,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;IAC7C,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,OAAO,GAAG,CAAC,IAAU,EAAO,EAAE,CAAC,CAAC;IACpC,CAAC,EAAE,IAAI,CAAC,cAAc,EAAE;IACxB,CAAC,EAAE,IAAI,CAAC,WAAW,EAAE,GAAG,CAAC;IACzB,CAAC,EAAE,IAAI,CAAC,UAAU,EAAE;CACrB,CAAC,CAAC;AAEH,MAAM,UAAU,WAAW,CAAC,CAAS,EAAE,CAAS;IAC9C,OAAO,OAAO,CAAC,GAAG,CAAC,EAAE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IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;AAC5C,CAAC;AAED,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,EAAM,EAAU,EAAE,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AAElE,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,OAAe,EAAM,EAAE,CAAC,CAAC;IACrD,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,EAAE,CAAC;IAC3B,CAAC,EAAE,OAAO,GAAG,EAAE;CAChB,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type TemplateResult } from 'lit';
|
|
2
|
+
export type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
3
|
+
/** Clamps anything to a valid heading level (2 for junk). */
|
|
4
|
+
export declare function toHeadingLevel(value: unknown): HeadingLevel;
|
|
5
|
+
/**
|
|
6
|
+
* Renders a real `<h1>` to `<h6>` (a static template per level, so no
|
|
7
|
+
* template string is ever parsed at runtime).
|
|
8
|
+
*/
|
|
9
|
+
export declare function headingTag(level: HeadingLevel, className: string, part: string, content: TemplateResult): TemplateResult;
|
|
10
|
+
//# sourceMappingURL=heading-tag.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"heading-tag.d.ts","sourceRoot":"","sources":["../../../src/components/shared/heading-tag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAEhD,MAAM,MAAM,YAAY,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAEjD,6DAA6D;AAC7D,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,YAAY,CAG3D;AAED;;;GAGG;AACH,wBAAgB,UAAU,CACxB,KAAK,EAAE,YAAY,EACnB,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,cAAc,GACtB,cAAc,CAehB"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { html } from 'lit';
|
|
2
|
+
/** Clamps anything to a valid heading level (2 for junk). */
|
|
3
|
+
export function toHeadingLevel(value) {
|
|
4
|
+
const n = Math.trunc(Number(value));
|
|
5
|
+
return n >= 1 && n <= 6 ? n : 2;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Renders a real `<h1>` to `<h6>` (a static template per level, so no
|
|
9
|
+
* template string is ever parsed at runtime).
|
|
10
|
+
*/
|
|
11
|
+
export function headingTag(level, className, part, content) {
|
|
12
|
+
switch (level) {
|
|
13
|
+
case 1:
|
|
14
|
+
return html `<h1 part=${part} class=${className}>${content}</h1>`;
|
|
15
|
+
case 3:
|
|
16
|
+
return html `<h3 part=${part} class=${className}>${content}</h3>`;
|
|
17
|
+
case 4:
|
|
18
|
+
return html `<h4 part=${part} class=${className}>${content}</h4>`;
|
|
19
|
+
case 5:
|
|
20
|
+
return html `<h5 part=${part} class=${className}>${content}</h5>`;
|
|
21
|
+
case 6:
|
|
22
|
+
return html `<h6 part=${part} class=${className}>${content}</h6>`;
|
|
23
|
+
default:
|
|
24
|
+
return html `<h2 part=${part} class=${className}>${content}</h2>`;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=heading-tag.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"heading-tag.js","sourceRoot":"","sources":["../../../src/components/shared/heading-tag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAuB,MAAM,KAAK,CAAC;AAIhD,6DAA6D;AAC7D,MAAM,UAAU,cAAc,CAAC,KAAc;IAC3C,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IACpC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAE,CAAkB,CAAC,CAAC,CAAC,CAAC,CAAC;AACpD,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,UAAU,CACxB,KAAmB,EACnB,SAAiB,EACjB,IAAY,EACZ,OAAuB;IAEvB,QAAQ,KAAK,EAAE,CAAC;QACd,KAAK,CAAC;YACJ,OAAO,IAAI,CAAA,YAAY,IAAI,UAAU,SAAS,IAAI,OAAO,OAAO,CAAC;QACnE,KAAK,CAAC;YACJ,OAAO,IAAI,CAAA,YAAY,IAAI,UAAU,SAAS,IAAI,OAAO,OAAO,CAAC;QACnE,KAAK,CAAC;YACJ,OAAO,IAAI,CAAA,YAAY,IAAI,UAAU,SAAS,IAAI,OAAO,OAAO,CAAC;QACnE,KAAK,CAAC;YACJ,OAAO,IAAI,CAAA,YAAY,IAAI,UAAU,SAAS,IAAI,OAAO,OAAO,CAAC;QACnE,KAAK,CAAC;YACJ,OAAO,IAAI,CAAA,YAAY,IAAI,UAAU,SAAS,IAAI,OAAO,OAAO,CAAC;QACnE;YACE,OAAO,IAAI,CAAA,YAAY,IAAI,UAAU,SAAS,IAAI,OAAO,OAAO,CAAC;IACrE,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const HOST_ARIA_ATTRIBUTES: readonly ["aria-labelledby", "aria-describedby"];
|
|
2
|
+
export declare class HostAria {
|
|
3
|
+
#private;
|
|
4
|
+
/** Takes the attributes off the host (call from `updated` and on attribute changes). */
|
|
5
|
+
absorb(host: Element): void;
|
|
6
|
+
/** Adds the absorbed references to `input` (after the field wrote its own). */
|
|
7
|
+
applyTo(input: HTMLInputElement): void;
|
|
8
|
+
/**
|
|
9
|
+
* Inside `und-form-field` the wrapper names the field only after its own
|
|
10
|
+
* first update. Until then a plain `aria-label` stands in (the wrapper's
|
|
11
|
+
* `aria-labelledby` wins once it arrives), so the field is never nameless.
|
|
12
|
+
*/
|
|
13
|
+
static fallbackName(host: Element, input: HTMLInputElement, name: string, hasLabel: boolean): void;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=host-aria.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-aria.d.ts","sourceRoot":"","sources":["../../../src/components/shared/host-aria.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,oBAAoB,kDAAmD,CAAC;AAErF,qBAAa,QAAQ;;IAInB,wFAAwF;IACxF,MAAM,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI;IAa3B,+EAA+E;IAC/E,OAAO,CAAC,KAAK,EAAE,gBAAgB,GAAG,IAAI;IAYtC;;;;OAIG;IACH,MAAM,CAAC,YAAY,CACjB,IAAI,EAAE,OAAO,EACb,KAAK,EAAE,gBAAgB,EACvB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,OAAO,GAChB,IAAI;CAKR"}
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
export const HOST_ARIA_ATTRIBUTES = ['aria-labelledby', 'aria-describedby'];
|
|
11
|
+
export class HostAria {
|
|
12
|
+
#labelledBy = '';
|
|
13
|
+
#describedBy = '';
|
|
14
|
+
/** Takes the attributes off the host (call from `updated` and on attribute changes). */
|
|
15
|
+
absorb(host) {
|
|
16
|
+
const labelled = host.getAttribute('aria-labelledby');
|
|
17
|
+
if (labelled !== null) {
|
|
18
|
+
this.#labelledBy = labelled;
|
|
19
|
+
host.removeAttribute('aria-labelledby');
|
|
20
|
+
}
|
|
21
|
+
const described = host.getAttribute('aria-describedby');
|
|
22
|
+
if (described !== null) {
|
|
23
|
+
this.#describedBy = described;
|
|
24
|
+
host.removeAttribute('aria-describedby');
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
/** Adds the absorbed references to `input` (after the field wrote its own). */
|
|
28
|
+
applyTo(input) {
|
|
29
|
+
if (this.#labelledBy) {
|
|
30
|
+
input.setAttribute('aria-labelledby', this.#labelledBy);
|
|
31
|
+
}
|
|
32
|
+
if (this.#describedBy) {
|
|
33
|
+
input.setAttribute('aria-describedby', idList(input.getAttribute('aria-describedby'), this.#describedBy));
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Inside `und-form-field` the wrapper names the field only after its own
|
|
38
|
+
* first update. Until then a plain `aria-label` stands in (the wrapper's
|
|
39
|
+
* `aria-labelledby` wins once it arrives), so the field is never nameless.
|
|
40
|
+
*/
|
|
41
|
+
static fallbackName(host, input, name, hasLabel) {
|
|
42
|
+
if (hasLabel || input.hasAttribute('aria-label') || input.hasAttribute('aria-labelledby'))
|
|
43
|
+
return;
|
|
44
|
+
if (host.closest('und-form-field'))
|
|
45
|
+
input.setAttribute('aria-label', name);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=host-aria.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-aria.js","sourceRoot":"","sources":["../../../src/components/shared/host-aria.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAExD,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,iBAAiB,EAAE,kBAAkB,CAAU,CAAC;AAErF,MAAM,OAAO,QAAQ;IACnB,WAAW,GAAG,EAAE,CAAC;IACjB,YAAY,GAAG,EAAE,CAAC;IAElB,wFAAwF;IACxF,MAAM,CAAC,IAAa;QAClB,MA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
* Languages written in Indic scripts. Vowel signs and nukta hang below the
|
|
4
|
+
* baseline and matras sit above the headline, so these need a taller line
|
|
5
|
+
* than Latin (`--und-text-*-lh-indic` tokens; research 02 §2).
|
|
6
|
+
*/
|
|
7
|
+
export declare const INDIC_LANGUAGES: readonly ["hi", "mr", "ne", "bn", "gu", "pa", "ta", "te", "kn", "ml", "or", "as", "sa", "kok"];
|
|
8
|
+
/**
|
|
9
|
+
* Shadow styles that switch `line-height` to `var(--_lh-indic)` for `selector`
|
|
10
|
+
* when the host (or any ancestor) is in an Indic language. The caller defines
|
|
11
|
+
* `--_lh-indic` next to its latin `--_lh`. Constant input only: nothing here
|
|
12
|
+
* comes from the page.
|
|
13
|
+
*/
|
|
14
|
+
export declare function indicLineHeight(selector: string): CSSResult;
|
|
15
|
+
//# sourceMappingURL=indic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"indic.d.ts","sourceRoot":"","sources":["../../../src/components/shared/indic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,SAAS,EAAE,MAAM,KAAK,CAAC;AAEhD;;;;GAIG;AACH,eAAO,MAAM,eAAe,gGAelB,CAAC;AAIX;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAE3D"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { unsafeCSS } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* Languages written in Indic scripts. Vowel signs and nukta hang below the
|
|
4
|
+
* baseline and matras sit above the headline, so these need a taller line
|
|
5
|
+
* than Latin (`--und-text-*-lh-indic` tokens; research 02 §2).
|
|
6
|
+
*/
|
|
7
|
+
export const INDIC_LANGUAGES = [
|
|
8
|
+
'hi',
|
|
9
|
+
'mr',
|
|
10
|
+
'ne',
|
|
11
|
+
'bn',
|
|
12
|
+
'gu',
|
|
13
|
+
'pa',
|
|
14
|
+
'ta',
|
|
15
|
+
'te',
|
|
16
|
+
'kn',
|
|
17
|
+
'ml',
|
|
18
|
+
'or',
|
|
19
|
+
'as',
|
|
20
|
+
'sa',
|
|
21
|
+
'kok',
|
|
22
|
+
];
|
|
23
|
+
const LANG_LIST = INDIC_LANGUAGES.map((lang) => `:lang(${lang})`).join(', ');
|
|
24
|
+
/**
|
|
25
|
+
* Shadow styles that switch `line-height` to `var(--_lh-indic)` for `selector`
|
|
26
|
+
* when the host (or any ancestor) is in an Indic language. The caller defines
|
|
27
|
+
* `--_lh-indic` next to its latin `--_lh`. Constant input only: nothing here
|
|
28
|
+
* comes from the page.
|
|
29
|
+
*/
|
|
30
|
+
export function indicLineHeight(selector) {
|
|
31
|
+
return unsafeCSS(`:host(:is(${LANG_LIST})) ${selector} { line-height: var(--_lh-indic); }`);
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=indic.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"indic.js","sourceRoot":"","sources":["../../../src/components/shared/indic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAkB,MAAM,KAAK,CAAC;AAEhD;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,KAAK;CACG,CAAC;AAEX,MAAM,SAAS,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,SAAS,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAE7E;;;;;GAKG;AACH,MAAM,UAAU,eAAe,CAAC,QAAgB;IAC9C,OAAO,SAAS,CAAC,aAAa,SAAS,MAAM,QAAQ,qCAAqC,CAAC,CAAC;AAC9F,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type CSSResult } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* The space steps a `gap` or `padding` attribute accepts (`--und-space-<step>`).
|
|
4
|
+
* `0.5` (2px) and `1.5` (6px) come from the Astryx spacing scale and have no
|
|
5
|
+
* token, so they resolve to a literal length.
|
|
6
|
+
*/
|
|
7
|
+
export declare const SPACE_STEPS: readonly ["0", "0.5", "1", "1.5", "2", "3", "4", "5", "6", "8", "10", "12", "16", "20", "24", "32"];
|
|
8
|
+
/** The CSS value of a space step, e.g. `var(--und-space-4, 1rem)` or `0.125rem`. */
|
|
9
|
+
export declare function spaceValue(step: string): string;
|
|
10
|
+
/** One declaration per space step, e.g. `:host([gap='4']) { gap: var(--und-space-4, 1rem) }`. */
|
|
11
|
+
export declare function spaceRules(selector: (step: string) => string, property: string, override?: string): CSSResult;
|
|
12
|
+
/**
|
|
13
|
+
* Logical padding attributes, least to most specific: a later rule of the same
|
|
14
|
+
* specificity wins, so an edge beats its axis and an axis beats `padding`
|
|
15
|
+
* (the Astryx resolution order).
|
|
16
|
+
*/
|
|
17
|
+
export declare const PADDING_ATTRIBUTES: readonly [readonly ["padding", "padding"], readonly ["padding-inline", "padding-inline"], readonly ["padding-block", "padding-block"], readonly ["padding-inline-start", "padding-inline-start"], readonly ["padding-inline-end", "padding-inline-end"], readonly ["padding-block-start", "padding-block-start"], readonly ["padding-block-end", "padding-block-end"]];
|
|
18
|
+
/**
|
|
19
|
+
* Padding rules for every attribute and step, e.g.
|
|
20
|
+
* `:host([padding-inline='4']){padding-inline:var(--und-space-4, 1rem)}`.
|
|
21
|
+
* `skip` leaves out attributes a component styles itself (section keeps its
|
|
22
|
+
* `--und-section-padding` hook on `padding`).
|
|
23
|
+
*/
|
|
24
|
+
export declare function paddingRules(selector: (attribute: string, step: string) => string, skip?: readonly string[]): CSSResult;
|
|
25
|
+
/** Rules for a numeric attribute, e.g. `columns='3'` for 1..12. */
|
|
26
|
+
export declare function countRules(selector: (n: number) => string, declaration: (n: number) => string, max: number): CSSResult;
|
|
27
|
+
//# sourceMappingURL=layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../src/components/shared/layout.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,KAAK,SAAS,EAAE,MAAM,KAAK,CAAC;AAEhD;;;;GAIG;AACH,eAAO,MAAM,WAAW,qGAiBd,CAAC;AAKX,oFAAoF;AACpF,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAO/C;AAED,iGAAiG;AACjG,wBAAgB,UAAU,CACxB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,EAClC,QAAQ,EAAE,MAAM,EAChB,QAAQ,CAAC,EAAE,MAAM,GAChB,SAAS,CAMX;AAED;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,wWAQrB,CAAC;AAEX;;;;;GAKG;AACH,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,MAAM,EACrD,IAAI,GAAE,SAAS,MAAM,EAAO,GAC3B,SAAS,CASX;AAED,mEAAmE;AACnE,wBAAgB,UAAU,CACxB,QAAQ,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,EAC/B,WAAW,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,EAClC,GAAG,EAAE,MAAM,GACV,SAAS,CAIX"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/* Visual design ported from Astryx (MIT, (c) Meta Platforms, Inc.); see THIRD_PARTY_NOTICES.md */
|
|
2
|
+
import { unsafeCSS } from 'lit';
|
|
3
|
+
/**
|
|
4
|
+
* The space steps a `gap` or `padding` attribute accepts (`--und-space-<step>`).
|
|
5
|
+
* `0.5` (2px) and `1.5` (6px) come from the Astryx spacing scale and have no
|
|
6
|
+
* token, so they resolve to a literal length.
|
|
7
|
+
*/
|
|
8
|
+
export const SPACE_STEPS = [
|
|
9
|
+
'0',
|
|
10
|
+
'0.5',
|
|
11
|
+
'1',
|
|
12
|
+
'1.5',
|
|
13
|
+
'2',
|
|
14
|
+
'3',
|
|
15
|
+
'4',
|
|
16
|
+
'5',
|
|
17
|
+
'6',
|
|
18
|
+
'8',
|
|
19
|
+
'10',
|
|
20
|
+
'12',
|
|
21
|
+
'16',
|
|
22
|
+
'20',
|
|
23
|
+
'24',
|
|
24
|
+
'32',
|
|
25
|
+
];
|
|
26
|
+
/** Steps without a space token: a literal length (Astryx spacing-0-5 and spacing-1-5). */
|
|
27
|
+
const UNTOKENED = new Set(['0.5', '1.5']);
|
|
28
|
+
/** The CSS value of a space step, e.g. `var(--und-space-4, 1rem)` or `0.125rem`. */
|
|
29
|
+
export function spaceValue(step) {
|
|
30
|
+
if (step === '0')
|
|
31
|
+
return '0';
|
|
32
|
+
const length = `${Number(step) / 4}rem`;
|
|
33
|
+
if (UNTOKENED.has(step))
|
|
34
|
+
return length;
|
|
35
|
+
// Built from parts so the token-usage scan only sees the real names, never a bare prefix.
|
|
36
|
+
const token = ['--und', 'space', step].join('-');
|
|
37
|
+
return `var(${token}, ${length})`;
|
|
38
|
+
}
|
|
39
|
+
/** One declaration per space step, e.g. `:host([gap='4']) { gap: var(--und-space-4, 1rem) }`. */
|
|
40
|
+
export function spaceRules(selector, property, override) {
|
|
41
|
+
const rules = SPACE_STEPS.map((step) => {
|
|
42
|
+
const value = step === '0' ? 'var(--und-space-0, 0)' : spaceValue(step);
|
|
43
|
+
return `${selector(step)}{${property}:${override ? `var(${override},${value})` : value}}`;
|
|
44
|
+
});
|
|
45
|
+
return unsafeCSS(rules.join(''));
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Logical padding attributes, least to most specific: a later rule of the same
|
|
49
|
+
* specificity wins, so an edge beats its axis and an axis beats `padding`
|
|
50
|
+
* (the Astryx resolution order).
|
|
51
|
+
*/
|
|
52
|
+
export const PADDING_ATTRIBUTES = [
|
|
53
|
+
['padding', 'padding'],
|
|
54
|
+
['padding-inline', 'padding-inline'],
|
|
55
|
+
['padding-block', 'padding-block'],
|
|
56
|
+
['padding-inline-start', 'padding-inline-start'],
|
|
57
|
+
['padding-inline-end', 'padding-inline-end'],
|
|
58
|
+
['padding-block-start', 'padding-block-start'],
|
|
59
|
+
['padding-block-end', 'padding-block-end'],
|
|
60
|
+
];
|
|
61
|
+
/**
|
|
62
|
+
* Padding rules for every attribute and step, e.g.
|
|
63
|
+
* `:host([padding-inline='4']){padding-inline:var(--und-space-4, 1rem)}`.
|
|
64
|
+
* `skip` leaves out attributes a component styles itself (section keeps its
|
|
65
|
+
* `--und-section-padding` hook on `padding`).
|
|
66
|
+
*/
|
|
67
|
+
export function paddingRules(selector, skip = []) {
|
|
68
|
+
const rules = [];
|
|
69
|
+
for (const [attribute, property] of PADDING_ATTRIBUTES) {
|
|
70
|
+
if (skip.includes(attribute))
|
|
71
|
+
continue;
|
|
72
|
+
for (const step of SPACE_STEPS) {
|
|
73
|
+
rules.push(`${selector(attribute, step)}{${property}:${spaceValue(step)}}`);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
return unsafeCSS(rules.join(''));
|
|
77
|
+
}
|
|
78
|
+
/** Rules for a numeric attribute, e.g. `columns='3'` for 1..12. */
|
|
79
|
+
export function countRules(selector, declaration, max) {
|
|
80
|
+
const rules = [];
|
|
81
|
+
for (let n = 1; n <= max; n += 1)
|
|
82
|
+
rules.push(`${selector(n)}{${declaration(n)}}`);
|
|
83
|
+
return unsafeCSS(rules.join(''));
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=layout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.js","sourceRoot":"","sources":["../../../src/components/shared/layout.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,OAAO,EAAE,SAAS,EAAkB,MAAM,KAAK,CAAC;AAEhD;;;;GAIG;AACH,MAAM,CAAC,MAAM,WAAW,GA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