@parto-system-design/ui 1.1.5 → 1.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (301) hide show
  1. package/AGENTS.md +233 -0
  2. package/LICENSE +21 -0
  3. package/README.md +96 -43
  4. package/dist/chunk-2UD3LGVX.cjs +316 -0
  5. package/dist/chunk-2UD3LGVX.cjs.map +1 -0
  6. package/dist/chunk-34JUCX2G.cjs +43 -0
  7. package/dist/chunk-34JUCX2G.cjs.map +1 -0
  8. package/dist/chunk-3AIJKXBV.cjs +242 -0
  9. package/dist/chunk-3AIJKXBV.cjs.map +1 -0
  10. package/dist/chunk-4SVQNEVH.js +173 -0
  11. package/dist/chunk-4SVQNEVH.js.map +1 -0
  12. package/dist/chunk-53QY4PD3.js +908 -0
  13. package/dist/chunk-53QY4PD3.js.map +1 -0
  14. package/dist/chunk-5JJSRGJD.js +31 -0
  15. package/dist/chunk-5JJSRGJD.js.map +1 -0
  16. package/dist/chunk-5K6E4ZSW.cjs +77 -0
  17. package/dist/chunk-5K6E4ZSW.cjs.map +1 -0
  18. package/dist/chunk-5NY26ULO.js +89 -0
  19. package/dist/chunk-5NY26ULO.js.map +1 -0
  20. package/dist/chunk-7RVPG3LE.cjs +231 -0
  21. package/dist/chunk-7RVPG3LE.cjs.map +1 -0
  22. package/dist/chunk-7Y4V3R3Y.cjs +120 -0
  23. package/dist/chunk-7Y4V3R3Y.cjs.map +1 -0
  24. package/dist/chunk-AXAY64KL.js +39 -0
  25. package/dist/chunk-AXAY64KL.js.map +1 -0
  26. package/dist/chunk-AYEK3WOM.js +207 -0
  27. package/dist/chunk-AYEK3WOM.js.map +1 -0
  28. package/dist/chunk-BRMBLIQG.js +53 -0
  29. package/dist/chunk-BRMBLIQG.js.map +1 -0
  30. package/dist/chunk-CAJKSTXX.cjs +54 -0
  31. package/dist/chunk-CAJKSTXX.cjs.map +1 -0
  32. package/dist/chunk-CKFWMHQU.js +401 -0
  33. package/dist/chunk-CKFWMHQU.js.map +1 -0
  34. package/dist/chunk-CV3N3HVK.js +672 -0
  35. package/dist/chunk-CV3N3HVK.js.map +1 -0
  36. package/dist/chunk-D2EBLE2B.cjs +220 -0
  37. package/dist/chunk-D2EBLE2B.cjs.map +1 -0
  38. package/dist/chunk-D5XCQDFS.js +92 -0
  39. package/dist/chunk-D5XCQDFS.js.map +1 -0
  40. package/dist/chunk-GDHRYKVM.js +45 -0
  41. package/dist/chunk-GDHRYKVM.js.map +1 -0
  42. package/dist/chunk-GKRAZGDI.cjs +84 -0
  43. package/dist/chunk-GKRAZGDI.cjs.map +1 -0
  44. package/dist/chunk-HEYMLQOV.cjs +94 -0
  45. package/dist/chunk-HEYMLQOV.cjs.map +1 -0
  46. package/dist/chunk-HF6XU5NI.js +84 -0
  47. package/dist/chunk-HF6XU5NI.js.map +1 -0
  48. package/dist/chunk-HJPDZOMJ.cjs +87 -0
  49. package/dist/chunk-HJPDZOMJ.cjs.map +1 -0
  50. package/dist/chunk-HUCC3QH5.cjs +53 -0
  51. package/dist/chunk-HUCC3QH5.cjs.map +1 -0
  52. package/dist/chunk-HYZ6BQPS.cjs +425 -0
  53. package/dist/chunk-HYZ6BQPS.cjs.map +1 -0
  54. package/dist/chunk-IQHKJ4SS.js +213 -0
  55. package/dist/chunk-IQHKJ4SS.js.map +1 -0
  56. package/dist/chunk-ISCSZMYW.cjs +106 -0
  57. package/dist/chunk-ISCSZMYW.cjs.map +1 -0
  58. package/dist/chunk-IXFEFIDO.js +82 -0
  59. package/dist/chunk-IXFEFIDO.js.map +1 -0
  60. package/dist/chunk-JUBHQAA2.js +53 -0
  61. package/dist/chunk-JUBHQAA2.js.map +1 -0
  62. package/dist/chunk-KCWRCSI7.js +62 -0
  63. package/dist/chunk-KCWRCSI7.js.map +1 -0
  64. package/dist/chunk-L2L5CKC2.js +291 -0
  65. package/dist/chunk-L2L5CKC2.js.map +1 -0
  66. package/dist/chunk-LLJR7FV3.js +135 -0
  67. package/dist/chunk-LLJR7FV3.js.map +1 -0
  68. package/dist/chunk-LZMCMZZF.js +118 -0
  69. package/dist/chunk-LZMCMZZF.js.map +1 -0
  70. package/dist/chunk-M5CHZ5BA.js +124 -0
  71. package/dist/chunk-M5CHZ5BA.js.map +1 -0
  72. package/dist/chunk-MBCTRNTG.js +89 -0
  73. package/dist/chunk-MBCTRNTG.js.map +1 -0
  74. package/dist/chunk-MEK4RSGC.js +65 -0
  75. package/dist/chunk-MEK4RSGC.js.map +1 -0
  76. package/dist/chunk-MFTX2DDQ.js +27 -0
  77. package/dist/chunk-MFTX2DDQ.js.map +1 -0
  78. package/dist/chunk-MKYVQQBV.cjs +114 -0
  79. package/dist/chunk-MKYVQQBV.cjs.map +1 -0
  80. package/dist/chunk-MQGQVI3W.cjs +950 -0
  81. package/dist/chunk-MQGQVI3W.cjs.map +1 -0
  82. package/dist/chunk-NEFZJHE4.cjs +157 -0
  83. package/dist/chunk-NEFZJHE4.cjs.map +1 -0
  84. package/dist/chunk-NEML6RCV.js +405 -0
  85. package/dist/chunk-NEML6RCV.js.map +1 -0
  86. package/dist/chunk-NV4JOKWL.cjs +197 -0
  87. package/dist/chunk-NV4JOKWL.cjs.map +1 -0
  88. package/dist/chunk-O2JG7WY5.cjs +121 -0
  89. package/dist/chunk-O2JG7WY5.cjs.map +1 -0
  90. package/dist/chunk-OEVMKFFL.cjs +140 -0
  91. package/dist/chunk-OEVMKFFL.cjs.map +1 -0
  92. package/dist/chunk-ONO2FTV4.cjs +68 -0
  93. package/dist/chunk-ONO2FTV4.cjs.map +1 -0
  94. package/dist/chunk-OS6CMYAS.cjs +79 -0
  95. package/dist/chunk-OS6CMYAS.cjs.map +1 -0
  96. package/dist/chunk-P5XHPNJG.cjs +430 -0
  97. package/dist/chunk-P5XHPNJG.cjs.map +1 -0
  98. package/dist/chunk-QJ7UB2ZQ.js +98 -0
  99. package/dist/chunk-QJ7UB2ZQ.js.map +1 -0
  100. package/dist/chunk-RA5KZNG5.js +269 -0
  101. package/dist/chunk-RA5KZNG5.js.map +1 -0
  102. package/dist/chunk-RJ3HYZ7S.js +44 -0
  103. package/dist/chunk-RJ3HYZ7S.js.map +1 -0
  104. package/dist/chunk-RZNRIOLT.js +128 -0
  105. package/dist/chunk-RZNRIOLT.js.map +1 -0
  106. package/dist/chunk-S5IPJQZ3.cjs +161 -0
  107. package/dist/chunk-S5IPJQZ3.cjs.map +1 -0
  108. package/dist/chunk-SB5DSYR5.js +211 -0
  109. package/dist/chunk-SB5DSYR5.js.map +1 -0
  110. package/dist/chunk-SCGW2BH4.cjs +69 -0
  111. package/dist/chunk-SCGW2BH4.cjs.map +1 -0
  112. package/dist/chunk-SCX6AR53.cjs +108 -0
  113. package/dist/chunk-SCX6AR53.cjs.map +1 -0
  114. package/dist/chunk-SFXV2DUH.js +106 -0
  115. package/dist/chunk-SFXV2DUH.js.map +1 -0
  116. package/dist/chunk-SXEPGD4Z.cjs +152 -0
  117. package/dist/chunk-SXEPGD4Z.cjs.map +1 -0
  118. package/dist/chunk-SZMVOHT7.cjs +107 -0
  119. package/dist/chunk-SZMVOHT7.cjs.map +1 -0
  120. package/dist/chunk-U5FLLCGC.cjs +151 -0
  121. package/dist/chunk-U5FLLCGC.cjs.map +1 -0
  122. package/dist/chunk-VO3B75F6.cjs +111 -0
  123. package/dist/chunk-VO3B75F6.cjs.map +1 -0
  124. package/dist/chunk-YAJWTNOX.js +106 -0
  125. package/dist/chunk-YAJWTNOX.js.map +1 -0
  126. package/dist/chunk-YC5KLN6I.js +139 -0
  127. package/dist/chunk-YC5KLN6I.js.map +1 -0
  128. package/dist/chunk-YE477L2H.cjs +272 -0
  129. package/dist/chunk-YE477L2H.cjs.map +1 -0
  130. package/dist/chunk-Z2TY4A75.cjs +700 -0
  131. package/dist/chunk-Z2TY4A75.cjs.map +1 -0
  132. package/dist/chunk-Z56O7UEU.cjs +136 -0
  133. package/dist/chunk-Z56O7UEU.cjs.map +1 -0
  134. package/dist/chunk-ZZFNJR2E.js +71 -0
  135. package/dist/chunk-ZZFNJR2E.js.map +1 -0
  136. package/dist/components/charts/PartoAreaChart.cjs +15 -0
  137. package/dist/components/charts/PartoAreaChart.cjs.map +1 -0
  138. package/dist/components/charts/PartoAreaChart.d.cts +51 -0
  139. package/dist/components/charts/PartoAreaChart.d.ts +51 -0
  140. package/dist/components/charts/PartoAreaChart.js +6 -0
  141. package/dist/components/charts/PartoAreaChart.js.map +1 -0
  142. package/dist/components/charts/PartoBarChart.cjs +15 -0
  143. package/dist/components/charts/PartoBarChart.cjs.map +1 -0
  144. package/dist/components/charts/PartoBarChart.d.cts +55 -0
  145. package/dist/components/charts/PartoBarChart.d.ts +55 -0
  146. package/dist/components/charts/PartoBarChart.js +6 -0
  147. package/dist/components/charts/PartoBarChart.js.map +1 -0
  148. package/dist/components/charts/PartoLineChart.cjs +15 -0
  149. package/dist/components/charts/PartoLineChart.cjs.map +1 -0
  150. package/dist/components/charts/PartoLineChart.d.cts +49 -0
  151. package/dist/components/charts/PartoLineChart.d.ts +49 -0
  152. package/dist/components/charts/PartoLineChart.js +6 -0
  153. package/dist/components/charts/PartoLineChart.js.map +1 -0
  154. package/dist/components/charts/PartoPieChart.cjs +15 -0
  155. package/dist/components/charts/PartoPieChart.cjs.map +1 -0
  156. package/dist/components/charts/PartoPieChart.d.cts +44 -0
  157. package/dist/components/charts/PartoPieChart.d.ts +44 -0
  158. package/dist/components/charts/PartoPieChart.js +6 -0
  159. package/dist/components/charts/PartoPieChart.js.map +1 -0
  160. package/dist/components/ui/alert-rule-card.cjs +15 -0
  161. package/dist/components/ui/alert-rule-card.cjs.map +1 -0
  162. package/dist/components/ui/alert-rule-card.d.cts +38 -0
  163. package/dist/components/ui/alert-rule-card.d.ts +38 -0
  164. package/dist/components/ui/alert-rule-card.js +6 -0
  165. package/dist/components/ui/alert-rule-card.js.map +1 -0
  166. package/dist/components/ui/avatar.cjs +21 -0
  167. package/dist/components/ui/avatar.cjs.map +1 -0
  168. package/dist/components/ui/avatar.d.cts +18 -0
  169. package/dist/components/ui/avatar.d.ts +18 -0
  170. package/dist/components/ui/avatar.js +4 -0
  171. package/dist/components/ui/avatar.js.map +1 -0
  172. package/dist/components/ui/badge.cjs +17 -0
  173. package/dist/components/ui/badge.cjs.map +1 -0
  174. package/dist/components/ui/badge.d.cts +16 -0
  175. package/dist/components/ui/badge.d.ts +16 -0
  176. package/dist/components/ui/badge.js +4 -0
  177. package/dist/components/ui/badge.js.map +1 -0
  178. package/dist/components/ui/button.cjs +18 -0
  179. package/dist/components/ui/button.cjs.map +1 -0
  180. package/dist/components/ui/button.d.cts +37 -0
  181. package/dist/components/ui/button.d.ts +37 -0
  182. package/dist/components/ui/button.js +5 -0
  183. package/dist/components/ui/button.js.map +1 -0
  184. package/dist/components/ui/calendar.cjs +15 -0
  185. package/dist/components/ui/calendar.cjs.map +1 -0
  186. package/dist/components/ui/calendar.d.cts +17 -0
  187. package/dist/components/ui/calendar.d.ts +17 -0
  188. package/dist/components/ui/calendar.js +6 -0
  189. package/dist/components/ui/calendar.js.map +1 -0
  190. package/dist/components/ui/card.cjs +37 -0
  191. package/dist/components/ui/card.cjs.map +1 -0
  192. package/dist/components/ui/card.d.cts +18 -0
  193. package/dist/components/ui/card.d.ts +18 -0
  194. package/dist/components/ui/card.js +4 -0
  195. package/dist/components/ui/card.js.map +1 -0
  196. package/dist/components/ui/concept-card.cjs +18 -0
  197. package/dist/components/ui/concept-card.cjs.map +1 -0
  198. package/dist/components/ui/concept-card.d.cts +5 -0
  199. package/dist/components/ui/concept-card.d.ts +5 -0
  200. package/dist/components/ui/concept-card.js +9 -0
  201. package/dist/components/ui/concept-card.js.map +1 -0
  202. package/dist/components/ui/data-table.cjs +18 -0
  203. package/dist/components/ui/data-table.cjs.map +1 -0
  204. package/dist/components/ui/data-table.d.cts +181 -0
  205. package/dist/components/ui/data-table.d.ts +181 -0
  206. package/dist/components/ui/data-table.js +9 -0
  207. package/dist/components/ui/data-table.js.map +1 -0
  208. package/dist/components/ui/dialog.cjs +49 -0
  209. package/dist/components/ui/dialog.cjs.map +1 -0
  210. package/dist/components/ui/dialog.d.cts +22 -0
  211. package/dist/components/ui/dialog.d.ts +22 -0
  212. package/dist/components/ui/dialog.js +4 -0
  213. package/dist/components/ui/dialog.js.map +1 -0
  214. package/dist/components/ui/filter-provider.cjs +20 -0
  215. package/dist/components/ui/filter-provider.cjs.map +1 -0
  216. package/dist/components/ui/filter-provider.d.cts +49 -0
  217. package/dist/components/ui/filter-provider.d.ts +49 -0
  218. package/dist/components/ui/filter-provider.js +3 -0
  219. package/dist/components/ui/filter-provider.js.map +1 -0
  220. package/dist/components/ui/input.cjs +22 -0
  221. package/dist/components/ui/input.cjs.map +1 -0
  222. package/dist/components/ui/input.d.cts +16 -0
  223. package/dist/components/ui/input.d.ts +16 -0
  224. package/dist/components/ui/input.js +5 -0
  225. package/dist/components/ui/input.js.map +1 -0
  226. package/dist/components/ui/iran-province-heat.cjs +13 -0
  227. package/dist/components/ui/iran-province-heat.cjs.map +1 -0
  228. package/dist/components/ui/iran-province-heat.d.cts +64 -0
  229. package/dist/components/ui/iran-province-heat.d.ts +64 -0
  230. package/dist/components/ui/iran-province-heat.js +4 -0
  231. package/dist/components/ui/iran-province-heat.js.map +1 -0
  232. package/dist/components/ui/page-card.cjs +16 -0
  233. package/dist/components/ui/page-card.cjs.map +1 -0
  234. package/dist/components/ui/page-card.d.cts +6 -0
  235. package/dist/components/ui/page-card.d.ts +6 -0
  236. package/dist/components/ui/page-card.js +7 -0
  237. package/dist/components/ui/page-card.js.map +1 -0
  238. package/dist/components/ui/popover.cjs +25 -0
  239. package/dist/components/ui/popover.cjs.map +1 -0
  240. package/dist/components/ui/popover.d.cts +9 -0
  241. package/dist/components/ui/popover.d.ts +9 -0
  242. package/dist/components/ui/popover.js +4 -0
  243. package/dist/components/ui/popover.js.map +1 -0
  244. package/dist/components/ui/saved-query-card.cjs +15 -0
  245. package/dist/components/ui/saved-query-card.cjs.map +1 -0
  246. package/dist/components/ui/saved-query-card.d.cts +41 -0
  247. package/dist/components/ui/saved-query-card.d.ts +41 -0
  248. package/dist/components/ui/saved-query-card.js +6 -0
  249. package/dist/components/ui/saved-query-card.js.map +1 -0
  250. package/dist/components/ui/separator.cjs +13 -0
  251. package/dist/components/ui/separator.cjs.map +1 -0
  252. package/dist/components/ui/separator.d.cts +9 -0
  253. package/dist/components/ui/separator.d.ts +9 -0
  254. package/dist/components/ui/separator.js +4 -0
  255. package/dist/components/ui/separator.js.map +1 -0
  256. package/dist/components/ui/sheet.cjs +45 -0
  257. package/dist/components/ui/sheet.cjs.map +1 -0
  258. package/dist/components/ui/sheet.d.cts +44 -0
  259. package/dist/components/ui/sheet.d.ts +44 -0
  260. package/dist/components/ui/sheet.js +4 -0
  261. package/dist/components/ui/sheet.js.map +1 -0
  262. package/dist/components/ui/sparkline.cjs +13 -0
  263. package/dist/components/ui/sparkline.cjs.map +1 -0
  264. package/dist/components/ui/sparkline.d.cts +36 -0
  265. package/dist/components/ui/sparkline.d.ts +36 -0
  266. package/dist/components/ui/sparkline.js +4 -0
  267. package/dist/components/ui/sparkline.js.map +1 -0
  268. package/dist/components/ui/tooltip.cjs +25 -0
  269. package/dist/components/ui/tooltip.cjs.map +1 -0
  270. package/dist/components/ui/tooltip.d.cts +17 -0
  271. package/dist/components/ui/tooltip.d.ts +17 -0
  272. package/dist/components/ui/tooltip.js +4 -0
  273. package/dist/components/ui/tooltip.js.map +1 -0
  274. package/dist/concept-card-CcOBb2Nz.d.ts +83 -0
  275. package/dist/concept-card-RwPbqJ06.d.cts +83 -0
  276. package/dist/hooks/use-hotkey-registry.cjs +21 -0
  277. package/dist/hooks/use-hotkey-registry.cjs.map +1 -0
  278. package/dist/hooks/use-hotkey-registry.d.cts +65 -0
  279. package/dist/hooks/use-hotkey-registry.d.ts +65 -0
  280. package/dist/hooks/use-hotkey-registry.js +4 -0
  281. package/dist/hooks/use-hotkey-registry.js.map +1 -0
  282. package/dist/hooks/use-hotkeys.cjs +16 -0
  283. package/dist/hooks/use-hotkeys.cjs.map +1 -0
  284. package/dist/hooks/use-hotkeys.d.cts +66 -0
  285. package/dist/hooks/use-hotkeys.d.ts +66 -0
  286. package/dist/hooks/use-hotkeys.js +3 -0
  287. package/dist/hooks/use-hotkeys.js.map +1 -0
  288. package/dist/i18n-ArS3mqj0.d.ts +344 -0
  289. package/dist/i18n-CAd9wGOr.d.cts +344 -0
  290. package/dist/index.cjs +7383 -10955
  291. package/dist/index.cjs.map +1 -1
  292. package/dist/index.css +157 -0
  293. package/dist/index.d.cts +726 -1144
  294. package/dist/index.d.ts +726 -1144
  295. package/dist/index.js +6735 -10912
  296. package/dist/index.js.map +1 -1
  297. package/dist/page-card-CO92oXkc.d.ts +100 -0
  298. package/dist/page-card-DOl50DqJ.d.cts +100 -0
  299. package/dist/utils-DlXWmDZ-.d.cts +35 -0
  300. package/dist/utils-DlXWmDZ-.d.ts +35 -0
  301. package/package.json +160 -4
