@keboola/design 11.0.1 → 11.3.0

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 (243) hide show
  1. package/AGENTS.md +41 -15
  2. package/CHANGELOG.md +2392 -0
  3. package/COMPONENT-API.md +41 -2
  4. package/dist/{AIKit-Dre37SJr.js → AIKit-DaFT7p92.js} +23 -22
  5. package/dist/AIKit-DaFT7p92.js.map +1 -0
  6. package/dist/{Alert-DfZq9kGe.js → Alert-CseY3yAj.js} +3 -3
  7. package/dist/{Alert-DfZq9kGe.js.map → Alert-CseY3yAj.js.map} +1 -1
  8. package/dist/{AlertModal-BUC4Es8o.js → AlertModal-DQAGpsEy.js} +4 -7
  9. package/dist/{AlertModal-BUC4Es8o.js.map → AlertModal-DQAGpsEy.js.map} +1 -1
  10. package/dist/{AppShell-B5GQN6Zs.js → AppShell-BUoxM3fv.js} +29 -10
  11. package/dist/AppShell-BUoxM3fv.js.map +1 -0
  12. package/dist/{BrandEditor-B8o9zdZO.js → BrandEditor-BnTLMRMp.js} +6 -6
  13. package/dist/{BrandEditor-B8o9zdZO.js.map → BrandEditor-BnTLMRMp.js.map} +1 -1
  14. package/dist/{BrandLogo-CJkRd0F8.js → BrandLogo-V2pRUAeO.js} +2 -2
  15. package/dist/{BrandLogo-CJkRd0F8.js.map → BrandLogo-V2pRUAeO.js.map} +1 -1
  16. package/dist/{Breadcrumb-DJp7WwSv.js → Breadcrumb-CQTPn_KB.js} +3 -3
  17. package/dist/{Breadcrumb-DJp7WwSv.js.map → Breadcrumb-CQTPn_KB.js.map} +1 -1
  18. package/dist/{Button-nzmDNS2q.js → Button-CPsEQuTN.js} +16 -16
  19. package/dist/Button-CPsEQuTN.js.map +1 -0
  20. package/dist/{Card-BAoZ35CV.js → Card-Cd5HSBmv.js} +2 -2
  21. package/dist/{Card-BAoZ35CV.js.map → Card-Cd5HSBmv.js.map} +1 -1
  22. package/dist/{Checkbox-GJ8-srt4.js → Checkbox-5VNCcV7E.js} +3 -3
  23. package/dist/{Checkbox-GJ8-srt4.js.map → Checkbox-5VNCcV7E.js.map} +1 -1
  24. package/dist/{Clipboard-CBJZiviP.js → Clipboard-B7rckqV_.js} +2 -2
  25. package/dist/{Clipboard-CBJZiviP.js.map → Clipboard-B7rckqV_.js.map} +1 -1
  26. package/dist/{ClipboardButton-ez5V3fkk.js → ClipboardButton-CQ6Aewpg.js} +3 -3
  27. package/dist/{ClipboardButton-ez5V3fkk.js.map → ClipboardButton-CQ6Aewpg.js.map} +1 -1
  28. package/dist/{CodeEditor-BfQJfbhL.js → CodeEditor-CUse8znx.js} +290 -100
  29. package/dist/CodeEditor-CUse8znx.js.map +1 -0
  30. package/dist/{ColorInput-Dx8Dsv7Y.js → ColorInput-Q1D9Vcc_.js} +3 -3
  31. package/dist/{ColorInput-Dx8Dsv7Y.js.map → ColorInput-Q1D9Vcc_.js.map} +1 -1
  32. package/dist/{ColorModeSwitch-CCqj7tjE.js → ColorModeSwitch-B5PXCVqB.js} +3 -3
  33. package/dist/{ColorModeSwitch-CCqj7tjE.js.map → ColorModeSwitch-B5PXCVqB.js.map} +1 -1
  34. package/dist/{Combobox-c_xBjf0P.js → Combobox-CyoRA7oY.js} +12 -8
  35. package/dist/Combobox-CyoRA7oY.js.map +1 -0
  36. package/dist/{Command-CQ_bQsJp.js → Command-Ds68v2rX.js} +3 -3
  37. package/dist/{Command-CQ_bQsJp.js.map → Command-Ds68v2rX.js.map} +1 -1
  38. package/dist/{CopyField-BJ96zvXs.js → CopyField-DI66uY_g.js} +2 -2
  39. package/dist/{CopyField-BJ96zvXs.js.map → CopyField-DI66uY_g.js.map} +1 -1
  40. package/dist/{DateInput-CMD3dY-T.js → DateInput-BPj2pzsn.js} +4 -4
  41. package/dist/{DateInput-CMD3dY-T.js.map → DateInput-BPj2pzsn.js.map} +1 -1
  42. package/dist/{DatePicker-BbFbmsGl.js → DatePicker-DyEGuW9m.js} +2 -2
  43. package/dist/{DatePicker-BbFbmsGl.js.map → DatePicker-DyEGuW9m.js.map} +1 -1
  44. package/dist/{DateRangeInput-D3BhiKyk.js → DateRangeInput-u9DxNbHW.js} +4 -4
  45. package/dist/{DateRangeInput-D3BhiKyk.js.map → DateRangeInput-u9DxNbHW.js.map} +1 -1
  46. package/dist/{DateRangePicker-BiUgtt_M.js → DateRangePicker-CYYhX6S7.js} +6 -6
  47. package/dist/{DateRangePicker-BiUgtt_M.js.map → DateRangePicker-CYYhX6S7.js.map} +1 -1
  48. package/dist/{DropdownMenu-B6ZbYvaM.js → DropdownMenu-DpMEcyCq.js} +9 -9
  49. package/dist/DropdownMenu-DpMEcyCq.js.map +1 -0
  50. package/dist/FieldItem-qQKGU9lF.js +108 -0
  51. package/dist/FieldItem-qQKGU9lF.js.map +1 -0
  52. package/dist/FieldItem-vhIJW4pj.d.ts +103 -0
  53. package/dist/{FileUpload-sXRv7JiY.js → FileUpload-C336MVnU.js} +2 -2
  54. package/dist/{FileUpload-sXRv7JiY.js.map → FileUpload-C336MVnU.js.map} +1 -1
  55. package/dist/{Form-BDCef6O9.js → Form-CTygENDc.js} +21 -81
  56. package/dist/{Form-BDCef6O9.js.map → Form-CTygENDc.js.map} +1 -1
  57. package/dist/{FormGroup-S9mPNHKH.js → FormGroup-BnwP0jNu.js} +7 -7
  58. package/dist/FormGroup-BnwP0jNu.js.map +1 -0
  59. package/dist/{FullScreenModal-CJa2VkJ2.js → FullScreenModal-j-M4aPFd.js} +3 -3
  60. package/dist/{FullScreenModal-CJa2VkJ2.js.map → FullScreenModal-j-M4aPFd.js.map} +1 -1
  61. package/dist/{HoverCard-WfDkLK1s.js → HoverCard-yQq-O49c.js} +2 -2
  62. package/dist/{HoverCard-WfDkLK1s.js.map → HoverCard-yQq-O49c.js.map} +1 -1
  63. package/dist/{InputGroup-BJWsI35s.js → InputGroup-D7zlmqPB.js} +3 -3
  64. package/dist/{InputGroup-BJWsI35s.js.map → InputGroup-D7zlmqPB.js.map} +1 -1
  65. package/dist/{Kbd-CxHAo1oo.js → Kbd-D6LpR7G2.js} +2 -2
  66. package/dist/{Kbd-CxHAo1oo.js.map → Kbd-D6LpR7G2.js.map} +1 -1
  67. package/dist/{MermaidDiagram-BB06gymm.js → MermaidDiagram-JlvuGcY-.js} +6 -87
  68. package/dist/MermaidDiagram-JlvuGcY-.js.map +1 -0
  69. package/dist/{Modal-BA5Wc3sx.js → Modal-o4ATIexE.js} +3 -3
  70. package/dist/{Modal-BA5Wc3sx.js.map → Modal-o4ATIexE.js.map} +1 -1
  71. package/dist/{MultiActionButtonGroup-CiBHxsSk.js → MultiActionButtonGroup-GTeFk-L8.js} +3 -3
  72. package/dist/{MultiActionButtonGroup-CiBHxsSk.js.map → MultiActionButtonGroup-GTeFk-L8.js.map} +1 -1
  73. package/dist/{Navbar-t16usFZQ.js → Navbar-CAQs4BZz.js} +6 -3
  74. package/dist/Navbar-CAQs4BZz.js.map +1 -0
  75. package/dist/{PageToolbar-0_1OBzaZ.js → PageToolbar-bG2YtSa3.js} +4 -4
  76. package/dist/PageToolbar-bG2YtSa3.js.map +1 -0
  77. package/dist/{Pagination-CM_Rszz-.js → Pagination-BB3X7ooY.js} +2 -2
  78. package/dist/{Pagination-CM_Rszz-.js.map → Pagination-BB3X7ooY.js.map} +1 -1
  79. package/dist/{Popconfirm-BGe1jLov.js → Popconfirm-C2Ky5hJO.js} +4 -7
  80. package/dist/{Popconfirm-BGe1jLov.js.map → Popconfirm-C2Ky5hJO.js.map} +1 -1
  81. package/dist/{Popover-Ca0V6AD1.js → Popover-DsbI2HKu.js} +7 -14
  82. package/dist/Popover-DsbI2HKu.js.map +1 -0
  83. package/dist/{RadioGroup-sIveSsNa.js → RadioGroup-BMxuZEbT.js} +3 -3
  84. package/dist/{RadioGroup-sIveSsNa.js.map → RadioGroup-BMxuZEbT.js.map} +1 -1
  85. package/dist/{Search-3UiqNZRj.js → Search-DFeECt5D.js} +2 -2
  86. package/dist/{Search-3UiqNZRj.js.map → Search-DFeECt5D.js.map} +1 -1
  87. package/dist/{SearchInput-D2fcOv7E.js → SearchInput-CCpdUego.js} +3 -3
  88. package/dist/{SearchInput-D2fcOv7E.js.map → SearchInput-CCpdUego.js.map} +1 -1
  89. package/dist/{SectionNav--7bw2b6u.js → SectionNav-Bw_MVL0_.js} +4 -4
  90. package/dist/{SectionNav--7bw2b6u.js.map → SectionNav-Bw_MVL0_.js.map} +1 -1
  91. package/dist/{Select-4YX38G5h.js → Select-D6IZVvwL.js} +5 -5
  92. package/dist/Select-D6IZVvwL.js.map +1 -0
  93. package/dist/{Sheet-BQrX8-h5.js → Sheet-BIzs2K2H.js} +3 -3
  94. package/dist/{Sheet-BQrX8-h5.js.map → Sheet-BIzs2K2H.js.map} +1 -1
  95. package/dist/{Sidebar-ROaR_AqC.js → Sidebar-r1TW4g_b.js} +5 -5
  96. package/dist/{Sidebar-ROaR_AqC.js.map → Sidebar-r1TW4g_b.js.map} +1 -1
  97. package/dist/{Slider-Da_3mS5v.js → Slider-CjxyfEty.js} +3 -3
  98. package/dist/{Slider-Da_3mS5v.js.map → Slider-CjxyfEty.js.map} +1 -1
  99. package/dist/{Switch-CX2A0v50.js → Switch-BueTV03C.js} +2 -2
  100. package/dist/{Switch-CX2A0v50.js.map → Switch-BueTV03C.js.map} +1 -1
  101. package/dist/{Tabs-EAihyqCt.js → Tabs-l72-WuhK.js} +2 -2
  102. package/dist/{Tabs-EAihyqCt.js.map → Tabs-l72-WuhK.js.map} +1 -1
  103. package/dist/{TextInput-BGed-V13.js → TextInput-DhdRk8qm.js} +3 -3
  104. package/dist/{TextInput-BGed-V13.js.map → TextInput-DhdRk8qm.js.map} +1 -1
  105. package/dist/{ThemeProvider-QncUrfJn.js → ThemeProvider-DZfGdf1v.js} +5 -4
  106. package/dist/{ThemeProvider-QncUrfJn.js.map → ThemeProvider-DZfGdf1v.js.map} +1 -1
  107. package/dist/{TimePicker-B_NegL-7.js → TimePicker-B6d2rAbX.js} +2 -2
  108. package/dist/{TimePicker-B_NegL-7.js.map → TimePicker-B6d2rAbX.js.map} +1 -1
  109. package/dist/{Toast-DQSbs3oA.js → Toast-CxXUulYN.js} +2 -2
  110. package/dist/{Toast-DQSbs3oA.js.map → Toast-CxXUulYN.js.map} +1 -1
  111. package/dist/{ZoomableSvg-DG9PnAm8.js → ZoomableSvg-CNIzRHKH.js} +4 -4
  112. package/dist/{ZoomableSvg-DG9PnAm8.js.map → ZoomableSvg-CNIzRHKH.js.map} +1 -1
  113. package/dist/{context-KxxeMHbR.js → context-BrNtMc1H.js} +3 -33
  114. package/dist/context-BrNtMc1H.js.map +1 -0
  115. package/dist/defaults-CTfvj2KB.js +34 -0
  116. package/dist/defaults-CTfvj2KB.js.map +1 -0
  117. package/dist/editors.d.ts +81 -9
  118. package/dist/editors.js +75 -12
  119. package/dist/editors.js.map +1 -1
  120. package/dist/flint.d.ts +15 -0
  121. package/dist/flint.js +212 -0
  122. package/dist/flint.js.map +1 -0
  123. package/dist/index.d.ts +361 -317
  124. package/dist/index.js +60 -57
  125. package/dist/internal/blocks/AIKit.js +1 -1
  126. package/dist/internal/blocks/AppShell.js +2 -2
  127. package/dist/internal/blocks/BrandEditor.js +1 -1
  128. package/dist/internal/blocks/ChartPanel.js +1 -1
  129. package/dist/internal/blocks/ClipboardButton.js +1 -1
  130. package/dist/internal/blocks/ColorInput.js +1 -1
  131. package/dist/internal/blocks/ColorModeSwitch.js +1 -1
  132. package/dist/internal/blocks/Command.js +1 -1
  133. package/dist/internal/blocks/CopyField.js +1 -1
  134. package/dist/internal/blocks/DateInput.js +1 -1
  135. package/dist/internal/blocks/DateRangeInput.js +1 -1
  136. package/dist/{DiagramSkeleton-lwBS2YBa.js → internal/blocks/DiagramShared/DiagramSkeleton.js} +3 -3
  137. package/dist/internal/blocks/DiagramShared/DiagramSkeleton.js.map +1 -0
  138. package/dist/internal/blocks/EmptyConfigurationActionCard.js +1 -1
  139. package/dist/internal/blocks/ErrorState.js +1 -1
  140. package/dist/internal/blocks/ExportMenu.js +3 -3
  141. package/dist/internal/blocks/Form/connectors/MultiComboboxField.js +56 -0
  142. package/dist/internal/blocks/Form/connectors/MultiComboboxField.js.map +1 -0
  143. package/dist/internal/blocks/Form.js +1 -1
  144. package/dist/internal/blocks/FormGroup.js +1 -1
  145. package/dist/internal/blocks/MultiActionButtonGroup.js +1 -1
  146. package/dist/internal/blocks/MultiCombobox.js +10 -4
  147. package/dist/internal/blocks/MultiCombobox.js.map +1 -1
  148. package/dist/internal/blocks/NumberInput.js +1 -1
  149. package/dist/internal/blocks/PageToolbar.js +1 -1
  150. package/dist/internal/blocks/PasswordInput.js +2 -2
  151. package/dist/internal/blocks/SearchInput.js +1 -1
  152. package/dist/internal/blocks/SearchInputWithNavigation.js +3 -3
  153. package/dist/internal/blocks/SectionNav.js +1 -1
  154. package/dist/internal/blocks/SplitButton.js +2 -2
  155. package/dist/internal/blocks/StatCard.js +1 -1
  156. package/dist/internal/blocks/TextInput.js +1 -1
  157. package/dist/internal/blocks/Textarea.js +1 -1
  158. package/dist/internal/blocks/TimeInput.js +3 -3
  159. package/dist/internal/components/Alert.js +1 -1
  160. package/dist/internal/components/AlertModal.js +1 -1
  161. package/dist/internal/components/Avatar.js +1 -1
  162. package/dist/internal/components/BrandLogo.js +1 -1
  163. package/dist/internal/components/Breadcrumb.js +1 -1
  164. package/dist/internal/components/Button.js +1 -1
  165. package/dist/internal/components/Card.js +1 -1
  166. package/dist/internal/components/Checkbox.js +1 -1
  167. package/dist/internal/components/Clipboard.js +1 -1
  168. package/dist/internal/components/CollapsiblePanel.js +1 -1
  169. package/dist/internal/components/Combobox.js +1 -1
  170. package/dist/internal/components/DatePicker.js +1 -1
  171. package/dist/internal/components/DateRangePicker.js +1 -1
  172. package/dist/internal/components/DropdownMenu.js +1 -1
  173. package/dist/internal/components/FileUpload.js +1 -1
  174. package/dist/internal/components/FullScreenModal.js +1 -1
  175. package/dist/internal/components/HoverCard.js +1 -1
  176. package/dist/internal/components/InputGroup.js +1 -1
  177. package/dist/internal/components/Kbd.js +1 -1
  178. package/dist/internal/components/Modal.js +1 -1
  179. package/dist/internal/components/Navbar.js +1 -1
  180. package/dist/internal/components/Pagination.js +1 -1
  181. package/dist/internal/components/Popconfirm.js +1 -1
  182. package/dist/internal/components/Popover.js +1 -1
  183. package/dist/internal/components/RadioGroup.js +1 -1
  184. package/dist/internal/components/Search.js +1 -1
  185. package/dist/internal/components/Select.js +1 -1
  186. package/dist/internal/components/Sheet.js +1 -1
  187. package/dist/internal/components/Sidebar.js +1 -1
  188. package/dist/internal/components/Slider.js +1 -1
  189. package/dist/internal/components/Switch.js +1 -1
  190. package/dist/internal/components/Tabs.js +1 -1
  191. package/dist/internal/components/ThemeProvider.js +3 -2
  192. package/dist/internal/components/TimePicker.js +1 -1
  193. package/dist/internal/components/Toast.js +2 -2
  194. package/dist/internal/components/Tooltip.js +1 -1
  195. package/dist/internal/components/Truncated.js +16 -8
  196. package/dist/internal/components/Truncated.js.map +1 -1
  197. package/dist/internal/components/ZoomableSvg.js +1 -1
  198. package/dist/internal/utils.js +1 -1
  199. package/dist/markdown-editor.js +7 -7
  200. package/dist/mermaid.js +1 -1
  201. package/dist/rjsf.d.ts +13 -1
  202. package/dist/rjsf.js +237 -177
  203. package/dist/rjsf.js.map +1 -1
  204. package/dist/{styles-DSUP_-9Z.js → styles-BAFscjSV.js} +4 -3
  205. package/dist/styles-BAFscjSV.js.map +1 -0
  206. package/dist/styles.css +1 -1
  207. package/dist/svgTransforms-C9njt92h.js +89 -0
  208. package/dist/svgTransforms-C9njt92h.js.map +1 -0
  209. package/dist/testing.js +3 -2
  210. package/dist/testing.js.map +1 -1
  211. package/dist/{themeTokens-BNg98Mu9.js → themeTokens-7T1AFLhq.js} +13 -6
  212. package/dist/{themeTokens-BNg98Mu9.js.map → themeTokens-7T1AFLhq.js.map} +1 -1
  213. package/dist/{toast-CjkURw0M.js → toast-BweSoKn3.js} +3 -3
  214. package/dist/toast-BweSoKn3.js.map +1 -0
  215. package/dist/types-BPcAjMG0.d.ts +10 -0
  216. package/dist/{useColorSchemeState-CYqcUfSH.js → useColorSchemeState-BJEk6esG.js} +2 -2
  217. package/dist/{useColorSchemeState-CYqcUfSH.js.map → useColorSchemeState-BJEk6esG.js.map} +1 -1
  218. package/dist/{utils-D0c5VAyF.js → utils-B-g7d_Jb.js} +2 -2
  219. package/dist/{utils-D0c5VAyF.js.map → utils-B-g7d_Jb.js.map} +1 -1
  220. package/dist/vega.d.ts +46 -0
  221. package/dist/vega.js +26 -0
  222. package/dist/vega.js.map +1 -0
  223. package/dist/vegaTheme-FBXgAdHK.js +146 -0
  224. package/dist/vegaTheme-FBXgAdHK.js.map +1 -0
  225. package/package.json +29 -9
  226. package/src/styles.css +27 -4
  227. package/dist/AIKit-Dre37SJr.js.map +0 -1
  228. package/dist/AppShell-B5GQN6Zs.js.map +0 -1
  229. package/dist/Button-nzmDNS2q.js.map +0 -1
  230. package/dist/CodeEditor-BfQJfbhL.js.map +0 -1
  231. package/dist/Combobox-c_xBjf0P.js.map +0 -1
  232. package/dist/DiagramSkeleton-lwBS2YBa.js.map +0 -1
  233. package/dist/DropdownMenu-B6ZbYvaM.js.map +0 -1
  234. package/dist/FormGroup-S9mPNHKH.js.map +0 -1
  235. package/dist/MermaidDiagram-BB06gymm.js.map +0 -1
  236. package/dist/Navbar-t16usFZQ.js.map +0 -1
  237. package/dist/PageToolbar-0_1OBzaZ.js.map +0 -1
  238. package/dist/Popover-Ca0V6AD1.js.map +0 -1
  239. package/dist/Select-4YX38G5h.js.map +0 -1
  240. package/dist/constants-D6JcsD4_.d.ts +0 -41
  241. package/dist/context-KxxeMHbR.js.map +0 -1
  242. package/dist/styles-DSUP_-9Z.js.map +0 -1
  243. package/dist/toast-CjkURw0M.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,75 +1,78 @@
