@westpac/ui 0.7.0 → 0.7.1

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 (365) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/assets/icons/filled/credit-cards-filled.svg +4 -0
  3. package/assets/icons/filled/exit-filled.svg +3 -3
  4. package/assets/icons/filled/office-filled.svg +1 -4
  5. package/assets/icons/filled/pay-to-filled.svg +5 -0
  6. package/assets/icons/filled/tiles-filled.svg +6 -0
  7. package/assets/icons/outlined/credit-cards-outlined.svg +4 -0
  8. package/assets/icons/outlined/exit-outlined.svg +3 -3
  9. package/assets/icons/outlined/office-outlined.svg +4 -1
  10. package/assets/icons/outlined/pay-to-outlined.svg +5 -0
  11. package/assets/icons/outlined/tiles-outlined.svg +3 -0
  12. package/dist/component-type.json +1 -0
  13. package/dist/components/accordion/accordion.component.d.ts +8 -23
  14. package/dist/components/accordion/accordion.component.js +3 -4
  15. package/dist/components/accordion/accordion.stories.d.ts +9 -6
  16. package/dist/components/accordion/accordion.stories.js +37 -29
  17. package/dist/components/accordion/accordion.styles.d.ts +1 -9
  18. package/dist/components/accordion/accordion.styles.js +1 -5
  19. package/dist/components/accordion/accordion.types.d.ts +11 -5
  20. package/dist/components/accordion/components/accordion-item/accordion-item.component.d.ts +4 -1
  21. package/dist/components/accordion/components/accordion-item/accordion-item.component.js +18 -17
  22. package/dist/components/accordion/components/accordion-item/accordion-item.styles.d.ts +4 -24
  23. package/dist/components/accordion/components/accordion-item/accordion-item.styles.js +8 -42
  24. package/dist/components/accordion/components/accordion-item/accordion-item.types.d.ts +7 -1
  25. package/dist/components/alert/alert.component.js +1 -0
  26. package/dist/components/alert/alert.styles.js +3 -3
  27. package/dist/components/alert/alert.types.d.ts +1 -3
  28. package/dist/components/autocomplete/autocomplete.component.js +1 -0
  29. package/dist/components/autocomplete/autocomplete.types.d.ts +15 -1
  30. package/dist/components/autocomplete/components/list-box/components/list-box-option/list-box-option.component.d.ts +3 -0
  31. package/dist/components/autocomplete/components/list-box/components/list-box-section/list-box-section.component.d.ts +3 -0
  32. package/dist/components/autocomplete/components/list-box/list-box.component.d.ts +3 -0
  33. package/dist/components/autocomplete/components/popover/popover.component.d.ts +3 -0
  34. package/dist/components/badge/badge.component.d.ts +7 -49
  35. package/dist/components/badge/badge.component.js +1 -0
  36. package/dist/components/badge/badge.types.d.ts +11 -1
  37. package/dist/components/breadcrumb/breadcrumb.component.d.ts +1 -21
  38. package/dist/components/breadcrumb/breadcrumb.component.js +1 -0
  39. package/dist/components/breadcrumb/breadcrumb.types.d.ts +8 -2
  40. package/dist/components/breadcrumb/components/breadcrumb-item/breadcrumb-item.component.d.ts +1 -21
  41. package/dist/components/breadcrumb/components/breadcrumb-item/breadcrumb-item.component.js +1 -0
  42. package/dist/components/breadcrumb/components/breadcrumb-item/breadcrumb-item.types.d.ts +1 -3
  43. package/dist/components/button/button.component.d.ts +16 -125
  44. package/dist/components/button/button.component.js +1 -0
  45. package/dist/components/button/button.styles.js +5 -5
  46. package/dist/components/button/button.types.d.ts +23 -1
  47. package/dist/components/button-dropdown/button-dropdown.component.js +1 -0
  48. package/dist/components/button-dropdown/button-dropdown.styles.d.ts +2 -0
  49. package/dist/components/button-dropdown/button-dropdown.styles.js +2 -1
  50. package/dist/components/button-dropdown/button-dropdown.types.d.ts +7 -1
  51. package/dist/components/button-dropdown/components/panel/panel.component.d.ts +3 -0
  52. package/dist/components/button-group/button-group.component.js +1 -0
  53. package/dist/components/checkbox-group/checkbox-group.component.js +1 -0
  54. package/dist/components/checkbox-group/components/checkbox/checkbox.component.js +11 -4
  55. package/dist/components/circle/circle.types.d.ts +1 -3
  56. package/dist/components/collapsible/collapsible.component.js +1 -0
  57. package/dist/components/collapsible/collapsible.styles.js +1 -1
  58. package/dist/components/compacta/compacta.component.js +2 -1
  59. package/dist/components/compacta/compacta.styles.js +10 -10
  60. package/dist/components/date-picker/date-picker.component.js +1 -0
  61. package/dist/components/date-picker/date-picker.types.d.ts +7 -1
  62. package/dist/components/error-message/error-message.types.d.ts +1 -3
  63. package/dist/components/field/field.component.js +1 -0
  64. package/dist/components/field/field.types.d.ts +1 -3
  65. package/dist/components/flexi-cell/components/flexi-cell-adornment/flexi-cell-adornment.component.d.ts +4 -1
  66. package/dist/components/flexi-cell/components/flexi-cell-adornment/flexi-cell-adornment.component.js +1 -0
  67. package/dist/components/flexi-cell/components/flexi-cell-adornment/flexi-cell-adornment.types.d.ts +1 -3
  68. package/dist/components/flexi-cell/components/flexi-cell-body/flexi-cell-body.component.d.ts +4 -1
  69. package/dist/components/flexi-cell/components/flexi-cell-body/flexi-cell-body.component.js +1 -0
  70. package/dist/components/flexi-cell/components/flexi-cell-body/flexi-cell-body.types.d.ts +1 -3
  71. package/dist/components/flexi-cell/components/flexi-cell-button/flexi-cell-button.component.d.ts +4 -1
  72. package/dist/components/flexi-cell/components/flexi-cell-button/flexi-cell-button.component.js +1 -0
  73. package/dist/components/flexi-cell/components/flexi-cell-circle/flexi-cell-circle.component.d.ts +4 -1
  74. package/dist/components/flexi-cell/components/flexi-cell-circle/flexi-cell-circle.component.js +1 -0
  75. package/dist/components/flexi-cell/components/flexi-cell-footer/flexi-cell-footer.component.d.ts +4 -1
  76. package/dist/components/flexi-cell/components/flexi-cell-footer/flexi-cell-footer.component.js +1 -0
  77. package/dist/components/flexi-cell/components/flexi-cell-hint/flexi-cell-hint.component.d.ts +4 -1
  78. package/dist/components/flexi-cell/components/flexi-cell-hint/flexi-cell-hint.component.js +1 -0
  79. package/dist/components/flexi-cell/components/flexi-cell-hint/flexi-cell-hint.types.d.ts +1 -3
  80. package/dist/components/flexi-cell/components/flexi-cell-label/flexi-cell-label.component.d.ts +4 -1
  81. package/dist/components/flexi-cell/components/flexi-cell-label/flexi-cell-label.component.js +1 -0
  82. package/dist/components/flexi-cell/components/flexi-cell-label/flexi-cell-label.types.d.ts +1 -3
  83. package/dist/components/flexi-cell/flexi-cell.component.js +1 -0
  84. package/dist/components/flexi-cell/flexi-cell.types.d.ts +1 -3
  85. package/dist/components/form/components/form-chit-chat/form-chit-chat.types.d.ts +1 -3
  86. package/dist/components/form/components/form-group/form-group.types.d.ts +1 -3
  87. package/dist/components/form/components/form-section/form-section.types.d.ts +7 -1
  88. package/dist/components/form/form.component.js +1 -0
  89. package/dist/components/form/form.types.d.ts +9 -0
  90. package/dist/components/form-hint/form-hint.types.d.ts +1 -3
  91. package/dist/components/form-label/form-label.types.d.ts +8 -2
  92. package/dist/components/grid/components/container/container.types.d.ts +1 -3
  93. package/dist/components/grid/components/item/item.types.d.ts +11 -1
  94. package/dist/components/grid/grid.types.d.ts +1 -3
  95. package/dist/components/icon/components/credit-cards-icon.d.ts +2 -0
  96. package/dist/components/icon/components/credit-cards-icon.js +38 -0
  97. package/dist/components/icon/components/exit-icon.js +2 -2
  98. package/dist/components/icon/components/office-icon.d.ts +1 -1
  99. package/dist/components/icon/components/office-icon.js +19 -5
  100. package/dist/components/icon/components/pay-to-icon.d.ts +2 -0
  101. package/dist/components/icon/components/pay-to-icon.js +34 -0
  102. package/dist/components/icon/components/tiles-icon.d.ts +2 -0
  103. package/dist/components/icon/components/tiles-icon.js +39 -0
  104. package/dist/components/icon/icon.styles.d.ts +1 -1
  105. package/dist/components/icon/icon.styles.js +1 -1
  106. package/dist/components/icon/icon.types.d.ts +11 -1
  107. package/dist/components/icon/index.d.ts +3 -6
  108. package/dist/components/icon/index.js +3 -6
  109. package/dist/components/input/input.component.d.ts +4 -31
  110. package/dist/components/input/input.component.js +1 -0
  111. package/dist/components/input/input.styles.d.ts +1 -1
  112. package/dist/components/input/input.styles.js +1 -1
  113. package/dist/components/input/input.types.d.ts +10 -1
  114. package/dist/components/input-field/components/add-ons/add-ons.component.d.ts +3 -0
  115. package/dist/components/input-field/components/add-ons/components/default-add-on/default-add-on.component.d.ts +3 -0
  116. package/dist/components/input-field/components/add-ons/components/default-add-on/default-add-on.types.d.ts +1 -3
  117. package/dist/components/input-field/components/add-ons/components/icon-add-on/icon-add-on.component.d.ts +3 -0
  118. package/dist/components/input-field/components/add-ons/components/icon-add-on/icon-add-on.types.d.ts +1 -3
  119. package/dist/components/input-field/components/add-ons/components/text-add-on/text-add-on.component.d.ts +3 -0
  120. package/dist/components/input-field/components/add-ons/components/text-add-on/text-add-on.types.d.ts +1 -3
  121. package/dist/components/input-field/components/supporting-text/supporting-text.component.d.ts +3 -0
  122. package/dist/components/input-field/components/supporting-text/supporting-text.types.d.ts +1 -3
  123. package/dist/components/input-field/input-field.component.js +1 -0
  124. package/dist/components/input-field/input-field.scenarios.stories.js +2 -2
  125. package/dist/components/input-field/input-field.types.d.ts +1 -3
  126. package/dist/components/link/link.component.js +1 -0
  127. package/dist/components/list/list.component.js +1 -0
  128. package/dist/components/modal/components/backdrop/backdrop.types.d.ts +1 -3
  129. package/dist/components/modal/components/dialog/components/dialog-body/dialog-body.types.d.ts +1 -3
  130. package/dist/components/modal/components/dialog/components/dialog-footer/dialog-footer.types.d.ts +1 -3
  131. package/dist/components/modal/components/dialog/dialog.types.d.ts +7 -1
  132. package/dist/components/modal/modal.component.js +1 -0
  133. package/dist/components/pagination/components/pagination-item/pagination-item.component.d.ts +1 -1
  134. package/dist/components/pagination/components/pagination-item/pagination-item.component.js +2 -1
  135. package/dist/components/pagination/components/pagination-item/pagination-item.styles.d.ts +9 -1
  136. package/dist/components/pagination/components/pagination-item/pagination-item.styles.js +7 -3
  137. package/dist/components/pagination/components/pagination-item/pagination-item.types.d.ts +20 -2
  138. package/dist/components/pagination/pagination.component.js +3 -1
  139. package/dist/components/pagination/pagination.stories.js +1 -1
  140. package/dist/components/pagination/pagination.styles.js +1 -1
  141. package/dist/components/pagination/pagination.types.d.ts +1 -3
  142. package/dist/components/pictogram/pictogram.types.d.ts +1 -3
  143. package/dist/components/popover/popover.component.js +1 -0
  144. package/dist/components/progress-bar/progress-bar.component.js +1 -0
  145. package/dist/components/progress-rope/components/progress-rope-group-step/progress-rope-group-step.types.d.ts +1 -3
  146. package/dist/components/progress-rope/components/progress-rope-step/progress-rope-step.types.d.ts +11 -1
  147. package/dist/components/progress-rope/progress-rope.component.js +1 -0
  148. package/dist/components/progress-rope/progress-rope.types.d.ts +1 -3
  149. package/dist/components/radio-group/components/radio/radio.component.js +1 -0
  150. package/dist/components/radio-group/components/radio/radio.styles.js +2 -2
  151. package/dist/components/radio-group/radio-group.component.js +1 -0
  152. package/dist/components/repeater/repeater.component.js +3 -1
  153. package/dist/components/repeater/repeater.styles.js +2 -2
  154. package/dist/components/select/select.component.d.ts +8 -35
  155. package/dist/components/select/select.component.js +1 -0
  156. package/dist/components/select/select.styles.d.ts +1 -1
  157. package/dist/components/select/select.styles.js +1 -1
  158. package/dist/components/select/select.types.d.ts +12 -1
  159. package/dist/components/selector/components/selector-checkbox-group/components/selector-checkbox-group-option/selector-checkbox-group-option.types.d.ts +1 -3
  160. package/dist/components/selector/components/selector-checkbox-group/selector-checkbox-group.component.d.ts +28 -7
  161. package/dist/components/selector/components/selector-checkbox-group/selector-checkbox-group.types.d.ts +1 -3
  162. package/dist/components/selector/components/selector-radio-group/components/selector-radio-group-option/selector-radio-group-option.types.d.ts +1 -3
  163. package/dist/components/selector/components/selector-radio-group/selector-radio-group.component.d.ts +28 -7
  164. package/dist/components/selector/components/selector-radio-group/selector-radio-group.types.d.ts +7 -1
  165. package/dist/components/selector/selector.component.d.ts +81 -21
  166. package/dist/components/selector/selector.component.js +1 -0
  167. package/dist/components/skip-link/skip-link.component.js +1 -0
  168. package/dist/components/skip-link/skip-link.types.d.ts +1 -3
  169. package/dist/components/switch/switch.component.js +1 -0
  170. package/dist/components/switch/switch.types.d.ts +8 -2
  171. package/dist/components/symbol/index.d.ts +1 -0
  172. package/dist/components/symbol/index.js +1 -0
  173. package/dist/components/symbol/symbol.stories.d.ts +1 -0
  174. package/dist/components/symbol/symbol.stories.js +62 -3
  175. package/dist/components/symbol/symbol.types.d.ts +1 -3
  176. package/dist/components/table/table.component.js +1 -0
  177. package/dist/components/tabs/components/tab/tab.types.d.ts +15 -1
  178. package/dist/components/tabs/components/tab-panel/tab-panel.component.d.ts +3 -0
  179. package/dist/components/tabs/components/tab-panel/tab-panel.component.js +1 -0
  180. package/dist/components/tabs/components/tab-panel/tab-panel.types.d.ts +7 -1
  181. package/dist/components/tabs/tabs.component.js +1 -0
  182. package/dist/components/tabs/tabs.types.d.ts +15 -1
  183. package/dist/components/textarea/textarea.component.d.ts +8 -31
  184. package/dist/components/textarea/textarea.component.js +1 -0
  185. package/dist/components/textarea/textarea.styles.d.ts +1 -1
  186. package/dist/components/textarea/textarea.styles.js +1 -1
  187. package/dist/components/textarea/textarea.types.d.ts +12 -1
  188. package/dist/components/visually-hidden/visually-hidden.types.d.ts +1 -3
  189. package/dist/components/well/well.types.d.ts +7 -1
  190. package/dist/css/westpac-ui.css +67 -392
  191. package/dist/css/westpac-ui.min.css +67 -392
  192. package/dist/index.d.ts +1 -0
  193. package/dist/index.js +1 -0
  194. package/dist/stories/foundation/colours.stories.js +0 -1
  195. package/dist/types/component-props.types.d.ts +2 -0
  196. package/dist/types/component-props.types.js +1 -0
  197. package/dist/types/index.d.ts +1 -0
  198. package/dist/types/index.js +1 -0
  199. package/generate-component-types.cjs +85 -0
  200. package/package.json +13 -8
  201. package/src/components/accordion/accordion.component.tsx +5 -8
  202. package/src/components/accordion/accordion.stories.tsx +40 -31
  203. package/src/components/accordion/accordion.styles.ts +1 -5
  204. package/src/components/accordion/accordion.types.ts +15 -11
  205. package/src/components/accordion/components/accordion-item/accordion-item.component.tsx +11 -15
  206. package/src/components/accordion/components/accordion-item/accordion-item.styles.ts +7 -36
  207. package/src/components/accordion/components/accordion-item/accordion-item.types.ts +7 -2
  208. package/src/components/alert/alert.component.tsx +2 -0
  209. package/src/components/alert/alert.styles.ts +3 -3
  210. package/src/components/alert/alert.types.ts +1 -5
  211. package/src/components/autocomplete/autocomplete.component.tsx +2 -0
  212. package/src/components/autocomplete/autocomplete.types.ts +15 -2
  213. package/src/components/autocomplete/components/list-box/components/list-box-option/list-box-option.component.tsx +3 -0
  214. package/src/components/autocomplete/components/list-box/components/list-box-section/list-box-section.component.tsx +3 -0
  215. package/src/components/autocomplete/components/list-box/list-box.component.tsx +3 -0
  216. package/src/components/autocomplete/components/popover/popover.component.tsx +3 -1
  217. package/src/components/autocomplete/components/popover/popover.types.ts +1 -0
  218. package/src/components/badge/badge.component.tsx +2 -0
  219. package/src/components/badge/badge.types.ts +11 -2
  220. package/src/components/breadcrumb/breadcrumb.component.tsx +2 -0
  221. package/src/components/breadcrumb/breadcrumb.types.ts +9 -2
  222. package/src/components/breadcrumb/components/breadcrumb-item/breadcrumb-item.component.tsx +2 -0
  223. package/src/components/breadcrumb/components/breadcrumb-item/breadcrumb-item.types.ts +1 -5
  224. package/src/components/button/button.component.tsx +2 -0
  225. package/src/components/button/button.styles.ts +5 -5
  226. package/src/components/button/button.types.ts +23 -2
  227. package/src/components/button-dropdown/button-dropdown.component.tsx +2 -0
  228. package/src/components/button-dropdown/button-dropdown.styles.ts +1 -0
  229. package/src/components/button-dropdown/button-dropdown.types.ts +7 -2
  230. package/src/components/button-dropdown/components/panel/panel.component.tsx +3 -0
  231. package/src/components/button-group/button-group.component.tsx +2 -0
  232. package/src/components/checkbox-group/checkbox-group.component.tsx +2 -0
  233. package/src/components/checkbox-group/components/checkbox/checkbox.component.tsx +17 -7
  234. package/src/components/circle/circle.types.ts +1 -5
  235. package/src/components/collapsible/collapsible.component.tsx +2 -0
  236. package/src/components/collapsible/collapsible.styles.ts +1 -1
  237. package/src/components/compacta/compacta.component.tsx +17 -13
  238. package/src/components/compacta/compacta.styles.ts +10 -10
  239. package/src/components/date-picker/date-picker.component.tsx +2 -0
  240. package/src/components/date-picker/date-picker.types.ts +7 -2
  241. package/src/components/error-message/error-message.types.ts +1 -5
  242. package/src/components/field/field.component.tsx +2 -0
  243. package/src/components/field/field.types.ts +0 -4
  244. package/src/components/flexi-cell/components/flexi-cell-adornment/flexi-cell-adornment.component.tsx +1 -0
  245. package/src/components/flexi-cell/components/flexi-cell-adornment/flexi-cell-adornment.types.ts +1 -5
  246. package/src/components/flexi-cell/components/flexi-cell-body/flexi-cell-body.component.tsx +1 -0
  247. package/src/components/flexi-cell/components/flexi-cell-body/flexi-cell-body.types.ts +1 -5
  248. package/src/components/flexi-cell/components/flexi-cell-button/flexi-cell-button.component.tsx +1 -0
  249. package/src/components/flexi-cell/components/flexi-cell-circle/flexi-cell-circle.component.tsx +1 -0
  250. package/src/components/flexi-cell/components/flexi-cell-footer/flexi-cell-footer.component.tsx +1 -0
  251. package/src/components/flexi-cell/components/flexi-cell-hint/flexi-cell-hint.component.tsx +1 -0
  252. package/src/components/flexi-cell/components/flexi-cell-hint/flexi-cell-hint.types.ts +1 -5
  253. package/src/components/flexi-cell/components/flexi-cell-label/flexi-cell-label.component.tsx +1 -0
  254. package/src/components/flexi-cell/components/flexi-cell-label/flexi-cell-label.types.ts +1 -5
  255. package/src/components/flexi-cell/flexi-cell.component.tsx +2 -0
  256. package/src/components/flexi-cell/flexi-cell.types.ts +1 -7
  257. package/src/components/form/components/form-chit-chat/form-chit-chat.types.ts +1 -5
  258. package/src/components/form/components/form-group/form-group.types.ts +1 -5
  259. package/src/components/form/components/form-section/form-section.types.ts +7 -2
  260. package/src/components/form/form.component.tsx +2 -0
  261. package/src/components/form/form.types.ts +9 -0
  262. package/src/components/form-hint/form-hint.types.ts +1 -5
  263. package/src/components/form-label/form-label.types.ts +8 -3
  264. package/src/components/grid/components/container/container.types.ts +1 -5
  265. package/src/components/grid/components/item/item.types.ts +11 -2
  266. package/src/components/grid/grid.types.ts +1 -5
  267. package/src/components/icon/components/credit-cards-icon.tsx +43 -0
  268. package/src/components/icon/components/exit-icon.tsx +2 -2
  269. package/src/components/icon/components/office-icon.tsx +30 -11
  270. package/src/components/icon/components/pay-to-icon.tsx +33 -0
  271. package/src/components/icon/components/tiles-icon.tsx +43 -0
  272. package/src/components/icon/icon.styles.ts +1 -1
  273. package/src/components/icon/icon.types.ts +11 -1
  274. package/src/components/icon/index.ts +3 -6
  275. package/src/components/input/input.component.tsx +2 -0
  276. package/src/components/input/input.styles.ts +1 -1
  277. package/src/components/input/input.types.ts +12 -2
  278. package/src/components/input-field/components/add-ons/add-ons.component.tsx +3 -0
  279. package/src/components/input-field/components/add-ons/components/default-add-on/default-add-on.component.tsx +3 -0
  280. package/src/components/input-field/components/add-ons/components/default-add-on/default-add-on.types.ts +1 -4
  281. package/src/components/input-field/components/add-ons/components/icon-add-on/icon-add-on.component.tsx +3 -0
  282. package/src/components/input-field/components/add-ons/components/icon-add-on/icon-add-on.types.ts +1 -4
  283. package/src/components/input-field/components/add-ons/components/text-add-on/text-add-on.component.tsx +3 -0
  284. package/src/components/input-field/components/add-ons/components/text-add-on/text-add-on.types.ts +1 -4
  285. package/src/components/input-field/components/supporting-text/supporting-text.component.tsx +3 -0
  286. package/src/components/input-field/components/supporting-text/supporting-text.types.ts +1 -5
  287. package/src/components/input-field/input-field.component.tsx +2 -0
  288. package/src/components/input-field/input-field.scenarios.stories.tsx +2 -2
  289. package/src/components/input-field/input-field.types.ts +1 -4
  290. package/src/components/link/link.component.tsx +2 -0
  291. package/src/components/list/list.component.tsx +2 -0
  292. package/src/components/modal/components/backdrop/backdrop.types.ts +1 -5
  293. package/src/components/modal/components/dialog/components/dialog-body/dialog-body.types.ts +1 -4
  294. package/src/components/modal/components/dialog/components/dialog-footer/dialog-footer.types.ts +1 -4
  295. package/src/components/modal/components/dialog/dialog.types.ts +7 -2
  296. package/src/components/modal/modal.component.tsx +2 -0
  297. package/src/components/pagination/components/pagination-item/pagination-item.component.tsx +2 -1
  298. package/src/components/pagination/components/pagination-item/pagination-item.styles.ts +7 -3
  299. package/src/components/pagination/components/pagination-item/pagination-item.types.ts +20 -3
  300. package/src/components/pagination/pagination.component.tsx +3 -0
  301. package/src/components/pagination/pagination.stories.tsx +1 -1
  302. package/src/components/pagination/pagination.styles.ts +1 -1
  303. package/src/components/pagination/pagination.types.ts +0 -3
  304. package/src/components/pictogram/pictogram.types.ts +1 -4
  305. package/src/components/popover/popover.component.tsx +2 -0
  306. package/src/components/progress-bar/progress-bar.component.tsx +2 -0
  307. package/src/components/progress-rope/components/progress-rope-group-step/progress-rope-group-step.types.ts +2 -4
  308. package/src/components/progress-rope/components/progress-rope-step/progress-rope-step.types.ts +10 -1
  309. package/src/components/progress-rope/progress-rope.component.tsx +2 -0
  310. package/src/components/progress-rope/progress-rope.types.ts +1 -5
  311. package/src/components/radio-group/components/radio/radio.component.tsx +1 -0
  312. package/src/components/radio-group/components/radio/radio.styles.ts +2 -2
  313. package/src/components/radio-group/radio-group.component.tsx +2 -0
  314. package/src/components/repeater/repeater.component.tsx +6 -2
  315. package/src/components/repeater/repeater.styles.ts +2 -2
  316. package/src/components/select/select.component.tsx +2 -0
  317. package/src/components/select/select.styles.ts +1 -1
  318. package/src/components/select/select.types.ts +12 -1
  319. package/src/components/selector/components/selector-checkbox-group/components/selector-checkbox-group-option/selector-checkbox-group-option.types.ts +0 -4
  320. package/src/components/selector/components/selector-checkbox-group/selector-checkbox-group.types.ts +0 -4
  321. package/src/components/selector/components/selector-radio-group/components/selector-radio-group-option/selector-radio-group-option.types.ts +0 -4
  322. package/src/components/selector/components/selector-radio-group/selector-radio-group.types.ts +7 -2
  323. package/src/components/selector/selector.component.tsx +2 -0
  324. package/src/components/skip-link/skip-link.component.tsx +2 -0
  325. package/src/components/skip-link/skip-link.types.ts +0 -4
  326. package/src/components/switch/switch.component.tsx +2 -0
  327. package/src/components/switch/switch.types.ts +8 -3
  328. package/src/components/symbol/index.ts +1 -0
  329. package/src/components/symbol/symbol.stories.tsx +66 -8
  330. package/src/components/symbol/symbol.types.ts +1 -4
  331. package/src/components/table/table.component.tsx +2 -0
  332. package/src/components/tabs/components/tab/tab.types.ts +15 -2
  333. package/src/components/tabs/components/tab-panel/tab-panel.component.tsx +1 -0
  334. package/src/components/tabs/components/tab-panel/tab-panel.types.ts +6 -1
  335. package/src/components/tabs/tabs.component.tsx +2 -0
  336. package/src/components/tabs/tabs.stories.tsx +0 -1
  337. package/src/components/tabs/tabs.types.ts +37 -24
  338. package/src/components/textarea/textarea.component.tsx +2 -0
  339. package/src/components/textarea/textarea.styles.ts +1 -1
  340. package/src/components/textarea/textarea.types.ts +12 -1
  341. package/src/components/visually-hidden/visually-hidden.types.ts +1 -5
  342. package/src/components/well/well.types.tsx +7 -2
  343. package/src/index.ts +1 -0
  344. package/src/stories/foundation/colours.stories.tsx +0 -1
  345. package/src/types/component-props.types.ts +3 -0
  346. package/src/types/index.ts +1 -0
  347. package/utils/build-icons/index.ts +5 -2
  348. package/dist/components/icon/components/bom-logo-icon.d.ts +0 -2
  349. package/dist/components/icon/components/bom-logo-icon.js +0 -86
  350. package/dist/components/icon/components/bsa-logo-icon.d.ts +0 -2
  351. package/dist/components/icon/components/bsa-logo-icon.js +0 -32
  352. package/dist/components/icon/components/rams-logo-icon.d.ts +0 -2
  353. package/dist/components/icon/components/rams-logo-icon.js +0 -120
  354. package/dist/components/icon/components/stg-logo-icon.d.ts +0 -2
  355. package/dist/components/icon/components/stg-logo-icon.js +0 -44
  356. package/dist/components/icon/components/wbc-logo-icon.d.ts +0 -2
  357. package/dist/components/icon/components/wbc-logo-icon.js +0 -26
  358. package/dist/components/icon/components/wbg-logo-icon.d.ts +0 -2
  359. package/dist/components/icon/components/wbg-logo-icon.js +0 -29
  360. package/src/components/icon/components/bom-logo-icon.tsx +0 -40
  361. package/src/components/icon/components/bsa-logo-icon.tsx +0 -28
  362. package/src/components/icon/components/rams-logo-icon.tsx +0 -71
  363. package/src/components/icon/components/stg-logo-icon.tsx +0 -44
  364. package/src/components/icon/components/wbc-logo-icon.tsx +0 -20
  365. package/src/components/icon/components/wbg-logo-icon.tsx +0 -24
