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,632 @@
1
+ import React from "react";
2
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
+ import { Area, AreaChart, Bar, BarChart, CartesianGrid, Cell, Legend, Line, LineChart, Pie, PieChart, ResponsiveContainer, Tooltip, XAxis, YAxis } from "recharts";
4
+ //#region src/components/data-display/charts/chartPalette.ts
5
+ var chartColorSlots = [
6
+ 1,
7
+ 2,
8
+ 3,
9
+ 4,
10
+ 5,
11
+ 6,
12
+ 7,
13
+ 8,
14
+ 9,
15
+ 10,
16
+ 11,
17
+ 12,
18
+ 13,
19
+ 14,
20
+ 15
21
+ ];
22
+ var chartColorTokens = chartColorSlots.map((slot) => `chart-${slot}`);
23
+ var chartPalette = chartColorSlots.map((slot) => `var(--ds-chart-${slot})`);
24
+ var resolvedColorCache = /* @__PURE__ */ new Map();
25
+ var chartTokenPattern = /^chart-(\d+)$/i;
26
+ var chartVariablePattern = /^--((?:ds|color)-chart-(\d+))$/i;
27
+ var getChartSlotValue = (slot) => typeof slot === "number" ? slot : Number(slot.replace("chart-", ""));
28
+ var getChartColorVar = (slot, namespace = "ds") => `var(--${namespace}-chart-${getChartSlotValue(slot)})`;
29
+ var normalizeChartColorValue = (value) => {
30
+ const normalizedValue = value?.trim();
31
+ if (!normalizedValue) return;
32
+ const tokenMatch = normalizedValue.match(chartTokenPattern);
33
+ if (tokenMatch) return `var(--ds-chart-${tokenMatch[1]})`;
34
+ const variableMatch = normalizedValue.match(chartVariablePattern);
35
+ if (variableMatch) return `var(--${variableMatch[1]})`;
36
+ return normalizedValue;
37
+ };
38
+ var getThemeSignature = () => {
39
+ if (typeof document === "undefined") return "";
40
+ const root = document.documentElement;
41
+ return [
42
+ root.getAttribute("data-brand") ?? "",
43
+ root.getAttribute("data-mode") ?? "",
44
+ root.getAttribute("data-theme") ?? ""
45
+ ].join("|");
46
+ };
47
+ var resolveColor = (value) => {
48
+ if (typeof document === "undefined") return null;
49
+ const cacheKey = `${getThemeSignature()}::${value}`;
50
+ const cached = resolvedColorCache.get(cacheKey);
51
+ if (cached !== void 0) return cached;
52
+ const probe = document.createElement("span");
53
+ probe.style.color = value;
54
+ probe.style.position = "fixed";
55
+ probe.style.opacity = "0";
56
+ probe.style.pointerEvents = "none";
57
+ document.body.appendChild(probe);
58
+ const computedColor = getComputedStyle(probe).color;
59
+ document.body.removeChild(probe);
60
+ const match = computedColor.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/i);
61
+ const resolved = match ? {
62
+ r: Number(match[1]),
63
+ g: Number(match[2]),
64
+ b: Number(match[3])
65
+ } : null;
66
+ resolvedColorCache.set(cacheKey, resolved);
67
+ return resolved;
68
+ };
69
+ var getColorDistance = (left, right) => {
70
+ const deltaR = left.r - right.r;
71
+ const deltaG = left.g - right.g;
72
+ const deltaB = left.b - right.b;
73
+ return Math.sqrt(deltaR ** 2 + deltaG ** 2 + deltaB ** 2);
74
+ };
75
+ var isTooSimilar = (candidate, usedColors, minDistance = 84) => {
76
+ if (usedColors.includes(candidate)) return true;
77
+ const candidateRgb = resolveColor(candidate);
78
+ if (!candidateRgb) return false;
79
+ return usedColors.some((usedColor) => {
80
+ const usedRgb = resolveColor(usedColor);
81
+ return usedRgb ? getColorDistance(candidateRgb, usedRgb) < minDistance : false;
82
+ });
83
+ };
84
+ var getChartPalette = (count = chartPalette.length) => Array.from({ length: count }, (_, index) => chartPalette[index % chartPalette.length]);
85
+ var normalizeChartColors = (requestedColors) => {
86
+ const usedColors = [];
87
+ let paletteIndex = 0;
88
+ const getNextDistinctPaletteColor = () => {
89
+ for (let attempt = 0; attempt < chartPalette.length; attempt++) {
90
+ const candidate = chartPalette[(paletteIndex + attempt) % chartPalette.length];
91
+ if (!isTooSimilar(candidate, usedColors)) {
92
+ paletteIndex = (paletteIndex + attempt + 1) % chartPalette.length;
93
+ return candidate;
94
+ }
95
+ }
96
+ const fallback = chartPalette[paletteIndex % chartPalette.length];
97
+ paletteIndex = (paletteIndex + 1) % chartPalette.length;
98
+ return fallback;
99
+ };
100
+ return requestedColors.map((requestedColor) => {
101
+ const normalizedRequestedColor = normalizeChartColorValue(requestedColor);
102
+ const resolvedColor = normalizedRequestedColor && !isTooSimilar(normalizedRequestedColor, usedColors) ? normalizedRequestedColor : getNextDistinctPaletteColor();
103
+ usedColors.push(resolvedColor);
104
+ return resolvedColor;
105
+ });
106
+ };
107
+ //#endregion
108
+ //#region src/components/data-display/charts/NeonLineChart.tsx
109
+ var NeonLineChart = ({ data, height = 300, lineColorStop1 = getChartColorVar(2), lineColorStop2 = getChartColorVar(1), glowColor = getChartColorVar(1), className = "" }) => {
110
+ const [normalizedStop1, normalizedStop2] = React.useMemo(() => normalizeChartColors([lineColorStop1, lineColorStop2]), [lineColorStop1, lineColorStop2]);
111
+ const normalizedGlowColor = React.useMemo(() => normalizeChartColorValue(glowColor) ?? getChartColorVar(1), [glowColor]);
112
+ return /* @__PURE__ */ jsx("div", {
113
+ className: `w-full relative ${className}`,
114
+ style: { height },
115
+ children: /* @__PURE__ */ jsx(ResponsiveContainer, {
116
+ width: "100%",
117
+ height: "100%",
118
+ children: /* @__PURE__ */ jsxs(LineChart, {
119
+ data,
120
+ margin: {
121
+ top: 20,
122
+ right: 30,
123
+ left: 10,
124
+ bottom: 20
125
+ },
126
+ children: [
127
+ /* @__PURE__ */ jsxs("defs", { children: [/* @__PURE__ */ jsxs("linearGradient", {
128
+ id: "neonGradient",
129
+ x1: "0",
130
+ y1: "0",
131
+ x2: "1",
132
+ y2: "0",
133
+ children: [/* @__PURE__ */ jsx("stop", {
134
+ offset: "0%",
135
+ stopColor: normalizedStop1
136
+ }), /* @__PURE__ */ jsx("stop", {
137
+ offset: "100%",
138
+ stopColor: normalizedStop2
139
+ })]
140
+ }), /* @__PURE__ */ jsxs("filter", {
141
+ id: "neonGlow",
142
+ x: "-20%",
143
+ y: "-20%",
144
+ width: "140%",
145
+ height: "140%",
146
+ children: [/* @__PURE__ */ jsx("feDropShadow", {
147
+ dx: "0",
148
+ dy: "6",
149
+ stdDeviation: "8",
150
+ floodColor: normalizedGlowColor,
151
+ floodOpacity: "0.8"
152
+ }), /* @__PURE__ */ jsx("feDropShadow", {
153
+ dx: "0",
154
+ dy: "0",
155
+ stdDeviation: "15",
156
+ floodColor: normalizedStop1,
157
+ floodOpacity: "0.3"
158
+ })]
159
+ })] }),
160
+ /* @__PURE__ */ jsx(CartesianGrid, {
161
+ strokeDasharray: "3 3",
162
+ vertical: false,
163
+ stroke: "var(--ds-color-border)",
164
+ opacity: .5
165
+ }),
166
+ /* @__PURE__ */ jsx(XAxis, {
167
+ dataKey: "name",
168
+ axisLine: false,
169
+ tickLine: false,
170
+ tick: {
171
+ fill: "var(--ds-color-fg-muted)",
172
+ fontSize: 12
173
+ },
174
+ dy: 10
175
+ }),
176
+ /* @__PURE__ */ jsx(YAxis, {
177
+ axisLine: false,
178
+ tickLine: false,
179
+ tick: {
180
+ fill: "var(--ds-color-fg-muted)",
181
+ fontSize: 12
182
+ },
183
+ dx: -10
184
+ }),
185
+ /* @__PURE__ */ jsx(Tooltip, {
186
+ contentStyle: {
187
+ backgroundColor: "color-mix(in srgb, var(--ds-color-surface) 92%, transparent)",
188
+ border: "1px solid var(--ds-color-border)",
189
+ borderRadius: "8px",
190
+ backdropFilter: "blur(8px)",
191
+ color: "var(--ds-color-fg)"
192
+ },
193
+ itemStyle: { color: "var(--ds-color-fg)" }
194
+ }),
195
+ /* @__PURE__ */ jsx(Line, {
196
+ type: "monotone",
197
+ dataKey: "value",
198
+ stroke: "url(#neonGradient)",
199
+ strokeWidth: 3,
200
+ dot: false,
201
+ activeDot: {
202
+ r: 6,
203
+ fill: "var(--ds-color-surface)",
204
+ stroke: normalizedStop2,
205
+ strokeWidth: 2
206
+ },
207
+ filter: "url(#neonGlow)"
208
+ })
209
+ ]
210
+ })
211
+ })
212
+ });
213
+ };
214
+ //#endregion
215
+ //#region src/components/data-display/charts/StackedBarChart.tsx
216
+ var StackedBarChart = ({ data, categories, height = 300, yAxisDomain, className = "" }) => {
217
+ const normalizedCategories = React.useMemo(() => {
218
+ const normalizedColors = normalizeChartColors(categories.map((category) => category.color));
219
+ return categories.map((category, index) => ({
220
+ ...category,
221
+ color: normalizedColors[index] ?? category.color
222
+ }));
223
+ }, [categories]);
224
+ return /* @__PURE__ */ jsx("div", {
225
+ className: `w-full ${className}`,
226
+ style: { height },
227
+ children: /* @__PURE__ */ jsx(ResponsiveContainer, {
228
+ width: "100%",
229
+ height: "100%",
230
+ children: /* @__PURE__ */ jsxs(BarChart, {
231
+ data,
232
+ margin: {
233
+ top: 20,
234
+ right: 30,
235
+ left: 20,
236
+ bottom: 5
237
+ },
238
+ children: [
239
+ /* @__PURE__ */ jsx(CartesianGrid, {
240
+ strokeDasharray: "3 3",
241
+ vertical: false,
242
+ stroke: "var(--ds-color-border)",
243
+ opacity: .4
244
+ }),
245
+ /* @__PURE__ */ jsx(XAxis, {
246
+ dataKey: "name",
247
+ axisLine: false,
248
+ tickLine: false,
249
+ tick: {
250
+ fill: "var(--ds-color-fg-muted)",
251
+ fontSize: 12
252
+ },
253
+ dy: 10
254
+ }),
255
+ /* @__PURE__ */ jsx(YAxis, {
256
+ axisLine: false,
257
+ tickLine: false,
258
+ tick: {
259
+ fill: "var(--ds-color-fg-muted)",
260
+ fontSize: 12
261
+ },
262
+ dx: -10,
263
+ domain: yAxisDomain
264
+ }),
265
+ /* @__PURE__ */ jsx(Tooltip, {
266
+ cursor: { fill: "color-mix(in srgb, var(--ds-color-accent) 10%, transparent)" },
267
+ contentStyle: {
268
+ backgroundColor: "color-mix(in srgb, var(--ds-color-surface) 92%, transparent)",
269
+ border: "1px solid var(--ds-color-border)",
270
+ borderRadius: "8px",
271
+ backdropFilter: "blur(8px)",
272
+ color: "var(--ds-color-fg)"
273
+ }
274
+ }),
275
+ /* @__PURE__ */ jsx(Legend, {
276
+ iconType: "circle",
277
+ wrapperStyle: {
278
+ paddingTop: "20px",
279
+ fontSize: "12px",
280
+ color: "var(--color-neutral-300)"
281
+ }
282
+ }),
283
+ normalizedCategories.map((cat, index) => {
284
+ const radius = index === normalizedCategories.length - 1 ? [
285
+ 6,
286
+ 6,
287
+ 0,
288
+ 0
289
+ ] : [
290
+ 0,
291
+ 0,
292
+ 0,
293
+ 0
294
+ ];
295
+ return /* @__PURE__ */ jsx(Bar, {
296
+ dataKey: cat.key,
297
+ name: cat.label,
298
+ stackId: "a",
299
+ fill: cat.color,
300
+ radius,
301
+ barSize: 32
302
+ }, cat.key);
303
+ })
304
+ ]
305
+ })
306
+ })
307
+ });
308
+ };
309
+ //#endregion
310
+ //#region src/components/data-display/charts/ThinBreakdownBar.tsx
311
+ var ThinBreakdownBar = ({ data: segments, className = "", showLabels = true }) => {
312
+ const [activeSegmentKey, setActiveSegmentKey] = React.useState(null);
313
+ const normalizedSegments = React.useMemo(() => {
314
+ const normalizedColors = normalizeChartColors(segments.map((segment) => segment.color));
315
+ const totalValue = segments.reduce((sum, item) => sum + item.value, 0);
316
+ return segments.map((segment, index) => ({
317
+ ...segment,
318
+ key: segment.id || `segment-${index}`,
319
+ color: normalizedColors[index] ?? segment.color,
320
+ widthPercent: totalValue > 0 ? Math.max(segment.value / totalValue * 100, 0) : 0
321
+ }));
322
+ }, [segments]);
323
+ const segmentsWithMetrics = React.useMemo(() => {
324
+ let runningPercent = 0;
325
+ return normalizedSegments.map((segment) => {
326
+ const nextSegment = {
327
+ ...segment,
328
+ centerPercent: runningPercent + segment.widthPercent / 2
329
+ };
330
+ runningPercent += segment.widthPercent;
331
+ return nextSegment;
332
+ });
333
+ }, [normalizedSegments]);
334
+ const activeSegment = React.useMemo(() => segmentsWithMetrics.find((segment) => segment.key === activeSegmentKey) ?? null, [activeSegmentKey, segmentsWithMetrics]);
335
+ return /* @__PURE__ */ jsxs("div", {
336
+ className: `w-full flex flex-col gap-3 ${className}`,
337
+ children: [/* @__PURE__ */ jsxs("div", {
338
+ className: "relative",
339
+ children: [activeSegment && /* @__PURE__ */ jsxs("div", {
340
+ 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",
341
+ style: { left: `${activeSegment.centerPercent}%` },
342
+ children: [
343
+ /* @__PURE__ */ jsx("span", { children: activeSegment.label }),
344
+ /* @__PURE__ */ jsx("span", {
345
+ className: "mx-1 text-muted-foreground",
346
+ children: "•"
347
+ }),
348
+ /* @__PURE__ */ jsx("span", {
349
+ style: { color: activeSegment.color },
350
+ children: activeSegment.value
351
+ })
352
+ ]
353
+ }), /* @__PURE__ */ jsx("div", {
354
+ className: "rounded-full bg-background-tertiary/80 p-0.5",
355
+ children: /* @__PURE__ */ jsx("div", {
356
+ className: "flex w-full gap-1",
357
+ onMouseLeave: () => setActiveSegmentKey(null),
358
+ children: segmentsWithMetrics.map((segment) => {
359
+ const isActive = activeSegmentKey === segment.key;
360
+ return /* @__PURE__ */ jsx("div", {
361
+ className: "relative flex h-2.5 min-w-0 items-center",
362
+ style: { width: `${segment.widthPercent}%` },
363
+ onMouseEnter: () => setActiveSegmentKey(segment.key),
364
+ children: /* @__PURE__ */ jsx("div", {
365
+ className: "h-full w-full rounded-full transition-[transform,filter,box-shadow,opacity] duration-200 ease-out",
366
+ style: {
367
+ backgroundColor: segment.color,
368
+ opacity: activeSegmentKey && !isActive ? .72 : 1,
369
+ transform: isActive ? "scaleY(1.3)" : "scaleY(1)",
370
+ filter: isActive ? "saturate(1.1) brightness(1.05)" : "none",
371
+ 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)`
372
+ },
373
+ title: `${segment.label}: ${segment.value}`
374
+ })
375
+ }, segment.key);
376
+ })
377
+ })
378
+ })]
379
+ }), showLabels && /* @__PURE__ */ jsx("div", {
380
+ className: "flex w-full items-start gap-1 px-0.5",
381
+ children: segmentsWithMetrics.map((segment) => {
382
+ const isActive = activeSegmentKey === segment.key;
383
+ return /* @__PURE__ */ jsx("div", {
384
+ className: "flex min-w-0 justify-center",
385
+ style: { width: `${segment.widthPercent}%` },
386
+ children: /* @__PURE__ */ jsx("span", {
387
+ className: "whitespace-nowrap px-1 text-center text-[11px] font-medium tracking-wide text-muted-foreground transition-colors duration-200",
388
+ style: isActive ? { color: segment.color } : void 0,
389
+ children: segment.label
390
+ })
391
+ }, `label-${segment.key}`);
392
+ })
393
+ })]
394
+ });
395
+ };
396
+ //#endregion
397
+ //#region src/components/data-display/charts/AreaChart.tsx
398
+ var AreaChart$1 = ({ data, categories, height = 300, className = "", showGrid = true }) => {
399
+ const normalizedCategories = React.useMemo(() => {
400
+ const normalizedColors = normalizeChartColors(categories.map((category) => category.color));
401
+ return categories.map((category, index) => ({
402
+ ...category,
403
+ color: normalizedColors[index] ?? category.color
404
+ }));
405
+ }, [categories]);
406
+ return /* @__PURE__ */ jsx("div", {
407
+ className: `w-full ${className}`,
408
+ style: { height },
409
+ children: /* @__PURE__ */ jsx(ResponsiveContainer, {
410
+ width: "100%",
411
+ height: "100%",
412
+ children: /* @__PURE__ */ jsxs(AreaChart, {
413
+ data,
414
+ margin: {
415
+ top: 10,
416
+ right: 30,
417
+ left: 0,
418
+ bottom: 0
419
+ },
420
+ children: [
421
+ /* @__PURE__ */ jsx("defs", { children: normalizedCategories.map((cat) => /* @__PURE__ */ jsxs("linearGradient", {
422
+ id: `color-${cat.key}`,
423
+ x1: "0",
424
+ y1: "0",
425
+ x2: "0",
426
+ y2: "1",
427
+ children: [/* @__PURE__ */ jsx("stop", {
428
+ offset: "5%",
429
+ stopColor: cat.color,
430
+ stopOpacity: .3
431
+ }), /* @__PURE__ */ jsx("stop", {
432
+ offset: "95%",
433
+ stopColor: cat.color,
434
+ stopOpacity: 0
435
+ })]
436
+ }, `gradient-${cat.key}`)) }),
437
+ showGrid && /* @__PURE__ */ jsx(CartesianGrid, {
438
+ strokeDasharray: "3 3",
439
+ vertical: false,
440
+ stroke: "var(--ds-color-border)",
441
+ opacity: .5
442
+ }),
443
+ /* @__PURE__ */ jsx(XAxis, {
444
+ dataKey: "name",
445
+ axisLine: false,
446
+ tickLine: false,
447
+ tick: {
448
+ fill: "var(--ds-color-fg-muted)",
449
+ fontSize: 12
450
+ },
451
+ dy: 10
452
+ }),
453
+ /* @__PURE__ */ jsx(YAxis, {
454
+ axisLine: false,
455
+ tickLine: false,
456
+ tick: {
457
+ fill: "var(--ds-color-fg-muted)",
458
+ fontSize: 12
459
+ },
460
+ dx: -10
461
+ }),
462
+ /* @__PURE__ */ jsx(Tooltip, {
463
+ contentStyle: {
464
+ backgroundColor: "color-mix(in srgb, var(--ds-color-surface) 92%, transparent)",
465
+ border: "1px solid var(--ds-color-border)",
466
+ borderRadius: "8px",
467
+ backdropFilter: "blur(8px)",
468
+ color: "var(--ds-color-fg)"
469
+ },
470
+ itemStyle: { color: "var(--ds-color-fg)" }
471
+ }),
472
+ normalizedCategories.map((cat) => /* @__PURE__ */ jsx(Area, {
473
+ type: "monotone",
474
+ dataKey: cat.key,
475
+ stroke: cat.color,
476
+ strokeWidth: 2,
477
+ fillOpacity: 1,
478
+ fill: `url(#color-${cat.key})`
479
+ }, cat.key))
480
+ ]
481
+ })
482
+ })
483
+ });
484
+ };
485
+ //#endregion
486
+ //#region src/components/data-display/charts/BarChart.tsx
487
+ var BarChart$1 = ({ data, categories, height = 300, className = "", layout = "horizontal" }) => {
488
+ const normalizedCategories = React.useMemo(() => {
489
+ const normalizedColors = normalizeChartColors(categories.map((category) => category.color));
490
+ return categories.map((category, index) => ({
491
+ ...category,
492
+ color: normalizedColors[index] ?? category.color
493
+ }));
494
+ }, [categories]);
495
+ return /* @__PURE__ */ jsx("div", {
496
+ className: `w-full ${className}`,
497
+ style: { height },
498
+ children: /* @__PURE__ */ jsx(ResponsiveContainer, {
499
+ width: "100%",
500
+ height: "100%",
501
+ children: /* @__PURE__ */ jsxs(BarChart, {
502
+ data,
503
+ layout,
504
+ margin: {
505
+ top: 20,
506
+ right: 30,
507
+ left: 20,
508
+ bottom: 5
509
+ },
510
+ children: [
511
+ /* @__PURE__ */ jsx(CartesianGrid, {
512
+ strokeDasharray: "3 3",
513
+ horizontal: layout === "horizontal",
514
+ vertical: layout === "vertical",
515
+ stroke: "var(--ds-color-border)",
516
+ opacity: .4
517
+ }),
518
+ layout === "horizontal" ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(XAxis, {
519
+ dataKey: "name",
520
+ axisLine: false,
521
+ tickLine: false,
522
+ tick: {
523
+ fill: "var(--ds-color-fg-muted)",
524
+ fontSize: 12
525
+ },
526
+ dy: 10
527
+ }), /* @__PURE__ */ jsx(YAxis, {
528
+ axisLine: false,
529
+ tickLine: false,
530
+ tick: {
531
+ fill: "var(--ds-color-fg-muted)",
532
+ fontSize: 12
533
+ },
534
+ dx: -10
535
+ })] }) : /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(XAxis, {
536
+ type: "number",
537
+ axisLine: false,
538
+ tickLine: false,
539
+ tick: {
540
+ fill: "var(--ds-color-fg-muted)",
541
+ fontSize: 12
542
+ },
543
+ dy: 10
544
+ }), /* @__PURE__ */ jsx(YAxis, {
545
+ dataKey: "name",
546
+ type: "category",
547
+ axisLine: false,
548
+ tickLine: false,
549
+ tick: {
550
+ fill: "var(--ds-color-fg-muted)",
551
+ fontSize: 12
552
+ },
553
+ dx: -10
554
+ })] }),
555
+ /* @__PURE__ */ jsx(Tooltip, {
556
+ cursor: { fill: "color-mix(in srgb, var(--ds-color-accent) 10%, transparent)" },
557
+ contentStyle: {
558
+ backgroundColor: "color-mix(in srgb, var(--ds-color-surface) 92%, transparent)",
559
+ border: "1px solid var(--ds-color-border)",
560
+ borderRadius: "8px",
561
+ backdropFilter: "blur(8px)",
562
+ color: "var(--ds-color-fg)"
563
+ }
564
+ }),
565
+ normalizedCategories.map((cat) => /* @__PURE__ */ jsx(Bar, {
566
+ dataKey: cat.key,
567
+ fill: cat.color,
568
+ radius: layout === "horizontal" ? [
569
+ 4,
570
+ 4,
571
+ 0,
572
+ 0
573
+ ] : [
574
+ 0,
575
+ 4,
576
+ 4,
577
+ 0
578
+ ]
579
+ }, cat.key))
580
+ ]
581
+ })
582
+ })
583
+ });
584
+ };
585
+ //#endregion
586
+ //#region src/components/data-display/charts/PieChart.tsx
587
+ var PieChart$1 = ({ data, colors, height = 300, className = "", variant = "donut" }) => {
588
+ const innerRadius = variant === "donut" ? "60%" : 0;
589
+ const normalizedColors = React.useMemo(() => normalizeChartColors(colors), [colors]);
590
+ return /* @__PURE__ */ jsx("div", {
591
+ className: `w-full ${className}`,
592
+ style: { height },
593
+ children: /* @__PURE__ */ jsx(ResponsiveContainer, {
594
+ width: "100%",
595
+ height: "100%",
596
+ children: /* @__PURE__ */ jsxs(PieChart, { children: [
597
+ /* @__PURE__ */ jsx(Pie, {
598
+ data,
599
+ cx: "50%",
600
+ cy: "50%",
601
+ innerRadius,
602
+ outerRadius: "80%",
603
+ paddingAngle: variant === "donut" ? 2 : 0,
604
+ dataKey: "value",
605
+ stroke: "none",
606
+ children: data.map((entry, index) => /* @__PURE__ */ jsx(Cell, { fill: normalizedColors[index % normalizedColors.length] }, `cell-${index}`))
607
+ }),
608
+ /* @__PURE__ */ jsx(Tooltip, {
609
+ contentStyle: {
610
+ backgroundColor: "color-mix(in srgb, var(--ds-color-surface) 92%, transparent)",
611
+ border: "1px solid var(--ds-color-border)",
612
+ borderRadius: "8px",
613
+ backdropFilter: "blur(8px)",
614
+ color: "var(--ds-color-fg)"
615
+ },
616
+ itemStyle: { color: "var(--ds-color-fg)" }
617
+ }),
618
+ /* @__PURE__ */ jsx(Legend, {
619
+ iconType: "circle",
620
+ wrapperStyle: {
621
+ fontSize: "12px",
622
+ color: "var(--color-neutral-300)"
623
+ }
624
+ })
625
+ ] })
626
+ })
627
+ });
628
+ };
629
+ //#endregion
630
+ export { StackedBarChart as a, getChartColorVar as c, ThinBreakdownBar as i, getChartPalette as l, BarChart$1 as n, NeonLineChart as o, AreaChart$1 as r, chartColorTokens as s, PieChart$1 as t };
631
+
632
+ //# sourceMappingURL=charts-DugYWvEf.mjs.map