@parto-system-design/ui 1.1.5 → 1.1.8
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-2ACKKPWA.cjs +112 -0
- package/dist/chunk-2ACKKPWA.cjs.map +1 -0
- package/dist/chunk-2UD3LGVX.cjs +316 -0
- package/dist/chunk-2UD3LGVX.cjs.map +1 -0
- package/dist/chunk-3QYYPPFJ.js +269 -0
- package/dist/chunk-3QYYPPFJ.js.map +1 -0
- package/dist/chunk-4SVQNEVH.js +173 -0
- package/dist/chunk-4SVQNEVH.js.map +1 -0
- package/dist/chunk-4WONHORR.cjs +152 -0
- package/dist/chunk-4WONHORR.cjs.map +1 -0
- package/dist/chunk-5HCXH6GS.js +409 -0
- package/dist/chunk-5HCXH6GS.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-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-GCZ6YATL.js +940 -0
- package/dist/chunk-GCZ6YATL.js.map +1 -0
- package/dist/chunk-GKRAZGDI.cjs +84 -0
- package/dist/chunk-GKRAZGDI.cjs.map +1 -0
- package/dist/chunk-GPYJ66CG.js +45 -0
- package/dist/chunk-GPYJ66CG.js.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-HS3XI3CC.cjs +69 -0
- package/dist/chunk-HS3XI3CC.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-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-JCJLN437.js +108 -0
- package/dist/chunk-JCJLN437.js.map +1 -0
- package/dist/chunk-JMKNNH63.cjs +982 -0
- package/dist/chunk-JMKNNH63.cjs.map +1 -0
- package/dist/chunk-JUBHQAA2.js +53 -0
- package/dist/chunk-JUBHQAA2.js.map +1 -0
- package/dist/chunk-K6G63EED.cjs +41 -0
- package/dist/chunk-K6G63EED.cjs.map +1 -0
- package/dist/chunk-KCWRCSI7.js +62 -0
- package/dist/chunk-KCWRCSI7.js.map +1 -0
- package/dist/chunk-KYM7NIJO.cjs +433 -0
- package/dist/chunk-KYM7NIJO.cjs.map +1 -0
- package/dist/chunk-L2L5CKC2.js +291 -0
- package/dist/chunk-L2L5CKC2.js.map +1 -0
- package/dist/chunk-M5CHZ5BA.js +124 -0
- package/dist/chunk-M5CHZ5BA.js.map +1 -0
- package/dist/chunk-MEK4RSGC.js +65 -0
- package/dist/chunk-MEK4RSGC.js.map +1 -0
- package/dist/chunk-MEKWH3GS.js +89 -0
- package/dist/chunk-MEKWH3GS.js.map +1 -0
- package/dist/chunk-MFTX2DDQ.js +27 -0
- package/dist/chunk-MFTX2DDQ.js.map +1 -0
- package/dist/chunk-MMC6M35Q.cjs +272 -0
- package/dist/chunk-MMC6M35Q.cjs.map +1 -0
- package/dist/chunk-NMH43BDC.js +130 -0
- package/dist/chunk-NMH43BDC.js.map +1 -0
- package/dist/chunk-NORDUD2T.cjs +135 -0
- package/dist/chunk-NORDUD2T.cjs.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-ONO2FTV4.cjs +68 -0
- package/dist/chunk-ONO2FTV4.cjs.map +1 -0
- package/dist/chunk-OQB6HIUL.cjs +108 -0
- package/dist/chunk-OQB6HIUL.cjs.map +1 -0
- package/dist/chunk-OS6CMYAS.cjs +79 -0
- package/dist/chunk-OS6CMYAS.cjs.map +1 -0
- package/dist/chunk-PYURPUTV.js +402 -0
- package/dist/chunk-PYURPUTV.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-S3T2L6NA.js +38 -0
- package/dist/chunk-S3T2L6NA.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-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-SXWSOU3Y.js +89 -0
- package/dist/chunk-SXWSOU3Y.js.map +1 -0
- package/dist/chunk-SZMVOHT7.cjs +107 -0
- package/dist/chunk-SZMVOHT7.cjs.map +1 -0
- package/dist/chunk-TWJXOV4C.js +145 -0
- package/dist/chunk-TWJXOV4C.js.map +1 -0
- package/dist/chunk-U3ADRIVO.cjs +434 -0
- package/dist/chunk-U3ADRIVO.cjs.map +1 -0
- package/dist/chunk-U5FLLCGC.cjs +151 -0
- package/dist/chunk-U5FLLCGC.cjs.map +1 -0
- package/dist/chunk-UOZN45G4.cjs +130 -0
- package/dist/chunk-UOZN45G4.cjs.map +1 -0
- package/dist/chunk-VHLDOG74.cjs +167 -0
- package/dist/chunk-VHLDOG74.cjs.map +1 -0
- package/dist/chunk-YC5KLN6I.js +139 -0
- package/dist/chunk-YC5KLN6I.js.map +1 -0
- package/dist/chunk-YENXXYUV.cjs +111 -0
- package/dist/chunk-YENXXYUV.cjs.map +1 -0
- package/dist/chunk-YFQWC2PW.js +113 -0
- package/dist/chunk-YFQWC2PW.js.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-ZBZDR4ZC.js +106 -0
- package/dist/chunk-ZBZDR4ZC.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 +53 -0
- package/dist/components/charts/PartoAreaChart.d.ts +53 -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 +61 -0
- package/dist/components/charts/PartoBarChart.d.ts +61 -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 +57 -0
- package/dist/components/charts/PartoLineChart.d.ts +57 -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 +52 -0
- package/dist/components/charts/PartoPieChart.d.ts +52 -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 +12195 -13224
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +490 -34
- package/dist/index.d.cts +1635 -1263
- package/dist/index.d.ts +1635 -1263
- package/dist/index.js +10693 -12364
- package/dist/index.js.map +1 -1
- package/dist/page-card-CmShVqG-.d.cts +100 -0
- package/dist/page-card-HBn-cy4J.d.ts +100 -0
- package/dist/utils-DlXWmDZ-.d.cts +35 -0
- package/dist/utils-DlXWmDZ-.d.ts +35 -0
- package/package.json +160 -4
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { S as SupportedLocale } from '../../utils-DlXWmDZ-.js';
|
|
3
|
+
import 'clsx';
|
|
4
|
+
|
|
5
|
+
interface PartoBarChartProps {
|
|
6
|
+
/** Chart data — row-oriented array of objects */
|
|
7
|
+
data: Array<Record<string, any>>;
|
|
8
|
+
/** Data keys to render as bars (e.g. ['فروش', 'هزینه']) */
|
|
9
|
+
keys: string[];
|
|
10
|
+
/** Field name used for X axis categories (e.g. 'ماه') */
|
|
11
|
+
indexBy: string;
|
|
12
|
+
/** Stacked or grouped layout */
|
|
13
|
+
groupMode?: 'grouped' | 'stacked';
|
|
14
|
+
/** Bar layout direction */
|
|
15
|
+
layout?: 'vertical' | 'horizontal';
|
|
16
|
+
/** Chart margins */
|
|
17
|
+
margin?: {
|
|
18
|
+
top?: number;
|
|
19
|
+
right?: number;
|
|
20
|
+
bottom?: number;
|
|
21
|
+
left?: number;
|
|
22
|
+
};
|
|
23
|
+
/** Gap between category groups as percentage */
|
|
24
|
+
barCategoryGap?: string | number;
|
|
25
|
+
/** Gap between bars within a group */
|
|
26
|
+
barGap?: number;
|
|
27
|
+
/** Border radius for bar tops [topLeft, topRight, bottomRight, bottomLeft] */
|
|
28
|
+
radius?: [number, number, number, number];
|
|
29
|
+
/** Show horizontal grid lines */
|
|
30
|
+
enableGridY?: boolean;
|
|
31
|
+
/** Show vertical grid lines */
|
|
32
|
+
enableGridX?: boolean;
|
|
33
|
+
/** Show labels inside bars */
|
|
34
|
+
enableLabel?: boolean;
|
|
35
|
+
/** Custom X axis config */
|
|
36
|
+
axisBottom?: Record<string, any> | null;
|
|
37
|
+
/** Custom Y axis config */
|
|
38
|
+
axisLeft?: Record<string, any> | null;
|
|
39
|
+
/** Custom tooltip formatter */
|
|
40
|
+
tooltipFormatter?: (name: string, value: number) => React.ReactNode;
|
|
41
|
+
/**
|
|
42
|
+
* Locale for digit formatting in tooltips and axis ticks. fa/ar render
|
|
43
|
+
* Persian/Arabic digits with locale suffixes; en uses Latin K/M/B.
|
|
44
|
+
* Default: 'fa'.
|
|
45
|
+
*/
|
|
46
|
+
locale?: SupportedLocale;
|
|
47
|
+
className?: string;
|
|
48
|
+
isLoading?: boolean;
|
|
49
|
+
ariaLabel?: string;
|
|
50
|
+
/** Additional Recharts BarChart props */
|
|
51
|
+
chartProps?: Record<string, any>;
|
|
52
|
+
/**
|
|
53
|
+
* Render a legend below the chart that names each series with a colored
|
|
54
|
+
* marker. Strongly recommended for grouped or stacked layouts where
|
|
55
|
+
* series identity is otherwise color-only. @default `false`
|
|
56
|
+
*/
|
|
57
|
+
legend?: boolean;
|
|
58
|
+
}
|
|
59
|
+
declare const PartoBarChart: React.ForwardRefExoticComponent<PartoBarChartProps & React.RefAttributes<HTMLDivElement>>;
|
|
60
|
+
|
|
61
|
+
export { PartoBarChart, type PartoBarChartProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"PartoBarChart.js"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkNORDUD2T_cjs = require('../../chunk-NORDUD2T.cjs');
|
|
4
|
+
require('../../chunk-KYM7NIJO.cjs');
|
|
5
|
+
require('../../chunk-D2EBLE2B.cjs');
|
|
6
|
+
require('../../chunk-NV4JOKWL.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Object.defineProperty(exports, "PartoLineChart", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () { return chunkNORDUD2T_cjs.PartoLineChart; }
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=PartoLineChart.cjs.map
|
|
15
|
+
//# sourceMappingURL=PartoLineChart.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"PartoLineChart.cjs"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { S as SupportedLocale } from '../../utils-DlXWmDZ-.cjs';
|
|
3
|
+
import 'clsx';
|
|
4
|
+
|
|
5
|
+
interface PartoLineChartProps {
|
|
6
|
+
/** Row-oriented data: [{ name: "فروردین", series1: 50, series2: 30 }] */
|
|
7
|
+
data: Array<Record<string, any>>;
|
|
8
|
+
/** Keys for each line series (e.g. ['فروش', 'سود']) */
|
|
9
|
+
dataKeys: string[];
|
|
10
|
+
/** Field name for X axis (default: 'name') */
|
|
11
|
+
xAxisKey?: string;
|
|
12
|
+
/** Curve type */
|
|
13
|
+
curve?: 'monotone' | 'linear' | 'natural' | 'step';
|
|
14
|
+
/** Line width */
|
|
15
|
+
strokeWidth?: number;
|
|
16
|
+
/** Show dots on data points */
|
|
17
|
+
showDots?: boolean;
|
|
18
|
+
/** Show horizontal grid lines */
|
|
19
|
+
enableGridY?: boolean;
|
|
20
|
+
/** Show vertical grid lines */
|
|
21
|
+
enableGridX?: boolean;
|
|
22
|
+
/** Chart margins */
|
|
23
|
+
margin?: {
|
|
24
|
+
top?: number;
|
|
25
|
+
right?: number;
|
|
26
|
+
bottom?: number;
|
|
27
|
+
left?: number;
|
|
28
|
+
};
|
|
29
|
+
/** Custom X axis config */
|
|
30
|
+
axisBottom?: Record<string, any> | null;
|
|
31
|
+
/** Custom Y axis config */
|
|
32
|
+
axisLeft?: Record<string, any> | null;
|
|
33
|
+
/** Custom tooltip formatter */
|
|
34
|
+
tooltipFormatter?: (name: string, value: number) => React.ReactNode;
|
|
35
|
+
/**
|
|
36
|
+
* Locale for digit formatting in tooltips and axis ticks. fa/ar render
|
|
37
|
+
* Persian/Arabic digits with locale suffixes; en uses Latin K/M/B.
|
|
38
|
+
* Default: 'fa'.
|
|
39
|
+
*/
|
|
40
|
+
locale?: SupportedLocale;
|
|
41
|
+
className?: string;
|
|
42
|
+
isLoading?: boolean;
|
|
43
|
+
ariaLabel?: string;
|
|
44
|
+
/** Additional Recharts LineChart props */
|
|
45
|
+
chartProps?: Record<string, any>;
|
|
46
|
+
/**
|
|
47
|
+
* Render a legend below the chart that names each series with a colored
|
|
48
|
+
* marker. When `'patterns'`, every series ALSO gets a distinct stroke
|
|
49
|
+
* pattern (solid/dashed/dotted/dash-dot) and the legend mirrors it — this
|
|
50
|
+
* is the WCAG 1.4.1 color-blind-safe mode where series identity doesn't
|
|
51
|
+
* depend on color alone. @default `false`
|
|
52
|
+
*/
|
|
53
|
+
legend?: boolean | 'patterns';
|
|
54
|
+
}
|
|
55
|
+
declare const PartoLineChart: React.ForwardRefExoticComponent<PartoLineChartProps & React.RefAttributes<HTMLDivElement>>;
|
|
56
|
+
|
|
57
|
+
export { PartoLineChart, type PartoLineChartProps };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { S as SupportedLocale } from '../../utils-DlXWmDZ-.js';
|
|
3
|
+
import 'clsx';
|
|
4
|
+
|
|
5
|
+
interface PartoLineChartProps {
|
|
6
|
+
/** Row-oriented data: [{ name: "فروردین", series1: 50, series2: 30 }] */
|
|
7
|
+
data: Array<Record<string, any>>;
|
|
8
|
+
/** Keys for each line series (e.g. ['فروش', 'سود']) */
|
|
9
|
+
dataKeys: string[];
|
|
10
|
+
/** Field name for X axis (default: 'name') */
|
|
11
|
+
xAxisKey?: string;
|
|
12
|
+
/** Curve type */
|
|
13
|
+
curve?: 'monotone' | 'linear' | 'natural' | 'step';
|
|
14
|
+
/** Line width */
|
|
15
|
+
strokeWidth?: number;
|
|
16
|
+
/** Show dots on data points */
|
|
17
|
+
showDots?: boolean;
|
|
18
|
+
/** Show horizontal grid lines */
|
|
19
|
+
enableGridY?: boolean;
|
|
20
|
+
/** Show vertical grid lines */
|
|
21
|
+
enableGridX?: boolean;
|
|
22
|
+
/** Chart margins */
|
|
23
|
+
margin?: {
|
|
24
|
+
top?: number;
|
|
25
|
+
right?: number;
|
|
26
|
+
bottom?: number;
|
|
27
|
+
left?: number;
|
|
28
|
+
};
|
|
29
|
+
/** Custom X axis config */
|
|
30
|
+
axisBottom?: Record<string, any> | null;
|
|
31
|
+
/** Custom Y axis config */
|
|
32
|
+
axisLeft?: Record<string, any> | null;
|
|
33
|
+
/** Custom tooltip formatter */
|
|
34
|
+
tooltipFormatter?: (name: string, value: number) => React.ReactNode;
|
|
35
|
+
/**
|
|
36
|
+
* Locale for digit formatting in tooltips and axis ticks. fa/ar render
|
|
37
|
+
* Persian/Arabic digits with locale suffixes; en uses Latin K/M/B.
|
|
38
|
+
* Default: 'fa'.
|
|
39
|
+
*/
|
|
40
|
+
locale?: SupportedLocale;
|
|
41
|
+
className?: string;
|
|
42
|
+
isLoading?: boolean;
|
|
43
|
+
ariaLabel?: string;
|
|
44
|
+
/** Additional Recharts LineChart props */
|
|
45
|
+
chartProps?: Record<string, any>;
|
|
46
|
+
/**
|
|
47
|
+
* Render a legend below the chart that names each series with a colored
|
|
48
|
+
* marker. When `'patterns'`, every series ALSO gets a distinct stroke
|
|
49
|
+
* pattern (solid/dashed/dotted/dash-dot) and the legend mirrors it — this
|
|
50
|
+
* is the WCAG 1.4.1 color-blind-safe mode where series identity doesn't
|
|
51
|
+
* depend on color alone. @default `false`
|
|
52
|
+
*/
|
|
53
|
+
legend?: boolean | 'patterns';
|
|
54
|
+
}
|
|
55
|
+
declare const PartoLineChart: React.ForwardRefExoticComponent<PartoLineChartProps & React.RefAttributes<HTMLDivElement>>;
|
|
56
|
+
|
|
57
|
+
export { PartoLineChart, type PartoLineChartProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"PartoLineChart.js"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk4WONHORR_cjs = require('../../chunk-4WONHORR.cjs');
|
|
4
|
+
require('../../chunk-KYM7NIJO.cjs');
|
|
5
|
+
require('../../chunk-D2EBLE2B.cjs');
|
|
6
|
+
require('../../chunk-NV4JOKWL.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Object.defineProperty(exports, "PartoPieChart", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () { return chunk4WONHORR_cjs.PartoPieChart; }
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=PartoPieChart.cjs.map
|
|
15
|
+
//# sourceMappingURL=PartoPieChart.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"PartoPieChart.cjs"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { S as SupportedLocale } from '../../utils-DlXWmDZ-.cjs';
|
|
3
|
+
import 'clsx';
|
|
4
|
+
|
|
5
|
+
interface PartoPieChartProps {
|
|
6
|
+
/** Data: [{ name: "محصول A", value: 40 }] */
|
|
7
|
+
data: Array<{
|
|
8
|
+
name: string;
|
|
9
|
+
value: number;
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}>;
|
|
12
|
+
/** Inner radius — 0 for full pie, "60%" for donut */
|
|
13
|
+
innerRadius?: number | string;
|
|
14
|
+
/** Outer radius */
|
|
15
|
+
outerRadius?: number | string;
|
|
16
|
+
/** Angle between slices in degrees */
|
|
17
|
+
paddingAngle?: number;
|
|
18
|
+
/** Corner radius of arc segments */
|
|
19
|
+
cornerRadius?: number;
|
|
20
|
+
/** Show arc link labels (lines from slices to text) */
|
|
21
|
+
showLabels?: boolean;
|
|
22
|
+
/** Skip labels for slices smaller than this angle */
|
|
23
|
+
labelSkipAngle?: number;
|
|
24
|
+
/** Chart margins */
|
|
25
|
+
margin?: {
|
|
26
|
+
top?: number;
|
|
27
|
+
right?: number;
|
|
28
|
+
bottom?: number;
|
|
29
|
+
left?: number;
|
|
30
|
+
};
|
|
31
|
+
/** Custom tooltip formatter */
|
|
32
|
+
tooltipFormatter?: (name: string, value: number) => React.ReactNode;
|
|
33
|
+
/**
|
|
34
|
+
* Locale for digit formatting in tooltips. fa/ar render Persian/Arabic digits;
|
|
35
|
+
* en uses Latin. Default: 'fa'.
|
|
36
|
+
*/
|
|
37
|
+
locale?: SupportedLocale;
|
|
38
|
+
className?: string;
|
|
39
|
+
isLoading?: boolean;
|
|
40
|
+
ariaLabel?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Render a legend listing each slice with its color and (optionally)
|
|
43
|
+
* its value. Recommended for pies with many slices where arc-link
|
|
44
|
+
* labels get suppressed by `labelSkipAngle`. @default `false`
|
|
45
|
+
*/
|
|
46
|
+
legend?: boolean;
|
|
47
|
+
/** Show each slice's value in the legend. @default `true` when legend is on */
|
|
48
|
+
legendValues?: boolean;
|
|
49
|
+
}
|
|
50
|
+
declare const PartoPieChart: React.ForwardRefExoticComponent<PartoPieChartProps & React.RefAttributes<HTMLDivElement>>;
|
|
51
|
+
|
|
52
|
+
export { PartoPieChart, type PartoPieChartProps };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { S as SupportedLocale } from '../../utils-DlXWmDZ-.js';
|
|
3
|
+
import 'clsx';
|
|
4
|
+
|
|
5
|
+
interface PartoPieChartProps {
|
|
6
|
+
/** Data: [{ name: "محصول A", value: 40 }] */
|
|
7
|
+
data: Array<{
|
|
8
|
+
name: string;
|
|
9
|
+
value: number;
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}>;
|
|
12
|
+
/** Inner radius — 0 for full pie, "60%" for donut */
|
|
13
|
+
innerRadius?: number | string;
|
|
14
|
+
/** Outer radius */
|
|
15
|
+
outerRadius?: number | string;
|
|
16
|
+
/** Angle between slices in degrees */
|
|
17
|
+
paddingAngle?: number;
|
|
18
|
+
/** Corner radius of arc segments */
|
|
19
|
+
cornerRadius?: number;
|
|
20
|
+
/** Show arc link labels (lines from slices to text) */
|
|
21
|
+
showLabels?: boolean;
|
|
22
|
+
/** Skip labels for slices smaller than this angle */
|
|
23
|
+
labelSkipAngle?: number;
|
|
24
|
+
/** Chart margins */
|
|
25
|
+
margin?: {
|
|
26
|
+
top?: number;
|
|
27
|
+
right?: number;
|
|
28
|
+
bottom?: number;
|
|
29
|
+
left?: number;
|
|
30
|
+
};
|
|
31
|
+
/** Custom tooltip formatter */
|
|
32
|
+
tooltipFormatter?: (name: string, value: number) => React.ReactNode;
|
|
33
|
+
/**
|
|
34
|
+
* Locale for digit formatting in tooltips. fa/ar render Persian/Arabic digits;
|
|
35
|
+
* en uses Latin. Default: 'fa'.
|
|
36
|
+
*/
|
|
37
|
+
locale?: SupportedLocale;
|
|
38
|
+
className?: string;
|
|
39
|
+
isLoading?: boolean;
|
|
40
|
+
ariaLabel?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Render a legend listing each slice with its color and (optionally)
|
|
43
|
+
* its value. Recommended for pies with many slices where arc-link
|
|
44
|
+
* labels get suppressed by `labelSkipAngle`. @default `false`
|
|
45
|
+
*/
|
|
46
|
+
legend?: boolean;
|
|
47
|
+
/** Show each slice's value in the legend. @default `true` when legend is on */
|
|
48
|
+
legendValues?: boolean;
|
|
49
|
+
}
|
|
50
|
+
declare const PartoPieChart: React.ForwardRefExoticComponent<PartoPieChartProps & React.RefAttributes<HTMLDivElement>>;
|
|
51
|
+
|
|
52
|
+
export { PartoPieChart, type PartoPieChartProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"PartoPieChart.js"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk7RVPG3LE_cjs = require('../../chunk-7RVPG3LE.cjs');
|
|
4
|
+
require('../../chunk-GKRAZGDI.cjs');
|
|
5
|
+
require('../../chunk-Z2TY4A75.cjs');
|
|
6
|
+
require('../../chunk-NV4JOKWL.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Object.defineProperty(exports, "AlertRuleCard", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () { return chunk7RVPG3LE_cjs.AlertRuleCard; }
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=alert-rule-card.cjs.map
|
|
15
|
+
//# sourceMappingURL=alert-rule-card.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"alert-rule-card.cjs"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { S as SupportedLocale } from '../../utils-DlXWmDZ-.cjs';
|
|
3
|
+
import { d as SeverityKey } from '../../i18n-CAd9wGOr.cjs';
|
|
4
|
+
import 'clsx';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* AlertRuleCard — saved alert-rule definition. Shows trigger summary,
|
|
8
|
+
* threshold, severity tag, target channels, and an active/inactive toggle.
|
|
9
|
+
*
|
|
10
|
+
* Designed for "Alert Rules" management pages — a list of these cards lets
|
|
11
|
+
* an analyst quickly scan + tweak which alerts are running.
|
|
12
|
+
*/
|
|
13
|
+
type AlertChannel = 'email' | 'sms' | 'telegram' | 'in-app' | 'webhook';
|
|
14
|
+
interface AlertRuleCardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
15
|
+
/** Rule name (e.g., "افزایش ناگهانی منفی") */
|
|
16
|
+
name: React.ReactNode;
|
|
17
|
+
/** Trigger description in plain language (e.g., "هرگاه نرخ منفی > ۲۰٪ شد") */
|
|
18
|
+
trigger: React.ReactNode;
|
|
19
|
+
/** Threshold value display (e.g., "≥ ۲۰٪", "> ۱۰۰۰ mentions") */
|
|
20
|
+
threshold?: React.ReactNode;
|
|
21
|
+
/** Severity that this alert raises */
|
|
22
|
+
severity?: SeverityKey;
|
|
23
|
+
/** Channels this rule fires through */
|
|
24
|
+
channels?: AlertChannel[];
|
|
25
|
+
/** Active state (master switch) */
|
|
26
|
+
active: boolean;
|
|
27
|
+
/** Called when the user toggles the switch */
|
|
28
|
+
onActiveChange: (next: boolean) => void;
|
|
29
|
+
/** Last-fired timestamp display (e.g., "۲ ساعت پیش") */
|
|
30
|
+
lastFired?: React.ReactNode;
|
|
31
|
+
/** Optional total fire count */
|
|
32
|
+
fireCount?: number;
|
|
33
|
+
/** Locale @default 'fa' */
|
|
34
|
+
locale?: SupportedLocale;
|
|
35
|
+
}
|
|
36
|
+
declare const AlertRuleCard: React.ForwardRefExoticComponent<AlertRuleCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
37
|
+
|
|
38
|
+
export { type AlertChannel, AlertRuleCard, type AlertRuleCardProps };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { S as SupportedLocale } from '../../utils-DlXWmDZ-.js';
|
|
3
|
+
import { d as SeverityKey } from '../../i18n-ArS3mqj0.js';
|
|
4
|
+
import 'clsx';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* AlertRuleCard — saved alert-rule definition. Shows trigger summary,
|
|
8
|
+
* threshold, severity tag, target channels, and an active/inactive toggle.
|
|
9
|
+
*
|
|
10
|
+
* Designed for "Alert Rules" management pages — a list of these cards lets
|
|
11
|
+
* an analyst quickly scan + tweak which alerts are running.
|
|
12
|
+
*/
|
|
13
|
+
type AlertChannel = 'email' | 'sms' | 'telegram' | 'in-app' | 'webhook';
|
|
14
|
+
interface AlertRuleCardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
15
|
+
/** Rule name (e.g., "افزایش ناگهانی منفی") */
|
|
16
|
+
name: React.ReactNode;
|
|
17
|
+
/** Trigger description in plain language (e.g., "هرگاه نرخ منفی > ۲۰٪ شد") */
|
|
18
|
+
trigger: React.ReactNode;
|
|
19
|
+
/** Threshold value display (e.g., "≥ ۲۰٪", "> ۱۰۰۰ mentions") */
|
|
20
|
+
threshold?: React.ReactNode;
|
|
21
|
+
/** Severity that this alert raises */
|
|
22
|
+
severity?: SeverityKey;
|
|
23
|
+
/** Channels this rule fires through */
|
|
24
|
+
channels?: AlertChannel[];
|
|
25
|
+
/** Active state (master switch) */
|
|
26
|
+
active: boolean;
|
|
27
|
+
/** Called when the user toggles the switch */
|
|
28
|
+
onActiveChange: (next: boolean) => void;
|
|
29
|
+
/** Last-fired timestamp display (e.g., "۲ ساعت پیش") */
|
|
30
|
+
lastFired?: React.ReactNode;
|
|
31
|
+
/** Optional total fire count */
|
|
32
|
+
fireCount?: number;
|
|
33
|
+
/** Locale @default 'fa' */
|
|
34
|
+
locale?: SupportedLocale;
|
|
35
|
+
}
|
|
36
|
+
declare const AlertRuleCard: React.ForwardRefExoticComponent<AlertRuleCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
37
|
+
|
|
38
|
+
export { type AlertChannel, AlertRuleCard, type AlertRuleCardProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"alert-rule-card.js"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkONO2FTV4_cjs = require('../../chunk-ONO2FTV4.cjs');
|
|
4
|
+
require('../../chunk-NV4JOKWL.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "Avatar", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkONO2FTV4_cjs.Avatar; }
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "AvatarFallback", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () { return chunkONO2FTV4_cjs.AvatarFallback; }
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(exports, "AvatarImage", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return chunkONO2FTV4_cjs.AvatarImage; }
|
|
19
|
+
});
|
|
20
|
+
//# sourceMappingURL=avatar.cjs.map
|
|
21
|
+
//# sourceMappingURL=avatar.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"avatar.cjs"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
4
|
+
|
|
5
|
+
declare function Avatar({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
6
|
+
declare namespace Avatar {
|
|
7
|
+
var displayName: string;
|
|
8
|
+
}
|
|
9
|
+
declare function AvatarImage({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>): react_jsx_runtime.JSX.Element;
|
|
10
|
+
declare namespace AvatarImage {
|
|
11
|
+
var displayName: string;
|
|
12
|
+
}
|
|
13
|
+
declare function AvatarFallback({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Fallback>): react_jsx_runtime.JSX.Element;
|
|
14
|
+
declare namespace AvatarFallback {
|
|
15
|
+
var displayName: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { Avatar, AvatarFallback, AvatarImage };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
4
|
+
|
|
5
|
+
declare function Avatar({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
6
|
+
declare namespace Avatar {
|
|
7
|
+
var displayName: string;
|
|
8
|
+
}
|
|
9
|
+
declare function AvatarImage({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>): react_jsx_runtime.JSX.Element;
|
|
10
|
+
declare namespace AvatarImage {
|
|
11
|
+
var displayName: string;
|
|
12
|
+
}
|
|
13
|
+
declare function AvatarFallback({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Fallback>): react_jsx_runtime.JSX.Element;
|
|
14
|
+
declare namespace AvatarFallback {
|
|
15
|
+
var displayName: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { Avatar, AvatarFallback, AvatarImage };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"avatar.js"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk2ACKKPWA_cjs = require('../../chunk-2ACKKPWA.cjs');
|
|
4
|
+
require('../../chunk-NV4JOKWL.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "Badge", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunk2ACKKPWA_cjs.Badge; }
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "badgeVariants", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () { return chunk2ACKKPWA_cjs.badgeVariants; }
|
|
15
|
+
});
|
|
16
|
+
//# sourceMappingURL=badge.cjs.map
|
|
17
|
+
//# sourceMappingURL=badge.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"badge.cjs"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
|
|
5
|
+
declare const badgeVariants: (props?: ({
|
|
6
|
+
variant?: "warning" | "success" | "default" | "outline" | "destructive" | "secondary" | "brand" | null | undefined;
|
|
7
|
+
size?: "xs" | "sm" | "md" | "lg" | "small" | "large" | "tiny" | null | undefined;
|
|
8
|
+
dot?: boolean | null | undefined;
|
|
9
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
|
+
interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
|
|
11
|
+
dot?: boolean;
|
|
12
|
+
dotPosition?: 'start' | 'end';
|
|
13
|
+
}
|
|
14
|
+
declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLSpanElement>>;
|
|
15
|
+
|
|
16
|
+
export { Badge, type BadgeProps, badgeVariants };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
|
|
5
|
+
declare const badgeVariants: (props?: ({
|
|
6
|
+
variant?: "warning" | "success" | "default" | "outline" | "destructive" | "secondary" | "brand" | null | undefined;
|
|
7
|
+
size?: "xs" | "sm" | "md" | "lg" | "small" | "large" | "tiny" | null | undefined;
|
|
8
|
+
dot?: boolean | null | undefined;
|
|
9
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
|
+
interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
|
|
11
|
+
dot?: boolean;
|
|
12
|
+
dotPosition?: 'start' | 'end';
|
|
13
|
+
}
|
|
14
|
+
declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLSpanElement>>;
|
|
15
|
+
|
|
16
|
+
export { Badge, type BadgeProps, badgeVariants };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"badge.js"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkMMC6M35Q_cjs = require('../../chunk-MMC6M35Q.cjs');
|
|
4
|
+
require('../../chunk-K6G63EED.cjs');
|
|
5
|
+
require('../../chunk-NV4JOKWL.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "Button", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return chunkMMC6M35Q_cjs.Button; }
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "buttonVariants", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return chunkMMC6M35Q_cjs.buttonVariants; }
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=button.cjs.map
|
|
18
|
+
//# sourceMappingURL=button.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"button.cjs"}
|