@logicplanes/kaeso-ui 0.4.4 → 0.4.6
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 +250 -98
- package/ai/component-registry.json +264 -236
- package/ai/component-registry.md +222 -218
- package/ai/icons.md +1 -1
- 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-DdNPHEzI.js → code-block-KIvuE8jg.js} +122 -114
- 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-D_0mmG-k.js → de-CqC4aSIV.js} +74 -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-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-Bm6UPIbW.js → zh-CN-BlpsT6d_.js} +73 -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 +3 -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 +1 -1
- 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 +100 -100
- 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/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/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-BZIe_B9l.js +0 -334
- package/dist/chunks/code-block-BZIe_B9l.js.map +0 -1
- package/dist/chunks/code-block-DdNPHEzI.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-D_0mmG-k.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-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-BupwFOae.js +0 -313
- package/dist/chunks/markdown-BupwFOae.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-Bm6UPIbW.js.map +0 -1
- package/dist/components/data-table.js.map +0 -1
- package/dist/components/label.js.map +0 -1
|
@@ -1,235 +1,310 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as e } from "../../chunks/cn-
|
|
2
|
+
import { t as e } from "../../chunks/cn-BjnOAUrA.js";
|
|
3
3
|
import { i as t } from "../../chunks/context-BELWW79w.js";
|
|
4
4
|
import { formatNumber as n, formatPercent as r } from "../../format.js";
|
|
5
|
-
import { A as i, D as a, E as o,
|
|
6
|
-
import { t as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
5
|
+
import { A as i, D as a, E as o, M as s, O as c, S as l, b as u, g as ee, h as te, i as ne, n as re, p as ie, r as ae, s as oe, t as d, v as se } from "../../chunks/core-CmK-8ObW.js";
|
|
6
|
+
import { t as ce } from "../../chunks/linear-scale-BWKeRqDX.js";
|
|
7
|
+
import { a as le, i as ue, n as de, o as fe, r as f, s as pe, t as me } from "../../chunks/domain-obd_w9xk.js";
|
|
8
|
+
import { forwardRef as p, useState as he } from "react";
|
|
9
|
+
import { Fragment as ge, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
10
|
+
import { radius as _e } from "@logicplanes/kaeso-tokens";
|
|
11
|
+
import { scaleBand as ve } from "d3-scale";
|
|
11
12
|
//#region src/components/charts/bar.tsx
|
|
12
|
-
var
|
|
13
|
+
var g = { layout: {
|
|
13
14
|
grouped: { classes: "" },
|
|
14
15
|
stacked: { classes: "" },
|
|
15
16
|
horizontal: { classes: "" }
|
|
16
|
-
} },
|
|
17
|
-
|
|
17
|
+
} }, ye = { layout: "grouped" }, be = 2, xe = 8, _ = 13;
|
|
18
|
+
function Se(e, t, n) {
|
|
19
|
+
let r = e.map(() => null);
|
|
20
|
+
for (let i of [1, -1]) {
|
|
21
|
+
let a = 0, o = e.map((e, t) => Number.isFinite(e) && e * i > 0 ? t : -1).filter((e) => e >= 0).map((n) => {
|
|
22
|
+
let r = t(a);
|
|
23
|
+
return a += e[n], {
|
|
24
|
+
i: n,
|
|
25
|
+
a: r,
|
|
26
|
+
b: t(a)
|
|
27
|
+
};
|
|
28
|
+
}), s = o.map((e, t) => Math.abs(e.b - e.a) - (t > 0 ? n : 0)), c = 0;
|
|
29
|
+
if (s.forEach((e, t) => {
|
|
30
|
+
e < 2 && (c += 2 - e, s[t] = 2);
|
|
31
|
+
}), c > 0) {
|
|
32
|
+
let e = s.indexOf(Math.max(...s));
|
|
33
|
+
e >= 0 && (s[e] = Math.max(2, s[e] - c));
|
|
34
|
+
}
|
|
35
|
+
let l = o.length && Math.sign(o[o.length - 1].b - o[0].a) || 1, u = o[0]?.a ?? 0;
|
|
36
|
+
o.forEach((e, t) => {
|
|
37
|
+
let i = t > 0 ? u + l * n : u, a = i + l * s[t];
|
|
38
|
+
r[e.i] = {
|
|
39
|
+
from: i,
|
|
40
|
+
to: a
|
|
41
|
+
}, u = a;
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
return r;
|
|
45
|
+
}
|
|
46
|
+
function v(e, t, n, r, i, a) {
|
|
47
|
+
if (n <= 0 || r <= 0) return "";
|
|
48
|
+
let o = Math.min(i, a === "left" || a === "right" ? r / 2 : n / 2, a === "left" || a === "right" ? n : r);
|
|
49
|
+
if (o <= 0 || a === "none") return `M${e} ${t}h${n}v${r}h${-n}z`;
|
|
50
|
+
let s = e + n, c = t + r;
|
|
51
|
+
switch (a) {
|
|
52
|
+
case "top": return `M${e} ${c}V${t + o}Q${e} ${t} ${e + o} ${t}H${s - o}Q${s} ${t} ${s} ${t + o}V${c}z`;
|
|
53
|
+
case "bottom": return `M${e} ${t}V${c - o}Q${e} ${c} ${e + o} ${c}H${s - o}Q${s} ${c} ${s} ${c - o}V${t}z`;
|
|
54
|
+
case "right": return `M${e} ${t}H${s - o}Q${s} ${t} ${s} ${t + o}V${c - o}Q${s} ${c} ${s - o} ${c}H${e}z`;
|
|
55
|
+
case "left": return `M${s} ${t}H${e + o}Q${e} ${t} ${e} ${t + o}V${c - o}Q${e} ${c} ${e + o} ${c}H${s}z`;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
var y = /* @__PURE__ */ p(function({ categories: p, series: g, layout: ye = "grouped", height: y = 240, formatValue: Ce, highlight: b, axisLabels: we, dates: Te, shares: Ee = !0, partial: x, className: De, "aria-label": Oe, ...S }, ke) {
|
|
59
|
+
let C = t(), Ae = Ce ?? ((e) => n(e)), w = (e) => Number.isFinite(e) ? Ae(e) : "–", [je, T] = a(), [E, Me] = he(null), [Ne, Pe] = he(null), [D, Fe] = he(/* @__PURE__ */ new Set()), O = ye === "horizontal", k = ye === "stacked", A = g.filter((e) => !D.has(e.id)), j = A.flatMap((e) => p.map((t, n) => e.values[n] ?? NaN)), Ie = g.length > 0 && A.length === 0, M = S.empty ?? (Ie || p.length === 0 || !le(j)), Le = (e) => p.map((t, n) => A.reduce((t, r) => t + (Number.isFinite(r.values[n]) && (r.values[n] ?? 0) * e > 0 ? r.values[n] : 0), 0)), Re = pe(k ? [...Le(1), ...Le(-1)] : j), N = ce().domain(Re).nice(4), [ze = 0, Be = 1] = N.domain(), P = c([
|
|
60
|
+
...j.map((e) => Number.isFinite(e) ? e : 0),
|
|
61
|
+
ze,
|
|
62
|
+
Be
|
|
63
|
+
], !!S.loading), F = P[P.length - 2] ?? ze, I = P[P.length - 1] ?? Be, L = A.map((e, t) => p.map((e, n) => P[t * p.length + n] ?? 0)), Ve = u(g.map((e) => e.id)), R = (e) => e.color ?? Ve.get(e.id), z = l(Ce ?? de), He = M ? [] : fe(j) ? [0] : i(se(N, z), f(j)).filter((e) => e >= F - 1e-9 && e <= I + 1e-9), Ue = (e) => {
|
|
64
|
+
let t = f(A.map((t) => t.values[e] ?? NaN));
|
|
65
|
+
return t.length ? t.reduce((e, t) => e + t, 0) : NaN;
|
|
66
|
+
}, B = (e, t = 0) => w(k ? Ue(e) : A[t]?.values[e] ?? NaN), We = Math.max(0, ...p.map((e) => te(e))) * (_ / d.label.fontSize), Ge = T.width ? T.width * .4 : Infinity, V = O ? {
|
|
18
67
|
top: 0,
|
|
19
|
-
right:
|
|
68
|
+
right: me(p.flatMap((e, t) => k ? [B(t)] : A.map((e, n) => B(t, n))), {
|
|
69
|
+
gap: 10,
|
|
70
|
+
min: 40,
|
|
71
|
+
max: Ge
|
|
72
|
+
}),
|
|
20
73
|
bottom: 0,
|
|
21
|
-
left:
|
|
74
|
+
left: Math.round(Math.min(160, Ge, Math.max(48, We + 12 + 4)))
|
|
22
75
|
} : {
|
|
23
76
|
top: 8,
|
|
24
|
-
right:
|
|
77
|
+
right: me(He.map(z), { max: Ge }),
|
|
25
78
|
bottom: 28,
|
|
26
79
|
left: 0
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
let
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
},
|
|
80
|
+
}, H = Math.max(0, T.width - V.left - V.right), U = Math.max(0, y - V.top - V.bottom), W = ve().domain(p).range(O ? [0, U] : [0, H]).paddingInner(.24).paddingOuter(.12);
|
|
81
|
+
N.range(O ? [0, H] : [U, 0]);
|
|
82
|
+
let Ke = N.copy().domain([F, I === F ? F + 1 : I]), G = (e) => {
|
|
83
|
+
let t = Ke(e);
|
|
84
|
+
return O ? Math.max(0, Math.min(H, t)) : Math.max(0, Math.min(U, t));
|
|
85
|
+
}, K = Math.round(G(0)), qe = !k && A.length > 1, Je = ve().domain(A.map((e) => e.id)).range([0, W.bandwidth()]).paddingInner(.12), Ye = O ? 20 : k || A.length <= 1 ? 40 : 20, q = Math.max(4, Math.min(Ye, Math.round(qe ? Je.bandwidth() : W.bandwidth()))), J = qe ? A.length * q + (A.length - 1) * 4 : q, Xe = [p[0], p[p.length - 1]].map((e) => e === void 0 ? 0 : (W(e) ?? 0) + W.bandwidth() / 2), Ze = new Set(O ? [] : ie(p.map((e, t) => we?.[t] ?? e), W.step(), {
|
|
86
|
+
start: V.left + Xe[0],
|
|
87
|
+
end: H - Xe[1] + V.right
|
|
88
|
+
}, Te)), Qe = p.length - 1, $e = (e) => !!(x?.last || x?.ongoing) && e === Qe || !!x?.first && e === 0, et = (e) => {
|
|
33
89
|
let t = p[e] ?? "";
|
|
34
|
-
return
|
|
35
|
-
},
|
|
36
|
-
columns: [
|
|
37
|
-
rows: p.map((e, t) => [
|
|
38
|
-
},
|
|
90
|
+
return x?.ongoing && e === Qe ? C("chart.soFar", "{heading}, so far", { heading: t }) : $e(e) ? C("chart.partial", "{heading}, partial", { heading: t }) : t;
|
|
91
|
+
}, tt = {
|
|
92
|
+
columns: [C("barChart.category", "Category"), ...g.map((e) => e.label)],
|
|
93
|
+
rows: p.map((e, t) => [et(t), ...g.map((e) => w(e.values[t] ?? NaN))])
|
|
94
|
+
}, Y = !!S.loading || M || !!S.error, X = o(Y ? 0 : p.length, O ? {
|
|
39
95
|
vertical: !0,
|
|
40
96
|
start: 0
|
|
41
|
-
} : {}),
|
|
42
|
-
let t = Math.round(
|
|
43
|
-
if (
|
|
44
|
-
let n =
|
|
97
|
+
} : {}), Z = Y ? null : E?.i ?? X.index ?? (b !== void 0 && b < p.length ? b : null), nt = p.map((e, t) => f(A.map((e) => e.values[t] ?? NaN)).reduce((e, t) => e + Math.abs(t), 0)), Q = p.map((e, t) => k ? Se(L.map((e) => e[t] ?? 0), G, be) : null), rt = (e) => k ? Math.max(K, ...(Q[e] ?? []).map((e) => e ? Math.max(e.from, e.to) : K)) : Math.max(K, ...L.map((t) => G(t[e] ?? 0))), it = (e) => k ? Math.min(K, ...(Q[e] ?? []).map((e) => e ? Math.min(e.from, e.to) : K)) : Math.min(K, ...L.map((t) => G(t[e] ?? 0))), at = (e) => {
|
|
98
|
+
let t = Math.round(W(p[e]) ?? 0);
|
|
99
|
+
if (O) {
|
|
100
|
+
let n = V.top + Math.round(t + W.bandwidth() / 2 - J / 2 - xe), r = Math.max(0, ...(k ? [B(e)] : A.map((t, n) => B(e, n))).map(te));
|
|
45
101
|
return {
|
|
46
|
-
x:
|
|
47
|
-
y:
|
|
102
|
+
x: V.left + Math.round(rt(e) + 10 + r),
|
|
103
|
+
y: n + 24
|
|
48
104
|
};
|
|
49
105
|
}
|
|
50
|
-
let n = Math.min(
|
|
106
|
+
let n = Math.min(W.bandwidth(), J + 16), r = V.left + t + W.bandwidth() / 2;
|
|
51
107
|
return {
|
|
52
108
|
x: Math.round(r + n / 2) - 8,
|
|
53
109
|
xLeft: Math.round(r - n / 2) + 8,
|
|
54
|
-
y:
|
|
110
|
+
y: E && E.i === e ? E.y : V.top + Math.round(it(e))
|
|
111
|
+
};
|
|
112
|
+
}, ot = (e) => A.map((t) => {
|
|
113
|
+
let n = t.values[e] ?? NaN;
|
|
114
|
+
return {
|
|
115
|
+
id: t.id,
|
|
116
|
+
label: t.label,
|
|
117
|
+
color: R(t),
|
|
118
|
+
value: w(n),
|
|
119
|
+
...Ee && A.length > 1 && nt[e] && Number.isFinite(n) ? { share: r(Math.round(Math.abs(n) / (nt[e] ?? 1) * 100) / 100, 0) } : {}
|
|
55
120
|
};
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
121
|
+
}), st = (e) => {
|
|
122
|
+
let t = new Set(D);
|
|
123
|
+
t.has(e) ? t.delete(e) : t.add(e), Fe(t);
|
|
124
|
+
}, $ = (e, t, n, r) => {
|
|
125
|
+
let i = R(e), a = s(i), o = $e(t);
|
|
126
|
+
return /* @__PURE__ */ m("path", {
|
|
127
|
+
d: n,
|
|
128
|
+
fill: i,
|
|
129
|
+
className: "opacity-motion",
|
|
130
|
+
opacity: Ne && Ne !== e.id ? .3 : 1,
|
|
131
|
+
...o ? {
|
|
132
|
+
fillOpacity: .32,
|
|
133
|
+
stroke: a ?? i,
|
|
134
|
+
strokeWidth: 1.5,
|
|
135
|
+
strokeDasharray: "4 4",
|
|
136
|
+
"data-partial": ""
|
|
137
|
+
} : a ? {
|
|
138
|
+
stroke: a,
|
|
139
|
+
strokeWidth: 1
|
|
140
|
+
} : {}
|
|
141
|
+
}, r);
|
|
142
|
+
};
|
|
143
|
+
return /* @__PURE__ */ m("div", {
|
|
144
|
+
ref: ke,
|
|
145
|
+
className: e("min-w-0", De),
|
|
146
|
+
children: /* @__PURE__ */ m(re, {
|
|
147
|
+
label: Oe,
|
|
148
|
+
height: y,
|
|
149
|
+
table: tt,
|
|
150
|
+
state: {
|
|
151
|
+
...S,
|
|
152
|
+
empty: M,
|
|
153
|
+
...Ie && !S.empty ? { emptyText: C("chart.allHidden", "Every series is hidden. Choose one in the legend to show it.") } : {}
|
|
154
|
+
},
|
|
155
|
+
legend: g.length > 1 ? /* @__PURE__ */ m(oe, {
|
|
156
|
+
items: g.map((e) => ({
|
|
73
157
|
id: e.id,
|
|
74
158
|
label: e.label,
|
|
75
159
|
color: R(e)
|
|
76
160
|
})),
|
|
77
|
-
|
|
161
|
+
hidden: D,
|
|
162
|
+
onToggle: st,
|
|
163
|
+
onHover: Pe
|
|
78
164
|
}) : void 0,
|
|
79
|
-
children: /* @__PURE__ */
|
|
80
|
-
ref:
|
|
165
|
+
children: /* @__PURE__ */ h("div", {
|
|
166
|
+
ref: je,
|
|
81
167
|
role: "group",
|
|
82
|
-
"aria-label":
|
|
83
|
-
...
|
|
168
|
+
"aria-label": Oe,
|
|
169
|
+
...X.props,
|
|
84
170
|
className: "absolute inset-0 rounded-cell focus-ring",
|
|
85
171
|
children: [
|
|
86
|
-
|
|
87
|
-
width:
|
|
88
|
-
height:
|
|
172
|
+
T.width > 0 && /* @__PURE__ */ m("svg", {
|
|
173
|
+
width: T.width,
|
|
174
|
+
height: y,
|
|
89
175
|
className: "block overflow-visible",
|
|
90
176
|
role: "presentation",
|
|
91
|
-
children: /* @__PURE__ */
|
|
92
|
-
transform: `translate(${
|
|
177
|
+
children: /* @__PURE__ */ h("g", {
|
|
178
|
+
transform: `translate(${V.left},${V.top})`,
|
|
93
179
|
children: [
|
|
94
|
-
!
|
|
180
|
+
!O && He.map((e) => /* @__PURE__ */ h("g", {
|
|
95
181
|
transform: `translate(0,${Math.round(G(e)) + .5})`,
|
|
96
|
-
children: [e !== 0 && /* @__PURE__ */
|
|
97
|
-
x2:
|
|
98
|
-
...
|
|
99
|
-
}),
|
|
100
|
-
x:
|
|
182
|
+
children: [e !== 0 && /* @__PURE__ */ m("line", {
|
|
183
|
+
x2: H,
|
|
184
|
+
...d.grid
|
|
185
|
+
}), /* @__PURE__ */ m("text", {
|
|
186
|
+
x: H + 12,
|
|
101
187
|
dy: "0.32em",
|
|
102
|
-
...
|
|
103
|
-
children:
|
|
188
|
+
...d.label,
|
|
189
|
+
children: z(e)
|
|
104
190
|
})]
|
|
105
191
|
}, e)),
|
|
106
|
-
p.map((e, t) => {
|
|
107
|
-
let n = Math.round(
|
|
108
|
-
|
|
109
|
-
|
|
192
|
+
!M && p.map((e, t) => {
|
|
193
|
+
let n = Math.round(W(e) ?? 0), r = Math.round((W.step() - W.bandwidth()) / 2), i = Math.min(W.bandwidth(), J + 16), a = n + W.bandwidth() / 2, o = Math.round(a - J / 2), s = (e) => {
|
|
194
|
+
let n = Q[t]?.map((n, r) => n && Math.sign(L[r]?.[t] ?? 0) === e ? r : -1).filter((e) => e >= 0) ?? [];
|
|
195
|
+
return n[n.length - 1];
|
|
196
|
+
};
|
|
197
|
+
return /* @__PURE__ */ h("g", { children: [
|
|
198
|
+
/* @__PURE__ */ m("rect", {
|
|
110
199
|
"aria-hidden": !0,
|
|
111
200
|
className: "opacity-motion",
|
|
112
|
-
opacity: +(
|
|
201
|
+
opacity: +(Z === t),
|
|
113
202
|
fill: "var(--k-fill-1)",
|
|
114
|
-
rx:
|
|
115
|
-
...
|
|
116
|
-
x: -
|
|
117
|
-
y: Math.round(
|
|
118
|
-
width:
|
|
119
|
-
height:
|
|
203
|
+
rx: parseFloat(_e.item),
|
|
204
|
+
...O ? {
|
|
205
|
+
x: -V.left,
|
|
206
|
+
y: Math.round(a - J / 2 - xe),
|
|
207
|
+
width: T.width,
|
|
208
|
+
height: J + 16
|
|
120
209
|
} : {
|
|
121
|
-
x: Math.round(
|
|
210
|
+
x: Math.round(a - i / 2),
|
|
122
211
|
y: 0,
|
|
123
212
|
width: i,
|
|
124
|
-
height:
|
|
213
|
+
height: U
|
|
125
214
|
}
|
|
126
215
|
}),
|
|
127
|
-
(() => {
|
|
128
|
-
let
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
let u = t - e;
|
|
150
|
-
return c <= 0 || u <= 0 ? null : /* @__PURE__ */ h("path", {
|
|
151
|
-
d: ce(r, e, K, u, s === i ? 4 : 0),
|
|
152
|
-
fill: R(n),
|
|
153
|
-
opacity: l
|
|
154
|
-
}, n.id);
|
|
155
|
-
}
|
|
156
|
-
let u = Math.round(G(c)), d = Math.max(c > 0 ? 2 : 0, V - u);
|
|
157
|
-
return /* @__PURE__ */ h("path", {
|
|
158
|
-
d: ce(r + s * (K + 4), V - d, K, d, 4),
|
|
159
|
-
fill: R(n),
|
|
160
|
-
opacity: l
|
|
161
|
-
}, n.id);
|
|
162
|
-
});
|
|
163
|
-
})(),
|
|
164
|
-
/* @__PURE__ */ h("rect", {
|
|
165
|
-
x: M ? -z.left : n - r,
|
|
166
|
-
y: M ? n - r : 0,
|
|
167
|
-
width: M ? O.width : U.step(),
|
|
168
|
-
height: M ? U.step() : V,
|
|
216
|
+
A.map((e, n) => {
|
|
217
|
+
let r = L[n]?.[t] ?? 0;
|
|
218
|
+
if (!Number.isFinite(e.values[t] ?? NaN) || r === 0) return null;
|
|
219
|
+
if (k) {
|
|
220
|
+
let i = Q[t]?.[n];
|
|
221
|
+
if (!i) return null;
|
|
222
|
+
let c = Math.min(i.from, i.to), l = Math.abs(i.to - i.from), u = n === s(Math.sign(r));
|
|
223
|
+
return O ? $(e, t, v(c, Math.round(a - q / 2), l, q, 4, u ? r > 0 ? "right" : "left" : "none"), e.id) : $(e, t, v(o, c, q, l, 4, u ? r > 0 ? "top" : "bottom" : "none"), e.id);
|
|
224
|
+
}
|
|
225
|
+
let i = G(r), c = Math.max(2, Math.abs(i - K));
|
|
226
|
+
if (O) {
|
|
227
|
+
let i = Math.round(a - J / 2 + n * (q + 4)), o = r > 0 ? K : K - c;
|
|
228
|
+
return $(e, t, v(o, i, c, q, 4, r > 0 ? "right" : "left"), e.id);
|
|
229
|
+
}
|
|
230
|
+
let l = o + n * (q + 4), u = r > 0 ? K - c : K;
|
|
231
|
+
return $(e, t, v(l, u, q, c, 4, r > 0 ? "top" : "bottom"), e.id);
|
|
232
|
+
}),
|
|
233
|
+
/* @__PURE__ */ m("rect", {
|
|
234
|
+
x: O ? -V.left : n - r,
|
|
235
|
+
y: O ? n - r : 0,
|
|
236
|
+
width: O ? T.width : W.step(),
|
|
237
|
+
height: O ? W.step() : U,
|
|
169
238
|
fill: "transparent",
|
|
170
239
|
onPointerMove: (e) => {
|
|
171
|
-
if (
|
|
240
|
+
if (Y) return;
|
|
172
241
|
let n = (e.currentTarget.ownerSVGElement ?? e.currentTarget).getBoundingClientRect();
|
|
173
|
-
|
|
242
|
+
Me({
|
|
174
243
|
i: t,
|
|
175
244
|
y: Math.round(e.clientY - n.top)
|
|
176
245
|
});
|
|
177
246
|
},
|
|
178
|
-
onPointerLeave: () =>
|
|
247
|
+
onPointerLeave: () => Me(null)
|
|
179
248
|
}),
|
|
180
|
-
|
|
249
|
+
O && /* @__PURE__ */ h(ge, { children: [/* @__PURE__ */ h("text", {
|
|
181
250
|
x: -12,
|
|
182
|
-
y:
|
|
251
|
+
y: a,
|
|
183
252
|
dy: "0.32em",
|
|
184
253
|
textAnchor: "end",
|
|
185
254
|
fill: "var(--k-text-secondary)",
|
|
186
|
-
fontSize:
|
|
255
|
+
fontSize: _,
|
|
187
256
|
fontWeight: 500,
|
|
188
|
-
children: e
|
|
189
|
-
}),
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
children: C?.[t] ?? e
|
|
202
|
-
})
|
|
257
|
+
children: [ue(e, V.left - 12, _), /* @__PURE__ */ m("title", { children: e })]
|
|
258
|
+
}), (k ? [0] : A.map((e, t) => t)).map((e) => {
|
|
259
|
+
let n = k ? Ue(t) : A[e]?.values[t] ?? NaN, r = k ? n < 0 ? Math.min(K, ...(Q[t] ?? []).map((e) => e ? Math.min(e.from, e.to) : K)) : rt(t) : G(L[e]?.[t] ?? 0), i = k ? a : Math.round(a - J / 2 + e * (q + 4) + q / 2);
|
|
260
|
+
return /* @__PURE__ */ m("text", {
|
|
261
|
+
x: n < 0 ? Math.round(r) - 10 : Math.round(Math.max(r, K)) + 10,
|
|
262
|
+
y: i,
|
|
263
|
+
dy: "0.32em",
|
|
264
|
+
textAnchor: n < 0 ? "end" : "start",
|
|
265
|
+
...d.label,
|
|
266
|
+
fill: "var(--k-text-secondary)",
|
|
267
|
+
children: B(t, e)
|
|
268
|
+
}, e);
|
|
269
|
+
})] })
|
|
203
270
|
] }, e);
|
|
204
271
|
}),
|
|
205
|
-
!
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
...
|
|
272
|
+
!O && p.map((e, t) => Ze.has(t) ? /* @__PURE__ */ m("text", {
|
|
273
|
+
x: (W(e) ?? 0) + W.bandwidth() / 2,
|
|
274
|
+
y: U + 20,
|
|
275
|
+
textAnchor: "middle",
|
|
276
|
+
...d.label,
|
|
277
|
+
children: we?.[t] ?? e
|
|
278
|
+
}, e) : null),
|
|
279
|
+
O ? !M && F < 0 && /* @__PURE__ */ m("line", {
|
|
280
|
+
x1: K + .5,
|
|
281
|
+
x2: K + .5,
|
|
282
|
+
y2: U,
|
|
283
|
+
...d.baseline
|
|
284
|
+
}) : /* @__PURE__ */ m("line", {
|
|
285
|
+
x2: H,
|
|
286
|
+
y1: K + .5,
|
|
287
|
+
y2: K + .5,
|
|
288
|
+
...d.baseline
|
|
210
289
|
})
|
|
211
290
|
]
|
|
212
291
|
})
|
|
213
292
|
}),
|
|
214
|
-
|
|
215
|
-
...
|
|
216
|
-
width:
|
|
293
|
+
Z !== null && T.width > 0 && /* @__PURE__ */ m(ne, {
|
|
294
|
+
...at(Z),
|
|
295
|
+
width: T.width,
|
|
217
296
|
visible: !0,
|
|
218
|
-
heading:
|
|
219
|
-
rows:
|
|
297
|
+
heading: et(Z),
|
|
298
|
+
rows: ot(Z)
|
|
220
299
|
}),
|
|
221
|
-
/* @__PURE__ */
|
|
300
|
+
/* @__PURE__ */ m(ae, { children: X.index !== null && !Y ? ee(et(X.index), ot(X.index), C) : null })
|
|
222
301
|
]
|
|
223
302
|
})
|
|
224
303
|
})
|
|
225
304
|
});
|
|
226
305
|
});
|
|
227
|
-
process.env.NODE_ENV !== "production" && (
|
|
228
|
-
function ce(e, t, n, r, i) {
|
|
229
|
-
let a = Math.min(i, n / 2, r);
|
|
230
|
-
return a <= 0 ? `M${e} ${t}h${n}v${r}h${-n}z` : `M${e} ${t + r}V${t + a}Q${e} ${t} ${e + a} ${t}H${e + n - a}Q${e + n} ${t} ${e + n} ${t + a}V${t + r}z`;
|
|
231
|
-
}
|
|
306
|
+
process.env.NODE_ENV !== "production" && (y.displayName = "BarChart");
|
|
232
307
|
//#endregion
|
|
233
|
-
export {
|
|
308
|
+
export { y as BarChart, ye as KAESO_BAR_CHART_DEFAULT_VARIANTS, g as KAESO_BAR_CHART_VARIANTS };
|
|
234
309
|
|
|
235
310
|
//# sourceMappingURL=bar.js.map
|