erp-pro-ui 0.1.1 → 0.1.2

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 (400) hide show
  1. package/README.md +512 -288
  2. package/dist/accordion.cjs +1 -1
  3. package/dist/accordion.mjs +1 -1
  4. package/dist/alert.cjs +1 -1
  5. package/dist/alert.mjs +1 -1
  6. package/dist/ascii-text.cjs +1 -1
  7. package/dist/ascii-text.mjs +1 -1
  8. package/dist/button.cjs +1 -1
  9. package/dist/button.mjs +1 -1
  10. package/dist/card.cjs +1 -1
  11. package/dist/card.mjs +1 -1
  12. package/dist/carousel.cjs +1 -1
  13. package/dist/carousel.mjs +1 -1
  14. package/dist/catalog.cjs +6 -0
  15. package/dist/catalog.cjs.map +1 -1
  16. package/dist/catalog.d.ts +11 -1
  17. package/dist/catalog.d.ts.map +1 -1
  18. package/dist/catalog.mjs +6 -0
  19. package/dist/catalog.mjs.map +1 -1
  20. package/dist/charts.cjs +4 -1
  21. package/dist/charts.mjs +2 -2
  22. package/dist/checkbox.cjs +1 -1
  23. package/dist/checkbox.mjs +1 -1
  24. package/dist/chip.cjs +1 -1
  25. package/dist/chip.mjs +1 -1
  26. package/dist/chroma-grid.cjs +1 -1
  27. package/dist/chroma-grid.mjs +1 -1
  28. package/dist/chunks/{accordion-C_0oGZkZ.mjs → accordion-Cbt-SJhj.mjs} +4 -4
  29. package/dist/chunks/accordion-Cbt-SJhj.mjs.map +1 -0
  30. package/dist/chunks/{accordion-BZ5hyz0_.cjs → accordion-pfJR8YYA.cjs} +4 -4
  31. package/dist/chunks/accordion-pfJR8YYA.cjs.map +1 -0
  32. package/dist/chunks/{alert-DeVa-NR1.mjs → alert-CtdLy4Hv.mjs} +6 -6
  33. package/dist/chunks/alert-CtdLy4Hv.mjs.map +1 -0
  34. package/dist/chunks/{alert-BdBDWqBN.cjs → alert-Dvz1GoL5.cjs} +6 -6
  35. package/dist/chunks/alert-Dvz1GoL5.cjs.map +1 -0
  36. package/dist/chunks/{ascii-text-BzQCLfya.mjs → ascii-text-C5tyNsR3.mjs} +32 -5
  37. package/dist/chunks/ascii-text-C5tyNsR3.mjs.map +1 -0
  38. package/dist/chunks/{ascii-text-D6lVHWph.cjs → ascii-text-DlmArZXh.cjs} +32 -5
  39. package/dist/chunks/ascii-text-DlmArZXh.cjs.map +1 -0
  40. package/dist/chunks/background-gradient-animation-BL-lnrJe.mjs.map +1 -1
  41. package/dist/chunks/background-gradient-animation-CXV9GDH8.cjs.map +1 -1
  42. package/dist/chunks/{button-CmNEMp_O.mjs → button-B0Lhj0AS.mjs} +3 -3
  43. package/dist/chunks/button-B0Lhj0AS.mjs.map +1 -0
  44. package/dist/chunks/{button-BH1eUjae.cjs → button-CZL6kFzT.cjs} +3 -3
  45. package/dist/chunks/button-CZL6kFzT.cjs.map +1 -0
  46. package/dist/chunks/{card-CzstAQYy.mjs → card-CcIF6z2H.mjs} +2 -2
  47. package/dist/chunks/card-CcIF6z2H.mjs.map +1 -0
  48. package/dist/chunks/{card-DZGM4zLx.cjs → card-gt-HZh0h.cjs} +2 -2
  49. package/dist/chunks/card-gt-HZh0h.cjs.map +1 -0
  50. package/dist/chunks/{carousel-47Eiyzwg.cjs → carousel-Cq5uwqQt.cjs} +3 -3
  51. package/dist/chunks/{carousel-BJ3nm2bw.mjs.map → carousel-Cq5uwqQt.cjs.map} +1 -1
  52. package/dist/chunks/{carousel-BJ3nm2bw.mjs → carousel-DJdqBVRK.mjs} +3 -3
  53. package/dist/chunks/{carousel-47Eiyzwg.cjs.map → carousel-DJdqBVRK.mjs.map} +1 -1
  54. package/dist/chunks/charts-BpElnsoR.cjs +687 -0
  55. package/dist/chunks/charts-BpElnsoR.cjs.map +1 -0
  56. package/dist/chunks/charts-DugYWvEf.mjs +632 -0
  57. package/dist/chunks/charts-DugYWvEf.mjs.map +1 -0
  58. package/dist/chunks/{checkbox-B3eIojWs.mjs → checkbox-DvwlGwWe.mjs} +8 -8
  59. package/dist/chunks/checkbox-DvwlGwWe.mjs.map +1 -0
  60. package/dist/chunks/{checkbox-DQmZwRTt.cjs → checkbox-yHuSw-hV.cjs} +8 -8
  61. package/dist/chunks/checkbox-yHuSw-hV.cjs.map +1 -0
  62. package/dist/chunks/{chip-cZ7-HmWw.mjs → chip-BGSUmnlO.mjs} +12 -12
  63. package/dist/chunks/chip-BGSUmnlO.mjs.map +1 -0
  64. package/dist/chunks/{chip-BH6wzwat.cjs → chip-DcBji__g.cjs} +12 -12
  65. package/dist/chunks/chip-DcBji__g.cjs.map +1 -0
  66. package/dist/chunks/{chroma-grid-DtsqM4LW.cjs → chroma-grid-9E9j1s9I.cjs} +10 -10
  67. package/dist/chunks/chroma-grid-9E9j1s9I.cjs.map +1 -0
  68. package/dist/chunks/{chroma-grid-CC_fFzxO.mjs → chroma-grid-Cdeql_2C.mjs} +10 -10
  69. package/dist/chunks/chroma-grid-Cdeql_2C.mjs.map +1 -0
  70. package/dist/chunks/color-palette-BLvDnCOD.cjs +754 -0
  71. package/dist/chunks/color-palette-BLvDnCOD.cjs.map +1 -0
  72. package/dist/chunks/color-palette-CXlCDiZz.mjs +748 -0
  73. package/dist/chunks/color-palette-CXlCDiZz.mjs.map +1 -0
  74. package/dist/chunks/{combobox-mAvOcg-E.cjs → combobox-BXu3s0dt.cjs} +56 -32
  75. package/dist/chunks/combobox-BXu3s0dt.cjs.map +1 -0
  76. package/dist/chunks/combobox-CjK-qG4k.mjs +132 -0
  77. package/dist/chunks/combobox-CjK-qG4k.mjs.map +1 -0
  78. package/dist/chunks/{data-table-BRcGhJDf.cjs → data-table-9HELVsYR.cjs} +197 -292
  79. package/dist/chunks/data-table-9HELVsYR.cjs.map +1 -0
  80. package/dist/chunks/{data-table-Dp0t_I_z.mjs → data-table-DyEQn9Yj.mjs} +197 -292
  81. package/dist/chunks/data-table-DyEQn9Yj.mjs.map +1 -0
  82. package/dist/chunks/{date-picker-BWBkr6LG.mjs → date-picker-D8gaaMlJ.mjs} +39 -16
  83. package/dist/chunks/date-picker-D8gaaMlJ.mjs.map +1 -0
  84. package/dist/chunks/{date-picker-DooielHi.cjs → date-picker-W9om1j7A.cjs} +39 -16
  85. package/dist/chunks/date-picker-W9om1j7A.cjs.map +1 -0
  86. package/dist/chunks/{dialog-Cbuf8V0g.cjs → dialog-CYFiWN8M.cjs} +20 -20
  87. package/dist/chunks/dialog-CYFiWN8M.cjs.map +1 -0
  88. package/dist/chunks/{dialog-C6nxSfIl.mjs → dialog-DUWnV9tN.mjs} +20 -20
  89. package/dist/chunks/dialog-DUWnV9tN.mjs.map +1 -0
  90. package/dist/chunks/{drawer-Dn0u8Sck.cjs → drawer-CLjsYdxN.cjs} +39 -22
  91. package/dist/chunks/drawer-CLjsYdxN.cjs.map +1 -0
  92. package/dist/chunks/drawer-D82Jz6KO.mjs +122 -0
  93. package/dist/chunks/drawer-D82Jz6KO.mjs.map +1 -0
  94. package/dist/chunks/{form-TwlDrshv.mjs → form-B2vcaHwh.mjs} +4 -4
  95. package/dist/chunks/form-B2vcaHwh.mjs.map +1 -0
  96. package/dist/chunks/{form-DcEuk721.cjs → form-CzH9GQc6.cjs} +4 -4
  97. package/dist/chunks/form-CzH9GQc6.cjs.map +1 -0
  98. package/dist/chunks/{gradual-blur-2jVhPcND.cjs → gradual-blur-B9GoY8o1.cjs} +1 -1
  99. package/dist/chunks/{gradual-blur-2jVhPcND.cjs.map → gradual-blur-B9GoY8o1.cjs.map} +1 -1
  100. package/dist/chunks/{gradual-blur-jTzKCmAV.mjs → gradual-blur-Bl3dOMEz.mjs} +1 -1
  101. package/dist/chunks/{gradual-blur-jTzKCmAV.mjs.map → gradual-blur-Bl3dOMEz.mjs.map} +1 -1
  102. package/dist/chunks/{hover-card-KjWMnvt_.cjs → hover-card-v0QwmVBU.cjs} +9 -4
  103. package/dist/chunks/hover-card-v0QwmVBU.cjs.map +1 -0
  104. package/dist/chunks/{hover-card-DwTVfjgN.mjs → hover-card-xqwpmZNm.mjs} +9 -4
  105. package/dist/chunks/{hover-card-KjWMnvt_.cjs.map → hover-card-xqwpmZNm.mjs.map} +1 -1
  106. package/dist/chunks/{icons-DYkpqWYG.cjs → icons-BxIzP2jd.cjs} +131 -8
  107. package/dist/chunks/icons-BxIzP2jd.cjs.map +1 -0
  108. package/dist/chunks/{icons-CrM6pFkv.mjs → icons-DuumN7z-.mjs} +108 -9
  109. package/dist/chunks/icons-DuumN7z-.mjs.map +1 -0
  110. package/dist/chunks/{input-CoRHoZkB.cjs → input-D9qZNqXV.cjs} +8 -8
  111. package/dist/chunks/input-D9qZNqXV.cjs.map +1 -0
  112. package/dist/chunks/{input-ChhwdNGk.mjs → input-wNqevfQ4.mjs} +8 -8
  113. package/dist/chunks/input-wNqevfQ4.mjs.map +1 -0
  114. package/dist/chunks/{label-EciNc4hO.cjs → label-BWPEGVam.cjs} +1 -1
  115. package/dist/chunks/{label-EciNc4hO.cjs.map → label-BWPEGVam.cjs.map} +1 -1
  116. package/dist/chunks/{label-JZn7PmtR.mjs → label-KPA-yYOF.mjs} +1 -1
  117. package/dist/chunks/{label-JZn7PmtR.mjs.map → label-KPA-yYOF.mjs.map} +1 -1
  118. package/dist/chunks/{loading-DPNa_X3c.mjs → loading-S1TdIrbB.mjs} +2 -2
  119. package/dist/chunks/{loading-DPNa_X3c.mjs.map → loading-S1TdIrbB.mjs.map} +1 -1
  120. package/dist/chunks/{loading-Cqgps3nf.cjs → loading-q7IEg56I.cjs} +2 -2
  121. package/dist/chunks/{loading-Cqgps3nf.cjs.map → loading-q7IEg56I.cjs.map} +1 -1
  122. package/dist/chunks/multi-select-combobox-ELSH_Xr4.mjs +132 -0
  123. package/dist/chunks/multi-select-combobox-ELSH_Xr4.mjs.map +1 -0
  124. package/dist/chunks/multi-select-combobox-UW0X15W7.cjs +139 -0
  125. package/dist/chunks/multi-select-combobox-UW0X15W7.cjs.map +1 -0
  126. package/dist/chunks/{otp-input-DaQDfI9C.cjs → otp-input-B6zzOEqw.cjs} +13 -14
  127. package/dist/chunks/otp-input-B6zzOEqw.cjs.map +1 -0
  128. package/dist/chunks/{otp-input-CNungc1j.mjs → otp-input-Bg4nQG6x.mjs} +13 -14
  129. package/dist/chunks/otp-input-Bg4nQG6x.mjs.map +1 -0
  130. package/dist/chunks/{overlay-BfUR77DT.cjs → overlay-DWNTyQzK.cjs} +1 -1
  131. package/dist/chunks/{overlay-BfUR77DT.cjs.map → overlay-DWNTyQzK.cjs.map} +1 -1
  132. package/dist/chunks/{overlay-CpdakhXI.mjs → overlay-TycCIFOu.mjs} +1 -1
  133. package/dist/chunks/{overlay-CpdakhXI.mjs.map → overlay-TycCIFOu.mjs.map} +1 -1
  134. package/dist/chunks/{password-strength-meter-xtMqhhFg.mjs → password-strength-meter-CbNSBuh_.mjs} +10 -10
  135. package/dist/chunks/password-strength-meter-CbNSBuh_.mjs.map +1 -0
  136. package/dist/chunks/{password-strength-meter-u4YI00zE.cjs → password-strength-meter-DxMV6GAs.cjs} +10 -10
  137. package/dist/chunks/password-strength-meter-DxMV6GAs.cjs.map +1 -0
  138. package/dist/chunks/progress-bar-C1OvQ-NI.cjs +96 -0
  139. package/dist/chunks/progress-bar-C1OvQ-NI.cjs.map +1 -0
  140. package/dist/chunks/progress-bar-C9FZDrju.mjs +89 -0
  141. package/dist/chunks/progress-bar-C9FZDrju.mjs.map +1 -0
  142. package/dist/chunks/{radio-C-fPZgSY.mjs → radio-C9w_CoiY.mjs} +9 -9
  143. package/dist/chunks/radio-C9w_CoiY.mjs.map +1 -0
  144. package/dist/chunks/{radio-mCgvEhOR.cjs → radio-jMHDvaMY.cjs} +9 -9
  145. package/dist/chunks/radio-jMHDvaMY.cjs.map +1 -0
  146. package/dist/chunks/select-D71tk6-I.mjs +152 -0
  147. package/dist/chunks/select-D71tk6-I.mjs.map +1 -0
  148. package/dist/chunks/select-WC_kPqUP.cjs +158 -0
  149. package/dist/chunks/select-WC_kPqUP.cjs.map +1 -0
  150. package/dist/chunks/{skeleton-D1S4RyeL.mjs → skeleton-BhYWOp0Q.mjs} +1 -1
  151. package/dist/chunks/{skeleton-D1S4RyeL.mjs.map → skeleton-BhYWOp0Q.mjs.map} +1 -1
  152. package/dist/chunks/{skeleton-C-NHrM-w.cjs → skeleton-DTXpHYYB.cjs} +1 -1
  153. package/dist/chunks/{skeleton-C-NHrM-w.cjs.map → skeleton-DTXpHYYB.cjs.map} +1 -1
  154. package/dist/chunks/{spinners-hf553hP9.mjs → spinners-BBCWD2gw.mjs} +2 -2
  155. package/dist/chunks/{spinners-hf553hP9.mjs.map → spinners-BBCWD2gw.mjs.map} +1 -1
  156. package/dist/chunks/{spinners-CU3bLaoo.cjs → spinners-BL4ERCCw.cjs} +2 -2
  157. package/dist/chunks/{spinners-CU3bLaoo.cjs.map → spinners-BL4ERCCw.cjs.map} +1 -1
  158. package/dist/chunks/{splash-cursor-Dpzl_YXx.cjs → splash-cursor-BVSmbcIX.cjs} +9 -8
  159. package/dist/chunks/splash-cursor-BVSmbcIX.cjs.map +1 -0
  160. package/dist/chunks/{splash-cursor-9BsoQZl0.mjs → splash-cursor-rSrTnawZ.mjs} +9 -8
  161. package/dist/chunks/splash-cursor-rSrTnawZ.mjs.map +1 -0
  162. package/dist/chunks/{spotlight-card-Bl0aXnT4.mjs → spotlight-card-BpZLMOp6.mjs} +1 -1
  163. package/dist/chunks/{spotlight-card-Bl0aXnT4.mjs.map → spotlight-card-BpZLMOp6.mjs.map} +1 -1
  164. package/dist/chunks/{spotlight-card-SUhrgstF.cjs → spotlight-card-DS1dy1W3.cjs} +1 -1
  165. package/dist/chunks/{spotlight-card-SUhrgstF.cjs.map → spotlight-card-DS1dy1W3.cjs.map} +1 -1
  166. package/dist/chunks/{stepper-uz8iRzlY.mjs → stepper-D4yQsQB0.mjs} +14 -14
  167. package/dist/chunks/stepper-D4yQsQB0.mjs.map +1 -0
  168. package/dist/chunks/{stepper-BDz6PkjV.cjs → stepper-fY-Sx72k.cjs} +14 -14
  169. package/dist/chunks/stepper-fY-Sx72k.cjs.map +1 -0
  170. package/dist/chunks/{sun-to-moon-button-3E6qah0o.mjs → sun-to-moon-button-B2Aje05o.mjs} +3 -3
  171. package/dist/chunks/{sun-to-moon-button-3E6qah0o.mjs.map → sun-to-moon-button-B2Aje05o.mjs.map} +1 -1
  172. package/dist/chunks/{sun-to-moon-button-B__3FWnK.cjs → sun-to-moon-button-BmFwRBye.cjs} +3 -3
  173. package/dist/chunks/{sun-to-moon-button-B__3FWnK.cjs.map → sun-to-moon-button-BmFwRBye.cjs.map} +1 -1
  174. package/dist/chunks/{switch-y8oWcyLp.cjs → switch-C5otDb4c.cjs} +3 -3
  175. package/dist/chunks/switch-C5otDb4c.cjs.map +1 -0
  176. package/dist/chunks/{switch-DYLavKgf.mjs → switch-DOVl_i_s.mjs} +3 -3
  177. package/dist/chunks/switch-DOVl_i_s.mjs.map +1 -0
  178. package/dist/chunks/textarea-CAUsyu4-.cjs +63 -0
  179. package/dist/chunks/textarea-CAUsyu4-.cjs.map +1 -0
  180. package/dist/chunks/textarea-CU5C-Zw9.mjs +57 -0
  181. package/dist/chunks/textarea-CU5C-Zw9.mjs.map +1 -0
  182. package/dist/chunks/{theme-CBtWIFMT.cjs → theme-7DWLxJK_.cjs} +4 -2
  183. package/dist/chunks/theme-7DWLxJK_.cjs.map +1 -0
  184. package/dist/chunks/{theme-Bwu0HKqZ.mjs → theme-BceKeYhw.mjs} +4 -2
  185. package/dist/chunks/theme-BceKeYhw.mjs.map +1 -0
  186. package/dist/chunks/{toast-C8JRhbSo.mjs → toast-CvfP7PUP.mjs} +20 -20
  187. package/dist/chunks/toast-CvfP7PUP.mjs.map +1 -0
  188. package/dist/chunks/{toast-DWOwpD2F.cjs → toast-Ds7_19Ap.cjs} +20 -20
  189. package/dist/chunks/toast-Ds7_19Ap.cjs.map +1 -0
  190. package/dist/chunks/{tooltip-YtA_66_1.mjs → tooltip-efHETBo1.mjs} +1 -1
  191. package/dist/chunks/{tooltip-YtA_66_1.mjs.map → tooltip-efHETBo1.mjs.map} +1 -1
  192. package/dist/chunks/{tooltip-BHXNmXsa.cjs → tooltip-nkIqViGk.cjs} +1 -1
  193. package/dist/chunks/{tooltip-BHXNmXsa.cjs.map → tooltip-nkIqViGk.cjs.map} +1 -1
  194. package/dist/chunks/{typography-BzprBnQc.mjs → typography-CLu6Hx9j.mjs} +7 -3
  195. package/dist/chunks/{typography-BzprBnQc.mjs.map → typography-CLu6Hx9j.mjs.map} +1 -1
  196. package/dist/chunks/{typography-3wSx67DZ.cjs → typography-DaLu9tty.cjs} +7 -3
  197. package/dist/chunks/{typography-3wSx67DZ.cjs.map → typography-DaLu9tty.cjs.map} +1 -1
  198. package/dist/color-palette.cjs +1 -1
  199. package/dist/color-palette.mjs +1 -1
  200. package/dist/colors.css +121 -186
  201. package/dist/combobox.cjs +1 -1
  202. package/dist/combobox.mjs +1 -1
  203. package/dist/components/data-display/charts/AreaChart.d.ts.map +1 -1
  204. package/dist/components/data-display/charts/BarChart.d.ts.map +1 -1
  205. package/dist/components/data-display/charts/NeonLineChart.d.ts.map +1 -1
  206. package/dist/components/data-display/charts/PieChart.d.ts.map +1 -1
  207. package/dist/components/data-display/charts/StackedBarChart.d.ts.map +1 -1
  208. package/dist/components/data-display/charts/ThinBreakdownBar.d.ts.map +1 -1
  209. package/dist/components/data-display/charts/chartPalette.d.ts +10 -0
  210. package/dist/components/data-display/charts/chartPalette.d.ts.map +1 -0
  211. package/dist/components/data-display/charts/index.d.ts +2 -0
  212. package/dist/components/data-display/charts/index.d.ts.map +1 -1
  213. package/dist/components/data-display/chip/Chip.d.ts.map +1 -1
  214. package/dist/components/data-display/color-palette/ColorPalette.d.ts.map +1 -1
  215. package/dist/components/data-display/data-table/DataTable.d.ts +17 -10
  216. package/dist/components/data-display/data-table/DataTable.d.ts.map +1 -1
  217. package/dist/components/data-display/data-table/index.d.ts +1 -1
  218. package/dist/components/data-display/data-table/index.d.ts.map +1 -1
  219. package/dist/components/data-display/index.d.ts +1 -0
  220. package/dist/components/data-display/index.d.ts.map +1 -1
  221. package/dist/components/data-display/progress-bar/ProgressBar.d.ts +18 -0
  222. package/dist/components/data-display/progress-bar/ProgressBar.d.ts.map +1 -0
  223. package/dist/components/data-display/progress-bar/index.d.ts +3 -0
  224. package/dist/components/data-display/progress-bar/index.d.ts.map +1 -0
  225. package/dist/components/effects/ascii-text/ASCIIText.d.ts.map +1 -1
  226. package/dist/components/effects/border-beam/BorderBeam.d.ts.map +1 -1
  227. package/dist/components/effects/chroma-grid/ChromaGrid.d.ts.map +1 -1
  228. package/dist/components/effects/splash-cursor/SplashCursor.d.ts.map +1 -1
  229. package/dist/components/forms/combobox/Combobox.d.ts.map +1 -1
  230. package/dist/components/forms/date-picker/DatePicker.d.ts.map +1 -1
  231. package/dist/components/forms/input/Input.d.ts.map +1 -1
  232. package/dist/components/forms/multi-select-combobox/MultiSelectCombobox.d.ts.map +1 -1
  233. package/dist/components/forms/otp-input/OTPInput.d.ts.map +1 -1
  234. package/dist/components/forms/password-strength-meter/PasswordCriteria.d.ts.map +1 -1
  235. package/dist/components/forms/select/Select.d.ts.map +1 -1
  236. package/dist/components/forms/select/types.d.ts +2 -0
  237. package/dist/components/forms/select/types.d.ts.map +1 -1
  238. package/dist/components/forms/textarea/Textarea.d.ts.map +1 -1
  239. package/dist/components/icons/ColumnsIcon.d.ts +9 -0
  240. package/dist/components/icons/ColumnsIcon.d.ts.map +1 -0
  241. package/dist/components/icons/MailIcon.d.ts +9 -0
  242. package/dist/components/icons/MailIcon.d.ts.map +1 -0
  243. package/dist/components/icons/PlayIcon.d.ts +9 -0
  244. package/dist/components/icons/PlayIcon.d.ts.map +1 -0
  245. package/dist/components/icons/ZapIcon.d.ts +9 -0
  246. package/dist/components/icons/ZapIcon.d.ts.map +1 -0
  247. package/dist/components/icons/index.d.ts +4 -0
  248. package/dist/components/icons/index.d.ts.map +1 -1
  249. package/dist/components/navigation/accordion/Accordion.d.ts.map +1 -1
  250. package/dist/components/overlays/drawer/Drawer.d.ts.map +1 -1
  251. package/dist/components/overlays/hover-card/HoverCard.d.ts.map +1 -1
  252. package/dist/components/typography/Typography.d.ts.map +1 -1
  253. package/dist/data-table.cjs +1 -1
  254. package/dist/data-table.mjs +1 -1
  255. package/dist/date-picker.cjs +1 -1
  256. package/dist/date-picker.mjs +1 -1
  257. package/dist/dialog.cjs +1 -1
  258. package/dist/dialog.mjs +1 -1
  259. package/dist/docs.cjs +50 -4
  260. package/dist/docs.cjs.map +1 -1
  261. package/dist/docs.d.ts +59 -9
  262. package/dist/docs.d.ts.map +1 -1
  263. package/dist/docs.mjs +50 -4
  264. package/dist/docs.mjs.map +1 -1
  265. package/dist/drawer.cjs +1 -1
  266. package/dist/drawer.mjs +1 -1
  267. package/dist/fonts.css +5 -0
  268. package/dist/form.cjs +1 -1
  269. package/dist/form.mjs +1 -1
  270. package/dist/foundation.css +3 -3
  271. package/dist/foundations/theme/ThemeProvider.d.ts +1 -0
  272. package/dist/foundations/theme/ThemeProvider.d.ts.map +1 -1
  273. package/dist/gradual-blur.cjs +1 -1
  274. package/dist/gradual-blur.mjs +1 -1
  275. package/dist/hover-card.cjs +1 -1
  276. package/dist/hover-card.mjs +1 -1
  277. package/dist/icons.cjs +5 -1
  278. package/dist/icons.mjs +2 -2
  279. package/dist/index.cjs +50 -41
  280. package/dist/index.cjs.map +1 -1
  281. package/dist/index.d.ts +5 -3
  282. package/dist/index.d.ts.map +1 -1
  283. package/dist/index.mjs +43 -42
  284. package/dist/index.mjs.map +1 -1
  285. package/dist/input.cjs +1 -1
  286. package/dist/input.mjs +1 -1
  287. package/dist/label.cjs +1 -1
  288. package/dist/label.mjs +1 -1
  289. package/dist/loading.cjs +1 -1
  290. package/dist/loading.mjs +1 -1
  291. package/dist/multi-select-combobox.cjs +1 -1
  292. package/dist/multi-select-combobox.mjs +1 -1
  293. package/dist/otp-input.cjs +1 -1
  294. package/dist/otp-input.mjs +1 -1
  295. package/dist/password-strength-meter.cjs +1 -1
  296. package/dist/password-strength-meter.mjs +1 -1
  297. package/dist/progress-bar.cjs +3 -0
  298. package/dist/progress-bar.d.ts +2 -0
  299. package/dist/progress-bar.mjs +2 -0
  300. package/dist/radio.cjs +1 -1
  301. package/dist/radio.mjs +1 -1
  302. package/dist/select.cjs +1 -1
  303. package/dist/select.mjs +1 -1
  304. package/dist/skeleton.cjs +1 -1
  305. package/dist/skeleton.mjs +1 -1
  306. package/dist/spinners.cjs +1 -1
  307. package/dist/spinners.mjs +1 -1
  308. package/dist/splash-cursor.cjs +1 -1
  309. package/dist/splash-cursor.mjs +1 -1
  310. package/dist/spotlight-card.cjs +1 -1
  311. package/dist/spotlight-card.mjs +1 -1
  312. package/dist/stepper.cjs +1 -1
  313. package/dist/stepper.mjs +1 -1
  314. package/dist/sun-to-moon-button.cjs +1 -1
  315. package/dist/sun-to-moon-button.mjs +1 -1
  316. package/dist/switch.cjs +1 -1
  317. package/dist/switch.mjs +1 -1
  318. package/dist/textarea.cjs +1 -1
  319. package/dist/textarea.mjs +1 -1
  320. package/dist/theme.cjs +1 -1
  321. package/dist/theme.mjs +1 -1
  322. package/dist/toast.cjs +1 -1
  323. package/dist/toast.mjs +1 -1
  324. package/dist/tokens.css +592 -0
  325. package/dist/tooltip.cjs +1 -1
  326. package/dist/tooltip.mjs +1 -1
  327. package/dist/typography.cjs +1 -1
  328. package/dist/typography.mjs +1 -1
  329. package/package.json +19 -5
  330. package/dist/chunks/accordion-BZ5hyz0_.cjs.map +0 -1
  331. package/dist/chunks/accordion-C_0oGZkZ.mjs.map +0 -1
  332. package/dist/chunks/alert-BdBDWqBN.cjs.map +0 -1
  333. package/dist/chunks/alert-DeVa-NR1.mjs.map +0 -1
  334. package/dist/chunks/ascii-text-BzQCLfya.mjs.map +0 -1
  335. package/dist/chunks/ascii-text-D6lVHWph.cjs.map +0 -1
  336. package/dist/chunks/button-BH1eUjae.cjs.map +0 -1
  337. package/dist/chunks/button-CmNEMp_O.mjs.map +0 -1
  338. package/dist/chunks/card-CzstAQYy.mjs.map +0 -1
  339. package/dist/chunks/card-DZGM4zLx.cjs.map +0 -1
  340. package/dist/chunks/charts-Bynf6x07.mjs +0 -448
  341. package/dist/chunks/charts-Bynf6x07.mjs.map +0 -1
  342. package/dist/chunks/charts-UYl7Ecqv.cjs +0 -485
  343. package/dist/chunks/charts-UYl7Ecqv.cjs.map +0 -1
  344. package/dist/chunks/checkbox-B3eIojWs.mjs.map +0 -1
  345. package/dist/chunks/checkbox-DQmZwRTt.cjs.map +0 -1
  346. package/dist/chunks/chip-BH6wzwat.cjs.map +0 -1
  347. package/dist/chunks/chip-cZ7-HmWw.mjs.map +0 -1
  348. package/dist/chunks/chroma-grid-CC_fFzxO.mjs.map +0 -1
  349. package/dist/chunks/chroma-grid-DtsqM4LW.cjs.map +0 -1
  350. package/dist/chunks/color-palette-Cz7vqbil.cjs +0 -1156
  351. package/dist/chunks/color-palette-Cz7vqbil.cjs.map +0 -1
  352. package/dist/chunks/color-palette-yadpDCUw.mjs +0 -1150
  353. package/dist/chunks/color-palette-yadpDCUw.mjs.map +0 -1
  354. package/dist/chunks/combobox-B9Nzlhu3.mjs +0 -108
  355. package/dist/chunks/combobox-B9Nzlhu3.mjs.map +0 -1
  356. package/dist/chunks/combobox-mAvOcg-E.cjs.map +0 -1
  357. package/dist/chunks/data-table-BRcGhJDf.cjs.map +0 -1
  358. package/dist/chunks/data-table-Dp0t_I_z.mjs.map +0 -1
  359. package/dist/chunks/date-picker-BWBkr6LG.mjs.map +0 -1
  360. package/dist/chunks/date-picker-DooielHi.cjs.map +0 -1
  361. package/dist/chunks/dialog-C6nxSfIl.mjs.map +0 -1
  362. package/dist/chunks/dialog-Cbuf8V0g.cjs.map +0 -1
  363. package/dist/chunks/drawer-DIuvgqTA.mjs +0 -105
  364. package/dist/chunks/drawer-DIuvgqTA.mjs.map +0 -1
  365. package/dist/chunks/drawer-Dn0u8Sck.cjs.map +0 -1
  366. package/dist/chunks/form-DcEuk721.cjs.map +0 -1
  367. package/dist/chunks/form-TwlDrshv.mjs.map +0 -1
  368. package/dist/chunks/hover-card-DwTVfjgN.mjs.map +0 -1
  369. package/dist/chunks/icons-CrM6pFkv.mjs.map +0 -1
  370. package/dist/chunks/icons-DYkpqWYG.cjs.map +0 -1
  371. package/dist/chunks/input-ChhwdNGk.mjs.map +0 -1
  372. package/dist/chunks/input-CoRHoZkB.cjs.map +0 -1
  373. package/dist/chunks/multi-select-combobox-BPRTZVF6.mjs +0 -108
  374. package/dist/chunks/multi-select-combobox-BPRTZVF6.mjs.map +0 -1
  375. package/dist/chunks/multi-select-combobox-DiMwJxj_.cjs +0 -115
  376. package/dist/chunks/multi-select-combobox-DiMwJxj_.cjs.map +0 -1
  377. package/dist/chunks/otp-input-CNungc1j.mjs.map +0 -1
  378. package/dist/chunks/otp-input-DaQDfI9C.cjs.map +0 -1
  379. package/dist/chunks/password-strength-meter-u4YI00zE.cjs.map +0 -1
  380. package/dist/chunks/password-strength-meter-xtMqhhFg.mjs.map +0 -1
  381. package/dist/chunks/radio-C-fPZgSY.mjs.map +0 -1
  382. package/dist/chunks/radio-mCgvEhOR.cjs.map +0 -1
  383. package/dist/chunks/select-BB-pOzI2.mjs +0 -116
  384. package/dist/chunks/select-BB-pOzI2.mjs.map +0 -1
  385. package/dist/chunks/select-BwelAQc1.cjs +0 -122
  386. package/dist/chunks/select-BwelAQc1.cjs.map +0 -1
  387. package/dist/chunks/splash-cursor-9BsoQZl0.mjs.map +0 -1
  388. package/dist/chunks/splash-cursor-Dpzl_YXx.cjs.map +0 -1
  389. package/dist/chunks/stepper-BDz6PkjV.cjs.map +0 -1
  390. package/dist/chunks/stepper-uz8iRzlY.mjs.map +0 -1
  391. package/dist/chunks/switch-DYLavKgf.mjs.map +0 -1
  392. package/dist/chunks/switch-y8oWcyLp.cjs.map +0 -1
  393. package/dist/chunks/textarea-BWkUVpm3.cjs +0 -66
  394. package/dist/chunks/textarea-BWkUVpm3.cjs.map +0 -1
  395. package/dist/chunks/textarea-Bxqe70TW.mjs +0 -60
  396. package/dist/chunks/textarea-Bxqe70TW.mjs.map +0 -1
  397. package/dist/chunks/theme-Bwu0HKqZ.mjs.map +0 -1
  398. package/dist/chunks/theme-CBtWIFMT.cjs.map +0 -1
  399. package/dist/chunks/toast-C8JRhbSo.mjs.map +0 -1
  400. package/dist/chunks/toast-DWOwpD2F.cjs.map +0 -1
