@senitix/ui 0.4.0 → 0.4.1

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 (223) hide show
  1. package/dist/avatar-BT_SPwFW.cjs +18 -0
  2. package/dist/{avatar-C0aVNCG9.cjs.map → avatar-BT_SPwFW.cjs.map} +1 -1
  3. package/dist/avatar-C5-ZWIqT.js +305 -0
  4. package/dist/{avatar-CN6wcrqY.js.map → avatar-C5-ZWIqT.js.map} +1 -1
  5. package/dist/calendar-BF5drX5u.cjs +12 -0
  6. package/dist/{calendar-BUm7YrNf.cjs.map → calendar-BF5drX5u.cjs.map} +1 -1
  7. package/dist/calendar-CUxm1K7J.js +17 -0
  8. package/dist/{calendar-ChJkFXXr.js.map → calendar-CUxm1K7J.js.map} +1 -1
  9. package/dist/calendar-D3RWU0_G.cjs +7 -0
  10. package/dist/{calendar-SwL5isYC.cjs.map → calendar-D3RWU0_G.cjs.map} +1 -1
  11. package/dist/{calendar-BFWc4IB7.js → calendar-DgnhzEfp.js} +126 -112
  12. package/dist/{calendar-BFWc4IB7.js.map → calendar-DgnhzEfp.js.map} +1 -1
  13. package/dist/{card-tMkUxpmW.cjs → card-DISL3sPJ.cjs} +2 -2
  14. package/dist/{card-tMkUxpmW.cjs.map → card-DISL3sPJ.cjs.map} +1 -1
  15. package/dist/{card-K4fxyYwE.js → card-fId5vof_.js} +2 -2
  16. package/dist/{card-K4fxyYwE.js.map → card-fId5vof_.js.map} +1 -1
  17. package/dist/{checkbox-CpOq5hkT.js → checkbox-BY2zxQVv.js} +5 -5
  18. package/dist/{checkbox-CpOq5hkT.js.map → checkbox-BY2zxQVv.js.map} +1 -1
  19. package/dist/checkbox-CL6u7vL6.cjs +2 -0
  20. package/dist/{checkbox-D7-LQyCl.cjs.map → checkbox-CL6u7vL6.cjs.map} +1 -1
  21. package/dist/chevron-down-BiUlxZA-.js +14 -0
  22. package/dist/{chevron-down-DJ1_YIFu.js.map → chevron-down-BiUlxZA-.js.map} +1 -1
  23. package/dist/chevron-down-Ce0kqXiD.cjs +7 -0
  24. package/dist/{chevron-down-DHdXqOqK.cjs.map → chevron-down-Ce0kqXiD.cjs.map} +1 -1
  25. package/dist/chevron-right-BLyGmyaF.js +14 -0
  26. package/dist/{chevron-right-B3bovvh0.js.map → chevron-right-BLyGmyaF.js.map} +1 -1
  27. package/dist/chevron-right-Bxf8i4gi.cjs +7 -0
  28. package/dist/{chevron-right-Dvyd11q0.cjs.map → chevron-right-Bxf8i4gi.cjs.map} +1 -1
  29. package/dist/chevron-up-BmYZUtrk.js +12 -0
  30. package/dist/{chevron-up-CGtXOr51.js.map → chevron-up-BmYZUtrk.js.map} +1 -1
  31. package/dist/chevron-up-C3RClqXD.cjs +7 -0
  32. package/dist/{chevron-up-B9fuiZhc.cjs.map → chevron-up-C3RClqXD.cjs.map} +1 -1
  33. package/dist/components/charts/index.cjs.js +1 -1
  34. package/dist/components/charts/index.es.js +1 -1
  35. package/dist/components/data-display/index.cjs.js +1 -1
  36. package/dist/components/data-display/index.es.js +1 -1
  37. package/dist/components/dnd/index.cjs.js +1 -1
  38. package/dist/components/dnd/index.es.js +1 -1
  39. package/dist/components/feedback/index.cjs.js +1 -1
  40. package/dist/components/feedback/index.es.js +1 -1
  41. package/dist/components/forms/index.cjs.js +1 -1
  42. package/dist/components/forms/index.es.js +1 -1
  43. package/dist/components/layouts/index.cjs.js +1 -1
  44. package/dist/components/layouts/index.es.js +1 -1
  45. package/dist/components/navigation/index.cjs.js +1 -1
  46. package/dist/components/navigation/index.es.js +1 -1
  47. package/dist/components/ui/index.cjs.js +1 -1
  48. package/dist/components/ui/index.es.js +13 -13
  49. package/dist/{createLucideIcon-BbeNo6vq.js → createLucideIcon-BC8wu-bu.js} +25 -1
  50. package/dist/{createLucideIcon-BbeNo6vq.js.map → createLucideIcon-BC8wu-bu.js.map} +1 -1
  51. package/dist/createLucideIcon-Cv8nC2E9.cjs +22 -0
  52. package/dist/{createLucideIcon-i5GEhNMV.cjs.map → createLucideIcon-Cv8nC2E9.cjs.map} +1 -1
  53. package/dist/ellipsis-6eUne95u.js +16 -0
  54. package/dist/{ellipsis-CiKEaUNP.js.map → ellipsis-6eUne95u.js.map} +1 -1
  55. package/dist/ellipsis-DkM3GBF5.cjs +7 -0
  56. package/dist/{ellipsis-BW2gWki8.cjs.map → ellipsis-DkM3GBF5.cjs.map} +1 -1
  57. package/dist/file-Cp5UoYUZ.cjs +7 -0
  58. package/dist/{file-V_hhCUhr.cjs.map → file-Cp5UoYUZ.cjs.map} +1 -1
  59. package/dist/file-Cw_u_aJB.js +15 -0
  60. package/dist/{file-wzTXnWqz.js.map → file-Cw_u_aJB.js.map} +1 -1
  61. package/dist/filter-tags-DoRzXjuY.cjs +48 -0
  62. package/dist/{filter-tags-DjUaNXHR.cjs.map → filter-tags-DoRzXjuY.cjs.map} +1 -1
  63. package/dist/{filter-tags-i_I8qV1N.js → filter-tags-zEQmRhEU.js} +353 -299
  64. package/dist/{filter-tags-i_I8qV1N.js.map → filter-tags-zEQmRhEU.js.map} +1 -1
  65. package/dist/{full-calendar-7ac2FFU6.js → full-calendar-5Z4JSj8g.js} +1176 -1143
  66. package/dist/{full-calendar-7ac2FFU6.js.map → full-calendar-5Z4JSj8g.js.map} +1 -1
  67. package/dist/full-calendar-DjAvCfuE.cjs +23 -0
  68. package/dist/{full-calendar-Cpeh5xMP.cjs.map → full-calendar-DjAvCfuE.cjs.map} +1 -1
  69. package/dist/{global-search-h1rVbP2q.js → global-search-BbZfc-VL.js} +514 -486
  70. package/dist/global-search-BbZfc-VL.js.map +1 -0
  71. package/dist/global-search-Bd74_wPV.cjs +22 -0
  72. package/dist/global-search-Bd74_wPV.cjs.map +1 -0
  73. package/dist/hooks/index.cjs.js +1 -1
  74. package/dist/hooks/index.es.js +1 -1
  75. package/dist/index-D2U2F80P.cjs +2 -0
  76. package/dist/index-D2U2F80P.cjs.map +1 -0
  77. package/dist/index-DG0KV-sw.cjs +11 -0
  78. package/dist/{index-CzVK9Zyb.cjs.map → index-DG0KV-sw.cjs.map} +1 -1
  79. package/dist/{index-Co9o9StL.js → index-Dk_Et2WJ.js} +2 -2
  80. package/dist/{index-Co9o9StL.js.map → index-Dk_Et2WJ.js.map} +1 -1
  81. package/dist/{index-CwJPJKOE.js → index-DtaLkIY8.js} +1072 -573
  82. package/dist/index-DtaLkIY8.js.map +1 -0
  83. package/dist/index-XnFSmCuh.js +299 -0
  84. package/dist/{index-l828OqQN.js.map → index-XnFSmCuh.js.map} +1 -1
  85. package/dist/{index-lT9bLt9X.cjs → index-gVbM3K4f.cjs} +2 -2
  86. package/dist/{index-lT9bLt9X.cjs.map → index-gVbM3K4f.cjs.map} +1 -1
  87. package/dist/index.cjs.js +1 -1
  88. package/dist/index.es.js +23 -23
  89. package/dist/input-BgPy-4Qu.js +3658 -0
  90. package/dist/{input-D4AoiWxo.js.map → input-BgPy-4Qu.js.map} +1 -1
  91. package/dist/input-Cfr2WB-P.cjs +47 -0
  92. package/dist/{input-CZrckPLk.cjs.map → input-Cfr2WB-P.cjs.map} +1 -1
  93. package/dist/locale-provider-BojNdf1Y.cjs +2 -0
  94. package/dist/{locale-provider-DHMwuneF.cjs.map → locale-provider-BojNdf1Y.cjs.map} +1 -1
  95. package/dist/{locale-provider-DanG6RRG.js → locale-provider-DzBeb-X3.js} +62 -61
  96. package/dist/{locale-provider-DanG6RRG.js.map → locale-provider-DzBeb-X3.js.map} +1 -1
  97. package/dist/locale-selector-BD1IWk6X.cjs +22 -0
  98. package/dist/{locale-selector-Ppe0KTi-.cjs.map → locale-selector-BD1IWk6X.cjs.map} +1 -1
  99. package/dist/locale-selector-DLRSyVye.js +1772 -0
  100. package/dist/{locale-selector-xn2GpdP9.js.map → locale-selector-DLRSyVye.js.map} +1 -1
  101. package/dist/minus-C0uyaz70.cjs +7 -0
  102. package/dist/{minus-BXBFZSZs.cjs.map → minus-C0uyaz70.cjs.map} +1 -1
  103. package/dist/minus-CiwV65ZG.js +12 -0
  104. package/dist/{minus-DvlYtl96.js.map → minus-CiwV65ZG.js.map} +1 -1
  105. package/dist/{multi-container-C2UpSw5f.js → multi-container-BZia7HCU.js} +181 -164
  106. package/dist/{multi-container-C2UpSw5f.js.map → multi-container-BZia7HCU.js.map} +1 -1
  107. package/dist/multi-container-BdNbgtPZ.cjs +7 -0
  108. package/dist/{multi-container-DMKL8c9B.cjs.map → multi-container-BdNbgtPZ.cjs.map} +1 -1
  109. package/dist/pipeline-Dh052Dvj.cjs +27 -0
  110. package/dist/{pipeline-By5_8AFg.cjs.map → pipeline-Dh052Dvj.cjs.map} +1 -1
  111. package/dist/pipeline-DqWvleNy.js +1076 -0
  112. package/dist/{pipeline-D-QNSU0U.js.map → pipeline-DqWvleNy.js.map} +1 -1
  113. package/dist/plus-BsV82JJ5.cjs +7 -0
  114. package/dist/{plus-8wKRkVu-.cjs.map → plus-BsV82JJ5.cjs.map} +1 -1
  115. package/dist/plus-DxD6rofl.js +15 -0
  116. package/dist/{plus-CJD68KQD.js.map → plus-DxD6rofl.js.map} +1 -1
  117. package/dist/popover-BgLxmm1z.cjs +7 -0
  118. package/dist/{popover-ivh-plLc.cjs.map → popover-BgLxmm1z.cjs.map} +1 -1
  119. package/dist/{popover-4V4sGe1U.js → popover-PI9jbhnS.js} +85 -75
  120. package/dist/{popover-4V4sGe1U.js.map → popover-PI9jbhnS.js.map} +1 -1
  121. package/dist/progress-CTTt_CP3.js +260 -0
  122. package/dist/{progress-D5AsrWa6.js.map → progress-CTTt_CP3.js.map} +1 -1
  123. package/dist/progress-CTWb7X1Q.cjs +37 -0
  124. package/dist/{progress-CFnuLqnS.cjs.map → progress-CTWb7X1Q.cjs.map} +1 -1
  125. package/dist/providers/index.cjs.js +1 -1
  126. package/dist/providers/index.es.js +1 -1
  127. package/dist/{scroll-area-DQeqDp3Y.js → scroll-area-A3jGu-Ta.js} +302 -280
  128. package/dist/{scroll-area-DQeqDp3Y.js.map → scroll-area-A3jGu-Ta.js.map} +1 -1
  129. package/dist/scroll-area-DzDnWIYJ.cjs +12 -0
  130. package/dist/{scroll-area-DYOiJMXh.cjs.map → scroll-area-DzDnWIYJ.cjs.map} +1 -1
  131. package/dist/select-BJpZrtep.js +989 -0
  132. package/dist/{select-C1rNBi6c.js.map → select-BJpZrtep.js.map} +1 -1
  133. package/dist/select-Ii8HRuXa.cjs +2 -0
  134. package/dist/{select-m-Mqwxu3.cjs.map → select-Ii8HRuXa.cjs.map} +1 -1
  135. package/dist/separator-BzcDE0Ei.cjs +2 -0
  136. package/dist/{separator-DBUivkHq.cjs.map → separator-BzcDE0Ei.cjs.map} +1 -1
  137. package/dist/{separator-DsfoJx-2.js → separator-DyarVo1-.js} +66 -65
  138. package/dist/{separator-DsfoJx-2.js.map → separator-DyarVo1-.js.map} +1 -1
  139. package/dist/{sheet-BVWCpq7E.js → sheet-DPSdOoE6.js} +4 -4
  140. package/dist/{sheet-BVWCpq7E.js.map → sheet-DPSdOoE6.js.map} +1 -1
  141. package/dist/{sheet-mKiFLVnK.cjs → sheet-XtjvbEMq.cjs} +2 -2
  142. package/dist/{sheet-mKiFLVnK.cjs.map → sheet-XtjvbEMq.cjs.map} +1 -1
  143. package/dist/{skeleton-BmGbfJw3.js → skeleton-Bl6FAxHT.js} +2 -2
  144. package/dist/{skeleton-BmGbfJw3.js.map → skeleton-Bl6FAxHT.js.map} +1 -1
  145. package/dist/{skeleton-BSwwYaQU.cjs → skeleton-Cb6MWerF.cjs} +2 -2
  146. package/dist/{skeleton-BSwwYaQU.cjs.map → skeleton-Cb6MWerF.cjs.map} +1 -1
  147. package/dist/sortable.esm-5DsiICDg.cjs +6 -0
  148. package/dist/{sortable.esm-DcQYlXi3.cjs.map → sortable.esm-5DsiICDg.cjs.map} +1 -1
  149. package/dist/{sortable.esm-Blhf_jh1.js → sortable.esm-Cb8oRBzU.js} +42 -42
  150. package/dist/{sortable.esm-Blhf_jh1.js.map → sortable.esm-Cb8oRBzU.js.map} +1 -1
  151. package/dist/sparkline-chart-CeCDeMNk.cjs +102 -0
  152. package/dist/{sparkline-chart-ca3uTzVK.cjs.map → sparkline-chart-CeCDeMNk.cjs.map} +1 -1
  153. package/dist/{sparkline-chart-Da-ehDGv.js → sparkline-chart-DUS4CoW_.js} +7799 -9094
  154. package/dist/{sparkline-chart-Da-ehDGv.js.map → sparkline-chart-DUS4CoW_.js.map} +1 -1
  155. package/dist/styles.css +1 -0
  156. package/dist/trending-up-BBjz_E69.cjs +7 -0
  157. package/dist/{trending-up-D3Nfrhi3.cjs.map → trending-up-BBjz_E69.cjs.map} +1 -1
  158. package/dist/trending-up-BHFXgLWy.js +15 -0
  159. package/dist/{trending-up-DPwlYzQb.js.map → trending-up-BHFXgLWy.js.map} +1 -1
  160. package/dist/{use-formatters-l1_2c8z0.js → use-formatters-Bgj3JA4i.js} +731 -746
  161. package/dist/{use-formatters-l1_2c8z0.js.map → use-formatters-Bgj3JA4i.js.map} +1 -1
  162. package/dist/use-formatters-CObUgipW.cjs +2 -0
  163. package/dist/{use-formatters-d97RVcmg.cjs.map → use-formatters-CObUgipW.cjs.map} +1 -1
  164. package/dist/utils/index.cjs.js +1 -1
  165. package/dist/utils/index.es.js +1 -1
  166. package/dist/welcome-card-CNuEa6Ck.cjs +67 -0
  167. package/dist/{welcome-card-CPolYl1D.cjs.map → welcome-card-CNuEa6Ck.cjs.map} +1 -1
  168. package/dist/{welcome-card-CxMJZ8bv.js → welcome-card-Cp6t6G3j.js} +197 -119
  169. package/dist/{welcome-card-CxMJZ8bv.js.map → welcome-card-Cp6t6G3j.js.map} +1 -1
  170. package/package.json +14 -12
  171. package/dist/avatar-C0aVNCG9.cjs +0 -2
  172. package/dist/avatar-CN6wcrqY.js +0 -288
  173. package/dist/calendar-BUm7YrNf.cjs +0 -2
  174. package/dist/calendar-ChJkFXXr.js +0 -11
  175. package/dist/calendar-SwL5isYC.cjs +0 -2
  176. package/dist/checkbox-D7-LQyCl.cjs +0 -2
  177. package/dist/chevron-down-DHdXqOqK.cjs +0 -2
  178. package/dist/chevron-down-DJ1_YIFu.js +0 -8
  179. package/dist/chevron-right-B3bovvh0.js +0 -8
  180. package/dist/chevron-right-Dvyd11q0.cjs +0 -2
  181. package/dist/chevron-up-B9fuiZhc.cjs +0 -2
  182. package/dist/chevron-up-CGtXOr51.js +0 -6
  183. package/dist/createLucideIcon-i5GEhNMV.cjs +0 -2
  184. package/dist/ellipsis-BW2gWki8.cjs +0 -2
  185. package/dist/ellipsis-CiKEaUNP.js +0 -10
  186. package/dist/file-V_hhCUhr.cjs +0 -2
  187. package/dist/file-wzTXnWqz.js +0 -9
  188. package/dist/filter-tags-DjUaNXHR.cjs +0 -5
  189. package/dist/full-calendar-Cpeh5xMP.cjs +0 -8
  190. package/dist/global-search-UNXjoFlI.cjs +0 -2
  191. package/dist/global-search-UNXjoFlI.cjs.map +0 -1
  192. package/dist/global-search-h1rVbP2q.js.map +0 -1
  193. package/dist/index-CwJPJKOE.js.map +0 -1
  194. package/dist/index-CzVK9Zyb.cjs +0 -6
  195. package/dist/index-l828OqQN.js +0 -288
  196. package/dist/index-lGzB9daF.cjs +0 -2
  197. package/dist/index-lGzB9daF.cjs.map +0 -1
  198. package/dist/input-CZrckPLk.cjs +0 -42
  199. package/dist/input-D4AoiWxo.js +0 -3629
  200. package/dist/locale-provider-DHMwuneF.cjs +0 -2
  201. package/dist/locale-selector-Ppe0KTi-.cjs +0 -2
  202. package/dist/locale-selector-xn2GpdP9.js +0 -1745
  203. package/dist/minus-BXBFZSZs.cjs +0 -2
  204. package/dist/minus-DvlYtl96.js +0 -6
  205. package/dist/multi-container-DMKL8c9B.cjs +0 -2
  206. package/dist/pipeline-By5_8AFg.cjs +0 -2
  207. package/dist/pipeline-D-QNSU0U.js +0 -1036
  208. package/dist/plus-8wKRkVu-.cjs +0 -2
  209. package/dist/plus-CJD68KQD.js +0 -9
  210. package/dist/popover-ivh-plLc.cjs +0 -2
  211. package/dist/progress-CFnuLqnS.cjs +0 -7
  212. package/dist/progress-D5AsrWa6.js +0 -222
  213. package/dist/scroll-area-DYOiJMXh.cjs +0 -2
  214. package/dist/select-C1rNBi6c.js +0 -974
  215. package/dist/select-m-Mqwxu3.cjs +0 -2
  216. package/dist/separator-DBUivkHq.cjs +0 -2
  217. package/dist/sortable.esm-DcQYlXi3.cjs +0 -6
  218. package/dist/sparkline-chart-ca3uTzVK.cjs +0 -68
  219. package/dist/trending-up-D3Nfrhi3.cjs +0 -2
  220. package/dist/trending-up-DPwlYzQb.js +0 -9
  221. package/dist/ui.css +0 -1
  222. package/dist/use-formatters-d97RVcmg.cjs +0 -2
  223. package/dist/welcome-card-CPolYl1D.cjs +0 -2