@@ -2,6 +2,7 @@ import { HTMLAttributes, ReactNode } from 'react';
2
2
  import { type AriaPopoverProps } from 'react-aria';
3
3
  import { type OverlayTriggerState } from 'react-stately';
4
4
 
5
+ // @private
5
6
  export type PopoverProps = Omit<AriaPopoverProps, 'popoverRef'> & {
6
7
  /**
7
8
  * Popover content
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import React, { forwardRef } from 'react';
2
4
 
3
5
  import { styles } from './badge.styles.js';
@@ -3,10 +3,19 @@ import { type VariantProps } from 'tailwind-variants';
3
3
 
4
4
  import { styles } from './badge.styles.js';
5
5
 
6
+ type Variants = VariantProps<typeof styles>;
7
+
6
8
  export type BadgeProps = {
9
+ /**
10
+ * Color of badge
11
+ */
12
+ color?: Variants['color'];
7
13
  /**
8
14
  * Tag to render
9
15
  */
10
16
  tag?: keyof JSX.IntrinsicElements;
11
- } & VariantProps<typeof styles> &
12
- Omit<HTMLAttributes<Element>, 'color' | 'type'>;
17
+ /**
18
+ * Type of badge
19
+ */
20
+ type?: Variants['type'];
21
+ } & Omit<HTMLAttributes<Element>, 'color' | 'type'>;
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import React, { Children, FunctionComponentElement, cloneElement } from 'react';
2
4
  import { useBreadcrumbs } from 'react-aria';
