@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.
Files changed (300) hide show
  1. package/AGENTS.md +2 -2
  2. package/README.md +1 -1
  3. package/dist/components/brand/parto-logo.cjs +0 -2
  4. package/dist/components/brand/parto-logo.js +0 -2
  5. package/dist/components/charts/PartoAreaChart.cjs +2 -4
  6. package/dist/components/charts/PartoAreaChart.d.cts +1 -1
  7. package/dist/components/charts/PartoAreaChart.d.ts +1 -1
  8. package/dist/components/charts/PartoAreaChart.js +2 -4
  9. package/dist/components/charts/PartoBarChart.cjs +2 -4
  10. package/dist/components/charts/PartoBarChart.d.cts +1 -1
  11. package/dist/components/charts/PartoBarChart.d.ts +1 -1
  12. package/dist/components/charts/PartoBarChart.js +2 -4
  13. package/dist/components/charts/PartoLineChart.cjs +2 -4
  14. package/dist/components/charts/PartoLineChart.d.cts +1 -1
  15. package/dist/components/charts/PartoLineChart.d.ts +1 -1
  16. package/dist/components/charts/PartoLineChart.js +2 -4
  17. package/dist/components/charts/PartoPieChart.cjs +2 -4
  18. package/dist/components/charts/PartoPieChart.d.cts +1 -1
  19. package/dist/components/charts/PartoPieChart.d.ts +1 -1
  20. package/dist/components/charts/PartoPieChart.js +2 -4
  21. package/dist/components/ui/accordion.cjs +0 -2
  22. package/dist/components/ui/accordion.d.cts +4 -5
  23. package/dist/components/ui/accordion.d.ts +4 -5
  24. package/dist/components/ui/accordion.js +0 -2
  25. package/dist/components/ui/alert-dialog.cjs +0 -2
  26. package/dist/components/ui/alert-dialog.d.cts +9 -10
  27. package/dist/components/ui/alert-dialog.d.ts +9 -10
  28. package/dist/components/ui/alert-dialog.js +1 -3
  29. package/dist/components/ui/alert-rule-card.cjs +149 -12
  30. package/dist/components/ui/alert-rule-card.d.cts +2 -2
  31. package/dist/components/ui/alert-rule-card.d.ts +2 -2
  32. package/dist/components/ui/alert-rule-card.js +149 -12
  33. package/dist/components/ui/alert.cjs +3 -5
  34. package/dist/components/ui/alert.js +3 -5
  35. package/dist/components/ui/app-bar.cjs +0 -2
  36. package/dist/components/ui/app-bar.js +0 -2
  37. package/dist/components/ui/avatar.cjs +0 -2
  38. package/dist/components/ui/avatar.d.cts +3 -4
  39. package/dist/components/ui/avatar.d.ts +3 -4
  40. package/dist/components/ui/avatar.js +0 -2
  41. package/dist/components/ui/badge.cjs +0 -2
  42. package/dist/components/ui/badge.d.cts +1 -1
  43. package/dist/components/ui/badge.d.ts +1 -1
  44. package/dist/components/ui/badge.js +0 -2
  45. package/dist/components/ui/breadcrumb.cjs +0 -2
  46. package/dist/components/ui/breadcrumb.d.cts +7 -8
  47. package/dist/components/ui/breadcrumb.d.ts +7 -8
  48. package/dist/components/ui/breadcrumb.js +0 -2
  49. package/dist/components/ui/button.cjs +0 -2
  50. package/dist/components/ui/button.d.cts +2 -2
  51. package/dist/components/ui/button.d.ts +2 -2
  52. package/dist/components/ui/button.js +1 -3
  53. package/dist/components/ui/calendar.cjs +0 -2
  54. package/dist/components/ui/calendar.d.cts +1 -2
  55. package/dist/components/ui/calendar.d.ts +1 -2
  56. package/dist/components/ui/calendar.js +1 -3
  57. package/dist/components/ui/card.cjs +0 -2
  58. package/dist/components/ui/card.js +0 -2
  59. package/dist/components/ui/checkbox.cjs +0 -2
  60. package/dist/components/ui/checkbox.js +0 -2
  61. package/dist/components/ui/concept-card.cjs +179 -61
  62. package/dist/components/ui/concept-card.d.cts +3 -3
  63. package/dist/components/ui/concept-card.d.ts +3 -3
  64. package/dist/components/ui/concept-card.js +179 -61
  65. package/dist/components/ui/data-table.cjs +129 -3
  66. package/dist/components/ui/data-table.d.cts +1 -1
  67. package/dist/components/ui/data-table.d.ts +1 -1
  68. package/dist/components/ui/data-table.js +130 -4
  69. package/dist/components/ui/dialog.cjs +0 -2
  70. package/dist/components/ui/dialog.d.cts +2 -3
  71. package/dist/components/ui/dialog.d.ts +2 -3
  72. package/dist/components/ui/dialog.js +0 -2
  73. package/dist/components/ui/dropdown-menu.cjs +0 -2
  74. package/dist/components/ui/dropdown-menu.d.cts +15 -16
  75. package/dist/components/ui/dropdown-menu.d.ts +15 -16
  76. package/dist/components/ui/dropdown-menu.js +0 -2
  77. package/dist/components/ui/filter-provider.cjs +0 -2
  78. package/dist/components/ui/filter-provider.d.cts +1 -2
  79. package/dist/components/ui/filter-provider.d.ts +1 -2
  80. package/dist/components/ui/filter-provider.js +0 -2
  81. package/dist/components/ui/form.cjs +0 -2
  82. package/dist/components/ui/form.d.cts +7 -8
  83. package/dist/components/ui/form.d.ts +7 -8
  84. package/dist/components/ui/form.js +0 -2
  85. package/dist/components/ui/input.cjs +0 -2
  86. package/dist/components/ui/input.js +0 -2
  87. package/dist/components/ui/iran-province-heat.cjs +1 -3
  88. package/dist/components/ui/iran-province-heat.d.cts +1 -1
  89. package/dist/components/ui/iran-province-heat.d.ts +1 -1
  90. package/dist/components/ui/iran-province-heat.js +1 -3
  91. package/dist/components/ui/label.cjs +0 -2
  92. package/dist/components/ui/label.d.cts +1 -2
  93. package/dist/components/ui/label.d.ts +1 -2
  94. package/dist/components/ui/label.js +0 -2
  95. package/dist/components/ui/page-card.cjs +170 -33
  96. package/dist/components/ui/page-card.d.cts +3 -3
  97. package/dist/components/ui/page-card.d.ts +3 -3
  98. package/dist/components/ui/page-card.js +170 -33
  99. package/dist/components/ui/page-header.cjs +128 -2
  100. package/dist/components/ui/page-header.d.cts +1 -1
  101. package/dist/components/ui/page-header.d.ts +1 -1
  102. package/dist/components/ui/page-header.js +128 -2
  103. package/dist/components/ui/password-input.cjs +0 -2
  104. package/dist/components/ui/password-input.js +0 -2
  105. package/dist/components/ui/popover.cjs +0 -2
  106. package/dist/components/ui/popover.js +0 -2
  107. package/dist/components/ui/progress.cjs +1 -3
  108. package/dist/components/ui/progress.js +1 -3
  109. package/dist/components/ui/radio-card.cjs +0 -2
  110. package/dist/components/ui/radio-card.js +0 -2
  111. package/dist/components/ui/radio-group.cjs +0 -2
  112. package/dist/components/ui/radio-group.js +0 -2
  113. package/dist/components/ui/saved-query-card.cjs +0 -2
  114. package/dist/components/ui/saved-query-card.d.cts +1 -1
  115. package/dist/components/ui/saved-query-card.d.ts +1 -1
  116. package/dist/components/ui/saved-query-card.js +1 -3
  117. package/dist/components/ui/scroll-area.cjs +0 -2
  118. package/dist/components/ui/scroll-area.d.cts +2 -3
  119. package/dist/components/ui/scroll-area.d.ts +2 -3
  120. package/dist/components/ui/scroll-area.js +0 -2
  121. package/dist/components/ui/select.cjs +0 -2
  122. package/dist/components/ui/select.d.cts +1 -2
  123. package/dist/components/ui/select.d.ts +1 -2
  124. package/dist/components/ui/select.js +0 -2
  125. package/dist/components/ui/separator.cjs +0 -2
  126. package/dist/components/ui/separator.js +0 -2
  127. package/dist/components/ui/sheet.cjs +0 -2
  128. package/dist/components/ui/sheet.d.cts +9 -10
  129. package/dist/components/ui/sheet.d.ts +9 -10
  130. package/dist/components/ui/sheet.js +0 -2
  131. package/dist/components/ui/skeleton.cjs +0 -2
  132. package/dist/components/ui/skeleton.d.cts +8 -9
  133. package/dist/components/ui/skeleton.d.ts +8 -9
  134. package/dist/components/ui/skeleton.js +0 -2
  135. package/dist/components/ui/slider.cjs +0 -2
  136. package/dist/components/ui/slider.d.cts +1 -2
  137. package/dist/components/ui/slider.d.ts +1 -2
  138. package/dist/components/ui/slider.js +0 -2
  139. package/dist/components/ui/social-platform-badge.cjs +0 -2
  140. package/dist/components/ui/social-platform-badge.js +1 -3
  141. package/dist/components/ui/sonner.cjs +4 -6
  142. package/dist/components/ui/sonner.d.cts +2 -2
  143. package/dist/components/ui/sonner.d.ts +2 -2
  144. package/dist/components/ui/sonner.js +4 -6
  145. package/dist/components/ui/sparkline.cjs +3 -5
  146. package/dist/components/ui/sparkline.d.cts +1 -1
  147. package/dist/components/ui/sparkline.d.ts +1 -1
  148. package/dist/components/ui/sparkline.js +3 -5
  149. package/dist/components/ui/switch.cjs +0 -2
  150. package/dist/components/ui/switch.d.cts +1 -1
  151. package/dist/components/ui/switch.d.ts +1 -1
  152. package/dist/components/ui/switch.js +0 -2
  153. package/dist/components/ui/table.cjs +0 -2
  154. package/dist/components/ui/table.d.cts +9 -10
  155. package/dist/components/ui/table.d.ts +9 -10
  156. package/dist/components/ui/table.js +0 -2
  157. package/dist/components/ui/tabs.cjs +0 -2
  158. package/dist/components/ui/tabs.js +0 -2
  159. package/dist/components/ui/textarea.cjs +0 -2
  160. package/dist/components/ui/textarea.js +0 -2
  161. package/dist/components/ui/toggle-group.cjs +0 -2
  162. package/dist/components/ui/toggle-group.d.cts +1 -2
  163. package/dist/components/ui/toggle-group.d.ts +1 -2
  164. package/dist/components/ui/toggle-group.js +0 -2
  165. package/dist/components/ui/tooltip.cjs +0 -2
  166. package/dist/components/ui/tooltip.js +0 -2
  167. package/dist/{concept-card-BoJ5gIJD.d.ts → concept-card-BU8JL-gj.d.cts} +5 -5
  168. package/dist/{concept-card-BXra9mr0.d.cts → concept-card-D7PfDkNR.d.ts} +5 -5
  169. package/dist/hooks/use-hotkey-registry.cjs +0 -2
  170. package/dist/hooks/use-hotkey-registry.d.cts +1 -2
  171. package/dist/hooks/use-hotkey-registry.d.ts +1 -2
  172. package/dist/hooks/use-hotkey-registry.js +0 -2
  173. package/dist/hooks/use-hotkeys.cjs +0 -2
  174. package/dist/hooks/use-hotkeys.js +0 -2
  175. package/dist/{i18n-BfRhV5aw.d.cts → i18n-DD3DMY8O.d.cts} +94 -5
  176. package/dist/{i18n-ewyqbKM-.d.ts → i18n-UEClNsBy.d.ts} +94 -5
  177. package/dist/index.cjs +1244 -1173
  178. package/dist/index.css +8010 -5459
  179. package/dist/index.d.cts +213 -992
  180. package/dist/index.d.ts +213 -992
  181. package/dist/index.js +1210 -1153
  182. package/dist/{page-card-C9XXXOVr.d.cts → page-card-DjztZrFM.d.cts} +4 -4
  183. package/dist/{page-card-DAnbez_f.d.ts → page-card-sIE4lvnb.d.ts} +4 -4
  184. package/dist/server-FTUA8opZ.d.cts +829 -0
  185. package/dist/server-m6tiB6DB.d.ts +829 -0
  186. package/dist/server.cjs +1565 -0
  187. package/dist/server.d.cts +8 -0
  188. package/dist/server.d.ts +8 -0
  189. package/dist/server.js +1483 -0
  190. package/dist/theme.css +50 -0
  191. package/dist/{toggle-group-B8r4LOQw.d.cts → toggle-group-Bis6suuR.d.cts} +3 -4
  192. package/dist/{toggle-group-B8r4LOQw.d.ts → toggle-group-Bis6suuR.d.ts} +3 -4
  193. package/dist/{utils-DlXWmDZ-.d.cts → utils-Czyp5Ned.d.cts} +1 -1
  194. package/dist/{utils-DlXWmDZ-.d.ts → utils-Czyp5Ned.d.ts} +1 -1
  195. package/package.json +455 -187
  196. package/tailwind.config.ts +184 -183
  197. package/dist/components/brand/parto-logo.cjs.map +0 -1
  198. package/dist/components/brand/parto-logo.js.map +0 -1
  199. package/dist/components/charts/PartoAreaChart.cjs.map +0 -1
  200. package/dist/components/charts/PartoAreaChart.js.map +0 -1
  201. package/dist/components/charts/PartoBarChart.cjs.map +0 -1
  202. package/dist/components/charts/PartoBarChart.js.map +0 -1
  203. package/dist/components/charts/PartoLineChart.cjs.map +0 -1
  204. package/dist/components/charts/PartoLineChart.js.map +0 -1
  205. package/dist/components/charts/PartoPieChart.cjs.map +0 -1
  206. package/dist/components/charts/PartoPieChart.js.map +0 -1
  207. package/dist/components/ui/accordion.cjs.map +0 -1
  208. package/dist/components/ui/accordion.js.map +0 -1
  209. package/dist/components/ui/alert-dialog.cjs.map +0 -1
  210. package/dist/components/ui/alert-dialog.js.map +0 -1
  211. package/dist/components/ui/alert-rule-card.cjs.map +0 -1
  212. package/dist/components/ui/alert-rule-card.js.map +0 -1
  213. package/dist/components/ui/alert.cjs.map +0 -1
  214. package/dist/components/ui/alert.js.map +0 -1
  215. package/dist/components/ui/app-bar.cjs.map +0 -1
  216. package/dist/components/ui/app-bar.js.map +0 -1
  217. package/dist/components/ui/avatar.cjs.map +0 -1
  218. package/dist/components/ui/avatar.js.map +0 -1
  219. package/dist/components/ui/badge.cjs.map +0 -1
  220. package/dist/components/ui/badge.js.map +0 -1
  221. package/dist/components/ui/breadcrumb.cjs.map +0 -1
  222. package/dist/components/ui/breadcrumb.js.map +0 -1
  223. package/dist/components/ui/button.cjs.map +0 -1
  224. package/dist/components/ui/button.js.map +0 -1
  225. package/dist/components/ui/calendar.cjs.map +0 -1
  226. package/dist/components/ui/calendar.js.map +0 -1
  227. package/dist/components/ui/card.cjs.map +0 -1
  228. package/dist/components/ui/card.js.map +0 -1
  229. package/dist/components/ui/checkbox.cjs.map +0 -1
  230. package/dist/components/ui/checkbox.js.map +0 -1
  231. package/dist/components/ui/concept-card.cjs.map +0 -1
  232. package/dist/components/ui/concept-card.js.map +0 -1
  233. package/dist/components/ui/data-table.cjs.map +0 -1
  234. package/dist/components/ui/data-table.js.map +0 -1
  235. package/dist/components/ui/dialog.cjs.map +0 -1
  236. package/dist/components/ui/dialog.js.map +0 -1
  237. package/dist/components/ui/dropdown-menu.cjs.map +0 -1
  238. package/dist/components/ui/dropdown-menu.js.map +0 -1
  239. package/dist/components/ui/filter-provider.cjs.map +0 -1
  240. package/dist/components/ui/filter-provider.js.map +0 -1
  241. package/dist/components/ui/form.cjs.map +0 -1
  242. package/dist/components/ui/form.js.map +0 -1
  243. package/dist/components/ui/input.cjs.map +0 -1
  244. package/dist/components/ui/input.js.map +0 -1
  245. package/dist/components/ui/iran-province-heat.cjs.map +0 -1
  246. package/dist/components/ui/iran-province-heat.js.map +0 -1
  247. package/dist/components/ui/label.cjs.map +0 -1
  248. package/dist/components/ui/label.js.map +0 -1
  249. package/dist/components/ui/page-card.cjs.map +0 -1
  250. package/dist/components/ui/page-card.js.map +0 -1
  251. package/dist/components/ui/page-header.cjs.map +0 -1
  252. package/dist/components/ui/page-header.js.map +0 -1
  253. package/dist/components/ui/password-input.cjs.map +0 -1
  254. package/dist/components/ui/password-input.js.map +0 -1
  255. package/dist/components/ui/popover.cjs.map +0 -1
  256. package/dist/components/ui/popover.js.map +0 -1
  257. package/dist/components/ui/progress.cjs.map +0 -1
  258. package/dist/components/ui/progress.js.map +0 -1
  259. package/dist/components/ui/radio-card.cjs.map +0 -1
  260. package/dist/components/ui/radio-card.js.map +0 -1
  261. package/dist/components/ui/radio-group.cjs.map +0 -1
  262. package/dist/components/ui/radio-group.js.map +0 -1
  263. package/dist/components/ui/saved-query-card.cjs.map +0 -1
  264. package/dist/components/ui/saved-query-card.js.map +0 -1
  265. package/dist/components/ui/scroll-area.cjs.map +0 -1
  266. package/dist/components/ui/scroll-area.js.map +0 -1
  267. package/dist/components/ui/select.cjs.map +0 -1
  268. package/dist/components/ui/select.js.map +0 -1
  269. package/dist/components/ui/separator.cjs.map +0 -1
  270. package/dist/components/ui/separator.js.map +0 -1
  271. package/dist/components/ui/sheet.cjs.map +0 -1
  272. package/dist/components/ui/sheet.js.map +0 -1
  273. package/dist/components/ui/skeleton.cjs.map +0 -1
  274. package/dist/components/ui/skeleton.js.map +0 -1
  275. package/dist/components/ui/slider.cjs.map +0 -1
  276. package/dist/components/ui/slider.js.map +0 -1
  277. package/dist/components/ui/social-platform-badge.cjs.map +0 -1
  278. package/dist/components/ui/social-platform-badge.js.map +0 -1
  279. package/dist/components/ui/sonner.cjs.map +0 -1
  280. package/dist/components/ui/sonner.js.map +0 -1
  281. package/dist/components/ui/sparkline.cjs.map +0 -1
  282. package/dist/components/ui/sparkline.js.map +0 -1
  283. package/dist/components/ui/switch.cjs.map +0 -1
  284. package/dist/components/ui/switch.js.map +0 -1
  285. package/dist/components/ui/table.cjs.map +0 -1
  286. package/dist/components/ui/table.js.map +0 -1
  287. package/dist/components/ui/tabs.cjs.map +0 -1
  288. package/dist/components/ui/tabs.js.map +0 -1
  289. package/dist/components/ui/textarea.cjs.map +0 -1
  290. package/dist/components/ui/textarea.js.map +0 -1
  291. package/dist/components/ui/toggle-group.cjs.map +0 -1
  292. package/dist/components/ui/toggle-group.js.map +0 -1
  293. package/dist/components/ui/tooltip.cjs.map +0 -1
  294. package/dist/components/ui/tooltip.js.map +0 -1
  295. package/dist/hooks/use-hotkey-registry.cjs.map +0 -1
  296. package/dist/hooks/use-hotkey-registry.js.map +0 -1
  297. package/dist/hooks/use-hotkeys.cjs.map +0 -1
  298. package/dist/hooks/use-hotkeys.js.map +0 -1
  299. package/dist/index.cjs.map +0 -1
  300. package/dist/index.js.map +0 -1
