@tcn/ui 0.0.3 → 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 (348) 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.js +5 -5
  4. package/dist/actions/button/button/button.js.map +1 -1
  5. package/dist/actions/button/button_group/button_group.d.ts.map +1 -1
  6. package/dist/actions/button/button_group/button_group.js +2 -5
  7. package/dist/actions/button/button_group/button_group.js.map +1 -1
  8. package/dist/actions/button/select_group/select_group.js +7 -7
  9. package/dist/actions/button/select_group/select_group.js.map +1 -1
  10. package/dist/actions/button/slim_button/slim_button.d.ts.map +1 -1
  11. package/dist/actions/button/slim_button/slim_button.js +4 -4
  12. package/dist/actions/button/slim_button/slim_button.js.map +1 -1
  13. package/dist/feedback/progress/progress_bar.js +1 -1
  14. package/dist/form/field/common/field_control/field_control.js +6 -6
  15. package/dist/form/field/common/field_control/field_control.js.map +1 -1
  16. package/dist/form/field/common/field_description.js +1 -1
  17. package/dist/form/field/common/field_error.js +3 -4
  18. package/dist/form/field/common/field_error.js.map +1 -1
  19. package/dist/form/field/common/field_header.js +8 -8
  20. package/dist/form/field/common/field_header.js.map +1 -1
  21. package/dist/form/field/common/field_label.js +1 -1
  22. package/dist/form/field/common/status_input/status_input.d.ts.map +1 -1
  23. package/dist/form/field/common/status_input/status_input.js +9 -15
  24. package/dist/form/field/common/status_input/status_input.js.map +1 -1
  25. package/dist/form/field/h_field/h_field.js +9 -9
  26. package/dist/form/field/h_field/h_field.js.map +1 -1
  27. package/dist/form/field/v_field/v_field.js +8 -8
  28. package/dist/form/field/v_field/v_field.js.map +1 -1
  29. package/dist/form/field_set/field_set.d.ts.map +1 -1
  30. package/dist/form/field_set/field_set.js +12 -19
  31. package/dist/form/field_set/field_set.js.map +1 -1
  32. package/dist/inputs/checkbox/checkbox.js +12 -12
  33. package/dist/inputs/checkbox/checkbox.js.map +1 -1
  34. package/dist/inputs/color_input/color_input.d.ts.map +1 -1
  35. package/dist/inputs/color_input/color_input.js +13 -17
  36. package/dist/inputs/color_input/color_input.js.map +1 -1
  37. package/dist/inputs/color_input/color_picker.js +6 -6
  38. package/dist/inputs/color_input/color_picker.js.map +1 -1
  39. package/dist/inputs/combo_box/combo_box.js +15 -15
  40. package/dist/inputs/combo_box/combo_box.js.map +1 -1
  41. package/dist/inputs/date_picker/date_picker.js +6 -6
  42. package/dist/inputs/date_picker/date_picker.js.map +1 -1
  43. package/dist/inputs/date_picker/date_picker_date.js +13 -13
  44. package/dist/inputs/date_picker/date_picker_date.js.map +1 -1
  45. package/dist/inputs/date_picker/date_picker_day.js +1 -1
  46. package/dist/inputs/date_picker/date_picker_header.js +24 -24
  47. package/dist/inputs/date_picker/date_picker_header.js.map +1 -1
  48. package/dist/inputs/date_picker/date_picker_input.js +19 -19
  49. package/dist/inputs/date_picker/date_picker_input.js.map +1 -1
  50. package/dist/inputs/date_picker/date_picker_time_selector.d.ts.map +1 -1
  51. package/dist/inputs/date_picker/date_picker_time_selector.js +6 -9
  52. package/dist/inputs/date_picker/date_picker_time_selector.js.map +1 -1
  53. package/dist/inputs/date_picker/date_picker_year_input.js +3 -3
  54. package/dist/inputs/date_picker/date_picker_year_input.js.map +1 -1
  55. package/dist/inputs/date_picker/date_picker_year_selector.d.ts.map +1 -1
  56. package/dist/inputs/date_picker/date_picker_year_selector.js +18 -24
  57. package/dist/inputs/date_picker/date_picker_year_selector.js.map +1 -1
  58. package/dist/inputs/input/input.js +4 -4
  59. package/dist/inputs/input/input.js.map +1 -1
  60. package/dist/inputs/multi_combo_box/multi_combo_box.js +1 -1
  61. package/dist/inputs/multi_combo_box/multi_combo_box.js.map +1 -1
  62. package/dist/inputs/multiselect/multiselect_values.js +8 -8
  63. package/dist/inputs/multiselect/multiselect_values.js.map +1 -1
  64. package/dist/inputs/phone_number_input/phone_number_input.d.ts.map +1 -1
  65. package/dist/inputs/phone_number_input/phone_number_input.js +28 -31
  66. package/dist/inputs/phone_number_input/phone_number_input.js.map +1 -1
  67. package/dist/inputs/radio/radio.js +14 -14
  68. package/dist/inputs/radio/radio.js.map +1 -1
  69. package/dist/inputs/select/select.js +16 -16
  70. package/dist/inputs/select/select.js.map +1 -1
  71. package/dist/inputs/slider/slider.js +7 -7
  72. package/dist/inputs/slider/slider.js.map +1 -1
  73. package/dist/inputs/suggestions/suggestion_item.js +3 -3
  74. package/dist/inputs/suggestions/suggestion_item.js.map +1 -1
  75. package/dist/inputs/suggestions/suggestion_list.js +8 -8
  76. package/dist/inputs/suggestions/suggestion_list.js.map +1 -1
  77. package/dist/inputs/switch/switch.js +14 -14
  78. package/dist/inputs/switch/switch.js.map +1 -1
  79. package/dist/inputs/textarea/textarea.js +6 -6
  80. package/dist/inputs/textarea/textarea.js.map +1 -1
  81. package/dist/inputs/unit_input/unit_input.js +5 -5
  82. package/dist/inputs/unit_input/unit_input.js.map +1 -1
  83. package/dist/layouts/body/h_body.js +10 -10
  84. package/dist/layouts/body/h_body.js.map +1 -1
  85. package/dist/layouts/body/v_body.js +8 -8
  86. package/dist/layouts/body/v_body.js.map +1 -1
  87. package/dist/layouts/column/column.js +16 -16
  88. package/dist/layouts/column/column.js.map +1 -1
  89. package/dist/layouts/divider/divider.js +9 -9
  90. package/dist/layouts/divider/divider.js.map +1 -1
  91. package/dist/layouts/footer/footer.js +7 -7
  92. package/dist/layouts/footer/footer.js.map +1 -1
  93. package/dist/layouts/grid/grid.d.ts.map +1 -1
  94. package/dist/layouts/grid/grid.js +22 -31
  95. package/dist/layouts/grid/grid.js.map +1 -1
  96. package/dist/layouts/header/header.js +11 -11
  97. package/dist/layouts/header/header.js.map +1 -1
  98. package/dist/layouts/list/item.js +6 -6
  99. package/dist/layouts/list/item.js.map +1 -1
  100. package/dist/layouts/list/list.js +6 -6
  101. package/dist/layouts/list/list.js.map +1 -1
  102. package/dist/layouts/sidebar_end/sidebar_end.js +15 -15
  103. package/dist/layouts/sidebar_end/sidebar_end.js.map +1 -1
  104. package/dist/layouts/sidebar_start/sidebar_start.js +16 -16
  105. package/dist/layouts/sidebar_start/sidebar_start.js.map +1 -1
  106. package/dist/layouts/utility_bar/utility_bar.js +14 -14
  107. package/dist/layouts/utility_bar/utility_bar.js.map +1 -1
  108. package/dist/modal.css +1 -1
  109. package/dist/overlay/menu/menu.js +8 -8
  110. package/dist/overlay/menu/menu.js.map +1 -1
  111. package/dist/overlay/tooltip/tooltip.js +10 -10
  112. package/dist/overlay/tooltip/tooltip.js.map +1 -1
  113. package/dist/stacks/box/bottom_resize_handle.js +9 -9
  114. package/dist/stacks/box/bottom_resize_handle.js.map +1 -1
  115. package/dist/stacks/box/box.js +42 -42
  116. package/dist/stacks/box/box.js.map +1 -1
  117. package/dist/stacks/box/end_resize_handle.js +6 -6
  118. package/dist/stacks/box/end_resize_handle.js.map +1 -1
  119. package/dist/stacks/box/left_resize_handle.js +3 -3
  120. package/dist/stacks/box/left_resize_handle.js.map +1 -1
  121. package/dist/stacks/box/right_resize_handle.js +8 -8
  122. package/dist/stacks/box/right_resize_handle.js.map +1 -1
  123. package/dist/stacks/box/start_resize_handle.js +7 -7
  124. package/dist/stacks/box/start_resize_handle.js.map +1 -1
  125. package/dist/stacks/box/top_resize_handle.js +8 -8
  126. package/dist/stacks/box/top_resize_handle.js.map +1 -1
  127. package/dist/stacks/h_collapsible_box.js +5 -5
  128. package/dist/stacks/h_collapsible_box.js.map +1 -1
  129. package/dist/stacks/h_stack.js +26 -26
  130. package/dist/stacks/h_stack.js.map +1 -1
  131. package/dist/stacks/spacer.js +5 -5
  132. package/dist/stacks/spacer.js.map +1 -1
  133. package/dist/stacks/story_components/circle.js +6 -6
  134. package/dist/stacks/story_components/circle.js.map +1 -1
  135. package/dist/stacks/story_components/picture_placeholder.js +8 -8
  136. package/dist/stacks/story_components/picture_placeholder.js.map +1 -1
  137. package/dist/stacks/story_components/rect.js +11 -11
  138. package/dist/stacks/story_components/rect.js.map +1 -1
  139. package/dist/stacks/v_collapsible_box.js +8 -8
  140. package/dist/stacks/v_collapsible_box.js.map +1 -1
  141. package/dist/stacks/v_stack.js +35 -35
  142. package/dist/stacks/v_stack.js.map +1 -1
  143. package/dist/stacks/z_stack.js +34 -34
  144. package/dist/stacks/z_stack.js.map +1 -1
  145. package/dist/surfaces/alert/alert.js +8 -8
  146. package/dist/surfaces/alert/alert.js.map +1 -1
  147. package/dist/surfaces/card/card.js +8 -8
  148. package/dist/surfaces/card/card.js.map +1 -1
  149. package/dist/surfaces/confirm/confirm.d.ts.map +1 -1
  150. package/dist/surfaces/confirm/confirm.js +13 -20
  151. package/dist/surfaces/confirm/confirm.js.map +1 -1
  152. package/dist/surfaces/drawers/drawer_bottom/drawer_bottom.js +5 -5
  153. package/dist/surfaces/drawers/drawer_bottom/drawer_bottom.js.map +1 -1
  154. package/dist/surfaces/drawers/drawer_end/drawer_end.js +8 -8
  155. package/dist/surfaces/drawers/drawer_end/drawer_end.js.map +1 -1
  156. package/dist/surfaces/drawers/drawer_start/drawer_start.js +4 -4
  157. package/dist/surfaces/drawers/drawer_start/drawer_start.js.map +1 -1
  158. package/dist/surfaces/drawers/drawer_top/drawer_top.js +4 -4
  159. package/dist/surfaces/drawers/drawer_top/drawer_top.js.map +1 -1
  160. package/dist/surfaces/modal/modal.d.ts +2 -4
  161. package/dist/surfaces/modal/modal.d.ts.map +1 -1
  162. package/dist/surfaces/modal/modal.js +16 -7
  163. package/dist/surfaces/modal/modal.js.map +1 -1
  164. package/dist/surfaces/page/h_page.js +6 -6
  165. package/dist/surfaces/page/h_page.js.map +1 -1
  166. package/dist/surfaces/page/v_page.js +9 -9
  167. package/dist/surfaces/page/v_page.js.map +1 -1
  168. package/dist/surfaces/panel/h_panel.d.ts.map +1 -1
  169. package/dist/surfaces/panel/h_panel.js +18 -24
  170. package/dist/surfaces/panel/h_panel.js.map +1 -1
  171. package/dist/surfaces/panel/v_panel.js +9 -9
  172. package/dist/surfaces/panel/v_panel.js.map +1 -1
  173. package/dist/surfaces/popover/popover.js +34 -34
  174. package/dist/surfaces/popover/popover.js.map +1 -1
  175. package/dist/surfaces/window/window.d.ts.map +1 -1
  176. package/dist/surfaces/window/window.js +6 -14
  177. package/dist/surfaces/window/window.js.map +1 -1
  178. package/dist/themes/index.d.ts +0 -2
  179. package/dist/themes/index.d.ts.map +1 -1
  180. package/dist/themes/index.js +5 -266
  181. package/dist/themes/index.js.map +1 -1
  182. package/dist/themes/themes/ergo/ergo_theme.css +1 -1
  183. package/dist/tokens/badge/badge.js +13 -13
  184. package/dist/tokens/badge/badge.js.map +1 -1
  185. package/dist/tokens/bubble/bubble.js +16 -17
  186. package/dist/tokens/bubble/bubble.js.map +1 -1
  187. package/dist/tokens/chip/chip.js +10 -11
  188. package/dist/tokens/chip/chip.js.map +1 -1
  189. package/dist/typography/body_text/body_text.js +21 -21
  190. package/dist/typography/body_text/body_text.js.map +1 -1
  191. package/dist/typography/callout/callout.js +16 -16
  192. package/dist/typography/callout/callout.js.map +1 -1
  193. package/dist/typography/caption/caption.js +13 -13
  194. package/dist/typography/caption/caption.js.map +1 -1
  195. package/dist/typography/footnote/footnote.js +14 -14
  196. package/dist/typography/footnote/footnote.js.map +1 -1
  197. package/dist/typography/headline/headline.js +12 -12
  198. package/dist/typography/headline/headline.js.map +1 -1
  199. package/dist/typography/subheadline/subheadline.js +13 -13
  200. package/dist/typography/subheadline/subheadline.js.map +1 -1
  201. package/dist/typography/title/title.js +22 -22
  202. package/dist/typography/title/title.js.map +1 -1
  203. package/package.json +21 -2
  204. package/src/actions/button/__stories__/button.stories.tsx +1 -1
  205. package/src/actions/button/__stories__/button_group.stories.tsx +1 -1
  206. package/src/actions/button/__stories__/select_group.stories.tsx +1 -1
  207. package/src/actions/button/__stories__/slim_button.stories.tsx +1 -1
  208. package/src/actions/button/base_button/base_button.tsx +2 -2
  209. package/src/actions/button/button/button.tsx +3 -3
  210. package/src/actions/button/button_group/button_group.tsx +4 -7
  211. package/src/actions/button/select_group/select_group.tsx +3 -3
  212. package/src/actions/button/slim_button/slim_button.tsx +3 -2
  213. package/src/feedback/lazy/lazy.stories.tsx +1 -1
  214. package/src/feedback/loading/__storybook__/loading.stories.tsx +1 -1
  215. package/src/feedback/progress/progress_bar.stories.tsx +1 -1
  216. package/src/form/field/common/field_control/field_control.tsx +2 -2
  217. package/src/form/field/common/field_header.tsx +2 -2
  218. package/src/form/field/common/status_input/status_input.tsx +3 -6
  219. package/src/form/field/field.stories.tsx +2 -1
  220. package/src/form/field/h_field/h_field.stories.tsx +10 -1
  221. package/src/form/field/h_field/h_field.tsx +2 -2
  222. package/src/form/field/v_field/v_field.stories.tsx +10 -1
  223. package/src/form/field/v_field/v_field.tsx +2 -2
  224. package/src/form/field_set/field_set.stories.tsx +9 -1
  225. package/src/form/field_set/field_set.tsx +4 -7
  226. package/src/inputs/checkbox/checkbox.stories.tsx +9 -1
  227. package/src/inputs/checkbox/checkbox.tsx +2 -2
  228. package/src/inputs/color_input/color_input.stories.tsx +9 -1
  229. package/src/inputs/color_input/color_input.tsx +2 -6
  230. package/src/inputs/color_input/color_picker.tsx +2 -2
  231. package/src/inputs/combo_box/combo_box.stories.tsx +14 -5
  232. package/src/inputs/combo_box/combo_box.tsx +2 -2
  233. package/src/inputs/date_picker/date_picker.stories.tsx +18 -10
  234. package/src/inputs/date_picker/date_picker.tsx +3 -3
  235. package/src/inputs/date_picker/date_picker_date.tsx +3 -3
  236. package/src/inputs/date_picker/date_picker_header.tsx +2 -2
  237. package/src/inputs/date_picker/date_picker_input.stories.tsx +15 -7
  238. package/src/inputs/date_picker/date_picker_input.tsx +3 -3
  239. package/src/inputs/date_picker/date_picker_time_selector.tsx +5 -8
  240. package/src/inputs/date_picker/date_picker_year_input.tsx +2 -2
  241. package/src/inputs/date_picker/date_picker_year_selector.tsx +3 -9
  242. package/src/inputs/input/input.stories.tsx +9 -1
  243. package/src/inputs/input/input.tsx +2 -2
  244. package/src/inputs/mask_input/key_capture_input.stories.tsx +9 -1
  245. package/src/inputs/mask_input/mask_input.stories.tsx +10 -1
  246. package/src/inputs/multi_combo_box/multi_combo_box.stories.tsx +10 -1
  247. package/src/inputs/multi_combo_box/multi_combo_box.tsx +2 -2
  248. package/src/inputs/multiselect/multiselect_values.tsx +2 -2
  249. package/src/inputs/multiselect/mutliselect.stories.tsx +10 -1
  250. package/src/inputs/phone_number_input/phone_number_input.stories.tsx +10 -1
  251. package/src/inputs/phone_number_input/phone_number_input.tsx +6 -9
  252. package/src/inputs/radio/radio.stories.tsx +14 -6
  253. package/src/inputs/radio/radio.tsx +2 -2
  254. package/src/inputs/select/select.stories.tsx +18 -9
  255. package/src/inputs/select/select.tsx +2 -2
  256. package/src/inputs/slider/slider.stories.tsx +9 -1
  257. package/src/inputs/slider/slider.tsx +2 -2
  258. package/src/inputs/suggestions/suggestion_item.tsx +2 -2
  259. package/src/inputs/suggestions/suggestion_list.stories.tsx +21 -12
  260. package/src/inputs/suggestions/suggestion_list.tsx +3 -3
  261. package/src/inputs/switch/switch.stories.tsx +9 -1
  262. package/src/inputs/switch/switch.tsx +4 -4
  263. package/src/inputs/textarea/textarea.stories.tsx +9 -1
  264. package/src/inputs/textarea/textarea.tsx +2 -2
  265. package/src/inputs/unit_input/unit_input.stories.tsx +9 -1
  266. package/src/inputs/unit_input/unit_input.tsx +4 -4
  267. package/src/layouts/body/h_body.tsx +2 -2
  268. package/src/layouts/body/v_body.tsx +2 -2
  269. package/src/layouts/column/column.tsx +3 -3
  270. package/src/layouts/divider/__stories__/divider.stories.tsx +59 -19
  271. package/src/layouts/divider/divider.tsx +3 -3
  272. package/src/layouts/footer/footer.tsx +2 -2
  273. package/src/layouts/grid/grid.stories.tsx +42 -34
  274. package/src/layouts/grid/grid.tsx +2 -7
  275. package/src/layouts/header/header.tsx +2 -2
  276. package/src/layouts/list/item.tsx +2 -2
  277. package/src/layouts/list/list.tsx +2 -2
  278. package/src/layouts/sidebar_end/sidebar_end.tsx +2 -2
  279. package/src/layouts/sidebar_start/sidebar_start.tsx +2 -2
  280. package/src/layouts/utility_bar/utility_bar.tsx +2 -2
  281. package/src/overlay/context_menu/context_menu.stories.tsx +13 -5
  282. package/src/overlay/menu/menu.stories.tsx +22 -14
  283. package/src/overlay/menu/menu.tsx +3 -3
  284. package/src/overlay/popper/popper.stories.tsx +43 -22
  285. package/src/overlay/portal/portal.stories.tsx +10 -1
  286. package/src/overlay/tooltip/tooltip.stories.tsx +9 -2
  287. package/src/overlay/tooltip/tooltip.tsx +2 -2
  288. package/src/stacks/box/bottom_resize_handle.tsx +2 -2
  289. package/src/stacks/box/box.tsx +2 -2
  290. package/src/stacks/box/end_resize_handle.tsx +2 -2
  291. package/src/stacks/box/left_resize_handle.tsx +2 -2
  292. package/src/stacks/box/right_resize_handle.tsx +2 -2
  293. package/src/stacks/box/start_resize_handle.tsx +2 -2
  294. package/src/stacks/box/top_resize_handle.tsx +2 -2
  295. package/src/stacks/collapsible_box.stories.tsx +10 -1
  296. package/src/stacks/h_collapsible_box.tsx +2 -2
  297. package/src/stacks/h_stack.stories.tsx +104 -59
  298. package/src/stacks/h_stack.tsx +2 -2
  299. package/src/stacks/spacer.tsx +2 -2
  300. package/src/stacks/story_components/circle.tsx +2 -2
  301. package/src/stacks/story_components/picture_placeholder.tsx +2 -2
  302. package/src/stacks/story_components/rect.tsx +2 -2
  303. package/src/stacks/v_collapsible_box.tsx +2 -2
  304. package/src/stacks/v_stack.stories.tsx +91 -10
  305. package/src/stacks/v_stack.tsx +2 -2
  306. package/src/stacks/z_stack.stories.tsx +9 -1
  307. package/src/stacks/z_stack.tsx +2 -2
  308. package/src/surfaces/alert/alert.stories.tsx +4 -4
  309. package/src/surfaces/alert/alert.tsx +2 -2
  310. package/src/surfaces/card/card.tsx +2 -2
  311. package/src/surfaces/confirm/confirm.stories.tsx +4 -4
  312. package/src/surfaces/confirm/confirm.tsx +3 -6
  313. package/src/surfaces/drawers/__stories__/drawers.stories.tsx +1 -1
  314. package/src/surfaces/drawers/drawer_bottom/drawer_bottom.tsx +2 -2
  315. package/src/surfaces/drawers/drawer_end/drawer_end.tsx +2 -2
  316. package/src/surfaces/drawers/drawer_start/drawer_start.tsx +2 -2
  317. package/src/surfaces/drawers/drawer_top/drawer_top.tsx +2 -2
  318. package/src/surfaces/modal/__stories__/modal.stories.tsx +54 -0
  319. package/src/surfaces/modal/modal.module.css +2 -1
  320. package/src/surfaces/modal/modal.tsx +9 -6
  321. package/src/surfaces/page/h_page.tsx +2 -2
  322. package/src/surfaces/page/v_page.tsx +2 -2
  323. package/src/surfaces/panel/h_panel.tsx +3 -9
  324. package/src/surfaces/panel/v_panel.tsx +3 -3
  325. package/src/surfaces/popover/popover.tsx +2 -2
  326. package/src/surfaces/window/window.stories.tsx +1 -1
  327. package/src/surfaces/window/window.tsx +2 -6
  328. package/src/themes/index.ts +0 -2
  329. package/src/themes/stories/themes.stories.tsx +1 -1
  330. package/src/themes/themes/ergo/ergo_theme.css +70 -0
  331. package/src/tokens/badge/badge.stories.tsx +6 -6
  332. package/src/tokens/badge/badge.tsx +3 -3
  333. package/src/tokens/bubble/bubble.stories.tsx +16 -9
  334. package/src/tokens/bubble/bubble.tsx +2 -2
  335. package/src/tokens/chip/chip.stories.tsx +1 -1
  336. package/src/tokens/chip/chip.tsx +2 -2
  337. package/src/typography/body_text/body_text.tsx +2 -2
  338. package/src/typography/callout/callout.tsx +2 -2
  339. package/src/typography/caption/caption.tsx +2 -2
  340. package/src/typography/footnote/footnote.tsx +2 -2
  341. package/src/typography/headline/headline.tsx +2 -2
  342. package/src/typography/subheadline/subheadline.tsx +2 -2
  343. package/src/typography/title/title.tsx +2 -2
  344. package/src/typography/typography-showcase.stories.tsx +2 -2
  345. package/src/utils/click_away_listener.stories.tsx +21 -11
  346. package/src/utils/responsive/responsive_renderer.stories.tsx +7 -7
  347. package/src/utils/scroll_away_listener.stories.tsx +11 -1
  348. package/src/surfaces/modal/modal.stories.tsx +0 -15