3
5
 
@@ -1,3 +1,10 @@
1
- import { HTMLAttributes } from 'react';
1
+ import { HTMLAttributes, ReactElement } from 'react';
2
2
 
3
- export type BreadcrumbProps = HTMLAttributes<HTMLDivElement>;
3
+ import { type BreadcrumbItemProps } from './components/breadcrumb-item/index.js';
4
+
5
+ export type BreadcrumbProps = HTMLAttributes<HTMLDivElement> & {
6
+ /**
7
+ * Children with Breadcrumb.Item[]
8
+ */
9
+ children: ReactElement<BreadcrumbItemProps> | ReactElement<BreadcrumbItemProps>[];
10
+ };
@@ -48,3 +48,5 @@ export function BaseBreadcrumbItem(
48
48
  }
49
49
 
50
50
  export const BreadcrumbItem = forwardRef<any, BreadcrumbItemProps>(BaseBreadcrumbItem);
51
+
52
+ BreadcrumbItem.displayName = 'Breadcrumb.Item';
@@ -1,7 +1,4 @@
1
1
  import { AnchorHTMLAttributes } from 'react';
2
- import { type VariantProps } from 'tailwind-variants';
3
-
4
- import { styles } from './breadcrumb-item.styles.js';
5
2
 
6
3
  export type BreadcrumbItemProps = {
7
4
  /**
@@ -16,5 +13,4 @@ export type BreadcrumbItemProps = {
16
13
  * Tag to render
17
14
  */
18
15
  tag?: keyof JSX.IntrinsicElements;
19
- } & VariantProps<typeof styles> &
20
- AnchorHTMLAttributes<Element>;
16
+ } & AnchorHTMLAttributes<Element>;
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import React, { forwardRef, useMemo } from 'react';
2
4
  import { mergeProps, useFocusRing } from 'react-aria';
