@thecb/components 12.0.0-beta.0 → 12.0.0-beta.2

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 (421) hide show
  1. package/README.md +33 -11
  2. package/ai-docs/architecture.md +71 -0
  3. package/ai-docs/components.md +167 -0
  4. package/ai-docs/conventions.md +162 -0
  5. package/ai-docs/figma-mcp.md +66 -0
  6. package/ai-docs/integration-guidelines.md +142 -0
  7. package/dist/index.cjs.js +27805 -25779
  8. package/dist/index.cjs.js.map +1 -1
  9. package/dist/index.d.ts +286 -12
  10. package/dist/index.esm.js +26589 -24593
  11. package/dist/index.esm.js.map +1 -1
  12. package/package.json +17 -8
  13. package/src/components/atoms/alert/Alert.js +10 -1
  14. package/src/components/atoms/alert/Alert.mdx +19 -0
  15. package/src/components/atoms/alert/Alert.stories.js +150 -0
  16. package/src/components/atoms/badge/Badge.js +39 -25
  17. package/src/components/atoms/badge/Badge.mdx +27 -0
  18. package/src/components/atoms/badge/Badge.stories.js +168 -0
  19. package/src/components/atoms/badge/Badge.theme.js +49 -1
  20. package/src/components/atoms/badge/index.d.ts +11 -0
  21. package/src/components/atoms/breadcrumb/Breadcrumb.mdx +21 -0
  22. package/src/components/atoms/breadcrumb/Breadcrumb.stories.js +47 -0
  23. package/src/components/atoms/button-with-action/ButtonWithAction.js +3 -29
  24. package/src/components/atoms/button-with-action/ButtonWithAction.stories.js +14 -1
  25. package/src/components/atoms/button-with-action/ButtonWithAction.theme.js +97 -56
  26. package/src/components/atoms/button-with-action/index.d.ts +1 -0
  27. package/src/components/atoms/button-with-link/ButtonWithLink.mdx +21 -0
  28. package/src/components/atoms/button-with-link/ButtonWithLink.stories.js +161 -0
  29. package/src/components/atoms/card/Card.js +22 -1
  30. package/src/components/atoms/card/Card.mdx +41 -0
  31. package/src/components/atoms/card/Card.stories.js +360 -0
  32. package/src/components/atoms/card/Card.theme.js +2 -0
  33. package/src/components/atoms/card/CardText.js +39 -11
  34. package/src/components/atoms/card/index.d.ts +8 -1
  35. package/src/components/atoms/card-type/CardType.js +55 -0
  36. package/src/components/atoms/card-type/CardType.stories.js +86 -0
  37. package/src/components/atoms/card-type/index.js +3 -0
  38. package/src/components/atoms/checkbox/Checkbox.js +121 -93
  39. package/src/components/atoms/checkbox/Checkbox.mdx +15 -0
  40. package/src/components/atoms/checkbox/Checkbox.oldstories.js +17 -13
  41. package/src/components/atoms/checkbox/Checkbox.stories.js +149 -0
  42. package/src/components/atoms/checkbox/Checkbox.theme.js +6 -2
  43. package/src/components/atoms/country-dropdown/CountryDropdown.mdx +36 -0
  44. package/src/components/atoms/country-dropdown/CountryDropdown.stories.js +76 -0
  45. package/src/components/atoms/detail/Detail.js +0 -26
  46. package/src/components/atoms/detail/Detail.mdx +32 -0
  47. package/src/components/atoms/detail/Detail.stories.js +156 -0
  48. package/src/components/atoms/display-box/DisplayBox.mdx +11 -0
  49. package/src/components/atoms/display-box/DisplayBox.stories.js +69 -0
  50. package/src/components/atoms/dropdown/Dropdown.js +17 -5
  51. package/src/components/atoms/dropdown/Dropdown.mdx +65 -0
  52. package/src/components/atoms/dropdown/Dropdown.stories.js +128 -0
  53. package/src/components/atoms/dropdown/Dropdown.theme.js +6 -6
  54. package/src/components/atoms/dropdown/DropdownIcon.js +1 -0
  55. package/src/components/atoms/dropdown/DropdownIconV2.js +50 -0
  56. package/src/components/atoms/dropdown/index.d.ts +59 -0
  57. package/src/components/atoms/form-layouts/FormInput.js +105 -61
  58. package/src/components/atoms/form-layouts/FormInput.mdx +38 -0
  59. package/src/components/atoms/form-layouts/FormInput.stories.js +219 -0
  60. package/src/components/atoms/form-layouts/FormTextarea.js +207 -0
  61. package/src/components/atoms/form-layouts/FormTextarea.mdx +48 -0
  62. package/src/components/atoms/form-layouts/FormTextarea.stories.js +265 -0
  63. package/src/components/atoms/form-layouts/index.d.ts +34 -1
  64. package/src/components/atoms/form-layouts/index.js +3 -1
  65. package/src/components/atoms/form-select/FormSelect.js +5 -3
  66. package/src/components/atoms/form-select/FormSelect.mdx +42 -0
  67. package/src/components/atoms/form-select/FormSelect.stories.js +76 -0
  68. package/src/components/atoms/form-select/FormSelect.styled.js +2 -2
  69. package/src/components/atoms/form-select/FormSelect.theme.js +6 -3
  70. package/src/components/atoms/form-select/index.d.ts +3 -0
  71. package/src/components/atoms/formatted-address/FormattedAddress.mdx +13 -0
  72. package/src/components/atoms/formatted-address/FormattedAddress.stories.js +138 -0
  73. package/src/components/atoms/formatted-bank-account/FormattedBankAccount.js +2 -2
  74. package/src/components/atoms/formatted-bank-account/FormattedBankAccount.mdx +17 -0
  75. package/src/components/atoms/formatted-bank-account/FormattedBankAccount.stories.js +57 -0
  76. package/src/components/atoms/formatted-bank-account/FormattedBankAccount.theme.js +2 -2
  77. package/src/components/atoms/formatted-credit-card/FormattedCreditCard.js +14 -10
  78. package/src/components/atoms/formatted-credit-card/FormattedCreditCard.mdx +40 -0
  79. package/src/components/atoms/formatted-credit-card/FormattedCreditCard.stories.js +74 -0
  80. package/src/components/atoms/formatted-credit-card/FormattedCreditCard.theme.js +2 -2
  81. package/src/components/atoms/icons/AgencyIcon.js +24 -0
  82. package/src/components/atoms/icons/AmExLargeIcon.js +54 -0
  83. package/src/components/atoms/icons/AmExSmallIcon.js +54 -0
  84. package/src/components/atoms/icons/AutopayIcon.js +9 -1
  85. package/src/components/atoms/icons/BankGenericSmallIcon.js +48 -0
  86. package/src/components/atoms/icons/CaretArrowDown.d.ts +9 -0
  87. package/src/components/atoms/icons/CaretArrowDown.js +22 -0
  88. package/src/components/atoms/icons/CaretArrowUp.d.ts +9 -0
  89. package/src/components/atoms/icons/CaretArrowUp.js +22 -0
  90. package/src/components/atoms/icons/CarrotIcon.js +2 -0
  91. package/src/components/atoms/icons/CashSmallIcon.js +21 -0
  92. package/src/components/atoms/icons/CashieringImage.d.ts +1 -0
  93. package/src/components/atoms/icons/CashieringImage.js +254 -0
  94. package/src/components/atoms/icons/CheckboxCheckmarkIcon.js +45 -0
  95. package/src/components/atoms/icons/CustomerSearchIcon.js +30 -79
  96. package/src/components/atoms/icons/DiscoverLargeIcon.js +137 -0
  97. package/src/components/atoms/icons/DiscoverSmallIcon.js +137 -0
  98. package/src/components/atoms/icons/ExternalLinkIcon.js +10 -2
  99. package/src/components/atoms/icons/GenericCardLarge.js +1 -1
  100. package/src/components/atoms/icons/GenericSmallIcon.js +27 -0
  101. package/src/components/atoms/icons/GuidedCheckoutImage.js +105 -26
  102. package/src/components/atoms/icons/IconAdd.js +2 -2
  103. package/src/components/atoms/icons/Icons.mdx +40 -0
  104. package/src/components/atoms/icons/Icons.stories.js +343 -0
  105. package/src/components/atoms/icons/KioskImage.js +223 -338
  106. package/src/components/atoms/icons/MasterCardLargeIcon.js +35 -0
  107. package/src/components/atoms/icons/MasterCardSmallIcon.js +35 -0
  108. package/src/components/atoms/icons/{NoCustomerResultsIcon.js → NoResultsIcon.js} +10 -6
  109. package/src/components/atoms/icons/NotFoundIcon.js +70 -333
  110. package/src/components/atoms/icons/OverageIcon.js +27 -0
  111. package/src/components/atoms/icons/PaydotImage.d.ts +1 -0
  112. package/src/components/atoms/icons/PaydotImage.js +46 -0
  113. package/src/components/atoms/icons/PaymentSearchIcon.js +7 -42
  114. package/src/components/atoms/icons/PaymentStatusIcon.d.ts +1 -0
  115. package/src/components/atoms/icons/PaymentStatusIcon.js +28 -0
  116. package/src/components/atoms/icons/PeriscopeFailedIcon.js +2 -2
  117. package/src/components/atoms/icons/PersonIcon.d.ts +1 -0
  118. package/src/components/atoms/icons/PersonIcon.js +28 -0
  119. package/src/components/atoms/icons/ProfileImage.js +58 -37
  120. package/src/components/atoms/icons/RevenueManagementImage.js +138 -393
  121. package/src/components/atoms/icons/ReversalNeededIcon.js +27 -0
  122. package/src/components/atoms/icons/SearchIcon.js +4 -3
  123. package/src/components/atoms/icons/ShortageIcon.js +21 -0
  124. package/src/components/atoms/icons/StandardCheckoutImage.js +105 -336
  125. package/src/components/atoms/icons/SuccessfulIconMedium.js +3 -2
  126. package/src/components/atoms/icons/VisaLargeIcon.js +40 -0
  127. package/src/components/atoms/icons/VisaSmallIcon.js +40 -0
  128. package/src/components/atoms/icons/WireSmallIcon.js +22 -0
  129. package/src/components/atoms/icons/icons.oldstories.js +47 -31
  130. package/src/components/atoms/icons/index.d.ts +4 -1
  131. package/src/components/atoms/icons/index.js +47 -7
  132. package/src/components/atoms/index.d.ts +4 -0
  133. package/src/components/atoms/index.js +3 -1
  134. package/src/components/atoms/jumbo/Jumbo.js +18 -3
  135. package/src/components/atoms/labeled-amount/LabeledAmount.mdx +23 -0
  136. package/src/components/atoms/labeled-amount/LabeledAmount.stories.js +118 -0
  137. package/src/components/atoms/layouts/Box.styled.js +34 -22
  138. package/src/components/atoms/layouts/Center.styled.js +2 -0
  139. package/src/components/atoms/layouts/Motion.js +25 -6
  140. package/src/components/atoms/layouts/Motion.styled.js +36 -0
  141. package/src/components/atoms/layouts/Stack.js +2 -0
  142. package/src/components/atoms/layouts/Stack.styled.js +2 -0
  143. package/src/components/atoms/line-item/LineItem.mdx +28 -0
  144. package/src/components/atoms/line-item/LineItem.stories.js +95 -0
  145. package/src/components/atoms/link/ExternalLink.d.ts +1 -0
  146. package/src/components/atoms/link/ExternalLink.js +37 -19
  147. package/src/components/atoms/link/ExternalLink.styled.js +2 -0
  148. package/src/components/atoms/link/InternalLink.js +11 -1
  149. package/src/components/atoms/link/InternalLink.styled.js +22 -2
  150. package/src/components/atoms/link/Link.mdx +19 -0
  151. package/src/components/atoms/link/Link.stories.js +183 -0
  152. package/src/components/atoms/loading/Loading.mdx +13 -0
  153. package/src/components/atoms/loading/Loading.stories.js +22 -0
  154. package/src/components/atoms/loading-line/LoadingLine.js +23 -11
  155. package/src/components/atoms/loading-line/LoadingLine.mdx +15 -0
  156. package/src/components/atoms/loading-line/LoadingLine.stories.js +132 -0
  157. package/src/components/atoms/loading-line/LoadingPill.styled.js +7 -6
  158. package/src/components/atoms/nav-footer/NavFooter.mdx +15 -0
  159. package/src/components/atoms/nav-footer/NavFooter.stories.js +244 -0
  160. package/src/components/atoms/nav-header/NavHeader.mdx +13 -0
  161. package/src/components/atoms/nav-header/NavHeader.stories.js +130 -0
  162. package/src/components/atoms/nav-tabs/NavTabs.mdx +30 -0
  163. package/src/components/atoms/nav-tabs/NavTabs.stories.js +49 -0
  164. package/src/components/atoms/password-requirements/PasswordRequirements.js +3 -3
  165. package/src/components/atoms/password-requirements/PasswordRequirements.mdx +39 -0
  166. package/src/components/atoms/password-requirements/PasswordRequirements.stories.js +139 -0
  167. package/src/components/atoms/placeholder/Placeholder.mdx +19 -0
  168. package/src/components/atoms/placeholder/Placeholder.stories.js +170 -0
  169. package/src/components/atoms/radio-button-with-label/RadioButtonWithLabel.js +13 -7
  170. package/src/components/atoms/radio-button-with-label/RadioButtonWithLabel.theme.js +9 -3
  171. package/src/components/atoms/search/Search.js +123 -0
  172. package/src/components/atoms/search/Search.oldstories.js +58 -0
  173. package/src/components/atoms/search/Search.theme.js +9 -0
  174. package/src/components/atoms/search/index.d.ts +27 -0
  175. package/src/components/atoms/search/index.js +3 -0
  176. package/src/components/atoms/searchable-select/SearchableSelect.mdx +44 -0
  177. package/src/components/atoms/searchable-select/SearchableSelect.stories.js +137 -0
  178. package/src/components/atoms/sortable-table-heading/SortableTableHeading.js +47 -0
  179. package/src/components/atoms/sortable-table-heading/SortableTableHeading.oldstories.js +19 -0
  180. package/src/components/atoms/sortable-table-heading/SortableTableHeading.theme.js +9 -0
  181. package/src/components/atoms/sortable-table-heading/index.d.ts +15 -0
  182. package/src/components/atoms/sortable-table-heading/index.js +3 -0
  183. package/src/components/atoms/spinner/Spinner.js +2 -1
  184. package/src/components/atoms/state-province-dropdown/StateProvinceDropdown.mdx +36 -0
  185. package/src/components/atoms/state-province-dropdown/StateProvinceDropdown.stories.js +78 -0
  186. package/src/components/atoms/state-province-dropdown/options.js +4 -1
  187. package/src/components/atoms/tab/Tab.js +2 -2
  188. package/src/components/atoms/table/Table.mdx +71 -0
  189. package/src/components/atoms/table/Table.oldstories.js +84 -0
  190. package/src/components/atoms/table/Table.stories.js +65 -0
  191. package/src/components/atoms/table/TableRow.js +1 -0
  192. package/src/components/atoms/title/Title.js +0 -23
  193. package/src/components/atoms/title/Title.mdx +26 -0
  194. package/src/components/atoms/title/Title.stories.js +144 -0
  195. package/src/components/atoms/title/Title.theme.js +3 -0
  196. package/src/components/atoms/toggle-switch/ToggleSwitch.js +66 -48
  197. package/src/components/atoms/toggle-switch/ToggleSwitch.mdx +17 -0
  198. package/src/components/atoms/toggle-switch/ToggleSwitch.stories.js +111 -0
  199. package/src/components/atoms/toggle-switch/ToggleSwitch.theme.js +8 -5
  200. package/src/components/atoms/typeahead-input/TypeaheadInput.mdx +13 -0
  201. package/src/components/atoms/typeahead-input/TypeaheadInput.stories.js +63 -0
  202. package/src/components/atoms/wallet-name/WalletName.js +6 -4
  203. package/src/components/atoms/wallet-name/WalletName.oldstories.js +26 -1
  204. package/src/components/atoms/wallet-name/index.d.ts +2 -0
  205. package/src/components/molecules/address-form/AddressForm.mdx +18 -0
  206. package/src/components/molecules/address-form/AddressForm.stories.js +224 -0
  207. package/src/components/molecules/banner/Banner.mdx +23 -0
  208. package/src/components/molecules/banner/Banner.stories.js +125 -0
  209. package/src/components/molecules/change-password-form/ChangePasswordForm.mdx +15 -0
  210. package/src/components/molecules/change-password-form/ChangePasswordForm.stories.js +206 -0
  211. package/src/components/molecules/collapsible-section/CollapsibleSection.js +1 -1
  212. package/src/components/molecules/collapsible-section/CollapsibleSection.mdx +15 -0
  213. package/src/components/molecules/collapsible-section/CollapsibleSection.stories.js +217 -0
  214. package/src/components/molecules/collapsible-section/index.d.ts +2 -2
  215. package/src/components/molecules/contact-card/ContactCard.js +157 -0
  216. package/src/components/molecules/contact-card/ContactCard.stories.js +80 -0
  217. package/src/components/molecules/contact-card/ContactCard.styled.js +44 -0
  218. package/src/components/molecules/contact-card/index.d.ts +16 -0
  219. package/src/components/molecules/contact-card/index.js +3 -0
  220. package/src/components/molecules/edit-name-form/EditNameForm.mdx +13 -0
  221. package/src/components/molecules/edit-name-form/EditNameForm.stories.js +117 -0
  222. package/src/components/molecules/editable-list/EditableList.js +6 -1
  223. package/src/components/molecules/email-form/EmailForm.js +9 -1
  224. package/src/components/molecules/email-form/EmailForm.state.js +1 -1
  225. package/src/components/molecules/email-form/EmailForm.stories.js +210 -0
  226. package/src/components/molecules/forgot-password-form/ForgotPasswordForm.js +2 -1
  227. package/src/components/molecules/hero-image/HeroImage.js +135 -0
  228. package/src/components/molecules/hero-image/HeroImage.mdx +15 -0
  229. package/src/components/molecules/hero-image/HeroImage.stories.js +149 -0
  230. package/src/components/molecules/hero-image/HeroImage.styled.js +83 -0
  231. package/src/components/molecules/hero-image/HeroImage.theme.js +109 -0
  232. package/src/components/molecules/hero-image/index.js +3 -0
  233. package/src/components/molecules/idle-modal/IdleModal.js +101 -0
  234. package/src/components/molecules/idle-modal/IdleModal.mdx +17 -0
  235. package/src/components/molecules/idle-modal/IdleModal.stories.js +180 -0
  236. package/src/components/molecules/idle-modal/index.d.ts +16 -0
  237. package/src/components/molecules/idle-modal/index.js +3 -0
  238. package/src/components/molecules/index.d.ts +1 -0
  239. package/src/components/molecules/index.js +7 -0
  240. package/src/components/molecules/link-card/LinkCard.js +31 -20
  241. package/src/components/molecules/link-card/LinkCard.mdx +17 -0
  242. package/src/components/molecules/link-card/LinkCard.stories.js +528 -0
  243. package/src/components/molecules/link-card/LinkCard.styled.js +28 -21
  244. package/src/components/molecules/link-card/LinkCard.theme.js +6 -4
  245. package/src/components/molecules/link-card/index.d.ts +3 -1
  246. package/src/components/molecules/login-form/LoginForm.js +2 -1
  247. package/src/components/molecules/login-form/LoginForm.mdx +16 -0
  248. package/src/components/molecules/login-form/LoginForm.stories.js +120 -0
  249. package/src/components/molecules/modal/Modal.mdx +17 -0
  250. package/src/components/molecules/modal/Modal.stories.js +362 -0
  251. package/src/components/molecules/modal/ModalControlV1.js +3 -0
  252. package/src/components/molecules/modal/ModalControlV2.js +2 -0
  253. package/src/components/molecules/modal/__private__/CloseButton.js +2 -1
  254. package/src/components/molecules/module/Module.mdx +17 -0
  255. package/src/components/molecules/module/Module.stories.js +273 -0
  256. package/src/components/molecules/multiple-select-filter/MultipleSelectFilter.js +229 -0
  257. package/src/components/molecules/multiple-select-filter/MultipleSelectFilter.oldstories.js +74 -0
  258. package/src/components/molecules/multiple-select-filter/MultipleSelectFilter.styled.js +65 -0
  259. package/src/components/molecules/multiple-select-filter/MultipleSelectFilter.theme.js +13 -0
  260. package/src/components/molecules/multiple-select-filter/__private__/ActionLinkButton.js +27 -0
  261. package/src/components/molecules/multiple-select-filter/__private__/FilterButton.js +97 -0
  262. package/src/components/molecules/multiple-select-filter/__private__/FilterDropdown.js +27 -0
  263. package/src/components/molecules/multiple-select-filter/__private__/FilterableList.js +146 -0
  264. package/src/components/molecules/multiple-select-filter/__private__/FilterableListItem.js +78 -0
  265. package/src/components/molecules/multiple-select-filter/__private__/SearchBox.js +41 -0
  266. package/src/components/molecules/multiple-select-filter/__private__/useKeyboardNavigation.js +84 -0
  267. package/src/components/molecules/multiple-select-filter/__private__/util.js +44 -0
  268. package/src/components/molecules/multiple-select-filter/index.d.ts +34 -0
  269. package/src/components/molecules/multiple-select-filter/index.js +3 -0
  270. package/src/components/molecules/nav-menu/NavMenuMobile.js +27 -29
  271. package/src/components/molecules/nav-menu/NavMenuMobile.mdx +21 -0
  272. package/src/components/molecules/nav-menu/NavMenuMobile.stories.js +100 -0
  273. package/src/components/molecules/obligation/Obligation.js +141 -3
  274. package/src/components/molecules/obligation/Obligation.mdx +23 -0
  275. package/src/components/molecules/obligation/Obligation.stories.js +642 -0
  276. package/src/components/molecules/obligation/icons/PropertyBusinessIcon.js +2 -2
  277. package/src/components/molecules/obligation/icons/PropertyCarIcon.js +2 -2
  278. package/src/components/molecules/obligation/icons/PropertyCommercialVehicleIcon.js +2 -2
  279. package/src/components/molecules/obligation/icons/PropertyGarageIcon.js +2 -2
  280. package/src/components/molecules/obligation/icons/PropertyLandIcon.js +2 -2
  281. package/src/components/molecules/obligation/icons/PropertyMotorcycleIcon.js +2 -2
  282. package/src/components/molecules/obligation/icons/PropertyPersonalIcon.js +2 -2
  283. package/src/components/molecules/obligation/icons/PropertyStorefrontIcon.js +2 -2
  284. package/src/components/molecules/obligation/modules/AmountModule.js +64 -38
  285. package/src/components/molecules/obligation/modules/AutopayModalModule.js +37 -12
  286. package/src/components/molecules/obligation/modules/InactiveControlsModule.js +56 -12
  287. package/src/components/molecules/obligation/modules/InactiveTitleModule.js +1 -1
  288. package/src/components/molecules/obligation/modules/PaymentDetailsActions.js +42 -10
  289. package/src/components/molecules/obligation/modules/RemoveAccountModalModule.js +4 -1
  290. package/src/components/molecules/pagination/Pagination.mdx +15 -0
  291. package/src/components/molecules/pagination/Pagination.stories.js +181 -0
  292. package/src/components/molecules/partial-amount-form/PartialAmountField.js +68 -29
  293. package/src/components/molecules/partial-amount-form/PartialAmountField.theme.js +7 -0
  294. package/src/components/molecules/payment-button-bar/PaymentButtonBar.js +15 -8
  295. package/src/components/molecules/payment-details/PaymentDetails.js +1 -2
  296. package/src/components/molecules/payment-details/PaymentDetails.oldstories.js +0 -1
  297. package/src/components/molecules/payment-form-ach/PaymentFormACH.js +2 -0
  298. package/src/components/molecules/payment-form-ach/PaymentFormACH.state.js +2 -2
  299. package/src/components/molecules/payment-form-card/PaymentFormCard.js +6 -2
  300. package/src/components/molecules/payment-form-card/PaymentFormCard.state.js +2 -1
  301. package/src/components/molecules/phone-form/PhoneForm.js +7 -1
  302. package/src/components/molecules/phone-form/PhoneForm.state.js +1 -1
  303. package/src/components/molecules/popover/Popover.js +1 -15
  304. package/src/components/molecules/popover/Popover.mdx +15 -0
  305. package/src/components/molecules/popover/Popover.stories.js +220 -0
  306. package/src/components/molecules/radio-group/RadioGroup.js +8 -3
  307. package/src/components/molecules/radio-group/index.d.ts +1 -0
  308. package/src/components/molecules/radio-section/InnerRadioSection.js +3 -3
  309. package/src/components/molecules/radio-section/RadioSection.js +87 -44
  310. package/src/components/molecules/radio-section/RadioSection.stories.js +142 -0
  311. package/src/components/molecules/radio-section/radio-button/RadioButton.js +9 -5
  312. package/src/components/molecules/registration-banner/RegistrationBanner.js +115 -0
  313. package/src/components/molecules/registration-banner/RegistrationBanner.mdx +15 -0
  314. package/src/components/molecules/registration-banner/RegistrationBanner.stories.js +80 -0
  315. package/src/components/molecules/registration-banner/RegistrationBanner.styled.js +46 -0
  316. package/src/components/molecules/registration-banner/RegistrationBanner.theme.js +6 -0
  317. package/src/components/molecules/registration-banner/index.d.ts +15 -0
  318. package/src/components/molecules/registration-banner/index.js +3 -0
  319. package/src/components/molecules/registration-form/RegistrationForm.js +2 -1
  320. package/src/components/molecules/tab-sidebar/TabSidebar.js +5 -3
  321. package/src/components/molecules/tabs/Tabs.js +25 -9
  322. package/src/components/molecules/tabs/Tabs.mdx +17 -0
  323. package/src/components/molecules/tabs/Tabs.stories.js +149 -0
  324. package/src/components/molecules/tabs/index.d.ts +21 -0
  325. package/src/components/molecules/terms-and-conditions-modal/TermsAndConditionsModal.js +1 -1
  326. package/src/components/molecules/terms-and-conditions-modal/TermsAndConditionsModal.stories.js +110 -0
  327. package/src/components/molecules/toast-notification/Toast.mdx +15 -0
  328. package/src/components/molecules/toast-notification/Toast.stories.js +183 -0
  329. package/src/components/molecules/toast-notification/ToastNotification.js +74 -43
  330. package/src/components/molecules/tooltip/Tooltip.js +269 -0
  331. package/src/components/molecules/tooltip/Tooltip.mdx +25 -0
  332. package/src/components/molecules/tooltip/Tooltip.stories.js +287 -0
  333. package/src/components/molecules/tooltip/Tooltip.theme.js +18 -0
  334. package/src/components/molecules/tooltip/index.d.ts +34 -0
  335. package/src/components/molecules/tooltip/index.js +3 -0
  336. package/src/components/molecules/turnstile-widget/TurnstileWidget.js +183 -0
  337. package/src/components/molecules/turnstile-widget/index.js +3 -0
  338. package/src/components/templates/sidebar-stack-content/SidebarStackContent.js +1 -1
  339. package/src/constants/colors.d.ts +4 -0
  340. package/src/constants/colors.js +8 -1
  341. package/src/constants/regex_constants.js +1 -1
  342. package/src/constants/style_constants.js +13 -0
  343. package/src/deprecated/spinner/Spinner.js +8 -20
  344. package/src/hooks/index.js +2 -0
  345. package/src/hooks/use-conditionally-add-validator/index.js +20 -0
  346. package/src/hooks/use-outside-click/index.js +4 -5
  347. package/src/hooks/use-turnstile-script/index.js +49 -0
  348. package/src/util/formats.js +6 -3
  349. package/src/util/general.js +67 -4
  350. package/src/util/idleTimerUtils.js +36 -0
  351. package/src/util/index.js +3 -1
  352. package/src/util/themeUtils.js +24 -14
  353. package/src/.DS_Store +0 -0
  354. package/src/components/.DS_Store +0 -0
  355. package/src/components/atoms/alert/Alert.oldstories.js +0 -28
  356. package/src/components/atoms/badge/Badge.oldstories.js +0 -33
  357. package/src/components/atoms/breadcrumb/Breadcrumb.oldstories.js +0 -38
  358. package/src/components/atoms/button-with-action/ButtonWithAction.oldstories.js +0 -56
  359. package/src/components/atoms/button-with-link/ButtonWithLink.oldstories.js +0 -32
  360. package/src/components/atoms/country-dropdown/CountryDropdown.oldstories.js +0 -42
  361. package/src/components/atoms/display-box/DisplayBox.oldstories.js +0 -25
  362. package/src/components/atoms/display-card/DisplayCard.js +0 -88
  363. package/src/components/atoms/display-card/DisplayCard.oldstories.js +0 -24
  364. package/src/components/atoms/display-card/index.js +0 -3
  365. package/src/components/atoms/dropdown/Dropdown.oldstories.js +0 -47
  366. package/src/components/atoms/form-select/FormSelect.oldstories.js +0 -50
  367. package/src/components/atoms/formatted-address/FormattedAddress.oldstories.js +0 -32
  368. package/src/components/atoms/icons/NoPaymentResultsIcon.js +0 -54
  369. package/src/components/atoms/icons/PointOfSaleImage.d.ts +0 -1
  370. package/src/components/atoms/icons/PointOfSaleImage.js +0 -439
  371. package/src/components/atoms/labeled-amount/LabeledAmount.oldstories.js +0 -42
  372. package/src/components/atoms/line-item/LineItem.oldstories.js +0 -28
  373. package/src/components/atoms/link/Link.oldstories.js +0 -57
  374. package/src/components/atoms/loading-line/LoadingLine.oldstories.js +0 -28
  375. package/src/components/atoms/nav-footer/NavFooter.oldstories.js +0 -31
  376. package/src/components/atoms/nav-header/NavHeader.oldstories.js +0 -29
  377. package/src/components/atoms/password-requirements/PasswordRequirements.oldstories.js +0 -75
  378. package/src/components/atoms/placeholder/Placeholder.oldstories.js +0 -42
  379. package/src/components/atoms/searchable-select/SearchableSelect.oldstories.js +0 -62
  380. package/src/components/atoms/state-province-dropdown/StateProvinceDropdown.oldstories.js +0 -53
  381. package/src/components/atoms/toggle-switch/ToggleSwitch.oldstories.js +0 -28
  382. package/src/components/molecules/.DS_Store +0 -0
  383. package/src/components/molecules/address-form/AddressForm.oldstories.js +0 -21
  384. package/src/components/molecules/banner/Banner.oldstories.js +0 -29
  385. package/src/components/molecules/change-password-form/ChangePasswordForm.oldstories.js +0 -22
  386. package/src/components/molecules/collapsible-section/CollapsibleSection.oldstories.js +0 -68
  387. package/src/components/molecules/edit-name-form/EdidNameForm.oldstories.js +0 -24
  388. package/src/components/molecules/link-card/LinkCard.oldstories.js +0 -87
  389. package/src/components/molecules/login-form/LoginForm.oldstories.js +0 -24
  390. package/src/components/molecules/modal/Modal.oldstories.js +0 -139
  391. package/src/components/molecules/module/Module.oldstories.js +0 -31
  392. package/src/components/molecules/obligation/.DS_Store +0 -0
  393. package/src/components/molecules/pagination/Pagination.oldstories.js +0 -32
  394. package/src/components/molecules/tabs/Tabs.oldstories.js +0 -241
  395. package/src/components/molecules/toast-notification/ToastNotification.oldstories.js +0 -105
  396. package/src/stories/Button.stories.ts +0 -53
  397. package/src/stories/Button.tsx +0 -48
  398. package/src/stories/Configure.mdx +0 -364
  399. package/src/stories/Header.stories.ts +0 -33
  400. package/src/stories/Header.tsx +0 -56
  401. package/src/stories/Page.stories.ts +0 -32
  402. package/src/stories/Page.tsx +0 -73
  403. package/src/stories/assets/accessibility.png +0 -0
  404. package/src/stories/assets/accessibility.svg +0 -5
  405. package/src/stories/assets/addon-library.png +0 -0
  406. package/src/stories/assets/assets.png +0 -0
  407. package/src/stories/assets/avif-test-image.avif +0 -0
  408. package/src/stories/assets/context.png +0 -0
  409. package/src/stories/assets/discord.svg +0 -15
  410. package/src/stories/assets/docs.png +0 -0
  411. package/src/stories/assets/figma-plugin.png +0 -0
  412. package/src/stories/assets/github.svg +0 -3
  413. package/src/stories/assets/share.png +0 -0
  414. package/src/stories/assets/styling.png +0 -0
  415. package/src/stories/assets/testing.png +0 -0
  416. package/src/stories/assets/theming.png +0 -0
  417. package/src/stories/assets/tutorials.svg +0 -12
  418. package/src/stories/assets/youtube.svg +0 -4
  419. package/src/stories/button.css +0 -30
  420. package/src/stories/header.css +0 -32
  421. package/src/stories/page.css +0 -69