@@ -1,6 +1,6 @@
1
1
  import { jsxs as g, jsx as l } from "react/jsx-runtime";
2
2
  import y, { useRef as k } from "react";
3
- import o from "classnames";
3
+ import { clsx as o } from "clsx";
4
4
  import "../../utils/focus_redirect.js";
5
5
  import "../../utils/click_away_listener.js";
6
6
  import "../../utils/scroll_away_listener.js";
@@ -22,8 +22,8 @@ const O = y.forwardRef(function({
22
22
  inputRef: b,
23
23
  unitRef: x,
24
24
  disabled: c,
25
- ...N
26
- }, R) {
25
+ ...R
26
+ }, N) {
27
27
  const a = k(null), S = E(b, a);
28
28
  function I(e, u) {
29
29
  if (u == null)
@@ -41,10 +41,10 @@ const O = y.forwardRef(function({
41
41
  return /* @__PURE__ */ g(
42
42
  V,
43
43
  {
44
- ref: R,
44
+ ref: N,
45
45
  className: o(s["unit-input"], "unit-input"),
46
46
  height: "auto",
47
- ...N,
47
+ ...R,
48
48
  children: [
49
49
  /* @__PURE__ */ l(w, { width: "flex", children: /* @__PURE__ */ l(
50
50
  h,
@@ -1 +1 @@
1
- {"version":3,"file":"unit_input.js","sources":["../../../src/inputs/unit_input/unit_input.tsx"],"sourcesContent":["import React, { useRef } from 'react';\nimport classNames from 'classnames';\nimport { useForkRef } from '../../utils/index.js';\nimport { HStack, type HStackProps } from '../../stacks/h_stack.js';\nimport { Input } from '../input/input.js';\nimport { Select } from '../select/select.js';\nimport { OptionProps } from '../options/option.js';\nimport styles from './unit_input.module.css';\n\nimport { ZStack } from '../../stacks/z_stack.js';\n\nfunction getDisplayValue(value: string) {\n return value\n .replace(/[^.\\d-]/g, '') // Remove invalid characters\n .replace(/(?!^)-/g, '') // Ensure `-` only at the start\n .replace(/(\\..*?)\\.+/g, '$1'); // Allow only one dot\n}\n\nexport interface UnitInputProps extends Omit<HStackProps, 'onChange' | 'children'> {\n value?: number | null;\n unit?: string;\n children: React.ReactElement<OptionProps> | React.ReactElement<OptionProps>[];\n onChange?: (value: number | null, unit: string) => void;\n inputRef?: React.Ref<HTMLInputElement>;\n unitRef?: React.Ref<HTMLButtonElement>;\n disabled?: boolean;\n}\n\nexport const UnitInput = React.forwardRef(function UnitInput(\n {\n value,\n unit,\n children,\n onChange,\n inputRef,\n unitRef,\n disabled,\n ...props\n }: UnitInputProps,\n ref: React.Ref<HTMLElement>\n) {\n const internalInputRef = useRef<HTMLInputElement>(null);\n const forkedInputRef = useForkRef(inputRef, internalInputRef);\n\n function valueHandler(value: string, event?: React.ChangeEvent<HTMLInputElement>) {\n if (event == null) {\n return;\n }\n\n const input = event.currentTarget;\n const cursorPosition = input.selectionStart || 0;\n const displayValue = getDisplayValue(value);\n const potentialValue = Number(displayValue);\n\n input.value = displayValue;\n\n if (displayValue.length < value.length) {\n input.setSelectionRange(cursorPosition - 1, cursorPosition - 1);\n }\n\n if (displayValue === '') {\n onChange && onChange(null, unit || '');\n } else if (!isNaN(potentialValue)) {\n onChange && onChange(potentialValue, unit || '');\n }\n }\n\n function unitHandler(unit: string) {\n const input = internalInputRef.current;\n if (input == null) {\n return;\n }\n\n const potentialValue = Number(input.value);\n if (isNaN(potentialValue)) {\n onChange && onChange(null, unit);\n } else {\n onChange && onChange(potentialValue, unit);\n }\n }\n\n return (\n <HStack\n ref={ref}\n className={classNames(styles['unit-input'], 'unit-input')}\n height=\"auto\"\n {...props}\n >\n <ZStack width=\"flex\">\n <Input\n className={classNames(styles['unit-input-number'], 'unit-input-number')}\n ref={forkedInputRef}\n onChange={valueHandler}\n disabled={disabled}\n style={{\n borderEndEndRadius: 0,\n borderStartEndRadius: 0,\n textAlign: 'start',\n }}\n />\n </ZStack>\n <Select\n className={classNames(styles['unit-input-select'], 'unit-input-select')}\n ref={unitRef}\n width=\"auto\"\n value={unit}\n onChange={unitHandler}\n disabled={disabled}\n style={{ borderStartStartRadius: 0, borderEndStartRadius: 0 }}\n >\n {children}\n </Select>\n </HStack>\n );\n});\n"],"names":["getDisplayValue","value","UnitInput","React","unit","children","onChange","inputRef","unitRef","disabled","props","ref","internalInputRef","useRef","forkedInputRef","useForkRef","valueHandler","event","input","cursorPosition","displayValue","potentialValue","unitHandler","jsxs","HStack","classNames","styles","jsx","ZStack","Input","Select"],"mappings":";;;;;;;;;;;;;AAWA,SAASA,EAAgBC,GAAe;AACtC,SAAOA,EACJ,QAAQ,YAAY,EAAE,EACtB,QAAQ,WAAW,EAAE,EACrB,QAAQ,eAAe,IAAI;AAChC;AAYO,MAAMC,IAAYC,EAAM,WAAW,SACxC;AAAA,EACE,OAAAF;AAAA,EACA,MAAAG;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,SAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACL,GACAC,GACA;AACA,QAAMC,IAAmBC,EAAyB,IAAI,GAChDC,IAAiBC,EAAWR,GAAUK,CAAgB;AAE5D,WAASI,EAAaf,GAAegB,GAA6C;AAChF,QAAIA,KAAS;AACX;AAGF,UAAMC,IAAQD,EAAM,eACdE,IAAiBD,EAAM,kBAAkB,GACzCE,IAAepB,EAAgBC,CAAK,GACpCoB,IAAiB,OAAOD,CAAY;AAE1C,IAAAF,EAAM,QAAQE,GAEVA,EAAa,SAASnB,EAAM,UAC9BiB,EAAM,kBAAkBC,IAAiB,GAAGA,IAAiB,CAAC,GAG5DC,MAAiB,KACnBd,KAAYA,EAAS,MAAMF,KAAQ,EAAE,IAC3B,MAAMiB,CAAc,KAC9Bf,KAAYA,EAASe,GAAgBjB,KAAQ,EAAE;AAAA,EAEnD;AAEA,WAASkB,EAAYlB,GAAc;AACjC,UAAMc,IAAQN,EAAiB;AAC/B,QAAIM,KAAS;AACX;AAGF,UAAMG,IAAiB,OAAOH,EAAM,KAAK;AACzC,IAAI,MAAMG,CAAc,IACtBf,KAAYA,EAAS,MAAMF,CAAI,IAE/BE,KAAYA,EAASe,GAAgBjB,CAAI;AAAA,EAE7C;AAEA,SACE,gBAAAmB;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,KAAAb;AAAA,MACA,WAAWc,EAAWC,EAAO,YAAY,GAAG,YAAY;AAAA,MACxD,QAAO;AAAA,MACN,GAAGhB;AAAA,MAEJ,UAAA;AAAA,QAAA,gBAAAiB,EAACC,GAAA,EAAO,OAAM,QACZ,UAAA,gBAAAD;AAAA,UAACE;AAAA,UAAA;AAAA,YACC,WAAWJ,EAAWC,EAAO,mBAAmB,GAAG,mBAAmB;AAAA,YACtE,KAAKZ;AAAA,YACL,UAAUE;AAAA,YACV,UAAAP;AAAA,YACA,OAAO;AAAA,cACL,oBAAoB;AAAA,cACpB,sBAAsB;AAAA,cACtB,WAAW;AAAA,YAAA;AAAA,UACb;AAAA,QAAA,GAEJ;AAAA,QACA,gBAAAkB;AAAA,UAACG;AAAA,UAAA;AAAA,YACC,WAAWL,EAAWC,EAAO,mBAAmB,GAAG,mBAAmB;AAAA,YACtE,KAAKlB;AAAA,YACL,OAAM;AAAA,YACN,OAAOJ;AAAA,YACP,UAAUkB;AAAA,YACV,UAAAb;AAAA,YACA,OAAO,EAAE,wBAAwB,GAAG,sBAAsB,EAAA;AAAA,YAEzD,UAAAJ;AAAA,UAAA;AAAA,QAAA;AAAA,MACH;AAAA,IAAA;AAAA,EAAA;AAGN,CAAC;"}
1
+ {"version":3,"file":"unit_input.js","sources":["../../../src/inputs/unit_input/unit_input.tsx"],"sourcesContent":["import React, { useRef } from 'react';\nimport { clsx } from 'clsx';\nimport { useForkRef } from '../../utils/index.js';\nimport { HStack, type HStackProps } from '../../stacks/h_stack.js';\nimport { Input } from '../input/input.js';\nimport { Select } from '../select/select.js';\nimport { OptionProps } from '../options/option.js';\nimport styles from './unit_input.module.css';\n\nimport { ZStack } from '../../stacks/z_stack.js';\n\nfunction getDisplayValue(value: string) {\n return value\n .replace(/[^.\\d-]/g, '') // Remove invalid characters\n .replace(/(?!^)-/g, '') // Ensure `-` only at the start\n .replace(/(\\..*?)\\.+/g, '$1'); // Allow only one dot\n}\n\nexport interface UnitInputProps extends Omit<HStackProps, 'onChange' | 'children'> {\n value?: number | null;\n unit?: string;\n children: React.ReactElement<OptionProps> | React.ReactElement<OptionProps>[];\n onChange?: (value: number | null, unit: string) => void;\n inputRef?: React.Ref<HTMLInputElement>;\n unitRef?: React.Ref<HTMLButtonElement>;\n disabled?: boolean;\n}\n\nexport const UnitInput = React.forwardRef(function UnitInput(\n {\n value,\n unit,\n children,\n onChange,\n inputRef,\n unitRef,\n disabled,\n ...props\n }: UnitInputProps,\n ref: React.Ref<HTMLElement>\n) {\n const internalInputRef = useRef<HTMLInputElement>(null);\n const forkedInputRef = useForkRef(inputRef, internalInputRef);\n\n function valueHandler(value: string, event?: React.ChangeEvent<HTMLInputElement>) {\n if (event == null) {\n return;\n }\n\n const input = event.currentTarget;\n const cursorPosition = input.selectionStart || 0;\n const displayValue = getDisplayValue(value);\n const potentialValue = Number(displayValue);\n\n input.value = displayValue;\n\n if (displayValue.length < value.length) {\n input.setSelectionRange(cursorPosition - 1, cursorPosition - 1);\n }\n\n if (displayValue === '') {\n onChange && onChange(null, unit || '');\n } else if (!isNaN(potentialValue)) {\n onChange && onChange(potentialValue, unit || '');\n }\n }\n\n function unitHandler(unit: string) {\n const input = internalInputRef.current;\n if (input == null) {\n return;\n }\n\n const potentialValue = Number(input.value);\n if (isNaN(potentialValue)) {\n onChange && onChange(null, unit);\n } else {\n onChange && onChange(potentialValue, unit);\n }\n }\n\n return (\n <HStack\n ref={ref}\n className={clsx(styles['unit-input'], 'unit-input')}\n height=\"auto\"\n {...props}\n >\n <ZStack width=\"flex\">\n <Input\n className={clsx(styles['unit-input-number'], 'unit-input-number')}\n ref={forkedInputRef}\n onChange={valueHandler}\n disabled={disabled}\n style={{\n borderEndEndRadius: 0,\n borderStartEndRadius: 0,\n textAlign: 'start',\n }}\n />\n </ZStack>\n <Select\n className={clsx(styles['unit-input-select'], 'unit-input-select')}\n ref={unitRef}\n width=\"auto\"\n value={unit}\n onChange={unitHandler}\n disabled={disabled}\n style={{ borderStartStartRadius: 0, borderEndStartRadius: 0 }}\n >\n {children}\n </Select>\n </HStack>\n );\n});\n"],"names":["getDisplayValue","value","UnitInput","React","unit","children","onChange","inputRef","unitRef","disabled","props","ref","internalInputRef","useRef","forkedInputRef","useForkRef","valueHandler","event","input","cursorPosition","displayValue","potentialValue","unitHandler","jsxs","HStack","clsx","styles","jsx","ZStack","Input","Select"],"mappings":";;;;;;;;;;;;;AAWA,SAASA,EAAgBC,GAAe;AACtC,SAAOA,EACJ,QAAQ,YAAY,EAAE,EACtB,QAAQ,WAAW,EAAE,EACrB,QAAQ,eAAe,IAAI;AAChC;AAYO,MAAMC,IAAYC,EAAM,WAAW,SACxC;AAAA,EACE,OAAAF;AAAA,EACA,MAAAG;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,SAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACL,GACAC,GACA;AACA,QAAMC,IAAmBC,EAAyB,IAAI,GAChDC,IAAiBC,EAAWR,GAAUK,CAAgB;AAE5D,WAASI,EAAaf,GAAegB,GAA6C;AAChF,QAAIA,KAAS;AACX;AAGF,UAAMC,IAAQD,EAAM,eACdE,IAAiBD,EAAM,kBAAkB,GACzCE,IAAepB,EAAgBC,CAAK,GACpCoB,IAAiB,OAAOD,CAAY;AAE1C,IAAAF,EAAM,QAAQE,GAEVA,EAAa,SAASnB,EAAM,UAC9BiB,EAAM,kBAAkBC,IAAiB,GAAGA,IAAiB,CAAC,GAG5DC,MAAiB,KACnBd,KAAYA,EAAS,MAAMF,KAAQ,EAAE,IAC3B,MAAMiB,CAAc,KAC9Bf,KAAYA,EAASe,GAAgBjB,KAAQ,EAAE;AAAA,EAEnD;AAEA,WAASkB,EAAYlB,GAAc;AACjC,UAAMc,IAAQN,EAAiB;AAC/B,QAAIM,KAAS;AACX;AAGF,UAAMG,IAAiB,OAAOH,EAAM,KAAK;AACzC,IAAI,MAAMG,CAAc,IACtBf,KAAYA,EAAS,MAAMF,CAAI,IAE/BE,KAAYA,EAASe,GAAgBjB,CAAI;AAAA,EAE7C;AAEA,SACE,gBAAAmB;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,KAAAb;AAAA,MACA,WAAWc,EAAKC,EAAO,YAAY,GAAG,YAAY;AAAA,MAClD,QAAO;AAAA,MACN,GAAGhB;AAAA,MAEJ,UAAA;AAAA,QAAA,gBAAAiB,EAACC,GAAA,EAAO,OAAM,QACZ,UAAA,gBAAAD;AAAA,UAACE;AAAA,UAAA;AAAA,YACC,WAAWJ,EAAKC,EAAO,mBAAmB,GAAG,mBAAmB;AAAA,YAChE,KAAKZ;AAAA,YACL,UAAUE;AAAA,YACV,UAAAP;AAAA,YACA,OAAO;AAAA,cACL,oBAAoB;AAAA,cACpB,sBAAsB;AAAA,cACtB,WAAW;AAAA,YAAA;AAAA,UACb;AAAA,QAAA,GAEJ;AAAA,QACA,gBAAAkB;AAAA,UAACG;AAAA,UAAA;AAAA,YACC,WAAWL,EAAKC,EAAO,mBAAmB,GAAG,mBAAmB;AAAA,YAChE,KAAKlB;AAAA,YACL,OAAM;AAAA,YACN,OAAOJ;AAAA,YACP,UAAUkB;AAAA,YACV,UAAAb;AAAA,YACA,OAAO,EAAE,wBAAwB,GAAG,sBAAsB,EAAA;AAAA,YAEzD,UAAAJ;AAAA,UAAA;AAAA,QAAA;AAAA,MACH;AAAA,IAAA;AAAA,EAAA;AAGN,CAAC;"}
@@ -1,16 +1,16 @@
1
- import { jsx as m } from "react/jsx-runtime";
2
- import { HStack as a } from "../../stacks/h_stack.js";
3
- import c from "react";
4
- import f from "classnames";
5
- import '../../h_body.css';const y = "_h-body_d56f4f1", e = { "h-body": y }, l = c.forwardRef(function({ children: o, className: t, overflowX: r = "auto", ...s }, d) {
6
- return /* @__PURE__ */ m(
7
- a,
1
+ import { jsx as c } from "react/jsx-runtime";
2
+ import { HStack as f } from "../../stacks/h_stack.js";
3
+ import m from "react";
4
+ import { clsx as y } from "clsx";
5
+ import '../../h_body.css';const a = "_h-body_d56f4f1", n = { "h-body": a }, l = m.forwardRef(function({ children: o, className: t, overflowX: r = "auto", ...d }, s) {
6
+ return /* @__PURE__ */ c(
7
+ f,
8
8
  {
9
- ref: d,
9
+ ref: s,
10
10
  as: "div",
11
11
  overflowX: r,
12
- className: f(e["h-body"], t, "tcn-h-body", "body"),
13
- ...s,
12
+ className: y(n["h-body"], t, "tcn-h-body", "body"),
13
+ ...d,
14
14
  children: o
15
15
  }
16
16
  );
@@ -1 +1 @@
1
- {"version":3,"file":"h_body.js","sources":["../../../src/layouts/body/h_body.tsx"],"sourcesContent":["import { HStack, type HStackProps } from '../../stacks/h_stack.js';\nimport React from 'react';\nimport classNames from 'classnames';\nimport styles from './h_body.module.css';\n\nexport interface HBodyProps extends Omit<HStackProps, 'as'> {}\n\nexport const HBody = React.forwardRef<HTMLElement, HBodyProps>(function HBody(\n { children, className, overflowX = 'auto', ...props }: HBodyProps,\n ref\n) {\n return (\n <HStack\n ref={ref}\n as=\"div\"\n overflowX={overflowX}\n className={classNames(styles['h-body'], className, 'tcn-h-body', 'body')}\n {...props}\n >\n {children}\n </HStack>\n );\n});\n"],"names":["HBody","React","children","className","overflowX","props","ref","jsx","HStack","classNames","styles"],"mappings":";;;;kDAOaA,IAAQC,EAAM,WAAoC,SAC7D,EAAE,UAAAC,GAAU,WAAAC,GAAW,WAAAC,IAAY,QAAQ,GAAGC,EAAA,GAC9CC,GACA;AACA,SACE,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,KAAAF;AAAA,MACA,IAAG;AAAA,MACH,WAAAF;AAAA,MACA,WAAWK,EAAWC,EAAO,QAAQ,GAAGP,GAAW,cAAc,MAAM;AAAA,MACtE,GAAGE;AAAA,MAEH,UAAAH;AAAA,IAAA;AAAA,EAAA;AAGP,CAAC;"}
1
+ {"version":3,"file":"h_body.js","sources":["../../../src/layouts/body/h_body.tsx"],"sourcesContent":["import { HStack, type HStackProps } from '../../stacks/h_stack.js';\nimport React from 'react';\nimport { clsx } from 'clsx';\nimport styles from './h_body.module.css';\n\nexport interface HBodyProps extends Omit<HStackProps, 'as'> {}\n\nexport const HBody = React.forwardRef<HTMLElement, HBodyProps>(function HBody(\n { children, className, overflowX = 'auto', ...props }: HBodyProps,\n ref\n) {\n return (\n <HStack\n ref={ref}\n as=\"div\"\n overflowX={overflowX}\n className={clsx(styles['h-body'], className, 'tcn-h-body', 'body')}\n {...props}\n >\n {children}\n </HStack>\n );\n});\n"],"names":["HBody","React","children","className","overflowX","props","ref","jsx","HStack","clsx","styles"],"mappings":";;;;kDAOaA,IAAQC,EAAM,WAAoC,SAC7D,EAAE,UAAAC,GAAU,WAAAC,GAAW,WAAAC,IAAY,QAAQ,GAAGC,EAAA,GAC9CC,GACA;AACA,SACE,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,KAAAF;AAAA,MACA,IAAG;AAAA,MACH,WAAAF;AAAA,MACA,WAAWK,EAAKC,EAAO,QAAQ,GAAGP,GAAW,cAAc,MAAM;AAAA,MAChE,GAAGE;AAAA,MAEH,UAAAH;AAAA,IAAA;AAAA,EAAA;AAGP,CAAC;"}
@@ -1,16 +1,16 @@
1
- import { jsx as c } from "react/jsx-runtime";
1
+ import { jsx as s } from "react/jsx-runtime";
2
2
  import { VStack as m } from "../../stacks/v_stack.js";
3
- import a from "react";
4
- import y from "classnames";
5
- import '../../v_body.css';const f = "_v-body_d8f1917", n = { "v-body": f }, l = a.forwardRef(function({ children: o, className: t, overflowY: r = "auto", ...s }, d) {
6
- return /* @__PURE__ */ c(
3
+ import y from "react";
4
+ import { clsx as f } from "clsx";
5
+ import '../../v_body.css';const n = "_v-body_d8f1917", a = { "v-body": n }, l = y.forwardRef(function({ children: o, className: t, overflowY: r = "auto", ...d }, c) {
6
+ return /* @__PURE__ */ s(
7
7
  m,
8
8
  {
9
- ref: d,
9
+ ref: c,
10
10
  as: "div",
11
11
  overflowY: r,
12
- className: y(n["v-body"], t, "tcn-body", "tcn-v-body"),
13
- ...s,
12
+ className: f(a["v-body"], t, "tcn-body", "tcn-v-body"),
13
+ ...d,
14
14
  children: o
15
15
  }
16
16
  );
@@ -1 +1 @@
1
- {"version":3,"file":"v_body.js","sources":["../../../src/layouts/body/v_body.tsx"],"sourcesContent":["import { VStack, type VStackProps } from '../../stacks/v_stack.js';\nimport React from 'react';\nimport classNames from 'classnames';\nimport styles from './v_body.module.css';\n\nexport interface VBodyProps extends Omit<VStackProps, 'as'> {}\n\nexport const VBody = React.forwardRef<HTMLElement, VBodyProps>(function VBody(\n { children, className, overflowY = 'auto', ...props }: VBodyProps,\n ref\n) {\n return (\n <VStack\n ref={ref}\n as=\"div\"\n overflowY={overflowY}\n className={classNames(styles['v-body'], className, 'tcn-body', 'tcn-v-body')}\n {...props}\n >\n {children}\n </VStack>\n );\n});\n"],"names":["VBody","React","children","className","overflowY","props","ref","jsx","VStack","classNames","styles"],"mappings":";;;;kDAOaA,IAAQC,EAAM,WAAoC,SAC7D,EAAE,UAAAC,GAAU,WAAAC,GAAW,WAAAC,IAAY,QAAQ,GAAGC,EAAA,GAC9CC,GACA;AACA,SACE,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,KAAAF;AAAA,MACA,IAAG;AAAA,MACH,WAAAF;AAAA,MACA,WAAWK,EAAWC,EAAO,QAAQ,GAAGP,GAAW,YAAY,YAAY;AAAA,MAC1E,GAAGE;AAAA,MAEH,UAAAH;AAAA,IAAA;AAAA,EAAA;AAGP,CAAC;"}
1
+ {"version":3,"file":"v_body.js","sources":["../../../src/layouts/body/v_body.tsx"],"sourcesContent":["import { VStack, type VStackProps } from '../../stacks/v_stack.js';\nimport React from 'react';\nimport { clsx } from 'clsx';\nimport styles from './v_body.module.css';\n\nexport interface VBodyProps extends Omit<VStackProps, 'as'> {}\n\nexport const VBody = React.forwardRef<HTMLElement, VBodyProps>(function VBody(\n { children, className, overflowY = 'auto', ...props }: VBodyProps,\n ref\n) {\n return (\n <VStack\n ref={ref}\n as=\"div\"\n overflowY={overflowY}\n className={clsx(styles['v-body'], className, 'tcn-body', 'tcn-v-body')}\n {...props}\n >\n {children}\n </VStack>\n );\n});\n"],"names":["VBody","React","children","className","overflowY","props","ref","jsx","VStack","clsx","styles"],"mappings":";;;;kDAOaA,IAAQC,EAAM,WAAoC,SAC7D,EAAE,UAAAC,GAAU,WAAAC,GAAW,WAAAC,IAAY,QAAQ,GAAGC,EAAA,GAC9CC,GACA;AACA,SACE,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,KAAAF;AAAA,MACA,IAAG;AAAA,MACH,WAAAF;AAAA,MACA,WAAWK,EAAKC,EAAO,QAAQ,GAAGP,GAAW,YAAY,YAAY;AAAA,MACpE,GAAGE;AAAA,MAEH,UAAAH;AAAA,IAAA;AAAA,EAAA;AAGP,CAAC;"}
@@ -1,39 +1,39 @@
1
- import { jsx as n } from "react/jsx-runtime";
2
- import t from "classnames";
3
- import N from "react";
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import { clsx as t } from "clsx";
3
+ import x from "react";
4
4
  import { Box as b } from "../../stacks/box/box.js";
5
5
  import { VStack as i } from "../../stacks/v_stack.js";
6
- import '../../column.css';const x = "_column_ce05462", C = "_column-stack_80b940b", r = { column: x, "column-stack": C }, z = N.forwardRef(function({
6
+ import '../../column.css';const C = "_column_ce05462", N = "_column-stack_80b940b", r = { column: C, "column-stack": N }, z = x.forwardRef(function({
7
7
  children: l,
8
- width: a,
9
- height: u,
8
+ width: u,
9
+ height: a,
10
10
  minWidth: o,
11
11
  maxWidth: c,
12
- minHeight: s,
13
- maxHeight: m,
12
+ minHeight: m,
13
+ maxHeight: n,
14
14
  hAlign: e,
15
15
  vAlign: f = "start",
16
16
  className: k,
17
17
  ...p
18
18
  }, _) {
19
- return /* @__PURE__ */ n(
19
+ return /* @__PURE__ */ s(
20
20
  b,
21
21
  {
22
- width: a,
23
- height: u,
22
+ width: u,
23
+ height: a,
24
24
  minWidth: o,
25
25
  maxWidth: c,
26
- minHeight: s,
27
- maxHeight: m,
26
+ minHeight: m,
27
+ maxHeight: n,
28
28
  className: t(k, r.column, "column"),
29
29
  ...p,
30
- children: /* @__PURE__ */ n(
30
+ children: /* @__PURE__ */ s(
31
31
  i,
32
32
  {
33
33
  minWidth: o,
34
34
  maxWidth: c,
35
- minHeight: s,
36
- maxHeight: m,
35
+ minHeight: m,
36
+ maxHeight: n,
37
37
  hAlign: e,
38
38
  vAlign: f,
39
39
  ref: _,
@@ -1 +1 @@
1
- {"version":3,"file":"column.js","sources":["../../../src/layouts/column/column.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport React from 'react';\nimport styles from './column.module.css';\nimport { Box, type BoxProps } from '../../stacks/box/box.js';\nimport { Alignment } from '../../stacks/types/alignment.js';\nimport { VStack } from '../../stacks/v_stack.js';\n\nexport interface ColumnProps extends Omit<BoxProps, 'as' | 'children'> {\n hAlign?: Alignment;\n vAlign?: Alignment;\n children?: React.ReactNode;\n}\n\nexport const Column = React.forwardRef<HTMLElement, ColumnProps>(function Column(\n {\n children,\n width,\n height,\n minWidth,\n maxWidth,\n minHeight,\n maxHeight,\n hAlign,\n vAlign = 'start',\n className,\n ...props\n }: ColumnProps,\n ref\n) {\n return (\n <Box\n width={width}\n height={height}\n minWidth={minWidth}\n maxWidth={maxWidth}\n minHeight={minHeight}\n maxHeight={maxHeight}\n className={classNames(className, styles['column'], 'column')}\n {...props}\n >\n <VStack\n minWidth={minWidth}\n maxWidth={maxWidth}\n minHeight={minHeight}\n maxHeight={maxHeight}\n hAlign={hAlign}\n vAlign={vAlign}\n ref={ref}\n as=\"section\"\n className={classNames(styles['column-stack'], 'column-stack')}\n zIndex={0}\n >\n {children}\n </VStack>\n </Box>\n );\n});\n"],"names":["Column","React","children","width","height","minWidth","maxWidth","minHeight","maxHeight","hAlign","vAlign","className","props","ref","jsx","Box","classNames","styles","VStack"],"mappings":";;;;;gGAaaA,IAASC,EAAM,WAAqC,SAC/D;AAAA,EACE,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,QAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,WAAAC;AAAA,EACA,QAAAC;AAAA,EACA,QAAAC,IAAS;AAAA,EACT,WAAAC;AAAA,EACA,GAAGC;AACL,GACAC,GACA;AACA,SACE,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,OAAAZ;AAAA,MACA,QAAAC;AAAA,MACA,UAAAC;AAAA,MACA,UAAAC;AAAA,MACA,WAAAC;AAAA,MACA,WAAAC;AAAA,MACA,WAAWQ,EAAWL,GAAWM,EAAO,QAAW,QAAQ;AAAA,MAC1D,GAAGL;AAAA,MAEJ,UAAA,gBAAAE;AAAA,QAACI;AAAA,QAAA;AAAA,UACC,UAAAb;AAAA,UACA,UAAAC;AAAA,UACA,WAAAC;AAAA,UACA,WAAAC;AAAA,UACA,QAAAC;AAAA,UACA,QAAAC;AAAA,UACA,KAAAG;AAAA,UACA,IAAG;AAAA,UACH,WAAWG,EAAWC,EAAO,cAAc,GAAG,cAAc;AAAA,UAC5D,QAAQ;AAAA,UAEP,UAAAf;AAAA,QAAA;AAAA,MAAA;AAAA,IACH;AAAA,EAAA;AAGN,CAAC;"}
1
+ {"version":3,"file":"column.js","sources":["../../../src/layouts/column/column.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport React from 'react';\nimport styles from './column.module.css';\nimport { Box, type BoxProps } from '../../stacks/box/box.js';\nimport { Alignment } from '../../stacks/types/alignment.js';\nimport { VStack } from '../../stacks/v_stack.js';\n\nexport interface ColumnProps extends Omit<BoxProps, 'as' | 'children'> {\n hAlign?: Alignment;\n vAlign?: Alignment;\n children?: React.ReactNode;\n}\n\nexport const Column = React.forwardRef<HTMLElement, ColumnProps>(function Column(\n {\n children,\n width,\n height,\n minWidth,\n maxWidth,\n minHeight,\n maxHeight,\n hAlign,\n vAlign = 'start',\n className,\n ...props\n }: ColumnProps,\n ref\n) {\n return (\n <Box\n width={width}\n height={height}\n minWidth={minWidth}\n maxWidth={maxWidth}\n minHeight={minHeight}\n maxHeight={maxHeight}\n className={clsx(className, styles['column'], 'column')}\n {...props}\n >\n <VStack\n minWidth={minWidth}\n maxWidth={maxWidth}\n minHeight={minHeight}\n maxHeight={maxHeight}\n hAlign={hAlign}\n vAlign={vAlign}\n ref={ref}\n as=\"section\"\n className={clsx(styles['column-stack'], 'column-stack')}\n zIndex={0}\n >\n {children}\n </VStack>\n </Box>\n );\n});\n"],"names":["Column","React","children","width","height","minWidth","maxWidth","minHeight","maxHeight","hAlign","vAlign","className","props","ref","jsx","Box","clsx","styles","VStack"],"mappings":";;;;;gGAaaA,IAASC,EAAM,WAAqC,SAC/D;AAAA,EACE,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,QAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,WAAAC;AAAA,EACA,QAAAC;AAAA,EACA,QAAAC,IAAS;AAAA,EACT,WAAAC;AAAA,EACA,GAAGC;AACL,GACAC,GACA;AACA,SACE,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,OAAAZ;AAAA,MACA,QAAAC;AAAA,MACA,UAAAC;AAAA,MACA,UAAAC;AAAA,MACA,WAAAC;AAAA,MACA,WAAAC;AAAA,MACA,WAAWQ,EAAKL,GAAWM,EAAO,QAAW,QAAQ;AAAA,MACpD,GAAGL;AAAA,MAEJ,UAAA,gBAAAE;AAAA,QAACI;AAAA,QAAA;AAAA,UACC,UAAAb;AAAA,UACA,UAAAC;AAAA,UACA,WAAAC;AAAA,UACA,WAAAC;AAAA,UACA,QAAAC;AAAA,UACA,QAAAC;AAAA,UACA,KAAAG;AAAA,UACA,IAAG;AAAA,UACH,WAAWG,EAAKC,EAAO,cAAc,GAAG,cAAc;AAAA,UACtD,QAAQ;AAAA,UAEP,UAAAf;AAAA,QAAA;AAAA,MAAA;AAAA,IACH;AAAA,EAAA;AAGN,CAAC;"}
@@ -1,10 +1,10 @@
1
1
  import { jsxs as h, jsx as f } from "react/jsx-runtime";
2
- import r from "classnames";
3
- import '../../divider.css';const p = "_divider_af0a0c6", _ = "_divider-line_cae0189", n = { divider: p, "divider-line": _ }, u = ({
2
+ import { clsx as r } from "clsx";
3
+ import '../../divider.css';const p = "_divider_af0a0c6", x = "_divider-line_cae0189", n = { divider: p, "divider-line": x }, u = ({
4
4
  emphasis: i = "normal",
5
- thickness: e = "sm",
6
- length: d = "full",
7
- style: x,
5
+ thickness: d = "sm",
6
+ length: e = "full",
7
+ style: _,
8
8
  horizontal: s,
9
9
  vertical: y,
10
10
  width: l,
@@ -21,8 +21,8 @@ import '../../divider.css';const p = "_divider_af0a0c6", _ = "_divider-line_cae0
21
21
  "div",
22
22
  {
23
23
  "data-emphasis": i,
24
- "data-thickness": e,
25
- "data-length": d,
24
+ "data-thickness": d,
25
+ "data-length": e,
26
26
  "data-orientation": a,
27
27
  className: r(n.divider, "divider", "tcn-divider", t),
28
28
  ...c,
@@ -31,8 +31,8 @@ import '../../divider.css';const p = "_divider_af0a0c6", _ = "_divider-line_cae0
31
31
  "div",
32
32
  {
33
33
  "data-emphasis": i,
34
- "data-thickness": e,
35
- "data-length": d,
34
+ "data-thickness": d,
35
+ "data-length": e,
36
36
  "data-orientation": a,
37
37
  style: m,
38
38
  className: r(
@@ -1 +1 @@
1
- {"version":3,"file":"divider.js","sources":["../../../src/layouts/divider/divider.tsx"],"sourcesContent":["import React, { type CSSProperties } from 'react';\nimport classnames from 'classnames';\nimport type { WithDetailedHTMLProps } from '../../stacks/types/as.js';\nimport type { Emphasis, Size } from '../../utils/index.js';\nimport styles from './divider.module.css';\n\nexport type DividerOrientation =\n | {\n horizontal?: boolean;\n vertical?: never;\n }\n | {\n horizontal?: never;\n vertical?: boolean;\n };\n\nexport interface DividerClasses {\n line?: string;\n}\n\nexport interface DividerProperties {\n width?: CSSProperties['width'];\n height?: CSSProperties['height'];\n}\n\nexport type DividerOwnProps = DividerOrientation &\n DividerProperties & {\n emphasis?: Emphasis;\n thickness?: Size;\n length?: Size | 'full';\n classes?: Partial<DividerClasses>;\n };\n\nexport type DividerProps = WithDetailedHTMLProps<DividerOwnProps, 'div'>;\n\nexport const Divider: React.FC<DividerProps> = ({\n emphasis = 'normal',\n thickness = 'sm',\n length = 'full',\n style,\n horizontal,\n vertical,\n width,\n height,\n className,\n children,\n ...props\n}) => {\n const orientation = horizontal ? 'horizontal' : 'vertical';\n\n const cssVariables = {\n '--divider-width': width,\n '--divider-height': height,\n } as CSSProperties;\n\n return (\n <div\n data-emphasis={emphasis}\n data-thickness={thickness}\n data-length={length}\n data-orientation={orientation}\n className={classnames(styles[`divider`], 'divider', 'tcn-divider', className)}\n {...props}\n >\n <div\n data-emphasis={emphasis}\n data-thickness={thickness}\n data-length={length}\n data-orientation={orientation}\n style={cssVariables}\n className={classnames(\n styles[`divider-line`],\n 'divider-line',\n 'tcn-divider-line',\n 'material',\n className\n )}\n />\n {children}\n </div>\n );\n};\n"],"names":["Divider","emphasis","thickness","length","style","horizontal","vertical","width","height","className","children","props","orientation","cssVariables","jsxs","classnames","styles","jsx"],"mappings":";;kGAmCaA,IAAkC,CAAC;AAAA,EAC9C,UAAAC,IAAW;AAAA,EACX,WAAAC,IAAY;AAAA,EACZ,QAAAC,IAAS;AAAA,EACT,OAAAC;AAAA,EACA,YAAAC;AAAA,EACA,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,QAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACL,MAAM;AACJ,QAAMC,IAAcP,IAAa,eAAe,YAE1CQ,IAAe;AAAA,IACnB,mBAAmBN;AAAA,IACnB,oBAAoBC;AAAA,EAAA;AAGtB,SACE,gBAAAM;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,iBAAeb;AAAA,MACf,kBAAgBC;AAAA,MAChB,eAAaC;AAAA,MACb,oBAAkBS;AAAA,MAClB,WAAWG,EAAWC,EAAO,SAAY,WAAW,eAAeP,CAAS;AAAA,MAC3E,GAAGE;AAAA,MAEJ,UAAA;AAAA,QAAA,gBAAAM;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,iBAAehB;AAAA,YACf,kBAAgBC;AAAA,YAChB,eAAaC;AAAA,YACb,oBAAkBS;AAAA,YAClB,OAAOC;AAAA,YACP,WAAWE;AAAAA,cACTC,EAAO,cAAc;AAAA,cACrB;AAAA,cACA;AAAA,cACA;AAAA,cACAP;AAAA,YAAA;AAAA,UACF;AAAA,QAAA;AAAA,QAEDC;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGP;"}
1
+ {"version":3,"file":"divider.js","sources":["../../../src/layouts/divider/divider.tsx"],"sourcesContent":["import React, { type CSSProperties } from 'react';\nimport { clsx } from 'clsx';\nimport type { WithDetailedHTMLProps } from '../../stacks/types/as.js';\nimport type { Emphasis, Size } from '../../utils/index.js';\nimport styles from './divider.module.css';\n\nexport type DividerOrientation =\n | {\n horizontal?: boolean;\n vertical?: never;\n }\n | {\n horizontal?: never;\n vertical?: boolean;\n };\n\nexport interface DividerClasses {\n line?: string;\n}\n\nexport interface DividerProperties {\n width?: CSSProperties['width'];\n height?: CSSProperties['height'];\n}\n\nexport type DividerOwnProps = DividerOrientation &\n DividerProperties & {\n emphasis?: Emphasis;\n thickness?: Size;\n length?: Size | 'full';\n classes?: Partial<DividerClasses>;\n };\n\nexport type DividerProps = WithDetailedHTMLProps<DividerOwnProps, 'div'>;\n\nexport const Divider: React.FC<DividerProps> = ({\n emphasis = 'normal',\n thickness = 'sm',\n length = 'full',\n style,\n horizontal,\n vertical,\n width,\n height,\n className,\n children,\n ...props\n}) => {\n const orientation = horizontal ? 'horizontal' : 'vertical';\n\n const cssVariables = {\n '--divider-width': width,\n '--divider-height': height,\n } as CSSProperties;\n\n return (\n <div\n data-emphasis={emphasis}\n data-thickness={thickness}\n data-length={length}\n data-orientation={orientation}\n className={clsx(styles[`divider`], 'divider', 'tcn-divider', className)}\n {...props}\n >\n <div\n data-emphasis={emphasis}\n data-thickness={thickness}\n data-length={length}\n data-orientation={orientation}\n style={cssVariables}\n className={clsx(\n styles[`divider-line`],\n 'divider-line',\n 'tcn-divider-line',\n 'material',\n className\n )}\n />\n {children}\n </div>\n );\n};\n"],"names":["Divider","emphasis","thickness","length","style","horizontal","vertical","width","height","className","children","props","orientation","cssVariables","jsxs","clsx","styles","jsx"],"mappings":";;kGAmCaA,IAAkC,CAAC;AAAA,EAC9C,UAAAC,IAAW;AAAA,EACX,WAAAC,IAAY;AAAA,EACZ,QAAAC,IAAS;AAAA,EACT,OAAAC;AAAA,EACA,YAAAC;AAAA,EACA,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,QAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACL,MAAM;AACJ,QAAMC,IAAcP,IAAa,eAAe,YAE1CQ,IAAe;AAAA,IACnB,mBAAmBN;AAAA,IACnB,oBAAoBC;AAAA,EAAA;AAGtB,SACE,gBAAAM;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,iBAAeb;AAAA,MACf,kBAAgBC;AAAA,MAChB,eAAaC;AAAA,MACb,oBAAkBS;AAAA,MAClB,WAAWG,EAAKC,EAAO,SAAY,WAAW,eAAeP,CAAS;AAAA,MACrE,GAAGE;AAAA,MAEJ,UAAA;AAAA,QAAA,gBAAAM;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,iBAAehB;AAAA,YACf,kBAAgBC;AAAA,YAChB,eAAaC;AAAA,YACb,oBAAkBS;AAAA,YAClB,OAAOC;AAAA,YACP,WAAWE;AAAA,cACTC,EAAO,cAAc;AAAA,cACrB;AAAA,cACA;AAAA,cACA;AAAA,cACAP;AAAA,YAAA;AAAA,UACF;AAAA,QAAA;AAAA,QAEDC;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGP;"}
@@ -1,12 +1,12 @@
1
- import { jsx as f } from "react/jsx-runtime";
2
- import c from "react";
3
- import m from "classnames";
1
+ import { jsx as c } from "react/jsx-runtime";
2
+ import s from "react";
3
+ import { clsx as m } from "clsx";
4
4
  import { HStack as n } from "../../stacks/h_stack.js";
5
- import '../../footer.css';const i = "_footer_4a43c3e", d = { footer: i }, x = c.forwardRef(function({ hierarchy: o = "secondary", size: r = "md", children: t, className: e, ...a }, s) {
6
- return /* @__PURE__ */ f(
5
+ import '../../footer.css';const i = "_footer_4a43c3e", d = { footer: i }, u = s.forwardRef(function({ hierarchy: o = "secondary", size: r = "md", children: t, className: e, ...a }, f) {
6
+ return /* @__PURE__ */ c(
7
7
  n,
8
8
  {
9
- ref: s,
9
+ ref: f,
10
10
  as: "footer",
11
11
  className: m(d.footer, e, "footer", "tcn-footer"),
12
12
  "data-hierarchy": o,
@@ -17,6 +17,6 @@ import '../../footer.css';const i = "_footer_4a43c3e", d = { footer: i }, x = c.
17
17
  );
18
18
  });
19
19
  export {
20
- x as Footer
20
+ u as Footer
21
21
  };
22
22
  //# sourceMappingURL=footer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"footer.js","sources":["../../../src/layouts/footer/footer.tsx"],"sourcesContent":["import React from 'react';\nimport classNames from 'classnames';\nimport { HStack, type HStackProps } from '../../stacks/h_stack.js';\nimport type { Hierarchy, Size } from '../../utils/index.js';\nimport styles from './footer.module.css';\n\nexport interface FooterProps extends Omit<HStackProps, 'as' | 'children'> {\n hierarchy?: Hierarchy;\n size?: Size;\n children?: React.ReactNode;\n}\n\nexport const Footer = React.forwardRef<HTMLElement, FooterProps>(function Footer(\n { hierarchy = 'secondary', size = 'md', children, className, ...props }: FooterProps,\n ref\n) {\n return (\n <HStack\n ref={ref}\n as=\"footer\"\n className={classNames(styles.footer, className, 'footer', 'tcn-footer')}\n data-hierarchy={hierarchy}\n data-size={size}\n {...props}\n >\n {children}\n </HStack>\n );\n});\n"],"names":["Footer","React","hierarchy","size","children","className","props","ref","jsx","HStack","classNames","styles"],"mappings":";;;;gDAYaA,IAASC,EAAM,WAAqC,SAC/D,EAAE,WAAAC,IAAY,aAAa,MAAAC,IAAO,MAAM,UAAAC,GAAU,WAAAC,GAAW,GAAGC,EAAA,GAChEC,GACA;AACA,SACE,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,KAAAF;AAAA,MACA,IAAG;AAAA,MACH,WAAWG,EAAWC,EAAO,QAAQN,GAAW,UAAU,YAAY;AAAA,MACtE,kBAAgBH;AAAA,MAChB,aAAWC;AAAA,MACV,GAAGG;AAAA,MAEH,UAAAF;AAAA,IAAA;AAAA,EAAA;AAGP,CAAC;"}
1
+ {"version":3,"file":"footer.js","sources":["../../../src/layouts/footer/footer.tsx"],"sourcesContent":["import React from 'react';\nimport { clsx } from 'clsx';\nimport { HStack, type HStackProps } from '../../stacks/h_stack.js';\nimport type { Hierarchy, Size } from '../../utils/index.js';\nimport styles from './footer.module.css';\n\nexport interface FooterProps extends Omit<HStackProps, 'as' | 'children'> {\n hierarchy?: Hierarchy;\n size?: Size;\n children?: React.ReactNode;\n}\n\nexport const Footer = React.forwardRef<HTMLElement, FooterProps>(function Footer(\n { hierarchy = 'secondary', size = 'md', children, className, ...props }: FooterProps,\n ref\n) {\n return (\n <HStack\n ref={ref}\n as=\"footer\"\n className={clsx(styles.footer, className, 'footer', 'tcn-footer')}\n data-hierarchy={hierarchy}\n data-size={size}\n {...props}\n >\n {children}\n </HStack>\n );\n});\n"],"names":["Footer","React","hierarchy","size","children","className","props","ref","jsx","HStack","clsx","styles"],"mappings":";;;;gDAYaA,IAASC,EAAM,WAAqC,SAC/D,EAAE,WAAAC,IAAY,aAAa,MAAAC,IAAO,MAAM,UAAAC,GAAU,WAAAC,GAAW,GAAGC,EAAA,GAChEC,GACA;AACA,SACE,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,KAAAF;AAAA,MACA,IAAG;AAAA,MACH,WAAWG,EAAKC,EAAO,QAAQN,GAAW,UAAU,YAAY;AAAA,MAChE,kBAAgBH;AAAA,MAChB,aAAWC;AAAA,MACV,GAAGG;AAAA,MAEH,UAAAF;AAAA,IAAA;AAAA,EAAA;AAGP,CAAC;"}
@@ -1 +1 @@
1
- {"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../../src/layouts/grid/grid.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAI3D,MAAM,WAAW,SAAU,SAAQ,WAAW,EAAE,cAAc,CAAC,WAAW,CAAC;IACzE,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,IAAI,+EAuFf,CAAC"}
1
+ {"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../../src/layouts/grid/grid.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAI3D,MAAM,WAAW,SAAU,SAAQ,WAAW,EAAE,cAAc,CAAC,WAAW,CAAC;IACzE,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,IAAI,+EAkFf,CAAC"}
@@ -1,16 +1,16 @@
1
1
  import { jsx as k } from "react/jsx-runtime";
2
- import q from "classnames";
2
+ import { clsx as q } from "clsx";
3
3
  import c from "react";
4
4
  import { removeUndefinedProperties as z } from "../../stacks/utils/remove_undefined_properties.js";
5
5
  import '../../grid.css';const B = "_grid_d0ae3e3", D = { grid: B }, L = c.forwardRef(function({
6
- as: a = "div",
7
- children: r,
8
- style: l,
9
- className: d,
6
+ as: l = "div",
7
+ children: e,
8
+ style: d,
9
+ className: a,
10
10
  itemHeight: m,
11
11
  itemWidth: o,
12
12
  columnAmount: i,
13
- gap: e,
13
+ gap: r,
14
14
  rowGap: f,
15
15
  columnGap: p,
16
16
  padding: h,
@@ -24,21 +24,21 @@ import '../../grid.css';const B = "_grid_d0ae3e3", D = { grid: B }, L = c.forwar
24
24
  marginInline: w,
25
25
  marginBlock: C,
26
26
  marginInlineStart: G,
27
- marginInlineEnd: N,
28
- marginTop: R,
29
- marginBottom: S,
30
- zIndex: _,
31
- ...j
32
- }, M) {
33
- const P = a, U = c.Children.toArray(r).length, W = `repeat(auto-fill, ${o}px)`;
27
+ marginInlineEnd: R,
28
+ marginTop: S,
29
+ marginBottom: _,
30
+ zIndex: j,
31
+ ...M
32
+ }, N) {
33
+ const P = l, U = c.Children.toArray(e).length, W = `repeat(auto-fill, ${o}px)`;
34
34
  let t;
35
35
  if (i) {
36
- const s = Math.min(i, U), n = String(s * o) + "px";
37
- e ? t = `calc(${n} + ${e} * ${s - 1})` : t = n;
36
+ const n = Math.min(i, U), s = String(n * o) + "px";
37
+ r ? t = `calc(${s} + ${r} * ${n - 1})` : t = s;
38
38
  } else
39
39
  t = "100%";
40
40
  const b = z({
41
- gap: e,
41
+ gap: r,
42
42
  rowGap: f,
43
43
  columnGap: p,
44
44
  "--item-height": m + "px",
@@ -55,22 +55,13 @@ import '../../grid.css';const B = "_grid_d0ae3e3", D = { grid: B }, L = c.forwar
55
55
  marginInline: w,
56
56
  marginBlock: C,
57
57
  marginInlineStart: G,
58
- marginInlineEnd: N,
59
- marginTop: R,
60
- marginBottom: S,
61
- zIndex: _,
62
- ...l
58
+ marginInlineEnd: R,
59
+ marginTop: S,
60
+ marginBottom: _,
61
+ zIndex: j,
62
+ ...d
63
63
  });
64
- return /* @__PURE__ */ k(
65
- P,
66
- {
67
- ref: M,
68
- className: q(D.grid, d),
69
- style: b,
70
- ...j,
71
- children: r
72
- }
73
- );
64
+ return /* @__PURE__ */ k(P, { ref: N, className: q(D.grid, a), style: b, ...M, children: e });
74
65
  });
75
66
  export {
76
67
  L as Grid
@@ -1 +1 @@
1
- {"version":3,"file":"grid.js","sources":["../../../src/layouts/grid/grid.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport React, { HTMLAttributes } from 'react';\nimport { CommonProps } from '../../stacks/types/common.js';\nimport styles from './grid.module.css';\nimport { removeUndefinedProperties } from '../../stacks/utils/remove_undefined_properties.js';\n\nexport interface GridProps extends CommonProps, HTMLAttributes<HTMLElement> {\n itemHeight: number;\n itemWidth: number;\n as?: string;\n columnAmount?: number;\n children?: React.ReactNode;\n gap?: string | number;\n rowGap?: string | number;\n columnGap?: string | number;\n padding?: string;\n paddingInline?: string;\n paddingBlock?: string;\n paddingInlineStart?: string;\n paddingInlineEnd?: string;\n paddingTop?: string;\n paddingBottom?: string;\n margin?: string;\n marginInline?: string;\n marginBlock?: string;\n marginInlineStart?: string;\n marginInlineEnd?: string;\n marginTop?: string;\n marginBottom?: string;\n zIndex?: string | number;\n}\n\nexport const Grid = React.forwardRef(function Grid(\n {\n as = 'div',\n children,\n style,\n className,\n itemHeight,\n itemWidth,\n columnAmount,\n gap,\n rowGap,\n columnGap,\n padding,\n paddingInline,\n paddingBlock,\n paddingInlineStart,\n paddingInlineEnd,\n paddingTop,\n paddingBottom,\n margin,\n marginInline,\n marginBlock,\n marginInlineStart,\n marginInlineEnd,\n marginTop,\n marginBottom,\n zIndex,\n ...attr\n }: GridProps,\n ref: React.Ref<HTMLElement>\n) {\n const As = as as React.ElementType;\n // Calculate the number of children\n const childrenArray = React.Children.toArray(children);\n const childrenCount = childrenArray.length;\n\n const template = `repeat(auto-fill, ${itemWidth}px)`;\n let maxWidth: string;\n\n if (columnAmount) {\n const amount = Math.min(columnAmount, childrenCount);\n const columnWidth = String(amount * itemWidth) + 'px';\n\n if (gap) {\n maxWidth = `calc(${columnWidth} + ${gap} * ${amount - 1})`;\n } else {\n maxWidth = columnWidth;\n }\n } else {\n maxWidth = '100%';\n }\n\n const gridStyles: any = removeUndefinedProperties({\n gap,\n rowGap,\n columnGap,\n '--item-height': itemHeight + 'px',\n '--max-width': maxWidth,\n '--template': template,\n padding,\n paddingInline,\n paddingBlock,\n paddingInlineStart,\n paddingInlineEnd,\n paddingTop,\n paddingBottom,\n margin,\n marginInline,\n marginBlock,\n marginInlineStart,\n marginInlineEnd,\n marginTop,\n marginBottom,\n zIndex,\n ...style,\n });\n\n return (\n <As\n ref={ref}\n className={classNames(styles.grid, className)}\n style={gridStyles}\n {...attr}\n >\n {children}\n </As>\n );\n});\n"],"names":["Grid","React","as","children","style","className","itemHeight","itemWidth","columnAmount","gap","rowGap","columnGap","padding","paddingInline","paddingBlock","paddingInlineStart","paddingInlineEnd","paddingTop","paddingBottom","margin","marginInline","marginBlock","marginInlineStart","marginInlineEnd","marginTop","marginBottom","zIndex","attr","ref","As","childrenCount","template","maxWidth","amount","columnWidth","gridStyles","removeUndefinedProperties","jsx","classNames","styles"],"mappings":";;;;4CAgCaA,IAAOC,EAAM,WAAW,SACnC;AAAA,EACE,IAAAC,IAAK;AAAA,EACL,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,WAAAC;AAAA,EACA,YAAAC;AAAA,EACA,WAAAC;AAAA,EACA,cAAAC;AAAA,EACA,KAAAC;AAAA,EACA,QAAAC;AAAA,EACA,WAAAC;AAAA,EACA,SAAAC;AAAA,EACA,eAAAC;AAAA,EACA,cAAAC;AAAA,EACA,oBAAAC;AAAA,EACA,kBAAAC;AAAA,EACA,YAAAC;AAAA,EACA,eAAAC;AAAA,EACA,QAAAC;AAAA,EACA,cAAAC;AAAA,EACA,aAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,WAAAC;AAAA,EACA,cAAAC;AAAA,EACA,QAAAC;AAAA,EACA,GAAGC;AACL,GACAC,GACA;AACA,QAAMC,IAAK3B,GAGL4B,IADgB7B,EAAM,SAAS,QAAQE,CAAQ,EACjB,QAE9B4B,IAAW,qBAAqBxB,CAAS;AAC/C,MAAIyB;AAEJ,MAAIxB,GAAc;AAChB,UAAMyB,IAAS,KAAK,IAAIzB,GAAcsB,CAAa,GAC7CI,IAAc,OAAOD,IAAS1B,CAAS,IAAI;AAEjD,IAAIE,IACFuB,IAAW,QAAQE,CAAW,MAAMzB,CAAG,MAAMwB,IAAS,CAAC,MAEvDD,IAAWE;AAAA,EAEf;AACE,IAAAF,IAAW;AAGb,QAAMG,IAAkBC,EAA0B;AAAA,IAChD,KAAA3B;AAAA,IACA,QAAAC;AAAA,IACA,WAAAC;AAAA,IACA,iBAAiBL,IAAa;AAAA,IAC9B,eAAe0B;AAAA,IACf,cAAcD;AAAA,IACd,SAAAnB;AAAA,IACA,eAAAC;AAAA,IACA,cAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,YAAAC;AAAA,IACA,eAAAC;AAAA,IACA,QAAAC;AAAA,IACA,cAAAC;AAAA,IACA,aAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,WAAAC;AAAA,IACA,cAAAC;AAAA,IACA,QAAAC;AAAA,IACA,GAAGtB;AAAA,EAAA,CACJ;AAED,SACE,gBAAAiC;AAAA,IAACR;AAAA,IAAA;AAAA,MACC,KAAAD;AAAA,MACA,WAAWU,EAAWC,EAAO,MAAMlC,CAAS;AAAA,MAC5C,OAAO8B;AAAA,MACN,GAAGR;AAAA,MAEH,UAAAxB;AAAA,IAAA;AAAA,EAAA;AAGP,CAAC;"}
1
+ {"version":3,"file":"grid.js","sources":["../../../src/layouts/grid/grid.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport React, { HTMLAttributes } from 'react';\nimport { CommonProps } from '../../stacks/types/common.js';\nimport styles from './grid.module.css';\nimport { removeUndefinedProperties } from '../../stacks/utils/remove_undefined_properties.js';\n\nexport interface GridProps extends CommonProps, HTMLAttributes<HTMLElement> {\n itemHeight: number;\n itemWidth: number;\n as?: string;\n columnAmount?: number;\n children?: React.ReactNode;\n gap?: string | number;\n rowGap?: string | number;\n columnGap?: string | number;\n padding?: string;\n paddingInline?: string;\n paddingBlock?: string;\n paddingInlineStart?: string;\n paddingInlineEnd?: string;\n paddingTop?: string;\n paddingBottom?: string;\n margin?: string;\n marginInline?: string;\n marginBlock?: string;\n marginInlineStart?: string;\n marginInlineEnd?: string;\n marginTop?: string;\n marginBottom?: string;\n zIndex?: string | number;\n}\n\nexport const Grid = React.forwardRef(function Grid(\n {\n as = 'div',\n children,\n style,\n className,\n itemHeight,\n itemWidth,\n columnAmount,\n gap,\n rowGap,\n columnGap,\n padding,\n paddingInline,\n paddingBlock,\n paddingInlineStart,\n paddingInlineEnd,\n paddingTop,\n paddingBottom,\n margin,\n marginInline,\n marginBlock,\n marginInlineStart,\n marginInlineEnd,\n marginTop,\n marginBottom,\n zIndex,\n ...attr\n }: GridProps,\n ref: React.Ref<HTMLElement>\n) {\n const As = as as React.ElementType;\n // Calculate the number of children\n const childrenArray = React.Children.toArray(children);\n const childrenCount = childrenArray.length;\n\n const template = `repeat(auto-fill, ${itemWidth}px)`;\n let maxWidth: string;\n\n if (columnAmount) {\n const amount = Math.min(columnAmount, childrenCount);\n const columnWidth = String(amount * itemWidth) + 'px';\n\n if (gap) {\n maxWidth = `calc(${columnWidth} + ${gap} * ${amount - 1})`;\n } else {\n maxWidth = columnWidth;\n }\n } else {\n maxWidth = '100%';\n }\n\n const gridStyles: any = removeUndefinedProperties({\n gap,\n rowGap,\n columnGap,\n '--item-height': itemHeight + 'px',\n '--max-width': maxWidth,\n '--template': template,\n padding,\n paddingInline,\n paddingBlock,\n paddingInlineStart,\n paddingInlineEnd,\n paddingTop,\n paddingBottom,\n margin,\n marginInline,\n marginBlock,\n marginInlineStart,\n marginInlineEnd,\n marginTop,\n marginBottom,\n zIndex,\n ...style,\n });\n\n return (\n <As ref={ref} className={clsx(styles.grid, className)} style={gridStyles} {...attr}>\n {children}\n </As>\n );\n});\n"],"names":["Grid","React","as","children","style","className","itemHeight","itemWidth","columnAmount","gap","rowGap","columnGap","padding","paddingInline","paddingBlock","paddingInlineStart","paddingInlineEnd","paddingTop","paddingBottom","margin","marginInline","marginBlock","marginInlineStart","marginInlineEnd","marginTop","marginBottom","zIndex","attr","ref","As","childrenCount","template","maxWidth","amount","columnWidth","gridStyles","removeUndefinedProperties","jsx","clsx","styles"],"mappings":";;;;4CAgCaA,IAAOC,EAAM,WAAW,SACnC;AAAA,EACE,IAAAC,IAAK;AAAA,EACL,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,WAAAC;AAAA,EACA,YAAAC;AAAA,EACA,WAAAC;AAAA,EACA,cAAAC;AAAA,EACA,KAAAC;AAAA,EACA,QAAAC;AAAA,EACA,WAAAC;AAAA,EACA,SAAAC;AAAA,EACA,eAAAC;AAAA,EACA,cAAAC;AAAA,EACA,oBAAAC;AAAA,EACA,kBAAAC;AAAA,EACA,YAAAC;AAAA,EACA,eAAAC;AAAA,EACA,QAAAC;AAAA,EACA,cAAAC;AAAA,EACA,aAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,WAAAC;AAAA,EACA,cAAAC;AAAA,EACA,QAAAC;AAAA,EACA,GAAGC;AACL,GACAC,GACA;AACA,QAAMC,IAAK3B,GAGL4B,IADgB7B,EAAM,SAAS,QAAQE,CAAQ,EACjB,QAE9B4B,IAAW,qBAAqBxB,CAAS;AAC/C,MAAIyB;AAEJ,MAAIxB,GAAc;AAChB,UAAMyB,IAAS,KAAK,IAAIzB,GAAcsB,CAAa,GAC7CI,IAAc,OAAOD,IAAS1B,CAAS,IAAI;AAEjD,IAAIE,IACFuB,IAAW,QAAQE,CAAW,MAAMzB,CAAG,MAAMwB,IAAS,CAAC,MAEvDD,IAAWE;AAAA,EAEf;AACE,IAAAF,IAAW;AAGb,QAAMG,IAAkBC,EAA0B;AAAA,IAChD,KAAA3B;AAAA,IACA,QAAAC;AAAA,IACA,WAAAC;AAAA,IACA,iBAAiBL,IAAa;AAAA,IAC9B,eAAe0B;AAAA,IACf,cAAcD;AAAA,IACd,SAAAnB;AAAA,IACA,eAAAC;AAAA,IACA,cAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,YAAAC;AAAA,IACA,eAAAC;AAAA,IACA,QAAAC;AAAA,IACA,cAAAC;AAAA,IACA,aAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,WAAAC;AAAA,IACA,cAAAC;AAAA,IACA,QAAAC;AAAA,IACA,GAAGtB;AAAA,EAAA,CACJ;AAED,SACE,gBAAAiC,EAACR,GAAA,EAAG,KAAAD,GAAU,WAAWU,EAAKC,EAAO,MAAMlC,CAAS,GAAG,OAAO8B,GAAa,GAAGR,GAC3E,UAAAxB,EAAA,CACH;AAEJ,CAAC;"}
@@ -1,30 +1,30 @@
1
1
  import { jsx as c } from "react/jsx-runtime";
2
2
  import m from "react";
3
- import f from "classnames";
3
+ import { clsx as f } from "clsx";
4
4
  import { HStack as h } from "../../stacks/h_stack.js";
5
- import '../../header.css';const n = "_header_3155fa4", i = { header: n }, x = m.forwardRef(function({
5
+ import '../../header.css';const n = "_header_3155fa4", i = { header: n }, H = m.forwardRef(function({
6
6
  hierarchy: e = "secondary",
7
- height: a = "auto",
8
- children: r,
7
+ height: r = "auto",
8
+ children: a,
9
9
  className: t,
10
10
  size: o = "md",
11
- ...s
12
- }, d) {
11
+ ...d
12
+ }, s) {
13
13
  return /* @__PURE__ */ c(
14
14
  h,
15
15
  {
16
- ref: d,
16
+ ref: s,
17
17
  as: "header",
18
18
  className: f(i.header, t, "tcn-header", "header"),
19
19
  "data-hierarchy": e,
20
20
  "data-size": o,
21
- height: a,
22
- ...s,
23
- children: r
21
+ height: r,
22
+ ...d,
23
+ children: a
24
24
  }
25
25
  );
26
26
  });
27
27
  export {
28
- x as Header
28
+ H as Header
29
29
  };
30
30
  //# sourceMappingURL=header.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"header.js","sources":["../../../src/layouts/header/header.tsx"],"sourcesContent":["import React from 'react';\nimport classNames from 'classnames';\nimport { HStack, type HStackProps } from '../../stacks/h_stack.js';\nimport type { Hierarchy, Size } from '../../utils/index.js';\nimport styles from './header.module.css';\n\n// UtilityBar\nexport interface HeaderProps extends Omit<HStackProps, 'as'> {\n hierarchy?: Hierarchy;\n size?: Size;\n}\n\nexport const Header = React.forwardRef<HTMLElement, HeaderProps>(function Header(\n {\n hierarchy = 'secondary',\n height = 'auto',\n children,\n className,\n size = 'md',\n ...props\n }: HeaderProps,\n ref\n) {\n return (\n <HStack\n ref={ref}\n as=\"header\"\n className={classNames(styles.header, className, 'tcn-header', 'header')}\n data-hierarchy={hierarchy}\n data-size={size}\n height={height}\n {...props}\n >\n {children}\n </HStack>\n );\n});\n"],"names":["Header","React","hierarchy","height","children","className","size","props","ref","jsx","HStack","classNames","styles"],"mappings":";;;;gDAYaA,IAASC,EAAM,WAAqC,SAC/D;AAAA,EACE,WAAAC,IAAY;AAAA,EACZ,QAAAC,IAAS;AAAA,EACT,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,MAAAC,IAAO;AAAA,EACP,GAAGC;AACL,GACAC,GACA;AACA,SACE,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,KAAAF;AAAA,MACA,IAAG;AAAA,MACH,WAAWG,EAAWC,EAAO,QAAQP,GAAW,cAAc,QAAQ;AAAA,MACtE,kBAAgBH;AAAA,MAChB,aAAWI;AAAA,MACX,QAAAH;AAAA,MACC,GAAGI;AAAA,MAEH,UAAAH;AAAA,IAAA;AAAA,EAAA;AAGP,CAAC;"}
1
+ {"version":3,"file":"header.js","sources":["../../../src/layouts/header/header.tsx"],"sourcesContent":["import React from 'react';\nimport { clsx } from 'clsx';\nimport { HStack, type HStackProps } from '../../stacks/h_stack.js';\nimport type { Hierarchy, Size } from '../../utils/index.js';\nimport styles from './header.module.css';\n\n// UtilityBar\nexport interface HeaderProps extends Omit<HStackProps, 'as'> {\n hierarchy?: Hierarchy;\n size?: Size;\n}\n\nexport const Header = React.forwardRef<HTMLElement, HeaderProps>(function Header(\n {\n hierarchy = 'secondary',\n height = 'auto',\n children,\n className,\n size = 'md',\n ...props\n }: HeaderProps,\n ref\n) {\n return (\n <HStack\n ref={ref}\n as=\"header\"\n className={clsx(styles.header, className, 'tcn-header', 'header')}\n data-hierarchy={hierarchy}\n data-size={size}\n height={height}\n {...props}\n >\n {children}\n </HStack>\n );\n});\n"],"names":["Header","React","hierarchy","height","children","className","size","props","ref","jsx","HStack","clsx","styles"],"mappings":";;;;gDAYaA,IAASC,EAAM,WAAqC,SAC/D;AAAA,EACE,WAAAC,IAAY;AAAA,EACZ,QAAAC,IAAS;AAAA,EACT,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,MAAAC,IAAO;AAAA,EACP,GAAGC;AACL,GACAC,GACA;AACA,SACE,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,KAAAF;AAAA,MACA,IAAG;AAAA,MACH,WAAWG,EAAKC,EAAO,QAAQP,GAAW,cAAc,QAAQ;AAAA,MAChE,kBAAgBH;AAAA,MAChB,aAAWI;AAAA,MACX,QAAAH;AAAA,MACC,GAAGI;AAAA,MAEH,UAAAH;AAAA,IAAA;AAAA,EAAA;AAGP,CAAC;"}
@@ -1,11 +1,11 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import a from "react";
3
- import { HStack as s } from "../../stacks/h_stack.js";
4
- import f from "classnames";
5
- const u = a.forwardRef(function({ children: m, className: r, ...t }, o) {
6
- return /* @__PURE__ */ e(s, { ref: o, as: "li", className: f("item", r), ...t, children: m });
2
+ import f from "react";
3
+ import { HStack as i } from "../../stacks/h_stack.js";
4
+ import { clsx as a } from "clsx";
5
+ const x = f.forwardRef(function({ children: r, className: t, ...m }, o) {
6
+ return /* @__PURE__ */ e(i, { ref: o, as: "li", className: a("item", t), ...m, children: r });
7
7
  });
8
8
  export {
9
- u as Item
9
+ x as Item
10
10
  };
11
11
  //# sourceMappingURL=item.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"item.js","sources":["../../../src/layouts/list/item.tsx"],"sourcesContent":["import React from 'react';\nimport { HStack, type HStackProps } from '../../stacks/h_stack.js';\nimport classnames from 'classnames';\n\nexport interface ItemProps extends Omit<HStackProps, 'as' | 'children'> {\n children?: React.ReactNode;\n}\n\nexport const Item = React.forwardRef<HTMLDivElement, ItemProps>(function Item(\n { children, className, ...props }: ItemProps,\n ref\n) {\n return (\n <HStack ref={ref} as=\"li\" className={classnames('item', className)} {...props}>\n {children}\n </HStack>\n );\n});\n"],"names":["Item","React","children","className","props","ref","jsx","HStack","classnames"],"mappings":";;;;AAQO,MAAMA,IAAOC,EAAM,WAAsC,SAC9D,EAAE,UAAAC,GAAU,WAAAC,GAAW,GAAGC,EAAA,GAC1BC,GACA;AACA,SACE,gBAAAC,EAACC,GAAA,EAAO,KAAAF,GAAU,IAAG,MAAK,WAAWG,EAAW,QAAQL,CAAS,GAAI,GAAGC,GACrE,UAAAF,EAAA,CACH;AAEJ,CAAC;"}
1
+ {"version":3,"file":"item.js","sources":["../../../src/layouts/list/item.tsx"],"sourcesContent":["import React from 'react';\nimport { HStack, type HStackProps } from '../../stacks/h_stack.js';\nimport { clsx } from 'clsx';\n\nexport interface ItemProps extends Omit<HStackProps, 'as' | 'children'> {\n children?: React.ReactNode;\n}\n\nexport const Item = React.forwardRef<HTMLDivElement, ItemProps>(function Item(\n { children, className, ...props }: ItemProps,\n ref\n) {\n return (\n <HStack ref={ref} as=\"li\" className={clsx('item', className)} {...props}>\n {children}\n </HStack>\n );\n});\n"],"names":["Item","React","children","className","props","ref","jsx","HStack","clsx"],"mappings":";;;;AAQO,MAAMA,IAAOC,EAAM,WAAsC,SAC9D,EAAE,UAAAC,GAAU,WAAAC,GAAW,GAAGC,EAAA,GAC1BC,GACA;AACA,SACE,gBAAAC,EAACC,GAAA,EAAO,KAAAF,GAAU,IAAG,MAAK,WAAWG,EAAK,QAAQL,CAAS,GAAI,GAAGC,GAC/D,UAAAF,EAAA,CACH;AAEJ,CAAC;"}
@@ -1,14 +1,14 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import e from "react";
3
- import f from "classnames";
1
+ import { jsx as f } from "react/jsx-runtime";
2
+ import a from "react";
3
+ import { clsx as e } from "clsx";
4
4
  import { VStack as i } from "../../stacks/v_stack.js";
5
- const x = e.forwardRef(function({ children: o, className: r, isOrdered: t = !1, ...m }, s) {
6
- return /* @__PURE__ */ a(
5
+ const x = a.forwardRef(function({ children: o, className: r, isOrdered: t = !1, ...m }, s) {
6
+ return /* @__PURE__ */ f(
7
7
  i,
8
8
  {
9
9
  ref: s,
10
10
  as: t ? "ol" : "ul",
11
- className: f("list", r),
11
+ className: e("list", r),
12
12
  ...m,
13
13
  children: o
14
14
  }
@@ -1 +1 @@
1
- {"version":3,"file":"list.js","sources":["../../../src/layouts/list/list.tsx"],"sourcesContent":["import React from 'react';\nimport classnames from 'classnames';\nimport { VStack, type VStackProps } from '../../stacks/v_stack.js';\n\nexport interface ListProps extends Omit<VStackProps, 'as'> {\n isOrdered?: boolean;\n}\n\nexport const List = React.forwardRef<HTMLDivElement, ListProps>(function Item(\n { children, className, isOrdered = false, ...props }: ListProps,\n ref\n) {\n return (\n <VStack\n ref={ref}\n as={isOrdered ? 'ol' : 'ul'}\n className={classnames('list', className)}\n {...props}\n >\n {children}\n </VStack>\n );\n});\n"],"names":["List","React","children","className","isOrdered","props","ref","jsx","VStack","classnames"],"mappings":";;;;AAQO,MAAMA,IAAOC,EAAM,WAAsC,SAC9D,EAAE,UAAAC,GAAU,WAAAC,GAAW,WAAAC,IAAY,IAAO,GAAGC,EAAA,GAC7CC,GACA;AACA,SACE,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,KAAAF;AAAA,MACA,IAAIF,IAAY,OAAO;AAAA,MACvB,WAAWK,EAAW,QAAQN,CAAS;AAAA,MACtC,GAAGE;AAAA,MAEH,UAAAH;AAAA,IAAA;AAAA,EAAA;AAGP,CAAC;"}
1
+ {"version":3,"file":"list.js","sources":["../../../src/layouts/list/list.tsx"],"sourcesContent":["import React from 'react';\nimport { clsx } from 'clsx';\nimport { VStack, type VStackProps } from '../../stacks/v_stack.js';\n\nexport interface ListProps extends Omit<VStackProps, 'as'> {\n isOrdered?: boolean;\n}\n\nexport const List = React.forwardRef<HTMLDivElement, ListProps>(function Item(\n { children, className, isOrdered = false, ...props }: ListProps,\n ref\n) {\n return (\n <VStack\n ref={ref}\n as={isOrdered ? 'ol' : 'ul'}\n className={clsx('list', className)}\n {...props}\n >\n {children}\n </VStack>\n );\n});\n"],"names":["List","React","children","className","isOrdered","props","ref","jsx","VStack","clsx"],"mappings":";;;;AAQO,MAAMA,IAAOC,EAAM,WAAsC,SAC9D,EAAE,UAAAC,GAAU,WAAAC,GAAW,WAAAC,IAAY,IAAO,GAAGC,EAAA,GAC7CC,GACA;AACA,SACE,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,KAAAF;AAAA,MACA,IAAIF,IAAY,OAAO;AAAA,MACvB,WAAWK,EAAK,QAAQN,CAAS;AAAA,MAChC,GAAGE;AAAA,MAEH,UAAAH;AAAA,IAAA;AAAA,EAAA;AAGP,CAAC;"}
@@ -1,16 +1,16 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import { Box as l } from "../../stacks/box/box.js";
3
- import { VStack as x } from "../../stacks/v_stack.js";
4
- import B from "classnames";
2
+ import { Box as x } from "../../stacks/box/box.js";
3
+ import { VStack as l } from "../../stacks/v_stack.js";
4
+ import { clsx as B } from "clsx";
5
5
  import _ from "react";
6
- import '../../sidebar_end.css';const y = "_sidebarEndBox_25f69cc", N = "_sidebarEnd_cb253a2", c = { sidebarEndBox: y, sidebarEnd: N }, I = _.forwardRef(
6
+ import '../../sidebar_end.css';const y = "_sidebarEndBox_25f69cc", S = "_sidebarEnd_cb253a2", c = { sidebarEndBox: y, sidebarEnd: S }, I = _.forwardRef(
7
7
  function({
8
8
  hierarchy: t = "secondary",
9
9
  children: b,
10
10
  width: r,
11
- height: s,
12
- minWidth: a,
13
- maxWidth: o,
11
+ height: o,
12
+ minWidth: s,
13
+ maxWidth: a,
14
14
  minHeight: d,
15
15
  maxHeight: e,
16
16
  hAlign: i,
@@ -19,24 +19,24 @@ import '../../sidebar_end.css';const y = "_sidebarEndBox_25f69cc", N = "_sidebar
19
19
  ...E
20
20
  }, p) {
21
21
  return /* @__PURE__ */ n(
22
- l,
22
+ x,
23
23
  {
24
24
  width: r,
25
- height: s,
26
- minWidth: a,
27
- maxWidth: o,
25
+ height: o,
26
+ minWidth: s,
27
+ maxWidth: a,
28
28
  minHeight: d,
29
29
  maxHeight: e,
30
30
  className: c.sidebarEndBox,
31
31
  as: "section",
32
32
  ...E,
33
33
  children: /* @__PURE__ */ n(
34
- x,
34
+ l,
35
35
  {
36
36
  width: r,
37
- height: s,
38
- minWidth: a,
39
- maxWidth: o,
37
+ height: o,
38
+ minWidth: s,
39
+ maxWidth: a,
40
40
  minHeight: d,
41
41
  maxHeight: e,
42
42
  hAlign: i,
@@ -1 +1 @@
1
- {"version":3,"file":"sidebar_end.js","sources":["../../../src/layouts/sidebar_end/sidebar_end.tsx"],"sourcesContent":["import { Box, type BoxProps } from '../../stacks/box/box.js';\nimport { VStack } from '../../stacks/v_stack.js';\nimport { Alignment } from '../../stacks/types/alignment.js';\nimport classNames from 'classnames';\nimport React from 'react';\nimport styles from './sidebar_end.module.css';\nimport type { Hierarchy } from '../../utils/index.js';\n\nexport interface SidebarEndProps extends Omit<BoxProps, 'as'> {\n hierarchy?: Hierarchy;\n hAlign?: Alignment;\n vAlign?: Alignment;\n}\n\nexport const SidebarEnd = React.forwardRef<HTMLElement, SidebarEndProps>(\n function SidebarEnd(\n {\n hierarchy = 'secondary',\n children,\n width,\n height,\n minWidth,\n maxWidth,\n minHeight,\n maxHeight,\n hAlign,\n vAlign = 'start',\n className,\n ...props\n }: SidebarEndProps,\n ref\n ) {\n return (\n <Box\n width={width}\n height={height}\n minWidth={minWidth}\n maxWidth={maxWidth}\n minHeight={minHeight}\n maxHeight={maxHeight}\n className={styles.sidebarEndBox}\n as={'section'}\n {...props}\n >\n <VStack\n width={width}\n height={height}\n minWidth={minWidth}\n maxWidth={maxWidth}\n minHeight={minHeight}\n maxHeight={maxHeight}\n hAlign={hAlign}\n vAlign={vAlign}\n ref={ref}\n data-hierarchy={hierarchy}\n className={classNames(styles.sidebarEnd, className, 'sidebar-end')}\n zIndex={0}\n >\n {children}\n </VStack>\n </Box>\n );\n }\n);\n"],"names":["SidebarEnd","React","hierarchy","children","width","height","minWidth","maxWidth","minHeight","maxHeight","hAlign","vAlign","className","props","ref","jsx","Box","styles","VStack","classNames"],"mappings":";;;;;wGAcaA,IAAaC,EAAM;AAAA,EAC9B,SACE;AAAA,IACE,WAAAC,IAAY;AAAA,IACZ,UAAAC;AAAA,IACA,OAAAC;AAAA,IACA,QAAAC;AAAA,IACA,UAAAC;AAAA,IACA,UAAAC;AAAA,IACA,WAAAC;AAAA,IACA,WAAAC;AAAA,IACA,QAAAC;AAAA,IACA,QAAAC,IAAS;AAAA,IACT,WAAAC;AAAA,IACA,GAAGC;AAAA,EAAA,GAELC,GACA;AACA,WACE,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,OAAAZ;AAAA,QACA,QAAAC;AAAA,QACA,UAAAC;AAAA,QACA,UAAAC;AAAA,QACA,WAAAC;AAAA,QACA,WAAAC;AAAA,QACA,WAAWQ,EAAO;AAAA,QAClB,IAAI;AAAA,QACH,GAAGJ;AAAA,QAEJ,UAAA,gBAAAE;AAAA,UAACG;AAAA,UAAA;AAAA,YACC,OAAAd;AAAA,YACA,QAAAC;AAAA,YACA,UAAAC;AAAA,YACA,UAAAC;AAAA,YACA,WAAAC;AAAA,YACA,WAAAC;AAAA,YACA,QAAAC;AAAA,YACA,QAAAC;AAAA,YACA,KAAAG;AAAA,YACA,kBAAgBZ;AAAA,YAChB,WAAWiB,EAAWF,EAAO,YAAYL,GAAW,aAAa;AAAA,YACjE,QAAQ;AAAA,YAEP,UAAAT;AAAA,UAAA;AAAA,QAAA;AAAA,MACH;AAAA,IAAA;AAAA,EAGN;AACF;"}
1
+ {"version":3,"file":"sidebar_end.js","sources":["../../../src/layouts/sidebar_end/sidebar_end.tsx"],"sourcesContent":["import { Box, type BoxProps } from '../../stacks/box/box.js';\nimport { VStack } from '../../stacks/v_stack.js';\nimport { Alignment } from '../../stacks/types/alignment.js';\nimport { clsx } from 'clsx';\nimport React from 'react';\nimport styles from './sidebar_end.module.css';\nimport type { Hierarchy } from '../../utils/index.js';\n\nexport interface SidebarEndProps extends Omit<BoxProps, 'as'> {\n hierarchy?: Hierarchy;\n hAlign?: Alignment;\n vAlign?: Alignment;\n}\n\nexport const SidebarEnd = React.forwardRef<HTMLElement, SidebarEndProps>(\n function SidebarEnd(\n {\n hierarchy = 'secondary',\n children,\n width,\n height,\n minWidth,\n maxWidth,\n minHeight,\n maxHeight,\n hAlign,\n vAlign = 'start',\n className,\n ...props\n }: SidebarEndProps,\n ref\n ) {\n return (\n <Box\n width={width}\n height={height}\n minWidth={minWidth}\n maxWidth={maxWidth}\n minHeight={minHeight}\n maxHeight={maxHeight}\n className={styles.sidebarEndBox}\n as={'section'}\n {...props}\n >\n <VStack\n width={width}\n height={height}\n minWidth={minWidth}\n maxWidth={maxWidth}\n minHeight={minHeight}\n maxHeight={maxHeight}\n hAlign={hAlign}\n vAlign={vAlign}\n ref={ref}\n data-hierarchy={hierarchy}\n className={clsx(styles.sidebarEnd, className, 'sidebar-end')}\n zIndex={0}\n >\n {children}\n </VStack>\n </Box>\n );\n }\n);\n"],"names":["SidebarEnd","React","hierarchy","children","width","height","minWidth","maxWidth","minHeight","maxHeight","hAlign","vAlign","className","props","ref","jsx","Box","styles","VStack","clsx"],"mappings":";;;;;wGAcaA,IAAaC,EAAM;AAAA,EAC9B,SACE;AAAA,IACE,WAAAC,IAAY;AAAA,IACZ,UAAAC;AAAA,IACA,OAAAC;AAAA,IACA,QAAAC;AAAA,IACA,UAAAC;AAAA,IACA,UAAAC;AAAA,IACA,WAAAC;AAAA,IACA,WAAAC;AAAA,IACA,QAAAC;AAAA,IACA,QAAAC,IAAS;AAAA,IACT,WAAAC;AAAA,IACA,GAAGC;AAAA,EAAA,GAELC,GACA;AACA,WACE,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,OAAAZ;AAAA,QACA,QAAAC;AAAA,QACA,UAAAC;AAAA,QACA,UAAAC;AAAA,QACA,WAAAC;AAAA,QACA,WAAAC;AAAA,QACA,WAAWQ,EAAO;AAAA,QAClB,IAAI;AAAA,QACH,GAAGJ;AAAA,QAEJ,UAAA,gBAAAE;AAAA,UAACG;AAAA,UAAA;AAAA,YACC,OAAAd;AAAA,YACA,QAAAC;AAAA,YACA,UAAAC;AAAA,YACA,UAAAC;AAAA,YACA,WAAAC;AAAA,YACA,WAAAC;AAAA,YACA,QAAAC;AAAA,YACA,QAAAC;AAAA,YACA,KAAAG;AAAA,YACA,kBAAgBZ;AAAA,YAChB,WAAWiB,EAAKF,EAAO,YAAYL,GAAW,aAAa;AAAA,YAC3D,QAAQ;AAAA,YAEP,UAAAT;AAAA,UAAA;AAAA,QAAA;AAAA,MACH;AAAA,IAAA;AAAA,EAGN;AACF;"}