3
5
 
@@ -14,14 +14,14 @@ export const styles = tv(
14
14
  },
15
15
  variants: {
16
16
  size: {
17
- small: { base: 'active-theme-rams:before:h-[0.0625rem] typography-body-10 px-2 pb-[0.25rem] pt-[0.1875rem]' },
18
- medium: { base: 'active-theme-rams:before:h-[0.125rem] typography-body-9 px-2 py-[0.3125rem]' },
19
- large: { base: 'active-theme-rams:before:h-[0.1875rem] typography-body-9 px-[0.9375rem] py-[0.5rem]' },
20
- xlarge: { base: 'active-theme-rams:before:h-[0.25rem] typography-body-8 px-3 pb-[0.625rem] pt-[0.5625rem]' },
17
+ small: { base: 'typography-body-10 px-2 pb-[0.25rem] pt-[0.1875rem] active-theme-rams:before:h-[0.0625rem]' },
18
+ medium: { base: 'typography-body-9 px-2 py-[0.3125rem] active-theme-rams:before:h-[0.125rem]' },
19
+ large: { base: 'typography-body-9 px-[0.9375rem] py-[0.5rem] active-theme-rams:before:h-[0.1875rem]' },
20
+ xlarge: { base: 'typography-body-8 px-3 pb-[0.625rem] pt-[0.5625rem] active-theme-rams:before:h-[0.25rem]' },
21
21
  },
22
22
  look: {
23
23
  primary: {
24
- base: 'active-theme-rams:border-b-pop active-theme-rams:before:absolute active-theme-rams:before:bottom-0 active-theme-rams:before:block active-theme-rams:before:w-full active-theme-rams:before:bg-pop relative border border-primary bg-primary text-white hover:bg-primary-70 active:bg-primary-50',
24
+ base: 'relative border border-primary bg-primary text-white hover:bg-primary-70 active:bg-primary-50 active-theme-rams:border-b-pop active-theme-rams:before:absolute active-theme-rams:before:bottom-0 active-theme-rams:before:block active-theme-rams:before:w-full active-theme-rams:before:bg-pop',
25
25
  },
26
26
  hero: { base: 'border border-hero bg-hero text-white hover:bg-hero-70 active:bg-hero-50' },
27
27
  faint: { base: 'border border-border bg-light text-muted hover:bg-white active:bg-white' },
@@ -5,7 +5,13 @@ import { IconProps } from '../icon/index.js';
5
5
 
6
6
  import { styles } from './button.styles.js';
7
7
 
8
+ type Variants = VariantProps<typeof styles>;
9
+
8
10
  export type ButtonProps = {
11
+ /**
12
+ * Fit button width to its parent width.
13
+ */
14
+ block?: Variants['block'];
9
15
  /**
10
16
  * Places an icon within the button, after the button’s text
11
17
  */
@@ -20,10 +26,25 @@ export type ButtonProps = {
20
26
  * Defaults to the current text color.
21
27
  */
22
28
  iconColor?: IconProps['color'];
29
+ /**
30
+ * Justify align button children
31
+ */
32
+ justify?: Variants['justify'];
33
+ /**
34
+ * Button look
35
+ */
36
+ look?: Variants['look'];
37
+ /**
38
+ * Size of the button
39
+ */
40
+ size?: Variants['size'];
41
+ /**
42
+ * Removes background colour and adjusts text colour.
43
+ */
44
+ soft?: Variants['soft'];
23
45
  /**
24
46
  * Tag to render
25
47
  */
26
48
  tag?: keyof Pick<JSX.IntrinsicElements, 'a' | 'span' | 'button' | 'div'>;
27
49
  } & ButtonHTMLAttributes<Element> &
28
- AnchorHTMLAttributes<Element> &
29
- VariantProps<typeof styles>;
50
+ AnchorHTMLAttributes<Element>;
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import React, { useCallback, useEffect, useId, useRef } from 'react';
2
4
  import { useButton, useOverlayTrigger } from 'react-aria';
3
5
  import { useOverlayTriggerState } from 'react-stately';
@@ -21,6 +21,7 @@ export const styles = tv(
21
21
  block: {
22
22
  true: {
23
23
  panel: '',
24
+ base: 'justify-between',
24
25
  },
25
26
  },
26
27
  },
@@ -5,7 +5,13 @@ import { ButtonProps } from '../button/index.js';
5
5
 
6
6
  import { styles } from './button-dropdown.styles.js';
7
7
 
8
+ type Variants = VariantProps<typeof styles>;
9
+
8
10
  export type ButtonDropdownProps = {
11
+ /**
12
+ * Size of the the dropdown panel
13
+ */
14
+ dropdownSize?: Variants['dropdownSize'];
9
15
  /**
10
16
  * Look for button
11
17
  */
@@ -23,5 +29,4 @@ export type ButtonDropdownProps = {
23
29
  */
24
30
  text: string;
25
31
  } & ButtonHTMLAttributes<Element> &
26
- Pick<ButtonProps, 'size' | 'iconBefore' | 'block'> &
27
- VariantProps<typeof styles>;
32
+ Pick<ButtonProps, 'size' | 'iconBefore' | 'block'>;
@@ -4,6 +4,9 @@ import { DismissButton, Overlay, mergeProps, useFocusRing, usePopover } from 're
4
4
  import { styles as panelStyles } from './panel.styles.js';
5
5
  import { type PanelProps } from './panel.types.js';
6
6
 
7
+ /**
8
+ * @private
9
+ */
7
10
  export function Panel({ className, children, state, block, id, ...props }: PanelProps) {
8
11
  const popoverRef = useRef<HTMLDivElement>(null);
9
12
  const { popoverProps } = usePopover({ popoverRef, shouldFlip: false, isNonModal: true, ...props }, state);
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import React, { ReactElement, cloneElement, createContext } from 'react';
2
4
  import { useRadioGroup } from 'react-aria';
3
5
  import { useRadioGroupState } from 'react-stately';
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import React, { ReactElement, cloneElement, createContext, useEffect, useMemo, useRef, useState } from 'react';
2
4
  import { useCheckboxGroup, useFocusRing } from 'react-aria';
3
5
  import { useCheckboxGroupState } from 'react-stately';
@@ -9,13 +9,22 @@ import { styles as checkboxItemStyles } from './checkbox.styles.js';
9
9
  import { type CheckboxProps } from './checkbox.types.js';
10
10
 
11
11
  // TODO: Discuss with designers if this icon should be included as part of Icons
12
- function CheckIcon({ copyrightYear = '2023', ...props }: IconProps) {
12
+ // Icon based on SVGs/instructions received from this issue https://github.com/WestpacGEL/GEL-next/issues/159
13
+ function CheckIcon({ copyrightYear = '2023', size, ...props }: IconProps) {
14
+ const viewBoxSize = size === 'large' ? '0 0 30 30' : '0 0 24 24';
13
15
  return (
14
- <Icon copyrightYear={copyrightYear} {...props}>
15
- <path
16
- d="M16.285 6.0003L10.769 13.8053L6.936 11.0173L5 13.6463L11.526 18.5263L19 8.0053L16.285 6.0003Z"
17
- fill="currentColor"
18
- />
16
+ <Icon copyrightYear={copyrightYear} viewBox={viewBoxSize} {...props}>
17
+ {size === 'large' ? (
18
+ <path
19
+ d="M12.9952 17.5891L20.2923 10.292L21.7023 11.712L12.9952 20.4191L8.28809 15.712L9.69809 14.302L12.9952 17.5891Z"
20
+ fill="currentColor"
21
+ />
22
+ ) : (
23
+ <path
24
+ d="M9.99519 14.5891L17.2923 7.29199L18.7023 8.71199L9.99519 17.4191L5.28809 12.712L6.69809 11.302L9.99519 14.5891Z"
25
+ fill="currentColor"
26
+ />
27
+ )}
19
28
  </Icon>
20
29
  );
21
30
  }
@@ -34,7 +43,7 @@ function BaseCheckbox({ className, hint, children, value, ...props }: CheckboxPr
34
43
  <input {...inputProps} {...focusProps} ref={localRef} />
35
44
  </VisuallyHidden>
36
45
  <div className={styles.checkbox()}>
37
- {isSelected && <CheckIcon className={styles.checkIcon()} color={isDisabled ? 'border' : 'hero'} />}
46
+ {isSelected && <CheckIcon className={styles.checkIcon()} size={size} color={isDisabled ? 'border' : 'hero'} />}
38
47
  </div>
39
48
  <div className={styles.textWrapper()}>
40
49
  <span className={styles.labelText()}>{children}</span>
@@ -45,3 +54,4 @@ function BaseCheckbox({ className, hint, children, value, ...props }: CheckboxPr
45
54
  }
46
55
 
47
56
  export const Checkbox = forwardRef(BaseCheckbox);
57
+ Checkbox.displayName = 'CheckboxGroup.Checkbox';
@@ -1,12 +1,8 @@
1
1
  import { HTMLAttributes } from 'react';
2
- import { type VariantProps } from 'tailwind-variants';
3
-
4
- import { styles } from './circle.styles.js';
5
2
 
6
3
  export type CircleProps = {
7
4
  /**
8
5
  * Tag to render
9
6
  */
10
7
  tag?: keyof JSX.IntrinsicElements;
11
- } & VariantProps<typeof styles> &
12
- HTMLAttributes<Element>;
8
+ } & HTMLAttributes<Element>;
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import { AnimatePresence, LazyMotion, m } from 'framer-motion';
2
4
  import React, { useCallback, useId, useState } from 'react';
3
5
 
@@ -3,7 +3,7 @@ import { tv } from 'tailwind-variants';
3
3
  export const styles = tv(
4
4
  {
5
5
  slots: {
6
- base: 'text-text px-0 no-underline hover:underline',
6
+ base: 'px-0 text-text no-underline hover:underline',
7
7
  content: 'typography-body-10 mb-2 block',
8
8
  },
9
9
  variants: {
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import { AnimatePresence, LazyMotion, m } from 'framer-motion';
2
4
  import React, { useCallback, useEffect, useId, useRef, useState } from 'react';
3
5
 
@@ -179,19 +181,21 @@ export function Compacta({
179
181
  setSecondaryTitle: (title: string) => setTitle(item.id, 'secondary', title),
180
182
  setTertiaryTitle: (title: string) => setTitle(item.id, 'tertiary', title),
181
183
  })}
182
- <Button
183
- className={styles.removeBtn()}
184
- aria-label={`remove item ${index + 1}`}
185
- iconBefore={(props: IconProps) => (
186
- <RemoveCircleIcon {...props} aria-hidden look="outlined" size="xsmall" />
187
- )}
188
- look="link"
189
- size="small"
190
- soft
191
- onClick={() => handleRemove(item.id, index)}
192
- >
193
- Remove
194
- </Button>
184
+ {items.length > 1 && (
185
+ <Button
186
+ className={styles.removeBtn()}
187
+ aria-label={`remove item ${index + 1}`}
188
+ iconBefore={(props: IconProps) => (
189
+ <RemoveCircleIcon {...props} aria-hidden look="outlined" size="xsmall" />
190
+ )}
191
+ look="link"
192
+ size="small"
193
+ soft
194
+ onClick={() => handleRemove(item.id, index)}
195
+ >
196
+ Remove
197
+ </Button>
198
+ )}
195
199
  </div>
196
200
  </m.div>
197
201
  )}
@@ -5,26 +5,26 @@ export const styles = tv(
5
5
  slots: {
6
6
  base: '',
7
7
  item: 'border-borderDark mb-2 overflow-hidden rounded-[0.1875rem] border',
8
- header: 'text-text bg-white p-[0.8125rem_1.125rem]',
8
+ header: 'text-text bg-white px-3 py-[0.9375rem]',
9
9
  headerTitle: 'flex min-w-0 flex-1 items-center',
10
- primaryHeading: 'my-[16px] flex',
11
- secondaryHeading: 'text-muted flex min-w-0 flex-1 items-center pl-[2.25rem]',
12
- itemIndex: 'mr-2 w-4 flex-none font-bold',
10
+ primaryHeading: 'flex w-full',
11
+ secondaryHeading: 'text-muted flex min-w-0 flex-1 items-center pl-4',
12
+ itemIndex: 'typography-body-9 mr-1 w-3 flex-none font-bold',
13
13
  removeBtn: 'mt-[0.875rem] h-auto p-0 no-underline hover:underline',
14
14
  addBtn: 'h-auto p-0 no-underline hover:underline',
15
- toggleBtn: 'ml-auto p-0',
15
+ toggleBtn: 'p-0',
16
16
  collapsible: '',
17
17
  content: 'xsl:pl-[3.375rem] p-[0_1.125rem_1.875rem]',
18
- footer: 'pt-[0.5rem]',
19
- titlePrimary: 'font-bold',
20
- titleSecondary: 'mt-[0.125rem]',
21
- titleTertiary: 'mt-[0.125rem]',
18
+ footer: '',
19
+ titlePrimary: 'typography-body-9 font-bold',
20
+ titleSecondary: 'mt-1 items-center',
21
+ titleTertiary: 'mt-1 items-center',
22
22
  },
23
23
  variants: {},
24
24
  compoundSlots: [
25
25
  {
26
26
  slots: ['titlePrimary', 'titleSecondary', 'titleTertiary'],
27
- class: ['mr-2', 'truncate', 'flex-1'],
27
+ class: ['mr-1', 'truncate', 'flex-1'],
28
28
  },
29
29
  ],
30
30
  },
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import React, { useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react';
2
4
 
3
5
  import { styles } from './date-picker.styles.js';
@@ -14,6 +14,8 @@ export type DuetDatePickerElement = Element & {
14
14
  value?: string;
15
15
  };
16
16
 
17
+ type Variants = VariantProps<typeof styles>;
18
+
17
19
  export type DatePickerProps = {
18
20
  /*
19
21
  * Disable specific dates. Must be in IS0-8601 format: YYYY-MM-DD
@@ -59,9 +61,12 @@ export type DatePickerProps = {
59
61
  * onOpen
60
62
  */
61
63
  onOpen?: (...args: any[]) => unknown;
64
+ /**
65
+ * Size of datepicker input
66
+ */
67
+ size?: Variants['size'];
62
68
  /*
63
69
  * Date picker input value. Must be in IS0-8601 format: YYYY-MM-DD
64
70
  */
65
71
  value?: string;
66
- } & VariantProps<typeof styles> &
67
- HTMLAttributes<Element>;
72
+ } & HTMLAttributes<Element>;
@@ -1,7 +1,4 @@
1
1
  import { HTMLAttributes, ReactNode } from 'react';
2
- import { type VariantProps } from 'tailwind-variants';
3
-
4
- import { styles } from './error-message.styles.js';
5
2
 
6
3
  export type ErrorMessageProps = {
7
4
  /**
@@ -16,5 +13,4 @@ export type ErrorMessageProps = {
16
13
  * Tag to render
17
14
  */
18
15
  tag?: keyof JSX.IntrinsicElements;
19
- } & VariantProps<typeof styles> &
20
- HTMLAttributes<Element>;
16
+ } & HTMLAttributes<Element>;
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import React, { Children, ReactNode, cloneElement, isValidElement, useCallback } from 'react';
2
4
  import { useField } from 'react-aria';
3
5
 
@@ -1,11 +1,8 @@
1
1
  import { HTMLAttributes } from 'react';
2
2
  import { AriaFieldProps } from 'react-aria';
3
- import { type VariantProps } from 'tailwind-variants';
4
3
 
5
4
  import { FormHintProps } from '../index.js';
6
5
 
7
- import { styles } from './field.styles.js';
8
-
9
6
  export type FieldProps = {
10
7
  /**
11
8
  * error message
@@ -20,5 +17,4 @@ export type FieldProps = {
20
17
  */
21
18
  tag?: keyof JSX.IntrinsicElements;
22
19
  } & AriaFieldProps &
23
- VariantProps<typeof styles> &
24
20
  HTMLAttributes<Element>;
@@ -17,3 +17,4 @@ export const FlexiCellAdornment = ({
17
17
  </Tag>
18
18
  );
19
19
  };
20
+ FlexiCellAdornment.displayName = 'FlexiCell.Adornment';
@@ -1,7 +1,4 @@
1
1
  import { type HTMLAttributes, type ReactNode } from 'react';
2
- import { type VariantProps } from 'tailwind-variants';
3
-
4
- import { styles } from './flexi-cell-adornment.styles.js';
5
2
 
6
3
  export type FlexiCellAdornmentProps = {
7
4
  /**
@@ -16,5 +13,4 @@ export type FlexiCellAdornmentProps = {
16
13
  * Component's tag
17
14
  */
18
15
  tag?: keyof JSX.IntrinsicElements;
19
- } & HTMLAttributes<HTMLOrSVGElement> &
20
- VariantProps<typeof styles>;
16
+ } & HTMLAttributes<HTMLOrSVGElement>;
@@ -11,3 +11,4 @@ export const FlexiCellBody = ({ children, tag: Tag = 'div', className, ...props
11
11
  </Tag>
12
12
  );
13
13
  };
14
+ FlexiCellBody.displayName = 'FlexiCell.Body';
@@ -1,7 +1,4 @@
1
1
  import { type HTMLAttributes, type ReactNode } from 'react';
2
- import { type VariantProps } from 'tailwind-variants';
3
-
4
- import { styles } from './flexi-cell-body.styles.js';
5
2
 
6
3
  export type BaseFlexiCellBodyProps = {
7
4
  /**
@@ -40,5 +37,4 @@ export type FlexiCellBodyProps<Tag extends ElementKeysWithoutA = ElementKeysWith
40
37
  | FlexiCellBodyAsLinkProps
41
38
  | CircleAsAllOtherTagsProps<Tag>
42
39
  ) &
43
- BaseFlexiCellBodyProps &
44
- VariantProps<typeof styles>;
40
+ BaseFlexiCellBodyProps;
@@ -9,3 +9,4 @@ import { type FlexiCellButtonProps } from './flexi-cell-button.types.js';
9
9
  export const FlexiCellButton = ({ className, ...props }: FlexiCellButtonProps) => {
10
10
  return <Button className={styles({ className })} look="link" {...props} />;
11
11
  };
12
+ FlexiCellButton.displayName = 'FlexiCell.Button';
@@ -9,3 +9,4 @@ import { FlexiCellCircleProps } from './flexi-cell-circle.types.js';
9
9
  export const FlexiCellCircle = ({ className, ...props }: FlexiCellCircleProps) => {
10
10
  return <Circle className={styles({ className })} {...props} />;
11
11
  };
12
+ FlexiCellCircle.displayName = 'FlexiCell.Circle';
@@ -11,3 +11,4 @@ export const FlexiCellFooter = ({ children, className, tag: Tag = 'div', ...prop
11
11
  </Tag>
12
12
  );
13
13
  };
14
+ FlexiCellFooter.displayName = 'FlexiCell.Footer';
@@ -17,3 +17,4 @@ export const FlexiCellHint = ({
17
17
  </Tag>
18
18
  );
19
19
  };
20
+ FlexiCellHint.displayName = 'FlexiCell.Hint';
@@ -1,7 +1,4 @@
1
1
  import { type HTMLAttributes, type ReactNode } from 'react';
2
- import { VariantProps } from 'tailwind-variants';
3
-
4
- import { styles } from './flexi-cell-hint.styles.js';
5
2
 
6
3
  export type FlexiCellHintProps = {
7
4
  /**
@@ -16,5 +13,4 @@ export type FlexiCellHintProps = {
16
13
  * Define if it is going to truncate the text
17
14
  */
18
15
  truncateText?: boolean;
19
- } & HTMLAttributes<HTMLOrSVGElement> &
20
- VariantProps<typeof styles>;
16
+ } & HTMLAttributes<HTMLOrSVGElement>;
@@ -17,3 +17,4 @@ export const FlexiCellLabel = ({
17
17
  </Tag>
18
18
  );
19
19
  };
20
+ FlexiCellLabel.displayName = 'FlexiCell.Label';
@@ -1,7 +1,4 @@
1
1
  import { CSSProperties, type HTMLAttributes, type ReactNode } from 'react';
2
- import { type VariantProps } from 'tailwind-variants';
3
-
4
- import { styles } from './flexi-cell-label.styles.js';
5
2
 
6
3
  export type FlexiCellLabelProps = {
7
4
  /**
@@ -20,5 +17,4 @@ export type FlexiCellLabelProps = {
20
17
  * Define if it is going to truncate the text
21
18
  */
22
19
  truncateText?: boolean;
23
- } & HTMLAttributes<HTMLOrSVGElement> &
24
- VariantProps<typeof styles>;
20
+ } & HTMLAttributes<HTMLOrSVGElement>;
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import React, { forwardRef } from 'react';
2
4
  import { mergeProps, useFocusRing } from 'react-aria';
3
5
 
@@ -1,7 +1,4 @@
1
1
  import { CSSProperties, type HTMLAttributes, type ReactNode } from 'react';
2
- import { type VariantProps } from 'tailwind-variants';
3
-
4
- import { styles } from './flexi-cell.styles.js';
5
2
 
6
3
  type BaseFlexiCellProps = {
7
4
  /**
@@ -68,7 +65,4 @@ type FlexiCellAsAllOtherTagsProps<Tag> = {
68
65
 
69
66
  export type FlexiCellProps<
70
67
  Tag extends keyof Omit<JSX.IntrinsicElements, 'a'> = keyof Omit<JSX.IntrinsicElements, 'a'>,
71
- > = (FlexiCellAsLinkProps | FlexiCellAsAllOtherTagsProps<Tag>) &
72
- BaseFlexiCellProps &
73
- VariantProps<typeof styles> &
74
- HTMLAttributes<Element>;
68
+ > = (FlexiCellAsLinkProps | FlexiCellAsAllOtherTagsProps<Tag>) & BaseFlexiCellProps & HTMLAttributes<Element>;
@@ -1,12 +1,8 @@
1
1
  import { HTMLAttributes } from 'react';
2
- import { type VariantProps } from 'tailwind-variants';
3
-
4
- import { styles } from './form-chit-chat.styles.js';
5
2
 
6
3
  export type FormChitChatProps = {
7
4
  /**
8
5
  * Tag to render
9
6
  */
10
7
  tag?: keyof JSX.IntrinsicElements;
11
- } & VariantProps<typeof styles> &
12
- HTMLAttributes<Element>;
8
+ } & HTMLAttributes<Element>;
@@ -1,12 +1,8 @@
1
1
  import { HTMLAttributes } from 'react';
2
- import { type VariantProps } from 'tailwind-variants';
3
-
4
- import { styles } from './form-group.styles.js';
5
2
 
6
3
  export type FormGroupProps = {
7
4
  /**
8
5
  * Tag to render
9
6
  */
10
7
  tag?: keyof JSX.IntrinsicElements;
11
- } & Omit<VariantProps<typeof styles>, 'inline' | 'spacing'> &
12
- HTMLAttributes<Element>;
8
+ } & HTMLAttributes<Element>;
@@ -3,10 +3,15 @@ import { type VariantProps } from 'tailwind-variants';
3
3
 
4
4
  import { styles } from './form-section.styles.js';
5
5
 
6
+ type Variants = VariantProps<typeof styles>;
7
+
6
8
  export type FormSectionProps = {
9
+ /**
10
+ * Remove padding
11
+ */
12
+ noPadding?: Variants['noPadding'];
7
13
  /**
8
14
  * Tag to render
9
15
  */
10
16
  tag?: keyof JSX.IntrinsicElements;
11
- } & VariantProps<typeof styles> &
12
- HTMLAttributes<Element>;
17
+ } & HTMLAttributes<Element>;
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import React, { createContext, useContext } from 'react';
2
4
 
3
5
  import { ErrorMessage } from '../error-message/index.js';