@parto-system-design/ui 1.1.17 → 1.1.19
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 +2 -2
- package/README.md +1 -1
- package/dist/components/brand/parto-logo.cjs +0 -2
- package/dist/components/brand/parto-logo.js +0 -2
- package/dist/components/charts/PartoAreaChart.cjs +2 -4
- package/dist/components/charts/PartoAreaChart.d.cts +1 -1
- package/dist/components/charts/PartoAreaChart.d.ts +1 -1
- package/dist/components/charts/PartoAreaChart.js +2 -4
- package/dist/components/charts/PartoBarChart.cjs +2 -4
- package/dist/components/charts/PartoBarChart.d.cts +1 -1
- package/dist/components/charts/PartoBarChart.d.ts +1 -1
- package/dist/components/charts/PartoBarChart.js +2 -4
- package/dist/components/charts/PartoLineChart.cjs +2 -4
- package/dist/components/charts/PartoLineChart.d.cts +1 -1
- package/dist/components/charts/PartoLineChart.d.ts +1 -1
- package/dist/components/charts/PartoLineChart.js +2 -4
- package/dist/components/charts/PartoPieChart.cjs +2 -4
- package/dist/components/charts/PartoPieChart.d.cts +1 -1
- package/dist/components/charts/PartoPieChart.d.ts +1 -1
- package/dist/components/charts/PartoPieChart.js +2 -4
- package/dist/components/ui/accordion.cjs +0 -2
- package/dist/components/ui/accordion.d.cts +4 -5
- package/dist/components/ui/accordion.d.ts +4 -5
- package/dist/components/ui/accordion.js +0 -2
- package/dist/components/ui/alert-dialog.cjs +0 -2
- package/dist/components/ui/alert-dialog.d.cts +9 -10
- package/dist/components/ui/alert-dialog.d.ts +9 -10
- package/dist/components/ui/alert-dialog.js +1 -3
- package/dist/components/ui/alert-rule-card.cjs +149 -12
- package/dist/components/ui/alert-rule-card.d.cts +2 -2
- package/dist/components/ui/alert-rule-card.d.ts +2 -2
- package/dist/components/ui/alert-rule-card.js +149 -12
- package/dist/components/ui/alert.cjs +3 -5
- package/dist/components/ui/alert.js +3 -5
- package/dist/components/ui/app-bar.cjs +0 -2
- package/dist/components/ui/app-bar.js +0 -2
- package/dist/components/ui/avatar.cjs +0 -2
- package/dist/components/ui/avatar.d.cts +3 -4
- package/dist/components/ui/avatar.d.ts +3 -4
- package/dist/components/ui/avatar.js +0 -2
- package/dist/components/ui/badge.cjs +0 -2
- package/dist/components/ui/badge.d.cts +1 -1
- package/dist/components/ui/badge.d.ts +1 -1
- package/dist/components/ui/badge.js +0 -2
- package/dist/components/ui/breadcrumb.cjs +0 -2
- package/dist/components/ui/breadcrumb.d.cts +7 -8
- package/dist/components/ui/breadcrumb.d.ts +7 -8
- package/dist/components/ui/breadcrumb.js +0 -2
- package/dist/components/ui/button.cjs +0 -2
- package/dist/components/ui/button.d.cts +2 -2
- package/dist/components/ui/button.d.ts +2 -2
- package/dist/components/ui/button.js +1 -3
- package/dist/components/ui/calendar.cjs +0 -2
- package/dist/components/ui/calendar.d.cts +1 -2
- package/dist/components/ui/calendar.d.ts +1 -2
- package/dist/components/ui/calendar.js +1 -3
- package/dist/components/ui/card.cjs +0 -2
- package/dist/components/ui/card.js +0 -2
- package/dist/components/ui/checkbox.cjs +0 -2
- package/dist/components/ui/checkbox.js +0 -2
- package/dist/components/ui/concept-card.cjs +179 -61
- package/dist/components/ui/concept-card.d.cts +3 -3
- package/dist/components/ui/concept-card.d.ts +3 -3
- package/dist/components/ui/concept-card.js +179 -61
- package/dist/components/ui/data-table.cjs +129 -3
- package/dist/components/ui/data-table.d.cts +1 -1
- package/dist/components/ui/data-table.d.ts +1 -1
- package/dist/components/ui/data-table.js +130 -4
- package/dist/components/ui/dialog.cjs +0 -2
- package/dist/components/ui/dialog.d.cts +2 -3
- package/dist/components/ui/dialog.d.ts +2 -3
- package/dist/components/ui/dialog.js +0 -2
- package/dist/components/ui/dropdown-menu.cjs +0 -2
- package/dist/components/ui/dropdown-menu.d.cts +15 -16
- package/dist/components/ui/dropdown-menu.d.ts +15 -16
- package/dist/components/ui/dropdown-menu.js +0 -2
- package/dist/components/ui/filter-provider.cjs +0 -2
- package/dist/components/ui/filter-provider.d.cts +1 -2
- package/dist/components/ui/filter-provider.d.ts +1 -2
- package/dist/components/ui/filter-provider.js +0 -2
- package/dist/components/ui/form.cjs +0 -2
- package/dist/components/ui/form.d.cts +7 -8
- package/dist/components/ui/form.d.ts +7 -8
- package/dist/components/ui/form.js +0 -2
- package/dist/components/ui/input.cjs +0 -2
- package/dist/components/ui/input.js +0 -2
- package/dist/components/ui/iran-province-heat.cjs +1 -3
- package/dist/components/ui/iran-province-heat.d.cts +1 -1
- package/dist/components/ui/iran-province-heat.d.ts +1 -1
- package/dist/components/ui/iran-province-heat.js +1 -3
- package/dist/components/ui/label.cjs +0 -2
- package/dist/components/ui/label.d.cts +1 -2
- package/dist/components/ui/label.d.ts +1 -2
- package/dist/components/ui/label.js +0 -2
- package/dist/components/ui/page-card.cjs +170 -33
- package/dist/components/ui/page-card.d.cts +3 -3
- package/dist/components/ui/page-card.d.ts +3 -3
- package/dist/components/ui/page-card.js +170 -33
- package/dist/components/ui/page-header.cjs +128 -2
- package/dist/components/ui/page-header.d.cts +1 -1
- package/dist/components/ui/page-header.d.ts +1 -1
- package/dist/components/ui/page-header.js +128 -2
- package/dist/components/ui/password-input.cjs +0 -2
- package/dist/components/ui/password-input.js +0 -2
- package/dist/components/ui/popover.cjs +0 -2
- package/dist/components/ui/popover.js +0 -2
- package/dist/components/ui/progress.cjs +1 -3
- package/dist/components/ui/progress.js +1 -3
- package/dist/components/ui/radio-card.cjs +0 -2
- package/dist/components/ui/radio-card.js +0 -2
- package/dist/components/ui/radio-group.cjs +0 -2
- package/dist/components/ui/radio-group.js +0 -2
- package/dist/components/ui/saved-query-card.cjs +0 -2
- package/dist/components/ui/saved-query-card.d.cts +1 -1
- package/dist/components/ui/saved-query-card.d.ts +1 -1
- package/dist/components/ui/saved-query-card.js +1 -3
- package/dist/components/ui/scroll-area.cjs +0 -2
- package/dist/components/ui/scroll-area.d.cts +2 -3
- package/dist/components/ui/scroll-area.d.ts +2 -3
- package/dist/components/ui/scroll-area.js +0 -2
- package/dist/components/ui/select.cjs +0 -2
- package/dist/components/ui/select.d.cts +1 -2
- package/dist/components/ui/select.d.ts +1 -2
- package/dist/components/ui/select.js +0 -2
- package/dist/components/ui/separator.cjs +0 -2
- package/dist/components/ui/separator.js +0 -2
- package/dist/components/ui/sheet.cjs +0 -2
- package/dist/components/ui/sheet.d.cts +9 -10
- package/dist/components/ui/sheet.d.ts +9 -10
- package/dist/components/ui/sheet.js +0 -2
- package/dist/components/ui/skeleton.cjs +0 -2
- package/dist/components/ui/skeleton.d.cts +8 -9
- package/dist/components/ui/skeleton.d.ts +8 -9
- package/dist/components/ui/skeleton.js +0 -2
- package/dist/components/ui/slider.cjs +0 -2
- package/dist/components/ui/slider.d.cts +1 -2
- package/dist/components/ui/slider.d.ts +1 -2
- package/dist/components/ui/slider.js +0 -2
- package/dist/components/ui/social-platform-badge.cjs +0 -2
- package/dist/components/ui/social-platform-badge.js +1 -3
- package/dist/components/ui/sonner.cjs +4 -6
- package/dist/components/ui/sonner.d.cts +2 -2
- package/dist/components/ui/sonner.d.ts +2 -2
- package/dist/components/ui/sonner.js +4 -6
- package/dist/components/ui/sparkline.cjs +3 -5
- package/dist/components/ui/sparkline.d.cts +1 -1
- package/dist/components/ui/sparkline.d.ts +1 -1
- package/dist/components/ui/sparkline.js +3 -5
- package/dist/components/ui/switch.cjs +0 -2
- package/dist/components/ui/switch.d.cts +1 -1
- package/dist/components/ui/switch.d.ts +1 -1
- package/dist/components/ui/switch.js +0 -2
- package/dist/components/ui/table.cjs +0 -2
- package/dist/components/ui/table.d.cts +9 -10
- package/dist/components/ui/table.d.ts +9 -10
- package/dist/components/ui/table.js +0 -2
- package/dist/components/ui/tabs.cjs +0 -2
- package/dist/components/ui/tabs.js +0 -2
- package/dist/components/ui/textarea.cjs +0 -2
- package/dist/components/ui/textarea.js +0 -2
- package/dist/components/ui/toggle-group.cjs +0 -2
- package/dist/components/ui/toggle-group.d.cts +1 -2
- package/dist/components/ui/toggle-group.d.ts +1 -2
- package/dist/components/ui/toggle-group.js +0 -2
- package/dist/components/ui/tooltip.cjs +0 -2
- package/dist/components/ui/tooltip.js +0 -2
- package/dist/{concept-card-BoJ5gIJD.d.ts → concept-card-BU8JL-gj.d.cts} +5 -5
- package/dist/{concept-card-BXra9mr0.d.cts → concept-card-D7PfDkNR.d.ts} +5 -5
- package/dist/hooks/use-hotkey-registry.cjs +0 -2
- package/dist/hooks/use-hotkey-registry.d.cts +1 -2
- package/dist/hooks/use-hotkey-registry.d.ts +1 -2
- package/dist/hooks/use-hotkey-registry.js +0 -2
- package/dist/hooks/use-hotkeys.cjs +0 -2
- package/dist/hooks/use-hotkeys.js +0 -2
- package/dist/{i18n-BfRhV5aw.d.cts → i18n-DD3DMY8O.d.cts} +94 -5
- package/dist/{i18n-ewyqbKM-.d.ts → i18n-UEClNsBy.d.ts} +94 -5
- package/dist/index.cjs +1244 -1173
- package/dist/index.css +8010 -5459
- package/dist/index.d.cts +213 -992
- package/dist/index.d.ts +213 -992
- package/dist/index.js +1210 -1153
- package/dist/{page-card-C9XXXOVr.d.cts → page-card-DjztZrFM.d.cts} +4 -4
- package/dist/{page-card-DAnbez_f.d.ts → page-card-sIE4lvnb.d.ts} +4 -4
- package/dist/server-FTUA8opZ.d.cts +829 -0
- package/dist/server-m6tiB6DB.d.ts +829 -0
- package/dist/server.cjs +1565 -0
- package/dist/server.d.cts +8 -0
- package/dist/server.d.ts +8 -0
- package/dist/server.js +1483 -0
- package/dist/theme.css +50 -0
- package/dist/{toggle-group-B8r4LOQw.d.cts → toggle-group-Bis6suuR.d.cts} +3 -4
- package/dist/{toggle-group-B8r4LOQw.d.ts → toggle-group-Bis6suuR.d.ts} +3 -4
- package/dist/{utils-DlXWmDZ-.d.cts → utils-Czyp5Ned.d.cts} +1 -1
- package/dist/{utils-DlXWmDZ-.d.ts → utils-Czyp5Ned.d.ts} +1 -1
- package/package.json +455 -187
- package/tailwind.config.ts +184 -183
- package/dist/components/brand/parto-logo.cjs.map +0 -1
- package/dist/components/brand/parto-logo.js.map +0 -1
- package/dist/components/charts/PartoAreaChart.cjs.map +0 -1
- package/dist/components/charts/PartoAreaChart.js.map +0 -1
- package/dist/components/charts/PartoBarChart.cjs.map +0 -1
- package/dist/components/charts/PartoBarChart.js.map +0 -1
- package/dist/components/charts/PartoLineChart.cjs.map +0 -1
- package/dist/components/charts/PartoLineChart.js.map +0 -1
- package/dist/components/charts/PartoPieChart.cjs.map +0 -1
- package/dist/components/charts/PartoPieChart.js.map +0 -1
- package/dist/components/ui/accordion.cjs.map +0 -1
- package/dist/components/ui/accordion.js.map +0 -1
- package/dist/components/ui/alert-dialog.cjs.map +0 -1
- package/dist/components/ui/alert-dialog.js.map +0 -1
- package/dist/components/ui/alert-rule-card.cjs.map +0 -1
- package/dist/components/ui/alert-rule-card.js.map +0 -1
- package/dist/components/ui/alert.cjs.map +0 -1
- package/dist/components/ui/alert.js.map +0 -1
- package/dist/components/ui/app-bar.cjs.map +0 -1
- package/dist/components/ui/app-bar.js.map +0 -1
- package/dist/components/ui/avatar.cjs.map +0 -1
- package/dist/components/ui/avatar.js.map +0 -1
- package/dist/components/ui/badge.cjs.map +0 -1
- package/dist/components/ui/badge.js.map +0 -1
- package/dist/components/ui/breadcrumb.cjs.map +0 -1
- package/dist/components/ui/breadcrumb.js.map +0 -1
- package/dist/components/ui/button.cjs.map +0 -1
- package/dist/components/ui/button.js.map +0 -1
- package/dist/components/ui/calendar.cjs.map +0 -1
- package/dist/components/ui/calendar.js.map +0 -1
- package/dist/components/ui/card.cjs.map +0 -1
- package/dist/components/ui/card.js.map +0 -1
- package/dist/components/ui/checkbox.cjs.map +0 -1
- package/dist/components/ui/checkbox.js.map +0 -1
- package/dist/components/ui/concept-card.cjs.map +0 -1
- package/dist/components/ui/concept-card.js.map +0 -1
- package/dist/components/ui/data-table.cjs.map +0 -1
- package/dist/components/ui/data-table.js.map +0 -1
- package/dist/components/ui/dialog.cjs.map +0 -1
- package/dist/components/ui/dialog.js.map +0 -1
- package/dist/components/ui/dropdown-menu.cjs.map +0 -1
- package/dist/components/ui/dropdown-menu.js.map +0 -1
- package/dist/components/ui/filter-provider.cjs.map +0 -1
- package/dist/components/ui/filter-provider.js.map +0 -1
- package/dist/components/ui/form.cjs.map +0 -1
- package/dist/components/ui/form.js.map +0 -1
- package/dist/components/ui/input.cjs.map +0 -1
- package/dist/components/ui/input.js.map +0 -1
- package/dist/components/ui/iran-province-heat.cjs.map +0 -1
- package/dist/components/ui/iran-province-heat.js.map +0 -1
- package/dist/components/ui/label.cjs.map +0 -1
- package/dist/components/ui/label.js.map +0 -1
- package/dist/components/ui/page-card.cjs.map +0 -1
- package/dist/components/ui/page-card.js.map +0 -1
- package/dist/components/ui/page-header.cjs.map +0 -1
- package/dist/components/ui/page-header.js.map +0 -1
- package/dist/components/ui/password-input.cjs.map +0 -1
- package/dist/components/ui/password-input.js.map +0 -1
- package/dist/components/ui/popover.cjs.map +0 -1
- package/dist/components/ui/popover.js.map +0 -1
- package/dist/components/ui/progress.cjs.map +0 -1
- package/dist/components/ui/progress.js.map +0 -1
- package/dist/components/ui/radio-card.cjs.map +0 -1
- package/dist/components/ui/radio-card.js.map +0 -1
- package/dist/components/ui/radio-group.cjs.map +0 -1
- package/dist/components/ui/radio-group.js.map +0 -1
- package/dist/components/ui/saved-query-card.cjs.map +0 -1
- package/dist/components/ui/saved-query-card.js.map +0 -1
- package/dist/components/ui/scroll-area.cjs.map +0 -1
- package/dist/components/ui/scroll-area.js.map +0 -1
- package/dist/components/ui/select.cjs.map +0 -1
- package/dist/components/ui/select.js.map +0 -1
- package/dist/components/ui/separator.cjs.map +0 -1
- package/dist/components/ui/separator.js.map +0 -1
- package/dist/components/ui/sheet.cjs.map +0 -1
- package/dist/components/ui/sheet.js.map +0 -1
- package/dist/components/ui/skeleton.cjs.map +0 -1
- package/dist/components/ui/skeleton.js.map +0 -1
- package/dist/components/ui/slider.cjs.map +0 -1
- package/dist/components/ui/slider.js.map +0 -1
- package/dist/components/ui/social-platform-badge.cjs.map +0 -1
- package/dist/components/ui/social-platform-badge.js.map +0 -1
- package/dist/components/ui/sonner.cjs.map +0 -1
- package/dist/components/ui/sonner.js.map +0 -1
- package/dist/components/ui/sparkline.cjs.map +0 -1
- package/dist/components/ui/sparkline.js.map +0 -1
- package/dist/components/ui/switch.cjs.map +0 -1
- package/dist/components/ui/switch.js.map +0 -1
- package/dist/components/ui/table.cjs.map +0 -1
- package/dist/components/ui/table.js.map +0 -1
- package/dist/components/ui/tabs.cjs.map +0 -1
- package/dist/components/ui/tabs.js.map +0 -1
- package/dist/components/ui/textarea.cjs.map +0 -1
- package/dist/components/ui/textarea.js.map +0 -1
- package/dist/components/ui/toggle-group.cjs.map +0 -1
- package/dist/components/ui/toggle-group.js.map +0 -1
- package/dist/components/ui/tooltip.cjs.map +0 -1
- package/dist/components/ui/tooltip.js.map +0 -1
- package/dist/hooks/use-hotkey-registry.cjs.map +0 -1
- package/dist/hooks/use-hotkey-registry.js.map +0 -1
- package/dist/hooks/use-hotkeys.cjs.map +0 -1
- package/dist/hooks/use-hotkeys.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
package/AGENTS.md
CHANGED
|
@@ -176,10 +176,10 @@ Categories: `nano` (1K-10K) | `micro` (10K-100K) | `macro` (100K-1M) | `mega` (1
|
|
|
176
176
|
|
|
177
177
|
Icon-only actions on hover. Images of any aspect ratio letterbox with blurred backdrop.
|
|
178
178
|
|
|
179
|
-
###
|
|
179
|
+
### PostDetailsDrawer — full drill-down (comments + AI analysis + OCR + platform metadata)
|
|
180
180
|
|
|
181
181
|
```tsx
|
|
182
|
-
<
|
|
182
|
+
<PostDetailsDrawer
|
|
183
183
|
open={open}
|
|
184
184
|
onOpenChange={setOpen}
|
|
185
185
|
post={post}
|
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
## What's inside
|
|
9
9
|
|
|
10
10
|
- **170+ component entries** — primitives, layout, forms, charts, data viz
|
|
11
|
-
- **Domain-aware** for افکارسنجی: 5
|
|
11
|
+
- **Domain-aware** for افکارسنجی: 5 audience-stance tokens, 9-emotion scale, 4-level severity, status pulse, 10 platform tokens (incl. TV / Radio / Press), action types, score tiers
|
|
12
12
|
- **Two themes**: Light + Dark, both production-grade with full token coverage
|
|
13
13
|
- **RTL native**: CSS Logical Properties throughout — no physical left/right
|
|
14
14
|
- **Trilingual**: Persian (canonical), Arabic, English labels for every domain primitive
|
|
@@ -315,7 +315,7 @@ var ChartLegend = React2__namespace.forwardRef(
|
|
|
315
315
|
flexDirection: isVertical ? "column" : "row",
|
|
316
316
|
gap: isVertical ? "6px" : "12px 16px",
|
|
317
317
|
fontSize: 12,
|
|
318
|
-
color: "
|
|
318
|
+
color: "var(--foreground-light)"
|
|
319
319
|
},
|
|
320
320
|
role: "list",
|
|
321
321
|
...props,
|
|
@@ -442,7 +442,7 @@ var ChartGradientLegend = React2__namespace.forwardRef(
|
|
|
442
442
|
flexDirection: "column",
|
|
443
443
|
gap: 4,
|
|
444
444
|
fontSize: 12,
|
|
445
|
-
color: "
|
|
445
|
+
color: "var(--foreground-light)"
|
|
446
446
|
},
|
|
447
447
|
...props,
|
|
448
448
|
children: [
|
|
@@ -583,5 +583,3 @@ var PartoAreaChart = React2__namespace.forwardRef(function PartoAreaChart2({
|
|
|
583
583
|
PartoAreaChart.displayName = "PartoAreaChart";
|
|
584
584
|
|
|
585
585
|
exports.PartoAreaChart = PartoAreaChart;
|
|
586
|
-
//# sourceMappingURL=PartoAreaChart.cjs.map
|
|
587
|
-
//# sourceMappingURL=PartoAreaChart.cjs.map
|
|
@@ -294,7 +294,7 @@ var ChartLegend = React2.forwardRef(
|
|
|
294
294
|
flexDirection: isVertical ? "column" : "row",
|
|
295
295
|
gap: isVertical ? "6px" : "12px 16px",
|
|
296
296
|
fontSize: 12,
|
|
297
|
-
color: "
|
|
297
|
+
color: "var(--foreground-light)"
|
|
298
298
|
},
|
|
299
299
|
role: "list",
|
|
300
300
|
...props,
|
|
@@ -421,7 +421,7 @@ var ChartGradientLegend = React2.forwardRef(
|
|
|
421
421
|
flexDirection: "column",
|
|
422
422
|
gap: 4,
|
|
423
423
|
fontSize: 12,
|
|
424
|
-
color: "
|
|
424
|
+
color: "var(--foreground-light)"
|
|
425
425
|
},
|
|
426
426
|
...props,
|
|
427
427
|
children: [
|
|
@@ -562,5 +562,3 @@ var PartoAreaChart = React2.forwardRef(function PartoAreaChart2({
|
|
|
562
562
|
PartoAreaChart.displayName = "PartoAreaChart";
|
|
563
563
|
|
|
564
564
|
export { PartoAreaChart };
|
|
565
|
-
//# sourceMappingURL=PartoAreaChart.js.map
|
|
566
|
-
//# sourceMappingURL=PartoAreaChart.js.map
|
|
@@ -315,7 +315,7 @@ var ChartLegend = React2__namespace.forwardRef(
|
|
|
315
315
|
flexDirection: isVertical ? "column" : "row",
|
|
316
316
|
gap: isVertical ? "6px" : "12px 16px",
|
|
317
317
|
fontSize: 12,
|
|
318
|
-
color: "
|
|
318
|
+
color: "var(--foreground-light)"
|
|
319
319
|
},
|
|
320
320
|
role: "list",
|
|
321
321
|
...props,
|
|
@@ -442,7 +442,7 @@ var ChartGradientLegend = React2__namespace.forwardRef(
|
|
|
442
442
|
flexDirection: "column",
|
|
443
443
|
gap: 4,
|
|
444
444
|
fontSize: 12,
|
|
445
|
-
color: "
|
|
445
|
+
color: "var(--foreground-light)"
|
|
446
446
|
},
|
|
447
447
|
...props,
|
|
448
448
|
children: [
|
|
@@ -620,5 +620,3 @@ var PartoBarChart = React2__namespace.forwardRef(function PartoBarChart2({
|
|
|
620
620
|
PartoBarChart.displayName = "PartoBarChart";
|
|
621
621
|
|
|
622
622
|
exports.PartoBarChart = PartoBarChart;
|
|
623
|
-
//# sourceMappingURL=PartoBarChart.cjs.map
|
|
624
|
-
//# sourceMappingURL=PartoBarChart.cjs.map
|
|
@@ -294,7 +294,7 @@ var ChartLegend = React2.forwardRef(
|
|
|
294
294
|
flexDirection: isVertical ? "column" : "row",
|
|
295
295
|
gap: isVertical ? "6px" : "12px 16px",
|
|
296
296
|
fontSize: 12,
|
|
297
|
-
color: "
|
|
297
|
+
color: "var(--foreground-light)"
|
|
298
298
|
},
|
|
299
299
|
role: "list",
|
|
300
300
|
...props,
|
|
@@ -421,7 +421,7 @@ var ChartGradientLegend = React2.forwardRef(
|
|
|
421
421
|
flexDirection: "column",
|
|
422
422
|
gap: 4,
|
|
423
423
|
fontSize: 12,
|
|
424
|
-
color: "
|
|
424
|
+
color: "var(--foreground-light)"
|
|
425
425
|
},
|
|
426
426
|
...props,
|
|
427
427
|
children: [
|
|
@@ -599,5 +599,3 @@ var PartoBarChart = React2.forwardRef(function PartoBarChart2({
|
|
|
599
599
|
PartoBarChart.displayName = "PartoBarChart";
|
|
600
600
|
|
|
601
601
|
export { PartoBarChart };
|
|
602
|
-
//# sourceMappingURL=PartoBarChart.js.map
|
|
603
|
-
//# sourceMappingURL=PartoBarChart.js.map
|
|
@@ -315,7 +315,7 @@ var ChartLegend = React2__namespace.forwardRef(
|
|
|
315
315
|
flexDirection: isVertical ? "column" : "row",
|
|
316
316
|
gap: isVertical ? "6px" : "12px 16px",
|
|
317
317
|
fontSize: 12,
|
|
318
|
-
color: "
|
|
318
|
+
color: "var(--foreground-light)"
|
|
319
319
|
},
|
|
320
320
|
role: "list",
|
|
321
321
|
...props,
|
|
@@ -442,7 +442,7 @@ var ChartGradientLegend = React2__namespace.forwardRef(
|
|
|
442
442
|
flexDirection: "column",
|
|
443
443
|
gap: 4,
|
|
444
444
|
fontSize: 12,
|
|
445
|
-
color: "
|
|
445
|
+
color: "var(--foreground-light)"
|
|
446
446
|
},
|
|
447
447
|
...props,
|
|
448
448
|
children: [
|
|
@@ -588,5 +588,3 @@ var PartoLineChart = React2__namespace.forwardRef(function PartoLineChart2({
|
|
|
588
588
|
PartoLineChart.displayName = "PartoLineChart";
|
|
589
589
|
|
|
590
590
|
exports.PartoLineChart = PartoLineChart;
|
|
591
|
-
//# sourceMappingURL=PartoLineChart.cjs.map
|
|
592
|
-
//# sourceMappingURL=PartoLineChart.cjs.map
|
|
@@ -294,7 +294,7 @@ var ChartLegend = React2.forwardRef(
|
|
|
294
294
|
flexDirection: isVertical ? "column" : "row",
|
|
295
295
|
gap: isVertical ? "6px" : "12px 16px",
|
|
296
296
|
fontSize: 12,
|
|
297
|
-
color: "
|
|
297
|
+
color: "var(--foreground-light)"
|
|
298
298
|
},
|
|
299
299
|
role: "list",
|
|
300
300
|
...props,
|
|
@@ -421,7 +421,7 @@ var ChartGradientLegend = React2.forwardRef(
|
|
|
421
421
|
flexDirection: "column",
|
|
422
422
|
gap: 4,
|
|
423
423
|
fontSize: 12,
|
|
424
|
-
color: "
|
|
424
|
+
color: "var(--foreground-light)"
|
|
425
425
|
},
|
|
426
426
|
...props,
|
|
427
427
|
children: [
|
|
@@ -567,5 +567,3 @@ var PartoLineChart = React2.forwardRef(function PartoLineChart2({
|
|
|
567
567
|
PartoLineChart.displayName = "PartoLineChart";
|
|
568
568
|
|
|
569
569
|
export { PartoLineChart };
|
|
570
|
-
//# sourceMappingURL=PartoLineChart.js.map
|
|
571
|
-
//# sourceMappingURL=PartoLineChart.js.map
|
|
@@ -280,7 +280,7 @@ var ChartLegend = React2__namespace.forwardRef(
|
|
|
280
280
|
flexDirection: isVertical ? "column" : "row",
|
|
281
281
|
gap: isVertical ? "6px" : "12px 16px",
|
|
282
282
|
fontSize: 12,
|
|
283
|
-
color: "
|
|
283
|
+
color: "var(--foreground-light)"
|
|
284
284
|
},
|
|
285
285
|
role: "list",
|
|
286
286
|
...props,
|
|
@@ -407,7 +407,7 @@ var ChartGradientLegend = React2__namespace.forwardRef(
|
|
|
407
407
|
flexDirection: "column",
|
|
408
408
|
gap: 4,
|
|
409
409
|
fontSize: 12,
|
|
410
|
-
color: "
|
|
410
|
+
color: "var(--foreground-light)"
|
|
411
411
|
},
|
|
412
412
|
...props,
|
|
413
413
|
children: [
|
|
@@ -570,5 +570,3 @@ var PartoPieChart = React2__namespace.forwardRef(function PartoPieChart2({
|
|
|
570
570
|
PartoPieChart.displayName = "PartoPieChart";
|
|
571
571
|
|
|
572
572
|
exports.PartoPieChart = PartoPieChart;
|
|
573
|
-
//# sourceMappingURL=PartoPieChart.cjs.map
|
|
574
|
-
//# sourceMappingURL=PartoPieChart.cjs.map
|
|
@@ -259,7 +259,7 @@ var ChartLegend = React2.forwardRef(
|
|
|
259
259
|
flexDirection: isVertical ? "column" : "row",
|
|
260
260
|
gap: isVertical ? "6px" : "12px 16px",
|
|
261
261
|
fontSize: 12,
|
|
262
|
-
color: "
|
|
262
|
+
color: "var(--foreground-light)"
|
|
263
263
|
},
|
|
264
264
|
role: "list",
|
|
265
265
|
...props,
|
|
@@ -386,7 +386,7 @@ var ChartGradientLegend = React2.forwardRef(
|
|
|
386
386
|
flexDirection: "column",
|
|
387
387
|
gap: 4,
|
|
388
388
|
fontSize: 12,
|
|
389
|
-
color: "
|
|
389
|
+
color: "var(--foreground-light)"
|
|
390
390
|
},
|
|
391
391
|
...props,
|
|
392
392
|
children: [
|
|
@@ -549,5 +549,3 @@ var PartoPieChart = React2.forwardRef(function PartoPieChart2({
|
|
|
549
549
|
PartoPieChart.displayName = "PartoPieChart";
|
|
550
550
|
|
|
551
551
|
export { PartoPieChart };
|
|
552
|
-
//# sourceMappingURL=PartoPieChart.js.map
|
|
553
|
-
//# sourceMappingURL=PartoPieChart.js.map
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as React from 'react';
|
|
3
2
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
4
3
|
|
|
5
|
-
declare function Accordion({ ...props }: React.ComponentProps<typeof AccordionPrimitive.Root>):
|
|
4
|
+
declare function Accordion({ ...props }: React.ComponentProps<typeof AccordionPrimitive.Root>): React.JSX.Element;
|
|
6
5
|
declare namespace Accordion {
|
|
7
6
|
var displayName: string;
|
|
8
7
|
}
|
|
9
|
-
declare function AccordionItem({ className, ...props }: React.ComponentProps<typeof AccordionPrimitive.Item>):
|
|
8
|
+
declare function AccordionItem({ className, ...props }: React.ComponentProps<typeof AccordionPrimitive.Item>): React.JSX.Element;
|
|
10
9
|
declare namespace AccordionItem {
|
|
11
10
|
var displayName: string;
|
|
12
11
|
}
|
|
13
|
-
declare function AccordionTrigger({ className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Trigger>):
|
|
12
|
+
declare function AccordionTrigger({ className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Trigger>): React.JSX.Element;
|
|
14
13
|
declare namespace AccordionTrigger {
|
|
15
14
|
var displayName: string;
|
|
16
15
|
}
|
|
17
|
-
declare function AccordionContent({ className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Content>):
|
|
16
|
+
declare function AccordionContent({ className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Content>): React.JSX.Element;
|
|
18
17
|
declare namespace AccordionContent {
|
|
19
18
|
var displayName: string;
|
|
20
19
|
}
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as React from 'react';
|
|
3
2
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
4
3
|
|
|
5
|
-
declare function Accordion({ ...props }: React.ComponentProps<typeof AccordionPrimitive.Root>):
|
|
4
|
+
declare function Accordion({ ...props }: React.ComponentProps<typeof AccordionPrimitive.Root>): React.JSX.Element;
|
|
6
5
|
declare namespace Accordion {
|
|
7
6
|
var displayName: string;
|
|
8
7
|
}
|
|
9
|
-
declare function AccordionItem({ className, ...props }: React.ComponentProps<typeof AccordionPrimitive.Item>):
|
|
8
|
+
declare function AccordionItem({ className, ...props }: React.ComponentProps<typeof AccordionPrimitive.Item>): React.JSX.Element;
|
|
10
9
|
declare namespace AccordionItem {
|
|
11
10
|
var displayName: string;
|
|
12
11
|
}
|
|
13
|
-
declare function AccordionTrigger({ className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Trigger>):
|
|
12
|
+
declare function AccordionTrigger({ className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Trigger>): React.JSX.Element;
|
|
14
13
|
declare namespace AccordionTrigger {
|
|
15
14
|
var displayName: string;
|
|
16
15
|
}
|
|
17
|
-
declare function AccordionContent({ className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Content>):
|
|
16
|
+
declare function AccordionContent({ className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Content>): React.JSX.Element;
|
|
18
17
|
declare namespace AccordionContent {
|
|
19
18
|
var displayName: string;
|
|
20
19
|
}
|
|
@@ -462,5 +462,3 @@ exports.AlertDialogOverlay = AlertDialogOverlay;
|
|
|
462
462
|
exports.AlertDialogPortal = AlertDialogPortal;
|
|
463
463
|
exports.AlertDialogTitle = AlertDialogTitle;
|
|
464
464
|
exports.AlertDialogTrigger = AlertDialogTrigger;
|
|
465
|
-
//# sourceMappingURL=alert-dialog.cjs.map
|
|
466
|
-
//# sourceMappingURL=alert-dialog.cjs.map
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as React from 'react';
|
|
3
2
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
4
3
|
|
|
5
|
-
declare function AlertDialog({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Root>):
|
|
6
|
-
declare function AlertDialogTrigger({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>):
|
|
7
|
-
declare function AlertDialogPortal({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>):
|
|
8
|
-
declare function AlertDialogOverlay({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>):
|
|
9
|
-
declare function AlertDialogContent({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Content>):
|
|
10
|
-
declare function AlertDialogHeader({ className, ...props }: React.ComponentProps<"div">):
|
|
11
|
-
declare function AlertDialogFooter({ className, ...props }: React.ComponentProps<"div">):
|
|
12
|
-
declare function AlertDialogTitle({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Title>):
|
|
13
|
-
declare function AlertDialogDescription({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Description>):
|
|
4
|
+
declare function AlertDialog({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Root>): React.JSX.Element;
|
|
5
|
+
declare function AlertDialogTrigger({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>): React.JSX.Element;
|
|
6
|
+
declare function AlertDialogPortal({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>): React.JSX.Element;
|
|
7
|
+
declare function AlertDialogOverlay({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>): React.JSX.Element;
|
|
8
|
+
declare function AlertDialogContent({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Content>): React.JSX.Element;
|
|
9
|
+
declare function AlertDialogHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
10
|
+
declare function AlertDialogFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
11
|
+
declare function AlertDialogTitle({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Title>): React.JSX.Element;
|
|
12
|
+
declare function AlertDialogDescription({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Description>): React.JSX.Element;
|
|
14
13
|
declare const AlertDialogAction: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
15
14
|
declare const AlertDialogCancel: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
16
15
|
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as React from 'react';
|
|
3
2
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
4
3
|
|
|
5
|
-
declare function AlertDialog({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Root>):
|
|
6
|
-
declare function AlertDialogTrigger({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>):
|
|
7
|
-
declare function AlertDialogPortal({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>):
|
|
8
|
-
declare function AlertDialogOverlay({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>):
|
|
9
|
-
declare function AlertDialogContent({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Content>):
|
|
10
|
-
declare function AlertDialogHeader({ className, ...props }: React.ComponentProps<"div">):
|
|
11
|
-
declare function AlertDialogFooter({ className, ...props }: React.ComponentProps<"div">):
|
|
12
|
-
declare function AlertDialogTitle({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Title>):
|
|
13
|
-
declare function AlertDialogDescription({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Description>):
|
|
4
|
+
declare function AlertDialog({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Root>): React.JSX.Element;
|
|
5
|
+
declare function AlertDialogTrigger({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>): React.JSX.Element;
|
|
6
|
+
declare function AlertDialogPortal({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>): React.JSX.Element;
|
|
7
|
+
declare function AlertDialogOverlay({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>): React.JSX.Element;
|
|
8
|
+
declare function AlertDialogContent({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Content>): React.JSX.Element;
|
|
9
|
+
declare function AlertDialogHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
10
|
+
declare function AlertDialogFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
11
|
+
declare function AlertDialogTitle({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Title>): React.JSX.Element;
|
|
12
|
+
declare function AlertDialogDescription({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Description>): React.JSX.Element;
|
|
14
13
|
declare const AlertDialogAction: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
15
14
|
declare const AlertDialogCancel: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
16
15
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { forwardRef,
|
|
3
|
+
import { forwardRef, isValidElement, cloneElement } from 'react';
|
|
4
4
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
5
5
|
import { clsx } from 'clsx';
|
|
6
6
|
import { twMerge } from 'tailwind-merge';
|
|
@@ -430,5 +430,3 @@ var AlertDialogCancel = React.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
430
430
|
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
|
431
431
|
|
|
432
432
|
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger };
|
|
433
|
-
//# sourceMappingURL=alert-dialog.js.map
|
|
434
|
-
//# sourceMappingURL=alert-dialog.js.map
|
|
@@ -93,11 +93,148 @@ var Switch = React__namespace.forwardRef(
|
|
|
93
93
|
Switch.displayName = SwitchPrimitive__namespace.Root.displayName;
|
|
94
94
|
|
|
95
95
|
// src/lib/i18n.ts
|
|
96
|
+
var EMOTION_KEYS = [
|
|
97
|
+
"anger",
|
|
98
|
+
"anticipation",
|
|
99
|
+
"joy",
|
|
100
|
+
"trust",
|
|
101
|
+
"fear",
|
|
102
|
+
"surprise",
|
|
103
|
+
"sadness",
|
|
104
|
+
"disgust",
|
|
105
|
+
"neutral"
|
|
106
|
+
];
|
|
107
|
+
var emotionLabels = {
|
|
108
|
+
fa: {
|
|
109
|
+
anger: "\u062E\u0634\u0645",
|
|
110
|
+
anticipation: "\u0627\u0646\u062A\u0638\u0627\u0631",
|
|
111
|
+
joy: "\u0634\u0627\u062F\u06CC",
|
|
112
|
+
trust: "\u0627\u0639\u062A\u0645\u0627\u062F",
|
|
113
|
+
fear: "\u062A\u0631\u0633",
|
|
114
|
+
surprise: "\u0634\u06AF\u0641\u062A\u06CC",
|
|
115
|
+
sadness: "\u063A\u0645",
|
|
116
|
+
disgust: "\u0627\u0646\u0632\u062C\u0627\u0631",
|
|
117
|
+
neutral: "\u062E\u0646\u062B\u06CC"
|
|
118
|
+
},
|
|
119
|
+
ar: {
|
|
120
|
+
anger: "\u063A\u0636\u0628",
|
|
121
|
+
anticipation: "\u062A\u0631\u0642\u0651\u0628",
|
|
122
|
+
joy: "\u0641\u0631\u062D",
|
|
123
|
+
trust: "\u062B\u0642\u0629",
|
|
124
|
+
fear: "\u062E\u0648\u0641",
|
|
125
|
+
surprise: "\u062F\u0647\u0634\u0629",
|
|
126
|
+
sadness: "\u062D\u0632\u0646",
|
|
127
|
+
disgust: "\u0627\u0634\u0645\u0626\u0632\u0627\u0632",
|
|
128
|
+
neutral: "\u0645\u062D\u0627\u064A\u062F"
|
|
129
|
+
},
|
|
130
|
+
en: {
|
|
131
|
+
anger: "Anger",
|
|
132
|
+
anticipation: "Anticipation",
|
|
133
|
+
joy: "Joy",
|
|
134
|
+
trust: "Trust",
|
|
135
|
+
fear: "Fear",
|
|
136
|
+
surprise: "Surprise",
|
|
137
|
+
sadness: "Sadness",
|
|
138
|
+
disgust: "Disgust",
|
|
139
|
+
neutral: "Neutral"
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
(() => {
|
|
143
|
+
const map = {};
|
|
144
|
+
for (const key of EMOTION_KEYS) map[key] = key;
|
|
145
|
+
for (const locale of Object.keys(emotionLabels)) {
|
|
146
|
+
for (const key of EMOTION_KEYS) {
|
|
147
|
+
map[emotionLabels[locale][key].toLowerCase()] = key;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
return map;
|
|
151
|
+
})();
|
|
152
|
+
var FLOW_KEYS = [
|
|
153
|
+
"pro-gov",
|
|
154
|
+
"internal-critic",
|
|
155
|
+
"internal-opponent",
|
|
156
|
+
"external-opponent",
|
|
157
|
+
"grey"
|
|
158
|
+
];
|
|
159
|
+
var flowLabels = {
|
|
160
|
+
fa: {
|
|
161
|
+
"pro-gov": "\u062D\u0627\u0645\u06CC\u0627\u0646 \u062D\u06A9\u0648\u0645\u062A",
|
|
162
|
+
"internal-critic": "\u0645\u0646\u062A\u0642\u062F\u0627\u0646 \u062F\u0627\u062E\u0644\u06CC",
|
|
163
|
+
"internal-opponent": "\u0645\u062E\u0627\u0644\u0641\u0627\u0646 \u062F\u0627\u062E\u0644\u06CC",
|
|
164
|
+
"external-opponent": "\u0645\u062E\u0627\u0644\u0641\u0627\u0646 \u062E\u0627\u0631\u062C\u06CC",
|
|
165
|
+
grey: "\u0642\u0634\u0631 \u062E\u0627\u06A9\u0633\u062A\u0631\u06CC"
|
|
166
|
+
},
|
|
167
|
+
ar: {
|
|
168
|
+
"pro-gov": "\u0645\u0624\u064A\u062F\u0648 \u0627\u0644\u062D\u0643\u0648\u0645\u0629",
|
|
169
|
+
"internal-critic": "\u0645\u0646\u062A\u0642\u062F\u0648\u0646 \u062F\u0627\u062E\u0644\u064A\u0648\u0646",
|
|
170
|
+
"internal-opponent": "\u0645\u0639\u0627\u0631\u0636\u0648\u0646 \u062F\u0627\u062E\u0644\u064A\u0648\u0646",
|
|
171
|
+
"external-opponent": "\u0645\u0639\u0627\u0631\u0636\u0648\u0646 \u062E\u0627\u0631\u062C\u064A\u0648\u0646",
|
|
172
|
+
grey: "\u0627\u0644\u0641\u0626\u0629 \u0627\u0644\u0631\u0645\u0627\u062F\u064A\u0629"
|
|
173
|
+
},
|
|
174
|
+
en: {
|
|
175
|
+
"pro-gov": "Pro-Government",
|
|
176
|
+
"internal-critic": "Internal Critic",
|
|
177
|
+
"internal-opponent": "Internal Opponent",
|
|
178
|
+
"external-opponent": "External Opponent",
|
|
179
|
+
grey: "Grey"
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
(() => {
|
|
183
|
+
const map = {};
|
|
184
|
+
for (const key of FLOW_KEYS) map[key] = key;
|
|
185
|
+
for (const locale of Object.keys(flowLabels)) {
|
|
186
|
+
for (const key of FLOW_KEYS) {
|
|
187
|
+
map[flowLabels[locale][key].toLowerCase()] = key;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
return map;
|
|
191
|
+
})();
|
|
192
|
+
var STATUS_KEYS = ["critical", "warning", "middle", "low"];
|
|
193
|
+
var statusLabels = {
|
|
194
|
+
fa: { critical: "\u0628\u062D\u0631\u0627\u0646\u06CC", warning: "\u0647\u0634\u062F\u0627\u0631", middle: "\u0645\u062A\u0648\u0633\u0637", low: "\u067E\u0627\u06CC\u06CC\u0646" },
|
|
195
|
+
ar: { critical: "\u062D\u0631\u062C", warning: "\u062A\u062D\u0630\u064A\u0631", middle: "\u0645\u062A\u0648\u0633\u0637", low: "\u0645\u0646\u062E\u0641\u0636" },
|
|
196
|
+
en: { critical: "Critical", warning: "Warning", middle: "Middle", low: "Low" }
|
|
197
|
+
};
|
|
198
|
+
(() => {
|
|
199
|
+
const map = { normal: "low" };
|
|
200
|
+
for (const key of STATUS_KEYS) map[key] = key;
|
|
201
|
+
for (const locale of Object.keys(statusLabels)) {
|
|
202
|
+
for (const key of STATUS_KEYS) {
|
|
203
|
+
map[statusLabels[locale][key].toLowerCase()] = key;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
return map;
|
|
207
|
+
})();
|
|
208
|
+
var SEVERITY_KEYS = ["urgent", "high", "medium", "low"];
|
|
96
209
|
var severityLabels = {
|
|
97
210
|
fa: { urgent: "\u0641\u0648\u0631\u06CC", high: "\u0628\u0627\u0644\u0627", medium: "\u0645\u062A\u0648\u0633\u0637", low: "\u067E\u0627\u06CC\u06CC\u0646" },
|
|
98
211
|
ar: { urgent: "\u0639\u0627\u062C\u0644", high: "\u0645\u0631\u062A\u0641\u0639", medium: "\u0645\u062A\u0648\u0633\u0637", low: "\u0645\u0646\u062E\u0641\u0636" },
|
|
99
212
|
en: { urgent: "Urgent", high: "High", medium: "Medium", low: "Low" }
|
|
100
213
|
};
|
|
214
|
+
var SEVERITY_VALUE_MAP = {
|
|
215
|
+
1: "urgent",
|
|
216
|
+
2: "high",
|
|
217
|
+
3: "medium",
|
|
218
|
+
4: "low"
|
|
219
|
+
};
|
|
220
|
+
var SEVERITY_LABEL_LOOKUP = (() => {
|
|
221
|
+
const map = {};
|
|
222
|
+
for (const key of SEVERITY_KEYS) map[key] = key;
|
|
223
|
+
for (const locale of Object.keys(severityLabels)) {
|
|
224
|
+
for (const key of SEVERITY_KEYS) {
|
|
225
|
+
map[severityLabels[locale][key].toLowerCase()] = key;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
return map;
|
|
229
|
+
})();
|
|
230
|
+
function resolveSeverity(input) {
|
|
231
|
+
if (input == null) return null;
|
|
232
|
+
if (typeof input === "number") return SEVERITY_VALUE_MAP[input] ?? null;
|
|
233
|
+
const raw = String(input).trim();
|
|
234
|
+
if (raw === "") return null;
|
|
235
|
+
if (/^\d+$/.test(raw)) return SEVERITY_VALUE_MAP[Number(raw)] ?? null;
|
|
236
|
+
return SEVERITY_LABEL_LOOKUP[raw.toLowerCase()] ?? null;
|
|
237
|
+
}
|
|
101
238
|
var SEVERITY_ICON = {
|
|
102
239
|
urgent: lucideReact.Flame,
|
|
103
240
|
high: lucideReact.ChevronUp,
|
|
@@ -113,25 +250,27 @@ function tokenVar(severity) {
|
|
|
113
250
|
}
|
|
114
251
|
var SeverityBadge = React__namespace.forwardRef(
|
|
115
252
|
({ className, severity, size = "md", showLabel = true, variant = "soft", locale = "fa", ...props }, ref) => {
|
|
116
|
-
const
|
|
117
|
-
|
|
118
|
-
const
|
|
253
|
+
const resolved = resolveSeverity(severity);
|
|
254
|
+
if (!resolved) return null;
|
|
255
|
+
const label = severityLabels[locale]?.[resolved] ?? severityLabels.fa[resolved];
|
|
256
|
+
const Icon = SEVERITY_ICON[resolved];
|
|
257
|
+
const token = tokenVar(resolved);
|
|
119
258
|
const softStyle = {
|
|
120
|
-
backgroundColor: `
|
|
121
|
-
borderColor: `
|
|
122
|
-
color: `
|
|
259
|
+
backgroundColor: `color-mix(in srgb, var(${token}) 10%, transparent)`,
|
|
260
|
+
borderColor: `color-mix(in srgb, var(${token}) 30%, transparent)`,
|
|
261
|
+
color: `var(${token})`
|
|
123
262
|
};
|
|
124
263
|
const solidStyle = {
|
|
125
|
-
backgroundColor: `
|
|
126
|
-
borderColor: `
|
|
127
|
-
color: "
|
|
264
|
+
backgroundColor: `var(${token})`,
|
|
265
|
+
borderColor: `var(${token})`,
|
|
266
|
+
color: "var(--foreground-contrast)"
|
|
128
267
|
};
|
|
129
268
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
130
269
|
"span",
|
|
131
270
|
{
|
|
132
271
|
ref,
|
|
133
272
|
"data-slot": "severity-badge",
|
|
134
|
-
"data-severity":
|
|
273
|
+
"data-severity": resolved,
|
|
135
274
|
"data-variant": variant,
|
|
136
275
|
"aria-label": showLabel ? void 0 : label,
|
|
137
276
|
className: cn(
|
|
@@ -292,5 +431,3 @@ var AlertRuleCard = React__namespace.forwardRef(
|
|
|
292
431
|
AlertRuleCard.displayName = "AlertRuleCard";
|
|
293
432
|
|
|
294
433
|
exports.AlertRuleCard = AlertRuleCard;
|
|
295
|
-
//# sourceMappingURL=alert-rule-card.cjs.map
|
|
296
|
-
//# sourceMappingURL=alert-rule-card.cjs.map
|