@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
@@ -3,34 +3,7 @@ import { type InputProps } from './input.types.js';
3
3
  export declare function BaseInput({ className, size, invalid, ...props }: InputProps, ref: ForwardedRef<HTMLInputElement>): import("react/jsx-runtime").JSX.Element;
4
4
  export declare const Input: React.ForwardRefExoticComponent<{
5
5
  invalid?: boolean | undefined;
6
- } & Omit<import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
7
- size: {
8
- small: string;
9
- medium: string;
10
- large: string;
11
- xlarge: string;
12
- };
13
- invalid: {
14
- true: string;
15
- false: string;
16
- };
17
- isFocused: {
18
- true: string;
19
- };
20
- }, undefined, "form-control read-only:form-control-disabled disabled:form-control-disabled flex-1 group-[.input-field-after]:rounded-r-none group-[.input-field-before]:rounded-l-none group-[.input-field-after]:border-r-0 group-[.input-field-before]:border-l-0", {
21
- responsiveVariants: string[];
22
- }, {
23
- size: {
24
- small: string;
25
- medium: string;
26
- large: string;
27
- xlarge: string;
28
- };
29
- invalid: {
30
- true: string;
31
- false: string;
32
- };
33
- isFocused: {
34
- true: string;
35
- };
36
- }, undefined>>, "invalid"> & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> & React.RefAttributes<HTMLInputElement>>;
6
+ size?: "small" | "medium" | "large" | "xlarge" | {
7
+ [x: string]: "small" | "medium" | "large" | "xlarge" | undefined;
8
+ } | undefined;
9
+ } & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> & React.RefAttributes<HTMLInputElement>>;
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  function _extends() {
2
3
  _extends = Object.assign || function(target) {
3
4
  for(var i = 1; i < arguments.length; i++){
@@ -12,7 +12,7 @@ export declare const styles: import("tailwind-variants").TVReturnType<{
12
12
  isFocused: {
13
13
  true: string;
14
14
  };
15
- }, undefined, "form-control read-only:form-control-disabled disabled:form-control-disabled flex-1 group-[.input-field-after]:rounded-r-none group-[.input-field-before]:rounded-l-none group-[.input-field-after]:border-r-0 group-[.input-field-before]:border-l-0", {
15
+ }, undefined, "form-control flex-1 read-only:form-control-disabled disabled:form-control-disabled group-[.input-field-after]:rounded-r-none group-[.input-field-before]:rounded-l-none group-[.input-field-after]:border-r-0 group-[.input-field-before]:border-l-0", {
16
16
  responsiveVariants: string[];
17
17
  }, {
18
18
  size: {
@@ -1,6 +1,6 @@
1
1
  import { tv } from 'tailwind-variants';
2
2
  export const styles = tv({
3
- base: 'form-control read-only:form-control-disabled disabled:form-control-disabled flex-1 group-[.input-field-after]:rounded-r-none group-[.input-field-before]:rounded-l-none group-[.input-field-after]:border-r-0 group-[.input-field-before]:border-l-0',
3
+ base: 'form-control flex-1 read-only:form-control-disabled disabled:form-control-disabled group-[.input-field-after]:rounded-r-none group-[.input-field-before]:rounded-l-none group-[.input-field-after]:border-r-0 group-[.input-field-before]:border-l-0',
4
4
  variants: {
5
5
  size: {
6
6
  small: 'form-control-small group-[.input-field-inset-after]:pr-6 group-[.input-field-inset-before]:pl-6',
@@ -1,6 +1,15 @@
1
1
  import { InputHTMLAttributes } from 'react';
2
2
  import { type VariantProps } from 'tailwind-variants';
3
3
  import { styles } from './input.styles.js';
4
+ type Variants = VariantProps<typeof styles>;
4
5
  export type InputProps = {
6
+ /**
7
+ * Whether the input is invalid
8
+ */
5
9
  invalid?: boolean;
6
- } & Omit<VariantProps<typeof styles>, 'invalid'> & Omit<InputHTMLAttributes<HTMLInputElement>, 'size'>;
10
+ /**
11
+ * Size of input
12
+ */
13
+ size?: Variants['size'];
14
+ } & Omit<InputHTMLAttributes<HTMLInputElement>, 'size'>;
15
+ export {};
@@ -1,2 +1,5 @@
1
1
  import { InputAddOnProps } from './add-ons.types.js';
2
+ /**
3
+ * @private
4
+ */
2
5
  export declare const InputAddOn: ({ position, icon: Icon, iconProps, inset, children, size, id, ...props }: InputAddOnProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,5 @@
1
1
  import { type DefaultAddOnProps } from './default-add-on.types.js';
2
+ /**
3
+ * @private
4
+ */
2
5
  export declare const DefaultAddOn: ({ position, className, children, ...props }: DefaultAddOnProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,3 @@
1
1
  import { HTMLAttributes } from 'react';
2
- import { type VariantProps } from 'tailwind-variants';
3
2
  import { AddOnProps } from '../../add-ons.types.js';
4
- import { styles } from './default-add-on.styles.js';
5
- export type DefaultAddOnProps = AddOnProps & VariantProps<typeof styles> & HTMLAttributes<Element>;
3
+ export type DefaultAddOnProps = AddOnProps & HTMLAttributes<Element>;
@@ -1,2 +1,5 @@
1
1
  import { type IconAddOnProps } from './icon-add-on.types.js';
2
+ /**
3
+ * @private
4
+ */
2
5
  export declare const IconAddOn: ({ position, children, size, className, ...props }: IconAddOnProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,3 @@
1
1
  import { HTMLAttributes } from 'react';
2
- import { type VariantProps } from 'tailwind-variants';
3
2
  import { type AddOnProps } from '../../add-ons.types.js';
4
- import { styles } from './icon-add-on.styles.js';
5
- export type IconAddOnProps = AddOnProps & VariantProps<typeof styles> & HTMLAttributes<Element>;
3
+ export type IconAddOnProps = AddOnProps & HTMLAttributes<Element>;
@@ -1,2 +1,5 @@
1
1
  import { type TextAddOnProps } from './text-add-on.types.js';
2
+ /**
3
+ * @private
4
+ */
2
5
  export declare const TextAddOn: ({ position, className, size, id, children, ...props }: TextAddOnProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,3 @@
1
1
  import { HTMLAttributes } from 'react';
2
- import { type VariantProps } from 'tailwind-variants';
3
2
  import { AddOnProps } from '../../add-ons.types.js';
4
- import { styles } from './text-add-on.styles.js';
5
- export type TextAddOnProps = AddOnProps & VariantProps<typeof styles> & HTMLAttributes<Element>;
3
+ export type TextAddOnProps = AddOnProps & HTMLAttributes<Element>;
@@ -1,2 +1,5 @@
1
1
  import { type SupportingTextProps } from './supporting-text.types.js';
2
+ /**
3
+ * @private
4
+ */
2
5
  export declare function SupportingText({ className, tag: Tag, children, ...props }: SupportingTextProps): import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,7 @@
1
1
  import { HTMLAttributes } from 'react';
2
- import { type VariantProps } from 'tailwind-variants';
3
- import { styles } from './supporting-text.styles.js';
4
2
  export type SupportingTextProps = {
5
3
  /**
6
4
  * Tag to render
7
5
  */
8
6
  tag?: keyof JSX.IntrinsicElements;
9
- } & VariantProps<typeof styles> & HTMLAttributes<Element>;
7
+ } & HTMLAttributes<Element>;
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  function _extends() {
2
3
  _extends = Object.assign || function(target) {
3
4
  for(var i = 1; i < arguments.length; i++){
@@ -1,5 +1,5 @@
1
1
  import { useCallback, useMemo, useState } from 'react';
2
- import { CloseIcon, RefreshIcon, SearchIcon, VisibilityIcon, VisibilityOffIcon } from '../icon/index.js';
2
+ import { ClearIcon, RefreshIcon, SearchIcon, VisibilityIcon, VisibilityOffIcon } from '../icon/index.js';
3
3
  import { Button, Input, Select, Textarea } from '../index.js';
4
4
  import { InputField } from './input-field.component.js';
5
5
  const meta = {
@@ -68,7 +68,7 @@ export const SearchWithLeftIconAndClearButton = {
68
68
  element: React.createElement(Button, {
69
69
  onClick: clearInput,
70
70
  look: "link",
71
- iconAfter: CloseIcon,
71
+ iconAfter: ClearIcon,
72
72
  iconColor: "muted"
73
73
  })
74
74
  }
@@ -1,7 +1,5 @@
1
1
  import { type ReactNode } from 'react';
2
- import { type VariantProps } from 'tailwind-variants';
3
2
  import { type IconProps } from '../icon/index.js';
4
- import { styles } from './input-field.styles.js';
5
3
  export type Composition = Record<'before' | 'after', string | null>;
6
4
  export type Sizes = 'small' | 'medium' | 'large' | 'xlarge';
7
5
  export type InputFieldContextType = {
@@ -62,4 +60,4 @@ export type InputFieldProps = {
62
60
  * Tag to render
63
61
  */
64
62
  tag?: keyof JSX.IntrinsicElements;
65
- } & Omit<VariantProps<typeof styles>, 'before' | 'after'>;
63
+ };
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  function _extends() {
2
3
  _extends = Object.assign || function(target) {
3
4
  for(var i = 1; i < arguments.length; i++){
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  function _extends() {
2
3
  _extends = Object.assign || function(target) {
3
4
  for(var i = 1; i < arguments.length; i++){
@@ -1,8 +1,6 @@
1
1
  /// <reference types="react" resolution-mode="require"/>
2
2
  import { type AriaModalOverlayProps } from 'react-aria';
3
3
  import { type OverlayTriggerState } from 'react-stately';
4
- import { type VariantProps } from 'tailwind-variants';
5
- import { styles } from './backdrop.styles.js';
6
4
  export type BackdropProps = {
7
5
  /**
8
6
  * Inner part of backdrop
@@ -24,4 +22,4 @@ export type BackdropProps = {
24
22
  * zIndex of content inside
25
23
  */
26
24
  zIndex?: number;
27
- } & VariantProps<typeof styles> & AriaModalOverlayProps;
25
+ } & AriaModalOverlayProps;
@@ -1,4 +1,2 @@
1
1
  import { HTMLAttributes } from 'react';
2
- import { type VariantProps } from 'tailwind-variants';
3
- import { styles } from './dialog-body.styles.js';
4
- export type DialogBodyProps = VariantProps<typeof styles> & HTMLAttributes<HTMLElement>;
2
+ export type DialogBodyProps = HTMLAttributes<HTMLElement>;
@@ -1,4 +1,2 @@
1
1
  import { HTMLAttributes } from 'react';
2
- import { type VariantProps } from 'tailwind-variants';
3
- import { styles } from './dialog-footer.styles.js';
4
- export type DialogFooterProps = VariantProps<typeof styles> & HTMLAttributes<HTMLElement>;
2
+ export type DialogFooterProps = HTMLAttributes<HTMLElement>;
@@ -2,6 +2,7 @@
2
2
  import { type AriaDialogProps } from 'react-aria';
3
3
  import { type VariantProps } from 'tailwind-variants';
4
4
  import { styles } from './dialog.styles.js';
5
+ type Variants = VariantProps<typeof styles>;
5
6
  export type DialogProps = {
6
7
  /**
7
8
  * Boolean to wrap all children into a Modal.Body
@@ -19,8 +20,13 @@ export type DialogProps = {
19
20
  * onClose callback
20
21
  */
21
22
  onClose?: () => unknown;
23
+ /**
24
+ * Size of dialog
25
+ */
26
+ size?: Variants['size'];
22
27
  /**
23
28
  * Title for Modal
24
29
  */
25
30
  title?: string;
26
- } & VariantProps<typeof styles> & AriaDialogProps;
31
+ } & AriaDialogProps;
32
+ export {};
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  function _extends() {
2
3
  _extends = Object.assign || function(target) {
3
4
  for(var i = 1; i < arguments.length; i++){
@@ -1,2 +1,2 @@
1
1
  import { type PaginationItemProps } from './pagination-item.types.js';
2
- export declare function PaginationItem({ className, firstItem, tag: Tag, children, active, disabled, ...props }: PaginationItemProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function PaginationItem({ className, firstItem, lastItem, tag: Tag, children, active, disabled, ...props }: PaginationItemProps): import("react/jsx-runtime").JSX.Element;
@@ -14,11 +14,12 @@ function _extends() {
14
14
  }
15
15
  import React from 'react';
16
16
  import { styles } from './pagination-item.styles.js';
17
- export function PaginationItem({ className , firstItem =false , tag: Tag = 'a' , children , active , disabled =false , ...props }) {
17
+ export function PaginationItem({ className , firstItem =false , lastItem =false , tag: Tag = 'a' , children , active , disabled =false , ...props }) {
18
18
  return React.createElement(Tag, _extends({
19
19
  className: styles({
20
20
  className,
21
21
  firstItem,
22
+ lastItem,
22
23
  active,
23
24
  disabled
24
25
  })
@@ -3,6 +3,10 @@ export declare const styles: import("tailwind-variants").TVReturnType<{
3
3
  true: string;
4
4
  false: string;
5
5
  };
6
+ lastItem: {
7
+ true: string;
8
+ false: string;
9
+ };
6
10
  active: {
7
11
  true: string;
8
12
  false: string;
@@ -11,13 +15,17 @@ export declare const styles: import("tailwind-variants").TVReturnType<{
11
15
  true: string;
12
16
  false: string;
13
17
  };
14
- }, undefined, "typography-body-10 block border-l border-border px-2 py-[0.5625rem] text-center text-text transition-colors", {
18
+ }, undefined, "typography-body-10 relative block border border-border px-2 py-[0.5625rem] text-center text-text transition-colors", {
15
19
  responsiveVariants: string[];
16
20
  }, {
17
21
  firstItem: {
18
22
  true: string;
19
23
  false: string;
20
24
  };
25
+ lastItem: {
26
+ true: string;
27
+ false: string;
28
+ };
21
29
  active: {
22
30
  true: string;
23
31
  false: string;
@@ -1,13 +1,17 @@
1
1
  import { tv } from 'tailwind-variants';
2
2
  export const styles = tv({
3
- base: 'typography-body-10 block border-l border-border px-2 py-[0.5625rem] text-center text-text transition-colors',
3
+ base: 'typography-body-10 relative block border border-border px-2 py-[0.5625rem] text-center text-text transition-colors',
4
4
  variants: {
5
5
  firstItem: {
6
- true: 'border-l-0',
6
+ true: 'rounded-l',
7
+ false: 'ml-[-1px]'
8
+ },
9
+ lastItem: {
10
+ true: 'rounded-r',
7
11
  false: ''
8
12
  },
9
13
  active: {
10
- true: 'bg-hero text-white',
14
+ true: 'z-10 border-hero bg-hero text-white',
11
15
  false: 'hover:bg-light'
12
16
  },
13
17
  disabled: {
@@ -1,9 +1,27 @@
1
1
  import { AnchorHTMLAttributes, ButtonHTMLAttributes, ReactElement } from 'react';
2
- import { type VariantProps } from 'tailwind-variants';
2
+ import { VariantProps } from 'tailwind-variants';
3
3
  import { styles } from './pagination-item.styles.js';
4
+ type Variants = VariantProps<typeof styles>;
4
5
  export type PaginationItemProps = {
6
+ /**
7
+ * Whether item is active
8
+ */
9
+ active?: Variants['active'];
10
+ /**
11
+ * Whether item is disabled
12
+ */
13
+ disabled?: Variants['disabled'];
14
+ /**
15
+ * Whether it is the first item
16
+ */
17
+ firstItem?: Variants['firstItem'];
18
+ /**
19
+ * Whether it is the last item
20
+ */
21
+ lastItem?: Variants['lastItem'];
5
22
  /**
6
23
  * Link component to render
7
24
  */
8
25
  tag?: 'a' | 'button' | ((...args: any[]) => ReactElement | null);
9
- } & VariantProps<typeof styles> & (AnchorHTMLAttributes<HTMLAnchorElement> | ButtonHTMLAttributes<HTMLButtonElement>);
26
+ } & (AnchorHTMLAttributes<HTMLAnchorElement> | ButtonHTMLAttributes<HTMLButtonElement>);
27
+ export {};
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  function _extends() {
2
3
  _extends = Object.assign || function(target) {
3
4
  for(var i = 1; i < arguments.length; i++){
@@ -73,7 +74,8 @@ export function Pagination({ className , pages , tag: Tag = 'nav' , role ='navig
73
74
  const backwardsOnly = (current || 1) >= pages.length;
74
75
  const defaultNextProps = {
75
76
  disabled: !infinite && backwardsOnly,
76
- tag: linkComponent
77
+ tag: linkComponent,
78
+ lastItem: true
77
79
  };
78
80
  if (defaultNextProps.disabled) {
79
81
  return {
@@ -186,7 +186,7 @@ export const UsePaginationDifferentComponents = ()=>{
186
186
  infinite: true
187
187
  });
188
188
  return React.createElement("div", {
189
- className: "flex items-center"
189
+ className: "flex w-[15.625rem] items-center justify-between"
190
190
  }, React.createElement(Button, {
191
191
  look: "link",
192
192
  iconAfter: ArrowLeftIcon,
@@ -2,7 +2,7 @@ import { tv } from 'tailwind-variants';
2
2
  export const styles = tv({
3
3
  slots: {
4
4
  base: 'flex flex-col items-center',
5
- ul: 'flex overflow-hidden rounded border border-border'
5
+ ul: 'flex overflow-hidden'
6
6
  },
7
7
  variants: {}
8
8
  }, {
@@ -1,7 +1,5 @@
1
1
  import { HTMLAttributes, ReactNode } from 'react';
2
- import { type VariantProps } from 'tailwind-variants';
3
2
  import { type PaginationItemProps } from './components/index.js';
4
- import { styles } from './pagination.styles.js';
5
3
  export type PageProps = {
6
4
  href: string;
7
5
  text: ReactNode;
@@ -58,4 +56,4 @@ export type PaginationProps = {
58
56
  * Tag to render
59
57
  */
60
58
  tag?: keyof JSX.IntrinsicElements;
61
- } & (PaginationAsLinkProps | PaginationAsButtonProps) & VariantProps<typeof styles> & Omit<HTMLAttributes<Element>, 'onChange'>;
59
+ } & (PaginationAsLinkProps | PaginationAsButtonProps) & Omit<HTMLAttributes<Element>, 'onChange'>;
@@ -1,6 +1,4 @@
1
1
  import { type SVGAttributes } from 'react';
2
- import { type VariantProps } from 'tailwind-variants';
3
- import { styles } from './pictogram.styles.js';
4
2
  export type PictogramProps = SVGAttributes<SVGElement> & {
5
3
  /**
6
4
  * SVG copyright year
@@ -22,4 +20,4 @@ export type PictogramProps = SVGAttributes<SVGElement> & {
22
20
  * SVG viewBox width
23
21
  */
24
22
  viewBoxWidth?: number;
25
- } & VariantProps<typeof styles>;
23
+ };
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import React, { useCallback, useEffect, useId } from 'react';
2
3
  import { useOverlayTriggerState } from 'react-stately';
3
4
  import { Button } from '../button/index.js';
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  function _extends() {
2
3
  _extends = Object.assign || function(target) {
3
4
  for(var i = 1; i < arguments.length; i++){
@@ -1,7 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { type VariantProps } from 'tailwind-variants';
3
2
  import { ProgressRopeStepItem } from '../../progress-rope.types.js';
4
- import { styles } from './progress-rope-group-step.styles.js';
5
3
  export type ProgressRopeGroupStepProps = {
6
4
  /**
7
5
  * Children
@@ -33,4 +31,4 @@ export type ProgressRopeGroupStepProps = {
33
31
  steps: (ProgressRopeStepItem & {
34
32
  index: number;
35
33
  })[];
36
- } & VariantProps<typeof styles>;
34
+ };
@@ -2,11 +2,20 @@ import { HTMLAttributes } from 'react';
2
2
  import { type VariantProps } from 'tailwind-variants';
3
3
  import { ProgressRopeStepItem } from '../../progress-rope.types.js';
4
4
  import { styles } from './progress-rope-step.styles.js';
5
+ type Variants = VariantProps<typeof styles>;
5
6
  export type ProgressRopeStepProps = {
6
7
  /**
7
8
  * Says it is current
8
9
  */
9
10
  current?: boolean;
11
+ /**
12
+ * Whether step is first item
13
+ */
14
+ firstItem?: Variants['firstItem'];
15
+ /**
16
+ * Size of step
17
+ */
18
+ size?: Variants['size'];
10
19
  /**
11
20
  * Tag to render
12
21
  */
@@ -15,4 +24,5 @@ export type ProgressRopeStepProps = {
15
24
  * Says it is visited
16
25
  */
17
26
  visited?: boolean;
18
- } & Omit<ProgressRopeStepItem, 'text'> & VariantProps<typeof styles> & HTMLAttributes<Element>;
27
+ } & Omit<ProgressRopeStepItem, 'text'> & HTMLAttributes<Element>;
28
+ export {};
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  function _extends() {
2
3
  _extends = Object.assign || function(target) {
3
4
  for(var i = 1; i < arguments.length; i++){
@@ -1,6 +1,4 @@
1
1
  import { HTMLAttributes, MouseEventHandler, ReactNode } from 'react';
2
- import { type VariantProps } from 'tailwind-variants';
3
- import { styles } from './progress-rope.styles.js';
4
2
  export type ProgressRopeStepItem = {
5
3
  onClick?: MouseEventHandler<Element>;
6
4
  text: ReactNode;
@@ -32,4 +30,4 @@ export type ProgressRopeProps = {
32
30
  * Tag to render
33
31
  */
34
32
  tag?: keyof JSX.IntrinsicElements;
35
- } & VariantProps<typeof styles> & HTMLAttributes<Element>;
33
+ } & HTMLAttributes<Element>;
@@ -50,3 +50,4 @@ function BaseRadio({ className , hint , children , ...props }, ref) {
50
50
  }, hint)));
51
51
  }
52
52
  export const Radio = forwardRef(BaseRadio);
53
+ Radio.displayName = 'RadioGroup.Radio';
@@ -4,8 +4,8 @@ export const styles = tv({
4
4
  base: 'flex',
5
5
  textWrapper: 'flex flex-col justify-center',
6
6
  labelText: 'typography-body-10 py-[2px] pl-1',
7
- hintText: 'typography-body-10 text-muted pl-1',
8
- selector: 'border-hero flex shrink-0 h-4 w-4 items-center justify-center rounded-full border'
7
+ hintText: 'typography-body-10 pl-1 text-muted',
8
+ selector: 'flex h-4 w-4 shrink-0 items-center justify-center rounded-full border border-hero'
9
9
  },
10
10
  variants: {
11
11
  isDisabled: {
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  function _extends() {
2
3
  _extends = Object.assign || function(target) {
3
4
  for(var i = 1; i < arguments.length; i++){
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  function _extends() {
2
3
  _extends = Object.assign || function(target) {
3
4
  for(var i = 1; i < arguments.length; i++){
@@ -103,7 +104,7 @@ export function Repeater({ addText ='Add another item' , indexTag: ItemIndex = '
103
104
  transition: {
104
105
  duration: 0.15
105
106
  },
106
- key: index
107
+ key: item.id
107
108
  }, React.createElement("div", _extends({
108
109
  ref: (el)=>{
109
110
  refArr.current[index] = el;
@@ -119,6 +120,7 @@ export function Repeater({ addText ='Add another item' , indexTag: ItemIndex = '
119
120
  "aria-label": `remove item ${index + 1}`,
120
121
  iconBefore: (props)=>React.createElement(RemoveCircleIcon, _extends({}, props, {
121
122
  "aria-hidden": true,
123
+ look: "outlined",
122
124
  size: "xsmall"
123
125
  })),
124
126
  look: "link",
@@ -13,10 +13,10 @@ export const styles = tv({
13
13
  variants: {
14
14
  separator: {
15
15
  true: {
16
- item: 'border-neutral border-t-2 pt-[0.625rem]',
16
+ item: 'border-t-2 border-neutral pt-[0.625rem]',
17
17
  content: 'p-[0_1.125rem_2.625rem]',
18
18
  removeBtn: 'relative m-[0_0_1.875rem_1.125rem]',
19
- footer: 'border-neutral border-t-2 pt-[0.875rem]'
19
+ footer: 'border-t-2 border-neutral pt-[0.875rem]'
20
20
  }
21
21
  },
22
22
  isFocused: {
@@ -1,36 +1,9 @@
1
1
  import React from 'react';
2
- export declare const Select: React.ForwardRefExoticComponent<import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
3
- size: {
4
- small: string;
5
- medium: string;
6
- large: string;
7
- xlarge: string;
8
- };
9
- invalid: {
10
- true: string;
11
- false: string;
12
- };
13
- isFocused: {
14
- true: {
15
- base: string;
16
- };
17
- };
18
- }, undefined, "form-control select-caret disabled:form-control-disabled bg-no-repeat group-[.add-on-after]:rounded-l-none group-[.add-on-before]:rounded-r-none", {
19
- responsiveVariants: string[];
20
- }, {
21
- size: {
22
- small: string;
23
- medium: string;
24
- large: string;
25
- xlarge: string;
26
- };
27
- invalid: {
28
- true: string;
29
- false: string;
30
- };
31
- isFocused: {
32
- true: {
33
- base: string;
34
- };
35
- };
36
- }, undefined>> & Omit<React.SelectHTMLAttributes<HTMLSelectElement>, "size"> & React.RefAttributes<HTMLSelectElement>>;
2
+ export declare const Select: React.ForwardRefExoticComponent<{
3
+ invalid?: boolean | {
4
+ [x: string]: boolean | undefined;
5
+ } | undefined;
6
+ size?: "small" | "medium" | "large" | "xlarge" | {
7
+ [x: string]: "small" | "medium" | "large" | "xlarge" | undefined;
8
+ } | undefined;
9
+ } & Omit<React.SelectHTMLAttributes<HTMLSelectElement>, "size"> & React.RefAttributes<HTMLSelectElement>>;
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  function _extends() {
2
3
  _extends = Object.assign || function(target) {
3
4
  for(var i = 1; i < arguments.length; i++){
@@ -14,7 +14,7 @@ export declare const styles: import("tailwind-variants").TVReturnType<{
14
14
  base: string;
15
15
  };
16
16
  };
17
- }, undefined, "form-control select-caret disabled:form-control-disabled bg-no-repeat group-[.add-on-after]:rounded-l-none group-[.add-on-before]:rounded-r-none", {
17
+ }, undefined, "form-control bg-no-repeat select-caret disabled:form-control-disabled group-[.add-on-after]:rounded-l-none group-[.add-on-before]:rounded-r-none", {
18
18
  responsiveVariants: string[];
19
19
  }, {
20
20
  size: {