@@ -0,0 +1,687 @@
1
+ const require_chunk = require("./chunk-B_GkZjkl.cjs");
2
+ let react = require("react");
3
+ react = require_chunk.__toESM(react);
4
+ let react_jsx_runtime = require("react/jsx-runtime");
5
+ let recharts = require("recharts");
6
+ //#region src/components/data-display/charts/chartPalette.ts
7
+ var chartColorSlots = [
8
+ 1,
9
+ 2,
10
+ 3,
11
+ 4,
12
+ 5,
13
+ 6,
14
+ 7,
15
+ 8,
16
+ 9,
17
+ 10,
18
+ 11,
19
+ 12,
20
+ 13,
21
+ 14,
22
+ 15
23
+ ];
24
+ var chartColorTokens = chartColorSlots.map((slot) => `chart-${slot}`);
25
+ var chartPalette = chartColorSlots.map((slot) => `var(--ds-chart-${slot})`);
26
+ var resolvedColorCache = /* @__PURE__ */ new Map();
27
+ var chartTokenPattern = /^chart-(\d+)$/i;
28
+ var chartVariablePattern = /^--((?:ds|color)-chart-(\d+))$/i;
29
+ var getChartSlotValue = (slot) => typeof slot === "number" ? slot : Number(slot.replace("chart-", ""));
30
+ var getChartColorVar = (slot, namespace = "ds") => `var(--${namespace}-chart-${getChartSlotValue(slot)})`;
31
+ var normalizeChartColorValue = (value) => {
32
+ const normalizedValue = value?.trim();
33
+ if (!normalizedValue) return;
34
+ const tokenMatch = normalizedValue.match(chartTokenPattern);
35
+ if (tokenMatch) return `var(--ds-chart-${tokenMatch[1]})`;
36
+ const variableMatch = normalizedValue.match(chartVariablePattern);
37
+ if (variableMatch) return `var(--${variableMatch[1]})`;
38
+ return normalizedValue;
39
+ };
40
+ var getThemeSignature = () => {
41
+ if (typeof document === "undefined") return "";
42
+ const root = document.documentElement;
43
+ return [
44
+ root.getAttribute("data-brand") ?? "",
45
+ root.getAttribute("data-mode") ?? "",
46
+ root.getAttribute("data-theme") ?? ""
47
+ ].join("|");
48
+ };
49
+ var resolveColor = (value) => {
50
+ if (typeof document === "undefined") return null;
51
+ const cacheKey = `${getThemeSignature()}::${value}`;
52
+ const cached = resolvedColorCache.get(cacheKey);
53
+ if (cached !== void 0) return cached;
54
+ const probe = document.createElement("span");
55
+ probe.style.color = value;
56
+ probe.style.position = "fixed";
57
+ probe.style.opacity = "0";
58
+ probe.style.pointerEvents = "none";
59
+ document.body.appendChild(probe);
60
+ const computedColor = getComputedStyle(probe).color;
61
+ document.body.removeChild(probe);
62
+ const match = computedColor.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/i);
63
+ const resolved = match ? {
64
+ r: Number(match[1]),
65
+ g: Number(match[2]),
66
+ b: Number(match[3])
67
+ } : null;
68
+ resolvedColorCache.set(cacheKey, resolved);
69
+ return resolved;
70
+ };
71
+ var getColorDistance = (left, right) => {
72
+ const deltaR = left.r - right.r;
73
+ const deltaG = left.g - right.g;
74
+ const deltaB = left.b - right.b;
75
+ return Math.sqrt(deltaR ** 2 + deltaG ** 2 + deltaB ** 2);
76
+ };
77
+ var isTooSimilar = (candidate, usedColors, minDistance = 84) => {
78
+ if (usedColors.includes(candidate)) return true;
79
+ const candidateRgb = resolveColor(candidate);
80
+ if (!candidateRgb) return false;
81
+ return usedColors.some((usedColor) => {
82
+ const usedRgb = resolveColor(usedColor);
83
+ return usedRgb ? getColorDistance(candidateRgb, usedRgb) < minDistance : false;
84
+ });
85
+ };
86
+ var getChartPalette = (count = chartPalette.length) => Array.from({ length: count }, (_, index) => chartPalette[index % chartPalette.length]);
87
+ var normalizeChartColors = (requestedColors) => {
88
+ const usedColors = [];
89
+ let paletteIndex = 0;
90
+ const getNextDistinctPaletteColor = () => {
91
+ for (let attempt = 0; attempt < chartPalette.length; attempt++) {
92
+ const candidate = chartPalette[(paletteIndex + attempt) % chartPalette.length];
93
+ if (!isTooSimilar(candidate, usedColors)) {
94
+ paletteIndex = (paletteIndex + attempt + 1) % chartPalette.length;
95
+ return candidate;
96
+ }
97
+ }
98
+ const fallback = chartPalette[paletteIndex % chartPalette.length];
99
+ paletteIndex = (paletteIndex + 1) % chartPalette.length;
100
+ return fallback;
101
+ };
102
+ return requestedColors.map((requestedColor) => {
103
+ const normalizedRequestedColor = normalizeChartColorValue(requestedColor);
104
+ const resolvedColor = normalizedRequestedColor && !isTooSimilar(normalizedRequestedColor, usedColors) ? normalizedRequestedColor : getNextDistinctPaletteColor();
105
+ usedColors.push(resolvedColor);
106
+ return resolvedColor;
107
+ });
108
+ };
109
+ //#endregion
110
+ //#region src/components/data-display/charts/NeonLineChart.tsx
111
+ var NeonLineChart = ({ data, height = 300, lineColorStop1 = getChartColorVar(2), lineColorStop2 = getChartColorVar(1), glowColor = getChartColorVar(1), className = "" }) => {
112
+ const [normalizedStop1, normalizedStop2] = react.default.useMemo(() => normalizeChartColors([lineColorStop1, lineColorStop2]), [lineColorStop1, lineColorStop2]);
113
+ const normalizedGlowColor = react.default.useMemo(() => normalizeChartColorValue(glowColor) ?? getChartColorVar(1), [glowColor]);
114
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
115
+ className: `w-full relative ${className}`,
116
+ style: { height },
117
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(recharts.ResponsiveContainer, {
118
+ width: "100%",
119
+ height: "100%",
120
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(recharts.LineChart, {
121
+ data,
122
+ margin: {
123
+ top: 20,
124
+ right: 30,
125
+ left: 10,
126
+ bottom: 20
127
+ },
128
+ children: [
129
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("defs", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("linearGradient", {
130
+ id: "neonGradient",
131
+ x1: "0",
132
+ y1: "0",
133
+ x2: "1",
134
+ y2: "0",
135
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
136
+ offset: "0%",
137
+ stopColor: normalizedStop1
138
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
139
+ offset: "100%",
140
+ stopColor: normalizedStop2
141
+ })]
142
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("filter", {
143
+ id: "neonGlow",
144
+ x: "-20%",
145
+ y: "-20%",
146
+ width: "140%",
147
+ height: "140%",
148
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("feDropShadow", {
149
+ dx: "0",
150
+ dy: "6",
151
+ stdDeviation: "8",
152
+ floodColor: normalizedGlowColor,
153
+ floodOpacity: "0.8"
154
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("feDropShadow", {
155
+ dx: "0",
156
+ dy: "0",
157
+ stdDeviation: "15",
158
+ floodColor: normalizedStop1,
159
+ floodOpacity: "0.3"
160
+ })]
161
+ })] }),
162
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(recharts.CartesianGrid, {
163
+ strokeDasharray: "3 3",
164
+ vertical: false,
165
+ stroke: "var(--ds-color-border)",
166
+ opacity: .5
167
+ }),
168
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(recharts.XAxis, {
169
+ dataKey: "name",
170
+ axisLine: false,
171
+ tickLine: false,
172
+ tick: {
173
+ fill: "var(--ds-color-fg-muted)",
174
+ fontSize: 12
175
+ },
176
+ dy: 10
177
+ }),
178
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(recharts.YAxis, {
179
+ axisLine: false,
180
+ tickLine: false,
181
+ tick: {
182
+ fill: "var(--ds-color-fg-muted)",
183
+ fontSize: 12
184
+ },
185
+ dx: -10
186
+ }),
187
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(recharts.Tooltip, {
188
+ contentStyle: {
189
+ backgroundColor: "color-mix(in srgb, var(--ds-color-surface) 92%, transparent)",
190
+ border: "1px solid var(--ds-color-border)",
191
+ borderRadius: "8px",
192
+ backdropFilter: "blur(8px)",
193
+ color: "var(--ds-color-fg)"
194
+ },
195
+ itemStyle: { color: "var(--ds-color-fg)" }
196
+ }),
197
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(recharts.Line, {
198
+ type: "monotone",
199
+ dataKey: "value",
200
+ stroke: "url(#neonGradient)",
201
+ strokeWidth: 3,
202
+ dot: false,
203
+ activeDot: {
204
+ r: 6,
205
+ fill: "var(--ds-color-surface)",
206
+ stroke: normalizedStop2,
207
+ strokeWidth: 2
208
+ },
209
+ filter: "url(#neonGlow)"
210
+ })
211
+ ]
212
+ })
213
+ })
214
+ });
215
+ };
216
+ //#endregion
217
+ //#region src/components/data-display/charts/StackedBarChart.tsx
218
+ var StackedBarChart = ({ data, categories, height = 300, yAxisDomain, className = "" }) => {
219
+ const normalizedCategories = react.default.useMemo(() => {
220
+ const normalizedColors = normalizeChartColors(categories.map((category) => category.color));
221
+ return categories.map((category, index) => ({
222
+ ...category,
223
+ color: normalizedColors[index] ?? category.color
224
+ }));
225
+ }, [categories]);
226
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
227
+ className: `w-full ${className}`,
228
+ style: { height },
229
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(recharts.ResponsiveContainer, {
230
+ width: "100%",
231
+ height: "100%",
232
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(recharts.BarChart, {
233
+ data,
234
+ margin: {
235
+ top: 20,
236
+ right: 30,
237
+ left: 20,
238
+ bottom: 5
239
+ },
240
+ children: [
241
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(recharts.CartesianGrid, {
242
+ strokeDasharray: "3 3",
243
+ vertical: false,
244
+ stroke: "var(--ds-color-border)",
245
+ opacity: .4
246
+ }),
247
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(recharts.XAxis, {
248
+ dataKey: "name",
249
+ axisLine: false,
250
+ tickLine: false,
251
+ tick: {
252
+ fill: "var(--ds-color-fg-muted)",
253
+ fontSize: 12
254
+ },
255
+ dy: 10
256
+ }),
257
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(recharts.YAxis, {
258
+ axisLine: false,
259
+ tickLine: false,
260
+ tick: {
261
+ fill: "var(--ds-color-fg-muted)",
262
+ fontSize: 12
263
+ },
264
+ dx: -10,
265
+ domain: yAxisDomain
266
+ }),
267
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(recharts.Tooltip, {
268
+ cursor: { fill: "color-mix(in srgb, var(--ds-color-accent) 10%, transparent)" },
269
+ contentStyle: {
270
+ backgroundColor: "color-mix(in srgb, var(--ds-color-surface) 92%, transparent)",
271
+ border: "1px solid var(--ds-color-border)",
272
+ borderRadius: "8px",
273
+ backdropFilter: "blur(8px)",
274
+ color: "var(--ds-color-fg)"
275
+ }
276
+ }),
277
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(recharts.Legend, {
278
+ iconType: "circle",
279
+ wrapperStyle: {
280
+ paddingTop: "20px",
281
+ fontSize: "12px",
282
+ color: "var(--color-neutral-300)"
283
+ }
284
+ }),
285
+ normalizedCategories.map((cat, index) => {
286
+ const radius = index === normalizedCategories.length - 1 ? [
287
+ 6,
288
+ 6,
289
+ 0,
290
+ 0
291
+ ] : [
292
+ 0,
293
+ 0,
294
+ 0,
295
+ 0
296
+ ];
297
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(recharts.Bar, {
298
+ dataKey: cat.key,
299
+ name: cat.label,
300
+ stackId: "a",
301
+ fill: cat.color,
302
+ radius,
303
+ barSize: 32
304
+ }, cat.key);
305
+ })
306
+ ]
307
+ })
308
+ })
309
+ });
310
+ };
311
+ //#endregion
312
+ //#region src/components/data-display/charts/ThinBreakdownBar.tsx
313
+ var ThinBreakdownBar = ({ data: segments, className = "", showLabels = true }) => {
314
+ const [activeSegmentKey, setActiveSegmentKey] = react.default.useState(null);
315
+ const normalizedSegments = react.default.useMemo(() => {
316
+ const normalizedColors = normalizeChartColors(segments.map((segment) => segment.color));
317
+ const totalValue = segments.reduce((sum, item) => sum + item.value, 0);
318
+ return segments.map((segment, index) => ({
319
+ ...segment,
320
+ key: segment.id || `segment-${index}`,
321
+ color: normalizedColors[index] ?? segment.color,
322
+ widthPercent: totalValue > 0 ? Math.max(segment.value / totalValue * 100, 0) : 0
323
+ }));
324
+ }, [segments]);
325
+ const segmentsWithMetrics = react.default.useMemo(() => {
326
+ let runningPercent = 0;
327
+ return normalizedSegments.map((segment) => {
328
+ const nextSegment = {
329
+ ...segment,
330
+ centerPercent: runningPercent + segment.widthPercent / 2
331
+ };
332
+ runningPercent += segment.widthPercent;
333
+ return nextSegment;
334
+ });
335
+ }, [normalizedSegments]);
336
+ const activeSegment = react.default.useMemo(() => segmentsWithMetrics.find((segment) => segment.key === activeSegmentKey) ?? null, [activeSegmentKey, segmentsWithMetrics]);
337
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
338
+ className: `w-full flex flex-col gap-3 ${className}`,
339
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
340
+ className: "relative",
341
+ children: [activeSegment && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
342
+ className: "pointer-events-none absolute -top-10 z-10 -translate-x-1/2 rounded-full border border-border/70 bg-background/95 px-2.5 py-1 text-[11px] font-medium text-foreground shadow-lg backdrop-blur-md",
343
+ style: { left: `${activeSegment.centerPercent}%` },
344
+ children: [
345
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: activeSegment.label }),
346
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
347
+ className: "mx-1 text-muted-foreground",
348
+ children: "•"
349
+ }),
350
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
351
+ style: { color: activeSegment.color },
352
+ children: activeSegment.value
353
+ })
354
+ ]
355
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
356
+ className: "rounded-full bg-background-tertiary/80 p-0.5",
357
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
358
+ className: "flex w-full gap-1",
359
+ onMouseLeave: () => setActiveSegmentKey(null),
360
+ children: segmentsWithMetrics.map((segment) => {
361
+ const isActive = activeSegmentKey === segment.key;
362
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
363
+ className: "relative flex h-2.5 min-w-0 items-center",
364
+ style: { width: `${segment.widthPercent}%` },
365
+ onMouseEnter: () => setActiveSegmentKey(segment.key),
366
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
367
+ className: "h-full w-full rounded-full transition-[transform,filter,box-shadow,opacity] duration-200 ease-out",
368
+ style: {
369
+ backgroundColor: segment.color,
370
+ opacity: activeSegmentKey && !isActive ? .72 : 1,
371
+ transform: isActive ? "scaleY(1.3)" : "scaleY(1)",
372
+ filter: isActive ? "saturate(1.1) brightness(1.05)" : "none",
373
+ boxShadow: isActive ? `inset 0 1px 1px rgba(255,255,255,0.28), 0 0 0 1px color-mix(in srgb, ${segment.color} 35%, transparent), 0 0 14px color-mix(in srgb, ${segment.color} 45%, transparent)` : `inset 0 1px 1px rgba(255,255,255,0.2), 0 0 8px color-mix(in srgb, ${segment.color} 30%, transparent)`
374
+ },
375
+ title: `${segment.label}: ${segment.value}`
376
+ })
377
+ }, segment.key);
378
+ })
379
+ })
380
+ })]
381
+ }), showLabels && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
382
+ className: "flex w-full items-start gap-1 px-0.5",
383
+ children: segmentsWithMetrics.map((segment) => {
384
+ const isActive = activeSegmentKey === segment.key;
385
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
386
+ className: "flex min-w-0 justify-center",
387
+ style: { width: `${segment.widthPercent}%` },
388
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
389
+ className: "whitespace-nowrap px-1 text-center text-[11px] font-medium tracking-wide text-muted-foreground transition-colors duration-200",
390
+ style: isActive ? { color: segment.color } : void 0,
391
+ children: segment.label
392
+ })
393
+ }, `label-${segment.key}`);
394
+ })
395
+ })]
396
+ });
397
+ };
398
+ //#endregion
399
+ //#region src/components/data-display/charts/AreaChart.tsx
400
+ var AreaChart = ({ data, categories, height = 300, className = "", showGrid = true }) => {
401
+ const normalizedCategories = react.default.useMemo(() => {
402
+ const normalizedColors = normalizeChartColors(categories.map((category) => category.color));
403
+ return categories.map((category, index) => ({
404
+ ...category,
405
+ color: normalizedColors[index] ?? category.color
406
+ }));
407
+ }, [categories]);
408
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
409
+ className: `w-full ${className}`,
410
+ style: { height },
411
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(recharts.ResponsiveContainer, {
412
+ width: "100%",
413
+ height: "100%",
414
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(recharts.AreaChart, {
415
+ data,
416
+ margin: {
417
+ top: 10,
418
+ right: 30,
419
+ left: 0,
420
+ bottom: 0
421
+ },
422
+ children: [
423
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("defs", { children: normalizedCategories.map((cat) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("linearGradient", {
424
+ id: `color-${cat.key}`,
425
+ x1: "0",
426
+ y1: "0",
427
+ x2: "0",
428
+ y2: "1",
429
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
430
+ offset: "5%",
431
+ stopColor: cat.color,
432
+ stopOpacity: .3
433
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
434
+ offset: "95%",
435
+ stopColor: cat.color,
436
+ stopOpacity: 0
437
+ })]
438
+ }, `gradient-${cat.key}`)) }),
439
+ showGrid && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(recharts.CartesianGrid, {
440
+ strokeDasharray: "3 3",
441
+ vertical: false,
442
+ stroke: "var(--ds-color-border)",
443
+ opacity: .5
444
+ }),
445
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(recharts.XAxis, {
446
+ dataKey: "name",
447
+ axisLine: false,
448
+ tickLine: false,
449
+ tick: {
450
+ fill: "var(--ds-color-fg-muted)",
451
+ fontSize: 12
452
+ },
453
+ dy: 10
454
+ }),
455
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(recharts.YAxis, {
456
+ axisLine: false,
457
+ tickLine: false,
458
+ tick: {
459
+ fill: "var(--ds-color-fg-muted)",
460
+ fontSize: 12
461
+ },
462
+ dx: -10
463
+ }),
464
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(recharts.Tooltip, {
465
+ contentStyle: {
466
+ backgroundColor: "color-mix(in srgb, var(--ds-color-surface) 92%, transparent)",
467
+ border: "1px solid var(--ds-color-border)",
468
+ borderRadius: "8px",
469
+ backdropFilter: "blur(8px)",
470
+ color: "var(--ds-color-fg)"
471
+ },
472
+ itemStyle: { color: "var(--ds-color-fg)" }
473
+ }),
474
+ normalizedCategories.map((cat) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(recharts.Area, {
475
+ type: "monotone",
476
+ dataKey: cat.key,
477
+ stroke: cat.color,
478
+ strokeWidth: 2,
479
+ fillOpacity: 1,
480
+ fill: `url(#color-${cat.key})`
481
+ }, cat.key))
482
+ ]
483
+ })
484
+ })
485
+ });
486
+ };
487
+ //#endregion
488
+ //#region src/components/data-display/charts/BarChart.tsx
489
+ var BarChart = ({ data, categories, height = 300, className = "", layout = "horizontal" }) => {
490
+ const normalizedCategories = react.default.useMemo(() => {
491
+ const normalizedColors = normalizeChartColors(categories.map((category) => category.color));
492
+ return categories.map((category, index) => ({
493
+ ...category,
494
+ color: normalizedColors[index] ?? category.color
495
+ }));
496
+ }, [categories]);
497
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
498
+ className: `w-full ${className}`,
499
+ style: { height },
500
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(recharts.ResponsiveContainer, {
501
+ width: "100%",
502
+ height: "100%",
503
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(recharts.BarChart, {
504
+ data,
505
+ layout,
506
+ margin: {
507
+ top: 20,
508
+ right: 30,
509
+ left: 20,
510
+ bottom: 5
511
+ },
512
+ children: [
513
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(recharts.CartesianGrid, {
514
+ strokeDasharray: "3 3",
515
+ horizontal: layout === "horizontal",
516
+ vertical: layout === "vertical",
517
+ stroke: "var(--ds-color-border)",
518
+ opacity: .4
519
+ }),
520
+ layout === "horizontal" ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(recharts.XAxis, {
521
+ dataKey: "name",
522
+ axisLine: false,
523
+ tickLine: false,
524
+ tick: {
525
+ fill: "var(--ds-color-fg-muted)",
526
+ fontSize: 12
527
+ },
528
+ dy: 10
529
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(recharts.YAxis, {
530
+ axisLine: false,
531
+ tickLine: false,
532
+ tick: {
533
+ fill: "var(--ds-color-fg-muted)",
534
+ fontSize: 12
535
+ },
536
+ dx: -10
537
+ })] }) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(recharts.XAxis, {
538
+ type: "number",
539
+ axisLine: false,
540
+ tickLine: false,
541
+ tick: {
542
+ fill: "var(--ds-color-fg-muted)",
543
+ fontSize: 12
544
+ },
545
+ dy: 10
546
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(recharts.YAxis, {
547
+ dataKey: "name",
548
+ type: "category",
549
+ axisLine: false,
550
+ tickLine: false,
551
+ tick: {
552
+ fill: "var(--ds-color-fg-muted)",
553
+ fontSize: 12
554
+ },
555
+ dx: -10
556
+ })] }),
557
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(recharts.Tooltip, {
558
+ cursor: { fill: "color-mix(in srgb, var(--ds-color-accent) 10%, transparent)" },
559
+ contentStyle: {
560
+ backgroundColor: "color-mix(in srgb, var(--ds-color-surface) 92%, transparent)",
561
+ border: "1px solid var(--ds-color-border)",
562
+ borderRadius: "8px",
563
+ backdropFilter: "blur(8px)",
564
+ color: "var(--ds-color-fg)"
565
+ }
566
+ }),
567
+ normalizedCategories.map((cat) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(recharts.Bar, {
568
+ dataKey: cat.key,
569
+ fill: cat.color,
570
+ radius: layout === "horizontal" ? [
571
+ 4,
572
+ 4,
573
+ 0,
574
+ 0
575
+ ] : [
576
+ 0,
577
+ 4,
578
+ 4,
579
+ 0
580
+ ]
581
+ }, cat.key))
582
+ ]
583
+ })
584
+ })
585
+ });
586
+ };
587
+ //#endregion
588
+ //#region src/components/data-display/charts/PieChart.tsx
589
+ var PieChart = ({ data, colors, height = 300, className = "", variant = "donut" }) => {
590
+ const innerRadius = variant === "donut" ? "60%" : 0;
591
+ const normalizedColors = react.default.useMemo(() => normalizeChartColors(colors), [colors]);
592
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
593
+ className: `w-full ${className}`,
594
+ style: { height },
595
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(recharts.ResponsiveContainer, {
596
+ width: "100%",
597
+ height: "100%",
598
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(recharts.PieChart, { children: [
599
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(recharts.Pie, {
600
+ data,
601
+ cx: "50%",
602
+ cy: "50%",
603
+ innerRadius,
604
+ outerRadius: "80%",
605
+ paddingAngle: variant === "donut" ? 2 : 0,
606
+ dataKey: "value",
607
+ stroke: "none",
608
+ children: data.map((entry, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(recharts.Cell, { fill: normalizedColors[index % normalizedColors.length] }, `cell-${index}`))
609
+ }),
610
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(recharts.Tooltip, {
611
+ contentStyle: {
612
+ backgroundColor: "color-mix(in srgb, var(--ds-color-surface) 92%, transparent)",
613
+ border: "1px solid var(--ds-color-border)",
614
+ borderRadius: "8px",
615
+ backdropFilter: "blur(8px)",
616
+ color: "var(--ds-color-fg)"
617
+ },
618
+ itemStyle: { color: "var(--ds-color-fg)" }
619
+ }),
620
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(recharts.Legend, {
621
+ iconType: "circle",
622
+ wrapperStyle: {
623
+ fontSize: "12px",
624
+ color: "var(--color-neutral-300)"
625
+ }
626
+ })
627
+ ] })
628
+ })
629
+ });
630
+ };
631
+ //#endregion
632
+ Object.defineProperty(exports, "AreaChart", {
633
+ enumerable: true,
634
+ get: function() {
635
+ return AreaChart;
636
+ }
637
+ });
638
+ Object.defineProperty(exports, "BarChart", {
639
+ enumerable: true,
640
+ get: function() {
641
+ return BarChart;
642
+ }
643
+ });
644
+ Object.defineProperty(exports, "NeonLineChart", {
645
+ enumerable: true,
646
+ get: function() {
647
+ return NeonLineChart;
648
+ }
649
+ });
650
+ Object.defineProperty(exports, "PieChart", {
651
+ enumerable: true,
652
+ get: function() {
653
+ return PieChart;
654
+ }
655
+ });
656
+ Object.defineProperty(exports, "StackedBarChart", {
657
+ enumerable: true,
658
+ get: function() {
659
+ return StackedBarChart;
660
+ }
661
+ });
662
+ Object.defineProperty(exports, "ThinBreakdownBar", {
663
+ enumerable: true,
664
+ get: function() {
665
+ return ThinBreakdownBar;
666
+ }
667
+ });
668
+ Object.defineProperty(exports, "chartColorTokens", {
669
+ enumerable: true,
670
+ get: function() {
671
+ return chartColorTokens;
672
+ }
673
+ });
674
+ Object.defineProperty(exports, "getChartColorVar", {
675
+ enumerable: true,
676
+ get: function() {
677
+ return getChartColorVar;
678
+ }
679
+ });
680
+ Object.defineProperty(exports, "getChartPalette", {
681
+ enumerable: true,
682
+ get: function() {
683
+ return getChartPalette;
684
+ }
685
+ });
686
+
687
+ //# sourceMappingURL=charts-BpElnsoR.cjs.map