@postenbring/hedwig-react 0.0.86 → 0.0.88

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 (340) hide show
  1. package/dist/accordion/accordion-content.mjs +2 -2
  2. package/dist/accordion/accordion-header.mjs +2 -2
  3. package/dist/accordion/accordion-item.mjs +2 -2
  4. package/dist/accordion/accordion.mjs +5 -5
  5. package/dist/accordion/context.mjs +1 -1
  6. package/dist/accordion/index.mjs +5 -5
  7. package/dist/badge/badge.d.ts +7 -3
  8. package/dist/badge/badge.d.ts.map +1 -1
  9. package/dist/badge/badge.js.map +1 -1
  10. package/dist/badge/badge.mjs +2 -2
  11. package/dist/badge/index.js.map +1 -1
  12. package/dist/badge/index.mjs +2 -2
  13. package/dist/blockquote/blockquote.d.ts +29 -0
  14. package/dist/blockquote/blockquote.d.ts.map +1 -0
  15. package/dist/blockquote/blockquote.js +83 -0
  16. package/dist/blockquote/blockquote.js.map +1 -0
  17. package/dist/blockquote/blockquote.mjs +8 -0
  18. package/dist/blockquote/index.d.ts +3 -0
  19. package/dist/blockquote/index.d.ts.map +1 -0
  20. package/dist/blockquote/index.js +85 -0
  21. package/dist/blockquote/index.js.map +1 -0
  22. package/dist/blockquote/index.mjs +9 -0
  23. package/dist/box/box.mjs +2 -2
  24. package/dist/box/index.mjs +2 -2
  25. package/dist/breadcrumbs/breadcrumbs.mjs +2 -2
  26. package/dist/breadcrumbs/index.mjs +2 -2
  27. package/dist/button/button.mjs +2 -2
  28. package/dist/button/index.mjs +2 -2
  29. package/dist/card/card.mjs +2 -2
  30. package/dist/card/index.mjs +2 -2
  31. package/dist/{chunk-CCVZAHYA.mjs → chunk-35QRZSEV.mjs} +2 -2
  32. package/dist/chunk-3H7S7C3S.mjs +37 -0
  33. package/dist/chunk-3H7S7C3S.mjs.map +1 -0
  34. package/dist/{chunk-AJWSQEDP.mjs → chunk-3OGHJOJF.mjs} +2 -2
  35. package/dist/{chunk-USXU6ULZ.mjs → chunk-4QZR2H72.mjs} +2 -2
  36. package/dist/{chunk-FB5GEZNH.mjs → chunk-5UGT7L7R.mjs} +3 -3
  37. package/dist/{chunk-XFODQH3I.mjs → chunk-6BXKRPR3.mjs} +3 -3
  38. package/dist/{chunk-IHZ2MRF6.mjs → chunk-6VKQ6IRG.mjs} +8 -12
  39. package/dist/{chunk-IHZ2MRF6.mjs.map → chunk-6VKQ6IRG.mjs.map} +1 -1
  40. package/dist/{chunk-EVUKWONG.mjs → chunk-6ZO2TMOX.mjs} +3 -3
  41. package/dist/{chunk-F4STR6SD.mjs → chunk-7ROE6ADK.mjs} +2 -3
  42. package/dist/{chunk-F4STR6SD.mjs.map → chunk-7ROE6ADK.mjs.map} +1 -1
  43. package/dist/{chunk-YSFZCRWS.mjs → chunk-A42PXOVR.mjs} +2 -2
  44. package/dist/{chunk-6MR5XZOX.mjs → chunk-AYCHNAU7.mjs} +2 -2
  45. package/dist/{chunk-NU6OSFAU.mjs → chunk-AZ6X4L5C.mjs} +2 -2
  46. package/dist/{chunk-SQ63E7KM.mjs → chunk-BHQ46L2O.mjs} +3 -3
  47. package/dist/{chunk-HMATZX4A.mjs → chunk-C7ZTOZP3.mjs} +2 -2
  48. package/dist/{chunk-RZZDMBB7.mjs → chunk-CC5QWW52.mjs} +2 -2
  49. package/dist/{chunk-B6L7IFDX.mjs → chunk-CXX4SXJG.mjs} +5 -5
  50. package/dist/{chunk-GGQB2WWD.mjs → chunk-DMOMTRIY.mjs} +2 -2
  51. package/dist/{chunk-KI6WRKZY.mjs → chunk-EAFQ3XQU.mjs} +4 -4
  52. package/dist/{chunk-I3ZIMS72.mjs → chunk-EGW3RCXD.mjs} +3 -3
  53. package/dist/chunk-EGW3RCXD.mjs.map +1 -0
  54. package/dist/{chunk-L4YBHIS3.mjs → chunk-EMQB6JIS.mjs} +2 -2
  55. package/dist/{chunk-SKVM7G76.mjs → chunk-EZVEYJOX.mjs} +2 -2
  56. package/dist/{chunk-AXKJB47E.mjs → chunk-FUIKSOJF.mjs} +3 -3
  57. package/dist/{chunk-TDXU2IC6.mjs → chunk-ILFK3VKS.mjs} +7 -12
  58. package/dist/{chunk-TDXU2IC6.mjs.map → chunk-ILFK3VKS.mjs.map} +1 -1
  59. package/dist/{chunk-AXQCREUJ.mjs → chunk-J5SCUELT.mjs} +4 -5
  60. package/dist/{chunk-AXQCREUJ.mjs.map → chunk-J5SCUELT.mjs.map} +1 -1
  61. package/dist/{chunk-LG7QWKFP.mjs → chunk-JQGB77SS.mjs} +3 -3
  62. package/dist/chunk-JQGB77SS.mjs.map +1 -0
  63. package/dist/{chunk-UB2R7TCG.mjs → chunk-JUHJZLH2.mjs} +2 -2
  64. package/dist/chunk-JYN2QSN2.mjs +36 -0
  65. package/dist/chunk-JYN2QSN2.mjs.map +1 -0
  66. package/dist/{chunk-VCQIR53Y.mjs → chunk-JZXZYEPG.mjs} +2 -2
  67. package/dist/{chunk-6FBPKLWB.mjs → chunk-KCEWKQ4W.mjs} +8 -13
  68. package/dist/{chunk-6FBPKLWB.mjs.map → chunk-KCEWKQ4W.mjs.map} +1 -1
  69. package/dist/chunk-KFDS3IPB.mjs +1 -0
  70. package/dist/{chunk-DEZVONZD.mjs → chunk-KNGG6M2I.mjs} +4 -4
  71. package/dist/{chunk-WHMIHTPC.mjs → chunk-LGEGXOPU.mjs} +2 -2
  72. package/dist/{chunk-OIC2CPID.mjs → chunk-M7MG7ZQT.mjs} +4 -4
  73. package/dist/{chunk-HJYS664B.mjs → chunk-MYVC3HMO.mjs} +2 -2
  74. package/dist/{chunk-WPCWXROV.mjs → chunk-NIYDN3Y3.mjs} +3 -3
  75. package/dist/{chunk-GQUFERB2.mjs → chunk-OXZOGFNV.mjs} +2 -2
  76. package/dist/chunk-OXZOGFNV.mjs.map +1 -0
  77. package/dist/{chunk-GRWLX5BC.mjs → chunk-ROQH67YP.mjs} +5 -5
  78. package/dist/{chunk-GGNMBB3K.mjs → chunk-S3QSGJX2.mjs} +3 -3
  79. package/dist/{chunk-UP3M3NEZ.mjs → chunk-TC5PD4TA.mjs} +3 -3
  80. package/dist/{chunk-O4HIHUMD.mjs → chunk-UL2V2Z5B.mjs} +15 -17
  81. package/dist/chunk-UL2V2Z5B.mjs.map +1 -0
  82. package/dist/{chunk-MJ2DZH3N.mjs → chunk-VYS2QNTL.mjs} +2 -2
  83. package/dist/{chunk-JF3HBGAA.mjs → chunk-WLESNP6Z.mjs} +2 -2
  84. package/dist/{chunk-BVPSZ3JI.mjs → chunk-WUPLEZEY.mjs} +4 -4
  85. package/dist/chunk-XAFNJELJ.mjs +1 -0
  86. package/dist/{chunk-5UJ3LEKK.mjs → chunk-XQBJ75VD.mjs} +2 -2
  87. package/dist/{chunk-R4SQKVDQ.mjs → chunk-YOSPWY5K.mjs} +1 -1
  88. package/dist/{chunk-GJO7Z2YL.mjs → chunk-YS7HBWOI.mjs} +5 -4
  89. package/dist/chunk-YS7HBWOI.mjs.map +1 -0
  90. package/dist/{chunk-D7QPJIUZ.mjs → chunk-YZDURLEY.mjs} +3 -3
  91. package/dist/{chunk-COEZA7WA.mjs → chunk-Z2ZCM4BE.mjs} +3 -3
  92. package/dist/{chunk-EMI7NAO2.mjs → chunk-ZOZPWP3N.mjs} +2 -2
  93. package/dist/description-list/description-list.mjs +2 -2
  94. package/dist/description-list/index.mjs +2 -2
  95. package/dist/footer/footer.mjs +9 -9
  96. package/dist/footer/index.mjs +9 -9
  97. package/dist/form/checkbox/checkbox.js.map +1 -1
  98. package/dist/form/checkbox/checkbox.mjs +4 -4
  99. package/dist/form/checkbox/index.js.map +1 -1
  100. package/dist/form/checkbox/index.mjs +4 -4
  101. package/dist/form/date-picker/date-picker.mjs +5 -5
  102. package/dist/form/date-picker/index.mjs +5 -5
  103. package/dist/form/error-message/error-message.mjs +2 -2
  104. package/dist/form/error-message/index.mjs +2 -2
  105. package/dist/form/fieldset/fieldset.d.ts +2 -2
  106. package/dist/form/fieldset/fieldset.js.map +1 -1
  107. package/dist/form/fieldset/fieldset.mjs +3 -3
  108. package/dist/form/fieldset/index.js.map +1 -1
  109. package/dist/form/fieldset/index.mjs +3 -3
  110. package/dist/form/index.d.ts +1 -1
  111. package/dist/form/index.d.ts.map +1 -1
  112. package/dist/form/index.js +15 -16
  113. package/dist/form/index.js.map +1 -1
  114. package/dist/form/index.mjs +23 -23
  115. package/dist/form/input/index.mjs +4 -4
  116. package/dist/form/input/input.mjs +4 -4
  117. package/dist/form/input-group/index.mjs +3 -3
  118. package/dist/form/input-group/input-group.mjs +3 -3
  119. package/dist/form/radio-button/index.d.ts +5 -0
  120. package/dist/form/radio-button/index.d.ts.map +1 -0
  121. package/dist/form/{radiobutton → radio-button}/index.js +19 -20
  122. package/dist/form/radio-button/index.js.map +1 -0
  123. package/dist/form/radio-button/index.mjs +19 -0
  124. package/dist/form/radio-button/index.mjs.map +1 -0
  125. package/dist/form/{radiobutton/radiobutton.d.ts → radio-button/radio-button.d.ts} +6 -6
  126. package/dist/form/radio-button/radio-button.d.ts.map +1 -0
  127. package/dist/form/{radiobutton/radiobutton.js → radio-button/radio-button.js} +19 -20
  128. package/dist/form/radio-button/radio-button.js.map +1 -0
  129. package/dist/form/radio-button/radio-button.mjs +13 -0
  130. package/dist/form/radio-button/radio-button.mjs.map +1 -0
  131. package/dist/form/{radiobutton/radiogroup.d.ts → radio-button/radio-group.d.ts} +7 -7
  132. package/dist/form/radio-button/radio-group.d.ts.map +1 -0
  133. package/dist/form/{radiobutton/radiogroup.js → radio-button/radio-group.js} +7 -6
  134. package/dist/form/radio-button/radio-group.js.map +1 -0
  135. package/dist/form/radio-button/radio-group.mjs +14 -0
  136. package/dist/form/radio-button/radio-group.mjs.map +1 -0
  137. package/dist/form/select/index.mjs +4 -4
  138. package/dist/form/select/select.mjs +4 -4
  139. package/dist/form/textarea/index.mjs +4 -4
  140. package/dist/form/textarea/textarea.mjs +4 -4
  141. package/dist/help-text/help-text.mjs +3 -3
  142. package/dist/help-text/index.mjs +3 -3
  143. package/dist/index.d.ts +1 -0
  144. package/dist/index.d.ts.map +1 -1
  145. package/dist/index.js +557 -535
  146. package/dist/index.js.map +1 -1
  147. package/dist/index.mjs +86 -81
  148. package/dist/layout/container/container.mjs +2 -2
  149. package/dist/layout/grid/grid.js +1 -2
  150. package/dist/layout/grid/grid.js.map +1 -1
  151. package/dist/layout/grid/grid.mjs +3 -3
  152. package/dist/layout/grid/index.js +1 -2
  153. package/dist/layout/grid/index.js.map +1 -1
  154. package/dist/layout/grid/index.mjs +3 -3
  155. package/dist/layout/index.js +1 -2
  156. package/dist/layout/index.js.map +1 -1
  157. package/dist/layout/index.mjs +5 -5
  158. package/dist/layout/responsive.js +1 -2
  159. package/dist/layout/responsive.js.map +1 -1
  160. package/dist/layout/responsive.mjs +2 -2
  161. package/dist/layout/spacing.mjs +1 -1
  162. package/dist/layout/stack/index.js +1 -2
  163. package/dist/layout/stack/index.js.map +1 -1
  164. package/dist/layout/stack/index.mjs +3 -3
  165. package/dist/layout/stack/stack.js +1 -2
  166. package/dist/layout/stack/stack.js.map +1 -1
  167. package/dist/layout/stack/stack.mjs +3 -3
  168. package/dist/link/index.mjs +2 -2
  169. package/dist/link/link.mjs +2 -2
  170. package/dist/list/index.mjs +3 -3
  171. package/dist/list/link-list.mjs +3 -3
  172. package/dist/list/list.mjs +2 -2
  173. package/dist/message/index.mjs +3 -3
  174. package/dist/message/message.mjs +3 -3
  175. package/dist/modal/index.js +4 -8
  176. package/dist/modal/index.js.map +1 -1
  177. package/dist/modal/index.mjs +4 -4
  178. package/dist/modal/modal.js +4 -8
  179. package/dist/modal/modal.js.map +1 -1
  180. package/dist/modal/modal.mjs +4 -4
  181. package/dist/navbar/icons.d.ts.map +1 -1
  182. package/dist/navbar/icons.js +16 -5
  183. package/dist/navbar/icons.js.map +1 -1
  184. package/dist/navbar/icons.mjs +2 -2
  185. package/dist/navbar/index.js +22 -16
  186. package/dist/navbar/index.js.map +1 -1
  187. package/dist/navbar/index.mjs +5 -5
  188. package/dist/navbar/navbar-expandable-menu.js +22 -16
  189. package/dist/navbar/navbar-expandable-menu.js.map +1 -1
  190. package/dist/navbar/navbar-expandable-menu.mjs +4 -4
  191. package/dist/navbar/navbar.js +22 -16
  192. package/dist/navbar/navbar.js.map +1 -1
  193. package/dist/navbar/navbar.mjs +5 -5
  194. package/dist/show-more/index.mjs +2 -2
  195. package/dist/show-more/show-more.mjs +2 -2
  196. package/dist/skeleton/index.mjs +2 -2
  197. package/dist/skeleton/skeleton.mjs +2 -2
  198. package/dist/step-indicator/index.mjs +2 -2
  199. package/dist/step-indicator/step-indicator.mjs +2 -2
  200. package/dist/styled-html/index.js +1 -1
  201. package/dist/styled-html/index.js.map +1 -1
  202. package/dist/styled-html/index.mjs +2 -2
  203. package/dist/styled-html/styled-html.d.ts +9 -1
  204. package/dist/styled-html/styled-html.d.ts.map +1 -1
  205. package/dist/styled-html/styled-html.js +1 -1
  206. package/dist/styled-html/styled-html.js.map +1 -1
  207. package/dist/styled-html/styled-html.mjs +2 -2
  208. package/dist/table/index.mjs +2 -2
  209. package/dist/table/table.mjs +2 -2
  210. package/dist/tabs/context.mjs +1 -1
  211. package/dist/tabs/index.js +1 -2
  212. package/dist/tabs/index.js.map +1 -1
  213. package/dist/tabs/index.mjs +5 -5
  214. package/dist/tabs/tabs-content.mjs +2 -2
  215. package/dist/tabs/tabs-list.js +1 -2
  216. package/dist/tabs/tabs-list.js.map +1 -1
  217. package/dist/tabs/tabs-list.mjs +3 -3
  218. package/dist/tabs/tabs.js +1 -2
  219. package/dist/tabs/tabs.js.map +1 -1
  220. package/dist/tabs/tabs.mjs +5 -5
  221. package/dist/text/index.mjs +2 -2
  222. package/dist/text/text.mjs +2 -2
  223. package/dist/utils/auto-animate-height.js +5 -10
  224. package/dist/utils/auto-animate-height.js.map +1 -1
  225. package/dist/utils/auto-animate-height.mjs +3 -3
  226. package/dist/utils/index.js +11 -21
  227. package/dist/utils/index.js.map +1 -1
  228. package/dist/utils/index.mjs +3 -3
  229. package/dist/utils/utils.js +6 -11
  230. package/dist/utils/utils.js.map +1 -1
  231. package/dist/utils/utils.mjs +2 -2
  232. package/dist/warning-banner/index.mjs +2 -2
  233. package/dist/warning-banner/warning-banner.mjs +2 -2
  234. package/package.json +3 -3
  235. package/src/accordion/accordion.stories.tsx +7 -113
  236. package/src/badge/badge.stories.tsx +1 -30
  237. package/src/badge/badge.tsx +7 -3
  238. package/src/blockquote/blockquote.stories.tsx +21 -0
  239. package/src/blockquote/blockquote.tsx +52 -0
  240. package/src/blockquote/index.tsx +3 -0
  241. package/src/box/box.stories.tsx +13 -84
  242. package/src/breadcrumbs/breadcrumbs.stories.tsx +7 -22
  243. package/src/button/button.stories.tsx +1 -85
  244. package/src/card/card.stories.tsx +1 -42
  245. package/src/description-list/description-list.stories.tsx +5 -71
  246. package/src/form/checkbox/checkbox.stories.tsx +4 -80
  247. package/src/form/date-picker/date-picker.stories.tsx +7 -7
  248. package/src/form/error-message/error-message.stories.tsx +2 -2
  249. package/src/form/fieldset/fieldset.stories.tsx +1 -58
  250. package/src/form/fieldset/fieldset.tsx +2 -2
  251. package/src/form/index.tsx +1 -1
  252. package/src/form/input/input.stories.tsx +1 -142
  253. package/src/form/radio-button/index.tsx +4 -0
  254. package/src/form/radio-button/radio-button.stories.tsx +25 -0
  255. package/src/form/{radiobutton/radiobutton.tsx → radio-button/radio-button.tsx} +13 -13
  256. package/src/form/{radiobutton/radiogroup.stories.tsx → radio-button/radio-group.stories.tsx} +8 -9
  257. package/src/form/{radiobutton/radiogroup.tsx → radio-button/radio-group.tsx} +7 -6
  258. package/src/form/select/select.stories.tsx +1 -61
  259. package/src/form/textarea/textarea.stories.tsx +4 -85
  260. package/src/help-text/help-text.stories.tsx +19 -0
  261. package/src/index.ts +1 -0
  262. package/src/layout/container/container.stories.tsx +17 -14
  263. package/src/layout/grid/grid.stories.tsx +27 -0
  264. package/src/layout/stack/stack.stories.tsx +27 -0
  265. package/src/link/link.stories.tsx +7 -38
  266. package/src/list/link-list.stories.tsx +24 -27
  267. package/src/list/list.stories.tsx +10 -48
  268. package/src/message/message.stories.tsx +7 -65
  269. package/src/modal/modal.stories.tsx +1 -103
  270. package/src/navbar/icons.tsx +10 -3
  271. package/src/navbar/navbar.stories.tsx +22 -62
  272. package/src/show-more/show-more.stories.tsx +2 -98
  273. package/src/skeleton/skeleton.stories.tsx +2 -126
  274. package/src/step-indicator/step-indicator.stories.tsx +1 -31
  275. package/src/styled-html/styled-html.stories.tsx +21 -155
  276. package/src/styled-html/styled-html.tsx +12 -2
  277. package/src/table/table.stories.tsx +42 -0
  278. package/src/tabs/tabs.stories.tsx +7 -114
  279. package/src/text/text.stories.tsx +17 -83
  280. package/src/warning-banner/warning-banner.stories.tsx +1 -23
  281. package/dist/chunk-2KX7VFN2.mjs +0 -1
  282. package/dist/chunk-GJO7Z2YL.mjs.map +0 -1
  283. package/dist/chunk-GQUFERB2.mjs.map +0 -1
  284. package/dist/chunk-I3ZIMS72.mjs.map +0 -1
  285. package/dist/chunk-LG7QWKFP.mjs.map +0 -1
  286. package/dist/chunk-MOU6WBT2.mjs +0 -26
  287. package/dist/chunk-MOU6WBT2.mjs.map +0 -1
  288. package/dist/chunk-O4HIHUMD.mjs.map +0 -1
  289. package/dist/form/radiobutton/index.d.ts +0 -5
  290. package/dist/form/radiobutton/index.d.ts.map +0 -1
  291. package/dist/form/radiobutton/index.js.map +0 -1
  292. package/dist/form/radiobutton/index.mjs +0 -19
  293. package/dist/form/radiobutton/radiobutton.d.ts.map +0 -1
  294. package/dist/form/radiobutton/radiobutton.js.map +0 -1
  295. package/dist/form/radiobutton/radiobutton.mjs +0 -13
  296. package/dist/form/radiobutton/radiogroup.d.ts.map +0 -1
  297. package/dist/form/radiobutton/radiogroup.js.map +0 -1
  298. package/dist/form/radiobutton/radiogroup.mjs +0 -14
  299. package/src/form/radiobutton/index.tsx +0 -4
  300. package/src/form/radiobutton/radiobutton.stories.tsx +0 -93
  301. /package/dist/{chunk-2KX7VFN2.mjs.map → blockquote/blockquote.mjs.map} +0 -0
  302. /package/dist/{form/radiobutton → blockquote}/index.mjs.map +0 -0
  303. /package/dist/{chunk-CCVZAHYA.mjs.map → chunk-35QRZSEV.mjs.map} +0 -0
  304. /package/dist/{chunk-AJWSQEDP.mjs.map → chunk-3OGHJOJF.mjs.map} +0 -0
  305. /package/dist/{chunk-USXU6ULZ.mjs.map → chunk-4QZR2H72.mjs.map} +0 -0
  306. /package/dist/{chunk-FB5GEZNH.mjs.map → chunk-5UGT7L7R.mjs.map} +0 -0
  307. /package/dist/{chunk-XFODQH3I.mjs.map → chunk-6BXKRPR3.mjs.map} +0 -0
  308. /package/dist/{chunk-EVUKWONG.mjs.map → chunk-6ZO2TMOX.mjs.map} +0 -0
  309. /package/dist/{chunk-YSFZCRWS.mjs.map → chunk-A42PXOVR.mjs.map} +0 -0
  310. /package/dist/{chunk-6MR5XZOX.mjs.map → chunk-AYCHNAU7.mjs.map} +0 -0
  311. /package/dist/{chunk-NU6OSFAU.mjs.map → chunk-AZ6X4L5C.mjs.map} +0 -0
  312. /package/dist/{chunk-SQ63E7KM.mjs.map → chunk-BHQ46L2O.mjs.map} +0 -0
  313. /package/dist/{chunk-HMATZX4A.mjs.map → chunk-C7ZTOZP3.mjs.map} +0 -0
  314. /package/dist/{chunk-RZZDMBB7.mjs.map → chunk-CC5QWW52.mjs.map} +0 -0
  315. /package/dist/{chunk-B6L7IFDX.mjs.map → chunk-CXX4SXJG.mjs.map} +0 -0
  316. /package/dist/{chunk-GGQB2WWD.mjs.map → chunk-DMOMTRIY.mjs.map} +0 -0
  317. /package/dist/{chunk-KI6WRKZY.mjs.map → chunk-EAFQ3XQU.mjs.map} +0 -0
  318. /package/dist/{chunk-L4YBHIS3.mjs.map → chunk-EMQB6JIS.mjs.map} +0 -0
  319. /package/dist/{chunk-SKVM7G76.mjs.map → chunk-EZVEYJOX.mjs.map} +0 -0
  320. /package/dist/{chunk-AXKJB47E.mjs.map → chunk-FUIKSOJF.mjs.map} +0 -0
  321. /package/dist/{chunk-UB2R7TCG.mjs.map → chunk-JUHJZLH2.mjs.map} +0 -0
  322. /package/dist/{chunk-VCQIR53Y.mjs.map → chunk-JZXZYEPG.mjs.map} +0 -0
  323. /package/dist/{chunk-R4SQKVDQ.mjs.map → chunk-KFDS3IPB.mjs.map} +0 -0
  324. /package/dist/{chunk-DEZVONZD.mjs.map → chunk-KNGG6M2I.mjs.map} +0 -0
  325. /package/dist/{chunk-WHMIHTPC.mjs.map → chunk-LGEGXOPU.mjs.map} +0 -0
  326. /package/dist/{chunk-OIC2CPID.mjs.map → chunk-M7MG7ZQT.mjs.map} +0 -0
  327. /package/dist/{chunk-HJYS664B.mjs.map → chunk-MYVC3HMO.mjs.map} +0 -0
  328. /package/dist/{chunk-WPCWXROV.mjs.map → chunk-NIYDN3Y3.mjs.map} +0 -0
  329. /package/dist/{chunk-GRWLX5BC.mjs.map → chunk-ROQH67YP.mjs.map} +0 -0
  330. /package/dist/{chunk-GGNMBB3K.mjs.map → chunk-S3QSGJX2.mjs.map} +0 -0
  331. /package/dist/{chunk-UP3M3NEZ.mjs.map → chunk-TC5PD4TA.mjs.map} +0 -0
  332. /package/dist/{chunk-MJ2DZH3N.mjs.map → chunk-VYS2QNTL.mjs.map} +0 -0
  333. /package/dist/{chunk-JF3HBGAA.mjs.map → chunk-WLESNP6Z.mjs.map} +0 -0
  334. /package/dist/{chunk-BVPSZ3JI.mjs.map → chunk-WUPLEZEY.mjs.map} +0 -0
  335. /package/dist/{form/radiobutton/radiobutton.mjs.map → chunk-XAFNJELJ.mjs.map} +0 -0
  336. /package/dist/{chunk-5UJ3LEKK.mjs.map → chunk-XQBJ75VD.mjs.map} +0 -0
  337. /package/dist/{form/radiobutton/radiogroup.mjs.map → chunk-YOSPWY5K.mjs.map} +0 -0
  338. /package/dist/{chunk-D7QPJIUZ.mjs.map → chunk-YZDURLEY.mjs.map} +0 -0
  339. /package/dist/{chunk-COEZA7WA.mjs.map → chunk-Z2ZCM4BE.mjs.map} +0 -0
  340. /package/dist/{chunk-EMI7NAO2.mjs.map → chunk-ZOZPWP3N.mjs.map} +0 -0