@@ -3,35 +3,114 @@ import React from "react";
3
3
  const GuidedCheckoutImage = () => {
4
4
  return (
5
5
  <svg
6
- width="186"
7
- height="96"
8
- viewBox="0 0 186 96"
6
+ width="184"
7
+ height="159"
8
+ viewBox="0 0 184 159"
9
9
  fill="none"
10
10
  xmlns="http://www.w3.org/2000/svg"
11
11
  >
12
- <rect
13
- x="48.6582"
14
- y="12.7822"
15
- width="86.9263"
16
- height="65.0716"
17
- rx="5"
18
- fill="white"
19
- />
20
- <path
21
- opacity="0.3"
22
- fillRule="evenodd"
23
- clipRule="evenodd"
24
- d="M157.658 6.96909C158.29 5.32214 159.882 4.15137 161.751 4.15137C163.788 4.15137 165.496 5.54154 165.991 7.42414C166.168 7.38839 166.352 7.36921 166.54 7.36921C168.076 7.36921 169.32 8.61442 169.32 10.1505C169.32 11.6866 168.076 12.9319 166.54 12.9319H154.54C153.004 12.9319 151.759 11.6866 151.759 10.1505C151.759 8.61442 153.004 7.36921 154.54 7.36921C154.946 7.36921 155.331 7.4586 155.679 7.61526C156.022 7.17907 156.554 6.89791 157.151 6.89791C157.327 6.89791 157.496 6.92359 157.658 6.96909ZM29.9007 45.3418C30.0511 43.7052 31.414 42.4238 33.0737 42.4238C34.5347 42.4238 35.765 43.4168 36.1417 44.7708C36.5175 44.4868 36.9822 44.3165 37.4875 44.3165C38.7303 44.3165 39.738 45.3343 39.738 46.5896C39.738 47.8451 38.7303 48.8629 37.4875 48.8629H28.783C27.721 48.8629 26.86 47.9932 26.86 46.9206C26.86 45.8478 27.721 44.9781 28.783 44.9781C29.2002 44.9781 29.5853 45.1138 29.9007 45.3418ZM27.3073 7.16256C25.3138 7.16256 23.6159 8.41138 22.9411 10.1681C22.7693 10.1196 22.5883 10.0922 22.4008 10.0922C21.7628 10.0922 21.1962 10.3921 20.8302 10.8574C20.459 10.6903 20.0486 10.5949 19.6151 10.5949C17.9772 10.5949 16.6494 11.9231 16.6494 13.5617C16.6494 15.2002 17.9772 16.5284 19.6151 16.5284H32.4158C34.0534 16.5284 35.3811 15.2002 35.3811 13.5617C35.3811 11.9231 34.0534 10.5949 32.4158 10.5949C32.2148 10.5949 32.019 10.6154 31.8294 10.6535C31.3019 8.64541 29.4803 7.16256 27.3073 7.16256ZM112.12 87.6601C112.12 85.2362 103.187 83.2712 92.1679 83.2712C81.149 83.2712 72.2157 85.2362 72.2157 87.6601C72.2157 90.084 81.149 92.049 92.1679 92.049C103.187 92.049 112.12 90.084 112.12 87.6601ZM171.486 29.0796C171.486 27.8253 170.469 26.8086 169.215 26.8086H145.438C145.347 26.8086 145.256 26.8141 145.165 26.8251C143.92 26.9761 143.033 28.1079 143.184 29.353L145.146 45.5311C145.284 46.6712 146.252 47.5287 147.401 47.5287H167.252C168.401 47.5287 169.369 46.6712 169.507 45.5311L171.469 29.353C171.48 29.2623 171.486 29.171 171.486 29.0796ZM133.401 12.7851L133.282 12.7822H51.0491C49.7687 12.7822 48.7236 13.7791 48.6615 15.0321L48.6585 15.1503V20.3601H135.672V15.1503C135.672 13.882 134.666 12.8467 133.401 12.7851Z"
25
- fill="#3B5BDB"
26
- />
27
- <path
28
- d="M89.5104 77.7962C90.2778 77.7962 90.9044 78.3932 90.9429 79.1439L90.9447 79.217V87.6425C90.9447 88.4027 90.3421 89.0235 89.5842 89.0615L89.5104 89.0634H84.0843C83.2921 89.0634 82.6499 88.4272 82.6499 87.6425C82.6499 86.8824 83.2526 86.2616 84.0104 86.2236L84.0843 86.2217L88.0759 86.2216L88.0761 79.217C88.0761 78.4568 88.6788 77.8361 89.4366 77.798L89.5104 77.7962ZM94.825 77.5318C95.5924 77.5318 96.219 78.1288 96.2574 78.8795L96.2593 78.9527L96.2589 86.2216L100.251 86.2218C101.019 86.2218 101.645 86.8188 101.684 87.5695L101.685 87.6427C101.685 88.4028 101.083 89.0236 100.325 89.0616L100.251 89.0635H94.825C94.0576 89.0635 93.431 88.4665 93.3926 87.7158L93.3907 87.6427V78.9527C93.3907 78.1679 94.0328 77.5318 94.825 77.5318ZM48.3193 58.0547C47.1765 59.0379 45.5982 60.3956 43.5845 62.1279L59.6704 65.8774C60.4641 64.8028 61.7449 64.1047 63.1907 64.1047C64.0309 64.1047 64.7119 64.7794 64.7119 65.6116C64.7119 66.4186 64.0715 67.0775 63.2666 67.1167L63.1907 67.1185C62.4628 67.1185 61.8703 67.7076 61.8703 68.4369C61.8703 69.1422 62.4239 69.7162 63.1184 69.7537L63.1907 69.7556H65.6733C66.5134 69.7556 67.1945 70.4303 67.1945 71.2625C67.1945 72.0696 66.5541 72.7284 65.7492 72.7676L65.6733 72.7695H63.1907C60.8966 72.7695 59.0179 71.0118 58.8414 68.7808L40.2249 64.4414C39.4805 64.2679 38.9937 63.5802 39.0573 62.8472C39.021 62.4108 39.1765 61.9645 39.5143 61.6406L39.5759 61.5847L48.0414 54.3022C48.6758 53.7565 48.8917 57.5624 48.3193 58.0547ZM163.601 50.3541C164.441 50.3541 165.123 51.0288 165.123 51.861C165.123 52.6681 164.482 53.3269 163.677 53.3661L163.601 53.3679L158.396 53.3677L146.317 66.1842C145.798 66.7342 144.954 66.8185 144.337 66.3933L144.272 66.3458C140.542 63.4754 137.745 61.3226 135.88 59.8874C135.492 59.5886 135.856 56.1092 136.515 56.5623L136.582 56.6113L145.041 63.1214L154.234 53.3677L151.051 53.3679C150.211 53.3679 149.53 52.6933 149.53 51.861C149.53 51.054 150.17 50.3951 150.975 50.356L151.051 50.3541H163.601ZM170.063 26.8086C170.903 26.8086 171.584 27.4833 171.584 28.3155C171.584 28.3756 171.58 28.4356 171.573 28.4953L169.425 46.2015C169.334 46.9588 168.685 47.5287 167.915 47.5287H146.737C145.967 47.5287 145.319 46.9588 145.227 46.2015L143.079 28.4953C142.979 27.669 143.574 26.9186 144.408 26.8194C144.468 26.8122 144.529 26.8086 144.59 26.8086H170.063ZM147.196 43.4878L147.412 45.2683L148.993 45.2683L147.196 43.4878ZM153.523 42.2217L150.447 45.2683H156.598L153.523 42.2217ZM161.129 42.2217L158.054 45.2683H164.204L161.129 42.2217ZM167.456 43.489L165.66 45.2683L167.24 45.2683L167.456 43.489ZM164.932 38.4548L161.667 41.6892L164.932 44.9236L167.603 42.2774L167.73 41.2271L164.932 38.4548ZM153.523 34.6878L150.258 37.9222L153.523 41.1567L155.676 39.0242C155.824 38.8771 156.065 38.8771 156.214 39.0242C156.351 39.16 156.361 39.3737 156.245 39.5215L156.214 39.557L154.061 41.6892L157.326 44.9236L160.591 41.6892L153.523 34.6878ZM149.72 38.4548L146.921 41.2276L147.048 42.2768L149.72 44.9236L152.985 41.6892L149.72 38.4548ZM157.326 30.9202L154.061 34.1547L161.129 41.1567L164.395 37.9222L161.117 34.6753L160.098 35.6903C159.95 35.8378 159.709 35.8383 159.56 35.6916C159.411 35.5448 159.411 35.3063 159.559 35.1588L160.579 34.1427L157.326 30.9202ZM149.72 30.9202L146.105 34.5004L146.806 40.2755L149.182 37.9216L148.136 36.8855L148.104 36.85C147.988 36.7022 147.999 36.4885 148.136 36.3527C148.27 36.2203 148.478 36.207 148.627 36.313L148.674 36.3527L149.72 37.3891L152.985 34.1547L149.72 30.9202ZM164.911 30.8986L161.653 34.141L164.932 37.3891L165.793 36.5365C165.942 36.3894 166.182 36.3894 166.331 36.5365C166.468 36.6723 166.479 36.886 166.363 37.0338L166.331 37.0693L165.47 37.9216L167.846 40.2749L168.546 34.4998L164.911 30.8986ZM155.838 29.0688H151.209L151.399 29.2573L150.258 30.3871L153.523 33.6215L156.788 30.3871L155.648 29.2573L155.838 29.0688ZM163.444 29.0688H158.814L159.005 29.2573L157.864 30.3871L161.116 33.6085L164.373 30.3661L163.254 29.2573L163.444 29.0688ZM148.231 29.0688L145.447 29.069L145.99 33.5494L149.182 30.3877L148.041 29.2573L148.231 29.0688ZM169.205 29.069L166.593 29.0692C166.593 29.1652 166.556 29.2612 166.483 29.3347L165.447 30.365L168.661 33.5489L169.205 29.069ZM150.513 29.0688H148.927L149.72 29.8545L150.513 29.0688ZM158.119 29.0688H156.533L157.326 29.8545L158.119 29.0688ZM165.676 29.0688H164.139L164.91 29.8318L165.676 29.0688Z"
29
- fill="#3B5BDB"
30
- />
31
- <path
32
- d="M132.372 11.7393C134.772 11.7393 136.73 13.6217 136.789 15.9719L136.791 16.0824L136.79 72.3274L143.659 72.2195C144.319 72.2092 144.863 72.7308 144.873 73.3847C144.884 74.016 144.393 74.5397 143.765 74.5844L143.697 74.5873L136.79 74.6954L136.791 74.8305C136.791 77.195 134.87 79.1138 132.484 79.1723L132.372 79.1736H51.8381C49.4378 79.1736 47.4805 77.2912 47.4208 74.941L47.4194 74.8305L47.4194 74.5938L35.0075 74.7057C34.3474 74.7117 33.8074 74.1864 33.8014 73.5325C33.7956 72.9011 34.2898 72.3807 34.918 72.3402L34.9858 72.3377L47.4194 72.2257L47.4194 66.1561L49.7013 66.5329V74.8305C49.7013 75.9509 50.6103 76.8686 51.754 76.9117L51.8381 76.9133H132.372C133.526 76.9133 134.463 76.0221 134.507 74.9121L134.509 74.8305L134.508 21.1882H49.7008L49.7013 63.5861L47.4194 63.2093V16.0824C47.4194 13.7179 49.3398 11.7991 51.7259 11.7406L51.8381 11.7393H132.372ZM160.689 72.2195C161.349 72.2118 161.89 72.7357 161.898 73.3896C161.905 74.021 161.413 74.5427 160.784 74.5848L160.717 74.5874L150.482 74.7057C149.822 74.7133 149.281 74.1894 149.273 73.5355C149.265 72.9042 149.758 72.3825 150.386 72.3404L150.454 72.3378L160.689 72.2195ZM28.2594 72.2197C28.9194 72.2047 29.4666 72.7225 29.4818 73.3763C29.4964 74.0075 29.0096 74.5347 28.382 74.5838L28.3142 74.5872L23.1075 74.7055C22.4475 74.7205 21.9002 74.2026 21.8851 73.5489C21.8705 72.9177 22.3573 72.3905 22.9849 72.3414L23.0527 72.338L28.2594 72.2197ZM99.0101 51.6069C99.5383 51.6069 99.9664 52.031 99.9664 52.5542C99.9664 54.3368 98.5343 55.7877 96.7477 55.8399L96.6481 55.8414H87.5851C85.7524 55.8414 84.2667 54.3698 84.2667 52.5542C84.2667 52.031 84.6949 51.6069 85.223 51.6069C85.73 51.6069 86.1449 51.9978 86.1772 52.4919L86.1793 52.5542C86.1793 53.2986 86.7686 53.9064 87.5104 53.9449L87.5851 53.9468H96.6481C97.3995 53.9468 98.0131 53.363 98.0519 52.6282L98.0538 52.5542C98.0538 52.031 98.482 51.6069 99.0101 51.6069ZM83.2558 36.9091C84.8477 36.9091 86.2424 37.9324 86.7856 39.4308C86.964 39.9232 86.7058 40.4657 86.2087 40.6425C85.7316 40.8123 85.2078 40.5833 85.0087 40.1291L84.9856 40.0711C84.709 39.3083 84.0213 38.8037 83.2558 38.8037C82.4903 38.8037 81.8026 39.3083 81.5265 40.0709C81.3481 40.5633 80.8006 40.8193 80.3034 40.6426C79.8063 40.466 79.5479 39.9236 79.7263 39.4311C80.2689 37.9326 81.6637 36.9091 83.2558 36.9091ZM101.489 36.9146C103.23 36.9146 104.785 37.9008 105.409 39.3896C105.611 39.87 105.381 40.4212 104.896 40.6207C104.431 40.812 103.901 40.6109 103.68 40.1711L103.653 40.1123C103.329 39.3398 102.475 38.7982 101.489 38.7982C100.536 38.7982 99.7074 39.3032 99.3597 40.0333L99.3244 40.1123C99.1229 40.5927 98.5665 40.8203 98.0816 40.6207C97.5967 40.4212 97.3669 39.87 97.5684 39.3896C98.1928 37.9009 99.748 36.9146 101.489 36.9146ZM158.093 21.1575C158.72 21.1575 159.228 21.6658 159.228 22.293L159.228 26.8082L171.596 26.8084C172.537 26.8084 173.3 27.571 173.3 28.5116V28.8724C173.3 29.8131 172.537 30.5757 171.596 30.5757H143.058C142.117 30.5757 141.354 29.8131 141.354 28.8724V28.5116C141.354 27.571 142.117 26.8084 143.058 26.8084L155.425 26.8082L155.425 22.293C155.425 21.6658 155.934 21.1575 156.561 21.1575H158.093ZM132.372 13.9996H51.8381C50.6833 13.9996 49.7468 14.8907 49.7029 16.0008L49.7013 16.0824L49.7008 19.7677H134.508L134.509 16.0824C134.509 14.9621 133.6 14.0443 132.456 14.0012L132.372 13.9996ZM55.8307 15.6237L55.9131 15.6272C56.3734 15.6662 56.7412 16.0285 56.7829 16.4846L56.7868 16.5712L56.7833 16.6529C56.7439 17.109 56.3775 17.4728 55.9179 17.514L55.8307 17.5179L55.7482 17.5144C55.2586 17.473 54.8743 17.0666 54.8743 16.5712C54.8743 16.0475 55.3025 15.6237 55.8307 15.6237ZM52.4837 15.6237L52.5661 15.6272C53.0266 15.6662 53.3942 16.0285 53.4358 16.4846L53.4398 16.5712L53.4362 16.6529C53.3969 17.109 53.0308 17.4728 52.5709 17.514L52.4837 17.5179L52.4012 17.5144C51.9119 17.473 51.5276 17.0666 51.5276 16.5712C51.5276 16.0475 51.9558 15.6237 52.4837 15.6237ZM59.1774 15.6237L59.2598 15.6272C59.72 15.6662 60.0878 16.0285 60.1295 16.4846L60.1335 16.5712L60.13 16.6529C60.0905 17.109 59.7242 17.4728 59.2646 17.514L59.1774 17.5179L59.0949 17.5144C58.6053 17.473 58.2213 17.0666 58.2213 16.5712C58.2213 16.0475 58.6491 15.6237 59.1774 15.6237Z"
33
- fill="#3B414D"
34
- />
12
+ <g id="Illustration - Cart">
13
+ <path
14
+ d="M0 4C0 1.79086 1.79086 0 4 0H184V159H4C1.79086 159 0 157.209 0 155V4Z"
15
+ fill="#D9DAF9"
16
+ />
17
+ <path
18
+ d="M92.2989 117.448C102.365 117.448 110.525 119.187 110.525 121.332C110.525 123.478 102.365 125.217 92.2989 125.217C82.2323 125.217 74.0714 123.478 74.0714 121.332C74.0715 119.187 82.2324 117.448 92.2989 117.448ZM29.251 89.3598C30.5807 89.3599 31.7073 90.2294 32.0948 91.4301C32.4011 91.2542 32.7563 91.1528 33.1348 91.1528C34.29 91.1528 35.2266 92.0894 35.2266 93.2446C35.2266 94.3997 34.29 95.3364 33.1348 95.3364H25.6651C24.3449 95.3364 23.2745 94.2659 23.2745 92.9457C23.2745 91.6256 24.3449 90.5551 25.6651 90.5551C26.0359 90.5551 26.3871 90.6398 26.7003 90.7905C27.2254 89.9326 28.1715 89.3598 29.251 89.3598ZM151.164 37.3686C154.603 37.3688 157.425 40.0094 157.713 43.3735C158.322 42.9773 159.049 42.7465 159.829 42.7465C161.974 42.7466 163.713 44.486 163.713 46.6313C163.713 48.7766 161.974 50.5159 159.829 50.5161C159.729 50.5161 159.629 50.5118 159.53 50.5043V50.5161H142.199V50.5063C139.863 50.3525 138.016 48.4086 138.016 46.0336C138.016 43.5583 140.023 41.5513 142.498 41.5512C143.349 41.5512 144.145 41.7886 144.823 42.2006C145.587 39.4152 148.136 37.3686 151.164 37.3686ZM73.3389 25.7827C75.118 25.7828 76.6376 26.8936 77.2422 28.4594C77.4201 28.3848 77.6154 28.3432 77.8204 28.3432C78.3451 28.3432 78.8068 28.6142 79.0733 29.0229C79.4188 28.8613 79.8044 28.7709 80.211 28.7709C81.6962 28.7709 82.9005 29.9752 82.9005 31.4604C82.9002 32.8668 81.8202 34.0208 80.4444 34.1391V34.1489H69.0899V34.1391C69.0131 34.1457 68.935 34.1489 68.8565 34.1489C67.3714 34.1489 66.1673 32.9454 66.1671 31.4604C66.1671 29.9752 67.3713 28.7709 68.8565 28.7709C69.0133 28.7709 69.167 28.7842 69.3165 28.81C69.818 27.0619 71.4296 25.7827 73.3389 25.7827Z"
19
+ fill="#A99DD2"
20
+ />
21
+ <path
22
+ d="M53.7528 64.2609H130.845V110.277C130.845 110.937 130.31 111.472 129.65 111.472H54.948C54.2879 111.472 53.7528 110.937 53.7528 110.277V64.2609Z"
23
+ fill="white"
24
+ />
25
+ <path
26
+ d="M51.96 55.6252C51.96 53.7935 53.4449 52.3087 55.2765 52.3087H129.321C131.153 52.3087 132.638 53.7935 132.638 55.6252V64.2609H51.96V55.6252Z"
27
+ fill="#E5E7EC"
28
+ />
29
+ <path
30
+ d="M66.3027 58.2835C66.3027 58.9429 65.7676 59.4774 65.1075 59.4774C64.4474 59.4774 63.9122 58.9429 63.9122 58.2835C63.9122 57.6241 64.4474 57.0895 65.1075 57.0895C65.7676 57.0895 66.3027 57.6241 66.3027 58.2835Z"
31
+ fill="#292A33"
32
+ />
33
+ <path
34
+ d="M62.717 58.2835C62.717 58.9429 62.1819 59.4774 61.5218 59.4774C60.8617 59.4774 60.3266 58.9429 60.3266 58.2835C60.3266 57.6241 60.8617 57.0895 61.5218 57.0895C62.1819 57.0895 62.717 57.6241 62.717 58.2835Z"
35
+ fill="#292A33"
36
+ />
37
+ <path
38
+ d="M59.1313 58.2835C59.1313 58.9429 58.5962 59.4774 57.9361 59.4774C57.276 59.4774 56.7409 58.9429 56.7409 58.2835C56.7409 57.6241 57.276 57.0895 57.9361 57.0895C58.5962 57.0895 59.1313 57.6241 59.1313 58.2835Z"
39
+ fill="#292A33"
40
+ />
41
+ <path
42
+ fillRule="evenodd"
43
+ clipRule="evenodd"
44
+ d="M129.65 54.1015H54.9481C54.2879 54.1015 53.7528 54.6366 53.7528 55.2967V110.277C53.7528 110.937 54.2879 111.472 54.948 111.472H129.65C130.31 111.472 130.845 110.937 130.845 110.277V55.2967C130.845 54.6366 130.31 54.1015 129.65 54.1015ZM54.9481 52.3087C53.2978 52.3087 51.96 53.6465 51.96 55.2967V110.277C51.96 111.927 53.2978 113.265 54.948 113.265H129.65C131.3 113.265 132.638 111.927 132.638 110.277V55.2967C132.638 53.6465 131.3 52.3087 129.65 52.3087H54.9481Z"
45
+ fill="#292A33"
46
+ />
47
+ <path
48
+ d="M156.542 106.094C156.542 105.434 157.077 104.899 157.737 104.899H167.897C168.557 104.899 169.092 105.434 169.092 106.094C169.092 106.754 168.557 107.289 167.897 107.289H157.737C157.077 107.289 156.542 106.754 156.542 106.094Z"
49
+ fill="#292A33"
50
+ />
51
+ <path
52
+ d="M132.638 104.899H152.244C152.909 104.899 153.449 105.438 153.449 106.104C153.449 106.77 152.909 107.309 152.244 107.309H132.638V104.899Z"
53
+ fill="#292A33"
54
+ />
55
+ <path
56
+ d="M35.2269 106.094C35.2269 105.434 35.762 104.899 36.4221 104.899H51.96V107.289H36.4221C35.762 107.289 35.2269 106.754 35.2269 106.094Z"
57
+ fill="#292A33"
58
+ />
59
+ <path
60
+ d="M25.0675 106.094C25.0675 105.434 25.6026 104.899 26.2627 104.899H31.0436C31.7037 104.899 32.2388 105.434 32.2388 106.094C32.2388 106.754 31.7037 107.289 31.0436 107.289H26.2627C25.6026 107.289 25.0675 106.754 25.0675 106.094Z"
61
+ fill="#292A33"
62
+ />
63
+ <path
64
+ d="M51.9601 62.4676H132.638V64.2604H51.9601V62.4676Z"
65
+ fill="#292A33"
66
+ />
67
+ <path
68
+ d="M90.8047 120.727C90.8047 121.226 90.3999 121.632 89.9004 121.632H84.8291C84.1691 121.632 83.6339 121.097 83.6338 120.437C83.6338 119.777 84.169 119.242 84.8291 119.242H88.4141V113.265H90.8047V120.727ZM96.1836 119.242H99.7686C100.429 119.242 100.964 119.777 100.964 120.437C100.964 121.097 100.429 121.632 99.7686 121.632H94.6973C94.1978 121.632 93.793 121.226 93.793 120.727V113.265H96.1836V119.242ZM141.655 100.661C141.271 101.046 140.676 101.126 140.204 100.856L132.638 96.5316V93.5433L140.796 98.2054C140.918 98.275 141.072 98.251 141.167 98.1478L148.176 90.556H146.383C145.723 90.556 145.188 90.0206 145.188 89.3607C145.188 88.7006 145.723 88.1653 146.383 88.1653H155.944C156.604 88.1653 157.14 88.7006 157.14 89.3607C157.139 90.0206 156.604 90.556 155.944 90.556H151.761L141.655 100.661Z"
69
+ fill="#6145F7"
70
+ />
71
+ <path
72
+ fillRule="evenodd"
73
+ clipRule="evenodd"
74
+ d="M101.263 79.9553C100.228 79.9553 99.4816 80.5571 99.2985 81.2006C99.1846 81.601 98.7676 81.8333 98.3672 81.7193C97.9668 81.6054 97.7346 81.1884 97.8486 80.7881C98.2508 79.3743 99.6905 78.4478 101.263 78.4478C102.835 78.4478 104.275 79.3743 104.677 80.7881C104.791 81.1884 104.559 81.6054 104.158 81.7193C103.758 81.8333 103.341 81.601 103.227 81.2006C103.044 80.5571 102.298 79.9553 101.263 79.9553Z"
75
+ fill="#292A33"
76
+ />
77
+ <path
78
+ fillRule="evenodd"
79
+ clipRule="evenodd"
80
+ d="M84.5299 79.9553C83.495 79.9553 82.7487 80.5571 82.5656 81.2006C82.4517 81.601 82.0347 81.8333 81.6343 81.7193C81.2339 81.6054 81.0017 81.1884 81.1156 80.7881C81.5179 79.3743 82.9576 78.4478 84.5299 78.4478C86.1022 78.4478 87.5418 79.3743 87.9441 80.7881C88.058 81.1884 87.8258 81.6054 87.4254 81.7193C87.025 81.8333 86.6081 81.601 86.4941 81.2006C86.311 80.5571 85.5647 79.9553 84.5299 79.9553Z"
81
+ fill="#292A33"
82
+ />
83
+ <path
84
+ fillRule="evenodd"
85
+ clipRule="evenodd"
86
+ d="M85.4261 90.4004C85.8424 90.4004 86.1799 90.7379 86.1799 91.1541C86.1799 92.0581 86.9127 92.7908 87.8166 92.7908H96.7807C97.6847 92.7908 98.4174 92.0581 98.4174 91.1541C98.4174 90.7379 98.7549 90.4004 99.1712 90.4004C99.5875 90.4004 99.9249 90.7379 99.9249 91.1541C99.9249 92.8906 98.5172 94.2984 96.7807 94.2984H87.8166C86.0801 94.2984 84.6724 92.8906 84.6724 91.1541C84.6724 90.7379 85.0098 90.4004 85.4261 90.4004Z"
87
+ fill="#292A33"
88
+ />
89
+ <path
90
+ d="M51.9593 96.5307V93.5426L41.5712 101.457C40.7439 102.088 41.0607 103.401 42.0844 103.584L62.7163 107.288V104.897L44.7879 101.909L51.9593 96.5307Z"
91
+ fill="#6145F7"
92
+ />
93
+ <path
94
+ d="M65.7042 101.909H66.8995C67.5596 101.909 68.0947 102.444 68.0947 103.104C68.0947 103.765 67.5596 104.3 66.8995 104.3H66.3018C65.3117 104.3 64.509 105.102 64.509 106.092C64.509 107.083 65.3117 107.885 66.3018 107.885H68.6923C69.3524 107.885 69.8875 108.42 69.8875 109.081C69.8875 109.741 69.3524 110.276 68.6923 110.276H65.7042C63.7239 110.276 62.1186 108.67 62.1186 106.69V105.495C62.1186 103.515 63.7239 101.909 65.7042 101.909Z"
95
+ fill="#6145F7"
96
+ />
97
+ <path
98
+ d="M25.8391 56.536C29.2503 56.5361 32.0497 59.1416 32.3489 62.4657C33.032 61.9232 33.897 61.5985 34.8381 61.5985C37.047 61.5985 38.8379 63.3841 38.8381 65.5868C38.8381 67.7897 37.0471 69.576 34.8381 69.576C34.7868 69.576 34.7357 69.5741 34.6848 69.5721V69.576H16.8391V69.5741C16.8138 69.5745 16.7884 69.576 16.7629 69.576C14.1718 69.576 12.0708 67.4813 12.0706 64.8973C12.0706 62.3132 14.1716 60.2177 16.7629 60.2177C17.8215 60.2177 18.7983 60.5674 19.5833 61.1571C20.3985 58.4825 22.8907 56.536 25.8391 56.536Z"
99
+ fill="#A99DD2"
100
+ />
101
+ <path
102
+ d="M161.517 66.3366C162.711 66.3366 163.678 67.304 163.678 68.4974C163.678 68.5844 163.673 68.6712 163.662 68.7576L161.795 84.1507C161.664 85.2355 160.743 86.0513 159.65 86.0513H140.761C139.669 86.0513 138.748 85.2355 138.616 84.1507L136.749 68.7576C136.605 67.5729 137.449 66.496 138.634 66.3523C138.72 66.3419 138.807 66.3366 138.894 66.3366H161.517Z"
103
+ fill="#B4B3F4"
104
+ />
105
+ <path
106
+ d="M162.324 66.3367C163.124 66.3367 163.772 66.9786 163.772 67.7705C163.772 67.8276 163.768 67.8848 163.761 67.9415L161.718 84.7886C161.63 85.5091 161.013 86.0513 160.281 86.0513H140.131C139.398 86.0513 138.781 85.5091 138.694 84.7886L136.65 67.9415C136.555 67.1553 137.121 66.4414 137.915 66.3469C137.972 66.3401 138.029 66.3367 138.087 66.3367H162.324ZM140.567 82.2066L140.772 83.9006L142.276 83.9006L140.567 82.2066ZM146.587 81.0019L143.66 83.9006H149.513L146.587 81.0019ZM153.824 81.0019L150.898 83.9006H156.75L153.824 81.0019ZM159.844 82.2076L158.135 83.9006L159.639 83.9006L159.844 82.2076ZM157.443 77.4177L154.336 80.4952L157.442 83.5727L159.984 81.0549L160.105 80.0555L157.443 77.4177ZM146.587 73.8335L143.481 76.911L146.587 79.9885L148.635 77.9595C148.777 77.8195 149.006 77.8195 149.147 77.9595C149.278 78.0887 149.288 78.2921 149.177 78.4327L149.147 78.4664L147.098 80.4952L150.205 83.5727L153.312 80.4952L146.587 73.8335ZM142.969 77.4177L140.306 80.056L140.427 81.0543L142.968 83.5727L146.075 80.4952L142.969 77.4177ZM150.206 70.2488L147.099 73.3263L153.824 79.9885L156.931 76.911L153.812 73.8216L152.843 74.7874C152.702 74.9277 152.473 74.9283 152.331 74.7886C152.19 74.649 152.189 74.422 152.33 74.2817L153.301 73.3149L150.206 70.2488ZM142.968 70.2488L139.529 73.6553L140.196 79.1501L142.457 76.9105L141.461 75.9246L141.431 75.8908C141.321 75.7502 141.331 75.5469 141.461 75.4177C141.589 75.2917 141.787 75.2791 141.928 75.3799L141.973 75.4177L142.968 76.4038L146.075 73.3263L142.968 70.2488ZM157.422 70.2282L154.323 73.3133L157.443 76.4038L158.262 75.5926C158.403 75.4526 158.632 75.4526 158.774 75.5926C158.904 75.7218 158.914 75.9251 158.804 76.0657L158.774 76.0995L157.954 76.9105L160.215 79.1496L160.881 73.6547L157.422 70.2282ZM148.789 68.4872H144.385L144.566 68.6666L143.481 69.7415L146.587 72.819L149.694 69.7415L148.608 68.6666L148.789 68.4872ZM156.026 68.4872H151.622L151.803 68.6666L150.717 69.7415L153.811 72.8066L156.911 69.7215L155.845 68.6666L156.026 68.4872ZM141.552 68.4872L138.903 68.4874L139.42 72.7504L142.457 69.7421L141.371 68.6666L141.552 68.4872ZM161.508 68.4874L159.023 68.4876C159.023 68.5789 158.988 68.6703 158.918 68.7402L157.933 69.7205L160.991 72.7499L161.508 68.4874ZM143.723 68.4872H142.214L142.968 69.2348L143.723 68.4872ZM150.96 68.4872H149.451L150.205 69.2348L150.96 68.4872ZM158.15 68.4872H156.688L157.421 69.2132L158.15 68.4872Z"
107
+ fill="#6145F7"
108
+ />
109
+ <path
110
+ d="M150.935 60.96C151.531 60.96 152.015 61.4437 152.015 62.0404L152.015 66.3365L163.783 66.3367C164.678 66.3367 165.403 67.0622 165.403 67.9573V68.3006C165.403 69.1956 164.678 69.9212 163.783 69.9212H136.629C135.734 69.9212 135.008 69.1956 135.008 68.3006V67.9573C135.008 67.0622 135.734 66.3367 136.629 66.3367L148.396 66.3365L148.396 62.0404C148.396 61.4437 148.88 60.96 149.477 60.96H150.935Z"
111
+ fill="#292A33"
112
+ />
113
+ </g>
35
114
  </svg>
36
115
  );
37
116
  };
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
 
