@tcn/ui 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (400) hide show
  1. package/dist/actions/button/base_button/base_button.js +8 -8
  2. package/dist/actions/button/base_button/base_button.js.map +1 -1
  3. package/dist/actions/button/button/button.d.ts.map +1 -1
  4. package/dist/actions/button/button/button.js +13 -5
  5. package/dist/actions/button/button/button.js.map +1 -1
  6. package/dist/actions/button/button_group/button_group.d.ts.map +1 -1
  7. package/dist/actions/button/button_group/button_group.js +2 -5
  8. package/dist/actions/button/button_group/button_group.js.map +1 -1
  9. package/dist/actions/button/select_group/select_group.js +7 -7
  10. package/dist/actions/button/select_group/select_group.js.map +1 -1
  11. package/dist/actions/button/slim_button/slim_button.d.ts.map +1 -1
  12. package/dist/actions/button/slim_button/slim_button.js +4 -4
  13. package/dist/actions/button/slim_button/slim_button.js.map +1 -1
  14. package/dist/feedback/progress/progress_bar.js +1 -1
  15. package/dist/form/field/common/field_control/field_control.js +6 -6
  16. package/dist/form/field/common/field_control/field_control.js.map +1 -1
  17. package/dist/form/field/common/field_description.js +1 -1
  18. package/dist/form/field/common/field_error.js +3 -4
  19. package/dist/form/field/common/field_error.js.map +1 -1
  20. package/dist/form/field/common/field_header.js +8 -8
  21. package/dist/form/field/common/field_header.js.map +1 -1
  22. package/dist/form/field/common/field_label.js +1 -1
  23. package/dist/form/field/common/status_input/status_input.d.ts.map +1 -1
  24. package/dist/form/field/common/status_input/status_input.js +9 -15
  25. package/dist/form/field/common/status_input/status_input.js.map +1 -1
  26. package/dist/form/field/h_field/h_field.d.ts.map +1 -1
  27. package/dist/form/field/h_field/h_field.js +9 -9
  28. package/dist/form/field/h_field/h_field.js.map +1 -1
  29. package/dist/form/field/v_field/v_field.d.ts.map +1 -1
  30. package/dist/form/field/v_field/v_field.js +8 -8
  31. package/dist/form/field/v_field/v_field.js.map +1 -1
  32. package/dist/form/field_presenters/options_field_presenter.d.ts.map +1 -1
  33. package/dist/form/field_presenters/options_field_presenter.js.map +1 -1
  34. package/dist/form/field_set/field_set.d.ts.map +1 -1
  35. package/dist/form/field_set/field_set.js +12 -19
  36. package/dist/form/field_set/field_set.js.map +1 -1
  37. package/dist/form/form_field.d.ts.map +1 -1
  38. package/dist/form/form_field.js.map +1 -1
  39. package/dist/form/index.d.ts +14 -11
  40. package/dist/form/index.d.ts.map +1 -1
  41. package/dist/form/index.js +27 -20
  42. package/dist/form/index.js.map +1 -1
  43. package/dist/h_body.css +1 -1
  44. package/dist/inputs/checkbox/checkbox.js +12 -12
  45. package/dist/inputs/checkbox/checkbox.js.map +1 -1
  46. package/dist/inputs/color_input/color_input.d.ts.map +1 -1
  47. package/dist/inputs/color_input/color_input.js +13 -17
  48. package/dist/inputs/color_input/color_input.js.map +1 -1
  49. package/dist/inputs/color_input/color_picker.js +6 -6
  50. package/dist/inputs/color_input/color_picker.js.map +1 -1
  51. package/dist/inputs/combo_box/combo_box.js +15 -15
  52. package/dist/inputs/combo_box/combo_box.js.map +1 -1
  53. package/dist/inputs/date_picker/date_picker.js +6 -6
  54. package/dist/inputs/date_picker/date_picker.js.map +1 -1
  55. package/dist/inputs/date_picker/date_picker_date.js +13 -13
  56. package/dist/inputs/date_picker/date_picker_date.js.map +1 -1
  57. package/dist/inputs/date_picker/date_picker_day.js +1 -1
  58. package/dist/inputs/date_picker/date_picker_header.js +24 -24
  59. package/dist/inputs/date_picker/date_picker_header.js.map +1 -1
  60. package/dist/inputs/date_picker/date_picker_input.js +19 -19
  61. package/dist/inputs/date_picker/date_picker_input.js.map +1 -1
  62. package/dist/inputs/date_picker/date_picker_time_selector.d.ts.map +1 -1
  63. package/dist/inputs/date_picker/date_picker_time_selector.js +6 -9
  64. package/dist/inputs/date_picker/date_picker_time_selector.js.map +1 -1
  65. package/dist/inputs/date_picker/date_picker_year_input.js +3 -3
  66. package/dist/inputs/date_picker/date_picker_year_input.js.map +1 -1
  67. package/dist/inputs/date_picker/date_picker_year_selector.d.ts.map +1 -1
  68. package/dist/inputs/date_picker/date_picker_year_selector.js +18 -24
  69. package/dist/inputs/date_picker/date_picker_year_selector.js.map +1 -1
  70. package/dist/inputs/input/input.js +4 -4
  71. package/dist/inputs/input/input.js.map +1 -1
  72. package/dist/inputs/multi_combo_box/multi_combo_box.js +1 -1
  73. package/dist/inputs/multi_combo_box/multi_combo_box.js.map +1 -1
  74. package/dist/inputs/multiselect/multiselect_values.js +8 -8
  75. package/dist/inputs/multiselect/multiselect_values.js.map +1 -1
  76. package/dist/inputs/phone_number_input/phone_number_input.d.ts.map +1 -1
  77. package/dist/inputs/phone_number_input/phone_number_input.js +28 -31
  78. package/dist/inputs/phone_number_input/phone_number_input.js.map +1 -1
  79. package/dist/inputs/radio/radio.js +14 -14
  80. package/dist/inputs/radio/radio.js.map +1 -1
  81. package/dist/inputs/select/select.js +16 -16
  82. package/dist/inputs/select/select.js.map +1 -1
  83. package/dist/inputs/slider/slider.js +7 -7
  84. package/dist/inputs/slider/slider.js.map +1 -1
  85. package/dist/inputs/suggestions/suggestion_item.js +3 -3
  86. package/dist/inputs/suggestions/suggestion_item.js.map +1 -1
  87. package/dist/inputs/suggestions/suggestion_list.js +8 -8
  88. package/dist/inputs/suggestions/suggestion_list.js.map +1 -1
  89. package/dist/inputs/switch/switch.js +14 -14
  90. package/dist/inputs/switch/switch.js.map +1 -1
  91. package/dist/inputs/textarea/textarea.js +6 -6
  92. package/dist/inputs/textarea/textarea.js.map +1 -1
  93. package/dist/inputs/unit_input/unit_input.js +5 -5
  94. package/dist/inputs/unit_input/unit_input.js.map +1 -1
  95. package/dist/layouts/body/h_body.d.ts.map +1 -1
  96. package/dist/layouts/body/h_body.js +12 -11
  97. package/dist/layouts/body/h_body.js.map +1 -1
  98. package/dist/layouts/body/v_body.d.ts.map +1 -1
  99. package/dist/layouts/body/v_body.js +11 -10
  100. package/dist/layouts/body/v_body.js.map +1 -1
  101. package/dist/layouts/column/column.js +16 -16
  102. package/dist/layouts/column/column.js.map +1 -1
  103. package/dist/layouts/divider/divider.d.ts +2 -2
  104. package/dist/layouts/divider/divider.d.ts.map +1 -1
  105. package/dist/layouts/divider/divider.js +22 -21
  106. package/dist/layouts/divider/divider.js.map +1 -1
  107. package/dist/layouts/footer/footer.d.ts +1 -1
  108. package/dist/layouts/footer/footer.d.ts.map +1 -1
  109. package/dist/layouts/footer/footer.js +10 -10
  110. package/dist/layouts/footer/footer.js.map +1 -1
  111. package/dist/layouts/grid/grid.d.ts.map +1 -1
  112. package/dist/layouts/grid/grid.js +22 -31
  113. package/dist/layouts/grid/grid.js.map +1 -1
  114. package/dist/layouts/header/header.d.ts +1 -1
  115. package/dist/layouts/header/header.d.ts.map +1 -1
  116. package/dist/layouts/header/header.js +20 -20
  117. package/dist/layouts/header/header.js.map +1 -1
  118. package/dist/layouts/list/item.js +6 -6
  119. package/dist/layouts/list/item.js.map +1 -1
  120. package/dist/layouts/list/list.js +6 -6
  121. package/dist/layouts/list/list.js.map +1 -1
  122. package/dist/layouts/sidebar_end/sidebar_end.js +15 -15
  123. package/dist/layouts/sidebar_end/sidebar_end.js.map +1 -1
  124. package/dist/layouts/sidebar_start/sidebar_start.js +16 -16
  125. package/dist/layouts/sidebar_start/sidebar_start.js.map +1 -1
  126. package/dist/layouts/utility_bar/utility_bar.d.ts +1 -1
  127. package/dist/layouts/utility_bar/utility_bar.d.ts.map +1 -1
  128. package/dist/layouts/utility_bar/utility_bar.js +20 -15
  129. package/dist/layouts/utility_bar/utility_bar.js.map +1 -1
  130. package/dist/modal.css +1 -1
  131. package/dist/overlay/menu/menu.js +8 -8
  132. package/dist/overlay/menu/menu.js.map +1 -1
  133. package/dist/overlay/tooltip/tooltip.js +10 -10
  134. package/dist/overlay/tooltip/tooltip.js.map +1 -1
  135. package/dist/panel.css +1 -1
  136. package/dist/panel.module-DwGKncon.js +5 -0
  137. package/dist/panel.module-DwGKncon.js.map +1 -0
  138. package/dist/stack.css +1 -1
  139. package/dist/stacks/box/bottom_resize_handle.js +9 -9
  140. package/dist/stacks/box/bottom_resize_handle.js.map +1 -1
  141. package/dist/stacks/box/box.js +42 -42
  142. package/dist/stacks/box/box.js.map +1 -1
  143. package/dist/stacks/box/end_resize_handle.js +6 -6
  144. package/dist/stacks/box/end_resize_handle.js.map +1 -1
  145. package/dist/stacks/box/left_resize_handle.js +3 -3
  146. package/dist/stacks/box/left_resize_handle.js.map +1 -1
  147. package/dist/stacks/box/right_resize_handle.js +8 -8
  148. package/dist/stacks/box/right_resize_handle.js.map +1 -1
  149. package/dist/stacks/box/start_resize_handle.js +7 -7
  150. package/dist/stacks/box/start_resize_handle.js.map +1 -1
  151. package/dist/stacks/box/top_resize_handle.js +8 -8
  152. package/dist/stacks/box/top_resize_handle.js.map +1 -1
  153. package/dist/stacks/h_collapsible_box.js +5 -5
  154. package/dist/stacks/h_collapsible_box.js.map +1 -1
  155. package/dist/stacks/h_stack.js +26 -26
  156. package/dist/stacks/h_stack.js.map +1 -1
  157. package/dist/stacks/spacer.js +5 -5
  158. package/dist/stacks/spacer.js.map +1 -1
  159. package/dist/stacks/story_components/circle.js +6 -6
  160. package/dist/stacks/story_components/circle.js.map +1 -1
  161. package/dist/stacks/story_components/picture_placeholder.js +8 -8
  162. package/dist/stacks/story_components/picture_placeholder.js.map +1 -1
  163. package/dist/stacks/story_components/rect.js +11 -11
  164. package/dist/stacks/story_components/rect.js.map +1 -1
  165. package/dist/stacks/types/styles.d.ts +2 -2
  166. package/dist/stacks/types/styles.d.ts.map +1 -1
  167. package/dist/stacks/v_collapsible_box.js +8 -8
  168. package/dist/stacks/v_collapsible_box.js.map +1 -1
  169. package/dist/stacks/v_stack.js +35 -35
  170. package/dist/stacks/v_stack.js.map +1 -1
  171. package/dist/stacks/z_stack.js +34 -34
  172. package/dist/stacks/z_stack.js.map +1 -1
  173. package/dist/surfaces/alert/alert.js +8 -8
  174. package/dist/surfaces/alert/alert.js.map +1 -1
  175. package/dist/surfaces/card/card.js +8 -8
  176. package/dist/surfaces/card/card.js.map +1 -1
  177. package/dist/surfaces/confirm/confirm.d.ts.map +1 -1
  178. package/dist/surfaces/confirm/confirm.js +13 -20
  179. package/dist/surfaces/confirm/confirm.js.map +1 -1
  180. package/dist/surfaces/drawers/drawer_bottom/drawer_bottom.js +5 -5
  181. package/dist/surfaces/drawers/drawer_bottom/drawer_bottom.js.map +1 -1
  182. package/dist/surfaces/drawers/drawer_end/drawer_end.js +8 -8
  183. package/dist/surfaces/drawers/drawer_end/drawer_end.js.map +1 -1
  184. package/dist/surfaces/drawers/drawer_start/drawer_start.js +4 -4
  185. package/dist/surfaces/drawers/drawer_start/drawer_start.js.map +1 -1
  186. package/dist/surfaces/drawers/drawer_top/drawer_top.js +4 -4
  187. package/dist/surfaces/drawers/drawer_top/drawer_top.js.map +1 -1
  188. package/dist/surfaces/modal/modal.d.ts +2 -4
  189. package/dist/surfaces/modal/modal.d.ts.map +1 -1
  190. package/dist/surfaces/modal/modal.js +16 -7
  191. package/dist/surfaces/modal/modal.js.map +1 -1
  192. package/dist/surfaces/page/h_page.js +6 -6
  193. package/dist/surfaces/page/h_page.js.map +1 -1
  194. package/dist/surfaces/page/v_page.js +9 -9
  195. package/dist/surfaces/page/v_page.js.map +1 -1
  196. package/dist/surfaces/panel/h_panel.d.ts +1 -1
  197. package/dist/surfaces/panel/h_panel.d.ts.map +1 -1
  198. package/dist/surfaces/panel/h_panel.js +36 -31
  199. package/dist/surfaces/panel/h_panel.js.map +1 -1
  200. package/dist/surfaces/panel/v_panel.d.ts +1 -1
  201. package/dist/surfaces/panel/v_panel.d.ts.map +1 -1
  202. package/dist/surfaces/panel/v_panel.js +39 -34
  203. package/dist/surfaces/panel/v_panel.js.map +1 -1
  204. package/dist/surfaces/popover/popover.js +34 -34
  205. package/dist/surfaces/popover/popover.js.map +1 -1
  206. package/dist/surfaces/window/window.d.ts.map +1 -1
  207. package/dist/surfaces/window/window.js +6 -14
  208. package/dist/surfaces/window/window.js.map +1 -1
  209. package/dist/themes/index.d.ts +0 -2
  210. package/dist/themes/index.d.ts.map +1 -1
  211. package/dist/themes/index.js +5 -204
  212. package/dist/themes/index.js.map +1 -1
  213. package/dist/themes/themes/ergo/ergo_theme.css +1 -1
  214. package/dist/tokens/badge/badge.js +13 -13
  215. package/dist/tokens/badge/badge.js.map +1 -1
  216. package/dist/tokens/bubble/bubble.js +16 -17
  217. package/dist/tokens/bubble/bubble.js.map +1 -1
  218. package/dist/tokens/chip/chip.js +10 -11
  219. package/dist/tokens/chip/chip.js.map +1 -1
  220. package/dist/typography/body_text/body_text.js +21 -21
  221. package/dist/typography/body_text/body_text.js.map +1 -1
  222. package/dist/typography/callout/callout.js +16 -16
  223. package/dist/typography/callout/callout.js.map +1 -1
  224. package/dist/typography/caption/caption.js +13 -13
  225. package/dist/typography/caption/caption.js.map +1 -1
  226. package/dist/typography/footnote/footnote.js +14 -14
  227. package/dist/typography/footnote/footnote.js.map +1 -1
  228. package/dist/typography/headline/headline.js +12 -12
  229. package/dist/typography/headline/headline.js.map +1 -1
  230. package/dist/typography/subheadline/subheadline.js +13 -13
  231. package/dist/typography/subheadline/subheadline.js.map +1 -1
  232. package/dist/typography/title/title.d.ts +1 -1
  233. package/dist/typography/title/title.d.ts.map +1 -1
  234. package/dist/typography/title/title.js +19 -19
  235. package/dist/typography/title/title.js.map +1 -1
  236. package/dist/v_body.css +1 -1
  237. package/package.json +23 -4
  238. package/src/actions/button/__stories__/button.stories.tsx +1 -1
  239. package/src/actions/button/__stories__/button_group.stories.tsx +1 -1
  240. package/src/actions/button/__stories__/select_group.stories.tsx +1 -1
  241. package/src/actions/button/__stories__/slim_button.stories.tsx +1 -1
  242. package/src/actions/button/base_button/base_button.tsx +2 -2
  243. package/src/actions/button/button/button.tsx +10 -4
  244. package/src/actions/button/button_group/button_group.tsx +4 -7
  245. package/src/actions/button/select_group/select_group.tsx +3 -3
  246. package/src/actions/button/slim_button/slim_button.tsx +3 -2
  247. package/src/feedback/lazy/lazy.stories.tsx +1 -1
  248. package/src/feedback/loading/__storybook__/loading.stories.tsx +1 -1
  249. package/src/feedback/progress/progress_bar.stories.tsx +1 -1
  250. package/src/form/field/common/field_control/field_control.tsx +2 -2
  251. package/src/form/field/common/field_header.tsx +2 -2
  252. package/src/form/field/common/status_input/status_input.tsx +4 -7
  253. package/src/form/field/field.stories.tsx +2 -1
  254. package/src/form/field/h_field/h_field.stories.tsx +10 -1
  255. package/src/form/field/h_field/h_field.tsx +3 -3
  256. package/src/form/field/v_field/v_field.stories.tsx +10 -1
  257. package/src/form/field/v_field/v_field.tsx +3 -3
  258. package/src/form/field_presenters/options_field_presenter.ts +1 -1
  259. package/src/form/field_set/field_set.stories.tsx +9 -1
  260. package/src/form/field_set/field_set.tsx +4 -7
  261. package/src/form/form_field.tsx +1 -1
  262. package/src/form/index.ts +50 -11
  263. package/src/inputs/checkbox/checkbox.stories.tsx +9 -1
  264. package/src/inputs/checkbox/checkbox.tsx +2 -2
  265. package/src/inputs/color_input/color_input.stories.tsx +9 -1
  266. package/src/inputs/color_input/color_input.tsx +2 -6
  267. package/src/inputs/color_input/color_picker.tsx +2 -2
  268. package/src/inputs/combo_box/combo_box.stories.tsx +14 -5
  269. package/src/inputs/combo_box/combo_box.tsx +2 -2
  270. package/src/inputs/date_picker/date_picker.stories.tsx +18 -10
  271. package/src/inputs/date_picker/date_picker.tsx +3 -3
  272. package/src/inputs/date_picker/date_picker_date.tsx +3 -3
  273. package/src/inputs/date_picker/date_picker_header.tsx +2 -2
  274. package/src/inputs/date_picker/date_picker_input.stories.tsx +15 -7
  275. package/src/inputs/date_picker/date_picker_input.tsx +3 -3
  276. package/src/inputs/date_picker/date_picker_time_selector.tsx +5 -8
  277. package/src/inputs/date_picker/date_picker_year_input.tsx +2 -2
  278. package/src/inputs/date_picker/date_picker_year_selector.tsx +3 -9
  279. package/src/inputs/input/input.stories.tsx +9 -1
  280. package/src/inputs/input/input.tsx +2 -2
  281. package/src/inputs/mask_input/key_capture_input.stories.tsx +9 -1
  282. package/src/inputs/mask_input/mask_input.stories.tsx +10 -1
  283. package/src/inputs/multi_combo_box/multi_combo_box.stories.tsx +10 -1
  284. package/src/inputs/multi_combo_box/multi_combo_box.tsx +2 -2
  285. package/src/inputs/multiselect/multiselect_values.tsx +2 -2
  286. package/src/inputs/multiselect/mutliselect.stories.tsx +10 -1
  287. package/src/inputs/phone_number_input/phone_number_input.stories.tsx +10 -1
  288. package/src/inputs/phone_number_input/phone_number_input.tsx +6 -9
  289. package/src/inputs/radio/radio.stories.tsx +14 -6
  290. package/src/inputs/radio/radio.tsx +2 -2
  291. package/src/inputs/select/select.stories.tsx +18 -9
  292. package/src/inputs/select/select.tsx +2 -2
  293. package/src/inputs/slider/slider.stories.tsx +9 -1
  294. package/src/inputs/slider/slider.tsx +2 -2
  295. package/src/inputs/suggestions/suggestion_item.tsx +2 -2
  296. package/src/inputs/suggestions/suggestion_list.stories.tsx +21 -12
  297. package/src/inputs/suggestions/suggestion_list.tsx +3 -3
  298. package/src/inputs/switch/switch.stories.tsx +9 -1
  299. package/src/inputs/switch/switch.tsx +4 -4
  300. package/src/inputs/textarea/textarea.stories.tsx +9 -1
  301. package/src/inputs/textarea/textarea.tsx +2 -2
  302. package/src/inputs/unit_input/unit_input.stories.tsx +9 -1
  303. package/src/inputs/unit_input/unit_input.tsx +4 -4
  304. package/src/layouts/body/h_body.module.css +3 -2
  305. package/src/layouts/body/h_body.tsx +5 -4
  306. package/src/layouts/body/v_body.module.css +3 -2
  307. package/src/layouts/body/v_body.tsx +5 -4
  308. package/src/layouts/column/column.tsx +3 -3
  309. package/src/layouts/divider/__stories__/divider.stories.tsx +59 -19
  310. package/src/layouts/divider/divider.tsx +6 -5
  311. package/src/layouts/footer/footer.tsx +4 -4
  312. package/src/layouts/grid/grid.stories.tsx +42 -34
  313. package/src/layouts/grid/grid.tsx +2 -7
  314. package/src/layouts/header/header.tsx +4 -4
  315. package/src/layouts/list/item.tsx +2 -2
  316. package/src/layouts/list/list.tsx +2 -2
  317. package/src/layouts/sidebar_end/sidebar_end.tsx +2 -2
  318. package/src/layouts/sidebar_start/sidebar_start.tsx +2 -2
  319. package/src/layouts/utility_bar/utility_bar.tsx +9 -4
  320. package/src/overlay/context_menu/context_menu.stories.tsx +13 -5
  321. package/src/overlay/menu/menu.stories.tsx +22 -14
  322. package/src/overlay/menu/menu.tsx +3 -3
  323. package/src/overlay/popper/popper.stories.tsx +43 -22
  324. package/src/overlay/portal/portal.stories.tsx +10 -1
  325. package/src/overlay/tooltip/tooltip.stories.tsx +9 -2
  326. package/src/overlay/tooltip/tooltip.tsx +2 -2
  327. package/src/stacks/box/bottom_resize_handle.tsx +2 -2
  328. package/src/stacks/box/box.tsx +2 -2
  329. package/src/stacks/box/end_resize_handle.tsx +2 -2
  330. package/src/stacks/box/left_resize_handle.tsx +2 -2
  331. package/src/stacks/box/right_resize_handle.tsx +2 -2
  332. package/src/stacks/box/start_resize_handle.tsx +2 -2
  333. package/src/stacks/box/top_resize_handle.tsx +2 -2
  334. package/src/stacks/collapsible_box.stories.tsx +10 -1
  335. package/src/stacks/h_collapsible_box.tsx +2 -2
  336. package/src/stacks/h_stack.stories.tsx +104 -59
  337. package/src/stacks/h_stack.tsx +2 -2
  338. package/src/stacks/spacer.tsx +2 -2
  339. package/src/stacks/stack.module.css +54 -5
  340. package/src/stacks/stacks.mdx +28 -28
  341. package/src/stacks/story_components/circle.tsx +2 -2
  342. package/src/stacks/story_components/picture_placeholder.tsx +2 -2
  343. package/src/stacks/story_components/rect.tsx +2 -2
  344. package/src/stacks/types/styles.ts +2 -2
  345. package/src/stacks/v_collapsible_box.tsx +2 -2
  346. package/src/stacks/v_stack.stories.tsx +91 -10
  347. package/src/stacks/v_stack.tsx +2 -2
  348. package/src/stacks/z_stack.stories.tsx +9 -1
  349. package/src/stacks/z_stack.tsx +2 -2
  350. package/src/surfaces/alert/alert.stories.tsx +4 -4
  351. package/src/surfaces/alert/alert.tsx +2 -2
  352. package/src/surfaces/card/card.tsx +2 -2
  353. package/src/surfaces/confirm/confirm.stories.tsx +4 -4
  354. package/src/surfaces/confirm/confirm.tsx +3 -6
  355. package/src/surfaces/drawers/__stories__/drawers.stories.tsx +1 -1
  356. package/src/surfaces/drawers/drawer_bottom/drawer_bottom.tsx +2 -2
  357. package/src/surfaces/drawers/drawer_end/drawer_end.tsx +2 -2
  358. package/src/surfaces/drawers/drawer_start/drawer_start.tsx +2 -2
  359. package/src/surfaces/drawers/drawer_top/drawer_top.tsx +2 -2
  360. package/src/surfaces/modal/__stories__/modal.stories.tsx +54 -0
  361. package/src/surfaces/modal/modal.module.css +2 -1
  362. package/src/surfaces/modal/modal.tsx +9 -6
  363. package/src/surfaces/page/h_page.tsx +2 -2
  364. package/src/surfaces/page/v_page.tsx +2 -2
  365. package/src/surfaces/panel/__stories__/panel.stories.tsx +68 -0
  366. package/src/surfaces/panel/__stories__/panel_stories.module.css +13 -0
  367. package/src/surfaces/panel/h_panel.tsx +12 -6
  368. package/src/surfaces/panel/panel.module.css +2 -7
  369. package/src/surfaces/panel/v_panel.tsx +11 -5
  370. package/src/surfaces/popover/popover.tsx +2 -2
  371. package/src/surfaces/window/window.stories.tsx +1 -1
  372. package/src/surfaces/window/window.tsx +2 -6
  373. package/src/themes/index.ts +0 -2
  374. package/src/themes/stories/themes.stories.tsx +1 -1
  375. package/src/themes/themes/ergo/ergo_theme.css +142 -10
  376. package/src/tokens/badge/badge.stories.tsx +6 -6
  377. package/src/tokens/badge/badge.tsx +3 -3
  378. package/src/tokens/bubble/bubble.stories.tsx +16 -9
  379. package/src/tokens/bubble/bubble.tsx +2 -2
  380. package/src/tokens/chip/chip.stories.tsx +1 -1
  381. package/src/tokens/chip/chip.tsx +2 -2
  382. package/src/typography/body_text/body_text.tsx +2 -2
  383. package/src/typography/callout/callout.tsx +2 -2
  384. package/src/typography/caption/caption.tsx +2 -2
  385. package/src/typography/footnote/footnote.tsx +2 -2
  386. package/src/typography/headline/headline.tsx +2 -2
  387. package/src/typography/subheadline/subheadline.tsx +2 -2
  388. package/src/typography/title/title.tsx +3 -3
  389. package/src/typography/typography-showcase.stories.tsx +2 -2
  390. package/src/utils/click_away_listener.stories.tsx +21 -11
  391. package/src/utils/responsive/responsive_renderer.stories.tsx +7 -7
  392. package/src/utils/scroll_away_listener.stories.tsx +11 -1
  393. package/dist/form/field/form_field.d.ts +0 -6
  394. package/dist/form/field/form_field.d.ts.map +0 -1
  395. package/dist/form/field/form_field.js +0 -18
  396. package/dist/form/field/form_field.js.map +0 -1
  397. package/dist/panel.module-CtikcmYB.js +0 -5
  398. package/dist/panel.module-CtikcmYB.js.map +0 -1
  399. package/src/form/field/form_field.tsx +0 -29
  400. package/src/surfaces/modal/modal.stories.tsx +0 -15
