@parto-system-design/ui 1.1.11 → 1.1.16
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/dist/components/brand/parto-logo.cjs +130 -0
- package/dist/components/brand/parto-logo.cjs.map +1 -0
- package/dist/components/brand/parto-logo.d.cts +38 -0
- package/dist/components/brand/parto-logo.d.ts +38 -0
- package/dist/components/brand/parto-logo.js +108 -0
- package/dist/components/brand/parto-logo.js.map +1 -0
- package/dist/components/charts/PartoAreaChart.cjs +579 -7
- package/dist/components/charts/PartoAreaChart.cjs.map +1 -1
- package/dist/components/charts/PartoAreaChart.js +564 -4
- package/dist/components/charts/PartoAreaChart.js.map +1 -1
- package/dist/components/charts/PartoBarChart.cjs +616 -7
- package/dist/components/charts/PartoBarChart.cjs.map +1 -1
- package/dist/components/charts/PartoBarChart.js +601 -4
- package/dist/components/charts/PartoBarChart.js.map +1 -1
- package/dist/components/charts/PartoLineChart.cjs +584 -7
- package/dist/components/charts/PartoLineChart.cjs.map +1 -1
- package/dist/components/charts/PartoLineChart.js +569 -4
- package/dist/components/charts/PartoLineChart.js.map +1 -1
- package/dist/components/charts/PartoPieChart.cjs +566 -7
- package/dist/components/charts/PartoPieChart.cjs.map +1 -1
- package/dist/components/charts/PartoPieChart.js +551 -4
- package/dist/components/charts/PartoPieChart.js.map +1 -1
- package/dist/components/ui/accordion.cjs +97 -0
- package/dist/components/ui/accordion.cjs.map +1 -0
- package/dist/components/ui/accordion.d.cts +22 -0
- package/dist/components/ui/accordion.d.ts +22 -0
- package/dist/components/ui/accordion.js +72 -0
- package/dist/components/ui/accordion.js.map +1 -0
- package/dist/{chunk-MMC6M35Q.cjs → components/ui/alert-dialog.cjs} +216 -22
- package/dist/components/ui/alert-dialog.cjs.map +1 -0
- package/dist/components/ui/alert-dialog.d.cts +17 -0
- package/dist/components/ui/alert-dialog.d.ts +17 -0
- package/dist/{chunk-3QYYPPFJ.js → components/ui/alert-dialog.js} +175 -10
- package/dist/components/ui/alert-dialog.js.map +1 -0
- package/dist/components/ui/alert-rule-card.cjs +289 -8
- package/dist/components/ui/alert-rule-card.cjs.map +1 -1
- package/dist/components/ui/alert-rule-card.d.cts +1 -1
- package/dist/components/ui/alert-rule-card.d.ts +1 -1
- package/dist/components/ui/alert-rule-card.js +271 -4
- package/dist/components/ui/alert-rule-card.js.map +1 -1
- package/dist/components/ui/alert.cjs +81 -0
- package/dist/components/ui/alert.cjs.map +1 -0
- package/dist/components/ui/alert.d.cts +11 -0
- package/dist/components/ui/alert.d.ts +11 -0
- package/dist/components/ui/alert.js +57 -0
- package/dist/components/ui/alert.js.map +1 -0
- package/dist/components/ui/app-bar.cjs +67 -0
- package/dist/components/ui/app-bar.cjs.map +1 -0
- package/dist/components/ui/app-bar.d.cts +22 -0
- package/dist/components/ui/app-bar.d.ts +22 -0
- package/dist/components/ui/app-bar.js +44 -0
- package/dist/components/ui/app-bar.js.map +1 -0
- package/dist/components/ui/avatar.cjs +66 -14
- package/dist/components/ui/avatar.cjs.map +1 -1
- package/dist/components/ui/avatar.js +47 -2
- package/dist/components/ui/avatar.js.map +1 -1
- package/dist/components/ui/badge.cjs +113 -9
- package/dist/components/ui/badge.cjs.map +1 -1
- package/dist/components/ui/badge.d.cts +1 -1
- package/dist/components/ui/badge.d.ts +1 -1
- package/dist/components/ui/badge.js +96 -2
- package/dist/components/ui/badge.js.map +1 -1
- package/dist/components/ui/breadcrumb.cjs +100 -0
- package/dist/components/ui/breadcrumb.cjs.map +1 -0
- package/dist/components/ui/breadcrumb.d.cts +35 -0
- package/dist/components/ui/breadcrumb.d.ts +35 -0
- package/dist/components/ui/breadcrumb.js +92 -0
- package/dist/components/ui/breadcrumb.js.map +1 -0
- package/dist/components/ui/button.cjs +304 -11
- package/dist/components/ui/button.cjs.map +1 -1
- package/dist/components/ui/button.d.cts +3 -3
- package/dist/components/ui/button.d.ts +3 -3
- package/dist/components/ui/button.js +306 -3
- package/dist/components/ui/button.js.map +1 -1
- package/dist/components/ui/calendar.cjs +401 -8
- package/dist/components/ui/calendar.cjs.map +1 -1
- package/dist/components/ui/calendar.js +404 -4
- package/dist/components/ui/calendar.js.map +1 -1
- package/dist/components/ui/card.cjs +154 -30
- package/dist/components/ui/card.cjs.map +1 -1
- package/dist/components/ui/card.js +131 -2
- package/dist/components/ui/card.js.map +1 -1
- package/dist/{chunk-CAJKSTXX.cjs → components/ui/checkbox.cjs} +10 -5
- package/dist/components/ui/checkbox.cjs.map +1 -0
- package/dist/components/ui/checkbox.d.cts +6 -0
- package/dist/components/ui/checkbox.d.ts +6 -0
- package/dist/{chunk-5JJSRGJD.js → components/ui/checkbox.js} +9 -4
- package/dist/components/ui/checkbox.js.map +1 -0
- package/dist/components/ui/concept-card.cjs +728 -11
- package/dist/components/ui/concept-card.cjs.map +1 -1
- package/dist/components/ui/concept-card.d.cts +2 -2
- package/dist/components/ui/concept-card.d.ts +2 -2
- package/dist/components/ui/concept-card.js +710 -7
- package/dist/components/ui/concept-card.js.map +1 -1
- package/dist/components/ui/data-table.cjs +1553 -10
- package/dist/components/ui/data-table.cjs.map +1 -1
- package/dist/components/ui/data-table.js +1537 -7
- package/dist/components/ui/data-table.js.map +1 -1
- package/dist/components/ui/dialog.cjs +119 -42
- package/dist/components/ui/dialog.cjs.map +1 -1
- package/dist/components/ui/dialog.js +92 -2
- package/dist/components/ui/dialog.js.map +1 -1
- package/dist/components/ui/dropdown-menu.cjs +268 -0
- package/dist/components/ui/dropdown-menu.cjs.map +1 -0
- package/dist/components/ui/dropdown-menu.d.cts +73 -0
- package/dist/components/ui/dropdown-menu.d.ts +73 -0
- package/dist/components/ui/dropdown-menu.js +232 -0
- package/dist/components/ui/dropdown-menu.js.map +1 -0
- package/dist/components/ui/filter-provider.cjs +70 -13
- package/dist/components/ui/filter-provider.cjs.map +1 -1
- package/dist/components/ui/filter-provider.js +51 -1
- package/dist/components/ui/filter-provider.js.map +1 -1
- package/dist/components/ui/form.cjs +169 -0
- package/dist/components/ui/form.cjs.map +1 -0
- package/dist/components/ui/form.d.cts +46 -0
- package/dist/components/ui/form.d.ts +46 -0
- package/dist/components/ui/form.js +139 -0
- package/dist/components/ui/form.js.map +1 -0
- package/dist/components/ui/input.cjs +135 -15
- package/dist/components/ui/input.cjs.map +1 -1
- package/dist/components/ui/input.d.cts +15 -0
- package/dist/components/ui/input.d.ts +15 -0
- package/dist/components/ui/input.js +116 -3
- package/dist/components/ui/input.js.map +1 -1
- package/dist/components/ui/iran-province-heat.cjs +328 -5
- package/dist/components/ui/iran-province-heat.cjs.map +1 -1
- package/dist/components/ui/iran-province-heat.js +312 -2
- package/dist/components/ui/iran-province-heat.js.map +1 -1
- package/dist/components/ui/label.cjs +52 -0
- package/dist/components/ui/label.cjs.map +1 -0
- package/dist/components/ui/label.d.cts +10 -0
- package/dist/components/ui/label.d.ts +10 -0
- package/dist/components/ui/label.js +30 -0
- package/dist/components/ui/label.js.map +1 -0
- package/dist/components/ui/page-card.cjs +627 -8
- package/dist/components/ui/page-card.cjs.map +1 -1
- package/dist/components/ui/page-card.d.cts +3 -2
- package/dist/components/ui/page-card.d.ts +3 -2
- package/dist/components/ui/page-card.js +611 -5
- package/dist/components/ui/page-card.js.map +1 -1
- package/dist/components/ui/page-header.cjs +299 -0
- package/dist/components/ui/page-header.cjs.map +1 -0
- package/dist/components/ui/page-header.d.cts +21 -0
- package/dist/components/ui/page-header.d.ts +21 -0
- package/dist/components/ui/page-header.js +277 -0
- package/dist/components/ui/page-header.js.map +1 -0
- package/dist/components/ui/password-input.cjs +168 -0
- package/dist/components/ui/password-input.cjs.map +1 -0
- package/dist/components/ui/password-input.d.cts +48 -0
- package/dist/components/ui/password-input.d.ts +48 -0
- package/dist/components/ui/password-input.js +146 -0
- package/dist/components/ui/password-input.js.map +1 -0
- package/dist/components/ui/popover.cjs +51 -18
- package/dist/components/ui/popover.cjs.map +1 -1
- package/dist/components/ui/popover.js +30 -2
- package/dist/components/ui/popover.js.map +1 -1
- package/dist/components/ui/progress.cjs +95 -0
- package/dist/components/ui/progress.cjs.map +1 -0
- package/dist/components/ui/progress.d.cts +18 -0
- package/dist/components/ui/progress.d.ts +18 -0
- package/dist/components/ui/progress.js +72 -0
- package/dist/components/ui/progress.js.map +1 -0
- package/dist/components/ui/radio-card.cjs +84 -0
- package/dist/components/ui/radio-card.cjs.map +1 -0
- package/dist/components/ui/radio-card.d.cts +12 -0
- package/dist/components/ui/radio-card.d.ts +12 -0
- package/dist/components/ui/radio-card.js +58 -0
- package/dist/components/ui/radio-card.js.map +1 -0
- package/dist/components/ui/radio-group.cjs +62 -0
- package/dist/components/ui/radio-group.cjs.map +1 -0
- package/dist/components/ui/radio-group.d.cts +7 -0
- package/dist/components/ui/radio-group.d.ts +7 -0
- package/dist/components/ui/radio-group.js +38 -0
- package/dist/components/ui/radio-group.js.map +1 -0
- package/dist/components/ui/saved-query-card.cjs +409 -7
- package/dist/components/ui/saved-query-card.cjs.map +1 -1
- package/dist/components/ui/saved-query-card.js +394 -4
- package/dist/components/ui/saved-query-card.js.map +1 -1
- package/dist/components/ui/scroll-area.cjs +79 -0
- package/dist/components/ui/scroll-area.cjs.map +1 -0
- package/dist/components/ui/scroll-area.d.cts +14 -0
- package/dist/components/ui/scroll-area.d.ts +14 -0
- package/dist/components/ui/scroll-area.js +56 -0
- package/dist/components/ui/scroll-area.js.map +1 -0
- package/dist/components/ui/select.cjs +242 -0
- package/dist/components/ui/select.cjs.map +1 -0
- package/dist/components/ui/select.d.cts +29 -0
- package/dist/components/ui/select.d.ts +29 -0
- package/dist/components/ui/select.js +210 -0
- package/dist/components/ui/select.js.map +1 -0
- package/dist/components/ui/separator.cjs +105 -6
- package/dist/components/ui/separator.cjs.map +1 -1
- package/dist/components/ui/separator.js +87 -2
- package/dist/components/ui/separator.js.map +1 -1
- package/dist/components/ui/sheet.cjs +134 -38
- package/dist/components/ui/sheet.cjs.map +1 -1
- package/dist/components/ui/sheet.js +109 -2
- package/dist/components/ui/sheet.js.map +1 -1
- package/dist/{chunk-D2EBLE2B.cjs → components/ui/skeleton.cjs} +21 -16
- package/dist/components/ui/skeleton.cjs.map +1 -0
- package/dist/components/ui/skeleton.d.cts +90 -0
- package/dist/components/ui/skeleton.d.ts +90 -0
- package/dist/{chunk-SB5DSYR5.js → components/ui/skeleton.js} +8 -3
- package/dist/components/ui/skeleton.js.map +1 -0
- package/dist/components/ui/slider.cjs +129 -0
- package/dist/components/ui/slider.cjs.map +1 -0
- package/dist/components/ui/slider.d.cts +10 -0
- package/dist/components/ui/slider.d.ts +10 -0
- package/dist/components/ui/slider.js +107 -0
- package/dist/components/ui/slider.js.map +1 -0
- package/dist/components/ui/social-platform-badge.cjs +120 -0
- package/dist/components/ui/social-platform-badge.cjs.map +1 -0
- package/dist/components/ui/social-platform-badge.d.cts +21 -0
- package/dist/components/ui/social-platform-badge.d.ts +21 -0
- package/dist/components/ui/social-platform-badge.js +97 -0
- package/dist/components/ui/social-platform-badge.js.map +1 -0
- package/dist/components/ui/sonner.cjs +51 -0
- package/dist/components/ui/sonner.cjs.map +1 -0
- package/dist/components/ui/sonner.d.cts +13 -0
- package/dist/components/ui/sonner.d.ts +13 -0
- package/dist/components/ui/sonner.js +45 -0
- package/dist/components/ui/sonner.js.map +1 -0
- package/dist/components/ui/sparkline.cjs +159 -6
- package/dist/components/ui/sparkline.cjs.map +1 -1
- package/dist/components/ui/sparkline.js +142 -2
- package/dist/components/ui/sparkline.js.map +1 -1
- package/dist/components/ui/switch.cjs +96 -0
- package/dist/components/ui/switch.cjs.map +1 -0
- package/dist/components/ui/switch.d.cts +13 -0
- package/dist/components/ui/switch.d.ts +13 -0
- package/dist/components/ui/switch.js +73 -0
- package/dist/components/ui/switch.js.map +1 -0
- package/dist/components/ui/table.cjs +188 -0
- package/dist/components/ui/table.cjs.map +1 -0
- package/dist/components/ui/table.d.cts +59 -0
- package/dist/components/ui/table.d.ts +59 -0
- package/dist/components/ui/table.js +178 -0
- package/dist/components/ui/table.js.map +1 -0
- package/dist/components/ui/tabs.cjs +140 -0
- package/dist/components/ui/tabs.cjs.map +1 -0
- package/dist/components/ui/tabs.d.cts +21 -0
- package/dist/components/ui/tabs.d.ts +21 -0
- package/dist/components/ui/tabs.js +115 -0
- package/dist/components/ui/tabs.js.map +1 -0
- package/dist/components/ui/textarea.cjs +56 -0
- package/dist/components/ui/textarea.cjs.map +1 -0
- package/dist/components/ui/textarea.d.cts +5 -0
- package/dist/components/ui/textarea.d.ts +5 -0
- package/dist/components/ui/textarea.js +34 -0
- package/dist/components/ui/textarea.js.map +1 -0
- package/dist/components/ui/toggle-group.cjs +123 -0
- package/dist/components/ui/toggle-group.cjs.map +1 -0
- package/dist/components/ui/toggle-group.d.cts +7 -0
- package/dist/components/ui/toggle-group.d.ts +7 -0
- package/dist/components/ui/toggle-group.js +99 -0
- package/dist/components/ui/toggle-group.js.map +1 -0
- package/dist/components/ui/tooltip.cjs +77 -18
- package/dist/components/ui/tooltip.cjs.map +1 -1
- package/dist/components/ui/tooltip.js +56 -2
- package/dist/components/ui/tooltip.js.map +1 -1
- package/dist/{concept-card-RwPbqJ06.d.cts → concept-card-BXra9mr0.d.cts} +2 -2
- package/dist/{concept-card-CcOBb2Nz.d.ts → concept-card-BoJ5gIJD.d.ts} +2 -2
- package/dist/hooks/use-hotkey-registry.cjs +201 -14
- package/dist/hooks/use-hotkey-registry.cjs.map +1 -1
- package/dist/hooks/use-hotkey-registry.js +182 -2
- package/dist/hooks/use-hotkey-registry.js.map +1 -1
- package/dist/hooks/use-hotkeys.cjs +144 -9
- package/dist/hooks/use-hotkeys.cjs.map +1 -1
- package/dist/hooks/use-hotkeys.js +126 -1
- package/dist/hooks/use-hotkeys.js.map +1 -1
- package/dist/{i18n-CAd9wGOr.d.cts → i18n-BfRhV5aw.d.cts} +5 -3
- package/dist/{i18n-ArS3mqj0.d.ts → i18n-ewyqbKM-.d.ts} +5 -3
- package/dist/index.cjs +20906 -15706
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +396 -69
- package/dist/index.d.cts +49 -490
- package/dist/index.d.ts +49 -490
- package/dist/index.js +7704 -2032
- package/dist/index.js.map +1 -1
- package/dist/{page-card-CmShVqG-.d.cts → page-card-C9XXXOVr.d.cts} +3 -20
- package/dist/{page-card-HBn-cy4J.d.ts → page-card-DAnbez_f.d.ts} +3 -20
- package/dist/toggle-group-B8r4LOQw.d.cts +26 -0
- package/dist/toggle-group-B8r4LOQw.d.ts +26 -0
- package/package.json +132 -2
- package/tailwind.config.ts +45 -0
- package/dist/chunk-2ACKKPWA.cjs +0 -112
- package/dist/chunk-2ACKKPWA.cjs.map +0 -1
- package/dist/chunk-2UD3LGVX.cjs +0 -316
- package/dist/chunk-2UD3LGVX.cjs.map +0 -1
- package/dist/chunk-3QYYPPFJ.js.map +0 -1
- package/dist/chunk-4SVQNEVH.js +0 -173
- package/dist/chunk-4SVQNEVH.js.map +0 -1
- package/dist/chunk-4WONHORR.cjs +0 -152
- package/dist/chunk-4WONHORR.cjs.map +0 -1
- package/dist/chunk-5HCXH6GS.js +0 -409
- package/dist/chunk-5HCXH6GS.js.map +0 -1
- package/dist/chunk-5JJSRGJD.js.map +0 -1
- package/dist/chunk-5K6E4ZSW.cjs +0 -77
- package/dist/chunk-5K6E4ZSW.cjs.map +0 -1
- package/dist/chunk-5NY26ULO.js +0 -89
- package/dist/chunk-5NY26ULO.js.map +0 -1
- package/dist/chunk-7RVPG3LE.cjs +0 -231
- package/dist/chunk-7RVPG3LE.cjs.map +0 -1
- package/dist/chunk-AYEK3WOM.js +0 -207
- package/dist/chunk-AYEK3WOM.js.map +0 -1
- package/dist/chunk-BRMBLIQG.js +0 -53
- package/dist/chunk-BRMBLIQG.js.map +0 -1
- package/dist/chunk-CAJKSTXX.cjs.map +0 -1
- package/dist/chunk-CKFWMHQU.js +0 -401
- package/dist/chunk-CKFWMHQU.js.map +0 -1
- package/dist/chunk-CV3N3HVK.js +0 -672
- package/dist/chunk-CV3N3HVK.js.map +0 -1
- package/dist/chunk-D2EBLE2B.cjs.map +0 -1
- package/dist/chunk-GCZ6YATL.js +0 -940
- package/dist/chunk-GCZ6YATL.js.map +0 -1
- package/dist/chunk-GKRAZGDI.cjs +0 -84
- package/dist/chunk-GKRAZGDI.cjs.map +0 -1
- package/dist/chunk-GPYJ66CG.js +0 -45
- package/dist/chunk-GPYJ66CG.js.map +0 -1
- package/dist/chunk-HF6XU5NI.js +0 -84
- package/dist/chunk-HF6XU5NI.js.map +0 -1
- package/dist/chunk-HJPDZOMJ.cjs +0 -87
- package/dist/chunk-HJPDZOMJ.cjs.map +0 -1
- package/dist/chunk-HS3XI3CC.cjs +0 -69
- package/dist/chunk-HS3XI3CC.cjs.map +0 -1
- package/dist/chunk-HUCC3QH5.cjs +0 -53
- package/dist/chunk-HUCC3QH5.cjs.map +0 -1
- package/dist/chunk-HYZ6BQPS.cjs +0 -425
- package/dist/chunk-HYZ6BQPS.cjs.map +0 -1
- package/dist/chunk-ISCSZMYW.cjs +0 -106
- package/dist/chunk-ISCSZMYW.cjs.map +0 -1
- package/dist/chunk-IXFEFIDO.js +0 -82
- package/dist/chunk-IXFEFIDO.js.map +0 -1
- package/dist/chunk-JCJLN437.js +0 -108
- package/dist/chunk-JCJLN437.js.map +0 -1
- package/dist/chunk-JMKNNH63.cjs +0 -982
- package/dist/chunk-JMKNNH63.cjs.map +0 -1
- package/dist/chunk-JUBHQAA2.js +0 -53
- package/dist/chunk-JUBHQAA2.js.map +0 -1
- package/dist/chunk-K6G63EED.cjs +0 -41
- package/dist/chunk-K6G63EED.cjs.map +0 -1
- package/dist/chunk-KCWRCSI7.js +0 -62
- package/dist/chunk-KCWRCSI7.js.map +0 -1
- package/dist/chunk-KYM7NIJO.cjs +0 -433
- package/dist/chunk-KYM7NIJO.cjs.map +0 -1
- package/dist/chunk-L2L5CKC2.js +0 -291
- package/dist/chunk-L2L5CKC2.js.map +0 -1
- package/dist/chunk-M5CHZ5BA.js +0 -124
- package/dist/chunk-M5CHZ5BA.js.map +0 -1
- package/dist/chunk-MEK4RSGC.js +0 -65
- package/dist/chunk-MEK4RSGC.js.map +0 -1
- package/dist/chunk-MEKWH3GS.js +0 -89
- package/dist/chunk-MEKWH3GS.js.map +0 -1
- package/dist/chunk-MFTX2DDQ.js +0 -27
- package/dist/chunk-MFTX2DDQ.js.map +0 -1
- package/dist/chunk-MMC6M35Q.cjs.map +0 -1
- package/dist/chunk-NMH43BDC.js +0 -130
- package/dist/chunk-NMH43BDC.js.map +0 -1
- package/dist/chunk-NORDUD2T.cjs +0 -135
- package/dist/chunk-NORDUD2T.cjs.map +0 -1
- package/dist/chunk-NV4JOKWL.cjs +0 -197
- package/dist/chunk-NV4JOKWL.cjs.map +0 -1
- package/dist/chunk-O2JG7WY5.cjs +0 -121
- package/dist/chunk-O2JG7WY5.cjs.map +0 -1
- package/dist/chunk-ONO2FTV4.cjs +0 -68
- package/dist/chunk-ONO2FTV4.cjs.map +0 -1
- package/dist/chunk-OQB6HIUL.cjs +0 -108
- package/dist/chunk-OQB6HIUL.cjs.map +0 -1
- package/dist/chunk-OS6CMYAS.cjs +0 -79
- package/dist/chunk-OS6CMYAS.cjs.map +0 -1
- package/dist/chunk-PYURPUTV.js +0 -402
- package/dist/chunk-PYURPUTV.js.map +0 -1
- package/dist/chunk-RJ3HYZ7S.js +0 -44
- package/dist/chunk-RJ3HYZ7S.js.map +0 -1
- package/dist/chunk-RZNRIOLT.js +0 -128
- package/dist/chunk-RZNRIOLT.js.map +0 -1
- package/dist/chunk-S3T2L6NA.js +0 -38
- package/dist/chunk-S3T2L6NA.js.map +0 -1
- package/dist/chunk-S5IPJQZ3.cjs +0 -161
- package/dist/chunk-S5IPJQZ3.cjs.map +0 -1
- package/dist/chunk-SB5DSYR5.js.map +0 -1
- package/dist/chunk-SFXV2DUH.js +0 -106
- package/dist/chunk-SFXV2DUH.js.map +0 -1
- package/dist/chunk-SXEPGD4Z.cjs +0 -152
- package/dist/chunk-SXEPGD4Z.cjs.map +0 -1
- package/dist/chunk-SXWSOU3Y.js +0 -89
- package/dist/chunk-SXWSOU3Y.js.map +0 -1
- package/dist/chunk-SZMVOHT7.cjs +0 -107
- package/dist/chunk-SZMVOHT7.cjs.map +0 -1
- package/dist/chunk-TWJXOV4C.js +0 -145
- package/dist/chunk-TWJXOV4C.js.map +0 -1
- package/dist/chunk-U3ADRIVO.cjs +0 -434
- package/dist/chunk-U3ADRIVO.cjs.map +0 -1
- package/dist/chunk-U5FLLCGC.cjs +0 -151
- package/dist/chunk-U5FLLCGC.cjs.map +0 -1
- package/dist/chunk-UOZN45G4.cjs +0 -130
- package/dist/chunk-UOZN45G4.cjs.map +0 -1
- package/dist/chunk-VHLDOG74.cjs +0 -167
- package/dist/chunk-VHLDOG74.cjs.map +0 -1
- package/dist/chunk-YC5KLN6I.js +0 -139
- package/dist/chunk-YC5KLN6I.js.map +0 -1
- package/dist/chunk-YENXXYUV.cjs +0 -111
- package/dist/chunk-YENXXYUV.cjs.map +0 -1
- package/dist/chunk-YFQWC2PW.js +0 -113
- package/dist/chunk-YFQWC2PW.js.map +0 -1
- package/dist/chunk-Z2TY4A75.cjs +0 -700
- package/dist/chunk-Z2TY4A75.cjs.map +0 -1
- package/dist/chunk-Z56O7UEU.cjs +0 -136
- package/dist/chunk-Z56O7UEU.cjs.map +0 -1
- package/dist/chunk-ZBZDR4ZC.js +0 -106
- package/dist/chunk-ZBZDR4ZC.js.map +0 -1
package/dist/chunk-HS3XI3CC.cjs
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkK6G63EED_cjs = require('./chunk-K6G63EED.cjs');
|
|
4
|
-
var chunkNV4JOKWL_cjs = require('./chunk-NV4JOKWL.cjs');
|
|
5
|
-
var classVarianceAuthority = require('class-variance-authority');
|
|
6
|
-
var React = require('react');
|
|
7
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
8
|
-
|
|
9
|
-
function _interopNamespace(e) {
|
|
10
|
-
if (e && e.__esModule) return e;
|
|
11
|
-
var n = Object.create(null);
|
|
12
|
-
if (e) {
|
|
13
|
-
Object.keys(e).forEach(function (k) {
|
|
14
|
-
if (k !== 'default') {
|
|
15
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function () { return e[k]; }
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
n.default = e;
|
|
24
|
-
return Object.freeze(n);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
28
|
-
|
|
29
|
-
var inputVariants = classVarianceAuthority.cva(
|
|
30
|
-
chunkNV4JOKWL_cjs.cn(
|
|
31
|
-
"flex w-full rounded-md border border-control read-only:border-button bg-foreground/[.026] text-sm text-foreground file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-foreground-muted read-only:text-foreground-light",
|
|
32
|
-
"transition-colors duration-150",
|
|
33
|
-
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",
|
|
34
|
-
"aria-[invalid=true]:bg-destructive-200 dark:aria-[invalid=true]:bg-destructive/5 aria-[invalid=true]:border-destructive-400 dark:aria-[invalid=true]:border-destructive-default aria-[invalid=true]:focus:border-destructive aria-[invalid=true]:focus-visible:border-destructive"
|
|
35
|
-
),
|
|
36
|
-
{
|
|
37
|
-
variants: {
|
|
38
|
-
size: {
|
|
39
|
-
...chunkK6G63EED_cjs.SIZE_VARIANTS
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
defaultVariants: {
|
|
43
|
-
size: "sm"
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
);
|
|
47
|
-
var InputVariants = inputVariants;
|
|
48
|
-
var LTR_INPUT_TYPES = /* @__PURE__ */ new Set(["email", "url", "tel", "number", "password"]);
|
|
49
|
-
var Input = React__namespace.forwardRef(({ className, type, size = "sm", dir, ...props }, ref) => {
|
|
50
|
-
const resolvedDir = dir ?? (type && LTR_INPUT_TYPES.has(type) ? "ltr" : void 0);
|
|
51
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
52
|
-
"input",
|
|
53
|
-
{
|
|
54
|
-
type,
|
|
55
|
-
ref,
|
|
56
|
-
"data-slot": "input",
|
|
57
|
-
dir: resolvedDir,
|
|
58
|
-
...props,
|
|
59
|
-
className: chunkNV4JOKWL_cjs.cn(inputVariants({ size }), className)
|
|
60
|
-
}
|
|
61
|
-
);
|
|
62
|
-
});
|
|
63
|
-
Input.displayName = "Input";
|
|
64
|
-
|
|
65
|
-
exports.Input = Input;
|
|
66
|
-
exports.InputVariants = InputVariants;
|
|
67
|
-
exports.inputVariants = inputVariants;
|
|
68
|
-
//# sourceMappingURL=chunk-HS3XI3CC.cjs.map
|
|
69
|
-
//# sourceMappingURL=chunk-HS3XI3CC.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/ui/input.tsx"],"names":["cva","cn","SIZE_VARIANTS","React","jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOO,IAAM,aAAA,GAAgBA,0BAAA;AAAA,EAC3BC,oBAAA;AAAA,IACE,0QAAA;AAAA,IACA,gCAAA;AAAA,IACA,0LAAA;AAAA,IACA;AAAA,GACF;AAAA,EACA;AAAA,IACE,QAAA,EAAU;AAAA,MACR,IAAA,EAAM;AAAA,QACJ,GAAGC;AAAA;AACL,KACF;AAAA,IACA,eAAA,EAAiB;AAAA,MACf,IAAA,EAAM;AAAA;AACR;AAEJ;AAGO,IAAM,aAAA,GAAgB;AAK7B,IAAM,eAAA,uBAAsB,GAAA,CAAI,CAAC,SAAS,KAAA,EAAO,KAAA,EAAO,QAAA,EAAU,UAAU,CAAC,CAAA;AAE7E,IAAM,KAAA,GAAcC,gBAAA,CAAA,UAAA,CAAyC,CAAC,EAAE,SAAA,EAAW,IAAA,EAAM,IAAA,GAAO,IAAA,EAAM,GAAA,EAAK,GAAG,KAAA,EAAM,EAAG,GAAA,KAAQ;AAErH,EAAA,MAAM,cAAc,GAAA,KAAQ,IAAA,IAAQ,gBAAgB,GAAA,CAAI,IAAI,IAAI,KAAA,GAAQ,MAAA,CAAA;AACxE,EAAA,uBACEC,cAAA;AAAA,IAAC,OAAA;AAAA,IAAA;AAAA,MACC,IAAA;AAAA,MACA,GAAA;AAAA,MACA,WAAA,EAAU,OAAA;AAAA,MACV,GAAA,EAAK,WAAA;AAAA,MACJ,GAAG,KAAA;AAAA,MACJ,WAAWH,oBAAA,CAAG,aAAA,CAAc,EAAE,IAAA,EAAM,GAAG,SAAS;AAAA;AAAA,GAClD;AAEJ,CAAC;AAED,KAAA,CAAM,WAAA,GAAc,OAAA","file":"chunk-HS3XI3CC.cjs","sourcesContent":["'use client'\n\nimport { VariantProps, cva } from 'class-variance-authority'\nimport * as React from 'react'\nimport { SIZE_VARIANTS } from '@/lib/constants'\nimport { cn } from '@/lib/utils'\n\nexport const inputVariants = cva(\n cn(\n 'flex w-full rounded-md border border-control read-only:border-button bg-foreground/[.026] text-sm text-foreground file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-foreground-muted read-only:text-foreground-light',\n 'transition-colors duration-150',\n 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50',\n 'aria-[invalid=true]:bg-destructive-200 dark:aria-[invalid=true]:bg-destructive/5 aria-[invalid=true]:border-destructive-400 dark:aria-[invalid=true]:border-destructive-default aria-[invalid=true]:focus:border-destructive aria-[invalid=true]:focus-visible:border-destructive'\n ),\n {\n variants: {\n size: {\n ...SIZE_VARIANTS,\n },\n },\n defaultVariants: {\n size: 'sm',\n },\n }\n)\n\n/** @deprecated Use inputVariants instead */\nexport const InputVariants = inputVariants\n\nexport interface InputProps\n extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'>, VariantProps<typeof inputVariants> {}\n\nconst LTR_INPUT_TYPES = new Set(['email', 'url', 'tel', 'number', 'password'])\n\nconst Input = React.forwardRef<HTMLInputElement, InputProps>(({ className, type, size = 'sm', dir, ...props }, ref) => {\n // LTR content types: auto-set dir=\"ltr\" unless caller explicitly overrides\n const resolvedDir = dir ?? (type && LTR_INPUT_TYPES.has(type) ? 'ltr' : undefined)\n return (\n <input\n type={type}\n ref={ref}\n data-slot=\"input\"\n dir={resolvedDir}\n {...props}\n className={cn(inputVariants({ size }), className)}\n />\n )\n})\n\nInput.displayName = 'Input'\n\nexport { Input }\n"]}
|
package/dist/chunk-HUCC3QH5.cjs
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkNV4JOKWL_cjs = require('./chunk-NV4JOKWL.cjs');
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var PopoverPrimitive = require('@radix-ui/react-popover');
|
|
6
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
-
|
|
8
|
-
function _interopNamespace(e) {
|
|
9
|
-
if (e && e.__esModule) return e;
|
|
10
|
-
var n = Object.create(null);
|
|
11
|
-
if (e) {
|
|
12
|
-
Object.keys(e).forEach(function (k) {
|
|
13
|
-
if (k !== 'default') {
|
|
14
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
15
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
get: function () { return e[k]; }
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
n.default = e;
|
|
23
|
-
return Object.freeze(n);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
27
|
-
var PopoverPrimitive__namespace = /*#__PURE__*/_interopNamespace(PopoverPrimitive);
|
|
28
|
-
|
|
29
|
-
var Popover = PopoverPrimitive__namespace.Root;
|
|
30
|
-
var PopoverTrigger = PopoverPrimitive__namespace.Trigger;
|
|
31
|
-
var PopoverAnchor = PopoverPrimitive__namespace.Anchor;
|
|
32
|
-
var PopoverContent = React__namespace.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(PopoverPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
33
|
-
PopoverPrimitive__namespace.Content,
|
|
34
|
-
{
|
|
35
|
-
ref,
|
|
36
|
-
"data-slot": "popover-content",
|
|
37
|
-
align,
|
|
38
|
-
sideOffset,
|
|
39
|
-
className: chunkNV4JOKWL_cjs.cn(
|
|
40
|
-
"z-50 rounded-md border border-overlay bg-overlay p-4 text-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",
|
|
41
|
-
className
|
|
42
|
-
),
|
|
43
|
-
...props
|
|
44
|
-
}
|
|
45
|
-
) }));
|
|
46
|
-
PopoverContent.displayName = PopoverPrimitive__namespace.Content.displayName;
|
|
47
|
-
|
|
48
|
-
exports.Popover = Popover;
|
|
49
|
-
exports.PopoverAnchor = PopoverAnchor;
|
|
50
|
-
exports.PopoverContent = PopoverContent;
|
|
51
|
-
exports.PopoverTrigger = PopoverTrigger;
|
|
52
|
-
//# sourceMappingURL=chunk-HUCC3QH5.cjs.map
|
|
53
|
-
//# sourceMappingURL=chunk-HUCC3QH5.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/ui/popover.tsx"],"names":["PopoverPrimitive","React","jsx","cn"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,IAAM,OAAA,GAA2BA,2BAAA,CAAA;AAEjC,IAAM,cAAA,GAAkCA,2BAAA,CAAA;AAExC,IAAM,aAAA,GAAiCA,2BAAA,CAAA;AAEvC,IAAM,cAAA,GAAuBC,gBAAA,CAAA,UAAA,CAG3B,CAAC,EAAE,WAAW,KAAA,GAAQ,QAAA,EAAU,UAAA,GAAa,CAAA,EAAG,GAAG,KAAA,EAAM,EAAG,GAAA,qBAC5DC,cAAA,CAAkBF,oCAAjB,EACC,QAAA,kBAAAE,cAAA;AAAA,EAAkBF,2BAAA,CAAA,OAAA;AAAA,EAAjB;AAAA,IACC,GAAA;AAAA,IACA,WAAA,EAAU,iBAAA;AAAA,IACV,KAAA;AAAA,IACA,UAAA;AAAA,IACA,SAAA,EAAWG,oBAAA;AAAA,MACT,geAAA;AAAA,MACA;AAAA,KACF;AAAA,IACC,GAAG;AAAA;AACN,CAAA,EACF,CACD;AACD,cAAA,CAAe,cAA+BH,2BAAA,CAAA,OAAA,CAAQ,WAAA","file":"chunk-HUCC3QH5.cjs","sourcesContent":["'use client'\n\nimport * as React from 'react'\nimport * as PopoverPrimitive from '@radix-ui/react-popover'\n\nimport { cn } from '@/lib/utils'\n\nconst Popover = PopoverPrimitive.Root\n\nconst PopoverTrigger = PopoverPrimitive.Trigger\n\nconst PopoverAnchor = PopoverPrimitive.Anchor\n\nconst PopoverContent = React.forwardRef<\n React.ElementRef<typeof PopoverPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>\n>(({ className, align = 'center', sideOffset = 4, ...props }, ref) => (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n ref={ref}\n data-slot=\"popover-content\"\n align={align}\n sideOffset={sideOffset}\n className={cn(\n 'z-50 rounded-md border border-overlay bg-overlay p-4 text-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]',\n className\n )}\n {...props}\n />\n </PopoverPrimitive.Portal>\n))\nPopoverContent.displayName = PopoverPrimitive.Content.displayName\n\nexport { Popover, PopoverTrigger, PopoverContent, PopoverAnchor }\n"]}
|
package/dist/chunk-HYZ6BQPS.cjs
DELETED
|
@@ -1,425 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkHJPDZOMJ_cjs = require('./chunk-HJPDZOMJ.cjs');
|
|
4
|
-
var chunkS5IPJQZ3_cjs = require('./chunk-S5IPJQZ3.cjs');
|
|
5
|
-
var chunkCAJKSTXX_cjs = require('./chunk-CAJKSTXX.cjs');
|
|
6
|
-
var chunkGKRAZGDI_cjs = require('./chunk-GKRAZGDI.cjs');
|
|
7
|
-
var chunkZ2TY4A75_cjs = require('./chunk-Z2TY4A75.cjs');
|
|
8
|
-
var chunkNV4JOKWL_cjs = require('./chunk-NV4JOKWL.cjs');
|
|
9
|
-
var React = require('react');
|
|
10
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
11
|
-
|
|
12
|
-
function _interopNamespace(e) {
|
|
13
|
-
if (e && e.__esModule) return e;
|
|
14
|
-
var n = Object.create(null);
|
|
15
|
-
if (e) {
|
|
16
|
-
Object.keys(e).forEach(function (k) {
|
|
17
|
-
if (k !== 'default') {
|
|
18
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
19
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function () { return e[k]; }
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
n.default = e;
|
|
27
|
-
return Object.freeze(n);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
31
|
-
|
|
32
|
-
function calcPercents(data) {
|
|
33
|
-
const total = chunkZ2TY4A75_cjs.FLOW_KEYS.reduce((s, k) => s + (data[k] ?? 0), 0);
|
|
34
|
-
const result = Object.fromEntries(chunkZ2TY4A75_cjs.FLOW_KEYS.map((k) => [k, 0]));
|
|
35
|
-
if (total === 0) return result;
|
|
36
|
-
const floats = chunkZ2TY4A75_cjs.FLOW_KEYS.filter((k) => (data[k] ?? 0) > 0).map((k) => {
|
|
37
|
-
const v = (data[k] ?? 0) / total * 100;
|
|
38
|
-
return { k, floor: Math.floor(v), rem: v - Math.floor(v) };
|
|
39
|
-
});
|
|
40
|
-
const remaining = 100 - floats.reduce((s, f) => s + f.floor, 0);
|
|
41
|
-
const sorted = [...floats].sort((a, b) => b.rem - a.rem);
|
|
42
|
-
sorted.slice(0, remaining).forEach((f) => f.floor++);
|
|
43
|
-
floats.forEach(({ k, floor }) => result[k] = floor);
|
|
44
|
-
return result;
|
|
45
|
-
}
|
|
46
|
-
var STACKED_ORDER = [
|
|
47
|
-
"pro-gov",
|
|
48
|
-
"internal-critic",
|
|
49
|
-
"internal-opponent",
|
|
50
|
-
"external-opponent",
|
|
51
|
-
"grey"
|
|
52
|
-
];
|
|
53
|
-
function tokenVar(key) {
|
|
54
|
-
return `--flow-${key}`;
|
|
55
|
-
}
|
|
56
|
-
var FlowDistribution = React__namespace.forwardRef(
|
|
57
|
-
({
|
|
58
|
-
className,
|
|
59
|
-
data,
|
|
60
|
-
variant = "stacked",
|
|
61
|
-
showCounts = false,
|
|
62
|
-
showPercent = true,
|
|
63
|
-
locale = "fa",
|
|
64
|
-
isLoading = false,
|
|
65
|
-
...props
|
|
66
|
-
}, ref) => {
|
|
67
|
-
const labels = chunkZ2TY4A75_cjs.flowLabels[locale] ?? chunkZ2TY4A75_cjs.flowLabels.fa;
|
|
68
|
-
const percents = calcPercents(data);
|
|
69
|
-
const percentSign = locale === "en" ? "%" : "\u066A";
|
|
70
|
-
if (isLoading) {
|
|
71
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, "data-slot": "flow-distribution", className: chunkNV4JOKWL_cjs.cn("space-y-2", className), ...props, children: variant === "stacked" ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-3 w-full rounded-full bg-muted animate-pulse" }) : variant === "compact" ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap gap-2", children: [0, 1, 2].map((i) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-5 w-20 rounded-full bg-muted animate-pulse" }, i)) }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-2", children: [0, 1, 2, 3].map((i) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
72
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-3 w-16 rounded bg-muted animate-pulse" }),
|
|
73
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-2 flex-1 rounded-full bg-muted animate-pulse" }),
|
|
74
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-3 w-8 rounded bg-muted animate-pulse" })
|
|
75
|
-
] }, i)) }) });
|
|
76
|
-
}
|
|
77
|
-
if (variant === "stacked") {
|
|
78
|
-
const active = STACKED_ORDER.filter((k) => (data[k] ?? 0) > 0);
|
|
79
|
-
const srLabel = active.map((k) => `${labels[k]} ${chunkNV4JOKWL_cjs.convertToLocalNumbers(percents[k], locale)}${percentSign}`).join("\u060C ");
|
|
80
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "flow-distribution", className: chunkNV4JOKWL_cjs.cn("space-y-2", className), ...props, children: [
|
|
81
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-3 w-full overflow-hidden rounded-full bg-muted", role: "img", "aria-label": srLabel, children: active.map((k) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
82
|
-
"div",
|
|
83
|
-
{
|
|
84
|
-
className: "transition-all duration-500",
|
|
85
|
-
style: { width: `${percents[k]}%`, backgroundColor: `hsl(var(${tokenVar(k)}))` }
|
|
86
|
-
},
|
|
87
|
-
k
|
|
88
|
-
)) }),
|
|
89
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap gap-x-3 gap-y-1", children: active.map((k) => /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "inline-flex items-center gap-1", children: [
|
|
90
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
91
|
-
"span",
|
|
92
|
-
{
|
|
93
|
-
className: "inline-block h-2 w-2 rounded-full",
|
|
94
|
-
style: { backgroundColor: `hsl(var(${tokenVar(k)}))` }
|
|
95
|
-
}
|
|
96
|
-
),
|
|
97
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs text-foreground-light", children: labels[k] }),
|
|
98
|
-
showPercent && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-xs font-medium tabular-nums", style: { color: `hsl(var(${tokenVar(k)}))` }, children: [
|
|
99
|
-
chunkNV4JOKWL_cjs.convertToLocalNumbers(percents[k], locale),
|
|
100
|
-
percentSign
|
|
101
|
-
] }),
|
|
102
|
-
showCounts && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-xs text-foreground-muted tabular-nums", children: [
|
|
103
|
-
"(",
|
|
104
|
-
chunkNV4JOKWL_cjs.convertToLocalNumbers(data[k] ?? 0, locale),
|
|
105
|
-
")"
|
|
106
|
-
] })
|
|
107
|
-
] }, k)) })
|
|
108
|
-
] });
|
|
109
|
-
}
|
|
110
|
-
if (variant === "compact") {
|
|
111
|
-
const active = chunkZ2TY4A75_cjs.FLOW_KEYS.filter((k) => (data[k] ?? 0) > 0).sort((a, b) => (data[b] ?? 0) - (data[a] ?? 0));
|
|
112
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
113
|
-
"div",
|
|
114
|
-
{
|
|
115
|
-
ref,
|
|
116
|
-
"data-slot": "flow-distribution",
|
|
117
|
-
className: chunkNV4JOKWL_cjs.cn("inline-flex flex-wrap gap-2", className),
|
|
118
|
-
...props,
|
|
119
|
-
children: active.map((k) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
120
|
-
"span",
|
|
121
|
-
{
|
|
122
|
-
className: "inline-flex items-center gap-1 rounded-full px-2 py-0.5",
|
|
123
|
-
style: {
|
|
124
|
-
backgroundColor: `hsl(var(${tokenVar(k)}) / 0.12)`,
|
|
125
|
-
color: `hsl(var(${tokenVar(k)}))`
|
|
126
|
-
},
|
|
127
|
-
children: [
|
|
128
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs font-medium", children: labels[k] }),
|
|
129
|
-
showPercent && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-xs font-bold tabular-nums", children: [
|
|
130
|
-
chunkNV4JOKWL_cjs.convertToLocalNumbers(percents[k], locale),
|
|
131
|
-
percentSign
|
|
132
|
-
] }),
|
|
133
|
-
showCounts && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-xs text-foreground-muted tabular-nums", children: [
|
|
134
|
-
"(",
|
|
135
|
-
chunkNV4JOKWL_cjs.convertToLocalNumbers(data[k] ?? 0, locale),
|
|
136
|
-
")"
|
|
137
|
-
] })
|
|
138
|
-
]
|
|
139
|
-
},
|
|
140
|
-
k
|
|
141
|
-
))
|
|
142
|
-
}
|
|
143
|
-
);
|
|
144
|
-
}
|
|
145
|
-
const sorted = chunkZ2TY4A75_cjs.FLOW_KEYS.filter((k) => (data[k] ?? 0) > 0).sort((a, b) => (data[b] ?? 0) - (data[a] ?? 0));
|
|
146
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, "data-slot": "flow-distribution", className: chunkNV4JOKWL_cjs.cn("space-y-1.5", className), ...props, children: sorted.map((k) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
147
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "w-24 shrink-0 text-xs text-foreground-light text-end", children: labels[k] }),
|
|
148
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative flex-1 h-2 rounded-full bg-muted overflow-hidden", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
149
|
-
"div",
|
|
150
|
-
{
|
|
151
|
-
className: "absolute inset-y-0 start-0 rounded-full transition-all duration-500",
|
|
152
|
-
style: {
|
|
153
|
-
width: `${percents[k]}%`,
|
|
154
|
-
backgroundColor: `hsl(var(${tokenVar(k)}))`
|
|
155
|
-
},
|
|
156
|
-
role: "progressbar",
|
|
157
|
-
"aria-valuenow": percents[k],
|
|
158
|
-
"aria-valuemin": 0,
|
|
159
|
-
"aria-valuemax": 100,
|
|
160
|
-
"aria-label": `${labels[k]}: ${percents[k]}%`
|
|
161
|
-
}
|
|
162
|
-
) }),
|
|
163
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
164
|
-
"span",
|
|
165
|
-
{
|
|
166
|
-
className: "w-12 shrink-0 text-xs font-medium tabular-nums text-start",
|
|
167
|
-
style: { color: `hsl(var(${tokenVar(k)}))` },
|
|
168
|
-
children: showCounts ? chunkNV4JOKWL_cjs.convertToLocalNumbers((data[k] ?? 0).toLocaleString(), locale) : `${chunkNV4JOKWL_cjs.convertToLocalNumbers(percents[k], locale)}${percentSign}`
|
|
169
|
-
}
|
|
170
|
-
)
|
|
171
|
-
] }, k)) });
|
|
172
|
-
}
|
|
173
|
-
);
|
|
174
|
-
FlowDistribution.displayName = "FlowDistribution";
|
|
175
|
-
var LABELS = {
|
|
176
|
-
fa: { positive: "\u0645\u062B\u0628\u062A", negative: "\u0645\u0646\u0641\u06CC", neutral: "\u062E\u0646\u062B\u06CC", mixed: "\u062A\u0631\u06A9\u06CC\u0628\u06CC" },
|
|
177
|
-
ar: { positive: "\u0625\u064A\u062C\u0627\u0628\u064A", negative: "\u0633\u0644\u0628\u064A", neutral: "\u0645\u062D\u0627\u064A\u062F", mixed: "\u0645\u062E\u062A\u0644\u0637" },
|
|
178
|
-
en: { positive: "Positive", negative: "Negative", neutral: "Neutral", mixed: "Mixed" }
|
|
179
|
-
};
|
|
180
|
-
var SENTIMENT_STYLES = {
|
|
181
|
-
positive: {
|
|
182
|
-
bar: "bg-[hsl(var(--sentiment-positive))]",
|
|
183
|
-
text: "text-[hsl(var(--sentiment-positive))]",
|
|
184
|
-
bg: "bg-[hsl(var(--sentiment-positive)/0.12)]"
|
|
185
|
-
},
|
|
186
|
-
negative: {
|
|
187
|
-
bar: "bg-[hsl(var(--sentiment-negative))]",
|
|
188
|
-
text: "text-[hsl(var(--sentiment-negative))]",
|
|
189
|
-
bg: "bg-[hsl(var(--sentiment-negative)/0.12)]"
|
|
190
|
-
},
|
|
191
|
-
neutral: {
|
|
192
|
-
bar: "bg-[hsl(var(--sentiment-neutral))]",
|
|
193
|
-
text: "text-[hsl(var(--sentiment-neutral))]",
|
|
194
|
-
bg: "bg-[hsl(var(--sentiment-neutral)/0.12)]"
|
|
195
|
-
},
|
|
196
|
-
mixed: {
|
|
197
|
-
bar: "bg-[hsl(var(--sentiment-mixed))]",
|
|
198
|
-
text: "text-[hsl(var(--sentiment-mixed))]",
|
|
199
|
-
bg: "bg-[hsl(var(--sentiment-mixed)/0.12)]"
|
|
200
|
-
}
|
|
201
|
-
};
|
|
202
|
-
function calcPercents2(data) {
|
|
203
|
-
const keys = ["positive", "negative", "neutral", "mixed"].filter((k) => (data[k] ?? 0) > 0);
|
|
204
|
-
const total = ["positive", "negative", "neutral", "mixed"].reduce((sum, k) => sum + (data[k] ?? 0), 0);
|
|
205
|
-
if (total === 0) return { positive: 0, negative: 0, neutral: 0, mixed: 0 };
|
|
206
|
-
const floats = keys.map((k) => ({ k, v: (data[k] ?? 0) / total * 100 }));
|
|
207
|
-
const floors = floats.map(({ k, v }) => ({ k, floor: Math.floor(v), rem: v - Math.floor(v) }));
|
|
208
|
-
const remaining = 100 - floors.reduce((s, f) => s + f.floor, 0);
|
|
209
|
-
const sorted = [...floors].sort((a, b) => b.rem - a.rem);
|
|
210
|
-
sorted.slice(0, remaining).forEach((f) => f.floor++);
|
|
211
|
-
const result = { positive: 0, negative: 0, neutral: 0, mixed: 0 };
|
|
212
|
-
sorted.forEach(({ k, floor }) => result[k] = floor);
|
|
213
|
-
return result;
|
|
214
|
-
}
|
|
215
|
-
var SENTIMENT_ORDER = ["positive", "neutral", "mixed", "negative"];
|
|
216
|
-
var SentimentDistribution = React__namespace.forwardRef(
|
|
217
|
-
({
|
|
218
|
-
className,
|
|
219
|
-
data,
|
|
220
|
-
variant = "bars",
|
|
221
|
-
showCounts = false,
|
|
222
|
-
showPercent = true,
|
|
223
|
-
locale = "fa",
|
|
224
|
-
isLoading = false,
|
|
225
|
-
...props
|
|
226
|
-
}, ref) => {
|
|
227
|
-
const labels = LABELS[locale] ?? LABELS.fa;
|
|
228
|
-
const percents = calcPercents2(data);
|
|
229
|
-
const activeOrder = SENTIMENT_ORDER.filter((key) => (data[key] ?? 0) > 0);
|
|
230
|
-
if (isLoading) {
|
|
231
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, "data-slot": "sentiment-distribution", className: chunkNV4JOKWL_cjs.cn("space-y-2", className), ...props, children: variant === "stacked" ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-3 w-full rounded-full bg-muted animate-pulse" }) : variant === "compact" ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex gap-2", children: [0, 1, 2].map((i) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-4 w-16 rounded bg-muted animate-pulse" }, i)) }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-2", children: [0, 1, 2].map((i) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
232
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-3 w-12 rounded bg-muted animate-pulse" }),
|
|
233
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-2 flex-1 rounded-full bg-muted animate-pulse" }),
|
|
234
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-3 w-8 rounded bg-muted animate-pulse" })
|
|
235
|
-
] }, i)) }) });
|
|
236
|
-
}
|
|
237
|
-
if (variant === "stacked") {
|
|
238
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "sentiment-distribution", className: chunkNV4JOKWL_cjs.cn("space-y-2", className), ...props, children: [
|
|
239
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
240
|
-
"div",
|
|
241
|
-
{
|
|
242
|
-
className: "flex h-3 w-full overflow-hidden rounded-full bg-muted",
|
|
243
|
-
role: "img",
|
|
244
|
-
"aria-label": `${labels.positive} ${percents.positive}\u066A\u060C ${labels.negative} ${percents.negative}\u066A\u060C ${labels.neutral} ${percents.neutral}\u066A`,
|
|
245
|
-
children: activeOrder.map((key) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
246
|
-
"div",
|
|
247
|
-
{
|
|
248
|
-
className: chunkNV4JOKWL_cjs.cn("transition-all duration-500", SENTIMENT_STYLES[key].bar),
|
|
249
|
-
style: { width: `${percents[key]}%` }
|
|
250
|
-
},
|
|
251
|
-
key
|
|
252
|
-
))
|
|
253
|
-
}
|
|
254
|
-
),
|
|
255
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap gap-x-3 gap-y-1", children: activeOrder.map((key) => /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "inline-flex items-center gap-1", children: [
|
|
256
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: chunkNV4JOKWL_cjs.cn("inline-block h-2 w-2 rounded-full", SENTIMENT_STYLES[key].bar) }),
|
|
257
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs text-foreground-light", children: labels[key] }),
|
|
258
|
-
showPercent && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: chunkNV4JOKWL_cjs.cn("text-xs font-medium", SENTIMENT_STYLES[key].text), children: [
|
|
259
|
-
chunkNV4JOKWL_cjs.convertToLocalNumbers(percents[key], locale),
|
|
260
|
-
locale === "en" ? "%" : "\u066A"
|
|
261
|
-
] }),
|
|
262
|
-
showCounts && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-xs text-foreground-muted", children: [
|
|
263
|
-
"(",
|
|
264
|
-
chunkNV4JOKWL_cjs.convertToLocalNumbers(data[key] ?? 0, locale),
|
|
265
|
-
")"
|
|
266
|
-
] })
|
|
267
|
-
] }, key)) })
|
|
268
|
-
] });
|
|
269
|
-
}
|
|
270
|
-
if (variant === "compact") {
|
|
271
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
272
|
-
"div",
|
|
273
|
-
{
|
|
274
|
-
ref,
|
|
275
|
-
"data-slot": "sentiment-distribution",
|
|
276
|
-
className: chunkNV4JOKWL_cjs.cn("inline-flex flex-wrap gap-2", className),
|
|
277
|
-
...props,
|
|
278
|
-
children: activeOrder.map((key) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
279
|
-
"span",
|
|
280
|
-
{
|
|
281
|
-
className: chunkNV4JOKWL_cjs.cn("inline-flex items-center gap-1 rounded-full px-2 py-0.5", SENTIMENT_STYLES[key].bg),
|
|
282
|
-
children: [
|
|
283
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: chunkNV4JOKWL_cjs.cn("text-xs font-medium", SENTIMENT_STYLES[key].text), children: labels[key] }),
|
|
284
|
-
showPercent && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: chunkNV4JOKWL_cjs.cn("text-xs font-bold tabular-nums", SENTIMENT_STYLES[key].text), children: [
|
|
285
|
-
chunkNV4JOKWL_cjs.convertToLocalNumbers(percents[key], locale),
|
|
286
|
-
locale === "en" ? "%" : "\u066A"
|
|
287
|
-
] }),
|
|
288
|
-
showCounts && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-xs text-foreground-muted tabular-nums", children: [
|
|
289
|
-
"(",
|
|
290
|
-
chunkNV4JOKWL_cjs.convertToLocalNumbers((data[key] ?? 0).toLocaleString(), locale),
|
|
291
|
-
")"
|
|
292
|
-
] })
|
|
293
|
-
]
|
|
294
|
-
},
|
|
295
|
-
key
|
|
296
|
-
))
|
|
297
|
-
}
|
|
298
|
-
);
|
|
299
|
-
}
|
|
300
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, "data-slot": "sentiment-distribution", className: chunkNV4JOKWL_cjs.cn("space-y-1.5", className), ...props, children: activeOrder.map((key) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
301
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "w-10 shrink-0 text-xs text-foreground-light text-end", children: labels[key] }),
|
|
302
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative flex-1 h-2 rounded-full bg-muted overflow-hidden", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
303
|
-
"div",
|
|
304
|
-
{
|
|
305
|
-
className: chunkNV4JOKWL_cjs.cn(
|
|
306
|
-
"absolute inset-y-0 start-0 rounded-full transition-all duration-500",
|
|
307
|
-
SENTIMENT_STYLES[key].bar
|
|
308
|
-
),
|
|
309
|
-
style: { width: `${percents[key]}%` },
|
|
310
|
-
role: "progressbar",
|
|
311
|
-
"aria-valuenow": percents[key],
|
|
312
|
-
"aria-valuemin": 0,
|
|
313
|
-
"aria-valuemax": 100,
|
|
314
|
-
"aria-label": `${labels[key]}: ${percents[key]}%`
|
|
315
|
-
}
|
|
316
|
-
) }),
|
|
317
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
318
|
-
"span",
|
|
319
|
-
{
|
|
320
|
-
className: chunkNV4JOKWL_cjs.cn("w-10 shrink-0 text-xs font-medium tabular-nums text-start", SENTIMENT_STYLES[key].text),
|
|
321
|
-
children: showCounts ? chunkNV4JOKWL_cjs.convertToLocalNumbers((data[key] ?? 0).toLocaleString(), locale) : `${chunkNV4JOKWL_cjs.convertToLocalNumbers(percents[key], locale)}${locale === "en" ? "%" : "\u066A"}`
|
|
322
|
-
}
|
|
323
|
-
)
|
|
324
|
-
] }, key)) });
|
|
325
|
-
}
|
|
326
|
-
);
|
|
327
|
-
SentimentDistribution.displayName = "SentimentDistribution";
|
|
328
|
-
var ConceptCard = React__namespace.forwardRef(
|
|
329
|
-
({
|
|
330
|
-
className,
|
|
331
|
-
title,
|
|
332
|
-
subtitle,
|
|
333
|
-
status,
|
|
334
|
-
severity,
|
|
335
|
-
flow,
|
|
336
|
-
sentiment,
|
|
337
|
-
trend,
|
|
338
|
-
aiSummary,
|
|
339
|
-
totalCount,
|
|
340
|
-
comparison,
|
|
341
|
-
interactive = false,
|
|
342
|
-
locale = "fa",
|
|
343
|
-
onClick,
|
|
344
|
-
...props
|
|
345
|
-
}, ref) => {
|
|
346
|
-
const isClickable = interactive || !!onClick;
|
|
347
|
-
const handleClick = isClickable ? (e) => {
|
|
348
|
-
const target = e.target;
|
|
349
|
-
if (target && target.closest('[data-slot="concept-card-comparison"]')) return;
|
|
350
|
-
onClick?.(e);
|
|
351
|
-
} : void 0;
|
|
352
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
353
|
-
"div",
|
|
354
|
-
{
|
|
355
|
-
ref,
|
|
356
|
-
"data-slot": "concept-card",
|
|
357
|
-
"data-status": status,
|
|
358
|
-
"data-severity": severity,
|
|
359
|
-
role: isClickable ? "button" : "article",
|
|
360
|
-
tabIndex: isClickable ? 0 : void 0,
|
|
361
|
-
onClick: handleClick,
|
|
362
|
-
onKeyDown: isClickable ? (e) => {
|
|
363
|
-
if ((e.key === "Enter" || e.key === " ") && e.target === e.currentTarget) {
|
|
364
|
-
e.preventDefault();
|
|
365
|
-
e.currentTarget.click();
|
|
366
|
-
}
|
|
367
|
-
} : void 0,
|
|
368
|
-
className: chunkNV4JOKWL_cjs.cn(
|
|
369
|
-
"group/concept-card flex flex-col gap-3 rounded-lg border border-border bg-background p-4 transition-colors",
|
|
370
|
-
isClickable && "cursor-pointer hover:border-strong hover:bg-surface-100/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
|
371
|
-
className
|
|
372
|
-
),
|
|
373
|
-
...props,
|
|
374
|
-
children: [
|
|
375
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
376
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
377
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 flex-wrap", children: [
|
|
378
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-sm font-semibold text-foreground truncate", children: title }),
|
|
379
|
-
status && /* @__PURE__ */ jsxRuntime.jsx(chunkHJPDZOMJ_cjs.StatusBadge, { status, size: "sm", animated: true, locale }),
|
|
380
|
-
severity && /* @__PURE__ */ jsxRuntime.jsx(chunkGKRAZGDI_cjs.SeverityBadge, { severity, size: "sm", locale })
|
|
381
|
-
] }),
|
|
382
|
-
subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-0.5 text-xs text-foreground-lighter truncate", children: subtitle })
|
|
383
|
-
] }),
|
|
384
|
-
comparison && /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "concept-card-comparison", className: "shrink-0", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
385
|
-
chunkCAJKSTXX_cjs.Checkbox,
|
|
386
|
-
{
|
|
387
|
-
checked: comparison.selected,
|
|
388
|
-
onCheckedChange: (next) => comparison.onSelectionChange(next === true),
|
|
389
|
-
"aria-label": typeof comparison.label === "string" ? comparison.label : locale === "fa" ? "\u0627\u0646\u062A\u062E\u0627\u0628 \u0628\u0631\u0627\u06CC \u0645\u0642\u0627\u06CC\u0633\u0647" : locale === "ar" ? "\u062A\u062D\u062F\u064A\u062F \u0644\u0644\u0645\u0642\u0627\u0631\u0646\u0629" : "Select for comparison"
|
|
390
|
-
}
|
|
391
|
-
) })
|
|
392
|
-
] }),
|
|
393
|
-
aiSummary && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-foreground leading-relaxed", children: aiSummary }),
|
|
394
|
-
(flow || sentiment) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
395
|
-
flow && /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "concept-card-flow", children: /* @__PURE__ */ jsxRuntime.jsx(FlowDistribution, { data: flow, variant: "stacked", showCounts: false, showPercent: true, locale }) }),
|
|
396
|
-
sentiment && /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "concept-card-sentiment", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
397
|
-
SentimentDistribution,
|
|
398
|
-
{
|
|
399
|
-
data: sentiment,
|
|
400
|
-
variant: "stacked",
|
|
401
|
-
showCounts: false,
|
|
402
|
-
showPercent: true,
|
|
403
|
-
locale
|
|
404
|
-
}
|
|
405
|
-
) })
|
|
406
|
-
] }),
|
|
407
|
-
(trend || typeof totalCount === "number") && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-end justify-between gap-3 pt-1 border-t border-border mt-auto", children: [
|
|
408
|
-
trend && trend.length > 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "concept-card-trend", children: /* @__PURE__ */ jsxRuntime.jsx(chunkS5IPJQZ3_cjs.Sparkline, { data: trend, variant: "area", width: 120, height: 28 }) }) : /* @__PURE__ */ jsxRuntime.jsx("span", {}),
|
|
409
|
-
typeof totalCount === "number" && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-end", children: [
|
|
410
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-xs text-foreground-lighter", children: locale === "fa" ? "\u0645\u062C\u0645\u0648\u0639" : locale === "ar" ? "\u0627\u0644\u0625\u062C\u0645\u0627\u0644\u064A" : "Total" }),
|
|
411
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm font-semibold tabular-nums text-foreground", children: chunkNV4JOKWL_cjs.convertToLocalNumbers(totalCount, locale) })
|
|
412
|
-
] })
|
|
413
|
-
] })
|
|
414
|
-
]
|
|
415
|
-
}
|
|
416
|
-
);
|
|
417
|
-
}
|
|
418
|
-
);
|
|
419
|
-
ConceptCard.displayName = "ConceptCard";
|
|
420
|
-
|
|
421
|
-
exports.ConceptCard = ConceptCard;
|
|
422
|
-
exports.FlowDistribution = FlowDistribution;
|
|
423
|
-
exports.SentimentDistribution = SentimentDistribution;
|
|
424
|
-
//# sourceMappingURL=chunk-HYZ6BQPS.cjs.map
|
|
425
|
-
//# sourceMappingURL=chunk-HYZ6BQPS.cjs.map
|