@@ -1,6 +1,5 @@
1
1
  /* eslint-disable import/no-extraneous-dependencies -- storybook story */
2
2
  import type { Meta, StoryObj } from "@storybook/react";
3
- import { useState } from "react";
4
3
  import { Text } from "../text";
5
4
  import { Link } from "../link";
6
5
  import { Box } from ".";
@@ -8,20 +7,6 @@ import { Box } from ".";
8
7
  const meta: Meta<typeof Box> = {
9
8
  title: "Box",
10
9
  component: Box,
11
- args: {
12
- closeable: false,
13
- children: (
14
- <>
15
- <Text variant="h3-title" as="h2">
16
- Box content
17
- </Text>
18
- <Text _unstableSpacing>
19
- This is some body copy in a box, but you can basically add anything you want in here.
20
- </Text>
21
- <Link href="#a-link-for-whatever-reason">A link for whatever reason</Link>
22
- </>
23
- ),
24
- },
25
10
  argTypes: {
26
11
  variant: {
27
12
  options: ["light-grey", "lighter", "white", "warning"],
@@ -35,78 +20,22 @@ const meta: Meta<typeof Box> = {
35
20
  export default meta;
36
21
 
37
22
  type Story = StoryObj<typeof Box>;
38
- export const LightGreyBox: Story = {
39
- args: {
40
- variant: "light-grey",
41
- },
42
- };
43
-
44
- export const LighterBox: Story = {
45
- args: {
46
- closeable: true,
47
- variant: "lighter",
48
- },
49
- };
50
-
51
- export const WhiteBox: Story = {
52
- args: {
53
- closeable: true,
54
- variant: "white",
55
- },
56
- };
57
-
58
- export const WarningBox: Story = {
59
- args: {
60
- closeable: true,
61
- variant: "warning",
62
- },
63
- };
64
23
 
65
- export const AreYouSureDialog: Story = {
24
+ export const Preview: Story = {
66
25
  args: {
67
- closeable: true,
68
- variant: "warning",
69
- // eslint-disable-next-line no-alert -- Storybook story
70
- onClose: () => window.confirm("Are you sure you want to close?"),
71
- },
72
- };
73
-
74
- export const Custom: Story = {
75
- render: function CustomBox() {
76
- const [closeTimer, setCloseTimer] = useState<number | null>(null);
77
- function countDownFrom(seconds: number) {
78
- if (seconds > 0) {
79
- setCloseTimer(seconds);
80
- window.setTimeout(() => {
81
- countDownFrom(seconds - 1);
82
- }, 1000);
83
- } else {
84
- setCloseTimer(0);
85
- }
86
- }
87
-
88
- // Choosing to not render the box at all instead of hiding it with CSS
89
- if (closeTimer === 0) {
90
- // eslint-disable-next-line react/jsx-no-useless-fragment -- Typescript did not like it when I returned null in a story
91
- return <></>;
92
- }
93
-
94
- return (
95
- <Box variant="lighter">
96
- {/* Choosing to render the close button manually */}
97
- <Box.CloseButton
98
- onClick={() => {
99
- closeTimer === null && countDownFrom(5);
100
- }}
101
- />
102
- <Text variant="h3-title" as="h2">
103
- A customomized box
104
- {closeTimer !== null && ` - closing in ${closeTimer} seconds`}
26
+ closeable: false,
27
+ children: (
28
+ <>
29
+ <Text variant="h3-title" as="h3">
30
+ Box content
105
31
  </Text>
106
- <Text _unstableSpacing>
107
- With a custom close button, and a custom content. The content can be anything you like.
32
+ <Text className="hds-mt-16-20">
33
+ This is some body copy in a box, but you can basically add anything you want in here.
108
34
  </Text>
109
- </Box>
110
- );
35
+ <Text className="hds-mt-16-20">
36
+ <Link href="#a-link-for-whatever-reason">A link for whatever reason</Link>
37
+ </Text>{" "}
38
+ </>
39
+ ),
111
40
  },
112
41
  };
@@ -6,6 +6,13 @@ import { Breadcrumbs } from ".";
6
6
  const meta: Meta<typeof Breadcrumbs> = {
7
7
  title: "Breadcrumbs",
8
8
  component: Breadcrumbs,
9
+ };
10
+
11
+ export default meta;
12
+
13
+ type Story = StoryObj<typeof Breadcrumbs>;
14
+
15
+ export const Preview: Story = {
9
16
  args: {
10
17
  children: (
11
18
  <>
@@ -26,25 +33,3 @@ const meta: Meta<typeof Breadcrumbs> = {
26
33
  ),
27
34
  },
28
35
  };
29
-
30
- export default meta;
31
-
32
- type Story = StoryObj<typeof Breadcrumbs>;
33
-
34
- export const Default: Story = {};
35
-
36
- /**
37
- * You should have at minimum two levels in your hierarchy to use breadcrumbs.
38
- */
39
- export const TwoElements: Story = {
40
- args: {
41
- children: (
42
- <>
43
- <li>
44
- <Link href="https://www.posten.no">Track letters and parcels</Link>
45
- </li>
46
- <li>Shipment from SOMEONE YOU KNOW</li>
47
- </>
48
- ),
49
- },
50
- };
@@ -1,7 +1,5 @@
1
1
  /* eslint-disable import/no-extraneous-dependencies -- storybook story */
2
2
  import type { Meta, StoryObj } from "@storybook/react";
3
- import { HStack } from "../layout";
4
- import type { ButtonProps } from ".";
5
3
  import { Button } from ".";
6
4
 
7
5
  const meta: Meta<typeof Button> = {
@@ -16,91 +14,9 @@ export default meta;
16
14
 
17
15
  type Story = StoryObj<typeof Button>;
18
16
 
19
- export const Primary: Story = {
17
+ export const Preview: Story = {
20
18
  args: {
21
19
  variant: "primary",
22
20
  children: "Primary button",
23
21
  },
24
22
  };
25
-
26
- export const PrimaryOutline: Story = {
27
- args: {
28
- variant: "primary-outline",
29
- children: "Primary outline button",
30
- },
31
- };
32
-
33
- export const Secondary: Story = {
34
- args: {
35
- variant: "secondary",
36
- children: "Secondary button",
37
- },
38
- };
39
-
40
- export const SecondaryOutline: Story = {
41
- args: {
42
- variant: "secondary-outline",
43
- children: "Secondary outline button",
44
- },
45
- };
46
-
47
- export const AsALink: Story = {
48
- name: "As a link",
49
- render: (args) => (
50
- <HStack gap="16" wrap>
51
- <Button {...args} variant="primary" />
52
- <Button {...args} variant="primary-outline" />
53
- <Button {...args} variant="secondary" />
54
- <Button {...args} variant="secondary-outline" />
55
- </HStack>
56
- ),
57
- args: {
58
- children: (
59
- <a href="https://www.posten.no" target="_blank" rel="noopener">
60
- Link button
61
- </a>
62
- ),
63
- asChild: true,
64
- },
65
- };
66
-
67
- const createIconStory = (
68
- Component: typeof Button,
69
- extraArgs: Partial<ButtonProps> = {},
70
- ): Story => ({
71
- render: (args) => (
72
- <HStack gap="16" wrap align="end">
73
- <Component {...args} size="small" />
74
- <Component {...args} size="medium" />
75
- <Component {...args} size="large" />
76
- </HStack>
77
- ),
78
- args: {
79
- lang: "en",
80
- "aria-label": "Choose language",
81
- icon: true,
82
- children: (
83
- <svg
84
- aria-hidden
85
- fill="none"
86
- height="24"
87
- viewBox="0 0 24 24"
88
- width="24"
89
- xmlns="http://www.w3.org/2000/svg"
90
- >
91
- <path
92
- d="M12 19.3125C12.2602 19.3125 12.9492 19.0594 13.6734 17.6109C13.9828 16.9887 14.25 16.2328 14.4469 15.375H9.55312C9.75 16.2328 10.0172 16.9887 10.3266 17.6109C11.0508 19.0594 11.7398 19.3125 12 19.3125ZM9.27539 13.6875H14.7246C14.7809 13.1496 14.8125 12.5836 14.8125 12C14.8125 11.4164 14.7809 10.8504 14.7246 10.3125H9.27539C9.21914 10.8504 9.1875 11.4164 9.1875 12C9.1875 12.5836 9.21914 13.1496 9.27539 13.6875ZM9.55312 8.625H14.4469C14.25 7.76719 13.9828 7.01133 13.6734 6.38906C12.9492 4.94063 12.2602 4.6875 12 4.6875C11.7398 4.6875 11.0508 4.94063 10.3266 6.38906C10.0172 7.01133 9.75 7.76719 9.55312 8.625ZM16.4191 10.3125C16.4719 10.8574 16.4965 11.4234 16.4965 12C16.4965 12.5766 16.4684 13.1426 16.4191 13.6875H19.1156C19.2422 13.1461 19.3125 12.5801 19.3125 12C19.3125 11.4199 19.2457 10.8539 19.1156 10.3125H16.4227H16.4191ZM18.4863 8.625C17.734 7.18008 16.5141 6.01992 15.027 5.34141C15.5227 6.24141 15.9164 7.36289 16.173 8.625H18.4898H18.4863ZM7.82344 8.625C8.08008 7.36289 8.47383 6.24492 8.96953 5.34141C7.48242 6.01992 6.2625 7.18008 5.51016 8.625H7.82695H7.82344ZM4.88437 10.3125C4.75781 10.8539 4.6875 11.4199 4.6875 12C4.6875 12.5801 4.7543 13.1461 4.88437 13.6875H7.58086C7.52813 13.1426 7.50352 12.5766 7.50352 12C7.50352 11.4234 7.53164 10.8574 7.58086 10.3125H4.88437ZM15.027 18.6586C16.5141 17.9801 17.734 16.8199 18.4863 15.375H16.173C15.9164 16.6371 15.5227 17.7551 15.027 18.6586ZM8.97305 18.6586C8.47734 17.7586 8.08359 16.6371 7.82695 15.375H5.51016C6.2625 16.8199 7.48242 17.9801 8.96953 18.6586H8.97305ZM12 21C9.61305 21 7.32387 20.0518 5.63604 18.364C3.94821 16.6761 3 14.3869 3 12C3 9.61305 3.94821 7.32387 5.63604 5.63604C7.32387 3.94821 9.61305 3 12 3C14.3869 3 16.6761 3.94821 18.364 5.63604C20.0518 7.32387 21 9.61305 21 12C21 14.3869 20.0518 16.6761 18.364 18.364C16.6761 20.0518 14.3869 21 12 21Z"
93
- fill="currentColor"
94
- />
95
- </svg>
96
- ),
97
- ...extraArgs,
98
- },
99
- });
100
-
101
- export const IconPrimary: Story = createIconStory(Button, { variant: "secondary" });
102
- export const IconPrimaryOutline: Story = createIconStory(Button, { variant: "primary-outline" });
103
- export const IconSecondary: Story = createIconStory(Button, { variant: "secondary" });
104
- export const IconSecondaryOutline: Story = createIconStory(Button, {
105
- variant: "secondary-outline",
106
- });
@@ -1,6 +1,5 @@
1
1
  /* eslint-disable import/no-extraneous-dependencies -- storybook story */
2
2
  import type { Meta, StoryObj } from "@storybook/react";
3
- import type { ReactNode } from "react";
4
3
  import { Card } from ".";
5
4
 
6
5
  const meta: Meta<typeof Card> = {
@@ -12,8 +11,7 @@ export default meta;
12
11
 
13
12
  type Story = StoryObj<typeof Card>;
14
13
 
15
- export const CardStory: Story = {
16
- name: "Card",
14
+ export const Preview: Story = {
17
15
  render: (props) => (
18
16
  <Card {...props} as="div" style={{ maxWidth: "500px", ...props.style }}>
19
17
  <Card.Media style={{ width: "100%" }}>
@@ -41,42 +39,3 @@ export const CardStory: Story = {
41
39
  </Card>
42
40
  ),
43
41
  };
44
-
45
- function Link({
46
- to,
47
- className,
48
- children,
49
- }: {
50
- to: string;
51
- className?: string;
52
- children: ReactNode;
53
- }) {
54
- return (
55
- <a className={className} href={to}>
56
- {children}
57
- </a>
58
- );
59
- }
60
-
61
- export const CardFullWidth: Story = {
62
- render: (props) => (
63
- <Card {...props} as="div">
64
- <Card.Media>
65
- <Card.MediaImg alt="posten-bring" src="./posten-bring.jpg" />
66
- </Card.Media>
67
- <Card.Body>
68
- <Card.BodyHeader as="h2">
69
- <Card.BodyHeaderOverline>Theme</Card.BodyHeaderOverline>
70
- <Card.BodyHeaderTitle asChild>
71
- <Link to="#article">Cool article</Link>
72
- </Card.BodyHeaderTitle>
73
- </Card.BodyHeader>
74
- <Card.BodyDescription>
75
- The card will take up all available space by default. It is the consumer&apos;s choice and
76
- responsibility to limit the width if wanted.
77
- </Card.BodyDescription>
78
- <Card.BodyActionArrow />
79
- </Card.Body>
80
- </Card>
81
- ),
82
- };
@@ -7,86 +7,20 @@ type Story = StoryObj<typeof DescriptionList>;
7
7
  const meta: Meta<typeof DescriptionList> = {
8
8
  title: "Description List",
9
9
  component: DescriptionList,
10
- args: {
11
- children: (
12
- <>
13
- <dt>Vekt</dt>
14
- <dd>12 kg</dd>
15
- <dt>Antall kolli</dt>
16
- <dd>2</dd>
17
- <dt>Sendingsnummer</dt>
18
- <dd>7000001</dd>
19
- <dt>Avsender</dt>
20
- <dd>Fjellsport</dd>
21
- </>
22
- ),
23
- },
24
10
  };
25
11
 
26
12
  export default meta;
27
13
 
28
- export const Vertical: Story = { args: { variant: "vertical" } };
29
- export const Horizontal: Story = { args: { variant: "horizontal" } };
30
-
31
- export const WrappedInDivs: Story = {
14
+ export const Preview: Story = {
32
15
  args: {
33
- children: (
34
- <>
35
- <div>
36
- <dt>Vekt</dt>
37
- <dd>12 kg</dd>
38
- </div>
39
- <div>
40
- <dt>Antall kolli</dt>
41
- <dd>2</dd>
42
- </div>
43
- <div>
44
- <dt>Sendingsnummer</dt>
45
- <dd>7000001</dd>
46
- </div>
47
- <div>
48
- <dt>Avsender</dt>
49
- <dd>Fjellsport</dd>
50
- </div>
51
- </>
52
- ),
53
- },
54
- };
55
-
56
- export const Paragraph: Story = {
57
- name: "<p> tag as child",
58
- args: {
59
- variant: "horizontal",
60
- children: (
61
- <>
62
- <dt>Vekt</dt>
63
- <dd>12 kg</dd>
64
- <dt>
65
- <p>Title</p>
66
- </dt>
67
- <dd>
68
- <p>Paragraph</p>
69
- </dd>
70
- </>
71
- ),
72
- },
73
- };
74
-
75
- export const HorizontalLongContent: Story = {
76
- args: {
77
- variant: "horizontal",
78
16
  children: (
79
17
  <>
80
18
  <dt>Vekt</dt>
81
19
  <dd>12 kg</dd>
82
- <dt>
83
- <p>Title</p>
84
- </dt>
85
- <dd>
86
- <p>
87
- ParagraphParagraphParagraphParagraphParagraphParagraphParagraphParagraphParagraphParagraphParagraphParagraphParagraphParagraphParagraphParagraph
88
- </p>
89
- </dd>
20
+ <dt>Antall kolli</dt>
21
+ <dd>2</dd>
22
+ <dt>Sendingsnummer</dt>
23
+ <dd>7000001</dd>
90
24
  <dt>Avsender</dt>
91
25
  <dd>Fjellsport</dd>
92
26
  </>
@@ -1,20 +1,20 @@
1
1
  /* eslint-disable import/no-extraneous-dependencies -- storybook story */
2
2
  import type { Meta, StoryObj } from "@storybook/react";
3
- import { Fieldset } from "../fieldset";
4
- import { VStack } from "../../layout";
5
3
  import { Checkbox } from "./index";
6
4
 
7
5
  const meta: Meta<typeof Checkbox> = {
8
6
  title: "Form/Checkbox",
9
7
  component: Checkbox,
8
+ argTypes: {
9
+ variant: { control: "inline-radio", options: ["plain", "bounding-box"] },
10
+ },
10
11
  };
11
12
 
12
13
  export default meta;
13
14
 
14
15
  type Story = StoryObj<typeof Checkbox>;
15
16
 
16
- export const JustACheckbox: Story = {
17
- name: "Just a checkbox",
17
+ export const Preview: Story = {
18
18
  args: {
19
19
  title: "",
20
20
  children: "Just a checkbox",
@@ -25,80 +25,4 @@ export const JustACheckbox: Story = {
25
25
  /**/
26
26
  },
27
27
  },
28
- argTypes: {
29
- variant: { control: "inline-radio", options: ["plain", "bounding-box"] },
30
- },
31
- };
32
-
33
- export const PlainCheckboxes: Story = {
34
- name: "Checkboxes",
35
- render: (_props) => (
36
- <Fieldset legend="Checkboxes should be grouped in a Fieldset">
37
- <Checkbox>This is a checkbox</Checkbox>
38
- <Checkbox>This is another checkbox</Checkbox>
39
- </Fieldset>
40
- ),
41
- };
42
-
43
- export const PlainCheckboxesWithError: Story = {
44
- name: "Checkboxes with error",
45
- render: (_props) => (
46
- <Fieldset
47
- legend="Fieldset will aid you with styling and aria when it is provided an error message"
48
- errorMessage="Something is wrong"
49
- >
50
- <Checkbox>This is a checkbox</Checkbox>
51
- <Checkbox>This is another checkbox</Checkbox>
52
- </Fieldset>
53
- ),
54
- };
55
-
56
- export const PlainCheckboxeWithError: Story = {
57
- name: "Standalone checkbox with error message",
58
- args: {
59
- errorMessage: "Something is wrong",
60
- children: "This is a checkbox with an error message",
61
- },
62
- };
63
-
64
- export const BoundedCheckbox: Story = {
65
- name: "Checkbox with bounding box",
66
- render: (_props) => (
67
- <VStack gap="8">
68
- <Checkbox variant="bounding-box">This is a checkbox with bounding box</Checkbox>
69
- <Checkbox errorMessage="Something is wrong" variant="bounding-box">
70
- This is a checkbox with bounding box and error
71
- </Checkbox>
72
- </VStack>
73
- ),
74
- };
75
-
76
- export const DetailedContentCheckbox: Story = {
77
- name: "Checkbox with title",
78
- render: (_props) => (
79
- <VStack gap="8">
80
- <Checkbox title="Check this box">Detailed description if needed</Checkbox>
81
- <Checkbox errorMessage="Something is wrong" title="Checkbox with error">
82
- Detailed description if needed
83
- </Checkbox>
84
- </VStack>
85
- ),
86
- };
87
-
88
- export const DetailedContentCheckboxWithBoundingBox: Story = {
89
- name: "Checkbox with bounding box and title",
90
- render: (_props) => (
91
- <VStack gap="8">
92
- <Checkbox title="Check this box" variant="bounding-box">
93
- Detailed description if needed
94
- </Checkbox>
95
- <Checkbox
96
- errorMessage="Something is wrong"
97
- title="Checkbox with error"
98
- variant="bounding-box"
99
- >
100
- Detailed description if needed
101
- </Checkbox>
102
- </VStack>
103
- ),
104
28
  };
@@ -3,25 +3,25 @@ import type { Meta, StoryObj } from "@storybook/react";
3
3
  import { DatePicker } from ".";
4
4
 
5
5
  const meta: Meta<typeof DatePicker> = {
6
- title: "Form/DatePicker",
6
+ title: "Form/Date Picker",
7
7
  component: DatePicker,
8
+ argTypes: {
9
+ variant: { control: "inline-radio", options: ["default", "white"] },
10
+ },
8
11
  };
9
12
 
10
13
  export default meta;
11
14
 
12
15
  type Story = StoryObj<typeof DatePicker>;
13
16
 
14
- export const PlainDatePicker: Story = {
17
+ export const Preview: Story = {
15
18
  args: {
16
- label: "Some kind of date picker",
19
+ label: "Choose a date",
17
20
  errorMessage: "",
18
21
  readOnly: false,
19
22
  variant: "default",
20
23
  min: "2024-04-05",
21
24
  max: "2026-04-04",
22
- calendarButtonTitle: "Åpne kalender",
23
- },
24
- argTypes: {
25
- variant: { control: "inline-radio", options: ["default", "white"] },
25
+ calendarButtonTitle: "Open calendar",
26
26
  },
27
27
  };
@@ -3,7 +3,7 @@ import type { Meta, StoryObj } from "@storybook/react";
3
3
  import { ErrorMessage } from ".";
4
4
 
5
5
  const meta: Meta<typeof ErrorMessage> = {
6
- title: "Form/ErrorMessage",
6
+ title: "Form/Error Message",
7
7
  component: ErrorMessage,
8
8
  };
9
9
 
@@ -11,7 +11,7 @@ export default meta;
11
11
 
12
12
  type Story = StoryObj<typeof ErrorMessage>;
13
13
 
14
- export const Default: Story = {
14
+ export const Preview: Story = {
15
15
  args: {
16
16
  id: "id",
17
17
  children: "This is an error message for use with form input components",
@@ -1,7 +1,6 @@
1
1
  /* eslint-disable import/no-extraneous-dependencies -- storybook story */
2
2
  import type { Meta, StoryObj } from "@storybook/react";
3
3
  import { Checkbox } from "../checkbox";
4
- import { Radiobutton } from "../radiobutton";
5
4
  import { Fieldset } from ".";
6
5
 
7
6
  const meta: Meta<typeof Fieldset> = {
@@ -13,7 +12,7 @@ export default meta;
13
12
 
14
13
  type Story = StoryObj<typeof Fieldset>;
15
14
 
16
- export const Default: Story = {
15
+ export const Preview: Story = {
17
16
  args: {
18
17
  legend: "Default fieldset",
19
18
  errorMessage: "",
@@ -28,59 +27,3 @@ export const Default: Story = {
28
27
  </Fieldset>
29
28
  ),
30
29
  };
31
-
32
- export const LargeLegend: Story = {
33
- args: {
34
- legend: "Fieldset with large legend",
35
- legendProps: { size: "large" },
36
- },
37
- render: (props) => (
38
- <Fieldset {...props}>
39
- <Checkbox defaultChecked value="Hello">
40
- Hello
41
- </Checkbox>
42
- <Checkbox value="Hello">Hello</Checkbox>
43
- <Checkbox value="Hello">Hello</Checkbox>
44
- </Fieldset>
45
- ),
46
- };
47
-
48
- export const FieldsetErrorCheckboxes: Story = {
49
- args: {
50
- legend: "Checkboxes wrapped in Fieldset will get error styling when Fieldset has errorMessage",
51
- errorMessage: "Something's wrong",
52
- },
53
- render: (props) => (
54
- <Fieldset {...props}>
55
- <Checkbox value="Hello">Hello</Checkbox>
56
- <Checkbox value="Hello">Hello</Checkbox>
57
- <Checkbox value="Hello">Hello</Checkbox>
58
- </Fieldset>
59
- ),
60
- };
61
-
62
- export const FieldsetErrorRadiobuttons: Story = {
63
- args: {
64
- legend: (
65
- <>
66
- Radiobuttons wrapped in Fieldset will get error styling when Fieldset has errorMessage
67
- <br />
68
- However, you should probably use RadioGroup instead of Fieldset for Radiobuttons
69
- </>
70
- ),
71
- errorMessage: "Something's wrong",
72
- },
73
- render: (props) => (
74
- <Fieldset {...props}>
75
- <Radiobutton value="Hello" name="radiogroup">
76
- Hello
77
- </Radiobutton>
78
- <Radiobutton value="Hello" name="radiogroup">
79
- Hello
80
- </Radiobutton>
81
- <Radiobutton value="Hello" name="radiogroup">
82
- Hello
83
- </Radiobutton>
84
- </Fieldset>
85
- ),
86
- };
@@ -7,10 +7,10 @@ export interface FieldsetProps extends FieldsetHTMLAttributes<HTMLFieldSetElemen
7
7
  className?: string;
8
8
  style?: CSSProperties;
9
9
  /**
10
- * Providing an errorMessage will also give contained Checkboxes or Radiobuttons
10
+ * Providing an errorMessage will also give contained Checkboxes or Radio buttons
11
11
  * error styling and aria to indicate invalid state.
12
12
  *
13
- * For Radiobuttons you are even better off using RadioGroup.
13
+ * For Radio buttons you are even better off using RadioGroup.
14
14
  */
15
15
  errorMessage?: ReactNode;
16
16
  legendProps?: HTMLAttributes<HTMLElement> & { size: "default" | "large" };
@@ -3,6 +3,6 @@ export * from "./date-picker";
3
3
  export * from "./error-message";
4
4
  export * from "./fieldset";
5
5
  export * from "./input";
6
- export * from "./radiobutton";
6
+ export * from "./radio-button";
7
7
  export * from "./select";
8
8
  export * from "./textarea";