@westpac/ui 0.30.0 → 0.32.0

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 (294) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/assets/icons/filled/child-care-filled.svg +1 -0
  3. package/assets/icons/filled/child-filled.svg +1 -0
  4. package/assets/icons/filled/piggy-bank-filled.svg +3 -0
  5. package/assets/icons/filled/x-filled.svg +1 -0
  6. package/assets/icons/outlined/child-care-outlined.svg +1 -0
  7. package/assets/icons/outlined/child-outlined.svg +1 -0
  8. package/assets/icons/outlined/piggy-bank-outlined.svg +6 -0
  9. package/assets/icons/outlined/x-outlined.svg +1 -0
  10. package/dist/component-type.json +1 -1
  11. package/dist/components/accordion/components/accordion-item/accordion-item.styles.js +1 -1
  12. package/dist/components/checkbox-group/components/checkbox-group-checkbox/checkbox-group-checkbox.styles.js +4 -4
  13. package/dist/components/circle/circle.styles.d.ts +2 -2
  14. package/dist/components/circle/circle.styles.js +1 -1
  15. package/dist/components/flexi-cell/components/flexi-cell-circle/flexi-cell-circle.styles.js +1 -1
  16. package/dist/components/header/header.styles.js +1 -1
  17. package/dist/components/icon/components/child-care-icon.js +1 -1
  18. package/dist/components/icon/components/child-icon.js +1 -1
  19. package/dist/components/icon/components/piggy-bank-icon.d.ts +2 -0
  20. package/dist/components/icon/components/piggy-bank-icon.js +35 -0
  21. package/dist/components/icon/components/x-icon.js +1 -1
  22. package/dist/components/icon/icon.styles.js +5 -5
  23. package/dist/components/icon/index.d.ts +4 -0
  24. package/dist/components/icon/index.js +4 -0
  25. package/dist/components/list/components/list-item/list-item.styles.js +3 -3
  26. package/dist/components/pictogram/components/decorative/wbc-bank-card-pictogram.js +1 -1
  27. package/dist/components/pictogram/components/informative/accessibility-pictogram.js +1 -1
  28. package/dist/components/pictogram/components/informative/accounts-pictogram.js +1 -1
  29. package/dist/components/pictogram/components/informative/aeroplane-pictogram.js +1 -1
  30. package/dist/components/pictogram/components/informative/arrow-down-pictogram.js +1 -1
  31. package/dist/components/pictogram/components/informative/arrow-left-pictogram.js +1 -1
  32. package/dist/components/pictogram/components/informative/arrow-right-pictogram.js +1 -1
  33. package/dist/components/pictogram/components/informative/arrow-up-pictogram.js +1 -1
  34. package/dist/components/pictogram/components/informative/arrows-passing-pictogram.js +1 -1
  35. package/dist/components/pictogram/components/informative/atm-pictogram.js +1 -1
  36. package/dist/components/pictogram/components/informative/australia-pictogram.js +1 -1
  37. package/dist/components/pictogram/components/informative/bank-card-locked-pictogram.js +1 -1
  38. package/dist/components/pictogram/components/informative/bank-card-pictogram.js +1 -1
  39. package/dist/components/pictogram/components/informative/bank-pictogram.js +1 -1
  40. package/dist/components/pictogram/components/informative/birth-certificate-pictogram.js +1 -1
  41. package/dist/components/pictogram/components/informative/building-pictogram.js +1 -1
  42. package/dist/components/pictogram/components/informative/buoy-pictogram.js +1 -1
  43. package/dist/components/pictogram/components/informative/bus-pictogram.js +1 -1
  44. package/dist/components/pictogram/components/informative/business-person-pictogram.js +1 -1
  45. package/dist/components/pictogram/components/informative/calculator-pictogram.js +1 -1
  46. package/dist/components/pictogram/components/informative/calendar-pictogram.js +1 -1
  47. package/dist/components/pictogram/components/informative/car-pictogram.js +1 -1
  48. package/dist/components/pictogram/components/informative/cash-pictogram.js +1 -1
  49. package/dist/components/pictogram/components/informative/celebration-pictogram.js +1 -1
  50. package/dist/components/pictogram/components/informative/chat-pictogram.js +1 -1
  51. package/dist/components/pictogram/components/informative/clock-pictogram.js +1 -1
  52. package/dist/components/pictogram/components/informative/coffee-pictogram.js +1 -1
  53. package/dist/components/pictogram/components/informative/coins-pictogram.js +1 -1
  54. package/dist/components/pictogram/components/informative/compass-pictogram.js +1 -1
  55. package/dist/components/pictogram/components/informative/customer-profile-pictogram.js +1 -1
  56. package/dist/components/pictogram/components/informative/desktop-computer-pictogram.js +1 -1
  57. package/dist/components/pictogram/components/informative/document-and-pen-pictogram.js +1 -1
  58. package/dist/components/pictogram/components/informative/dollar-sign-pictogram.js +1 -1
  59. package/dist/components/pictogram/components/informative/drivers-licence-pictogram.js +1 -1
  60. package/dist/components/pictogram/components/informative/education-pictogram.js +1 -1
  61. package/dist/components/pictogram/components/informative/eftpos-pictogram.js +1 -1
  62. package/dist/components/pictogram/components/informative/envelope-email-pictogram.js +1 -1
  63. package/dist/components/pictogram/components/informative/envelope-printed-pictogram.js +1 -1
  64. package/dist/components/pictogram/components/informative/face-happy-pictogram.js +1 -1
  65. package/dist/components/pictogram/components/informative/face-unhappy-pictogram.js +1 -1
  66. package/dist/components/pictogram/components/informative/face-unsure-pictogram.js +1 -1
  67. package/dist/components/pictogram/components/informative/finger-motion-pictogram.js +1 -1
  68. package/dist/components/pictogram/components/informative/fingerprint-pictogram.js +1 -1
  69. package/dist/components/pictogram/components/informative/football-pictogram.js +1 -1
  70. package/dist/components/pictogram/components/informative/fork-knife-pictogram.js +1 -1
  71. package/dist/components/pictogram/components/informative/generic-document-pictogram.js +1 -1
  72. package/dist/components/pictogram/components/informative/gift-pictogram.js +1 -1
  73. package/dist/components/pictogram/components/informative/globe-australia-pictogram.js +1 -1
  74. package/dist/components/pictogram/components/informative/globe-pictogram.js +1 -1
  75. package/dist/components/pictogram/components/informative/graph-decreasing-pictogram.js +1 -1
  76. package/dist/components/pictogram/components/informative/graph-increasing-pictogram.js +1 -1
  77. package/dist/components/pictogram/components/informative/gym-pictogram.js +1 -1
  78. package/dist/components/pictogram/components/informative/headset-pictogram.js +1 -1
  79. package/dist/components/pictogram/components/informative/heart-pictogram.js +1 -1
  80. package/dist/components/pictogram/components/informative/house-pictogram.js +1 -1
  81. package/dist/components/pictogram/components/informative/light-bulb-pictogram.js +1 -1
  82. package/dist/components/pictogram/components/informative/loop-pictogram.js +1 -1
  83. package/dist/components/pictogram/components/informative/medicare-card-pictogram.js +1 -1
  84. package/dist/components/pictogram/components/informative/mobile-device-pictogram.js +1 -1
  85. package/dist/components/pictogram/components/informative/money-in-pictogram.js +1 -1
  86. package/dist/components/pictogram/components/informative/money-out-pictogram.js +1 -1
  87. package/dist/components/pictogram/components/informative/movie-tickets-pictogram.js +1 -1
  88. package/dist/components/pictogram/components/informative/nest-egg-pictogram.js +1 -1
  89. package/dist/components/pictogram/components/informative/noodles-pictogram.js +1 -1
  90. package/dist/components/pictogram/components/informative/number-1-pictogram.js +1 -1
  91. package/dist/components/pictogram/components/informative/number-2-pictogram.js +1 -1
  92. package/dist/components/pictogram/components/informative/number-3-pictogram.js +1 -1
  93. package/dist/components/pictogram/components/informative/number-4-pictogram.js +1 -1
  94. package/dist/components/pictogram/components/informative/number-5-pictogram.js +1 -1
  95. package/dist/components/pictogram/components/informative/padlock-locked-pictogram.js +1 -1
  96. package/dist/components/pictogram/components/informative/padlock-unlocked-pictogram.js +1 -1
  97. package/dist/components/pictogram/components/informative/passport-pictogram.js +1 -1
  98. package/dist/components/pictogram/components/informative/percent-sign-pictogram.js +1 -1
  99. package/dist/components/pictogram/components/informative/person-pictogram.js +1 -1
  100. package/dist/components/pictogram/components/informative/piggy-bank-pictogram.js +1 -1
  101. package/dist/components/pictogram/components/informative/pizza-pictogram.js +1 -1
  102. package/dist/components/pictogram/components/informative/plant-pictogram.js +1 -1
  103. package/dist/components/pictogram/components/informative/search-pictogram.js +1 -1
  104. package/dist/components/pictogram/components/informative/secure-pictogram.js +1 -1
  105. package/dist/components/pictogram/components/informative/shop-pictogram.js +1 -1
  106. package/dist/components/pictogram/components/informative/shopping-pictogram.js +1 -1
  107. package/dist/components/pictogram/components/informative/sparkle-pictogram.js +1 -1
  108. package/dist/components/pictogram/components/informative/star-pictogram.js +1 -1
  109. package/dist/components/pictogram/components/informative/stopwatch-pictogram.js +1 -1
  110. package/dist/components/pictogram/components/informative/target-pictogram.js +1 -1
  111. package/dist/components/pictogram/components/informative/tax-document-pictogram.js +1 -1
  112. package/dist/components/pictogram/components/informative/telephone-call-pictogram.js +1 -1
  113. package/dist/components/pictogram/components/informative/thumbs-up-pictogram.js +1 -1
  114. package/dist/components/pictogram/components/informative/tick-pictogram.js +1 -1
  115. package/dist/components/pictogram/components/informative/tools-pictogram.js +1 -1
  116. package/dist/components/pictogram/components/informative/tractor-pictogram.js +1 -1
  117. package/dist/components/pictogram/components/informative/truck-pictogram.js +1 -1
  118. package/dist/components/pictogram/components/informative/umbrella-pictogram.js +1 -1
  119. package/dist/components/pictogram/components/informative/unsecure-pictogram.js +1 -1
  120. package/dist/components/pictogram/components/informative/wallet-pictogram.js +1 -1
  121. package/dist/components/pictogram/components/informative/wearables-pictogram.js +1 -1
  122. package/dist/components/popover/components/panel/panel.component.d.ts +2 -1
  123. package/dist/components/popover/components/panel/panel.component.js +42 -40
  124. package/dist/components/popover/components/panel/panel.hook.d.ts +39 -0
  125. package/dist/components/popover/components/panel/panel.hook.js +83 -0
  126. package/dist/components/popover/components/panel/panel.styles.js +9 -6
  127. package/dist/components/popover/components/panel/panel.types.d.ts +4 -0
  128. package/dist/components/popover/popover.component.d.ts +1 -1
  129. package/dist/components/popover/popover.component.js +4 -3
  130. package/dist/components/popover/popover.types.d.ts +7 -0
  131. package/dist/components/progress-indicator/progress-indicator.styles.js +5 -5
  132. package/dist/components/progress-rope/components/progress-rope-group-step/progress-rope-group-step.styles.js +1 -1
  133. package/dist/components/progress-rope/components/progress-rope-step/progress-rope-step.styles.js +2 -2
  134. package/dist/components/radio-group/components/radio-group-radio/radio-group-radio.styles.js +4 -4
  135. package/dist/components/switch/switch.styles.js +4 -4
  136. package/dist/components/symbol/components/logos/red-avatar-circle-logo.js +1 -1
  137. package/dist/components/symbol/components/logos/red-avatar-circle-reversed-logo.js +1 -1
  138. package/dist/components/symbol/components/symbols/facebook-symbol.js +1 -1
  139. package/dist/components/symbol/components/symbols/google-plus-symbol.js +1 -1
  140. package/dist/components/symbol/components/symbols/instagram-symbol.js +1 -1
  141. package/dist/components/symbol/components/symbols/linked-in-symbol.js +1 -1
  142. package/dist/components/symbol/components/symbols/slack-symbol.js +1 -1
  143. package/dist/components/symbol/components/symbols/twitter-symbol.js +1 -1
  144. package/dist/components/symbol/components/symbols/x-mark-inverse-symbol.d.ts +2 -0
  145. package/dist/components/symbol/components/symbols/x-mark-inverse-symbol.js +27 -0
  146. package/dist/components/symbol/components/symbols/x-mark-symbol.d.ts +2 -0
  147. package/dist/components/symbol/components/symbols/x-mark-symbol.js +27 -0
  148. package/dist/components/symbol/components/symbols/x-symbol.d.ts +2 -0
  149. package/dist/components/symbol/components/symbols/x-symbol.js +38 -0
  150. package/dist/components/symbol/components/symbols/yammer-symbol.js +1 -1
  151. package/dist/components/symbol/components/symbols/youtube-symbol.js +1 -1
  152. package/dist/components/symbol/index.d.ts +3 -0
  153. package/dist/components/symbol/index.js +3 -0
  154. package/dist/components/textarea/textarea.styles.js +4 -4
  155. package/dist/css/westpac-ui.css +519 -515
  156. package/dist/css/westpac-ui.min.css +519 -515
  157. package/package.json +1 -1
  158. package/src/components/accordion/components/accordion-item/accordion-item.styles.ts +1 -1
  159. package/src/components/checkbox-group/components/checkbox-group-checkbox/checkbox-group-checkbox.styles.ts +4 -4
  160. package/src/components/circle/circle.styles.ts +1 -1
  161. package/src/components/flexi-cell/components/flexi-cell-circle/flexi-cell-circle.styles.ts +1 -1
  162. package/src/components/header/header.styles.ts +1 -1
  163. package/src/components/icon/components/child-care-icon.tsx +1 -1
  164. package/src/components/icon/components/child-icon.tsx +1 -1
  165. package/src/components/icon/components/piggy-bank-icon.tsx +35 -0
  166. package/src/components/icon/components/x-icon.tsx +1 -1
  167. package/src/components/icon/icon.styles.ts +5 -5
  168. package/src/components/icon/index.ts +4 -0
  169. package/src/components/list/components/list-item/list-item.styles.ts +3 -3
  170. package/src/components/pictogram/components/decorative/wbc-bank-card-pictogram.tsx +1 -1
  171. package/src/components/pictogram/components/informative/accessibility-pictogram.tsx +1 -1
  172. package/src/components/pictogram/components/informative/accounts-pictogram.tsx +1 -1
  173. package/src/components/pictogram/components/informative/aeroplane-pictogram.tsx +1 -1
  174. package/src/components/pictogram/components/informative/arrow-down-pictogram.tsx +1 -1
  175. package/src/components/pictogram/components/informative/arrow-left-pictogram.tsx +1 -1
  176. package/src/components/pictogram/components/informative/arrow-right-pictogram.tsx +1 -1
  177. package/src/components/pictogram/components/informative/arrow-up-pictogram.tsx +1 -1
  178. package/src/components/pictogram/components/informative/arrows-passing-pictogram.tsx +1 -1
  179. package/src/components/pictogram/components/informative/atm-pictogram.tsx +1 -1
  180. package/src/components/pictogram/components/informative/australia-pictogram.tsx +1 -1
  181. package/src/components/pictogram/components/informative/bank-card-locked-pictogram.tsx +1 -1
  182. package/src/components/pictogram/components/informative/bank-card-pictogram.tsx +1 -1
  183. package/src/components/pictogram/components/informative/bank-pictogram.tsx +1 -1
  184. package/src/components/pictogram/components/informative/birth-certificate-pictogram.tsx +1 -1
  185. package/src/components/pictogram/components/informative/building-pictogram.tsx +1 -1
  186. package/src/components/pictogram/components/informative/buoy-pictogram.tsx +1 -1
  187. package/src/components/pictogram/components/informative/bus-pictogram.tsx +1 -1
  188. package/src/components/pictogram/components/informative/business-person-pictogram.tsx +1 -1
  189. package/src/components/pictogram/components/informative/calculator-pictogram.tsx +1 -1
  190. package/src/components/pictogram/components/informative/calendar-pictogram.tsx +1 -1
  191. package/src/components/pictogram/components/informative/car-pictogram.tsx +1 -1
  192. package/src/components/pictogram/components/informative/cash-pictogram.tsx +1 -1
  193. package/src/components/pictogram/components/informative/celebration-pictogram.tsx +1 -1
  194. package/src/components/pictogram/components/informative/chat-pictogram.tsx +1 -1
  195. package/src/components/pictogram/components/informative/clock-pictogram.tsx +1 -1
  196. package/src/components/pictogram/components/informative/coffee-pictogram.tsx +1 -1
  197. package/src/components/pictogram/components/informative/coins-pictogram.tsx +1 -1
  198. package/src/components/pictogram/components/informative/compass-pictogram.tsx +1 -1
  199. package/src/components/pictogram/components/informative/customer-profile-pictogram.tsx +1 -1
  200. package/src/components/pictogram/components/informative/desktop-computer-pictogram.tsx +1 -1
  201. package/src/components/pictogram/components/informative/document-and-pen-pictogram.tsx +1 -1
  202. package/src/components/pictogram/components/informative/dollar-sign-pictogram.tsx +1 -1
  203. package/src/components/pictogram/components/informative/drivers-licence-pictogram.tsx +1 -1
  204. package/src/components/pictogram/components/informative/education-pictogram.tsx +1 -1
  205. package/src/components/pictogram/components/informative/eftpos-pictogram.tsx +1 -1
  206. package/src/components/pictogram/components/informative/envelope-email-pictogram.tsx +1 -1
  207. package/src/components/pictogram/components/informative/envelope-printed-pictogram.tsx +1 -1
  208. package/src/components/pictogram/components/informative/face-happy-pictogram.tsx +1 -1
  209. package/src/components/pictogram/components/informative/face-unhappy-pictogram.tsx +1 -1
  210. package/src/components/pictogram/components/informative/face-unsure-pictogram.tsx +1 -1
  211. package/src/components/pictogram/components/informative/finger-motion-pictogram.tsx +1 -1
  212. package/src/components/pictogram/components/informative/fingerprint-pictogram.tsx +1 -1
  213. package/src/components/pictogram/components/informative/football-pictogram.tsx +1 -1
  214. package/src/components/pictogram/components/informative/fork-knife-pictogram.tsx +1 -1
  215. package/src/components/pictogram/components/informative/generic-document-pictogram.tsx +1 -1
  216. package/src/components/pictogram/components/informative/gift-pictogram.tsx +1 -1
  217. package/src/components/pictogram/components/informative/globe-australia-pictogram.tsx +1 -1
  218. package/src/components/pictogram/components/informative/globe-pictogram.tsx +1 -1
  219. package/src/components/pictogram/components/informative/graph-decreasing-pictogram.tsx +1 -1
  220. package/src/components/pictogram/components/informative/graph-increasing-pictogram.tsx +1 -1
  221. package/src/components/pictogram/components/informative/gym-pictogram.tsx +1 -1
  222. package/src/components/pictogram/components/informative/headset-pictogram.tsx +1 -1
  223. package/src/components/pictogram/components/informative/heart-pictogram.tsx +1 -1
  224. package/src/components/pictogram/components/informative/house-pictogram.tsx +1 -1
  225. package/src/components/pictogram/components/informative/light-bulb-pictogram.tsx +1 -1
  226. package/src/components/pictogram/components/informative/loop-pictogram.tsx +1 -1
  227. package/src/components/pictogram/components/informative/medicare-card-pictogram.tsx +1 -1
  228. package/src/components/pictogram/components/informative/mobile-device-pictogram.tsx +1 -1
  229. package/src/components/pictogram/components/informative/money-in-pictogram.tsx +1 -1
  230. package/src/components/pictogram/components/informative/money-out-pictogram.tsx +1 -1
  231. package/src/components/pictogram/components/informative/movie-tickets-pictogram.tsx +1 -1
  232. package/src/components/pictogram/components/informative/nest-egg-pictogram.tsx +1 -1
  233. package/src/components/pictogram/components/informative/noodles-pictogram.tsx +1 -1
  234. package/src/components/pictogram/components/informative/number-1-pictogram.tsx +1 -1
  235. package/src/components/pictogram/components/informative/number-2-pictogram.tsx +1 -1
  236. package/src/components/pictogram/components/informative/number-3-pictogram.tsx +1 -1
  237. package/src/components/pictogram/components/informative/number-4-pictogram.tsx +1 -1
  238. package/src/components/pictogram/components/informative/number-5-pictogram.tsx +1 -1
  239. package/src/components/pictogram/components/informative/padlock-locked-pictogram.tsx +1 -1
  240. package/src/components/pictogram/components/informative/padlock-unlocked-pictogram.tsx +1 -1
  241. package/src/components/pictogram/components/informative/passport-pictogram.tsx +1 -1
  242. package/src/components/pictogram/components/informative/percent-sign-pictogram.tsx +1 -1
  243. package/src/components/pictogram/components/informative/person-pictogram.tsx +1 -1
  244. package/src/components/pictogram/components/informative/piggy-bank-pictogram.tsx +1 -1
  245. package/src/components/pictogram/components/informative/pizza-pictogram.tsx +1 -1
  246. package/src/components/pictogram/components/informative/plant-pictogram.tsx +1 -1
  247. package/src/components/pictogram/components/informative/search-pictogram.tsx +1 -1
  248. package/src/components/pictogram/components/informative/secure-pictogram.tsx +1 -1
  249. package/src/components/pictogram/components/informative/shop-pictogram.tsx +1 -1
  250. package/src/components/pictogram/components/informative/shopping-pictogram.tsx +1 -1
  251. package/src/components/pictogram/components/informative/sparkle-pictogram.tsx +1 -1
  252. package/src/components/pictogram/components/informative/star-pictogram.tsx +1 -1
  253. package/src/components/pictogram/components/informative/stopwatch-pictogram.tsx +1 -1
  254. package/src/components/pictogram/components/informative/target-pictogram.tsx +1 -1
  255. package/src/components/pictogram/components/informative/tax-document-pictogram.tsx +1 -1
  256. package/src/components/pictogram/components/informative/telephone-call-pictogram.tsx +1 -1
  257. package/src/components/pictogram/components/informative/thumbs-up-pictogram.tsx +1 -1
  258. package/src/components/pictogram/components/informative/tick-pictogram.tsx +1 -1
  259. package/src/components/pictogram/components/informative/tools-pictogram.tsx +1 -1
  260. package/src/components/pictogram/components/informative/tractor-pictogram.tsx +1 -1
  261. package/src/components/pictogram/components/informative/truck-pictogram.tsx +1 -1
  262. package/src/components/pictogram/components/informative/umbrella-pictogram.tsx +1 -1
  263. package/src/components/pictogram/components/informative/unsecure-pictogram.tsx +1 -1
  264. package/src/components/pictogram/components/informative/wallet-pictogram.tsx +1 -1
  265. package/src/components/pictogram/components/informative/wearables-pictogram.tsx +1 -1
  266. package/src/components/popover/components/panel/panel.component.tsx +34 -45
  267. package/src/components/popover/components/panel/panel.hook.tsx +113 -0
  268. package/src/components/popover/components/panel/panel.styles.ts +9 -7
  269. package/src/components/popover/components/panel/panel.types.ts +4 -0
  270. package/src/components/popover/popover.component.tsx +10 -4
  271. package/src/components/popover/popover.types.ts +8 -0
  272. package/src/components/progress-indicator/progress-indicator.styles.ts +5 -5
  273. package/src/components/progress-rope/components/progress-rope-group-step/progress-rope-group-step.styles.ts +1 -1
  274. package/src/components/progress-rope/components/progress-rope-step/progress-rope-step.styles.ts +2 -2
  275. package/src/components/radio-group/components/radio-group-radio/radio-group-radio.styles.ts +4 -4
  276. package/src/components/switch/switch.styles.ts +4 -4
  277. package/src/components/symbol/components/logos/red-avatar-circle-logo.tsx +1 -1
  278. package/src/components/symbol/components/logos/red-avatar-circle-reversed-logo.tsx +1 -1
  279. package/src/components/symbol/components/symbols/facebook-symbol.tsx +1 -1
  280. package/src/components/symbol/components/symbols/google-plus-symbol.tsx +1 -1
  281. package/src/components/symbol/components/symbols/instagram-symbol.tsx +1 -1
  282. package/src/components/symbol/components/symbols/linked-in-symbol.tsx +1 -1
  283. package/src/components/symbol/components/symbols/slack-symbol.tsx +1 -1
  284. package/src/components/symbol/components/symbols/twitter-symbol.tsx +1 -1
  285. package/src/components/symbol/components/symbols/x-mark-inverse-symbol.tsx +28 -0
  286. package/src/components/symbol/components/symbols/x-mark-symbol.tsx +28 -0
  287. package/src/components/symbol/components/symbols/x-symbol.tsx +39 -0
  288. package/src/components/symbol/components/symbols/yammer-symbol.tsx +1 -1
  289. package/src/components/symbol/components/symbols/youtube-symbol.tsx +1 -1
  290. package/src/components/symbol/index.ts +3 -0
  291. package/src/components/textarea/textarea.styles.ts +4 -4
  292. package/dist/components/popover/popover.utils.d.ts +0 -3
  293. package/dist/components/popover/popover.utils.js +0 -37
  294. package/src/components/popover/popover.utils.tsx +0 -59
