@thecb/components 7.5.1 → 7.5.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/dist/.storybook/page.d.ts +13 -0
- package/dist/.storybook/page.js +41 -0
- package/dist/.storybook/themes/apc.theme.d.ts +79 -0
- package/dist/.storybook/themes/apc.theme.js +1 -0
- package/dist/.storybook/themes/index.d.ts +2 -0
- package/dist/.storybook/themes/index.js +2 -0
- package/dist/.storybook/themes/sf.theme.d.ts +231 -0
- package/dist/.storybook/themes/sf.theme.js +1 -0
- package/dist/button-with-action/ButtonWithActionProps.js +0 -0
- package/dist/button-with-link/ButtonWithLinkProps.js +1 -0
- package/dist/index.cjs.js +230 -339
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +228 -339
- package/dist/index.esm.js.map +1 -1
- package/dist/nav-tabs/TabConfig.js +0 -0
- package/dist/src/components/atoms/add-obligation/AddObligation.d.ts +5 -0
- package/dist/src/components/atoms/add-obligation/AddObligation.js +21 -0
- package/dist/src/components/atoms/add-obligation/AddObligation.stories.d.ts +7 -0
- package/dist/src/components/atoms/add-obligation/AddObligation.stories.js +10 -0
- package/dist/src/components/atoms/add-obligation/AddObligation.theme.d.ts +9 -0
- package/dist/src/components/atoms/add-obligation/AddObligation.theme.js +8 -0
- package/dist/src/components/atoms/add-obligation/index.d.ts +2 -0
- package/dist/src/components/atoms/add-obligation/index.js +2 -0
- package/dist/src/components/atoms/alert/Alert.d.ts +5 -0
- package/dist/src/components/atoms/alert/Alert.js +26 -0
- package/dist/src/components/atoms/alert/Alert.stories.d.ts +7 -0
- package/dist/src/components/atoms/alert/Alert.stories.js +19 -0
- package/dist/src/components/atoms/alert/Alert.theme.d.ts +65 -0
- package/dist/src/components/atoms/alert/Alert.theme.js +45 -0
- package/dist/src/components/atoms/alert/index.d.ts +2 -0
- package/dist/src/components/atoms/alert/index.js +2 -0
- package/dist/src/components/atoms/amount-callout/AmountCallout.d.ts +5 -0
- package/dist/src/components/atoms/amount-callout/AmountCallout.js +12 -0
- package/dist/src/components/atoms/amount-callout/AmountCallout.stories.d.ts +7 -0
- package/dist/src/components/atoms/amount-callout/AmountCallout.stories.js +18 -0
- package/dist/src/components/atoms/amount-callout/AmountCallout.theme.d.ts +5 -0
- package/dist/src/components/atoms/amount-callout/AmountCallout.theme.js +4 -0
- package/dist/src/components/atoms/amount-callout/index.d.ts +2 -0
- package/dist/src/components/atoms/amount-callout/index.js +2 -0
- package/dist/src/components/atoms/box-with-shadow/BoxWithShadow.d.ts +5 -0
- package/dist/src/components/atoms/box-with-shadow/BoxWithShadow.js +43 -0
- package/dist/src/components/atoms/box-with-shadow/BoxWithShadow.theme.d.ts +5 -0
- package/dist/src/components/atoms/box-with-shadow/BoxWithShadow.theme.js +5 -0
- package/dist/src/components/atoms/box-with-shadow/index.d.ts +2 -0
- package/dist/src/components/atoms/box-with-shadow/index.js +2 -0
- package/dist/src/components/atoms/breadcrumb/Breadcrumb.d.ts +4 -0
- package/dist/src/components/atoms/breadcrumb/Breadcrumb.js +22 -0
- package/dist/src/components/atoms/breadcrumb/Breadcrumb.stories.d.ts +7 -0
- package/dist/src/components/atoms/breadcrumb/Breadcrumb.stories.js +37 -0
- package/dist/src/components/atoms/breadcrumb/Breadcrumb.theme.d.ts +19 -0
- package/dist/src/components/atoms/breadcrumb/Breadcrumb.theme.js +24 -0
- package/dist/src/components/atoms/breadcrumb/index.d.ts +2 -0
- package/dist/src/components/atoms/breadcrumb/index.js +2 -0
- package/dist/src/components/atoms/button-with-action/ButtonWithAction.d.ts +15 -0
- package/dist/src/components/atoms/button-with-action/ButtonWithAction.js +86 -0
- package/dist/src/components/atoms/button-with-action/ButtonWithAction.stories.d.ts +7 -0
- package/dist/src/components/atoms/button-with-action/ButtonWithAction.stories.js +24 -0
- package/dist/src/components/atoms/button-with-action/ButtonWithAction.theme.d.ts +342 -0
- package/dist/src/components/atoms/button-with-action/ButtonWithAction.theme.js +202 -0
- package/dist/src/components/atoms/button-with-action/ButtonWithActionProps.d.ts +14 -0
- package/dist/src/components/atoms/button-with-action/ButtonWithActionProps.js +1 -0
- package/dist/src/components/atoms/button-with-action/index.d.ts +2 -0
- package/dist/src/components/atoms/button-with-action/index.js +2 -0
- package/dist/src/components/atoms/button-with-link/ButtonWithLink.d.ts +11 -0
- package/dist/src/components/atoms/button-with-link/ButtonWithLink.js +41 -0
- package/dist/src/components/atoms/button-with-link/ButtonWithLink.stories.d.ts +7 -0
- package/dist/src/components/atoms/button-with-link/ButtonWithLink.stories.js +21 -0
- package/dist/src/components/atoms/button-with-link/ButtonWithLinkProps.d.ts +10 -0
- package/dist/src/components/atoms/button-with-link/ButtonWithLinkProps.js +2 -0
- package/dist/src/components/atoms/button-with-link/index.d.ts +2 -0
- package/dist/src/components/atoms/button-with-link/index.js +2 -0
- package/dist/src/components/atoms/card/Card.d.ts +5 -0
- package/dist/src/components/atoms/card/Card.js +18 -0
- package/dist/src/components/atoms/card/Card.theme.d.ts +5 -0
- package/dist/src/components/atoms/card/Card.theme.js +5 -0
- package/dist/src/components/atoms/card/index.d.ts +2 -0
- package/dist/src/components/atoms/card/index.js +2 -0
- package/dist/src/components/atoms/checkbox/Checkbox.d.ts +5 -0
- package/dist/src/components/atoms/checkbox/Checkbox.js +52 -0
- package/dist/src/components/atoms/checkbox/Checkbox.stories.d.ts +7 -0
- package/dist/src/components/atoms/checkbox/Checkbox.stories.js +16 -0
- package/dist/src/components/atoms/checkbox/Checkbox.theme.d.ts +68 -0
- package/dist/src/components/atoms/checkbox/Checkbox.theme.js +39 -0
- package/dist/src/components/atoms/checkbox/index.d.ts +2 -0
- package/dist/src/components/atoms/checkbox/index.js +2 -0
- package/dist/src/components/atoms/checkbox-list/CheckboxList.d.ts +6 -0
- package/dist/src/components/atoms/checkbox-list/CheckboxList.js +40 -0
- package/dist/src/components/atoms/checkbox-list/CheckboxList.stories.d.ts +7 -0
- package/dist/src/components/atoms/checkbox-list/CheckboxList.stories.js +41 -0
- package/dist/src/components/atoms/checkbox-list/CheckboxList.theme.d.ts +44 -0
- package/dist/src/components/atoms/checkbox-list/CheckboxList.theme.js +33 -0
- package/dist/src/components/atoms/checkbox-list/index.d.ts +2 -0
- package/dist/src/components/atoms/checkbox-list/index.js +2 -0
- package/dist/src/components/atoms/country-dropdown/CountryDropdown.d.ts +9 -0
- package/dist/src/components/atoms/country-dropdown/CountryDropdown.js +8 -0
- package/dist/src/components/atoms/country-dropdown/CountryDropdown.stories.d.ts +7 -0
- package/dist/src/components/atoms/country-dropdown/CountryDropdown.stories.js +31 -0
- package/dist/src/components/atoms/country-dropdown/index.d.ts +1 -0
- package/dist/src/components/atoms/country-dropdown/index.js +1 -0
- package/dist/src/components/atoms/country-dropdown/options.d.ts +4 -0
- package/dist/src/components/atoms/country-dropdown/options.js +249 -0
- package/dist/src/components/atoms/detail/Detail.d.ts +5 -0
- package/dist/src/components/atoms/detail/Detail.js +63 -0
- package/dist/src/components/atoms/detail/Detail.styled.d.ts +1 -0
- package/dist/src/components/atoms/detail/Detail.styled.js +28 -0
- package/dist/src/components/atoms/detail/Detail.theme.d.ts +36 -0
- package/dist/src/components/atoms/detail/Detail.theme.js +28 -0
- package/dist/src/components/atoms/detail/index.d.ts +2 -0
- package/dist/src/components/atoms/detail/index.js +2 -0
- package/dist/src/components/atoms/display-box/DisplayBox.d.ts +5 -0
- package/dist/src/components/atoms/display-box/DisplayBox.js +11 -0
- package/dist/src/components/atoms/display-box/DisplayBox.stories.d.ts +7 -0
- package/dist/src/components/atoms/display-box/DisplayBox.stories.js +12 -0
- package/dist/src/components/atoms/display-box/DisplayBox.theme.d.ts +7 -0
- package/dist/src/components/atoms/display-box/DisplayBox.theme.js +7 -0
- package/dist/src/components/atoms/display-box/index.d.ts +2 -0
- package/dist/src/components/atoms/display-box/index.js +2 -0
- package/dist/src/components/atoms/display-card/DisplayCard.d.ts +9 -0
- package/dist/src/components/atoms/display-card/DisplayCard.js +22 -0
- package/dist/src/components/atoms/display-card/DisplayCard.stories.d.ts +7 -0
- package/dist/src/components/atoms/display-card/DisplayCard.stories.js +10 -0
- package/dist/src/components/atoms/display-card/index.d.ts +2 -0
- package/dist/src/components/atoms/display-card/index.js +2 -0
- package/dist/src/components/atoms/dropdown/Dropdown.d.ts +5 -0
- package/dist/src/components/atoms/dropdown/Dropdown.js +258 -0
- package/dist/src/components/atoms/dropdown/Dropdown.stories.d.ts +7 -0
- package/dist/src/components/atoms/dropdown/Dropdown.stories.js +30 -0
- package/dist/src/components/atoms/dropdown/Dropdown.theme.d.ts +7 -0
- package/dist/src/components/atoms/dropdown/Dropdown.theme.js +7 -0
- package/dist/src/components/atoms/dropdown/DropdownIcon.d.ts +2 -0
- package/dist/src/components/atoms/dropdown/DropdownIcon.js +7 -0
- package/dist/src/components/atoms/dropdown/index.d.ts +2 -0
- package/dist/src/components/atoms/dropdown/index.js +2 -0
- package/dist/src/components/atoms/form-layouts/FormContainer.d.ts +5 -0
- package/dist/src/components/atoms/form-layouts/FormContainer.js +34 -0
- package/dist/src/components/atoms/form-layouts/FormFooterPanel.d.ts +5 -0
- package/dist/src/components/atoms/form-layouts/FormFooterPanel.js +15 -0
- package/dist/src/components/atoms/form-layouts/FormInput.d.ts +5 -0
- package/dist/src/components/atoms/form-layouts/FormInput.js +116 -0
- package/dist/src/components/atoms/form-layouts/FormInputColumn.d.ts +7 -0
- package/dist/src/components/atoms/form-layouts/FormInputColumn.js +29 -0
- package/dist/src/components/atoms/form-layouts/FormInputRow.d.ts +9 -0
- package/dist/src/components/atoms/form-layouts/FormInputRow.js +30 -0
- package/dist/src/components/atoms/form-layouts/FormLayouts.stories.d.ts +7 -0
- package/dist/src/components/atoms/form-layouts/FormLayouts.stories.js +38 -0
- package/dist/src/components/atoms/form-layouts/FormLayouts.theme.d.ts +86 -0
- package/dist/src/components/atoms/form-layouts/FormLayouts.theme.js +44 -0
- package/dist/src/components/atoms/form-layouts/index.d.ts +6 -0
- package/dist/src/components/atoms/form-layouts/index.js +6 -0
- package/dist/src/components/atoms/form-select/FormSelect.d.ts +5 -0
- package/dist/src/components/atoms/form-select/FormSelect.js +36 -0
- package/dist/src/components/atoms/form-select/FormSelect.stories.d.ts +7 -0
- package/dist/src/components/atoms/form-select/FormSelect.stories.js +36 -0
- package/dist/src/components/atoms/form-select/FormSelect.styled.d.ts +3 -0
- package/dist/src/components/atoms/form-select/FormSelect.styled.js +22 -0
- package/dist/src/components/atoms/form-select/FormSelect.theme.d.ts +81 -0
- package/dist/src/components/atoms/form-select/FormSelect.theme.js +40 -0
- package/dist/src/components/atoms/form-select/index.d.ts +2 -0
- package/dist/src/components/atoms/form-select/index.js +2 -0
- package/dist/src/components/atoms/formatted-address/FormattedAddress.d.ts +5 -0
- package/dist/src/components/atoms/formatted-address/FormattedAddress.js +22 -0
- package/dist/src/components/atoms/formatted-address/FormattedAddress.stories.d.ts +7 -0
- package/dist/src/components/atoms/formatted-address/FormattedAddress.stories.js +18 -0
- package/dist/src/components/atoms/formatted-address/FormattedAddress.theme.d.ts +23 -0
- package/dist/src/components/atoms/formatted-address/FormattedAddress.theme.js +9 -0
- package/dist/src/components/atoms/formatted-address/index.d.ts +2 -0
- package/dist/src/components/atoms/formatted-address/index.js +2 -0
- package/dist/src/components/atoms/formatted-credit-card/FormattedCreditCard.d.ts +7 -0
- package/dist/src/components/atoms/formatted-credit-card/FormattedCreditCard.js +47 -0
- package/dist/src/components/atoms/formatted-credit-card/FormattedCreditCard.theme.d.ts +7 -0
- package/dist/src/components/atoms/formatted-credit-card/FormattedCreditCard.theme.js +7 -0
- package/dist/src/components/atoms/formatted-credit-card/index.d.ts +2 -0
- package/dist/src/components/atoms/formatted-credit-card/index.js +2 -0
- package/dist/src/components/atoms/hamburger-button/HamburgerButton.d.ts +8 -0
- package/dist/src/components/atoms/hamburger-button/HamburgerButton.js +27 -0
- package/dist/src/components/atoms/hamburger-button/HamburgerButton.stories.d.ts +7 -0
- package/dist/src/components/atoms/hamburger-button/HamburgerButton.stories.js +11 -0
- package/dist/src/components/atoms/hamburger-button/index.d.ts +2 -0
- package/dist/src/components/atoms/hamburger-button/index.js +2 -0
- package/dist/src/components/atoms/heading/Heading.d.ts +5 -0
- package/dist/src/components/atoms/heading/Heading.js +40 -0
- package/dist/src/components/atoms/heading/Heading.stories.d.ts +7 -0
- package/dist/src/components/atoms/heading/Heading.stories.js +10 -0
- package/dist/src/components/atoms/heading/Heading.styled.d.ts +1 -0
- package/dist/src/components/atoms/heading/Heading.styled.js +28 -0
- package/dist/src/components/atoms/heading/Heading.theme.d.ts +17 -0
- package/dist/src/components/atoms/heading/Heading.theme.js +16 -0
- package/dist/src/components/atoms/heading/index.d.ts +2 -0
- package/dist/src/components/atoms/heading/index.js +2 -0
- package/dist/src/components/atoms/icons/AccountNumberImage.d.ts +2 -0
- package/dist/src/components/atoms/icons/AccountNumberImage.js +20 -0
- package/dist/src/components/atoms/icons/AccountsAddIcon.d.ts +5 -0
- package/dist/src/components/atoms/icons/AccountsAddIcon.js +16 -0
- package/dist/src/components/atoms/icons/AccountsIcon.d.ts +5 -0
- package/dist/src/components/atoms/icons/AccountsIcon.js +15 -0
- package/dist/src/components/atoms/icons/AccountsIconSmall.d.ts +5 -0
- package/dist/src/components/atoms/icons/AccountsIconSmall.js +20 -0
- package/dist/src/components/atoms/icons/AchReturnIcon.d.ts +2 -0
- package/dist/src/components/atoms/icons/AchReturnIcon.js +6 -0
- package/dist/src/components/atoms/icons/AllocatedIcon.d.ts +2 -0
- package/dist/src/components/atoms/icons/AllocatedIcon.js +6 -0
- package/dist/src/components/atoms/icons/AutopayOnIcon.d.ts +2 -0
- package/dist/src/components/atoms/icons/AutopayOnIcon.js +6 -0
- package/dist/src/components/atoms/icons/BankIcon.d.ts +2 -0
- package/dist/src/components/atoms/icons/BankIcon.js +7 -0
- package/dist/src/components/atoms/icons/CalendarIcon.d.ts +2 -0
- package/dist/src/components/atoms/icons/CalendarIcon.js +6 -0
- package/dist/src/components/atoms/icons/CarrotIcon.d.ts +5 -0
- package/dist/src/components/atoms/icons/CarrotIcon.js +20 -0
- package/dist/src/components/atoms/icons/CashIcon.d.ts +2 -0
- package/dist/src/components/atoms/icons/CashIcon.js +7 -0
- package/dist/src/components/atoms/icons/ChargebackIcon.d.ts +2 -0
- package/dist/src/components/atoms/icons/ChargebackIcon.js +6 -0
- package/dist/src/components/atoms/icons/ChargebackReversalIcon.d.ts +2 -0
- package/dist/src/components/atoms/icons/ChargebackReversalIcon.js +6 -0
- package/dist/src/components/atoms/icons/CheckIcon.d.ts +2 -0
- package/dist/src/components/atoms/icons/CheckIcon.js +12 -0
- package/dist/src/components/atoms/icons/CheckmarkIcon.d.ts +2 -0
- package/dist/src/components/atoms/icons/CheckmarkIcon.js +12 -0
- package/dist/src/components/atoms/icons/ChevronIcon.d.ts +5 -0
- package/dist/src/components/atoms/icons/ChevronIcon.js +16 -0
- package/dist/src/components/atoms/icons/CustomerSearchIcon.d.ts +2 -0
- package/dist/src/components/atoms/icons/CustomerSearchIcon.js +22 -0
- package/dist/src/components/atoms/icons/DuplicateIcon.d.ts +2 -0
- package/dist/src/components/atoms/icons/DuplicateIcon.js +6 -0
- package/dist/src/components/atoms/icons/EmptyCartIcon.d.ts +5 -0
- package/dist/src/components/atoms/icons/EmptyCartIcon.js +13 -0
- package/dist/src/components/atoms/icons/ErroredIcon.d.ts +2 -0
- package/dist/src/components/atoms/icons/ErroredIcon.js +6 -0
- package/dist/src/components/atoms/icons/ExternalLinkIcon.d.ts +5 -0
- package/dist/src/components/atoms/icons/ExternalLinkIcon.js +11 -0
- package/dist/src/components/atoms/icons/FailedIcon.d.ts +2 -0
- package/dist/src/components/atoms/icons/FailedIcon.js +6 -0
- package/dist/src/components/atoms/icons/ForgotPasswordIcon.d.ts +5 -0
- package/dist/src/components/atoms/icons/ForgotPasswordIcon.js +17 -0
- package/dist/src/components/atoms/icons/GenericCard.d.ts +2 -0
- package/dist/src/components/atoms/icons/GenericCard.js +6 -0
- package/dist/src/components/atoms/icons/GenericCardLarge.d.ts +2 -0
- package/dist/src/components/atoms/icons/GenericCardLarge.js +8 -0
- package/dist/src/components/atoms/icons/GoToEmailIcon.d.ts +5 -0
- package/dist/src/components/atoms/icons/GoToEmailIcon.js +16 -0
- package/dist/src/components/atoms/icons/IconAdd.d.ts +2 -0
- package/dist/src/components/atoms/icons/IconAdd.js +14 -0
- package/dist/src/components/atoms/icons/IconQuitLarge.d.ts +4 -0
- package/dist/src/components/atoms/icons/IconQuitLarge.js +19 -0
- package/dist/src/components/atoms/icons/Icons.theme.d.ts +33 -0
- package/dist/src/components/atoms/icons/Icons.theme.js +27 -0
- package/dist/src/components/atoms/icons/NoCustomerResultsIcon.d.ts +2 -0
- package/dist/src/components/atoms/icons/NoCustomerResultsIcon.js +15 -0
- package/dist/src/components/atoms/icons/NoPaymentResultsIcon.d.ts +2 -0
- package/dist/src/components/atoms/icons/NoPaymentResultsIcon.js +16 -0
- package/dist/src/components/atoms/icons/NotFoundIcon.d.ts +2 -0
- package/dist/src/components/atoms/icons/NotFoundIcon.js +56 -0
- package/dist/src/components/atoms/icons/PaymentIcon.d.ts +8 -0
- package/dist/src/components/atoms/icons/PaymentIcon.js +30 -0
- package/dist/src/components/atoms/icons/PaymentMethodAddIcon.d.ts +5 -0
- package/dist/src/components/atoms/icons/PaymentMethodAddIcon.js +28 -0
- package/dist/src/components/atoms/icons/PaymentMethodIcon.d.ts +5 -0
- package/dist/src/components/atoms/icons/PaymentMethodIcon.js +15 -0
- package/dist/src/components/atoms/icons/PaymentSearchIcon.d.ts +2 -0
- package/dist/src/components/atoms/icons/PaymentSearchIcon.js +23 -0
- package/dist/src/components/atoms/icons/PaymentsIconSmall.d.ts +5 -0
- package/dist/src/components/atoms/icons/PaymentsIconSmall.js +20 -0
- package/dist/src/components/atoms/icons/PendingIcon.d.ts +2 -0
- package/dist/src/components/atoms/icons/PendingIcon.js +6 -0
- package/dist/src/components/atoms/icons/PeriscopeFailedIcon.d.ts +2 -0
- package/dist/src/components/atoms/icons/PeriscopeFailedIcon.js +56 -0
- package/dist/src/components/atoms/icons/ProfileIcon.d.ts +5 -0
- package/dist/src/components/atoms/icons/ProfileIcon.js +16 -0
- package/dist/src/components/atoms/icons/ProfileIconSmall.d.ts +5 -0
- package/dist/src/components/atoms/icons/ProfileIconSmall.js +12 -0
- package/dist/src/components/atoms/icons/PropertiesAddIcon.d.ts +5 -0
- package/dist/src/components/atoms/icons/PropertiesAddIcon.js +31 -0
- package/dist/src/components/atoms/icons/PropertiesIconSmall.d.ts +5 -0
- package/dist/src/components/atoms/icons/PropertiesIconSmall.js +10 -0
- package/dist/src/components/atoms/icons/RefundIcon.d.ts +2 -0
- package/dist/src/components/atoms/icons/RefundIcon.js +6 -0
- package/dist/src/components/atoms/icons/RejectedIcon.d.ts +2 -0
- package/dist/src/components/atoms/icons/RejectedIcon.js +6 -0
- package/dist/src/components/atoms/icons/RejectedVelocityIcon.d.ts +2 -0
- package/dist/src/components/atoms/icons/RejectedVelocityIcon.js +6 -0
- package/dist/src/components/atoms/icons/ResetPasswordIcon.d.ts +2 -0
- package/dist/src/components/atoms/icons/ResetPasswordIcon.js +16 -0
- package/dist/src/components/atoms/icons/RoutingNumberImage.d.ts +2 -0
- package/dist/src/components/atoms/icons/RoutingNumberImage.js +20 -0
- package/dist/src/components/atoms/icons/SearchIcon.d.ts +2 -0
- package/dist/src/components/atoms/icons/SearchIcon.js +10 -0
- package/dist/src/components/atoms/icons/SettingsIconSmall.d.ts +5 -0
- package/dist/src/components/atoms/icons/SettingsIconSmall.js +20 -0
- package/dist/src/components/atoms/icons/ShoppingCartIcon.d.ts +2 -0
- package/dist/src/components/atoms/icons/ShoppingCartIcon.js +11 -0
- package/dist/src/components/atoms/icons/StatusUnknownIcon.d.ts +2 -0
- package/dist/src/components/atoms/icons/StatusUnknownIcon.js +6 -0
- package/dist/src/components/atoms/icons/SuccessfulIcon.d.ts +2 -0
- package/dist/src/components/atoms/icons/SuccessfulIcon.js +6 -0
- package/dist/src/components/atoms/icons/TimeoutImage.d.ts +2 -0
- package/dist/src/components/atoms/icons/TimeoutImage.js +38 -0
- package/dist/src/components/atoms/icons/TrashIcon.d.ts +5 -0
- package/dist/src/components/atoms/icons/TrashIcon.js +15 -0
- package/dist/src/components/atoms/icons/VerifiedEmailIcon.d.ts +5 -0
- package/dist/src/components/atoms/icons/VerifiedEmailIcon.js +19 -0
- package/dist/src/components/atoms/icons/VoidedIcon.d.ts +2 -0
- package/dist/src/components/atoms/icons/VoidedIcon.js +6 -0
- package/dist/src/components/atoms/icons/WalletIcon.d.ts +5 -0
- package/dist/src/components/atoms/icons/WalletIcon.js +16 -0
- package/dist/src/components/atoms/icons/WarningIconXS.d.ts +2 -0
- package/dist/src/components/atoms/icons/WarningIconXS.js +13 -0
- package/dist/src/components/atoms/icons/icons.stories.d.ts +42 -0
- package/dist/src/components/atoms/icons/icons.stories.js +44 -0
- package/dist/src/components/atoms/icons/index.d.ts +59 -0
- package/dist/src/components/atoms/icons/index.js +59 -0
- package/dist/src/components/atoms/index.d.ts +45 -0
- package/dist/src/components/atoms/index.js +45 -0
- package/dist/src/components/atoms/jumbo/Jumbo.d.ts +4 -0
- package/dist/src/components/atoms/jumbo/Jumbo.js +25 -0
- package/dist/src/components/atoms/jumbo/index.d.ts +2 -0
- package/dist/src/components/atoms/jumbo/index.js +2 -0
- package/dist/src/components/atoms/labeled-amount/LabeledAmount.d.ts +5 -0
- package/dist/src/components/atoms/labeled-amount/LabeledAmount.js +16 -0
- package/dist/src/components/atoms/labeled-amount/LabeledAmount.stories.d.ts +7 -0
- package/dist/src/components/atoms/labeled-amount/LabeledAmount.stories.js +20 -0
- package/dist/src/components/atoms/labeled-amount/LabeledAmount.theme.d.ts +12 -0
- package/dist/src/components/atoms/labeled-amount/LabeledAmount.theme.js +10 -0
- package/dist/src/components/atoms/labeled-amount/index.d.ts +2 -0
- package/dist/src/components/atoms/labeled-amount/index.js +2 -0
- package/dist/src/components/atoms/layouts/Box.d.ts +3 -0
- package/dist/src/components/atoms/layouts/Box.js +37 -0
- package/dist/src/components/atoms/layouts/Box.styled.d.ts +1 -0
- package/dist/src/components/atoms/layouts/Box.styled.js +107 -0
- package/dist/src/components/atoms/layouts/Center.d.ts +8 -0
- package/dist/src/components/atoms/layouts/Center.js +35 -0
- package/dist/src/components/atoms/layouts/Center.styled.d.ts +1 -0
- package/dist/src/components/atoms/layouts/Center.styled.js +21 -0
- package/dist/src/components/atoms/layouts/Cluster.d.ts +16 -0
- package/dist/src/components/atoms/layouts/Cluster.js +39 -0
- package/dist/src/components/atoms/layouts/Cluster.styled.d.ts +2 -0
- package/dist/src/components/atoms/layouts/Cluster.styled.js +71 -0
- package/dist/src/components/atoms/layouts/Cover.d.ts +11 -0
- package/dist/src/components/atoms/layouts/Cover.js +52 -0
- package/dist/src/components/atoms/layouts/Cover.styled.d.ts +1 -0
- package/dist/src/components/atoms/layouts/Cover.styled.js +30 -0
- package/dist/src/components/atoms/layouts/Frame.d.ts +7 -0
- package/dist/src/components/atoms/layouts/Frame.js +42 -0
- package/dist/src/components/atoms/layouts/Frame.styled.d.ts +1 -0
- package/dist/src/components/atoms/layouts/Frame.styled.js +10 -0
- package/dist/src/components/atoms/layouts/Grid.d.ts +8 -0
- package/dist/src/components/atoms/layouts/Grid.js +38 -0
- package/dist/src/components/atoms/layouts/Grid.styled.d.ts +1 -0
- package/dist/src/components/atoms/layouts/Grid.styled.js +24 -0
- package/dist/src/components/atoms/layouts/Imposter.d.ts +13 -0
- package/dist/src/components/atoms/layouts/Imposter.js +49 -0
- package/dist/src/components/atoms/layouts/Imposter.styled.d.ts +1 -0
- package/dist/src/components/atoms/layouts/Imposter.styled.js +30 -0
- package/dist/src/components/atoms/layouts/Motion.d.ts +7 -0
- package/dist/src/components/atoms/layouts/Motion.js +64 -0
- package/dist/src/components/atoms/layouts/Motion.styled.d.ts +1 -0
- package/dist/src/components/atoms/layouts/Motion.styled.js +71 -0
- package/dist/src/components/atoms/layouts/Reel.d.ts +13 -0
- package/dist/src/components/atoms/layouts/Reel.js +36 -0
- package/dist/src/components/atoms/layouts/Reel.styled.d.ts +1 -0
- package/dist/src/components/atoms/layouts/Reel.styled.js +30 -0
- package/dist/src/components/atoms/layouts/Sidebar.d.ts +11 -0
- package/dist/src/components/atoms/layouts/Sidebar.js +43 -0
- package/dist/src/components/atoms/layouts/Sidebar.styled.d.ts +2 -0
- package/dist/src/components/atoms/layouts/Sidebar.styled.js +59 -0
- package/dist/src/components/atoms/layouts/Stack.d.ts +10 -0
- package/dist/src/components/atoms/layouts/Stack.js +39 -0
- package/dist/src/components/atoms/layouts/Stack.styled.d.ts +1 -0
- package/dist/src/components/atoms/layouts/Stack.styled.js +26 -0
- package/dist/src/components/atoms/layouts/Switcher.d.ts +14 -0
- package/dist/src/components/atoms/layouts/Switcher.js +62 -0
- package/dist/src/components/atoms/layouts/Switcher.styled.d.ts +2 -0
- package/dist/src/components/atoms/layouts/Switcher.styled.js +42 -0
- package/dist/src/components/atoms/layouts/examples/FixedSizeContainer.d.ts +9 -0
- package/dist/src/components/atoms/layouts/examples/FixedSizeContainer.js +12 -0
- package/dist/src/components/atoms/layouts/examples/FixedSizeContainer.styled.d.ts +2 -0
- package/dist/src/components/atoms/layouts/examples/FixedSizeContainer.styled.js +21 -0
- package/dist/src/components/atoms/layouts/examples/LayoutContentBlock.d.ts +11 -0
- package/dist/src/components/atoms/layouts/examples/LayoutContentBlock.js +9 -0
- package/dist/src/components/atoms/layouts/examples/LayoutContentBlock.styled.d.ts +1 -0
- package/dist/src/components/atoms/layouts/examples/LayoutContentBlock.styled.js +25 -0
- package/dist/src/components/atoms/layouts/examples/ResizingContainer.d.ts +9 -0
- package/dist/src/components/atoms/layouts/examples/ResizingContainer.js +26 -0
- package/dist/src/components/atoms/layouts/examples/ResizingContainer.styled.d.ts +2 -0
- package/dist/src/components/atoms/layouts/examples/ResizingContainer.styled.js +23 -0
- package/dist/src/components/atoms/layouts/examples/box-example/BoxExample.stories.d.ts +7 -0
- package/dist/src/components/atoms/layouts/examples/box-example/BoxExample.stories.js +19 -0
- package/dist/src/components/atoms/layouts/examples/center-example/CenterExample.stories.d.ts +7 -0
- package/dist/src/components/atoms/layouts/examples/center-example/CenterExample.stories.js +13 -0
- package/dist/src/components/atoms/layouts/examples/cluster-example/ClusterExample.d.ts +6 -0
- package/dist/src/components/atoms/layouts/examples/cluster-example/ClusterExample.js +7 -0
- package/dist/src/components/atoms/layouts/examples/cluster-example/ClusterExample.stories.d.ts +21 -0
- package/dist/src/components/atoms/layouts/examples/cluster-example/ClusterExample.stories.js +43 -0
- package/dist/src/components/atoms/layouts/examples/cover-example/CoverExample.stories.d.ts +15 -0
- package/dist/src/components/atoms/layouts/examples/cover-example/CoverExample.stories.js +18 -0
- package/dist/src/components/atoms/layouts/examples/frame-example/FrameExample.stories.d.ts +7 -0
- package/dist/src/components/atoms/layouts/examples/frame-example/FrameExample.stories.js +12 -0
- package/dist/src/components/atoms/layouts/examples/grid-example/GridExample.d.ts +7 -0
- package/dist/src/components/atoms/layouts/examples/grid-example/GridExample.js +32 -0
- package/dist/src/components/atoms/layouts/examples/grid-example/GridExample.stories.d.ts +11 -0
- package/dist/src/components/atoms/layouts/examples/grid-example/GridExample.stories.js +26 -0
- package/dist/src/components/atoms/layouts/examples/imposter-example/ImposterExample.stories.d.ts +7 -0
- package/dist/src/components/atoms/layouts/examples/imposter-example/ImposterExample.stories.js +14 -0
- package/dist/src/components/atoms/layouts/examples/motion-example/MotionExample.stories.d.ts +7 -0
- package/dist/src/components/atoms/layouts/examples/motion-example/MotionExample.stories.js +41 -0
- package/dist/src/components/atoms/layouts/examples/reel-example/ReelExample.stories.d.ts +7 -0
- package/dist/src/components/atoms/layouts/examples/reel-example/ReelExample.stories.js +21 -0
- package/dist/src/components/atoms/layouts/examples/sidebar-example/SidebarExample.d.ts +7 -0
- package/dist/src/components/atoms/layouts/examples/sidebar-example/SidebarExample.js +7 -0
- package/dist/src/components/atoms/layouts/examples/sidebar-example/SidebarExample.stories.d.ts +11 -0
- package/dist/src/components/atoms/layouts/examples/sidebar-example/SidebarExample.stories.js +41 -0
- package/dist/src/components/atoms/layouts/examples/stack-example/StackExample.d.ts +7 -0
- package/dist/src/components/atoms/layouts/examples/stack-example/StackExample.js +26 -0
- package/dist/src/components/atoms/layouts/examples/stack-example/StackExample.stories.d.ts +21 -0
- package/dist/src/components/atoms/layouts/examples/stack-example/StackExample.stories.js +26 -0
- package/dist/src/components/atoms/layouts/examples/switcher-example/SwitcherExample.d.ts +8 -0
- package/dist/src/components/atoms/layouts/examples/switcher-example/SwitcherExample.js +26 -0
- package/dist/src/components/atoms/layouts/examples/switcher-example/SwitcherExample.stories.d.ts +16 -0
- package/dist/src/components/atoms/layouts/examples/switcher-example/SwitcherExample.stories.js +30 -0
- package/dist/src/components/atoms/layouts/index.d.ts +13 -0
- package/dist/src/components/atoms/layouts/index.js +13 -0
- package/dist/src/components/atoms/line-item/LineItem.d.ts +5 -0
- package/dist/src/components/atoms/line-item/LineItem.js +14 -0
- package/dist/src/components/atoms/line-item/LineItem.stories.d.ts +7 -0
- package/dist/src/components/atoms/line-item/LineItem.stories.js +10 -0
- package/dist/src/components/atoms/line-item/LineItem.theme.d.ts +16 -0
- package/dist/src/components/atoms/line-item/LineItem.theme.js +6 -0
- package/dist/src/components/atoms/line-item/index.d.ts +2 -0
- package/dist/src/components/atoms/line-item/index.js +2 -0
- package/dist/src/components/atoms/link/ExternalLink.d.ts +14 -0
- package/dist/src/components/atoms/link/ExternalLink.js +14 -0
- package/dist/src/components/atoms/link/ExternalLink.styled.d.ts +1 -0
- package/dist/src/components/atoms/link/ExternalLink.styled.js +64 -0
- package/dist/src/components/atoms/link/InternalLink.d.ts +15 -0
- package/dist/src/components/atoms/link/InternalLink.js +13 -0
- package/dist/src/components/atoms/link/InternalLink.styled.d.ts +1 -0
- package/dist/src/components/atoms/link/InternalLink.styled.js +68 -0
- package/dist/src/components/atoms/link/Link.stories.d.ts +8 -0
- package/dist/src/components/atoms/link/Link.stories.js +26 -0
- package/dist/src/components/atoms/link/Link.theme.d.ts +14 -0
- package/dist/src/components/atoms/link/Link.theme.js +13 -0
- package/dist/src/components/atoms/link/index.d.ts +3 -0
- package/dist/src/components/atoms/link/index.js +3 -0
- package/dist/src/components/atoms/loading/Loading.d.ts +2 -0
- package/dist/src/components/atoms/loading/Loading.js +9 -0
- package/dist/src/components/atoms/loading/index.d.ts +2 -0
- package/dist/src/components/atoms/loading/index.js +2 -0
- package/dist/src/components/atoms/nav-footer/NavFooter.d.ts +13 -0
- package/dist/src/components/atoms/nav-footer/NavFooter.js +38 -0
- package/dist/src/components/atoms/nav-footer/NavFooter.stories.d.ts +7 -0
- package/dist/src/components/atoms/nav-footer/NavFooter.stories.js +13 -0
- package/dist/src/components/atoms/nav-footer/index.d.ts +2 -0
- package/dist/src/components/atoms/nav-footer/index.js +2 -0
- package/dist/src/components/atoms/nav-header/NavHeader.d.ts +10 -0
- package/dist/src/components/atoms/nav-header/NavHeader.js +37 -0
- package/dist/src/components/atoms/nav-header/NavHeader.stories.d.ts +7 -0
- package/dist/src/components/atoms/nav-header/NavHeader.stories.js +13 -0
- package/dist/src/components/atoms/nav-header/index.d.ts +2 -0
- package/dist/src/components/atoms/nav-header/index.js +2 -0
- package/dist/src/components/atoms/nav-tabs/NavTab.d.ts +5 -0
- package/dist/src/components/atoms/nav-tabs/NavTab.js +20 -0
- package/dist/src/components/atoms/nav-tabs/NavTab.theme.d.ts +9 -0
- package/dist/src/components/atoms/nav-tabs/NavTab.theme.js +9 -0
- package/dist/src/components/atoms/nav-tabs/NavTabs.d.ts +4 -0
- package/dist/src/components/atoms/nav-tabs/NavTabs.js +27 -0
- package/dist/src/components/atoms/nav-tabs/TabConfig.d.ts +4 -0
- package/dist/src/components/atoms/nav-tabs/TabConfig.js +1 -0
- package/dist/src/components/atoms/nav-tabs/index.d.ts +1 -0
- package/dist/src/components/atoms/nav-tabs/index.js +2 -0
- package/dist/src/components/atoms/paragraph/Paragraph.d.ts +5 -0
- package/dist/src/components/atoms/paragraph/Paragraph.js +40 -0
- package/dist/src/components/atoms/paragraph/Paragraph.stories.d.ts +7 -0
- package/dist/src/components/atoms/paragraph/Paragraph.stories.js +17 -0
- package/dist/src/components/atoms/paragraph/Paragraph.styled.d.ts +1 -0
- package/dist/src/components/atoms/paragraph/Paragraph.styled.js +25 -0
- package/dist/src/components/atoms/paragraph/Paragraph.theme.d.ts +27 -0
- package/dist/src/components/atoms/paragraph/Paragraph.theme.js +21 -0
- package/dist/src/components/atoms/paragraph/index.d.ts +2 -0
- package/dist/src/components/atoms/paragraph/index.js +2 -0
- package/dist/src/components/atoms/password-requirements/PasswordRequirements.d.ts +5 -0
- package/dist/src/components/atoms/password-requirements/PasswordRequirements.js +59 -0
- package/dist/src/components/atoms/password-requirements/PasswordRequirements.stories.d.ts +7 -0
- package/dist/src/components/atoms/password-requirements/PasswordRequirements.stories.js +46 -0
- package/dist/src/components/atoms/password-requirements/index.d.ts +2 -0
- package/dist/src/components/atoms/password-requirements/index.js +2 -0
- package/dist/src/components/atoms/placeholder/Placeholder.d.ts +5 -0
- package/dist/src/components/atoms/placeholder/Placeholder.js +33 -0
- package/dist/src/components/atoms/placeholder/Placeholder.stories.d.ts +7 -0
- package/dist/src/components/atoms/placeholder/Placeholder.stories.js +23 -0
- package/dist/src/components/atoms/placeholder/Placeholder.theme.d.ts +16 -0
- package/dist/src/components/atoms/placeholder/Placeholder.theme.js +7 -0
- package/dist/src/components/atoms/placeholder/index.d.ts +2 -0
- package/dist/src/components/atoms/placeholder/index.js +2 -0
- package/dist/src/components/atoms/processing-fee/ProcessingFee.d.ts +5 -0
- package/dist/src/components/atoms/processing-fee/ProcessingFee.js +15 -0
- package/dist/src/components/atoms/processing-fee/ProcessingFee.stories.d.ts +7 -0
- package/dist/src/components/atoms/processing-fee/ProcessingFee.stories.js +17 -0
- package/dist/src/components/atoms/processing-fee/ProcessingFee.theme.d.ts +8 -0
- package/dist/src/components/atoms/processing-fee/ProcessingFee.theme.js +5 -0
- package/dist/src/components/atoms/processing-fee/index.d.ts +2 -0
- package/dist/src/components/atoms/processing-fee/index.js +2 -0
- package/dist/src/components/atoms/radio-button/RadioButton.d.ts +5 -0
- package/dist/src/components/atoms/radio-button/RadioButton.js +68 -0
- package/dist/src/components/atoms/radio-button/RadioButton.stories.d.ts +7 -0
- package/dist/src/components/atoms/radio-button/RadioButton.stories.js +16 -0
- package/dist/src/components/atoms/radio-button/RadioButton.theme.d.ts +7 -0
- package/dist/src/components/atoms/radio-button/RadioButton.theme.js +7 -0
- package/dist/src/components/atoms/radio-button/index.d.ts +2 -0
- package/{src → dist/src}/components/atoms/radio-button/index.js +0 -1
- package/dist/src/components/atoms/searchable-select/SearchableSelect.d.ts +5 -0
- package/dist/src/components/atoms/searchable-select/SearchableSelect.js +37 -0
- package/dist/src/components/atoms/searchable-select/SearchableSelect.theme.d.ts +8 -0
- package/dist/src/components/atoms/searchable-select/SearchableSelect.theme.js +6 -0
- package/dist/src/components/atoms/searchable-select/index.d.ts +2 -0
- package/dist/src/components/atoms/searchable-select/index.js +2 -0
- package/dist/src/components/atoms/solid-divider/SolidDivider.d.ts +5 -0
- package/dist/src/components/atoms/solid-divider/SolidDivider.js +9 -0
- package/dist/src/components/atoms/solid-divider/SolidDivider.stories.d.ts +7 -0
- package/dist/src/components/atoms/solid-divider/SolidDivider.stories.js +9 -0
- package/dist/src/components/atoms/solid-divider/SolidDivider.theme.d.ts +13 -0
- package/dist/src/components/atoms/solid-divider/SolidDivider.theme.js +7 -0
- package/dist/src/components/atoms/solid-divider/index.d.ts +2 -0
- package/dist/src/components/atoms/solid-divider/index.js +2 -0
- package/dist/src/components/atoms/spinner/Spinner.d.ts +6 -0
- package/dist/src/components/atoms/spinner/Spinner.js +27 -0
- package/dist/src/components/atoms/spinner/Spinner.stories.d.ts +7 -0
- package/dist/src/components/atoms/spinner/Spinner.stories.js +12 -0
- package/dist/src/components/atoms/spinner/Spinner.theme.d.ts +5 -0
- package/dist/src/components/atoms/spinner/Spinner.theme.js +4 -0
- package/dist/src/components/atoms/spinner/index.d.ts +2 -0
- package/dist/src/components/atoms/spinner/index.js +2 -0
- package/dist/src/components/atoms/state-province-dropdown/StateProvinceDropdown.d.ts +10 -0
- package/dist/src/components/atoms/state-province-dropdown/StateProvinceDropdown.js +19 -0
- package/dist/src/components/atoms/state-province-dropdown/StateProvinceDropdown.stories.d.ts +7 -0
- package/dist/src/components/atoms/state-province-dropdown/StateProvinceDropdown.stories.js +30 -0
- package/dist/src/components/atoms/state-province-dropdown/index.d.ts +2 -0
- package/dist/src/components/atoms/state-province-dropdown/index.js +2 -0
- package/dist/src/components/atoms/state-province-dropdown/options.d.ts +11 -0
- package/dist/src/components/atoms/state-province-dropdown/options.js +3837 -0
- package/dist/src/components/atoms/tab/Tab.d.ts +6 -0
- package/dist/src/components/atoms/tab/Tab.js +17 -0
- package/dist/src/components/atoms/tab/Tab.stories.d.ts +7 -0
- package/dist/src/components/atoms/tab/Tab.stories.js +9 -0
- package/dist/src/components/atoms/tab/Tab.theme.d.ts +27 -0
- package/dist/src/components/atoms/tab/Tab.theme.js +23 -0
- package/dist/src/components/atoms/tab/index.d.ts +2 -0
- package/dist/src/components/atoms/tab/index.js +2 -0
- package/dist/src/components/atoms/text/Text.d.ts +5 -0
- package/dist/src/components/atoms/text/Text.js +34 -0
- package/dist/src/components/atoms/text/Text.stories.d.ts +7 -0
- package/dist/src/components/atoms/text/Text.stories.js +17 -0
- package/dist/src/components/atoms/text/Text.styled.d.ts +1 -0
- package/dist/src/components/atoms/text/Text.styled.js +32 -0
- package/dist/src/components/atoms/text/Text.theme.d.ts +27 -0
- package/dist/src/components/atoms/text/Text.theme.js +24 -0
- package/dist/src/components/atoms/text/index.d.ts +2 -0
- package/dist/src/components/atoms/text/index.js +2 -0
- package/dist/src/components/atoms/title/Title.d.ts +5 -0
- package/dist/src/components/atoms/title/Title.js +60 -0
- package/dist/src/components/atoms/title/Title.styled.d.ts +1 -0
- package/dist/src/components/atoms/title/Title.styled.js +28 -0
- package/dist/src/components/atoms/title/Title.theme.d.ts +26 -0
- package/dist/src/components/atoms/title/Title.theme.js +22 -0
- package/dist/src/components/atoms/title/index.d.ts +2 -0
- package/dist/src/components/atoms/title/index.js +2 -0
- package/dist/src/components/atoms/toggle-switch/ToggleSwitch.d.ts +5 -0
- package/dist/src/components/atoms/toggle-switch/ToggleSwitch.js +126 -0
- package/dist/src/components/atoms/toggle-switch/ToggleSwitch.stories.d.ts +7 -0
- package/dist/src/components/atoms/toggle-switch/ToggleSwitch.stories.js +15 -0
- package/dist/src/components/atoms/toggle-switch/ToggleSwitch.theme.d.ts +15 -0
- package/dist/src/components/atoms/toggle-switch/ToggleSwitch.theme.js +16 -0
- package/dist/src/components/atoms/toggle-switch/index.d.ts +2 -0
- package/dist/src/components/atoms/toggle-switch/index.js +2 -0
- package/dist/src/components/atoms/typeahead-input/TypeaheadIinput.stories.d.ts +7 -0
- package/dist/src/components/atoms/typeahead-input/TypeaheadIinput.stories.js +9 -0
- package/dist/src/components/atoms/typeahead-input/TypeaheadInput.d.ts +8 -0
- package/dist/src/components/atoms/typeahead-input/TypeaheadInput.js +22 -0
- package/dist/src/components/atoms/typeahead-input/TypeaheadInput.theme.d.ts +11 -0
- package/dist/src/components/atoms/typeahead-input/TypeaheadInput.theme.js +11 -0
- package/dist/src/components/atoms/typeahead-input/index.d.ts +2 -0
- package/dist/src/components/atoms/typeahead-input/index.js +2 -0
- package/dist/src/components/atoms/welcome-card/Card.d.ts +5 -0
- package/dist/src/components/atoms/welcome-card/Card.js +52 -0
- package/dist/src/components/atoms/welcome-card/Card.theme.d.ts +7 -0
- package/dist/src/components/atoms/welcome-card/Card.theme.js +7 -0
- package/dist/src/components/atoms/welcome-card/index.d.ts +8 -0
- package/dist/src/components/atoms/welcome-card/index.js +20 -0
- package/dist/src/components/index.d.ts +4 -0
- package/dist/src/components/index.js +4 -0
- package/dist/src/components/molecules/account-and-routing-modal/AccountAndRoutingModal.d.ts +5 -0
- package/dist/src/components/molecules/account-and-routing-modal/AccountAndRoutingModal.js +22 -0
- package/dist/src/components/molecules/account-and-routing-modal/AccountAndRoutingModal.theme.d.ts +28 -0
- package/dist/src/components/molecules/account-and-routing-modal/AccountAndRoutingModal.theme.js +17 -0
- package/dist/src/components/molecules/account-and-routing-modal/index.d.ts +2 -0
- package/dist/src/components/molecules/account-and-routing-modal/index.js +2 -0
- package/dist/src/components/molecules/address-form/AddressForm.d.ts +12 -0
- package/dist/src/components/molecules/address-form/AddressForm.js +52 -0
- package/dist/src/components/molecules/address-form/AddressForm.state.d.ts +3 -0
- package/dist/src/components/molecules/address-form/AddressForm.state.js +33 -0
- package/dist/src/components/molecules/address-form/AddressForm.stories.d.ts +7 -0
- package/dist/src/components/molecules/address-form/AddressForm.stories.js +15 -0
- package/dist/src/components/molecules/address-form/index.d.ts +2 -0
- package/dist/src/components/molecules/address-form/index.js +6 -0
- package/dist/src/components/molecules/change-password-form/ChangePasswordForm.d.ts +13 -0
- package/dist/src/components/molecules/change-password-form/ChangePasswordForm.js +55 -0
- package/dist/src/components/molecules/change-password-form/ChangePasswordForm.state.d.ts +3 -0
- package/dist/src/components/molecules/change-password-form/ChangePasswordForm.state.js +21 -0
- package/dist/src/components/molecules/change-password-form/ChangePasswordForm.stories.d.ts +7 -0
- package/dist/src/components/molecules/change-password-form/ChangePasswordForm.stories.js +14 -0
- package/dist/src/components/molecules/change-password-form/index.d.ts +2 -0
- package/dist/src/components/molecules/change-password-form/index.js +6 -0
- package/dist/src/components/molecules/collapsible-section/CollapsibleSection.d.ts +5 -0
- package/dist/src/components/molecules/collapsible-section/CollapsibleSection.js +60 -0
- package/dist/src/components/molecules/collapsible-section/CollapsibleSection.stories.d.ts +7 -0
- package/dist/src/components/molecules/collapsible-section/CollapsibleSection.stories.js +30 -0
- package/dist/src/components/molecules/collapsible-section/CollapsibleSection.theme.d.ts +9 -0
- package/dist/src/components/molecules/collapsible-section/CollapsibleSection.theme.js +8 -0
- package/dist/src/components/molecules/collapsible-section/index.d.ts +2 -0
- package/dist/src/components/molecules/collapsible-section/index.js +2 -0
- package/dist/src/components/molecules/edit-name-form/EdidNameForm.stories.d.ts +7 -0
- package/dist/src/components/molecules/edit-name-form/EdidNameForm.stories.js +16 -0
- package/dist/src/components/molecules/edit-name-form/EditNameForm.d.ts +8 -0
- package/dist/src/components/molecules/edit-name-form/EditNameForm.js +22 -0
- package/dist/src/components/molecules/edit-name-form/EditNameForm.state.d.ts +3 -0
- package/dist/src/components/molecules/edit-name-form/EditNameForm.state.js +11 -0
- package/dist/src/components/molecules/edit-name-form/index.d.ts +2 -0
- package/dist/src/components/molecules/edit-name-form/index.js +6 -0
- package/dist/src/components/molecules/editable-list/EditableList.d.ts +23 -0
- package/dist/src/components/molecules/editable-list/EditableList.js +49 -0
- package/dist/src/components/molecules/editable-list/EditableList.styled.d.ts +2 -0
- package/dist/src/components/molecules/editable-list/EditableList.styled.js +15 -0
- package/dist/src/components/molecules/editable-list/index.d.ts +2 -0
- package/dist/src/components/molecules/editable-list/index.js +2 -0
- package/dist/src/components/molecules/editable-table/EditableTable.d.ts +7 -0
- package/dist/src/components/molecules/editable-table/EditableTable.js +16 -0
- package/dist/src/components/molecules/editable-table/EditableTable.styled.d.ts +9 -0
- package/dist/src/components/molecules/editable-table/EditableTable.styled.js +61 -0
- package/dist/src/components/molecules/editable-table/TableListItem.d.ts +9 -0
- package/dist/src/components/molecules/editable-table/TableListItem.js +21 -0
- package/dist/src/components/molecules/editable-table/index.d.ts +3 -0
- package/dist/src/components/molecules/editable-table/index.js +3 -0
- package/dist/src/components/molecules/email-form/EmailForm.d.ts +13 -0
- package/dist/src/components/molecules/email-form/EmailForm.js +23 -0
- package/dist/src/components/molecules/email-form/EmailForm.state.d.ts +3 -0
- package/dist/src/components/molecules/email-form/EmailForm.state.js +8 -0
- package/dist/src/components/molecules/email-form/EmailForm.stories.d.ts +7 -0
- package/dist/src/components/molecules/email-form/EmailForm.stories.js +16 -0
- package/dist/src/components/molecules/email-form/index.d.ts +2 -0
- package/dist/src/components/molecules/email-form/index.js +6 -0
- package/dist/src/components/molecules/forgot-password-form/ForgotPasswordForm.d.ts +8 -0
- package/dist/src/components/molecules/forgot-password-form/ForgotPasswordForm.js +17 -0
- package/dist/src/components/molecules/forgot-password-form/ForgotPasswordForm.state.d.ts +3 -0
- package/dist/src/components/molecules/forgot-password-form/ForgotPasswordForm.state.js +8 -0
- package/dist/src/components/molecules/forgot-password-form/ForgotPasswordForm.stories.d.ts +7 -0
- package/dist/src/components/molecules/forgot-password-form/ForgotPasswordForm.stories.js +16 -0
- package/dist/src/components/molecules/forgot-password-form/index.d.ts +2 -0
- package/dist/src/components/molecules/forgot-password-form/index.js +6 -0
- package/dist/src/components/molecules/highlight-tab-row/HighlightTabRow.d.ts +6 -0
- package/dist/src/components/molecules/highlight-tab-row/HighlightTabRow.js +29 -0
- package/dist/src/components/molecules/highlight-tab-row/HighlightTabRow.stories.d.ts +7 -0
- package/dist/src/components/molecules/highlight-tab-row/HighlightTabRow.stories.js +17 -0
- package/dist/src/components/molecules/highlight-tab-row/HighlightTabRow.theme.d.ts +7 -0
- package/dist/src/components/molecules/highlight-tab-row/HighlightTabRow.theme.js +6 -0
- package/dist/src/components/molecules/highlight-tab-row/index.d.ts +2 -0
- package/dist/src/components/molecules/highlight-tab-row/index.js +2 -0
- package/dist/src/components/molecules/index.d.ts +36 -0
- package/dist/src/components/molecules/index.js +36 -0
- package/dist/src/components/molecules/internal-user-info-form/InternalUserInfoForm.d.ts +25 -0
- package/dist/src/components/molecules/internal-user-info-form/InternalUserInfoForm.js +108 -0
- package/dist/src/components/molecules/internal-user-info-form/InternalUserInfoForm.state.d.ts +3 -0
- package/dist/src/components/molecules/internal-user-info-form/InternalUserInfoForm.state.js +23 -0
- package/dist/src/components/molecules/internal-user-info-form/index.d.ts +2 -0
- package/{src → dist/src}/components/molecules/internal-user-info-form/index.js +1 -6
- package/dist/src/components/molecules/login-form/LoginForm.d.ts +8 -0
- package/dist/src/components/molecules/login-form/LoginForm.js +22 -0
- package/dist/src/components/molecules/login-form/LoginForm.state.d.ts +3 -0
- package/dist/src/components/molecules/login-form/LoginForm.state.js +11 -0
- package/dist/src/components/molecules/login-form/LoginForm.stories.d.ts +7 -0
- package/dist/src/components/molecules/login-form/LoginForm.stories.js +16 -0
- package/dist/src/components/molecules/login-form/index.d.ts +2 -0
- package/dist/src/components/molecules/login-form/index.js +6 -0
- package/dist/src/components/molecules/modal/Modal.d.ts +27 -0
- package/dist/src/components/molecules/modal/Modal.js +51 -0
- package/dist/src/components/molecules/modal/Modal.stories.d.ts +15 -0
- package/dist/src/components/molecules/modal/Modal.stories.js +28 -0
- package/dist/src/components/molecules/modal/index.d.ts +2 -0
- package/dist/src/components/molecules/modal/index.js +2 -0
- package/dist/src/components/molecules/module/Module.d.ts +6 -0
- package/dist/src/components/molecules/module/Module.js +31 -0
- package/dist/src/components/molecules/module/Module.stories.d.ts +7 -0
- package/dist/src/components/molecules/module/Module.stories.js +18 -0
- package/dist/src/components/molecules/module/Module.theme.d.ts +87 -0
- package/dist/src/components/molecules/module/Module.theme.js +43 -0
- package/dist/src/components/molecules/module/index.d.ts +2 -0
- package/dist/src/components/molecules/module/index.js +2 -0
- package/dist/src/components/molecules/nav-menu/NavMenu.theme.d.ts +15 -0
- package/dist/src/components/molecules/nav-menu/NavMenu.theme.js +12 -0
- package/dist/src/components/molecules/nav-menu/NavMenuDesktop.d.ts +5 -0
- package/dist/src/components/molecules/nav-menu/NavMenuDesktop.js +11 -0
- package/dist/src/components/molecules/nav-menu/NavMenuMobile.d.ts +5 -0
- package/dist/src/components/molecules/nav-menu/NavMenuMobile.js +49 -0
- package/dist/src/components/molecules/nav-menu/index.d.ts +3 -0
- package/dist/src/components/molecules/nav-menu/index.js +3 -0
- package/dist/src/components/molecules/obligation/Obligation.d.ts +23 -0
- package/dist/src/components/molecules/obligation/Obligation.js +44 -0
- package/dist/src/components/molecules/obligation/icons/AccountBillIcon.d.ts +2 -0
- package/dist/src/components/molecules/obligation/icons/AccountBillIcon.js +20 -0
- package/dist/src/components/molecules/obligation/icons/AccountConstructionIcon.d.ts +2 -0
- package/dist/src/components/molecules/obligation/icons/AccountConstructionIcon.js +21 -0
- package/dist/src/components/molecules/obligation/icons/AccountDentalIcon.d.ts +2 -0
- package/dist/src/components/molecules/obligation/icons/AccountDentalIcon.js +21 -0
- package/dist/src/components/molecules/obligation/icons/AccountElectricIcon.d.ts +2 -0
- package/dist/src/components/molecules/obligation/icons/AccountElectricIcon.js +21 -0
- package/dist/src/components/molecules/obligation/icons/AccountGarbageIcon.d.ts +2 -0
- package/dist/src/components/molecules/obligation/icons/AccountGarbageIcon.js +21 -0
- package/dist/src/components/molecules/obligation/icons/AccountGasIcon.d.ts +2 -0
- package/dist/src/components/molecules/obligation/icons/AccountGasIcon.js +21 -0
- package/dist/src/components/molecules/obligation/icons/AccountGenericIcon.d.ts +2 -0
- package/dist/src/components/molecules/obligation/icons/AccountGenericIcon.js +20 -0
- package/dist/src/components/molecules/obligation/icons/AccountMedicalIcon.d.ts +2 -0
- package/dist/src/components/molecules/obligation/icons/AccountMedicalIcon.js +21 -0
- package/dist/src/components/molecules/obligation/icons/AccountWaterIcon.d.ts +2 -0
- package/dist/src/components/molecules/obligation/icons/AccountWaterIcon.js +21 -0
- package/dist/src/components/molecules/obligation/icons/PropertyApartmentIcon.d.ts +2 -0
- package/dist/src/components/molecules/obligation/icons/PropertyApartmentIcon.js +22 -0
- package/dist/src/components/molecules/obligation/icons/PropertyBusinessIcon.d.ts +2 -0
- package/dist/src/components/molecules/obligation/icons/PropertyBusinessIcon.js +20 -0
- package/dist/src/components/molecules/obligation/icons/PropertyCarIcon.d.ts +2 -0
- package/dist/src/components/molecules/obligation/icons/PropertyCarIcon.js +22 -0
- package/dist/src/components/molecules/obligation/icons/PropertyCommercialVehicleIcon.d.ts +2 -0
- package/dist/src/components/molecules/obligation/icons/PropertyCommercialVehicleIcon.js +23 -0
- package/dist/src/components/molecules/obligation/icons/PropertyGarageIcon.d.ts +2 -0
- package/dist/src/components/molecules/obligation/icons/PropertyGarageIcon.js +22 -0
- package/dist/src/components/molecules/obligation/icons/PropertyLandIcon.d.ts +2 -0
- package/dist/src/components/molecules/obligation/icons/PropertyLandIcon.js +22 -0
- package/dist/src/components/molecules/obligation/icons/PropertyMotorcycleIcon.d.ts +2 -0
- package/dist/src/components/molecules/obligation/icons/PropertyMotorcycleIcon.js +22 -0
- package/dist/src/components/molecules/obligation/icons/PropertyPersonalIcon.d.ts +2 -0
- package/dist/src/components/molecules/obligation/icons/PropertyPersonalIcon.js +20 -0
- package/dist/src/components/molecules/obligation/icons/PropertyStorefrontIcon.d.ts +2 -0
- package/dist/src/components/molecules/obligation/icons/PropertyStorefrontIcon.js +23 -0
- package/dist/src/components/molecules/obligation/icons/index.d.ts +38 -0
- package/dist/src/components/molecules/obligation/icons/index.js +57 -0
- package/dist/src/components/molecules/obligation/index.d.ts +2 -0
- package/dist/src/components/molecules/obligation/index.js +2 -0
- package/dist/src/components/molecules/obligation/modules/AmountModule.d.ts +12 -0
- package/dist/src/components/molecules/obligation/modules/AmountModule.js +17 -0
- package/dist/src/components/molecules/obligation/modules/AmountModule.stories.d.ts +7 -0
- package/dist/src/components/molecules/obligation/modules/AmountModule.stories.js +12 -0
- package/dist/src/components/molecules/obligation/modules/AutopayModalModule.d.ts +4 -0
- package/dist/src/components/molecules/obligation/modules/AutopayModalModule.js +76 -0
- package/dist/src/components/molecules/obligation/modules/AutopayModalModule.theme.d.ts +15 -0
- package/dist/src/components/molecules/obligation/modules/AutopayModalModule.theme.js +15 -0
- package/dist/src/components/molecules/obligation/modules/IconModule.d.ts +8 -0
- package/dist/src/components/molecules/obligation/modules/IconModule.js +20 -0
- package/dist/src/components/molecules/obligation/modules/InactiveControlsModule.d.ts +16 -0
- package/dist/src/components/molecules/obligation/modules/InactiveControlsModule.js +18 -0
- package/dist/src/components/molecules/obligation/modules/InactiveTitleModule.d.ts +6 -0
- package/dist/src/components/molecules/obligation/modules/InactiveTitleModule.js +18 -0
- package/dist/src/components/molecules/obligation/modules/PaymentDetailsActions.d.ts +18 -0
- package/dist/src/components/molecules/obligation/modules/PaymentDetailsActions.js +44 -0
- package/dist/src/components/molecules/obligation/modules/RemoveAccountModalModule.d.ts +8 -0
- package/dist/src/components/molecules/obligation/modules/RemoveAccountModalModule.js +39 -0
- package/dist/src/components/molecules/obligation/modules/TitleModule.d.ts +7 -0
- package/dist/src/components/molecules/obligation/modules/TitleModule.js +13 -0
- package/dist/src/components/molecules/obligation/modules/index.d.ts +8 -0
- package/dist/src/components/molecules/obligation/modules/index.js +8 -0
- package/dist/src/components/molecules/pagination/Pagination.d.ts +14 -0
- package/dist/src/components/molecules/pagination/Pagination.js +56 -0
- package/dist/src/components/molecules/pagination/index.d.ts +2 -0
- package/dist/src/components/molecules/pagination/index.js +2 -0
- package/dist/src/components/molecules/partial-amount-form/PartialAmountForm.d.ts +11 -0
- package/dist/src/components/molecules/partial-amount-form/PartialAmountForm.js +27 -0
- package/dist/src/components/molecules/partial-amount-form/PartialAmountForm.state.d.ts +5 -0
- package/dist/src/components/molecules/partial-amount-form/PartialAmountForm.state.js +49 -0
- package/dist/src/components/molecules/partial-amount-form/index.d.ts +3 -0
- package/dist/src/components/molecules/partial-amount-form/index.js +3 -0
- package/dist/src/components/molecules/payment-button-bar/PaymentButtonBar.d.ts +15 -0
- package/dist/src/components/molecules/payment-button-bar/PaymentButtonBar.js +24 -0
- package/dist/src/components/molecules/payment-button-bar/PaymentButtonBar.stories.d.ts +7 -0
- package/dist/src/components/molecules/payment-button-bar/PaymentButtonBar.stories.js +10 -0
- package/dist/src/components/molecules/payment-button-bar/index.d.ts +2 -0
- package/dist/src/components/molecules/payment-button-bar/index.js +2 -0
- package/dist/src/components/molecules/payment-details/PaymentDetails.d.ts +5 -0
- package/dist/src/components/molecules/payment-details/PaymentDetails.js +143 -0
- package/dist/src/components/molecules/payment-details/PaymentDetails.stories.d.ts +11 -0
- package/dist/src/components/molecules/payment-details/PaymentDetails.stories.js +126 -0
- package/dist/src/components/molecules/payment-details/PaymentDetails.theme.d.ts +30 -0
- package/dist/src/components/molecules/payment-details/PaymentDetails.theme.js +10 -0
- package/dist/src/components/molecules/payment-details/index.d.ts +1 -0
- package/dist/src/components/molecules/payment-details/index.js +1 -0
- package/dist/src/components/molecules/payment-form-ach/PaymentFormACH.d.ts +16 -0
- package/dist/src/components/molecules/payment-form-ach/PaymentFormACH.js +52 -0
- package/dist/src/components/molecules/payment-form-ach/PaymentFormACH.state.d.ts +3 -0
- package/dist/src/components/molecules/payment-form-ach/PaymentFormACH.state.js +28 -0
- package/dist/src/components/molecules/payment-form-ach/PaymentFormACH.stories.d.ts +7 -0
- package/dist/src/components/molecules/payment-form-ach/PaymentFormACH.stories.js +16 -0
- package/dist/src/components/molecules/payment-form-ach/index.d.ts +2 -0
- package/dist/src/components/molecules/payment-form-ach/index.js +6 -0
- package/dist/src/components/molecules/payment-form-card/PaymentFormCard.d.ts +4 -0
- package/dist/src/components/molecules/payment-form-card/PaymentFormCard.js +74 -0
- package/dist/src/components/molecules/payment-form-card/PaymentFormCard.state.d.ts +3 -0
- package/dist/src/components/molecules/payment-form-card/PaymentFormCard.state.js +41 -0
- package/dist/src/components/molecules/payment-form-card/PaymentFormCard.stories.d.ts +7 -0
- package/dist/src/components/molecules/payment-form-card/PaymentFormCard.stories.js +16 -0
- package/dist/src/components/molecules/payment-form-card/index.d.ts +2 -0
- package/dist/src/components/molecules/payment-form-card/index.js +6 -0
- package/dist/src/components/molecules/periscope-dashboard-iframe/PeriscopeDashBoardIframe.stories.d.ts +7 -0
- package/dist/src/components/molecules/periscope-dashboard-iframe/PeriscopeDashBoardIframe.stories.js +10 -0
- package/dist/src/components/molecules/periscope-dashboard-iframe/PeriscopeDashboardIframe.d.ts +11 -0
- package/dist/src/components/molecules/periscope-dashboard-iframe/PeriscopeDashboardIframe.js +70 -0
- package/dist/src/components/molecules/periscope-dashboard-iframe/PeriscopeDashboardIframe.styled.d.ts +1 -0
- package/dist/src/components/molecules/periscope-dashboard-iframe/PeriscopeDashboardIframe.styled.js +8 -0
- package/dist/src/components/molecules/periscope-dashboard-iframe/index.d.ts +2 -0
- package/dist/src/components/molecules/periscope-dashboard-iframe/index.js +2 -0
- package/dist/src/components/molecules/phone-form/PhoneForm.d.ts +12 -0
- package/dist/src/components/molecules/phone-form/PhoneForm.js +23 -0
- package/dist/src/components/molecules/phone-form/PhoneForm.state.d.ts +3 -0
- package/dist/src/components/molecules/phone-form/PhoneForm.state.js +9 -0
- package/dist/src/components/molecules/phone-form/PhoneForm.stories.d.ts +7 -0
- package/dist/src/components/molecules/phone-form/PhoneForm.stories.js +16 -0
- package/dist/src/components/molecules/phone-form/index.d.ts +2 -0
- package/dist/src/components/molecules/phone-form/index.js +6 -0
- package/dist/src/components/molecules/radio-section/RadioSection.d.ts +5 -0
- package/dist/src/components/molecules/radio-section/RadioSection.js +126 -0
- package/dist/src/components/molecules/radio-section/RadioSection.stories.d.ts +7 -0
- package/dist/src/components/molecules/radio-section/RadioSection.stories.js +18 -0
- package/dist/src/components/molecules/radio-section/RadioSection.theme.d.ts +13 -0
- package/dist/src/components/molecules/radio-section/RadioSection.theme.js +13 -0
- package/dist/src/components/molecules/radio-section/index.d.ts +2 -0
- package/dist/src/components/molecules/radio-section/index.js +2 -0
- package/dist/src/components/molecules/registration-form/RegistrationForm.d.ts +9 -0
- package/dist/src/components/molecules/registration-form/RegistrationForm.js +43 -0
- package/dist/src/components/molecules/registration-form/RegistrationForm.state.d.ts +3 -0
- package/dist/src/components/molecules/registration-form/RegistrationForm.state.js +27 -0
- package/dist/src/components/molecules/registration-form/RegistrationForm.stories.d.ts +7 -0
- package/dist/src/components/molecules/registration-form/RegistrationForm.stories.js +16 -0
- package/dist/src/components/molecules/registration-form/index.d.ts +2 -0
- package/dist/src/components/molecules/registration-form/index.js +6 -0
- package/dist/src/components/molecules/reset-confirmation-form/ResetConfirmationForm.d.ts +4 -0
- package/dist/src/components/molecules/reset-confirmation-form/ResetConfirmationForm.js +27 -0
- package/dist/src/components/molecules/reset-confirmation-form/ResetConfirmationForm.stories.d.ts +7 -0
- package/dist/src/components/molecules/reset-confirmation-form/ResetConfirmationForm.stories.js +9 -0
- package/dist/src/components/molecules/reset-confirmation-form/index.d.ts +2 -0
- package/dist/src/components/molecules/reset-confirmation-form/index.js +2 -0
- package/dist/src/components/molecules/reset-password-form/ResetPasswordForm.d.ts +9 -0
- package/dist/src/components/molecules/reset-password-form/ResetPasswordForm.js +30 -0
- package/dist/src/components/molecules/reset-password-form/ResetPasswordForm.state.d.ts +3 -0
- package/dist/src/components/molecules/reset-password-form/ResetPasswordForm.state.js +18 -0
- package/dist/src/components/molecules/reset-password-form/ResetPasswordForm.stories.d.ts +7 -0
- package/dist/src/components/molecules/reset-password-form/ResetPasswordForm.stories.js +16 -0
- package/dist/src/components/molecules/reset-password-form/index.d.ts +2 -0
- package/dist/src/components/molecules/reset-password-form/index.js +6 -0
- package/dist/src/components/molecules/reset-password-success/ResetPasswordSuccess.d.ts +4 -0
- package/dist/src/components/molecules/reset-password-success/ResetPasswordSuccess.js +27 -0
- package/dist/src/components/molecules/reset-password-success/ResetPasswordSuccess.stories.d.ts +7 -0
- package/dist/src/components/molecules/reset-password-success/ResetPasswordSuccess.stories.js +9 -0
- package/dist/src/components/molecules/reset-password-success/index.d.ts +2 -0
- package/dist/src/components/molecules/reset-password-success/index.js +2 -0
- package/dist/src/components/molecules/tab-sidebar/TabSidebar.d.ts +5 -0
- package/dist/src/components/molecules/tab-sidebar/TabSidebar.js +28 -0
- package/dist/src/components/molecules/tab-sidebar/TabSidebar.stories.d.ts +7 -0
- package/dist/src/components/molecules/tab-sidebar/TabSidebar.stories.js +52 -0
- package/dist/src/components/molecules/tab-sidebar/TabSidebar.theme.d.ts +9 -0
- package/dist/src/components/molecules/tab-sidebar/TabSidebar.theme.js +8 -0
- package/dist/src/components/molecules/tab-sidebar/index.d.ts +2 -0
- package/dist/src/components/molecules/tab-sidebar/index.js +2 -0
- package/dist/src/components/molecules/tabs/Tabs.d.ts +5 -0
- package/dist/src/components/molecules/tabs/Tabs.js +33 -0
- package/dist/src/components/molecules/tabs/Tabs.stories.d.ts +7 -0
- package/dist/src/components/molecules/tabs/Tabs.stories.js +186 -0
- package/dist/src/components/molecules/tabs/Tabs.theme.d.ts +9 -0
- package/dist/src/components/molecules/tabs/Tabs.theme.js +8 -0
- package/dist/src/components/molecules/tabs/index.d.ts +2 -0
- package/dist/src/components/molecules/tabs/index.js +2 -0
- package/dist/src/components/molecules/terms-and-conditions/TermsAndConditions.d.ts +8 -0
- package/dist/src/components/molecules/terms-and-conditions/TermsAndConditions.js +17 -0
- package/dist/src/components/molecules/terms-and-conditions/TermsAndConditions.stories.d.ts +7 -0
- package/dist/src/components/molecules/terms-and-conditions/TermsAndConditions.stories.js +12 -0
- package/dist/src/components/molecules/terms-and-conditions/index.d.ts +2 -0
- package/dist/src/components/molecules/terms-and-conditions/index.js +2 -0
- package/dist/src/components/molecules/terms-and-conditions-modal/TermsAndConditionsModal.d.ts +5 -0
- package/dist/src/components/molecules/terms-and-conditions-modal/TermsAndConditionsModal.js +16 -0
- package/dist/src/components/molecules/terms-and-conditions-modal/TermsAndConditionsModal.stories.d.ts +7 -0
- package/dist/src/components/molecules/terms-and-conditions-modal/TermsAndConditionsModal.stories.js +19 -0
- package/dist/src/components/molecules/terms-and-conditions-modal/TermsAndConditionsModal.theme.d.ts +50 -0
- package/dist/src/components/molecules/terms-and-conditions-modal/TermsAndConditionsModal.theme.js +24 -0
- package/dist/src/components/molecules/terms-and-conditions-modal/index.d.ts +2 -0
- package/dist/src/components/molecules/terms-and-conditions-modal/index.js +2 -0
- package/dist/src/components/molecules/timeout/Timeout.d.ts +4 -0
- package/dist/src/components/molecules/timeout/Timeout.js +26 -0
- package/dist/src/components/molecules/timeout/index.d.ts +2 -0
- package/dist/src/components/molecules/timeout/index.js +2 -0
- package/dist/src/components/molecules/welcome-module/WelcomeModule.d.ts +6 -0
- package/dist/src/components/molecules/welcome-module/WelcomeModule.js +27 -0
- package/dist/src/components/molecules/welcome-module/WelcomeModule.theme.d.ts +13 -0
- package/dist/src/components/molecules/welcome-module/WelcomeModule.theme.js +13 -0
- package/dist/src/components/molecules/welcome-module/index.d.ts +2 -0
- package/dist/src/components/molecules/welcome-module/index.js +2 -0
- package/dist/src/components/molecules/workflow-tile/WorkflowTile.d.ts +7 -0
- package/dist/src/components/molecules/workflow-tile/WorkflowTile.js +19 -0
- package/dist/src/components/molecules/workflow-tile/WorkflowTile.stories.d.ts +7 -0
- package/dist/src/components/molecules/workflow-tile/WorkflowTile.stories.js +11 -0
- package/dist/src/components/molecules/workflow-tile/index.d.ts +2 -0
- package/dist/src/components/molecules/workflow-tile/index.js +2 -0
- package/dist/src/components/templates/center-single/CenterSingle.d.ts +4 -0
- package/dist/src/components/templates/center-single/CenterSingle.js +20 -0
- package/dist/src/components/templates/center-single/index.d.ts +2 -0
- package/dist/src/components/templates/center-single/index.js +2 -0
- package/dist/src/components/templates/center-stack/CenterStack.d.ts +4 -0
- package/dist/src/components/templates/center-stack/CenterStack.js +22 -0
- package/dist/src/components/templates/center-stack/index.d.ts +2 -0
- package/dist/src/components/templates/center-stack/index.js +2 -0
- package/dist/src/components/templates/default-page-template/DefaultPageTemplate.d.ts +4 -0
- package/dist/src/components/templates/default-page-template/DefaultPageTemplate.js +20 -0
- package/dist/src/components/templates/default-page-template/index.d.ts +2 -0
- package/dist/src/components/templates/default-page-template/index.js +2 -0
- package/dist/src/components/templates/index.d.ts +5 -0
- package/dist/src/components/templates/index.js +5 -0
- package/dist/src/components/templates/sidebar-single-content/SidebarSingleContent.d.ts +4 -0
- package/dist/src/components/templates/sidebar-single-content/SidebarSingleContent.js +25 -0
- package/dist/src/components/templates/sidebar-single-content/index.d.ts +2 -0
- package/dist/src/components/templates/sidebar-single-content/index.js +2 -0
- package/dist/src/components/templates/sidebar-stack-content/SidebarStackContent.d.ts +4 -0
- package/dist/src/components/templates/sidebar-stack-content/SidebarStackContent.js +25 -0
- package/dist/src/components/templates/sidebar-stack-content/index.d.ts +2 -0
- package/dist/src/components/templates/sidebar-stack-content/index.js +2 -0
- package/dist/src/components/templates/templates.theme.d.ts +5 -0
- package/dist/src/components/templates/templates.theme.js +4 -0
- package/dist/src/components/withWindowSize.d.ts +4 -0
- package/dist/src/components/withWindowSize.js +70 -0
- package/dist/src/constants/colors.d.ts +97 -0
- package/dist/src/constants/colors.js +113 -0
- package/dist/src/constants/index.d.ts +3 -0
- package/dist/src/constants/index.js +3 -0
- package/dist/src/constants/regex_constants.d.ts +1 -0
- package/dist/src/constants/regex_constants.js +1 -0
- package/dist/src/constants/style_constants.d.ts +8 -0
- package/dist/src/constants/style_constants.js +10 -0
- package/dist/src/deprecated/colors.d.ts +81 -0
- package/dist/src/deprecated/colors.js +97 -0
- package/dist/src/deprecated/components/radio-button/index.d.ts +2 -0
- package/dist/src/deprecated/components/radio-button/index.js +2 -0
- package/dist/src/deprecated/components/radio-button/radio-button.d.ts +5 -0
- package/dist/src/deprecated/components/radio-button/radio-button.js +29 -0
- package/dist/src/deprecated/icons/AlertErrorIcon.d.ts +1 -0
- package/dist/src/deprecated/icons/AlertErrorIcon.js +10 -0
- package/dist/src/deprecated/icons/AlertInfoIcon.d.ts +1 -0
- package/dist/src/deprecated/icons/AlertInfoIcon.js +10 -0
- package/dist/src/deprecated/icons/AlertSuccessIcon.d.ts +1 -0
- package/dist/src/deprecated/icons/AlertSuccessIcon.js +10 -0
- package/dist/src/deprecated/icons/AlertWarningIcon.d.ts +1 -0
- package/dist/src/deprecated/icons/AlertWarningIcon.js +6 -0
- package/dist/src/deprecated/icons/BankIcon.d.ts +2 -0
- package/dist/src/deprecated/icons/BankIcon.js +19 -0
- package/dist/src/deprecated/icons/GenericCard.d.ts +2 -0
- package/dist/src/deprecated/icons/GenericCard.js +9 -0
- package/dist/src/deprecated/icons/IconCheck.d.ts +5 -0
- package/dist/src/deprecated/icons/IconCheck.js +10 -0
- package/dist/src/deprecated/icons/IconCheckEmail.d.ts +4 -0
- package/dist/src/deprecated/icons/IconCheckEmail.js +14 -0
- package/dist/src/deprecated/icons/IconChevron.d.ts +3 -0
- package/dist/src/deprecated/icons/IconChevron.js +14 -0
- package/dist/src/deprecated/icons/IconEmailVerified.d.ts +4 -0
- package/dist/src/deprecated/icons/IconEmailVerified.js +22 -0
- package/dist/src/deprecated/icons/IconEye.d.ts +3 -0
- package/dist/src/deprecated/icons/IconEye.js +15 -0
- package/dist/src/deprecated/icons/IconEyeSlash.d.ts +3 -0
- package/dist/src/deprecated/icons/IconEyeSlash.js +19 -0
- package/dist/src/deprecated/icons/IconInvalid.d.ts +7 -0
- package/dist/src/deprecated/icons/IconInvalid.js +14 -0
- package/dist/src/deprecated/icons/IconNeutral.d.ts +6 -0
- package/dist/src/deprecated/icons/IconNeutral.js +10 -0
- package/dist/src/deprecated/icons/IconQuit.d.ts +5 -0
- package/dist/src/deprecated/icons/IconQuit.js +14 -0
- package/dist/src/deprecated/icons/IconValid.d.ts +7 -0
- package/dist/src/deprecated/icons/IconValid.js +15 -0
- package/dist/src/deprecated/icons/IconWarn.d.ts +3 -0
- package/dist/src/deprecated/icons/IconWarn.js +13 -0
- package/dist/src/deprecated/icons/index.d.ts +22 -0
- package/dist/src/deprecated/icons/index.js +22 -0
- package/dist/src/deprecated/index.d.ts +1 -0
- package/dist/src/deprecated/index.js +1 -0
- package/dist/src/deprecated/spinner/Spinner.d.ts +7 -0
- package/dist/src/deprecated/spinner/Spinner.js +46 -0
- package/dist/src/deprecated/spinner/index.d.ts +1 -0
- package/dist/src/deprecated/spinner/index.js +1 -0
- package/dist/src/deprecated/utility/__tests__/safeConcat.spec.d.ts +1 -0
- package/dist/src/deprecated/utility/__tests__/safeConcat.spec.js +47 -0
- package/dist/src/deprecated/utility/__tests__/validateKeyType.spec.d.ts +1 -0
- package/dist/src/deprecated/utility/__tests__/validateKeyType.spec.js +100 -0
- package/dist/src/deprecated/utility/index.d.ts +2 -0
- package/dist/src/deprecated/utility/index.js +2 -0
- package/dist/src/deprecated/utility/safeConcat.d.ts +1 -0
- package/dist/src/deprecated/utility/safeConcat.js +8 -0
- package/dist/src/deprecated/utility/validateKeyType.d.ts +1 -0
- package/dist/src/deprecated/utility/validateKeyType.js +13 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.js +4 -0
- package/dist/src/util/focusFirstInvalidInputHook.d.ts +2 -0
- package/dist/src/util/focusFirstInvalidInputHook.js +17 -0
- package/dist/src/util/formats.d.ts +9 -0
- package/dist/src/util/formats.js +70 -0
- package/dist/src/util/general.d.ts +13 -0
- package/dist/src/util/general.js +101 -0
- package/dist/src/util/index.d.ts +5 -0
- package/dist/src/util/index.js +5 -0
- package/dist/src/util/inputValidationUtils.d.ts +43 -0
- package/dist/src/util/inputValidationUtils.js +92 -0
- package/dist/src/util/themeUtils.d.ts +5 -0
- package/dist/src/util/themeUtils.js +129 -0
- package/package.json +1 -1
- package/src/components/atoms/icons/{ExternalLinkicon.js → ExternalLinkIcon.js} +0 -0
- package/src/components/atoms/icons/FindIconSmall.js +49 -0
- package/src/components/atoms/icons/index.js +3 -1
- package/src/components/atoms/index.js +2 -1
- package/src/components/atoms/link/ExternalLink.d.ts +1 -1
- package/src/components/atoms/link/ExternalLink.js +48 -42
- package/src/components/atoms/link/ExternalLink.styled.js +4 -2
- package/src/components/atoms/link/InternalLink.d.ts +1 -1
- package/src/components/atoms/link/InternalLink.js +48 -42
- package/src/components/atoms/link/InternalLink.styled.js +6 -3
- package/src/components/atoms/radio-button-with-label/RadioButtonWithLabel.js +92 -0
- package/src/components/atoms/radio-button-with-label/index.js +3 -0
- package/src/components/molecules/index.js +1 -1
- package/src/components/molecules/radio-group/RadioGroup.js +62 -0
- package/src/components/molecules/radio-group/RadioGroup.stories.js +44 -0
- package/src/components/molecules/radio-group/index.js +3 -0
- package/src/components/molecules/radio-section/RadioSection.js +1 -1
- package/src/components/molecules/radio-section/RadioSection.stories.js +1 -1
- package/src/components/{atoms → molecules/radio-section}/radio-button/RadioButton.js +2 -2
- package/src/components/{atoms → molecules/radio-section}/radio-button/RadioButton.theme.js +1 -1
- package/src/components/molecules/workflow-tile/WorkflowTile.js +13 -5
- package/src/.DS_Store +0 -0
- package/src/components/atoms/.DS_Store +0 -0
- package/src/components/atoms/radio-button/RadioButton.stories.js +0 -34
- package/src/components/molecules/internal-user-info-form/InternalUserInfoForm.js +0 -266
- package/src/components/molecules/internal-user-info-form/InternalUserInfoForm.state.js +0 -26
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React, { useContext, Fragment } from "react";
|
|
2
|
+
import { ThemeContext } from "styled-components";
|
|
3
|
+
import ButtonWithLink from "../../atoms/button-with-link";
|
|
4
|
+
import ButtonWithAction from "../../atoms/button-with-action";
|
|
5
|
+
import { Box, Cluster } from "../../atoms/layouts";
|
|
6
|
+
import SolidDivider from "../../atoms/solid-divider";
|
|
7
|
+
var PaymentButtonBar = function (_a) {
|
|
8
|
+
var _b = _a.forwardButtonText, forwardButtonText = _b === void 0 ? "Next" : _b, forwardButtonAction = _a.forwardButtonAction, forwardButtonLoading = _a.forwardButtonLoading, _c = _a.forwardButtonVariant, forwardButtonVariant = _c === void 0 ? "primary" : _c, _d = _a.backButtonVariant, backButtonVariant = _d === void 0 ? "secondary" : _d, backButtonAction = _a.backButtonAction, cancelURL = _a.cancelURL, _e = _a.cancelText, cancelText = _e === void 0 ? "Cancel" : _e, redirectURL = _a.redirectURL, _f = _a.redirectText, redirectText = _f === void 0 ? "Return" : _f, buttonFlexOverride = _a.buttonFlexOverride, _g = _a.hideForwardButton, hideForwardButton = _g === void 0 ? false : _g;
|
|
9
|
+
var isMobile = useContext(ThemeContext).isMobile;
|
|
10
|
+
var backButton = !!cancelURL && !!cancelText ? (React.createElement(ButtonWithLink, { text: cancelText, url: cancelURL, variant: backButtonVariant, extraStyles: isMobile && "flex-grow: 1", dataQa: cancelText })) : (backButtonAction && (React.createElement(ButtonWithAction, { text: "Back", variant: backButtonVariant, action: backButtonAction, extraStyles: isMobile && "flex-grow: 1", dataQa: "Back" })));
|
|
11
|
+
var forwardButton = !!redirectURL ? (React.createElement(ButtonWithLink, { url: redirectURL, text: redirectText, variant: forwardButtonVariant, extraStyles: isMobile && "flex-grow: 1", dataQa: redirectText })) : (forwardButtonAction && (React.createElement(ButtonWithAction, { text: forwardButtonText, variant: forwardButtonVariant, action: forwardButtonAction, isLoading: forwardButtonLoading, extraStyles: isMobile && "flex-grow: 1", dataQa: forwardButtonText })));
|
|
12
|
+
return (React.createElement(Fragment, null,
|
|
13
|
+
React.createElement(Box, { padding: "1.25rem 0" }),
|
|
14
|
+
React.createElement(SolidDivider, null),
|
|
15
|
+
React.createElement(Box, { padding: "2.5rem 0 3.125rem 0" },
|
|
16
|
+
React.createElement(Cluster, { justify: buttonFlexOverride
|
|
17
|
+
? buttonFlexOverride
|
|
18
|
+
: !!backButton
|
|
19
|
+
? "space-between"
|
|
20
|
+
: "flex-end", align: "center" },
|
|
21
|
+
backButton,
|
|
22
|
+
!hideForwardButton && React.createElement(Fragment, null, forwardButton)))));
|
|
23
|
+
};
|
|
24
|
+
export default PaymentButtonBar;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { text, boolean } from "@storybook/addon-knobs";
|
|
3
|
+
import PaymentButtonBar from "./PaymentButtonBar";
|
|
4
|
+
import page from "../../../../.storybook/page";
|
|
5
|
+
export var paymentButtonBar = function () { return (React.createElement(PaymentButtonBar, { forwardButtonText: text("forwardButtonText", "Next", "props"), cancelText: text("cancelText", "Cancel", "props"), backButtonAction: function () { }, forwardButtonAction: function () { }, forwardButtonLoading: boolean("forwardButtonLoading", false, "props") })); };
|
|
6
|
+
var story = page({
|
|
7
|
+
title: "Components|Molecules/PaymentButtonBar",
|
|
8
|
+
Component: PaymentButtonBar
|
|
9
|
+
});
|
|
10
|
+
export default story;
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import React, { useState, Fragment } from "react";
|
|
24
|
+
import { Stack, Cluster, Box, Motion } from "../../atoms/layouts";
|
|
25
|
+
import { fallbackValues } from "./PaymentDetails.theme";
|
|
26
|
+
import { displayCurrency } from "../../../util/general";
|
|
27
|
+
import { themeComponent } from "../../../util/themeUtils";
|
|
28
|
+
import CollapsibleSection from "../collapsible-section";
|
|
29
|
+
import LabeledAmount from "../../atoms/labeled-amount";
|
|
30
|
+
import LineItem from "../../atoms/line-item";
|
|
31
|
+
import Title from "../../atoms/title";
|
|
32
|
+
import SolidDivider from "../../atoms/solid-divider";
|
|
33
|
+
import { FONT_WEIGHT_BOLD, FONT_WEIGHT_REGULAR } from "../../../constants/style_constants";
|
|
34
|
+
import { ATHENS_GREY } from "../../../constants/colors";
|
|
35
|
+
import ButtonWithAction from "../../atoms/button-with-action";
|
|
36
|
+
import Text from "../../atoms/text";
|
|
37
|
+
import { noop } from "../../../util/general";
|
|
38
|
+
var PaymentDetailsContent = function (_a) {
|
|
39
|
+
var lineItemElems = _a.lineItemElems, feeElems = _a.feeElems, subtotal = _a.subtotal, total = _a.total, variant = _a.variant, themeValues = _a.themeValues, hasVoidablePaymentsSection = _a.hasVoidablePaymentsSection, voidableTransactionDetails = _a.voidableTransactionDetails, voidableAmountPaid = _a.voidableAmountPaid, partialVoidAction = _a.partialVoidAction, remainingBalance = _a.remainingBalance;
|
|
40
|
+
return (React.createElement(Stack, { childGap: "16px" },
|
|
41
|
+
lineItemElems,
|
|
42
|
+
hasVoidablePaymentsSection && (React.createElement(Box, { background: ATHENS_GREY },
|
|
43
|
+
React.createElement(Text, { variant: "p", color: themeValues.text, weight: "400", fontSize: "0.875rem" }, "Paid"),
|
|
44
|
+
voidableTransactionDetails.map(function (t) { return (React.createElement(Cluster, { key: t.id, justify: "space-between", align: "center" },
|
|
45
|
+
React.createElement(Cluster, { padding: "0", align: "center", extraStyles: "font-size: 14px;" },
|
|
46
|
+
React.createElement(Box, { padding: "0" }, t.voidText),
|
|
47
|
+
React.createElement(ButtonWithAction, { variant: "ghost", action: function () { return partialVoidAction(t); }, text: "Void", padding: "0", extraStyles: "\n min-width: 65px; \n margin: 0px;\n min-height: 0px;\n ", textExtraStyles: "font-weight: ".concat(FONT_WEIGHT_REGULAR, "; font-size: 14px;") })),
|
|
48
|
+
React.createElement(Box, { padding: "0", key: t.id }, displayCurrency(t.amount_processed)))); }),
|
|
49
|
+
React.createElement(Box, { padding: "16px 0px" },
|
|
50
|
+
React.createElement(SolidDivider, null)),
|
|
51
|
+
React.createElement(LabeledAmount, { extraStyles: "font-weight: ".concat(FONT_WEIGHT_REGULAR, "; font-size: 14px;"), label: "Amount paid", amount: displayCurrency(voidableAmountPaid) }))),
|
|
52
|
+
!hasVoidablePaymentsSection && !!lineItemElems.length && (React.createElement(SolidDivider, null) // avoids duplicate dividers -> case of voidable payment section, that acts as divider
|
|
53
|
+
),
|
|
54
|
+
subtotal ? (React.createElement(React.Fragment, null,
|
|
55
|
+
React.createElement(Box, { padding: "0.5rem 0" },
|
|
56
|
+
React.createElement(LabeledAmount, { variant: themeValues.labeledAmountSubtotal, label: "Subtotal", amount: displayCurrency(subtotal) }),
|
|
57
|
+
feeElems),
|
|
58
|
+
React.createElement(SolidDivider, null))) : (React.createElement(React.Fragment, null)),
|
|
59
|
+
React.createElement(LabeledAmount, { as: "p", variant: themeValues.labeledAmountTotal, label: hasVoidablePaymentsSection ? "Remaining amount due" : "Total", amount: displayCurrency(typeof remainingBalance === "number" ? remainingBalance : total), extraStyles: variant === "small" && "font-weight: ".concat(FONT_WEIGHT_BOLD, ";") })));
|
|
60
|
+
};
|
|
61
|
+
var Collapsible = function (_a) {
|
|
62
|
+
var content = _a.content, title = _a.title, supportsTouch = _a.supportsTouch, isOpen = _a.isOpen, setIsOpen = _a.setIsOpen;
|
|
63
|
+
return (React.createElement(CollapsibleSection, { isMobile: true, supportsTouch: supportsTouch, isOpen: isOpen, title: title, initiallyOpen: false, toggleSection: function () { return setIsOpen(!isOpen); }, customTitle: true, name: "Collapsed Payment Details" },
|
|
64
|
+
React.createElement(Motion, { variants: {
|
|
65
|
+
open: { opacity: 1 },
|
|
66
|
+
closed: { opacity: 0 }
|
|
67
|
+
}, positionTransition: true, initial: "closed" }, content)));
|
|
68
|
+
};
|
|
69
|
+
var NonCollapsible = function (_a) {
|
|
70
|
+
var title = _a.title, content = _a.content;
|
|
71
|
+
return (React.createElement(Stack, null,
|
|
72
|
+
title,
|
|
73
|
+
content));
|
|
74
|
+
};
|
|
75
|
+
var PaymentDetails = function (_a) {
|
|
76
|
+
var _lineItems = _a.lineItems, _fees = _a.fees, subtotal = _a.subtotal, total = _a.total, _b = _a.variant, variant = _b === void 0 ? "default" : _b, _c = _a.hideTitle, hideTitle = _c === void 0 ? false : _c, _d = _a.titleText, titleText = _d === void 0 ? "Payment Details" : _d, _e = _a.initiallyOpen, initiallyOpen = _e === void 0 ? false : _e, _f = _a.collapsibleOnMobile, collapsibleOnMobile = _f === void 0 ? true : _f, isMobile = _a.isMobile, supportsTouch = _a.supportsTouch, themeValues = _a.themeValues,
|
|
77
|
+
// partial void section (optional)
|
|
78
|
+
_g = _a.hasVoidablePaymentsSection,
|
|
79
|
+
// partial void section (optional)
|
|
80
|
+
hasVoidablePaymentsSection = _g === void 0 ? false : _g, _h = _a.voidableTransactionDetails, voidableTransactionDetails = _h === void 0 ? [] : _h, _j = _a.partialVoidAction, partialVoidAction = _j === void 0 ? noop : _j, _k = _a.voidableAmountPaid, voidableAmountPaid = _k === void 0 ? 0 : _k, _l = _a.remainingBalance
|
|
81
|
+
// end partial void section
|
|
82
|
+
, remainingBalance = _l === void 0 ? false : _l
|
|
83
|
+
// end partial void section
|
|
84
|
+
;
|
|
85
|
+
var _m = useState(initiallyOpen), isOpen = _m[0], setIsOpen = _m[1];
|
|
86
|
+
var fees = _fees
|
|
87
|
+
.filter(function (fee) { return fee.amount > 0; })
|
|
88
|
+
.map(function (_a) {
|
|
89
|
+
var amount = _a.amount, rest = __rest(_a, ["amount"]);
|
|
90
|
+
return (__assign(__assign({}, rest), { amount: displayCurrency(amount) }));
|
|
91
|
+
});
|
|
92
|
+
var lineItems = _lineItems.map(function (_a) {
|
|
93
|
+
var amount = _a.amount, rest = __rest(_a, ["amount"]);
|
|
94
|
+
return (__assign(__assign({}, rest), { amount: displayCurrency(amount) }));
|
|
95
|
+
});
|
|
96
|
+
var isCollapsible = isMobile && collapsibleOnMobile;
|
|
97
|
+
var lineItemElems = lineItems.map(function (item, id) { return (React.createElement(LineItem, __assign({ key: id, variant: themeValues.lineItem }, item))); });
|
|
98
|
+
var feeElems = fees.map(function (fee) { return (React.createElement(Fragment, { key: fee.label },
|
|
99
|
+
React.createElement(Box, { padding: "4px 0" }),
|
|
100
|
+
React.createElement(LabeledAmount, __assign({ key: fee.label, variant: themeValues.labeledAmountSubtotal }, fee)))); });
|
|
101
|
+
var content = isCollapsible ? (React.createElement(Stack, { childGap: "0" },
|
|
102
|
+
React.createElement(Box, { padding: "4.5px" }),
|
|
103
|
+
React.createElement(SolidDivider, null),
|
|
104
|
+
React.createElement(Box, { padding: "8px" }),
|
|
105
|
+
React.createElement(PaymentDetailsContent, __assign({}, {
|
|
106
|
+
lineItemElems: lineItemElems,
|
|
107
|
+
feeElems: feeElems,
|
|
108
|
+
subtotal: subtotal,
|
|
109
|
+
total: total,
|
|
110
|
+
themeValues: themeValues,
|
|
111
|
+
variant: variant,
|
|
112
|
+
hasVoidablePaymentsSection: hasVoidablePaymentsSection,
|
|
113
|
+
voidableTransactionDetails: voidableTransactionDetails,
|
|
114
|
+
voidableAmountPaid: voidableAmountPaid,
|
|
115
|
+
partialVoidAction: partialVoidAction,
|
|
116
|
+
remainingBalance: remainingBalance
|
|
117
|
+
})))) : (React.createElement(PaymentDetailsContent, __assign({}, {
|
|
118
|
+
lineItemElems: lineItemElems,
|
|
119
|
+
feeElems: feeElems,
|
|
120
|
+
subtotal: subtotal,
|
|
121
|
+
total: total,
|
|
122
|
+
themeValues: themeValues,
|
|
123
|
+
variant: variant,
|
|
124
|
+
hasVoidablePaymentsSection: hasVoidablePaymentsSection,
|
|
125
|
+
voidableTransactionDetails: voidableTransactionDetails,
|
|
126
|
+
voidableAmountPaid: voidableAmountPaid,
|
|
127
|
+
partialVoidAction: partialVoidAction,
|
|
128
|
+
remainingBalance: remainingBalance
|
|
129
|
+
})));
|
|
130
|
+
var title = hideTitle ? (React.createElement(Fragment, null)) : isCollapsible ? (React.createElement(Box, { width: "100%", padding: "none" },
|
|
131
|
+
React.createElement(Cluster, { justify: "space-between", align: "center" },
|
|
132
|
+
React.createElement(Title, { weight: FONT_WEIGHT_BOLD, as: "h1", extraStyles: "font-size: 1.375rem;", id: "payment-details-title" }, titleText),
|
|
133
|
+
React.createElement(Title, { weight: FONT_WEIGHT_BOLD, as: "p", extraStyles: "font-size: 1.375rem;" }, displayCurrency(total))))) : (React.createElement(Title, { as: "h1", weight: FONT_WEIGHT_BOLD, margin: "1rem 0 0 0", extraStyles: "font-size: 1.75rem;", id: "payment-details-title" }, titleText));
|
|
134
|
+
return isCollapsible ? (React.createElement(Collapsible, __assign({}, {
|
|
135
|
+
title: title,
|
|
136
|
+
content: content,
|
|
137
|
+
isOpen: isOpen,
|
|
138
|
+
setIsOpen: setIsOpen,
|
|
139
|
+
isMobile: isMobile,
|
|
140
|
+
supportsTouch: supportsTouch
|
|
141
|
+
}))) : (React.createElement(NonCollapsible, __assign({}, { title: title, content: content })));
|
|
142
|
+
};
|
|
143
|
+
export default themeComponent(PaymentDetails, "PaymentDetails", fallbackValues, "default");
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export function paymentDetails(): JSX.Element;
|
|
2
|
+
export function paymentDetailsWithPartialVoids(): JSX.Element;
|
|
3
|
+
export namespace paymentDetailsWithPartialVoids {
|
|
4
|
+
const storyName: string;
|
|
5
|
+
}
|
|
6
|
+
export default story;
|
|
7
|
+
declare const story: {
|
|
8
|
+
title: any;
|
|
9
|
+
component: any;
|
|
10
|
+
decorators: ((storyFn: any) => JSX.Element)[];
|
|
11
|
+
};
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { text, boolean, number } from "@storybook/addon-knobs";
|
|
3
|
+
import PaymentDetails from "./PaymentDetails";
|
|
4
|
+
import page from "../../../../.storybook/page";
|
|
5
|
+
var payment = {
|
|
6
|
+
fees: [
|
|
7
|
+
{
|
|
8
|
+
amount: 1739.12,
|
|
9
|
+
label: "Service Fee"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
lineItems: [
|
|
13
|
+
{
|
|
14
|
+
amount: 77294,
|
|
15
|
+
customAttributes: [
|
|
16
|
+
{
|
|
17
|
+
key: "parcel_id",
|
|
18
|
+
value: "71-83-630-216-0724"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
key: "property_city",
|
|
22
|
+
value: "North Breana"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
key: "property_class",
|
|
26
|
+
value: "7-91"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
key: "property_secondary_address",
|
|
30
|
+
value: "79"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
key: "property_street_address",
|
|
34
|
+
value: "0034 Bednar Mission"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
key: "property_zip_code",
|
|
38
|
+
value: "80326-6917"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
key: "tax_rate",
|
|
42
|
+
value: "7.076"
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
description: "0034 Bednar Mission Unit: 79",
|
|
46
|
+
quantity: 1,
|
|
47
|
+
subDescription: "PIN: 71-83-630-216-0724"
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
subtotal: 77294,
|
|
51
|
+
total: 79033
|
|
52
|
+
};
|
|
53
|
+
var voidableTransactionDetails = [
|
|
54
|
+
{
|
|
55
|
+
status: "successful",
|
|
56
|
+
id: 3,
|
|
57
|
+
warnings: [],
|
|
58
|
+
payment_type: "Card Payment",
|
|
59
|
+
amount_given: 100,
|
|
60
|
+
amount_processed: 100,
|
|
61
|
+
change_due: 0,
|
|
62
|
+
service_fee: 0,
|
|
63
|
+
credit_card: {
|
|
64
|
+
last_four: "0043"
|
|
65
|
+
},
|
|
66
|
+
bank_account: {
|
|
67
|
+
account_number_last_four: null
|
|
68
|
+
},
|
|
69
|
+
voidText: "Card ending in 0043"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
status: "successful",
|
|
73
|
+
id: 5,
|
|
74
|
+
warnings: [],
|
|
75
|
+
payment_type: "Card Payment",
|
|
76
|
+
amount_given: 100,
|
|
77
|
+
amount_processed: 100,
|
|
78
|
+
change_due: 0,
|
|
79
|
+
service_fee: 0,
|
|
80
|
+
credit_card: {
|
|
81
|
+
last_four: "0043"
|
|
82
|
+
},
|
|
83
|
+
bank_account: {
|
|
84
|
+
account_number_last_four: null
|
|
85
|
+
},
|
|
86
|
+
voidText: "Card ending in 0043"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
status: "successful",
|
|
90
|
+
id: 6,
|
|
91
|
+
warnings: [],
|
|
92
|
+
payment_type: "Check Payment",
|
|
93
|
+
amount_given: 200,
|
|
94
|
+
amount_processed: 200,
|
|
95
|
+
change_due: 0,
|
|
96
|
+
service_fee: 0,
|
|
97
|
+
credit_card: {
|
|
98
|
+
last_four: null
|
|
99
|
+
},
|
|
100
|
+
bank_account: {
|
|
101
|
+
account_number_last_four: "123"
|
|
102
|
+
},
|
|
103
|
+
voidText: "Account ending in 123"
|
|
104
|
+
}
|
|
105
|
+
];
|
|
106
|
+
var lineItems2 = [
|
|
107
|
+
{
|
|
108
|
+
amount: 500,
|
|
109
|
+
description: "Point of Sale Manual Entry - CLERK",
|
|
110
|
+
quantity: 1,
|
|
111
|
+
subDescription: "Test description"
|
|
112
|
+
}
|
|
113
|
+
];
|
|
114
|
+
export var paymentDetails = function () { return (React.createElement(PaymentDetails, { subtotal: text("subtotal", String(payment.subtotal), "props"), lineItems: payment.lineItems, fees: payment.fees, total: text("total", String(payment.total), "props"), collapsibleOnMobile: boolean("collapsibleOnMobile", false, "props"), initiallyOpen: boolean("initiallyOpen", true, "props"), hideTitle: boolean("hideTitle", false, "props") })); };
|
|
115
|
+
export var paymentDetailsWithPartialVoids = function () { return (React.createElement(PaymentDetails, { subtotal: false, lineItems: lineItems2, fees: [], total: 500, collapsibleOnMobile: boolean("collapsibleOnMobile", false, "props"), initiallyOpen: boolean("initiallyOpen", true, "props"), hideTitle: boolean("hideTitle", false, "props"),
|
|
116
|
+
// partial voids section (optional)
|
|
117
|
+
hasVoidablePaymentsSection: boolean("hasVoidablePaymentsSection", true, "props"), voidableTransactionDetails: voidableTransactionDetails, partialVoidAction: function (transaction) {
|
|
118
|
+
console.log("Your function to void payment id: ".concat(transaction.id));
|
|
119
|
+
}, voidableAmountPaid: number("voidableAmountPaid", 400), remainingBalance: 100 })); };
|
|
120
|
+
paymentDetailsWithPartialVoids.storyName =
|
|
121
|
+
"Payment Details (with partial voids)";
|
|
122
|
+
var story = page({
|
|
123
|
+
title: "Components|Molecules/PaymentDetails",
|
|
124
|
+
Component: PaymentDetails
|
|
125
|
+
});
|
|
126
|
+
export default story;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export namespace fallbackValues {
|
|
2
|
+
export { backgroundColor };
|
|
3
|
+
export { lineItem };
|
|
4
|
+
export { labeledAmountSubtotal };
|
|
5
|
+
export { labeledAmountTotal };
|
|
6
|
+
}
|
|
7
|
+
declare namespace backgroundColor {
|
|
8
|
+
const _default: string;
|
|
9
|
+
export { _default as default };
|
|
10
|
+
export const small: string;
|
|
11
|
+
}
|
|
12
|
+
declare namespace lineItem {
|
|
13
|
+
const _default_1: string;
|
|
14
|
+
export { _default_1 as default };
|
|
15
|
+
const small_1: string;
|
|
16
|
+
export { small_1 as small };
|
|
17
|
+
}
|
|
18
|
+
declare namespace labeledAmountSubtotal {
|
|
19
|
+
const _default_2: string;
|
|
20
|
+
export { _default_2 as default };
|
|
21
|
+
const small_2: string;
|
|
22
|
+
export { small_2 as small };
|
|
23
|
+
}
|
|
24
|
+
declare namespace labeledAmountTotal {
|
|
25
|
+
const _default_3: string;
|
|
26
|
+
export { _default_3 as default };
|
|
27
|
+
const small_3: string;
|
|
28
|
+
export { small_3 as small };
|
|
29
|
+
}
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
var backgroundColor = { default: "transparent", small: "transparent" };
|
|
2
|
+
var lineItem = { default: "default", small: "small" };
|
|
3
|
+
var labeledAmountSubtotal = { default: "pL", small: "pS" };
|
|
4
|
+
var labeledAmountTotal = { default: "h6", small: "p" };
|
|
5
|
+
export var fallbackValues = {
|
|
6
|
+
backgroundColor: backgroundColor,
|
|
7
|
+
lineItem: lineItem,
|
|
8
|
+
labeledAmountSubtotal: labeledAmountSubtotal,
|
|
9
|
+
labeledAmountTotal: labeledAmountTotal
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./PaymentDetails";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./PaymentDetails";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export default PaymentFormACH;
|
|
2
|
+
declare function PaymentFormACH({ variant, defaultMethod, toggleCheckbox, hideDefaultPayment, allowBankAccountType, clearOnDismount, fields, actions, showErrors, handleSubmit, showWalletCheckbox, saveToWallet, walletCheckboxMarked }: {
|
|
3
|
+
variant?: string | undefined;
|
|
4
|
+
defaultMethod: any;
|
|
5
|
+
toggleCheckbox: any;
|
|
6
|
+
hideDefaultPayment?: boolean | undefined;
|
|
7
|
+
allowBankAccountType: any;
|
|
8
|
+
clearOnDismount: any;
|
|
9
|
+
fields: any;
|
|
10
|
+
actions: any;
|
|
11
|
+
showErrors: any;
|
|
12
|
+
handleSubmit?: (() => void) | undefined;
|
|
13
|
+
showWalletCheckbox: any;
|
|
14
|
+
saveToWallet: any;
|
|
15
|
+
walletCheckboxMarked: any;
|
|
16
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React, { useEffect, useState } from "react";
|
|
2
|
+
import Checkbox from "../../atoms/checkbox";
|
|
3
|
+
import { required, matchesField, hasLength, isRoutingNumber } from "redux-freeform";
|
|
4
|
+
import FormSelect from "../../atoms/form-select";
|
|
5
|
+
import { FormInput, FormInputColumn, FormContainer } from "../../atoms/form-layouts";
|
|
6
|
+
import AccountAndRoutingModal from "../account-and-routing-modal";
|
|
7
|
+
import { noop } from "../../../util/general";
|
|
8
|
+
var PaymentFormACH = function (_a) {
|
|
9
|
+
var _b, _c, _d, _e, _f, _g;
|
|
10
|
+
var _h = _a.variant, variant = _h === void 0 ? "default" : _h, defaultMethod = _a.defaultMethod, toggleCheckbox = _a.toggleCheckbox, _j = _a.hideDefaultPayment, hideDefaultPayment = _j === void 0 ? true : _j, allowBankAccountType = _a.allowBankAccountType, clearOnDismount = _a.clearOnDismount, fields = _a.fields, actions = _a.actions, showErrors = _a.showErrors, _k = _a.handleSubmit, handleSubmit = _k === void 0 ? noop : _k, showWalletCheckbox = _a.showWalletCheckbox, saveToWallet = _a.saveToWallet, walletCheckboxMarked = _a.walletCheckboxMarked;
|
|
11
|
+
if (clearOnDismount) {
|
|
12
|
+
useEffect(function () { return function () { return actions.form.clear(); }; }, []);
|
|
13
|
+
}
|
|
14
|
+
var _l = useState(false), showRouting = _l[0], toggleShowRouting = _l[1];
|
|
15
|
+
var _m = useState(false), showAccount = _m[0], toggleShowAccount = _m[1];
|
|
16
|
+
var nameErrors = (_b = {},
|
|
17
|
+
_b[required.error] = "Name is required",
|
|
18
|
+
_b);
|
|
19
|
+
var routingNumberErrors = (_c = {},
|
|
20
|
+
_c[required.error] = "Routing number is required",
|
|
21
|
+
_c[hasLength.error] = "Routing number must be 9 digits",
|
|
22
|
+
_c[isRoutingNumber.error] = "Invalid routing number",
|
|
23
|
+
_c);
|
|
24
|
+
var confirmRoutingNumberErrors = (_d = {},
|
|
25
|
+
_d[matchesField.error] = "Confirm routing number field must match routing number",
|
|
26
|
+
_d);
|
|
27
|
+
var accountNumberErrors = (_e = {},
|
|
28
|
+
_e[required.error] = "Account number is required",
|
|
29
|
+
_e[hasLength.error] = "Account number must be between 5 and 17 digits",
|
|
30
|
+
_e);
|
|
31
|
+
var confirmAccountNumberErrors = (_f = {},
|
|
32
|
+
_f[matchesField.error] = "Confirm account number field must match account number",
|
|
33
|
+
_f);
|
|
34
|
+
var accountTypeErrors = (_g = {},
|
|
35
|
+
_g[required.error] = "Account type is required",
|
|
36
|
+
_g);
|
|
37
|
+
return (React.createElement(FormContainer, { variant: variant, role: "form", "aria-label": "ACH Payment" },
|
|
38
|
+
React.createElement(FormInputColumn, null,
|
|
39
|
+
React.createElement(FormInput, { labelTextWhenNoError: "Name on checking account", errorMessages: nameErrors, field: fields.name, fieldActions: actions.fields.name, showErrors: showErrors, onKeyDown: function (e) { return e.key === "Enter" && handleSubmit(e); }, autocomplete: "name" }),
|
|
40
|
+
React.createElement(FormInput, { labelTextWhenNoError: "Routing number", errorMessages: routingNumberErrors, field: fields.routingNumber, fieldActions: actions.fields.routingNumber, showErrors: showErrors, isNum: true, helperModal: function () { return (React.createElement(AccountAndRoutingModal, { link: "What is this?", title: "Where is my routing number?", content: "Your routing number is the 9-digit number in the bottom left\n corner of your check.", imageType: "Routing", isOpen: showRouting, toggleOpen: toggleShowRouting })); }, onKeyDown: function (e) { return e.key === "Enter" && handleSubmit(e); } }),
|
|
41
|
+
React.createElement(FormInput, { labelTextWhenNoError: "Confirm routing number", errorMessages: confirmRoutingNumberErrors, field: fields.confirmRoutingNumber, fieldActions: actions.fields.confirmRoutingNumber, showErrors: showErrors, onKeyDown: function (e) { return e.key === "Enter" && handleSubmit(e); }, isNum: true }),
|
|
42
|
+
React.createElement(FormInput, { labelTextWhenNoError: "Account number", errorMessages: accountNumberErrors, field: fields.accountNumber, fieldActions: actions.fields.accountNumber, showErrors: showErrors, isNum: true, helperModal: function () { return (React.createElement(AccountAndRoutingModal, { link: "What is this?", title: "Where is my account number?", content: "Your account number is usually the 10-digit number in the bottom\n of your check to the right of the routing number.", imageType: "Account", isOpen: showAccount, toggleOpen: toggleShowAccount })); }, onKeyDown: function (e) { return e.key === "Enter" && handleSubmit(e); } }),
|
|
43
|
+
React.createElement(FormInput, { labelTextWhenNoError: "Confirm account number", errorMessages: confirmAccountNumberErrors, field: fields.confirmAccountNumber, fieldActions: actions.fields.confirmAccountNumber, showErrors: showErrors, onKeyDown: function (e) { return e.key === "Enter" && handleSubmit(e); }, isNum: true }),
|
|
44
|
+
allowBankAccountType && (React.createElement(FormSelect, { labelTextWhenNoError: "Account type", options: [
|
|
45
|
+
{ text: "Select account type", value: "" },
|
|
46
|
+
{ text: "Checking", value: "CHECKING" },
|
|
47
|
+
{ text: "Savings", value: "SAVINGS" }
|
|
48
|
+
], fieldActions: actions.fields.accountType, showErrors: showErrors, errorMessages: accountTypeErrors, field: fields.accountType })),
|
|
49
|
+
!hideDefaultPayment && (React.createElement(Checkbox, { title: "Save as Default Payment Method", name: "default-payment-ach", onChange: toggleCheckbox, checked: defaultMethod.value, hidden: hideDefaultPayment })),
|
|
50
|
+
showWalletCheckbox && (React.createElement(Checkbox, { name: "bank checkbox", title: "Save checking account to wallet", checked: walletCheckboxMarked, onChange: saveToWallet })))));
|
|
51
|
+
};
|
|
52
|
+
export default PaymentFormACH;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var _a;
|
|
2
|
+
import { createFormState, required, matchesField, onlyIntegers, hasLength, isRoutingNumber } from "redux-freeform";
|
|
3
|
+
var formConfig = {
|
|
4
|
+
name: {
|
|
5
|
+
validators: [required()]
|
|
6
|
+
},
|
|
7
|
+
routingNumber: {
|
|
8
|
+
validators: [required(), hasLength(9, 9), isRoutingNumber()],
|
|
9
|
+
constraints: [onlyIntegers(), hasLength(0, 9)]
|
|
10
|
+
},
|
|
11
|
+
confirmRoutingNumber: {
|
|
12
|
+
validators: [matchesField("routingNumber")],
|
|
13
|
+
constraints: [onlyIntegers(), hasLength(0, 9)]
|
|
14
|
+
},
|
|
15
|
+
accountNumber: {
|
|
16
|
+
validators: [required(), hasLength(5, 17)],
|
|
17
|
+
constraints: [onlyIntegers(), hasLength(0, 17)]
|
|
18
|
+
},
|
|
19
|
+
confirmAccountNumber: {
|
|
20
|
+
validators: [matchesField("accountNumber")],
|
|
21
|
+
constraints: [onlyIntegers(), hasLength(0, 17)]
|
|
22
|
+
},
|
|
23
|
+
accountType: {
|
|
24
|
+
defaultValue: "CHECKING",
|
|
25
|
+
validators: [required()]
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
export var reducer = (_a = createFormState(formConfig), _a.reducer), mapStateToProps = _a.mapStateToProps, mapDispatchToProps = _a.mapDispatchToProps;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { connect } from "react-redux";
|
|
3
|
+
import { boolean } from "@storybook/addon-knobs";
|
|
4
|
+
import PaymentFormACH from "./PaymentFormACH";
|
|
5
|
+
import page from "../../../../.storybook/page";
|
|
6
|
+
import * as PaymentFormACHState from "./PaymentFormACH.state";
|
|
7
|
+
var story = page({
|
|
8
|
+
title: "Components|Molecules/PaymentFormACH",
|
|
9
|
+
Component: PaymentFormACH,
|
|
10
|
+
reducer: PaymentFormACHState.reducer,
|
|
11
|
+
mapStateToProps: PaymentFormACHState.mapStateToProps,
|
|
12
|
+
mapDispatchToProps: PaymentFormACHState.mapDispatchToProps
|
|
13
|
+
});
|
|
14
|
+
export default story;
|
|
15
|
+
var ConnectedForm = connect(PaymentFormACHState.mapStateToProps, PaymentFormACHState.mapDispatchToProps)(PaymentFormACH);
|
|
16
|
+
export var paymentFormACH = function () { return (React.createElement(ConnectedForm, { showErrors: boolean("showErrors", false, "props") })); };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import PaymentFormACH from "./PaymentFormACH";
|
|
2
|
+
import { reducer, mapStateToProps, mapDispatchToProps } from "./PaymentFormACH.state";
|
|
3
|
+
PaymentFormACH.reducer = reducer;
|
|
4
|
+
PaymentFormACH.mapStateToProps = mapStateToProps;
|
|
5
|
+
PaymentFormACH.mapDispatchToProps = mapDispatchToProps;
|
|
6
|
+
export default PaymentFormACH;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import React, { useEffect, useContext } from "react";
|
|
2
|
+
import { ThemeContext } from "styled-components";
|
|
3
|
+
import { required, hasLength, matchesRegex, dateAfterToday, isValidMonth } from "redux-freeform";
|
|
4
|
+
import Checkbox from "../../atoms/checkbox";
|
|
5
|
+
import CountryDropdown from "../../atoms/country-dropdown";
|
|
6
|
+
import { checkCardBrand, noop, checkDeniedCards, displayCardBrand } from "../../../util/general";
|
|
7
|
+
import { expirationDateFormat, creditCardFormat, zipFormat } from "../../../util/formats";
|
|
8
|
+
import { FormInput, FormInputColumn, FormContainer, FormInputRow } from "../../atoms/form-layouts";
|
|
9
|
+
import { Box } from "../../atoms/layouts";
|
|
10
|
+
import withWindowSize from "../../withWindowSize";
|
|
11
|
+
var PaymentFormCard = function (_a) {
|
|
12
|
+
var _b, _c, _d, _e, _f, _g;
|
|
13
|
+
var _h = _a.variant, variant = _h === void 0 ? "default" : _h, _j = _a.hideZipCode, hideZipCode = _j === void 0 ? false : _j, clearOnDismount = _a.clearOnDismount, fields = _a.fields, actions = _a.actions, showErrors = _a.showErrors, _k = _a.handleSubmit, handleSubmit = _k === void 0 ? noop : _k, showWalletCheckbox = _a.showWalletCheckbox, saveToWallet = _a.saveToWallet, walletCheckboxMarked = _a.walletCheckboxMarked, deniedCards = _a.deniedCards;
|
|
14
|
+
var isMobile = useContext(ThemeContext).isMobile;
|
|
15
|
+
useEffect(function () {
|
|
16
|
+
if (deniedCards) {
|
|
17
|
+
deniedCards.map(function (card) {
|
|
18
|
+
return actions.fields.creditCardNumber.addValidator(matchesRegex(checkDeniedCards(card)));
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
}, []);
|
|
22
|
+
useEffect(function () {
|
|
23
|
+
if (clearOnDismount) {
|
|
24
|
+
return function () { return actions.form.clear(); };
|
|
25
|
+
}
|
|
26
|
+
}, []);
|
|
27
|
+
var nameOnCardErrors = (_b = {},
|
|
28
|
+
_b[required.error] = "Name is required",
|
|
29
|
+
_b);
|
|
30
|
+
var creditCardNumberErrors = (_c = {},
|
|
31
|
+
_c[required.error] = "Credit card number is required",
|
|
32
|
+
_c[hasLength.error] = "Credit card number is invalid",
|
|
33
|
+
_c[matchesRegex.error] = "".concat(displayCardBrand(fields.creditCardNumber.rawValue), " is not accepted"),
|
|
34
|
+
_c);
|
|
35
|
+
var expirationDateErrors = (_d = {},
|
|
36
|
+
_d[required.error] = "Expiration date is required",
|
|
37
|
+
_d[hasLength.error] = "Expiration date is invalid",
|
|
38
|
+
_d[isValidMonth.error] = "Expiration month is invalid",
|
|
39
|
+
_d[dateAfterToday.error] = "Expiration date is invalid",
|
|
40
|
+
_d);
|
|
41
|
+
var cvvErrors = (_e = {},
|
|
42
|
+
_e[required.error] = "CVV is required",
|
|
43
|
+
_e[hasLength.error] = "CVV is invalid",
|
|
44
|
+
_e);
|
|
45
|
+
var zipCodeErrors = (_f = {},
|
|
46
|
+
_f[required.error] = "Zip code is required",
|
|
47
|
+
_f[hasLength.error] = "Zip code is invalid",
|
|
48
|
+
_f);
|
|
49
|
+
var countryErrorMessages = (_g = {},
|
|
50
|
+
_g[required.error] = "Country is required",
|
|
51
|
+
_g);
|
|
52
|
+
var isUS = fields.country.rawValue === "US";
|
|
53
|
+
return (React.createElement(FormContainer, { variant: variant, role: "form", "aria-label": "Card payment" },
|
|
54
|
+
React.createElement(FormInputColumn, null,
|
|
55
|
+
!hideZipCode && (React.createElement(CountryDropdown, { labelTextWhenNoError: "Country", errorMessages: countryErrorMessages, field: fields.country, onChange: function (value) {
|
|
56
|
+
actions.fields.country.set(value);
|
|
57
|
+
// temporary measure to not dirty fields until
|
|
58
|
+
// we can write a reset function for fields
|
|
59
|
+
if (fields.zipCode.rawValue) {
|
|
60
|
+
actions.fields.zipCode.set("");
|
|
61
|
+
}
|
|
62
|
+
}, showErrors: showErrors })),
|
|
63
|
+
React.createElement(FormInput, { labelTextWhenNoError: "Name on card", errorMessages: nameOnCardErrors, field: fields.nameOnCard, fieldActions: actions.fields.nameOnCard, showErrors: showErrors, onKeyDown: function (e) { return e.key === "Enter" && handleSubmit(e); }, autocomplete: "cc-name" }),
|
|
64
|
+
React.createElement(FormInput, { labelTextWhenNoError: "Credit card number", errorMessages: creditCardNumberErrors, field: fields.creditCardNumber, fieldActions: actions.fields.creditCardNumber, showErrors: showErrors, formatter: creditCardFormat, onKeyDown: function (e) { return e.key === "Enter" && handleSubmit(e); }, isNum: true, autocomplete: "cc-number" }),
|
|
65
|
+
React.createElement(FormInputRow, { breakpoint: isMobile ? "1000rem" : "21rem", childGap: isMobile ? "0rem" : "1rem" },
|
|
66
|
+
React.createElement(FormInput, { labelTextWhenNoError: "Expiration date (MM/YY)", errorMessages: expirationDateErrors, field: fields.expirationDate, fieldActions: actions.fields.expirationDate, showErrors: showErrors, formatter: expirationDateFormat, onKeyDown: function (e) { return e.key === "Enter" && handleSubmit(e); }, isNum: true, removeFromValue: /\//, autocomplete: "cc-exp" }),
|
|
67
|
+
React.createElement(FormInput, { labelTextWhenNoError: "CVV", errorMessages: cvvErrors, field: fields.cvv, fieldActions: actions.fields.cvv, showErrors: showErrors, isNum: true, background: checkCardBrand(fields.creditCardNumber.rawValue) == "AMEX"
|
|
68
|
+
? "/AmexCVVHint.svg"
|
|
69
|
+
: "/CVVHint.svg", onKeyDown: function (e) { return e.key === "Enter" && handleSubmit(e); }, autocomplete: "cc-csc" })),
|
|
70
|
+
!hideZipCode && (React.createElement(Box, { padding: isMobile ? "0" : "0 0.5rem 0 0", width: isMobile ? "100%" : "50%" },
|
|
71
|
+
React.createElement(FormInput, { isNum: isUS, formatter: isUS ? zipFormat : null, labelTextWhenNoError: "Zip code", errorMessages: zipCodeErrors, field: fields.zipCode, fieldActions: actions.fields.zipCode, showErrors: showErrors, onKeyDown: function (e) { return e.key === "Enter" && handleSubmit(e); }, autocomplete: "billing postal-code" }))),
|
|
72
|
+
showWalletCheckbox && (React.createElement(Checkbox, { name: "credit card checkbox", title: "Save credit card to wallet", checked: walletCheckboxMarked, onChange: saveToWallet })))));
|
|
73
|
+
};
|
|
74
|
+
export default withWindowSize(PaymentFormCard);
|