@@ -1,6 +1,6 @@
1
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-ewyqbKM-.js';
2
+ import { S as SupportedLocale } from './utils-Czyp5Ned.cjs';
3
+ import { F as FlowKey, a as StatusKey, S as SeverityKey } from './i18n-DD3DMY8O.cjs';
4
4
 
5
5
  type FlowData = Partial<Record<FlowKey, number>>;
6
6
  interface FlowDistributionProps extends React.HTMLAttributes<HTMLDivElement> {
@@ -45,8 +45,8 @@ declare const SentimentDistribution: React.ForwardRefExoticComponent<SentimentDi
45
45
  * ConceptCard — افکارسنجی-flavored headline tile for clustering dashboards.
46
46
  * Composes: status badge, severity badge, flow composition bar, sentiment
47
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.
48
+ * checkbox. Built for enterprise social-listening dashboards where each
49
+ * "concept" needs to fit in a card grid with rich, comparable signals.
50
50
  */
51
51
  interface ConceptCardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
52
52
  /** Concept name (e.g., "رونمایی گوشی جدید") */
@@ -57,7 +57,7 @@ interface ConceptCardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 't
57
57
  status?: StatusKey;
58
58
  /** Criticality of the concept (urgent/high/medium/low) */
59
59
  severity?: SeverityKey;
60
- /** Flow composition breakdown (5-class political) */
60
+ /** Flow composition breakdown (5-class audience stance) */
61
61
  flow?: FlowData;
62
62
  /** Sentiment composition (3-class) */
63
63
  sentiment?: SentimentData;
@@ -1,6 +1,6 @@
1
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-BfRhV5aw.cjs';
2
+ import { S as SupportedLocale } from './utils-Czyp5Ned.js';
3
+ import { F as FlowKey, a as StatusKey, S as SeverityKey } from './i18n-UEClNsBy.js';
4
4
 
5
5
  type FlowData = Partial<Record<FlowKey, number>>;
6
6
  interface FlowDistributionProps extends React.HTMLAttributes<HTMLDivElement> {
@@ -45,8 +45,8 @@ declare const SentimentDistribution: React.ForwardRefExoticComponent<SentimentDi
45
45
  * ConceptCard — افکارسنجی-flavored headline tile for clustering dashboards.
46
46
  * Composes: status badge, severity badge, flow composition bar, sentiment
47
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.
48
+ * checkbox. Built for enterprise social-listening dashboards where each
49
+ * "concept" needs to fit in a card grid with rich, comparable signals.
50
50
  */
51
51
  interface ConceptCardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
52
52
  /** Concept name (e.g., "رونمایی گوشی جدید") */
@@ -57,7 +57,7 @@ interface ConceptCardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 't
57
57
  status?: StatusKey;
58
58
  /** Criticality of the concept (urgent/high/medium/low) */
59
59
  severity?: SeverityKey;
60
- /** Flow composition breakdown (5-class political) */
60
+ /** Flow composition breakdown (5-class audience stance) */
61
61
  flow?: FlowData;
62
62
  /** Sentiment composition (3-class) */
63
63
  sentiment?: SentimentData;
@@ -204,5 +204,3 @@ function useHotkeyRegistry() {
204
204
  exports.HotkeyProvider = HotkeyProvider;
205
205
  exports.useHotkey = useHotkey;
206
206
  exports.useHotkeyRegistry = useHotkeyRegistry;
207
- //# sourceMappingURL=use-hotkey-registry.cjs.map
208
- //# sourceMappingURL=use-hotkey-registry.cjs.map
@@ -1,4 +1,3 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
1
  import * as React from 'react';
3
2
  import { HotkeyCombo } from './use-hotkeys.cjs';
4
3
 
@@ -32,7 +31,7 @@ interface HotkeyProviderProps {
32
31
  *
33
32
  * Optional. `useHotkeys` (the bare hook) continues to work outside a provider.
34
33
  */
35
- declare function HotkeyProvider({ enabled, children }: HotkeyProviderProps): react_jsx_runtime.JSX.Element;
34
+ declare function HotkeyProvider({ enabled, children }: HotkeyProviderProps): React.JSX.Element;
36
35
  /**
37
36
  * Register a hotkey under the active provider. The combo is added to the
38
37
  * cheatsheet-readable registry; the handler fires when the combo matches
@@ -1,4 +1,3 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
1
  import * as React from 'react';
3
2
  import { HotkeyCombo } from './use-hotkeys.js';
4
3
 
@@ -32,7 +31,7 @@ interface HotkeyProviderProps {
32
31
  *
33
32
  * Optional. `useHotkeys` (the bare hook) continues to work outside a provider.
34
33
  */
35
- declare function HotkeyProvider({ enabled, children }: HotkeyProviderProps): react_jsx_runtime.JSX.Element;
34
+ declare function HotkeyProvider({ enabled, children }: HotkeyProviderProps): React.JSX.Element;
36
35
  /**
37
36
  * Register a hotkey under the active provider. The combo is added to the
38
37
  * cheatsheet-readable registry; the handler fires when the combo matches
@@ -180,5 +180,3 @@ function useHotkeyRegistry() {
180
180
  }
181
181
 
182
182
  export { HotkeyProvider, useHotkey, useHotkeyRegistry };
183
- //# sourceMappingURL=use-hotkey-registry.js.map
184
- //# sourceMappingURL=use-hotkey-registry.js.map
@@ -147,5 +147,3 @@ function formatHotkey(combo) {
147
147
 
148
148
  exports.formatHotkey = formatHotkey;
149
149
  exports.useHotkeys = useHotkeys;
150
- //# sourceMappingURL=use-hotkeys.cjs.map
151
- //# sourceMappingURL=use-hotkeys.cjs.map
@@ -124,5 +124,3 @@ function formatHotkey(combo) {
124
124
  }
125
125
 
126
126
  export { formatHotkey, useHotkeys };
127
- //# sourceMappingURL=use-hotkeys.js.map
128
- //# sourceMappingURL=use-hotkeys.js.map
@@ -1,4 +1,4 @@
1
- import { S as SupportedLocale } from './utils-DlXWmDZ-.cjs';
1
+ import { S as SupportedLocale } from './utils-Czyp5Ned.cjs';
2
2
 
3
3
  type Locale = SupportedLocale;
4
4
  /**
@@ -38,6 +38,30 @@ type EmotionKey = 'anger' | 'anticipation' | 'joy' | 'trust' | 'fear' | 'surpris
38
38
  declare const EMOTION_KEYS: readonly EmotionKey[];
39
39
  /** Emotion label translations used by EmotionBadge / EmotionDistribution. */
40
40
  declare const emotionLabels: Record<SupportedLocale, Record<EmotionKey, string>>;
41
+ /**
42
+ * Numeric emotion codes used by the افکارسنجی API. The code `0` ("All") is a
43
+ * filter sentinel — NOT an emotion — so it is intentionally absent here.
44
+ * Codes start at `1` (Anger) and end at `9` (Neutral).
45
+ */
46
+ declare const EMOTION_VALUE_MAP: Record<number, EmotionKey>;
47
+ /** Reverse of {@link EMOTION_VALUE_MAP}: emotion key → numeric code (1–9). */
48
+ declare const EMOTION_KEY_TO_VALUE: Record<EmotionKey, number>;
49
+ /**
50
+ * Flexible input accepted wherever an emotion is expected. May be:
51
+ * - an {@link EmotionKey} (`'anger'`, `'joy'`, …)
52
+ * - a numeric code `1–9` (or the equivalent numeric string `'4'`)
53
+ * - a localized label (`'شادی'`, `'فرح'`, `'Joy'`)
54
+ *
55
+ * The `(string & {})` member keeps EmotionKey autocomplete while still
56
+ * allowing arbitrary strings.
57
+ */
58
+ type EmotionInput = EmotionKey | number | (string & {});
59
+ /**
60
+ * Resolve a flexible {@link EmotionInput} to a canonical {@link EmotionKey}.
61
+ * Returns `null` for the "All" sentinel (`0`), out-of-range codes, empty
62
+ * strings, and any unrecognised value — so callers can render nothing.
63
+ */
64
+ declare function resolveEmotion(input: EmotionInput | null | undefined): EmotionKey | null;
41
65
  /**
42
66
  * Stance keys — 5-class audience-stance classification used in clustering.
43
67
  * A concept / post / page belongs to exactly one primary stance, but usually
@@ -48,12 +72,77 @@ declare const emotionLabels: Record<SupportedLocale, Record<EmotionKey, string>>
48
72
  type FlowKey = 'pro-gov' | 'internal-critic' | 'internal-opponent' | 'external-opponent' | 'grey';
49
73
  declare const FLOW_KEYS: readonly FlowKey[];
50
74
  declare const flowLabels: Record<SupportedLocale, Record<FlowKey, string>>;
51
- /** Operational status — visual state of a tracked entity. */
52
- type StatusKey = 'critical' | 'warning' | 'normal';
75
+ /**
76
+ * Numeric flow codes used by the clustering/افکارسنجی API. Codes start at `1`
77
+ * (Pro-Government) and end at `5` (Grey).
78
+ */
79
+ declare const FLOW_VALUE_MAP: Record<number, FlowKey>;
80
+ /** Reverse of {@link FLOW_VALUE_MAP}: flow key → numeric code (1–5). */
81
+ declare const FLOW_KEY_TO_VALUE: Record<FlowKey, number>;
82
+ /**
83
+ * Flexible input accepted wherever a flow is expected. May be:
84
+ * - a {@link FlowKey} (`'pro-gov'`, `'grey'`, …)
85
+ * - a numeric code `1–5` (or the equivalent numeric string `'4'`)
86
+ * - a localized label (`'حامیان حکومت'`, `'Pro-Government'`)
87
+ */
88
+ type FlowInput = FlowKey | number | (string & {});
89
+ /**
90
+ * Resolve a flexible {@link FlowInput} to a canonical {@link FlowKey}.
91
+ * Returns `null` for out-of-range codes, empty strings, and any unrecognised
92
+ * value — so callers can render nothing.
93
+ */
94
+ declare function resolveFlow(input: FlowInput | null | undefined): FlowKey | null;
95
+ /**
96
+ * Operational status — visual state of a tracked entity, on a 4-class
97
+ * severity gradient from `critical` (most urgent) down to `low` (least).
98
+ */
99
+ type StatusKey = 'critical' | 'warning' | 'middle' | 'low';
100
+ declare const STATUS_KEYS: readonly StatusKey[];
53
101
  declare const statusLabels: Record<SupportedLocale, Record<StatusKey, string>>;
102
+ /**
103
+ * Numeric status codes used by the افکارسنجی API. Codes start at `1`
104
+ * (Critical) and end at `4` (Low).
105
+ */
106
+ declare const STATUS_VALUE_MAP: Record<number, StatusKey>;
107
+ /** Reverse of {@link STATUS_VALUE_MAP}: status key → numeric code (1–4). */
108
+ declare const STATUS_KEY_TO_VALUE: Record<StatusKey, number>;
109
+ /**
110
+ * Flexible input accepted wherever a status is expected. May be:
111
+ * - a {@link StatusKey} (`'critical'`, `'low'`, …)
112
+ * - a numeric code `1–4` (or the equivalent numeric string `'4'`)
113
+ * - a localized label (`'بحرانی'`, `'Critical'`)
114
+ */
115
+ type StatusInput = StatusKey | number | (string & {});
116
+ /**
117
+ * Resolve a flexible {@link StatusInput} to a canonical {@link StatusKey}.
118
+ * Returns `null` for out-of-range codes, empty strings, and any unrecognised
119
+ * value — so callers can render nothing.
120
+ */
121
+ declare function resolveStatus(input: StatusInput | null | undefined): StatusKey | null;
54
122
  /** Severity — urgency level. Independent from status. */
55
123
  type SeverityKey = 'urgent' | 'high' | 'medium' | 'low';
124
+ declare const SEVERITY_KEYS: readonly SeverityKey[];
56
125
  declare const severityLabels: Record<SupportedLocale, Record<SeverityKey, string>>;
126
+ /**
127
+ * Numeric severity codes used by the افکارسنجی API. Codes start at `1`
128
+ * (Urgent) and end at `4` (Low).
129
+ */
130
+ declare const SEVERITY_VALUE_MAP: Record<number, SeverityKey>;
131
+ /** Reverse of {@link SEVERITY_VALUE_MAP}: severity key → numeric code (1–4). */
132
+ declare const SEVERITY_KEY_TO_VALUE: Record<SeverityKey, number>;
133
+ /**
134
+ * Flexible input accepted wherever a severity is expected. May be:
135
+ * - a {@link SeverityKey} (`'urgent'`, `'low'`, …)
136
+ * - a numeric code `1–4` (or the equivalent numeric string `'4'`)
137
+ * - a localized label (`'فوری'`, `'Urgent'`)
138
+ */
139
+ type SeverityInput = SeverityKey | number | (string & {});
140
+ /**
141
+ * Resolve a flexible {@link SeverityInput} to a canonical {@link SeverityKey}.
142
+ * Returns `null` for out-of-range codes, empty strings, and any unrecognised
143
+ * value — so callers can render nothing.
144
+ */
145
+ declare function resolveSeverity(input: SeverityInput | null | undefined): SeverityKey | null;
57
146
  /**
58
147
  * Job lifecycle — canonical states for async work (analyses, campaigns,
59
148
  * evaluation runs, imports, exports, report generation).
@@ -130,7 +219,7 @@ declare const actionTypeVerbs: Record<SupportedLocale, Record<ActionTypeKey, str
130
219
  * `growing` — improving trajectory but not yet healthy.
131
220
  * `healthy` — stable, all checks pass.
132
221
  *
133
- * Distinct from `StatusKey` (critical/warning/normal — short-lived operational)
222
+ * Distinct from `StatusKey` (critical/warning/middle/low — short-lived operational)
134
223
  * and `SeverityKey` (urgent/high/medium/low — urgency of an action item).
135
224
  */
136
225
  type EntityHealthKey = 'banned' | 'pending' | 'at-risk' | 'warning' | 'growing' | 'healthy';
@@ -343,4 +432,4 @@ type UIStrings = Record<UIStringKeys, string>;
343
432
  */
344
433
  declare function getUIStrings(locale?: SupportedLocale): UIStrings;
345
434
 
346
- export { type ActionStatusKey as A, entityHealthLabels as B, entityHealthPriority as C, isCriticalEntityHealth as D, type EntityHealthKey as E, type FlowKey as F, type UIStringKeys as G, type UIStrings as H, getUIStrings as I, type JobStatusKey as J, type Locale as L, type StageStatusKey as S, UI_STRINGS as U, type ActionTypeKey as a, type EmotionKey as b, type StatusKey as c, type SeverityKey as d, engagementUiTranslations as e, EMOTION_KEYS as f, emotionLabels as g, FLOW_KEYS as h, isRTL as i, flowLabels as j, statusLabels as k, severityLabels as l, JOB_STATUS_KEYS as m, jobStatusLabels as n, isActiveJobStatus as o, ACTION_STATUS_KEYS as p, actionStatusLabels as q, formatRelativeLocaleTime as r, sentimentLabels as s, formatTimeRemaining as t, STAGE_STATUS_KEYS as u, stageStatusLabels as v, ACTION_TYPE_KEYS as w, actionTypeLabels as x, actionTypeVerbs as y, ENTITY_HEALTH_KEYS as z };
435
+ export { sentimentLabels as $, type ActionStatusKey as A, UI_STRINGS as B, actionStatusLabels as C, actionTypeLabels as D, type EntityHealthKey as E, type FlowKey as F, actionTypeVerbs as G, emotionLabels as H, engagementUiTranslations as I, type JobStatusKey as J, entityHealthLabels as K, type Locale as L, entityHealthPriority as M, flowLabels as N, formatRelativeLocaleTime as O, formatTimeRemaining as P, getUIStrings as Q, isActiveJobStatus as R, type SeverityKey as S, isCriticalEntityHealth as T, type UIStringKeys as U, isRTL as V, jobStatusLabels as W, resolveEmotion as X, resolveFlow as Y, resolveSeverity as Z, resolveStatus as _, type StatusKey as a, severityLabels as a0, stageStatusLabels as a1, statusLabels as a2, type ActionTypeKey as b, type EmotionKey as c, type StageStatusKey as d, type EmotionInput as e, type FlowInput as f, type StatusInput as g, type SeverityInput as h, ACTION_STATUS_KEYS as i, ACTION_TYPE_KEYS as j, EMOTION_KEYS as k, EMOTION_KEY_TO_VALUE as l, EMOTION_VALUE_MAP as m, ENTITY_HEALTH_KEYS as n, FLOW_KEYS as o, FLOW_KEY_TO_VALUE as p, FLOW_VALUE_MAP as q, JOB_STATUS_KEYS as r, SEVERITY_KEYS as s, SEVERITY_KEY_TO_VALUE as t, SEVERITY_VALUE_MAP as u, STAGE_STATUS_KEYS as v, STATUS_KEYS as w, STATUS_KEY_TO_VALUE as x, STATUS_VALUE_MAP as y, type UIStrings as z };
@@ -1,4 +1,4 @@
1
- import { S as SupportedLocale } from './utils-DlXWmDZ-.js';
1
+ import { S as SupportedLocale } from './utils-Czyp5Ned.js';
2
2
 
3
3
  type Locale = SupportedLocale;
4
4
  /**
@@ -38,6 +38,30 @@ type EmotionKey = 'anger' | 'anticipation' | 'joy' | 'trust' | 'fear' | 'surpris
38
38
  declare const EMOTION_KEYS: readonly EmotionKey[];
39
39
  /** Emotion label translations used by EmotionBadge / EmotionDistribution. */
40
40
  declare const emotionLabels: Record<SupportedLocale, Record<EmotionKey, string>>;
41
+ /**
42
+ * Numeric emotion codes used by the افکارسنجی API. The code `0` ("All") is a
43
+ * filter sentinel — NOT an emotion — so it is intentionally absent here.
44
+ * Codes start at `1` (Anger) and end at `9` (Neutral).
45
+ */
46
+ declare const EMOTION_VALUE_MAP: Record<number, EmotionKey>;
47
+ /** Reverse of {@link EMOTION_VALUE_MAP}: emotion key → numeric code (1–9). */
48
+ declare const EMOTION_KEY_TO_VALUE: Record<EmotionKey, number>;
49
+ /**
50
+ * Flexible input accepted wherever an emotion is expected. May be:
51
+ * - an {@link EmotionKey} (`'anger'`, `'joy'`, …)
52
+ * - a numeric code `1–9` (or the equivalent numeric string `'4'`)
53
+ * - a localized label (`'شادی'`, `'فرح'`, `'Joy'`)
54
+ *
55
+ * The `(string & {})` member keeps EmotionKey autocomplete while still
56
+ * allowing arbitrary strings.
57
+ */
58
+ type EmotionInput = EmotionKey | number | (string & {});
59
+ /**
60
+ * Resolve a flexible {@link EmotionInput} to a canonical {@link EmotionKey}.
61
+ * Returns `null` for the "All" sentinel (`0`), out-of-range codes, empty
62
+ * strings, and any unrecognised value — so callers can render nothing.
63
+ */
64
+ declare function resolveEmotion(input: EmotionInput | null | undefined): EmotionKey | null;
41
65
  /**
42
66
  * Stance keys — 5-class audience-stance classification used in clustering.
43
67
  * A concept / post / page belongs to exactly one primary stance, but usually
@@ -48,12 +72,77 @@ declare const emotionLabels: Record<SupportedLocale, Record<EmotionKey, string>>
48
72
  type FlowKey = 'pro-gov' | 'internal-critic' | 'internal-opponent' | 'external-opponent' | 'grey';
49
73
  declare const FLOW_KEYS: readonly FlowKey[];
50
74
  declare const flowLabels: Record<SupportedLocale, Record<FlowKey, string>>;
51
- /** Operational status — visual state of a tracked entity. */
52
- type StatusKey = 'critical' | 'warning' | 'normal';
75
+ /**
76
+ * Numeric flow codes used by the clustering/افکارسنجی API. Codes start at `1`
77
+ * (Pro-Government) and end at `5` (Grey).
78
+ */
79
+ declare const FLOW_VALUE_MAP: Record<number, FlowKey>;
80
+ /** Reverse of {@link FLOW_VALUE_MAP}: flow key → numeric code (1–5). */
81
+ declare const FLOW_KEY_TO_VALUE: Record<FlowKey, number>;
82
+ /**
83
+ * Flexible input accepted wherever a flow is expected. May be:
84
+ * - a {@link FlowKey} (`'pro-gov'`, `'grey'`, …)
85
+ * - a numeric code `1–5` (or the equivalent numeric string `'4'`)
86
+ * - a localized label (`'حامیان حکومت'`, `'Pro-Government'`)
87
+ */
88
+ type FlowInput = FlowKey | number | (string & {});
89
+ /**
90
+ * Resolve a flexible {@link FlowInput} to a canonical {@link FlowKey}.
91
+ * Returns `null` for out-of-range codes, empty strings, and any unrecognised
92
+ * value — so callers can render nothing.
93
+ */
94
+ declare function resolveFlow(input: FlowInput | null | undefined): FlowKey | null;
95
+ /**
96
+ * Operational status — visual state of a tracked entity, on a 4-class
97
+ * severity gradient from `critical` (most urgent) down to `low` (least).
98
+ */
99
+ type StatusKey = 'critical' | 'warning' | 'middle' | 'low';
100
+ declare const STATUS_KEYS: readonly StatusKey[];
53
101
  declare const statusLabels: Record<SupportedLocale, Record<StatusKey, string>>;
102
+ /**
103
+ * Numeric status codes used by the افکارسنجی API. Codes start at `1`
104
+ * (Critical) and end at `4` (Low).
105
+ */
106
+ declare const STATUS_VALUE_MAP: Record<number, StatusKey>;
107
+ /** Reverse of {@link STATUS_VALUE_MAP}: status key → numeric code (1–4). */
108
+ declare const STATUS_KEY_TO_VALUE: Record<StatusKey, number>;
109
+ /**
110
+ * Flexible input accepted wherever a status is expected. May be:
111
+ * - a {@link StatusKey} (`'critical'`, `'low'`, …)
112
+ * - a numeric code `1–4` (or the equivalent numeric string `'4'`)
113
+ * - a localized label (`'بحرانی'`, `'Critical'`)
114
+ */
115
+ type StatusInput = StatusKey | number | (string & {});
116
+ /**
117
+ * Resolve a flexible {@link StatusInput} to a canonical {@link StatusKey}.
118
+ * Returns `null` for out-of-range codes, empty strings, and any unrecognised
119
+ * value — so callers can render nothing.
120
+ */
121
+ declare function resolveStatus(input: StatusInput | null | undefined): StatusKey | null;
54
122
  /** Severity — urgency level. Independent from status. */
55
123
  type SeverityKey = 'urgent' | 'high' | 'medium' | 'low';
124
+ declare const SEVERITY_KEYS: readonly SeverityKey[];
56
125
  declare const severityLabels: Record<SupportedLocale, Record<SeverityKey, string>>;
126
+ /**
127
+ * Numeric severity codes used by the افکارسنجی API. Codes start at `1`
128
+ * (Urgent) and end at `4` (Low).
129
+ */
130
+ declare const SEVERITY_VALUE_MAP: Record<number, SeverityKey>;
131
+ /** Reverse of {@link SEVERITY_VALUE_MAP}: severity key → numeric code (1–4). */
132
+ declare const SEVERITY_KEY_TO_VALUE: Record<SeverityKey, number>;
133
+ /**
134
+ * Flexible input accepted wherever a severity is expected. May be:
135
+ * - a {@link SeverityKey} (`'urgent'`, `'low'`, …)
136
+ * - a numeric code `1–4` (or the equivalent numeric string `'4'`)
137
+ * - a localized label (`'فوری'`, `'Urgent'`)
138
+ */
139
+ type SeverityInput = SeverityKey | number | (string & {});
140
+ /**
141
+ * Resolve a flexible {@link SeverityInput} to a canonical {@link SeverityKey}.
142
+ * Returns `null` for out-of-range codes, empty strings, and any unrecognised
143
+ * value — so callers can render nothing.
144
+ */
145
+ declare function resolveSeverity(input: SeverityInput | null | undefined): SeverityKey | null;
57
146
  /**
58
147
  * Job lifecycle — canonical states for async work (analyses, campaigns,
59
148
  * evaluation runs, imports, exports, report generation).
@@ -130,7 +219,7 @@ declare const actionTypeVerbs: Record<SupportedLocale, Record<ActionTypeKey, str
130
219
  * `growing` — improving trajectory but not yet healthy.
131
220
  * `healthy` — stable, all checks pass.
132
221
  *
133
- * Distinct from `StatusKey` (critical/warning/normal — short-lived operational)
222
+ * Distinct from `StatusKey` (critical/warning/middle/low — short-lived operational)
134
223
  * and `SeverityKey` (urgent/high/medium/low — urgency of an action item).
135
224
  */
136
225
  type EntityHealthKey = 'banned' | 'pending' | 'at-risk' | 'warning' | 'growing' | 'healthy';
@@ -343,4 +432,4 @@ type UIStrings = Record<UIStringKeys, string>;
343
432
  */
344
433
  declare function getUIStrings(locale?: SupportedLocale): UIStrings;
345
434
 
346
- export { type ActionStatusKey as A, entityHealthLabels as B, entityHealthPriority as C, isCriticalEntityHealth as D, type EntityHealthKey as E, type FlowKey as F, type UIStringKeys as G, type UIStrings as H, getUIStrings as I, type JobStatusKey as J, type Locale as L, type StageStatusKey as S, UI_STRINGS as U, type ActionTypeKey as a, type EmotionKey as b, type StatusKey as c, type SeverityKey as d, engagementUiTranslations as e, EMOTION_KEYS as f, emotionLabels as g, FLOW_KEYS as h, isRTL as i, flowLabels as j, statusLabels as k, severityLabels as l, JOB_STATUS_KEYS as m, jobStatusLabels as n, isActiveJobStatus as o, ACTION_STATUS_KEYS as p, actionStatusLabels as q, formatRelativeLocaleTime as r, sentimentLabels as s, formatTimeRemaining as t, STAGE_STATUS_KEYS as u, stageStatusLabels as v, ACTION_TYPE_KEYS as w, actionTypeLabels as x, actionTypeVerbs as y, ENTITY_HEALTH_KEYS as z };
435
+ export { sentimentLabels as $, type ActionStatusKey as A, UI_STRINGS as B, actionStatusLabels as C, actionTypeLabels as D, type EntityHealthKey as E, type FlowKey as F, actionTypeVerbs as G, emotionLabels as H, engagementUiTranslations as I, type JobStatusKey as J, entityHealthLabels as K, type Locale as L, entityHealthPriority as M, flowLabels as N, formatRelativeLocaleTime as O, formatTimeRemaining as P, getUIStrings as Q, isActiveJobStatus as R, type SeverityKey as S, isCriticalEntityHealth as T, type UIStringKeys as U, isRTL as V, jobStatusLabels as W, resolveEmotion as X, resolveFlow as Y, resolveSeverity as Z, resolveStatus as _, type StatusKey as a, severityLabels as a0, stageStatusLabels as a1, statusLabels as a2, type ActionTypeKey as b, type EmotionKey as c, type StageStatusKey as d, type EmotionInput as e, type FlowInput as f, type StatusInput as g, type SeverityInput as h, ACTION_STATUS_KEYS as i, ACTION_TYPE_KEYS as j, EMOTION_KEYS as k, EMOTION_KEY_TO_VALUE as l, EMOTION_VALUE_MAP as m, ENTITY_HEALTH_KEYS as n, FLOW_KEYS as o, FLOW_KEY_TO_VALUE as p, FLOW_VALUE_MAP as q, JOB_STATUS_KEYS as r, SEVERITY_KEYS as s, SEVERITY_KEY_TO_VALUE as t, SEVERITY_VALUE_MAP as u, STAGE_STATUS_KEYS as v, STATUS_KEYS as w, STATUS_KEY_TO_VALUE as x, STATUS_VALUE_MAP as y, type UIStrings as z };