@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,23 +1,95 @@
1
+ import { Meta } from '@storybook/react-vite';
1
2
  import { Circle } from './story_components/circle.js';
2
3
  import { StyleBox } from './story_components/style_box.js';
3
- import { VStack } from './v_stack.js';
4
+ import { VStack as VStackComponent, type VStackProps } from './v_stack.js';
4
5
  import { Rect } from './story_components/rect.js';
5
6
  import { PicturePlaceholder } from './story_components/picture_placeholder.js';
6
7
 
7
- export default {
8
- title: 'VStack',
8
+ const meta: Meta<VStackProps> = {
9
+ title: 'Stacks/VStack',
10
+ component: VStackComponent,
11
+ tags: ['autodocs'],
12
+ parameters: {
13
+ docs: {
14
+ description: {
15
+ component:
16
+ 'A vertical stack component that can be used to arrange elements vertically.',
17
+ },
18
+ },
19
+ },
20
+ args: {
21
+ width: '150px',
22
+ vAlign: 'center',
23
+ gap: '25px',
24
+ },
25
+ argTypes: {
26
+ as: { table: { disable: true } },
27
+ children: { table: { disable: true } },
28
+ zIndex: { table: { disable: true } },
29
+ className: { table: { disable: true } },
30
+ inline: { table: { disable: true } },
31
+ style: { table: { disable: true } },
32
+ overflowX: {
33
+ options: [undefined, 'hidden', 'visible'],
34
+ control: { type: 'select' },
35
+ },
36
+ overflowY: {
37
+ options: [undefined, 'auto', 'scroll', 'hidden', 'visible'],
38
+ control: { type: 'select' },
39
+ },
40
+ vAlign: {
41
+ options: ['start', 'center', 'end'],
42
+ control: { type: 'radio' },
43
+ },
44
+ hAlign: {
45
+ options: ['start', 'center', 'end'],
46
+ control: { type: 'radio' },
47
+ },
48
+ width: {
49
+ control: { type: 'text' },
50
+ },
51
+ minWidth: {
52
+ control: { type: 'text' },
53
+ },
54
+ maxWidth: {
55
+ control: { type: 'text' },
56
+ },
57
+ height: {
58
+ control: { type: 'text' },
59
+ },
60
+ minHeight: {
61
+ control: { type: 'text' },
62
+ },
63
+ maxHeight: {
64
+ control: { type: 'text' },
65
+ },
66
+ allowFlow: {
67
+ control: { type: 'boolean' },
68
+ },
69
+ gap: {
70
+ control: { type: 'text' },
71
+ },
72
+ growWeight: {
73
+ control: { type: 'number' },
74
+ },
75
+ shrinkWeight: {
76
+ control: { type: 'number' },
77
+ },
78
+ },
9
79
  };
10
80
 
11
- export function Basic({ transform }: { transform?: string }) {
81
+ export default meta;
82
+
83
+ export function VStack(props: VStackProps) {
12
84
  return (
13
85
  <StyleBox
14
86
  borderLeft="1px dashed #ccc"
15
- width="150px"
87
+ width="auto"
16
88
  height="auto"
17
89
  borderRight="1px dashed #ccc"
18
- transform={transform}
90
+ backgroundColor="white"
19
91
  >
20
- <VStack vAlign="center" gap="25px">
92
+ <VStackComponent {...props}>
21
93
  <Rect width="150px" height="150px" color="#acdef0">
22
94
  Content
23
95
  </Rect>
@@ -25,16 +97,25 @@ export function Basic({ transform }: { transform?: string }) {
25
97
  Content
26
98
  </Circle>
27
99
  <PicturePlaceholder size="150px" />
28
- </VStack>
100
+ </VStackComponent>
29
101
  </StyleBox>
30
102
  );
31
103
  }
32
104
 
105
+ VStack.storyName = 'VStack';
106
+
33
107
  export function Padding() {
34
108
  return (
35
- <VStack width="auto" style={{ border: '1px dashed #ccc' }} padding="30px">
109
+ <StyleBox
110
+ borderLeft="1px dashed #ccc"
111
+ width="auto"
112
+ height="auto"
113
+ borderRight="1px dashed #ccc"
114
+ backgroundColor="white"
115
+ padding="30px"
116
+ >
36
117
  <Circle></Circle>
37
118
  <Circle></Circle>
38
- </VStack>
119
+ </StyleBox>
39
120
  );
40
121
  }
@@ -1,4 +1,4 @@
1
- import classNames from 'classnames';
1
+ import { clsx } from 'clsx';
2
2
  import React, { HTMLAttributes } from 'react';
3
3
  import { removeUndefinedProperties } from './utils/remove_undefined_properties.js';
4
4
  import { CommonProps } from './types/common.js';
@@ -100,7 +100,7 @@ export const VStack = React.forwardRef(function VStack<
100
100
  return (
101
101
  <As
102
102
  ref={ref}
103
- className={classNames(styles['v-stack'], className, 'v-stack', 'stack')}
103
+ className={clsx(styles['v-stack'], className, 'v-stack', 'stack')}
104
104
  style={finalStyles}
105
105
  data-inline={Boolean(inline)}
106
106
  data-allow-flow={Boolean(allowFlow)}
@@ -4,8 +4,16 @@ import { StyleBox } from './story_components/style_box.js';
4
4
  import { ZStack } from './z_stack.js';
5
5
 
6
6
  export default {
7
- title: 'ZStack',
7
+ title: 'Stacks/ZStack',
8
8
  component: ZStack,
9
+ tags: ['autodocs'],
10
+ parameters: {
11
+ docs: {
12
+ description: {
13
+ component: 'A stack component that can be used to arrange elements in a z-axis.',
14
+ },
15
+ },
16
+ },
9
17
  };
10
18
 
11
19
  function forEachNumber(startIndex: number, endIndex: number) {
@@ -1,4 +1,4 @@
1
- import classNames from 'classnames';
1
+ import { clsx } from 'clsx';
2
2
  import React, { HTMLAttributes } from 'react';
3
3
  import { removeUndefinedProperties } from './utils/remove_undefined_properties.js';
4
4
  import { CommonProps } from './types/common.js';
@@ -90,7 +90,7 @@ export const ZStack = React.forwardRef(function ZStack<T extends HTMLElement>(
90
90
  ...removeUndefinedProperties(defaultStyles),
91
91
  ...style,
92
92
  }}
93
- className={classNames(styles['z-stack'], className, 'z-stack', 'stack')}
93
+ className={clsx(styles['z-stack'], className, 'z-stack', 'stack')}
94
94
  data-inline={Boolean(inline)}
95
95
  data-v-alignment={vAlign}
96
96
  data-h-alignment={hAlign}
@@ -1,14 +1,14 @@
1
1
  import { ZStack } from '../../stacks/z_stack.js';
2
2
  import React, { useState } from 'react';
3
- import { Alert } from './alert.js';
3
+ import { Alert as AlertComponent } from './alert.js';
4
4
  import { Button } from '../../actions/index.js';
5
5
  import { AlertTriangleIcon } from '@tcn/icons/alert_triangle_icon.js';
6
6
 
7
7
  export default {
8
- title: 'Alert',
8
+ title: 'Surfaces/Alert',
9
9
  };
10
10
 
11
- export function Baseline() {
11
+ export function Alert() {
12
12
  const [showAlert, setShowAlert] = useState(false);
13
13
 
14
14
  function open() {
@@ -21,7 +21,7 @@ export function Baseline() {
21
21
  return (
22
22
  <ZStack>
23
23
  <Button onClick={open}>Open Alert</Button>
24
- <Alert
24
+ <AlertComponent
25
25
  title="STOP"
26
26
  graphic={<AlertTriangleIcon color="#ff6565" width="80px" height="80px" />}
27
27
  description="This is where you should say something helpful to the user."
@@ -1,4 +1,4 @@
1
- import classNames from 'classnames';
1
+ import { clsx } from 'clsx';
2
2
  import React from 'react';
3
3
  import { Button } from '../../actions/index.js';
4
4
  import { Confirm, ConfirmProps } from '../confirm/confirm.js';
@@ -18,7 +18,7 @@ export const Alert = React.forwardRef(function Alert(
18
18
  return (
19
19
  <Confirm
20
20
  ref={ref}
21
- className={classNames(className, 'alert')}
21
+ className={clsx(className, 'alert')}
22
22
  {...props}
23
23
  actions={
24
24
  <Button onClick={onAccept} hierarchy="primary" width="100%">
@@ -1,5 +1,5 @@
1
1
  import { VStack, type VStackProps } from '../../stacks/v_stack.js';
2
- import classNames from 'classnames';
2
+ import { clsx } from 'clsx';
3
3
  import React from 'react';
4
4
  import styles from './card.module.css';
5
5
 
@@ -15,7 +15,7 @@ export const Card = React.forwardRef<HTMLElement, CardProps>(function VPanel(
15
15
  <VStack
16
16
  ref={ref}
17
17
  as="section"
18
- className={classNames(className, styles.card, 'card')}
18
+ className={clsx(className, styles.card, 'card')}
19
19
  {...props}
20
20
  >
21
21
  {children}
@@ -1,14 +1,14 @@
1
1
  import { ZStack } from '../../stacks/z_stack.js';
2
2
  import React, { useState } from 'react';
3
3
  import { Button } from '../../actions/index.js';
4
- import { Confirm } from './confirm.js';
4
+ import { Confirm as ConfirmComponent } from './confirm.js';
5
5
  import { BulbIcon } from '@tcn/icons/bulb_icon.js';
6
6
 
7
7
  export default {
8
- title: 'Confirm',
8
+ title: 'Surfaces/Confirm',
9
9
  };
10
10
 
11
- export function Baseline() {
11
+ export function Confirm() {
12
12
  const [showAlert, setShowAlert] = useState(false);
13
13
 
14
14
  function open() {
@@ -22,7 +22,7 @@ export function Baseline() {
22
22
  return (
23
23
  <ZStack>
24
24
  <Button onClick={open}>Show Tip</Button>
25
- <Confirm
25
+ <ConfirmComponent
26
26
  title="Tip"
27
27
  description="This is where you should say something helpful to the user."
28
28
  graphic={<BulbIcon color="#e48139" width="100px" height="100px" />}
@@ -1,5 +1,5 @@
1
1
  import React, { useLayoutEffect, useRef, useState } from 'react';
2
- import classNames from 'classnames';
2
+ import { clsx } from 'clsx';
3
3
  import { Spacer } from '../../stacks/spacer.js';
4
4
  import { VStack } from '../../stacks/v_stack.js';
5
5
  import { ZStack } from '../../stacks/z_stack.js';
@@ -62,7 +62,7 @@ export const Confirm = React.forwardRef(function Confirm(
62
62
  <Box onClick={shakeConfirm} {...veilProps} height="100%"></Box>
63
63
  <div
64
64
  ref={ref}
65
- className={classNames(styles.confirm, className, 'confirm')}
65
+ className={clsx(styles.confirm, className, 'confirm')}
66
66
  data-shake={shake}
67
67
  {...props}
68
68
  >
@@ -75,10 +75,7 @@ export const Confirm = React.forwardRef(function Confirm(
75
75
  {description}
76
76
  </BodyText>
77
77
  <Spacer height="16px" />
78
- <Box
79
- className={classNames(styles.actions, 'confirm-actions')}
80
- height="auto"
81
- >
78
+ <Box className={clsx(styles.actions, 'confirm-actions')} height="auto">
82
79
  {actions}
83
80
  </Box>
84
81
  </VStack>
@@ -4,7 +4,7 @@ import { DrawerTop } from '../drawer_top/drawer_top';
4
4
  import { DrawerBottom } from '../drawer_bottom/drawer_bottom';
5
5
 
6
6
  export default {
7
- title: 'Drawers / Drawers',
7
+ title: 'Surfaces/Drawers',
8
8
  component: DrawerStart,
9
9
  tags: ['autodocs'],
10
10
  };
@@ -1,5 +1,5 @@
1
1
  import { VStack, type VStackProps } from '../../../stacks/v_stack.js';
2
- import classNames from 'classnames';
2
+ import { clsx } from 'clsx';
3
3
  import React from 'react';
4
4
  import styles from './drawer_bottom.module.css';
5
5
 
@@ -13,7 +13,7 @@ export const DrawerBottom = React.forwardRef<HTMLElement, DrawerBottomProps>(
13
13
  <VStack
14
14
  ref={ref}
15
15
  as="section"
16
- className={classNames(styles.drawerBottom, className, 'drawer-bottom')}
16
+ className={clsx(styles.drawerBottom, className, 'drawer-bottom')}
17
17
  {...props}
18
18
  >
19
19
  {children}
@@ -1,5 +1,5 @@
1
1
  import { VStack, type VStackProps } from '../../../stacks/v_stack.js';
2
- import classNames from 'classnames';
2
+ import { clsx } from 'clsx';
3
3
  import React from 'react';
4
4
  import styles from './drawer_end.module.css';
5
5
 
@@ -15,7 +15,7 @@ export const DrawerEnd = React.forwardRef<HTMLElement, DrawerEndProps>(function
15
15
  <VStack
16
16
  ref={ref}
17
17
  as="section"
18
- className={classNames(styles.drawerEnd, className, 'drawerEnd')}
18
+ className={clsx(styles.drawerEnd, className, 'drawerEnd')}
19
19
  {...props}
20
20
  >
21
21
  {children}
@@ -1,5 +1,5 @@
1
1
  import { VStack, type VStackProps } from '../../../stacks/v_stack.js';
2
- import classNames from 'classnames';
2
+ import { clsx } from 'clsx';
3
3
  import React from 'react';
4
4
  import styles from './drawer_start.module.css';
5
5
 
@@ -13,7 +13,7 @@ export const DrawerStart = React.forwardRef<HTMLElement, DrawerStartProps>(
13
13
  <VStack
14
14
  ref={ref}
15
15
  as="section"
16
- className={classNames(styles.drawerStart, className, 'drawerStart')}
16
+ className={clsx(styles.drawerStart, className, 'drawerStart')}
17
17
  {...props}
18
18
  >
19
19
  {children}
@@ -1,5 +1,5 @@
1
1
  import { VStack, type VStackProps } from '../../../stacks/v_stack.js';
2
- import classNames from 'classnames';
2
+ import { clsx } from 'clsx';
3
3
  import React from 'react';
4
4
  import styles from './drawer_top.module.css';
5
5
 
@@ -15,7 +15,7 @@ export const DrawerTop = React.forwardRef<HTMLElement, DrawerTopProps>(function
15
15
  <VStack
16
16
  ref={ref}
17
17
  as="section"
18
- className={classNames(styles.drawerTop, className, 'drawerTop')}
18
+ className={clsx(styles.drawerTop, className, 'drawerTop')}
19
19
  {...props}
20
20
  >
21
21
  {children}
@@ -0,0 +1,54 @@
1
+ import { useState } from 'react';
2
+ import { Button, SlimButton } from '../../../actions/index.js';
3
+ import { Footer, Header, VBody } from '../../../layouts/index.js';
4
+ import { Portal } from '../../../overlay/index.js';
5
+ import { ZStack } from '../../../stacks/z_stack.js';
6
+ import { BodyText, Title } from '../../../typography/index.js';
7
+ import { Modal } from '../modal.js';
8
+ import { ClickAwayListener } from '../../../utils/index.js';
9
+ import { Spacer } from '../../../stacks/index.js';
10
+ import { CrossIcon } from '@tcn/icons/cross_icon.js';
11
+
12
+ export default {
13
+ title: 'Surfaces/Modal',
14
+ component: Modal,
15
+ tags: ['autodocs'],
16
+ };
17
+
18
+ export const ModalStory = () => {
19
+ const [isOpen, setIsOpen] = useState(false);
20
+
21
+ function toggle() {
22
+ setIsOpen(!isOpen);
23
+ }
24
+ return (
25
+ <ZStack height="100%" width="100%" minHeight="600px">
26
+ <button onClick={toggle}>{isOpen ? 'Close' : 'Open'}</button>
27
+ {isOpen && (
28
+ <Portal>
29
+ <ZStack width="100%" height="100%" className="tcn-veil">
30
+ <ClickAwayListener onClickAway={toggle}>
31
+ <Modal width="400px" height="500px">
32
+ <Header>
33
+ <Title>Modal Title</Title>
34
+ <Spacer />
35
+ <SlimButton hierarchy="tertiary" onClick={toggle}>
36
+ <CrossIcon />
37
+ </SlimButton>
38
+ </Header>
39
+ <VBody>
40
+ <BodyText>This is a modal</BodyText>
41
+ </VBody>
42
+ <Footer>
43
+ <Spacer />
44
+ <Button hierarchy="secondary">Cancel</Button>
45
+ <Button hierarchy="primary">Save</Button>
46
+ </Footer>
47
+ </Modal>
48
+ </ClickAwayListener>
49
+ </ZStack>
50
+ </Portal>
51
+ )}
52
+ </ZStack>
53
+ );
54
+ };
@@ -1,3 +1,4 @@
1
1
  .modal {
2
- background-color: var(--background-color-primary);
2
+ width: 100%;
3
+ height: 100%;
3
4
  }
@@ -1,18 +1,21 @@
1
1
  import { VStack, type VStackProps } from '../../stacks/v_stack.js';
2
- import classNames from 'classnames';
2
+ import { clsx } from 'clsx';
3
3
  import React from 'react';
4
4
  import styles from './modal.module.css';
5
5
 
6
- export interface ModalProps extends Omit<VStackProps, 'as' | 'children'> {
7
- children?: React.ReactNode;
8
- }
6
+ export type ModalProps = Omit<VStackProps<HTMLDialogElement>, 'as'>;
9
7
 
10
- export const Modal = React.forwardRef<HTMLElement, ModalProps>(function VPanel(
8
+ export const Modal = React.forwardRef<HTMLDialogElement, ModalProps>(function Modal(
11
9
  { children, className, ...props }: ModalProps,
12
10
  ref
13
11
  ) {
14
12
  return (
15
- <VStack ref={ref} className={classNames(className, styles.Modal, 'modal')} {...props}>
13
+ <VStack
14
+ ref={ref}
15
+ className={clsx(styles['modal'], 'tcn-modal', className)}
16
+ as="dialog"
17
+ {...props}
18
+ >
16
19
  {children}
17
20
  </VStack>
18
21
  );
@@ -1,4 +1,4 @@
1
- import classNames from 'classnames';
1
+ import { clsx } from 'clsx';
2
2
  import React from 'react';
3
3
  import styles from './page.module.css';
4
4
  import { HStack, type HStackProps } from '../../stacks/h_stack.js';
@@ -13,7 +13,7 @@ export const HPage = React.forwardRef<HTMLElement, HPageProps>(function HPage(
13
13
  <HStack
14
14
  ref={ref}
15
15
  as="main"
16
- className={classNames(styles.page, className, 'page')}
16
+ className={clsx(styles.page, className, 'page')}
17
17
  vAlign="start"
18
18
  {...props}
19
19
  >
@@ -1,5 +1,5 @@
1
1
  import { VStack, type VStackProps } from '../../stacks/v_stack.js';
2
- import classNames from 'classnames';
2
+ import { clsx } from 'clsx';
3
3
  import React from 'react';
4
4
  import styles from './page.module.css';
5
5
 
@@ -13,7 +13,7 @@ export const VPage = React.forwardRef<HTMLElement, VPageProps>(function VPage(
13
13
  <VStack
14
14
  ref={ref}
15
15
  as="main"
16
- className={classNames(styles.page, className, 'page')}
16
+ className={clsx(styles.page, className, 'page')}
17
17
  {...props}
18
18
  >
19
19
  {children}
@@ -0,0 +1,68 @@
1
+ import { BugIcon } from '@tcn/icons/bug_icon.js';
2
+ import { CrossIcon } from '@tcn/icons/cross_icon.js';
3
+ import { GridOneIcon } from '@tcn/icons/grid_one_icon.js';
4
+ import { Button } from '../../../actions/button/button/button.js';
5
+ import { Footer } from '../../../layouts/footer/footer.js';
6
+ import { Header } from '../../../layouts/header/header.js';
7
+ import { Divider, VBody } from '../../../layouts/index.js';
8
+ import { UtilityBar } from '../../../layouts/utility_bar/utility_bar.js';
9
+ import { Box, Spacer } from '../../../stacks/index.js';
10
+ import { Title } from '../../../typography/title/title.js';
11
+ import { VPanel } from '../v_panel.js';
12
+ // Styles
13
+ import styles from './panel_stories.module.css';
14
+
15
+ export default {
16
+ title: 'Surfaces/Panel',
17
+ component: VPanel,
18
+ tags: ['autodocs'],
19
+ };
20
+
21
+ export const Default = () => {
22
+ return (
23
+ <div className={styles['stories-container']}>
24
+ <VPanel maxHeight="600px">
25
+ <Header>
26
+ <Title>Panel Primary Header</Title>
27
+ <Spacer />
28
+ <Button hierarchy="tertiary">
29
+ <GridOneIcon />
30
+ </Button>
31
+ <Divider length="md" vertical />
32
+ <Button hierarchy="tertiary">
33
+ <CrossIcon />
34
+ </Button>
35
+ </Header>
36
+ <UtilityBar>
37
+ <Title>Utility Bar</Title>
38
+ <Spacer />
39
+ <Button hierarchy="tertiary">
40
+ <BugIcon />
41
+ </Button>
42
+ <Button hierarchy="tertiary">
43
+ <BugIcon />
44
+ </Button>
45
+ <Button hierarchy="tertiary">
46
+ <BugIcon />
47
+ </Button>
48
+ <Button hierarchy="tertiary">
49
+ <BugIcon />
50
+ </Button>
51
+ </UtilityBar>
52
+
53
+ <VBody>
54
+ <Box className={styles['content-box']} />
55
+ <Box className={styles['content-box']} />
56
+ <Box className={styles['content-box']} />
57
+ <Box className={styles['content-box']} />
58
+ </VBody>
59
+ <Footer>
60
+ <Title>Footer</Title>
61
+ <Spacer />
62
+ <Button hierarchy="secondary">Secondary</Button>
63
+ <Button hierarchy="primary">Primary</Button>
64
+ </Footer>
65
+ </VPanel>
66
+ </div>
67
+ );
68
+ };
@@ -0,0 +1,13 @@
1
+ .content-box {
2
+ background: rgba(0, 128, 0, 0.5);
3
+ min-height: 200px;
4
+ width: 100%;
5
+ }
6
+
7
+ .stories-container {
8
+ width: 100%;
9
+ height: 100%;
10
+ padding: 16px;
11
+ background-color: #ccc;
12
+ overflow: auto;
13
+ }
@@ -1,9 +1,10 @@
1
- import { Box, type BoxProps } from '../../stacks/box/box.js';
2
- import { Alignment } from '../../stacks/types/alignment.js';
3
- import classNames from 'classnames';
4
1
  import React from 'react';
5
- import styles from './panel.module.css';
2
+ import { clsx } from 'clsx';
3
+ import { Box, type BoxProps } from '../../stacks/box/box.js';
6
4
  import { HStack } from '../../stacks/h_stack.js';
5
+ import type { Alignment } from '../../stacks/types/alignment.js';
6
+ // Styles
7
+ import styles from './panel.module.css';
7
8
 
8
9
  export interface HPanelProps extends Omit<BoxProps, 'as'> {
9
10
  vAlign?: Alignment;
@@ -37,7 +38,7 @@ export const HPanel = React.forwardRef<HTMLElement, HPanelProps>(function HPanel
37
38
  maxHeight={maxHeight}
38
39
  data-h-alignment={hAlign}
39
40
  data-v-alignment={vAlign}
40
- className={classNames(className, styles['panel'], 'panel')}
41
+ className={clsx(styles['panel'], className, 'panel', 'tcn-panel', 'tcn-h-panel')}
41
42
  {...props}
42
43
  >
43
44
  <HStack
@@ -49,7 +50,12 @@ export const HPanel = React.forwardRef<HTMLElement, HPanelProps>(function HPanel
49
50
  hAlign={hAlign}
50
51
  vAlign={vAlign}
51
52
  ref={ref}
52
- className={classNames(styles['panel-stack'], className, 'panel-stack')}
53
+ className={clsx(
54
+ styles['panel-stack'],
55
+ className,
56
+ 'panel-stack',
57
+ 'tcn-panel-stack'
58
+ )}
53
59
  zIndex={0}
54
60
  >
55
61
  {children}
@@ -1,14 +1,9 @@
1
- .panel {
2
- background-color: #ffffff;
3
- border-radius: 4px;
4
- }
5
-
6
1
  .panel-stack {
7
2
  width: 100%;
8
3
  height: 100%;
9
4
  overflow: auto;
10
5
  }
11
6
 
12
- .page-stack > :global(.stack) {
7
+ /* .page-stack > :global(.stack) {
13
8
  gap: var(--gap);
14
- }
9
+ } */