1
1
  import { cn } from "./classNames-BzrkDnOD.js";
2
- import { Tooltip, TooltipProvider, copyToClipboard, isMac } from "./utils-D0c5VAyF.js";
3
- import { ArgoDesignContext, DEFAULT_BRAND_ID, DEFAULT_COLOR_SCHEME, useArgoDesign, useTheme } from "./context-KxxeMHbR.js";
2
+ import { Tooltip, TooltipProvider, copyToClipboard, isMac } from "./utils-B-g7d_Jb.js";
3
+ import { DEFAULT_BRAND_ID, DEFAULT_COLOR_SCHEME } from "./defaults-CTfvj2KB.js";
4
+ import { ArgoDesignContext, useArgoDesign, useTheme } from "./context-BrNtMc1H.js";
4
5
  import { mergeRefs } from "./internal/utils/mergeRefs.js";
5
- import { Button, ButtonInline, argoVariants } from "./Button-nzmDNS2q.js";
6
+ import { Button, ButtonInline, argoVariants } from "./Button-CPsEQuTN.js";
6
7
  import { ButtonGroup } from "./internal/components/ButtonGroup.js";
7
- import { DropdownMenu } from "./DropdownMenu-B6ZbYvaM.js";
8
+ import { DropdownMenu } from "./DropdownMenu-DpMEcyCq.js";
8
9
  import { ScrollArea, ScrollBar } from "./internal/components/ScrollArea.js";
9
10
  import { SplitButton } from "./internal/blocks/SplitButton.js";
10
- import { MultiActionButtonGroup } from "./MultiActionButtonGroup-CiBHxsSk.js";
11
+ import { MultiActionButtonGroup } from "./MultiActionButtonGroup-GTeFk-L8.js";
11
12
  import { Toggle } from "./internal/components/Toggle.js";
12
13
  import { ToggleGroup } from "./ToggleGroup-Cy_10Mvu.js";
13
- import { Clipboard } from "./Clipboard-CBJZiviP.js";
14
- import { ClipboardButton, ClipboardInline } from "./ClipboardButton-ez5V3fkk.js";
14
+ import { Clipboard } from "./Clipboard-B7rckqV_.js";
15
+ import { ClipboardButton, ClipboardInline } from "./ClipboardButton-CQ6Aewpg.js";
15
16
  import { ExportMenu } from "./internal/blocks/ExportMenu.js";
16
- import { CopyField } from "./CopyField-BJ96zvXs.js";
17
+ import { CopyField } from "./CopyField-DI66uY_g.js";
17
18
  import { Label } from "./internal/components/Label.js";
18
19
  import { MicrosoftButton } from "./internal/blocks/MicrosoftButton.js";
19
20
  import { GoogleButton } from "./internal/blocks/GoogleButton.js";
20
21
  import { Link } from "./internal/components/Link.js";
21
- import { AlertModal } from "./AlertModal-BUC4Es8o.js";
22
- import { Modal } from "./Modal-BA5Wc3sx.js";
22
+ import { AlertModal } from "./AlertModal-DQAGpsEy.js";
23
+ import { Modal } from "./Modal-o4ATIexE.js";
23
24
  import { Separator } from "./internal/components/Separator.js";