@@ -0,0 +1,1076 @@
1
+ import { jsx as e, jsxs as r, Fragment as oe } from "react/jsx-runtime";
2
+ import * as l from "react";
3
+ import { c as k } from "./index-DtaLkIY8.js";
4
+ import { u as ce } from "./use-mobile-C-LMK4T8.js";
5
+ import { S as me, e as ue } from "./sheet-DPSdOoE6.js";
6
+ import { a as he, b as W, D as pe, j as fe, e as xe, s as ge, K as be, P as ye, S as Ne, v as ve, u as we, C as ke } from "./sortable.esm-Cb8oRBzU.js";
7
+ import { B as O, a as j, S as I, d as De } from "./scroll-area-A3jGu-Ta.js";
8
+ import { I as Ce, D as K, a as Q, b as q, c as z, g as $ } from "./input-BgPy-4Qu.js";
9
+ import { C as X, e as Y } from "./card-fId5vof_.js";
10
+ import { C as V } from "./checkbox-BY2zxQVv.js";
11
+ import { u as A } from "./use-formatters-Bgj3JA4i.js";
12
+ import { c as H } from "./createLucideIcon-BC8wu-bu.js";
13
+ import { C as Se } from "./calendar-CUxm1K7J.js";
14
+ import { S as Pe } from "./index-XnFSmCuh.js";
15
+ import { P as Z } from "./plus-DxD6rofl.js";
16
+ import { E as _ } from "./ellipsis-6eUne95u.js";
17
+ /**
18
+ * @license lucide-react v0.441.0 - ISC
19
+ *
20
+ * This source code is licensed under the ISC license.
21
+ * See the LICENSE file in the root directory of this source tree.
22
+ */
23
+ const Me = H("Filter", [
24
+ ["polygon", { points: "22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3", key: "1yg77f" }]
25
+ ]);
26
+ /**
27
+ * @license lucide-react v0.441.0 - ISC
28
+ *
29
+ * This source code is licensed under the ISC license.
30
+ * See the LICENSE file in the root directory of this source tree.
31
+ */
32
+ const Re = H("GripVertical", [
33
+ ["circle", { cx: "9", cy: "12", r: "1", key: "1vctgf" }],
34
+ ["circle", { cx: "9", cy: "5", r: "1", key: "hp0tcf" }],
35
+ ["circle", { cx: "9", cy: "19", r: "1", key: "fkjjf6" }],
36
+ ["circle", { cx: "15", cy: "12", r: "1", key: "1tmaij" }],
37
+ ["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }],
38
+ ["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }]
39
+ ]);
40
+ /**
41
+ * @license lucide-react v0.441.0 - ISC
42
+ *
43
+ * This source code is licensed under the ISC license.
44
+ * See the LICENSE file in the root directory of this source tree.
45
+ */
46
+ const Le = H("LayoutGrid", [
47
+ ["rect", { width: "7", height: "7", x: "3", y: "3", rx: "1", key: "1g98yp" }],
48
+ ["rect", { width: "7", height: "7", x: "14", y: "3", rx: "1", key: "6d4xhi" }],
49
+ ["rect", { width: "7", height: "7", x: "14", y: "14", rx: "1", key: "nxv5o0" }],
50
+ ["rect", { width: "7", height: "7", x: "3", y: "14", rx: "1", key: "1bb6yr" }]
51
+ ]);
52
+ /**
53
+ * @license lucide-react v0.441.0 - ISC
54
+ *
55
+ * This source code is licensed under the ISC license.
56
+ * See the LICENSE file in the root directory of this source tree.
57
+ */
58
+ const je = H("List", [
59
+ ["line", { x1: "8", x2: "21", y1: "6", y2: "6", key: "7ey8pc" }],
60
+ ["line", { x1: "8", x2: "21", y1: "12", y2: "12", key: "rjfblc" }],
61
+ ["line", { x1: "8", x2: "21", y1: "18", y2: "18", key: "c3b1m8" }],
62
+ ["line", { x1: "3", x2: "3.01", y1: "6", y2: "6", key: "1g7gq3" }],
63
+ ["line", { x1: "3", x2: "3.01", y1: "12", y2: "12", key: "1pjlvk" }],
64
+ ["line", { x1: "3", x2: "3.01", y1: "18", y2: "18", key: "28t2mc" }]
65
+ ]);
66
+ /**
67
+ * @license lucide-react v0.441.0 - ISC
68
+ *
69
+ * This source code is licensed under the ISC license.
70
+ * See the LICENSE file in the root directory of this source tree.
71
+ */
72
+ const Fe = H("Table2", [
73
+ [
74
+ "path",
75
+ {
76
+ d: "M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18",
77
+ key: "gugj83"
78
+ }
79
+ ]
80
+ ]), Te = l.forwardRef(
81
+ ({ className: d, children: s, ...n }, i) => /* @__PURE__ */ e(
82
+ "div",
83
+ {
84
+ ref: i,
85
+ className: k("flex min-h-screen w-full flex-col bg-background", d),
86
+ ...n,
87
+ children: s
88
+ }
89
+ )
90
+ );
91
+ Te.displayName = "AppShell";
92
+ const Ee = l.forwardRef(
93
+ ({ className: d, ...s }, n) => /* @__PURE__ */ e(
94
+ "header",
95
+ {
96
+ ref: n,
97
+ className: k(
98
+ "sticky top-0 z-50 flex h-16 items-center gap-4 border-b bg-background px-4 md:px-6",
99
+ d
100
+ ),
101
+ ...s
102
+ }
103
+ )
104
+ );
105
+ Ee.displayName = "AppShellHeader";
106
+ const Oe = l.forwardRef(
107
+ ({ className: d, ...s }, n) => /* @__PURE__ */ e(
108
+ "main",
109
+ {
110
+ ref: n,
111
+ className: k("flex flex-1 flex-col gap-4 p-4 md:gap-8 md:p-6", d),
112
+ ...s
113
+ }
114
+ )
115
+ );
116
+ Oe.displayName = "AppShellMain";
117
+ const ze = l.forwardRef(
118
+ ({ className: d, ...s }, n) => /* @__PURE__ */ e(
119
+ "footer",
120
+ {
121
+ ref: n,
122
+ className: k("border-t bg-background px-4 py-6 md:px-6", d),
123
+ ...s
124
+ }
125
+ )
126
+ );
127
+ ze.displayName = "AppShellFooter";
128
+ const Ae = l.forwardRef(
129
+ ({ className: d, heading: s, description: n, actions: i, children: o, ...m }, u) => /* @__PURE__ */ r(
130
+ "div",
131
+ {
132
+ ref: u,
133
+ className: k("flex flex-col gap-4 md:flex-row md:items-center md:justify-between", d),
134
+ ...m,
135
+ children: [
136
+ /* @__PURE__ */ r("div", { className: "space-y-1", children: [
137
+ /* @__PURE__ */ e("h1", { className: "text-2xl font-bold tracking-tight md:text-3xl", children: s }),
138
+ n && /* @__PURE__ */ e("p", { className: "text-muted-foreground", children: n })
139
+ ] }),
140
+ i && /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: i }),
141
+ o
142
+ ]
143
+ }
144
+ )
145
+ );
146
+ Ae.displayName = "PageHeader";
147
+ const ee = l.createContext(null);
148
+ function ae() {
149
+ const d = l.useContext(ee);
150
+ if (!d)
151
+ throw new Error("useDashboardLayout must be used within a DashboardLayout.");
152
+ return d;
153
+ }
154
+ const Ie = l.forwardRef(
155
+ ({
156
+ className: d,
157
+ children: s,
158
+ defaultSidebarOpen: n = !0,
159
+ defaultSidebarCollapsed: i = !1,
160
+ sidebarWidth: o = "16rem",
161
+ sidebarCollapsedWidth: m = "4rem",
162
+ ...u
163
+ }, y) => {
164
+ const h = ce(), [N, x] = l.useState(n), [b, v] = l.useState(i), g = l.useCallback(() => {
165
+ h ? x((c) => !c) : v((c) => !c);
166
+ }, [h]);
167
+ l.useEffect(() => {
168
+ const c = (p) => {
169
+ p.key === "b" && (p.metaKey || p.ctrlKey) && (p.preventDefault(), g());
170
+ };
171
+ return window.addEventListener("keydown", c), () => window.removeEventListener("keydown", c);
172
+ }, [g]);
173
+ const D = l.useMemo(
174
+ () => ({
175
+ sidebarOpen: N,
176
+ setSidebarOpen: x,
177
+ sidebarCollapsed: b,
178
+ setSidebarCollapsed: v,
179
+ isMobile: h,
180
+ toggleSidebar: g
181
+ }),
182
+ [N, b, h, g]
183
+ );
184
+ return /* @__PURE__ */ e(ee.Provider, { value: D, children: /* @__PURE__ */ e(
185
+ "div",
186
+ {
187
+ ref: y,
188
+ style: {
189
+ "--sidebar-width": o,
190
+ "--sidebar-collapsed-width": m
191
+ },
192
+ className: k("flex min-h-screen w-full bg-background", d),
193
+ ...u,
194
+ children: s
195
+ }
196
+ ) });
197
+ }
198
+ );
199
+ Ie.displayName = "DashboardLayout";
200
+ const He = l.forwardRef(
201
+ ({ className: d, children: s, ...n }, i) => {
202
+ const { sidebarOpen: o, setSidebarOpen: m, sidebarCollapsed: u, isMobile: y } = ae();
203
+ return y ? /* @__PURE__ */ e(me, { open: o, onOpenChange: m, children: /* @__PURE__ */ e(
204
+ ue,
205
+ {
206
+ side: "left",
207
+ className: "w-[var(--sidebar-width)] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",
208
+ children: /* @__PURE__ */ e("aside", { className: "flex h-full w-full flex-col", children: s })
209
+ }
210
+ ) }) : /* @__PURE__ */ e(
211
+ "aside",
212
+ {
213
+ ref: i,
214
+ "data-collapsed": u,
215
+ className: k(
216
+ "fixed inset-y-0 left-0 z-30 flex h-screen flex-col border-r bg-sidebar text-sidebar-foreground transition-[width] duration-200 ease-in-out",
217
+ u ? "w-[var(--sidebar-collapsed-width)]" : "w-[var(--sidebar-width)]",
218
+ d
219
+ ),
220
+ ...n,
221
+ children: s
222
+ }
223
+ );
224
+ }
225
+ );
226
+ He.displayName = "DashboardSidebar";
227
+ const Be = l.forwardRef(
228
+ ({ className: d, children: s, ...n }, i) => {
229
+ const { sidebarCollapsed: o, isMobile: m } = ae();
230
+ return /* @__PURE__ */ e(
231
+ "div",
232
+ {
233
+ ref: i,
234
+ className: k(
235
+ "flex flex-1 flex-col transition-[margin-left] duration-200 ease-in-out",
236
+ !m && (o ? "ml-[var(--sidebar-collapsed-width)]" : "ml-[var(--sidebar-width)]"),
237
+ d
238
+ ),
239
+ ...n,
240
+ children: s
241
+ }
242
+ );
243
+ }
244
+ );
245
+ Be.displayName = "DashboardContent";
246
+ const Ge = l.forwardRef(
247
+ ({ className: d, children: s, ...n }, i) => /* @__PURE__ */ e(
248
+ "header",
249
+ {
250
+ ref: i,
251
+ className: k(
252
+ "sticky top-0 z-20 flex h-16 items-center gap-4 border-b bg-background px-4 md:px-6",
253
+ d
254
+ ),
255
+ ...n,
256
+ children: s
257
+ }
258
+ )
259
+ );
260
+ Ge.displayName = "DashboardHeader";
261
+ const Ve = l.forwardRef(
262
+ ({ className: d, children: s, ...n }, i) => /* @__PURE__ */ e(
263
+ "main",
264
+ {
265
+ ref: i,
266
+ className: k("flex-1 overflow-auto p-4 md:p-6", d),
267
+ ...n,
268
+ children: s
269
+ }
270
+ )
271
+ );
272
+ Ve.displayName = "DashboardMain";
273
+ const Ke = l.forwardRef(
274
+ ({ className: d, children: s, ...n }, i) => /* @__PURE__ */ e(
275
+ "footer",
276
+ {
277
+ ref: i,
278
+ className: k("border-t bg-background px-4 py-4 md:px-6", d),
279
+ ...n,
280
+ children: s
281
+ }
282
+ )
283
+ );
284
+ Ke.displayName = "DashboardFooter";
285
+ const te = l.createContext(null);
286
+ function F() {
287
+ const d = l.useContext(te);
288
+ if (!d)
289
+ throw new Error("usePipeline must be used within a Pipeline component");
290
+ return d;
291
+ }
292
+ const Qe = l.forwardRef(
293
+ ({
294
+ className: d,
295
+ stages: s,
296
+ items: n,
297
+ defaultView: i = "kanban",
298
+ view: o,
299
+ onViewChange: m,
300
+ onItemMove: u,
301
+ onItemClick: y,
302
+ onItemAdd: h,
303
+ onItemEdit: N,
304
+ onItemDelete: x,
305
+ children: b,
306
+ ...v
307
+ }, g) => {
308
+ const [D, c] = l.useState(i), [p, t] = l.useState([]), [a, w] = l.useState(""), [P, T] = l.useState(), R = o ?? D, G = (C) => {
309
+ o === void 0 && c(C), m == null || m(C);
310
+ }, B = l.useMemo(() => {
311
+ if (!a) return n;
312
+ const C = a.toLowerCase();
313
+ return n.filter(
314
+ (S) => {
315
+ var L, M;
316
+ return S.title.toLowerCase().includes(C) || ((L = S.company) == null ? void 0 : L.toLowerCase().includes(C)) || ((M = S.owner) == null ? void 0 : M.name.toLowerCase().includes(C));
317
+ }
318
+ );
319
+ }, [n, a]), f = l.useMemo(
320
+ () => ({
321
+ view: R,
322
+ setView: G,
323
+ stages: s,
324
+ items: B,
325
+ selectedItems: p,
326
+ setSelectedItems: t,
327
+ onItemMove: u,
328
+ onItemClick: y,
329
+ onItemAdd: h,
330
+ onItemEdit: N,
331
+ onItemDelete: x,
332
+ searchQuery: a,
333
+ setSearchQuery: w,
334
+ groupBy: P,
335
+ setGroupBy: T
336
+ }),
337
+ [
338
+ R,
339
+ s,
340
+ B,
341
+ p,
342
+ a,
343
+ P,
344
+ u,
345
+ y,
346
+ h,
347
+ N,
348
+ x
349
+ ]
350
+ );
351
+ return /* @__PURE__ */ e(te.Provider, { value: f, children: /* @__PURE__ */ e(
352
+ "div",
353
+ {
354
+ ref: g,
355
+ className: k("flex h-full flex-col", d),
356
+ ...v,
357
+ children: b
358
+ }
359
+ ) });
360
+ }
361
+ );
362
+ Qe.displayName = "Pipeline";
363
+ const qe = l.forwardRef(
364
+ ({
365
+ className: d,
366
+ showViewSelector: s = !0,
367
+ showSearch: n = !0,
368
+ showAddButton: i = !0,
369
+ addButtonLabel: o,
370
+ onAdd: m,
371
+ title: u,
372
+ actions: y,
373
+ ...h
374
+ }, N) => {
375
+ const { view: x, setView: b, searchQuery: v, setSearchQuery: g, selectedItems: D } = F(), { t: c } = A(), p = [
376
+ { value: "kanban", icon: /* @__PURE__ */ e(Le, { className: "h-4 w-4" }), label: "Kanban" },
377
+ { value: "list", icon: /* @__PURE__ */ e(je, { className: "h-4 w-4" }), label: c("calendar.agenda") },
378
+ { value: "table", icon: /* @__PURE__ */ e(Fe, { className: "h-4 w-4" }), label: "Table" },
379
+ { value: "timeline", icon: /* @__PURE__ */ e(Se, { className: "h-4 w-4" }), label: "Timeline" }
380
+ ];
381
+ return /* @__PURE__ */ r(
382
+ "div",
383
+ {
384
+ ref: N,
385
+ className: k(
386
+ "flex flex-wrap items-center justify-between gap-4 border-b bg-background p-4",
387
+ d
388
+ ),
389
+ ...h,
390
+ children: [
391
+ /* @__PURE__ */ r("div", { className: "flex items-center gap-4", children: [
392
+ u && /* @__PURE__ */ e("h2", { className: "text-lg font-semibold", children: u }),
393
+ D.length > 0 && /* @__PURE__ */ r(O, { variant: "secondary", children: [
394
+ D.length,
395
+ " selected"
396
+ ] })
397
+ ] }),
398
+ /* @__PURE__ */ r("div", { className: "flex flex-wrap items-center gap-2", children: [
399
+ n && /* @__PURE__ */ r("div", { className: "relative", children: [
400
+ /* @__PURE__ */ e(Pe, { className: "absolute left-2.5 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
401
+ /* @__PURE__ */ e(
402
+ Ce,
403
+ {
404
+ placeholder: c("common.search"),
405
+ value: v,
406
+ onChange: (t) => g(t.target.value),
407
+ className: "h-9 w-[200px] pl-8"
408
+ }
409
+ )
410
+ ] }),
411
+ s && /* @__PURE__ */ e("div", { className: "flex items-center rounded-md border bg-muted/50 p-1", children: p.map((t) => /* @__PURE__ */ e(
412
+ j,
413
+ {
414
+ variant: x === t.value ? "secondary" : "ghost",
415
+ size: "sm",
416
+ className: "h-7 px-2",
417
+ onClick: () => b(t.value),
418
+ title: t.label,
419
+ children: t.icon
420
+ },
421
+ t.value
422
+ )) }),
423
+ /* @__PURE__ */ r(j, { variant: "outline", size: "sm", className: "h-9", children: [
424
+ /* @__PURE__ */ e(Me, { className: "mr-2 h-4 w-4" }),
425
+ c("common.filter")
426
+ ] }),
427
+ y,
428
+ i && /* @__PURE__ */ r(j, { size: "sm", className: "h-9", onClick: m, children: [
429
+ /* @__PURE__ */ e(Z, { className: "mr-2 h-4 w-4" }),
430
+ o || c("common.create")
431
+ ] })
432
+ ] })
433
+ ]
434
+ }
435
+ );
436
+ }
437
+ );
438
+ qe.displayName = "PipelineHeader";
439
+ const $e = l.forwardRef(
440
+ ({ className: d, children: s, ...n }, i) => {
441
+ const { view: o } = F();
442
+ return /* @__PURE__ */ e("div", { ref: i, className: k("flex-1 overflow-hidden", d), ...n, children: s || /* @__PURE__ */ r(oe, { children: [
443
+ o === "kanban" && /* @__PURE__ */ e(re, {}),
444
+ o === "list" && /* @__PURE__ */ e(se, {}),
445
+ o === "table" && /* @__PURE__ */ e(le, {}),
446
+ o === "timeline" && /* @__PURE__ */ e(ne, {})
447
+ ] }) });
448
+ }
449
+ );
450
+ $e.displayName = "PipelineContent";
451
+ const _e = l.memo(function({
452
+ item: s,
453
+ stageId: n,
454
+ renderItem: i,
455
+ defaultRenderItem: o,
456
+ onItemClick: m
457
+ }) {
458
+ const {
459
+ attributes: u,
460
+ listeners: y,
461
+ setNodeRef: h,
462
+ transform: N,
463
+ transition: x,
464
+ isDragging: b
465
+ } = we({
466
+ id: s.id,
467
+ data: {
468
+ type: "item",
469
+ item: s,
470
+ stageId: n
471
+ }
472
+ }), v = {
473
+ transform: ke.Transform.toString(N),
474
+ transition: x,
475
+ opacity: b ? 0.5 : 1,
476
+ cursor: "grab"
477
+ };
478
+ return /* @__PURE__ */ e(
479
+ "div",
480
+ {
481
+ ref: h,
482
+ style: v,
483
+ ...u,
484
+ ...y,
485
+ onClick: (g) => {
486
+ g.stopPropagation(), m == null || m(s);
487
+ },
488
+ children: i ? i(s, n) : o(s)
489
+ }
490
+ );
491
+ }), Je = l.memo(function({
492
+ stage: s,
493
+ items: n,
494
+ columnWidth: i,
495
+ showAddButton: o,
496
+ onItemAdd: m,
497
+ onItemClick: u,
498
+ renderItem: y,
499
+ defaultRenderItem: h,
500
+ getStageTotal: N,
501
+ formatCurrency: x,
502
+ t: b
503
+ }) {
504
+ const v = l.useMemo(() => n.map((g) => g.id), [n]);
505
+ return /* @__PURE__ */ r(
506
+ "div",
507
+ {
508
+ className: "flex shrink-0 flex-col rounded-lg bg-muted/30",
509
+ style: { width: i },
510
+ children: [
511
+ /* @__PURE__ */ r("div", { className: "flex items-center justify-between p-3 border-b", children: [
512
+ /* @__PURE__ */ r("div", { className: "flex items-center gap-2", children: [
513
+ s.color && /* @__PURE__ */ e(
514
+ "div",
515
+ {
516
+ className: "h-3 w-3 rounded-full",
517
+ style: { backgroundColor: s.color }
518
+ }
519
+ ),
520
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold", children: s.name }),
521
+ /* @__PURE__ */ e(O, { variant: "secondary", className: "text-xs", children: n.length })
522
+ ] }),
523
+ /* @__PURE__ */ r("div", { className: "flex items-center gap-1", children: [
524
+ o && m && /* @__PURE__ */ e(
525
+ j,
526
+ {
527
+ variant: "ghost",
528
+ size: "icon",
529
+ className: "h-6 w-6",
530
+ onClick: () => m(s.id),
531
+ children: /* @__PURE__ */ e(Z, { className: "h-4 w-4" })
532
+ }
533
+ ),
534
+ /* @__PURE__ */ r(K, { children: [
535
+ /* @__PURE__ */ e(Q, { asChild: !0, children: /* @__PURE__ */ e(j, { variant: "ghost", size: "icon", className: "h-6 w-6", children: /* @__PURE__ */ e(_, { className: "h-4 w-4" }) }) }),
536
+ /* @__PURE__ */ r(q, { align: "end", children: [
537
+ /* @__PURE__ */ e(z, { children: b("common.edit") }),
538
+ /* @__PURE__ */ e($, {}),
539
+ /* @__PURE__ */ e(z, { className: "text-destructive", children: b("common.delete") })
540
+ ] })
541
+ ] })
542
+ ] })
543
+ ] }),
544
+ /* @__PURE__ */ r("div", { className: "px-3 py-2 text-xs text-muted-foreground border-b", children: [
545
+ b("deal.value"),
546
+ ":",
547
+ " ",
548
+ /* @__PURE__ */ e("span", { className: "font-medium text-foreground", children: x(N(s.id), {
549
+ minimumFractionDigits: 0,
550
+ maximumFractionDigits: 0
551
+ }) })
552
+ ] }),
553
+ /* @__PURE__ */ e(I, { className: "flex-1", children: /* @__PURE__ */ r("div", { className: "flex flex-col gap-2 p-2 min-h-[100px]", children: [
554
+ /* @__PURE__ */ e(Ne, { items: v, strategy: ve, children: n.map((g) => /* @__PURE__ */ e(
555
+ _e,
556
+ {
557
+ item: g,
558
+ stageId: s.id,
559
+ renderItem: y,
560
+ defaultRenderItem: h,
561
+ onItemClick: u
562
+ },
563
+ g.id
564
+ )) }),
565
+ n.length === 0 && /* @__PURE__ */ e("div", { className: "py-8 text-center text-sm text-muted-foreground", children: b("common.noData") })
566
+ ] }) })
567
+ ]
568
+ }
569
+ );
570
+ }), re = l.forwardRef(
571
+ ({ className: d, columnWidth: s = 320, showAddButton: n = !0, renderItem: i, ...o }, m) => {
572
+ const { stages: u, items: y, onItemMove: h, onItemClick: N, onItemAdd: x } = F(), { formatCurrency: b, formatDate: v, t: g } = A(), [D, c] = l.useState(null), p = he(
573
+ W(ye, {
574
+ activationConstraint: {
575
+ delay: 150,
576
+ tolerance: 5
577
+ }
578
+ }),
579
+ W(be, {
580
+ coordinateGetter: ge
581
+ })
582
+ ), t = l.useMemo(() => {
583
+ const f = {};
584
+ return u.forEach((C) => {
585
+ f[C.id] = y.filter((S) => S.stageId === C.id);
586
+ }), f;
587
+ }, [u, y]), a = l.useCallback(
588
+ (f) => {
589
+ var C;
590
+ return ((C = t[f]) == null ? void 0 : C.reduce((S, L) => S + (L.value || 0), 0)) || 0;
591
+ },
592
+ [t]
593
+ ), w = {
594
+ low: "bg-muted text-muted-foreground",
595
+ medium: "bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200",
596
+ high: "bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200"
597
+ }, P = l.useCallback(
598
+ (f) => /* @__PURE__ */ e(X, { className: "cursor-pointer transition-all hover:shadow-md", children: /* @__PURE__ */ r(Y, { className: "p-3 space-y-2", children: [
599
+ /* @__PURE__ */ r("div", { className: "flex items-start justify-between", children: [
600
+ /* @__PURE__ */ r("div", { className: "flex-1 min-w-0", children: [
601
+ /* @__PURE__ */ e("h4", { className: "font-medium text-sm truncate", children: f.title }),
602
+ f.company && /* @__PURE__ */ e("p", { className: "text-xs text-muted-foreground truncate", children: f.company })
603
+ ] }),
604
+ f.priority && /* @__PURE__ */ e(O, { className: k("text-[10px] ml-2", w[f.priority]), children: f.priority })
605
+ ] }),
606
+ f.value !== void 0 && /* @__PURE__ */ e("div", { className: "text-sm font-semibold", children: b(f.value, { minimumFractionDigits: 0, maximumFractionDigits: 0 }) }),
607
+ /* @__PURE__ */ r("div", { className: "flex items-center justify-between text-xs text-muted-foreground", children: [
608
+ f.dueDate && /* @__PURE__ */ e("span", { children: v(f.dueDate) }),
609
+ f.owner && /* @__PURE__ */ e("span", { className: "truncate max-w-[100px]", children: f.owner.name })
610
+ ] }),
611
+ f.probability !== void 0 && /* @__PURE__ */ r("div", { className: "flex items-center gap-2", children: [
612
+ /* @__PURE__ */ e("div", { className: "flex-1 h-1.5 bg-muted rounded-full overflow-hidden", children: /* @__PURE__ */ e(
613
+ "div",
614
+ {
615
+ className: "h-full bg-primary rounded-full",
616
+ style: { width: `${f.probability}%` }
617
+ }
618
+ ) }),
619
+ /* @__PURE__ */ r("span", { className: "text-[10px] text-muted-foreground", children: [
620
+ f.probability,
621
+ "%"
622
+ ] })
623
+ ] })
624
+ ] }) }),
625
+ [b, v, w]
626
+ ), T = l.useCallback(
627
+ (f) => {
628
+ const { active: C } = f, S = C.data.current;
629
+ S != null && S.item && c(S.item);
630
+ },
631
+ []
632
+ ), R = l.useCallback((f) => {
633
+ }, []), G = l.useCallback(
634
+ (f) => {
635
+ const { active: C, over: S } = f;
636
+ if (c(null), !S) return;
637
+ const L = C.data.current, M = S.data.current;
638
+ if (!L) return;
639
+ const de = L.item, J = L.stageId;
640
+ let E = null;
641
+ if ((M == null ? void 0 : M.type) === "item")
642
+ E = M.stageId;
643
+ else if ((M == null ? void 0 : M.type) === "column")
644
+ E = M.stageId;
645
+ else {
646
+ const U = y.find((ie) => ie.id === S.id);
647
+ U && (E = U.stageId);
648
+ }
649
+ E && J !== E && (h == null || h(de.id, J, E));
650
+ },
651
+ [y, h]
652
+ ), B = l.useMemo(
653
+ () => [...u].sort((f, C) => f.order - C.order),
654
+ [u]
655
+ );
656
+ return /* @__PURE__ */ e("div", { ref: m, className: k("h-full", d), ...o, children: /* @__PURE__ */ r(
657
+ pe,
658
+ {
659
+ sensors: p,
660
+ collisionDetection: fe,
661
+ onDragStart: T,
662
+ onDragOver: R,
663
+ onDragEnd: G,
664
+ children: [
665
+ /* @__PURE__ */ r(I, { className: "h-full", children: [
666
+ /* @__PURE__ */ e("div", { className: "flex gap-4 p-4 h-full", children: B.map((f) => /* @__PURE__ */ e(
667
+ Je,
668
+ {
669
+ stage: f,
670
+ items: t[f.id] || [],
671
+ columnWidth: s,
672
+ showAddButton: n,
673
+ onItemAdd: x,
674
+ onItemClick: N,
675
+ renderItem: i,
676
+ defaultRenderItem: P,
677
+ getStageTotal: a,
678
+ formatCurrency: b,
679
+ t: g
680
+ },
681
+ f.id
682
+ )) }),
683
+ /* @__PURE__ */ e(De, { orientation: "horizontal" })
684
+ ] }),
685
+ /* @__PURE__ */ e(xe, { dropAnimation: {
686
+ duration: 200,
687
+ easing: "cubic-bezier(0.18, 0.67, 0.6, 1.22)"
688
+ }, children: D ? /* @__PURE__ */ e("div", { className: "opacity-90 shadow-xl rotate-3 scale-105", children: i ? i(D, D.stageId) : P(D) }) : null })
689
+ ]
690
+ }
691
+ ) });
692
+ }
693
+ );
694
+ re.displayName = "PipelineKanban";
695
+ const se = l.forwardRef(
696
+ ({ className: d, renderItem: s, ...n }, i) => {
697
+ const { stages: o, items: m, selectedItems: u, setSelectedItems: y, onItemClick: h, onItemEdit: N, onItemDelete: x } = F(), { formatCurrency: b, formatDate: v, t: g } = A(), D = l.useMemo(() => {
698
+ const a = {};
699
+ return o.forEach((w) => {
700
+ a[w.id] = m.filter((P) => P.stageId === w.id);
701
+ }), a;
702
+ }, [o, m]), c = (a) => {
703
+ u.includes(a) ? y(u.filter((w) => w !== a)) : y([...u, a]);
704
+ }, p = {
705
+ low: "bg-muted text-muted-foreground",
706
+ medium: "bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200",
707
+ high: "bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200"
708
+ }, t = (a, w) => /* @__PURE__ */ r(
709
+ "div",
710
+ {
711
+ className: k(
712
+ "flex items-center gap-4 rounded-lg border bg-card p-4 transition-colors hover:bg-muted/50",
713
+ u.includes(a.id) && "bg-muted/50 border-primary"
714
+ ),
715
+ children: [
716
+ /* @__PURE__ */ e(
717
+ V,
718
+ {
719
+ checked: u.includes(a.id),
720
+ onCheckedChange: () => c(a.id)
721
+ }
722
+ ),
723
+ /* @__PURE__ */ e(Re, { className: "h-4 w-4 text-muted-foreground cursor-grab" }),
724
+ /* @__PURE__ */ r("div", { className: "flex-1 min-w-0 cursor-pointer", onClick: () => h == null ? void 0 : h(a), children: [
725
+ /* @__PURE__ */ r("div", { className: "flex items-center gap-2 mb-1", children: [
726
+ /* @__PURE__ */ e("h4", { className: "font-medium truncate", children: a.title }),
727
+ a.priority && /* @__PURE__ */ e(O, { className: k("text-xs", p[a.priority]), children: a.priority })
728
+ ] }),
729
+ /* @__PURE__ */ r("div", { className: "flex items-center gap-4 text-sm text-muted-foreground", children: [
730
+ a.company && /* @__PURE__ */ e("span", { children: a.company }),
731
+ a.owner && /* @__PURE__ */ e("span", { children: a.owner.name })
732
+ ] })
733
+ ] }),
734
+ /* @__PURE__ */ r("div", { className: "flex items-center gap-4", children: [
735
+ /* @__PURE__ */ r("div", { className: "flex items-center gap-2", children: [
736
+ w.color && /* @__PURE__ */ e(
737
+ "div",
738
+ {
739
+ className: "h-2 w-2 rounded-full",
740
+ style: { backgroundColor: w.color }
741
+ }
742
+ ),
743
+ /* @__PURE__ */ e("span", { className: "text-sm", children: w.name })
744
+ ] }),
745
+ a.value !== void 0 && /* @__PURE__ */ e("div", { className: "font-semibold min-w-[100px] text-right", children: b(a.value, { minimumFractionDigits: 0, maximumFractionDigits: 0 }) }),
746
+ a.dueDate && /* @__PURE__ */ e("div", { className: "text-sm text-muted-foreground min-w-[100px]", children: v(a.dueDate) }),
747
+ /* @__PURE__ */ r(K, { children: [
748
+ /* @__PURE__ */ e(Q, { asChild: !0, children: /* @__PURE__ */ e(j, { variant: "ghost", size: "icon", className: "h-8 w-8", children: /* @__PURE__ */ e(_, { className: "h-4 w-4" }) }) }),
749
+ /* @__PURE__ */ r(q, { align: "end", children: [
750
+ /* @__PURE__ */ e(z, { onClick: () => N == null ? void 0 : N(a), children: g("common.edit") }),
751
+ /* @__PURE__ */ e($, {}),
752
+ /* @__PURE__ */ e(
753
+ z,
754
+ {
755
+ className: "text-destructive",
756
+ onClick: () => x == null ? void 0 : x(a.id),
757
+ children: g("common.delete")
758
+ }
759
+ )
760
+ ] })
761
+ ] })
762
+ ] })
763
+ ]
764
+ }
765
+ );
766
+ return /* @__PURE__ */ e("div", { ref: i, className: k("h-full", d), ...n, children: /* @__PURE__ */ e(I, { className: "h-full", children: /* @__PURE__ */ e("div", { className: "p-4 space-y-6", children: o.sort((a, w) => a.order - w.order).map((a) => {
767
+ var w, P, T;
768
+ return /* @__PURE__ */ r("div", { children: [
769
+ /* @__PURE__ */ r("div", { className: "flex items-center gap-2 mb-3", children: [
770
+ a.color && /* @__PURE__ */ e(
771
+ "div",
772
+ {
773
+ className: "h-3 w-3 rounded-full",
774
+ style: { backgroundColor: a.color }
775
+ }
776
+ ),
777
+ /* @__PURE__ */ e("h3", { className: "font-semibold", children: a.name }),
778
+ /* @__PURE__ */ e(O, { variant: "secondary", children: ((w = D[a.id]) == null ? void 0 : w.length) || 0 })
779
+ ] }),
780
+ /* @__PURE__ */ r("div", { className: "space-y-2", children: [
781
+ (P = D[a.id]) == null ? void 0 : P.map(
782
+ (R) => s ? /* @__PURE__ */ e("div", { children: s(R) }, R.id) : /* @__PURE__ */ e("div", { children: t(R, a) }, R.id)
783
+ ),
784
+ ((T = D[a.id]) == null ? void 0 : T.length) === 0 && /* @__PURE__ */ e("div", { className: "py-4 text-center text-sm text-muted-foreground border rounded-lg", children: g("common.noData") })
785
+ ] })
786
+ ] }, a.id);
787
+ }) }) }) });
788
+ }
789
+ );
790
+ se.displayName = "PipelineList";
791
+ const le = l.forwardRef(
792
+ ({ className: d, ...s }, n) => {
793
+ const {
794
+ stages: i,
795
+ items: o,
796
+ selectedItems: m,
797
+ setSelectedItems: u,
798
+ onItemClick: y,
799
+ onItemEdit: h,
800
+ onItemDelete: N
801
+ } = F(), { formatCurrency: x, formatDate: b, t: v } = A(), g = l.useMemo(() => {
802
+ const t = {};
803
+ return i.forEach((a) => {
804
+ t[a.id] = a;
805
+ }), t;
806
+ }, [i]), D = () => {
807
+ m.length === o.length ? u([]) : u(o.map((t) => t.id));
808
+ }, c = (t) => {
809
+ m.includes(t) ? u(m.filter((a) => a !== t)) : u([...m, t]);
810
+ }, p = {
811
+ low: "bg-muted text-muted-foreground",
812
+ medium: "bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200",
813
+ high: "bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200"
814
+ };
815
+ return /* @__PURE__ */ e("div", { ref: n, className: k("h-full", d), ...s, children: /* @__PURE__ */ e(I, { className: "h-full", children: /* @__PURE__ */ e("div", { className: "p-4", children: /* @__PURE__ */ e("div", { className: "rounded-lg border", children: /* @__PURE__ */ r("table", { className: "w-full", children: [
816
+ /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ r("tr", { className: "border-b bg-muted/50", children: [
817
+ /* @__PURE__ */ e("th", { className: "w-[40px] p-3", children: /* @__PURE__ */ e(
818
+ V,
819
+ {
820
+ checked: m.length === o.length && o.length > 0,
821
+ onCheckedChange: D
822
+ }
823
+ ) }),
824
+ /* @__PURE__ */ e("th", { className: "text-left p-3 font-medium text-sm", children: "Title" }),
825
+ /* @__PURE__ */ e("th", { className: "text-left p-3 font-medium text-sm", children: "Company" }),
826
+ /* @__PURE__ */ e("th", { className: "text-left p-3 font-medium text-sm", children: v("deal.stage") }),
827
+ /* @__PURE__ */ e("th", { className: "text-right p-3 font-medium text-sm", children: v("deal.value") }),
828
+ /* @__PURE__ */ e("th", { className: "text-center p-3 font-medium text-sm", children: v("deal.probability") }),
829
+ /* @__PURE__ */ e("th", { className: "text-left p-3 font-medium text-sm", children: "Owner" }),
830
+ /* @__PURE__ */ e("th", { className: "text-left p-3 font-medium text-sm", children: v("deal.closeDate") }),
831
+ /* @__PURE__ */ e("th", { className: "text-left p-3 font-medium text-sm", children: "Priority" }),
832
+ /* @__PURE__ */ e("th", { className: "w-[60px] p-3" })
833
+ ] }) }),
834
+ /* @__PURE__ */ r("tbody", { children: [
835
+ o.map((t) => {
836
+ var w;
837
+ const a = g[t.stageId];
838
+ return /* @__PURE__ */ r(
839
+ "tr",
840
+ {
841
+ className: k(
842
+ "border-b transition-colors hover:bg-muted/50",
843
+ m.includes(t.id) && "bg-muted/50"
844
+ ),
845
+ children: [
846
+ /* @__PURE__ */ e("td", { className: "p-3", children: /* @__PURE__ */ e(
847
+ V,
848
+ {
849
+ checked: m.includes(t.id),
850
+ onCheckedChange: () => c(t.id)
851
+ }
852
+ ) }),
853
+ /* @__PURE__ */ e(
854
+ "td",
855
+ {
856
+ className: "p-3 font-medium cursor-pointer",
857
+ onClick: () => y == null ? void 0 : y(t),
858
+ children: t.title
859
+ }
860
+ ),
861
+ /* @__PURE__ */ e("td", { className: "p-3 text-muted-foreground", children: t.company }),
862
+ /* @__PURE__ */ e("td", { className: "p-3", children: /* @__PURE__ */ r("div", { className: "flex items-center gap-2", children: [
863
+ (a == null ? void 0 : a.color) && /* @__PURE__ */ e(
864
+ "div",
865
+ {
866
+ className: "h-2 w-2 rounded-full",
867
+ style: { backgroundColor: a.color }
868
+ }
869
+ ),
870
+ /* @__PURE__ */ e("span", { children: a == null ? void 0 : a.name })
871
+ ] }) }),
872
+ /* @__PURE__ */ e("td", { className: "p-3 text-right font-medium", children: t.value !== void 0 ? x(t.value, {
873
+ minimumFractionDigits: 0,
874
+ maximumFractionDigits: 0
875
+ }) : "-" }),
876
+ /* @__PURE__ */ e("td", { className: "p-3 text-center", children: t.probability !== void 0 ? `${t.probability}%` : "-" }),
877
+ /* @__PURE__ */ e("td", { className: "p-3 text-muted-foreground", children: ((w = t.owner) == null ? void 0 : w.name) || "-" }),
878
+ /* @__PURE__ */ e("td", { className: "p-3 text-muted-foreground", children: t.dueDate ? b(t.dueDate) : "-" }),
879
+ /* @__PURE__ */ e("td", { className: "p-3", children: t.priority && /* @__PURE__ */ e(O, { className: k("text-xs", p[t.priority]), children: t.priority }) }),
880
+ /* @__PURE__ */ e("td", { className: "p-3", children: /* @__PURE__ */ r(K, { children: [
881
+ /* @__PURE__ */ e(Q, { asChild: !0, children: /* @__PURE__ */ e(j, { variant: "ghost", size: "icon", className: "h-8 w-8", children: /* @__PURE__ */ e(_, { className: "h-4 w-4" }) }) }),
882
+ /* @__PURE__ */ r(q, { align: "end", children: [
883
+ /* @__PURE__ */ e(z, { onClick: () => h == null ? void 0 : h(t), children: v("common.edit") }),
884
+ /* @__PURE__ */ e($, {}),
885
+ /* @__PURE__ */ e(
886
+ z,
887
+ {
888
+ className: "text-destructive",
889
+ onClick: () => N == null ? void 0 : N(t.id),
890
+ children: v("common.delete")
891
+ }
892
+ )
893
+ ] })
894
+ ] }) })
895
+ ]
896
+ },
897
+ t.id
898
+ );
899
+ }),
900
+ o.length === 0 && /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: 10, className: "p-8 text-center text-muted-foreground", children: v("common.noData") }) })
901
+ ] })
902
+ ] }) }) }) }) });
903
+ }
904
+ );
905
+ le.displayName = "PipelineTable";
906
+ const ne = l.forwardRef(
907
+ ({ className: d, ...s }, n) => {
908
+ const { stages: i, items: o, onItemClick: m } = F(), { formatCurrency: u, formatDate: y, t: h } = A(), N = l.useMemo(() => {
909
+ const c = {};
910
+ return (/* @__PURE__ */ new Date()).setHours(0, 0, 0, 0), o.filter((t) => t.dueDate).sort((t, a) => {
911
+ const w = new Date(t.dueDate), P = new Date(a.dueDate);
912
+ return w.getTime() - P.getTime();
913
+ }).forEach((t) => {
914
+ const w = new Date(t.dueDate).toISOString().split("T")[0];
915
+ c[w] || (c[w] = []), c[w].push(t);
916
+ }), c;
917
+ }, [o]), x = l.useMemo(() => {
918
+ const c = {};
919
+ return i.forEach((p) => {
920
+ c[p.id] = p;
921
+ }), c;
922
+ }, [i]), b = Object.keys(N).sort(), v = (/* @__PURE__ */ new Date()).toISOString().split("T")[0], g = (c) => {
923
+ const p = new Date(c), t = /* @__PURE__ */ new Date();
924
+ t.setHours(0, 0, 0, 0);
925
+ const a = Math.ceil((p.getTime() - t.getTime()) / (1e3 * 60 * 60 * 24));
926
+ return a === 0 ? h("date.today") : a === 1 ? h("date.tomorrow") : a === -1 ? h("date.yesterday") : y(p, "EEEE, MMMM d");
927
+ }, D = (c) => c < v;
928
+ return /* @__PURE__ */ e("div", { ref: n, className: k("h-full", d), ...s, children: /* @__PURE__ */ e(I, { className: "h-full", children: /* @__PURE__ */ e("div", { className: "p-4", children: b.length === 0 ? /* @__PURE__ */ e("div", { className: "py-12 text-center text-muted-foreground", children: h("common.noData") }) : /* @__PURE__ */ e("div", { className: "relative space-y-8 before:absolute before:inset-0 before:ml-5 before:h-full before:w-0.5 before:-translate-x-px before:bg-border md:before:mx-auto md:before:translate-x-0", children: b.map((c) => /* @__PURE__ */ r("div", { className: "relative flex items-start gap-6 md:gap-12", children: [
929
+ /* @__PURE__ */ e("div", { className: "flex items-center justify-center w-10 h-10 rounded-full bg-background border-2 border-muted shrink-0 md:order-1 md:mx-auto", children: /* @__PURE__ */ e(
930
+ "div",
931
+ {
932
+ className: k(
933
+ "w-3 h-3 rounded-full",
934
+ D(c) ? "bg-destructive" : "bg-primary"
935
+ )
936
+ }
937
+ ) }),
938
+ /* @__PURE__ */ r("div", { className: "hidden md:block md:w-1/2 md:text-right md:pr-8", children: [
939
+ /* @__PURE__ */ e(
940
+ "span",
941
+ {
942
+ className: k(
943
+ "font-semibold",
944
+ D(c) && "text-destructive"
945
+ ),
946
+ children: g(c)
947
+ }
948
+ ),
949
+ /* @__PURE__ */ r("span", { className: "block text-sm text-muted-foreground", children: [
950
+ N[c].length,
951
+ " item(s)"
952
+ ] })
953
+ ] }),
954
+ /* @__PURE__ */ r("div", { className: "flex-1 md:w-1/2 md:pl-8", children: [
955
+ /* @__PURE__ */ e("div", { className: "md:hidden mb-2", children: /* @__PURE__ */ e(
956
+ "span",
957
+ {
958
+ className: k(
959
+ "font-semibold",
960
+ D(c) && "text-destructive"
961
+ ),
962
+ children: g(c)
963
+ }
964
+ ) }),
965
+ /* @__PURE__ */ e("div", { className: "space-y-3", children: N[c].map((p) => {
966
+ const t = x[p.stageId];
967
+ return /* @__PURE__ */ e(
968
+ X,
969
+ {
970
+ className: "cursor-pointer hover:shadow-md transition-shadow",
971
+ onClick: () => m == null ? void 0 : m(p),
972
+ children: /* @__PURE__ */ r(Y, { className: "p-4", children: [
973
+ /* @__PURE__ */ r("div", { className: "flex items-start justify-between gap-4", children: [
974
+ /* @__PURE__ */ r("div", { className: "min-w-0 flex-1", children: [
975
+ /* @__PURE__ */ e("h4", { className: "font-medium truncate", children: p.title }),
976
+ p.company && /* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground", children: p.company })
977
+ ] }),
978
+ p.value !== void 0 && /* @__PURE__ */ e("div", { className: "font-semibold", children: u(p.value, {
979
+ minimumFractionDigits: 0,
980
+ maximumFractionDigits: 0
981
+ }) })
982
+ ] }),
983
+ /* @__PURE__ */ r("div", { className: "flex items-center gap-3 mt-3 text-sm", children: [
984
+ t && /* @__PURE__ */ r("div", { className: "flex items-center gap-1.5", children: [
985
+ t.color && /* @__PURE__ */ e(
986
+ "div",
987
+ {
988
+ className: "h-2 w-2 rounded-full",
989
+ style: { backgroundColor: t.color }
990
+ }
991
+ ),
992
+ /* @__PURE__ */ e("span", { children: t.name })
993
+ ] }),
994
+ p.owner && /* @__PURE__ */ e("span", { className: "text-muted-foreground", children: p.owner.name })
995
+ ] })
996
+ ] })
997
+ },
998
+ p.id
999
+ );
1000
+ }) })
1001
+ ] })
1002
+ ] }, c)) }) }) }) });
1003
+ }
1004
+ );
1005
+ ne.displayName = "PipelineTimeline";
1006
+ const Ue = l.forwardRef(
1007
+ ({ className: d, ...s }, n) => {
1008
+ const { stages: i, items: o } = F(), { formatCurrency: m, t: u } = A(), y = o.reduce((x, b) => x + (b.value || 0), 0), h = o.length, N = l.useMemo(() => i.map((x) => {
1009
+ const b = o.filter((g) => g.stageId === x.id), v = b.reduce((g, D) => g + (D.value || 0), 0);
1010
+ return {
1011
+ ...x,
1012
+ count: b.length,
1013
+ value: v
1014
+ };
1015
+ }), [i, o]);
1016
+ return /* @__PURE__ */ e(
1017
+ "div",
1018
+ {
1019
+ ref: n,
1020
+ className: k("border-t bg-muted/30 px-4 py-3", d),
1021
+ ...s,
1022
+ children: /* @__PURE__ */ r("div", { className: "flex flex-wrap items-center justify-between gap-4", children: [
1023
+ /* @__PURE__ */ r("div", { className: "flex items-center gap-6", children: [
1024
+ /* @__PURE__ */ r("div", { children: [
1025
+ /* @__PURE__ */ e("span", { className: "text-sm text-muted-foreground", children: u("common.total") }),
1026
+ /* @__PURE__ */ e("div", { className: "font-semibold", children: m(y, { minimumFractionDigits: 0, maximumFractionDigits: 0 }) })
1027
+ ] }),
1028
+ /* @__PURE__ */ r("div", { children: [
1029
+ /* @__PURE__ */ e("span", { className: "text-sm text-muted-foreground", children: u("common.items") }),
1030
+ /* @__PURE__ */ e("div", { className: "font-semibold", children: h })
1031
+ ] })
1032
+ ] }),
1033
+ /* @__PURE__ */ e("div", { className: "flex items-center gap-4", children: N.map((x) => /* @__PURE__ */ r("div", { className: "flex items-center gap-2 text-sm", children: [
1034
+ x.color && /* @__PURE__ */ e(
1035
+ "div",
1036
+ {
1037
+ className: "h-2 w-2 rounded-full",
1038
+ style: { backgroundColor: x.color }
1039
+ }
1040
+ ),
1041
+ /* @__PURE__ */ r("span", { className: "text-muted-foreground", children: [
1042
+ x.name,
1043
+ ":"
1044
+ ] }),
1045
+ /* @__PURE__ */ e("span", { className: "font-medium", children: x.count })
1046
+ ] }, x.id)) })
1047
+ ] })
1048
+ }
1049
+ );
1050
+ }
1051
+ );
1052
+ Ue.displayName = "PipelineSummary";
1053
+ export {
1054
+ Te as A,
1055
+ Ie as D,
1056
+ Ae as P,
1057
+ Ee as a,
1058
+ Oe as b,
1059
+ ze as c,
1060
+ He as d,
1061
+ Be as e,
1062
+ Ge as f,
1063
+ Ve as g,
1064
+ Ke as h,
1065
+ F as i,
1066
+ Qe as j,
1067
+ qe as k,
1068
+ $e as l,
1069
+ re as m,
1070
+ se as n,
1071
+ le as o,
1072
+ ne as p,
1073
+ Ue as q,
1074
+ ae as u
1075
+ };
1076
+ //# sourceMappingURL=pipeline-DqWvleNy.js.map