@logicplanes/kaeso-ui 0.4.3 → 0.4.5
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/ai/component-guides.md +279 -98
- package/ai/component-registry.json +352 -236
- package/ai/component-registry.md +241 -219
- package/ai/icons.md +2 -2
- package/ai/tokens.md +18 -14
- package/dist/blocks/delete-resource.js +3 -3
- package/dist/blocks/delete-resource.js.map +1 -1
- package/dist/blocks/pages.js +47 -42
- package/dist/blocks/pages.js.map +1 -1
- package/dist/blocks/resource-list.js +68 -55
- package/dist/blocks/resource-list.js.map +1 -1
- package/dist/chunks/agent-avatar-DHieggHK.js +188 -0
- package/dist/chunks/agent-avatar-DHieggHK.js.map +1 -0
- package/dist/chunks/app-frame-DysOel2X.js +232 -0
- package/dist/chunks/app-frame-DysOel2X.js.map +1 -0
- package/dist/chunks/arrow-focus-B0KdRFX8.js +20 -0
- package/dist/chunks/arrow-focus-B0KdRFX8.js.map +1 -0
- package/dist/chunks/avatar-CYNMK7uY.js +110 -0
- package/dist/chunks/avatar-CYNMK7uY.js.map +1 -0
- package/dist/chunks/badge-C0GC3B9X.js +27 -0
- package/dist/chunks/badge-C0GC3B9X.js.map +1 -0
- package/dist/chunks/banner-B3DGLTBu.js +88 -0
- package/dist/chunks/banner-B3DGLTBu.js.map +1 -0
- package/dist/chunks/button-IblhXUyZ.js +202 -0
- package/dist/chunks/button-IblhXUyZ.js.map +1 -0
- package/dist/chunks/{calendar-BWaf2MXc.js → calendar-Dc6_dl0f.js} +4 -4
- package/dist/chunks/calendar-Dc6_dl0f.js.map +1 -0
- package/dist/chunks/checkbox-9tbimmF3.js +141 -0
- package/dist/chunks/checkbox-9tbimmF3.js.map +1 -0
- package/dist/chunks/{cn-Dj6sRgkF.js → cn-BjnOAUrA.js} +45 -4
- package/dist/chunks/cn-BjnOAUrA.js.map +1 -0
- package/dist/chunks/code-block-64e-Cy1S.js +346 -0
- package/dist/chunks/code-block-64e-Cy1S.js.map +1 -0
- package/dist/chunks/code-block-KIvuE8jg.js +352 -0
- package/dist/chunks/code-block-KIvuE8jg.js.map +1 -0
- package/dist/chunks/{code-tqj0uhBL.js → code-xqjww4Pv.js} +5 -6
- package/dist/chunks/code-xqjww4Pv.js.map +1 -0
- package/dist/chunks/combobox-DkcjkWc6.js +352 -0
- package/dist/chunks/combobox-DkcjkWc6.js.map +1 -0
- package/dist/chunks/command-list-CypqsC4T.js +456 -0
- package/dist/chunks/command-list-CypqsC4T.js.map +1 -0
- package/dist/chunks/{copy-button-FJvPJn72.js → copy-button-CwU8t_9_.js} +22 -15
- package/dist/chunks/copy-button-CwU8t_9_.js.map +1 -0
- package/dist/chunks/core-CmK-8ObW.js +505 -0
- package/dist/chunks/core-CmK-8ObW.js.map +1 -0
- package/dist/chunks/data-table-CqY8_6IS.js +581 -0
- package/dist/chunks/data-table-CqY8_6IS.js.map +1 -0
- package/dist/chunks/date-popup-DAnjptFt.js +58 -0
- package/dist/chunks/date-popup-DAnjptFt.js.map +1 -0
- package/dist/chunks/{de-CPXJh9cq.js → de-CqC4aSIV.js} +81 -40
- package/dist/chunks/de-CqC4aSIV.js.map +1 -0
- package/dist/chunks/{dialog-Cg9A_6SF.js → dialog-2zb6ClNR.js} +156 -134
- package/dist/chunks/dialog-2zb6ClNR.js.map +1 -0
- package/dist/chunks/disclosure-BtYRTDO3.js +22 -0
- package/dist/chunks/disclosure-BtYRTDO3.js.map +1 -0
- package/dist/chunks/domain-obd_w9xk.js +28 -0
- package/dist/chunks/domain-obd_w9xk.js.map +1 -0
- package/dist/chunks/{empty-DvhyMXQq.js → empty-BpiUgGzm.js} +2 -2
- package/dist/chunks/{empty-DvhyMXQq.js.map → empty-BpiUgGzm.js.map} +1 -1
- package/dist/chunks/{field-TviMvYa2.js → field-D7m-yl-D.js} +37 -34
- package/dist/chunks/field-D7m-yl-D.js.map +1 -0
- package/dist/chunks/{icon-D7ja-_Yk.js → icon-CBzOwqrX.js} +7 -6
- package/dist/chunks/{icon-D7ja-_Yk.js.map → icon-CBzOwqrX.js.map} +1 -1
- package/dist/chunks/icon-CPJWE2N-.js +95 -0
- package/dist/chunks/{icon-DVooQfk4.js.map → icon-CPJWE2N-.js.map} +1 -1
- package/dist/chunks/{icon-button-CrdF_eMG.js → icon-button-Dfwpvmav.js} +7 -6
- package/dist/chunks/icon-button-Dfwpvmav.js.map +1 -0
- package/dist/chunks/{identity-BmhQ6BQ-.js → identity-3Foi5F8w.js} +7 -7
- package/dist/chunks/{identity-BmhQ6BQ-.js.map → identity-3Foi5F8w.js.map} +1 -1
- package/dist/chunks/{input-2VJuj_M4.js → input-Bo5-UZg2.js} +15 -9
- package/dist/chunks/input-Bo5-UZg2.js.map +1 -0
- package/dist/chunks/{input-group-DQ_4DoXg.js → input-group-jPcK9T_a.js} +42 -29
- package/dist/chunks/input-group-jPcK9T_a.js.map +1 -0
- package/dist/chunks/iso-field-DoqHBg8n.js +52 -0
- package/dist/chunks/iso-field-DoqHBg8n.js.map +1 -0
- package/dist/chunks/json-view-DZ2nL2Ir.js +253 -0
- package/dist/chunks/json-view-DZ2nL2Ir.js.map +1 -0
- package/dist/chunks/{kbd-BF1vKXJf.js → kbd-8A0ML_up.js} +30 -28
- package/dist/chunks/kbd-8A0ML_up.js.map +1 -0
- package/dist/chunks/label-DW24Aj0Z.js +26 -0
- package/dist/chunks/label-DW24Aj0Z.js.map +1 -0
- package/dist/chunks/{link-KWI7PevW.js → link-CMjkcLQK.js} +14 -14
- package/dist/chunks/link-CMjkcLQK.js.map +1 -0
- package/dist/chunks/list-B4G-sWwV.js +540 -0
- package/dist/chunks/list-B4G-sWwV.js.map +1 -0
- package/dist/chunks/{loader-DCfPndXa.js → loader-zo8CCIGJ.js} +2 -2
- package/dist/chunks/{loader-DCfPndXa.js.map → loader-zo8CCIGJ.js.map} +1 -1
- package/dist/chunks/markdown-C565aBR7.js +338 -0
- package/dist/chunks/markdown-C565aBR7.js.map +1 -0
- package/dist/chunks/menu-Clvv6ftq.js +485 -0
- package/dist/chunks/menu-Clvv6ftq.js.map +1 -0
- package/dist/chunks/merge-refs-BN1FyQt9.js +20 -0
- package/dist/chunks/merge-refs-BN1FyQt9.js.map +1 -0
- package/dist/chunks/meter-CASMHlxl.js +100 -0
- package/dist/chunks/meter-CASMHlxl.js.map +1 -0
- package/dist/chunks/nav-sheet-Dt6JSvzX.js +67 -0
- package/dist/chunks/nav-sheet-Dt6JSvzX.js.map +1 -0
- package/dist/chunks/{nav-wordmark-_pjheAsZ.js → nav-wordmark-J4pB_vjr.js} +4 -8
- package/dist/chunks/nav-wordmark-J4pB_vjr.js.map +1 -0
- package/dist/chunks/page-header-kS5tdmvb.js +45 -0
- package/dist/chunks/page-header-kS5tdmvb.js.map +1 -0
- package/dist/chunks/pagination-D7fAm8qg.js +147 -0
- package/dist/chunks/pagination-D7fAm8qg.js.map +1 -0
- package/dist/chunks/picker-popover-1FHb1LQG.js +119 -0
- package/dist/chunks/picker-popover-1FHb1LQG.js.map +1 -0
- package/dist/chunks/popover-Bl5QYqnh.js +51 -0
- package/dist/chunks/popover-Bl5QYqnh.js.map +1 -0
- package/dist/chunks/{portal-context-BBbzDKmY.js → portal-context-CTatR2Z8.js} +14 -4
- package/dist/chunks/portal-context-CTatR2Z8.js.map +1 -0
- package/dist/chunks/{radio-CDDFpdtL.js → radio-C6GtzF_t.js} +38 -23
- package/dist/chunks/radio-C6GtzF_t.js.map +1 -0
- package/dist/chunks/range-popup-lGiZsG3s.js +160 -0
- package/dist/chunks/range-popup-lGiZsG3s.js.map +1 -0
- package/dist/chunks/reasoning-frame-C3HdQRRS.js +51 -0
- package/dist/chunks/reasoning-frame-C3HdQRRS.js.map +1 -0
- package/dist/chunks/release-art-ChiT4T2S.js +582 -0
- package/dist/chunks/release-art-ChiT4T2S.js.map +1 -0
- package/dist/chunks/rights-B68ocZuq.js +312 -0
- package/dist/chunks/rights-B68ocZuq.js.map +1 -0
- package/dist/chunks/{scroll-area-D8MD7Vpo.js → scroll-area-_Ljh4-bG.js} +11 -6
- package/dist/chunks/scroll-area-_Ljh4-bG.js.map +1 -0
- package/dist/chunks/section-CFBYhsUi.js +77 -0
- package/dist/chunks/section-CFBYhsUi.js.map +1 -0
- package/dist/chunks/section-header-DU1Q4Tdf.js +28 -0
- package/dist/chunks/section-header-DU1Q4Tdf.js.map +1 -0
- package/dist/chunks/segmented-D9i1avik.js +119 -0
- package/dist/chunks/segmented-D9i1avik.js.map +1 -0
- package/dist/chunks/select-BqjmQOqx.js +222 -0
- package/dist/chunks/select-BqjmQOqx.js.map +1 -0
- package/dist/chunks/{separator-D7TzNHmX.js → separator-BNWf6BBj.js} +13 -8
- package/dist/chunks/separator-BNWf6BBj.js.map +1 -0
- package/dist/chunks/sidebar-Dq7oGOje.js +664 -0
- package/dist/chunks/sidebar-Dq7oGOje.js.map +1 -0
- package/dist/chunks/{sidebar-menu-BN3jkTlK.js → sidebar-menu-QSSNu1jJ.js} +2 -2
- package/dist/chunks/{sidebar-menu-BN3jkTlK.js.map → sidebar-menu-QSSNu1jJ.js.map} +1 -1
- package/dist/chunks/{skeleton-Dcz57Zyp.js → skeleton-D-qk3mes.js} +3 -3
- package/dist/chunks/skeleton-D-qk3mes.js.map +1 -0
- package/dist/chunks/slider-CcE8GtuV.js +58 -0
- package/dist/chunks/slider-CcE8GtuV.js.map +1 -0
- package/dist/chunks/{status-dot-QJTF0Yv4.js → status-dot-CP6runiC.js} +4 -4
- package/dist/chunks/{status-dot-QJTF0Yv4.js.map → status-dot-CP6runiC.js.map} +1 -1
- package/dist/chunks/{styles-CVJU9t9v.js → styles-hkFkoBbi.js} +2 -2
- package/dist/chunks/{styles-CVJU9t9v.js.map → styles-hkFkoBbi.js.map} +1 -1
- package/dist/chunks/{swap-text-Dr0Irxz6.js → swap-text-SlUjrTlG.js} +3 -3
- package/dist/chunks/swap-text-SlUjrTlG.js.map +1 -0
- package/dist/chunks/switch-ngywMQdl.js +76 -0
- package/dist/chunks/switch-ngywMQdl.js.map +1 -0
- package/dist/chunks/table-CTK5E0J7.js +102 -0
- package/dist/chunks/table-CTK5E0J7.js.map +1 -0
- package/dist/chunks/tag-BGr6lTSV.js +100 -0
- package/dist/chunks/tag-BGr6lTSV.js.map +1 -0
- package/dist/chunks/{text-CIXH8rmT.js → text-DkKdTVUf.js} +9 -9
- package/dist/chunks/text-DkKdTVUf.js.map +1 -0
- package/dist/chunks/{textarea--4FRL3Pb.js → textarea-CO0HP6fK.js} +47 -36
- package/dist/chunks/textarea-CO0HP6fK.js.map +1 -0
- package/dist/chunks/timeseries-Ck-q0wWn.js +381 -0
- package/dist/chunks/timeseries-Ck-q0wWn.js.map +1 -0
- package/dist/chunks/toolbar-u0Gm7Q7-.js +61 -0
- package/dist/chunks/toolbar-u0Gm7Q7-.js.map +1 -0
- package/dist/chunks/tooltip-Tkm-urbi.js +202 -0
- package/dist/chunks/tooltip-Tkm-urbi.js.map +1 -0
- package/dist/chunks/tooltip-root-BC_RNNiP.js +70 -0
- package/dist/chunks/tooltip-root-BC_RNNiP.js.map +1 -0
- package/dist/chunks/truncated-d1afmUJT.js +33 -0
- package/dist/chunks/truncated-d1afmUJT.js.map +1 -0
- package/dist/chunks/use-coarse-pointer-Ml5oE6oX.js +28 -0
- package/dist/chunks/use-coarse-pointer-Ml5oE6oX.js.map +1 -0
- package/dist/chunks/use-hydrating-COtYVRo4.js +8 -0
- package/dist/chunks/use-hydrating-COtYVRo4.js.map +1 -0
- package/dist/chunks/use-scroll-fade-uc8mWSDX.js +30 -0
- package/dist/chunks/use-scroll-fade-uc8mWSDX.js.map +1 -0
- package/dist/chunks/{zh-CN-29X4CDLE.js → zh-CN-BlpsT6d_.js} +80 -39
- package/dist/chunks/zh-CN-BlpsT6d_.js.map +1 -0
- package/dist/components/agent-avatar.js +1 -1
- package/dist/components/app-frame.js +2 -2
- package/dist/components/avatar.js +1 -1
- package/dist/components/badge.js +1 -1
- package/dist/components/banner.js +1 -1
- package/dist/components/button-group.js +22 -22
- package/dist/components/button-group.js.map +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/calendar.js +1 -1
- package/dist/components/charts/bar.js +235 -160
- package/dist/components/charts/bar.js.map +1 -1
- package/dist/components/charts/donut.js +144 -99
- package/dist/components/charts/donut.js.map +1 -1
- package/dist/components/charts/gauge.js +61 -49
- package/dist/components/charts/gauge.js.map +1 -1
- package/dist/components/charts/heatmap.js +179 -70
- package/dist/components/charts/heatmap.js.map +1 -1
- package/dist/components/charts/sankey.js +144 -77
- package/dist/components/charts/sankey.js.map +1 -1
- package/dist/components/charts/sparkline.js +54 -38
- package/dist/components/charts/sparkline.js.map +1 -1
- package/dist/components/charts/timeseries.js +1 -1
- package/dist/components/charts.js +2 -2
- package/dist/components/checkbox.js +1 -1
- package/dist/components/code-block.js +4 -3
- package/dist/components/code.js +1 -1
- package/dist/components/collapsible.js +77 -1
- package/dist/components/collapsible.js.map +1 -0
- package/dist/components/combobox.js +1 -1
- package/dist/components/command-list.js +2 -2
- package/dist/components/command-palette.js +89 -66
- package/dist/components/command-palette.js.map +1 -1
- package/dist/components/copy-button.js +1 -1
- package/dist/components/data-table.js +1 -459
- package/dist/components/date-picker.js +162 -151
- package/dist/components/date-picker.js.map +1 -1
- package/dist/components/dialog.js +74 -63
- package/dist/components/dialog.js.map +1 -1
- package/dist/components/display-options.js +76 -64
- package/dist/components/display-options.js.map +1 -1
- package/dist/components/empty.js +1 -1
- package/dist/components/field.js +1 -1
- package/dist/components/figure.js +2 -2
- package/dist/components/filter-chip.js +36 -27
- package/dist/components/filter-chip.js.map +1 -1
- package/dist/components/filter-row.js +4 -4
- package/dist/components/filter-row.js.map +1 -1
- package/dist/components/flow.js +94 -63
- package/dist/components/flow.js.map +1 -1
- package/dist/components/heading.js +1 -1
- package/dist/components/icon-button.js +1 -1
- package/dist/components/icon.js +2 -2
- package/dist/components/input.js +176 -98
- package/dist/components/input.js.map +1 -1
- package/dist/components/kaeso/conversation.js +51 -46
- package/dist/components/kaeso/conversation.js.map +1 -1
- package/dist/components/kaeso/identity.js +1 -1
- package/dist/components/kaeso/moments.js +23 -20
- package/dist/components/kaeso/moments.js.map +1 -1
- package/dist/components/kaeso/rights.js +1 -1
- package/dist/components/kaeso/usage.js +90 -74
- package/dist/components/kaeso/usage.js.map +1 -1
- package/dist/components/kaeso.js +200 -187
- package/dist/components/kaeso.js.map +1 -1
- package/dist/components/kbd.js +1 -1
- package/dist/components/key-value.js +32 -47
- package/dist/components/key-value.js.map +1 -1
- package/dist/components/label.js +1 -25
- package/dist/components/layout.js +2 -2
- package/dist/components/layout.js.map +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/list.js +1 -1
- package/dist/components/loader.js +11 -10
- package/dist/components/loader.js.map +1 -1
- package/dist/components/logo.js +2 -2
- package/dist/components/markdown.js +1 -1
- package/dist/components/menu.js +2 -2
- package/dist/components/meter.js +1 -1
- package/dist/components/page-header.js +1 -1
- package/dist/components/pagination.js +1 -1
- package/dist/components/playground.js +644 -529
- package/dist/components/playground.js.map +1 -1
- package/dist/components/popover.js +4 -4
- package/dist/components/popover.js.map +1 -1
- package/dist/components/portal.js +1 -1
- package/dist/components/qr-code.js +2 -2
- package/dist/components/qr-code.js.map +1 -1
- package/dist/components/radio.js +1 -1
- package/dist/components/release-art.js +1 -1
- package/dist/components/scroll-area.js +1 -1
- package/dist/components/section.js +1 -1
- package/dist/components/segmented.js +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/separator.js +1 -1
- package/dist/components/settings.js +39 -46
- package/dist/components/settings.js.map +1 -1
- package/dist/components/sheet.js +10 -9
- package/dist/components/sheet.js.map +1 -1
- package/dist/components/sidebar.js +1 -1
- package/dist/components/skeleton.js +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/stat.js +98 -84
- package/dist/components/stat.js.map +1 -1
- package/dist/components/status-dot.js +1 -1
- package/dist/components/surface.js +1 -1
- package/dist/components/swap-text.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/table.js +1 -1
- package/dist/components/tabs.js +73 -55
- package/dist/components/tabs.js.map +1 -1
- package/dist/components/tag.js +1 -1
- package/dist/components/text.js +1 -1
- package/dist/components/theme-image.js +1 -1
- package/dist/components/theme-menu.js +5 -2
- package/dist/components/theme-menu.js.map +1 -1
- package/dist/components/theme-select.js +1 -1
- package/dist/components/thumbnail.js +35 -24
- package/dist/components/thumbnail.js.map +1 -1
- package/dist/components/timeline.js +51 -35
- package/dist/components/timeline.js.map +1 -1
- package/dist/components/toast.js +76 -66
- package/dist/components/toast.js.map +1 -1
- package/dist/components/toc.js +14 -8
- package/dist/components/toc.js.map +1 -1
- package/dist/components/toolbar.js +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/components/visually-hidden.js +1 -1
- package/dist/i18n-provider.js +1 -1
- package/dist/index.js +101 -101
- package/dist/kaeso.css +605 -67
- package/dist/styles.css +1 -1
- package/dist/tailwind.css +1 -1
- package/dist/types/blocks/delete-resource/delete-resource.d.ts +2 -2
- package/dist/types/components/agent-avatar/agent-avatar.d.ts +24 -19
- package/dist/types/components/badge/badge.d.ts +3 -3
- package/dist/types/components/banner/banner.d.ts +3 -3
- package/dist/types/components/button/button.d.ts +2 -2
- package/dist/types/components/button-group/button-group.d.ts +1 -1
- package/dist/types/components/charts/domain.d.ts +11 -0
- package/dist/types/components/charts/marks.d.ts +1 -0
- package/dist/types/components/code/code.d.ts +3 -3
- package/dist/types/components/code-block/diff-view.d.ts +30 -0
- package/dist/types/components/code-block/diff.d.ts +26 -0
- package/dist/types/components/code-block/docs.d.ts +14 -0
- package/dist/types/components/code-block/index.d.ts +1 -0
- package/dist/types/components/code-block/json-view.d.ts +2 -1
- package/dist/types/components/code-block/numbers.d.ts +1 -0
- package/dist/types/components/collapsible/collapsible.d.ts +2 -2
- package/dist/types/components/collapsible/disclosure.d.ts +2 -0
- package/dist/types/components/data-table/data-table.d.ts +6 -5
- package/dist/types/components/data-table/docs.d.ts +1 -0
- package/dist/types/components/data-table/time-columns.d.ts +1 -0
- package/dist/types/components/date-picker/focus-day.d.ts +1 -0
- package/dist/types/components/date-picker/iso-field.d.ts +8 -1
- package/dist/types/components/dialog/dialog.d.ts +7 -7
- package/dist/types/components/field/field.d.ts +1 -1
- package/dist/types/components/flow/flow.d.ts +1 -1
- package/dist/types/components/icon-button/icon-button.d.ts +1 -1
- package/dist/types/components/input/input-group.d.ts +2 -0
- package/dist/types/components/input/number-input.d.ts +4 -4
- package/dist/types/components/input/otp-input.d.ts +3 -3
- package/dist/types/components/kaeso/client-button.d.ts +2 -1
- package/dist/types/components/kaeso/provider-picker.d.ts +1 -0
- package/dist/types/components/kaeso/rights.d.ts +1 -1
- package/dist/types/components/kaeso/role-picker.d.ts +1 -0
- package/dist/types/components/key-value/key-value.d.ts +2 -2
- package/dist/types/components/layout/layout.d.ts +2 -2
- package/dist/types/components/link/link.d.ts +4 -4
- package/dist/types/components/list/list.d.ts +2 -2
- package/dist/types/components/menu/menu.d.ts +2 -1
- package/dist/types/components/menu/styles.d.ts +3 -3
- package/dist/types/components/meter/meter.d.ts +3 -3
- package/dist/types/components/page-header/page-header.d.ts +1 -1
- package/dist/types/components/pagination/pagination.d.ts +2 -2
- package/dist/types/components/playground/prompt-suggestions.d.ts +1 -0
- package/dist/types/components/playground/reasoning-frame.d.ts +14 -0
- package/dist/types/components/playground/reasoning.d.ts +1 -0
- package/dist/types/components/popover/popover.d.ts +1 -1
- package/dist/types/components/scroll-area/scroll-area.d.ts +2 -2
- package/dist/types/components/section/section-header.d.ts +6 -0
- package/dist/types/components/segmented/segmented.d.ts +1 -0
- package/dist/types/components/select/select.d.ts +1 -1
- package/dist/types/components/sheet/sheet.d.ts +3 -3
- package/dist/types/components/sidebar/sidebar.d.ts +1 -0
- package/dist/types/components/slider/slider.d.ts +2 -2
- package/dist/types/components/stat/stat.d.ts +1 -1
- package/dist/types/components/tabs/tabs.d.ts +6 -4
- package/dist/types/components/text/truncated.d.ts +7 -0
- package/dist/types/components/timeline/timeline.d.ts +5 -5
- package/dist/types/components/toc/toc.d.ts +1 -1
- package/dist/types/components/toolbar/toolbar.d.ts +1 -1
- package/dist/types/components/tooltip/tooltip.d.ts +2 -2
- package/dist/types/components/tooltip/trigger-props.d.ts +1 -0
- package/dist/types/hooks/use-coarse-pointer.d.ts +1 -0
- package/dist/types/hooks/use-hydrating.d.ts +1 -0
- package/dist/types/icons/groups.d.ts +1 -1
- package/dist/types/icons/vocabulary.d.ts +5 -0
- package/dist/types/utils/arrow-focus.d.ts +4 -1
- package/dist/types/utils/cn.d.ts +33 -0
- package/dist/types/utils/portal-context.d.ts +7 -1
- package/dist/utils.js +2 -2
- package/foundations/accessibility.md +3 -2
- package/foundations/color.md +5 -1
- package/foundations/elevation.md +1 -0
- package/foundations/motion.md +1 -1
- package/foundations/shape.md +2 -2
- package/foundations/typography.md +12 -12
- package/package.json +2 -2
- package/dist/chunks/agent-avatar-0pdBTWkR.js +0 -171
- package/dist/chunks/agent-avatar-0pdBTWkR.js.map +0 -1
- package/dist/chunks/app-frame-DogGRmsu.js +0 -221
- package/dist/chunks/app-frame-DogGRmsu.js.map +0 -1
- package/dist/chunks/arrow-focus-BcySmwwU.js +0 -11
- package/dist/chunks/arrow-focus-BcySmwwU.js.map +0 -1
- package/dist/chunks/avatar-CWbdwbJv.js +0 -83
- package/dist/chunks/avatar-CWbdwbJv.js.map +0 -1
- package/dist/chunks/badge-C2KtxCLB.js +0 -26
- package/dist/chunks/badge-C2KtxCLB.js.map +0 -1
- package/dist/chunks/banner-BA2ALw9M.js +0 -85
- package/dist/chunks/banner-BA2ALw9M.js.map +0 -1
- package/dist/chunks/button-CzuxqawA.js +0 -164
- package/dist/chunks/button-CzuxqawA.js.map +0 -1
- package/dist/chunks/calendar-BWaf2MXc.js.map +0 -1
- package/dist/chunks/checkbox-CQjwCPkc.js +0 -126
- package/dist/chunks/checkbox-CQjwCPkc.js.map +0 -1
- package/dist/chunks/cn-Dj6sRgkF.js.map +0 -1
- package/dist/chunks/code-block-D5A-CGXG.js +0 -330
- package/dist/chunks/code-block-D5A-CGXG.js.map +0 -1
- package/dist/chunks/code-tqj0uhBL.js.map +0 -1
- package/dist/chunks/collapsible-CKrCX_T9.js +0 -87
- package/dist/chunks/collapsible-CKrCX_T9.js.map +0 -1
- package/dist/chunks/combobox-DjDI7SUC.js +0 -319
- package/dist/chunks/combobox-DjDI7SUC.js.map +0 -1
- package/dist/chunks/command-list-C2Y7V_lt.js +0 -418
- package/dist/chunks/command-list-C2Y7V_lt.js.map +0 -1
- package/dist/chunks/copy-button-FJvPJn72.js.map +0 -1
- package/dist/chunks/core-BYns5ytV.js +0 -472
- package/dist/chunks/core-BYns5ytV.js.map +0 -1
- package/dist/chunks/date-popup-CPA_zt6o.js +0 -35
- package/dist/chunks/date-popup-CPA_zt6o.js.map +0 -1
- package/dist/chunks/de-CPXJh9cq.js.map +0 -1
- package/dist/chunks/dialog-Cg9A_6SF.js.map +0 -1
- package/dist/chunks/field-TviMvYa2.js.map +0 -1
- package/dist/chunks/hidden-description-B2zSmLcn.js +0 -23
- package/dist/chunks/hidden-description-B2zSmLcn.js.map +0 -1
- package/dist/chunks/icon-DVooQfk4.js +0 -94
- package/dist/chunks/icon-button-CrdF_eMG.js.map +0 -1
- package/dist/chunks/input-2VJuj_M4.js.map +0 -1
- package/dist/chunks/input-group-DQ_4DoXg.js.map +0 -1
- package/dist/chunks/iso-field-B2rTwiBo.js +0 -33
- package/dist/chunks/iso-field-B2rTwiBo.js.map +0 -1
- package/dist/chunks/json-view-Dqd2TDkc.js +0 -175
- package/dist/chunks/json-view-Dqd2TDkc.js.map +0 -1
- package/dist/chunks/kbd-BF1vKXJf.js.map +0 -1
- package/dist/chunks/link-KWI7PevW.js.map +0 -1
- package/dist/chunks/list-M1csq-d4.js +0 -494
- package/dist/chunks/list-M1csq-d4.js.map +0 -1
- package/dist/chunks/markdown-DULktoTK.js +0 -313
- package/dist/chunks/markdown-DULktoTK.js.map +0 -1
- package/dist/chunks/menu-DEmBfdPm.js +0 -450
- package/dist/chunks/menu-DEmBfdPm.js.map +0 -1
- package/dist/chunks/meter-Bj4N3Xuh.js +0 -84
- package/dist/chunks/meter-Bj4N3Xuh.js.map +0 -1
- package/dist/chunks/nav-sheet-CzgIwgAm.js +0 -60
- package/dist/chunks/nav-sheet-CzgIwgAm.js.map +0 -1
- package/dist/chunks/nav-wordmark-_pjheAsZ.js.map +0 -1
- package/dist/chunks/page-header-DL2y2iZp.js +0 -41
- package/dist/chunks/page-header-DL2y2iZp.js.map +0 -1
- package/dist/chunks/pagination-Cn_qF4cg.js +0 -86
- package/dist/chunks/pagination-Cn_qF4cg.js.map +0 -1
- package/dist/chunks/picker-popover-BxyU1U9F.js +0 -106
- package/dist/chunks/picker-popover-BxyU1U9F.js.map +0 -1
- package/dist/chunks/popover-DNN4S47w.js +0 -50
- package/dist/chunks/popover-DNN4S47w.js.map +0 -1
- package/dist/chunks/portal-context-BBbzDKmY.js.map +0 -1
- package/dist/chunks/radio-CDDFpdtL.js.map +0 -1
- package/dist/chunks/range-popup-CRyWYUB1.js +0 -128
- package/dist/chunks/range-popup-CRyWYUB1.js.map +0 -1
- package/dist/chunks/release-art-ZwfFQImt.js +0 -561
- package/dist/chunks/release-art-ZwfFQImt.js.map +0 -1
- package/dist/chunks/rights-Cyp0Pzp-.js +0 -279
- package/dist/chunks/rights-Cyp0Pzp-.js.map +0 -1
- package/dist/chunks/scroll-area-D8MD7Vpo.js.map +0 -1
- package/dist/chunks/scroll-parent-WXvzQcUo.js +0 -14
- package/dist/chunks/scroll-parent-WXvzQcUo.js.map +0 -1
- package/dist/chunks/section-Ce1efbsP.js +0 -87
- package/dist/chunks/section-Ce1efbsP.js.map +0 -1
- package/dist/chunks/segmented-CErcoxwi.js +0 -114
- package/dist/chunks/segmented-CErcoxwi.js.map +0 -1
- package/dist/chunks/select-x4XVsdCI.js +0 -210
- package/dist/chunks/select-x4XVsdCI.js.map +0 -1
- package/dist/chunks/separator-D7TzNHmX.js.map +0 -1
- package/dist/chunks/sidebar-3r1ZRXlN.js +0 -621
- package/dist/chunks/sidebar-3r1ZRXlN.js.map +0 -1
- package/dist/chunks/skeleton-Dcz57Zyp.js.map +0 -1
- package/dist/chunks/slider-Ci83PGtj.js +0 -57
- package/dist/chunks/slider-Ci83PGtj.js.map +0 -1
- package/dist/chunks/swap-text-Dr0Irxz6.js.map +0 -1
- package/dist/chunks/switch-BNMq_kGt.js +0 -59
- package/dist/chunks/switch-BNMq_kGt.js.map +0 -1
- package/dist/chunks/table-BeOSKl_3.js +0 -84
- package/dist/chunks/table-BeOSKl_3.js.map +0 -1
- package/dist/chunks/tag-D_M1s2qS.js +0 -87
- package/dist/chunks/tag-D_M1s2qS.js.map +0 -1
- package/dist/chunks/text-CIXH8rmT.js.map +0 -1
- package/dist/chunks/textarea--4FRL3Pb.js.map +0 -1
- package/dist/chunks/timeseries-D1xjRXfk.js +0 -339
- package/dist/chunks/timeseries-D1xjRXfk.js.map +0 -1
- package/dist/chunks/toolbar-WA_oZgu-.js +0 -37
- package/dist/chunks/toolbar-WA_oZgu-.js.map +0 -1
- package/dist/chunks/tooltip-OcwO0VUT.js +0 -154
- package/dist/chunks/tooltip-OcwO0VUT.js.map +0 -1
- package/dist/chunks/tooltip-root-DzahJDVj.js +0 -60
- package/dist/chunks/tooltip-root-DzahJDVj.js.map +0 -1
- package/dist/chunks/zh-CN-29X4CDLE.js.map +0 -1
- package/dist/components/data-table.js.map +0 -1
- package/dist/components/label.js.map +0 -1
|
@@ -0,0 +1,540 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { t as e } from "./cn-BjnOAUrA.js";
|
|
3
|
+
import { r as t } from "./portal-context-CTatR2Z8.js";
|
|
4
|
+
import { a as n, i as r } from "./inset-BUzyXLK4.js";
|
|
5
|
+
import { i } from "./context-BELWW79w.js";
|
|
6
|
+
import { t as a } from "./icon-CBzOwqrX.js";
|
|
7
|
+
import { s as o, u as s } from "./tooltip-Tkm-urbi.js";
|
|
8
|
+
import { r as c } from "./text-DkKdTVUf.js";
|
|
9
|
+
import { t as l } from "./icon-button-Dfwpvmav.js";
|
|
10
|
+
import { n as u } from "./use-layout-width-CbSDbRb0.js";
|
|
11
|
+
import { r as d } from "./skeleton-D-qk3mes.js";
|
|
12
|
+
import { t as f } from "./truncated-d1afmUJT.js";
|
|
13
|
+
import { n as p, t as m } from "./use-coarse-pointer-Ml5oE6oX.js";
|
|
14
|
+
import { forwardRef as h, useCallback as g, useEffect as _, useLayoutEffect as v, useMemo as y, useRef as b, useState as x } from "react";
|
|
15
|
+
import { jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
16
|
+
import { Add01Icon as w, Cancel01Icon as T } from "@hugeicons/core-free-icons";
|
|
17
|
+
import { createPortal as E } from "react-dom";
|
|
18
|
+
//#region src/components/list/row-checkbox.tsx
|
|
19
|
+
var D = /* @__PURE__ */ o(() => import("./checkbox-9tbimmF3.js").then((e) => e.c), { base: () => import.meta.url });
|
|
20
|
+
function ee({ checked: t, onToggle: n, "aria-label": r }) {
|
|
21
|
+
let [i, a] = s(D, !0), [o, c] = x(!1), [l, u] = x(!1);
|
|
22
|
+
return _(() => {
|
|
23
|
+
if (!l) return;
|
|
24
|
+
let e, t = () => {
|
|
25
|
+
e = setTimeout(() => u(!1));
|
|
26
|
+
};
|
|
27
|
+
return window.addEventListener("pointerup", t, !0), window.addEventListener("pointercancel", t, !0), () => {
|
|
28
|
+
clearTimeout(e), window.removeEventListener("pointerup", t, !0), window.removeEventListener("pointercancel", t, !0);
|
|
29
|
+
};
|
|
30
|
+
}, [l]), i && !o && !l ? /* @__PURE__ */ S(i.CheckboxBox, {
|
|
31
|
+
checked: t,
|
|
32
|
+
onCheckedChange: n,
|
|
33
|
+
"aria-label": r
|
|
34
|
+
}) : /* @__PURE__ */ S("span", {
|
|
35
|
+
role: "checkbox",
|
|
36
|
+
"aria-checked": t,
|
|
37
|
+
"aria-label": r,
|
|
38
|
+
onPointerEnter: () => {
|
|
39
|
+
c(!0), a();
|
|
40
|
+
},
|
|
41
|
+
onPointerLeave: () => c(!1),
|
|
42
|
+
onPointerDown: () => u(!0),
|
|
43
|
+
onClick: () => {
|
|
44
|
+
n(), c(!1), u(!1);
|
|
45
|
+
},
|
|
46
|
+
className: "relative -m-3 inline-flex size-24 shrink-0 cursor-pointer items-center justify-center rounded-checkbox",
|
|
47
|
+
children: /* @__PURE__ */ S("span", {
|
|
48
|
+
"aria-hidden": !0,
|
|
49
|
+
className: e("flex size-18 items-center justify-center rounded-checkbox", t ? "bg-ink" : "bg-raised shadow-selector")
|
|
50
|
+
})
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
//#endregion
|
|
54
|
+
//#region src/components/list/list.tsx
|
|
55
|
+
var O = /* @__PURE__ */ o(() => import("./virtual-rows-CC_kc2PR.js"), { base: () => import.meta.url }), k = { density: {
|
|
56
|
+
default: { classes: "h-44" },
|
|
57
|
+
compact: { classes: "h-36 coarse:h-44" }
|
|
58
|
+
} }, A = { density: "default" }, te = {
|
|
59
|
+
48: "w-48",
|
|
60
|
+
64: "w-64",
|
|
61
|
+
80: "w-80",
|
|
62
|
+
96: "w-96",
|
|
63
|
+
120: "w-120"
|
|
64
|
+
}, j = 520, M = "a[href], button, input, select, textarea, [tabindex], [contenteditable=true]", N = "input:not([type=checkbox]):not([type=radio]), textarea, select, [contenteditable=true]";
|
|
65
|
+
function P(e) {
|
|
66
|
+
for (let t of e.querySelectorAll("[role=row]")) {
|
|
67
|
+
let e = t.querySelector("[data-index]");
|
|
68
|
+
if (e) for (let n of t.querySelectorAll(M)) n !== e && n.getAttribute("tabindex") !== "-1" && n.setAttribute("tabindex", "-1");
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
var F = /* @__PURE__ */ h(function({ items: t, groups: r, onOpen: i, selectable: a, selected: o, onSelectedChange: c, idWidth: l, density: d = "default", wrapSubtitle: f = !1, virtualizeAbove: h = 100, selectionActions: _, selectionBar: w = !0, loading: T, empty: E, className: D, "aria-label": ee, "data-force-row": k }, A) {
|
|
72
|
+
let te = n(), [F, ne] = x(/* @__PURE__ */ new Set()), I = o ?? F, B = g((e) => {
|
|
73
|
+
o || ne(e), c?.(e);
|
|
74
|
+
}, [o, c]), [V, oe] = x(() => new Set((r ?? []).filter((e) => e.defaultCollapsed).map((e) => e.id))), [H, U] = x(-1), [se, ce] = x(null), W = b(null), G = b(null), le = u(W), K = !!le && le < j, q = y(() => {
|
|
75
|
+
let e = (e) => e.flatMap((e) => [{
|
|
76
|
+
kind: "row",
|
|
77
|
+
item: e,
|
|
78
|
+
depth: 0,
|
|
79
|
+
lastChild: !1,
|
|
80
|
+
key: e.id
|
|
81
|
+
}, ...(e.children ?? []).map((e, t, n) => ({
|
|
82
|
+
kind: "row",
|
|
83
|
+
item: e,
|
|
84
|
+
depth: 1,
|
|
85
|
+
lastChild: t === n.length - 1,
|
|
86
|
+
key: e.id
|
|
87
|
+
}))]);
|
|
88
|
+
return r ? r.flatMap((t) => [{
|
|
89
|
+
kind: "header",
|
|
90
|
+
group: t,
|
|
91
|
+
key: `h-${t.id}`
|
|
92
|
+
}, ...V.has(t.id) ? [] : e(t.items)]) : e(t ?? []);
|
|
93
|
+
}, [
|
|
94
|
+
t,
|
|
95
|
+
r,
|
|
96
|
+
V
|
|
97
|
+
]), ue = q.findIndex((e) => e.kind === "row"), de = r ? r.every((e) => e.items.length === 0) : (t ?? []).length === 0, J = q.length > h, fe = m(), pe = (e) => q[e]?.kind === "header" ? e === 0 ? 36 : 52 : K ? 64 : d === "compact" && !fe ? 36 : 44, [me, Y] = s(O, J), X = me?.VirtualRows, he = b(null);
|
|
98
|
+
H >= q.length && U(-1);
|
|
99
|
+
let Z = H >= 0 ? H : q.length ? 0 : -1, ge = (e) => {
|
|
100
|
+
U(e), J && he.current?.(e);
|
|
101
|
+
let t = () => W.current?.querySelector(`[data-index="${e}"]`), n = (e) => {
|
|
102
|
+
e && (e.focus(), re(e, G.current));
|
|
103
|
+
}, r = t();
|
|
104
|
+
r ? n(r) : requestAnimationFrame(() => n(t()));
|
|
105
|
+
}, _e = b(!!X);
|
|
106
|
+
v(() => {
|
|
107
|
+
X && !_e.current && H >= 0 && document.activeElement === document.body && W.current?.querySelector(`[data-index="${H}"]`)?.focus(), _e.current = !!X;
|
|
108
|
+
}), v(() => {
|
|
109
|
+
let e = W.current;
|
|
110
|
+
if (!e) return;
|
|
111
|
+
P(e);
|
|
112
|
+
let t = new MutationObserver(() => P(e));
|
|
113
|
+
return t.observe(e, {
|
|
114
|
+
subtree: !0,
|
|
115
|
+
childList: !0,
|
|
116
|
+
attributes: !0,
|
|
117
|
+
attributeFilter: ["tabindex"]
|
|
118
|
+
}), () => t.disconnect();
|
|
119
|
+
}, []);
|
|
120
|
+
let ve = (e) => {
|
|
121
|
+
let t = new Set(I);
|
|
122
|
+
t.has(e) ? t.delete(e) : t.add(e), B(t);
|
|
123
|
+
}, ye = (e) => e.flatMap((e) => e.kind === "row" && !e.item.disabled ? [e.item.id] : []), be = (e) => {
|
|
124
|
+
let t = e.target;
|
|
125
|
+
if (!e.currentTarget.contains(t) || t.closest(N)) return;
|
|
126
|
+
let n = t.closest("[role=row]"), r = n?.querySelector("[data-index]");
|
|
127
|
+
if (!n || !r) return;
|
|
128
|
+
let o = t === r;
|
|
129
|
+
if (e.key === "Escape" && !o && !e.altKey && !e.metaKey && !e.ctrlKey && !t.closest("[data-popup-open], [aria-expanded=true]")) {
|
|
130
|
+
e.preventDefault(), r.focus();
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
if (e.defaultPrevented) return;
|
|
134
|
+
let s = Number(r.dataset.index), c = q[s], l = c?.kind === "row" ? c.item : void 0;
|
|
135
|
+
if (e.altKey) return;
|
|
136
|
+
if (e.metaKey || e.ctrlKey) {
|
|
137
|
+
e.key.toLowerCase() === "a" && a && !e.shiftKey && (e.preventDefault(), B(new Set(ye(q))));
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
let u = (t) => {
|
|
141
|
+
if (e.preventDefault(), e.shiftKey && a) {
|
|
142
|
+
let e = se ?? s;
|
|
143
|
+
ce(e);
|
|
144
|
+
let n = new Set(I);
|
|
145
|
+
ye(q.slice(Math.min(e, t), Math.max(e, t) + 1)).forEach((e) => n.add(e)), B(n);
|
|
146
|
+
} else ce(null);
|
|
147
|
+
ge(t);
|
|
148
|
+
}, d = () => [...n.querySelectorAll(M)].filter((e) => e !== r && !e.closest("[role=checkbox], [aria-hidden=true], [hidden]") && !e.matches(":disabled, input[type=checkbox]"));
|
|
149
|
+
if (e.key === "ArrowDown" || e.key === "j" && !e.shiftKey) u(Math.min(q.length - 1, s + 1));
|
|
150
|
+
else if (e.key === "ArrowUp" || e.key === "k" && !e.shiftKey) u(Math.max(0, s - 1));
|
|
151
|
+
else if (e.key === "Home") u(0);
|
|
152
|
+
else if (e.key === "End") u(q.length - 1);
|
|
153
|
+
else if (e.key === "ArrowRight" || e.key === "ArrowLeft") {
|
|
154
|
+
let n = d(), i = o ? -1 : n.indexOf(t), a = e.key === "ArrowRight" ? n[i + 1] : i > 0 ? n[i - 1] : i === 0 ? r : void 0;
|
|
155
|
+
if (!a) return;
|
|
156
|
+
e.preventDefault(), a.focus();
|
|
157
|
+
} else if (!o || !l || e.shiftKey) return;
|
|
158
|
+
else (e.key === " " || e.key === "x") && a ? (e.preventDefault(), l.disabled || ve(l.id)) : e.key === "Enter" ? (e.preventDefault(), l.disabled || i?.(l)) : e.key === "Escape" && a && I.size && B(/* @__PURE__ */ new Set());
|
|
159
|
+
}, Q = I.size > 0;
|
|
160
|
+
v(() => {
|
|
161
|
+
let e = document.activeElement;
|
|
162
|
+
Q && e instanceof HTMLElement && W.current?.contains(e) && re(e, G.current);
|
|
163
|
+
}, [Q]);
|
|
164
|
+
let $ = (e, t) => e.kind === "header" ? /* @__PURE__ */ S(R, {
|
|
165
|
+
title: e.group.title,
|
|
166
|
+
glyph: e.group.glyph,
|
|
167
|
+
count: e.group.count ?? e.group.items.length,
|
|
168
|
+
collapsed: V.has(e.group.id),
|
|
169
|
+
onToggle: () => {
|
|
170
|
+
let t = new Set(V);
|
|
171
|
+
t.has(e.group.id) ? t.delete(e.group.id) : t.add(e.group.id), oe(t);
|
|
172
|
+
},
|
|
173
|
+
onAdd: e.group.onAdd,
|
|
174
|
+
addLabel: e.group.addLabel,
|
|
175
|
+
indent: !!a,
|
|
176
|
+
first: t === 0,
|
|
177
|
+
index: t,
|
|
178
|
+
active: t === Z,
|
|
179
|
+
onFocus: () => U(t)
|
|
180
|
+
}, e.key) : /* @__PURE__ */ S(L, {
|
|
181
|
+
index: t,
|
|
182
|
+
item: e.item,
|
|
183
|
+
depth: e.depth,
|
|
184
|
+
lastChild: e.lastChild,
|
|
185
|
+
idWidth: l,
|
|
186
|
+
density: d,
|
|
187
|
+
wrapSubtitle: f,
|
|
188
|
+
narrow: K,
|
|
189
|
+
active: t === Z,
|
|
190
|
+
selected: I.has(e.item.id),
|
|
191
|
+
selectable: !!a,
|
|
192
|
+
selecting: Q,
|
|
193
|
+
onSelect: () => ve(e.item.id),
|
|
194
|
+
onOpen: () => i?.(e.item),
|
|
195
|
+
onFocus: () => U(t),
|
|
196
|
+
...k && t === ue ? { "data-force": k } : {}
|
|
197
|
+
}, e.key);
|
|
198
|
+
return /* @__PURE__ */ C("div", {
|
|
199
|
+
ref: (e) => {
|
|
200
|
+
W.current = e, typeof A == "function" ? A(e) : A && (A.current = e);
|
|
201
|
+
},
|
|
202
|
+
role: "grid",
|
|
203
|
+
"aria-label": ee,
|
|
204
|
+
"aria-rowcount": q.length || void 0,
|
|
205
|
+
"aria-multiselectable": a || void 0,
|
|
206
|
+
"aria-busy": T || void 0,
|
|
207
|
+
onKeyDown: (e) => {
|
|
208
|
+
Y(), be(e);
|
|
209
|
+
},
|
|
210
|
+
onPointerEnter: Y,
|
|
211
|
+
onPointerDown: Y,
|
|
212
|
+
onFocus: Y,
|
|
213
|
+
onWheel: Y,
|
|
214
|
+
className: e("relative flex flex-col outline-none", te && "overflow-hidden rounded-group bg-raised shadow-xs", D),
|
|
215
|
+
children: [T && (de || q.length === 0) ? /* @__PURE__ */ S(ae, {
|
|
216
|
+
density: d,
|
|
217
|
+
grouped: !!r
|
|
218
|
+
}) : de && E ? /* @__PURE__ */ S("div", {
|
|
219
|
+
role: "row",
|
|
220
|
+
children: /* @__PURE__ */ S("div", {
|
|
221
|
+
role: "gridcell",
|
|
222
|
+
children: E
|
|
223
|
+
})
|
|
224
|
+
}) : J && X ? /* @__PURE__ */ S(X, {
|
|
225
|
+
count: q.length,
|
|
226
|
+
estimateSize: pe,
|
|
227
|
+
getScrollElement: () => p(W.current),
|
|
228
|
+
scrollTo: he,
|
|
229
|
+
row: (e) => $(q[e], e),
|
|
230
|
+
measure: K
|
|
231
|
+
}) : J ? /* @__PURE__ */ S(ie, {
|
|
232
|
+
count: q.length,
|
|
233
|
+
estimateSize: pe,
|
|
234
|
+
row: (e) => $(q[e], e)
|
|
235
|
+
}) : q.map($), a && Q && w && /* @__PURE__ */ S(z, {
|
|
236
|
+
ref: G,
|
|
237
|
+
count: I.size,
|
|
238
|
+
onClear: () => B(/* @__PURE__ */ new Set()),
|
|
239
|
+
children: _
|
|
240
|
+
})]
|
|
241
|
+
});
|
|
242
|
+
});
|
|
243
|
+
process.env.NODE_ENV !== "production" && (F.displayName = "List");
|
|
244
|
+
function ne(e, t) {
|
|
245
|
+
return t ? e ? "bg-raised-pressed controls-on-fill hover:raised-selected-hover active:raised-selected-hover" : "bg-fill-2 controls-on-fill hover:bg-fill-3 active:bg-fill-3" : e ? "hover:bg-raised-hover hover:controls-on-fill active:bg-raised-pressed" : "hover:bg-fill-1 hover:controls-on-fill active:bg-fill-2";
|
|
246
|
+
}
|
|
247
|
+
function I(e) {
|
|
248
|
+
let t = typeof window > "u" ? null : window.getSelection();
|
|
249
|
+
return !!t && !t.isCollapsed && !!t.anchorNode && e.contains(t.anchorNode);
|
|
250
|
+
}
|
|
251
|
+
function re(e, t) {
|
|
252
|
+
let n = t?.firstElementChild?.getBoundingClientRect().top;
|
|
253
|
+
if (n === void 0) return;
|
|
254
|
+
let r = e.getBoundingClientRect().bottom + 8 - n;
|
|
255
|
+
r > 0 && p(e)?.scrollBy({ top: r });
|
|
256
|
+
}
|
|
257
|
+
function ie({ count: e, estimateSize: t, row: n }) {
|
|
258
|
+
let r = typeof window > "u" ? 1024 : window.innerHeight, i = [], a = 0, o = 12;
|
|
259
|
+
for (let s = 0; s < e; s++) {
|
|
260
|
+
if (a >= r && o-- <= 0) {
|
|
261
|
+
for (let n = s; n < e; n++) a += t(n);
|
|
262
|
+
break;
|
|
263
|
+
}
|
|
264
|
+
i.push(/* @__PURE__ */ S("div", {
|
|
265
|
+
role: "presentation",
|
|
266
|
+
className: "absolute top-0 left-0 w-full",
|
|
267
|
+
style: { transform: `translateY(${Math.round(a)}px)` },
|
|
268
|
+
children: n(s)
|
|
269
|
+
}, s)), a += t(s);
|
|
270
|
+
}
|
|
271
|
+
return /* @__PURE__ */ S("div", {
|
|
272
|
+
role: "presentation",
|
|
273
|
+
className: "relative w-full",
|
|
274
|
+
style: { height: a },
|
|
275
|
+
children: i
|
|
276
|
+
});
|
|
277
|
+
}
|
|
278
|
+
function ae({ density: t, grouped: n }) {
|
|
279
|
+
let i = r();
|
|
280
|
+
return /* @__PURE__ */ C("div", {
|
|
281
|
+
role: "presentation",
|
|
282
|
+
children: [n && /* @__PURE__ */ S("div", {
|
|
283
|
+
role: "presentation",
|
|
284
|
+
className: i ? "px-0" : "px-24",
|
|
285
|
+
children: /* @__PURE__ */ S("div", {
|
|
286
|
+
className: "flex h-36 items-center px-12",
|
|
287
|
+
children: /* @__PURE__ */ S(d, {
|
|
288
|
+
shape: "line",
|
|
289
|
+
className: "w-80"
|
|
290
|
+
})
|
|
291
|
+
})
|
|
292
|
+
}), [
|
|
293
|
+
62,
|
|
294
|
+
48,
|
|
295
|
+
70,
|
|
296
|
+
54,
|
|
297
|
+
40,
|
|
298
|
+
58
|
|
299
|
+
].map((n, r) => /* @__PURE__ */ S("div", {
|
|
300
|
+
role: "presentation",
|
|
301
|
+
className: i ? "px-0" : "px-24",
|
|
302
|
+
children: /* @__PURE__ */ C("div", {
|
|
303
|
+
className: e("flex items-center gap-12 px-12", k.density[t].classes),
|
|
304
|
+
children: [
|
|
305
|
+
/* @__PURE__ */ S(d, {
|
|
306
|
+
shape: "line",
|
|
307
|
+
className: "min-w-0",
|
|
308
|
+
style: { width: `${n}%` }
|
|
309
|
+
}),
|
|
310
|
+
/* @__PURE__ */ S("span", { className: "flex-1" }),
|
|
311
|
+
/* @__PURE__ */ S(d, {
|
|
312
|
+
shape: "line",
|
|
313
|
+
className: "w-64 shrink-0"
|
|
314
|
+
})
|
|
315
|
+
]
|
|
316
|
+
})
|
|
317
|
+
}, r))]
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
var L = /* @__PURE__ */ h(function({ item: t, index: a, depth: o = 0, lastChild: s, idWidth: l, density: u = "default", wrapSubtitle: d = !1, narrow: p = !1, active: m, selected: h, selectable: g, selecting: _, onSelect: v, onOpen: y, onFocus: b, "data-force": x }, w) {
|
|
321
|
+
let T = n(), E = r(), D = i(), O = p && !!(t.meta || t.date), A = (T || O) && !!t.subtitle, j = A && d, M = !!t.disabled, N = t.avatar && /* @__PURE__ */ S("span", {
|
|
322
|
+
className: e("flex shrink-0", M && "opacity-50"),
|
|
323
|
+
children: t.avatar
|
|
324
|
+
});
|
|
325
|
+
return /* @__PURE__ */ S("div", {
|
|
326
|
+
role: "row",
|
|
327
|
+
"aria-rowindex": a === void 0 ? void 0 : a + 1,
|
|
328
|
+
className: T ? e("px-0", a !== void 0 && a > 0 && "hairline-t") : E ? "px-0" : "px-24",
|
|
329
|
+
children: /* @__PURE__ */ C("div", {
|
|
330
|
+
ref: w,
|
|
331
|
+
role: "gridcell",
|
|
332
|
+
"aria-selected": g ? !!h : void 0,
|
|
333
|
+
"aria-disabled": M || void 0,
|
|
334
|
+
"data-index": a,
|
|
335
|
+
"data-row": "",
|
|
336
|
+
tabIndex: m === !1 ? -1 : 0,
|
|
337
|
+
onFocus: b,
|
|
338
|
+
onClick: (e) => {
|
|
339
|
+
e.currentTarget.contains(e.target) && !e.target.closest("button, a, [role=checkbox]") && (I(e.currentTarget) || (_ && g ? v?.() : y?.()));
|
|
340
|
+
},
|
|
341
|
+
...x ? { "data-force": x } : {},
|
|
342
|
+
className: e("group/row relative flex cursor-pointer items-center gap-12 text-body transition-control focus-ring-inset", T ? "rounded-none px-20" : "rounded-item px-12", A || O || j ? "min-h-56 py-8" : T && u === "default" ? "h-48" : k.density[u].classes, ne(T, !!h), M && "pointer-events-none text-fg-disabled"),
|
|
343
|
+
children: [
|
|
344
|
+
g && /* @__PURE__ */ S("span", {
|
|
345
|
+
className: e("flex shrink-0 transition-control select-none", _ || h ? "opacity-100" : "opacity-0 group-hover/row:opacity-100 group-focus-visible/row:opacity-100 coarse:opacity-100"),
|
|
346
|
+
onClick: (e) => e.stopPropagation(),
|
|
347
|
+
children: /* @__PURE__ */ S(ee, {
|
|
348
|
+
checked: !!h,
|
|
349
|
+
onToggle: () => v?.(),
|
|
350
|
+
"aria-label": D("list.selectItem", "Select {name}", { name: t.textValue ?? (typeof t.title == "string" ? t.title : t.id) })
|
|
351
|
+
})
|
|
352
|
+
}),
|
|
353
|
+
o === 1 && /* @__PURE__ */ C("span", {
|
|
354
|
+
"aria-hidden": !0,
|
|
355
|
+
className: "relative -ml-4 h-full w-16 shrink-0 self-stretch",
|
|
356
|
+
children: [/* @__PURE__ */ S("span", { className: e("absolute left-6 w-1 bg-line-strong forced-line", s ? "top-0 h-1/2" : "inset-y-0") }), /* @__PURE__ */ S("span", { className: "absolute top-1/2 left-6 h-1 w-10 bg-line-strong forced-line" })]
|
|
357
|
+
}),
|
|
358
|
+
t.glyph && /* @__PURE__ */ S("span", {
|
|
359
|
+
className: e("flex size-16 shrink-0 items-center justify-center", M && "opacity-50"),
|
|
360
|
+
children: t.glyph
|
|
361
|
+
}),
|
|
362
|
+
t.leading && /* @__PURE__ */ S("span", {
|
|
363
|
+
className: e("-mr-4 flex shrink-0", A && "self-start", M && "opacity-50"),
|
|
364
|
+
children: t.leading
|
|
365
|
+
}),
|
|
366
|
+
t.displayId && /* @__PURE__ */ S(f, {
|
|
367
|
+
className: e("shrink-0 mono text-small tabular", M ? "text-fg-disabled" : h ? "text-fg-secondary" : "text-fg-tertiary", l && te[l]),
|
|
368
|
+
children: t.displayId
|
|
369
|
+
}),
|
|
370
|
+
/* @__PURE__ */ C("span", {
|
|
371
|
+
className: e("flex min-w-0 flex-1", O ? "flex-col items-stretch gap-4" : "contents"),
|
|
372
|
+
children: [/* @__PURE__ */ C("span", {
|
|
373
|
+
className: e("flex min-w-0", O ? "w-full" : "flex-1", A ? "flex-col items-start gap-2" : "items-baseline gap-8"),
|
|
374
|
+
children: [typeof t.title == "string" ? /* @__PURE__ */ S(c, {
|
|
375
|
+
truncate: !0,
|
|
376
|
+
weight: "medium",
|
|
377
|
+
tone: M ? "inherit" : "default",
|
|
378
|
+
className: e("min-w-0 shrink", A && "max-w-full"),
|
|
379
|
+
children: t.title
|
|
380
|
+
}) : /* @__PURE__ */ S("span", {
|
|
381
|
+
className: e("min-w-0 truncate font-medium", M ? "text-inherit" : "text-fg", A && "max-w-full"),
|
|
382
|
+
children: t.title
|
|
383
|
+
}), t.subtitle && /* @__PURE__ */ S(f, {
|
|
384
|
+
wrap: j,
|
|
385
|
+
className: e("min-w-0", M ? "text-fg-disabled" : "text-fg-secondary", A ? "max-w-full text-small" : "flex-1 basis-0"),
|
|
386
|
+
children: t.subtitle
|
|
387
|
+
})]
|
|
388
|
+
}), O && /* @__PURE__ */ C("span", {
|
|
389
|
+
className: "flex h-24 min-w-0 items-center gap-8",
|
|
390
|
+
children: [
|
|
391
|
+
t.meta && /* @__PURE__ */ S("span", {
|
|
392
|
+
className: e("flex min-w-0 items-center gap-6 overflow-hidden", M && "opacity-50"),
|
|
393
|
+
children: t.meta
|
|
394
|
+
}),
|
|
395
|
+
t.date && /* @__PURE__ */ S("span", {
|
|
396
|
+
className: e("shrink-0 text-small whitespace-nowrap tabular", M ? "text-fg-disabled" : "text-fg-secondary"),
|
|
397
|
+
children: t.date
|
|
398
|
+
}),
|
|
399
|
+
N,
|
|
400
|
+
t.actions && /* @__PURE__ */ S("span", {
|
|
401
|
+
className: "ml-auto flex shrink-0 items-center gap-2",
|
|
402
|
+
children: t.actions
|
|
403
|
+
})
|
|
404
|
+
]
|
|
405
|
+
})]
|
|
406
|
+
}),
|
|
407
|
+
!O && (t.meta || t.actions) && /* @__PURE__ */ C("span", {
|
|
408
|
+
className: "relative flex shrink-0 items-center gap-6",
|
|
409
|
+
children: [/* @__PURE__ */ S("span", {
|
|
410
|
+
className: e("flex items-center gap-6", t.actions && "transition-control group-hover/row:opacity-0 group-focus-within/row:opacity-0", M && "opacity-50"),
|
|
411
|
+
children: t.meta
|
|
412
|
+
}), t.actions && /* @__PURE__ */ S("span", {
|
|
413
|
+
className: e("flex items-center gap-2 opacity-0 transition-control group-hover/row:opacity-100 group-focus-within/row:opacity-100 coarse:opacity-100", t.meta && "absolute inset-y-0 right-0 coarse:static"),
|
|
414
|
+
children: t.actions
|
|
415
|
+
})]
|
|
416
|
+
}),
|
|
417
|
+
!O && t.date && /* @__PURE__ */ S("span", {
|
|
418
|
+
className: e("min-w-80 shrink-0 text-right text-small whitespace-nowrap tabular", M ? "text-fg-disabled" : "text-fg-secondary"),
|
|
419
|
+
children: t.date
|
|
420
|
+
}),
|
|
421
|
+
!O && N
|
|
422
|
+
]
|
|
423
|
+
})
|
|
424
|
+
});
|
|
425
|
+
});
|
|
426
|
+
process.env.NODE_ENV !== "production" && (L.displayName = "ListRow");
|
|
427
|
+
var R = /* @__PURE__ */ h(function({ title: t, glyph: a, count: o, collapsed: s, onToggle: c, onAdd: u, addLabel: d, indent: f, first: p, index: m, active: h, onFocus: g }, _) {
|
|
428
|
+
let v = n(), y = r(), b = i();
|
|
429
|
+
return /* @__PURE__ */ S("div", {
|
|
430
|
+
ref: _,
|
|
431
|
+
role: "row",
|
|
432
|
+
"aria-rowindex": m === void 0 ? void 0 : m + 1,
|
|
433
|
+
onFocus: g,
|
|
434
|
+
className: v ? e("group/gh bg-fill-1", !p && "hairline-t") : e("group/gh", !p && "pt-16", y ? "px-0" : "px-24"),
|
|
435
|
+
children: /* @__PURE__ */ C("div", {
|
|
436
|
+
role: "gridcell",
|
|
437
|
+
className: e("flex h-36 items-center gap-4", v && "pr-12 pl-8"),
|
|
438
|
+
children: [
|
|
439
|
+
/* @__PURE__ */ C("button", {
|
|
440
|
+
type: "button",
|
|
441
|
+
"aria-expanded": !s,
|
|
442
|
+
"data-index": m,
|
|
443
|
+
tabIndex: h === !1 ? -1 : 0,
|
|
444
|
+
onClick: c,
|
|
445
|
+
className: e("relative flex h-28 min-w-0 cursor-pointer items-center gap-8 rounded-pill px-12 text-small transition-control focus-ring tap-target", v ? "hover:bg-fill-2 active:bg-fill-3" : "hover:bg-fill-1 active:bg-fill-2"),
|
|
446
|
+
children: [
|
|
447
|
+
f && !v && /* @__PURE__ */ S("span", {
|
|
448
|
+
"aria-hidden": !0,
|
|
449
|
+
className: "w-22 shrink-0"
|
|
450
|
+
}),
|
|
451
|
+
a && /* @__PURE__ */ S("span", {
|
|
452
|
+
className: "flex size-16 items-center justify-center",
|
|
453
|
+
children: a
|
|
454
|
+
}),
|
|
455
|
+
/* @__PURE__ */ S("span", {
|
|
456
|
+
className: "truncate font-medium text-fg-secondary",
|
|
457
|
+
children: t
|
|
458
|
+
}),
|
|
459
|
+
o !== void 0 && /* @__PURE__ */ S("span", {
|
|
460
|
+
className: "text-fg-tertiary tabular",
|
|
461
|
+
children: o
|
|
462
|
+
}),
|
|
463
|
+
/* @__PURE__ */ S("svg", {
|
|
464
|
+
viewBox: "0 0 8 8",
|
|
465
|
+
"aria-hidden": !0,
|
|
466
|
+
className: e("size-10 text-fg-tertiary transition-transform duration-200 ease-standard", !s && "rotate-90"),
|
|
467
|
+
children: /* @__PURE__ */ S("path", {
|
|
468
|
+
d: "M2.5 1.5 5.5 4l-3 2.5z",
|
|
469
|
+
fill: "currentColor"
|
|
470
|
+
})
|
|
471
|
+
})
|
|
472
|
+
]
|
|
473
|
+
}),
|
|
474
|
+
/* @__PURE__ */ S("span", { className: "flex-1" }),
|
|
475
|
+
u && /* @__PURE__ */ S("span", {
|
|
476
|
+
className: "flex opacity-0 transition-control group-hover/gh:opacity-100 group-focus-within/gh:opacity-100 coarse:opacity-100",
|
|
477
|
+
children: /* @__PURE__ */ S(l, {
|
|
478
|
+
icon: w,
|
|
479
|
+
"aria-label": d ?? b("list.add", "Add"),
|
|
480
|
+
size: "xs",
|
|
481
|
+
onClick: u
|
|
482
|
+
})
|
|
483
|
+
})
|
|
484
|
+
]
|
|
485
|
+
})
|
|
486
|
+
});
|
|
487
|
+
});
|
|
488
|
+
process.env.NODE_ENV !== "production" && (R.displayName = "GroupHeader");
|
|
489
|
+
var z = /* @__PURE__ */ h(function({ count: e, onClear: n, children: r }, o) {
|
|
490
|
+
let s = t(), c = i();
|
|
491
|
+
return typeof document > "u" ? null : E(/* @__PURE__ */ S("div", {
|
|
492
|
+
ref: o,
|
|
493
|
+
role: "region",
|
|
494
|
+
"aria-label": c("list.selection", "Selection"),
|
|
495
|
+
className: "pointer-events-none fixed right-0 bottom-24 left-0 z-50 flex justify-center px-16",
|
|
496
|
+
children: /* @__PURE__ */ C("div", {
|
|
497
|
+
className: "pointer-events-auto flex min-h-44 items-center gap-4 rounded-pill bg-toast py-6 pr-6 pl-16 text-body font-medium text-toast-fg shadow-toast popup-motion",
|
|
498
|
+
children: [
|
|
499
|
+
/* @__PURE__ */ S("span", {
|
|
500
|
+
className: "pr-8 tabular",
|
|
501
|
+
children: c("list.selected", "{count} selected", { count: String(e) })
|
|
502
|
+
}),
|
|
503
|
+
/* @__PURE__ */ S("span", {
|
|
504
|
+
className: "mr-4 h-20 w-1 bg-toast-action",
|
|
505
|
+
"aria-hidden": !0
|
|
506
|
+
}),
|
|
507
|
+
r,
|
|
508
|
+
/* @__PURE__ */ S("button", {
|
|
509
|
+
type: "button",
|
|
510
|
+
onClick: n,
|
|
511
|
+
"aria-label": c("list.clearSelection", "Clear selection"),
|
|
512
|
+
className: "inline-flex size-32 cursor-pointer items-center justify-center rounded-pill text-toast-fg-secondary transition-control hover:bg-toast-action hover:text-toast-fg focus-ring",
|
|
513
|
+
children: /* @__PURE__ */ S(a, {
|
|
514
|
+
icon: T,
|
|
515
|
+
size: "sm"
|
|
516
|
+
})
|
|
517
|
+
})
|
|
518
|
+
]
|
|
519
|
+
})
|
|
520
|
+
}), s ?? document.body);
|
|
521
|
+
});
|
|
522
|
+
process.env.NODE_ENV !== "production" && (z.displayName = "SelectionBar");
|
|
523
|
+
var B = /* @__PURE__ */ h(function({ children: t, onClick: n, icon: r, danger: i }, o) {
|
|
524
|
+
return /* @__PURE__ */ C("button", {
|
|
525
|
+
ref: o,
|
|
526
|
+
type: "button",
|
|
527
|
+
onClick: n,
|
|
528
|
+
className: e("inline-flex h-32 cursor-pointer items-center gap-6 rounded-pill px-12 text-body font-medium transition-control hover:bg-toast-action focus-ring", i ? "text-toast-danger" : "text-toast-fg", r && "pl-10"),
|
|
529
|
+
children: [r && /* @__PURE__ */ S(a, {
|
|
530
|
+
icon: r,
|
|
531
|
+
size: "sm",
|
|
532
|
+
className: i ? void 0 : "text-toast-fg-secondary"
|
|
533
|
+
}), t]
|
|
534
|
+
});
|
|
535
|
+
});
|
|
536
|
+
process.env.NODE_ENV !== "production" && (B.displayName = "SelectionAction");
|
|
537
|
+
//#endregion
|
|
538
|
+
export { L as a, F as i, A as n, B as o, k as r, z as s, R as t };
|
|
539
|
+
|
|
540
|
+
//# sourceMappingURL=list-B4G-sWwV.js.map
|