24
- import { FullScreenModal, FullScreenModalBody, FullScreenModalHeader } from "./FullScreenModal-CJa2VkJ2.js";
25
+ import { FullScreenModal, FullScreenModalBody, FullScreenModalHeader } from "./FullScreenModal-j-M4aPFd.js";
25
26
  import { Truncated } from "./internal/components/Truncated.js";
26
- import { Sheet } from "./Sheet-BQrX8-h5.js";
27
- import { Popover } from "./Popover-Ca0V6AD1.js";
28
- import { Popconfirm } from "./Popconfirm-BGe1jLov.js";
29
- import { HoverCard } from "./HoverCard-WfDkLK1s.js";
30
- import { Command, CommandGroup, CommandInput, CommandItem, CommandList, defaultFilter, useCommandState } from "./Command-CQ_bQsJp.js";
31
- import { InputGroup } from "./InputGroup-BJWsI35s.js";
32
- import { TextInput } from "./TextInput-BGed-V13.js";
27
+ import { Sheet } from "./Sheet-BIzs2K2H.js";
28
+ import { Popover } from "./Popover-DsbI2HKu.js";
29
+ import { Popconfirm } from "./Popconfirm-C2Ky5hJO.js";
30
+ import { HoverCard } from "./HoverCard-yQq-O49c.js";
31
+ import { Command, CommandGroup, CommandInput, CommandItem, CommandList, defaultFilter, useCommandState } from "./Command-Ds68v2rX.js";
32
+ import { InputGroup } from "./InputGroup-D7zlmqPB.js";
33
+ import { TextInput } from "./TextInput-DhdRk8qm.js";
33
34
  import { SpotlightBackdrop, useTargetRect } from "./internal/components/SpotlightBackdrop.js";
34
35
  import { Calendar } from "./Calendar-cG5NIJ4O.js";
35
- import { DatePicker } from "./DatePicker-BbFbmsGl.js";
36
- import { TimePicker } from "./TimePicker-B_NegL-7.js";
37
- import { DateRangePicker } from "./DateRangePicker-BiUgtt_M.js";
38
- import { Switch } from "./Switch-CX2A0v50.js";
39
- import { RadioGroup } from "./RadioGroup-sIveSsNa.js";
40
- import { Slider } from "./Slider-Da_3mS5v.js";
41
- import { Search, SearchForm } from "./Search-3UiqNZRj.js";
42
- import { Select } from "./Select-4YX38G5h.js";
43
- import { Checkbox } from "./Checkbox-GJ8-srt4.js";
36
+ import { DatePicker } from "./DatePicker-DyEGuW9m.js";
37
+ import { TimePicker } from "./TimePicker-B6d2rAbX.js";
38
+ import { DateRangePicker } from "./DateRangePicker-CYYhX6S7.js";
39
+ import { Switch } from "./Switch-BueTV03C.js";
40
+ import { RadioGroup } from "./RadioGroup-BMxuZEbT.js";
41
+ import { Slider } from "./Slider-CjxyfEty.js";
42
+ import { Search, SearchForm } from "./Search-DFeECt5D.js";
43
+ import { Select } from "./Select-D6IZVvwL.js";
44
+ import { Checkbox } from "./Checkbox-5VNCcV7E.js";
44
45
  import { Badge } from "./Badge-Ch26CXoP.js";
45
- import { Combobox } from "./Combobox-c_xBjf0P.js";
46
+ import { Combobox } from "./Combobox-CyoRA7oY.js";
46
47
  import { MultiCombobox } from "./internal/blocks/MultiCombobox.js";
48
+ import { FormGroup } from "./FormGroup-BnwP0jNu.js";
49
+ import { ColorInput } from "./ColorInput-Q1D9Vcc_.js";
50
+ import { HelpBlock } from "./internal/components/HelpBlock.js";
51
+ import { NumberInput } from "./internal/blocks/NumberInput.js";
47
52
  import { Textarea } from "./internal/blocks/Textarea.js";
53
+ import { MultiComboboxField } from "./internal/blocks/Form/connectors/MultiComboboxField.js";
48
54
  import { AutoSaveTextarea } from "./AutoSaveTextarea-BeuWuszr.js";
49
- import { ColorInput } from "./ColorInput-Dx8Dsv7Y.js";
50
- import { ColorModeSwitch } from "./ColorModeSwitch-CCqj7tjE.js";
51
- import { DateInput } from "./DateInput-CMD3dY-T.js";
52
- import { NumberInput } from "./internal/blocks/NumberInput.js";
55
+ import { ColorModeSwitch } from "./ColorModeSwitch-B5PXCVqB.js";
56
+ import { DateInput } from "./DateInput-BPj2pzsn.js";
53
57
  import { PasswordInput } from "./internal/blocks/PasswordInput.js";
54
58
  import { TimeInput } from "./internal/blocks/TimeInput.js";
55
- import { DateRangeInput } from "./DateRangeInput-D3BhiKyk.js";
59
+ import { DateRangeInput } from "./DateRangeInput-u9DxNbHW.js";
56
60
  import { OtpInput, REGEXP_ONLY_CHARS, REGEXP_ONLY_DIGITS, REGEXP_ONLY_DIGITS_AND_CHARS } from "./OtpInput-CbbymqYs.js";
57
- import { SearchInput } from "./SearchInput-D2fcOv7E.js";
61
+ import { SearchInput } from "./SearchInput-CCpdUego.js";
58
62
  import { SearchInputWithNavigation } from "./internal/blocks/SearchInputWithNavigation.js";
59
- import { FileUpload, useFileDropTarget, useFileUploadRejections } from "./FileUpload-sXRv7JiY.js";
60
- import { FormGroup } from "./FormGroup-S9mPNHKH.js";
61
- import { HelpBlock } from "./internal/components/HelpBlock.js";
62
- import { AnswerSummary, CollapsibleStepHeader, InlineStepDetail, InlineStepLabel, Markdown, MessageBubble, PlanApproval, PlanRewritingIndicator, PromptInput, Question, QuestionBlock, SuggestedPrompt, ThinkingIndicator, ToolCallApproval, ToolCallChip, UsageStats, UsageStatsRing } from "./AIKit-Dre37SJr.js";
63
+ import { FileUpload, useFileDropTarget, useFileUploadRejections } from "./FileUpload-C336MVnU.js";
64
+ import { AnswerSummary, CollapsibleStepHeader, InlineStepDetail, InlineStepLabel, Markdown, MessageBubble, PlanApproval, PlanRewritingIndicator, PromptInput, Question, QuestionBlock, SuggestedPrompt, ThinkingIndicator, ToolCallApproval, ToolCallChip, UsageStats, UsageStatsRing } from "./AIKit-DaFT7p92.js";
63
65
  import { Table, tableAriaSort } from "./Table-CvYuTuNU.js";
64
66
  import { Skeleton } from "./internal/components/Skeleton/Skeleton.js";
67
+ import { DiagramSkeleton } from "./internal/blocks/DiagramShared/DiagramSkeleton.js";
65
68
  import { Avatar } from "./internal/components/Avatar.js";
66
69
  import { Progress } from "./internal/components/Progress.js";
67
70
  import { Collapsible } from "./Collapsible-BQXWEOBC.js";
68
- import { Alert } from "./Alert-DfZq9kGe.js";
69
- import { toast } from "./toast-CjkURw0M.js";
70
- import { Toaster, useNotification } from "./Toast-DQSbs3oA.js";
71
+ import { Alert } from "./Alert-CseY3yAj.js";
72
+ import { toast } from "./toast-BweSoKn3.js";
73
+ import { Toaster, useNotification } from "./Toast-CxXUulYN.js";
71
74
  import { EmptySearchContent } from "./internal/components/EmptySearchContent.js";
72
- import { Card } from "./Card-BAoZ35CV.js";
75
+ import { Card } from "./Card-Cd5HSBmv.js";
73
76
  import { EmptyConfigurationActionCard } from "./internal/blocks/EmptyConfigurationActionCard.js";
74
77
  import { EmptyState } from "./internal/blocks/EmptyState.js";
75
78
  import { ErrorState } from "./internal/blocks/ErrorState.js";
@@ -77,25 +80,25 @@ import { SkeletonList } from "./internal/components/Skeleton/SkeletonList.js";
77
80
  import { DotsLoader } from "./internal/components/DotsLoader.js";
78
81
  import { CollapsiblePanel } from "./internal/components/CollapsiblePanel.js";
79
82
  import { PanelWithDetails } from "./internal/components/PanelWithDetails.js";
80
- import { ThemeProvider, brandSchema, exampleCustomer, keboola, keboolaLegacySidebar, keboolaLegacyTopnav } from "./ThemeProvider-QncUrfJn.js";
81
- import { AppShell } from "./AppShell-B5GQN6Zs.js";
83
+ import { ThemeProvider, brandSchema, exampleCustomer, keboola, keboolaLegacySidebar, keboolaLegacyTopnav } from "./ThemeProvider-DZfGdf1v.js";
84
+ import { AppShell, appShellSlotSelector } from "./AppShell-BUoxM3fv.js";
82
85
  import { PageLayout } from "./PageLayout-DSVM-ASz.js";
83
86
  import { PageHeader } from "./PageHeader-Q3IpCnQd.js";
84
- import { PageToolbar } from "./PageToolbar-0_1OBzaZ.js";
85
- import { SectionNav } from "./SectionNav--7bw2b6u.js";
86
- import { BrandLogo } from "./BrandLogo-CJkRd0F8.js";
87
+ import { PageToolbar } from "./PageToolbar-bG2YtSa3.js";
88
+ import { SectionNav } from "./SectionNav-Bw_MVL0_.js";
89
+ import { BrandLogo } from "./BrandLogo-V2pRUAeO.js";
87
90
  import { ResizableHandle, ResizablePanel, ResizablePanelGroup, useDefaultLayout } from "./Resizable-D3vYToZH.js";
88
- import { Sidebar, SidebarProvider, useOptionalSidebar, useSidebar } from "./Sidebar-ROaR_AqC.js";
91
+ import { Sidebar, SidebarProvider, useOptionalSidebar, useSidebar } from "./Sidebar-r1TW4g_b.js";
89
92
  import { useScrollbarPosition } from "./internal/hooks/useScrollbarPosition.js";
90
- import { Navbar } from "./Navbar-t16usFZQ.js";
93
+ import { Navbar } from "./Navbar-CAQs4BZz.js";
91
94
  import { DEFAULT_WORKBENCH_BAR_HEIGHT_IN_REM, DEFAULT_WORKBENCH_PANEL_HEIGHT_IN_PX, MIN_WORKBENCH_PANEL_HEIGHT_IN_PX, Workbench, useWorkbench } from "./Workbench-BzE-Vvd9.js";
92
- import { Breadcrumb } from "./Breadcrumb-DJp7WwSv.js";
93
- import { Tabs, TabsContent } from "./Tabs-EAihyqCt.js";
95
+ import { Breadcrumb } from "./Breadcrumb-CQTPn_KB.js";
96
+ import { Tabs, TabsContent } from "./Tabs-l72-WuhK.js";
94
97
  import { Stepper } from "./Stepper-C8sm9ZFM.js";
95
98
  import { Timeline } from "./Timeline-6btyJl4D.js";
96
99
  import { MarkedText } from "./MarkedText-Ckbft5mw.js";
97
- import { Kbd, kbdVariants, keys } from "./Kbd-CxHAo1oo.js";
98
- import { Pagination } from "./Pagination-CM_Rszz-.js";
100
+ import { Kbd, kbdVariants, keys } from "./Kbd-D6LpR7G2.js";
101
+ import { Pagination } from "./Pagination-BB3X7ooY.js";
99
102
  import { DiffType, DiffView, computeDiffRows, computeLineInformation } from "./DiffView-ppTIzh2h.js";
100
103
  import { PaneHeader } from "./internal/components/MergeEditor/PaneHeader.js";
101
104
  import { ConflictStatusIndicator } from "./internal/components/MergeEditor/ConflictStatus/ConflictStatusIndicator.js";
@@ -103,10 +106,10 @@ import { useMergeDiff } from "./useMergeDiff-CvowEXJ1.js";
103
106
  import { DashboardHero } from "./internal/blocks/DashboardHero.js";
104
107
  import { StatCard, StatCardGrid } from "./internal/blocks/StatCard.js";
105
108
  import { ChartPanel } from "./internal/blocks/ChartPanel.js";
