@und-ui/core 0.2.0 → 0.3.1
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 +28030 -15402
- 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 +17967 -12435
- 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 +363 -197
- 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 +253 -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 +276 -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,13 +1,20 @@
|
|
|
1
|
-
import { type TemplateResult } from 'lit';
|
|
1
|
+
import { type PropertyValues, type TemplateResult } from 'lit';
|
|
2
2
|
import { UndElement } from '../../base/UndElement.js';
|
|
3
3
|
export type GridMin = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
4
4
|
export type GridAlign = 'start' | 'center' | 'end' | 'stretch';
|
|
5
|
+
export type GridRepeat = 'fit' | 'fill';
|
|
5
6
|
/**
|
|
6
7
|
* A grid whose columns adapt to the space: each column is at least `min`
|
|
7
8
|
* wide (`--und-grid-min`, 16rem by default) and the row fits as many as it
|
|
8
9
|
* can, down to one column at 320 px. Set `columns` for a fixed count
|
|
9
10
|
* instead. Pure layout: no role, no semantics.
|
|
10
11
|
*
|
|
12
|
+
* As in the Astryx Grid, `max-columns` caps the responsive column count
|
|
13
|
+
* (the columns present still fill the row), `repeat="fill"` keeps empty
|
|
14
|
+
* tracks, `row-gap` and `column-gap` set one axis, `justify-items` aligns
|
|
15
|
+
* on the inline axis and `row-height` sizes implicit rows for masonry-like
|
|
16
|
+
* layouts.
|
|
17
|
+
*
|
|
11
18
|
* @summary A responsive grid with a minimum column width or a fixed column count.
|
|
12
19
|
* @tag und-grid
|
|
13
20
|
*
|
|
@@ -15,8 +22,10 @@ export type GridAlign = 'start' | 'center' | 'end' | 'stretch';
|
|
|
15
22
|
*
|
|
16
23
|
* @cssprop [--und-grid-gap] - Gap between cells (overrides the `gap` attribute).
|
|
17
24
|
* @cssprop [--und-grid-min] - Minimum column width for the responsive grid.
|
|
25
|
+
* @cssprop [--und-grid-row-height] - Height of implicit rows, `grid-auto-rows` (overrides `row-height`; default `auto`).
|
|
18
26
|
*/
|
|
19
27
|
export declare class UndGrid extends UndElement {
|
|
28
|
+
#private;
|
|
20
29
|
static tagName: string;
|
|
21
30
|
static properties: {
|
|
22
31
|
columns: {
|
|
@@ -28,14 +37,37 @@ export declare class UndGrid extends UndElement {
|
|
|
28
37
|
gap: {
|
|
29
38
|
reflect: boolean;
|
|
30
39
|
};
|
|
40
|
+
rowGap: {
|
|
41
|
+
reflect: boolean;
|
|
42
|
+
attribute: string;
|
|
43
|
+
};
|
|
44
|
+
columnGap: {
|
|
45
|
+
reflect: boolean;
|
|
46
|
+
attribute: string;
|
|
47
|
+
};
|
|
31
48
|
alignItems: {
|
|
32
49
|
reflect: boolean;
|
|
33
50
|
attribute: string;
|
|
34
51
|
};
|
|
52
|
+
justifyItems: {
|
|
53
|
+
reflect: boolean;
|
|
54
|
+
attribute: string;
|
|
55
|
+
};
|
|
35
56
|
dense: {
|
|
36
57
|
type: BooleanConstructor;
|
|
37
58
|
reflect: boolean;
|
|
38
59
|
};
|
|
60
|
+
maxColumns: {
|
|
61
|
+
reflect: boolean;
|
|
62
|
+
attribute: string;
|
|
63
|
+
};
|
|
64
|
+
repeat: {
|
|
65
|
+
reflect: boolean;
|
|
66
|
+
};
|
|
67
|
+
rowHeight: {
|
|
68
|
+
reflect: boolean;
|
|
69
|
+
attribute: string;
|
|
70
|
+
};
|
|
39
71
|
};
|
|
40
72
|
static styles: import("lit").CSSResult;
|
|
41
73
|
/**
|
|
@@ -44,26 +76,62 @@ export declare class UndGrid extends UndElement {
|
|
|
44
76
|
*/
|
|
45
77
|
columns: string | undefined;
|
|
46
78
|
/**
|
|
47
|
-
* Minimum column width of the responsive grid: `xs`, `sm`, `md` (default),
|
|
79
|
+
* Minimum column width of the responsive grid: `xs`, `sm`, `md` (default),
|
|
80
|
+
* `lg`, `xl`, or a number of pixels such as `240` (the Astryx `minWidth`).
|
|
48
81
|
* @attr min
|
|
49
82
|
*/
|
|
50
|
-
min: GridMin | undefined;
|
|
83
|
+
min: GridMin | `${number}` | undefined;
|
|
51
84
|
/**
|
|
52
|
-
* Gap between cells, a space
|
|
85
|
+
* Gap between cells, a space step (`0`, `0.5`, `1`, `1.5`, `2` ... `32`). Default `4`.
|
|
53
86
|
* @attr gap
|
|
54
87
|
*/
|
|
55
88
|
gap: string | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* Gap between rows, a space step. Wins over `gap` for rows.
|
|
91
|
+
* @attr row-gap
|
|
92
|
+
*/
|
|
93
|
+
rowGap: string | undefined;
|
|
94
|
+
/**
|
|
95
|
+
* Gap between columns, a space step. Wins over `gap` for columns.
|
|
96
|
+
* @attr column-gap
|
|
97
|
+
*/
|
|
98
|
+
columnGap: string | undefined;
|
|
56
99
|
/**
|
|
57
100
|
* Cross-axis alignment of the items.
|
|
58
101
|
* @attr align-items
|
|
59
102
|
*/
|
|
60
103
|
alignItems: GridAlign | undefined;
|
|
104
|
+
/**
|
|
105
|
+
* Inline-axis alignment of the items in their cells (the Astryx `justify`).
|
|
106
|
+
* @attr justify-items
|
|
107
|
+
*/
|
|
108
|
+
justifyItems: GridAlign | undefined;
|
|
61
109
|
/**
|
|
62
110
|
* Back-fills holes left by wide items (visual order may differ from DOM order).
|
|
63
111
|
* @attr dense
|
|
64
112
|
*/
|
|
65
113
|
dense: boolean;
|
|
114
|
+
/**
|
|
115
|
+
* Caps the number of responsive columns (1 to 12). The columns that are
|
|
116
|
+
* present still fill the row, so a single column on a phone is full width.
|
|
117
|
+
* Ignored when `columns` is set.
|
|
118
|
+
* @attr max-columns
|
|
119
|
+
*/
|
|
120
|
+
maxColumns: string | undefined;
|
|
121
|
+
/**
|
|
122
|
+
* Responsive tracks: `fit` (default) stretches the items to fill the row,
|
|
123
|
+
* `fill` keeps empty tracks so every column has the same width.
|
|
124
|
+
* @attr repeat
|
|
125
|
+
*/
|
|
126
|
+
repeat: GridRepeat | undefined;
|
|
127
|
+
/**
|
|
128
|
+
* Height of every implicit row in pixels (`grid-auto-rows`), for
|
|
129
|
+
* masonry-like layouts with `und-grid-item row-span`.
|
|
130
|
+
* @attr row-height
|
|
131
|
+
*/
|
|
132
|
+
rowHeight: string | undefined;
|
|
66
133
|
constructor();
|
|
134
|
+
protected updated(changed: PropertyValues<this>): void;
|
|
67
135
|
protected render(): TemplateResult;
|
|
68
136
|
}
|
|
69
137
|
//# sourceMappingURL=grid.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../../src/components/grid/grid.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../../src/components/grid/grid.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAGtD,MAAM,MAAM,OAAO,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACvD,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,CAAC;AAC/D,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,MAAM,CAAC;AAKxC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAAa,OAAQ,SAAQ,UAAU;;IACrC,OAAgB,OAAO,SAAc;IAErC,OAAgB,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAYxB;IAEF,OAAgB,MAAM,0BAoHpB;IAEF;;;OAGG;IACK,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAEpC;;;;OAIG;IACK,GAAG,EAAE,OAAO,GAAG,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC;IAE/C;;;OAGG;IACK,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;IAEhC;;;OAGG;IACK,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAEnC;;;OAGG;IACK,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAEtC;;;OAGG;IACK,UAAU,EAAE,SAAS,GAAG,SAAS,CAAC;IAE1C;;;OAGG;IACK,YAAY,EAAE,SAAS,GAAG,SAAS,CAAC;IAE5C;;;OAGG;IACK,KAAK,EAAE,OAAO,CAAC;IAEvB;;;;;OAKG;IACK,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAEvC;;;;OAIG;IACK,MAAM,EAAE,UAAU,GAAG,SAAS,CAAC;IAEvC;;;;OAIG;IACK,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;;cAOnB,OAAO,CAAC,OAAO,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;cAY5C,MAAM,IAAI,cAAc;CAG5C"}
|
|
@@ -1,12 +1,21 @@
|
|
|
1
|
+
/* Visual design ported from Astryx (MIT, (c) Meta Platforms, Inc.); see THIRD_PARTY_NOTICES.md */
|
|
1
2
|
import { css, html } from 'lit';
|
|
2
3
|
import { UndElement } from '../../base/UndElement.js';
|
|
3
4
|
import { countRules, spaceRules } from '../shared/layout.js';
|
|
5
|
+
/** A plain non-negative number of pixels: nothing else reaches the CSSOM. */
|
|
6
|
+
const PIXELS = /^\d+(?:\.\d+)?$/;
|
|
4
7
|
/**
|
|
5
8
|
* A grid whose columns adapt to the space: each column is at least `min`
|
|
6
9
|
* wide (`--und-grid-min`, 16rem by default) and the row fits as many as it
|
|
7
10
|
* can, down to one column at 320 px. Set `columns` for a fixed count
|
|
8
11
|
* instead. Pure layout: no role, no semantics.
|
|
9
12
|
*
|
|
13
|
+
* As in the Astryx Grid, `max-columns` caps the responsive column count
|
|
14
|
+
* (the columns present still fill the row), `repeat="fill"` keeps empty
|
|
15
|
+
* tracks, `row-gap` and `column-gap` set one axis, `justify-items` aligns
|
|
16
|
+
* on the inline axis and `row-height` sizes implicit rows for masonry-like
|
|
17
|
+
* layouts.
|
|
18
|
+
*
|
|
10
19
|
* @summary A responsive grid with a minimum column width or a fixed column count.
|
|
11
20
|
* @tag und-grid
|
|
12
21
|
*
|
|
@@ -14,6 +23,7 @@ import { countRules, spaceRules } from '../shared/layout.js';
|
|
|
14
23
|
*
|
|
15
24
|
* @cssprop [--und-grid-gap] - Gap between cells (overrides the `gap` attribute).
|
|
16
25
|
* @cssprop [--und-grid-min] - Minimum column width for the responsive grid.
|
|
26
|
+
* @cssprop [--und-grid-row-height] - Height of implicit rows, `grid-auto-rows` (overrides `row-height`; default `auto`).
|
|
17
27
|
*/
|
|
18
28
|
export class UndGrid extends UndElement {
|
|
19
29
|
static tagName = 'und-grid';
|
|
@@ -21,75 +31,142 @@ export class UndGrid extends UndElement {
|
|
|
21
31
|
columns: { reflect: true },
|
|
22
32
|
min: { reflect: true },
|
|
23
33
|
gap: { reflect: true },
|
|
34
|
+
rowGap: { reflect: true, attribute: 'row-gap' },
|
|
35
|
+
columnGap: { reflect: true, attribute: 'column-gap' },
|
|
24
36
|
alignItems: { reflect: true, attribute: 'align-items' },
|
|
37
|
+
justifyItems: { reflect: true, attribute: 'justify-items' },
|
|
25
38
|
dense: { type: Boolean, reflect: true },
|
|
39
|
+
maxColumns: { reflect: true, attribute: 'max-columns' },
|
|
40
|
+
repeat: { reflect: true },
|
|
41
|
+
rowHeight: { reflect: true, attribute: 'row-height' },
|
|
26
42
|
};
|
|
27
|
-
static styles = css `
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
43
|
+
static styles = css ` @layer und.components{:host{--_min:16rem;--_repeat:auto-fit;--_gap:var(--und-grid-gap,var(--und-space-4,1rem));--_cgap:var(--_gap);--_row-height:auto;display:grid;grid-template-columns:repeat( var(--_repeat),minmax(min(100%,var(--und-grid-min,var(--_min))),1fr) );grid-auto-rows:var(--und-grid-row-height,var(--_row-height));gap:var(--_gap);column-gap:var(--_cgap);min-inline-size:0}:host([hidden]){display:none}:host([min='xs']){--_min:8rem}:host([min='sm']){--_min:12rem}:host([min='md']){--_min:16rem}:host([min='lg']){--_min:24rem}:host([min='xl']){--_min:32rem}:host([repeat='fill']){--_repeat:auto-fill}:host([max-columns]){grid-template-columns:repeat( var(--_repeat),minmax( min( 100%,max( var(--und-grid-min,var(--_min)),calc((100% - (var(--_max,1) - 1) * var(--_cgap)) / var(--_max,1)) ) ),1fr ) )}:host([dense]){grid-auto-flow:dense}:host([align-items='start']){align-items:start}:host([align-items='center']){align-items:center}:host([align-items='end']){align-items:end}:host([align-items='stretch']){align-items:stretch}:host([justify-items='start']){justify-items:start}:host([justify-items='center']){justify-items:center}:host([justify-items='end']){justify-items:end}:host([justify-items='stretch']){justify-items:stretch}
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
40
83
|
|
|
41
|
-
:host([hidden]){
|
|
42
|
-
display:none;
|
|
43
|
-
}
|
|
44
84
|
|
|
45
|
-
:host([min='xs']){
|
|
46
|
-
--_min:8rem;
|
|
47
|
-
}
|
|
48
85
|
|
|
49
|
-
:host([min='sm']){
|
|
50
|
-
--_min:12rem;
|
|
51
|
-
}
|
|
52
86
|
|
|
53
|
-
:host([min='md']){
|
|
54
|
-
--_min:16rem;
|
|
55
|
-
}
|
|
56
87
|
|
|
57
|
-
:host([min='lg']){
|
|
58
|
-
--_min:24rem;
|
|
59
|
-
}
|
|
60
88
|
|
|
61
|
-
:host([min='xl']){
|
|
62
|
-
--_min:32rem;
|
|
63
|
-
}
|
|
64
89
|
|
|
65
|
-
:host([dense]){
|
|
66
|
-
grid-auto-flow:dense;
|
|
67
|
-
}
|
|
68
90
|
|
|
69
|
-
:host([align-items='start']){
|
|
70
|
-
align-items:start;
|
|
71
|
-
}
|
|
72
91
|
|
|
73
|
-
:host([align-items='center']){
|
|
74
|
-
align-items:center;
|
|
75
|
-
}
|
|
76
92
|
|
|
77
|
-
:host([align-items='end']){
|
|
78
|
-
align-items:end;
|
|
79
|
-
}
|
|
80
93
|
|
|
81
|
-
:host([align-items='stretch']){
|
|
82
|
-
align-items:stretch;
|
|
83
|
-
}
|
|
84
94
|
|
|
85
|
-
|
|
86
|
-
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
${countRules((n) => `:host([max-columns='${n}'])`, (n) => `--_max:${n}`, 12)}
|
|
146
|
+
${countRules((n) => `:host([columns='${n}'])`, (n) => `grid-template-columns:repeat(${n},minmax(0,1fr))`, 12)}
|
|
147
|
+
${spaceRules((step) => `:host([gap='${step}'])`, '--_gap', '--und-grid-gap')}
|
|
148
|
+
${spaceRules((step) => `:host([row-gap='${step}'])`, 'row-gap')}
|
|
149
|
+
${spaceRules((step) => `:host([column-gap='${step}'])`, '--_cgap')}
|
|
87
150
|
}
|
|
88
151
|
`;
|
|
89
152
|
constructor() {
|
|
90
153
|
super();
|
|
91
154
|
this.dense = false;
|
|
92
155
|
}
|
|
156
|
+
updated(changed) {
|
|
157
|
+
if (changed.has('min'))
|
|
158
|
+
this.#pixels('--_min', this.min);
|
|
159
|
+
if (changed.has('rowHeight'))
|
|
160
|
+
this.#pixels('--_row-height', this.rowHeight);
|
|
161
|
+
}
|
|
162
|
+
/** Writes a validated pixel length to a private custom property, or clears it. */
|
|
163
|
+
#pixels(property, value) {
|
|
164
|
+
const text = (value ?? '').trim();
|
|
165
|
+
if (PIXELS.test(text))
|
|
166
|
+
this.style.setProperty(property, `${Number(text)}px`);
|
|
167
|
+
else
|
|
168
|
+
this.style.removeProperty(property);
|
|
169
|
+
}
|
|
93
170
|
render() {
|
|
94
171
|
return html `<slot></slot>`;
|
|
95
172
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid.js","sourceRoot":"","sources":["../../../src/components/grid/grid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,
|
|
1
|
+
{"version":3,"file":"grid.js","sourceRoot":"","sources":["../../../src/components/grid/grid.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,OAAO,EAAE,GAAG,EAAE,IAAI,EAA4C,MAAM,KAAK,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAM7D,6EAA6E;AAC7E,MAAM,MAAM,GAAG,iBAAiB,CAAC;AAEjC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,OAAO,OAAQ,SAAQ,UAAU;IACrC,MAAM,CAAU,OAAO,GAAG,UAAU,CAAC;IAErC,MAAM,CAAU,UAAU,GAAG;QAC3B,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;QAC1B,GAAG,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;QACtB,GAAG,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;QACtB,MAAM,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE;QAC/C,SAAS,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,YAAY,EAAE;QACrD,UAAU,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,aAAa,EAAE;QACvD,YAAY,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,eAAe,EAAE;QAC3D,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE;QACvC,UAAU,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,aAAa,EAAE;QACvD,MAAM,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;QACzB,SAAS,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,YAAY,EAAE;KACtD,CAAC;IAEF,MAAM,CAAU,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAsGtB,UAAU,CACV,CAAC,CAAC,EAAE,EAAE,CAAC,uBAAuB,CAAC,KAAK,EACpC,CAAC,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,EAAE,EACpB,EAAE,CACH;QACC,UAAU,CACV,CAAC,CAAC,EAAE,EAAE,CAAC,mBAAmB,CAAC,KAAK,EAChC,CAAC,CAAC,EAAE,EAAE,CAAC,gCAAgC,CAAC,iBAAiB,EACzD,EAAE,CACH;QACC,UAAU,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,eAAe,IAAI,KAAK,EAAE,QAAQ,EAAE,gBAAgB,CAAC;QAC1E,UAAU,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,mBAAmB,IAAI,KAAK,EAAE,SAAS,CAAC;QAC7D,UAAU,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,sBAAsB,IAAI,KAAK,EAAE,SAAS,CAAC;;GAErE,CAAC;IAyEF;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAEkB,OAAO,CAAC,OAA6B;QACtD,IAAI,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC;YAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;QACzD,IAAI,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC;YAAE,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;IAC9E,CAAC;IAED,kFAAkF;IAClF,OAAO,CAAC,QAAgB,EAAE,KAAyB;QACjD,MAAM,IAAI,GAAG,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;QAClC,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC;YAAE,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,QAAQ,EAAE,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;YACxE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;IAC3C,CAAC;IAEkB,MAAM;QACvB,OAAO,IAAI,CAAA,eAAe,CAAC;IAC7B,CAAC"}
|
|
@@ -1,12 +1,18 @@
|
|
|
1
|
-
import { type TemplateResult } from 'lit';
|
|
1
|
+
import { type PropertyValues, type TemplateResult } from 'lit';
|
|
2
2
|
import { UndElement } from '../../base/UndElement.js';
|
|
3
|
-
export type HeadingSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
4
|
-
export type
|
|
3
|
+
export type HeadingSize = '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
4
|
+
export type HeadingType = 'display-1' | 'display-2' | 'display-3';
|
|
5
|
+
export type HeadingTone = 'default' | 'muted' | 'accent' | 'disabled' | 'inherit';
|
|
6
|
+
export type HeadingWeight = 'regular' | 'medium' | 'semibold' | 'bold';
|
|
7
|
+
export type HeadingAlign = 'start' | 'center' | 'end';
|
|
8
|
+
export type HeadingWrap = 'wrap' | 'nowrap' | 'balance' | 'pretty';
|
|
5
9
|
/**
|
|
6
10
|
* A real `h1` to `h6` whose visual size is independent of its level: pick the
|
|
7
11
|
* level for the document outline and the size for the design. Without `size`
|
|
8
|
-
* the size follows the level.
|
|
9
|
-
*
|
|
12
|
+
* the size follows the level. `type` switches to a display size (larger,
|
|
13
|
+
* regular weight) for hero titles and data callouts. Lines grow taller for
|
|
14
|
+
* Indic scripts (Hindi, Tamil, Bengali and so on) so vowel signs are never
|
|
15
|
+
* clipped.
|
|
10
16
|
*
|
|
11
17
|
* @summary A heading with level semantics and an independent visual size.
|
|
12
18
|
* @tag und-heading
|
|
@@ -16,10 +22,11 @@ export type HeadingTone = 'default' | 'muted';
|
|
|
16
22
|
* @csspart base - The `h1` to `h6` element.
|
|
17
23
|
*
|
|
18
24
|
* @cssprop [--und-heading-color] - Text color.
|
|
19
|
-
* @cssprop [--und-heading-font-size] - Font size (overrides `size`).
|
|
20
|
-
* @cssprop [--und-heading-font-weight] - Font weight.
|
|
25
|
+
* @cssprop [--und-heading-font-size] - Font size (overrides `size` and `type`).
|
|
26
|
+
* @cssprop [--und-heading-font-weight] - Font weight (overrides `weight`).
|
|
21
27
|
*/
|
|
22
28
|
export declare class UndHeading extends UndElement {
|
|
29
|
+
#private;
|
|
23
30
|
static tagName: string;
|
|
24
31
|
static styles: import("lit").CSSResult;
|
|
25
32
|
static properties: {
|
|
@@ -30,9 +37,30 @@ export declare class UndHeading extends UndElement {
|
|
|
30
37
|
size: {
|
|
31
38
|
reflect: boolean;
|
|
32
39
|
};
|
|
40
|
+
type: {
|
|
41
|
+
reflect: boolean;
|
|
42
|
+
};
|
|
33
43
|
tone: {
|
|
34
44
|
reflect: boolean;
|
|
35
45
|
};
|
|
46
|
+
weight: {
|
|
47
|
+
reflect: boolean;
|
|
48
|
+
};
|
|
49
|
+
align: {
|
|
50
|
+
reflect: boolean;
|
|
51
|
+
};
|
|
52
|
+
textWrap: {
|
|
53
|
+
reflect: boolean;
|
|
54
|
+
attribute: string;
|
|
55
|
+
};
|
|
56
|
+
lines: {
|
|
57
|
+
type: NumberConstructor;
|
|
58
|
+
reflect: boolean;
|
|
59
|
+
};
|
|
60
|
+
strikethrough: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
reflect: boolean;
|
|
63
|
+
};
|
|
36
64
|
};
|
|
37
65
|
/**
|
|
38
66
|
* Outline level, 1 to 6. It becomes the element (`h1` to `h6`); anything
|
|
@@ -41,16 +69,49 @@ export declare class UndHeading extends UndElement {
|
|
|
41
69
|
*/
|
|
42
70
|
level: number;
|
|
43
71
|
/**
|
|
44
|
-
* Visual size. Defaults by level (1 `xl`, 2 `lg`, 3 `md`, 4
|
|
72
|
+
* Visual size. Defaults by level (1 `xl`, 2 `lg`, 3 `md`, 4 `sm`, 5 `xs`,
|
|
73
|
+
* 6 `2xs`).
|
|
45
74
|
* @attr size
|
|
46
75
|
*/
|
|
47
76
|
size: HeadingSize | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* Display type (`display-1` largest to `display-3`); wins over `size`.
|
|
79
|
+
* @attr type
|
|
80
|
+
*/
|
|
81
|
+
type: HeadingType | undefined;
|
|
48
82
|
/**
|
|
49
83
|
* Color intent.
|
|
50
84
|
* @attr tone
|
|
51
85
|
*/
|
|
52
86
|
tone: HeadingTone;
|
|
87
|
+
/**
|
|
88
|
+
* Font weight. Unset keeps the weight of the size (semibold, or regular for
|
|
89
|
+
* display types).
|
|
90
|
+
* @attr weight
|
|
91
|
+
*/
|
|
92
|
+
weight: HeadingWeight | undefined;
|
|
93
|
+
/**
|
|
94
|
+
* Text alignment (logical: `start`, `center`, `end`).
|
|
95
|
+
* @attr align
|
|
96
|
+
*/
|
|
97
|
+
align: HeadingAlign | undefined;
|
|
98
|
+
/**
|
|
99
|
+
* Line wrapping (default `balance`).
|
|
100
|
+
* @attr text-wrap
|
|
101
|
+
*/
|
|
102
|
+
textWrap: HeadingWrap | undefined;
|
|
103
|
+
/**
|
|
104
|
+
* Clamps the heading to this many lines with an ellipsis (visual only).
|
|
105
|
+
* @attr lines
|
|
106
|
+
*/
|
|
107
|
+
lines: number | undefined;
|
|
108
|
+
/**
|
|
109
|
+
* Draws a line through the text.
|
|
110
|
+
* @attr strikethrough
|
|
111
|
+
*/
|
|
112
|
+
strikethrough: boolean;
|
|
53
113
|
constructor();
|
|
114
|
+
protected updated(changed: PropertyValues<this>): void;
|
|
54
115
|
protected render(): TemplateResult;
|
|
55
116
|
}
|
|
56
117
|
declare global {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"heading.d.ts","sourceRoot":"","sources":["../../../src/components/heading/heading.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"heading.d.ts","sourceRoot":"","sources":["../../../src/components/heading/heading.ts"],"names":[],"mappings":"AACA,OAAO,EAAQ,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAItD,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;AAC3E,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,CAAC;AAClE,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAC;AAClF,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAC;AACvE,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;AACtD,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAC;AAcnE;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,UAAW,SAAQ,UAAU;;IACxC,OAAgB,OAAO,SAAiB;IACxC,OAAgB,MAAM,0BAAiB;IAEvC,OAAgB,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAUxB;IAEF;;;;OAIG;IACK,KAAK,EAAE,MAAM,CAAC;IAEtB;;;;OAIG;IACK,IAAI,EAAE,WAAW,GAAG,SAAS,CAAC;IAEtC;;;OAGG;IACK,IAAI,EAAE,WAAW,GAAG,SAAS,CAAC;IAEtC;;;OAGG;IACK,IAAI,EAAE,WAAW,CAAC;IAE1B;;;;OAIG;IACK,MAAM,EAAE,aAAa,GAAG,SAAS,CAAC;IAE1C;;;OAGG;IACK,KAAK,EAAE,YAAY,GAAG,SAAS,CAAC;IAExC;;;OAGG;IACK,QAAQ,EAAE,WAAW,GAAG,SAAS,CAAC;IAE1C;;;OAGG;IACK,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAElC;;;OAGG;IACK,aAAa,EAAE,OAAO,CAAC;;cAeZ,OAAO,CAAC,OAAO,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;cAQ5C,MAAM,IAAI,cAAc;CAO5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,aAAa,EAAE,UAAU,CAAC;KAC3B;CACF"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* Visual design ported from Astryx (MIT, (c) Meta Platforms, Inc.); see THIRD_PARTY_NOTICES.md */
|
|
1
2
|
import { html } from 'lit';
|
|
2
3
|
import { UndElement } from '../../base/UndElement.js';
|
|
3
4
|
import { headingTag, toHeadingLevel } from '../shared/heading-tag.js';
|
|
@@ -8,14 +9,17 @@ const DEFAULT_SIZE = {
|
|
|
8
9
|
2: 'lg',
|
|
9
10
|
3: 'md',
|
|
10
11
|
4: 'sm',
|
|
11
|
-
5: '
|
|
12
|
-
6: '
|
|
12
|
+
5: 'xs',
|
|
13
|
+
6: '2xs',
|
|
13
14
|
};
|
|
15
|
+
const TYPES = ['display-1', 'display-2', 'display-3'];
|
|
14
16
|
/**
|
|
15
17
|
* A real `h1` to `h6` whose visual size is independent of its level: pick the
|
|
16
18
|
* level for the document outline and the size for the design. Without `size`
|
|
17
|
-
* the size follows the level.
|
|
18
|
-
*
|
|
19
|
+
* the size follows the level. `type` switches to a display size (larger,
|
|
20
|
+
* regular weight) for hero titles and data callouts. Lines grow taller for
|
|
21
|
+
* Indic scripts (Hindi, Tamil, Bengali and so on) so vowel signs are never
|
|
22
|
+
* clipped.
|
|
19
23
|
*
|
|
20
24
|
* @summary A heading with level semantics and an independent visual size.
|
|
21
25
|
* @tag und-heading
|
|
@@ -25,8 +29,8 @@ const DEFAULT_SIZE = {
|
|
|
25
29
|
* @csspart base - The `h1` to `h6` element.
|
|
26
30
|
*
|
|
27
31
|
* @cssprop [--und-heading-color] - Text color.
|
|
28
|
-
* @cssprop [--und-heading-font-size] - Font size (overrides `size`).
|
|
29
|
-
* @cssprop [--und-heading-font-weight] - Font weight.
|
|
32
|
+
* @cssprop [--und-heading-font-size] - Font size (overrides `size` and `type`).
|
|
33
|
+
* @cssprop [--und-heading-font-weight] - Font weight (overrides `weight`).
|
|
30
34
|
*/
|
|
31
35
|
export class UndHeading extends UndElement {
|
|
32
36
|
static tagName = 'und-heading';
|
|
@@ -34,17 +38,41 @@ export class UndHeading extends UndElement {
|
|
|
34
38
|
static properties = {
|
|
35
39
|
level: { type: Number, reflect: true },
|
|
36
40
|
size: { reflect: true },
|
|
41
|
+
type: { reflect: true },
|
|
37
42
|
tone: { reflect: true },
|
|
43
|
+
weight: { reflect: true },
|
|
44
|
+
align: { reflect: true },
|
|
45
|
+
textWrap: { reflect: true, attribute: 'text-wrap' },
|
|
46
|
+
lines: { type: Number, reflect: true },
|
|
47
|
+
strikethrough: { type: Boolean, reflect: true },
|
|
38
48
|
};
|
|
39
49
|
constructor() {
|
|
40
50
|
super();
|
|
41
51
|
this.level = 2;
|
|
42
52
|
this.tone = 'default';
|
|
53
|
+
this.strikethrough = false;
|
|
54
|
+
}
|
|
55
|
+
/** The valid clamp, or 0. */
|
|
56
|
+
#clamp() {
|
|
57
|
+
const n = Math.trunc(Number(this.lines));
|
|
58
|
+
return n >= 1 ? n : 0;
|
|
59
|
+
}
|
|
60
|
+
updated(changed) {
|
|
61
|
+
if (!changed.has('lines') && !changed.has('level'))
|
|
62
|
+
return;
|
|
63
|
+
const base = this.renderRoot.querySelector('.heading');
|
|
64
|
+
// CSSOM write: a style attribute binding would fail under a strict CSP.
|
|
65
|
+
if (this.#clamp())
|
|
66
|
+
base?.style.setProperty('--_lines', String(this.#clamp()));
|
|
67
|
+
else
|
|
68
|
+
base?.style.removeProperty('--_lines');
|
|
43
69
|
}
|
|
44
70
|
render() {
|
|
45
71
|
const level = toHeadingLevel(this.level);
|
|
46
72
|
const size = this.size ?? DEFAULT_SIZE[level];
|
|
47
|
-
|
|
73
|
+
const type = this.type && TYPES.includes(this.type) ? ` type-${this.type}` : '';
|
|
74
|
+
const clamp = this.#clamp() ? ' clamp' : '';
|
|
75
|
+
return headingTag(level, `heading size-${size}${type}${clamp}`, 'base', html `<slot></slot>`);
|
|
48
76
|
}
|
|
49
77
|
}
|
|
50
78
|
//# sourceMappingURL=heading.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"heading.js","sourceRoot":"","sources":["../../../src/components/heading/heading.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,
|
|
1
|
+
{"version":3,"file":"heading.js","sourceRoot":"","sources":["../../../src/components/heading/heading.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Shadow styles for `und-heading`. `@und-ui/css` (`.und-heading`) reads the
|
|
3
3
|
* same custom properties; a parity test keeps the two lists in sync.
|
|
4
|
+
*
|
|
5
|
+
* The scale follows the Astryx heading levels (24/20/17/14/12/10 px at the
|
|
6
|
+
* literal fallbacks) and its display types (42/35/29 px, regular weight).
|
|
4
7
|
*/
|
|
5
8
|
export declare const headingStyles: import("lit").CSSResult;
|
|
6
9
|
//# sourceMappingURL=heading.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"heading.styles.d.ts","sourceRoot":"","sources":["../../../src/components/heading/heading.styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"heading.styles.d.ts","sourceRoot":"","sources":["../../../src/components/heading/heading.styles.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,yBAsJzB,CAAC"}
|