@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
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from 'react';
1
+ import React, { ReactNode, HTMLAttributes } from 'react';
2
2
 
3
3
  type Color = string;
4
4
 
@@ -67,6 +67,7 @@ declare const ROYAL_BLUE_VIVID: Color;
67
67
  declare const ASTRAL_BLUE: Color;
68
68
  declare const SAPPHIRE_BLUE: Color;
69
69
  declare const PEACOCK_BLUE: Color;
70
+ declare const HAWKES_BLUE: Color;
70
71
 
71
72
  // GREEN
72
73
  declare const FOREST_GREEN: Color;
@@ -98,6 +99,9 @@ declare const FANTASY_RED: Color;
98
99
  declare const COSMOS_RED: Color;
99
100
  declare const BLUSH_RED: Color;
100
101
 
102
+ // PURPLE
103
+ declare const LUCKY_POINT: Color;
104
+
101
105
  declare const ERROR_COLOR: Color;
102
106
  declare const ERROR_BACKGROUND_COLOR: Color;
103
107
 
@@ -181,6 +185,7 @@ declare const colors_d_ROYAL_BLUE_VIVID: typeof ROYAL_BLUE_VIVID;
181
185
  declare const colors_d_ASTRAL_BLUE: typeof ASTRAL_BLUE;
182
186
  declare const colors_d_SAPPHIRE_BLUE: typeof SAPPHIRE_BLUE;
183
187
  declare const colors_d_PEACOCK_BLUE: typeof PEACOCK_BLUE;
188
+ declare const colors_d_HAWKES_BLUE: typeof HAWKES_BLUE;
184
189
  declare const colors_d_FOREST_GREEN: typeof FOREST_GREEN;
185
190
  declare const colors_d_MEADOW_GREEN: typeof MEADOW_GREEN;
186
191
  declare const colors_d_POLAR_GREEN: typeof POLAR_GREEN;
@@ -203,6 +208,7 @@ declare const colors_d_RASPBERRY: typeof RASPBERRY;
203
208
  declare const colors_d_FANTASY_RED: typeof FANTASY_RED;
204
209
  declare const colors_d_COSMOS_RED: typeof COSMOS_RED;
205
210
  declare const colors_d_BLUSH_RED: typeof BLUSH_RED;
211
+ declare const colors_d_LUCKY_POINT: typeof LUCKY_POINT;
206
212
  declare const colors_d_ERROR_COLOR: typeof ERROR_COLOR;
207
213
  declare const colors_d_ERROR_BACKGROUND_COLOR: typeof ERROR_BACKGROUND_COLOR;
208
214
  declare const colors_d_ALERT_COLORS: typeof ALERT_COLORS;
@@ -261,6 +267,7 @@ declare namespace colors_d {
261
267
  colors_d_ASTRAL_BLUE as ASTRAL_BLUE,
262
268
  colors_d_SAPPHIRE_BLUE as SAPPHIRE_BLUE,
263
269
  colors_d_PEACOCK_BLUE as PEACOCK_BLUE,
270
+ colors_d_HAWKES_BLUE as HAWKES_BLUE,
264
271
  colors_d_FOREST_GREEN as FOREST_GREEN,
265
272
  colors_d_MEADOW_GREEN as MEADOW_GREEN,
266
273
  colors_d_POLAR_GREEN as POLAR_GREEN,
@@ -283,6 +290,7 @@ declare namespace colors_d {
283
290
  colors_d_FANTASY_RED as FANTASY_RED,
284
291
  colors_d_COSMOS_RED as COSMOS_RED,
285
292
  colors_d_BLUSH_RED as BLUSH_RED,
293
+ colors_d_LUCKY_POINT as LUCKY_POINT,
286
294
  colors_d_ERROR_COLOR as ERROR_COLOR,
287
295
  colors_d_ERROR_BACKGROUND_COLOR as ERROR_BACKGROUND_COLOR,
288
296
  colors_d_ALERT_COLORS as ALERT_COLORS,
@@ -372,12 +380,11 @@ declare const useOutsideClickHook = handler => {
372
380
  if (ref.current && !ref.current.contains(e.target)) {
373
381
  handler();
374
382
  }
383
+ };
375
384
 
376
- document.addEventListener("click", handleOutsideClick, true);
377
-
378
- return () => {
379
- document.removeEventListener("click", handleOutsideClick, true);
380
- };
385
+ document.addEventListener("click", handleOutsideClick, true);
386
+ return () => {
387
+ document.removeEventListener("click", handleOutsideClick, true);
381
388
  };
382
389
  }, [ref]);
