@keboola/design 10.1.0 → 11.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (382) hide show
  1. package/AGENTS.md +2 -0
  2. package/dist/AIKit-Dre37SJr.js +1320 -0
  3. package/dist/AIKit-Dre37SJr.js.map +1 -0
  4. package/dist/Alert-DfZq9kGe.js +133 -0
  5. package/dist/Alert-DfZq9kGe.js.map +1 -0
  6. package/dist/AlertModal-BUC4Es8o.js +222 -0
  7. package/dist/AlertModal-BUC4Es8o.js.map +1 -0
  8. package/dist/AppShell-B5GQN6Zs.js +143 -0
  9. package/dist/AppShell-B5GQN6Zs.js.map +1 -0
  10. package/dist/AutoSaveTextarea-BeuWuszr.js +58 -0
  11. package/dist/AutoSaveTextarea-BeuWuszr.js.map +1 -0
  12. package/dist/Badge-Ch26CXoP.js +195 -0
  13. package/dist/Badge-Ch26CXoP.js.map +1 -0
  14. package/dist/BrandEditor-B8o9zdZO.js +903 -0
  15. package/dist/BrandEditor-B8o9zdZO.js.map +1 -0
  16. package/dist/BrandLogo-CJkRd0F8.js +46 -0
  17. package/dist/BrandLogo-CJkRd0F8.js.map +1 -0
  18. package/dist/Breadcrumb-DJp7WwSv.js +330 -0
  19. package/dist/Breadcrumb-DJp7WwSv.js.map +1 -0
  20. package/dist/Button-nzmDNS2q.js +391 -0
  21. package/dist/Button-nzmDNS2q.js.map +1 -0
  22. package/dist/Calendar-cG5NIJ4O.js +6768 -0
  23. package/dist/Calendar-cG5NIJ4O.js.map +1 -0
  24. package/dist/Card-BAoZ35CV.js +105 -0
  25. package/dist/Card-BAoZ35CV.js.map +1 -0
  26. package/dist/Checkbox-GJ8-srt4.js +97 -0
  27. package/dist/Checkbox-GJ8-srt4.js.map +1 -0
  28. package/dist/Clipboard-CBJZiviP.js +58 -0
  29. package/dist/Clipboard-CBJZiviP.js.map +1 -0
  30. package/dist/ClipboardButton-ez5V3fkk.js +43 -0
  31. package/dist/ClipboardButton-ez5V3fkk.js.map +1 -0
  32. package/dist/CodeEditor-BfQJfbhL.js +952 -0
  33. package/dist/CodeEditor-BfQJfbhL.js.map +1 -0
  34. package/dist/Collapsible-BQXWEOBC.js +34 -0
  35. package/dist/Collapsible-BQXWEOBC.js.map +1 -0
  36. package/dist/ColorInput-Dx8Dsv7Y.js +180 -0
  37. package/dist/ColorInput-Dx8Dsv7Y.js.map +1 -0
  38. package/dist/ColorModeSwitch-CCqj7tjE.js +77 -0
  39. package/dist/ColorModeSwitch-CCqj7tjE.js.map +1 -0
  40. package/dist/Combobox-c_xBjf0P.js +439 -0
  41. package/dist/Combobox-c_xBjf0P.js.map +1 -0
  42. package/dist/Command-CQ_bQsJp.js +102 -0
  43. package/dist/Command-CQ_bQsJp.js.map +1 -0
  44. package/dist/CopyField-BJ96zvXs.js +322 -0
  45. package/dist/CopyField-BJ96zvXs.js.map +1 -0
  46. package/dist/DateInput-CMD3dY-T.js +141 -0
  47. package/dist/DateInput-CMD3dY-T.js.map +1 -0
  48. package/dist/DatePicker-BbFbmsGl.js +24 -0
  49. package/dist/DatePicker-BbFbmsGl.js.map +1 -0
  50. package/dist/DateRangeInput-D3BhiKyk.js +139 -0
  51. package/dist/DateRangeInput-D3BhiKyk.js.map +1 -0
  52. package/dist/DateRangePicker-BiUgtt_M.js +159 -0
  53. package/dist/DateRangePicker-BiUgtt_M.js.map +1 -0
  54. package/dist/DiagramSkeleton-lwBS2YBa.js +11 -0
  55. package/dist/DiagramSkeleton-lwBS2YBa.js.map +1 -0
  56. package/dist/DiffView-ppTIzh2h.js +429 -0
  57. package/dist/DiffView-ppTIzh2h.js.map +1 -0
  58. package/dist/DropdownMenu-B6ZbYvaM.js +327 -0
  59. package/dist/DropdownMenu-B6ZbYvaM.js.map +1 -0
  60. package/dist/FieldBox-D7DYtX_m.js +70 -0
  61. package/dist/FieldBox-D7DYtX_m.js.map +1 -0
  62. package/dist/FileUpload-sXRv7JiY.js +2527 -0
  63. package/dist/FileUpload-sXRv7JiY.js.map +1 -0
  64. package/dist/Form-BDCef6O9.js +371 -0
  65. package/dist/Form-BDCef6O9.js.map +1 -0
  66. package/dist/FormGroup-S9mPNHKH.js +124 -0
  67. package/dist/FormGroup-S9mPNHKH.js.map +1 -0
  68. package/dist/FullScreenModal-CJa2VkJ2.js +96 -0
  69. package/dist/FullScreenModal-CJa2VkJ2.js.map +1 -0
  70. package/dist/HoverCard-WfDkLK1s.js +31 -0
  71. package/dist/HoverCard-WfDkLK1s.js.map +1 -0
  72. package/dist/InputGroup-BJWsI35s.js +292 -0
  73. package/dist/InputGroup-BJWsI35s.js.map +1 -0
  74. package/dist/Kbd-CxHAo1oo.js +111 -0
  75. package/dist/Kbd-CxHAo1oo.js.map +1 -0
  76. package/dist/MarkedText-Ckbft5mw.js +44 -0
  77. package/dist/MarkedText-Ckbft5mw.js.map +1 -0
  78. package/dist/MermaidDiagram-BB06gymm.js +399 -0
  79. package/dist/MermaidDiagram-BB06gymm.js.map +1 -0
  80. package/dist/Modal-BA5Wc3sx.js +185 -0
  81. package/dist/Modal-BA5Wc3sx.js.map +1 -0
  82. package/dist/ModalTitle-C76ke2eo.js +28 -0
  83. package/dist/ModalTitle-C76ke2eo.js.map +1 -0
  84. package/dist/MultiActionButtonGroup-CiBHxsSk.js +33 -0
  85. package/dist/MultiActionButtonGroup-CiBHxsSk.js.map +1 -0
  86. package/dist/Navbar-t16usFZQ.js +322 -0
  87. package/dist/Navbar-t16usFZQ.js.map +1 -0
  88. package/dist/OtpInput-CbbymqYs.js +93 -0
  89. package/dist/OtpInput-CbbymqYs.js.map +1 -0
  90. package/dist/PageHeader-Q3IpCnQd.js +177 -0
  91. package/dist/PageHeader-Q3IpCnQd.js.map +1 -0
  92. package/dist/PageLayout-DSVM-ASz.js +176 -0
  93. package/dist/PageLayout-DSVM-ASz.js.map +1 -0
  94. package/dist/PageToolbar-0_1OBzaZ.js +153 -0
  95. package/dist/PageToolbar-0_1OBzaZ.js.map +1 -0
  96. package/dist/Pagination-CM_Rszz-.js +70 -0
  97. package/dist/Pagination-CM_Rszz-.js.map +1 -0
  98. package/dist/Popconfirm-BGe1jLov.js +170 -0
  99. package/dist/Popconfirm-BGe1jLov.js.map +1 -0
  100. package/dist/Popover-Ca0V6AD1.js +92 -0
  101. package/dist/Popover-Ca0V6AD1.js.map +1 -0
  102. package/dist/RadioGroup-sIveSsNa.js +233 -0
  103. package/dist/RadioGroup-sIveSsNa.js.map +1 -0
  104. package/dist/Resizable-D3vYToZH.js +52 -0
  105. package/dist/Resizable-D3vYToZH.js.map +1 -0
  106. package/dist/Search-3UiqNZRj.js +184 -0
  107. package/dist/Search-3UiqNZRj.js.map +1 -0
  108. package/dist/SearchInput-D2fcOv7E.js +102 -0
  109. package/dist/SearchInput-D2fcOv7E.js.map +1 -0
  110. package/dist/SectionNav--7bw2b6u.js +276 -0
  111. package/dist/SectionNav--7bw2b6u.js.map +1 -0
  112. package/dist/Select-4YX38G5h.js +181 -0
  113. package/dist/Select-4YX38G5h.js.map +1 -0
  114. package/dist/Sheet-BQrX8-h5.js +169 -0
  115. package/dist/Sheet-BQrX8-h5.js.map +1 -0
  116. package/dist/Sidebar-ROaR_AqC.js +799 -0
  117. package/dist/Sidebar-ROaR_AqC.js.map +1 -0
  118. package/dist/Slider-Da_3mS5v.js +127 -0
  119. package/dist/Slider-Da_3mS5v.js.map +1 -0
  120. package/dist/Stepper-C8sm9ZFM.js +325 -0
  121. package/dist/Stepper-C8sm9ZFM.js.map +1 -0
  122. package/dist/Switch-CX2A0v50.js +201 -0
  123. package/dist/Switch-CX2A0v50.js.map +1 -0
  124. package/dist/Table-CvYuTuNU.js +104 -0
  125. package/dist/Table-CvYuTuNU.js.map +1 -0
  126. package/dist/Tabs-EAihyqCt.js +74 -0
  127. package/dist/Tabs-EAihyqCt.js.map +1 -0
  128. package/dist/TextInput-BGed-V13.js +110 -0
  129. package/dist/TextInput-BGed-V13.js.map +1 -0
  130. package/dist/ThemeProvider-QncUrfJn.js +203 -0
  131. package/dist/ThemeProvider-QncUrfJn.js.map +1 -0
  132. package/dist/TimePicker-B_NegL-7.js +98 -0
  133. package/dist/TimePicker-B_NegL-7.js.map +1 -0
  134. package/dist/Timeline-6btyJl4D.js +154 -0
  135. package/dist/Timeline-6btyJl4D.js.map +1 -0
  136. package/dist/Toast-DQSbs3oA.js +49 -0
  137. package/dist/Toast-DQSbs3oA.js.map +1 -0
  138. package/dist/ToggleGroup-Cy_10Mvu.js +47 -0
  139. package/dist/ToggleGroup-Cy_10Mvu.js.map +1 -0
  140. package/dist/Workbench-BzE-Vvd9.js +293 -0
  141. package/dist/Workbench-BzE-Vvd9.js.map +1 -0
  142. package/dist/ZoomableSvg-DG9PnAm8.js +248 -0
  143. package/dist/ZoomableSvg-DG9PnAm8.js.map +1 -0
  144. package/dist/charts.d.ts +124 -111
  145. package/dist/charts.js +303 -249
  146. package/dist/charts.js.map +1 -1
  147. package/dist/classNames-BzrkDnOD.js +9 -0
  148. package/dist/classNames-BzrkDnOD.js.map +1 -0
  149. package/dist/constants-D6JcsD4_.d.ts +41 -0
  150. package/dist/context-KxxeMHbR.js +62 -0
  151. package/dist/context-KxxeMHbR.js.map +1 -0
  152. package/dist/editors.d.ts +180 -173
  153. package/dist/editors.js +747 -420
  154. package/dist/editors.js.map +1 -1
  155. package/dist/escapeStringRegexp-8MxP2knR.js +6 -0
  156. package/dist/escapeStringRegexp-8MxP2knR.js.map +1 -0
  157. package/dist/icons-Cek151jC.js +640 -0
  158. package/dist/icons-Cek151jC.js.map +1 -0
  159. package/dist/icons.d.ts +2 -41
  160. package/dist/icons.js +2 -4
  161. package/dist/index-m-kQEWiY.d.ts +54 -0
  162. package/dist/index.d.ts +6192 -9904
  163. package/dist/index.js +112 -15803
  164. package/dist/internal/blocks/AIKit.js +2 -0
  165. package/dist/internal/blocks/AppShell.js +2 -0
  166. package/dist/internal/blocks/AutoSaveTextarea.js +2 -0
  167. package/dist/internal/blocks/BrandEditor.js +2 -0
  168. package/dist/internal/blocks/ChartPanel.js +46 -0
  169. package/dist/internal/blocks/ChartPanel.js.map +1 -0
  170. package/dist/internal/blocks/ClipboardButton.js +2 -0
  171. package/dist/internal/blocks/ColorInput.js +2 -0
  172. package/dist/internal/blocks/ColorModeSwitch.js +2 -0
  173. package/dist/internal/blocks/Command.js +2 -0
  174. package/dist/internal/blocks/CopyField.js +2 -0
  175. package/dist/internal/blocks/DashboardHero.js +59 -0
  176. package/dist/internal/blocks/DashboardHero.js.map +1 -0
  177. package/dist/internal/blocks/DateInput.js +2 -0
  178. package/dist/internal/blocks/DateRangeInput.js +2 -0
  179. package/dist/internal/blocks/EmptyConfigurationActionCard.js +16 -0
  180. package/dist/internal/blocks/EmptyConfigurationActionCard.js.map +1 -0
  181. package/dist/internal/blocks/EmptyState.js +142 -0
  182. package/dist/internal/blocks/EmptyState.js.map +1 -0
  183. package/dist/internal/blocks/ErrorState.js +179 -0
  184. package/dist/internal/blocks/ErrorState.js.map +1 -0
  185. package/dist/internal/blocks/ExportMenu.js +41 -0
  186. package/dist/internal/blocks/ExportMenu.js.map +1 -0
  187. package/dist/internal/blocks/Form.js +2 -0
  188. package/dist/internal/blocks/FormGroup.js +2 -0
  189. package/dist/internal/blocks/GoogleButton.js +95 -0
  190. package/dist/internal/blocks/GoogleButton.js.map +1 -0
  191. package/dist/internal/blocks/MicrosoftButton.js +64 -0
  192. package/dist/internal/blocks/MicrosoftButton.js.map +1 -0
  193. package/dist/internal/blocks/MultiActionButtonGroup.js +2 -0
  194. package/dist/internal/blocks/MultiCombobox.js +188 -0
  195. package/dist/internal/blocks/MultiCombobox.js.map +1 -0
  196. package/dist/internal/blocks/NumberInput.js +44 -0
  197. package/dist/internal/blocks/NumberInput.js.map +1 -0
  198. package/dist/internal/blocks/OtpInput.js +2 -0
  199. package/dist/internal/blocks/PageHeader.js +2 -0
  200. package/dist/internal/blocks/PageLayout.js +2 -0
  201. package/dist/internal/blocks/PageToolbar.js +2 -0
  202. package/dist/internal/blocks/PasswordInput.js +97 -0
  203. package/dist/internal/blocks/PasswordInput.js.map +1 -0
  204. package/dist/internal/blocks/SearchInput.js +2 -0
  205. package/dist/internal/blocks/SearchInputWithNavigation.js +65 -0
  206. package/dist/internal/blocks/SearchInputWithNavigation.js.map +1 -0
  207. package/dist/internal/blocks/SectionNav.js +2 -0
  208. package/dist/internal/blocks/SplitButton.js +46 -0
  209. package/dist/internal/blocks/SplitButton.js.map +1 -0
  210. package/dist/internal/blocks/StatCard.js +97 -0
  211. package/dist/internal/blocks/StatCard.js.map +1 -0
  212. package/dist/internal/blocks/TextInput.js +2 -0
  213. package/dist/internal/blocks/Textarea.js +32 -0
  214. package/dist/internal/blocks/Textarea.js.map +1 -0
  215. package/dist/internal/blocks/TimeInput.js +77 -0
  216. package/dist/internal/blocks/TimeInput.js.map +1 -0
  217. package/dist/internal/components/Alert.js +2 -0
  218. package/dist/internal/components/AlertModal.js +2 -0
  219. package/dist/internal/components/Avatar.js +53 -0
  220. package/dist/internal/components/Avatar.js.map +1 -0
  221. package/dist/internal/components/Badge.js +2 -0
  222. package/dist/internal/components/BrandLogo.js +2 -0
  223. package/dist/internal/components/Breadcrumb.js +2 -0
  224. package/dist/internal/components/Button.js +2 -0
  225. package/dist/internal/components/ButtonGroup.js +66 -0
  226. package/dist/internal/components/ButtonGroup.js.map +1 -0
  227. package/dist/internal/components/Calendar.js +2 -0
  228. package/dist/internal/components/Card.js +2 -0
  229. package/dist/internal/components/Checkbox.js +2 -0
  230. package/dist/internal/components/Clipboard.js +2 -0
  231. package/dist/internal/components/Collapsible.js +2 -0
  232. package/dist/internal/components/CollapsiblePanel.js +87 -0
  233. package/dist/internal/components/CollapsiblePanel.js.map +1 -0
  234. package/dist/internal/components/Combobox.js +2 -0
  235. package/dist/internal/components/DatePicker.js +2 -0
  236. package/dist/internal/components/DateRangePicker.js +2 -0
  237. package/dist/internal/components/DiffView.js +2 -0
  238. package/dist/internal/components/DotsLoader.js +18 -0
  239. package/dist/internal/components/DotsLoader.js.map +1 -0
  240. package/dist/internal/components/DropdownMenu.js +2 -0
  241. package/dist/internal/components/EmptySearchContent.js +12 -0
  242. package/dist/internal/components/EmptySearchContent.js.map +1 -0
  243. package/dist/internal/components/FileUpload.js +2 -0
  244. package/dist/internal/components/FullScreenModal.js +2 -0
  245. package/dist/internal/components/HelpBlock.js +25 -0
  246. package/dist/internal/components/HelpBlock.js.map +1 -0
  247. package/dist/internal/components/HoverCard.js +2 -0
  248. package/dist/internal/components/InputGroup.js +2 -0
  249. package/dist/internal/components/Kbd.js +2 -0
  250. package/dist/internal/components/Label.js +39 -0
  251. package/dist/internal/components/Label.js.map +1 -0
  252. package/dist/internal/components/Link.js +22 -0
  253. package/dist/internal/components/Link.js.map +1 -0
  254. package/dist/internal/components/MarkedText.js +2 -0
  255. package/dist/internal/components/MergeEditor/ConflictStatus/ConflictStatusIndicator.js +20 -0
  256. package/dist/internal/components/MergeEditor/ConflictStatus/ConflictStatusIndicator.js.map +1 -0
  257. package/dist/internal/components/MergeEditor/PaneHeader.js +13 -0
  258. package/dist/internal/components/MergeEditor/PaneHeader.js.map +1 -0
  259. package/dist/internal/components/MergeEditor/constants.js +18 -0
  260. package/dist/internal/components/MergeEditor/constants.js.map +1 -0
  261. package/dist/internal/components/MergeEditor/useMergeDiff.js +2 -0
  262. package/dist/internal/components/Modal.js +2 -0
  263. package/dist/internal/components/Navbar.js +2 -0
  264. package/dist/internal/components/Pagination.js +2 -0
  265. package/dist/internal/components/PanelWithDetails.js +31 -0
  266. package/dist/internal/components/PanelWithDetails.js.map +1 -0
  267. package/dist/internal/components/Popconfirm.js +2 -0
  268. package/dist/internal/components/Popover.js +2 -0
  269. package/dist/internal/components/Progress.js +47 -0
  270. package/dist/internal/components/Progress.js.map +1 -0
  271. package/dist/internal/components/RadioGroup.js +2 -0
  272. package/dist/internal/components/Resizable.js +2 -0
  273. package/dist/internal/components/ScrollArea.js +42 -0
  274. package/dist/internal/components/ScrollArea.js.map +1 -0
  275. package/dist/internal/components/Search.js +2 -0
  276. package/dist/internal/components/Select.js +2 -0
  277. package/dist/internal/components/Separator.js +84 -0
  278. package/dist/internal/components/Separator.js.map +1 -0
  279. package/dist/internal/components/Sheet.js +2 -0
  280. package/dist/internal/components/Sidebar.js +2 -0
  281. package/dist/internal/components/Skeleton/Skeleton.js +39 -0
  282. package/dist/internal/components/Skeleton/Skeleton.js.map +1 -0
  283. package/dist/internal/components/Skeleton/SkeletonList.js +41 -0
  284. package/dist/internal/components/Skeleton/SkeletonList.js.map +1 -0
  285. package/dist/internal/components/Slider.js +2 -0
  286. package/dist/internal/components/SpotlightBackdrop.js +132 -0
  287. package/dist/internal/components/SpotlightBackdrop.js.map +1 -0
  288. package/dist/internal/components/Stepper.js +2 -0
  289. package/dist/internal/components/Switch.js +2 -0
  290. package/dist/internal/components/Table.js +2 -0
  291. package/dist/internal/components/Tabs.js +2 -0
  292. package/dist/internal/components/ThemeProvider.js +3 -0
  293. package/dist/internal/components/TimePicker.js +2 -0
  294. package/dist/internal/components/Timeline.js +2 -0
  295. package/dist/internal/components/Toast.js +3 -0
  296. package/dist/internal/components/Toggle.js +169 -0
  297. package/dist/internal/components/Toggle.js.map +1 -0
  298. package/dist/internal/components/ToggleGroup.js +2 -0
  299. package/dist/internal/components/Tooltip.js +2 -0
  300. package/dist/internal/components/Truncated.js +45 -0
  301. package/dist/internal/components/Truncated.js.map +1 -0
  302. package/dist/internal/components/Workbench.js +2 -0
  303. package/dist/internal/components/ZoomableSvg.js +2 -0
  304. package/dist/internal/hooks/useAutosizeInput.js +77 -0
  305. package/dist/internal/hooks/useAutosizeInput.js.map +1 -0
  306. package/dist/internal/hooks/useScrollbarPosition.js +45 -0
  307. package/dist/internal/hooks/useScrollbarPosition.js.map +1 -0
  308. package/dist/internal/hooks/useStableCallback.js +29 -0
  309. package/dist/internal/hooks/useStableCallback.js.map +1 -0
  310. package/dist/internal/utils/mergeRefs.js +20 -0
  311. package/dist/internal/utils/mergeRefs.js.map +1 -0
  312. package/dist/internal/utils.js +5 -0
  313. package/dist/markdown-editor.d.ts +72 -72
  314. package/dist/markdown-editor.js +1122 -1193
  315. package/dist/markdown-editor.js.map +1 -1
  316. package/dist/mermaid.d.ts +12 -12
  317. package/dist/mermaid.js +2 -10
  318. package/dist/rjsf.d.ts +33 -34
  319. package/dist/rjsf.js +1543 -1600
  320. package/dist/rjsf.js.map +1 -1
  321. package/dist/rolldown-runtime-Bdc48AWt.js +33 -0
  322. package/dist/styles-DSUP_-9Z.js +158 -0
  323. package/dist/styles-DSUP_-9Z.js.map +1 -0
  324. package/dist/styles.css +1 -1
  325. package/dist/testing.d.ts +8 -7
  326. package/dist/testing.js +36 -16
  327. package/dist/testing.js.map +1 -1
  328. package/dist/themeTokens-BNg98Mu9.js +85 -0
  329. package/dist/themeTokens-BNg98Mu9.js.map +1 -0
  330. package/dist/toast-CjkURw0M.js +184 -0
  331. package/dist/toast-CjkURw0M.js.map +1 -0
  332. package/dist/useColorSchemeState-CYqcUfSH.js +61 -0
  333. package/dist/useColorSchemeState-CYqcUfSH.js.map +1 -0
  334. package/dist/useControllableState-M6494mCT.js +31 -0
  335. package/dist/useControllableState-M6494mCT.js.map +1 -0
  336. package/dist/useElement-DkF6esWL.js +15 -0
  337. package/dist/useElement-DkF6esWL.js.map +1 -0
  338. package/dist/useMergeDiff-CvowEXJ1.js +465 -0
  339. package/dist/useMergeDiff-CvowEXJ1.js.map +1 -0
  340. package/dist/utils-D0c5VAyF.js +308 -0
  341. package/dist/utils-D0c5VAyF.js.map +1 -0
  342. package/package.json +10 -9
  343. package/src/styles.css +35 -7
  344. package/src/theme.css +64 -0
  345. package/dist/MermaidDiagram-EOKJHQQV.js +0 -10
  346. package/dist/MermaidDiagram-EOKJHQQV.js.map +0 -1
  347. package/dist/chunk-63NSN2VL.js +0 -274
  348. package/dist/chunk-63NSN2VL.js.map +0 -1
  349. package/dist/chunk-6FPEI4EM.js +0 -6683
  350. package/dist/chunk-6FPEI4EM.js.map +0 -1
  351. package/dist/chunk-7PUUHEJQ.js +0 -1313
  352. package/dist/chunk-7PUUHEJQ.js.map +0 -1
  353. package/dist/chunk-BOHNXTMM.js +0 -606
  354. package/dist/chunk-BOHNXTMM.js.map +0 -1
  355. package/dist/chunk-C3L3TBBT.js +0 -242
  356. package/dist/chunk-C3L3TBBT.js.map +0 -1
  357. package/dist/chunk-CTCFYWJC.js +0 -407
  358. package/dist/chunk-CTCFYWJC.js.map +0 -1
  359. package/dist/chunk-ESBL3IPF.js +0 -23
  360. package/dist/chunk-ESBL3IPF.js.map +0 -1
  361. package/dist/chunk-IJTHFNNJ.js +0 -261
  362. package/dist/chunk-IJTHFNNJ.js.map +0 -1
  363. package/dist/chunk-JP7PNHLH.js +0 -40
  364. package/dist/chunk-JP7PNHLH.js.map +0 -1
  365. package/dist/chunk-KPNAW5MU.js +0 -229
  366. package/dist/chunk-KPNAW5MU.js.map +0 -1
  367. package/dist/chunk-L37JJ6MR.js +0 -152
  368. package/dist/chunk-L37JJ6MR.js.map +0 -1
  369. package/dist/chunk-Q7NWXLCT.js +0 -90
  370. package/dist/chunk-Q7NWXLCT.js.map +0 -1
  371. package/dist/chunk-SYIEF644.js +0 -1016
  372. package/dist/chunk-SYIEF644.js.map +0 -1
  373. package/dist/chunk-VMFSRV5H.js +0 -16
  374. package/dist/chunk-VMFSRV5H.js.map +0 -1
  375. package/dist/chunk-VPPM7UUQ.js +0 -47
  376. package/dist/chunk-VPPM7UUQ.js.map +0 -1
  377. package/dist/chunk-XV3UUOYF.js +0 -845
  378. package/dist/chunk-XV3UUOYF.js.map +0 -1
  379. package/dist/constants-D3gaMY-W.d.ts +0 -39
  380. package/dist/icons.js.map +0 -1
  381. package/dist/index.js.map +0 -1
  382. package/dist/mermaid.js.map +0 -1