106
- import { setServerFieldErrors, setSubmitError, useAppForm, withForm } from "./Form-BDCef6O9.js";
109
+ import { setServerFieldErrors, setSubmitError, useAppForm, withForm } from "./Form-CTygENDc.js";
107
110
  import { useAutosizeInput } from "./internal/hooks/useAutosizeInput.js";
108
111
  import { useStableCallback } from "./internal/hooks/useStableCallback.js";
109
- import { ZoomableSvg, svgToPngBlob, toSvgFileContent } from "./ZoomableSvg-DG9PnAm8.js";
110
- import { BrandEditor, DEFAULT_FALLBACK_FONT, DEFAULT_FONT_OPTIONS, channelsToHex, contrastRatio, hexToChannels, wcagLevel } from "./BrandEditor-B8o9zdZO.js";
112
+ import { ZoomableSvg, svgToPngBlob, toSvgFileContent } from "./ZoomableSvg-CNIzRHKH.js";
113
+ import { BrandEditor, DEFAULT_FALLBACK_FONT, DEFAULT_FONT_OPTIONS, channelsToHex, contrastRatio, hexToChannels, wcagLevel } from "./BrandEditor-BnTLMRMp.js";
111
114
  import { Slot } from "@radix-ui/react-slot";
112
- export { Alert, AlertModal, AnswerSummary, AppShell, ArgoDesignContext, AutoSaveTextarea, Avatar, Badge, BrandEditor, BrandLogo, Breadcrumb, Button, ButtonGroup, ButtonInline, Calendar, Card, ChartPanel, Checkbox, Clipboard, ClipboardButton, ClipboardInline, Collapsible, CollapsiblePanel, CollapsibleStepHeader, ColorInput, ColorModeSwitch, Combobox, Command, CommandGroup, CommandInput, CommandItem, CommandList, ConflictStatusIndicator, CopyField, DEFAULT_COLOR_SCHEME, DEFAULT_FALLBACK_FONT, DEFAULT_FONT_OPTIONS, DEFAULT_BRAND_ID as DEFAULT_KEBOOLA_BRAND_ID, DEFAULT_WORKBENCH_BAR_HEIGHT_IN_REM, DEFAULT_WORKBENCH_PANEL_HEIGHT_IN_PX, DashboardHero, DateInput, DatePicker, DateRangeInput, DateRangePicker, DiffType, DiffView, DotsLoader, DropdownMenu, EmptyConfigurationActionCard, EmptySearchContent, EmptyState, ErrorState, ExportMenu, FileUpload, FormGroup, FullScreenModal, FullScreenModalBody, FullScreenModalHeader, GoogleButton, HelpBlock, HoverCard, InlineStepDetail, InlineStepLabel, InputGroup, Kbd, Label, Link, MIN_WORKBENCH_PANEL_HEIGHT_IN_PX, Markdown, MarkedText, MessageBubble, MicrosoftButton, Modal, MultiActionButtonGroup, MultiCombobox, Navbar, NumberInput, OtpInput, PageHeader, PageLayout, PageToolbar, Pagination, PaneHeader, PanelWithDetails, PasswordInput, PlanApproval, PlanRewritingIndicator, Popconfirm, Popover, Progress, PromptInput, Question, QuestionBlock, REGEXP_ONLY_CHARS, REGEXP_ONLY_DIGITS, REGEXP_ONLY_DIGITS_AND_CHARS, RadioGroup, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Search, SearchForm, SearchInput, SearchInputWithNavigation, SectionNav, Select, Separator, Sheet, Sidebar, SidebarProvider, Skeleton, SkeletonList, Slider, Slot, SplitButton, SpotlightBackdrop, StatCard, StatCardGrid, Stepper, SuggestedPrompt, Switch, Table, Tabs, TabsContent, TextInput, Textarea, ThemeProvider, ThinkingIndicator, TimeInput, TimePicker, Timeline, Toaster, Toggle, ToggleGroup, ToolCallApproval, ToolCallChip, Tooltip, TooltipProvider, Truncated, UsageStats, UsageStatsRing, Workbench, ZoomableSvg, argoVariants, brandSchema, channelsToHex, cn, computeDiffRows, computeLineInformation, contrastRatio, copyToClipboard, defaultFilter, exampleCustomer, hexToChannels, isMac, kbdVariants, keboola, keboolaLegacySidebar, keboolaLegacyTopnav, keys, mergeRefs, setServerFieldErrors, setSubmitError, svgToPngBlob, tableAriaSort, toSvgFileContent, toast, useAppForm, useArgoDesign, useAutosizeInput, useCommandState, useDefaultLayout, useFileDropTarget, useFileUploadRejections, useMergeDiff, useNotification, useOptionalSidebar, useScrollbarPosition, useSidebar, useStableCallback, useTargetRect, useTheme, useWorkbench, wcagLevel, withForm };
115
+ export { Alert, AlertModal, AnswerSummary, AppShell, ArgoDesignContext, AutoSaveTextarea, Avatar, Badge, BrandEditor, BrandLogo, Breadcrumb, Button, ButtonGroup, ButtonInline, Calendar, Card, ChartPanel, Checkbox, Clipboard, ClipboardButton, ClipboardInline, Collapsible, CollapsiblePanel, CollapsibleStepHeader, ColorInput, ColorModeSwitch, Combobox, Command, CommandGroup, CommandInput, CommandItem, CommandList, ConflictStatusIndicator, CopyField, DEFAULT_COLOR_SCHEME, DEFAULT_FALLBACK_FONT, DEFAULT_FONT_OPTIONS, DEFAULT_BRAND_ID as DEFAULT_KEBOOLA_BRAND_ID, DEFAULT_WORKBENCH_BAR_HEIGHT_IN_REM, DEFAULT_WORKBENCH_PANEL_HEIGHT_IN_PX, DashboardHero, DateInput, DatePicker, DateRangeInput, DateRangePicker, DiagramSkeleton, DiffType, DiffView, DotsLoader, DropdownMenu, EmptyConfigurationActionCard, EmptySearchContent, EmptyState, ErrorState, ExportMenu, FileUpload, FormGroup, FullScreenModal, FullScreenModalBody, FullScreenModalHeader, GoogleButton, HelpBlock, HoverCard, InlineStepDetail, InlineStepLabel, InputGroup, Kbd, Label, Link, MIN_WORKBENCH_PANEL_HEIGHT_IN_PX, Markdown, MarkedText, MessageBubble, MicrosoftButton, Modal, MultiActionButtonGroup, MultiCombobox, MultiComboboxField, Navbar, NumberInput, OtpInput, PageHeader, PageLayout, PageToolbar, Pagination, PaneHeader, PanelWithDetails, PasswordInput, PlanApproval, PlanRewritingIndicator, Popconfirm, Popover, Progress, PromptInput, Question, QuestionBlock, REGEXP_ONLY_CHARS, REGEXP_ONLY_DIGITS, REGEXP_ONLY_DIGITS_AND_CHARS, RadioGroup, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Search, SearchForm, SearchInput, SearchInputWithNavigation, SectionNav, Select, Separator, Sheet, Sidebar, SidebarProvider, Skeleton, SkeletonList, Slider, Slot, SplitButton, SpotlightBackdrop, StatCard, StatCardGrid, Stepper, SuggestedPrompt, Switch, Table, Tabs, TabsContent, TextInput, Textarea, ThemeProvider, ThinkingIndicator, TimeInput, TimePicker, Timeline, Toaster, Toggle, ToggleGroup, ToolCallApproval, ToolCallChip, Tooltip, TooltipProvider, Truncated, UsageStats, UsageStatsRing, Workbench, ZoomableSvg, appShellSlotSelector, argoVariants, brandSchema, channelsToHex, cn, computeDiffRows, computeLineInformation, contrastRatio, copyToClipboard, defaultFilter, exampleCustomer, hexToChannels, isMac, kbdVariants, keboola, keboolaLegacySidebar, keboolaLegacyTopnav, keys, mergeRefs, setServerFieldErrors, setSubmitError, svgToPngBlob, tableAriaSort, toSvgFileContent, toast, useAppForm, useArgoDesign, useAutosizeInput, useCommandState, useDefaultLayout, useFileDropTarget, useFileUploadRejections, useMergeDiff, useNotification, useOptionalSidebar, useScrollbarPosition, useSidebar, useStableCallback, useTargetRect, useTheme, useWorkbench, wcagLevel, withForm };
@@ -1,2 +1,2 @@
1
- import { AnswerSummary, CollapsibleStepHeader, InlineStepDetail, InlineStepLabel, Markdown, MessageBubble, PlanApproval, PlanRewritingIndicator, PromptInput, Question, QuestionBlock, SuggestedPrompt, ThinkingIndicator, ToolCallApproval, ToolCallChip, UsageStats, UsageStatsRing } from "../../AIKit-Dre37SJr.js";
1
+ import { AnswerSummary, CollapsibleStepHeader, InlineStepDetail, InlineStepLabel, Markdown, MessageBubble, PlanApproval, PlanRewritingIndicator, PromptInput, Question, QuestionBlock, SuggestedPrompt, ThinkingIndicator, ToolCallApproval, ToolCallChip, UsageStats, UsageStatsRing } from "../../AIKit-DaFT7p92.js";
2
2
  export { AnswerSummary, CollapsibleStepHeader, InlineStepDetail, InlineStepLabel, Markdown, MessageBubble, PlanApproval, PlanRewritingIndicator, PromptInput, Question, QuestionBlock, SuggestedPrompt, ThinkingIndicator, ToolCallApproval, ToolCallChip, UsageStats, UsageStatsRing };
@@ -1,2 +1,2 @@
1
- import { AppShell } from "../../AppShell-B5GQN6Zs.js";
2
- export { AppShell };
1
+ import { AppShell, appShellSlotSelector } from "../../AppShell-BUoxM3fv.js";
2
+ export { AppShell, appShellSlotSelector };
@@ -1,2 +1,2 @@
1
- import { BrandEditor, DEFAULT_FALLBACK_FONT, DEFAULT_FONT_OPTIONS, channelsToHex, contrastRatio, hexToChannels, wcagLevel } from "../../BrandEditor-B8o9zdZO.js";
1
+ import { BrandEditor, DEFAULT_FALLBACK_FONT, DEFAULT_FONT_OPTIONS, channelsToHex, contrastRatio, hexToChannels, wcagLevel } from "../../BrandEditor-BnTLMRMp.js";
2
2
  export { BrandEditor, DEFAULT_FALLBACK_FONT, DEFAULT_FONT_OPTIONS, channelsToHex, contrastRatio, hexToChannels, wcagLevel };
@@ -1,5 +1,5 @@
1
1
  import { cn } from "../../classNames-BzrkDnOD.js";
2
- import { Card } from "../../Card-BAoZ35CV.js";
2
+ import { Card } from "../../Card-Cd5HSBmv.js";
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
4
  //#region src/blocks/ChartPanel/ChartPanel.tsx