383
390
 
@@ -491,15 +498,83 @@ declare function useToastNotification(
491
498
  options?: UseToastOptions
492
499
  ): UseToastResult;
493
500
 
501
+ declare function useConditionallyAddValidator(
502
+ condition,
503
+ validatorFn,
504
+ addValidator,
505
+ removeValidator
506
+ ) {
507
+ useEffect(() => {
508
+ if (condition) {
509
+ addValidator(validatorFn());
510
+ }
511
+ return () => {
512
+ // Remove validator when component unmounts
513
+ removeValidator(validatorFn());
514
+ };
515
+ }, [condition, addValidator, removeValidator]);
516
+ }
517
+
518
+ /**
519
+ * A custom hook to dynamically load the Cloudflare Turnstile script.
520
+ *
521
+ * @param {string} verifyURL - The URL of the Turnstile verification script.
522
+ */
523
+ declare const useTurnstileScript = verifyURL => {
524
+ const [scriptLoaded, setScriptLoaded] = useState(false);
525
+ const [scriptError, setScriptError] = useState(false);
526
+
527
+ const handleScriptError = () => {
528
+ setScriptError(true);
529
+ setScriptLoaded(false);
530
+ };
531
+
532
+ useEffect(() => {
533
+ if (typeof window === "undefined") {
534
+ setScriptLoaded(false);
535
+ return;
536
+ }
537
+ if (window.turnstile && window.turnstile.render) {
538
+ setScriptLoaded(true);
539
+ return;
540
+ }
541
+
542
+ const script = document.createElement("script");
543
+ script.src = `${verifyURL}?render=explicit`;
544
+ script.onload = () => {
545
+ setScriptLoaded(true);
546
+ };
547
+ script.onerror = () => {
548
+ handleScriptError();
549
+ };
550
+ script.onabort = () => {
551
+ handleScriptError();
552
+ };
553
+ script.defer = true;
554
+ document.getElementsByTagName("head")[0].appendChild(script);
555
+
556
+ return () => {
557
+ setScriptLoaded(false);
558
+ setScriptError(false);
559
+ };
560
+ }, [verifyURL]);
561
+
562
+ return { scriptLoaded, scriptError };
563
+ };
564
+
494
565
 
495
566
 
496
567
  declare const index_useScrollTo: typeof useScrollTo;
497
568
  declare const index_useToastNotification: typeof useToastNotification;
569
+ declare const index_useConditionallyAddValidator: typeof useConditionallyAddValidator;
570
+ declare const index_useTurnstileScript: typeof useTurnstileScript;
498
571
  declare namespace index {
499
572
  export {
500
573
  useOutsideClickHook as useOutsideClick,
501
574
  index_useScrollTo as useScrollTo,
502
575
  index_useToastNotification as useToastNotification,
576
+ index_useConditionallyAddValidator as useConditionallyAddValidator,
577
+ index_useTurnstileScript as useTurnstileScript,
503
578
  };
504
579
  }
505
580
 
