@parto-system-design/ui 1.1.4 → 1.1.7
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/AGENTS.md +233 -0
- package/LICENSE +21 -0
- package/README.md +96 -43
- package/dist/chunk-2UD3LGVX.cjs +316 -0
- package/dist/chunk-2UD3LGVX.cjs.map +1 -0
- package/dist/chunk-34JUCX2G.cjs +43 -0
- package/dist/chunk-34JUCX2G.cjs.map +1 -0
- package/dist/chunk-3AIJKXBV.cjs +242 -0
- package/dist/chunk-3AIJKXBV.cjs.map +1 -0
- package/dist/chunk-4SVQNEVH.js +173 -0
- package/dist/chunk-4SVQNEVH.js.map +1 -0
- package/dist/chunk-53QY4PD3.js +908 -0
- package/dist/chunk-53QY4PD3.js.map +1 -0
- package/dist/chunk-5JJSRGJD.js +31 -0
- package/dist/chunk-5JJSRGJD.js.map +1 -0
- package/dist/chunk-5K6E4ZSW.cjs +77 -0
- package/dist/chunk-5K6E4ZSW.cjs.map +1 -0
- package/dist/chunk-5NY26ULO.js +89 -0
- package/dist/chunk-5NY26ULO.js.map +1 -0
- package/dist/chunk-7RVPG3LE.cjs +231 -0
- package/dist/chunk-7RVPG3LE.cjs.map +1 -0
- package/dist/chunk-7Y4V3R3Y.cjs +120 -0
- package/dist/chunk-7Y4V3R3Y.cjs.map +1 -0
- package/dist/chunk-AXAY64KL.js +39 -0
- package/dist/chunk-AXAY64KL.js.map +1 -0
- package/dist/chunk-AYEK3WOM.js +207 -0
- package/dist/chunk-AYEK3WOM.js.map +1 -0
- package/dist/chunk-BRMBLIQG.js +53 -0
- package/dist/chunk-BRMBLIQG.js.map +1 -0
- package/dist/chunk-CAJKSTXX.cjs +54 -0
- package/dist/chunk-CAJKSTXX.cjs.map +1 -0
- package/dist/chunk-CKFWMHQU.js +401 -0
- package/dist/chunk-CKFWMHQU.js.map +1 -0
- package/dist/chunk-CV3N3HVK.js +672 -0
- package/dist/chunk-CV3N3HVK.js.map +1 -0
- package/dist/chunk-D2EBLE2B.cjs +220 -0
- package/dist/chunk-D2EBLE2B.cjs.map +1 -0
- package/dist/chunk-D5XCQDFS.js +92 -0
- package/dist/chunk-D5XCQDFS.js.map +1 -0
- package/dist/chunk-GDHRYKVM.js +45 -0
- package/dist/chunk-GDHRYKVM.js.map +1 -0
- package/dist/chunk-GKRAZGDI.cjs +84 -0
- package/dist/chunk-GKRAZGDI.cjs.map +1 -0
- package/dist/chunk-HEYMLQOV.cjs +94 -0
- package/dist/chunk-HEYMLQOV.cjs.map +1 -0
- package/dist/chunk-HF6XU5NI.js +84 -0
- package/dist/chunk-HF6XU5NI.js.map +1 -0
- package/dist/chunk-HJPDZOMJ.cjs +87 -0
- package/dist/chunk-HJPDZOMJ.cjs.map +1 -0
- package/dist/chunk-HUCC3QH5.cjs +53 -0
- package/dist/chunk-HUCC3QH5.cjs.map +1 -0
- package/dist/chunk-HYZ6BQPS.cjs +425 -0
- package/dist/chunk-HYZ6BQPS.cjs.map +1 -0
- package/dist/chunk-IQHKJ4SS.js +213 -0
- package/dist/chunk-IQHKJ4SS.js.map +1 -0
- package/dist/chunk-ISCSZMYW.cjs +106 -0
- package/dist/chunk-ISCSZMYW.cjs.map +1 -0
- package/dist/chunk-IXFEFIDO.js +82 -0
- package/dist/chunk-IXFEFIDO.js.map +1 -0
- package/dist/chunk-JUBHQAA2.js +53 -0
- package/dist/chunk-JUBHQAA2.js.map +1 -0
- package/dist/chunk-KCWRCSI7.js +62 -0
- package/dist/chunk-KCWRCSI7.js.map +1 -0
- package/dist/chunk-L2L5CKC2.js +291 -0
- package/dist/chunk-L2L5CKC2.js.map +1 -0
- package/dist/chunk-LLJR7FV3.js +135 -0
- package/dist/chunk-LLJR7FV3.js.map +1 -0
- package/dist/chunk-LZMCMZZF.js +118 -0
- package/dist/chunk-LZMCMZZF.js.map +1 -0
- package/dist/chunk-M5CHZ5BA.js +124 -0
- package/dist/chunk-M5CHZ5BA.js.map +1 -0
- package/dist/chunk-MBCTRNTG.js +89 -0
- package/dist/chunk-MBCTRNTG.js.map +1 -0
- package/dist/chunk-MEK4RSGC.js +65 -0
- package/dist/chunk-MEK4RSGC.js.map +1 -0
- package/dist/chunk-MFTX2DDQ.js +27 -0
- package/dist/chunk-MFTX2DDQ.js.map +1 -0
- package/dist/chunk-MKYVQQBV.cjs +114 -0
- package/dist/chunk-MKYVQQBV.cjs.map +1 -0
- package/dist/chunk-MQGQVI3W.cjs +950 -0
- package/dist/chunk-MQGQVI3W.cjs.map +1 -0
- package/dist/chunk-NEFZJHE4.cjs +157 -0
- package/dist/chunk-NEFZJHE4.cjs.map +1 -0
- package/dist/chunk-NEML6RCV.js +405 -0
- package/dist/chunk-NEML6RCV.js.map +1 -0
- package/dist/chunk-NV4JOKWL.cjs +197 -0
- package/dist/chunk-NV4JOKWL.cjs.map +1 -0
- package/dist/chunk-O2JG7WY5.cjs +121 -0
- package/dist/chunk-O2JG7WY5.cjs.map +1 -0
- package/dist/chunk-OEVMKFFL.cjs +140 -0
- package/dist/chunk-OEVMKFFL.cjs.map +1 -0
- package/dist/chunk-ONO2FTV4.cjs +68 -0
- package/dist/chunk-ONO2FTV4.cjs.map +1 -0
- package/dist/chunk-OS6CMYAS.cjs +79 -0
- package/dist/chunk-OS6CMYAS.cjs.map +1 -0
- package/dist/chunk-P5XHPNJG.cjs +430 -0
- package/dist/chunk-P5XHPNJG.cjs.map +1 -0
- package/dist/chunk-QJ7UB2ZQ.js +98 -0
- package/dist/chunk-QJ7UB2ZQ.js.map +1 -0
- package/dist/chunk-RA5KZNG5.js +269 -0
- package/dist/chunk-RA5KZNG5.js.map +1 -0
- package/dist/chunk-RJ3HYZ7S.js +44 -0
- package/dist/chunk-RJ3HYZ7S.js.map +1 -0
- package/dist/chunk-RZNRIOLT.js +128 -0
- package/dist/chunk-RZNRIOLT.js.map +1 -0
- package/dist/chunk-S5IPJQZ3.cjs +161 -0
- package/dist/chunk-S5IPJQZ3.cjs.map +1 -0
- package/dist/chunk-SB5DSYR5.js +211 -0
- package/dist/chunk-SB5DSYR5.js.map +1 -0
- package/dist/chunk-SCGW2BH4.cjs +69 -0
- package/dist/chunk-SCGW2BH4.cjs.map +1 -0
- package/dist/chunk-SCX6AR53.cjs +108 -0
- package/dist/chunk-SCX6AR53.cjs.map +1 -0
- package/dist/chunk-SFXV2DUH.js +106 -0
- package/dist/chunk-SFXV2DUH.js.map +1 -0
- package/dist/chunk-SXEPGD4Z.cjs +152 -0
- package/dist/chunk-SXEPGD4Z.cjs.map +1 -0
- package/dist/chunk-SZMVOHT7.cjs +107 -0
- package/dist/chunk-SZMVOHT7.cjs.map +1 -0
- package/dist/chunk-U5FLLCGC.cjs +151 -0
- package/dist/chunk-U5FLLCGC.cjs.map +1 -0
- package/dist/chunk-VO3B75F6.cjs +111 -0
- package/dist/chunk-VO3B75F6.cjs.map +1 -0
- package/dist/chunk-YAJWTNOX.js +106 -0
- package/dist/chunk-YAJWTNOX.js.map +1 -0
- package/dist/chunk-YC5KLN6I.js +139 -0
- package/dist/chunk-YC5KLN6I.js.map +1 -0
- package/dist/chunk-YE477L2H.cjs +272 -0
- package/dist/chunk-YE477L2H.cjs.map +1 -0
- package/dist/chunk-Z2TY4A75.cjs +700 -0
- package/dist/chunk-Z2TY4A75.cjs.map +1 -0
- package/dist/chunk-Z56O7UEU.cjs +136 -0
- package/dist/chunk-Z56O7UEU.cjs.map +1 -0
- package/dist/chunk-ZZFNJR2E.js +71 -0
- package/dist/chunk-ZZFNJR2E.js.map +1 -0
- package/dist/components/charts/PartoAreaChart.cjs +15 -0
- package/dist/components/charts/PartoAreaChart.cjs.map +1 -0
- package/dist/components/charts/PartoAreaChart.d.cts +51 -0
- package/dist/components/charts/PartoAreaChart.d.ts +51 -0
- package/dist/components/charts/PartoAreaChart.js +6 -0
- package/dist/components/charts/PartoAreaChart.js.map +1 -0
- package/dist/components/charts/PartoBarChart.cjs +15 -0
- package/dist/components/charts/PartoBarChart.cjs.map +1 -0
- package/dist/components/charts/PartoBarChart.d.cts +55 -0
- package/dist/components/charts/PartoBarChart.d.ts +55 -0
- package/dist/components/charts/PartoBarChart.js +6 -0
- package/dist/components/charts/PartoBarChart.js.map +1 -0
- package/dist/components/charts/PartoLineChart.cjs +15 -0
- package/dist/components/charts/PartoLineChart.cjs.map +1 -0
- package/dist/components/charts/PartoLineChart.d.cts +49 -0
- package/dist/components/charts/PartoLineChart.d.ts +49 -0
- package/dist/components/charts/PartoLineChart.js +6 -0
- package/dist/components/charts/PartoLineChart.js.map +1 -0
- package/dist/components/charts/PartoPieChart.cjs +15 -0
- package/dist/components/charts/PartoPieChart.cjs.map +1 -0
- package/dist/components/charts/PartoPieChart.d.cts +44 -0
- package/dist/components/charts/PartoPieChart.d.ts +44 -0
- package/dist/components/charts/PartoPieChart.js +6 -0
- package/dist/components/charts/PartoPieChart.js.map +1 -0
- package/dist/components/ui/alert-rule-card.cjs +15 -0
- package/dist/components/ui/alert-rule-card.cjs.map +1 -0
- package/dist/components/ui/alert-rule-card.d.cts +38 -0
- package/dist/components/ui/alert-rule-card.d.ts +38 -0
- package/dist/components/ui/alert-rule-card.js +6 -0
- package/dist/components/ui/alert-rule-card.js.map +1 -0
- package/dist/components/ui/avatar.cjs +21 -0
- package/dist/components/ui/avatar.cjs.map +1 -0
- package/dist/components/ui/avatar.d.cts +18 -0
- package/dist/components/ui/avatar.d.ts +18 -0
- package/dist/components/ui/avatar.js +4 -0
- package/dist/components/ui/avatar.js.map +1 -0
- package/dist/components/ui/badge.cjs +17 -0
- package/dist/components/ui/badge.cjs.map +1 -0
- package/dist/components/ui/badge.d.cts +16 -0
- package/dist/components/ui/badge.d.ts +16 -0
- package/dist/components/ui/badge.js +4 -0
- package/dist/components/ui/badge.js.map +1 -0
- package/dist/components/ui/button.cjs +18 -0
- package/dist/components/ui/button.cjs.map +1 -0
- package/dist/components/ui/button.d.cts +37 -0
- package/dist/components/ui/button.d.ts +37 -0
- package/dist/components/ui/button.js +5 -0
- package/dist/components/ui/button.js.map +1 -0
- package/dist/components/ui/calendar.cjs +15 -0
- package/dist/components/ui/calendar.cjs.map +1 -0
- package/dist/components/ui/calendar.d.cts +17 -0
- package/dist/components/ui/calendar.d.ts +17 -0
- package/dist/components/ui/calendar.js +6 -0
- package/dist/components/ui/calendar.js.map +1 -0
- package/dist/components/ui/card.cjs +37 -0
- package/dist/components/ui/card.cjs.map +1 -0
- package/dist/components/ui/card.d.cts +18 -0
- package/dist/components/ui/card.d.ts +18 -0
- package/dist/components/ui/card.js +4 -0
- package/dist/components/ui/card.js.map +1 -0
- package/dist/components/ui/concept-card.cjs +18 -0
- package/dist/components/ui/concept-card.cjs.map +1 -0
- package/dist/components/ui/concept-card.d.cts +5 -0
- package/dist/components/ui/concept-card.d.ts +5 -0
- package/dist/components/ui/concept-card.js +9 -0
- package/dist/components/ui/concept-card.js.map +1 -0
- package/dist/components/ui/data-table.cjs +18 -0
- package/dist/components/ui/data-table.cjs.map +1 -0
- package/dist/components/ui/data-table.d.cts +181 -0
- package/dist/components/ui/data-table.d.ts +181 -0
- package/dist/components/ui/data-table.js +9 -0
- package/dist/components/ui/data-table.js.map +1 -0
- package/dist/components/ui/dialog.cjs +49 -0
- package/dist/components/ui/dialog.cjs.map +1 -0
- package/dist/components/ui/dialog.d.cts +22 -0
- package/dist/components/ui/dialog.d.ts +22 -0
- package/dist/components/ui/dialog.js +4 -0
- package/dist/components/ui/dialog.js.map +1 -0
- package/dist/components/ui/filter-provider.cjs +20 -0
- package/dist/components/ui/filter-provider.cjs.map +1 -0
- package/dist/components/ui/filter-provider.d.cts +49 -0
- package/dist/components/ui/filter-provider.d.ts +49 -0
- package/dist/components/ui/filter-provider.js +3 -0
- package/dist/components/ui/filter-provider.js.map +1 -0
- package/dist/components/ui/input.cjs +22 -0
- package/dist/components/ui/input.cjs.map +1 -0
- package/dist/components/ui/input.d.cts +16 -0
- package/dist/components/ui/input.d.ts +16 -0
- package/dist/components/ui/input.js +5 -0
- package/dist/components/ui/input.js.map +1 -0
- package/dist/components/ui/iran-province-heat.cjs +13 -0
- package/dist/components/ui/iran-province-heat.cjs.map +1 -0
- package/dist/components/ui/iran-province-heat.d.cts +64 -0
- package/dist/components/ui/iran-province-heat.d.ts +64 -0
- package/dist/components/ui/iran-province-heat.js +4 -0
- package/dist/components/ui/iran-province-heat.js.map +1 -0
- package/dist/components/ui/page-card.cjs +16 -0
- package/dist/components/ui/page-card.cjs.map +1 -0
- package/dist/components/ui/page-card.d.cts +6 -0
- package/dist/components/ui/page-card.d.ts +6 -0
- package/dist/components/ui/page-card.js +7 -0
- package/dist/components/ui/page-card.js.map +1 -0
- package/dist/components/ui/popover.cjs +25 -0
- package/dist/components/ui/popover.cjs.map +1 -0
- package/dist/components/ui/popover.d.cts +9 -0
- package/dist/components/ui/popover.d.ts +9 -0
- package/dist/components/ui/popover.js +4 -0
- package/dist/components/ui/popover.js.map +1 -0
- package/dist/components/ui/saved-query-card.cjs +15 -0
- package/dist/components/ui/saved-query-card.cjs.map +1 -0
- package/dist/components/ui/saved-query-card.d.cts +41 -0
- package/dist/components/ui/saved-query-card.d.ts +41 -0
- package/dist/components/ui/saved-query-card.js +6 -0
- package/dist/components/ui/saved-query-card.js.map +1 -0
- package/dist/components/ui/separator.cjs +13 -0
- package/dist/components/ui/separator.cjs.map +1 -0
- package/dist/components/ui/separator.d.cts +9 -0
- package/dist/components/ui/separator.d.ts +9 -0
- package/dist/components/ui/separator.js +4 -0
- package/dist/components/ui/separator.js.map +1 -0
- package/dist/components/ui/sheet.cjs +45 -0
- package/dist/components/ui/sheet.cjs.map +1 -0
- package/dist/components/ui/sheet.d.cts +44 -0
- package/dist/components/ui/sheet.d.ts +44 -0
- package/dist/components/ui/sheet.js +4 -0
- package/dist/components/ui/sheet.js.map +1 -0
- package/dist/components/ui/sparkline.cjs +13 -0
- package/dist/components/ui/sparkline.cjs.map +1 -0
- package/dist/components/ui/sparkline.d.cts +36 -0
- package/dist/components/ui/sparkline.d.ts +36 -0
- package/dist/components/ui/sparkline.js +4 -0
- package/dist/components/ui/sparkline.js.map +1 -0
- package/dist/components/ui/tooltip.cjs +25 -0
- package/dist/components/ui/tooltip.cjs.map +1 -0
- package/dist/components/ui/tooltip.d.cts +17 -0
- package/dist/components/ui/tooltip.d.ts +17 -0
- package/dist/components/ui/tooltip.js +4 -0
- package/dist/components/ui/tooltip.js.map +1 -0
- package/dist/concept-card-CcOBb2Nz.d.ts +83 -0
- package/dist/concept-card-RwPbqJ06.d.cts +83 -0
- package/dist/hooks/use-hotkey-registry.cjs +21 -0
- package/dist/hooks/use-hotkey-registry.cjs.map +1 -0
- package/dist/hooks/use-hotkey-registry.d.cts +65 -0
- package/dist/hooks/use-hotkey-registry.d.ts +65 -0
- package/dist/hooks/use-hotkey-registry.js +4 -0
- package/dist/hooks/use-hotkey-registry.js.map +1 -0
- package/dist/hooks/use-hotkeys.cjs +16 -0
- package/dist/hooks/use-hotkeys.cjs.map +1 -0
- package/dist/hooks/use-hotkeys.d.cts +66 -0
- package/dist/hooks/use-hotkeys.d.ts +66 -0
- package/dist/hooks/use-hotkeys.js +3 -0
- package/dist/hooks/use-hotkeys.js.map +1 -0
- package/dist/i18n-ArS3mqj0.d.ts +344 -0
- package/dist/i18n-CAd9wGOr.d.cts +344 -0
- package/dist/index.cjs +16630 -10326
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +910 -119
- package/dist/index.d.cts +3177 -844
- package/dist/index.d.ts +3177 -844
- package/dist/index.js +14211 -8649
- package/dist/index.js.map +1 -1
- package/dist/page-card-CO92oXkc.d.ts +100 -0
- package/dist/page-card-DOl50DqJ.d.cts +100 -0
- package/dist/utils-DlXWmDZ-.d.cts +35 -0
- package/dist/utils-DlXWmDZ-.d.ts +35 -0
- package/package.json +160 -4
- package/tailwind.config.ts +61 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"saved-query-card.js"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkSZMVOHT7_cjs = require('../../chunk-SZMVOHT7.cjs');
|
|
4
|
+
require('../../chunk-NV4JOKWL.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "Separator", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkSZMVOHT7_cjs.Separator; }
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=separator.cjs.map
|
|
13
|
+
//# sourceMappingURL=separator.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"separator.cjs"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
3
|
+
|
|
4
|
+
interface SeparatorProps extends React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root> {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
declare const Separator: React.ForwardRefExoticComponent<SeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
|
|
9
|
+
export { Separator };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
3
|
+
|
|
4
|
+
interface SeparatorProps extends React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root> {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
declare const Separator: React.ForwardRefExoticComponent<SeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
|
|
9
|
+
export { Separator };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"separator.js"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkZ56O7UEU_cjs = require('../../chunk-Z56O7UEU.cjs');
|
|
4
|
+
require('../../chunk-NV4JOKWL.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "Sheet", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkZ56O7UEU_cjs.Sheet; }
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "SheetBody", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () { return chunkZ56O7UEU_cjs.SheetBody; }
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(exports, "SheetClose", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return chunkZ56O7UEU_cjs.SheetClose; }
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports, "SheetContent", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () { return chunkZ56O7UEU_cjs.SheetContent; }
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "SheetDescription", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () { return chunkZ56O7UEU_cjs.SheetDescription; }
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(exports, "SheetFooter", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: function () { return chunkZ56O7UEU_cjs.SheetFooter; }
|
|
31
|
+
});
|
|
32
|
+
Object.defineProperty(exports, "SheetHeader", {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () { return chunkZ56O7UEU_cjs.SheetHeader; }
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "SheetTitle", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () { return chunkZ56O7UEU_cjs.SheetTitle; }
|
|
39
|
+
});
|
|
40
|
+
Object.defineProperty(exports, "SheetTrigger", {
|
|
41
|
+
enumerable: true,
|
|
42
|
+
get: function () { return chunkZ56O7UEU_cjs.SheetTrigger; }
|
|
43
|
+
});
|
|
44
|
+
//# sourceMappingURL=sheet.cjs.map
|
|
45
|
+
//# sourceMappingURL=sheet.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"sheet.cjs"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
4
|
+
|
|
5
|
+
declare function Sheet({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
6
|
+
declare namespace Sheet {
|
|
7
|
+
var displayName: string;
|
|
8
|
+
}
|
|
9
|
+
declare function SheetTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
10
|
+
declare namespace SheetTrigger {
|
|
11
|
+
var displayName: string;
|
|
12
|
+
}
|
|
13
|
+
declare function SheetClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): react_jsx_runtime.JSX.Element;
|
|
14
|
+
declare namespace SheetClose {
|
|
15
|
+
var displayName: string;
|
|
16
|
+
}
|
|
17
|
+
declare function SheetContent({ className, children, side, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
|
|
18
|
+
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
19
|
+
}): react_jsx_runtime.JSX.Element;
|
|
20
|
+
declare namespace SheetContent {
|
|
21
|
+
var displayName: string;
|
|
22
|
+
}
|
|
23
|
+
declare function SheetHeader({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
24
|
+
declare namespace SheetHeader {
|
|
25
|
+
var displayName: string;
|
|
26
|
+
}
|
|
27
|
+
declare function SheetBody({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
28
|
+
declare namespace SheetBody {
|
|
29
|
+
var displayName: string;
|
|
30
|
+
}
|
|
31
|
+
declare function SheetFooter({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
32
|
+
declare namespace SheetFooter {
|
|
33
|
+
var displayName: string;
|
|
34
|
+
}
|
|
35
|
+
declare function SheetTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
|
|
36
|
+
declare namespace SheetTitle {
|
|
37
|
+
var displayName: string;
|
|
38
|
+
}
|
|
39
|
+
declare function SheetDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): react_jsx_runtime.JSX.Element;
|
|
40
|
+
declare namespace SheetDescription {
|
|
41
|
+
var displayName: string;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export { Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
4
|
+
|
|
5
|
+
declare function Sheet({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
6
|
+
declare namespace Sheet {
|
|
7
|
+
var displayName: string;
|
|
8
|
+
}
|
|
9
|
+
declare function SheetTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
10
|
+
declare namespace SheetTrigger {
|
|
11
|
+
var displayName: string;
|
|
12
|
+
}
|
|
13
|
+
declare function SheetClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): react_jsx_runtime.JSX.Element;
|
|
14
|
+
declare namespace SheetClose {
|
|
15
|
+
var displayName: string;
|
|
16
|
+
}
|
|
17
|
+
declare function SheetContent({ className, children, side, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
|
|
18
|
+
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
19
|
+
}): react_jsx_runtime.JSX.Element;
|
|
20
|
+
declare namespace SheetContent {
|
|
21
|
+
var displayName: string;
|
|
22
|
+
}
|
|
23
|
+
declare function SheetHeader({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
24
|
+
declare namespace SheetHeader {
|
|
25
|
+
var displayName: string;
|
|
26
|
+
}
|
|
27
|
+
declare function SheetBody({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
28
|
+
declare namespace SheetBody {
|
|
29
|
+
var displayName: string;
|
|
30
|
+
}
|
|
31
|
+
declare function SheetFooter({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
32
|
+
declare namespace SheetFooter {
|
|
33
|
+
var displayName: string;
|
|
34
|
+
}
|
|
35
|
+
declare function SheetTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
|
|
36
|
+
declare namespace SheetTitle {
|
|
37
|
+
var displayName: string;
|
|
38
|
+
}
|
|
39
|
+
declare function SheetDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): react_jsx_runtime.JSX.Element;
|
|
40
|
+
declare namespace SheetDescription {
|
|
41
|
+
var displayName: string;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export { Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"sheet.js"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkS5IPJQZ3_cjs = require('../../chunk-S5IPJQZ3.cjs');
|
|
4
|
+
require('../../chunk-NV4JOKWL.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "Sparkline", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkS5IPJQZ3_cjs.Sparkline; }
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=sparkline.cjs.map
|
|
13
|
+
//# sourceMappingURL=sparkline.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"sparkline.cjs"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
type SparklineTrend = 'up' | 'down' | 'neutral' | 'auto';
|
|
4
|
+
type SparklineVariant = 'line' | 'area' | 'bars';
|
|
5
|
+
interface SparklineProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
/** Array of numeric data points. Must have at least 2 items to render line/area. */
|
|
7
|
+
data: number[];
|
|
8
|
+
/** Visual style @default "line" */
|
|
9
|
+
variant?: SparklineVariant;
|
|
10
|
+
/**
|
|
11
|
+
* Trend colour. `"auto"` compares first and last point:
|
|
12
|
+
* last > first → up, last < first → down, equal → neutral.
|
|
13
|
+
* Pass an explicit value to override.
|
|
14
|
+
* @default "auto"
|
|
15
|
+
*/
|
|
16
|
+
trend?: SparklineTrend;
|
|
17
|
+
/** Width in px. Also used as SVG viewBox width — output scales to parent when CSS overrides. @default 80 */
|
|
18
|
+
width?: number;
|
|
19
|
+
/** Height in px @default 24 */
|
|
20
|
+
height?: number;
|
|
21
|
+
/** Line / bar stroke width @default 1.5 */
|
|
22
|
+
strokeWidth?: number;
|
|
23
|
+
/** Show a filled dot at the last point */
|
|
24
|
+
showEndDot?: boolean;
|
|
25
|
+
/** Padding inside the viewBox so strokes/dots are not clipped @default 2 */
|
|
26
|
+
padding?: number;
|
|
27
|
+
/** Override color with any CSS value (e.g. `"hsl(var(--brand))"`). Takes precedence over `trend`. */
|
|
28
|
+
color?: string;
|
|
29
|
+
/** For bars variant — gap between bars in user units @default 1 */
|
|
30
|
+
barGap?: number;
|
|
31
|
+
/** aria-label for screen readers — describe the trend / metric */
|
|
32
|
+
'aria-label'?: string;
|
|
33
|
+
}
|
|
34
|
+
declare const Sparkline: React.ForwardRefExoticComponent<SparklineProps & React.RefAttributes<HTMLDivElement>>;
|
|
35
|
+
|
|
36
|
+
export { Sparkline, type SparklineProps, type SparklineTrend, type SparklineVariant };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
type SparklineTrend = 'up' | 'down' | 'neutral' | 'auto';
|
|
4
|
+
type SparklineVariant = 'line' | 'area' | 'bars';
|
|
5
|
+
interface SparklineProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
/** Array of numeric data points. Must have at least 2 items to render line/area. */
|
|
7
|
+
data: number[];
|
|
8
|
+
/** Visual style @default "line" */
|
|
9
|
+
variant?: SparklineVariant;
|
|
10
|
+
/**
|
|
11
|
+
* Trend colour. `"auto"` compares first and last point:
|
|
12
|
+
* last > first → up, last < first → down, equal → neutral.
|
|
13
|
+
* Pass an explicit value to override.
|
|
14
|
+
* @default "auto"
|
|
15
|
+
*/
|
|
16
|
+
trend?: SparklineTrend;
|
|
17
|
+
/** Width in px. Also used as SVG viewBox width — output scales to parent when CSS overrides. @default 80 */
|
|
18
|
+
width?: number;
|
|
19
|
+
/** Height in px @default 24 */
|
|
20
|
+
height?: number;
|
|
21
|
+
/** Line / bar stroke width @default 1.5 */
|
|
22
|
+
strokeWidth?: number;
|
|
23
|
+
/** Show a filled dot at the last point */
|
|
24
|
+
showEndDot?: boolean;
|
|
25
|
+
/** Padding inside the viewBox so strokes/dots are not clipped @default 2 */
|
|
26
|
+
padding?: number;
|
|
27
|
+
/** Override color with any CSS value (e.g. `"hsl(var(--brand))"`). Takes precedence over `trend`. */
|
|
28
|
+
color?: string;
|
|
29
|
+
/** For bars variant — gap between bars in user units @default 1 */
|
|
30
|
+
barGap?: number;
|
|
31
|
+
/** aria-label for screen readers — describe the trend / metric */
|
|
32
|
+
'aria-label'?: string;
|
|
33
|
+
}
|
|
34
|
+
declare const Sparkline: React.ForwardRefExoticComponent<SparklineProps & React.RefAttributes<HTMLDivElement>>;
|
|
35
|
+
|
|
36
|
+
export { Sparkline, type SparklineProps, type SparklineTrend, type SparklineVariant };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"sparkline.js"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkOS6CMYAS_cjs = require('../../chunk-OS6CMYAS.cjs');
|
|
4
|
+
require('../../chunk-NV4JOKWL.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "Tooltip", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkOS6CMYAS_cjs.Tooltip; }
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "TooltipContent", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () { return chunkOS6CMYAS_cjs.TooltipContent; }
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(exports, "TooltipProvider", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return chunkOS6CMYAS_cjs.TooltipProvider; }
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports, "TooltipTrigger", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () { return chunkOS6CMYAS_cjs.TooltipTrigger; }
|
|
23
|
+
});
|
|
24
|
+
//# sourceMappingURL=tooltip.cjs.map
|
|
25
|
+
//# sourceMappingURL=tooltip.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"tooltip.cjs"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
3
|
+
|
|
4
|
+
declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
5
|
+
declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
|
|
6
|
+
declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
interface TooltipContentProps extends React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content> {
|
|
8
|
+
/** Visual variant */
|
|
9
|
+
variant?: 'default' | 'light' | 'error';
|
|
10
|
+
/** Size */
|
|
11
|
+
size?: 'sm' | 'md';
|
|
12
|
+
/** Show arrow/caret pointing to trigger */
|
|
13
|
+
showArrow?: boolean;
|
|
14
|
+
}
|
|
15
|
+
declare const TooltipContent: React.ForwardRefExoticComponent<TooltipContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
|
|
17
|
+
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
3
|
+
|
|
4
|
+
declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
5
|
+
declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
|
|
6
|
+
declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
interface TooltipContentProps extends React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content> {
|
|
8
|
+
/** Visual variant */
|
|
9
|
+
variant?: 'default' | 'light' | 'error';
|
|
10
|
+
/** Size */
|
|
11
|
+
size?: 'sm' | 'md';
|
|
12
|
+
/** Show arrow/caret pointing to trigger */
|
|
13
|
+
showArrow?: boolean;
|
|
14
|
+
}
|
|
15
|
+
declare const TooltipContent: React.ForwardRefExoticComponent<TooltipContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
|
|
17
|
+
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"tooltip.js"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { S as SupportedLocale } from './utils-DlXWmDZ-.js';
|
|
3
|
+
import { F as FlowKey, c as StatusKey, d as SeverityKey } from './i18n-ArS3mqj0.js';
|
|
4
|
+
|
|
5
|
+
type FlowData = Partial<Record<FlowKey, number>>;
|
|
6
|
+
interface FlowDistributionProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
7
|
+
/** Flow counts (auto-normalized). Missing keys treated as 0. */
|
|
8
|
+
data: FlowData;
|
|
9
|
+
/** Display mode */
|
|
10
|
+
variant?: 'bars' | 'stacked' | 'compact';
|
|
11
|
+
/** Show numeric counts alongside percent */
|
|
12
|
+
showCounts?: boolean;
|
|
13
|
+
/** Show percentages */
|
|
14
|
+
showPercent?: boolean;
|
|
15
|
+
/** Locale */
|
|
16
|
+
locale?: SupportedLocale;
|
|
17
|
+
/** Loading skeleton */
|
|
18
|
+
isLoading?: boolean;
|
|
19
|
+
}
|
|
20
|
+
declare const FlowDistribution: React.ForwardRefExoticComponent<FlowDistributionProps & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
+
|
|
22
|
+
interface SentimentData {
|
|
23
|
+
positive: number;
|
|
24
|
+
negative: number;
|
|
25
|
+
neutral: number;
|
|
26
|
+
mixed?: number;
|
|
27
|
+
}
|
|
28
|
+
interface SentimentDistributionProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
29
|
+
/** Sentiment counts (will be auto-normalized to 100%) */
|
|
30
|
+
data: SentimentData;
|
|
31
|
+
/** Display mode */
|
|
32
|
+
variant?: 'bars' | 'stacked' | 'compact';
|
|
33
|
+
/** Show numeric count labels */
|
|
34
|
+
showCounts?: boolean;
|
|
35
|
+
/** Show percentage labels */
|
|
36
|
+
showPercent?: boolean;
|
|
37
|
+
/** Locale for number/label formatting */
|
|
38
|
+
locale?: SupportedLocale;
|
|
39
|
+
/** Show loading skeleton */
|
|
40
|
+
isLoading?: boolean;
|
|
41
|
+
}
|
|
42
|
+
declare const SentimentDistribution: React.ForwardRefExoticComponent<SentimentDistributionProps & React.RefAttributes<HTMLDivElement>>;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* ConceptCard — افکارسنجی-flavored headline tile for clustering dashboards.
|
|
46
|
+
* Composes: status badge, severity badge, flow composition bar, sentiment
|
|
47
|
+
* distribution, sparkline trend, AI summary snippet, optional comparison
|
|
48
|
+
* checkbox. Built for government dashboards where each "concept" needs
|
|
49
|
+
* to fit in a card grid with rich, comparable signals.
|
|
50
|
+
*/
|
|
51
|
+
interface ConceptCardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
52
|
+
/** Concept name (e.g., "افزایش قیمت بنزین") */
|
|
53
|
+
title: React.ReactNode;
|
|
54
|
+
/** Short subtitle (e.g., "خوشه ۴ — ۱۲۰ پست") */
|
|
55
|
+
subtitle?: React.ReactNode;
|
|
56
|
+
/** Operational status */
|
|
57
|
+
status?: StatusKey;
|
|
58
|
+
/** Criticality of the concept (urgent/high/medium/low) */
|
|
59
|
+
severity?: SeverityKey;
|
|
60
|
+
/** Flow composition breakdown (5-class political) */
|
|
61
|
+
flow?: FlowData;
|
|
62
|
+
/** Sentiment composition (3-class) */
|
|
63
|
+
sentiment?: SentimentData;
|
|
64
|
+
/** Trend sparkline values (e.g., last 14 days mention volume) */
|
|
65
|
+
trend?: number[];
|
|
66
|
+
/** AI-generated short summary (1-2 sentences) */
|
|
67
|
+
aiSummary?: React.ReactNode;
|
|
68
|
+
/** Total mentions / size — shown as a stat */
|
|
69
|
+
totalCount?: number;
|
|
70
|
+
/** Comparison checkbox state. When provided, renders the checkbox in the header */
|
|
71
|
+
comparison?: {
|
|
72
|
+
selected: boolean;
|
|
73
|
+
onSelectionChange: (next: boolean) => void;
|
|
74
|
+
label?: React.ReactNode;
|
|
75
|
+
};
|
|
76
|
+
/** Make the entire card clickable (cursor + hover/focus ring) */
|
|
77
|
+
interactive?: boolean;
|
|
78
|
+
/** Locale @default 'fa' */
|
|
79
|
+
locale?: SupportedLocale;
|
|
80
|
+
}
|
|
81
|
+
declare const ConceptCard: React.ForwardRefExoticComponent<ConceptCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
82
|
+
|
|
83
|
+
export { ConceptCard as C, type FlowData as F, type SentimentData as S, type ConceptCardProps as a, FlowDistribution as b, type FlowDistributionProps as c, SentimentDistribution as d, type SentimentDistributionProps as e };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { S as SupportedLocale } from './utils-DlXWmDZ-.cjs';
|
|
3
|
+
import { F as FlowKey, c as StatusKey, d as SeverityKey } from './i18n-CAd9wGOr.cjs';
|
|
4
|
+
|
|
5
|
+
type FlowData = Partial<Record<FlowKey, number>>;
|
|
6
|
+
interface FlowDistributionProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
7
|
+
/** Flow counts (auto-normalized). Missing keys treated as 0. */
|
|
8
|
+
data: FlowData;
|
|
9
|
+
/** Display mode */
|
|
10
|
+
variant?: 'bars' | 'stacked' | 'compact';
|
|
11
|
+
/** Show numeric counts alongside percent */
|
|
12
|
+
showCounts?: boolean;
|
|
13
|
+
/** Show percentages */
|
|
14
|
+
showPercent?: boolean;
|
|
15
|
+
/** Locale */
|
|
16
|
+
locale?: SupportedLocale;
|
|
17
|
+
/** Loading skeleton */
|
|
18
|
+
isLoading?: boolean;
|
|
19
|
+
}
|
|
20
|
+
declare const FlowDistribution: React.ForwardRefExoticComponent<FlowDistributionProps & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
+
|
|
22
|
+
interface SentimentData {
|
|
23
|
+
positive: number;
|
|
24
|
+
negative: number;
|
|
25
|
+
neutral: number;
|
|
26
|
+
mixed?: number;
|
|
27
|
+
}
|
|
28
|
+
interface SentimentDistributionProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
29
|
+
/** Sentiment counts (will be auto-normalized to 100%) */
|
|
30
|
+
data: SentimentData;
|
|
31
|
+
/** Display mode */
|
|
32
|
+
variant?: 'bars' | 'stacked' | 'compact';
|
|
33
|
+
/** Show numeric count labels */
|
|
34
|
+
showCounts?: boolean;
|
|
35
|
+
/** Show percentage labels */
|
|
36
|
+
showPercent?: boolean;
|
|
37
|
+
/** Locale for number/label formatting */
|
|
38
|
+
locale?: SupportedLocale;
|
|
39
|
+
/** Show loading skeleton */
|
|
40
|
+
isLoading?: boolean;
|
|
41
|
+
}
|
|
42
|
+
declare const SentimentDistribution: React.ForwardRefExoticComponent<SentimentDistributionProps & React.RefAttributes<HTMLDivElement>>;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* ConceptCard — افکارسنجی-flavored headline tile for clustering dashboards.
|
|
46
|
+
* Composes: status badge, severity badge, flow composition bar, sentiment
|
|
47
|
+
* distribution, sparkline trend, AI summary snippet, optional comparison
|
|
48
|
+
* checkbox. Built for government dashboards where each "concept" needs
|
|
49
|
+
* to fit in a card grid with rich, comparable signals.
|
|
50
|
+
*/
|
|
51
|
+
interface ConceptCardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
52
|
+
/** Concept name (e.g., "افزایش قیمت بنزین") */
|
|
53
|
+
title: React.ReactNode;
|
|
54
|
+
/** Short subtitle (e.g., "خوشه ۴ — ۱۲۰ پست") */
|
|
55
|
+
subtitle?: React.ReactNode;
|
|
56
|
+
/** Operational status */
|
|
57
|
+
status?: StatusKey;
|
|
58
|
+
/** Criticality of the concept (urgent/high/medium/low) */
|
|
59
|
+
severity?: SeverityKey;
|
|
60
|
+
/** Flow composition breakdown (5-class political) */
|
|
61
|
+
flow?: FlowData;
|
|
62
|
+
/** Sentiment composition (3-class) */
|
|
63
|
+
sentiment?: SentimentData;
|
|
64
|
+
/** Trend sparkline values (e.g., last 14 days mention volume) */
|
|
65
|
+
trend?: number[];
|
|
66
|
+
/** AI-generated short summary (1-2 sentences) */
|
|
67
|
+
aiSummary?: React.ReactNode;
|
|
68
|
+
/** Total mentions / size — shown as a stat */
|
|
69
|
+
totalCount?: number;
|
|
70
|
+
/** Comparison checkbox state. When provided, renders the checkbox in the header */
|
|
71
|
+
comparison?: {
|
|
72
|
+
selected: boolean;
|
|
73
|
+
onSelectionChange: (next: boolean) => void;
|
|
74
|
+
label?: React.ReactNode;
|
|
75
|
+
};
|
|
76
|
+
/** Make the entire card clickable (cursor + hover/focus ring) */
|
|
77
|
+
interactive?: boolean;
|
|
78
|
+
/** Locale @default 'fa' */
|
|
79
|
+
locale?: SupportedLocale;
|
|
80
|
+
}
|
|
81
|
+
declare const ConceptCard: React.ForwardRefExoticComponent<ConceptCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
82
|
+
|
|
83
|
+
export { ConceptCard as C, type FlowData as F, type SentimentData as S, type ConceptCardProps as a, FlowDistribution as b, type FlowDistributionProps as c, SentimentDistribution as d, type SentimentDistributionProps as e };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkISCSZMYW_cjs = require('../chunk-ISCSZMYW.cjs');
|
|
4
|
+
require('../chunk-U5FLLCGC.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "HotkeyProvider", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkISCSZMYW_cjs.HotkeyProvider; }
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "useHotkey", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () { return chunkISCSZMYW_cjs.useHotkey; }
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(exports, "useHotkeyRegistry", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return chunkISCSZMYW_cjs.useHotkeyRegistry; }
|
|
19
|
+
});
|
|
20
|
+
//# sourceMappingURL=use-hotkey-registry.cjs.map
|
|
21
|
+
//# sourceMappingURL=use-hotkey-registry.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"use-hotkey-registry.cjs"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { HotkeyCombo } from './use-hotkeys.cjs';
|
|
4
|
+
|
|
5
|
+
interface RegisteredHotkey {
|
|
6
|
+
/** Stable id — used for de-registration + dedupe. */
|
|
7
|
+
id: string;
|
|
8
|
+
/** The combo string(s) — `'mod+k'`, `['escape', 'mod+w']`, etc. */
|
|
9
|
+
combo: HotkeyCombo;
|
|
10
|
+
/** Short human-readable description (e.g. "باز کردن پالت دستور"). */
|
|
11
|
+
description?: string;
|
|
12
|
+
/** Optional grouping label for cheatsheet rendering ("سراسری", "ناوبری"…). */
|
|
13
|
+
group?: string;
|
|
14
|
+
/** When false, the entry is listed but the listener doesn't fire. */
|
|
15
|
+
enabled?: boolean;
|
|
16
|
+
}
|
|
17
|
+
interface HotkeyProviderProps {
|
|
18
|
+
/** Globally disable all registered hotkeys (e.g. while a modal owns the page). */
|
|
19
|
+
enabled?: boolean;
|
|
20
|
+
children: React.ReactNode;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Centralised hotkey registry. Wrap your app once; descendants register
|
|
24
|
+
* combos via `useHotkey()` and any UI (CommandPalette, help cheatsheet)
|
|
25
|
+
* can read the full list via `useHotkeyRegistry()`.
|
|
26
|
+
*
|
|
27
|
+
* Compared to scattering `useHotkeys` calls across the tree:
|
|
28
|
+
* - Per-entry mounting is centralized (one place that handles
|
|
29
|
+
* `enabled`, key parsing, ignore-when-typing semantics)
|
|
30
|
+
* - Discoverable: cheatsheets / palettes can list every active combo
|
|
31
|
+
* - De-duplicated: registering the same id twice replaces the entry
|
|
32
|
+
*
|
|
33
|
+
* Optional. `useHotkeys` (the bare hook) continues to work outside a provider.
|
|
34
|
+
*/
|
|
35
|
+
declare function HotkeyProvider({ enabled, children }: HotkeyProviderProps): react_jsx_runtime.JSX.Element;
|
|
36
|
+
/**
|
|
37
|
+
* Register a hotkey under the active provider. The combo is added to the
|
|
38
|
+
* cheatsheet-readable registry; the handler fires when the combo matches
|
|
39
|
+
* (subject to `useHotkeys` rules around editable targets + modifiers).
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* useHotkey('palette', 'mod+k', () => setOpen(true), {
|
|
43
|
+
* description: 'باز کردن پالت دستور',
|
|
44
|
+
* group: 'سراسری',
|
|
45
|
+
* })
|
|
46
|
+
*
|
|
47
|
+
* The first argument is a stable id — use a unique slug per call site so
|
|
48
|
+
* registry updates can dedupe. When called outside a `<HotkeyProvider>`,
|
|
49
|
+
* silently no-ops (so consumers can layer the provider in later without
|
|
50
|
+
* a refactor sweep).
|
|
51
|
+
*/
|
|
52
|
+
declare function useHotkey(id: string, combo: HotkeyCombo, handler: (event: KeyboardEvent) => void, options?: {
|
|
53
|
+
description?: string;
|
|
54
|
+
group?: string;
|
|
55
|
+
enabled?: boolean;
|
|
56
|
+
}): void;
|
|
57
|
+
/**
|
|
58
|
+
* Read the active registry. Returns an empty array outside a provider.
|
|
59
|
+
* Useful for CommandPalette items, "?" cheatsheet overlays, settings pages.
|
|
60
|
+
*/
|
|
61
|
+
declare function useHotkeyRegistry(): {
|
|
62
|
+
hotkeys: RegisteredHotkey[];
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export { HotkeyProvider, type HotkeyProviderProps, type RegisteredHotkey, useHotkey, useHotkeyRegistry };
|