3
- const IconAdd = ({ strokeWidth = 1 }) => (
3
+ const IconAdd = ({ stroke = "none", strokeWidth = 1 }) => (
4
4
  <svg
5
5
  xmlns="http://www.w3.org/2000/svg"
6
6
  xmlnsXlink="http://www.w3.org/1999/xlink"
@@ -15,7 +15,7 @@ const IconAdd = ({ strokeWidth = 1 }) => (
15
15
  d="M7.91666623 4.78508747L4.78508747 4.78508747 4.78508747 7.91666623 3.74122788 7.91666623 3.74122788 4.78508747 0.609649123 4.78508747 0.609649123 3.74122788 3.74122788 3.74122788 3.74122788 0.609649123 4.78508747 0.609649123 4.78508747 3.74122788 7.91666623 3.74122788z"
16
16
  ></path>
17
17
  </defs>
18
- <g fill="none" fillRule="evenodd" stroke="none" strokeWidth={strokeWidth}>
18
+ <g fill="none" fillRule="evenodd" stroke={stroke} strokeWidth={strokeWidth}>
19
19
  <g transform="translate(-407 -563)">
20
20
  <g transform="translate(408 562)">
21
21
  <g transform="translate(0 2)">
@@ -0,0 +1,40 @@
1
+ import { Canvas, Meta, Title, Story, Controls } from '@storybook/blocks';
2
+
3
+ import * as IconsStories from './Icons.stories.js';
4
+
5
+ <Meta of={IconsStories} />
6
+
7
+ <Title />
8
+
9
+ The icons folder contains a variety of components which render SVGs, ranging from simple icons to large graphics.
10
+
11
+ ## Theming
12
+
13
+ Some of the icon components are themeable through the `themeValues` object prop. The properties used from the `themeValues` vary between components.
14
+
15
+ ### Variants
16
+
17
+ Some icons support variants from themes, including `info`, `success`, and `error`.
18
+
19
+ ## Props
20
+
21
+ Many icon components make use of additional props:
22
+
23
+ <Controls />
24
+
25
+ ## Additional Props
26
+
27
+ The following components will pass along _all_ other props to their wrapping elements via the spread operator: `EmptyCartIconV2`, `CloseIcon`, `MultiCartIcon`.
28
+
29
+ ## IconAdd Styling
30
+
31
+ `IconAdd` needs color values set in CSS in order to display:
32
+
33
+ ```
34
+ .fill { fill: #000 }
35
+ .stroke { stroke: #000 }
36
+ ```
37
+
38
+ ## ExternalLinkIcon
39
+
40
+ `ExternalLinkIcon` must be passed a value for `linkColor` in order to be visible.
@@ -0,0 +1,343 @@
1
+ import React from "react";
2
+ import * as icons from "./index";
3
+ import styled from "styled-components";
4
+ import { MANATEE_GREY } from "../../../constants/colors";
5
+
6
+ const meta = {
7
+ title: "Atoms/Icons",
8
+ component: icons.AccountsIcon,
9
+ parameters: {
10
+ layout: "centered"
11
+ },
12
+ tags: ["!autodocs"],
13
+ args: {
14
+ ariaLabel: undefined,
15
+ color: undefined,
16
+ colorOverride: undefined,
17
+ fill: undefined,
18
+ height: undefined,
19
+ iconFill: undefined,
20
+ iconHeight: undefined,
21
+ iconIndex: undefined,
22
+ iconWidth: undefined,
23
+ labelledBy: undefined,
24
+ linkColor: undefined,
25
+ strokeWidth: undefined,
26
+ text: undefined,
27
+ title: undefined,
28
+ titleID: undefined
29
+ },
30
+ argTypes: {
31
+ ariaLabel: {
32
+ description: "Sets the `aria-label` value on the `PencilIcon` icon",
33
+ table: {
34
+ type: { summary: "string" },
35
+ defaultValue: { summary: "Edit" }
36
+ }
37
+ },
38
+ color: {
39
+ description:
40
+ "Sets a color (usually for a `fill` attribute) on one or many elements within a component. The default value for this prop varies by component. Used in the following componenets: `ArrowDownCircleIconSmall`, `ArrowLeftCircleIconMedium`, `ArrowLeftCircleIconSmall`, `ArrowRightCircleIconSmall`, `ArrowUpCircleIconSmall`, `AutopayOnIcon`, `ChargebackIconMedium`, `ChargebackIconSmall`, `ChargebackReversalIconMedium`, `ChargebackReversalIconSmall`, `RefundIconMedium`, `RefundIconSmall`, `XCircleIconMedium`, `XCircleIconSmall`, `AutopayIcon`, `ArrowRightIcon`, `PlusCircleIcon`, `WarningIconXS`, `EmptyCartIconV2`",
41
+ table: {
42
+ type: { summary: "string" },
43
+ defaultValue: { summary: `varies` }
44
+ }
45
+ },
46
+ colorOverride: {
47
+ description:
48
+ "Overrides the theme values for some element's fill attribute in the `WalletIconSmall` component",
49
+ table: {
50
+ type: { summary: "string" },
51
+ defaultValue: { summary: undefined }
52
+ }
53
+ },
54
+ fill: {
55
+ description:
56
+ "Sets the fill attribute in the following components: `AutopayIcon`, `IconQuitLarge`, `PendingIcon`",
57
+ table: {
58
+ type: { summary: "string" },
59
+ defaultValue: { summary: `varies` }
60
+ }
61
+ },
62
+ height: {
63
+ description:
64
+ "Sets the `height` value in the `style` attribute for the `EmptyCartIconV2` component",
65
+ table: {
66
+ type: { summary: "string" },
67
+ defaultValue: { summary: "auto" }
68
+ }
69
+ },
70
+ iconFill: {
71
+ description:
72
+ "Sets the fill attribute in the following components: `ChevronIcon`, `TrashIcon`, `TrashIconV2`, `CloseIcon`, `MultiCartIcon`",
73
+ table: {
74
+ type: { summary: "string" },
75
+ defaultValue: { summary: `varies` }
76
+ }
77
+ },
78
+ iconHeight: {
79
+ description:
80
+ "Sets the height of the `CloseIcon` and `MultiCartIcon` icons",
81
+ table: {
82
+ type: { summary: "string" },
83
+ defaultValue: { summary: `varies` }
84
+ }
85
+ },
86
+ iconIndex: {
87
+ description:
88
+ "Used to create a unique id for a variety of elements in the following components: `BankIconLarge`, `SuccessfulIconMedium`, `SuccessfulIconSmall`, `WarningIconXS`, `XCircleIconSmall`, `XCircleIconMedium`, `RefundIconSmall`, `RefundIconMedium`, `ChargebackReversalIconSmall`, `ChargebackReversalIconMedium`, `ChargebackIconSmall`, `ChargebackIconMedium`, `AutopayOnIcon`, `ArrowUpCircleIconSmall`, `ArrowRightCircleIconSmall`, `ArrowLeftCircleIconSmall`, `ArrowLeftCircleIconMedium`, `ArrowDownCircleIconSmall`, `WalletIconSmall`, `FindIconSmall`",
89
+ table: {
90
+ type: { summary: "string | number" },
91
+ defaultValue: { summary: 0 }
92
+ }
93
+ },
94
+ iconWidth: {
95
+ description:
96
+ "Sets the width of the `CloseIcon` and `MultiCartIcon` icons",
97
+ table: {
98
+ type: { summary: "string | number" },
99
+ defaultValue: { summary: `varies` }
100
+ }
101
+ },
102
+ labelledBy: {
103
+ description:
104
+ "Sets the `aria-labelledby` value in the following components: `ArrowRightIcon`, `PlusCircleIcon`",
105
+ table: {
106
+ type: { summary: "string" },
107
+ defaultValue: { summary: "" }
108
+ }
109
+ },
110
+ linkColor: {
111
+ description:
112
+ "Sets the fill attribute on multiple elements in the `ExternalLinkIcon` component",
113
+ table: {
114
+ type: { summary: "string" },
115
+ defaultValue: { summary: undefined }
116
+ }
117
+ },
118
+ strokeWidth: {
119
+ description: "Set the stroke width on the circle in `IconAdd`",
120
+ table: {
121
+ type: { summary: "string | number" },
122
+ defaultValue: { summary: 1 }
123
+ }
124
+ },
125
+ text: {
126
+ description:
127
+ "Used to create a unique id for a `<mask />` element in `ExternalLinkIcon`",
128
+ table: {
129
+ type: { summary: "string" },
130
+ defaultValue: { summary: undefined }
131
+ }
132
+ },
133
+ title: {
134
+ description:
135
+ "Sets the text of the `<title />` element in the `WarningIconXS` component",
136
+ table: {
137
+ type: { summary: "string" },
138
+ defaultValue: { summary: undefined }
139
+ }
140
+ },
141
+ titleID: {
142
+ description:
143
+ "Used to build a unique id for the `<title />` element in the `WarningIconXS` component, which is matched with the `aria-labelledby` value",
144
+ table: {
145
+ type: { summary: "string" },
146
+ defaultValue: { summary: "warning-icon-title" }
147
+ }
148
+ }
149
+ }
150
+ };
151
+
152
+ const StyledIconList = styled.ul`
153
+ align-items: center;
154
+ display: flex;
155
+ flex-direction: column;
156
+ gap: 2em;
157
+ list-style: none;
158
+
159
+ li {
160
+ padding-bottom: 2em;
161
+ text-align: center;
162
+ width: 100%;
163
+
164
+ &:not(:last-child) {
165
+ border-bottom: 1px solid ${MANATEE_GREY};
166
+ }
167
+ }
168
+
169
+ .icon-name {
170
+ margin-top: 1em;
171
+ font-family: monospace
172
+ font-size: 2em;
173
+ }
174
+
175
+ // for the IconAdd component
176
+ .fill { fill: ${MANATEE_GREY} }
177
+ .stroke { stroke: ${MANATEE_GREY} }
178
+ `;
179
+
180
+ const IconList = ({ iconNames }) => (
181
+ <StyledIconList>
182
+ {iconNames.map(icon => {
183
+ const IconComponent = icons[icon];
184
+ if (!IconComponent) {
185
+ console.warn(`No icon found for ${icon}`);
186
+ }
187
+ return (
188
+ IconComponent && (
189
+ <li key={icon} style={{ textAlign: "center", paddingBottom: "2em" }}>
190
+ <IconComponent linkColor={MANATEE_GREY} />
191
+ <div className="icon-name">{icon}</div>
192
+ </li>
193
+ )
194
+ );
195
+ })}
196
+ </StyledIconList>
197
+ );
198
+
199
+ const genericIcons = [
200
+ "DuplicateIcon",
201
+ "CalendarIcon",
202
+ "PendingIcon",
203
+ "StatusUnknownIcon",
204
+ "FailedIcon",
205
+ "ErroredIcon",
206
+ "SuccessfulIcon",
207
+ "SuccessfulIconMedium",
208
+ "SuccessfulIconSmall",
209
+ "VoidedIcon",
210
+ "XCircleIconMedium",
211
+ "XCircleIconSmall",
212
+ "ProfileIconSmall",
213
+ "SearchIcon",
214
+ "FindIconSmall",
215
+ "PencilIcon",
216
+ "AccountsIconSmall",
217
+ "TrashIcon",
218
+ "TrashIconV2",
219
+ "SettingsIconSmall",
220
+ "ShoppingCartIcon",
221
+ "PlusCircleIcon",
222
+ "IconAdd",
223
+ "ExternalLinkIcon",
224
+ "AutopayIcon",
225
+ "AutopayOnIcon",
226
+ "CloseIcon",
227
+ "IconQuitLarge",
228
+ "WarningIconXS",
229
+ "KebabMenuIcon",
230
+ "MultiCartIcon",
231
+ "EmptyCartIconV2",
232
+ "CheckmarkIcon"
233
+ ];
234
+
235
+ const arrowIcons = [
236
+ "AchReturnIcon",
237
+ "RejectedIcon",
238
+ "RejectedVelocityIcon",
239
+ "ArrowDownCircleIconSmall",
240
+ "ArrowLeftCircleIconMedium",
241
+ "ArrowLeftCircleIconSmall",
242
+ "ArrowRightCircleIconSmall",
243
+ "ArrowUpCircleIconSmall",
244
+ "ArrowRightIcon",
245
+ "ChevronIcon",
246
+ "CarrotIcon"
247
+ ];
248
+
249
+ const paymentIcons = [
250
+ "BankIcon",
251
+ "BankIconLarge",
252
+ "CashIcon",
253
+ "ChargebackIcon",
254
+ "ChargebackIconMedium",
255
+ "ChargebackIconSmall",
256
+ "ChargebackReversalIcon",
257
+ "ChargebackReversalIconMedium",
258
+ "ChargebackReversalIconSmall",
259
+ "CheckIcon",
260
+ "GenericCard",
261
+ "GenericCardLarge",
262
+ "PaymentMethodAddIcon",
263
+ "PaymentMethodIcon",
264
+ "PaymentsIconSmall",
265
+ "RefundIcon",
266
+ "RefundIconMedium",
267
+ "RefundIconSmall",
268
+ "VisaSmallIcon",
269
+ "AmExSmallIcon",
270
+ "BankGenericSmallIcon",
271
+ "CashSmallIcon",
272
+ "DiscoverSmallIcon",
273
+ "GenericSmallIcon",
274
+ "MasterCardSmallIcon",
275
+ "WireSmallIcon"
276
+ ];
277
+
278
+ const checkIcons = ["RoutingNumberImage", "AccountNumberImage"];
279
+
280
+ const accountIcons = [
281
+ "AccountsAddIcon",
282
+ "AccountsIcon",
283
+ "DisabledAccountsAddIcon",
284
+ "DisabledPaymentMethodsAddIcon",
285
+ "ForgotPasswordIcon",
286
+ "GoToEmailIcon",
287
+ "ResetPasswordIcon",
288
+ "VerifiedEmailIcon"
289
+ ];
290
+
291
+ const mascotIcons = [
292
+ "CustomerSearchIcon",
293
+ "EmptyCartIcon",
294
+ "GenericErrorIcon",
295
+ "NoCustomerResultsIcon",
296
+ "NoPaymentResultsIcon",
297
+ "NotFoundIcon",
298
+ "PaymentSearchIcon",
299
+ "PeriscopeFailedIcon",
300
+ "ProfileIcon",
301
+ "TimeoutImage",
302
+ "WalletIcon",
303
+ "GuidedCheckoutImage",
304
+ "KioskImage",
305
+ "CashieringImage",
306
+ "RevenueManagementImage",
307
+ "ProfileImage",
308
+ "StandardCheckoutImage",
309
+ "WalletBannerIcon",
310
+ "PaydotImage"
311
+ ];
312
+
313
+ export const GenericIcons = () => <IconList iconNames={genericIcons} />;
314
+
315
+ export const ArrowIcons = () => <IconList iconNames={arrowIcons} />;
316
+
317
+ export const PaymentIcons = () => <IconList iconNames={paymentIcons} />;
318
+
319
+ export const CheckIcons = () => <IconList iconNames={checkIcons} />;
320
+
321
+ export const AccountIcons = () => <IconList iconNames={accountIcons} />;
322
+
323
+ export const MascotIcons = () => <IconList iconNames={mascotIcons} />;
324
+
325
+ export const OtherIcons = {
326
+ render: () => {
327
+ const groupedIcons = [
328
+ ...checkIcons,
329
+ ...mascotIcons,
330
+ ...arrowIcons,
331
+ ...genericIcons,
332
+ ...accountIcons,
333
+ ...paymentIcons
334
+ ];
335
+ const otherIcons = Object.keys(icons).filter(
336
+ icon => !groupedIcons.includes(icon)
337
+ );
338
+
339
+ return <IconList iconNames={otherIcons} />;
340
+ }
341
+ };
342
+
343
+ export default meta;