@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.
- package/README.md +33 -11
- package/ai-docs/architecture.md +71 -0
- package/ai-docs/components.md +167 -0
- package/ai-docs/conventions.md +162 -0
- package/ai-docs/figma-mcp.md +66 -0
- package/ai-docs/integration-guidelines.md +142 -0
- package/dist/index.cjs.js +27805 -25779
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +286 -12
- package/dist/index.esm.js +26589 -24593
- package/dist/index.esm.js.map +1 -1
- package/package.json +17 -8
- package/src/components/atoms/alert/Alert.js +10 -1
- package/src/components/atoms/alert/Alert.mdx +19 -0
- package/src/components/atoms/alert/Alert.stories.js +150 -0
- package/src/components/atoms/badge/Badge.js +39 -25
- package/src/components/atoms/badge/Badge.mdx +27 -0
- package/src/components/atoms/badge/Badge.stories.js +168 -0
- package/src/components/atoms/badge/Badge.theme.js +49 -1
- package/src/components/atoms/badge/index.d.ts +11 -0
- package/src/components/atoms/breadcrumb/Breadcrumb.mdx +21 -0
- package/src/components/atoms/breadcrumb/Breadcrumb.stories.js +47 -0
- package/src/components/atoms/button-with-action/ButtonWithAction.js +3 -29
- package/src/components/atoms/button-with-action/ButtonWithAction.stories.js +14 -1
- package/src/components/atoms/button-with-action/ButtonWithAction.theme.js +97 -56
- package/src/components/atoms/button-with-action/index.d.ts +1 -0
- package/src/components/atoms/button-with-link/ButtonWithLink.mdx +21 -0
- package/src/components/atoms/button-with-link/ButtonWithLink.stories.js +161 -0
- package/src/components/atoms/card/Card.js +22 -1
- package/src/components/atoms/card/Card.mdx +41 -0
- package/src/components/atoms/card/Card.stories.js +360 -0
- package/src/components/atoms/card/Card.theme.js +2 -0
- package/src/components/atoms/card/CardText.js +39 -11
- package/src/components/atoms/card/index.d.ts +8 -1
- package/src/components/atoms/card-type/CardType.js +55 -0
- package/src/components/atoms/card-type/CardType.stories.js +86 -0
- package/src/components/atoms/card-type/index.js +3 -0
- package/src/components/atoms/checkbox/Checkbox.js +121 -93
- package/src/components/atoms/checkbox/Checkbox.mdx +15 -0
- package/src/components/atoms/checkbox/Checkbox.oldstories.js +17 -13
- package/src/components/atoms/checkbox/Checkbox.stories.js +149 -0
- package/src/components/atoms/checkbox/Checkbox.theme.js +6 -2
- package/src/components/atoms/country-dropdown/CountryDropdown.mdx +36 -0
- package/src/components/atoms/country-dropdown/CountryDropdown.stories.js +76 -0
- package/src/components/atoms/detail/Detail.js +0 -26
- package/src/components/atoms/detail/Detail.mdx +32 -0
- package/src/components/atoms/detail/Detail.stories.js +156 -0
- package/src/components/atoms/display-box/DisplayBox.mdx +11 -0
- package/src/components/atoms/display-box/DisplayBox.stories.js +69 -0
- package/src/components/atoms/dropdown/Dropdown.js +17 -5
- package/src/components/atoms/dropdown/Dropdown.mdx +65 -0
- package/src/components/atoms/dropdown/Dropdown.stories.js +128 -0
- package/src/components/atoms/dropdown/Dropdown.theme.js +6 -6
- package/src/components/atoms/dropdown/DropdownIcon.js +1 -0
- package/src/components/atoms/dropdown/DropdownIconV2.js +50 -0
- package/src/components/atoms/dropdown/index.d.ts +59 -0
- package/src/components/atoms/form-layouts/FormInput.js +105 -61
- package/src/components/atoms/form-layouts/FormInput.mdx +38 -0
- package/src/components/atoms/form-layouts/FormInput.stories.js +219 -0
- package/src/components/atoms/form-layouts/FormTextarea.js +207 -0
- package/src/components/atoms/form-layouts/FormTextarea.mdx +48 -0
- package/src/components/atoms/form-layouts/FormTextarea.stories.js +265 -0
- package/src/components/atoms/form-layouts/index.d.ts +34 -1
- package/src/components/atoms/form-layouts/index.js +3 -1
- package/src/components/atoms/form-select/FormSelect.js +5 -3
- package/src/components/atoms/form-select/FormSelect.mdx +42 -0
- package/src/components/atoms/form-select/FormSelect.stories.js +76 -0
- package/src/components/atoms/form-select/FormSelect.styled.js +2 -2
- package/src/components/atoms/form-select/FormSelect.theme.js +6 -3
- package/src/components/atoms/form-select/index.d.ts +3 -0
- package/src/components/atoms/formatted-address/FormattedAddress.mdx +13 -0
- package/src/components/atoms/formatted-address/FormattedAddress.stories.js +138 -0
- package/src/components/atoms/formatted-bank-account/FormattedBankAccount.js +2 -2
- package/src/components/atoms/formatted-bank-account/FormattedBankAccount.mdx +17 -0
- package/src/components/atoms/formatted-bank-account/FormattedBankAccount.stories.js +57 -0
- package/src/components/atoms/formatted-bank-account/FormattedBankAccount.theme.js +2 -2
- package/src/components/atoms/formatted-credit-card/FormattedCreditCard.js +14 -10
- package/src/components/atoms/formatted-credit-card/FormattedCreditCard.mdx +40 -0
- package/src/components/atoms/formatted-credit-card/FormattedCreditCard.stories.js +74 -0
- package/src/components/atoms/formatted-credit-card/FormattedCreditCard.theme.js +2 -2
- package/src/components/atoms/icons/AgencyIcon.js +24 -0
- package/src/components/atoms/icons/AmExLargeIcon.js +54 -0
- package/src/components/atoms/icons/AmExSmallIcon.js +54 -0
- package/src/components/atoms/icons/AutopayIcon.js +9 -1
- package/src/components/atoms/icons/BankGenericSmallIcon.js +48 -0
- package/src/components/atoms/icons/CaretArrowDown.d.ts +9 -0
- package/src/components/atoms/icons/CaretArrowDown.js +22 -0
- package/src/components/atoms/icons/CaretArrowUp.d.ts +9 -0
- package/src/components/atoms/icons/CaretArrowUp.js +22 -0
- package/src/components/atoms/icons/CarrotIcon.js +2 -0
- package/src/components/atoms/icons/CashSmallIcon.js +21 -0
- package/src/components/atoms/icons/CashieringImage.d.ts +1 -0
- package/src/components/atoms/icons/CashieringImage.js +254 -0
- package/src/components/atoms/icons/CheckboxCheckmarkIcon.js +45 -0
- package/src/components/atoms/icons/CustomerSearchIcon.js +30 -79
- package/src/components/atoms/icons/DiscoverLargeIcon.js +137 -0
- package/src/components/atoms/icons/DiscoverSmallIcon.js +137 -0
- package/src/components/atoms/icons/ExternalLinkIcon.js +10 -2
- package/src/components/atoms/icons/GenericCardLarge.js +1 -1
- package/src/components/atoms/icons/GenericSmallIcon.js +27 -0
- package/src/components/atoms/icons/GuidedCheckoutImage.js +105 -26
- package/src/components/atoms/icons/IconAdd.js +2 -2
- package/src/components/atoms/icons/Icons.mdx +40 -0
- package/src/components/atoms/icons/Icons.stories.js +343 -0
- package/src/components/atoms/icons/KioskImage.js +223 -338
- package/src/components/atoms/icons/MasterCardLargeIcon.js +35 -0
- package/src/components/atoms/icons/MasterCardSmallIcon.js +35 -0
- package/src/components/atoms/icons/{NoCustomerResultsIcon.js → NoResultsIcon.js} +10 -6
- package/src/components/atoms/icons/NotFoundIcon.js +70 -333
- package/src/components/atoms/icons/OverageIcon.js +27 -0
- package/src/components/atoms/icons/PaydotImage.d.ts +1 -0
- package/src/components/atoms/icons/PaydotImage.js +46 -0
- package/src/components/atoms/icons/PaymentSearchIcon.js +7 -42
- package/src/components/atoms/icons/PaymentStatusIcon.d.ts +1 -0
- package/src/components/atoms/icons/PaymentStatusIcon.js +28 -0
- package/src/components/atoms/icons/PeriscopeFailedIcon.js +2 -2
- package/src/components/atoms/icons/PersonIcon.d.ts +1 -0
- package/src/components/atoms/icons/PersonIcon.js +28 -0
- package/src/components/atoms/icons/ProfileImage.js +58 -37
- package/src/components/atoms/icons/RevenueManagementImage.js +138 -393
- package/src/components/atoms/icons/ReversalNeededIcon.js +27 -0
- package/src/components/atoms/icons/SearchIcon.js +4 -3
- package/src/components/atoms/icons/ShortageIcon.js +21 -0
- package/src/components/atoms/icons/StandardCheckoutImage.js +105 -336
- package/src/components/atoms/icons/SuccessfulIconMedium.js +3 -2
- package/src/components/atoms/icons/VisaLargeIcon.js +40 -0
- package/src/components/atoms/icons/VisaSmallIcon.js +40 -0
- package/src/components/atoms/icons/WireSmallIcon.js +22 -0
- package/src/components/atoms/icons/icons.oldstories.js +47 -31
- package/src/components/atoms/icons/index.d.ts +4 -1
- package/src/components/atoms/icons/index.js +47 -7
- package/src/components/atoms/index.d.ts +4 -0
- package/src/components/atoms/index.js +3 -1
- package/src/components/atoms/jumbo/Jumbo.js +18 -3
- package/src/components/atoms/labeled-amount/LabeledAmount.mdx +23 -0
- package/src/components/atoms/labeled-amount/LabeledAmount.stories.js +118 -0
- package/src/components/atoms/layouts/Box.styled.js +34 -22
- package/src/components/atoms/layouts/Center.styled.js +2 -0
- package/src/components/atoms/layouts/Motion.js +25 -6
- package/src/components/atoms/layouts/Motion.styled.js +36 -0
- package/src/components/atoms/layouts/Stack.js +2 -0
- package/src/components/atoms/layouts/Stack.styled.js +2 -0
- package/src/components/atoms/line-item/LineItem.mdx +28 -0
- package/src/components/atoms/line-item/LineItem.stories.js +95 -0
- package/src/components/atoms/link/ExternalLink.d.ts +1 -0
- package/src/components/atoms/link/ExternalLink.js +37 -19
- package/src/components/atoms/link/ExternalLink.styled.js +2 -0
- package/src/components/atoms/link/InternalLink.js +11 -1
- package/src/components/atoms/link/InternalLink.styled.js +22 -2
- package/src/components/atoms/link/Link.mdx +19 -0
- package/src/components/atoms/link/Link.stories.js +183 -0
- package/src/components/atoms/loading/Loading.mdx +13 -0
- package/src/components/atoms/loading/Loading.stories.js +22 -0
- package/src/components/atoms/loading-line/LoadingLine.js +23 -11
- package/src/components/atoms/loading-line/LoadingLine.mdx +15 -0
- package/src/components/atoms/loading-line/LoadingLine.stories.js +132 -0
- package/src/components/atoms/loading-line/LoadingPill.styled.js +7 -6
- package/src/components/atoms/nav-footer/NavFooter.mdx +15 -0
- package/src/components/atoms/nav-footer/NavFooter.stories.js +244 -0
- package/src/components/atoms/nav-header/NavHeader.mdx +13 -0
- package/src/components/atoms/nav-header/NavHeader.stories.js +130 -0
- package/src/components/atoms/nav-tabs/NavTabs.mdx +30 -0
- package/src/components/atoms/nav-tabs/NavTabs.stories.js +49 -0
- package/src/components/atoms/password-requirements/PasswordRequirements.js +3 -3
- package/src/components/atoms/password-requirements/PasswordRequirements.mdx +39 -0
- package/src/components/atoms/password-requirements/PasswordRequirements.stories.js +139 -0
- package/src/components/atoms/placeholder/Placeholder.mdx +19 -0
- package/src/components/atoms/placeholder/Placeholder.stories.js +170 -0
- package/src/components/atoms/radio-button-with-label/RadioButtonWithLabel.js +13 -7
- package/src/components/atoms/radio-button-with-label/RadioButtonWithLabel.theme.js +9 -3
- package/src/components/atoms/search/Search.js +123 -0
- package/src/components/atoms/search/Search.oldstories.js +58 -0
- package/src/components/atoms/search/Search.theme.js +9 -0
- package/src/components/atoms/search/index.d.ts +27 -0
- package/src/components/atoms/search/index.js +3 -0
- package/src/components/atoms/searchable-select/SearchableSelect.mdx +44 -0
- package/src/components/atoms/searchable-select/SearchableSelect.stories.js +137 -0
- package/src/components/atoms/sortable-table-heading/SortableTableHeading.js +47 -0
- package/src/components/atoms/sortable-table-heading/SortableTableHeading.oldstories.js +19 -0
- package/src/components/atoms/sortable-table-heading/SortableTableHeading.theme.js +9 -0
- package/src/components/atoms/sortable-table-heading/index.d.ts +15 -0
- package/src/components/atoms/sortable-table-heading/index.js +3 -0
- package/src/components/atoms/spinner/Spinner.js +2 -1
- package/src/components/atoms/state-province-dropdown/StateProvinceDropdown.mdx +36 -0
- package/src/components/atoms/state-province-dropdown/StateProvinceDropdown.stories.js +78 -0
- package/src/components/atoms/state-province-dropdown/options.js +4 -1
- package/src/components/atoms/tab/Tab.js +2 -2
- package/src/components/atoms/table/Table.mdx +71 -0
- package/src/components/atoms/table/Table.oldstories.js +84 -0
- package/src/components/atoms/table/Table.stories.js +65 -0
- package/src/components/atoms/table/TableRow.js +1 -0
- package/src/components/atoms/title/Title.js +0 -23
- package/src/components/atoms/title/Title.mdx +26 -0
- package/src/components/atoms/title/Title.stories.js +144 -0
- package/src/components/atoms/title/Title.theme.js +3 -0
- package/src/components/atoms/toggle-switch/ToggleSwitch.js +66 -48
- package/src/components/atoms/toggle-switch/ToggleSwitch.mdx +17 -0
- package/src/components/atoms/toggle-switch/ToggleSwitch.stories.js +111 -0
- package/src/components/atoms/toggle-switch/ToggleSwitch.theme.js +8 -5
- package/src/components/atoms/typeahead-input/TypeaheadInput.mdx +13 -0
- package/src/components/atoms/typeahead-input/TypeaheadInput.stories.js +63 -0
- package/src/components/atoms/wallet-name/WalletName.js +6 -4
- package/src/components/atoms/wallet-name/WalletName.oldstories.js +26 -1
- package/src/components/atoms/wallet-name/index.d.ts +2 -0
- package/src/components/molecules/address-form/AddressForm.mdx +18 -0
- package/src/components/molecules/address-form/AddressForm.stories.js +224 -0
- package/src/components/molecules/banner/Banner.mdx +23 -0
- package/src/components/molecules/banner/Banner.stories.js +125 -0
- package/src/components/molecules/change-password-form/ChangePasswordForm.mdx +15 -0
- package/src/components/molecules/change-password-form/ChangePasswordForm.stories.js +206 -0
- package/src/components/molecules/collapsible-section/CollapsibleSection.js +1 -1
- package/src/components/molecules/collapsible-section/CollapsibleSection.mdx +15 -0
- package/src/components/molecules/collapsible-section/CollapsibleSection.stories.js +217 -0
- package/src/components/molecules/collapsible-section/index.d.ts +2 -2
- package/src/components/molecules/contact-card/ContactCard.js +157 -0
- package/src/components/molecules/contact-card/ContactCard.stories.js +80 -0
- package/src/components/molecules/contact-card/ContactCard.styled.js +44 -0
- package/src/components/molecules/contact-card/index.d.ts +16 -0
- package/src/components/molecules/contact-card/index.js +3 -0
- package/src/components/molecules/edit-name-form/EditNameForm.mdx +13 -0
- package/src/components/molecules/edit-name-form/EditNameForm.stories.js +117 -0
- package/src/components/molecules/editable-list/EditableList.js +6 -1
- package/src/components/molecules/email-form/EmailForm.js +9 -1
- package/src/components/molecules/email-form/EmailForm.state.js +1 -1
- package/src/components/molecules/email-form/EmailForm.stories.js +210 -0
- package/src/components/molecules/forgot-password-form/ForgotPasswordForm.js +2 -1
- package/src/components/molecules/hero-image/HeroImage.js +135 -0
- package/src/components/molecules/hero-image/HeroImage.mdx +15 -0
- package/src/components/molecules/hero-image/HeroImage.stories.js +149 -0
- package/src/components/molecules/hero-image/HeroImage.styled.js +83 -0
- package/src/components/molecules/hero-image/HeroImage.theme.js +109 -0
- package/src/components/molecules/hero-image/index.js +3 -0
- package/src/components/molecules/idle-modal/IdleModal.js +101 -0
- package/src/components/molecules/idle-modal/IdleModal.mdx +17 -0
- package/src/components/molecules/idle-modal/IdleModal.stories.js +180 -0
- package/src/components/molecules/idle-modal/index.d.ts +16 -0
- package/src/components/molecules/idle-modal/index.js +3 -0
- package/src/components/molecules/index.d.ts +1 -0
- package/src/components/molecules/index.js +7 -0
- package/src/components/molecules/link-card/LinkCard.js +31 -20
- package/src/components/molecules/link-card/LinkCard.mdx +17 -0
- package/src/components/molecules/link-card/LinkCard.stories.js +528 -0
- package/src/components/molecules/link-card/LinkCard.styled.js +28 -21
- package/src/components/molecules/link-card/LinkCard.theme.js +6 -4
- package/src/components/molecules/link-card/index.d.ts +3 -1
- package/src/components/molecules/login-form/LoginForm.js +2 -1
- package/src/components/molecules/login-form/LoginForm.mdx +16 -0
- package/src/components/molecules/login-form/LoginForm.stories.js +120 -0
- package/src/components/molecules/modal/Modal.mdx +17 -0
- package/src/components/molecules/modal/Modal.stories.js +362 -0
- package/src/components/molecules/modal/ModalControlV1.js +3 -0
- package/src/components/molecules/modal/ModalControlV2.js +2 -0
- package/src/components/molecules/modal/__private__/CloseButton.js +2 -1
- package/src/components/molecules/module/Module.mdx +17 -0
- package/src/components/molecules/module/Module.stories.js +273 -0
- package/src/components/molecules/multiple-select-filter/MultipleSelectFilter.js +229 -0
- package/src/components/molecules/multiple-select-filter/MultipleSelectFilter.oldstories.js +74 -0
- package/src/components/molecules/multiple-select-filter/MultipleSelectFilter.styled.js +65 -0
- package/src/components/molecules/multiple-select-filter/MultipleSelectFilter.theme.js +13 -0
- package/src/components/molecules/multiple-select-filter/__private__/ActionLinkButton.js +27 -0
- package/src/components/molecules/multiple-select-filter/__private__/FilterButton.js +97 -0
- package/src/components/molecules/multiple-select-filter/__private__/FilterDropdown.js +27 -0
- package/src/components/molecules/multiple-select-filter/__private__/FilterableList.js +146 -0
- package/src/components/molecules/multiple-select-filter/__private__/FilterableListItem.js +78 -0
- package/src/components/molecules/multiple-select-filter/__private__/SearchBox.js +41 -0
- package/src/components/molecules/multiple-select-filter/__private__/useKeyboardNavigation.js +84 -0
- package/src/components/molecules/multiple-select-filter/__private__/util.js +44 -0
- package/src/components/molecules/multiple-select-filter/index.d.ts +34 -0
- package/src/components/molecules/multiple-select-filter/index.js +3 -0
- package/src/components/molecules/nav-menu/NavMenuMobile.js +27 -29
- package/src/components/molecules/nav-menu/NavMenuMobile.mdx +21 -0
- package/src/components/molecules/nav-menu/NavMenuMobile.stories.js +100 -0
- package/src/components/molecules/obligation/Obligation.js +141 -3
- package/src/components/molecules/obligation/Obligation.mdx +23 -0
- package/src/components/molecules/obligation/Obligation.stories.js +642 -0
- package/src/components/molecules/obligation/icons/PropertyBusinessIcon.js +2 -2
- package/src/components/molecules/obligation/icons/PropertyCarIcon.js +2 -2
- package/src/components/molecules/obligation/icons/PropertyCommercialVehicleIcon.js +2 -2
- package/src/components/molecules/obligation/icons/PropertyGarageIcon.js +2 -2
- package/src/components/molecules/obligation/icons/PropertyLandIcon.js +2 -2
- package/src/components/molecules/obligation/icons/PropertyMotorcycleIcon.js +2 -2
- package/src/components/molecules/obligation/icons/PropertyPersonalIcon.js +2 -2
- package/src/components/molecules/obligation/icons/PropertyStorefrontIcon.js +2 -2
- package/src/components/molecules/obligation/modules/AmountModule.js +64 -38
- package/src/components/molecules/obligation/modules/AutopayModalModule.js +37 -12
- package/src/components/molecules/obligation/modules/InactiveControlsModule.js +56 -12
- package/src/components/molecules/obligation/modules/InactiveTitleModule.js +1 -1
- package/src/components/molecules/obligation/modules/PaymentDetailsActions.js +42 -10
- package/src/components/molecules/obligation/modules/RemoveAccountModalModule.js +4 -1
- package/src/components/molecules/pagination/Pagination.mdx +15 -0
- package/src/components/molecules/pagination/Pagination.stories.js +181 -0
- package/src/components/molecules/partial-amount-form/PartialAmountField.js +68 -29
- package/src/components/molecules/partial-amount-form/PartialAmountField.theme.js +7 -0
- package/src/components/molecules/payment-button-bar/PaymentButtonBar.js +15 -8
- package/src/components/molecules/payment-details/PaymentDetails.js +1 -2
- package/src/components/molecules/payment-details/PaymentDetails.oldstories.js +0 -1
- package/src/components/molecules/payment-form-ach/PaymentFormACH.js +2 -0
- package/src/components/molecules/payment-form-ach/PaymentFormACH.state.js +2 -2
- package/src/components/molecules/payment-form-card/PaymentFormCard.js +6 -2
- package/src/components/molecules/payment-form-card/PaymentFormCard.state.js +2 -1
- package/src/components/molecules/phone-form/PhoneForm.js +7 -1
- package/src/components/molecules/phone-form/PhoneForm.state.js +1 -1
- package/src/components/molecules/popover/Popover.js +1 -15
- package/src/components/molecules/popover/Popover.mdx +15 -0
- package/src/components/molecules/popover/Popover.stories.js +220 -0
- package/src/components/molecules/radio-group/RadioGroup.js +8 -3
- package/src/components/molecules/radio-group/index.d.ts +1 -0
- package/src/components/molecules/radio-section/InnerRadioSection.js +3 -3
- package/src/components/molecules/radio-section/RadioSection.js +87 -44
- package/src/components/molecules/radio-section/RadioSection.stories.js +142 -0
- package/src/components/molecules/radio-section/radio-button/RadioButton.js +9 -5
- package/src/components/molecules/registration-banner/RegistrationBanner.js +115 -0
- package/src/components/molecules/registration-banner/RegistrationBanner.mdx +15 -0
- package/src/components/molecules/registration-banner/RegistrationBanner.stories.js +80 -0
- package/src/components/molecules/registration-banner/RegistrationBanner.styled.js +46 -0
- package/src/components/molecules/registration-banner/RegistrationBanner.theme.js +6 -0
- package/src/components/molecules/registration-banner/index.d.ts +15 -0
- package/src/components/molecules/registration-banner/index.js +3 -0
- package/src/components/molecules/registration-form/RegistrationForm.js +2 -1
- package/src/components/molecules/tab-sidebar/TabSidebar.js +5 -3
- package/src/components/molecules/tabs/Tabs.js +25 -9
- package/src/components/molecules/tabs/Tabs.mdx +17 -0
- package/src/components/molecules/tabs/Tabs.stories.js +149 -0
- package/src/components/molecules/tabs/index.d.ts +21 -0
- package/src/components/molecules/terms-and-conditions-modal/TermsAndConditionsModal.js +1 -1
- package/src/components/molecules/terms-and-conditions-modal/TermsAndConditionsModal.stories.js +110 -0
- package/src/components/molecules/toast-notification/Toast.mdx +15 -0
- package/src/components/molecules/toast-notification/Toast.stories.js +183 -0
- package/src/components/molecules/toast-notification/ToastNotification.js +74 -43
- package/src/components/molecules/tooltip/Tooltip.js +269 -0
- package/src/components/molecules/tooltip/Tooltip.mdx +25 -0
- package/src/components/molecules/tooltip/Tooltip.stories.js +287 -0
- package/src/components/molecules/tooltip/Tooltip.theme.js +18 -0
- package/src/components/molecules/tooltip/index.d.ts +34 -0
- package/src/components/molecules/tooltip/index.js +3 -0
- package/src/components/molecules/turnstile-widget/TurnstileWidget.js +183 -0
- package/src/components/molecules/turnstile-widget/index.js +3 -0
- package/src/components/templates/sidebar-stack-content/SidebarStackContent.js +1 -1
- package/src/constants/colors.d.ts +4 -0
- package/src/constants/colors.js +8 -1
- package/src/constants/regex_constants.js +1 -1
- package/src/constants/style_constants.js +13 -0
- package/src/deprecated/spinner/Spinner.js +8 -20
- package/src/hooks/index.js +2 -0
- package/src/hooks/use-conditionally-add-validator/index.js +20 -0
- package/src/hooks/use-outside-click/index.js +4 -5
- package/src/hooks/use-turnstile-script/index.js +49 -0
- package/src/util/formats.js +6 -3
- package/src/util/general.js +67 -4
- package/src/util/idleTimerUtils.js +36 -0
- package/src/util/index.js +3 -1
- package/src/util/themeUtils.js +24 -14
- package/src/.DS_Store +0 -0
- package/src/components/.DS_Store +0 -0
- package/src/components/atoms/alert/Alert.oldstories.js +0 -28
- package/src/components/atoms/badge/Badge.oldstories.js +0 -33
- package/src/components/atoms/breadcrumb/Breadcrumb.oldstories.js +0 -38
- package/src/components/atoms/button-with-action/ButtonWithAction.oldstories.js +0 -56
- package/src/components/atoms/button-with-link/ButtonWithLink.oldstories.js +0 -32
- package/src/components/atoms/country-dropdown/CountryDropdown.oldstories.js +0 -42
- package/src/components/atoms/display-box/DisplayBox.oldstories.js +0 -25
- package/src/components/atoms/display-card/DisplayCard.js +0 -88
- package/src/components/atoms/display-card/DisplayCard.oldstories.js +0 -24
- package/src/components/atoms/display-card/index.js +0 -3
- package/src/components/atoms/dropdown/Dropdown.oldstories.js +0 -47
- package/src/components/atoms/form-select/FormSelect.oldstories.js +0 -50
- package/src/components/atoms/formatted-address/FormattedAddress.oldstories.js +0 -32
- package/src/components/atoms/icons/NoPaymentResultsIcon.js +0 -54
- package/src/components/atoms/icons/PointOfSaleImage.d.ts +0 -1
- package/src/components/atoms/icons/PointOfSaleImage.js +0 -439
- package/src/components/atoms/labeled-amount/LabeledAmount.oldstories.js +0 -42
- package/src/components/atoms/line-item/LineItem.oldstories.js +0 -28
- package/src/components/atoms/link/Link.oldstories.js +0 -57
- package/src/components/atoms/loading-line/LoadingLine.oldstories.js +0 -28
- package/src/components/atoms/nav-footer/NavFooter.oldstories.js +0 -31
- package/src/components/atoms/nav-header/NavHeader.oldstories.js +0 -29
- package/src/components/atoms/password-requirements/PasswordRequirements.oldstories.js +0 -75
- package/src/components/atoms/placeholder/Placeholder.oldstories.js +0 -42
- package/src/components/atoms/searchable-select/SearchableSelect.oldstories.js +0 -62
- package/src/components/atoms/state-province-dropdown/StateProvinceDropdown.oldstories.js +0 -53
- package/src/components/atoms/toggle-switch/ToggleSwitch.oldstories.js +0 -28
- package/src/components/molecules/.DS_Store +0 -0
- package/src/components/molecules/address-form/AddressForm.oldstories.js +0 -21
- package/src/components/molecules/banner/Banner.oldstories.js +0 -29
- package/src/components/molecules/change-password-form/ChangePasswordForm.oldstories.js +0 -22
- package/src/components/molecules/collapsible-section/CollapsibleSection.oldstories.js +0 -68
- package/src/components/molecules/edit-name-form/EdidNameForm.oldstories.js +0 -24
- package/src/components/molecules/link-card/LinkCard.oldstories.js +0 -87
- package/src/components/molecules/login-form/LoginForm.oldstories.js +0 -24
- package/src/components/molecules/modal/Modal.oldstories.js +0 -139
- package/src/components/molecules/module/Module.oldstories.js +0 -31
- package/src/components/molecules/obligation/.DS_Store +0 -0
- package/src/components/molecules/pagination/Pagination.oldstories.js +0 -32
- package/src/components/molecules/tabs/Tabs.oldstories.js +0 -241
- package/src/components/molecules/toast-notification/ToastNotification.oldstories.js +0 -105
- package/src/stories/Button.stories.ts +0 -53
- package/src/stories/Button.tsx +0 -48
- package/src/stories/Configure.mdx +0 -364
- package/src/stories/Header.stories.ts +0 -33
- package/src/stories/Header.tsx +0 -56
- package/src/stories/Page.stories.ts +0 -32
- package/src/stories/Page.tsx +0 -73
- package/src/stories/assets/accessibility.png +0 -0
- package/src/stories/assets/accessibility.svg +0 -5
- package/src/stories/assets/addon-library.png +0 -0
- package/src/stories/assets/assets.png +0 -0
- package/src/stories/assets/avif-test-image.avif +0 -0
- package/src/stories/assets/context.png +0 -0
- package/src/stories/assets/discord.svg +0 -15
- package/src/stories/assets/docs.png +0 -0
- package/src/stories/assets/figma-plugin.png +0 -0
- package/src/stories/assets/github.svg +0 -3
- package/src/stories/assets/share.png +0 -0
- package/src/stories/assets/styling.png +0 -0
- package/src/stories/assets/testing.png +0 -0
- package/src/stories/assets/theming.png +0 -0
- package/src/stories/assets/tutorials.svg +0 -12
- package/src/stories/assets/youtube.svg +0 -4
- package/src/stories/button.css +0 -30
- package/src/stories/header.css +0 -32
- 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="
|
|
7
|
-
height="
|
|
8
|
-
viewBox="0 0
|
|
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
|
-
<
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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=
|
|
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;
|