5
5
  /**
@@ -1,2 +1,2 @@
1
- import { ClipboardButton, ClipboardInline } from "../../ClipboardButton-ez5V3fkk.js";
1
+ import { ClipboardButton, ClipboardInline } from "../../ClipboardButton-CQ6Aewpg.js";
2
2
  export { ClipboardButton, ClipboardInline };
@@ -1,2 +1,2 @@
1
- import { ColorInput } from "../../ColorInput-Dx8Dsv7Y.js";
1
+ import { ColorInput } from "../../ColorInput-Q1D9Vcc_.js";
2
2
  export { ColorInput };
@@ -1,2 +1,2 @@
1
- import { ColorModeSwitch } from "../../ColorModeSwitch-CCqj7tjE.js";
1
+ import { ColorModeSwitch } from "../../ColorModeSwitch-B5PXCVqB.js";
2
2
  export { ColorModeSwitch };
@@ -1,2 +1,2 @@
1
- import { Command, CommandGroup, CommandInput, CommandItem, CommandList, defaultFilter, useCommandState } from "../../Command-CQ_bQsJp.js";
1
+ import { Command, CommandGroup, CommandInput, CommandItem, CommandList, defaultFilter, useCommandState } from "../../Command-Ds68v2rX.js";
2
2
  export { Command, CommandGroup, CommandInput, CommandItem, CommandList, defaultFilter, useCommandState };
@@ -1,2 +1,2 @@
1
- import { CopyField } from "../../CopyField-BJ96zvXs.js";
1
+ import { CopyField } from "../../CopyField-DI66uY_g.js";
2
2
  export { CopyField };
@@ -1,2 +1,2 @@
1
- import { DateInput } from "../../DateInput-CMD3dY-T.js";
1
+ import { DateInput } from "../../DateInput-BPj2pzsn.js";
2
2
  export { DateInput };
@@ -1,2 +1,2 @@
1
- import { DateRangeInput } from "../../DateRangeInput-D3BhiKyk.js";
1
+ import { DateRangeInput } from "../../DateRangeInput-u9DxNbHW.js";
2
2
  export { DateRangeInput };
@@ -1,6 +1,6 @@
1
- import { Skeleton } from "./internal/components/Skeleton/Skeleton.js";
1
+ import { Skeleton } from "../../components/Skeleton/Skeleton.js";
2
2
  import { jsx } from "react/jsx-runtime";
3
- //#region src/blocks/MermaidDiagram/DiagramSkeleton.tsx
3
+ //#region src/blocks/DiagramShared/DiagramSkeleton.tsx
4
4
  const DiagramSkeleton = () => /* @__PURE__ */ jsx("div", {
5
5
  className: "tw:my-3 tw:overflow-hidden tw:rounded-md tw:border tw:border-border tw:bg-muted tw:p-6",
6
6
  children: /* @__PURE__ */ jsx(Skeleton, { className: "tw:h-40" })
@@ -8,4 +8,4 @@ const DiagramSkeleton = () => /* @__PURE__ */ jsx("div", {
8
8
  //#endregion
9
9
  export { DiagramSkeleton };
10
10
 
11
- //# sourceMappingURL=DiagramSkeleton-lwBS2YBa.js.map
11
+ //# sourceMappingURL=DiagramSkeleton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DiagramSkeleton.js","names":[],"sources":["../../../../src/blocks/DiagramShared/DiagramSkeleton.tsx"],"sourcesContent":["import { Skeleton } from '../../components/Skeleton/Skeleton';\n\n// Lives apart from MermaidDiagram so callers can show it while that component's\n// chunk is still loading, without importing beautiful-mermaid to do it.\nexport const DiagramSkeleton = () => (\n <div className=\"tw:my-3 tw:overflow-hidden tw:rounded-md tw:border tw:border-border tw:bg-muted tw:p-6\">\n <Skeleton className=\"tw:h-40\" />\n </div>\n);\n"],"mappings":";;;AAIA,MAAa,wBACX,oBAAC,OAAD;CAAK,WAAU;CACb,UAAA,oBAAC,UAAD,EAAU,WAAU,UAAW,CAAA;AAC5B,CAAA"}
@@ -1,4 +1,4 @@
1
- import { Card } from "../../Card-BAoZ35CV.js";
1
+ import { Card } from "../../Card-Cd5HSBmv.js";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  //#region src/blocks/EmptyConfigurationActionCard/EmptyConfigurationActionCard.tsx
4
4
  const EmptyConfigurationActionCard = ({ title, children, className }) => {
@@ -1,4 +1,4 @@
1
- import { useArgoDesign } from "../../context-KxxeMHbR.js";
1
+ import { useArgoDesign } from "../../context-BrNtMc1H.js";
2
2
  import { cva } from "class-variance-authority";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  //#region src/blocks/ErrorState/ErrorState.tsx
@@ -1,7 +1,7 @@
1
- import { Tooltip } from "../../utils-D0c5VAyF.js";
1
+ import { Tooltip } from "../../utils-B-g7d_Jb.js";
2
2
  import { Download } from "../../icons-Cek151jC.js";
3
- import { Button } from "../../Button-nzmDNS2q.js";
4
- import { DropdownMenu } from "../../DropdownMenu-B6ZbYvaM.js";
3
+ import { Button } from "../../Button-CPsEQuTN.js";
4
+ import { DropdownMenu } from "../../DropdownMenu-DpMEcyCq.js";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  //#region src/blocks/ExportMenu/ExportMenu.tsx
7
7
  /**
@@ -0,0 +1,56 @@
1
+ import { MultiCombobox } from "../../MultiCombobox.js";
2
+ import { FieldItem, useFieldContext } from "../../../../FieldItem-qQKGU9lF.js";
3
+ import { jsx } from "react/jsx-runtime";
4
+ //#region src/blocks/Form/connectors/MultiComboboxField.tsx
5
+ /**
6
+ * Multi-selection field. State is `string[]`.
7
+ *
8
+ * ⚠️ Imported by name, not reached as `field.MultiComboboxField`, for the same reason as
9
+ * `CodeEditorField`: `fieldComponents` is an object literal handed to `createFormHook`, so no bundler
10
+ * shakes it per key — registering this here made every `useAppForm` consumer carry Base UI's combobox
11
+ * and `@tanstack/react-virtual`, measured at **+45 kB brotlied** (135 → 180 kB for
12
+ * `import { useAppForm }`), including apps that only render a `TextField`. As a named export the
13
+ * weight is opt-in, and anyone rendering a multi-select pays it via `MultiCombobox` regardless.
14
+ *
15
+ * It still reads the field from context, so it composes exactly like a connector:
16
+ *
17
+ * ```tsx
18
+ * import { MultiComboboxField } from '@keboola/design';
19
+ *
20
+ * <form.AppField name="features">{() => <MultiComboboxField label="Features" items={FEATURES} />}</form.AppField>
21
+ * ```
22
+ *
23
+ * Locked to `string` items rather than generic over the item shape: a form value is what gets
24
+ * submitted, and a field holding `{ label, value }` objects would put presentation into the payload.
25
+ * Project labels with `itemToLabel` instead.
26
+ *
27
+ * Pass `allowCreate` for an enum the user may extend — an open list of synchronous action names, say.
28
+ * The created values land in the field value like any other.
29
+ */
30
+ const MultiComboboxField = ({ label, action, required, requiredMark, help, tooltip, className, "aria-describedby": ariaDescribedBy, inputClassName, ...comboboxProps }) => {
31
+ const field = useFieldContext();
32
+ return /* @__PURE__ */ jsx(FieldItem, {
33
+ label,
34
+ action,
35
+ required,
36
+ requiredMark,
37
+ help,
38
+ tooltip,
39
+ className,
40
+ "aria-describedby": ariaDescribedBy,
41
+ children: ({ "aria-invalid": isInvalid, ...control }) => /* @__PURE__ */ jsx(MultiCombobox, {
42
+ ...comboboxProps,
43
+ ...control,
44
+ "aria-invalid": isInvalid,
45
+ state: isInvalid === true ? "error" : void 0,
46
+ className: inputClassName,
47
+ value: field.state.value ?? [],
48
+ onValueChange: (next) => field.handleChange(next),
49
+ onBlur: field.handleBlur
50
+ })
51
+ });
52
+ };
53
+ //#endregion
54
+ export { MultiComboboxField };
55
+
56
+ //# sourceMappingURL=MultiComboboxField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MultiComboboxField.js","names":[],"sources":["../../../../../src/blocks/Form/connectors/MultiComboboxField.tsx"],"sourcesContent":["import type { ComponentProps } from 'react';\n\nimport { MultiCombobox } from '../../MultiCombobox';\nimport { useFieldContext } from '../contexts';\n\nimport { FieldItem, type FieldItemProps } from './FieldItem';\n\ntype Props = FieldItemProps &\n Omit<\n ComponentProps<typeof MultiCombobox<string>>,\n // Owned by the field / `FieldItem` — see the connector rules in AGENTS.md.\n | 'id'\n | 'name'\n | 'value'\n | 'defaultValue'\n | 'onValueChange'\n | 'onBlur'\n | 'aria-describedby'\n | 'aria-invalid'\n | 'aria-required'\n // `className` styles the field frame; the input group gets its own prop below.\n | 'className'\n | 'state'\n > & { inputClassName?: string };\n\n/**\n * Multi-selection field. State is `string[]`.\n *\n * ⚠️ Imported by name, not reached as `field.MultiComboboxField`, for the same reason as\n * `CodeEditorField`: `fieldComponents` is an object literal handed to `createFormHook`, so no bundler\n * shakes it per key — registering this here made every `useAppForm` consumer carry Base UI's combobox\n * and `@tanstack/react-virtual`, measured at **+45 kB brotlied** (135 → 180 kB for\n * `import { useAppForm }`), including apps that only render a `TextField`. As a named export the\n * weight is opt-in, and anyone rendering a multi-select pays it via `MultiCombobox` regardless.\n *\n * It still reads the field from context, so it composes exactly like a connector:\n *\n * ```tsx\n * import { MultiComboboxField } from '@keboola/design';\n *\n * <form.AppField name=\"features\">{() => <MultiComboboxField label=\"Features\" items={FEATURES} />}</form.AppField>\n * ```\n *\n * Locked to `string` items rather than generic over the item shape: a form value is what gets\n * submitted, and a field holding `{ label, value }` objects would put presentation into the payload.\n * Project labels with `itemToLabel` instead.\n *\n * Pass `allowCreate` for an enum the user may extend — an open list of synchronous action names, say.\n * The created values land in the field value like any other.\n */\nexport const MultiComboboxField = ({\n label,\n action,\n required,\n requiredMark,\n help,\n tooltip,\n className,\n 'aria-describedby': ariaDescribedBy,\n inputClassName,\n ...comboboxProps\n}: Props) => {\n const field = useFieldContext<string[]>();\n\n return (\n <FieldItem\n label={label}\n action={action}\n required={required}\n requiredMark={requiredMark}\n help={help}\n tooltip={tooltip}\n className={className}\n aria-describedby={ariaDescribedBy}\n >\n {({ 'aria-invalid': isInvalid, ...control }) => (\n <MultiCombobox<string>\n {...comboboxProps}\n {...control}\n // `aria-invalid` doubles as the visual error state — the input group has no separate\n // \"invalid\" prop, and a field that reads invalid to a screen reader but looks untouched is\n // the worse half of the two.\n aria-invalid={isInvalid}\n state={isInvalid === true ? 'error' : undefined}\n className={inputClassName}\n // `?? []` because a field with no default is `undefined`, and `MultiCombobox` treats a\n // missing value as uncontrolled — which would silently drop every selection.\n value={field.state.value ?? []}\n onValueChange={(next) => field.handleChange(next)}\n onBlur={field.handleBlur}\n />\n )}\n </FieldItem>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkDA,MAAa,sBAAsB,EACjC,OACA,QACA,UACA,cACA,MACA,SACA,WACA,oBAAoB,iBACpB,gBACA,GAAG,oBACQ;CACX,MAAM,QAAQ,gBAA0B;CAExC,OACE,oBAAC,WAAD;EACS;EACC;EACE;EACI;EACR;EACG;EACE;EACX,oBAAkB;EAEhB,WAAA,EAAE,gBAAgB,WAAW,GAAG,cAChC,oBAAC,eAAD;GACE,GAAI;GACJ,GAAI;GAIJ,gBAAc;GACd,OAAO,cAAc,OAAO,UAAU,KAAA;GACtC,WAAW;GAGX,OAAO,MAAM,MAAM,SAAS,CAAC;GAC7B,gBAAgB,SAAS,MAAM,aAAa,IAAI;GAChD,QAAQ,MAAM;EACf,CAAA;CAEM,CAAA;AAEf"}
@@ -1,2 +1,2 @@
1
- import { setServerFieldErrors, setSubmitError, useAppForm, withForm } from "../../Form-BDCef6O9.js";
1
+ import { setServerFieldErrors, setSubmitError, useAppForm, withForm } from "../../Form-CTygENDc.js";
2
2
  export { setServerFieldErrors, setSubmitError, useAppForm, withForm };
@@ -1,2 +1,2 @@
1
- import { FormGroup } from "../../FormGroup-S9mPNHKH.js";
1
+ import { FormGroup } from "../../FormGroup-BnwP0jNu.js";
2
2
  export { FormGroup };
@@ -1,2 +1,2 @@
1
- import { MultiActionButtonGroup } from "../../MultiActionButtonGroup-CiBHxsSk.js";
1
+ import { MultiActionButtonGroup } from "../../MultiActionButtonGroup-GTeFk-L8.js";
2
2
  export { MultiActionButtonGroup };
@@ -1,7 +1,7 @@
1
- import { useArgoDesign } from "../../context-KxxeMHbR.js";
1
+ import { useArgoDesign } from "../../context-BrNtMc1H.js";
2
2
  import { ChevronDown, Plus, X } from "../../icons-Cek151jC.js";
3
- import { InputGroup } from "../../InputGroup-BJWsI35s.js";
4
- import { Combobox as Combobox$1, createCreatableItem, defaultGroupToLabel, defaultItemToDisabled, defaultItemToIcon, defaultItemToLabel, defaultQueryToCreateLabel, defaultToCreateValue, isCreatableItem, isGroupItem, isGroupItems, isLabeledItem, toLabel } from "../../Combobox-c_xBjf0P.js";
3
+ import { InputGroup } from "../../InputGroup-D7zlmqPB.js";
4
+ import { Combobox as Combobox$1, createCreatableItem, defaultGroupToLabel, defaultItemToDisabled, defaultItemToIcon, defaultItemToLabel, defaultQueryToCreateLabel, defaultToCreateValue, isCreatableItem, isGroupItem, isGroupItems, isLabeledItem, toLabel } from "../../Combobox-CyoRA7oY.js";
5
5
  import { Fragment, useState } from "react";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
7
  import { Combobox } from "@base-ui/react/combobox";
@@ -24,7 +24,7 @@ const isSelectAllItem = (item) => isLabeledItem(item) && item.value === "__selec
24
24
  * @see RECIPES.md#creatable-multi-combobox — for free-form-plus-enumerated patterns
25
25
  * @see RECIPES.md#filter-toolbar — for combining multi-select with other filter chips
26
26
  */
27
- const MultiCombobox = ({ items: _itemsProp, value: _valueProp, defaultValue, onValueChange, itemToStringLabel, itemToStringValue, disabled, filter: filterProp, inputRef, variant, sizing, focusVariant, state, placeholder, allowClear, id, className, allowSelectAll = false, empty = "No items", indicator, allowCreate, queryToCreateValue, queryToCreateLabel = defaultQueryToCreateLabel, itemToDisabled = defaultItemToDisabled, itemToLabel = defaultItemToLabel, itemToIcon = defaultItemToIcon, groupToLabel = defaultGroupToLabel, itemToChipLabel, itemToChipColor, maxVisible = 3 }) => {
27
+ const MultiCombobox = ({ items: _itemsProp, value: _valueProp, defaultValue, onValueChange, itemToStringLabel, itemToStringValue, disabled, filter: filterProp, inputRef, variant, sizing, focusVariant, state, placeholder, allowClear, id, name, onBlur, "aria-describedby": ariaDescribedBy, "aria-invalid": ariaInvalid, "aria-required": ariaRequired, className, allowSelectAll = false, empty = "No items", indicator, allowCreate, queryToCreateValue, queryToCreateLabel = defaultQueryToCreateLabel, itemToDisabled = defaultItemToDisabled, itemToLabel = defaultItemToLabel, itemToIcon = defaultItemToIcon, groupToLabel = defaultGroupToLabel, itemToChipLabel, itemToChipColor, maxVisible = 3 }) => {
28
28
  const itemsProp = _itemsProp ?? [];
29
29
  const valueProp = _valueProp ?? [];
30
30
  const chipVariant = useArgoDesign() ? "pill" : "default";
@@ -101,6 +101,7 @@ const MultiCombobox = ({ items: _itemsProp, value: _valueProp, defaultValue, onV
101
101
  };
102
102
  return /* @__PURE__ */ jsxs(Combobox$1.Root, {
103
103
  multiple: true,
104
+ autoHighlight: true,
104
105
  items,
105
106
  value,
106
107
  defaultValue,
@@ -134,6 +135,11 @@ const MultiCombobox = ({ items: _itemsProp, value: _valueProp, defaultValue, onV
134
135
  children: [
135
136
  /* @__PURE__ */ jsx(Combobox$1.Input, {
136
137
  id,
138
+ name,
139
+ onBlur,
140
+ "aria-describedby": ariaDescribedBy,
141
+ "aria-invalid": ariaInvalid,
142
+ "aria-required": ariaRequired,
137
143
  placeholder,
138
144
  disabled,
139
145
  className: "tw:w-auto tw:min-w-[120px] tw:flex-1"
@@ -1 +1 @@
1
- {"version":3,"file":"MultiCombobox.js","names":["BaseCombobox","Combobox"],"sources":["../../../src/blocks/MultiCombobox/MultiCombobox.tsx"],"sourcesContent":["import { type ComponentProps, Fragment, type ReactNode, useState } from 'react';\nimport { Combobox as BaseCombobox } from '@base-ui/react/combobox';\n\nimport { Combobox } from '../../components/Combobox';\nimport type { Group, LabeledItem } from '../../components/Combobox/types';\nimport {\n createCreatableItem,\n defaultGroupToLabel,\n defaultItemToDisabled,\n defaultItemToIcon,\n defaultItemToLabel,\n defaultQueryToCreateLabel,\n defaultToCreateValue,\n isCreatableItem,\n isGroupItem,\n isGroupItems,\n isLabeledItem,\n toLabel,\n} from '../../components/Combobox/utils';\nimport { InputGroup } from '../../components/InputGroup';\nimport { useArgoDesign } from '../../components/ThemeProvider/context';\nimport { ChevronDown, Plus, X } from '../../icons';\n\ntype ComboboxProps<Value> = BaseCombobox.Root.Props<Value, true>;\ntype ComboboxInputProps = ComponentProps<typeof Combobox.Input>;\ntype ComboboxInputGroupProps = ComponentProps<typeof Combobox.InputGroup>;\ntype ComboboxItemProps = ComponentProps<typeof Combobox.Item>;\ntype ComboboxChipsProps = ComponentProps<typeof Combobox.Chips>;\n\ntype Indicator = NonNullable<ComboboxItemProps['indicator']>;\n\ntype CreatableProps<Value> = {\n allowCreate?: boolean;\n queryToCreateLabel?: (query: string) => ReactNode;\n queryToCreateValue?: (query: string) => Value;\n};\n\n/**\n * Props for `MultiCombobox`. Generic over `Value` (the item shape) and `GroupShape` (optional group wrapper).\n * Use `itemToLabel` / `itemToIcon` / `itemToDisabled` to project custom item shapes; use `filter` to override\n * the default substring matcher. Pass `allowCreate` to let the user add free-form values not in `items`.\n */\ntype Props<Value, GroupShape extends Group<Value> = Group<Value>> = Pick<\n ComboboxInputProps,\n 'placeholder' | 'id'\n> &\n Pick<ComboboxInputGroupProps, 'variant' | 'focusVariant' | 'sizing' | 'state' | 'className'> &\n Pick<\n ComboboxProps<Value>,\n | 'disabled'\n | 'inputRef'\n | 'value'\n | 'defaultValue'\n | 'onValueChange'\n | 'itemToStringLabel'\n | 'itemToStringValue'\n | 'filter'\n > &\n Pick<ComboboxChipsProps, 'itemToChipLabel' | 'itemToChipColor' | 'maxVisible'> &\n CreatableProps<Value> & {\n items?: readonly (Value | GroupShape)[];\n\n // root specific\n allowClear?: boolean;\n allowSelectAll?: boolean;\n empty?: ReactNode;\n indicator?: Indicator;\n\n // item specific\n itemToLabel?: (item: Value) => ReactNode;\n itemToIcon?: (item: Value) => ReactNode;\n itemToDisabled?: (item: Value) => boolean;\n\n // group specific\n groupToLabel?: (group: GroupShape) => ReactNode;\n };\n\nconst selectAllItem: LabeledItem = {\n value: '__select_all__',\n label: 'Select All',\n};\n\nconst isSelectAllItem = <Value,>(item: Value) =>\n isLabeledItem(item) && item.value === '__select_all__';\n\n/**\n * Multi-selection combobox with chip display and search. Built on Base UI Combobox.\n *\n * **When to use:** picking several items from a searchable enumerated list (filter by tags, assign labels).\n * Items render as chips above the input; `maxVisible` collapses excess into a `+N more` chip.\n * **When NOT to use:** for single selection use `Combobox`; for short enums without search use `Select`.\n * **Composition:** wrap in `FormGroup` for label + help text, or use `useAppForm` for form integration.\n * Pass `allowSelectAll` for a sticky \"Select All\" item when the full enum is small. Pass `allowCreate`\n * to let the user add free-form values that are not in `items` (e.g. entering column names by hand).\n *\n * @see RECIPES.md#creatable-multi-combobox — for free-form-plus-enumerated patterns\n * @see RECIPES.md#filter-toolbar — for combining multi-select with other filter chips\n */\nexport const MultiCombobox = <Value, GroupShape extends Group<Value> = Group<Value>>({\n // root props\n items: _itemsProp,\n value: _valueProp,\n defaultValue,\n onValueChange,\n itemToStringLabel,\n itemToStringValue,\n disabled,\n filter: filterProp,\n inputRef,\n\n // input props\n variant,\n sizing,\n focusVariant,\n state,\n placeholder,\n allowClear,\n id,\n className,\n\n // own props\n allowSelectAll = false,\n empty = 'No items',\n indicator,\n\n // creatable\n allowCreate,\n queryToCreateValue,\n queryToCreateLabel = defaultQueryToCreateLabel,\n\n // own item props\n itemToDisabled = defaultItemToDisabled,\n itemToLabel = defaultItemToLabel,\n itemToIcon = defaultItemToIcon,\n groupToLabel = defaultGroupToLabel,\n itemToChipLabel,\n itemToChipColor,\n maxVisible = 3,\n}: Props<Value, GroupShape>) => {\n const itemsProp = _itemsProp ?? [];\n const valueProp = _valueProp ?? [];\n const renderArgo = useArgoDesign();\n const chipVariant = renderArgo ? 'pill' : 'default';\n\n const [inputValue, setInputValue] = useState('');\n const [createdItems, setCreatedItems] = useState<Value[]>([]);\n const query = inputValue.trim();\n const queryLower = query.toLowerCase();\n\n // Created values are appended to `items` so Base UI can keep resolving them (as chips and as\n // list options) once the query clears — otherwise a value that isn't in `items` gets dropped.\n const baseItems = (() => {\n if (createdItems.length === 0) return itemsProp;\n if (isGroupItems(itemsProp))\n return [...itemsProp, { items: createdItems } as unknown as GroupShape];\n return [...itemsProp, ...createdItems];\n })();\n\n const allFlatItems = baseItems.flatMap((item) => (isGroupItem(item) ? item.items : item));\n const sampleItem = allFlatItems[0] as Value | undefined;\n const isAllSelected = allFlatItems.length === (valueProp?.length ?? 0);\n\n const defaultFilter = BaseCombobox.useFilter({\n multiple: true,\n value: valueProp,\n });\n\n const itemsWithSelectAllItem = (() => {\n if (!allowSelectAll) return baseItems;\n return [selectAllItem, ...baseItems];\n })();\n\n const itemToString = (item: Value) => itemToStringLabel?.(item) ?? toLabel(item);\n\n const items = (() => {\n const base = itemsWithSelectAllItem;\n if (!allowCreate || disabled || !query) return base;\n\n const exactMatch = allFlatItems.some((item) => itemToString(item).toLowerCase() === queryLower);\n const alreadySelected = valueProp.some(\n (item) => itemToString(item).toLowerCase() === queryLower,\n );\n if (exactMatch || alreadySelected) return base;\n\n const creatable = createCreatableItem(query);\n return isGroupItems(base)\n ? [...base, { items: [creatable] } as unknown as GroupShape]\n : [...base, creatable as unknown as Value];\n })();\n\n const filter = (item: Value, query: string, itemToString?: (value: Value) => string) => {\n // keep select always visible\n if (isSelectAllItem(item)) return true;\n // always offer the transient \"create\" option\n if (isCreatableItem(item)) return true;\n\n if (filterProp) return filterProp(item, query, itemToString);\n return defaultFilter.contains(item, query, itemToString);\n };\n\n const wrappedItemToStringLabel: ComboboxProps<Value>['itemToStringLabel'] = !allowCreate\n ? itemToStringLabel\n : (item) => (isCreatableItem(item) ? item.value : itemToString(item));\n\n const wrappedItemToStringValue: ComboboxProps<Value>['itemToStringValue'] =\n !allowCreate || !itemToStringValue\n ? itemToStringValue\n : (item) => (isCreatableItem(item) ? item.value : itemToStringValue(item));\n\n const value = (() => {\n if (!allowSelectAll) return valueProp;\n return isAllSelected ? [...valueProp, selectAllItem as Value] : valueProp;\n })();\n\n const handleValueChange: ComboboxProps<Value>['onValueChange'] = (next, event) => {\n if (!onValueChange) return;\n\n const created: Value[] = [];\n const converted = allowCreate\n ? next.map((item) => {\n if (!isCreatableItem(item)) return item;\n const value = defaultToCreateValue(item.value, sampleItem, queryToCreateValue) as Value;\n created.push(value);\n return value;\n })\n : next;\n\n if (allowCreate) {\n if (created.length > 0) setCreatedItems((prev) => [...prev, ...created]);\n setInputValue('');\n }\n\n const hasSelectAll = converted.some((item) => isSelectAllItem(item));\n const newValue = (() => {\n if (!allowSelectAll) return converted;\n if (!hasSelectAll) return isAllSelected ? [] : converted;\n return isAllSelected ? converted.filter((item) => !isSelectAllItem(item)) : allFlatItems;\n })();\n\n onValueChange(newValue, event);\n };\n\n const renderItem = (item: Value) => {\n return (\n <Combobox.Item\n value={item}\n indicator={indicator}\n icon={itemToIcon(item)}\n disabled={itemToDisabled(item)}\n >\n {itemToLabel(item)}\n </Combobox.Item>\n );\n };\n\n return (\n <Combobox.Root<Value, true>\n multiple\n items={items}\n value={value}\n defaultValue={defaultValue}\n filter={filter}\n onValueChange={handleValueChange}\n itemToStringLabel={wrappedItemToStringLabel}\n itemToStringValue={wrappedItemToStringValue}\n disabled={disabled}\n inputRef={inputRef}\n {...(allowCreate\n ? { inputValue, onInputValueChange: (nextValue: string) => setInputValue(nextValue) }\n : {})}\n >\n <BaseCombobox.Chips render={<Fragment />}>\n <Combobox.InputGroup\n variant={variant}\n sizing={sizing}\n state={state}\n focusVariant={focusVariant}\n className={className}\n >\n <div className=\"tw:flex tw:min-w-0 tw:flex-1 tw:flex-wrap tw:items-center tw:gap-1.5 tw:px-4 tw:py-1.5\">\n <Combobox.Chips<Value>\n maxVisible={maxVisible}\n variant={chipVariant}\n itemToChipLabel={itemToChipLabel ?? itemToLabel}\n itemToChipColor={itemToChipColor}\n />\n <div className=\"tw:flex tw:flex-1 tw:items-center tw:gap-1\">\n <Combobox.Input\n id={id}\n placeholder={placeholder}\n disabled={disabled}\n className=\"tw:w-auto tw:min-w-[120px] tw:flex-1\"\n />\n {allowClear && (\n <InputGroup.Button asChild aria-label=\"Clear\" disabled={disabled}>\n <BaseCombobox.Clear>\n <X className=\"tw:size-4\" />\n </BaseCombobox.Clear>\n </InputGroup.Button>\n )}\n <InputGroup.Button disabled={disabled} asChild aria-label=\"Open combobox\">\n <BaseCombobox.Trigger>\n <ChevronDown className=\"tw:size-4\" />\n </BaseCombobox.Trigger>\n </InputGroup.Button>\n </div>\n </div>\n </Combobox.InputGroup>\n </BaseCombobox.Chips>\n <Combobox.Content>\n <Combobox.Empty>{empty}</Combobox.Empty>\n <Combobox.List>\n {(itemOrGroup: Value | GroupShape) => {\n if (isSelectAllItem(itemOrGroup)) {\n return (\n <Combobox.Item value={itemOrGroup} indicator=\"checkbox\">\n Select All\n </Combobox.Item>\n );\n }\n\n if (isCreatableItem(itemOrGroup)) {\n return (\n <Combobox.Item value={itemOrGroup} icon={<Plus />}>\n {queryToCreateLabel(itemOrGroup.value)}\n </Combobox.Item>\n );\n }\n\n if (isGroupItem(itemOrGroup)) {\n const maybeCreatable = itemOrGroup.items[0];\n\n if (isCreatableItem(maybeCreatable)) {\n return (\n <Combobox.Item value={maybeCreatable} icon={<Plus />}>\n {queryToCreateLabel(maybeCreatable.value)}\n </Combobox.Item>\n );\n }\n\n const groupLabel = groupToLabel(itemOrGroup);\n return (\n <Combobox.Group items={itemOrGroup.items}>\n {groupLabel && <Combobox.GroupLabel>{groupLabel}</Combobox.GroupLabel>}\n <Combobox.GroupList>{renderItem}</Combobox.GroupList>\n </Combobox.Group>\n );\n }\n\n return renderItem(itemOrGroup);\n }}\n </Combobox.List>\n </Combobox.Content>\n </Combobox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Combobox","Combobox"],"sources":["../../../src/blocks/MultiCombobox/MultiCombobox.tsx"],"sourcesContent":["import { type ComponentProps, Fragment, type ReactNode, useState } from 'react';\nimport { Combobox as BaseCombobox } from '@base-ui/react/combobox';\n\nimport { Combobox } from '../../components/Combobox';\nimport type { Group, LabeledItem } from '../../components/Combobox/types';\nimport {\n createCreatableItem,\n defaultGroupToLabel,\n defaultItemToDisabled,\n defaultItemToIcon,\n defaultItemToLabel,\n defaultQueryToCreateLabel,\n defaultToCreateValue,\n isCreatableItem,\n isGroupItem,\n isGroupItems,\n isLabeledItem,\n toLabel,\n} from '../../components/Combobox/utils';\nimport { InputGroup } from '../../components/InputGroup';\nimport { useArgoDesign } from '../../components/ThemeProvider/context';\nimport { ChevronDown, Plus, X } from '../../icons';\n\ntype ComboboxProps<Value> = BaseCombobox.Root.Props<Value, true>;\ntype ComboboxInputProps = ComponentProps<typeof Combobox.Input>;\ntype ComboboxInputGroupProps = ComponentProps<typeof Combobox.InputGroup>;\ntype ComboboxItemProps = ComponentProps<typeof Combobox.Item>;\ntype ComboboxChipsProps = ComponentProps<typeof Combobox.Chips>;\n\ntype Indicator = NonNullable<ComboboxItemProps['indicator']>;\n\ntype CreatableProps<Value> = {\n allowCreate?: boolean;\n queryToCreateLabel?: (query: string) => ReactNode;\n queryToCreateValue?: (query: string) => Value;\n};\n\n/**\n * Props for `MultiCombobox`. Generic over `Value` (the item shape) and `GroupShape` (optional group wrapper).\n * Use `itemToLabel` / `itemToIcon` / `itemToDisabled` to project custom item shapes; use `filter` to override\n * the default substring matcher. Pass `allowCreate` to let the user add free-form values not in `items`.\n */\ntype Props<Value, GroupShape extends Group<Value> = Group<Value>> = Pick<\n ComboboxInputProps,\n // `name`, `onBlur` and the `aria-*` set are forwarded to the input so a form connector can hand\n // over the wiring it derives from the field — without the `aria-*` set the control cannot be linked\n // to its own help and error text, and without `onBlur` the field never registers as blurred, which\n // is the gate `FieldItem` reveals errors on.\n 'placeholder' | 'id' | 'name' | 'onBlur' | 'aria-describedby' | 'aria-invalid' | 'aria-required'\n> &\n Pick<ComboboxInputGroupProps, 'variant' | 'focusVariant' | 'sizing' | 'state' | 'className'> &\n Pick<\n ComboboxProps<Value>,\n | 'disabled'\n | 'inputRef'\n | 'value'\n | 'defaultValue'\n | 'onValueChange'\n | 'itemToStringLabel'\n | 'itemToStringValue'\n | 'filter'\n > &\n Pick<ComboboxChipsProps, 'itemToChipLabel' | 'itemToChipColor' | 'maxVisible'> &\n CreatableProps<Value> & {\n items?: readonly (Value | GroupShape)[];\n\n // root specific\n allowClear?: boolean;\n allowSelectAll?: boolean;\n empty?: ReactNode;\n indicator?: Indicator;\n\n // item specific\n itemToLabel?: (item: Value) => ReactNode;\n itemToIcon?: (item: Value) => ReactNode;\n itemToDisabled?: (item: Value) => boolean;\n\n // group specific\n groupToLabel?: (group: GroupShape) => ReactNode;\n };\n\nconst selectAllItem: LabeledItem = {\n value: '__select_all__',\n label: 'Select All',\n};\n\nconst isSelectAllItem = <Value,>(item: Value) =>\n isLabeledItem(item) && item.value === '__select_all__';\n\n/**\n * Multi-selection combobox with chip display and search. Built on Base UI Combobox.\n *\n * **When to use:** picking several items from a searchable enumerated list (filter by tags, assign labels).\n * Items render as chips above the input; `maxVisible` collapses excess into a `+N more` chip.\n * **When NOT to use:** for single selection use `Combobox`; for short enums without search use `Select`.\n * **Composition:** wrap in `FormGroup` for label + help text, or use `useAppForm` for form integration.\n * Pass `allowSelectAll` for a sticky \"Select All\" item when the full enum is small. Pass `allowCreate`\n * to let the user add free-form values that are not in `items` (e.g. entering column names by hand).\n *\n * @see RECIPES.md#creatable-multi-combobox — for free-form-plus-enumerated patterns\n * @see RECIPES.md#filter-toolbar — for combining multi-select with other filter chips\n */\nexport const MultiCombobox = <Value, GroupShape extends Group<Value> = Group<Value>>({\n // root props\n items: _itemsProp,\n value: _valueProp,\n defaultValue,\n onValueChange,\n itemToStringLabel,\n itemToStringValue,\n disabled,\n filter: filterProp,\n inputRef,\n\n // input props\n variant,\n sizing,\n focusVariant,\n state,\n placeholder,\n allowClear,\n id,\n name,\n onBlur,\n 'aria-describedby': ariaDescribedBy,\n 'aria-invalid': ariaInvalid,\n 'aria-required': ariaRequired,\n className,\n\n // own props\n allowSelectAll = false,\n empty = 'No items',\n indicator,\n\n // creatable\n allowCreate,\n queryToCreateValue,\n queryToCreateLabel = defaultQueryToCreateLabel,\n\n // own item props\n itemToDisabled = defaultItemToDisabled,\n itemToLabel = defaultItemToLabel,\n itemToIcon = defaultItemToIcon,\n groupToLabel = defaultGroupToLabel,\n itemToChipLabel,\n itemToChipColor,\n maxVisible = 3,\n}: Props<Value, GroupShape>) => {\n const itemsProp = _itemsProp ?? [];\n const valueProp = _valueProp ?? [];\n const renderArgo = useArgoDesign();\n const chipVariant = renderArgo ? 'pill' : 'default';\n\n const [inputValue, setInputValue] = useState('');\n const [createdItems, setCreatedItems] = useState<Value[]>([]);\n const query = inputValue.trim();\n const queryLower = query.toLowerCase();\n\n // Created values are appended to `items` so Base UI can keep resolving them (as chips and as\n // list options) once the query clears — otherwise a value that isn't in `items` gets dropped.\n const baseItems = (() => {\n if (createdItems.length === 0) return itemsProp;\n if (isGroupItems(itemsProp))\n return [...itemsProp, { items: createdItems } as unknown as GroupShape];\n return [...itemsProp, ...createdItems];\n })();\n\n const allFlatItems = baseItems.flatMap((item) => (isGroupItem(item) ? item.items : item));\n const sampleItem = allFlatItems[0] as Value | undefined;\n const isAllSelected = allFlatItems.length === (valueProp?.length ?? 0);\n\n const defaultFilter = BaseCombobox.useFilter({\n multiple: true,\n value: valueProp,\n });\n\n const itemsWithSelectAllItem = (() => {\n if (!allowSelectAll) return baseItems;\n return [selectAllItem, ...baseItems];\n })();\n\n const itemToString = (item: Value) => itemToStringLabel?.(item) ?? toLabel(item);\n\n const items = (() => {\n const base = itemsWithSelectAllItem;\n if (!allowCreate || disabled || !query) return base;\n\n const exactMatch = allFlatItems.some((item) => itemToString(item).toLowerCase() === queryLower);\n const alreadySelected = valueProp.some(\n (item) => itemToString(item).toLowerCase() === queryLower,\n );\n if (exactMatch || alreadySelected) return base;\n\n const creatable = createCreatableItem(query);\n return isGroupItems(base)\n ? [...base, { items: [creatable] } as unknown as GroupShape]\n : [...base, creatable as unknown as Value];\n })();\n\n const filter = (item: Value, query: string, itemToString?: (value: Value) => string) => {\n // keep select always visible\n if (isSelectAllItem(item)) return true;\n // always offer the transient \"create\" option\n if (isCreatableItem(item)) return true;\n\n if (filterProp) return filterProp(item, query, itemToString);\n return defaultFilter.contains(item, query, itemToString);\n };\n\n const wrappedItemToStringLabel: ComboboxProps<Value>['itemToStringLabel'] = !allowCreate\n ? itemToStringLabel\n : (item) => (isCreatableItem(item) ? item.value : itemToString(item));\n\n const wrappedItemToStringValue: ComboboxProps<Value>['itemToStringValue'] =\n !allowCreate || !itemToStringValue\n ? itemToStringValue\n : (item) => (isCreatableItem(item) ? item.value : itemToStringValue(item));\n\n const value = (() => {\n if (!allowSelectAll) return valueProp;\n return isAllSelected ? [...valueProp, selectAllItem as Value] : valueProp;\n })();\n\n const handleValueChange: ComboboxProps<Value>['onValueChange'] = (next, event) => {\n if (!onValueChange) return;\n\n const created: Value[] = [];\n const converted = allowCreate\n ? next.map((item) => {\n if (!isCreatableItem(item)) return item;\n const value = defaultToCreateValue(item.value, sampleItem, queryToCreateValue) as Value;\n created.push(value);\n return value;\n })\n : next;\n\n if (allowCreate) {\n if (created.length > 0) setCreatedItems((prev) => [...prev, ...created]);\n setInputValue('');\n }\n\n const hasSelectAll = converted.some((item) => isSelectAllItem(item));\n const newValue = (() => {\n if (!allowSelectAll) return converted;\n if (!hasSelectAll) return isAllSelected ? [] : converted;\n return isAllSelected ? converted.filter((item) => !isSelectAllItem(item)) : allFlatItems;\n })();\n\n onValueChange(newValue, event);\n };\n\n const renderItem = (item: Value) => {\n return (\n <Combobox.Item\n value={item}\n indicator={indicator}\n icon={itemToIcon(item)}\n disabled={itemToDisabled(item)}\n >\n {itemToLabel(item)}\n </Combobox.Item>\n );\n };\n\n return (\n <Combobox.Root<Value, true>\n multiple\n // Base UI highlights nothing until ArrowDown, so Enter after typing would drop the query\n // silently — no selection, and the popup closes. Highlighting the first match makes Enter\n // commit it, including the creatable row when `allowCreate` is on.\n autoHighlight\n items={items}\n value={value}\n defaultValue={defaultValue}\n filter={filter}\n onValueChange={handleValueChange}\n itemToStringLabel={wrappedItemToStringLabel}\n itemToStringValue={wrappedItemToStringValue}\n disabled={disabled}\n inputRef={inputRef}\n {...(allowCreate\n ? { inputValue, onInputValueChange: (nextValue: string) => setInputValue(nextValue) }\n : {})}\n >\n <BaseCombobox.Chips render={<Fragment />}>\n <Combobox.InputGroup\n variant={variant}\n sizing={sizing}\n state={state}\n focusVariant={focusVariant}\n className={className}\n >\n <div className=\"tw:flex tw:min-w-0 tw:flex-1 tw:flex-wrap tw:items-center tw:gap-1.5 tw:px-4 tw:py-1.5\">\n <Combobox.Chips<Value>\n maxVisible={maxVisible}\n variant={chipVariant}\n itemToChipLabel={itemToChipLabel ?? itemToLabel}\n itemToChipColor={itemToChipColor}\n />\n <div className=\"tw:flex tw:flex-1 tw:items-center tw:gap-1\">\n <Combobox.Input\n id={id}\n name={name}\n onBlur={onBlur}\n aria-describedby={ariaDescribedBy}\n aria-invalid={ariaInvalid}\n aria-required={ariaRequired}\n placeholder={placeholder}\n disabled={disabled}\n className=\"tw:w-auto tw:min-w-[120px] tw:flex-1\"\n />\n {allowClear && (\n <InputGroup.Button asChild aria-label=\"Clear\" disabled={disabled}>\n <BaseCombobox.Clear>\n <X className=\"tw:size-4\" />\n </BaseCombobox.Clear>\n </InputGroup.Button>\n )}\n <InputGroup.Button disabled={disabled} asChild aria-label=\"Open combobox\">\n <BaseCombobox.Trigger>\n <ChevronDown className=\"tw:size-4\" />\n </BaseCombobox.Trigger>\n </InputGroup.Button>\n </div>\n </div>\n </Combobox.InputGroup>\n </BaseCombobox.Chips>\n <Combobox.Content>\n <Combobox.Empty>{empty}</Combobox.Empty>\n <Combobox.List>\n {(itemOrGroup: Value | GroupShape) => {\n if (isSelectAllItem(itemOrGroup)) {\n return (\n <Combobox.Item value={itemOrGroup} indicator=\"checkbox\">\n Select All\n </Combobox.Item>\n );\n }\n\n if (isCreatableItem(itemOrGroup)) {\n return (\n <Combobox.Item value={itemOrGroup} icon={<Plus />}>\n {queryToCreateLabel(itemOrGroup.value)}\n </Combobox.Item>\n );\n }\n\n if (isGroupItem(itemOrGroup)) {\n const maybeCreatable = itemOrGroup.items[0];\n\n if (isCreatableItem(maybeCreatable)) {\n return (\n <Combobox.Item value={maybeCreatable} icon={<Plus />}>\n {queryToCreateLabel(maybeCreatable.value)}\n </Combobox.Item>\n );\n }\n\n const groupLabel = groupToLabel(itemOrGroup);\n return (\n <Combobox.Group items={itemOrGroup.items}>\n {groupLabel && <Combobox.GroupLabel>{groupLabel}</Combobox.GroupLabel>}\n <Combobox.GroupList>{renderItem}</Combobox.GroupList>\n </Combobox.Group>\n );\n }\n\n return renderItem(itemOrGroup);\n }}\n </Combobox.List>\n </Combobox.Content>\n </Combobox.Root>\n );\n};\n"],"mappings":";;;;;;;;AAiFA,MAAM,gBAA6B;CACjC,OAAO;CACP,OAAO;AACT;AAEA,MAAM,mBAA2B,SAC/B,cAAc,IAAI,KAAK,KAAK,UAAU;;;;;;;;;;;;;;AAexC,MAAa,iBAAwE,EAEnF,OAAO,YACP,OAAO,YACP,cACA,eACA,mBACA,mBACA,UACA,QAAQ,YACR,UAGA,SACA,QACA,cACA,OACA,aACA,YACA,IACA,MACA,QACA,oBAAoB,iBACpB,gBAAgB,aAChB,iBAAiB,cACjB,WAGA,iBAAiB,OACjB,QAAQ,YACR,WAGA,aACA,oBACA,qBAAqB,2BAGrB,iBAAiB,uBACjB,cAAc,oBACd,aAAa,mBACb,eAAe,qBACf,iBACA,iBACA,aAAa,QACiB;CAC9B,MAAM,YAAY,cAAc,CAAC;CACjC,MAAM,YAAY,cAAc,CAAC;CAEjC,MAAM,cADa,cACU,IAAI,SAAS;CAE1C,MAA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ACA,WAAS,MAAV;IAAe,OAAO;IAAa,WAAU;IAAW,UAAA;GAEzC,CAAA;GAInB,IAAI,gBAAgB,WAAW,GAC7B,OACE,oBAACA,WAAS,MAAV;IAAe,OAAO;IAAa,MAAM,oBAAC,MAAD,CAAO,CAAA;IAC7C,UAAA,mBAAmB,YAAY,KAAK;GACxB,CAAA;GAInB,IAAI,YAAY,WAAW,GAAG;IAC5B,MAAM,iBAAiB,YAAY,MAAM;IAEzC,IAAI,gBAAgB,cAAc,GAChC,OACE,oBAACA,WAAS,MAAV;KAAe,OAAO;KAAgB,MAAM,oBAAC,MAAD,CAAO,CAAA;KAChD,UAAA,mBAAmB,eAAe,KAAK;IAC3B,CAAA;IAInB,MAAM,aAAa,aAAa,WAAW;IAC3C,OACE,qBAACA,WAAS,OAAV;KAAgB,OAAO,YAAY;KAAnC,UAAA,CACG,cAAc,oBAACA,WAAS,YAAV,EAAA,UAAsB,WAAgC,CAAA,GACrE,oBAACA,WAAS,WAAV,EAAA,UAAqB,WAA+B,CAAA,CACtC;;GAEpB;GAEA,OAAO,WAAW,WAAW;EAC/B,EACa,CAAA,CACC,EAAA,CAAA,CACL;;AAEnB"}
@@ -1,4 +1,4 @@
1
- import { InputGroup } from "../../InputGroup-BJWsI35s.js";
1
+ import { InputGroup } from "../../InputGroup-D7zlmqPB.js";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  //#region src/blocks/NumberInput/NumberInput.tsx
4
4
  const toNumberOrNull = (event) => Number.isNaN(event.target.valueAsNumber) ? null : event.target.valueAsNumber;
@@ -1,2 +1,2 @@
1
- import { PageToolbar } from "../../PageToolbar-0_1OBzaZ.js";
1
+ import { PageToolbar } from "../../PageToolbar-bG2YtSa3.js";
2
2
  export { PageToolbar };
@@ -1,7 +1,7 @@
1
- import { createChangeInputEvent } from "../../utils-D0c5VAyF.js";
1
+ import { createChangeInputEvent } from "../../utils-B-g7d_Jb.js";
2
2
  import { mergeRefs } from "../utils/mergeRefs.js";
3
3
  import { ArrowBigUpDash, Eye, EyeOff, X } from "../../icons-Cek151jC.js";
4
- import { InputGroup } from "../../InputGroup-BJWsI35s.js";
4
+ import { InputGroup } from "../../InputGroup-D7zlmqPB.js";
5
5
  import { useControllableState } from "../../useControllableState-M6494mCT.js";
6
6
  import { useRef, useState } from "react";
7
7
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,2 +1,2 @@
1
- import { SearchInput } from "../../SearchInput-D2fcOv7E.js";
1
+ import { SearchInput } from "../../SearchInput-CCpdUego.js";
2
2
  export { SearchInput };
@@ -1,10 +1,10 @@
1
1
  import { cn } from "../../classNames-BzrkDnOD.js";
2
- import { keyCodes } from "../../utils-D0c5VAyF.js";
2
+ import { keyCodes } from "../../utils-B-g7d_Jb.js";
3
3
  import { ChevronDown, ChevronUp, Search } from "../../icons-Cek151jC.js";
4
- import { Button } from "../../Button-nzmDNS2q.js";
4
+ import { Button } from "../../Button-CPsEQuTN.js";
5
5
  import { ButtonGroup } from "../components/ButtonGroup.js";
6
6
  import { Separator } from "../components/Separator.js";
7
- import { TextInput } from "../../TextInput-BGed-V13.js";
7
+ import { TextInput } from "../../TextInput-DhdRk8qm.js";
8
8
  import { jsx, jsxs } from "react/jsx-runtime";
9
9
  //#region src/blocks/SearchInputWithNavigation/SearchInputWithNavigation.tsx
10
10
  const SearchInputWithNavigation = ({ ref, value, onValueChange, placeholder = "Search...", variant = "secondary", onClear, focusVariant, currentIndex, totalResults, onNavigateNext, onNavigatePrevious, className }) => {
@@ -1,2 +1,2 @@
1
- import { SectionNav } from "../../SectionNav--7bw2b6u.js";
1
+ import { SectionNav } from "../../SectionNav-Bw_MVL0_.js";
2
2
  export { SectionNav };
@@ -1,7 +1,7 @@
1
1
  import { ChevronDown } from "../../icons-Cek151jC.js";
2
- import { Button } from "../../Button-nzmDNS2q.js";
2
+ import { Button } from "../../Button-CPsEQuTN.js";
3
3
  import { ButtonGroup } from "../components/ButtonGroup.js";
4
- import { DropdownMenu } from "../../DropdownMenu-B6ZbYvaM.js";
4
+ import { DropdownMenu } from "../../DropdownMenu-DpMEcyCq.js";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  //#region src/blocks/SplitButton/SplitButton.tsx
7
7
  const iconSizeMap = {
@@ -1,5 +1,5 @@
1
1
  import { cn } from "../../classNames-BzrkDnOD.js";
2
- import { Card } from "../../Card-BAoZ35CV.js";
2
+ import { Card } from "../../Card-Cd5HSBmv.js";
3
3
  import { cva } from "class-variance-authority";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  //#region src/blocks/StatCard/StatCard.tsx
@@ -1,2 +1,2 @@
1
- import { TextInput } from "../../TextInput-BGed-V13.js";
1
+ import { TextInput } from "../../TextInput-DhdRk8qm.js";
2
2
  export { TextInput };
@@ -1,4 +1,4 @@
1
- import { InputGroup } from "../../InputGroup-BJWsI35s.js";
1
+ import { InputGroup } from "../../InputGroup-D7zlmqPB.js";
2
2
  import { useControllableState } from "../../useControllableState-M6494mCT.js";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  //#region src/blocks/Textarea/Textarea.tsx