package/dist/charts.js CHANGED
@@ -1,256 +1,310 @@
1
- import { cn } from './chunk-JP7PNHLH.js';
2
- import { ResponsiveContainer, Tooltip, LineChart as LineChart$1, Line, BarChart as BarChart$1, Bar, AreaChart as AreaChart$1, Area, PieChart as PieChart$1, Legend, Pie, Cell, CartesianGrid, XAxis, YAxis } from 'recharts';
3
- import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
4
-
5
- var ChartContainer = ({
6
- height = 300,
7
- width = "100%",
8
- className,
9
- children,
10
- ...props
11
- }) => /* @__PURE__ */ jsx(
12
- "div",
13
- {
14
- className: cn(
15
- "tw:text-xs",
16
- // Axis ticks and labels follow the muted foreground token.
17
- "tw:[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground",
18
- "tw:[&_.recharts-polar-angle-axis-tick_text]:fill-muted-foreground",
19
- "tw:[&_.recharts-label]:fill-muted-foreground",
20
- "tw:[&_.recharts-legend-item-text]:!text-muted-foreground",
21
- // Grid lines, axis lines and the hover cursor follow the border token.
22
- "tw:[&_.recharts-cartesian-grid_line]:stroke-border/60",
23
- "tw:[&_.recharts-cartesian-axis-line]:stroke-border",
24
- "tw:[&_.recharts-cartesian-axis-tick-line]:stroke-border",
25
- "tw:[&_.recharts-curve.recharts-tooltip-cursor]:stroke-border",
26
- "tw:[&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted/60",
27
- "tw:[&_.recharts-surface]:outline-hidden",
28
- className
29
- ),
30
- ...props,
31
- children: /* @__PURE__ */ jsx(ResponsiveContainer, { width, height, children })
32
- }
33
- );
34
- var ChartTooltipContent = ({
35
- active,
36
- label,
37
- payload,
38
- valueFormatter,
39
- className
40
- }) => {
41
- if (!active || !payload?.length) return null;
42
- return /* @__PURE__ */ jsxs(
43
- "div",
44
- {
45
- className: cn(
46
- "tw:min-w-32 tw:rounded-md tw:border tw:border-border tw:bg-popover tw:px-2.5 tw:py-1.5 tw:text-xs tw:text-popover-foreground tw:shadow-md",
47
- className
48
- ),
49
- children: [
50
- label != null && /* @__PURE__ */ jsx("div", { className: "tw:mb-1 tw:font-medium", children: label }),
51
- /* @__PURE__ */ jsx("div", { className: "tw:flex tw:flex-col tw:gap-1", children: payload.map((entry) => {
52
- const name = String(entry.name ?? entry.dataKey ?? "");
53
- const value = entry.value;
54
- const hasNumber = value != null && value !== "" && Number.isFinite(Number(value));
55
- const display = hasNumber ? valueFormatter ? valueFormatter(Number(value), name) : String(Number(value)) : value ?? "";
56
- return /* @__PURE__ */ jsxs(
57
- "div",
58
- {
59
- className: "tw:flex tw:items-center tw:justify-between tw:gap-3",
60
- children: [
61
- /* @__PURE__ */ jsxs("span", { className: "tw:flex tw:items-center tw:gap-1.5", children: [
62
- /* @__PURE__ */ jsx(
63
- "span",
64
- {
65
- className: "tw:size-2 tw:shrink-0 tw:rounded-[2px]",
66
- style: { backgroundColor: entry.color }
67
- }
68
- ),
69
- /* @__PURE__ */ jsx("span", { className: "tw:text-muted-foreground", children: name })
70
- ] }),
71
- /* @__PURE__ */ jsx("span", { className: "tw:font-medium tw:tabular-nums", children: display })
72
- ]
73
- },
74
- String(entry.dataKey ?? name)
75
- );
76
- }) })
77
- ]
78
- }
79
- );
1
+ import { cn } from "./classNames-BzrkDnOD.js";
2
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
+ import { Area, AreaChart as AreaChart$1, Bar, BarChart as BarChart$1, CartesianGrid, Cell, Legend, Line, LineChart as LineChart$1, Pie, PieChart as PieChart$1, ResponsiveContainer, Tooltip, XAxis, YAxis } from "recharts";
4
+ //#region src/blocks/Charts/ChartContainer.tsx
5
+ /**
6
+ * Responsive, brand-themed frame for a chart. Wraps the chart in recharts'
7
+ * `<ResponsiveContainer>` and applies the semantic-token chrome (axis text,
8
+ * grid, cursor) through CSS so every chart inside inherits it. Sizing is
9
+ * intrinsic: give it a `height` (default 300) and it fills the parent width.
10
+ */
11
+ const ChartContainer = ({ height = 300, width = "100%", className, children, ...props }) => /* @__PURE__ */ jsx("div", {
12
+ className: cn("tw:text-xs", "tw:[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground", "tw:[&_.recharts-polar-angle-axis-tick_text]:fill-muted-foreground", "tw:[&_.recharts-label]:fill-muted-foreground", "tw:[&_.recharts-legend-item-text]:!text-muted-foreground", "tw:[&_.recharts-cartesian-grid_line]:stroke-border/60", "tw:[&_.recharts-cartesian-axis-line]:stroke-border", "tw:[&_.recharts-cartesian-axis-tick-line]:stroke-border", "tw:[&_.recharts-curve.recharts-tooltip-cursor]:stroke-border", "tw:[&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted/60", "tw:[&_.recharts-surface]:outline-hidden", className),
13
+ ...props,
14
+ children: /* @__PURE__ */ jsx(ResponsiveContainer, {
15
+ width,
16
+ height,
17
+ children
18
+ })
19
+ });
20
+ //#endregion
21
+ //#region src/blocks/Charts/ChartTooltip.tsx
22
+ /**
23
+ * Brand-themed tooltip body. Surfaces (background, border, text) resolve from
24
+ * semantic tokens, and each series swatch reuses the recharts-provided series
25
+ * `color` (already a `--chart-*` token from this package's charts).
26
+ */
27
+ const ChartTooltipContent = ({ active, label, payload, valueFormatter, className }) => {
28
+ if (!active || !payload?.length) return null;
29
+ return /* @__PURE__ */ jsxs("div", {
30
+ className: cn("tw:min-w-32 tw:rounded-md tw:border tw:border-border tw:bg-popover tw:px-2.5 tw:py-1.5 tw:text-xs tw:text-popover-foreground tw:shadow-md", className),
31
+ children: [label != null && /* @__PURE__ */ jsx("div", {
32
+ className: "tw:mb-1 tw:font-medium",
33
+ children: label
34
+ }), /* @__PURE__ */ jsx("div", {
35
+ className: "tw:flex tw:flex-col tw:gap-1",
36
+ children: payload.map((entry) => {
37
+ const name = String(entry.name ?? entry.dataKey ?? "");
38
+ const value = entry.value;
39
+ const display = value != null && value !== "" && Number.isFinite(Number(value)) ? valueFormatter ? valueFormatter(Number(value), name) : String(Number(value)) : value ?? "";
40
+ return /* @__PURE__ */ jsxs("div", {
41
+ className: "tw:flex tw:items-center tw:justify-between tw:gap-3",
42
+ children: [/* @__PURE__ */ jsxs("span", {
43
+ className: "tw:flex tw:items-center tw:gap-1.5",
44
+ children: [/* @__PURE__ */ jsx("span", {
45
+ className: "tw:size-2 tw:shrink-0 tw:rounded-[2px]",
46
+ style: { backgroundColor: entry.color }
47
+ }), /* @__PURE__ */ jsx("span", {
48
+ className: "tw:text-muted-foreground",
49
+ children: name
50
+ })]
51
+ }), /* @__PURE__ */ jsx("span", {
52
+ className: "tw:font-medium tw:tabular-nums",
53
+ children: display
54
+ })]
55
+ }, String(entry.dataKey ?? name));
56
+ })
57
+ })]
58
+ });
80
59
  };
81
- var ChartTooltip = ({ valueFormatter, ...props }) => /* @__PURE__ */ jsx(
82
- Tooltip,
83
- {
84
- cursor: { strokeWidth: 1 },
85
- content: /* @__PURE__ */ jsx(ChartTooltipContent, { valueFormatter }),
86
- ...props
87
- }
88
- );
89
-
90
- // src/blocks/Charts/format.ts
91
- var formatValue = (value, valueFormatter) => {
92
- if (value == null || value === "") return "";
93
- const num = Number(value);
94
- if (!Number.isFinite(num)) return "";
95
- return valueFormatter ? valueFormatter(num) : String(num);
60
+ /**
61
+ * Drop-in recharts `<Tooltip>` pre-wired to render {@link ChartTooltipContent}.
62
+ * Each chart mounts one by default; pass `showTooltip={false}` on the chart to omit.
63
+ */
64
+ const ChartTooltip = ({ valueFormatter, ...props }) => /* @__PURE__ */ jsx(Tooltip, {
65
+ cursor: { strokeWidth: 1 },
66
+ content: /* @__PURE__ */ jsx(ChartTooltipContent, { valueFormatter }),
67
+ ...props
68
+ });
69
+ //#endregion
70
+ //#region src/blocks/Charts/format.ts
71
+ /**
72
+ * Apply a numeric `valueFormatter` safely. recharts hands axis ticks and
73
+ * tooltip payload values as `string | number | null | undefined`, and partial
74
+ * or streaming data can carry gaps. Coercing those straight through
75
+ * `Number(value)` would render `$0` (empty string → 0) or `$NaN` (non-numeric),
76
+ * so a missing / non-finite value is rendered as an empty string instead of
77
+ * being fed to the formatter.
78
+ */
79
+ const formatValue = (value, valueFormatter) => {
80
+ if (value == null || value === "") return "";
81
+ const num = Number(value);
82
+ if (!Number.isFinite(num)) return "";
83
+ return valueFormatter ? valueFormatter(num) : String(num);
96
84
  };
97
- var AXIS_PROPS = {
98
- tickLine: false,
99
- axisLine: false,
100
- tick: { fontSize: 11 }
85
+ //#endregion
86
+ //#region src/blocks/Charts/cartesian.tsx
87
+ const AXIS_PROPS = {
88
+ tickLine: false,
89
+ axisLine: false,
90
+ tick: { fontSize: 11 }
101
91
  };
102
- var cartesianChrome = ({
103
- xKey,
104
- showGrid = true,
105
- showYAxis = true,
106
- showLegend = false,
107
- showTooltip = true,
108
- valueFormatter,
109
- yDomain
110
- }) => /* @__PURE__ */ jsxs(Fragment, { children: [
111
- showGrid && /* @__PURE__ */ jsx(CartesianGrid, { strokeDasharray: "3 3", vertical: false }),
112
- /* @__PURE__ */ jsx(XAxis, { dataKey: xKey, ...AXIS_PROPS }),
113
- (showYAxis || yDomain !== void 0) && /* @__PURE__ */ jsx(
114
- YAxis,
115
- {
116
- hide: !showYAxis,
117
- domain: yDomain,
118
- width: 48,
119
- ...AXIS_PROPS,
120
- tickFormatter: valueFormatter ? (value) => formatValue(value, valueFormatter) : void 0
121
- }
122
- ),
123
- showTooltip && /* @__PURE__ */ jsx(
124
- ChartTooltip,
125
- {
126
- valueFormatter: valueFormatter ? (value) => formatValue(value, valueFormatter) : void 0
127
- }
128
- ),
129
- showLegend && /* @__PURE__ */ jsx(Legend, { wrapperStyle: { fontSize: 11 } })
92
+ /**
93
+ * The grid + axes + tooltip + legend shared by the line, bar, and area charts.
94
+ * Colors are applied via `ChartContainer`'s CSS chrome, not inline props, so
95
+ * these stay brand-safe.
96
+ */
97
+ const cartesianChrome = ({ xKey, showGrid = true, showYAxis = true, showLegend = false, showTooltip = true, valueFormatter, yDomain }) => /* @__PURE__ */ jsxs(Fragment, { children: [
98
+ showGrid && /* @__PURE__ */ jsx(CartesianGrid, {
99
+ strokeDasharray: "3 3",
100
+ vertical: false
101
+ }),
102
+ /* @__PURE__ */ jsx(XAxis, {
103
+ dataKey: xKey,
104
+ ...AXIS_PROPS
105
+ }),
106
+ (showYAxis || yDomain !== void 0) && /* @__PURE__ */ jsx(YAxis, {
107
+ hide: !showYAxis,
108
+ domain: yDomain,
109
+ width: 48,
110
+ ...AXIS_PROPS,
111
+ tickFormatter: valueFormatter ? (value) => formatValue(value, valueFormatter) : void 0
112
+ }),
113
+ showTooltip && /* @__PURE__ */ jsx(ChartTooltip, { valueFormatter: valueFormatter ? (value) => formatValue(value, valueFormatter) : void 0 }),
114
+ showLegend && /* @__PURE__ */ jsx(Legend, { wrapperStyle: { fontSize: 11 } })
130
115
  ] });
131
-
132
- // src/blocks/Charts/theme.ts
133
- var CHART_TOKEN_COUNT = 5;
134
- var chartTokenColor = (index) => {
135
- const slot = (index % CHART_TOKEN_COUNT + CHART_TOKEN_COUNT) % CHART_TOKEN_COUNT + 1;
136
- return `rgb(var(--chart-${slot}))`;
116
+ //#endregion
117
+ //#region src/blocks/Charts/theme.ts
118
+ /**
119
+ * The design system ships a five-slot categorical chart palette as CSS
120
+ * variables (`--chart-1` … `--chart-5`). Charts resolve their
121
+ * series colors from these tokens only — never from inline hex or a primitive
122
+ * scale — so they follow both the active color scheme (light/dark, via
123
+ * `data-theme` in `styles.css`) and the active brand: a brand reskins charts
124
+ * by defining `colors.chart` (and `colorsDark.chart`) in its
125
+ * `@keboola/brand-registry` definition, which `ThemeProvider` emits as the
126
+ * `--chart-*` variables.
127
+ *
128
+ * The CSS variables hold raw `R G B` channels (for Tailwind's `<alpha-value>`
129
+ * opacity modifiers), so they are wrapped in `rgb(...)` before handing them to
130
+ * recharts as ordinary SVG `stroke` / `fill` strings.
131
+ */
132
+ const CHART_TOKEN_COUNT = 5;
133
+ /**
134
+ * The CSS color for a chart token. `index` is 0-based (series position); it
135
+ * wraps around the five-slot palette so any number of series stays on-brand.
136
+ */
137
+ const chartTokenColor = (index) => {
138
+ return `rgb(var(--chart-${(index % CHART_TOKEN_COUNT + CHART_TOKEN_COUNT) % CHART_TOKEN_COUNT + 1}))`;
137
139
  };
138
- var resolveSeriesColor = (index, token) => chartTokenColor(token ? token - 1 : index);
139
- var LineChart = ({
140
- data,
141
- xKey,
142
- series,
143
- height,
144
- width,
145
- className,
146
- ...chrome
147
- }) => /* @__PURE__ */ jsx(ChartContainer, { height, width, className, children: /* @__PURE__ */ jsxs(LineChart$1, { data, margin: { top: 8, right: 8, left: 0, bottom: 0 }, children: [
148
- cartesianChrome({ xKey, ...chrome }),
149
- series.map((s, index) => {
150
- const color = resolveSeriesColor(index, s.color);
151
- return /* @__PURE__ */ jsx(
152
- Line,
153
- {
154
- type: "monotone",
155
- dataKey: s.dataKey,
156
- name: s.name ?? s.dataKey,
157
- stroke: color,
158
- strokeWidth: 2,
159
- dot: { r: 3, fill: color, stroke: color },
160
- activeDot: { r: 4 },
161
- isAnimationActive: false
162
- },
163
- s.dataKey
164
- );
165
- })
166
- ] }) });
167
- var BarChart = ({
168
- data,
169
- xKey,
170
- series,
171
- height,
172
- width,
173
- className,
174
- stacked = false,
175
- ...chrome
176
- }) => /* @__PURE__ */ jsx(ChartContainer, { height, width, className, children: /* @__PURE__ */ jsxs(BarChart$1, { data, margin: { top: 8, right: 8, left: 0, bottom: 0 }, children: [
177
- cartesianChrome({ xKey, ...chrome }),
178
- series.map((s, index) => /* @__PURE__ */ jsx(
179
- Bar,
180
- {
181
- dataKey: s.dataKey,
182
- name: s.name ?? s.dataKey,
183
- fill: resolveSeriesColor(index, s.color),
184
- radius: stacked ? 0 : [4, 4, 0, 0],
185
- stackId: stacked ? "stack" : void 0,
186
- isAnimationActive: false
187
- },
188
- s.dataKey
189
- ))
190
- ] }) });
191
- var AreaChart = ({
192
- data,
193
- xKey,
194
- series,
195
- height,
196
- width,
197
- className,
198
- stacked = false,
199
- ...chrome
200
- }) => /* @__PURE__ */ jsx(ChartContainer, { height, width, className, children: /* @__PURE__ */ jsxs(AreaChart$1, { data, margin: { top: 8, right: 8, left: 0, bottom: 0 }, children: [
201
- cartesianChrome({ xKey, ...chrome }),
202
- series.map((s, index) => {
203
- const color = resolveSeriesColor(index, s.color);
204
- return /* @__PURE__ */ jsx(
205
- Area,
206
- {
207
- type: "monotone",
208
- dataKey: s.dataKey,
209
- name: s.name ?? s.dataKey,
210
- stroke: color,
211
- fill: color,
212
- fillOpacity: 0.15,
213
- strokeWidth: 2,
214
- stackId: stacked ? "stack" : void 0,
215
- isAnimationActive: false
216
- },
217
- s.dataKey
218
- );
219
- })
220
- ] }) });
221
- var PieChart = ({
222
- data,
223
- nameKey,
224
- dataKey,
225
- innerRadius = 0,
226
- height,
227
- width,
228
- className,
229
- showLegend = true,
230
- showTooltip = true,
231
- valueFormatter
232
- }) => /* @__PURE__ */ jsx(ChartContainer, { height, width, className, children: /* @__PURE__ */ jsxs(PieChart$1, { children: [
233
- showTooltip && /* @__PURE__ */ jsx(
234
- ChartTooltip,
235
- {
236
- valueFormatter: valueFormatter ? (value) => formatValue(value, valueFormatter) : void 0
237
- }
238
- ),
239
- showLegend && /* @__PURE__ */ jsx(Legend, { wrapperStyle: { fontSize: 11 } }),
240
- /* @__PURE__ */ jsx(
241
- Pie,
242
- {
243
- data,
244
- nameKey,
245
- dataKey,
246
- innerRadius,
247
- stroke: "rgb(var(--background))",
248
- isAnimationActive: false,
249
- children: data.map((datum, index) => /* @__PURE__ */ jsx(Cell, { fill: chartTokenColor(index) }, String(datum[nameKey] ?? index)))
250
- }
251
- )
252
- ] }) });
253
-
140
+ /** Resolve an explicit token (1–5) or fall back to the series position. */
141
+ const resolveSeriesColor = (index, token) => chartTokenColor(token ? token - 1 : index);
142
+ //#endregion
143
+ //#region src/blocks/Charts/LineChart.tsx
144
+ /**
145
+ * A themed multi-series line chart. Each series' color comes from the semantic
146
+ * `--chart-*` palette (by order, or pinned via `series[].color`), which
147
+ * follows the active color scheme and the active brand's `colors.chart` when it
148
+ * defines one. Wrap-free — mounts its own {@link ChartContainer}.
149
+ *
150
+ * @example
151
+ * <LineChart
152
+ * data={data}
153
+ * xKey="month"
154
+ * series={[{ dataKey: 'revenue', name: 'Revenue' }, { dataKey: 'cost' }]}
155
+ * />
156
+ *
157
+ * @example Two close-but-high series, on a baseline that shows the gap
158
+ * <LineChart data={data} xKey="month" series={series} yDomain={[7000, 9000]} />
159
+ */
160
+ const LineChart = ({ data, xKey, series, height, width, className, ...chrome }) => /* @__PURE__ */ jsx(ChartContainer, {
161
+ height,
162
+ width,
163
+ className,
164
+ children: /* @__PURE__ */ jsxs(LineChart$1, {
165
+ data,
166
+ margin: {
167
+ top: 8,
168
+ right: 8,
169
+ left: 0,
170
+ bottom: 0
171
+ },
172
+ children: [cartesianChrome({
173
+ xKey,
174
+ ...chrome
175
+ }), series.map((s, index) => {
176
+ const color = resolveSeriesColor(index, s.color);
177
+ return /* @__PURE__ */ jsx(Line, {
178
+ type: "monotone",
179
+ dataKey: s.dataKey,
180
+ name: s.name ?? s.dataKey,
181
+ stroke: color,
182
+ strokeWidth: 2,
183
+ dot: {
184
+ r: 3,
185
+ fill: color,
186
+ stroke: color
187
+ },
188
+ activeDot: { r: 4 },
189
+ isAnimationActive: false
190
+ }, s.dataKey);
191
+ })]
192
+ })
193
+ });
194
+ //#endregion
195
+ //#region src/blocks/Charts/BarChart.tsx
196
+ /**
197
+ * A themed multi-series bar chart. Series colors come from the semantic
198
+ * `--chart-*` palette (by order, or pinned via `series[].color`), which
199
+ * follows the active color scheme and the active brand's `colors.chart` when it
200
+ * defines one. Pass `stacked` to stack the series instead of grouping them.
201
+ *
202
+ * @example
203
+ * <BarChart data={data} xKey="month" series={[{ dataKey: 'revenue' }]} />
204
+ */
205
+ const BarChart = ({ data, xKey, series, height, width, className, stacked = false, ...chrome }) => /* @__PURE__ */ jsx(ChartContainer, {
206
+ height,
207
+ width,
208
+ className,
209
+ children: /* @__PURE__ */ jsxs(BarChart$1, {
210
+ data,
211
+ margin: {
212
+ top: 8,
213
+ right: 8,
214
+ left: 0,
215
+ bottom: 0
216
+ },
217
+ children: [cartesianChrome({
218
+ xKey,
219
+ ...chrome
220
+ }), series.map((s, index) => /* @__PURE__ */ jsx(Bar, {
221
+ dataKey: s.dataKey,
222
+ name: s.name ?? s.dataKey,
223
+ fill: resolveSeriesColor(index, s.color),
224
+ radius: stacked ? 0 : [
225
+ 4,
226
+ 4,
227
+ 0,
228
+ 0
229
+ ],
230
+ stackId: stacked ? "stack" : void 0,
231
+ isAnimationActive: false
232
+ }, s.dataKey))]
233
+ })
234
+ });
235
+ //#endregion
236
+ //#region src/blocks/Charts/AreaChart.tsx
237
+ /**
238
+ * A themed multi-series area chart. Each series is stroked and softly filled
239
+ * from the semantic `--chart-*` palette (by order, or pinned via
240
+ * `series[].color`), which follows the active color scheme and the active
241
+ * brand's `colors.chart` when it defines one. Pass `stacked` to stack the
242
+ * series cumulatively.
243
+ *
244
+ * @example
245
+ * <AreaChart data={data} xKey="month" series={[{ dataKey: 'revenue' }]} />
246
+ */
247
+ const AreaChart = ({ data, xKey, series, height, width, className, stacked = false, ...chrome }) => /* @__PURE__ */ jsx(ChartContainer, {
248
+ height,
249
+ width,
250
+ className,
251
+ children: /* @__PURE__ */ jsxs(AreaChart$1, {
252
+ data,
253
+ margin: {
254
+ top: 8,
255
+ right: 8,
256
+ left: 0,
257
+ bottom: 0
258
+ },
259
+ children: [cartesianChrome({
260
+ xKey,
261
+ ...chrome
262
+ }), series.map((s, index) => {
263
+ const color = resolveSeriesColor(index, s.color);
264
+ return /* @__PURE__ */ jsx(Area, {
265
+ type: "monotone",
266
+ dataKey: s.dataKey,
267
+ name: s.name ?? s.dataKey,
268
+ stroke: color,
269
+ fill: color,
270
+ fillOpacity: .15,
271
+ strokeWidth: 2,
272
+ stackId: stacked ? "stack" : void 0,
273
+ isAnimationActive: false
274
+ }, s.dataKey);
275
+ })]
276
+ })
277
+ });
278
+ //#endregion
279
+ //#region src/blocks/Charts/PieChart.tsx
280
+ /**
281
+ * A themed pie / donut chart. Each sector cycles through the semantic
282
+ * `--chart-*` palette, which follows the active color scheme and the
283
+ * active brand's `colors.chart` when it defines one. Pass `innerRadius` to make
284
+ * a donut.
285
+ *
286
+ * @example
287
+ * <PieChart data={data} nameKey="engine" dataKey="rows" innerRadius="60%" />
288
+ */
289
+ const PieChart = ({ data, nameKey, dataKey, innerRadius = 0, height, width, className, showLegend = true, showTooltip = true, valueFormatter }) => /* @__PURE__ */ jsx(ChartContainer, {
290
+ height,
291
+ width,
292
+ className,
293
+ children: /* @__PURE__ */ jsxs(PieChart$1, { children: [
294
+ showTooltip && /* @__PURE__ */ jsx(ChartTooltip, { valueFormatter: valueFormatter ? (value) => formatValue(value, valueFormatter) : void 0 }),
295
+ showLegend && /* @__PURE__ */ jsx(Legend, { wrapperStyle: { fontSize: 11 } }),
296
+ /* @__PURE__ */ jsx(Pie, {
297
+ data,
298
+ nameKey,
299
+ dataKey,
300
+ innerRadius,
301
+ stroke: "rgb(var(--background))",
302
+ isAnimationActive: false,
303
+ children: data.map((datum, index) => /* @__PURE__ */ jsx(Cell, { fill: chartTokenColor(index) }, String(datum[nameKey] ?? index)))
304
+ })
305
+ ] })
306
+ });
307
+ //#endregion
254
308
  export { AreaChart, BarChart, ChartContainer, ChartTooltip, ChartTooltipContent, LineChart, PieChart, chartTokenColor };
255
- //# sourceMappingURL=charts.js.map
309
+
256
310
  //# sourceMappingURL=charts.js.map