@@ -0,0 +1,6 @@
1
+ export { SavedQueryCard } from '../../chunk-MBCTRNTG.js';
2
+ import '../../chunk-RA5KZNG5.js';
3
+ import '../../chunk-AXAY64KL.js';
4
+ import '../../chunk-4SVQNEVH.js';
5
+ //# sourceMappingURL=saved-query-card.js.map
6
+ //# sourceMappingURL=saved-query-card.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"saved-query-card.js"}
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ var chunkSZMVOHT7_cjs = require('../../chunk-SZMVOHT7.cjs');
4
+ require('../../chunk-NV4JOKWL.cjs');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "Separator", {
9
+ enumerable: true,
10
+ get: function () { return chunkSZMVOHT7_cjs.Separator; }
11
+ });
12
+ //# sourceMappingURL=separator.cjs.map
13
+ //# sourceMappingURL=separator.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"separator.cjs"}
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ import * as SeparatorPrimitive from '@radix-ui/react-separator';
3
+
4
+ interface SeparatorProps extends React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root> {
5
+ children?: React.ReactNode;
6
+ }
7
+ declare const Separator: React.ForwardRefExoticComponent<SeparatorProps & React.RefAttributes<HTMLDivElement>>;
8
+
9
+ export { Separator };
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ import * as SeparatorPrimitive from '@radix-ui/react-separator';
3
+
4
+ interface SeparatorProps extends React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root> {
5
+ children?: React.ReactNode;
6
+ }
7
+ declare const Separator: React.ForwardRefExoticComponent<SeparatorProps & React.RefAttributes<HTMLDivElement>>;
8
+
9
+ export { Separator };
@@ -0,0 +1,4 @@
1
+ export { Separator } from '../../chunk-HF6XU5NI.js';
2
+ import '../../chunk-4SVQNEVH.js';
3
+ //# sourceMappingURL=separator.js.map
4
+ //# sourceMappingURL=separator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"separator.js"}
@@ -0,0 +1,45 @@
1
+ 'use strict';
2
+
3
+ var chunkZ56O7UEU_cjs = require('../../chunk-Z56O7UEU.cjs');
4
+ require('../../chunk-NV4JOKWL.cjs');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "Sheet", {
9
+ enumerable: true,
10
+ get: function () { return chunkZ56O7UEU_cjs.Sheet; }
11
+ });
12
+ Object.defineProperty(exports, "SheetBody", {
13
+ enumerable: true,
14
+ get: function () { return chunkZ56O7UEU_cjs.SheetBody; }
15
+ });
16
+ Object.defineProperty(exports, "SheetClose", {
17
+ enumerable: true,
18
+ get: function () { return chunkZ56O7UEU_cjs.SheetClose; }
19
+ });
20
+ Object.defineProperty(exports, "SheetContent", {
21
+ enumerable: true,
22
+ get: function () { return chunkZ56O7UEU_cjs.SheetContent; }
23
+ });
24
+ Object.defineProperty(exports, "SheetDescription", {
25
+ enumerable: true,
26
+ get: function () { return chunkZ56O7UEU_cjs.SheetDescription; }
27
+ });
28
+ Object.defineProperty(exports, "SheetFooter", {
29
+ enumerable: true,
30
+ get: function () { return chunkZ56O7UEU_cjs.SheetFooter; }
31
+ });
32
+ Object.defineProperty(exports, "SheetHeader", {
33
+ enumerable: true,
34
+ get: function () { return chunkZ56O7UEU_cjs.SheetHeader; }
35
+ });
36
+ Object.defineProperty(exports, "SheetTitle", {
37
+ enumerable: true,
38
+ get: function () { return chunkZ56O7UEU_cjs.SheetTitle; }
39
+ });
40
+ Object.defineProperty(exports, "SheetTrigger", {
41
+ enumerable: true,
42
+ get: function () { return chunkZ56O7UEU_cjs.SheetTrigger; }
43
+ });
44
+ //# sourceMappingURL=sheet.cjs.map
45
+ //# sourceMappingURL=sheet.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"sheet.cjs"}
@@ -0,0 +1,44 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+ import * as DialogPrimitive from '@radix-ui/react-dialog';
4
+
5
+ declare function Sheet({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): react_jsx_runtime.JSX.Element;
6
+ declare namespace Sheet {
7
+ var displayName: string;
8
+ }
9
+ declare function SheetTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
10
+ declare namespace SheetTrigger {
11
+ var displayName: string;
12
+ }
13
+ declare function SheetClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): react_jsx_runtime.JSX.Element;
14
+ declare namespace SheetClose {
15
+ var displayName: string;
16
+ }
17
+ declare function SheetContent({ className, children, side, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
18
+ side?: 'top' | 'right' | 'bottom' | 'left';
19
+ }): react_jsx_runtime.JSX.Element;
20
+ declare namespace SheetContent {
21
+ var displayName: string;
22
+ }
23
+ declare function SheetHeader({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
24
+ declare namespace SheetHeader {
25
+ var displayName: string;
26
+ }
27
+ declare function SheetBody({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
28
+ declare namespace SheetBody {
29
+ var displayName: string;
30
+ }
31
+ declare function SheetFooter({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
32
+ declare namespace SheetFooter {
33
+ var displayName: string;
34
+ }
35
+ declare function SheetTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
36
+ declare namespace SheetTitle {
37
+ var displayName: string;
38
+ }
39
+ declare function SheetDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): react_jsx_runtime.JSX.Element;
40
+ declare namespace SheetDescription {
41
+ var displayName: string;
42
+ }
43
+
44
+ export { Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger };
@@ -0,0 +1,44 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+ import * as DialogPrimitive from '@radix-ui/react-dialog';
4
+
5
+ declare function Sheet({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): react_jsx_runtime.JSX.Element;
6
+ declare namespace Sheet {
7
+ var displayName: string;
8
+ }
9
+ declare function SheetTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
10
+ declare namespace SheetTrigger {
11
+ var displayName: string;
12
+ }
13
+ declare function SheetClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): react_jsx_runtime.JSX.Element;
14
+ declare namespace SheetClose {
15
+ var displayName: string;
16
+ }
17
+ declare function SheetContent({ className, children, side, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
18
+ side?: 'top' | 'right' | 'bottom' | 'left';
19
+ }): react_jsx_runtime.JSX.Element;
20
+ declare namespace SheetContent {
21
+ var displayName: string;
22
+ }
23
+ declare function SheetHeader({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
24
+ declare namespace SheetHeader {
25
+ var displayName: string;
26
+ }
27
+ declare function SheetBody({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
28
+ declare namespace SheetBody {
29
+ var displayName: string;
30
+ }
31
+ declare function SheetFooter({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
32
+ declare namespace SheetFooter {
33
+ var displayName: string;
34
+ }
35
+ declare function SheetTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
36
+ declare namespace SheetTitle {
37
+ var displayName: string;
38
+ }
39
+ declare function SheetDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): react_jsx_runtime.JSX.Element;
40
+ declare namespace SheetDescription {
41
+ var displayName: string;
42
+ }
43
+
44
+ export { Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger };
@@ -0,0 +1,4 @@
1
+ export { Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger } from '../../chunk-SFXV2DUH.js';
2
+ import '../../chunk-4SVQNEVH.js';
3
+ //# sourceMappingURL=sheet.js.map
4
+ //# sourceMappingURL=sheet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"sheet.js"}
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ var chunkS5IPJQZ3_cjs = require('../../chunk-S5IPJQZ3.cjs');
4
+ require('../../chunk-NV4JOKWL.cjs');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "Sparkline", {
9
+ enumerable: true,
10
+ get: function () { return chunkS5IPJQZ3_cjs.Sparkline; }
11
+ });
12
+ //# sourceMappingURL=sparkline.cjs.map
13
+ //# sourceMappingURL=sparkline.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"sparkline.cjs"}
@@ -0,0 +1,36 @@
1
+ import * as React from 'react';
2
+
3
+ type SparklineTrend = 'up' | 'down' | 'neutral' | 'auto';
4
+ type SparklineVariant = 'line' | 'area' | 'bars';
5
+ interface SparklineProps extends React.HTMLAttributes<HTMLDivElement> {
6
+ /** Array of numeric data points. Must have at least 2 items to render line/area. */
7
+ data: number[];
8
+ /** Visual style @default "line" */
9
+ variant?: SparklineVariant;
10
+ /**
11
+ * Trend colour. `"auto"` compares first and last point:
12
+ * last > first → up, last < first → down, equal → neutral.
13
+ * Pass an explicit value to override.
14
+ * @default "auto"
15
+ */
16
+ trend?: SparklineTrend;
17
+ /** Width in px. Also used as SVG viewBox width — output scales to parent when CSS overrides. @default 80 */
18
+ width?: number;
19
+ /** Height in px @default 24 */
20
+ height?: number;
21
+ /** Line / bar stroke width @default 1.5 */
22
+ strokeWidth?: number;
23
+ /** Show a filled dot at the last point */
24
+ showEndDot?: boolean;
25
+ /** Padding inside the viewBox so strokes/dots are not clipped @default 2 */
26
+ padding?: number;
27
+ /** Override color with any CSS value (e.g. `"hsl(var(--brand))"`). Takes precedence over `trend`. */
28
+ color?: string;
29
+ /** For bars variant — gap between bars in user units @default 1 */
30
+ barGap?: number;
31
+ /** aria-label for screen readers — describe the trend / metric */
32
+ 'aria-label'?: string;
33
+ }
34
+ declare const Sparkline: React.ForwardRefExoticComponent<SparklineProps & React.RefAttributes<HTMLDivElement>>;
35
+
36
+ export { Sparkline, type SparklineProps, type SparklineTrend, type SparklineVariant };
@@ -0,0 +1,36 @@
1
+ import * as React from 'react';
2
+
3
+ type SparklineTrend = 'up' | 'down' | 'neutral' | 'auto';
4
+ type SparklineVariant = 'line' | 'area' | 'bars';
5
+ interface SparklineProps extends React.HTMLAttributes<HTMLDivElement> {
6
+ /** Array of numeric data points. Must have at least 2 items to render line/area. */
7
+ data: number[];
8
+ /** Visual style @default "line" */
9
+ variant?: SparklineVariant;
10
+ /**
11
+ * Trend colour. `"auto"` compares first and last point:
12
+ * last > first → up, last < first → down, equal → neutral.
13
+ * Pass an explicit value to override.
14
+ * @default "auto"
15
+ */
16
+ trend?: SparklineTrend;
17
+ /** Width in px. Also used as SVG viewBox width — output scales to parent when CSS overrides. @default 80 */
18
+ width?: number;
19
+ /** Height in px @default 24 */
20
+ height?: number;
21
+ /** Line / bar stroke width @default 1.5 */
22
+ strokeWidth?: number;
23
+ /** Show a filled dot at the last point */
24
+ showEndDot?: boolean;
25
+ /** Padding inside the viewBox so strokes/dots are not clipped @default 2 */
26
+ padding?: number;
27
+ /** Override color with any CSS value (e.g. `"hsl(var(--brand))"`). Takes precedence over `trend`. */
28
+ color?: string;
29
+ /** For bars variant — gap between bars in user units @default 1 */
30
+ barGap?: number;
31
+ /** aria-label for screen readers — describe the trend / metric */
32
+ 'aria-label'?: string;
33
+ }
34
+ declare const Sparkline: React.ForwardRefExoticComponent<SparklineProps & React.RefAttributes<HTMLDivElement>>;
35
+
36
+ export { Sparkline, type SparklineProps, type SparklineTrend, type SparklineVariant };
@@ -0,0 +1,4 @@
1
+ export { Sparkline } from '../../chunk-YC5KLN6I.js';
2
+ import '../../chunk-4SVQNEVH.js';
3
+ //# sourceMappingURL=sparkline.js.map
4
+ //# sourceMappingURL=sparkline.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"sparkline.js"}
@@ -0,0 +1,25 @@
1
+ 'use strict';
2
+
3
+ var chunkOS6CMYAS_cjs = require('../../chunk-OS6CMYAS.cjs');
4
+ require('../../chunk-NV4JOKWL.cjs');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "Tooltip", {
9
+ enumerable: true,
10
+ get: function () { return chunkOS6CMYAS_cjs.Tooltip; }
11
+ });
12
+ Object.defineProperty(exports, "TooltipContent", {
13
+ enumerable: true,
14
+ get: function () { return chunkOS6CMYAS_cjs.TooltipContent; }
15
+ });
16
+ Object.defineProperty(exports, "TooltipProvider", {
17
+ enumerable: true,
18
+ get: function () { return chunkOS6CMYAS_cjs.TooltipProvider; }
19
+ });
20
+ Object.defineProperty(exports, "TooltipTrigger", {
21
+ enumerable: true,
22
+ get: function () { return chunkOS6CMYAS_cjs.TooltipTrigger; }
23
+ });
24
+ //# sourceMappingURL=tooltip.cjs.map
25
+ //# sourceMappingURL=tooltip.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"tooltip.cjs"}
@@ -0,0 +1,17 @@
1
+ import * as React from 'react';
2
+ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
3
+
4
+ declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
5
+ declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
6
+ declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
7
+ interface TooltipContentProps extends React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content> {
8
+ /** Visual variant */
9
+ variant?: 'default' | 'light' | 'error';
10
+ /** Size */
11
+ size?: 'sm' | 'md';
12
+ /** Show arrow/caret pointing to trigger */
13
+ showArrow?: boolean;
14
+ }
15
+ declare const TooltipContent: React.ForwardRefExoticComponent<TooltipContentProps & React.RefAttributes<HTMLDivElement>>;
16
+
17
+ export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
@@ -0,0 +1,17 @@
1
+ import * as React from 'react';
2
+ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
3
+
4
+ declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
5
+ declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
6
+ declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
7
+ interface TooltipContentProps extends React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content> {
8
+ /** Visual variant */
9
+ variant?: 'default' | 'light' | 'error';
10
+ /** Size */
11
+ size?: 'sm' | 'md';
12
+ /** Show arrow/caret pointing to trigger */
13
+ showArrow?: boolean;
14
+ }
15
+ declare const TooltipContent: React.ForwardRefExoticComponent<TooltipContentProps & React.RefAttributes<HTMLDivElement>>;
16
+
17
+ export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
@@ -0,0 +1,4 @@
1
+ export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '../../chunk-JUBHQAA2.js';
2
+ import '../../chunk-4SVQNEVH.js';
3
+ //# sourceMappingURL=tooltip.js.map
4
+ //# sourceMappingURL=tooltip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"tooltip.js"}
@@ -0,0 +1,83 @@
1
+ import * as React from 'react';
2
+ import { S as SupportedLocale } from './utils-DlXWmDZ-.js';
3
+ import { F as FlowKey, c as StatusKey, d as SeverityKey } from './i18n-ArS3mqj0.js';
4
+
5
+ type FlowData = Partial<Record<FlowKey, number>>;
6
+ interface FlowDistributionProps extends React.HTMLAttributes<HTMLDivElement> {
7
+ /** Flow counts (auto-normalized). Missing keys treated as 0. */
8
+ data: FlowData;
9
+ /** Display mode */
10
+ variant?: 'bars' | 'stacked' | 'compact';
11
+ /** Show numeric counts alongside percent */
12
+ showCounts?: boolean;
13
+ /** Show percentages */
14
+ showPercent?: boolean;
15
+ /** Locale */
16
+ locale?: SupportedLocale;
17
+ /** Loading skeleton */
18
+ isLoading?: boolean;
19
+ }
20
+ declare const FlowDistribution: React.ForwardRefExoticComponent<FlowDistributionProps & React.RefAttributes<HTMLDivElement>>;
21
+
22
+ interface SentimentData {
23
+ positive: number;
24
+ negative: number;
25
+ neutral: number;
26
+ mixed?: number;
27
+ }
28
+ interface SentimentDistributionProps extends React.HTMLAttributes<HTMLDivElement> {
29
+ /** Sentiment counts (will be auto-normalized to 100%) */
30
+ data: SentimentData;
31
+ /** Display mode */
32
+ variant?: 'bars' | 'stacked' | 'compact';
33
+ /** Show numeric count labels */
34
+ showCounts?: boolean;
35
+ /** Show percentage labels */
36
+ showPercent?: boolean;
37
+ /** Locale for number/label formatting */
38
+ locale?: SupportedLocale;
39
+ /** Show loading skeleton */
40
+ isLoading?: boolean;
41
+ }
42
+ declare const SentimentDistribution: React.ForwardRefExoticComponent<SentimentDistributionProps & React.RefAttributes<HTMLDivElement>>;
43
+
44
+ /**
45
+ * ConceptCard — افکارسنجی-flavored headline tile for clustering dashboards.
46
+ * Composes: status badge, severity badge, flow composition bar, sentiment
47
+ * distribution, sparkline trend, AI summary snippet, optional comparison
48
+ * checkbox. Built for government dashboards where each "concept" needs
49
+ * to fit in a card grid with rich, comparable signals.
50
+ */
51
+ interface ConceptCardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
52
+ /** Concept name (e.g., "افزایش قیمت بنزین") */
53
+ title: React.ReactNode;
54
+ /** Short subtitle (e.g., "خوشه ۴ — ۱۲۰ پست") */
55
+ subtitle?: React.ReactNode;
56
+ /** Operational status */
57
+ status?: StatusKey;
58
+ /** Criticality of the concept (urgent/high/medium/low) */
59
+ severity?: SeverityKey;
60
+ /** Flow composition breakdown (5-class political) */
61
+ flow?: FlowData;
62
+ /** Sentiment composition (3-class) */
63
+ sentiment?: SentimentData;
64
+ /** Trend sparkline values (e.g., last 14 days mention volume) */
65
+ trend?: number[];
66
+ /** AI-generated short summary (1-2 sentences) */
67
+ aiSummary?: React.ReactNode;
68
+ /** Total mentions / size — shown as a stat */
69
+ totalCount?: number;
70
+ /** Comparison checkbox state. When provided, renders the checkbox in the header */
71
+ comparison?: {
72
+ selected: boolean;
73
+ onSelectionChange: (next: boolean) => void;
74
+ label?: React.ReactNode;
75
+ };
76
+ /** Make the entire card clickable (cursor + hover/focus ring) */
77
+ interactive?: boolean;
78
+ /** Locale @default 'fa' */
79
+ locale?: SupportedLocale;
80
+ }
81
+ declare const ConceptCard: React.ForwardRefExoticComponent<ConceptCardProps & React.RefAttributes<HTMLDivElement>>;
82
+
83
+ export { ConceptCard as C, type FlowData as F, type SentimentData as S, type ConceptCardProps as a, FlowDistribution as b, type FlowDistributionProps as c, SentimentDistribution as d, type SentimentDistributionProps as e };
@@ -0,0 +1,83 @@
1
+ import * as React from 'react';
2
+ import { S as SupportedLocale } from './utils-DlXWmDZ-.cjs';
3
+ import { F as FlowKey, c as StatusKey, d as SeverityKey } from './i18n-CAd9wGOr.cjs';
4
+
5
+ type FlowData = Partial<Record<FlowKey, number>>;
6
+ interface FlowDistributionProps extends React.HTMLAttributes<HTMLDivElement> {
7
+ /** Flow counts (auto-normalized). Missing keys treated as 0. */
8
+ data: FlowData;
9
+ /** Display mode */
10
+ variant?: 'bars' | 'stacked' | 'compact';
11
+ /** Show numeric counts alongside percent */
12
+ showCounts?: boolean;
13
+ /** Show percentages */
14
+ showPercent?: boolean;
15
+ /** Locale */
16
+ locale?: SupportedLocale;
17
+ /** Loading skeleton */
18
+ isLoading?: boolean;
19
+ }
20
+ declare const FlowDistribution: React.ForwardRefExoticComponent<FlowDistributionProps & React.RefAttributes<HTMLDivElement>>;
21
+
22
+ interface SentimentData {
23
+ positive: number;
24
+ negative: number;
25
+ neutral: number;
26
+ mixed?: number;
27
+ }
28
+ interface SentimentDistributionProps extends React.HTMLAttributes<HTMLDivElement> {
29
+ /** Sentiment counts (will be auto-normalized to 100%) */
30
+ data: SentimentData;
31
+ /** Display mode */
32
+ variant?: 'bars' | 'stacked' | 'compact';
33
+ /** Show numeric count labels */
34
+ showCounts?: boolean;
35
+ /** Show percentage labels */
36
+ showPercent?: boolean;
37
+ /** Locale for number/label formatting */
38
+ locale?: SupportedLocale;
39
+ /** Show loading skeleton */
40
+ isLoading?: boolean;
41
+ }
42
+ declare const SentimentDistribution: React.ForwardRefExoticComponent<SentimentDistributionProps & React.RefAttributes<HTMLDivElement>>;
43
+
44
+ /**
45
+ * ConceptCard — افکارسنجی-flavored headline tile for clustering dashboards.
46
+ * Composes: status badge, severity badge, flow composition bar, sentiment
47
+ * distribution, sparkline trend, AI summary snippet, optional comparison
48
+ * checkbox. Built for government dashboards where each "concept" needs
49
+ * to fit in a card grid with rich, comparable signals.
50
+ */
51
+ interface ConceptCardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
52
+ /** Concept name (e.g., "افزایش قیمت بنزین") */
53
+ title: React.ReactNode;
54
+ /** Short subtitle (e.g., "خوشه ۴ — ۱۲۰ پست") */
55
+ subtitle?: React.ReactNode;
56
+ /** Operational status */
57
+ status?: StatusKey;
58
+ /** Criticality of the concept (urgent/high/medium/low) */
59
+ severity?: SeverityKey;
60
+ /** Flow composition breakdown (5-class political) */
61
+ flow?: FlowData;
62
+ /** Sentiment composition (3-class) */
63
+ sentiment?: SentimentData;
64
+ /** Trend sparkline values (e.g., last 14 days mention volume) */
65
+ trend?: number[];
66
+ /** AI-generated short summary (1-2 sentences) */
67
+ aiSummary?: React.ReactNode;
68
+ /** Total mentions / size — shown as a stat */
69
+ totalCount?: number;
70
+ /** Comparison checkbox state. When provided, renders the checkbox in the header */
71
+ comparison?: {
72
+ selected: boolean;
73
+ onSelectionChange: (next: boolean) => void;
74
+ label?: React.ReactNode;
75
+ };
76
+ /** Make the entire card clickable (cursor + hover/focus ring) */
77
+ interactive?: boolean;
78
+ /** Locale @default 'fa' */
79
+ locale?: SupportedLocale;
80
+ }
81
+ declare const ConceptCard: React.ForwardRefExoticComponent<ConceptCardProps & React.RefAttributes<HTMLDivElement>>;
82
+
83
+ export { ConceptCard as C, type FlowData as F, type SentimentData as S, type ConceptCardProps as a, FlowDistribution as b, type FlowDistributionProps as c, SentimentDistribution as d, type SentimentDistributionProps as e };
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+
3
+ var chunkISCSZMYW_cjs = require('../chunk-ISCSZMYW.cjs');
4
+ require('../chunk-U5FLLCGC.cjs');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "HotkeyProvider", {
9
+ enumerable: true,
10
+ get: function () { return chunkISCSZMYW_cjs.HotkeyProvider; }
11
+ });
12
+ Object.defineProperty(exports, "useHotkey", {
13
+ enumerable: true,
14
+ get: function () { return chunkISCSZMYW_cjs.useHotkey; }
15
+ });
16
+ Object.defineProperty(exports, "useHotkeyRegistry", {
17
+ enumerable: true,
18
+ get: function () { return chunkISCSZMYW_cjs.useHotkeyRegistry; }
19
+ });
20
+ //# sourceMappingURL=use-hotkey-registry.cjs.map
21
+ //# sourceMappingURL=use-hotkey-registry.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"use-hotkey-registry.cjs"}
@@ -0,0 +1,65 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+ import { HotkeyCombo } from './use-hotkeys.cjs';
4
+
5
+ interface RegisteredHotkey {
6
+ /** Stable id — used for de-registration + dedupe. */
7
+ id: string;
8
+ /** The combo string(s) — `'mod+k'`, `['escape', 'mod+w']`, etc. */
9
+ combo: HotkeyCombo;
10
+ /** Short human-readable description (e.g. "باز کردن پالت دستور"). */
11
+ description?: string;
12
+ /** Optional grouping label for cheatsheet rendering ("سراسری", "ناوبری"…). */
13
+ group?: string;
14
+ /** When false, the entry is listed but the listener doesn't fire. */
15
+ enabled?: boolean;
16
+ }
17
+ interface HotkeyProviderProps {
18
+ /** Globally disable all registered hotkeys (e.g. while a modal owns the page). */
19
+ enabled?: boolean;
20
+ children: React.ReactNode;
21
+ }
22
+ /**
23
+ * Centralised hotkey registry. Wrap your app once; descendants register
24
+ * combos via `useHotkey()` and any UI (CommandPalette, help cheatsheet)
25
+ * can read the full list via `useHotkeyRegistry()`.
26
+ *
27
+ * Compared to scattering `useHotkeys` calls across the tree:
28
+ * - Per-entry mounting is centralized (one place that handles
29
+ * `enabled`, key parsing, ignore-when-typing semantics)
30
+ * - Discoverable: cheatsheets / palettes can list every active combo
31
+ * - De-duplicated: registering the same id twice replaces the entry
32
+ *
33
+ * Optional. `useHotkeys` (the bare hook) continues to work outside a provider.
34
+ */
35
+ declare function HotkeyProvider({ enabled, children }: HotkeyProviderProps): react_jsx_runtime.JSX.Element;
36
+ /**
37
+ * Register a hotkey under the active provider. The combo is added to the
38
+ * cheatsheet-readable registry; the handler fires when the combo matches
39
+ * (subject to `useHotkeys` rules around editable targets + modifiers).
40
+ *
41
+ * @example
42
+ * useHotkey('palette', 'mod+k', () => setOpen(true), {
43
+ * description: 'باز کردن پالت دستور',
44
+ * group: 'سراسری',
45
+ * })
46
+ *
47
+ * The first argument is a stable id — use a unique slug per call site so
48
+ * registry updates can dedupe. When called outside a `<HotkeyProvider>`,
49
+ * silently no-ops (so consumers can layer the provider in later without
50
+ * a refactor sweep).
51
+ */
52
+ declare function useHotkey(id: string, combo: HotkeyCombo, handler: (event: KeyboardEvent) => void, options?: {
53
+ description?: string;
54
+ group?: string;
55
+ enabled?: boolean;
56
+ }): void;
57
+ /**
58
+ * Read the active registry. Returns an empty array outside a provider.
59
+ * Useful for CommandPalette items, "?" cheatsheet overlays, settings pages.
60
+ */
61
+ declare function useHotkeyRegistry(): {
62
+ hotkeys: RegisteredHotkey[];
63
+ };
64
+
65
+ export { HotkeyProvider, type HotkeyProviderProps, type RegisteredHotkey, useHotkey, useHotkeyRegistry };