@@ -528,6 +603,25 @@ interface AlertProps {
528
603
  declare const Alert: React.FC<Expand<AlertProps> &
529
604
  React.HTMLAttributes<HTMLElement>>;
530
605
 
606
+ interface BadgeProps {
607
+ label: string;
608
+ Icon?: JSX.Element;
609
+ iconOnLeft?: boolean;
610
+ variant?:
611
+ | "info"
612
+ | "warn"
613
+ | "primary"
614
+ | "primaryHeadline"
615
+ | "secondary"
616
+ | "secondaryHeadline"
617
+ | "success"
618
+ | "disabled";
619
+ id?: string;
620
+ extraStyles?: string;
621
+ }
622
+
623
+ declare const Badge: React.FC<Expand<BadgeProps> & HTMLAttributes<HTMLElement>>;
624
+
531
625
  interface ButtonWithActionProps {
532
626
  action?: (event: React.ChangeEvent<HTMLInputElement>) => void;
533
627
  disabled?: boolean;
@@ -539,6 +633,7 @@ interface ButtonWithActionProps {
539
633
  contentOverride?: boolean;
540
634
  extraStyles?: string;
541
635
  tabIndex?: string;
636
+ loadingColor?: string;
542
637
  }
543
638
 
544
639
  declare const ButtonWithAction: React.FC<Expand<ButtonWithActionProps> &
@@ -557,8 +652,10 @@ declare const ButtonWithLink: React.FC<Expand<ButtonWithLinkProps> &
557
652
  React.HTMLAttributes<HTMLElement>>;
558
653
 
559
654
  interface CardProps {
560
- text?: string;
655
+ text?: string | React.ReactNode;
656
+ textAs?: string;
561
657
  titleText?: string;
658
+ titleAs?: string;
562
659
  titleVariant?: string;
563
660
  extraStyles?: string;
564
661
  imgSrc?: string;
@@ -576,17 +673,89 @@ interface CardProps {
576
673
  | "revert"
577
674
  | "revert-layer"
578
675
  | "unset";
676
+ hasContentBackgroundColor?: string;
579
677
  headerAs?: string;
580
678
  headerText?: string;
581
679
  headerVariant?: string;
582
680
  borderRadius?: string;
583
681
  width?: string;
584
682
  padding?: string;
683
+ showQuitLink?: boolean;
684
+ onQuitClick?: (
685
+ event: React.MouseEvent<HTMLElement> | React.TouchEvent<HTMLElement>
686
+ ) => void;
585
687
  }
586
688
 
587
689
  declare const Card: React.FC<Expand<CardProps> &
588
690
  React.HTMLAttributes<HTMLElement>>;
589
691
 
692
+ interface DropdownThemeValues {
693
+ selectedColor?: string;
694
+ hoverColor?: string;
695
+ focusColor?: string;
696
+ }
697
+
698
+ interface DropdownProps {
699
+ /** Placeholder text displayed when no value is selected */
700
+ placeholder?: string;
701
+ /** Array of options to display in the dropdown */
702
+ options: FormSelectOption[];
703
+ /** Currently selected value */
704
+ value?: string;
705
+ /** Whether the dropdown is currently open */
706
+ isOpen?: boolean;
707
+ /** Whether the dropdown is in an error state */
708
+ isError?: boolean;
709
+ /** Callback fired when an option is selected */
710
+ onSelect: (value: string) => void;
711
+ /** Array of values that should be disabled */
712
+ disabledValues?: string[];
713
+ /** Callback fired when the dropdown is clicked */
714
+ onClick?: () => void;
715
+ /** Theme values for styling the dropdown */
716
+ themeValues?: DropdownThemeValues;
717
+ /** Maximum height of the dropdown content */
718
+ maxHeight?: string;
719
+ /** Whether the dropdown width should fit its content */
720
+ widthFitOptions?: boolean;
721
+ /** Whether the dropdown is disabled */
722
+ disabled?: boolean;
723
+ /** Whether to show title attributes on options */
724
+ hasTitles?: boolean;
725
+ /** Whether to auto-erase type-ahead input after timeout */
726
+ autoEraseTypeAhead?: boolean;
727
+ /** ID of the element that labels this dropdown */
728
+ ariaLabelledby?: string;
729
+ /** ID of the element that describes this dropdown */
730
+ ariaDescribedby?: string;
731
+ /** Autocomplete attribute value for browser autofill */
732
+ autocompleteValue?: string;
733
+ /** Whether to use smooth scrolling when scrolling to selected item */
734
+ smoothScroll?: boolean;
735
+ /** Whether the dropdown has an invalid value */
736
+ ariaInvalid?: boolean;
737
+ /** Whether the dropdown is required */
738
+ isRequired?: boolean;
739
+ /** Custom CSS styles */
740
+ extraStyles?: string;
741
+ }
742
+
743
+ declare const Dropdown: React.FC<Expand<DropdownProps> &
744
+ Omit<React.HTMLAttributes<HTMLElement>, "onSelect">>;
745
+
746
+ type SortOrder = "asc" | "desc" | null;
747
+ interface SortableTableHeadingProps {
748
+ ariaControlsId: string;
749
+ disabled?: boolean; // Useful if you want to render the component while data is fetching
750
+ displayName: string; // The name displayed in the <th> element
751
+ onSortChange: () => void;
752
+ sortOrder: SortOrder;
753
+ extraStyles?: string;
754
+ }
755
+
756
+ declare const SortableTableHeading: React.FC<Expand<SortableTableHeadingProps> &
757
+ React.HTMLAttributes<HTMLElement>>;
758
+
590
759
  interface FormInputProps {
591
760
  extraStyles?: string;
592
761
  field?: Field;
@@ -600,18 +769,51 @@ interface FormInputProps {
600
769
  showErrors?: boolean;
601
770
  type?: string;
602
771
  formatter?: string | null;
603
- decorator?: boolean;
772
+ decorator?: string;
604
773
  themeValues?: object;
605
774
  background?: string;
606
775
  customHeight?: string;
607
776
  autocompleteValue?: string;
608
777
  removeFromValue?: RegExp;
609
778
  dataQa?: string | null;
779
+ isRequired?: boolean;
780
+ errorFieldExtraStyles?: string;
781
+ showFieldErrorRow?: boolean;
782
+ labelTextVariant?: string;
783
+ errorTextVariant?: string;
610
784
  }
611
785
 
612
786
  declare const FormInput: React.FC<Expand<FormInputProps> &
613
787
  React.HTMLAttributes<HTMLElement>>;
614
788
 
789
+ interface FormTextareaProps {
790
+ extraStyles?: string;
791
+ field?: Field;
792
+ fieldActions?: FieldActions;
793
+ disabled?: boolean;
794
+ errorMessages?: ErrorMessageDictionary;
795
+ helperModal?: boolean;
796
+ labelTextWhenNoError?: string;
797
+ showErrors?: boolean;
798
+ themeValues?: object;
799
+ customHeight?: string;
800
+ removeFromValue?: RegExp;
801
+ dataQa?: string | null;
802
+ isRequired?: boolean;
803
+ errorFieldExtraStyles?: string;
804
+ showFieldErrorRow?: boolean;
805
+ labelTextVariant?: string;
806
+ errorTextVariant?: string;
807
+ resize?: "none" | "horizontal" | "vertical" | "both";
808
+ rows?: number;
809
+ cols?: number;
810
+ placeholder?: string;
811
+ maxLength?: number;
812
+ }
813
+
814
+ declare const FormTextarea: React.FC<Expand<FormTextareaProps> &
815
+ React.HTMLAttributes<HTMLTextAreaElement>>;
816
+
615
817
  interface FormSelectProps {
616
818
  disabled?: boolean;
617
819
  dropdownMaxHeight?: string;
@@ -629,6 +831,9 @@ interface FormSelectProps {
629
831
  smoothScroll?: boolean;
630
832
  dataQa?: string | null;
631
833
  widthFitOptions?: boolean;
834
+ isRequired?: boolean;
835
+ labelTextVariant?: string;
836
+ errorLabelTextVariant?: string;
632
837
  }
633
838
 
634
839
  declare const FormSelect: React.FC<Expand<FormSelectProps> &
@@ -691,6 +896,20 @@ interface BankIconLargeProps {
691
896
  declare const BankIconLarge: React.FC<Expand<BankIconLargeProps> &
692
897
  React.HTMLAttributes<HTMLElement>>;
693
898
 
899
+ interface CaretArrowDownProps {
900
+ color?: string;
901
+ }
902
+
903
+ declare const CaretArrowDown: React.FC<Expand<CaretArrowDownProps> &
904
+ React.HTMLAttributes<HTMLElement>>;
905
+
906
+ interface CaretArrowUpProps {
907
+ color?: string;
908
+ }
909
+
910
+ declare const CaretArrowUp: React.FC<Expand<CaretArrowUpProps> &
911
+ React.HTMLAttributes<HTMLElement>>;
912
+
694
913
  interface ChargebackIconMediumProps {
695
914
  color?: string;
696
915
  iconIndex?: number;
@@ -755,7 +974,7 @@ declare const StandardCheckoutImage: JSX.Element;
755
974
 
756
975
  declare const KioskImage: JSX.Element;
757
976
 
758
- declare const PointOfSaleImage: JSX.Element;
977
+ declare const CashieringImage: JSX.Element;
759
978
 
760
979
  interface SuccessfulIconMediumProps {
761
980
  iconIndex?: number;
@@ -795,6 +1014,8 @@ declare const CloseIcon: JSX.Element;
795
1014
 
796
1015
  declare const TrashIconV2: JSX.Element;
797
1016
 
1017
+ declare const PaydotImage: JSX.Element;
1018
+
798
1019
  interface BoxProps {
799
1020
  autocompleteValue?: string;
800
1021
  padding?: string;
@@ -913,6 +1134,7 @@ interface ExternalLinkProps {
913
1134
  weight?: string;
914
1135
  extraStyles?: string;
915
1136
  variant?: string;
1137
+ containerTabIndex?: string;
916
1138
  tabIndex?: string;
917
1139
  dataQa?: string;
918
1140
  ariaLabel?: string;
@@ -993,6 +1215,30 @@ interface ParagraphProps {
993
1215
  declare const Paragraph: React.FC<Expand<ParagraphProps> &
994
1216
  React.HTMLAttributes<HTMLElement>>;
995
1217
 
1218
+ // Keys within this array will be referenced based on the
1219
+ // `valuesToSearchFor` array.
1220
+ type FlexibleObjectArray = Array<{ [key: string]: any }>;
1221
+
1222
+ interface SearchProps {
1223
+ field: Field;
1224
+ fieldActions: FieldActions;
1225
+ dataset: FlexibleObjectArray;
1226
+ disableFilter?: boolean;
1227
+ valuesToSearchFor: string[];
1228
+ onSearchCallback: () => void;
1229
+ onClearCallback: () => void;
1230
+ disabled?: boolean;
1231
+ placeholder?: string;
1232
+ searchOnKeypress?: boolean;
1233
+ width?: string;
1234
+ autocompleteValue?: string;
1235
+ themeValues?: object;
1236
+ extraStyles?: string;
1237
+ }
1238
+
1239
+ declare const Search: React.FC<Expand<SearchProps> &
1240
+ React.HTMLAttributes<HTMLElement>>;
1241
+
996
1242
  interface SearchableSelectProps {
997
1243
  autocompleteValue?: boolean;
998
1244
  items: SearchableSelectOption[];
@@ -1107,7 +1353,7 @@ interface CollapsibleSectionProps {
1107
1353
  ) => void;
1108
1354
  isMobile?: boolean;
1109
1355
  supportsTouch?: boolean;
1110
- title?: string;
1356
+ title?: string | JSX.Element;
1111
1357
  customPadding?: string;
1112
1358
  initiallyOpen?: boolean;
1113
1359
  openHeight?: string;
@@ -1122,7 +1368,7 @@ interface CollapsibleSectionProps {
1122
1368
  }
1123
1369
 
1124
1370
  declare const CollapsibleSection: React.FC<Expand<CollapsibleSectionProps> &
1125
- React.HTMLAttributes<HTMLElement>>;
1371
+ Omit<React.HTMLAttributes<HTMLElement>, "title">>; // ommitting title prop to avoid conflicts with component's title prop
1126
1372
 
1127
1373
  interface CopyableProps {
1128
1374
  content: string;
@@ -1218,6 +1464,7 @@ interface RadioGroupProps {
1218
1464
  handleChange?: () => void;
1219
1465
  heading?: ReactNode;
1220
1466
  headingText: string;
1467
+ headingFontSize?: string;
1221
1468
  }
1222
1469
 
1223
1470
  declare const RadioGroup: React.FC<Expand<RadioGroupProps> &
@@ -1262,6 +1509,33 @@ interface PopupMenuProps {
1262
1509
  declare const PopupMenu: React.FC<Expand<PopupMenuProps> &
1263
1510
  React.HTMLAttributes<HTMLElement>>;
1264
1511
 
1512
+ interface MultipleSelectFilterProps {
1513
+ actions: FieldActions;
1514
+ autocompleteValue?: boolean;
1515
+ btnContentOverride?: JSX.Element;
1516
+ btnExtraStyles?: string;
1517
+ disabled: boolean;
1518
+ dropdownExtraStyles?: string;
1519
+ extraStyles?: string;
1520
+ fields: {
1521
+ searchTerm: Field;
1522
+ };
1523
+ filterLabel?: string;
1524
+ icon?: JSX.Element;
1525
+ maxSelections?: number;
1526
+ name: string;
1527
+ onApply?: () => void;
1528
+ onClear?: () => void;
1529
+ options: SearchableSelectOption[];
1530
+ placeholder?: string;
1531
+ searchable?: boolean;
1532
+ themeValues?: any[];
1533
+ truncateBtnTextWidth?: string;
1534
+ }
1535
+
1536
+ declare const MultipleSelectFilter: React.FC<Expand<MultipleSelectFilterProps> &
1537
+ React.HTMLAttributes<HTMLElement>>;
1538
+
1265
1539
  interface DefaultPageTemplateProps {
1266
1540
  content: JSX.Element;
1267
1541
  header?: JSX.Element;
@@ -1276,5 +1550,5 @@ interface DefaultPageTemplateProps {
1276
1550
  declare const DefaultPageTemplate: React.FC<Expand<DefaultPageTemplateProps> &
1277
1551
  React.HTMLAttributes<HTMLElement>>;
1278
1552
 
1279
- export { AddValidatorAction, Alert, AlertProps, ArrowDownCircleIconSmall, ArrowDownCircleIconSmallProps, ArrowLeftCircleIconMedium, ArrowLeftCircleIconMediumProps, ArrowLeftCircleIconSmall, ArrowLeftCircleIconSmallProps, ArrowRightCircleIconSmall, ArrowRightCircleIconSmallProps, ArrowUpCircleIconSmall, ArrowUpCircleIconSmallProps, BankIconLarge, BankIconLargeProps, Box, BoxProps, ButtonWithAction, ButtonWithActionProps, ButtonWithLink, ButtonWithLinkProps, Card, CardProps, Center, CenterProps, ChargebackIconMedium, ChargebackIconMediumProps, ChargebackIconSmall, ChargebackIconSmallProps, ChargebackReversalIconMedium, ChargebackReversalIconMediumProps, ChargebackReversalIconSmall, ChargebackReversalIconSmallProps, ClearAction, CloseIcon, Cluster, ClusterProps, CollapsibleSection, CollapsibleSectionProps, Copyable, CopyableProps, Cover, CoverProps, DefaultPageTemplate, DefaultPageTemplateProps, EditableTable, EditableTableProps, ErrorMessageDictionary, ExternalLink, ExternalLinkProps, Field, FieldActionPayload, FieldActions, FooterWithSubfooter, FooterWithSubfooterProps, FormInput, FormInputProps, FormSelect, FormSelectOption, FormSelectProps, GuidedCheckoutImage, HistoryIconSmall, InternalLink, InternalLinkProps, KebabMenuIcon, KioskImage, Loading, LoadingProps, MultiCartIcon, NavFooter, NavFooterProps, NavHeader, NavHeaderProps, NavTabs, NavTabsProps, Paragraph, ParagraphProps, PointOfSaleImage, Popover, PopoverProps, PopupMenu, PopupMenuProps, ProfileImage, RadioGroup, RadioGroupProps, ReduxAction, RefundIconMedium, RefundIconMediumProps, RefundIconSmall, RefundIconSmallProps, RemoveValidatorAction, RevenueManagementImage, SearchableSelect, SearchableSelectOption, SearchableSelectProps, SetAction, Spinner, SpinnerProps, Stack, StackProps, StandardCheckoutImage, SuccessfulIconMedium, SuccessfulIconMediumProps, SuccessfulIconSmall, SuccessfulIconSmallProps, Switcher, SwitcherProps, Table, TableBody, TableBodyProps, TableCell, TableCellProps, TableHead, TableHeadProps, TableHeading, TableHeadingProps, TableListItem, TableListItemProps, TableProps, TableRow, TableRowProps, Text, TextProps, Title, TitleProps, ToastNotification, ToastNotificationProps, ToastVariants, TrashIconV2, ValidatorFn, XCircleIconMedium, XCircleIconMediumProps, XCircleIconSmall, XCircleIconSmallProps, index_d as constants, index as hooks };
1553
+ export { AddValidatorAction, Alert, AlertProps, ArrowDownCircleIconSmall, ArrowDownCircleIconSmallProps, ArrowLeftCircleIconMedium, ArrowLeftCircleIconMediumProps, ArrowLeftCircleIconSmall, ArrowLeftCircleIconSmallProps, ArrowRightCircleIconSmall, ArrowRightCircleIconSmallProps, ArrowUpCircleIconSmall, ArrowUpCircleIconSmallProps, Badge, BadgeProps, BankIconLarge, BankIconLargeProps, Box, BoxProps, ButtonWithAction, ButtonWithActionProps, ButtonWithLink, ButtonWithLinkProps, Card, CardProps, CaretArrowDown, CaretArrowDownProps, CaretArrowUp, CaretArrowUpProps, CashieringImage, Center, CenterProps, ChargebackIconMedium, ChargebackIconMediumProps, ChargebackIconSmall, ChargebackIconSmallProps, ChargebackReversalIconMedium, ChargebackReversalIconMediumProps, ChargebackReversalIconSmall, ChargebackReversalIconSmallProps, ClearAction, CloseIcon, Cluster, ClusterProps, CollapsibleSection, CollapsibleSectionProps, Copyable, CopyableProps, Cover, CoverProps, DefaultPageTemplate, DefaultPageTemplateProps, Dropdown, DropdownProps, DropdownThemeValues, EditableTable, EditableTableProps, ErrorMessageDictionary, ExternalLink, ExternalLinkProps, Field, FieldActionPayload, FieldActions, FooterWithSubfooter, FooterWithSubfooterProps, FormInput, FormInputProps, FormSelect, FormSelectOption, FormSelectProps, FormTextarea, FormTextareaProps, GuidedCheckoutImage, HistoryIconSmall, InternalLink, InternalLinkProps, KebabMenuIcon, KioskImage, Loading, LoadingProps, MultiCartIcon, MultipleSelectFilter, MultipleSelectFilterProps, NavFooter, NavFooterProps, NavHeader, NavHeaderProps, NavTabs, NavTabsProps, Paragraph, ParagraphProps, PaydotImage, Popover, PopoverProps, PopupMenu, PopupMenuProps, ProfileImage, RadioGroup, RadioGroupProps, ReduxAction, RefundIconMedium, RefundIconMediumProps, RefundIconSmall, RefundIconSmallProps, RemoveValidatorAction, RevenueManagementImage, Search, SearchProps, SearchableSelect, SearchableSelectOption, SearchableSelectProps, SetAction, SortOrder, SortableTableHeading, SortableTableHeadingProps, Spinner, SpinnerProps, Stack, StackProps, StandardCheckoutImage, SuccessfulIconMedium, SuccessfulIconMediumProps, SuccessfulIconSmall, SuccessfulIconSmallProps, Switcher, SwitcherProps, Table, TableBody, TableBodyProps, TableCell, TableCellProps, TableHead, TableHeadProps, TableHeading, TableHeadingProps, TableListItem, TableListItemProps, TableProps, TableRow, TableRowProps, Text, TextProps, Title, TitleProps, ToastNotification, ToastNotificationProps, ToastVariants, TrashIconV2, ValidatorFn, XCircleIconMedium, XCircleIconMediumProps, XCircleIconSmall, XCircleIconSmallProps, index_d as constants, index as hooks };
1280
1554
  //# sourceMappingURL=index.d.ts.map