@und-ui/core 0.2.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 +1 -1
- package/custom-elements.json +27520 -14916
- package/dist/all.d.ts +10 -0
- package/dist/all.d.ts.map +1 -1
- package/dist/all.js +11 -0
- package/dist/all.js.map +1 -1
- package/dist/autoloader.js +12 -0
- package/dist/cdn/accordion.js +1 -1
- package/dist/cdn/alert.js +193 -156
- package/dist/cdn/all.js +17968 -12438
- package/dist/cdn/app-shell.js +140 -138
- package/dist/cdn/aspect-ratio.js +82 -62
- package/dist/cdn/autoloader.js +1 -1
- package/dist/cdn/avatar-group.js +86 -73
- package/dist/cdn/avatar.js +1 -1
- package/dist/cdn/badge.js +241 -137
- package/dist/cdn/banner.js +235 -188
- package/dist/cdn/blockquote.js +48 -45
- package/dist/cdn/bottom-sheet.js +77 -76
- package/dist/cdn/breadcrumb-item.js +1 -1
- package/dist/cdn/breadcrumb.js +1 -1
- package/dist/cdn/button-group.js +1 -1
- package/dist/cdn/button.js +1 -1
- package/dist/cdn/calendar.js +1 -1
- package/dist/cdn/card.js +1 -1
- package/dist/cdn/carousel.js +359 -195
- package/dist/cdn/center.js +69 -38
- package/dist/cdn/chat-composer.js +371 -230
- package/dist/cdn/chat-layout.js +242 -122
- package/dist/cdn/chat-message.js +615 -284
- package/dist/cdn/checkbox-list.js +129 -117
- package/dist/cdn/checkbox.js +1 -1
- package/dist/cdn/chunks/35H42XYK.js +193 -0
- package/dist/cdn/chunks/{W3C5YK34.js → 4LZZFW3X.js} +22 -22
- 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/A2MFQ7MV.js +386 -0
- package/dist/cdn/chunks/APG264XI.js +278 -0
- package/dist/cdn/chunks/{PYS73CGQ.js → AQKDJ33E.js} +1 -1
- package/dist/cdn/chunks/AXXUTP2F.js +97 -0
- package/dist/cdn/chunks/AYKEMR33.js +223 -0
- package/dist/cdn/chunks/{GVFRCF4L.js → BKDEXOWH.js} +1 -1
- 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/DG7YPFFO.js +229 -0
- package/dist/cdn/chunks/{FVWYLBE6.js → DWHDSDOI.js} +1 -1
- package/dist/cdn/chunks/DYQMVGAC.js +244 -0
- package/dist/cdn/chunks/ENXZIAQC.js +202 -0
- package/dist/cdn/chunks/{2JGSCE32.js → FB4JU25W.js} +1 -1
- package/dist/cdn/chunks/FFVAJNZY.js +258 -0
- package/dist/cdn/chunks/FSHM6LRG.js +141 -0
- package/dist/cdn/chunks/GABTGDAV.js +9 -0
- package/dist/cdn/chunks/HCAU6QLT.js +195 -0
- package/dist/cdn/chunks/IJ33CPAJ.js +143 -0
- package/dist/cdn/chunks/IZSGJ2E7.js +1 -0
- package/dist/cdn/chunks/JLEESVNU.js +47 -0
- package/dist/cdn/chunks/L7GXMZPH.js +124 -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/OPNTVYNE.js +491 -0
- package/dist/cdn/chunks/ORDFN4FF.js +180 -0
- package/dist/cdn/chunks/QC64VL54.js +1 -0
- package/dist/cdn/chunks/{NBCCLQGT.js → QI5KLKPP.js} +1 -1
- 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/UOJCBKNF.js +1 -0
- package/dist/cdn/chunks/USD6Y75F.js +105 -0
- package/dist/cdn/chunks/UYQK4UCY.js +120 -0
- package/dist/cdn/chunks/{MQR6SWE3.js → VOHVT25O.js} +1 -1
- package/dist/cdn/chunks/VQPJF5GN.js +265 -0
- package/dist/cdn/chunks/{JTCY7VA6.js → VSCNFM2U.js} +1 -1
- package/dist/cdn/chunks/W7LU44VJ.js +245 -0
- package/dist/cdn/chunks/X4ES62AQ.js +1 -0
- package/dist/cdn/chunks/X4WMYGUB.js +114 -0
- package/dist/cdn/chunks/{7ZRZJJTR.js → XJPF373C.js} +1 -1
- package/dist/cdn/chunks/Z7SOJPLB.js +248 -0
- package/dist/cdn/chunks/{IYPIGVNK.js → ZMEFU637.js} +1 -1
- package/dist/cdn/chunks/ZTM5JMU2.js +218 -0
- package/dist/cdn/citation.js +158 -90
- package/dist/cdn/clickable-card.js +34 -30
- package/dist/cdn/code-block.js +370 -205
- package/dist/cdn/code.js +43 -28
- package/dist/cdn/collapsible.js +10 -10
- package/dist/cdn/combobox.js +1 -1
- package/dist/cdn/command-palette.js +178 -170
- package/dist/cdn/context-menu.js +14 -14
- package/dist/cdn/date-input.js +1 -1
- package/dist/cdn/date-range-input.js +1 -1
- package/dist/cdn/date-time-input.js +8 -8
- package/dist/cdn/dialog.js +1 -1
- package/dist/cdn/divider.js +75 -61
- package/dist/cdn/drawer.js +1 -1
- package/dist/cdn/empty-state.js +124 -90
- package/dist/cdn/file-input.js +221 -190
- package/dist/cdn/form-field.js +16 -13
- package/dist/cdn/form-layout.js +97 -66
- package/dist/cdn/grid-item.js +1 -1
- package/dist/cdn/grid.js +108 -61
- package/dist/cdn/heading.js +151 -57
- package/dist/cdn/hover-card.js +9 -7
- package/dist/cdn/icon-button.js +37 -37
- package/dist/cdn/icon.js +139 -48
- package/dist/cdn/indicator.js +166 -0
- package/dist/cdn/info-tip.js +93 -70
- package/dist/cdn/input-group.js +69 -64
- package/dist/cdn/item.js +259 -0
- package/dist/cdn/kbd.js +55 -36
- package/dist/cdn/layout.js +172 -0
- package/dist/cdn/lightbox.js +230 -187
- package/dist/cdn/link.js +135 -135
- package/dist/cdn/list-item.js +1 -1
- package/dist/cdn/list.js +1 -1
- package/dist/cdn/markdown.js +1 -1
- package/dist/cdn/menu-group.js +1 -1
- package/dist/cdn/menu-item.js +1 -1
- package/dist/cdn/menu-separator.js +1 -1
- package/dist/cdn/menu.js +1 -1
- package/dist/cdn/metadata-item.js +1 -1
- package/dist/cdn/metadata-list.js +1 -1
- package/dist/cdn/mobile-nav.js +81 -54
- package/dist/cdn/more-menu.js +52 -48
- package/dist/cdn/multi-select.js +15 -15
- 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 -103
- package/dist/cdn/outline.js +149 -94
- package/dist/cdn/overflow-list.js +112 -109
- package/dist/cdn/pagination.js +198 -156
- package/dist/cdn/popover.js +1 -1
- package/dist/cdn/power-search.js +338 -0
- package/dist/cdn/progress.js +218 -171
- package/dist/cdn/radio-group.js +1 -1
- package/dist/cdn/radio-list.js +80 -76
- package/dist/cdn/radio.js +1 -1
- package/dist/cdn/resize-handle.js +1 -73
- package/dist/cdn/scroll-area.js +86 -70
- package/dist/cdn/section.js +65 -30
- package/dist/cdn/segmented-control-item.js +1 -1
- package/dist/cdn/segmented-control.js +1 -1
- package/dist/cdn/select.js +6 -6
- package/dist/cdn/selectable-card.js +212 -161
- package/dist/cdn/side-nav-heading.js +1 -1
- package/dist/cdn/side-nav-item.js +1 -1
- package/dist/cdn/side-nav-section.js +1 -1
- package/dist/cdn/side-nav.js +1 -1
- package/dist/cdn/skeleton.js +133 -79
- package/dist/cdn/slider.js +204 -182
- package/dist/cdn/snap-paging.js +62 -0
- package/dist/cdn/spinner.js +122 -63
- package/dist/cdn/stack.js +87 -71
- package/dist/cdn/status-dot.js +76 -55
- package/dist/cdn/step.js +1 -1
- package/dist/cdn/stepper.js +1 -1
- package/dist/cdn/swipe-action.js +1 -0
- package/dist/cdn/swipe.js +71 -0
- package/dist/cdn/switch.js +201 -178
- package/dist/cdn/tab-menu.js +143 -120
- package/dist/cdn/tab-panel.js +1 -1
- package/dist/cdn/tab.js +1 -1
- package/dist/cdn/table.js +394 -352
- package/dist/cdn/tabs.js +1 -1
- package/dist/cdn/text-field.js +1 -1
- package/dist/cdn/text.js +201 -100
- package/dist/cdn/textarea.js +174 -102
- package/dist/cdn/thumbnail.js +244 -84
- package/dist/cdn/time-input.js +1 -1
- package/dist/cdn/timer.js +32 -31
- package/dist/cdn/timestamp.js +40 -16
- package/dist/cdn/toast.js +1 -1
- package/dist/cdn/toaster.js +1 -1
- package/dist/cdn/toggle-button-group.js +1 -1
- package/dist/cdn/toggle-button.js +29 -0
- package/dist/cdn/token.js +1 -1
- package/dist/cdn/tokenizer.js +120 -110
- package/dist/cdn/toolbar.js +37 -37
- package/dist/cdn/tooltip.js +73 -50
- package/dist/cdn/top-nav-item.js +1 -1
- package/dist/cdn/top-nav-menu.js +1 -1
- package/dist/cdn/top-nav.js +1 -1
- package/dist/cdn/tree-item.js +1 -1
- package/dist/cdn/tree-list.js +1 -1
- package/dist/cdn/typeahead.js +1 -1
- package/dist/cdn/visually-hidden.js +21 -17
- 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.map +1 -1
- package/dist/components/alert-dialog/alert-dialog.js +6 -4
- package/dist/components/alert-dialog/alert-dialog.js.map +1 -1
- package/dist/components/app-shell/app-shell.d.ts +1 -0
- package/dist/components/app-shell/app-shell.d.ts.map +1 -1
- package/dist/components/app-shell/app-shell.js +122 -118
- package/dist/components/app-shell/app-shell.js.map +1 -1
- package/dist/components/aspect-ratio/aspect-ratio.d.ts +16 -2
- package/dist/components/aspect-ratio/aspect-ratio.d.ts.map +1 -1
- package/dist/components/aspect-ratio/aspect-ratio.js +75 -49
- package/dist/components/aspect-ratio/aspect-ratio.js.map +1 -1
- 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 +36 -3
- package/dist/components/banner/banner.d.ts.map +1 -1
- package/dist/components/banner/banner.js +232 -151
- package/dist/components/banner/banner.js.map +1 -1
- package/dist/components/blockquote/blockquote.d.ts +2 -1
- package/dist/components/blockquote/blockquote.d.ts.map +1 -1
- package/dist/components/blockquote/blockquote.js +41 -36
- package/dist/components/blockquote/blockquote.js.map +1 -1
- package/dist/components/bottom-sheet/bottom-sheet.d.ts +2 -1
- package/dist/components/bottom-sheet/bottom-sheet.d.ts.map +1 -1
- package/dist/components/bottom-sheet/bottom-sheet.js +2 -1
- package/dist/components/bottom-sheet/bottom-sheet.js.map +1 -1
- package/dist/components/bottom-sheet/bottom-sheet.styles.d.ts +4 -3
- package/dist/components/bottom-sheet/bottom-sheet.styles.d.ts.map +1 -1
- package/dist/components/bottom-sheet/bottom-sheet.styles.js +81 -78
- package/dist/components/bottom-sheet/bottom-sheet.styles.js.map +1 -1
- 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.js +60 -60
- package/dist/components/calendar/calendar.d.ts.map +1 -1
- package/dist/components/calendar/calendar.js +10 -1
- package/dist/components/calendar/calendar.js.map +1 -1
- package/dist/components/calendar/calendar.styles.d.ts.map +1 -1
- package/dist/components/calendar/calendar.styles.js +263 -215
- package/dist/components/calendar/calendar.styles.js.map +1 -1
- package/dist/components/card/card.d.ts +18 -3
- package/dist/components/card/card.d.ts.map +1 -1
- package/dist/components/card/card.js +176 -108
- package/dist/components/card/card.js.map +1 -1
- package/dist/components/carousel/carousel.d.ts +72 -8
- package/dist/components/carousel/carousel.d.ts.map +1 -1
- package/dist/components/carousel/carousel.js +212 -27
- package/dist/components/carousel/carousel.js.map +1 -1
- package/dist/components/carousel/carousel.styles.d.ts.map +1 -1
- package/dist/components/carousel/carousel.styles.js +325 -167
- package/dist/components/carousel/carousel.styles.js.map +1 -1
- package/dist/components/center/center.d.ts +88 -0
- package/dist/components/center/center.d.ts.map +1 -1
- package/dist/components/center/center.js +80 -32
- package/dist/components/center/center.js.map +1 -1
- package/dist/components/chat/chat-composer.d.ts +75 -6
- package/dist/components/chat/chat-composer.d.ts.map +1 -1
- package/dist/components/chat/chat-composer.js +111 -38
- package/dist/components/chat/chat-composer.js.map +1 -1
- package/dist/components/chat/chat-composer.styles.d.ts.map +1 -1
- package/dist/components/chat/chat-composer.styles.js +323 -200
- package/dist/components/chat/chat-composer.styles.js.map +1 -1
- 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 +43 -5
- package/dist/components/chat/chat-layout.d.ts.map +1 -1
- package/dist/components/chat/chat-layout.js +110 -27
- package/dist/components/chat/chat-layout.js.map +1 -1
- package/dist/components/chat/chat-layout.styles.d.ts.map +1 -1
- package/dist/components/chat/chat-layout.styles.js +219 -110
- package/dist/components/chat/chat-layout.styles.js.map +1 -1
- package/dist/components/chat/chat-message.d.ts +83 -14
- package/dist/components/chat/chat-message.d.ts.map +1 -1
- package/dist/components/chat/chat-message.js +145 -64
- package/dist/components/chat/chat-message.js.map +1 -1
- package/dist/components/chat/chat-message.styles.d.ts.map +1 -1
- package/dist/components/chat/chat-message.styles.js +565 -245
- package/dist/components/chat/chat-message.styles.js.map +1 -1
- 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.js +15 -15
- package/dist/components/checkbox-list/checkbox-list.styles.d.ts.map +1 -1
- package/dist/components/checkbox-list/checkbox-list.styles.js +110 -98
- package/dist/components/checkbox-list/checkbox-list.styles.js.map +1 -1
- package/dist/components/citation/citation.d.ts +21 -2
- package/dist/components/citation/citation.d.ts.map +1 -1
- package/dist/components/citation/citation.js +165 -79
- package/dist/components/citation/citation.js.map +1 -1
- package/dist/components/clickable-card/clickable-card.d.ts +6 -0
- package/dist/components/clickable-card/clickable-card.d.ts.map +1 -1
- package/dist/components/clickable-card/clickable-card.js +33 -25
- package/dist/components/clickable-card/clickable-card.js.map +1 -1
- package/dist/components/code/code.d.ts +24 -2
- package/dist/components/code/code.d.ts.map +1 -1
- package/dist/components/code/code.js +53 -27
- package/dist/components/code/code.js.map +1 -1
- package/dist/components/code-block/code-block.d.ts +66 -5
- package/dist/components/code-block/code-block.d.ts.map +1 -1
- package/dist/components/code-block/code-block.js +80 -18
- package/dist/components/code-block/code-block.js.map +1 -1
- package/dist/components/code-block/code-block.styles.d.ts.map +1 -1
- package/dist/components/code-block/code-block.styles.js +347 -182
- package/dist/components/code-block/code-block.styles.js.map +1 -1
- package/dist/components/collapsible/collapsible.styles.js +10 -10
- 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 +4 -0
- package/dist/components/command-palette/command-palette.d.ts.map +1 -1
- package/dist/components/command-palette/command-palette.js +3 -0
- package/dist/components/command-palette/command-palette.js.map +1 -1
- package/dist/components/command-palette/command-palette.styles.d.ts.map +1 -1
- package/dist/components/command-palette/command-palette.styles.js +175 -166
- package/dist/components/command-palette/command-palette.styles.js.map +1 -1
- package/dist/components/context-menu/context-menu.styles.js +14 -14
- package/dist/components/date-time-input/date-time-input.js +7 -7
- package/dist/components/dialog/dialog.d.ts +11 -2
- package/dist/components/dialog/dialog.d.ts.map +1 -1
- package/dist/components/dialog/dialog.js +11 -4
- 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 +11 -0
- package/dist/components/empty-state/empty-state.d.ts.map +1 -1
- package/dist/components/empty-state/empty-state.js +114 -76
- package/dist/components/empty-state/empty-state.js.map +1 -1
- package/dist/components/file-input/file-input.styles.d.ts.map +1 -1
- package/dist/components/file-input/file-input.styles.js +220 -189
- package/dist/components/file-input/file-input.styles.js.map +1 -1
- 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 +10 -0
- package/dist/components/form-layout/form-layout.d.ts.map +1 -1
- package/dist/components/form-layout/form-layout.js +1 -0
- package/dist/components/form-layout/form-layout.js.map +1 -1
- package/dist/components/form-layout/form-layout.styles.d.ts.map +1 -1
- package/dist/components/form-layout/form-layout.styles.js +96 -65
- package/dist/components/form-layout/form-layout.styles.js.map +1 -1
- package/dist/components/grid/grid-item.d.ts.map +1 -1
- package/dist/components/grid/grid-item.js +15 -12
- package/dist/components/grid/grid-item.js.map +1 -1
- package/dist/components/grid/grid.d.ts +72 -4
- package/dist/components/grid/grid.d.ts.map +1 -1
- package/dist/components/grid/grid.js +125 -48
- package/dist/components/grid/grid.js.map +1 -1
- package/dist/components/heading/heading.d.ts +69 -8
- package/dist/components/heading/heading.d.ts.map +1 -1
- package/dist/components/heading/heading.js +35 -7
- package/dist/components/heading/heading.js.map +1 -1
- package/dist/components/heading/heading.styles.d.ts +3 -0
- package/dist/components/heading/heading.styles.d.ts.map +1 -1
- package/dist/components/heading/heading.styles.js +154 -56
- package/dist/components/heading/heading.styles.js.map +1 -1
- package/dist/components/hover-card/hover-card.d.ts +7 -0
- package/dist/components/hover-card/hover-card.d.ts.map +1 -1
- package/dist/components/hover-card/hover-card.js +43 -10
- package/dist/components/hover-card/hover-card.js.map +1 -1
- package/dist/components/icon/icon.d.ts +29 -5
- package/dist/components/icon/icon.d.ts.map +1 -1
- package/dist/components/icon/icon.js +135 -39
- package/dist/components/icon/icon.js.map +1 -1
- 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 +9 -0
- package/dist/components/info-tip/info-tip.d.ts.map +1 -1
- package/dist/components/info-tip/info-tip.js +81 -56
- package/dist/components/info-tip/info-tip.js.map +1 -1
- package/dist/components/input-group/input-group.styles.d.ts.map +1 -1
- package/dist/components/input-group/input-group.styles.js +68 -63
- package/dist/components/input-group/input-group.styles.js.map +1 -1
- 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 +27 -6
- package/dist/components/kbd/kbd.d.ts.map +1 -1
- package/dist/components/kbd/kbd.js +146 -39
- package/dist/components/kbd/kbd.js.map +1 -1
- 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 +6 -2
- package/dist/components/lightbox/lightbox.d.ts.map +1 -1
- package/dist/components/lightbox/lightbox.js +6 -2
- package/dist/components/lightbox/lightbox.js.map +1 -1
- package/dist/components/lightbox/lightbox.styles.d.ts +7 -3
- package/dist/components/lightbox/lightbox.styles.d.ts.map +1 -1
- package/dist/components/lightbox/lightbox.styles.js +231 -183
- package/dist/components/lightbox/lightbox.styles.js.map +1 -1
- package/dist/components/link/link.js +116 -116
- package/dist/components/list/list-item.d.ts +76 -4
- package/dist/components/list/list-item.d.ts.map +1 -1
- package/dist/components/list/list-item.js +326 -70
- package/dist/components/list/list-item.js.map +1 -1
- package/dist/components/list/list.d.ts +47 -2
- package/dist/components/list/list.d.ts.map +1 -1
- package/dist/components/list/list.js +66 -14
- package/dist/components/list/list.js.map +1 -1
- 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 +23 -1
- package/dist/components/markdown/markdown.d.ts.map +1 -1
- package/dist/components/markdown/markdown.js +16 -1
- package/dist/components/markdown/markdown.js.map +1 -1
- package/dist/components/markdown/markdown.styles.d.ts +4 -0
- package/dist/components/markdown/markdown.styles.d.ts.map +1 -1
- package/dist/components/markdown/markdown.styles.js +304 -171
- package/dist/components/markdown/markdown.styles.js.map +1 -1
- package/dist/components/markdown/render.d.ts.map +1 -1
- package/dist/components/markdown/render.js +2 -0
- package/dist/components/markdown/render.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.js +6 -6
- package/dist/components/metadata-list/metadata-list.d.ts +40 -3
- package/dist/components/metadata-list/metadata-list.d.ts.map +1 -1
- package/dist/components/metadata-list/metadata-list.js +144 -63
- package/dist/components/metadata-list/metadata-list.js.map +1 -1
- package/dist/components/mobile-nav/mobile-nav.d.ts +3 -1
- package/dist/components/mobile-nav/mobile-nav.d.ts.map +1 -1
- package/dist/components/mobile-nav/mobile-nav.js +4 -1
- package/dist/components/mobile-nav/mobile-nav.js.map +1 -1
- package/dist/components/mobile-nav/mobile-nav.styles.d.ts.map +1 -1
- package/dist/components/mobile-nav/mobile-nav.styles.js +80 -53
- package/dist/components/mobile-nav/mobile-nav.styles.js.map +1 -1
- package/dist/components/more-menu/more-menu.d.ts +3 -0
- package/dist/components/more-menu/more-menu.d.ts.map +1 -1
- package/dist/components/more-menu/more-menu.js +3 -0
- package/dist/components/more-menu/more-menu.js.map +1 -1
- package/dist/components/more-menu/more-menu.styles.d.ts.map +1 -1
- package/dist/components/more-menu/more-menu.styles.js +51 -46
- package/dist/components/more-menu/more-menu.styles.js.map +1 -1
- package/dist/components/multi-select/multi-select.styles.d.ts.map +1 -1
- package/dist/components/multi-select/multi-select.styles.js +17 -16
- package/dist/components/multi-select/multi-select.styles.js.map +1 -1
- 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-input.d.ts +7 -0
- package/dist/components/number-input/number-input.d.ts.map +1 -1
- package/dist/components/number-input/number-input.js +55 -10
- package/dist/components/number-input/number-input.js.map +1 -1
- package/dist/components/number-input/number-input.styles.d.ts.map +1 -1
- package/dist/components/number-input/number-input.styles.js +122 -102
- package/dist/components/number-input/number-input.styles.js.map +1 -1
- package/dist/components/outline/outline.d.ts +12 -4
- package/dist/components/outline/outline.d.ts.map +1 -1
- package/dist/components/outline/outline.js +29 -7
- package/dist/components/outline/outline.js.map +1 -1
- package/dist/components/outline/outline.styles.d.ts +4 -0
- package/dist/components/outline/outline.styles.d.ts.map +1 -1
- package/dist/components/outline/outline.styles.js +144 -84
- package/dist/components/outline/outline.styles.js.map +1 -1
- package/dist/components/overflow-list/overflow-list.d.ts +3 -0
- package/dist/components/overflow-list/overflow-list.d.ts.map +1 -1
- package/dist/components/overflow-list/overflow-list.js +3 -0
- package/dist/components/overflow-list/overflow-list.js.map +1 -1
- package/dist/components/overflow-list/overflow-list.styles.d.ts.map +1 -1
- package/dist/components/overflow-list/overflow-list.styles.js +112 -108
- package/dist/components/overflow-list/overflow-list.styles.js.map +1 -1
- package/dist/components/pagination/pagination.d.ts +45 -0
- package/dist/components/pagination/pagination.d.ts.map +1 -1
- package/dist/components/pagination/pagination.js +46 -9
- 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.js +19 -19
- package/dist/components/radio-group/radio.js +7 -7
- 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.styles.d.ts.map +1 -1
- package/dist/components/radio-list/radio-list.styles.js +79 -75
- package/dist/components/radio-list/radio-list.styles.js.map +1 -1
- package/dist/components/resize-handle/resize-handle.d.ts +12 -1
- package/dist/components/resize-handle/resize-handle.d.ts.map +1 -1
- package/dist/components/resize-handle/resize-handle.js +149 -66
- package/dist/components/resize-handle/resize-handle.js.map +1 -1
- package/dist/components/scroll-area/scroll-area.d.ts +2 -1
- package/dist/components/scroll-area/scroll-area.d.ts.map +1 -1
- package/dist/components/scroll-area/scroll-area.js +77 -59
- package/dist/components/scroll-area/scroll-area.js.map +1 -1
- package/dist/components/section/section.d.ts +81 -3
- package/dist/components/section/section.d.ts.map +1 -1
- package/dist/components/section/section.js +74 -25
- package/dist/components/section/section.js.map +1 -1
- package/dist/components/segmented-control/segmented-control.d.ts.map +1 -1
- package/dist/components/segmented-control/segmented-control.js +70 -68
- package/dist/components/segmented-control/segmented-control.js.map +1 -1
- package/dist/components/segmented-control/segmented-control.styles.d.ts.map +1 -1
- package/dist/components/segmented-control/segmented-control.styles.js +163 -143
- package/dist/components/segmented-control/segmented-control.styles.js.map +1 -1
- 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 +17 -2
- package/dist/components/selectable-card/selectable-card.d.ts.map +1 -1
- package/dist/components/selectable-card/selectable-card.js +8 -2
- package/dist/components/selectable-card/selectable-card.js.map +1 -1
- package/dist/components/selectable-card/selectable-card.styles.d.ts.map +1 -1
- package/dist/components/selectable-card/selectable-card.styles.js +211 -160
- package/dist/components/selectable-card/selectable-card.styles.js.map +1 -1
- 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/date-field.styles.d.ts.map +1 -1
- package/dist/components/shared/date-field.styles.js +183 -152
- package/dist/components/shared/date-field.styles.js.map +1 -1
- package/dist/components/shared/layout.d.ts +21 -2
- package/dist/components/shared/layout.d.ts.map +1 -1
- package/dist/components/shared/layout.js +53 -4
- package/dist/components/shared/layout.js.map +1 -1
- 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/side-nav/side-nav.d.ts +4 -2
- package/dist/components/side-nav/side-nav.d.ts.map +1 -1
- package/dist/components/side-nav/side-nav.js +4 -2
- package/dist/components/side-nav/side-nav.js.map +1 -1
- package/dist/components/side-nav/side-nav.styles.d.ts.map +1 -1
- package/dist/components/side-nav/side-nav.styles.js +425 -431
- package/dist/components/side-nav/side-nav.styles.js.map +1 -1
- 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 +116 -8
- package/dist/components/stack/stack.d.ts.map +1 -1
- package/dist/components/stack/stack.js +130 -58
- package/dist/components/stack/stack.js.map +1 -1
- package/dist/components/status-dot/status-dot.d.ts +25 -2
- package/dist/components/status-dot/status-dot.d.ts.map +1 -1
- package/dist/components/status-dot/status-dot.js +79 -46
- package/dist/components/status-dot/status-dot.js.map +1 -1
- package/dist/components/stepper/stepper.styles.d.ts.map +1 -1
- package/dist/components/stepper/stepper.styles.js +230 -212
- package/dist/components/stepper/stepper.styles.js.map +1 -1
- 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 +4 -0
- package/dist/components/tab-menu/tab-menu.d.ts.map +1 -1
- package/dist/components/tab-menu/tab-menu.js +4 -0
- package/dist/components/tab-menu/tab-menu.js.map +1 -1
- package/dist/components/tab-menu/tab-menu.styles.d.ts.map +1 -1
- package/dist/components/tab-menu/tab-menu.styles.js +142 -118
- package/dist/components/tab-menu/tab-menu.styles.js.map +1 -1
- package/dist/components/table/table.d.ts +58 -2
- package/dist/components/table/table.d.ts.map +1 -1
- package/dist/components/table/table.js +61 -0
- 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 -351
- 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 +51 -2
- package/dist/components/text/text.d.ts.map +1 -1
- package/dist/components/text/text.js +24 -2
- package/dist/components/text/text.js.map +1 -1
- package/dist/components/text/text.styles.d.ts.map +1 -1
- package/dist/components/text/text.styles.js +199 -99
- package/dist/components/text/text.styles.js.map +1 -1
- 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 +58 -0
- package/dist/components/thumbnail/thumbnail.d.ts.map +1 -1
- package/dist/components/thumbnail/thumbnail.js +277 -69
- package/dist/components/thumbnail/thumbnail.js.map +1 -1
- package/dist/components/timer/timer.styles.d.ts.map +1 -1
- package/dist/components/timer/timer.styles.js +32 -30
- package/dist/components/timer/timer.styles.js.map +1 -1
- package/dist/components/timestamp/timestamp.d.ts +24 -1
- package/dist/components/timestamp/timestamp.d.ts.map +1 -1
- package/dist/components/timestamp/timestamp.js +63 -16
- package/dist/components/timestamp/timestamp.js.map +1 -1
- 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.js +1 -1
- package/dist/components/toggle-button-group/toggle-button-group.js.map +1 -1
- package/dist/components/token/token.d.ts +24 -1
- package/dist/components/token/token.d.ts.map +1 -1
- package/dist/components/token/token.js +10 -1
- package/dist/components/token/token.js.map +1 -1
- package/dist/components/token/token.styles.d.ts.map +1 -1
- package/dist/components/token/token.styles.js +110 -110
- package/dist/components/token/token.styles.js.map +1 -1
- package/dist/components/tokenizer/tokenizer.styles.d.ts.map +1 -1
- package/dist/components/tokenizer/tokenizer.styles.js +121 -110
- package/dist/components/tokenizer/tokenizer.styles.js.map +1 -1
- package/dist/components/toolbar/toolbar.d.ts +2 -0
- package/dist/components/toolbar/toolbar.d.ts.map +1 -1
- package/dist/components/toolbar/toolbar.js +35 -32
- package/dist/components/toolbar/toolbar.js.map +1 -1
- 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 +7 -2
- package/dist/components/top-nav/top-nav.d.ts.map +1 -1
- package/dist/components/top-nav/top-nav.js +7 -2
- package/dist/components/top-nav/top-nav.js.map +1 -1
- package/dist/components/top-nav/top-nav.styles.d.ts.map +1 -1
- package/dist/components/top-nav/top-nav.styles.js +266 -248
- package/dist/components/top-nav/top-nav.styles.js.map +1 -1
- package/dist/components/tree-list/tree-list.d.ts +12 -0
- package/dist/components/tree-list/tree-list.d.ts.map +1 -1
- package/dist/components/tree-list/tree-list.js +18 -3
- package/dist/components/tree-list/tree-list.js.map +1 -1
- package/dist/components/tree-list/tree-list.styles.d.ts.map +1 -1
- package/dist/components/tree-list/tree-list.styles.js +200 -162
- package/dist/components/tree-list/tree-list.styles.js.map +1 -1
- 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/index.d.ts +13 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -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/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/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/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/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/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/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/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/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 +62 -2
- package/src/all.ts +11 -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 +6 -4
- package/src/components/app-shell/app-shell.ts +8 -4
- package/src/components/aspect-ratio/aspect-ratio.ts +37 -3
- 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 +145 -42
- package/src/components/blockquote/blockquote.ts +16 -11
- package/src/components/bottom-sheet/bottom-sheet.styles.ts +14 -11
- package/src/components/bottom-sheet/bottom-sheet.ts +2 -1
- 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/calendar/calendar.styles.ts +65 -17
- package/src/components/calendar/calendar.ts +10 -1
- package/src/components/card/card.ts +112 -34
- package/src/components/carousel/carousel.styles.ts +189 -31
- package/src/components/carousel/carousel.ts +239 -27
- package/src/components/center/center.ts +106 -0
- package/src/components/chat/chat-composer.styles.ts +165 -42
- package/src/components/chat/chat-composer.ts +151 -44
- package/src/components/chat/chat-icons.ts +29 -0
- package/src/components/chat/chat-layout.styles.ts +128 -19
- package/src/components/chat/chat-layout.ts +130 -26
- package/src/components/chat/chat-message.styles.ts +376 -56
- package/src/components/chat/chat-message.ts +198 -80
- package/src/components/checkbox/checkbox.styles.ts +49 -9
- package/src/components/checkbox-list/checkbox-list.styles.ts +32 -20
- package/src/components/citation/citation.ts +133 -30
- package/src/components/clickable-card/clickable-card.ts +10 -2
- package/src/components/code/code.ts +54 -11
- package/src/components/code-block/code-block.styles.ts +213 -48
- package/src/components/code-block/code-block.ts +116 -23
- package/src/components/combobox/combobox.styles.ts +22 -7
- package/src/components/command-palette/command-palette.styles.ts +29 -20
- package/src/components/command-palette/command-palette.ts +3 -0
- package/src/components/dialog/dialog.styles.ts +75 -34
- package/src/components/dialog/dialog.ts +21 -5
- 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 +56 -11
- package/src/components/file-input/file-input.styles.ts +41 -10
- 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 +40 -9
- package/src/components/form-layout/form-layout.ts +9 -0
- package/src/components/grid/grid-item.ts +4 -1
- package/src/components/grid/grid.ts +129 -7
- package/src/components/heading/heading.styles.ts +111 -13
- package/src/components/heading/heading.ts +81 -11
- package/src/components/hover-card/hover-card.ts +44 -4
- package/src/components/icon/icon.ts +142 -7
- 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 +39 -6
- package/src/components/input-group/input-group.styles.ts +6 -1
- package/src/components/item/item.ts +505 -0
- package/src/components/kbd/kbd.ts +145 -20
- package/src/components/layout/layout.ts +327 -0
- package/src/components/lightbox/lightbox.styles.ts +95 -47
- package/src/components/lightbox/lightbox.ts +6 -2
- package/src/components/list/list-item.ts +337 -34
- package/src/components/list/list.ts +88 -5
- package/src/components/listbox/listbox.styles.ts +11 -5
- package/src/components/markdown/markdown.styles.ts +157 -24
- package/src/components/markdown/markdown.ts +25 -1
- package/src/components/markdown/render.ts +2 -0
- package/src/components/menu/menu.styles.ts +12 -7
- package/src/components/metadata-list/metadata-list.ts +125 -16
- package/src/components/mobile-nav/mobile-nav.styles.ts +32 -5
- package/src/components/mobile-nav/mobile-nav.ts +4 -1
- package/src/components/more-menu/more-menu.styles.ts +11 -6
- package/src/components/more-menu/more-menu.ts +3 -0
- package/src/components/multi-select/multi-select.styles.ts +1 -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-input.styles.ts +54 -34
- package/src/components/number-input/number-input.ts +61 -9
- package/src/components/outline/outline.styles.ts +84 -24
- package/src/components/outline/outline.ts +35 -7
- package/src/components/overflow-list/overflow-list.styles.ts +12 -8
- package/src/components/overflow-list/overflow-list.ts +3 -0
- package/src/components/pagination/pagination.styles.ts +53 -12
- package/src/components/pagination/pagination.ts +88 -11
- 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.styles.ts +53 -12
- package/src/components/radio-list/radio-list.styles.ts +36 -32
- package/src/components/resize-handle/resize-handle.ts +99 -8
- package/src/components/scroll-area/scroll-area.ts +19 -1
- package/src/components/section/section.ts +107 -7
- package/src/components/segmented-control/segmented-control.styles.ts +34 -14
- package/src/components/segmented-control/segmented-control.ts +5 -3
- 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 +78 -27
- package/src/components/selectable-card/selectable-card.ts +16 -2
- package/src/components/shared/activate-link.ts +33 -0
- package/src/components/shared/date-field.styles.ts +37 -6
- package/src/components/shared/layout.ts +57 -4
- package/src/components/shared/slot-presence.ts +35 -0
- package/src/components/side-nav/side-nav.styles.ts +29 -35
- package/src/components/side-nav/side-nav.ts +4 -2
- 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 +160 -11
- package/src/components/status-dot/status-dot.ts +60 -12
- package/src/components/stepper/stepper.styles.ts +46 -28
- 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 +35 -11
- package/src/components/tab-menu/tab-menu.ts +4 -0
- package/src/components/table/table.styles.ts +52 -9
- package/src/components/table/table.ts +96 -2
- package/src/components/tabs/tabs.styles.ts +35 -11
- package/src/components/text/text.styles.ts +108 -8
- package/src/components/text/text.ts +71 -3
- 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 +265 -21
- package/src/components/timer/timer.styles.ts +7 -5
- package/src/components/timestamp/timestamp.ts +66 -4
- 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 +1 -1
- package/src/components/token/token.styles.ts +15 -15
- package/src/components/token/token.ts +37 -1
- package/src/components/tokenizer/tokenizer.styles.ts +18 -7
- package/src/components/toolbar/toolbar.ts +8 -5
- 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 +48 -30
- package/src/components/top-nav/top-nav.ts +7 -2
- package/src/components/tree-list/tree-list.styles.ts +44 -6
- package/src/components/tree-list/tree-list.ts +26 -3
- package/src/components/visually-hidden/visually-hidden.ts +5 -0
- package/src/index.ts +15 -0
- package/src/indicator.ts +9 -0
- package/src/item.ts +9 -0
- package/src/layout.ts +9 -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/power-search.ts +9 -0
- package/src/snap-paging.ts +9 -0
- package/src/swipe-action.ts +9 -0
- package/src/swipe.ts +12 -0
- package/src/toggle-button.ts +9 -0
- package/src/utils/press-feedback.ts +64 -0
- package/dist/cdn/chunks/2GOGJDSU.js +0 -47
- package/dist/cdn/chunks/2ILG5UCH.js +0 -320
- package/dist/cdn/chunks/2POJ73H3.js +0 -127
- package/dist/cdn/chunks/2ZNYEI2K.js +0 -153
- package/dist/cdn/chunks/4V5OZW5S.js +0 -138
- package/dist/cdn/chunks/53R7LH57.js +0 -1
- package/dist/cdn/chunks/5RXWAJYI.js +0 -209
- package/dist/cdn/chunks/6PVRHMKB.js +0 -136
- package/dist/cdn/chunks/ASRBZKJQ.js +0 -110
- package/dist/cdn/chunks/BC5GCW6V.js +0 -70
- package/dist/cdn/chunks/BZSCKO2L.js +0 -498
- package/dist/cdn/chunks/CQAYRYSN.js +0 -183
- package/dist/cdn/chunks/DLMHPPVT.js +0 -9
- package/dist/cdn/chunks/EXHS4XM7.js +0 -75
- package/dist/cdn/chunks/F4UDAUDP.js +0 -95
- package/dist/cdn/chunks/FRDRK7S4.js +0 -192
- package/dist/cdn/chunks/G2MFKC6X.js +0 -1
- package/dist/cdn/chunks/H3EXQADC.js +0 -1
- package/dist/cdn/chunks/HQG5G3NW.js +0 -294
- package/dist/cdn/chunks/IRDJ2SED.js +0 -227
- package/dist/cdn/chunks/ITULBQXQ.js +0 -77
- package/dist/cdn/chunks/JFRG4OYS.js +0 -174
- package/dist/cdn/chunks/LILDP4YG.js +0 -228
- package/dist/cdn/chunks/MCMKNHE4.js +0 -243
- package/dist/cdn/chunks/PFTG732C.js +0 -120
- package/dist/cdn/chunks/QFHEFAZM.js +0 -228
- package/dist/cdn/chunks/QSGNQDXL.js +0 -83
- package/dist/cdn/chunks/QXFKH4UN.js +0 -80
- package/dist/cdn/chunks/R7XE3NCT.js +0 -104
- package/dist/cdn/chunks/RDI7SHXP.js +0 -161
- package/dist/cdn/chunks/VJW5CINE.js +0 -289
- package/dist/cdn/chunks/XDXEEO2D.js +0 -189
- package/dist/cdn/chunks/YCLUSLYF.js +0 -155
- package/dist/cdn/chunks/YTJ6WTZW.js +0 -253
- package/dist/cdn/chunks/YUWOEVYA.js +0 -19
- package/dist/cdn/chunks/YYIQMFRC.js +0 -168
|
@@ -1,12 +1,19 @@
|
|
|
1
|
+
/* Visual design ported from Astryx (MIT, (c) Meta Platforms, Inc.); see THIRD_PARTY_NOTICES.md */
|
|
1
2
|
import { html, nothing, type PropertyValues, type TemplateResult } from 'lit';
|
|
2
3
|
import { UndElement } from '../../base/UndElement.js';
|
|
3
4
|
import { LocaleDirController } from '../../controllers/locale-dir.js';
|
|
4
5
|
import { linkRel, safeHref } from '../../utils/safe-url.js';
|
|
6
|
+
import { formatString } from '../shared/strings.js';
|
|
7
|
+
import { CHAT_GLYPHS, chatIcon } from './chat-icons.js';
|
|
5
8
|
import { chatMessageStyles } from './chat-message.styles.js';
|
|
6
9
|
|
|
7
10
|
export type ChatMessageVariant = 'user' | 'assistant' | 'system';
|
|
8
|
-
export type ChatMessageStatus = 'sending' | 'sent' | 'error';
|
|
11
|
+
export type ChatMessageStatus = 'sending' | 'sent' | 'delivered' | 'read' | 'error';
|
|
9
12
|
export type ChatMessageFormat = 'auto' | 'markdown' | 'plain';
|
|
13
|
+
/** `filled` draws the bubble; `ghost` keeps its padding but no background. */
|
|
14
|
+
export type ChatMessageBubble = 'filled' | 'ghost';
|
|
15
|
+
/** Position in a run of messages from the same sender (tightens the sender-side corners). */
|
|
16
|
+
export type ChatMessageGroup = 'first' | 'middle' | 'last';
|
|
10
17
|
|
|
11
18
|
export interface ChatCitation {
|
|
12
19
|
title?: string;
|
|
@@ -16,6 +23,10 @@ export interface ChatCitation {
|
|
|
16
23
|
export interface ChatToolCall {
|
|
17
24
|
name: string;
|
|
18
25
|
status?: 'running' | 'done' | 'error';
|
|
26
|
+
/** What the call acted on (a file path, a command, a query), shown after the name. */
|
|
27
|
+
target?: string;
|
|
28
|
+
/** How long the call took, already formatted (for example `120ms`). */
|
|
29
|
+
duration?: string;
|
|
19
30
|
input?: string;
|
|
20
31
|
output?: string;
|
|
21
32
|
}
|
|
@@ -24,9 +35,13 @@ export interface ChatToolCall {
|
|
|
24
35
|
export interface ChatMessageStrings {
|
|
25
36
|
sending: string;
|
|
26
37
|
sent: string;
|
|
38
|
+
delivered: string;
|
|
39
|
+
read: string;
|
|
27
40
|
error: string;
|
|
28
41
|
streaming: string;
|
|
29
42
|
sources: string;
|
|
43
|
+
/** Summary of a group of tool calls; `{count}` is replaced. */
|
|
44
|
+
toolCalls: string;
|
|
30
45
|
toolInput: string;
|
|
31
46
|
toolOutput: string;
|
|
32
47
|
toolRunning: string;
|
|
@@ -37,9 +52,12 @@ export interface ChatMessageStrings {
|
|
|
37
52
|
const DEFAULT_STRINGS: ChatMessageStrings = {
|
|
38
53
|
sending: 'Sending',
|
|
39
54
|
sent: 'Sent',
|
|
55
|
+
delivered: 'Delivered',
|
|
56
|
+
read: 'Read',
|
|
40
57
|
error: 'Not sent',
|
|
41
58
|
streaming: 'Responding',
|
|
42
59
|
sources: 'Sources',
|
|
60
|
+
toolCalls: '{count} tool calls',
|
|
43
61
|
toolInput: 'Input',
|
|
44
62
|
toolOutput: 'Output',
|
|
45
63
|
toolRunning: 'Running',
|
|
@@ -57,37 +75,57 @@ export interface ChatMessageCompleteDetail {
|
|
|
57
75
|
}
|
|
58
76
|
|
|
59
77
|
/**
|
|
60
|
-
* One message in a conversation: avatar, author
|
|
61
|
-
*
|
|
62
|
-
* property (plain or safe
|
|
78
|
+
* One message in a conversation: avatar, author name above a bubble, a
|
|
79
|
+
* metadata line (time and delivery status) below it, optional tool calls,
|
|
80
|
+
* sources and actions. Content is the `text` property (plain or safe
|
|
81
|
+
* Markdown) and/or the default slot.
|
|
82
|
+
*
|
|
83
|
+
* User and assistant bubbles share one neutral fill; user messages sit at
|
|
84
|
+
* the inline end with their avatar mirrored. `bubble="ghost"` drops the fill
|
|
85
|
+
* but keeps the padding (for long assistant answers), `group` tightens the
|
|
86
|
+
* sender-side corners of consecutive messages, and the system variant is a
|
|
87
|
+
* small centred notice (`divider` adds rules on both sides, for dates).
|
|
63
88
|
*
|
|
64
89
|
* For streaming, set `streaming`, call `appendText(chunk)` for every chunk and
|
|
65
|
-
* `finish()` (or clear `streaming`) at the end.
|
|
66
|
-
*
|
|
67
|
-
* `und-message-complete`, which
|
|
68
|
-
* announcement instead of a
|
|
90
|
+
* `finish()` (or clear `streaming`) at the end. While nothing has arrived the
|
|
91
|
+
* bubble shows a typing indicator, then a cursor (both still under reduced
|
|
92
|
+
* motion). On completion the element fires `und-message-complete`, which
|
|
93
|
+
* `und-chat-layout` turns into one screen reader announcement instead of a
|
|
94
|
+
* stream of partial updates.
|
|
69
95
|
*
|
|
70
96
|
* @summary A chat message bubble with author, time, status, tool calls and sources.
|
|
71
97
|
* @tag und-chat-message
|
|
72
98
|
*
|
|
73
99
|
* @slot - Extra message content, after `text`.
|
|
74
100
|
* @slot avatar - The author's avatar (for example `und-avatar`).
|
|
101
|
+
* @slot metadata - Extra items on the metadata line (for example "Edited" or a model name).
|
|
75
102
|
* @slot actions - Buttons below the message (copy, regenerate).
|
|
76
103
|
*
|
|
77
104
|
* @fires {CustomEvent<{ streaming: boolean }>} und-message-streaming - `streaming` changed.
|
|
78
105
|
* @fires {CustomEvent<{ author: string, text: string }>} und-message-complete - Streaming finished.
|
|
79
106
|
*
|
|
80
107
|
* @csspart base - The message layout.
|
|
108
|
+
* @csspart avatar - The avatar column.
|
|
81
109
|
* @csspart bubble - The bubble.
|
|
82
|
-
* @csspart header -
|
|
110
|
+
* @csspart header - The author row above the bubble.
|
|
83
111
|
* @csspart author - The author name.
|
|
112
|
+
* @csspart metadata - The time and status line below the bubble.
|
|
113
|
+
* @csspart time - The time.
|
|
114
|
+
* @csspart status - The delivery or streaming status.
|
|
115
|
+
* @csspart typing - The typing indicator shown before the first streamed chunk.
|
|
116
|
+
* @csspart tools - The tool call list.
|
|
117
|
+
* @csspart sources - The source list.
|
|
118
|
+
* @csspart actions - The actions row.
|
|
84
119
|
*
|
|
85
120
|
* @cssprop [--und-chat-bubble-bg] - Bubble background.
|
|
86
121
|
* @cssprop [--und-chat-bubble-fg] - Bubble text color.
|
|
87
122
|
* @cssprop [--und-chat-user-bubble-bg] - Bubble background of user messages.
|
|
88
123
|
* @cssprop [--und-chat-user-bubble-fg] - Bubble text color of user messages.
|
|
89
|
-
* @cssprop [--und-chat-bubble-max-width] - Widest the bubble grows.
|
|
124
|
+
* @cssprop [--und-chat-bubble-max-width] - Widest the bubble grows (default `max(80%, 280px)`).
|
|
90
125
|
* @cssprop [--und-chat-bubble-padding] - Bubble padding.
|
|
126
|
+
* @cssprop [--und-chat-bubble-radius] - Bubble corner radius (default 20px, scaled by `--und-radius-factor`).
|
|
127
|
+
* @cssprop [--und-chat-bubble-radius-inner] - Tightened corner of grouped bubbles.
|
|
128
|
+
* @cssprop [--und-chat-message-gap] - Space between the avatar and the message.
|
|
91
129
|
*/
|
|
92
130
|
export class UndChatMessage extends UndElement {
|
|
93
131
|
static override tagName = 'und-chat-message';
|
|
@@ -100,12 +138,17 @@ export class UndChatMessage extends UndElement {
|
|
|
100
138
|
status: { reflect: true },
|
|
101
139
|
text: {},
|
|
102
140
|
format: {},
|
|
141
|
+
bubble: { reflect: true },
|
|
142
|
+
group: { reflect: true },
|
|
143
|
+
divider: { type: Boolean, reflect: true },
|
|
103
144
|
streaming: { type: Boolean, reflect: true },
|
|
104
145
|
citations: { attribute: false },
|
|
105
146
|
toolCalls: { attribute: false },
|
|
106
147
|
strings: { attribute: false },
|
|
107
148
|
hasAvatar: { state: true, attribute: false },
|
|
108
149
|
hasSlotted: { state: true, attribute: false },
|
|
150
|
+
hasMeta: { state: true, attribute: false },
|
|
151
|
+
hasActions: { state: true, attribute: false },
|
|
109
152
|
};
|
|
110
153
|
|
|
111
154
|
/**
|
|
@@ -115,7 +158,7 @@ export class UndChatMessage extends UndElement {
|
|
|
115
158
|
declare variant: ChatMessageVariant;
|
|
116
159
|
|
|
117
160
|
/**
|
|
118
|
-
* Display name of the author.
|
|
161
|
+
* Display name of the author, shown above the bubble.
|
|
119
162
|
* @attr author
|
|
120
163
|
*/
|
|
121
164
|
declare author: string;
|
|
@@ -128,7 +171,7 @@ export class UndChatMessage extends UndElement {
|
|
|
128
171
|
declare time: string | number | Date | undefined;
|
|
129
172
|
|
|
130
173
|
/**
|
|
131
|
-
* Delivery state, shown next to the time.
|
|
174
|
+
* Delivery state, shown with an icon next to the time.
|
|
132
175
|
* @attr status
|
|
133
176
|
*/
|
|
134
177
|
declare status: ChatMessageStatus | undefined;
|
|
@@ -147,7 +190,27 @@ export class UndChatMessage extends UndElement {
|
|
|
147
190
|
declare format: ChatMessageFormat;
|
|
148
191
|
|
|
149
192
|
/**
|
|
150
|
-
*
|
|
193
|
+
* `filled` (default) draws the bubble; `ghost` keeps the padding without a
|
|
194
|
+
* background, for long answers that read better as page text.
|
|
195
|
+
* @attr bubble
|
|
196
|
+
*/
|
|
197
|
+
declare bubble: ChatMessageBubble;
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Position in a run of consecutive messages from the same sender: tightens
|
|
201
|
+
* the sender-side corners so the bubbles read as one group.
|
|
202
|
+
* @attr group
|
|
203
|
+
*/
|
|
204
|
+
declare group: ChatMessageGroup | undefined;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* System messages only: draws a rule on both sides (a date separator).
|
|
208
|
+
* @attr divider
|
|
209
|
+
*/
|
|
210
|
+
declare divider: boolean;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* The message is still arriving: shows a typing indicator, then a cursor.
|
|
151
214
|
* @attr streaming
|
|
152
215
|
*/
|
|
153
216
|
declare streaming: boolean;
|
|
@@ -155,7 +218,7 @@ export class UndChatMessage extends UndElement {
|
|
|
155
218
|
/** Sources listed under the message (links go through the URL allowlist). */
|
|
156
219
|
declare citations: ChatCitation[];
|
|
157
220
|
|
|
158
|
-
/** Tool calls
|
|
221
|
+
/** Tool calls listed under the message; calls with input or output expand. */
|
|
159
222
|
declare toolCalls: ChatToolCall[];
|
|
160
223
|
|
|
161
224
|
/** Overrides for the built-in English strings. */
|
|
@@ -163,6 +226,8 @@ export class UndChatMessage extends UndElement {
|
|
|
163
226
|
|
|
164
227
|
declare private hasAvatar: boolean;
|
|
165
228
|
declare private hasSlotted: boolean;
|
|
229
|
+
declare private hasMeta: boolean;
|
|
230
|
+
declare private hasActions: boolean;
|
|
166
231
|
|
|
167
232
|
readonly #locale = new LocaleDirController(this);
|
|
168
233
|
|
|
@@ -172,12 +237,16 @@ export class UndChatMessage extends UndElement {
|
|
|
172
237
|
this.author = '';
|
|
173
238
|
this.text = '';
|
|
174
239
|
this.format = 'auto';
|
|
240
|
+
this.bubble = 'filled';
|
|
241
|
+
this.divider = false;
|
|
175
242
|
this.streaming = false;
|
|
176
243
|
this.citations = [];
|
|
177
244
|
this.toolCalls = [];
|
|
178
245
|
this.strings = {};
|
|
179
246
|
this.hasAvatar = false;
|
|
180
247
|
this.hasSlotted = false;
|
|
248
|
+
this.hasMeta = false;
|
|
249
|
+
this.hasActions = false;
|
|
181
250
|
}
|
|
182
251
|
|
|
183
252
|
/** Appends a streamed chunk to `text`. */
|
|
@@ -232,9 +301,11 @@ export class UndChatMessage extends UndElement {
|
|
|
232
301
|
}
|
|
233
302
|
}
|
|
234
303
|
|
|
235
|
-
#
|
|
236
|
-
|
|
237
|
-
|
|
304
|
+
#slotFlag =
|
|
305
|
+
(key: 'hasAvatar' | 'hasMeta' | 'hasActions') =>
|
|
306
|
+
(event: Event): void => {
|
|
307
|
+
this[key] = (event.target as HTMLSlotElement).assignedNodes().length > 0;
|
|
308
|
+
};
|
|
238
309
|
|
|
239
310
|
#onDefaultSlot = (event: Event): void => {
|
|
240
311
|
this.hasSlotted = (event.target as HTMLSlotElement)
|
|
@@ -243,18 +314,30 @@ export class UndChatMessage extends UndElement {
|
|
|
243
314
|
};
|
|
244
315
|
|
|
245
316
|
#renderStatus(strings: ChatMessageStrings): TemplateResult | typeof nothing {
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
317
|
+
const status = this.status;
|
|
318
|
+
if (!status) return nothing;
|
|
319
|
+
const glyph =
|
|
320
|
+
status === 'sending'
|
|
321
|
+
? CHAT_GLYPHS.clock
|
|
322
|
+
: status === 'error'
|
|
323
|
+
? CHAT_GLYPHS.alert
|
|
324
|
+
: status === 'sent'
|
|
325
|
+
? CHAT_GLYPHS.check
|
|
326
|
+
: CHAT_GLYPHS.checkDouble;
|
|
327
|
+
const label = status === 'error' ? strings.error : strings[status];
|
|
328
|
+
return html`<span class="status" part="status" data-status=${status}
|
|
329
|
+
>${chatIcon(glyph)}${label}</span
|
|
330
|
+
>`;
|
|
254
331
|
}
|
|
255
332
|
|
|
256
333
|
#renderContent(): TemplateResult | typeof nothing {
|
|
257
334
|
if (this.text === '' && !this.streaming) return nothing;
|
|
335
|
+
if (this.text === '' && !this.hasSlotted) {
|
|
336
|
+
// Nothing has arrived yet: a typing indicator stands in for the text.
|
|
337
|
+
return html`<span class="typing" part="typing" aria-hidden="true"
|
|
338
|
+
><span></span><span></span><span></span
|
|
339
|
+
></span>`;
|
|
340
|
+
}
|
|
258
341
|
// The plain text sits in a pre-wrap box: no whitespace around the bindings.
|
|
259
342
|
const cursor = this.streaming ? html`<span class="cursor" aria-hidden="true"></span>` : nothing;
|
|
260
343
|
return this.#isMarkdown()
|
|
@@ -266,38 +349,63 @@ export class UndChatMessage extends UndElement {
|
|
|
266
349
|
: html`<div class="plain" part="text">${this.text}${cursor}</div>`;
|
|
267
350
|
}
|
|
268
351
|
|
|
352
|
+
#renderCall(call: ChatToolCall, strings: ChatMessageStrings): TemplateResult {
|
|
353
|
+
const status = call.status ?? 'done';
|
|
354
|
+
const label =
|
|
355
|
+
status === 'running'
|
|
356
|
+
? strings.toolRunning
|
|
357
|
+
: status === 'error'
|
|
358
|
+
? strings.toolError
|
|
359
|
+
: strings.toolDone;
|
|
360
|
+
const row = html`<span class="tool-icon" data-status=${status}
|
|
361
|
+
>${
|
|
362
|
+
status === 'running'
|
|
363
|
+
? html`<span class="tool-spinner"></span>`
|
|
364
|
+
: chatIcon(status === 'error' ? CHAT_GLYPHS.failed : CHAT_GLYPHS.done)
|
|
365
|
+
}</span
|
|
366
|
+
><span class="tool-name" dir="auto">${call.name}</span
|
|
367
|
+
><span class="tool-status" data-status=${status}>${label}</span>${
|
|
368
|
+
call.target ? html`<span class="tool-target" dir="auto">${call.target}</span>` : nothing
|
|
369
|
+
}${call.duration ? html`<span class="tool-duration">${call.duration}</span>` : nothing}`;
|
|
370
|
+
if (call.input === undefined && call.output === undefined) {
|
|
371
|
+
return html`<div class="tool"><div class="tool-row">${row}</div></div>`;
|
|
372
|
+
}
|
|
373
|
+
return html`<details class="tool">
|
|
374
|
+
<summary class="tool-row">
|
|
375
|
+
${row}<span class="chevron">${chatIcon(CHAT_GLYPHS.chevron)}</span>
|
|
376
|
+
</summary>
|
|
377
|
+
<div class="tool-body">
|
|
378
|
+
${
|
|
379
|
+
call.input === undefined
|
|
380
|
+
? nothing
|
|
381
|
+
: html`<h4>${strings.toolInput}</h4>
|
|
382
|
+
<pre dir="auto">${call.input}</pre>`
|
|
383
|
+
}
|
|
384
|
+
${
|
|
385
|
+
call.output === undefined
|
|
386
|
+
? nothing
|
|
387
|
+
: html`<h4>${strings.toolOutput}</h4>
|
|
388
|
+
<pre dir="auto">${call.output}</pre>`
|
|
389
|
+
}
|
|
390
|
+
</div>
|
|
391
|
+
</details>`;
|
|
392
|
+
}
|
|
393
|
+
|
|
269
394
|
#renderTools(strings: ChatMessageStrings): TemplateResult | typeof nothing {
|
|
270
|
-
|
|
395
|
+
const calls = this.toolCalls;
|
|
396
|
+
if (calls.length === 0) return nothing;
|
|
397
|
+
const list = calls.map((call) => this.#renderCall(call, strings));
|
|
398
|
+
if (calls.length === 1) return html`<div class="tools" part="tools">${list}</div>`;
|
|
271
399
|
return html`<div class="tools" part="tools">
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
<summary>
|
|
282
|
-
<span class="tool-name" dir="auto">${call.name}</span>
|
|
283
|
-
<span class="tool-status" data-status=${status}>${label}</span>
|
|
284
|
-
</summary>
|
|
285
|
-
<div class="tool-body">
|
|
286
|
-
${
|
|
287
|
-
call.input === undefined
|
|
288
|
-
? nothing
|
|
289
|
-
: html`<h4>${strings.toolInput}</h4>
|
|
290
|
-
<pre dir="auto">${call.input}</pre>`
|
|
291
|
-
}
|
|
292
|
-
${
|
|
293
|
-
call.output === undefined
|
|
294
|
-
? nothing
|
|
295
|
-
: html`<h4>${strings.toolOutput}</h4>
|
|
296
|
-
<pre dir="auto">${call.output}</pre>`
|
|
297
|
-
}
|
|
298
|
-
</div>
|
|
299
|
-
</details>`;
|
|
300
|
-
})}
|
|
400
|
+
<details class="tool-group" open>
|
|
401
|
+
<summary class="tool-row group-row">
|
|
402
|
+
<span class="tool-icon">${chatIcon(CHAT_GLYPHS.wrench)}</span
|
|
403
|
+
><span class="group-label"
|
|
404
|
+
>${formatString(strings.toolCalls, { count: calls.length })}</span
|
|
405
|
+
><span class="chevron">${chatIcon(CHAT_GLYPHS.chevron)}</span>
|
|
406
|
+
</summary>
|
|
407
|
+
<div class="tool-list">${list}</div>
|
|
408
|
+
</details>
|
|
301
409
|
</div>`;
|
|
302
410
|
}
|
|
303
411
|
|
|
@@ -327,48 +435,58 @@ export class UndChatMessage extends UndElement {
|
|
|
327
435
|
</div>`;
|
|
328
436
|
}
|
|
329
437
|
|
|
438
|
+
#renderMeta(strings: ChatMessageStrings): TemplateResult {
|
|
439
|
+
const date = this.#date();
|
|
440
|
+
const time = date
|
|
441
|
+
? html`<time part="time" datetime=${date.toISOString()} title=${this.#formatTime(date, true)}
|
|
442
|
+
>${this.#formatTime(date, false)}</time
|
|
443
|
+
>`
|
|
444
|
+
: nothing;
|
|
445
|
+
const streaming = this.streaming
|
|
446
|
+
? html`<span class="status" part="status" data-status="streaming">${strings.streaming}</span>`
|
|
447
|
+
: nothing;
|
|
448
|
+
const status = this.#renderStatus(strings);
|
|
449
|
+
// User metadata reads from the bubble edge inward: status first, then time.
|
|
450
|
+
const items = this.variant === 'user' ? [status, streaming, time] : [time, status, streaming];
|
|
451
|
+
const empty = !date && !this.status && !this.streaming && !this.hasMeta;
|
|
452
|
+
return html`<div class="meta ${empty ? 'empty' : ''}" part="metadata">
|
|
453
|
+
${items}<span class="meta-extra ${this.hasMeta ? '' : 'empty'}"
|
|
454
|
+
><slot name="metadata" @slotchange=${this.#slotFlag('hasMeta')}></slot
|
|
455
|
+
></span>
|
|
456
|
+
</div>`;
|
|
457
|
+
}
|
|
458
|
+
|
|
330
459
|
protected override render(): TemplateResult {
|
|
331
460
|
const strings = this.#t();
|
|
332
|
-
const
|
|
333
|
-
|
|
461
|
+
const empty = this.text === '' && !this.streaming && !this.hasSlotted;
|
|
462
|
+
const classes = [
|
|
463
|
+
'base',
|
|
464
|
+
this.hasAvatar ? '' : 'no-avatar',
|
|
465
|
+
this.author ? 'has-author' : '',
|
|
466
|
+
].join(' ');
|
|
467
|
+
return html`<div class=${classes} part="base">
|
|
334
468
|
<div class="avatar ${this.hasAvatar ? 'has-avatar' : ''}" part="avatar">
|
|
335
|
-
<slot name="avatar" @slotchange=${this.#
|
|
469
|
+
<slot name="avatar" @slotchange=${this.#slotFlag('hasAvatar')}></slot>
|
|
336
470
|
</div>
|
|
337
471
|
<div class="main">
|
|
338
|
-
<div class="header" part="header">
|
|
472
|
+
<div class="header ${this.author ? '' : 'empty'}" part="header">
|
|
339
473
|
${
|
|
340
474
|
this.author
|
|
341
475
|
? html`<span class="author" part="author" dir="auto">${this.author}</span>`
|
|
342
476
|
: nothing
|
|
343
477
|
}
|
|
344
|
-
${
|
|
345
|
-
date
|
|
346
|
-
? html`<time
|
|
347
|
-
part="time"
|
|
348
|
-
datetime=${date.toISOString()}
|
|
349
|
-
title=${this.#formatTime(date, true)}
|
|
350
|
-
>${this.#formatTime(date, false)}</time
|
|
351
|
-
>`
|
|
352
|
-
: nothing
|
|
353
|
-
}
|
|
354
|
-
${this.#renderStatus(strings)}
|
|
355
|
-
${
|
|
356
|
-
this.streaming
|
|
357
|
-
? html`<span class="status" part="status" data-status="streaming"
|
|
358
|
-
>${strings.streaming}</span
|
|
359
|
-
>`
|
|
360
|
-
: nothing
|
|
361
|
-
}
|
|
362
478
|
</div>
|
|
363
479
|
<div
|
|
364
|
-
class="bubble ${
|
|
480
|
+
class="bubble ${empty ? 'empty' : ''}"
|
|
365
481
|
part="bubble"
|
|
366
482
|
aria-busy=${this.streaming ? 'true' : 'false'}
|
|
367
483
|
>
|
|
368
484
|
${this.#renderContent()}<slot @slotchange=${this.#onDefaultSlot}></slot>
|
|
369
485
|
</div>
|
|
370
|
-
${this.#renderTools(strings)} ${this.#renderSources(strings)}
|
|
371
|
-
<div class="actions" part="actions"
|
|
486
|
+
${this.#renderTools(strings)} ${this.#renderSources(strings)} ${this.#renderMeta(strings)}
|
|
487
|
+
<div class="actions ${this.hasActions ? '' : 'empty'}" part="actions">
|
|
488
|
+
<slot name="actions" @slotchange=${this.#slotFlag('hasActions')}></slot>
|
|
489
|
+
</div>
|
|
372
490
|
</div>
|
|
373
491
|
</div>`;
|
|
374
492
|
}
|
|
@@ -4,6 +4,23 @@ import { css } from 'lit';
|
|
|
4
4
|
|
|
5
5
|
/** Light-DOM styles, identical to `@und-ui/css` (checkbox.css). */
|
|
6
6
|
export const checkboxStyles = css`
|
|
7
|
+
/*
|
|
8
|
+
* .und-checkbox: the CSS-only twin of <und-checkbox>. The native checkbox is
|
|
9
|
+
* the visible box (appearance: none), so it keeps native semantics, the
|
|
10
|
+
* indeterminate (mixed) state, form submission and validation.
|
|
11
|
+
*
|
|
12
|
+
* <div class="und-checkbox">
|
|
13
|
+
* <span class="und-checkbox__control">
|
|
14
|
+
* <input class="und-checkbox__input" type="checkbox" id="terms" name="terms" />
|
|
15
|
+
* <svg class="und-checkbox__icon" viewBox="0 0 16 16" aria-hidden="true" focusable="false">
|
|
16
|
+
* <path class="und-checkbox__check" d="M3.5 8.5l3 3 6-7" />
|
|
17
|
+
* <path class="und-checkbox__dash" d="M4 8h8" />
|
|
18
|
+
* </svg>
|
|
19
|
+
* </span>
|
|
20
|
+
* <label class="und-checkbox__label" for="terms">I accept the terms</label>
|
|
21
|
+
* <p class="und-field__description">Optional description.</p>
|
|
22
|
+
* </div>
|
|
23
|
+
*/
|
|
7
24
|
@layer und.components {
|
|
8
25
|
.und-checkbox {
|
|
9
26
|
display: grid;
|
|
@@ -11,8 +28,8 @@ export const checkboxStyles = css`
|
|
|
11
28
|
gap: 0.125rem var(--und-control-gap, 0.5rem);
|
|
12
29
|
align-items: start;
|
|
13
30
|
color: var(--und-fg-default, #23252c);
|
|
14
|
-
font-size: var(--und-text-
|
|
15
|
-
line-height:
|
|
31
|
+
font-size: var(--und-text-label-md-size, 0.875rem);
|
|
32
|
+
line-height: 1.4286;
|
|
16
33
|
}
|
|
17
34
|
|
|
18
35
|
.und-checkbox > :not(.und-checkbox__control) {
|
|
@@ -30,15 +47,15 @@ export const checkboxStyles = css`
|
|
|
30
47
|
.und-checkbox__icon {
|
|
31
48
|
grid-area: 1 / 1;
|
|
32
49
|
box-sizing: border-box;
|
|
33
|
-
inline-size: var(--und-checkbox-size, 1.
|
|
34
|
-
block-size: var(--und-checkbox-size, 1.
|
|
50
|
+
inline-size: var(--und-checkbox-size, 1.5rem);
|
|
51
|
+
block-size: var(--und-checkbox-size, 1.5rem);
|
|
35
52
|
}
|
|
36
53
|
|
|
37
54
|
.und-checkbox__input {
|
|
38
55
|
appearance: none;
|
|
39
56
|
margin: 0;
|
|
40
|
-
border: var(--und-border-width
|
|
41
|
-
border-radius: var(--und-checkbox-radius, 0.
|
|
57
|
+
border: var(--und-border-width, 1px) solid var(--und-border-control, #898c96);
|
|
58
|
+
border-radius: var(--und-checkbox-radius, var(--und-shape-control, 0.375rem));
|
|
42
59
|
background: var(--und-bg-surface, #fff);
|
|
43
60
|
cursor: pointer;
|
|
44
61
|
transition:
|
|
@@ -46,8 +63,16 @@ export const checkboxStyles = css`
|
|
|
46
63
|
border-color var(--und-motion-hover, 130ms) ease;
|
|
47
64
|
}
|
|
48
65
|
|
|
49
|
-
|
|
50
|
-
|
|
66
|
+
@media (hover: hover) and (forced-colors: none) {
|
|
67
|
+
.und-checkbox__input:hover:not(:checked, :indeterminate, :disabled) {
|
|
68
|
+
border-color: color-mix(in srgb, var(--und-border-control, #898c96), currentcolor 20%);
|
|
69
|
+
background: color-mix(in srgb, var(--und-bg-surface, #fff), currentcolor 5%);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.und-checkbox__input:hover:is(:checked, :indeterminate):not(:disabled) {
|
|
73
|
+
border-color: color-mix(in srgb, var(--und-accent-solid, #504bf2), currentcolor 15%);
|
|
74
|
+
background: color-mix(in srgb, var(--und-accent-solid, #504bf2), currentcolor 15%);
|
|
75
|
+
}
|
|
51
76
|
}
|
|
52
77
|
|
|
53
78
|
.und-checkbox__input:checked,
|
|
@@ -61,6 +86,14 @@ export const checkboxStyles = css`
|
|
|
61
86
|
outline-offset: var(--und-focus-offset, 2px);
|
|
62
87
|
}
|
|
63
88
|
|
|
89
|
+
.und-checkbox__input:disabled {
|
|
90
|
+
border-color: var(--und-border-subtle, #d2d4dc);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.und-checkbox__input:disabled:not(:checked, :indeterminate) {
|
|
94
|
+
background: var(--und-bg-muted, #f1f2f6);
|
|
95
|
+
}
|
|
96
|
+
|
|
64
97
|
.und-checkbox__input[aria-invalid='true'] {
|
|
65
98
|
border-color: var(--und-status-danger-fg, #b81e27);
|
|
66
99
|
}
|
|
@@ -80,18 +113,25 @@ export const checkboxStyles = css`
|
|
|
80
113
|
visibility: hidden;
|
|
81
114
|
}
|
|
82
115
|
|
|
116
|
+
/* Astryx indeterminate bar: half the box wide, 2px thick, fully rounded. */
|
|
117
|
+
.und-checkbox__dash {
|
|
118
|
+
stroke-width: 2px;
|
|
119
|
+
vector-effect: non-scaling-stroke;
|
|
120
|
+
}
|
|
121
|
+
|
|
83
122
|
.und-checkbox__input:checked:not(:indeterminate) + .und-checkbox__icon .und-checkbox__check,
|
|
84
123
|
.und-checkbox__input:indeterminate + .und-checkbox__icon .und-checkbox__dash {
|
|
85
124
|
visibility: visible;
|
|
86
125
|
}
|
|
87
126
|
|
|
88
127
|
.und-checkbox__label {
|
|
128
|
+
font-weight: var(--und-font-weight-semibold, 600);
|
|
89
129
|
cursor: pointer;
|
|
90
130
|
overflow-wrap: anywhere;
|
|
91
131
|
}
|
|
92
132
|
|
|
93
133
|
.und-checkbox:has(.und-checkbox__input:disabled) {
|
|
94
|
-
opacity: var(--und-disabled-opacity, 0.
|
|
134
|
+
opacity: var(--und-disabled-opacity, 0.5);
|
|
95
135
|
}
|
|
96
136
|
|
|
97
137
|
.und-checkbox:has(.und-checkbox__input:disabled) .und-checkbox__input,
|
|
@@ -4,6 +4,25 @@ import { css } from 'lit';
|
|
|
4
4
|
|
|
5
5
|
/** Light-DOM styles, identical to `@und-ui/css` (checkbox-list.css). */
|
|
6
6
|
export const checkboxListStyles = css`
|
|
7
|
+
/*
|
|
8
|
+
* .und-checkbox-list: the CSS-only twin of <und-checkbox-list>. A native
|
|
9
|
+
* <fieldset> with a <legend> holds checkboxes as card-like rows (label,
|
|
10
|
+
* description, whole row clickable). Each checkbox is the .und-checkbox
|
|
11
|
+
* markup (checkbox.css).
|
|
12
|
+
*
|
|
13
|
+
* <fieldset class="und-checkbox-list">
|
|
14
|
+
* <legend class="und-field__label">Notify me about</legend>
|
|
15
|
+
* <div class="und-checkbox-list__items">
|
|
16
|
+
* <div class="und-checkbox">
|
|
17
|
+
* <span class="und-checkbox__control">
|
|
18
|
+
* <input class="und-checkbox__input" type="checkbox" id="n1" name="notify" value="mail" />
|
|
19
|
+
* </span>
|
|
20
|
+
* <label class="und-checkbox__label" for="n1">Email</label>
|
|
21
|
+
* <p class="und-field__description">Weekly summary.</p>
|
|
22
|
+
* </div>
|
|
23
|
+
* </div>
|
|
24
|
+
* </fieldset>
|
|
25
|
+
*/
|
|
7
26
|
@layer und.components {
|
|
8
27
|
.und-checkbox-list {
|
|
9
28
|
display: flex;
|
|
@@ -21,40 +40,39 @@ export const checkboxListStyles = css`
|
|
|
21
40
|
.und-checkbox-list__items {
|
|
22
41
|
display: flex;
|
|
23
42
|
flex-direction: column;
|
|
24
|
-
gap: var(--und-checkbox-list-gap, 0
|
|
43
|
+
gap: var(--und-checkbox-list-gap, 0);
|
|
25
44
|
}
|
|
26
45
|
|
|
27
46
|
:is(.und-checkbox-list, und-checkbox-list) .und-checkbox {
|
|
28
47
|
position: relative;
|
|
29
48
|
padding: var(
|
|
30
49
|
--und-checkbox-list-padding,
|
|
31
|
-
var(--und-space-
|
|
50
|
+
var(--und-space-2, 0.5rem) var(--und-space-2, 0.5rem)
|
|
32
51
|
);
|
|
33
|
-
border:
|
|
52
|
+
border: 0;
|
|
34
53
|
border-radius: var(--und-shape-control, 0.375rem);
|
|
35
|
-
background:
|
|
36
|
-
transition:
|
|
37
|
-
border-color var(--und-motion-hover, 130ms) ease,
|
|
38
|
-
background-color var(--und-motion-hover, 130ms) ease;
|
|
54
|
+
background: transparent;
|
|
55
|
+
transition: background-color var(--und-motion-hover, 130ms) ease;
|
|
39
56
|
}
|
|
40
57
|
|
|
41
|
-
:
|
|
42
|
-
|
|
58
|
+
@media (hover: hover) and (forced-colors: none) {
|
|
59
|
+
:is(.und-checkbox-list, und-checkbox-list)
|
|
60
|
+
.und-checkbox:hover:not(:has(.und-checkbox__input:disabled)) {
|
|
61
|
+
background: var(--und-bg-muted, #f1f2f6);
|
|
62
|
+
}
|
|
43
63
|
}
|
|
44
64
|
|
|
45
65
|
:is(.und-checkbox-list, und-checkbox-list) .und-checkbox:has(.und-checkbox__input:checked) {
|
|
46
|
-
border-color: var(--und-accent-solid, #504bf2);
|
|
47
66
|
background: var(--und-accent-bg, #eff2fe);
|
|
48
|
-
box-shadow: inset 0 0 0 var(--und-border-width, 1px) var(--und-accent-solid, #504bf2);
|
|
49
67
|
}
|
|
50
68
|
|
|
51
69
|
:is(.und-checkbox-list, und-checkbox-list)
|
|
52
70
|
.und-checkbox:has(.und-checkbox__input[aria-invalid='true']) {
|
|
53
|
-
|
|
71
|
+
box-shadow: inset 0 0 0 var(--und-border-width, 1px) var(--und-status-danger-fg, #b81e27);
|
|
54
72
|
}
|
|
55
73
|
|
|
56
74
|
:is(.und-checkbox-list, und-checkbox-list) .und-checkbox__label {
|
|
57
|
-
font-weight: var(--und-font-weight-
|
|
75
|
+
font-weight: var(--und-font-weight-normal, 400);
|
|
58
76
|
}
|
|
59
77
|
|
|
60
78
|
/* The label's box stretches over the row, so a click anywhere toggles it. */
|
|
@@ -72,7 +90,7 @@ export const checkboxListStyles = css`
|
|
|
72
90
|
|
|
73
91
|
/* A disabled row dims its control and label, not its description (which stays readable). */
|
|
74
92
|
:is(.und-checkbox-list, und-checkbox-list) .und-checkbox:has(.und-checkbox__input:disabled) {
|
|
75
|
-
background:
|
|
93
|
+
background: transparent;
|
|
76
94
|
opacity: 1;
|
|
77
95
|
}
|
|
78
96
|
|
|
@@ -89,14 +107,8 @@ export const checkboxListStyles = css`
|
|
|
89
107
|
}
|
|
90
108
|
|
|
91
109
|
@media (forced-colors: active) {
|
|
92
|
-
:is(.und-checkbox-list, und-checkbox-list) .und-checkbox,
|
|
93
|
-
:is(.und-checkbox-list, und-checkbox-list) .und-checkbox:hover {
|
|
94
|
-
border-color: CanvasText;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
110
|
:is(.und-checkbox-list, und-checkbox-list) .und-checkbox:has(.und-checkbox__input:checked) {
|
|
98
111
|
outline: var(--und-border-width-thick, 2px) solid Highlight;
|
|
99
|
-
border-color: Highlight;
|
|
100
112
|
box-shadow: none;
|
|
101
113
|
}
|
|
102
114
|
}
|