@@ -19,7 +19,7 @@ import { Pictogram } from '../../pictogram.component.js';
19
19
  import { fill } from '../../pictogram.styles.js';
20
20
  export function UmbrellaPictogram({ mode ='duo' , viewBoxWidth =78 , viewBoxHeight =78 , 'aria-label': ariaLabel = 'Umbrella' , copyrightYear ='2021' , className , ...props }) {
21
21
  return React.createElement(Pictogram, _extends({
22
- className: clsx('h-13 w-13', className),
22
+ className: clsx('size-13', className),
23
23
  viewBoxWidth: viewBoxWidth,
24
24
  viewBoxHeight: viewBoxHeight,
25
25
  "aria-label": ariaLabel,
@@ -19,7 +19,7 @@ import { Pictogram } from '../../pictogram.component.js';
19
19
  import { fill } from '../../pictogram.styles.js';
20
20
  export function UnsecurePictogram({ mode ='duo' , viewBoxWidth =78 , viewBoxHeight =78 , 'aria-label': ariaLabel = 'Unsecure' , copyrightYear ='2021' , className , ...props }) {
21
21
  return React.createElement(Pictogram, _extends({
22
- className: clsx('h-13 w-13', className),
22
+ className: clsx('size-13', className),
23
23
  viewBoxWidth: viewBoxWidth,
24
24
  viewBoxHeight: viewBoxHeight,
25
25
  "aria-label": ariaLabel,
@@ -19,7 +19,7 @@ import { Pictogram } from '../../pictogram.component.js';
19
19
  import { fill } from '../../pictogram.styles.js';
20
20
  export function WalletPictogram({ mode ='duo' , viewBoxWidth =78 , viewBoxHeight =78 , 'aria-label': ariaLabel = 'Wallet' , copyrightYear ='2024' , className , ...props }) {
21
21
  return React.createElement(Pictogram, _extends({
22
- className: clsx('h-13 w-13', className),
22
+ className: clsx('size-13', className),
23
23
  viewBoxWidth: viewBoxWidth,
24
24
  viewBoxHeight: viewBoxHeight,
25
25
  "aria-label": ariaLabel,
@@ -19,7 +19,7 @@ import { Pictogram } from '../../pictogram.component.js';
19
19
  import { fill } from '../../pictogram.styles.js';
20
20
  export function WearablesPictogram({ mode ='duo' , viewBoxWidth =78 , viewBoxHeight =78 , 'aria-label': ariaLabel = 'Wearables' , copyrightYear ='2021' , className , ...props }) {
21
21
  return React.createElement(Pictogram, _extends({
22
- className: clsx('h-13 w-13', className),
22
+ className: clsx('size-13', className),
23
23
  viewBoxWidth: viewBoxWidth,
24
24
  viewBoxHeight: viewBoxHeight,
25
25
  "aria-label": ariaLabel,
@@ -1,8 +1,9 @@
1
1
  import { type PanelProps } from './panel.types.js';
2
+ export declare function BasePanel({ state, heading, headingTag: Tag, content, placement, id, triggerRef, portal, }: PanelProps): import("react/jsx-runtime").JSX.Element;
2
3
  /**
3
4
  * @private
4
5
  */
5
- export declare function Panel({ state, heading, headingTag: Tag, content, placement, id, triggerRef }: PanelProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function Panel({ portal, ...props }: PanelProps): import("react/jsx-runtime").JSX.Element;
6
7
  export declare namespace Panel {
7
8
  var displayName: string;
8
9
  }
@@ -1,60 +1,50 @@
1
- import React, { useCallback, useLayoutEffect, useMemo, useRef, useState } from 'react';
1
+ function _extends() {
2
+ _extends = Object.assign || function(target) {
3
+ for(var i = 1; i < arguments.length; i++){
4
+ var source = arguments[i];
5
+ for(var key in source){
6
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
7
+ target[key] = source[key];
8
+ }
9
+ }
10
+ }
11
+ return target;
12
+ };
13
+ return _extends.apply(this, arguments);
14
+ }
15
+ import { useRef } from 'react';
2
16
  import { FocusScope } from 'react-aria';
17
+ import { createPortal } from 'react-dom';
3
18
  import { Button } from '../../../button/index.js';
4
19
  import { CloseIcon } from '../../../icon/index.js';
5
- import { getPopoverPosition } from '../../popover.utils.js';
20
+ import { usePanel } from './panel.hook.js';
6
21
  import { styles as panelStyles } from './panel.styles.js';
7
- export function Panel({ state , heading , headingTag: Tag = 'h1' , content , placement , id , triggerRef }) {
22
+ export function BasePanel({ state , heading , headingTag: Tag = 'h1' , content , placement ='bottom' , id , triggerRef , portal }) {
8
23
  const popoverRef = useRef(null);
9
24
  const arrowRef = useRef(null);
10
- const remSize = useMemo(()=>{
11
- if (typeof window !== 'undefined') {
12
- return parseInt(window.getComputedStyle(document.getElementsByTagName('html')[0]).fontSize);
13
- }
14
- return 1;
15
- }, []);
16
- const [position, setPosition] = useState({
17
- placement: 'top',
18
- offset: 'left',
19
- panelPosition: triggerRef.current ? triggerRef.current.offsetWidth / 2 / remSize : 0,
20
- arrowPosition: popoverRef.current ? popoverRef.current.getBoundingClientRect().width / 2 / remSize : 0
21
- });
22
- useLayoutEffect(()=>{
23
- setPosition(getPopoverPosition(triggerRef, popoverRef, arrowRef, placement));
24
- }, [
25
+ const { popoverPosition , arrowPosition } = usePanel({
26
+ state,
25
27
  placement,
26
- remSize,
27
- state.isOpen,
28
- triggerRef
29
- ]);
30
- const getPopoverClass = useCallback(()=>{
31
- return {
32
- [position.offset]: position.offset === 'left' ? `${position.panelPosition}rem` : `-${position.panelPosition}rem`,
33
- transform: position.offset === 'left' ? 'translateX(-50%)' : 'none'
34
- };
35
- }, [
36
- position
37
- ]);
38
- const getArrowClass = useCallback(()=>{
39
- return {
40
- [!position.offset || position.offset === 'left' ? 'left' : 'right']: `${position.arrowPosition}rem`
41
- };
42
- }, [
43
- position
44
- ]);
28
+ triggerRef,
29
+ portal
30
+ });
45
31
  const styles = panelStyles({
46
- placement: position.placement
32
+ placement
47
33
  });
48
34
  return React.createElement(FocusScope, {
35
+ contain: true,
36
+ autoFocus: true,
49
37
  restoreFocus: true
50
38
  }, React.createElement("div", {
39
+ style: popoverPosition,
51
40
  className: styles.popover(),
52
- style: getPopoverClass(),
41
+ "test-id": "popover",
53
42
  id: id,
54
43
  ref: popoverRef
55
44
  }, React.createElement("div", {
56
45
  className: styles.content()
57
46
  }, React.createElement(Tag, {
47
+ tabIndex: 0,
58
48
  className: styles.heading()
59
49
  }, heading), React.createElement("div", {
60
50
  className: styles.body()
@@ -71,8 +61,20 @@ export function Panel({ state , heading , headingTag: Tag = 'h1' , content , pla
71
61
  })), React.createElement("div", {
72
62
  "aria-hidden": true,
73
63
  className: styles.arrow(),
74
- style: getArrowClass(),
64
+ style: arrowPosition,
65
+ "test-id": "arrow",
75
66
  ref: arrowRef
76
67
  })));
77
68
  }
69
+ export function Panel({ portal =false , ...props }) {
70
+ if (portal) {
71
+ const portalValue = typeof portal === 'boolean' ? document.body : portal;
72
+ return createPortal(React.createElement(BasePanel, _extends({}, props, {
73
+ portal: portalValue
74
+ })), portalValue);
75
+ }
76
+ return React.createElement(BasePanel, _extends({
77
+ portal: portal
78
+ }, props));
79
+ }
78
80
  Panel.displayName = 'Popover.Panel';
@@ -0,0 +1,39 @@
1
+ import { PanelProps } from './panel.types.js';
2
+ export type PanelHookProps = {
3
+ placement: PanelProps['placement'];
4
+ portal: PanelProps['portal'];
5
+ state: PanelProps['state'];
6
+ triggerRef: PanelProps['triggerRef'];
7
+ };
8
+ /**
9
+ * Custom hook to calculate the position of a popover panel relative to its trigger element.
10
+ * @returns {Object} An object containing the calculated positions for the popover and its arrow.
11
+ * @returns {Object} return.popoverPosition - The calculated position styles for the popover.
12
+ * @returns {Object} return.arrowPosition - The calculated position styles for the popover arrow.
13
+ */
14
+ export declare function usePanel({ state, placement, triggerRef, portal }: PanelHookProps): {
15
+ popoverPosition: {
16
+ bottom: string;
17
+ left: number;
18
+ top?: undefined;
19
+ transform?: undefined;
20
+ } | {
21
+ top: string;
22
+ left: number;
23
+ bottom?: undefined;
24
+ transform?: undefined;
25
+ } | {
26
+ top: string;
27
+ left: string;
28
+ transform: string;
29
+ bottom?: undefined;
30
+ } | {
31
+ top: string;
32
+ left: string;
33
+ bottom?: undefined;
34
+ transform?: undefined;
35
+ };
36
+ arrowPosition: {
37
+ left: string;
38
+ };
39
+ };
@@ -0,0 +1,83 @@
1
+ import { useMemo } from 'react';
2
+ const PANEL_WIDTH_SIZE = 282;
3
+ const getVerticalPositionPopover = (element)=>{
4
+ const triggerDOMRect = element.getBoundingClientRect();
5
+ const offsetLeftToCenter = (PANEL_WIDTH_SIZE - ((triggerDOMRect === null || triggerDOMRect === void 0 ? void 0 : triggerDOMRect.width) || 0) / 2) * -1;
6
+ if (triggerDOMRect.left + offsetLeftToCenter <= 0) {
7
+ return 'left';
8
+ }
9
+ if (triggerDOMRect.left + offsetLeftToCenter >= 0 && triggerDOMRect.right + offsetLeftToCenter * -1 <= window.innerWidth) {
10
+ return 'center';
11
+ }
12
+ if (PANEL_WIDTH_SIZE + ((triggerDOMRect === null || triggerDOMRect === void 0 ? void 0 : triggerDOMRect.left) || 0) >= window.innerWidth) {
13
+ return 'right';
14
+ }
15
+ };
16
+ const getLeftOffsetPerVerticalPosition = (element)=>{
17
+ const triggerDOMRect = element.getBoundingClientRect();
18
+ switch(getVerticalPositionPopover(element)){
19
+ case 'center':
20
+ return (PANEL_WIDTH_SIZE - ((triggerDOMRect === null || triggerDOMRect === void 0 ? void 0 : triggerDOMRect.width) || 0)) / 2 * -1;
21
+ case 'right':
22
+ return (PANEL_WIDTH_SIZE + ((triggerDOMRect === null || triggerDOMRect === void 0 ? void 0 : triggerDOMRect.left) || 0) - window.innerWidth + (window.innerWidth - ((triggerDOMRect === null || triggerDOMRect === void 0 ? void 0 : triggerDOMRect.right) || 0))) * -1;
23
+ default:
24
+ return 0;
25
+ }
26
+ };
27
+ export function usePanel({ state , placement ='bottom' , triggerRef , portal }) {
28
+ const popoverPosition = useMemo(()=>{
29
+ var _triggerRef_current;
30
+ const triggerDOMRect = (_triggerRef_current = triggerRef.current) === null || _triggerRef_current === void 0 ? void 0 : _triggerRef_current.getBoundingClientRect();
31
+ const leftOffset = triggerRef.current ? getLeftOffsetPerVerticalPosition(triggerRef.current) : 0;
32
+ if (!portal) {
33
+ switch(placement){
34
+ case 'top':
35
+ return {
36
+ bottom: '100%',
37
+ left: leftOffset
38
+ };
39
+ case 'bottom':
40
+ default:
41
+ return {
42
+ top: '100%',
43
+ left: leftOffset
44
+ };
45
+ }
46
+ }
47
+ const portalElement = portal;
48
+ switch(placement){
49
+ case 'top':
50
+ return {
51
+ top: `${((triggerDOMRect === null || triggerDOMRect === void 0 ? void 0 : triggerDOMRect.top) || 0) - portalElement.getBoundingClientRect().top}px`,
52
+ left: `${((triggerDOMRect === null || triggerDOMRect === void 0 ? void 0 : triggerDOMRect.left) || 0) + leftOffset}px`,
53
+ transform: 'translateY(-100%)'
54
+ };
55
+ case 'bottom':
56
+ default:
57
+ return {
58
+ top: `${((triggerDOMRect === null || triggerDOMRect === void 0 ? void 0 : triggerDOMRect.bottom) || 0) - portalElement.getBoundingClientRect().top}px`,
59
+ left: `${((triggerDOMRect === null || triggerDOMRect === void 0 ? void 0 : triggerDOMRect.left) || 0) + leftOffset}px`
60
+ };
61
+ }
62
+ }, [
63
+ placement,
64
+ portal,
65
+ triggerRef,
66
+ state.isOpen
67
+ ]);
68
+ const arrowPosition = useMemo(()=>{
69
+ var _triggerRef_current;
70
+ const triggerDOMRect = (_triggerRef_current = triggerRef.current) === null || _triggerRef_current === void 0 ? void 0 : _triggerRef_current.getBoundingClientRect();
71
+ const leftOffset = triggerRef.current ? getLeftOffsetPerVerticalPosition(triggerRef.current) * -1 : 0;
72
+ return {
73
+ left: `${((triggerDOMRect === null || triggerDOMRect === void 0 ? void 0 : triggerDOMRect.width) || 0) / 2 + leftOffset}px`
74
+ };
75
+ }, [
76
+ triggerRef,
77
+ state.isOpen
78
+ ]);
79
+ return {
80
+ popoverPosition,
81
+ arrowPosition
82
+ };
83
+ }
@@ -3,21 +3,24 @@ export const styles = tv({
3
3
  slots: {
4
4
  base: '',
5
5
  popover: 'absolute z-[999] rounded border border-muted bg-white shadow-[0_5px_10px_rgba(0,0,0,0.2)]',
6
- arrow: 'absolute h-0 w-0 border-x-8 border-t-[12px] border-x-[transparent] border-t-muted after:absolute after:h-0 after:w-0 after:border-x-[7px] after:border-t-[11px] after:border-x-[transparent] after:border-t-white',
6
+ arrow: `absolute -z-10 size-0
7
+ before:absolute before:left-0 before:top-0 before:size-0 before:border-x-[7px] before:border-t-[12px] before:border-x-[transparent] before:border-t-muted after:absolute
8
+ after:left-0 after:top-0 after:size-0 after:border-x-[7px] after:border-t-[11px] after:border-x-[transparent] after:border-t-white
9
+ `,
7
10
  closeBtn: 'absolute right-1 top-1 m-1 p-0 hover:opacity-80',
8
- content: 'w-[17.625rem] py-4 pl-3 pr-5',
11
+ content: 'w-[17.625rem] bg-white py-4 pl-3 pr-5',
9
12
  heading: 'typography-body-9 mb-2 font-bold text-text',
10
13
  body: 'typography-body-10 text-text'
11
14
  },
12
15
  variants: {
13
16
  placement: {
14
17
  top: {
15
- popover: 'bottom-full mb-2.5',
16
- arrow: 'top-full after:top-[-12px] after:translate-x-[-7px]'
18
+ popover: '-mt-2.5 mb-2.5',
19
+ arrow: 'top-full translate-x-[-6px] translate-y-[-1px]'
17
20
  },
18
21
  bottom: {
19
- popover: 'top-full mt-2.5',
20
- arrow: 'bottom-full rotate-180 after:bottom-[1px] after:translate-x-[-7px]'
22
+ popover: 'mt-2.5',
23
+ arrow: 'bottom-full translate-x-[6px] rotate-180 after:bottom-[1px]'
21
24
  }
22
25
  }
23
26
  }
@@ -17,6 +17,10 @@ export type PanelProps = {
17
17
  * Placement of popover. If no placement provided it will default to top unless there is no space then will appear on bottom.
18
18
  */
19
19
  placement?: 'top' | 'bottom';
20
+ /**
21
+ * Uses portal to render popover
22
+ */
23
+ portal?: boolean | Element;
20
24
  /**
21
25
  * Overlay trigger state
22
26
  */
@@ -3,4 +3,4 @@ import { type PopoverProps } from './popover.types.js';
3
3
  * TODO: Revisit this component when react-aria has updated usePopover, see: https://github.com/adobe/react-spectrum/discussions/5341
4
4
  * This version does not currently use react-aria as it blocked so functionality that was needed to match GEL 3.0
5
5
  */
6
- export declare function Popover({ children, className, headingTag, content, heading, onClick, placement, look, soft, open, linkStyling, size, icon, }: PopoverProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function Popover({ children, className, headingTag, content, heading, onClick, placement, look, soft, open, linkStyling, size, icon, portal, }: PopoverProps): import("react/jsx-runtime").JSX.Element;
@@ -4,15 +4,15 @@ import { useOverlayTriggerState } from 'react-stately';
4
4
  import { Button } from '../button/index.js';
5
5
  import { Panel } from './components/panel/panel.component.js';
6
6
  import { styles as popoverStyles } from './popover.styles.js';
7
- export function Popover({ children , className , headingTag , content , heading , onClick =()=>undefined , placement , look , soft =false , open =false , linkStyling =false , size ='medium' , icon }) {
7
+ export function Popover({ children , className , headingTag , content , heading , onClick =()=>undefined , placement , look , soft =false , open =false , linkStyling =false , size ='medium' , icon , portal =false }) {
8
8
  const state = useOverlayTriggerState({});
9
9
  const panelId = useId();
10
10
  const styles = popoverStyles({
11
11
  linkStyling
12
12
  });
13
13
  const ref = useRef(null);
14
- const handleClick = useCallback(()=>{
15
- onClick();
14
+ const handleClick = useCallback((event)=>{
15
+ onClick(event);
16
16
  state.toggle();
17
17
  }, [
18
18
  onClick,
@@ -53,6 +53,7 @@ export function Popover({ children , className , headingTag , content , heading
53
53
  size: size,
54
54
  className: styles.button()
55
55
  }, children), state.isOpen && React.createElement(Panel, {
56
+ portal: portal,
56
57
  placement: placement,
57
58
  heading: heading ? heading : '',
58
59
  headingTag: headingTag,
@@ -1,6 +1,7 @@
1
1
  import { HTMLAttributes, ReactNode } from 'react';
2
2
  import { ButtonProps } from '../button/index.js';
3
3
  import { IconProps } from '../icon/icon.types.js';
4
+ import { PanelProps } from './components/panel/panel.types.js';
4
5
  export type PopoverProps = {
5
6
  /**
6
7
  * Button text
@@ -40,4 +41,10 @@ export type PopoverProps = {
40
41
  * @default top
41
42
  */
42
43
  placement?: 'top' | 'bottom';
44
+ /**
45
+ * Renders the popover using a portal. You can either pass an HTML element to use as the portal container,
46
+ * or a boolean value to use the document.body as the portal container.
47
+ * @default false
48
+ */
49
+ portal?: PanelProps['portal'];
43
50
  } & HTMLAttributes<Element> & Pick<ButtonProps, 'look' | 'soft' | 'size'>;
@@ -9,19 +9,19 @@ export const styles = tv({
9
9
  variants: {
10
10
  size: {
11
11
  xsmall: {
12
- base: 'h-2 w-2'
12
+ base: 'size-2'
13
13
  },
14
14
  small: {
15
- base: 'h-3 w-3'
15
+ base: 'size-3'
16
16
  },
17
17
  medium: {
18
- base: 'h-4 w-4'
18
+ base: 'size-4'
19
19
  },
20
20
  large: {
21
- base: 'h-15 w-15'
21
+ base: 'size-15'
22
22
  },
23
23
  xlarge: {
24
- base: 'h-15 w-15'
24
+ base: 'size-15'
25
25
  }
26
26
  },
27
27
  color: {
@@ -2,7 +2,7 @@ import { tv } from 'tailwind-variants';
2
2
  export const styles = tv({
3
3
  slots: {
4
4
  base: '',
5
- circle: 'relative z-10 h-[14px] w-[14px] border-2 bg-white transition-colors',
5
+ circle: 'relative z-10 size-[14px] border-2 bg-white transition-colors',
6
6
  circleWrapper: 'typography-body-9 relative flex w-full cursor-pointer items-center gap-2 pb-[1.625rem] pt-1 leading-loose transition-colors ',
7
7
  stepsWrapper: 'relative transition-all'
8
8
  },
@@ -64,10 +64,10 @@ export const styles = tv({
64
64
  },
65
65
  size: {
66
66
  medium: {
67
- circle: 'h-[0.875rem] w-[0.875rem]'
67
+ circle: 'size-[0.875rem]'
68
68
  },
69
69
  small: {
70
- circle: 'mr-[0.25rem] h-[0.625rem] w-[0.625rem] translate-x-[0.125rem]',
70
+ circle: 'mr-[0.25rem] size-[0.625rem] translate-x-[0.125rem]',
71
71
  base: 'gap-4'
72
72
  }
73
73
  },
@@ -5,7 +5,7 @@ export const styles = tv({
5
5
  textWrapper: 'flex flex-col justify-center',
6
6
  labelText: 'typography-body-10 py-[2px] pl-1',
7
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'
8
+ selector: 'flex size-4 shrink-0 items-center justify-center rounded-full border border-hero'
9
9
  },
10
10
  variants: {
11
11
  isDisabled: {
@@ -19,7 +19,7 @@ export const styles = tv({
19
19
  },
20
20
  isSelected: {
21
21
  true: {
22
- selector: 'before:block before:h-2 before:w-2 before:rounded-full before:bg-hero'
22
+ selector: 'before:block before:size-2 before:rounded-full before:bg-hero'
23
23
  }
24
24
  },
25
25
  isFocusVisible: {
@@ -37,11 +37,11 @@ export const styles = tv({
37
37
  },
38
38
  size: {
39
39
  large: {
40
- selector: 'h-5 w-5',
40
+ selector: 'size-5',
41
41
  base: 'mb-2'
42
42
  },
43
43
  medium: {
44
- selector: 'h-4 w-4',
44
+ selector: 'size-4',
45
45
  base: 'mb-1'
46
46
  }
47
47
  }
@@ -8,16 +8,16 @@ export const styles = tv({
8
8
  variants: {
9
9
  size: {
10
10
  small: {
11
- switchDiv: 'h-[1.75rem] w-8 rounded-[1.75rem] after:h-[1.75rem] after:w-[1.75rem]'
11
+ switchDiv: 'h-[1.75rem] w-8 rounded-[1.75rem] after:size-[1.75rem]'
12
12
  },
13
13
  medium: {
14
- switchDiv: 'h-[2.125rem] w-10 rounded-[2.125rem] after:h-[2.125rem] after:w-[2.125rem]'
14
+ switchDiv: 'h-[2.125rem] w-10 rounded-[2.125rem] after:size-[2.125rem]'
15
15
  },
16
16
  large: {
17
- switchDiv: 'h-[2.5rem] w-12 rounded-[2.5rem] after:h-[2.5rem] after:w-[2.5rem]'
17
+ switchDiv: 'h-[2.5rem] w-12 rounded-[2.5rem] after:size-[2.5rem]'
18
18
  },
19
19
  xlarge: {
20
- switchDiv: 'h-[2.875rem] w-14 rounded-[2.875rem] after:h-[2.875rem] after:w-[2.875rem]'
20
+ switchDiv: 'h-[2.875rem] w-14 rounded-[2.875rem] after:size-[2.875rem]'
21
21
  }
22
22
  },
23
23
  isFocusVisible: {
@@ -16,7 +16,7 @@ import { clsx } from 'clsx';
16
16
  import React from 'react';
17
17
  import { Symbol } from '../../symbol.component.js';
18
18
  export const RedAvatarCircleLogo = ({ 'aria-label': ariaLabel = 'Red Avatar' , copyrightYear ='2024' , viewBoxWidth =64 , viewBoxHeight =64 , className , ...props })=>React.createElement(Symbol, _extends({
19
- className: clsx('h-[64px] w-[64px]', className),
19
+ className: clsx('size-[64px]', className),
20
20
  "aria-label": ariaLabel,
21
21
  copyrightYear: copyrightYear,
22
22
  viewBoxWidth: viewBoxWidth,
@@ -16,7 +16,7 @@ import { clsx } from 'clsx';
16
16
  import React from 'react';
17
17
  import { Symbol } from '../../symbol.component.js';
18
18
  export const RedAvatarCircleReversedLogo = ({ 'aria-label': ariaLabel = 'Red Avatar' , copyrightYear ='2024' , viewBoxWidth =64 , viewBoxHeight =64 , className , ...props })=>React.createElement(Symbol, _extends({
19
- className: clsx('h-[64px] w-[64px]', className),
19
+ className: clsx('size-[64px]', className),
20
20
  "aria-label": ariaLabel,
21
21
  copyrightYear: copyrightYear,
22
22
  viewBoxWidth: viewBoxWidth,
@@ -16,7 +16,7 @@ import { clsx } from 'clsx';
16
16
  import React from 'react';
17
17
  import { Symbol } from '../../symbol.component.js';
18
18
  export const FacebookSymbol = ({ 'aria-label': ariaLabel = 'Facebook' , copyrightYear ='' , viewBoxWidth =32 , viewBoxHeight =32 , className , ...props })=>React.createElement(Symbol, _extends({
19
- className: clsx('h-[32px] w-[32px]', className),
19
+ className: clsx('size-[32px]', className),
20
20
  "aria-label": ariaLabel,
21
21
  copyrightYear: copyrightYear,
22
22
  viewBoxWidth: viewBoxWidth,
@@ -16,7 +16,7 @@ import { clsx } from 'clsx';
16
16
  import React from 'react';
17
17
  import { Symbol } from '../../symbol.component.js';
18
18
  export const GooglePlusSymbol = ({ 'aria-label': ariaLabel = 'Google+' , copyrightYear ='' , viewBoxWidth =32 , viewBoxHeight =32 , className , ...props })=>React.createElement(Symbol, _extends({
19
- className: clsx('h-[32px] w-[32px]', className),
19
+ className: clsx('size-[32px]', className),
20
20
  "aria-label": ariaLabel,
21
21
  copyrightYear: copyrightYear,
22
22
  viewBoxWidth: viewBoxWidth,
@@ -16,7 +16,7 @@ import { clsx } from 'clsx';
16
16
  import React from 'react';
17
17
  import { Symbol } from '../../symbol.component.js';
18
18
  export const InstagramSymbol = ({ 'aria-label': ariaLabel = 'Instagram' , copyrightYear ='' , viewBoxWidth =32 , viewBoxHeight =32 , className , ...props })=>React.createElement(Symbol, _extends({
19
- className: clsx('h-[32px] w-[32px]', className),
19
+ className: clsx('size-[32px]', className),
20
20
  "aria-label": ariaLabel,
21
21
  copyrightYear: copyrightYear,
22
22
  viewBoxWidth: viewBoxWidth,
@@ -16,7 +16,7 @@ import { clsx } from 'clsx';
16
16
  import React from 'react';
17
17
  import { Symbol } from '../../symbol.component.js';
18
18
  export const LinkedInSymbol = ({ 'aria-label': ariaLabel = 'LinkedIn' , copyrightYear ='' , viewBoxWidth =32 , viewBoxHeight =32 , className , ...props })=>React.createElement(Symbol, _extends({
19
- className: clsx('h-[32px] w-[32px]', className),
19
+ className: clsx('size-[32px]', className),
20
20
  "aria-label": ariaLabel,
21
21
  copyrightYear: copyrightYear,
22
22
  viewBoxWidth: viewBoxWidth,
@@ -16,7 +16,7 @@ import { clsx } from 'clsx';
16
16
  import React from 'react';
17
17
  import { Symbol } from '../../symbol.component.js';
18
18
  export const SlackSymbol = ({ 'aria-label': ariaLabel = 'Slack' , copyrightYear ='' , viewBoxWidth =32 , viewBoxHeight =32 , className , ...props })=>React.createElement(Symbol, _extends({
19
- className: clsx('h-[32px] w-[32px]', className),
19
+ className: clsx('size-[32px]', className),
20
20
  "aria-label": ariaLabel,
21
21
  copyrightYear: copyrightYear,
22
22
  viewBoxWidth: viewBoxWidth,
@@ -16,7 +16,7 @@ import { clsx } from 'clsx';
16
16
  import React from 'react';
17
17
  import { Symbol } from '../../symbol.component.js';
18
18
  export const TwitterSymbol = ({ 'aria-label': ariaLabel = 'Twitter' , copyrightYear ='' , viewBoxWidth =32 , viewBoxHeight =32 , className , ...props })=>React.createElement(Symbol, _extends({
19
- className: clsx('h-[32px] w-[32px]', className),
19
+ className: clsx('size-[32px]', className),
20
20
  "aria-label": ariaLabel,
21
21
  copyrightYear: copyrightYear,
22
22
  viewBoxWidth: viewBoxWidth,
@@ -0,0 +1,2 @@
1
+ import { type SymbolProps } from '../../symbol.types.js';
2
+ export declare const XMarkInverseSymbol: ({ "aria-label": ariaLabel, copyrightYear, viewBoxWidth, viewBoxHeight, className, ...props }: SymbolProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,27 @@
1
+ function _extends() {
2
+ _extends = Object.assign || function(target) {
3
+ for(var i = 1; i < arguments.length; i++){
4
+ var source = arguments[i];
5
+ for(var key in source){
6
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
7
+ target[key] = source[key];
8
+ }
9
+ }
10
+ }
11
+ return target;
12
+ };
13
+ return _extends.apply(this, arguments);
14
+ }
15
+ import { clsx } from 'clsx';
16
+ import React from 'react';
17
+ import { Symbol } from '../../symbol.component.js';
18
+ export const XMarkInverseSymbol = ({ 'aria-label': ariaLabel = 'X' , copyrightYear ='' , viewBoxWidth =32 , viewBoxHeight =32 , className , ...props })=>React.createElement(Symbol, _extends({
19
+ className: clsx('size-[32px]', className),
20
+ "aria-label": ariaLabel,
21
+ copyrightYear: copyrightYear,
22
+ viewBoxWidth: viewBoxWidth,
23
+ viewBoxHeight: viewBoxHeight
24
+ }, props), React.createElement("path", {
25
+ fill: "#fff",
26
+ d: "M44.635 32.455 72.555 0H65.94L41.696 28.18 22.333 0H0l29.28 42.614L0 76.648h6.617l25.601-29.76 20.449 29.76H75L44.634 32.455h.001ZM35.573 42.99l-2.967-4.243L9.001 4.98h10.162l19.05 27.25 2.967 4.243 24.762 35.42H55.78L35.573 42.99v-.002Z"
27
+ }));
@@ -0,0 +1,2 @@
1
+ import { type SymbolProps } from '../../symbol.types.js';
2
+ export declare const XMarkSymbol: ({ "aria-label": ariaLabel, copyrightYear, viewBoxWidth, viewBoxHeight, className, ...props }: SymbolProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,27 @@
1
+ function _extends() {
2
+ _extends = Object.assign || function(target) {
3
+ for(var i = 1; i < arguments.length; i++){
4
+ var source = arguments[i];
5
+ for(var key in source){
6
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
7
+ target[key] = source[key];
8
+ }
9
+ }
10
+ }
11
+ return target;
12
+ };
13
+ return _extends.apply(this, arguments);
14
+ }
15
+ import { clsx } from 'clsx';
16
+ import React from 'react';
17
+ import { Symbol } from '../../symbol.component.js';
18
+ export const XMarkSymbol = ({ 'aria-label': ariaLabel = 'X' , copyrightYear ='' , viewBoxWidth =32 , viewBoxHeight =32 , className , ...props })=>React.createElement(Symbol, _extends({
19
+ className: clsx('size-[32px]', className),
20
+ "aria-label": ariaLabel,
21
+ copyrightYear: copyrightYear,
22
+ viewBoxWidth: viewBoxWidth,
23
+ viewBoxHeight: viewBoxHeight
24
+ }, props), React.createElement("path", {
25
+ fill: "#000",
26
+ d: "M44.635 32.455 72.555 0H65.94L41.696 28.18 22.333 0H0l29.28 42.614L0 76.648h6.617l25.601-29.76 20.449 29.76H75L44.634 32.455h.001ZM35.573 42.99l-2.967-4.243L9.001 4.98h10.162l19.05 27.25 2.967 4.243 24.762 35.42H55.78L35.573 42.99v-.002Z"
27
+ }));