@@ -1,8 +1,8 @@
1
- import { jsx as r } from "react/jsx-runtime";
1
+ import { jsx as m } from "react/jsx-runtime";
2
2
  import { createVerticalResizeHandler as l } from "./resize_handlers.js";
3
- import c from "classnames";
4
- import '../../bottom_resize_handle.css';const a = "_bottom-resize-handle_e3e2ef2", f = { "bottom-resize-handle": a };
5
- function H({
3
+ import { clsx as c } from "clsx";
4
+ import '../../bottom_resize_handle.css';const f = "_bottom-resize-handle_e3e2ef2", z = { "bottom-resize-handle": f };
5
+ function x({
6
6
  targetRef: t,
7
7
  handleProps: e,
8
8
  onHeightResize: o,
@@ -12,22 +12,22 @@ function H({
12
12
  t,
13
13
  o,
14
14
  s
15
- ), n = e?.offset ? e.offset : -8, m = {
15
+ ), n = e?.offset ? e.offset : -8, r = {
16
16
  ...e?.style,
17
17
  bottom: `${n}px`,
18
18
  height: e?.size || "16px"
19
19
  };
20
- return /* @__PURE__ */ r(
20
+ return /* @__PURE__ */ m(
21
21
  "div",
22
22
  {
23
- className: c(f["bottom-resize-handle"], "bottom-resize-handle"),
23
+ className: c(z["bottom-resize-handle"], "bottom-resize-handle"),
24
24
  onMouseDown: i,
25
- style: m,
25
+ style: r,
26
26
  children: e?.children
27
27
  }
28
28
  );
29
29
  }
30
30
  export {
31
- H as BottomResizeHandle
31
+ x as BottomResizeHandle
32
32
  };
33
33
  //# sourceMappingURL=bottom_resize_handle.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"bottom_resize_handle.js","sources":["../../../src/stacks/box/bottom_resize_handle.tsx"],"sourcesContent":["import React from 'react';\nimport styles from './bottom_resize_handle.module.css';\nimport { createVerticalResizeHandler } from './resize_handlers.js';\nimport classNames from 'classnames';\nimport type { HandleProps } from './handle_props.js';\n\nexport interface BottomResizeHandleProps {\n targetRef: React.MutableRefObject<HTMLElement | null>;\n handleProps?: HandleProps;\n onHeightResize?: (value: number) => void;\n onHeightResizeEnd?: (value: number) => void;\n}\n\nexport function BottomResizeHandle({\n targetRef,\n handleProps,\n onHeightResize,\n onHeightResizeEnd,\n}: BottomResizeHandleProps) {\n const resizeHandler = createVerticalResizeHandler(\n targetRef,\n onHeightResize,\n onHeightResizeEnd\n );\n const offset = handleProps?.offset ? handleProps.offset : -8;\n\n const bottomResizeHandleStyle: React.CSSProperties = {\n ...handleProps?.style,\n bottom: `${offset}px`,\n height: handleProps?.size || '16px',\n };\n\n return (\n <div\n className={classNames(styles['bottom-resize-handle'], 'bottom-resize-handle')}\n onMouseDown={resizeHandler}\n style={bottomResizeHandleStyle}\n >\n {handleProps?.children}\n </div>\n );\n}\n"],"names":["BottomResizeHandle","targetRef","handleProps","onHeightResize","onHeightResizeEnd","resizeHandler","createVerticalResizeHandler","offset","bottomResizeHandleStyle","jsx","classNames","styles"],"mappings":";;;;AAaO,SAASA,EAAmB;AAAA,EACjC,WAAAC;AAAA,EACA,aAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,mBAAAC;AACF,GAA4B;AAC1B,QAAMC,IAAgBC;AAAA,IACpBL;AAAA,IACAE;AAAA,IACAC;AAAA,EAAA,GAEIG,IAASL,GAAa,SAASA,EAAY,SAAS,IAEpDM,IAA+C;AAAA,IACnD,GAAGN,GAAa;AAAA,IAChB,QAAQ,GAAGK,CAAM;AAAA,IACjB,QAAQL,GAAa,QAAQ;AAAA,EAAA;AAG/B,SACE,gBAAAO;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,EAAWC,EAAO,sBAAsB,GAAG,sBAAsB;AAAA,MAC5E,aAAaN;AAAA,MACb,OAAOG;AAAA,MAEN,UAAAN,GAAa;AAAA,IAAA;AAAA,EAAA;AAGpB;"}
1
+ {"version":3,"file":"bottom_resize_handle.js","sources":["../../../src/stacks/box/bottom_resize_handle.tsx"],"sourcesContent":["import React from 'react';\nimport styles from './bottom_resize_handle.module.css';\nimport { createVerticalResizeHandler } from './resize_handlers.js';\nimport { clsx } from 'clsx';\nimport type { HandleProps } from './handle_props.js';\n\nexport interface BottomResizeHandleProps {\n targetRef: React.MutableRefObject<HTMLElement | null>;\n handleProps?: HandleProps;\n onHeightResize?: (value: number) => void;\n onHeightResizeEnd?: (value: number) => void;\n}\n\nexport function BottomResizeHandle({\n targetRef,\n handleProps,\n onHeightResize,\n onHeightResizeEnd,\n}: BottomResizeHandleProps) {\n const resizeHandler = createVerticalResizeHandler(\n targetRef,\n onHeightResize,\n onHeightResizeEnd\n );\n const offset = handleProps?.offset ? handleProps.offset : -8;\n\n const bottomResizeHandleStyle: React.CSSProperties = {\n ...handleProps?.style,\n bottom: `${offset}px`,\n height: handleProps?.size || '16px',\n };\n\n return (\n <div\n className={clsx(styles['bottom-resize-handle'], 'bottom-resize-handle')}\n onMouseDown={resizeHandler}\n style={bottomResizeHandleStyle}\n >\n {handleProps?.children}\n </div>\n );\n}\n"],"names":["BottomResizeHandle","targetRef","handleProps","onHeightResize","onHeightResizeEnd","resizeHandler","createVerticalResizeHandler","offset","bottomResizeHandleStyle","jsx","clsx","styles"],"mappings":";;;;AAaO,SAASA,EAAmB;AAAA,EACjC,WAAAC;AAAA,EACA,aAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,mBAAAC;AACF,GAA4B;AAC1B,QAAMC,IAAgBC;AAAA,IACpBL;AAAA,IACAE;AAAA,IACAC;AAAA,EAAA,GAEIG,IAASL,GAAa,SAASA,EAAY,SAAS,IAEpDM,IAA+C;AAAA,IACnD,GAAGN,GAAa;AAAA,IAChB,QAAQ,GAAGK,CAAM;AAAA,IACjB,QAAQL,GAAa,QAAQ;AAAA,EAAA;AAG/B,SACE,gBAAAO;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,EAAKC,EAAO,sBAAsB,GAAG,sBAAsB;AAAA,MACtE,aAAaN;AAAA,MACb,OAAOG;AAAA,MAEN,UAAAN,GAAa;AAAA,IAAA;AAAA,EAAA;AAGpB;"}
@@ -1,21 +1,21 @@
1
- import { jsxs as h, jsx as t } from "react/jsx-runtime";
1
+ import { jsxs as h, jsx as a } from "react/jsx-runtime";
2
2
  import "../../utils/focus_redirect.js";
3
3
  import "../../utils/click_away_listener.js";
4
4
  import "../../utils/scroll_away_listener.js";
5
5
  import O, { useRef as oo } from "react";
6
6
  import { useForkRef as ro } from "../../utils/hooks/use_fork_ref.js";
7
7
  import "../../utils/hooks/use_resize_observer.js";
8
- import { LeftResizeHandle as ao } from "./left_resize_handle.js";
9
- import { RightResizeHandle as to } from "./right_resize_handle.js";
8
+ import { LeftResizeHandle as to } from "./left_resize_handle.js";
9
+ import { RightResizeHandle as ao } from "./right_resize_handle.js";
10
10
  import { BottomResizeHandle as eo } from "./bottom_resize_handle.js";
11
- import { EndResizeHandle as so } from "./end_resize_handle.js";
12
- import { StartResizeHandle as fo } from "./start_resize_handle.js";
11
+ import { EndResizeHandle as fo } from "./end_resize_handle.js";
12
+ import { StartResizeHandle as so } from "./start_resize_handle.js";
13
13
  import { TopResizeHandle as lo } from "./top_resize_handle.js";
14
- import mo from "classnames";
14
+ import { clsx as mo } from "clsx";
15
15
  import { isCustomSizeProp as y } from "../utils/isCustomSizeProp.js";
16
16
  import { removeUndefinedProperties as no } from "../utils/remove_undefined_properties.js";
17
17
  import { s as k } from "../../stack.module-CBV1f12Z.js";
18
- const Yo = O.forwardRef(function({
18
+ const _o = O.forwardRef(function({
19
19
  style: v,
20
20
  className: P,
21
21
  as: H = "div",
@@ -23,14 +23,14 @@ const Yo = O.forwardRef(function({
23
23
  width: r = "default",
24
24
  minWidth: b,
25
25
  maxWidth: j,
26
- height: a = "default",
26
+ height: t = "default",
27
27
  minHeight: w,
28
- maxHeight: N,
29
- zIndex: Y,
30
- padding: _,
31
- paddingInline: A,
32
- paddingBlock: B,
33
- margin: C,
28
+ maxHeight: Y,
29
+ zIndex: _,
30
+ padding: A,
31
+ paddingInline: B,
32
+ paddingBlock: C,
33
+ margin: N,
34
34
  marginBlock: U,
35
35
  marginInline: q,
36
36
  marginInlineStart: D,
@@ -40,7 +40,7 @@ const Yo = O.forwardRef(function({
40
40
  overflow: K,
41
41
  overflowX: M,
42
42
  overflowY: Q,
43
- enableResizeOnTop: f = !1,
43
+ enableResizeOnTop: s = !1,
44
44
  enableResizeOnEnd: l = !1,
45
45
  enableResizeOnBottom: m = !1,
46
46
  enableResizeOnStart: n = !1,
@@ -48,25 +48,25 @@ const Yo = O.forwardRef(function({
48
48
  enableResizeOnRight: p = !1,
49
49
  onWidthResize: e,
50
50
  onHeightResize: d,
51
- onWidthResizeEnd: s,
51
+ onWidthResizeEnd: f,
52
52
  onHeightResizeEnd: u,
53
53
  horizontalHandleProps: x,
54
54
  verticalHandleProps: i,
55
55
  ...X
56
56
  }, Z) {
57
- const $ = H, o = oo(null), L = ro(Z, o), R = l || n || c || p, T = m || f, z = R, E = T, g = z && r === "flex", S = E && a === "flex", F = !g && !S && (r === "flex" || a === "flex");
58
- g && (r = "100%", console.warn("You cannot have a resizable box and flex simultaneously")), S && (a = "auto", console.warn("You cannot have a resizable box and flex simultaneously"));
57
+ const $ = H, o = oo(null), L = ro(Z, o), R = l || n || c || p, T = m || s, z = R, E = T, g = z && r === "flex", S = E && t === "flex", F = !g && !S && (r === "flex" || t === "flex");
58
+ g && (r = "100%", console.warn("You cannot have a resizable box and flex simultaneously")), S && (t = "auto", console.warn("You cannot have a resizable box and flex simultaneously"));
59
59
  const W = {
60
60
  width: y(r) ? void 0 : r,
61
61
  minWidth: b,
62
62
  maxWidth: j,
63
- height: y(a) ? void 0 : a,
63
+ height: y(t) ? void 0 : t,
64
64
  minHeight: w,
65
- maxHeight: N,
66
- padding: _,
67
- paddingInline: A,
68
- paddingBlock: B,
69
- margin: C,
65
+ maxHeight: Y,
66
+ padding: A,
67
+ paddingInline: B,
68
+ paddingBlock: C,
69
+ margin: N,
70
70
  marginBlock: U,
71
71
  marginInline: q,
72
72
  marginInlineStart: D,
@@ -76,18 +76,18 @@ const Yo = O.forwardRef(function({
76
76
  overflow: K,
77
77
  overflowX: M,
78
78
  overflowY: Q,
79
- zIndex: Y
79
+ zIndex: _
80
80
  };
81
81
  return /* @__PURE__ */ h(
82
82
  $,
83
83
  {
84
84
  "data-enabled-resize-on-start": String(n),
85
85
  "data-enabled-resize-on-end": String(l),
86
- "data-enabled-resize-on-top": String(f),
86
+ "data-enabled-resize-on-top": String(s),
87
87
  "data-enabled-resize-on-bottom": String(m),
88
88
  "data_enabled-resize-on-left": String(c),
89
89
  "data_enabled-resize-on-right": String(p),
90
- "data-height": a,
90
+ "data-height": t,
91
91
  "data-width": r,
92
92
  ref: L,
93
93
  style: {
@@ -104,7 +104,7 @@ const Yo = O.forwardRef(function({
104
104
  ...X,
105
105
  children: [
106
106
  V,
107
- f && /* @__PURE__ */ t(
107
+ s && /* @__PURE__ */ a(
108
108
  lo,
109
109
  {
110
110
  onHeightResize: d,
@@ -113,7 +113,7 @@ const Yo = O.forwardRef(function({
113
113
  handleProps: x
114
114
  }
115
115
  ),
116
- m && /* @__PURE__ */ t(
116
+ m && /* @__PURE__ */ a(
117
117
  eo,
118
118
  {
119
119
  onHeightResize: d,
@@ -122,38 +122,38 @@ const Yo = O.forwardRef(function({
122
122
  handleProps: i
123
123
  }
124
124
  ),
125
- n && /* @__PURE__ */ t(
126
- fo,
125
+ n && /* @__PURE__ */ a(
126
+ so,
127
127
  {
128
128
  onWidthResize: e,
129
- onWidthResizeEnd: s,
129
+ onWidthResizeEnd: f,
130
130
  targetRef: o,
131
131
  handleProps: x
132
132
  }
133
133
  ),
134
- l && /* @__PURE__ */ t(
135
- so,
134
+ l && /* @__PURE__ */ a(
135
+ fo,
136
136
  {
137
137
  onWidthResize: e,
138
- onWidthResizeEnd: s,
138
+ onWidthResizeEnd: f,
139
139
  targetRef: o,
140
140
  handleProps: x
141
141
  }
142
142
  ),
143
- c && /* @__PURE__ */ t(
144
- ao,
143
+ c && /* @__PURE__ */ a(
144
+ to,
145
145
  {
146
146
  onWidthResize: e,
147
- onWidthResizeEnd: s,
147
+ onWidthResizeEnd: f,
148
148
  targetRef: o,
149
149
  handleProps: i
150
150
  }
151
151
  ),
152
- p && /* @__PURE__ */ t(
153
- to,
152
+ p && /* @__PURE__ */ a(
153
+ ao,
154
154
  {
155
155
  onWidthResize: e,
156
- onWidthResizeEnd: s,
156
+ onWidthResizeEnd: f,
157
157
  targetRef: o,
158
158
  handleProps: i
159
159
  }
@@ -163,6 +163,6 @@ const Yo = O.forwardRef(function({
163
163
  );
164
164
  });
165
165
  export {
166
- Yo as Box
166
+ _o as Box
167
167
  };
168
168
  //# sourceMappingURL=box.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"box.js","sources":["../../../src/stacks/box/box.tsx"],"sourcesContent":["import { useForkRef } from '../../utils/index.js';\nimport React, { CSSProperties, HTMLAttributes, useRef } from 'react';\nimport { LeftResizeHandle } from './left_resize_handle.js';\nimport { RightResizeHandle } from './right_resize_handle.js';\nimport { BottomResizeHandle } from './bottom_resize_handle.js';\nimport { EndResizeHandle } from './end_resize_handle.js';\nimport { StartResizeHandle } from './start_resize_handle.js';\nimport { TopResizeHandle } from './top_resize_handle.js';\nimport classNames from 'classnames';\nimport { isCustomSizeProp } from '../utils/isCustomSizeProp.js';\nimport { removeUndefinedProperties } from '../utils/remove_undefined_properties.js';\nimport styles from '../stack.module.css';\nimport { HandleProps } from './handle_props.js';\n\nexport interface BoxProps extends HTMLAttributes<HTMLElement> {\n as?: string;\n style?: React.CSSProperties;\n className?: string;\n children?: React.ReactNode;\n width?: 'default' | 'flex' | 'auto' | string | number;\n minWidth?: CSSProperties['minWidth'];\n maxWidth?: CSSProperties['maxWidth'];\n height?: 'default' | 'flex' | 'auto' | string | number;\n minHeight?: CSSProperties['minHeight'];\n maxHeight?: CSSProperties['maxHeight'];\n zIndex?: number;\n padding?: CSSProperties['padding'];\n paddingInline?: CSSProperties['paddingInline'];\n paddingBlock?: CSSProperties['paddingBlock'];\n margin?: CSSProperties['margin'];\n marginBlock?: CSSProperties['marginBlock'];\n marginInline?: CSSProperties['marginInline'];\n marginInlineStart?: CSSProperties['marginInlineStart'];\n marginInlineEnd?: CSSProperties['marginInlineEnd'];\n marginTop?: CSSProperties['marginTop'];\n marginBottom?: CSSProperties['marginBottom'];\n overflow?: React.CSSProperties['overflow'];\n overflowX?: React.CSSProperties['overflowX'];\n overflowY?: React.CSSProperties['overflowY'];\n enableResizeOnTop?: boolean;\n enableResizeOnEnd?: boolean;\n enableResizeOnBottom?: boolean;\n enableResizeOnStart?: boolean;\n enableResizeOnLeft?: boolean;\n enableResizeOnRight?: boolean;\n horizontalHandleProps?: HandleProps;\n verticalHandleProps?: HandleProps;\n onWidthResize?: (width: number) => void;\n onHeightResize?: (width: number) => void;\n onWidthResizeEnd?: (width: number) => void;\n onHeightResizeEnd?: (width: number) => void;\n}\n\nexport const Box = React.forwardRef<HTMLElement, BoxProps>(function Box(\n {\n style,\n className,\n as = 'div',\n children,\n width = 'default',\n minWidth,\n maxWidth,\n height = 'default',\n minHeight,\n maxHeight,\n zIndex,\n padding,\n paddingInline,\n paddingBlock,\n margin,\n marginBlock,\n marginInline,\n marginInlineStart,\n marginInlineEnd,\n marginTop,\n marginBottom,\n overflow,\n overflowX,\n overflowY,\n enableResizeOnTop = false,\n enableResizeOnEnd = false,\n enableResizeOnBottom = false,\n enableResizeOnStart = false,\n enableResizeOnLeft = false,\n enableResizeOnRight = false,\n onWidthResize,\n onHeightResize,\n onWidthResizeEnd,\n onHeightResizeEnd,\n horizontalHandleProps,\n verticalHandleProps,\n ...otherProps\n }: BoxProps,\n ref\n) {\n const As = as as React.ElementType;\n const boxRef = useRef<HTMLElement | null>(null);\n const forkedRef = useForkRef(ref, boxRef);\n const hasHorizontalResize =\n enableResizeOnEnd || enableResizeOnStart || enableResizeOnLeft || enableResizeOnRight;\n const hasVerticalResize = enableResizeOnBottom || enableResizeOnTop;\n\n const cannotHorizontalFlex = hasHorizontalResize;\n const cannotVerticalFlex = hasVerticalResize;\n const warnHorizontalFlex = cannotHorizontalFlex && width === 'flex';\n const warnVerticalFlex = cannotVerticalFlex && height === 'flex';\n const isFlexing =\n !warnHorizontalFlex && !warnVerticalFlex && (width === 'flex' || height === 'flex');\n\n if (warnHorizontalFlex) {\n width = '100%';\n // biome-ignore lint/suspicious/noConsole: Need to warn the developer\n console.warn('You cannot have a resizable box and flex simultaneously');\n }\n\n if (warnVerticalFlex) {\n height = 'auto';\n // biome-ignore lint/suspicious/noConsole: Need to warn the developer\n console.warn('You cannot have a resizable box and flex simultaneously');\n }\n\n const propStyles = {\n width: !isCustomSizeProp(width) ? width : undefined,\n minWidth,\n maxWidth,\n height: !isCustomSizeProp(height) ? height : undefined,\n minHeight,\n maxHeight,\n padding,\n paddingInline,\n paddingBlock,\n margin,\n marginBlock,\n marginInline,\n marginInlineStart,\n marginInlineEnd,\n marginTop,\n marginBottom,\n overflow,\n overflowX,\n overflowY,\n zIndex,\n };\n\n return (\n <As\n data-enabled-resize-on-start={String(enableResizeOnStart)}\n data-enabled-resize-on-end={String(enableResizeOnEnd)}\n data-enabled-resize-on-top={String(enableResizeOnTop)}\n data-enabled-resize-on-bottom={String(enableResizeOnBottom)}\n data_enabled-resize-on-left={String(enableResizeOnLeft)}\n data_enabled-resize-on-right={String(enableResizeOnRight)}\n data-height={height}\n data-width={width}\n ref={forkedRef}\n style={{\n ...removeUndefinedProperties(propStyles),\n ...style,\n }}\n className={classNames(\n styles['box'],\n className,\n isFlexing && 'stack-flex',\n isFlexing && styles['stack-flex'],\n 'box'\n )}\n {...otherProps}\n >\n {children}\n {enableResizeOnTop && (\n <TopResizeHandle\n onHeightResize={onHeightResize}\n onHeightResizeEnd={onHeightResizeEnd}\n targetRef={boxRef}\n handleProps={horizontalHandleProps}\n />\n )}\n {enableResizeOnBottom && (\n <BottomResizeHandle\n onHeightResize={onHeightResize}\n onHeightResizeEnd={onHeightResizeEnd}\n targetRef={boxRef}\n handleProps={verticalHandleProps}\n />\n )}\n {enableResizeOnStart && (\n <StartResizeHandle\n onWidthResize={onWidthResize}\n onWidthResizeEnd={onWidthResizeEnd}\n targetRef={boxRef}\n handleProps={horizontalHandleProps}\n />\n )}\n {enableResizeOnEnd && (\n <EndResizeHandle\n onWidthResize={onWidthResize}\n onWidthResizeEnd={onWidthResizeEnd}\n targetRef={boxRef}\n handleProps={horizontalHandleProps}\n />\n )}\n {enableResizeOnLeft && (\n <LeftResizeHandle\n onWidthResize={onWidthResize}\n onWidthResizeEnd={onWidthResizeEnd}\n targetRef={boxRef}\n handleProps={verticalHandleProps}\n />\n )}\n {enableResizeOnRight && (\n <RightResizeHandle\n onWidthResize={onWidthResize}\n onWidthResizeEnd={onWidthResizeEnd}\n targetRef={boxRef}\n handleProps={verticalHandleProps}\n />\n )}\n </As>\n );\n});\n"],"names":["Box","React","style","className","as","children","width","minWidth","maxWidth","height","minHeight","maxHeight","zIndex","padding","paddingInline","paddingBlock","margin","marginBlock","marginInline","marginInlineStart","marginInlineEnd","marginTop","marginBottom","overflow","overflowX","overflowY","enableResizeOnTop","enableResizeOnEnd","enableResizeOnBottom","enableResizeOnStart","enableResizeOnLeft","enableResizeOnRight","onWidthResize","onHeightResize","onWidthResizeEnd","onHeightResizeEnd","horizontalHandleProps","verticalHandleProps","otherProps","ref","As","boxRef","useRef","forkedRef","useForkRef","hasHorizontalResize","hasVerticalResize","cannotHorizontalFlex","cannotVerticalFlex","warnHorizontalFlex","warnVerticalFlex","isFlexing","propStyles","isCustomSizeProp","jsxs","removeUndefinedProperties","classNames","styles","jsx","TopResizeHandle","BottomResizeHandle","StartResizeHandle","EndResizeHandle","LeftResizeHandle","RightResizeHandle"],"mappings":"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"}
1
+ {"version":3,"file":"box.js","sources":["../../../src/stacks/box/box.tsx"],"sourcesContent":["import { useForkRef } from '../../utils/index.js';\nimport React, { CSSProperties, HTMLAttributes, useRef } from 'react';\nimport { LeftResizeHandle } from './left_resize_handle.js';\nimport { RightResizeHandle } from './right_resize_handle.js';\nimport { BottomResizeHandle } from './bottom_resize_handle.js';\nimport { EndResizeHandle } from './end_resize_handle.js';\nimport { StartResizeHandle } from './start_resize_handle.js';\nimport { TopResizeHandle } from './top_resize_handle.js';\nimport { clsx } from 'clsx';\nimport { isCustomSizeProp } from '../utils/isCustomSizeProp.js';\nimport { removeUndefinedProperties } from '../utils/remove_undefined_properties.js';\nimport styles from '../stack.module.css';\nimport { HandleProps } from './handle_props.js';\n\nexport interface BoxProps extends HTMLAttributes<HTMLElement> {\n as?: string;\n style?: React.CSSProperties;\n className?: string;\n children?: React.ReactNode;\n width?: 'default' | 'flex' | 'auto' | string | number;\n minWidth?: CSSProperties['minWidth'];\n maxWidth?: CSSProperties['maxWidth'];\n height?: 'default' | 'flex' | 'auto' | string | number;\n minHeight?: CSSProperties['minHeight'];\n maxHeight?: CSSProperties['maxHeight'];\n zIndex?: number;\n padding?: CSSProperties['padding'];\n paddingInline?: CSSProperties['paddingInline'];\n paddingBlock?: CSSProperties['paddingBlock'];\n margin?: CSSProperties['margin'];\n marginBlock?: CSSProperties['marginBlock'];\n marginInline?: CSSProperties['marginInline'];\n marginInlineStart?: CSSProperties['marginInlineStart'];\n marginInlineEnd?: CSSProperties['marginInlineEnd'];\n marginTop?: CSSProperties['marginTop'];\n marginBottom?: CSSProperties['marginBottom'];\n overflow?: React.CSSProperties['overflow'];\n overflowX?: React.CSSProperties['overflowX'];\n overflowY?: React.CSSProperties['overflowY'];\n enableResizeOnTop?: boolean;\n enableResizeOnEnd?: boolean;\n enableResizeOnBottom?: boolean;\n enableResizeOnStart?: boolean;\n enableResizeOnLeft?: boolean;\n enableResizeOnRight?: boolean;\n horizontalHandleProps?: HandleProps;\n verticalHandleProps?: HandleProps;\n onWidthResize?: (width: number) => void;\n onHeightResize?: (width: number) => void;\n onWidthResizeEnd?: (width: number) => void;\n onHeightResizeEnd?: (width: number) => void;\n}\n\nexport const Box = React.forwardRef<HTMLElement, BoxProps>(function Box(\n {\n style,\n className,\n as = 'div',\n children,\n width = 'default',\n minWidth,\n maxWidth,\n height = 'default',\n minHeight,\n maxHeight,\n zIndex,\n padding,\n paddingInline,\n paddingBlock,\n margin,\n marginBlock,\n marginInline,\n marginInlineStart,\n marginInlineEnd,\n marginTop,\n marginBottom,\n overflow,\n overflowX,\n overflowY,\n enableResizeOnTop = false,\n enableResizeOnEnd = false,\n enableResizeOnBottom = false,\n enableResizeOnStart = false,\n enableResizeOnLeft = false,\n enableResizeOnRight = false,\n onWidthResize,\n onHeightResize,\n onWidthResizeEnd,\n onHeightResizeEnd,\n horizontalHandleProps,\n verticalHandleProps,\n ...otherProps\n }: BoxProps,\n ref\n) {\n const As = as as React.ElementType;\n const boxRef = useRef<HTMLElement | null>(null);\n const forkedRef = useForkRef(ref, boxRef);\n const hasHorizontalResize =\n enableResizeOnEnd || enableResizeOnStart || enableResizeOnLeft || enableResizeOnRight;\n const hasVerticalResize = enableResizeOnBottom || enableResizeOnTop;\n\n const cannotHorizontalFlex = hasHorizontalResize;\n const cannotVerticalFlex = hasVerticalResize;\n const warnHorizontalFlex = cannotHorizontalFlex && width === 'flex';\n const warnVerticalFlex = cannotVerticalFlex && height === 'flex';\n const isFlexing =\n !warnHorizontalFlex && !warnVerticalFlex && (width === 'flex' || height === 'flex');\n\n if (warnHorizontalFlex) {\n width = '100%';\n // biome-ignore lint/suspicious/noConsole: Need to warn the developer\n console.warn('You cannot have a resizable box and flex simultaneously');\n }\n\n if (warnVerticalFlex) {\n height = 'auto';\n // biome-ignore lint/suspicious/noConsole: Need to warn the developer\n console.warn('You cannot have a resizable box and flex simultaneously');\n }\n\n const propStyles = {\n width: !isCustomSizeProp(width) ? width : undefined,\n minWidth,\n maxWidth,\n height: !isCustomSizeProp(height) ? height : undefined,\n minHeight,\n maxHeight,\n padding,\n paddingInline,\n paddingBlock,\n margin,\n marginBlock,\n marginInline,\n marginInlineStart,\n marginInlineEnd,\n marginTop,\n marginBottom,\n overflow,\n overflowX,\n overflowY,\n zIndex,\n };\n\n return (\n <As\n data-enabled-resize-on-start={String(enableResizeOnStart)}\n data-enabled-resize-on-end={String(enableResizeOnEnd)}\n data-enabled-resize-on-top={String(enableResizeOnTop)}\n data-enabled-resize-on-bottom={String(enableResizeOnBottom)}\n data_enabled-resize-on-left={String(enableResizeOnLeft)}\n data_enabled-resize-on-right={String(enableResizeOnRight)}\n data-height={height}\n data-width={width}\n ref={forkedRef}\n style={{\n ...removeUndefinedProperties(propStyles),\n ...style,\n }}\n className={clsx(\n styles['box'],\n className,\n isFlexing && 'stack-flex',\n isFlexing && styles['stack-flex'],\n 'box'\n )}\n {...otherProps}\n >\n {children}\n {enableResizeOnTop && (\n <TopResizeHandle\n onHeightResize={onHeightResize}\n onHeightResizeEnd={onHeightResizeEnd}\n targetRef={boxRef}\n handleProps={horizontalHandleProps}\n />\n )}\n {enableResizeOnBottom && (\n <BottomResizeHandle\n onHeightResize={onHeightResize}\n onHeightResizeEnd={onHeightResizeEnd}\n targetRef={boxRef}\n handleProps={verticalHandleProps}\n />\n )}\n {enableResizeOnStart && (\n <StartResizeHandle\n onWidthResize={onWidthResize}\n onWidthResizeEnd={onWidthResizeEnd}\n targetRef={boxRef}\n handleProps={horizontalHandleProps}\n />\n )}\n {enableResizeOnEnd && (\n <EndResizeHandle\n onWidthResize={onWidthResize}\n onWidthResizeEnd={onWidthResizeEnd}\n targetRef={boxRef}\n handleProps={horizontalHandleProps}\n />\n )}\n {enableResizeOnLeft && (\n <LeftResizeHandle\n onWidthResize={onWidthResize}\n onWidthResizeEnd={onWidthResizeEnd}\n targetRef={boxRef}\n handleProps={verticalHandleProps}\n />\n )}\n {enableResizeOnRight && (\n <RightResizeHandle\n onWidthResize={onWidthResize}\n onWidthResizeEnd={onWidthResizeEnd}\n targetRef={boxRef}\n handleProps={verticalHandleProps}\n />\n )}\n </As>\n );\n});\n"],"names":["Box","React","style","className","as","children","width","minWidth","maxWidth","height","minHeight","maxHeight","zIndex","padding","paddingInline","paddingBlock","margin","marginBlock","marginInline","marginInlineStart","marginInlineEnd","marginTop","marginBottom","overflow","overflowX","overflowY","enableResizeOnTop","enableResizeOnEnd","enableResizeOnBottom","enableResizeOnStart","enableResizeOnLeft","enableResizeOnRight","onWidthResize","onHeightResize","onWidthResizeEnd","onHeightResizeEnd","horizontalHandleProps","verticalHandleProps","otherProps","ref","As","boxRef","useRef","forkedRef","useForkRef","hasHorizontalResize","hasVerticalResize","cannotHorizontalFlex","cannotVerticalFlex","warnHorizontalFlex","warnVerticalFlex","isFlexing","propStyles","isCustomSizeProp","jsxs","removeUndefinedProperties","clsx","styles","jsx","TopResizeHandle","BottomResizeHandle","StartResizeHandle","EndResizeHandle","LeftResizeHandle","RightResizeHandle"],"mappings":"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"}
@@ -1,16 +1,16 @@
1
1
  import { jsx as d } from "react/jsx-runtime";
2
2
  import { createHorizontalResizeHandler as l } from "./resize_handlers.js";
3
- import a from "classnames";
4
- import '../../end_resize_handle.css';const c = "_end-resize-handle_1c5e6ba", f = { "end-resize-handle": c };
3
+ import { clsx as c } from "clsx";
4
+ import '../../end_resize_handle.css';const f = "_end-resize-handle_1c5e6ba", z = { "end-resize-handle": f };
5
5
  function x({
6
- targetRef: s,
6
+ targetRef: n,
7
7
  handleProps: e,
8
- onWidthResize: n,
8
+ onWidthResize: s,
9
9
  onWidthResizeEnd: t
10
10
  }) {
11
11
  const i = l(
12
- s,
13
12
  n,
13
+ s,
14
14
  t
15
15
  ), o = e?.offset ? e.offset : -8, r = {
16
16
  ...e?.style,
@@ -20,7 +20,7 @@ function x({
20
20
  return /* @__PURE__ */ d(
21
21
  "div",
22
22
  {
23
- className: a(f["end-resize-handle"], "end-resize-handle"),
23
+ className: c(z["end-resize-handle"], "end-resize-handle"),
24
24
  onMouseDown: i,
25
25
  style: r,
26
26
  children: e?.children
@@ -1 +1 @@
1
- {"version":3,"file":"end_resize_handle.js","sources":["../../../src/stacks/box/end_resize_handle.tsx"],"sourcesContent":["import React from 'react';\nimport styles from './end_resize_handle.module.css';\nimport { createHorizontalResizeHandler } from './resize_handlers.js';\nimport classNames from 'classnames';\nimport type { HandleProps } from './handle_props.js';\n\nexport interface EndResizeHandleProps {\n targetRef: React.MutableRefObject<HTMLElement | null>;\n handleProps?: HandleProps;\n onWidthResize?: (value: number) => void;\n onWidthResizeEnd?: (value: number) => void;\n}\n\nexport function EndResizeHandle({\n targetRef,\n handleProps,\n onWidthResize,\n onWidthResizeEnd,\n}: EndResizeHandleProps) {\n const resizeHandler = createHorizontalResizeHandler(\n targetRef,\n onWidthResize,\n onWidthResizeEnd\n );\n const offset = handleProps?.offset ? handleProps.offset : -8;\n\n const endResizeHandleStyle: any = {\n ...handleProps?.style,\n '--resize-offset': `${offset}px`,\n width: handleProps?.size || '16px',\n };\n\n return (\n <div\n className={classNames(styles['end-resize-handle'], 'end-resize-handle')}\n onMouseDown={resizeHandler}\n style={endResizeHandleStyle}\n >\n {handleProps?.children}\n </div>\n );\n}\n"],"names":["EndResizeHandle","targetRef","handleProps","onWidthResize","onWidthResizeEnd","resizeHandler","createHorizontalResizeHandler","offset","endResizeHandleStyle","jsx","classNames","styles"],"mappings":";;;;AAaO,SAASA,EAAgB;AAAA,EAC9B,WAAAC;AAAA,EACA,aAAAC;AAAA,EACA,eAAAC;AAAA,EACA,kBAAAC;AACF,GAAyB;AACvB,QAAMC,IAAgBC;AAAA,IACpBL;AAAA,IACAE;AAAA,IACAC;AAAA,EAAA,GAEIG,IAASL,GAAa,SAASA,EAAY,SAAS,IAEpDM,IAA4B;AAAA,IAChC,GAAGN,GAAa;AAAA,IAChB,mBAAmB,GAAGK,CAAM;AAAA,IAC5B,OAAOL,GAAa,QAAQ;AAAA,EAAA;AAG9B,SACE,gBAAAO;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,EAAWC,EAAO,mBAAmB,GAAG,mBAAmB;AAAA,MACtE,aAAaN;AAAA,MACb,OAAOG;AAAA,MAEN,UAAAN,GAAa;AAAA,IAAA;AAAA,EAAA;AAGpB;"}
1
+ {"version":3,"file":"end_resize_handle.js","sources":["../../../src/stacks/box/end_resize_handle.tsx"],"sourcesContent":["import React from 'react';\nimport styles from './end_resize_handle.module.css';\nimport { createHorizontalResizeHandler } from './resize_handlers.js';\nimport { clsx } from 'clsx';\nimport type { HandleProps } from './handle_props.js';\n\nexport interface EndResizeHandleProps {\n targetRef: React.MutableRefObject<HTMLElement | null>;\n handleProps?: HandleProps;\n onWidthResize?: (value: number) => void;\n onWidthResizeEnd?: (value: number) => void;\n}\n\nexport function EndResizeHandle({\n targetRef,\n handleProps,\n onWidthResize,\n onWidthResizeEnd,\n}: EndResizeHandleProps) {\n const resizeHandler = createHorizontalResizeHandler(\n targetRef,\n onWidthResize,\n onWidthResizeEnd\n );\n const offset = handleProps?.offset ? handleProps.offset : -8;\n\n const endResizeHandleStyle: any = {\n ...handleProps?.style,\n '--resize-offset': `${offset}px`,\n width: handleProps?.size || '16px',\n };\n\n return (\n <div\n className={clsx(styles['end-resize-handle'], 'end-resize-handle')}\n onMouseDown={resizeHandler}\n style={endResizeHandleStyle}\n >\n {handleProps?.children}\n </div>\n );\n}\n"],"names":["EndResizeHandle","targetRef","handleProps","onWidthResize","onWidthResizeEnd","resizeHandler","createHorizontalResizeHandler","offset","endResizeHandleStyle","jsx","clsx","styles"],"mappings":";;;;AAaO,SAASA,EAAgB;AAAA,EAC9B,WAAAC;AAAA,EACA,aAAAC;AAAA,EACA,eAAAC;AAAA,EACA,kBAAAC;AACF,GAAyB;AACvB,QAAMC,IAAgBC;AAAA,IACpBL;AAAA,IACAE;AAAA,IACAC;AAAA,EAAA,GAEIG,IAASL,GAAa,SAASA,EAAY,SAAS,IAEpDM,IAA4B;AAAA,IAChC,GAAGN,GAAa;AAAA,IAChB,mBAAmB,GAAGK,CAAM;AAAA,IAC5B,OAAOL,GAAa,QAAQ;AAAA,EAAA;AAG9B,SACE,gBAAAO;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,EAAKC,EAAO,mBAAmB,GAAG,mBAAmB;AAAA,MAChE,aAAaN;AAAA,MACb,OAAOG;AAAA,MAEN,UAAAN,GAAa;AAAA,IAAA;AAAA,EAAA;AAGpB;"}
@@ -1,7 +1,7 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
2
  import { createHorizontalResizeHandler as o } from "./resize_handlers.js";
3
- import a from "classnames";
4
- import '../../left_resize_handle.css';const z = "_left-resize-handle_215501a", c = { "left-resize-handle": z };
3
+ import { clsx as z } from "clsx";
4
+ import '../../left_resize_handle.css';const c = "_left-resize-handle_215501a", a = { "left-resize-handle": c };
5
5
  function u({
6
6
  targetRef: t,
7
7
  handleProps: e,
@@ -22,7 +22,7 @@ function u({
22
22
  return /* @__PURE__ */ n(
23
23
  "div",
24
24
  {
25
- className: a(c["left-resize-handle"], "left-resize-handle"),
25
+ className: z(a["left-resize-handle"], "left-resize-handle"),
26
26
  onMouseDown: l,
27
27
  style: r,
28
28
  children: e?.children
@@ -1 +1 @@
1
- {"version":3,"file":"left_resize_handle.js","sources":["../../../src/stacks/box/left_resize_handle.tsx"],"sourcesContent":["import React from 'react';\nimport { HandleProps } from './handle_props.js';\nimport styles from './left_resize_handle.module.css';\nimport { createHorizontalResizeHandler } from './resize_handlers.js';\nimport classNames from 'classnames';\n\nexport interface LeftResizeHandleProps {\n targetRef: React.MutableRefObject<HTMLElement | null>;\n handleProps?: HandleProps;\n onWidthResize?: (value: number) => void;\n onWidthResizeEnd?: (value: number) => void;\n}\nexport function LeftResizeHandle({\n targetRef,\n handleProps,\n onWidthResize,\n onWidthResizeEnd,\n}: LeftResizeHandleProps) {\n const resizeHandler = createHorizontalResizeHandler(\n targetRef,\n onWidthResize,\n onWidthResizeEnd,\n true,\n true\n );\n const offset = handleProps?.offset ? handleProps.offset : -8;\n\n const leftResizeHandleStyle: any = {\n ...handleProps?.style,\n '--resize-offset': `${offset}px`,\n width: handleProps?.size || '16px',\n };\n\n return (\n <div\n className={classNames(styles['left-resize-handle'], 'left-resize-handle')}\n onMouseDown={resizeHandler}\n style={leftResizeHandleStyle}\n >\n {handleProps?.children}\n </div>\n );\n}\n"],"names":["LeftResizeHandle","targetRef","handleProps","onWidthResize","onWidthResizeEnd","resizeHandler","createHorizontalResizeHandler","offset","leftResizeHandleStyle","jsx","classNames","styles"],"mappings":";;;;AAYO,SAASA,EAAiB;AAAA,EAC/B,WAAAC;AAAA,EACA,aAAAC;AAAA,EACA,eAAAC;AAAA,EACA,kBAAAC;AACF,GAA0B;AACxB,QAAMC,IAAgBC;AAAA,IACpBL;AAAA,IACAE;AAAA,IACAC;AAAA,IACA;AAAA,IACA;AAAA,EAAA,GAEIG,IAASL,GAAa,SAASA,EAAY,SAAS,IAEpDM,IAA6B;AAAA,IACjC,GAAGN,GAAa;AAAA,IAChB,mBAAmB,GAAGK,CAAM;AAAA,IAC5B,OAAOL,GAAa,QAAQ;AAAA,EAAA;AAG9B,SACE,gBAAAO;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,EAAWC,EAAO,oBAAoB,GAAG,oBAAoB;AAAA,MACxE,aAAaN;AAAA,MACb,OAAOG;AAAA,MAEN,UAAAN,GAAa;AAAA,IAAA;AAAA,EAAA;AAGpB;"}
1
+ {"version":3,"file":"left_resize_handle.js","sources":["../../../src/stacks/box/left_resize_handle.tsx"],"sourcesContent":["import React from 'react';\nimport { HandleProps } from './handle_props.js';\nimport styles from './left_resize_handle.module.css';\nimport { createHorizontalResizeHandler } from './resize_handlers.js';\nimport { clsx } from 'clsx';\n\nexport interface LeftResizeHandleProps {\n targetRef: React.MutableRefObject<HTMLElement | null>;\n handleProps?: HandleProps;\n onWidthResize?: (value: number) => void;\n onWidthResizeEnd?: (value: number) => void;\n}\nexport function LeftResizeHandle({\n targetRef,\n handleProps,\n onWidthResize,\n onWidthResizeEnd,\n}: LeftResizeHandleProps) {\n const resizeHandler = createHorizontalResizeHandler(\n targetRef,\n onWidthResize,\n onWidthResizeEnd,\n true,\n true\n );\n const offset = handleProps?.offset ? handleProps.offset : -8;\n\n const leftResizeHandleStyle: any = {\n ...handleProps?.style,\n '--resize-offset': `${offset}px`,\n width: handleProps?.size || '16px',\n };\n\n return (\n <div\n className={clsx(styles['left-resize-handle'], 'left-resize-handle')}\n onMouseDown={resizeHandler}\n style={leftResizeHandleStyle}\n >\n {handleProps?.children}\n </div>\n );\n}\n"],"names":["LeftResizeHandle","targetRef","handleProps","onWidthResize","onWidthResizeEnd","resizeHandler","createHorizontalResizeHandler","offset","leftResizeHandleStyle","jsx","clsx","styles"],"mappings":";;;;AAYO,SAASA,EAAiB;AAAA,EAC/B,WAAAC;AAAA,EACA,aAAAC;AAAA,EACA,eAAAC;AAAA,EACA,kBAAAC;AACF,GAA0B;AACxB,QAAMC,IAAgBC;AAAA,IACpBL;AAAA,IACAE;AAAA,IACAC;AAAA,IACA;AAAA,IACA;AAAA,EAAA,GAEIG,IAASL,GAAa,SAASA,EAAY,SAAS,IAEpDM,IAA6B;AAAA,IACjC,GAAGN,GAAa;AAAA,IAChB,mBAAmB,GAAGK,CAAM;AAAA,IAC5B,OAAOL,GAAa,QAAQ;AAAA,EAAA;AAG9B,SACE,gBAAAO;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,EAAKC,EAAO,oBAAoB,GAAG,oBAAoB;AAAA,MAClE,aAAaN;AAAA,MACb,OAAOG;AAAA,MAEN,UAAAN,GAAa;AAAA,IAAA;AAAA,EAAA;AAGpB;"}
@@ -1,17 +1,17 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
2
  import { createHorizontalResizeHandler as f } from "./resize_handlers.js";
3
- import a from "classnames";
4
- import '../../right_resize_handle.css';const z = "_right-resize-handle_7f232b9", c = { "right-resize-handle": z };
5
- function g({
3
+ import { clsx as z } from "clsx";
4
+ import '../../right_resize_handle.css';const c = "_right-resize-handle_7f232b9", a = { "right-resize-handle": c };
5
+ function m({
6
6
  targetRef: t,
7
7
  handleProps: e,
8
- onWidthResize: s,
9
- onWidthResizeEnd: i
8
+ onWidthResize: i,
9
+ onWidthResizeEnd: s
10
10
  }) {
11
11
  const r = f(
12
12
  t,
13
- s,
14
13
  i,
14
+ s,
15
15
  !1,
16
16
  !0
17
17
  ), n = e?.offset ? e.offset : -8, o = {
@@ -22,7 +22,7 @@ function g({
22
22
  return /* @__PURE__ */ l(
23
23
  "div",
24
24
  {
25
- className: a(c["right-resize-handle"], "right-resize-handle"),
25
+ className: z(a["right-resize-handle"], "right-resize-handle"),
26
26
  onMouseDown: r,
27
27
  style: o,
28
28
  children: e?.children
@@ -30,6 +30,6 @@ function g({
30
30
  );
31
31
  }
32
32
  export {
33
- g as RightResizeHandle
33
+ m as RightResizeHandle
34
34
  };
35
35
  //# sourceMappingURL=right_resize_handle.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"right_resize_handle.js","sources":["../../../src/stacks/box/right_resize_handle.tsx"],"sourcesContent":["import React from 'react';\nimport { HandleProps } from './handle_props.js';\nimport { createHorizontalResizeHandler } from './resize_handlers.js';\nimport styles from './right_resize_handle.module.css';\nimport classNames from 'classnames';\n\nexport interface RightResizeHandleProps {\n targetRef: React.MutableRefObject<HTMLElement | null>;\n handleProps?: HandleProps;\n onWidthResize?: (value: number) => void;\n onWidthResizeEnd?: (value: number) => void;\n}\nexport function RightResizeHandle({\n targetRef,\n handleProps,\n onWidthResize,\n onWidthResizeEnd,\n}: RightResizeHandleProps) {\n const resizeHandler = createHorizontalResizeHandler(\n targetRef,\n onWidthResize,\n onWidthResizeEnd,\n false,\n true\n );\n const offset = handleProps?.offset ? handleProps.offset : -8;\n\n const rightResizeHandleStyle: any = {\n ...handleProps?.style,\n '--resize-offset': `${offset}px`,\n width: handleProps?.size || '16px',\n };\n\n return (\n <div\n className={classNames(styles['right-resize-handle'], 'right-resize-handle')}\n onMouseDown={resizeHandler}\n style={rightResizeHandleStyle}\n >\n {handleProps?.children}\n </div>\n );\n}\n"],"names":["RightResizeHandle","targetRef","handleProps","onWidthResize","onWidthResizeEnd","resizeHandler","createHorizontalResizeHandler","offset","rightResizeHandleStyle","jsx","classNames","styles"],"mappings":";;;;AAYO,SAASA,EAAkB;AAAA,EAChC,WAAAC;AAAA,EACA,aAAAC;AAAA,EACA,eAAAC;AAAA,EACA,kBAAAC;AACF,GAA2B;AACzB,QAAMC,IAAgBC;AAAA,IACpBL;AAAA,IACAE;AAAA,IACAC;AAAA,IACA;AAAA,IACA;AAAA,EAAA,GAEIG,IAASL,GAAa,SAASA,EAAY,SAAS,IAEpDM,IAA8B;AAAA,IAClC,GAAGN,GAAa;AAAA,IAChB,mBAAmB,GAAGK,CAAM;AAAA,IAC5B,OAAOL,GAAa,QAAQ;AAAA,EAAA;AAG9B,SACE,gBAAAO;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,EAAWC,EAAO,qBAAqB,GAAG,qBAAqB;AAAA,MAC1E,aAAaN;AAAA,MACb,OAAOG;AAAA,MAEN,UAAAN,GAAa;AAAA,IAAA;AAAA,EAAA;AAGpB;"}
1
+ {"version":3,"file":"right_resize_handle.js","sources":["../../../src/stacks/box/right_resize_handle.tsx"],"sourcesContent":["import React from 'react';\nimport { HandleProps } from './handle_props.js';\nimport { createHorizontalResizeHandler } from './resize_handlers.js';\nimport styles from './right_resize_handle.module.css';\nimport { clsx } from 'clsx';\n\nexport interface RightResizeHandleProps {\n targetRef: React.MutableRefObject<HTMLElement | null>;\n handleProps?: HandleProps;\n onWidthResize?: (value: number) => void;\n onWidthResizeEnd?: (value: number) => void;\n}\nexport function RightResizeHandle({\n targetRef,\n handleProps,\n onWidthResize,\n onWidthResizeEnd,\n}: RightResizeHandleProps) {\n const resizeHandler = createHorizontalResizeHandler(\n targetRef,\n onWidthResize,\n onWidthResizeEnd,\n false,\n true\n );\n const offset = handleProps?.offset ? handleProps.offset : -8;\n\n const rightResizeHandleStyle: any = {\n ...handleProps?.style,\n '--resize-offset': `${offset}px`,\n width: handleProps?.size || '16px',\n };\n\n return (\n <div\n className={clsx(styles['right-resize-handle'], 'right-resize-handle')}\n onMouseDown={resizeHandler}\n style={rightResizeHandleStyle}\n >\n {handleProps?.children}\n </div>\n );\n}\n"],"names":["RightResizeHandle","targetRef","handleProps","onWidthResize","onWidthResizeEnd","resizeHandler","createHorizontalResizeHandler","offset","rightResizeHandleStyle","jsx","clsx","styles"],"mappings":";;;;AAYO,SAASA,EAAkB;AAAA,EAChC,WAAAC;AAAA,EACA,aAAAC;AAAA,EACA,eAAAC;AAAA,EACA,kBAAAC;AACF,GAA2B;AACzB,QAAMC,IAAgBC;AAAA,IACpBL;AAAA,IACAE;AAAA,IACAC;AAAA,IACA;AAAA,IACA;AAAA,EAAA,GAEIG,IAASL,GAAa,SAASA,EAAY,SAAS,IAEpDM,IAA8B;AAAA,IAClC,GAAGN,GAAa;AAAA,IAChB,mBAAmB,GAAGK,CAAM;AAAA,IAC5B,OAAOL,GAAa,QAAQ;AAAA,EAAA;AAG9B,SACE,gBAAAO;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,EAAKC,EAAO,qBAAqB,GAAG,qBAAqB;AAAA,MACpE,aAAaN;AAAA,MACb,OAAOG;AAAA,MAEN,UAAAN,GAAa;AAAA,IAAA;AAAA,EAAA;AAGpB;"}
@@ -1,34 +1,34 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import { createHorizontalResizeHandler as l } from "./resize_handlers.js";
3
- import f from "classnames";
3
+ import { clsx as f } from "clsx";
4
4
  import '../../start_resize_handle.css';const z = "_start-resize-handle_22a3d5a", c = { "start-resize-handle": z };
5
- function u({
5
+ function x({
6
6
  targetRef: t,
7
7
  handleProps: e,
8
8
  onWidthResize: s,
9
9
  onWidthResizeEnd: r
10
10
  }) {
11
- const a = l(
11
+ const i = l(
12
12
  t,
13
13
  s,
14
14
  r,
15
15
  !0
16
- ), i = e?.offset ? e.offset : -8, n = {
16
+ ), a = e?.offset ? e.offset : -8, n = {
17
17
  ...e?.style,
18
- "--resize-offset": `${i}px`,
18
+ "--resize-offset": `${a}px`,
19
19
  width: e?.size || "16px"
20
20
  };
21
21
  return /* @__PURE__ */ o(
22
22
  "div",
23
23
  {
24
24
  className: f(c["start-resize-handle"], "start-resize-handle"),
25
- onMouseDown: a,
25
+ onMouseDown: i,
26
26
  style: n,
27
27
  children: e?.children
28
28
  }
29
29
  );
30
30
  }
31
31
  export {
32
- u as StartResizeHandle
32
+ x as StartResizeHandle
33
33
  };
34
34
  //# sourceMappingURL=start_resize_handle.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"start_resize_handle.js","sources":["../../../src/stacks/box/start_resize_handle.tsx"],"sourcesContent":["import React from 'react';\nimport { HandleProps } from './handle_props.js';\nimport { createHorizontalResizeHandler } from './resize_handlers.js';\nimport styles from './start_resize_handle.module.css';\nimport classNames from 'classnames';\n\nexport interface StartResizeHandleProps {\n targetRef: React.MutableRefObject<HTMLElement | null>;\n handleProps?: HandleProps;\n onWidthResize?: (value: number) => void;\n onWidthResizeEnd?: (value: number) => void;\n}\nexport function StartResizeHandle({\n targetRef,\n handleProps,\n onWidthResize,\n onWidthResizeEnd,\n}: StartResizeHandleProps) {\n const resizeHandler = createHorizontalResizeHandler(\n targetRef,\n onWidthResize,\n onWidthResizeEnd,\n true\n );\n const offset = handleProps?.offset ? handleProps.offset : -8;\n\n const startResizeHandleStyle: any = {\n ...handleProps?.style,\n '--resize-offset': `${offset}px`,\n width: handleProps?.size || '16px',\n };\n\n return (\n <div\n className={classNames(styles['start-resize-handle'], 'start-resize-handle')}\n onMouseDown={resizeHandler}\n style={startResizeHandleStyle}\n >\n {handleProps?.children}\n </div>\n );\n}\n"],"names":["StartResizeHandle","targetRef","handleProps","onWidthResize","onWidthResizeEnd","resizeHandler","createHorizontalResizeHandler","offset","startResizeHandleStyle","jsx","classNames","styles"],"mappings":";;;;AAYO,SAASA,EAAkB;AAAA,EAChC,WAAAC;AAAA,EACA,aAAAC;AAAA,EACA,eAAAC;AAAA,EACA,kBAAAC;AACF,GAA2B;AACzB,QAAMC,IAAgBC;AAAA,IACpBL;AAAA,IACAE;AAAA,IACAC;AAAA,IACA;AAAA,EAAA,GAEIG,IAASL,GAAa,SAASA,EAAY,SAAS,IAEpDM,IAA8B;AAAA,IAClC,GAAGN,GAAa;AAAA,IAChB,mBAAmB,GAAGK,CAAM;AAAA,IAC5B,OAAOL,GAAa,QAAQ;AAAA,EAAA;AAG9B,SACE,gBAAAO;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,EAAWC,EAAO,qBAAqB,GAAG,qBAAqB;AAAA,MAC1E,aAAaN;AAAA,MACb,OAAOG;AAAA,MAEN,UAAAN,GAAa;AAAA,IAAA;AAAA,EAAA;AAGpB;"}
1
+ {"version":3,"file":"start_resize_handle.js","sources":["../../../src/stacks/box/start_resize_handle.tsx"],"sourcesContent":["import React from 'react';\nimport { HandleProps } from './handle_props.js';\nimport { createHorizontalResizeHandler } from './resize_handlers.js';\nimport styles from './start_resize_handle.module.css';\nimport { clsx } from 'clsx';\n\nexport interface StartResizeHandleProps {\n targetRef: React.MutableRefObject<HTMLElement | null>;\n handleProps?: HandleProps;\n onWidthResize?: (value: number) => void;\n onWidthResizeEnd?: (value: number) => void;\n}\nexport function StartResizeHandle({\n targetRef,\n handleProps,\n onWidthResize,\n onWidthResizeEnd,\n}: StartResizeHandleProps) {\n const resizeHandler = createHorizontalResizeHandler(\n targetRef,\n onWidthResize,\n onWidthResizeEnd,\n true\n );\n const offset = handleProps?.offset ? handleProps.offset : -8;\n\n const startResizeHandleStyle: any = {\n ...handleProps?.style,\n '--resize-offset': `${offset}px`,\n width: handleProps?.size || '16px',\n };\n\n return (\n <div\n className={clsx(styles['start-resize-handle'], 'start-resize-handle')}\n onMouseDown={resizeHandler}\n style={startResizeHandleStyle}\n >\n {handleProps?.children}\n </div>\n );\n}\n"],"names":["StartResizeHandle","targetRef","handleProps","onWidthResize","onWidthResizeEnd","resizeHandler","createHorizontalResizeHandler","offset","startResizeHandleStyle","jsx","clsx","styles"],"mappings":";;;;AAYO,SAASA,EAAkB;AAAA,EAChC,WAAAC;AAAA,EACA,aAAAC;AAAA,EACA,eAAAC;AAAA,EACA,kBAAAC;AACF,GAA2B;AACzB,QAAMC,IAAgBC;AAAA,IACpBL;AAAA,IACAE;AAAA,IACAC;AAAA,IACA;AAAA,EAAA,GAEIG,IAASL,GAAa,SAASA,EAAY,SAAS,IAEpDM,IAA8B;AAAA,IAClC,GAAGN,GAAa;AAAA,IAChB,mBAAmB,GAAGK,CAAM;AAAA,IAC5B,OAAOL,GAAa,QAAQ;AAAA,EAAA;AAG9B,SACE,gBAAAO;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,EAAKC,EAAO,qBAAqB,GAAG,qBAAqB;AAAA,MACpE,aAAaN;AAAA,MACb,OAAOG;AAAA,MAEN,UAAAN,GAAa;AAAA,IAAA;AAAA,EAAA;AAGpB;"}
@@ -1,17 +1,17 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
2
  import { createVerticalResizeHandler as c } from "./resize_handlers.js";
3
- import a from "classnames";
4
- import '../../top_resize_handle.css';const f = "_top-resize-handle_fe19234", p = { "top-resize-handle": f };
5
- function H({
3
+ import { clsx as f } from "clsx";
4
+ import '../../top_resize_handle.css';const p = "_top-resize-handle_fe19234", z = { "top-resize-handle": p };
5
+ function x({
6
6
  targetRef: t,
7
7
  handleProps: e,
8
- onHeightResize: s,
9
- onHeightResizeEnd: o
8
+ onHeightResize: o,
9
+ onHeightResizeEnd: s
10
10
  }) {
11
11
  const i = c(
12
12
  t,
13
- s,
14
13
  o,
14
+ s,
15
15
  !0
16
16
  ), n = e?.offset ? e.offset : -8, r = {
17
17
  ...e?.style,
@@ -21,7 +21,7 @@ function H({
21
21
  return /* @__PURE__ */ l(
22
22
  "div",
23
23
  {
24
- className: a(p["top-resize-handle"], "top-resize-handle"),
24
+ className: f(z["top-resize-handle"], "top-resize-handle"),
25
25
  onMouseDown: i,
26
26
  style: r,
27
27
  children: e?.children
@@ -29,6 +29,6 @@ function H({
29
29
  );
30
30
  }
31
31
  export {
32
- H as TopResizeHandle
32
+ x as TopResizeHandle
33
33
  };
34
34
  //# sourceMappingURL=top_resize_handle.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"top_resize_handle.js","sources":["../../../src/stacks/box/top_resize_handle.tsx"],"sourcesContent":["import React from 'react';\nimport { HandleProps } from './handle_props.js';\nimport { createVerticalResizeHandler } from './resize_handlers.js';\nimport styles from './top_resize_handle.module.css';\nimport classNames from 'classnames';\n\nexport interface TopResizeHandleProps {\n targetRef: React.MutableRefObject<HTMLElement | null>;\n handleProps?: HandleProps;\n onHeightResize?: (value: number) => void;\n onHeightResizeEnd?: (value: number) => void;\n}\nexport function TopResizeHandle({\n targetRef,\n handleProps,\n onHeightResize,\n onHeightResizeEnd,\n}: TopResizeHandleProps) {\n const resizeHandler = createVerticalResizeHandler(\n targetRef,\n onHeightResize,\n onHeightResizeEnd,\n true\n );\n const offset = handleProps?.offset ? handleProps.offset : -8;\n\n const topResizeHandleStyle: React.CSSProperties = {\n ...handleProps?.style,\n top: `${offset}px`,\n height: handleProps?.size || '16px',\n };\n return (\n <div\n className={classNames(styles['top-resize-handle'], 'top-resize-handle')}\n onMouseDown={resizeHandler}\n style={topResizeHandleStyle}\n >\n {handleProps?.children}\n </div>\n );\n}\n"],"names":["TopResizeHandle","targetRef","handleProps","onHeightResize","onHeightResizeEnd","resizeHandler","createVerticalResizeHandler","offset","topResizeHandleStyle","jsx","classNames","styles"],"mappings":";;;;AAYO,SAASA,EAAgB;AAAA,EAC9B,WAAAC;AAAA,EACA,aAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,mBAAAC;AACF,GAAyB;AACvB,QAAMC,IAAgBC;AAAA,IACpBL;AAAA,IACAE;AAAA,IACAC;AAAA,IACA;AAAA,EAAA,GAEIG,IAASL,GAAa,SAASA,EAAY,SAAS,IAEpDM,IAA4C;AAAA,IAChD,GAAGN,GAAa;AAAA,IAChB,KAAK,GAAGK,CAAM;AAAA,IACd,QAAQL,GAAa,QAAQ;AAAA,EAAA;AAE/B,SACE,gBAAAO;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,EAAWC,EAAO,mBAAmB,GAAG,mBAAmB;AAAA,MACtE,aAAaN;AAAA,MACb,OAAOG;AAAA,MAEN,UAAAN,GAAa;AAAA,IAAA;AAAA,EAAA;AAGpB;"}
1
+ {"version":3,"file":"top_resize_handle.js","sources":["../../../src/stacks/box/top_resize_handle.tsx"],"sourcesContent":["import React from 'react';\nimport { HandleProps } from './handle_props.js';\nimport { createVerticalResizeHandler } from './resize_handlers.js';\nimport styles from './top_resize_handle.module.css';\nimport { clsx } from 'clsx';\n\nexport interface TopResizeHandleProps {\n targetRef: React.MutableRefObject<HTMLElement | null>;\n handleProps?: HandleProps;\n onHeightResize?: (value: number) => void;\n onHeightResizeEnd?: (value: number) => void;\n}\nexport function TopResizeHandle({\n targetRef,\n handleProps,\n onHeightResize,\n onHeightResizeEnd,\n}: TopResizeHandleProps) {\n const resizeHandler = createVerticalResizeHandler(\n targetRef,\n onHeightResize,\n onHeightResizeEnd,\n true\n );\n const offset = handleProps?.offset ? handleProps.offset : -8;\n\n const topResizeHandleStyle: React.CSSProperties = {\n ...handleProps?.style,\n top: `${offset}px`,\n height: handleProps?.size || '16px',\n };\n return (\n <div\n className={clsx(styles['top-resize-handle'], 'top-resize-handle')}\n onMouseDown={resizeHandler}\n style={topResizeHandleStyle}\n >\n {handleProps?.children}\n </div>\n );\n}\n"],"names":["TopResizeHandle","targetRef","handleProps","onHeightResize","onHeightResizeEnd","resizeHandler","createVerticalResizeHandler","offset","topResizeHandleStyle","jsx","clsx","styles"],"mappings":";;;;AAYO,SAASA,EAAgB;AAAA,EAC9B,WAAAC;AAAA,EACA,aAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,mBAAAC;AACF,GAAyB;AACvB,QAAMC,IAAgBC;AAAA,IACpBL;AAAA,IACAE;AAAA,IACAC;AAAA,IACA;AAAA,EAAA,GAEIG,IAASL,GAAa,SAASA,EAAY,SAAS,IAEpDM,IAA4C;AAAA,IAChD,GAAGN,GAAa;AAAA,IAChB,KAAK,GAAGK,CAAM;AAAA,IACd,QAAQL,GAAa,QAAQ;AAAA,EAAA;AAE/B,SACE,gBAAAO;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,EAAKC,EAAO,mBAAmB,GAAG,mBAAmB;AAAA,MAChE,aAAaN;AAAA,MACb,OAAOG;AAAA,MAEN,UAAAN,GAAa;AAAA,IAAA;AAAA,EAAA;AAGpB;"}
@@ -1,11 +1,11 @@
1
- import { jsx as f } from "react/jsx-runtime";
1
+ import { jsx as m } from "react/jsx-runtime";
2
2
  import t, { useLayoutEffect as p } from "react";
3
3
  import "../utils/focus_redirect.js";
4
4
  import "../utils/click_away_listener.js";
5
5
  import "../utils/scroll_away_listener.js";
6
6
  import { useForkRef as d } from "../utils/hooks/use_fork_ref.js";
7
7
  import "../utils/hooks/use_resize_observer.js";
8
- import u from "classnames";
8
+ import { clsx as u } from "clsx";
9
9
  import { Box as R } from "./box/box.js";
10
10
  import { s as z } from "../collapsible_box.module-BiS98xXA.js";
11
11
  import { useIsCollapsed as x } from "./utils/use_is_collapsed.js";
@@ -14,8 +14,8 @@ const F = t.forwardRef(function({ open: l = !1, defaultWidth: i = "400px", ...e
14
14
  p(() => {
15
15
  s.current?.style.setProperty("--collapsible-size", i);
16
16
  }, [i]);
17
- const m = x(l, s) && !l ? null : e.children;
18
- return /* @__PURE__ */ f(
17
+ const f = x(l, s) && !l ? null : e.children;
18
+ return /* @__PURE__ */ m(
19
19
  R,
20
20
  {
21
21
  ref: n,
@@ -30,7 +30,7 @@ const F = t.forwardRef(function({ open: l = !1, defaultWidth: i = "400px", ...e
30
30
  r(!1), e.onWidthResizeEnd?.(o), s.current?.style.setProperty("--collapsible-size", `${o}px`);
31
31
  },
32
32
  className: u(e.className, z["collapsible-box"]),
33
- children: m
33
+ children: f
34
34
  }
35
35
  );
36
36
  });
@@ -1 +1 @@
1
- {"version":3,"file":"h_collapsible_box.js","sources":["../../src/stacks/h_collapsible_box.tsx"],"sourcesContent":["import React, { useLayoutEffect } from 'react';\nimport { useForkRef } from '../utils/index.js';\nimport classNames from 'classnames';\nimport { Box, BoxProps } from './box/box.js';\nimport styles from './collapsible_box.module.css';\nimport { useIsCollapsed } from './utils/use_is_collapsed.js';\n\nexport interface HCollapsibleBoxProps extends BoxProps {\n open?: boolean;\n defaultWidth?: string;\n}\n\nexport const HCollapsibleBox = React.forwardRef(function CollapsibleBox(\n { open = false, defaultWidth = '400px', ...props }: HCollapsibleBoxProps,\n ref: React.Ref<HTMLDivElement>\n) {\n const collapsibleRef = React.useRef<HTMLDivElement | null>(null);\n const forkRef = useForkRef(ref, collapsibleRef);\n const [resizing, setIsResizing] = React.useState(false);\n\n useLayoutEffect(() => {\n collapsibleRef.current?.style.setProperty('--collapsible-size', defaultWidth);\n }, [defaultWidth]);\n\n const isCollapsed = useIsCollapsed(open, collapsibleRef);\n const children = isCollapsed && !open ? null : props.children;\n\n return (\n <Box\n ref={forkRef}\n {...props}\n data-is-collapsed={!open}\n data-collapse-orientation=\"horizontal\"\n data-is-resizing={resizing}\n onWidthResize={width => {\n setIsResizing(true);\n props.onWidthResize?.(width);\n }}\n onWidthResizeEnd={width => {\n setIsResizing(false);\n props.onWidthResizeEnd?.(width);\n collapsibleRef.current?.style.setProperty('--collapsible-size', `${width}px`);\n }}\n className={classNames(props.className, styles['collapsible-box'])}\n children={children}\n />\n );\n});\n"],"names":["HCollapsibleBox","React","open","defaultWidth","props","ref","collapsibleRef","forkRef","useForkRef","resizing","setIsResizing","useLayoutEffect","children","useIsCollapsed","jsx","Box","width","classNames","styles"],"mappings":";;;;;;;;;;;AAYO,MAAMA,IAAkBC,EAAM,WAAW,SAC9C,EAAE,MAAAC,IAAO,IAAO,cAAAC,IAAe,SAAS,GAAGC,EAAA,GAC3CC,GACA;AACA,QAAMC,IAAiBL,EAAM,OAA8B,IAAI,GACzDM,IAAUC,EAAWH,GAAKC,CAAc,GACxC,CAACG,GAAUC,CAAa,IAAIT,EAAM,SAAS,EAAK;AAEtD,EAAAU,EAAgB,MAAM;AACpB,IAAAL,EAAe,SAAS,MAAM,YAAY,sBAAsBH,CAAY;AAAA,EAC9E,GAAG,CAACA,CAAY,CAAC;AAGjB,QAAMS,IADcC,EAAeX,GAAMI,CAAc,KACvB,CAACJ,IAAO,OAAOE,EAAM;AAErD,SACE,gBAAAU;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,KAAKR;AAAA,MACJ,GAAGH;AAAA,MACJ,qBAAmB,CAACF;AAAA,MACpB,6BAA0B;AAAA,MAC1B,oBAAkBO;AAAA,MAClB,eAAe,CAAAO,MAAS;AACtB,QAAAN,EAAc,EAAI,GAClBN,EAAM,gBAAgBY,CAAK;AAAA,MAC7B;AAAA,MACA,kBAAkB,CAAAA,MAAS;AACzB,QAAAN,EAAc,EAAK,GACnBN,EAAM,mBAAmBY,CAAK,GAC9BV,EAAe,SAAS,MAAM,YAAY,sBAAsB,GAAGU,CAAK,IAAI;AAAA,MAC9E;AAAA,MACA,WAAWC,EAAWb,EAAM,WAAWc,EAAO,iBAAiB,CAAC;AAAA,MAChE,UAAAN;AAAA,IAAA;AAAA,EAAA;AAGN,CAAC;"}
1
+ {"version":3,"file":"h_collapsible_box.js","sources":["../../src/stacks/h_collapsible_box.tsx"],"sourcesContent":["import React, { useLayoutEffect } from 'react';\nimport { useForkRef } from '../utils/index.js';\nimport { clsx } from 'clsx';\nimport { Box, BoxProps } from './box/box.js';\nimport styles from './collapsible_box.module.css';\nimport { useIsCollapsed } from './utils/use_is_collapsed.js';\n\nexport interface HCollapsibleBoxProps extends BoxProps {\n open?: boolean;\n defaultWidth?: string;\n}\n\nexport const HCollapsibleBox = React.forwardRef(function CollapsibleBox(\n { open = false, defaultWidth = '400px', ...props }: HCollapsibleBoxProps,\n ref: React.Ref<HTMLDivElement>\n) {\n const collapsibleRef = React.useRef<HTMLDivElement | null>(null);\n const forkRef = useForkRef(ref, collapsibleRef);\n const [resizing, setIsResizing] = React.useState(false);\n\n useLayoutEffect(() => {\n collapsibleRef.current?.style.setProperty('--collapsible-size', defaultWidth);\n }, [defaultWidth]);\n\n const isCollapsed = useIsCollapsed(open, collapsibleRef);\n const children = isCollapsed && !open ? null : props.children;\n\n return (\n <Box\n ref={forkRef}\n {...props}\n data-is-collapsed={!open}\n data-collapse-orientation=\"horizontal\"\n data-is-resizing={resizing}\n onWidthResize={width => {\n setIsResizing(true);\n props.onWidthResize?.(width);\n }}\n onWidthResizeEnd={width => {\n setIsResizing(false);\n props.onWidthResizeEnd?.(width);\n collapsibleRef.current?.style.setProperty('--collapsible-size', `${width}px`);\n }}\n className={clsx(props.className, styles['collapsible-box'])}\n children={children}\n />\n );\n});\n"],"names":["HCollapsibleBox","React","open","defaultWidth","props","ref","collapsibleRef","forkRef","useForkRef","resizing","setIsResizing","useLayoutEffect","children","useIsCollapsed","jsx","Box","width","clsx","styles"],"mappings":";;;;;;;;;;;AAYO,MAAMA,IAAkBC,EAAM,WAAW,SAC9C,EAAE,MAAAC,IAAO,IAAO,cAAAC,IAAe,SAAS,GAAGC,EAAA,GAC3CC,GACA;AACA,QAAMC,IAAiBL,EAAM,OAA8B,IAAI,GACzDM,IAAUC,EAAWH,GAAKC,CAAc,GACxC,CAACG,GAAUC,CAAa,IAAIT,EAAM,SAAS,EAAK;AAEtD,EAAAU,EAAgB,MAAM;AACpB,IAAAL,EAAe,SAAS,MAAM,YAAY,sBAAsBH,CAAY;AAAA,EAC9E,GAAG,CAACA,CAAY,CAAC;AAGjB,QAAMS,IADcC,EAAeX,GAAMI,CAAc,KACvB,CAACJ,IAAO,OAAOE,EAAM;AAErD,SACE,gBAAAU;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,KAAKR;AAAA,MACJ,GAAGH;AAAA,MACJ,qBAAmB,CAACF;AAAA,MACpB,6BAA0B;AAAA,MAC1B,oBAAkBO;AAAA,MAClB,eAAe,CAAAO,MAAS;AACtB,QAAAN,EAAc,EAAI,GAClBN,EAAM,gBAAgBY,CAAK;AAAA,MAC7B;AAAA,MACA,kBAAkB,CAAAA,MAAS;AACzB,QAAAN,EAAc,EAAK,GACnBN,EAAM,mBAAmBY,CAAK,GAC9BV,EAAe,SAAS,MAAM,YAAY,sBAAsB,GAAGU,CAAK,IAAI;AAAA,MAC9E;AAAA,MACA,WAAWC,EAAKb,EAAM,WAAWc,EAAO,iBAAiB,CAAC;AAAA,MAC1D,UAAAN;AAAA,IAAA;AAAA,EAAA;AAGN,CAAC;"}