@und-ui/core 0.1.0 → 0.2.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 +6 -0
- package/custom-elements.json +45231 -9574
- 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 +69 -0
- package/dist/all.d.ts.map +1 -1
- package/dist/all.js +70 -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 +135 -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 +177 -0
- package/dist/cdn/all.js +12500 -0
- package/dist/cdn/app-shell.js +170 -0
- package/dist/cdn/aspect-ratio.js +62 -0
- package/dist/cdn/autoloader.js +1 -0
- package/dist/cdn/avatar-group.js +76 -0
- package/dist/cdn/avatar.js +1 -0
- package/dist/cdn/badge.js +139 -0
- package/dist/cdn/banner.js +197 -0
- package/dist/cdn/blockquote.js +51 -0
- package/dist/cdn/bottom-sheet.js +92 -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 +227 -0
- package/dist/cdn/center.js +38 -0
- package/dist/cdn/chat-composer.js +235 -0
- package/dist/cdn/chat-layout.js +146 -0
- package/dist/cdn/chat-message.js +304 -0
- package/dist/cdn/checkbox-list.js +118 -0
- package/dist/cdn/checkbox.js +1 -0
- package/dist/cdn/chunks/2GOGJDSU.js +47 -0
- package/dist/cdn/chunks/2ILG5UCH.js +320 -0
- package/dist/cdn/chunks/2JGSCE32.js +1 -0
- package/dist/cdn/chunks/2NKWY2MD.js +1 -0
- package/dist/cdn/chunks/2POJ73H3.js +127 -0
- package/dist/cdn/chunks/2ZNYEI2K.js +153 -0
- package/dist/cdn/chunks/4V5OZW5S.js +138 -0
- package/dist/cdn/chunks/53R7LH57.js +1 -0
- package/dist/cdn/chunks/5RXWAJYI.js +209 -0
- package/dist/cdn/chunks/6PVRHMKB.js +136 -0
- package/dist/cdn/chunks/7FX3ODJD.js +1 -0
- package/dist/cdn/chunks/7Q37LUBP.js +1 -0
- package/dist/cdn/chunks/7ZRZJJTR.js +1 -0
- package/dist/cdn/chunks/AFVQZOYK.js +1 -0
- package/dist/cdn/chunks/AH74TYPT.js +1 -0
- package/dist/cdn/chunks/ASRBZKJQ.js +110 -0
- package/dist/cdn/chunks/BC5GCW6V.js +70 -0
- package/dist/cdn/chunks/BZSCKO2L.js +498 -0
- package/dist/cdn/chunks/CQAYRYSN.js +183 -0
- package/dist/cdn/chunks/DDMOITKE.js +1 -0
- package/dist/cdn/chunks/DLMHPPVT.js +9 -0
- package/dist/cdn/chunks/E4ULE3CZ.js +28 -0
- package/dist/cdn/chunks/ERZVCCWG.js +1 -0
- package/dist/cdn/chunks/EXHS4XM7.js +75 -0
- package/dist/cdn/chunks/F4UDAUDP.js +95 -0
- package/dist/cdn/chunks/FQ5Z2ADE.js +1 -0
- package/dist/cdn/chunks/FRDRK7S4.js +192 -0
- package/dist/cdn/chunks/FVWYLBE6.js +1 -0
- package/dist/cdn/chunks/G2MFKC6X.js +1 -0
- package/dist/cdn/chunks/GBWHWWM7.js +1 -0
- package/dist/cdn/chunks/GVFRCF4L.js +1 -0
- package/dist/cdn/chunks/H3EXQADC.js +1 -0
- package/dist/cdn/chunks/HJLUTHQ4.js +28 -0
- package/dist/cdn/chunks/HQG5G3NW.js +294 -0
- package/dist/cdn/chunks/IRDJ2SED.js +227 -0
- package/dist/cdn/chunks/ITULBQXQ.js +77 -0
- package/dist/cdn/chunks/IYPIGVNK.js +1 -0
- package/dist/cdn/chunks/JFRG4OYS.js +174 -0
- package/dist/cdn/chunks/JIAFHSB3.js +1 -0
- package/dist/cdn/chunks/JSGBG32L.js +1 -0
- package/dist/cdn/chunks/JTCY7VA6.js +16 -0
- package/dist/cdn/chunks/KJKMJ4CJ.js +1 -0
- package/dist/cdn/chunks/LAHY3QCY.js +1 -0
- package/dist/cdn/chunks/LILDP4YG.js +228 -0
- package/dist/cdn/chunks/LUMZDQSN.js +1 -0
- package/dist/cdn/chunks/MCMKNHE4.js +243 -0
- package/dist/cdn/chunks/MQR6SWE3.js +1 -0
- package/dist/cdn/chunks/NBCCLQGT.js +2 -0
- package/dist/cdn/chunks/NOAT4MJU.js +1 -0
- package/dist/cdn/chunks/NSGFRI4V.js +1 -0
- package/dist/cdn/chunks/PFTG732C.js +120 -0
- package/dist/cdn/chunks/PYS73CGQ.js +1 -0
- package/dist/cdn/chunks/QFHEFAZM.js +228 -0
- package/dist/cdn/chunks/QSGNQDXL.js +83 -0
- package/dist/cdn/chunks/QXFKH4UN.js +80 -0
- package/dist/cdn/chunks/R7XE3NCT.js +104 -0
- package/dist/cdn/chunks/RBKCBV34.js +10 -0
- package/dist/cdn/chunks/RDI7SHXP.js +161 -0
- package/dist/cdn/chunks/U7MPBIQK.js +15 -0
- package/dist/cdn/chunks/VJW5CINE.js +289 -0
- package/dist/cdn/chunks/VWGB35YM.js +1 -0
- package/dist/cdn/chunks/W3C5YK34.js +25 -0
- package/dist/cdn/chunks/WPLY7F3R.js +1 -0
- package/dist/cdn/chunks/XDXEEO2D.js +189 -0
- package/dist/cdn/chunks/YCLUSLYF.js +155 -0
- package/dist/cdn/chunks/YTJ6WTZW.js +253 -0
- package/dist/cdn/chunks/YUWOEVYA.js +19 -0
- package/dist/cdn/chunks/YYIQMFRC.js +168 -0
- package/dist/cdn/chunks/Z5CQ6NOH.js +1 -0
- package/dist/cdn/citation.js +98 -0
- package/dist/cdn/clickable-card.js +31 -0
- package/dist/cdn/code-block.js +231 -0
- package/dist/cdn/code.js +28 -0
- package/dist/cdn/collapsible.js +11 -0
- package/dist/cdn/combobox.js +1 -0
- package/dist/cdn/command-palette.js +234 -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 +74 -0
- package/dist/cdn/drawer.js +1 -0
- package/dist/cdn/empty-state.js +99 -0
- package/dist/cdn/file-input.js +190 -0
- package/dist/cdn/form-field.js +13 -0
- package/dist/cdn/form-layout.js +66 -0
- package/dist/cdn/grid-item.js +1 -0
- package/dist/cdn/grid.js +62 -0
- package/dist/cdn/heading.js +57 -0
- package/dist/cdn/hover-card.js +7 -0
- package/dist/cdn/icon-button.js +37 -0
- package/dist/cdn/icon.js +52 -0
- package/dist/cdn/info-tip.js +94 -0
- package/dist/cdn/input-group.js +64 -0
- package/dist/cdn/kbd.js +36 -0
- package/dist/cdn/lightbox.js +259 -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 +88 -0
- package/dist/cdn/more-menu.js +58 -0
- package/dist/cdn/multi-select.js +70 -0
- package/dist/cdn/number-input.js +103 -0
- package/dist/cdn/outline.js +100 -0
- package/dist/cdn/overflow-list.js +124 -0
- package/dist/cdn/pagination.js +181 -0
- package/dist/cdn/popover.js +1 -0
- package/dist/cdn/progress.js +180 -0
- package/dist/cdn/radio-group.js +1 -0
- package/dist/cdn/radio-list.js +76 -0
- package/dist/cdn/radio.js +1 -0
- package/dist/cdn/resize-handle.js +73 -0
- package/dist/cdn/scroll-area.js +79 -0
- package/dist/cdn/section.js +36 -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 +161 -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 +80 -0
- package/dist/cdn/slider.js +182 -0
- package/dist/cdn/spinner.js +65 -0
- package/dist/cdn/stack.js +72 -0
- package/dist/cdn/status-dot.js +66 -0
- package/dist/cdn/step.js +1 -0
- package/dist/cdn/stepper.js +1 -0
- package/dist/cdn/switch.js +178 -0
- package/dist/cdn/tab-menu.js +121 -0
- package/dist/cdn/tab-panel.js +1 -0
- package/dist/cdn/tab.js +1 -0
- package/dist/cdn/table.js +365 -0
- package/dist/cdn/tabs.js +1 -0
- package/dist/cdn/text-field.js +1 -0
- package/dist/cdn/text.js +102 -0
- package/dist/cdn/textarea.js +102 -0
- package/dist/cdn/thumbnail.js +92 -0
- package/dist/cdn/time-input.js +1 -0
- package/dist/cdn/timer.js +33 -0
- package/dist/cdn/timestamp.js +16 -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/token.js +1 -0
- package/dist/cdn/tokenizer.js +181 -0
- package/dist/cdn/toolbar.js +37 -0
- package/dist/cdn/tooltip.js +50 -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 +18 -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/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 +79 -0
- package/dist/components/alert-dialog/alert-dialog.js.map +1 -0
- package/dist/components/app-shell/app-shell.d.ts +102 -0
- package/dist/components/app-shell/app-shell.d.ts.map +1 -0
- package/dist/components/app-shell/app-shell.js +285 -0
- package/dist/components/app-shell/app-shell.js.map +1 -0
- package/dist/components/aspect-ratio/aspect-ratio.d.ts +45 -0
- package/dist/components/aspect-ratio/aspect-ratio.d.ts.map +1 -0
- package/dist/components/aspect-ratio/aspect-ratio.js +105 -0
- package/dist/components/aspect-ratio/aspect-ratio.js.map +1 -0
- package/dist/components/banner/banner.d.ts +111 -0
- package/dist/components/banner/banner.d.ts.map +1 -0
- package/dist/components/banner/banner.js +287 -0
- package/dist/components/banner/banner.js.map +1 -0
- package/dist/components/blockquote/blockquote.d.ts +42 -0
- package/dist/components/blockquote/blockquote.d.ts.map +1 -0
- package/dist/components/blockquote/blockquote.js +90 -0
- package/dist/components/blockquote/blockquote.js.map +1 -0
- package/dist/components/bottom-sheet/bottom-sheet.d.ts +128 -0
- package/dist/components/bottom-sheet/bottom-sheet.d.ts.map +1 -0
- package/dist/components/bottom-sheet/bottom-sheet.js +279 -0
- package/dist/components/bottom-sheet/bottom-sheet.js.map +1 -0
- package/dist/components/bottom-sheet/bottom-sheet.styles.d.ts +7 -0
- package/dist/components/bottom-sheet/bottom-sheet.styles.d.ts.map +1 -0
- package/dist/components/bottom-sheet/bottom-sheet.styles.js +83 -0
- package/dist/components/bottom-sheet/bottom-sheet.styles.js.map +1 -0
- 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 +411 -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 +219 -0
- package/dist/components/calendar/calendar.styles.js.map +1 -0
- package/dist/components/card/card.d.ts +6 -2
- package/dist/components/card/card.d.ts.map +1 -1
- package/dist/components/card/card.js +19 -11
- package/dist/components/card/card.js.map +1 -1
- package/dist/components/carousel/carousel.d.ts +171 -0
- package/dist/components/carousel/carousel.d.ts.map +1 -0
- package/dist/components/carousel/carousel.js +340 -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 +171 -0
- package/dist/components/carousel/carousel.styles.js.map +1 -0
- package/dist/components/center/center.d.ts +50 -0
- package/dist/components/center/center.d.ts.map +1 -0
- package/dist/components/center/center.js +69 -0
- package/dist/components/center/center.js.map +1 -0
- package/dist/components/chat/chat-composer.d.ts +172 -0
- package/dist/components/chat/chat-composer.d.ts.map +1 -0
- package/dist/components/chat/chat-composer.js +252 -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 +206 -0
- package/dist/components/chat/chat-composer.styles.js.map +1 -0
- package/dist/components/chat/chat-layout.d.ts +112 -0
- package/dist/components/chat/chat-layout.d.ts.map +1 -0
- package/dist/components/chat/chat-layout.js +204 -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 +114 -0
- package/dist/components/chat/chat-layout.styles.js.map +1 -0
- package/dist/components/chat/chat-message.d.ts +164 -0
- package/dist/components/chat/chat-message.d.ts.map +1 -0
- package/dist/components/chat/chat-message.js +257 -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 +249 -0
- package/dist/components/chat/chat-message.styles.js.map +1 -0
- 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 +104 -0
- package/dist/components/checkbox-list/checkbox-list.styles.js.map +1 -0
- package/dist/components/citation/citation.d.ts +81 -0
- package/dist/components/citation/citation.d.ts.map +1 -0
- package/dist/components/citation/citation.js +173 -0
- package/dist/components/citation/citation.js.map +1 -0
- package/dist/components/clickable-card/clickable-card.d.ts +61 -0
- package/dist/components/clickable-card/clickable-card.d.ts.map +1 -0
- package/dist/components/clickable-card/clickable-card.js +84 -0
- package/dist/components/clickable-card/clickable-card.js.map +1 -0
- package/dist/components/code/code.d.ts +28 -0
- package/dist/components/code/code.d.ts.map +1 -0
- package/dist/components/code/code.js +52 -0
- package/dist/components/code/code.js.map +1 -0
- package/dist/components/code-block/code-block.d.ts +183 -0
- package/dist/components/code-block/code-block.d.ts.map +1 -0
- package/dist/components/code-block/code-block.js +237 -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 +194 -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/command-palette/command-palette.d.ts +188 -0
- package/dist/components/command-palette/command-palette.d.ts.map +1 -0
- package/dist/components/command-palette/command-palette.js +367 -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 +173 -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 +13 -1
- package/dist/components/dialog/dialog.d.ts.map +1 -1
- package/dist/components/dialog/dialog.js +36 -24
- package/dist/components/dialog/dialog.js.map +1 -1
- package/dist/components/empty-state/empty-state.d.ts +57 -0
- package/dist/components/empty-state/empty-state.d.ts.map +1 -0
- package/dist/components/empty-state/empty-state.js +162 -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 +195 -0
- package/dist/components/file-input/file-input.styles.js.map +1 -0
- package/dist/components/form-layout/form-layout.d.ts +40 -0
- package/dist/components/form-layout/form-layout.d.ts.map +1 -0
- package/dist/components/form-layout/form-layout.js +41 -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 +71 -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 +42 -0
- package/dist/components/grid/grid-item.js.map +1 -0
- package/dist/components/grid/grid.d.ts +69 -0
- package/dist/components/grid/grid.d.ts.map +1 -0
- package/dist/components/grid/grid.js +97 -0
- package/dist/components/grid/grid.js.map +1 -0
- package/dist/components/heading/heading.d.ts +61 -0
- package/dist/components/heading/heading.d.ts.map +1 -0
- package/dist/components/heading/heading.js +50 -0
- package/dist/components/heading/heading.js.map +1 -0
- package/dist/components/heading/heading.styles.d.ts +6 -0
- package/dist/components/heading/heading.styles.d.ts.map +1 -0
- package/dist/components/heading/heading.styles.js +64 -0
- package/dist/components/heading/heading.styles.js.map +1 -0
- package/dist/components/hover-card/hover-card.d.ts +116 -0
- package/dist/components/hover-card/hover-card.d.ts.map +1 -0
- package/dist/components/hover-card/hover-card.js +291 -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 +84 -0
- package/dist/components/icon/icon.d.ts.map +1 -0
- package/dist/components/icon/icon.js +126 -0
- package/dist/components/icon/icon.js.map +1 -0
- package/dist/components/info-tip/info-tip.d.ts +73 -0
- package/dist/components/info-tip/info-tip.d.ts.map +1 -0
- package/dist/components/info-tip/info-tip.js +184 -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 +69 -0
- package/dist/components/input-group/input-group.styles.js.map +1 -0
- package/dist/components/kbd/kbd.d.ts +31 -0
- package/dist/components/kbd/kbd.d.ts.map +1 -0
- package/dist/components/kbd/kbd.js +63 -0
- package/dist/components/kbd/kbd.js.map +1 -0
- package/dist/components/lightbox/lightbox.d.ts +167 -0
- package/dist/components/lightbox/lightbox.d.ts.map +1 -0
- package/dist/components/lightbox/lightbox.js +272 -0
- package/dist/components/lightbox/lightbox.js.map +1 -0
- package/dist/components/lightbox/lightbox.styles.d.ts +7 -0
- package/dist/components/lightbox/lightbox.styles.d.ts.map +1 -0
- package/dist/components/lightbox/lightbox.styles.js +188 -0
- package/dist/components/lightbox/lightbox.styles.js.map +1 -0
- package/dist/components/list/list-item.d.ts +52 -0
- package/dist/components/list/list-item.d.ts.map +1 -0
- package/dist/components/list/list-item.js +131 -0
- package/dist/components/list/list-item.js.map +1 -0
- package/dist/components/list/list.d.ts +53 -0
- package/dist/components/list/list.d.ts.map +1 -0
- package/dist/components/list/list.js +77 -0
- package/dist/components/list/list.js.map +1 -0
- package/dist/components/markdown/markdown.d.ts +103 -0
- package/dist/components/markdown/markdown.d.ts.map +1 -0
- package/dist/components/markdown/markdown.js +111 -0
- package/dist/components/markdown/markdown.js.map +1 -0
- package/dist/components/markdown/markdown.styles.d.ts +6 -0
- package/dist/components/markdown/markdown.styles.d.ts.map +1 -0
- package/dist/components/markdown/markdown.styles.js +178 -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 +170 -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/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 +65 -0
- package/dist/components/metadata-list/metadata-list.d.ts.map +1 -0
- package/dist/components/metadata-list/metadata-list.js +151 -0
- package/dist/components/metadata-list/metadata-list.js.map +1 -0
- package/dist/components/mobile-nav/mobile-nav.d.ts +91 -0
- package/dist/components/mobile-nav/mobile-nav.d.ts.map +1 -0
- package/dist/components/mobile-nav/mobile-nav.js +138 -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 +57 -0
- package/dist/components/mobile-nav/mobile-nav.styles.js.map +1 -0
- package/dist/components/more-menu/more-menu.d.ts +57 -0
- package/dist/components/more-menu/more-menu.d.ts.map +1 -0
- package/dist/components/more-menu/more-menu.js +59 -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 +50 -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 +27 -0
- package/dist/components/multi-select/multi-select.styles.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 +204 -0
- package/dist/components/number-input/number-input.d.ts.map +1 -0
- package/dist/components/number-input/number-input.js +470 -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 +108 -0
- package/dist/components/number-input/number-input.styles.js.map +1 -0
- package/dist/components/outline/outline.d.ts +117 -0
- package/dist/components/outline/outline.d.ts.map +1 -0
- package/dist/components/outline/outline.js +283 -0
- package/dist/components/outline/outline.js.map +1 -0
- package/dist/components/outline/outline.styles.d.ts +7 -0
- package/dist/components/outline/outline.styles.d.ts.map +1 -0
- package/dist/components/outline/outline.styles.js +92 -0
- package/dist/components/outline/outline.styles.js.map +1 -0
- package/dist/components/overflow-list/overflow-list.d.ts +78 -0
- package/dist/components/overflow-list/overflow-list.d.ts.map +1 -0
- package/dist/components/overflow-list/overflow-list.js +211 -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 +112 -0
- package/dist/components/overflow-list/overflow-list.styles.js.map +1 -0
- package/dist/components/pagination/pagination.d.ts +1 -1
- package/dist/components/pagination/pagination.js +2 -2
- 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 +8 -2
- 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 +14 -6
- package/dist/components/radio-group/radio.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 +81 -0
- package/dist/components/radio-list/radio-list.styles.js.map +1 -0
- package/dist/components/resize-handle/resize-handle.d.ts +130 -0
- package/dist/components/resize-handle/resize-handle.d.ts.map +1 -0
- package/dist/components/resize-handle/resize-handle.js +343 -0
- package/dist/components/resize-handle/resize-handle.js.map +1 -0
- package/dist/components/scroll-area/scroll-area.d.ts +63 -0
- package/dist/components/scroll-area/scroll-area.d.ts.map +1 -0
- package/dist/components/scroll-area/scroll-area.js +186 -0
- package/dist/components/scroll-area/scroll-area.js.map +1 -0
- package/dist/components/section/section.d.ts +62 -0
- package/dist/components/section/section.d.ts.map +1 -0
- package/dist/components/section/section.js +88 -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 +206 -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 +149 -0
- package/dist/components/segmented-control/segmented-control.styles.js.map +1 -0
- package/dist/components/selectable-card/selectable-card.d.ts +55 -0
- package/dist/components/selectable-card/selectable-card.d.ts.map +1 -0
- package/dist/components/selectable-card/selectable-card.js +122 -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 +166 -0
- package/dist/components/selectable-card/selectable-card.styles.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 +158 -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 +8 -0
- package/dist/components/shared/layout.d.ts.map +1 -0
- package/dist/components/shared/layout.js +36 -0
- package/dist/components/shared/layout.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 +255 -0
- package/dist/components/side-nav/side-nav.d.ts.map +1 -0
- package/dist/components/side-nav/side-nav.js +335 -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 +443 -0
- package/dist/components/side-nav/side-nav.styles.js.map +1 -0
- package/dist/components/stack/stack.d.ts +78 -0
- package/dist/components/stack/stack.d.ts.map +1 -0
- package/dist/components/stack/stack.js +108 -0
- package/dist/components/stack/stack.js.map +1 -0
- package/dist/components/status-dot/status-dot.d.ts +53 -0
- package/dist/components/status-dot/status-dot.d.ts.map +1 -0
- package/dist/components/status-dot/status-dot.js +126 -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 +220 -0
- package/dist/components/stepper/stepper.styles.js.map +1 -0
- package/dist/components/tab-menu/tab-menu.d.ts +61 -0
- package/dist/components/tab-menu/tab-menu.d.ts.map +1 -0
- package/dist/components/tab-menu/tab-menu.js +52 -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 +127 -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 +92 -1
- package/dist/components/table/table.d.ts.map +1 -1
- package/dist/components/table/table.js +359 -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 +202 -0
- package/dist/components/table/table.styles.js.map +1 -1
- package/dist/components/text/text.d.ts +81 -0
- package/dist/components/text/text.d.ts.map +1 -0
- package/dist/components/text/text.js +59 -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 +107 -0
- package/dist/components/text/text.styles.js.map +1 -0
- package/dist/components/thumbnail/thumbnail.d.ts +79 -0
- package/dist/components/thumbnail/thumbnail.d.ts.map +1 -0
- package/dist/components/thumbnail/thumbnail.js +186 -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 +34 -0
- package/dist/components/timer/timer.styles.js.map +1 -0
- package/dist/components/timestamp/timestamp.d.ts +112 -0
- package/dist/components/timestamp/timestamp.d.ts.map +1 -0
- package/dist/components/timestamp/timestamp.js +191 -0
- package/dist/components/timestamp/timestamp.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 +82 -0
- package/dist/components/token/token.d.ts.map +1 -0
- package/dist/components/token/token.js +86 -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 +122 -0
- package/dist/components/tokenizer/tokenizer.styles.js.map +1 -0
- package/dist/components/toolbar/toolbar.d.ts +57 -0
- package/dist/components/toolbar/toolbar.d.ts.map +1 -0
- package/dist/components/toolbar/toolbar.js +145 -0
- package/dist/components/toolbar/toolbar.js.map +1 -0
- package/dist/components/top-nav/top-nav.d.ts +155 -0
- package/dist/components/top-nav/top-nav.d.ts.map +1 -0
- package/dist/components/top-nav/top-nav.js +236 -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 +267 -0
- package/dist/components/top-nav/top-nav.styles.js.map +1 -0
- package/dist/components/tree-list/tree-list.d.ts +194 -0
- package/dist/components/tree-list/tree-list.d.ts.map +1 -0
- package/dist/components/tree-list/tree-list.js +501 -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 +171 -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/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 +72 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +73 -0
- package/dist/index.js.map +1 -1
- 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/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/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/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/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/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/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/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/package.json +402 -4
- package/src/alert-dialog.ts +9 -0
- package/src/all.ts +70 -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/alert-dialog/alert-dialog.ts +108 -0
- package/src/components/app-shell/app-shell.ts +328 -0
- package/src/components/aspect-ratio/aspect-ratio.ts +121 -0
- package/src/components/banner/banner.ts +351 -0
- package/src/components/blockquote/blockquote.ts +108 -0
- package/src/components/bottom-sheet/bottom-sheet.styles.ts +83 -0
- package/src/components/bottom-sheet/bottom-sheet.ts +328 -0
- package/src/components/button-group/button-group.ts +158 -0
- package/src/components/calendar/calendar.styles.ts +219 -0
- package/src/components/calendar/calendar.ts +559 -0
- package/src/components/card/card.ts +23 -15
- package/src/components/carousel/carousel.styles.ts +171 -0
- package/src/components/carousel/carousel.ts +441 -0
- package/src/components/center/center.ts +93 -0
- package/src/components/chat/chat-composer.styles.ts +207 -0
- package/src/components/chat/chat-composer.ts +346 -0
- package/src/components/chat/chat-layout.styles.ts +114 -0
- package/src/components/chat/chat-layout.ts +246 -0
- package/src/components/chat/chat-message.styles.ts +249 -0
- package/src/components/chat/chat-message.ts +381 -0
- package/src/components/checkbox-list/checkbox-list.styles.ts +104 -0
- package/src/components/checkbox-list/checkbox-list.ts +287 -0
- package/src/components/citation/citation.ts +222 -0
- package/src/components/clickable-card/clickable-card.ts +103 -0
- package/src/components/code/code.ts +60 -0
- package/src/components/code-block/code-block.styles.ts +194 -0
- package/src/components/code-block/code-block.ts +348 -0
- package/src/components/collapsible/collapsible.styles.ts +25 -0
- package/src/components/collapsible/collapsible.ts +119 -0
- package/src/components/command-palette/command-palette.styles.ts +173 -0
- package/src/components/command-palette/command-palette.ts +486 -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.ts +38 -25
- package/src/components/empty-state/empty-state.ts +196 -0
- package/src/components/file-input/file-input.styles.ts +195 -0
- package/src/components/file-input/file-input.ts +418 -0
- package/src/components/form-layout/form-layout.styles.ts +71 -0
- package/src/components/form-layout/form-layout.ts +53 -0
- package/src/components/grid/grid-item.ts +65 -0
- package/src/components/grid/grid.ts +138 -0
- package/src/components/heading/heading.styles.ts +64 -0
- package/src/components/heading/heading.ts +82 -0
- package/src/components/hover-card/hover-card.ts +361 -0
- package/src/components/icon/icon-registry.ts +168 -0
- package/src/components/icon/icon.ts +180 -0
- package/src/components/info-tip/info-tip.ts +217 -0
- package/src/components/input-group/input-group.styles.ts +69 -0
- package/src/components/input-group/input-group.ts +95 -0
- package/src/components/kbd/kbd.ts +71 -0
- package/src/components/lightbox/lightbox.styles.ts +188 -0
- package/src/components/lightbox/lightbox.ts +350 -0
- package/src/components/list/list-item.ts +163 -0
- package/src/components/list/list.ts +106 -0
- package/src/components/markdown/markdown.styles.ts +178 -0
- package/src/components/markdown/markdown.ts +170 -0
- package/src/components/markdown/parser.ts +549 -0
- package/src/components/markdown/render.ts +199 -0
- 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 +186 -0
- package/src/components/mobile-nav/mobile-nav.styles.ts +57 -0
- package/src/components/mobile-nav/mobile-nav.ts +190 -0
- package/src/components/more-menu/more-menu.styles.ts +50 -0
- package/src/components/more-menu/more-menu.ts +75 -0
- package/src/components/multi-select/multi-select.styles.ts +27 -0
- package/src/components/multi-select/multi-select.ts +702 -0
- package/src/components/number-input/number-format.ts +129 -0
- package/src/components/number-input/number-input.styles.ts +108 -0
- package/src/components/number-input/number-input.ts +583 -0
- package/src/components/outline/outline.styles.ts +92 -0
- package/src/components/outline/outline.ts +356 -0
- package/src/components/overflow-list/overflow-list.styles.ts +112 -0
- package/src/components/overflow-list/overflow-list.ts +243 -0
- package/src/components/pagination/pagination.ts +2 -2
- package/src/components/radio-group/radio-group.ts +11 -3
- package/src/components/radio-group/radio.ts +18 -7
- package/src/components/radio-list/radio-list.styles.ts +81 -0
- package/src/components/radio-list/radio-list.ts +38 -0
- package/src/components/resize-handle/resize-handle.ts +405 -0
- package/src/components/scroll-area/scroll-area.ts +214 -0
- package/src/components/section/section.ts +115 -0
- package/src/components/segmented-control/segmented-control.styles.ts +149 -0
- package/src/components/segmented-control/segmented-control.ts +225 -0
- package/src/components/selectable-card/selectable-card.styles.ts +166 -0
- package/src/components/selectable-card/selectable-card.ts +144 -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 +158 -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 +45 -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 +446 -0
- package/src/components/side-nav/side-nav.ts +472 -0
- package/src/components/stack/stack.ts +152 -0
- package/src/components/status-dot/status-dot.ts +158 -0
- package/src/components/stepper/stepper.styles.ts +221 -0
- package/src/components/stepper/stepper.ts +300 -0
- package/src/components/tab-menu/tab-menu.styles.ts +127 -0
- package/src/components/tab-menu/tab-menu.ts +75 -0
- package/src/components/table/sort.ts +45 -0
- package/src/components/table/table.styles.ts +202 -0
- package/src/components/table/table.ts +405 -23
- package/src/components/text/text.styles.ts +107 -0
- package/src/components/text/text.ts +103 -0
- package/src/components/thumbnail/thumbnail.ts +234 -0
- package/src/components/time-input/time-input.ts +347 -0
- package/src/components/timer/timer.styles.ts +34 -0
- package/src/components/timer/timer.ts +255 -0
- package/src/components/timestamp/timestamp.ts +262 -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 +131 -0
- package/src/components/tokenizer/tokenizer.styles.ts +122 -0
- package/src/components/tokenizer/tokenizer.ts +817 -0
- package/src/components/toolbar/toolbar.ts +176 -0
- package/src/components/top-nav/top-nav.styles.ts +271 -0
- package/src/components/top-nav/top-nav.ts +296 -0
- package/src/components/tree-list/tree-list.styles.ts +172 -0
- package/src/components/tree-list/tree-list.ts +580 -0
- package/src/components/typeahead/typeahead.ts +95 -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 +77 -0
- package/src/info-tip.ts +9 -0
- package/src/input-group.ts +9 -0
- package/src/internal/autoload.ts +93 -0
- package/src/kbd.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/number-input.ts +9 -0
- package/src/outline.ts +9 -0
- package/src/overflow-list.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/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/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/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
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
|
|
3
|
+
/** Shadow styles for `und-carousel`. */
|
|
4
|
+
export const carouselStyles = css`
|
|
5
|
+
@layer und.components {
|
|
6
|
+
:host {
|
|
7
|
+
display: block;
|
|
8
|
+
color: var(--und-fg-default, #1b1d22);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:host([hidden]) {
|
|
12
|
+
display: none;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.viewport {
|
|
16
|
+
position: relative;
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
border-radius: var(--und-carousel-radius, var(--und-radius-control, 0.5rem));
|
|
19
|
+
touch-action: pan-y pinch-zoom;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
::slotted([hidden]) {
|
|
23
|
+
display: none !important;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
::slotted([data-und-fade]) {
|
|
27
|
+
animation: und-carousel-in var(--und-duration-fast, 200ms) ease-out;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@keyframes und-carousel-in {
|
|
31
|
+
from {
|
|
32
|
+
opacity: 0;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.controls {
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-wrap: wrap;
|
|
39
|
+
gap: var(--und-carousel-controls-gap, 0.5rem);
|
|
40
|
+
align-items: center;
|
|
41
|
+
justify-content: center;
|
|
42
|
+
margin-block-start: var(--und-carousel-controls-margin, 0.75rem);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.rotation {
|
|
46
|
+
margin-block-end: var(--und-carousel-controls-margin, 0.75rem);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.rotation:not(.has-rotation) {
|
|
50
|
+
display: none;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.picker {
|
|
54
|
+
display: flex;
|
|
55
|
+
flex-wrap: wrap;
|
|
56
|
+
gap: 0.25rem;
|
|
57
|
+
align-items: center;
|
|
58
|
+
justify-content: center;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
button {
|
|
62
|
+
box-sizing: border-box;
|
|
63
|
+
display: inline-flex;
|
|
64
|
+
align-items: center;
|
|
65
|
+
justify-content: center;
|
|
66
|
+
min-inline-size: var(--und-target-min, 24px);
|
|
67
|
+
min-block-size: var(--und-target-min, 24px);
|
|
68
|
+
margin: 0;
|
|
69
|
+
padding: 0;
|
|
70
|
+
border: 0;
|
|
71
|
+
background: transparent;
|
|
72
|
+
color: inherit;
|
|
73
|
+
font: inherit;
|
|
74
|
+
cursor: pointer;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
button:focus-visible {
|
|
78
|
+
outline: var(--und-focus-ring-width, 2px) solid var(--und-focus-ring-color, #1f4fd1);
|
|
79
|
+
outline-offset: var(--und-focus-ring-offset, 2px);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.step,
|
|
83
|
+
.rotate {
|
|
84
|
+
border: var(--und-border-width, 1px) solid var(--und-border-default, #b9bdc7);
|
|
85
|
+
border-radius: 50%;
|
|
86
|
+
background: var(--und-bg-surface, #fff);
|
|
87
|
+
inline-size: var(--und-carousel-button-size, 2.25rem);
|
|
88
|
+
block-size: var(--und-carousel-button-size, 2.25rem);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.step:hover:not([aria-disabled='true']),
|
|
92
|
+
.rotate:hover {
|
|
93
|
+
background: var(--und-bg-muted, #eceef2);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.step[aria-disabled='true'] {
|
|
97
|
+
color: var(--und-fg-muted, #4a5059);
|
|
98
|
+
cursor: not-allowed;
|
|
99
|
+
opacity: var(--und-disabled-opacity, 0.5);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.step svg,
|
|
103
|
+
.rotate svg {
|
|
104
|
+
inline-size: 1.25rem;
|
|
105
|
+
block-size: 1.25rem;
|
|
106
|
+
fill: none;
|
|
107
|
+
stroke: currentcolor;
|
|
108
|
+
stroke-linecap: round;
|
|
109
|
+
stroke-linejoin: round;
|
|
110
|
+
stroke-width: 2;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.rotate svg .fill {
|
|
114
|
+
fill: currentcolor;
|
|
115
|
+
stroke: none;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.step:dir(rtl) svg {
|
|
119
|
+
transform: scaleX(-1);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.dot {
|
|
123
|
+
position: relative;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.dot::before {
|
|
127
|
+
box-sizing: border-box;
|
|
128
|
+
inline-size: var(--und-carousel-dot-size, 0.75rem);
|
|
129
|
+
block-size: var(--und-carousel-dot-size, 0.75rem);
|
|
130
|
+
border: 2px solid var(--und-accent-solid, #4a45d1);
|
|
131
|
+
border-radius: 50%;
|
|
132
|
+
content: '';
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.dot[aria-selected='true']::before,
|
|
136
|
+
.dot[aria-current='true']::before {
|
|
137
|
+
background: var(--und-accent-solid, #4a45d1);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
@media (prefers-reduced-motion: reduce) {
|
|
141
|
+
::slotted([data-und-fade]) {
|
|
142
|
+
animation: none;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
@media (pointer: coarse) {
|
|
147
|
+
button {
|
|
148
|
+
min-inline-size: var(--und-target-min-coarse, 44px);
|
|
149
|
+
min-block-size: var(--und-target-min-coarse, 44px);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
@media (forced-colors: active) {
|
|
154
|
+
.step,
|
|
155
|
+
.rotate {
|
|
156
|
+
border-color: ButtonText;
|
|
157
|
+
background: ButtonFace;
|
|
158
|
+
color: ButtonText;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.dot::before {
|
|
162
|
+
border-color: ButtonText;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.dot[aria-selected='true']::before,
|
|
166
|
+
.dot[aria-current='true']::before {
|
|
167
|
+
background: Highlight;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
`;
|
|
@@ -0,0 +1,441 @@
|
|
|
1
|
+
import { html, nothing, svg, type PropertyValues, type TemplateResult } from 'lit';
|
|
2
|
+
import { UndElement } from '../../base/UndElement.js';
|
|
3
|
+
import { LocaleDirController } from '../../controllers/locale-dir.js';
|
|
4
|
+
import { isServer } from '../../utils/ssr-safe.js';
|
|
5
|
+
import { carouselStyles } from './carousel.styles.js';
|
|
6
|
+
|
|
7
|
+
export type CarouselPicker = 'tabs' | 'buttons' | 'none';
|
|
8
|
+
|
|
9
|
+
export interface CarouselChangeDetail {
|
|
10
|
+
index: number;
|
|
11
|
+
count: number;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/** Horizontal distance (px) a touch must travel to count as a swipe. */
|
|
15
|
+
const SWIPE_DISTANCE = 48;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* A carousel after the WAI-ARIA Authoring Practices pattern. Each direct child
|
|
19
|
+
* is one slide; only the current slide is visible. The host is a `region` with
|
|
20
|
+
* `aria-roledescription="carousel"`, every slide is a `group` (or `tabpanel`
|
|
21
|
+
* with the tab picker) with `aria-roledescription="slide"` and a label such as
|
|
22
|
+
* "2 of 5". Previous and next buttons and a slide picker (tabs by default)
|
|
23
|
+
* move between slides; touch users can swipe.
|
|
24
|
+
*
|
|
25
|
+
* Automatic rotation is OFF by default. With `autoplay` it shows a
|
|
26
|
+
* start/stop button, stops when the pointer is over the carousel, stops for
|
|
27
|
+
* good when keyboard focus enters it (until the reader presses start), does
|
|
28
|
+
* not start under `prefers-reduced-motion`, and makes the slide area
|
|
29
|
+
* `aria-live="off"` while rotating (`polite` otherwise).
|
|
30
|
+
*
|
|
31
|
+
* @summary Slides with previous/next, a slide picker, swipe and optional, pausable rotation.
|
|
32
|
+
* @tag und-carousel
|
|
33
|
+
*
|
|
34
|
+
* @slot - The slides.
|
|
35
|
+
*
|
|
36
|
+
* @fires {CustomEvent<{ index: number, count: number }>} und-slide-change - The current slide changed.
|
|
37
|
+
*
|
|
38
|
+
* @csspart viewport - The slide area.
|
|
39
|
+
* @csspart controls - The row with previous, picker and next.
|
|
40
|
+
* @csspart rotation - The row with the start/stop rotation button.
|
|
41
|
+
* @csspart previous - The previous button.
|
|
42
|
+
* @csspart next - The next button.
|
|
43
|
+
* @csspart picker - The slide picker.
|
|
44
|
+
* @csspart dot - One picker button.
|
|
45
|
+
*
|
|
46
|
+
* @cssprop [--und-carousel-radius] - Corner radius of the slide area.
|
|
47
|
+
* @cssprop [--und-carousel-button-size] - Size of the round buttons.
|
|
48
|
+
* @cssprop [--und-carousel-dot-size] - Size of the picker dots.
|
|
49
|
+
*/
|
|
50
|
+
export class UndCarousel extends UndElement {
|
|
51
|
+
static override tagName = 'und-carousel';
|
|
52
|
+
static override styles = carouselStyles;
|
|
53
|
+
|
|
54
|
+
static override properties = {
|
|
55
|
+
index: { type: Number, reflect: true },
|
|
56
|
+
label: {},
|
|
57
|
+
picker: { reflect: true },
|
|
58
|
+
loop: { type: Boolean, reflect: true },
|
|
59
|
+
autoplay: { type: Boolean, reflect: true },
|
|
60
|
+
interval: { type: Number },
|
|
61
|
+
previousLabel: { attribute: 'previous-label' },
|
|
62
|
+
nextLabel: { attribute: 'next-label' },
|
|
63
|
+
pickerLabel: { attribute: 'picker-label' },
|
|
64
|
+
pickLabel: { attribute: 'pick-label' },
|
|
65
|
+
slideLabel: { attribute: 'slide-label' },
|
|
66
|
+
playLabel: { attribute: 'play-label' },
|
|
67
|
+
pauseLabel: { attribute: 'pause-label' },
|
|
68
|
+
count: { state: true, attribute: false },
|
|
69
|
+
playing: { state: true, attribute: false },
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Zero-based index of the current slide.
|
|
74
|
+
* @attr index
|
|
75
|
+
*/
|
|
76
|
+
declare index: number;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Accessible name of the carousel.
|
|
80
|
+
* @attr label
|
|
81
|
+
*/
|
|
82
|
+
declare label: string;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* How the reader picks a slide: `tabs` (tab list), `buttons` or `none`.
|
|
86
|
+
* @attr picker
|
|
87
|
+
*/
|
|
88
|
+
declare picker: CarouselPicker;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Wrap from the last slide to the first and back.
|
|
92
|
+
* @attr loop
|
|
93
|
+
*/
|
|
94
|
+
declare loop: boolean;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Rotate automatically. Off by default; see the class description.
|
|
98
|
+
* @attr autoplay
|
|
99
|
+
*/
|
|
100
|
+
declare autoplay: boolean;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Milliseconds each slide shows while rotating.
|
|
104
|
+
* @attr interval
|
|
105
|
+
*/
|
|
106
|
+
declare interval: number;
|
|
107
|
+
|
|
108
|
+
/** @attr previous-label */
|
|
109
|
+
declare previousLabel: string;
|
|
110
|
+
/** @attr next-label */
|
|
111
|
+
declare nextLabel: string;
|
|
112
|
+
/** @attr picker-label */
|
|
113
|
+
declare pickerLabel: string;
|
|
114
|
+
/**
|
|
115
|
+
* Name of a picker button; `{n}` is the slide number.
|
|
116
|
+
* @attr pick-label
|
|
117
|
+
*/
|
|
118
|
+
declare pickLabel: string;
|
|
119
|
+
/**
|
|
120
|
+
* Label of each slide; `{n}` is the number and `{total}` the count.
|
|
121
|
+
* @attr slide-label
|
|
122
|
+
*/
|
|
123
|
+
declare slideLabel: string;
|
|
124
|
+
/** @attr play-label */
|
|
125
|
+
declare playLabel: string;
|
|
126
|
+
/** @attr pause-label */
|
|
127
|
+
declare pauseLabel: string;
|
|
128
|
+
|
|
129
|
+
declare private count: number;
|
|
130
|
+
declare private playing: boolean;
|
|
131
|
+
|
|
132
|
+
readonly #locale = new LocaleDirController(this);
|
|
133
|
+
#timer: ReturnType<typeof setTimeout> | undefined;
|
|
134
|
+
#hovering = false;
|
|
135
|
+
#swipeStart: { x: number; y: number; id: number } | undefined;
|
|
136
|
+
|
|
137
|
+
constructor() {
|
|
138
|
+
super();
|
|
139
|
+
this.index = 0;
|
|
140
|
+
this.label = 'Carousel';
|
|
141
|
+
this.picker = 'tabs';
|
|
142
|
+
this.loop = false;
|
|
143
|
+
this.autoplay = false;
|
|
144
|
+
this.interval = 5000;
|
|
145
|
+
this.previousLabel = 'Previous slide';
|
|
146
|
+
this.nextLabel = 'Next slide';
|
|
147
|
+
this.pickerLabel = 'Choose a slide';
|
|
148
|
+
this.pickLabel = 'Go to slide {n}';
|
|
149
|
+
this.slideLabel = '{n} of {total}';
|
|
150
|
+
this.playLabel = 'Start automatic slide show';
|
|
151
|
+
this.pauseLabel = 'Stop automatic slide show';
|
|
152
|
+
this.count = 0;
|
|
153
|
+
this.playing = false;
|
|
154
|
+
this.addEventListener('pointerenter', this.#onEnter);
|
|
155
|
+
this.addEventListener('pointerleave', this.#onLeave);
|
|
156
|
+
this.addEventListener('focusin', this.#onFocusIn);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/** The slides: direct element children. */
|
|
160
|
+
get slides(): HTMLElement[] {
|
|
161
|
+
if (isServer) return [];
|
|
162
|
+
return [...this.children].filter(
|
|
163
|
+
(child): child is HTMLElement => child instanceof HTMLElement && !child.slot,
|
|
164
|
+
);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/** Shows the next slide (wraps only with `loop`). */
|
|
168
|
+
next(): void {
|
|
169
|
+
this.goTo(this.index + 1);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/** Shows the previous slide (wraps only with `loop`). */
|
|
173
|
+
previous(): void {
|
|
174
|
+
this.goTo(this.index - 1);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/** Shows slide `index` (zero-based). Wraps when `loop` is set. */
|
|
178
|
+
goTo(index: number): void {
|
|
179
|
+
const total = this.slides.length;
|
|
180
|
+
if (total === 0) return;
|
|
181
|
+
const wrapped = this.loop || this.autoplay ? (index + total) % total : index;
|
|
182
|
+
this.index = Math.min(Math.max(wrapped, 0), total - 1);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/** Starts automatic rotation (needs `autoplay`, ignores reduced motion when called). */
|
|
186
|
+
play(): void {
|
|
187
|
+
this.playing = true;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/** Stops automatic rotation. */
|
|
191
|
+
pause(): void {
|
|
192
|
+
this.playing = false;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
override connectedCallback(): void {
|
|
196
|
+
super.connectedCallback();
|
|
197
|
+
this.setAttribute('role', 'region');
|
|
198
|
+
this.setAttribute('aria-roledescription', 'carousel');
|
|
199
|
+
this.playing = this.autoplay && !this.#reducedMotion();
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
override disconnectedCallback(): void {
|
|
203
|
+
super.disconnectedCallback();
|
|
204
|
+
clearTimeout(this.#timer);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
#reducedMotion(): boolean {
|
|
208
|
+
return !isServer && globalThis.matchMedia('(prefers-reduced-motion: reduce)').matches;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
#onEnter = (): void => {
|
|
212
|
+
this.#hovering = true;
|
|
213
|
+
this.#schedule();
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
#onLeave = (): void => {
|
|
217
|
+
this.#hovering = false;
|
|
218
|
+
this.#schedule();
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
/** Keyboard focus stops rotation until the reader asks for it again. */
|
|
222
|
+
#onFocusIn = (event: FocusEvent): void => {
|
|
223
|
+
const origin = event.composedPath()[0];
|
|
224
|
+
if (this.playing && origin instanceof Element && origin.matches(':focus-visible')) {
|
|
225
|
+
this.playing = false;
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
#schedule(): void {
|
|
230
|
+
clearTimeout(this.#timer);
|
|
231
|
+
if (isServer || !this.autoplay || !this.playing || this.#hovering) return;
|
|
232
|
+
if (this.slides.length < 2) return;
|
|
233
|
+
this.#timer = setTimeout(
|
|
234
|
+
() => {
|
|
235
|
+
this.next();
|
|
236
|
+
},
|
|
237
|
+
Math.max(1000, this.interval),
|
|
238
|
+
);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
#syncSlides(updateCount = false, fade = false): void {
|
|
242
|
+
const slides = this.slides;
|
|
243
|
+
const total = slides.length;
|
|
244
|
+
const tabs = this.picker === 'tabs';
|
|
245
|
+
slides.forEach((slide, i) => {
|
|
246
|
+
const active = i === this.index;
|
|
247
|
+
slide.hidden = !active;
|
|
248
|
+
slide.toggleAttribute('data-und-active', active);
|
|
249
|
+
// Fade only when the slide changes, never on first render (contrast checks, no flash).
|
|
250
|
+
slide.toggleAttribute('data-und-fade', active && fade);
|
|
251
|
+
slide.toggleAttribute('inert', !active);
|
|
252
|
+
slide.setAttribute('role', tabs ? 'tabpanel' : 'group');
|
|
253
|
+
slide.setAttribute('aria-roledescription', 'slide');
|
|
254
|
+
slide.setAttribute(
|
|
255
|
+
'aria-label',
|
|
256
|
+
this.slideLabel.replaceAll('{n}', String(i + 1)).replaceAll('{total}', String(total)),
|
|
257
|
+
);
|
|
258
|
+
});
|
|
259
|
+
if (updateCount && this.count !== total) this.count = total;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
protected override willUpdate(changed: PropertyValues<this>): void {
|
|
263
|
+
if (changed.has('autoplay')) {
|
|
264
|
+
this.playing = this.autoplay && !this.#reducedMotion();
|
|
265
|
+
}
|
|
266
|
+
const total = this.slides.length;
|
|
267
|
+
if (total > 0 && (this.index < 0 || this.index >= total || !Number.isFinite(this.index))) {
|
|
268
|
+
this.index = Number.isFinite(this.index) ? Math.min(Math.max(this.index, 0), total - 1) : 0;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
protected override updated(changed: PropertyValues<this>): void {
|
|
273
|
+
const total = this.slides.length;
|
|
274
|
+
this.#syncSlides(false, changed.has('index') && changed.get('index') !== undefined);
|
|
275
|
+
this.setAttribute('aria-label', this.label);
|
|
276
|
+
if (changed.has('index') && changed.get('index') !== undefined) {
|
|
277
|
+
this.emit<CarouselChangeDetail>('und-slide-change', { index: this.index, count: total });
|
|
278
|
+
}
|
|
279
|
+
this.#schedule();
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
/* ------------------------------------------------------------- swipe */
|
|
283
|
+
|
|
284
|
+
#onPointerDown = (event: PointerEvent): void => {
|
|
285
|
+
if (event.pointerType === 'mouse' || !event.isPrimary) return;
|
|
286
|
+
this.#swipeStart = { x: event.clientX, y: event.clientY, id: event.pointerId };
|
|
287
|
+
};
|
|
288
|
+
|
|
289
|
+
#onPointerUp = (event: PointerEvent): void => {
|
|
290
|
+
const start = this.#swipeStart;
|
|
291
|
+
this.#swipeStart = undefined;
|
|
292
|
+
if (!start || start.id !== event.pointerId) return;
|
|
293
|
+
const dx = event.clientX - start.x;
|
|
294
|
+
const dy = event.clientY - start.y;
|
|
295
|
+
if (Math.abs(dx) < SWIPE_DISTANCE || Math.abs(dx) < Math.abs(dy) * 1.5) return;
|
|
296
|
+
// Swiping toward the start edge reveals the next slide.
|
|
297
|
+
const forward = this.#locale.isRtl ? dx > 0 : dx < 0;
|
|
298
|
+
if (forward) this.next();
|
|
299
|
+
else this.previous();
|
|
300
|
+
};
|
|
301
|
+
|
|
302
|
+
#onPointerCancel = (): void => {
|
|
303
|
+
this.#swipeStart = undefined;
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
/* --------------------------------------------------------- keyboard */
|
|
307
|
+
|
|
308
|
+
#onTabKeydown = (event: KeyboardEvent): void => {
|
|
309
|
+
if (event.altKey || event.ctrlKey || event.metaKey) return;
|
|
310
|
+
const rtl = this.#locale.isRtl;
|
|
311
|
+
const total = this.slides.length;
|
|
312
|
+
let target: number;
|
|
313
|
+
if (event.key === 'ArrowRight') target = this.index + (rtl ? -1 : 1);
|
|
314
|
+
else if (event.key === 'ArrowLeft') target = this.index + (rtl ? 1 : -1);
|
|
315
|
+
else if (event.key === 'Home') target = 0;
|
|
316
|
+
else if (event.key === 'End') target = total - 1;
|
|
317
|
+
else return;
|
|
318
|
+
event.preventDefault();
|
|
319
|
+
this.goTo((target + total) % total);
|
|
320
|
+
void this.updateComplete.then(() => {
|
|
321
|
+
this.renderRoot.querySelector<HTMLElement>('[role="tab"][tabindex="0"]')?.focus();
|
|
322
|
+
});
|
|
323
|
+
};
|
|
324
|
+
|
|
325
|
+
#step(direction: -1 | 1): void {
|
|
326
|
+
if (direction === 1) this.next();
|
|
327
|
+
else this.previous();
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
#canStep(direction: -1 | 1): boolean {
|
|
331
|
+
if (this.loop || this.autoplay) return this.slides.length > 1;
|
|
332
|
+
const target = this.index + direction;
|
|
333
|
+
return target >= 0 && target < this.slides.length;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
#number(n: number): string {
|
|
337
|
+
try {
|
|
338
|
+
return new Intl.NumberFormat(this.#locale.lang || undefined).format(n);
|
|
339
|
+
} catch {
|
|
340
|
+
return String(n);
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
#renderPicker(total: number): TemplateResult | typeof nothing {
|
|
345
|
+
if (this.picker === 'none' || total < 2) return nothing;
|
|
346
|
+
const dots = Array.from({ length: total }, (_, i) => i);
|
|
347
|
+
const name = (i: number): string => this.pickLabel.replaceAll('{n}', this.#number(i + 1));
|
|
348
|
+
return this.picker === 'tabs'
|
|
349
|
+
? html`<div
|
|
350
|
+
class="picker"
|
|
351
|
+
part="picker"
|
|
352
|
+
role="tablist"
|
|
353
|
+
aria-label=${this.pickerLabel}
|
|
354
|
+
@keydown=${this.#onTabKeydown}
|
|
355
|
+
>
|
|
356
|
+
${dots.map(
|
|
357
|
+
(i) =>
|
|
358
|
+
html`<button
|
|
359
|
+
class="dot"
|
|
360
|
+
part="dot"
|
|
361
|
+
type="button"
|
|
362
|
+
role="tab"
|
|
363
|
+
aria-label=${name(i)}
|
|
364
|
+
aria-selected=${i === this.index ? 'true' : 'false'}
|
|
365
|
+
tabindex=${i === this.index ? '0' : '-1'}
|
|
366
|
+
@click=${() => this.goTo(i)}
|
|
367
|
+
></button>`,
|
|
368
|
+
)}
|
|
369
|
+
</div>`
|
|
370
|
+
: html`<div class="picker" part="picker" role="group" aria-label=${this.pickerLabel}>
|
|
371
|
+
${dots.map(
|
|
372
|
+
(i) =>
|
|
373
|
+
html`<button
|
|
374
|
+
class="dot"
|
|
375
|
+
part="dot"
|
|
376
|
+
type="button"
|
|
377
|
+
aria-label=${name(i)}
|
|
378
|
+
aria-current=${i === this.index ? 'true' : 'false'}
|
|
379
|
+
@click=${() => this.goTo(i)}
|
|
380
|
+
></button>`,
|
|
381
|
+
)}
|
|
382
|
+
</div>`;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
protected override render(): TemplateResult {
|
|
386
|
+
const total = this.slides.length;
|
|
387
|
+
const rotating = this.autoplay && this.playing;
|
|
388
|
+
const arrow = (direction: -1 | 1, label: string): TemplateResult =>
|
|
389
|
+
html`<button
|
|
390
|
+
class="step"
|
|
391
|
+
part=${direction === -1 ? 'previous' : 'next'}
|
|
392
|
+
type="button"
|
|
393
|
+
aria-label=${label}
|
|
394
|
+
aria-disabled=${this.#canStep(direction) ? nothing : 'true'}
|
|
395
|
+
@click=${() => {
|
|
396
|
+
if (this.#canStep(direction)) this.#step(direction);
|
|
397
|
+
}}
|
|
398
|
+
>
|
|
399
|
+
${
|
|
400
|
+
direction === -1
|
|
401
|
+
? svg`<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M15 6l-6 6 6 6"></path></svg>`
|
|
402
|
+
: svg`<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M9 6l6 6-6 6"></path></svg>`
|
|
403
|
+
}
|
|
404
|
+
</button>`;
|
|
405
|
+
return html`<div class="rotation ${this.autoplay ? 'has-rotation' : ''}" part="rotation">
|
|
406
|
+
<button
|
|
407
|
+
class="rotate"
|
|
408
|
+
type="button"
|
|
409
|
+
aria-label=${rotating ? this.pauseLabel : this.playLabel}
|
|
410
|
+
@click=${() => (this.playing = !this.playing)}
|
|
411
|
+
>
|
|
412
|
+
${
|
|
413
|
+
rotating
|
|
414
|
+
? svg`<svg viewBox="0 0 24 24" aria-hidden="true"><rect class="fill" x="6" y="5" width="4" height="14" rx="1"></rect><rect class="fill" x="14" y="5" width="4" height="14" rx="1"></rect></svg>`
|
|
415
|
+
: svg`<svg viewBox="0 0 24 24" aria-hidden="true"><path class="fill" d="M8 5v14l11-7z"></path></svg>`
|
|
416
|
+
}
|
|
417
|
+
</button>
|
|
418
|
+
</div>
|
|
419
|
+
<div
|
|
420
|
+
class="viewport"
|
|
421
|
+
part="viewport"
|
|
422
|
+
aria-live=${rotating ? 'off' : 'polite'}
|
|
423
|
+
aria-atomic="false"
|
|
424
|
+
@pointerdown=${this.#onPointerDown}
|
|
425
|
+
@pointerup=${this.#onPointerUp}
|
|
426
|
+
@pointercancel=${this.#onPointerCancel}
|
|
427
|
+
>
|
|
428
|
+
<slot @slotchange=${() => this.#syncSlides(true)}></slot>
|
|
429
|
+
</div>
|
|
430
|
+
<div class="controls" part="controls">
|
|
431
|
+
${total > 1 ? arrow(-1, this.previousLabel) : nothing} ${this.#renderPicker(total)}
|
|
432
|
+
${total > 1 ? arrow(1, this.nextLabel) : nothing}
|
|
433
|
+
</div>`;
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
declare global {
|
|
438
|
+
interface HTMLElementTagNameMap {
|
|
439
|
+
'und-carousel': UndCarousel;
|
|
440
|
+
}
|
|
441
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { css, html, type TemplateResult } from 'lit';
|
|
2
|
+
import { UndElement } from '../../base/UndElement.js';
|
|
3
|
+
|
|
4
|
+
export type CenterMax = 'prose' | 'content' | 'wide' | 'none';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Centers a column of content horizontally with a readable maximum width
|
|
8
|
+
* and side gutters. Pure layout: no role, no semantics.
|
|
9
|
+
*
|
|
10
|
+
* @summary Centers content with a maximum width and gutters.
|
|
11
|
+
* @tag und-center
|
|
12
|
+
*
|
|
13
|
+
* @slot - The content to center.
|
|
14
|
+
*
|
|
15
|
+
* @cssprop [--und-center-max] - Maximum inline size (overrides `max`).
|
|
16
|
+
* @cssprop [--und-center-gutter] - Inline padding on each side.
|
|
17
|
+
*/
|
|
18
|
+
export class UndCenter extends UndElement {
|
|
19
|
+
static override tagName = 'und-center';
|
|
20
|
+
|
|
21
|
+
static override properties = {
|
|
22
|
+
max: { reflect: true },
|
|
23
|
+
intrinsic: { type: Boolean, reflect: true },
|
|
24
|
+
text: { type: Boolean, reflect: true },
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
static override styles = css`
|
|
28
|
+
@layer und.components {
|
|
29
|
+
:host {
|
|
30
|
+
display: block;
|
|
31
|
+
box-sizing: border-box;
|
|
32
|
+
inline-size: 100%;
|
|
33
|
+
max-inline-size: var(--und-center-max, var(--und-container-content, 75rem));
|
|
34
|
+
margin-inline: auto;
|
|
35
|
+
padding-inline: var(--und-center-gutter, var(--und-space-4, 1rem));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
:host([hidden]) {
|
|
39
|
+
display: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:host([max='prose']) {
|
|
43
|
+
max-inline-size: var(--und-center-max, var(--und-container-prose, 68ch));
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
:host([max='wide']) {
|
|
47
|
+
max-inline-size: var(--und-center-max, var(--und-container-wide, 90rem));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:host([max='none']) {
|
|
51
|
+
max-inline-size: var(--und-center-max, none);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
:host([intrinsic]) {
|
|
55
|
+
display: flex;
|
|
56
|
+
flex-direction: column;
|
|
57
|
+
align-items: center;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
:host([text]) {
|
|
61
|
+
text-align: center;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
`;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Maximum width: `content` (default), `prose`, `wide`, or `none`.
|
|
68
|
+
* @attr max
|
|
69
|
+
*/
|
|
70
|
+
declare max: CenterMax | undefined;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Centers each child by its own width instead of stretching it.
|
|
74
|
+
* @attr intrinsic
|
|
75
|
+
*/
|
|
76
|
+
declare intrinsic: boolean;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Centers the text too.
|
|
80
|
+
* @attr text
|
|
81
|
+
*/
|
|
82
|
+
declare text: boolean;
|
|
83
|
+
|
|
84
|
+
constructor() {
|
|
85
|
+
super();
|
|
86
|
+
this.intrinsic = false;
|
|
87
|
+
this.text = false;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
protected override render(): TemplateResult {
|
|
91
|
+
return html`<slot></slot>`;
|
|
92
|
+
}
|
|
93
|
+
}
|