@thecb/components 7.3.1 → 7.3.2-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +45 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +45 -3
- 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/dist/src/components/atoms/radio-button/index.js +2 -0
- 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/dist/src/components/molecules/internal-user-info-form/index.js +6 -0
- 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/FindIconSmall.js +48 -0
- package/src/components/atoms/icons/index.js +3 -1
- package/src/components/molecules/workflow-tile/WorkflowTile.js +4 -2
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { text, boolean } from "@storybook/addon-knobs";
|
|
3
|
+
import AmountModule from "./AmountModule";
|
|
4
|
+
import page from "../../../../../.storybook/page";
|
|
5
|
+
import { noop } from "../../../../util/general";
|
|
6
|
+
var groupId = "props";
|
|
7
|
+
export var amountModule = function () { return (React.createElement(AmountModule, { totalAmountDue: text("totalAmountDue", "123", groupId), autoPayEnabled: boolean("autopayEnabled", true, groupId), isMobile: boolean("isMobile", false, groupId), deactivatePaymentSchedule: noop, navigateToSettings: noop, autoPaySchedule: {}, paymentPlanSchedule: {}, isPaymentPlan: boolean("isPaymentPlan", false, groupId) })); };
|
|
8
|
+
var story = page({
|
|
9
|
+
title: "Components|Molecules/AmountModule",
|
|
10
|
+
Component: AmountModule
|
|
11
|
+
});
|
|
12
|
+
export default story;
|
|
@@ -0,0 +1,76 @@
|
|
|
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
|
+
import React from "react";
|
|
13
|
+
import Modal from "../../modal";
|
|
14
|
+
import ButtonWithAction from "../../../atoms/button-with-action";
|
|
15
|
+
import Text from "../../../atoms/text";
|
|
16
|
+
import { AutopayOnIcon } from "../../../atoms/icons";
|
|
17
|
+
import { Box, Cluster } from "../../../atoms/layouts";
|
|
18
|
+
import { SEA_GREEN } from "../../../../constants/colors";
|
|
19
|
+
import { fallbackValues } from "./AutopayModalModule.theme";
|
|
20
|
+
import { themeComponent } from "../../../../util/themeUtils";
|
|
21
|
+
var AutopayModal = function (_a) {
|
|
22
|
+
var autoPayActive = _a.autoPayActive, autoPaySchedule = _a.autoPaySchedule, paymentPlanSchedule = _a.paymentPlanSchedule, toggleModal = _a.toggleModal, modalOpen = _a.modalOpen, deactivatePaymentSchedule = _a.deactivatePaymentSchedule, navigateToSettings = _a.navigateToSettings, _b = _a.controlType, controlType = _b === void 0 ? "tertiary" : _b, isMobile = _a.isMobile, themeValues = _a.themeValues, isPaymentPlan = _a.isPaymentPlan, nextAutopayDate = _a.nextAutopayDate, dueDate = _a.dueDate, inactive = _a.inactive;
|
|
23
|
+
var planType = isPaymentPlan ? "Payment Plan" : "Autopay";
|
|
24
|
+
var nextDate = dueDate || nextAutopayDate;
|
|
25
|
+
var modalExtraProps = {
|
|
26
|
+
modalHeaderText: autoPayActive
|
|
27
|
+
? "Deactivate ".concat(planType)
|
|
28
|
+
: "Set Up ".concat(planType),
|
|
29
|
+
modalBodyText: autoPayActive
|
|
30
|
+
? "Are you sure you want to deactivate ".concat(isPaymentPlan ? "your payment plan" : "autopay", "? ").concat(!inactive && nextDate
|
|
31
|
+
? "Your next payment will be due on ".concat(nextDate, ".")
|
|
32
|
+
: "")
|
|
33
|
+
: "To set up ".concat(isPaymentPlan ? "a payment plan" : "autopay", " you must save a payment method and address in your profile. Do you want to save these now?"),
|
|
34
|
+
continueButtonText: autoPayActive
|
|
35
|
+
? "Disable ".concat(planType)
|
|
36
|
+
: "Add to Profile",
|
|
37
|
+
useDangerButton: autoPayActive,
|
|
38
|
+
continueAction: autoPayActive
|
|
39
|
+
? function () {
|
|
40
|
+
deactivatePaymentSchedule(isPaymentPlan ? paymentPlanSchedule : autoPaySchedule, isPaymentPlan);
|
|
41
|
+
toggleModal(false);
|
|
42
|
+
}
|
|
43
|
+
: navigateToSettings
|
|
44
|
+
};
|
|
45
|
+
var hoverStyles = "\n &:hover {\n .autopayIcon { fill: ".concat(themeValues.hoverColor, "; text-decoration: underline; cursor: pointer; }\n }");
|
|
46
|
+
var activeStyles = "\n &:active {\n .autopayIcon { fill: ".concat(themeValues.activeColor, "; text-decoration: underline; }\n }");
|
|
47
|
+
var defaultStyles = "\n .autopayIcon { fill: ".concat(themeValues.color, "; text-decoration: underline; }\n ");
|
|
48
|
+
var renderAutoPayControl = function () {
|
|
49
|
+
switch (controlType) {
|
|
50
|
+
case "secondary": {
|
|
51
|
+
return (React.createElement(ButtonWithAction, { text: autoPayActive ? "Turn off ".concat(planType) : "Set Up ".concat(planType), variant: "secondary", action: function () {
|
|
52
|
+
toggleModal(true);
|
|
53
|
+
}, dataQa: "Turn off Autopay", extraStyles: isMobile
|
|
54
|
+
? "flex-grow: 1; width: 100%; margin: 0;"
|
|
55
|
+
: "flex-grow: 1; min-width: 165px;" }));
|
|
56
|
+
}
|
|
57
|
+
case "tertiary": {
|
|
58
|
+
return (React.createElement(ButtonWithAction, { text: autoPayActive ? "Manage ".concat(planType) : "Set Up ".concat(planType), variant: "tertiary", action: function () {
|
|
59
|
+
toggleModal(true);
|
|
60
|
+
}, dataQa: "Manage Autopay", extraStyles: isMobile && "flex-grow: 1; width: 100%;" }));
|
|
61
|
+
}
|
|
62
|
+
case "link": {
|
|
63
|
+
return (React.createElement(Box, { padding: "0", onClick: function () {
|
|
64
|
+
toggleModal(true);
|
|
65
|
+
}, hoverStyles: hoverStyles, activeStyles: activeStyles, extraStyles: defaultStyles },
|
|
66
|
+
React.createElement(Cluster, { justify: isMobile ? "flex-start" : "flex-end", align: "center" },
|
|
67
|
+
React.createElement(AutopayOnIcon, null),
|
|
68
|
+
React.createElement(Text, { variant: "pS", onClick: function () { return toggleModal(true); }, onKeyPress: function (e) {
|
|
69
|
+
e.key === "Enter" && toggleModal(true);
|
|
70
|
+
}, tabIndex: "0", dataQa: "".concat(planType, " On"), color: SEA_GREEN, weight: themeValues.fontWeight, hoverStyles: themeValues.modalLinkHoverFocus, extraStyles: "padding-left: 0.25rem;" }, "".concat(planType, " ").concat(nextAutopayDate)))));
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
return (React.createElement(Modal, __assign({ showModal: function () { return toggleModal(true); }, hideModal: function () { return toggleModal(false); }, modalOpen: modalOpen }, modalExtraProps), renderAutoPayControl()));
|
|
75
|
+
};
|
|
76
|
+
export var AutopayModalModule = themeComponent(AutopayModal, "AutopayModal", fallbackValues);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export namespace fallbackValues {
|
|
2
|
+
export { color };
|
|
3
|
+
export { hoverColor };
|
|
4
|
+
export { activeColor };
|
|
5
|
+
export { linkColor };
|
|
6
|
+
export { fontWeight };
|
|
7
|
+
export { modalLinkHoverFocus };
|
|
8
|
+
}
|
|
9
|
+
declare const color: "#15749D";
|
|
10
|
+
declare const hoverColor: "#116285";
|
|
11
|
+
declare const activeColor: "#0E506D";
|
|
12
|
+
declare const linkColor: "#3176AA";
|
|
13
|
+
declare const fontWeight: "400";
|
|
14
|
+
declare const modalLinkHoverFocus: "outline: none;\n cursor: pointer;\n text-decoration: underline;\n text-decoration-color: #317D4F;";
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FONT_WEIGHT_REGULAR } from "../../../../constants/style_constants";
|
|
2
|
+
var color = "#15749D";
|
|
3
|
+
var hoverColor = "#116285";
|
|
4
|
+
var activeColor = "#0E506D";
|
|
5
|
+
var linkColor = "#3176AA";
|
|
6
|
+
var fontWeight = FONT_WEIGHT_REGULAR;
|
|
7
|
+
var modalLinkHoverFocus = "outline: none;\n cursor: pointer;\n text-decoration: underline;\n text-decoration-color: #317D4F;";
|
|
8
|
+
export var fallbackValues = {
|
|
9
|
+
color: color,
|
|
10
|
+
hoverColor: hoverColor,
|
|
11
|
+
activeColor: activeColor,
|
|
12
|
+
linkColor: linkColor,
|
|
13
|
+
fontWeight: fontWeight,
|
|
14
|
+
modalLinkHoverFocus: modalLinkHoverFocus
|
|
15
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { iconsMap } from "../icons";
|
|
3
|
+
import { Box, Cluster } from "../../../atoms/layouts";
|
|
4
|
+
var IconsModule = function (_a) {
|
|
5
|
+
var _b;
|
|
6
|
+
var icon = _a.icon, iconDefault = _a.iconDefault, configIconMap = _a.configIconMap, iconValue = _a.iconValue, customAttributes = _a.customAttributes;
|
|
7
|
+
var Icon;
|
|
8
|
+
if (typeof icon === "object") {
|
|
9
|
+
var iconID = customAttributes === null || customAttributes === void 0 ? void 0 : customAttributes[iconValue];
|
|
10
|
+
var iconMapValue = (_b = configIconMap === null || configIconMap === void 0 ? void 0 : configIconMap[iconID]) !== null && _b !== void 0 ? _b : iconDefault;
|
|
11
|
+
Icon = iconsMap[iconMapValue];
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
Icon = iconsMap[icon];
|
|
15
|
+
}
|
|
16
|
+
return (React.createElement(Box, { padding: "0 1rem 0 0" },
|
|
17
|
+
React.createElement(Cluster, { justify: "center", align: "center" },
|
|
18
|
+
React.createElement(Icon, null))));
|
|
19
|
+
};
|
|
20
|
+
export default IconsModule;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export default InactiveControlsModule;
|
|
2
|
+
declare function InactiveControlsModule({ autoPayEnabled, autoPaySchedule, navigateToSettings, deactivatePaymentSchedule, isMobile, paymentPlanSchedule, isPaymentPlan, nextAutopayDate, obligationAssocID, dueDate, agencyName, configType, actions }: {
|
|
3
|
+
autoPayEnabled: any;
|
|
4
|
+
autoPaySchedule: any;
|
|
5
|
+
navigateToSettings: any;
|
|
6
|
+
deactivatePaymentSchedule: any;
|
|
7
|
+
isMobile: any;
|
|
8
|
+
paymentPlanSchedule: any;
|
|
9
|
+
isPaymentPlan: any;
|
|
10
|
+
nextAutopayDate: any;
|
|
11
|
+
obligationAssocID: any;
|
|
12
|
+
dueDate: any;
|
|
13
|
+
agencyName: any;
|
|
14
|
+
configType: any;
|
|
15
|
+
actions: any;
|
|
16
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { GHOST_GREY } from "../../../../constants/colors";
|
|
3
|
+
import { Box, Cluster } from "../../../atoms/layouts";
|
|
4
|
+
import { AutopayModalModule } from "./AutopayModalModule";
|
|
5
|
+
import RemoveAccountModalModule from "./RemoveAccountModalModule";
|
|
6
|
+
var InactiveControlsModule = function (_a) {
|
|
7
|
+
var autoPayEnabled = _a.autoPayEnabled, autoPaySchedule = _a.autoPaySchedule, navigateToSettings = _a.navigateToSettings, deactivatePaymentSchedule = _a.deactivatePaymentSchedule, isMobile = _a.isMobile, paymentPlanSchedule = _a.paymentPlanSchedule, isPaymentPlan = _a.isPaymentPlan, nextAutopayDate = _a.nextAutopayDate, obligationAssocID = _a.obligationAssocID, dueDate = _a.dueDate, agencyName = _a.agencyName, configType = _a.configType, actions = _a.actions;
|
|
8
|
+
var _b = useState(false), modalOpen = _b[0], toggleModal = _b[1];
|
|
9
|
+
var deleteObligationAssoc = actions.deleteObligationAssoc;
|
|
10
|
+
var handleRemoveAccount = function () { return deleteObligationAssoc(obligationAssocID); };
|
|
11
|
+
return (React.createElement(Box, { padding: isMobile ? "18px 0 0 0" : "0", border: isMobile ? "1px solid ".concat(GHOST_GREY) : "0px", borderWidthOverride: isMobile ? "1px 0 0 0" : "0px" },
|
|
12
|
+
React.createElement(Cluster, { childGap: autoPayEnabled ? "8px" : "0", nowrap: true, justify: isMobile && autoPayEnabled && "center", align: isMobile && autoPayEnabled && "center" },
|
|
13
|
+
autoPayEnabled && (React.createElement(Box, { padding: "0", extraStyles: "flex-grow: 1;" },
|
|
14
|
+
React.createElement(AutopayModalModule, { autoPayActive: autoPayEnabled, autoPaySchedule: autoPaySchedule, toggleModal: toggleModal, modalOpen: modalOpen, navigateToSettings: navigateToSettings, deactivatePaymentSchedule: deactivatePaymentSchedule, isMobile: isMobile, paymentPlanSchedule: paymentPlanSchedule, isPaymentPlan: isPaymentPlan, nextAutopayDate: nextAutopayDate, obligationAssocID: obligationAssocID, dueDate: dueDate, controlType: "secondary", inactive: true }))),
|
|
15
|
+
React.createElement(Box, { padding: "0", extraStyles: "flex-grow: 1;" },
|
|
16
|
+
React.createElement(RemoveAccountModalModule, { agencyName: agencyName, removeAccount: handleRemoveAccount, accountType: configType === "ACCOUNT" ? "Account" : "Property", isMobile: isMobile })))));
|
|
17
|
+
};
|
|
18
|
+
export default InactiveControlsModule;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Box, Stack } from "../../../atoms/layouts";
|
|
3
|
+
import Title from "../../../atoms/title";
|
|
4
|
+
import Detail from "../../../atoms/detail";
|
|
5
|
+
import { BLACK, CHARADE_GREY, ZEST_ORANGE } from "../../../../constants/colors";
|
|
6
|
+
import { FONT_WEIGHT_SEMIBOLD } from "../../../../constants/style_constants";
|
|
7
|
+
var InactiveTitleModule = function (_a) {
|
|
8
|
+
var title = _a.title, subtitle = _a.subtitle, autoPayEnabled = _a.autoPayEnabled;
|
|
9
|
+
return (React.createElement(Box, { padding: "0" },
|
|
10
|
+
React.createElement(Stack, { childGap: "0" },
|
|
11
|
+
React.createElement(Title, { variant: "small", as: "h4", color: CHARADE_GREY, weight: FONT_WEIGHT_SEMIBOLD }, title),
|
|
12
|
+
React.createElement(Detail, { variant: "small", as: "h5", color: CHARADE_GREY }, subtitle),
|
|
13
|
+
React.createElement(Detail, { variant: "small", as: "p", color: ZEST_ORANGE, weight: FONT_WEIGHT_SEMIBOLD }, "Unable to load account details"),
|
|
14
|
+
React.createElement(Detail, { variant: "extraSmall", as: "p", color: BLACK }, "This may mean that the balance has been paid, or there was an error loading it.".concat(autoPayEnabled
|
|
15
|
+
? " You may disable autopay for this account by pressing the 'Turn off Autopay' button."
|
|
16
|
+
: "")))));
|
|
17
|
+
};
|
|
18
|
+
export default InactiveTitleModule;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export default PaymentDetailsActions;
|
|
2
|
+
declare function PaymentDetailsActions({ isMobile, obligations, config, actions, autoPayEnabled, autoPayAvailable, handleAutopayAction, deactivatePaymentSchedule, navigateToSettings, autoPaySchedule, paymentPlanSchedule, isPaymentPlan, nextAutopayDate, obligationAssocID, dueDate }: {
|
|
3
|
+
isMobile: any;
|
|
4
|
+
obligations: any;
|
|
5
|
+
config: any;
|
|
6
|
+
actions: any;
|
|
7
|
+
autoPayEnabled: any;
|
|
8
|
+
autoPayAvailable: any;
|
|
9
|
+
handleAutopayAction: any;
|
|
10
|
+
deactivatePaymentSchedule: any;
|
|
11
|
+
navigateToSettings: any;
|
|
12
|
+
autoPaySchedule: any;
|
|
13
|
+
paymentPlanSchedule: any;
|
|
14
|
+
isPaymentPlan: any;
|
|
15
|
+
nextAutopayDate: any;
|
|
16
|
+
obligationAssocID: any;
|
|
17
|
+
dueDate: any;
|
|
18
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { Box, Cluster } from "../../../atoms/layouts";
|
|
3
|
+
import ButtonWithAction from "../../../atoms/button-with-action";
|
|
4
|
+
import { AutopayModalModule } from "./AutopayModalModule";
|
|
5
|
+
import { GHOST_GREY } from "../../../../constants/colors";
|
|
6
|
+
import AmountModule from "./AmountModule";
|
|
7
|
+
var PaymentDetailsActions = function (_a) {
|
|
8
|
+
var isMobile = _a.isMobile, obligations = _a.obligations, config = _a.config, actions = _a.actions, autoPayEnabled = _a.autoPayEnabled, autoPayAvailable = _a.autoPayAvailable, handleAutopayAction = _a.handleAutopayAction, deactivatePaymentSchedule = _a.deactivatePaymentSchedule, navigateToSettings = _a.navigateToSettings, autoPaySchedule = _a.autoPaySchedule, paymentPlanSchedule = _a.paymentPlanSchedule, isPaymentPlan = _a.isPaymentPlan, nextAutopayDate = _a.nextAutopayDate, obligationAssocID = _a.obligationAssocID, dueDate = _a.dueDate;
|
|
9
|
+
var planType = isPaymentPlan ? "Payment Plan" : "Autopay";
|
|
10
|
+
var _b = useState(false), isLoading = _b[0], setIsLoading = _b[1];
|
|
11
|
+
var _c = useState(false), modalOpen = _c[0], toggleModal = _c[1];
|
|
12
|
+
var obligationSlug = config.obligationSlug;
|
|
13
|
+
var createPaymentFromProfile = actions.createPaymentFromProfile, setDetailedObligation = actions.setDetailedObligation, navigateToDetailedObligation = actions.navigateToDetailedObligation;
|
|
14
|
+
var detailsSlug = config.type === "ACCOUNT"
|
|
15
|
+
? "/profile/accounts/details/".concat(obligationSlug)
|
|
16
|
+
: "/profile/properties/details/".concat(obligationSlug);
|
|
17
|
+
var handleClick = function (obligations) {
|
|
18
|
+
setIsLoading(true);
|
|
19
|
+
createPaymentFromProfile(obligations, config);
|
|
20
|
+
};
|
|
21
|
+
var handleDetailsClick = function () {
|
|
22
|
+
setDetailedObligation(obligations, config, obligationAssocID);
|
|
23
|
+
navigateToDetailedObligation(detailsSlug);
|
|
24
|
+
};
|
|
25
|
+
return (React.createElement(Box, { padding: isMobile ? "0" : "16px 0 0", minWidth: "100%", borderSize: "1px", borderColor: GHOST_GREY, borderWidthOverride: "1px 0 0 0", key: "".concat(obligations[0].id, "-actions") },
|
|
26
|
+
isMobile && (React.createElement(Box, { padding: "16px 24px", borderSize: "1px", borderColor: GHOST_GREY, borderWidthOverride: "0 0 1px 0" },
|
|
27
|
+
React.createElement(Cluster, { justify: "space-between", align: "center", nowrap: true },
|
|
28
|
+
React.createElement(AmountModule, { totalAmountDue: obligations.reduce(function (acc, curr) { return acc + curr.amountDue; }, 0), autoPayEnabled: autoPayEnabled, isMobile: isMobile, deactivatePaymentSchedule: deactivatePaymentSchedule, navigateToSettings: navigateToSettings, autoPaySchedule: autoPaySchedule, paymentPlanSchedule: paymentPlanSchedule, isPaymentPlan: isPaymentPlan, nextAutopayDate: nextAutopayDate })))),
|
|
29
|
+
React.createElement(Box, { padding: isMobile ? "16px" : "0" },
|
|
30
|
+
React.createElement(Cluster, { justify: isMobile ? "center" : "flex-end", align: "center", childGap: "0" },
|
|
31
|
+
React.createElement(Box, { padding: isMobile ? "0 8px 0 0" : "0", extraStyles: isMobile && "flex-grow: 1;" },
|
|
32
|
+
React.createElement(ButtonWithAction, { variant: "tertiary", text: config.type === "ACCOUNT"
|
|
33
|
+
? "Account Details"
|
|
34
|
+
: "Property Details", action: handleDetailsClick, dataQa: "Account Details", extraStyles: isMobile && "flex-grow: 1; width: 100%;" })),
|
|
35
|
+
React.createElement(Box, { padding: isMobile ? "0 8px 0 0" : "0", extraStyles: isMobile && "flex-grow: 1;" }, autoPayAvailable && !autoPayEnabled ? (React.createElement(ButtonWithAction, { variant: "tertiary", text: "Set Up ".concat(planType), action: function () {
|
|
36
|
+
setDetailedObligation(obligations, config, obligationAssocID);
|
|
37
|
+
handleAutopayAction();
|
|
38
|
+
}, dataQa: "Set Up Autopay", extraStyles: isMobile && "flex-grow: 1; width: 100%;" })) : (React.createElement(AutopayModalModule, { autoPayActive: autoPayEnabled, autoPaySchedule: autoPaySchedule, toggleModal: toggleModal, modalOpen: modalOpen, navigateToSettings: navigateToSettings, deactivatePaymentSchedule: deactivatePaymentSchedule, controlType: "tertiary", isMobile: isMobile, paymentPlanSchedule: paymentPlanSchedule, isPaymentPlan: isPaymentPlan, nextAutopayDate: nextAutopayDate, dueDate: dueDate }))),
|
|
39
|
+
!isMobile && (React.createElement(Box, { padding: "0" },
|
|
40
|
+
React.createElement(ButtonWithAction, { isLoading: isLoading, action: function () { return handleClick(obligations); }, text: "Pay Now", variant: isMobile ? "smallSecondary" : "secondary", dataQa: "Pay Now" })))),
|
|
41
|
+
isMobile && (React.createElement(Box, { padding: "8px 0 0", width: "100%" },
|
|
42
|
+
React.createElement(ButtonWithAction, { isLoading: isLoading, action: function () { return handleClick(obligations); }, text: "Pay Now", variant: isMobile ? "smallSecondary" : "secondary", dataQa: "Pay Now", extraStyles: isMobile && "flex-grow: 1; width: 100%; margin: 0;" }))))));
|
|
43
|
+
};
|
|
44
|
+
export default PaymentDetailsActions;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export default RemoveAccountModalModule;
|
|
2
|
+
declare function RemoveAccountModalModule({ agencyName, obligations, removeAccount, accountType, isMobile }: {
|
|
3
|
+
agencyName: any;
|
|
4
|
+
obligations?: any[] | undefined;
|
|
5
|
+
removeAccount: any;
|
|
6
|
+
accountType: any;
|
|
7
|
+
isMobile: any;
|
|
8
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
2
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
3
|
+
if (ar || !(i in from)) {
|
|
4
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
5
|
+
ar[i] = from[i];
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
9
|
+
};
|
|
10
|
+
import React, { useState } from "react";
|
|
11
|
+
import Modal from "../../modal";
|
|
12
|
+
import ButtonWithAction from "../../../atoms/button-with-action";
|
|
13
|
+
import { Box } from "../../../atoms/layouts";
|
|
14
|
+
var RemoveAccountModalModule = function (_a) {
|
|
15
|
+
var agencyName = _a.agencyName, _b = _a.obligations, obligations = _b === void 0 ? [] : _b, removeAccount = _a.removeAccount, accountType = _a.accountType, isMobile = _a.isMobile;
|
|
16
|
+
var _c = useState(false), modalIsOpen = _c[0], setModalIsOpen = _c[1];
|
|
17
|
+
var lastItem = __spreadArray([], obligations, true).pop();
|
|
18
|
+
var accounts = obligations.length
|
|
19
|
+
? obligations.reduce(function (acc, curr) {
|
|
20
|
+
var account = curr.details.description;
|
|
21
|
+
var formattedAccount = curr !== lastItem ? "".concat(account, " and ") : "".concat(account);
|
|
22
|
+
return formattedAccount === agencyName
|
|
23
|
+
? agencyName
|
|
24
|
+
: acc + formattedAccount;
|
|
25
|
+
}, "".concat(agencyName, " - "))
|
|
26
|
+
: "";
|
|
27
|
+
var identifier = accountType === "Account" && obligations.length > 1
|
|
28
|
+
? "accounts"
|
|
29
|
+
: accountType === "Property" && obligations.length > 1
|
|
30
|
+
? "properties"
|
|
31
|
+
: accountType.toLowerCase();
|
|
32
|
+
return (React.createElement(Modal, { showModal: function () { return setModalIsOpen(true); }, hideModal: function () { return setModalIsOpen(false); }, modalOpen: modalIsOpen, modalHeaderText: "Remove ".concat(accountType), modalBodyText: "Are you sure you want to remove the ".concat(identifier, " ").concat(accounts, " from your profile? Any autopay scheduled against ").concat(obligations.length > 1 ? "them" : "it", " will be deactivated."), continueButtonText: "Remove", continueAction: function () {
|
|
33
|
+
removeAccount();
|
|
34
|
+
setModalIsOpen(false);
|
|
35
|
+
}, useDangerButton: true },
|
|
36
|
+
React.createElement(Box, { padding: "0", extraStyles: "flex-grow: 1;" },
|
|
37
|
+
React.createElement(ButtonWithAction, { text: "Remove", variant: "secondary", action: function () { return setModalIsOpen(true); }, dataQa: "Remove Account", extraStyles: isMobile ? "flex-grow: 1; width: 100%; margin: 0;" : "flex-grow: 1;" }))));
|
|
38
|
+
};
|
|
39
|
+
export default RemoveAccountModalModule;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Box, Stack } from "../../../atoms/layouts";
|
|
3
|
+
import Title from "../../../atoms/title";
|
|
4
|
+
import Detail from "../../../atoms/detail";
|
|
5
|
+
import { FONT_WEIGHT_SEMIBOLD } from "../../../../constants/style_constants";
|
|
6
|
+
var TitleModule = function (_a) {
|
|
7
|
+
var title = _a.title, subtitle = _a.subtitle, titleColor = _a.titleColor, subtitleColor = _a.subtitleColor;
|
|
8
|
+
return (React.createElement(Box, { padding: "0" },
|
|
9
|
+
React.createElement(Stack, { childGap: "0" },
|
|
10
|
+
React.createElement(Title, { variant: "small", weight: FONT_WEIGHT_SEMIBOLD, color: titleColor, as: "h4", id: "obligation-title" }, title),
|
|
11
|
+
React.createElement(Detail, { variant: "small", color: subtitleColor, as: "h5", id: "obligation-subtitle" }, subtitle))));
|
|
12
|
+
};
|
|
13
|
+
export default TitleModule;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import IconModule from "./IconModule";
|
|
2
|
+
import TitleModule from "./TitleModule";
|
|
3
|
+
import AmountModule from "./AmountModule";
|
|
4
|
+
import PaymentDetailsActions from "./PaymentDetailsActions";
|
|
5
|
+
import InactiveControlsModule from "./InactiveControlsModule";
|
|
6
|
+
import InactiveTitleModule from "./InactiveTitleModule";
|
|
7
|
+
import RemoveAccountModalModule from "./RemoveAccountModalModule";
|
|
8
|
+
export { IconModule, TitleModule, AmountModule, PaymentDetailsActions, InactiveControlsModule, InactiveTitleModule, RemoveAccountModalModule };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import IconModule from "./IconModule";
|
|
2
|
+
import TitleModule from "./TitleModule";
|
|
3
|
+
import AmountModule from "./AmountModule";
|
|
4
|
+
import PaymentDetailsActions from "./PaymentDetailsActions";
|
|
5
|
+
import InactiveControlsModule from "./InactiveControlsModule";
|
|
6
|
+
import InactiveTitleModule from "./InactiveTitleModule";
|
|
7
|
+
import RemoveAccountModalModule from "./RemoveAccountModalModule";
|
|
8
|
+
export { IconModule, TitleModule, AmountModule, PaymentDetailsActions, InactiveControlsModule, InactiveTitleModule, RemoveAccountModalModule };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export function getPagesPanel(page: any, pagesCount: any): {
|
|
2
|
+
index: number;
|
|
3
|
+
isButton: boolean;
|
|
4
|
+
}[];
|
|
5
|
+
export default Pagination;
|
|
6
|
+
declare function Pagination({ pagePrevious, pageNext, setCurrentPage, currentPage, pageCount, numberColor, arrowColor }: {
|
|
7
|
+
pagePrevious: any;
|
|
8
|
+
pageNext: any;
|
|
9
|
+
setCurrentPage: any;
|
|
10
|
+
currentPage: any;
|
|
11
|
+
pageCount: any;
|
|
12
|
+
numberColor: any;
|
|
13
|
+
arrowColor: any;
|
|
14
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Cluster, Box } from "../../atoms/layouts";
|
|
3
|
+
import Text from "../../atoms/text";
|
|
4
|
+
import ButtonWithAction from "../../atoms/button-with-action";
|
|
5
|
+
import { ChevronIcon } from "../../atoms/icons";
|
|
6
|
+
import { MATISSE_BLUE, ALABASTER_WHITE } from "../../../constants/colors";
|
|
7
|
+
import { noop } from "../../../util/general";
|
|
8
|
+
var PAGING_SPACE = 2; // how many pages we want to have before/after delimiter
|
|
9
|
+
var PAGING_INIT_SPACE = 3; // first delimiter should appear after 3 pages
|
|
10
|
+
var PrevNextButton = function (_a) {
|
|
11
|
+
var action = _a.action, type = _a.type, arrowColor = _a.arrowColor, numberColor = _a.numberColor;
|
|
12
|
+
return (React.createElement(Box, { padding: "0 10px 0", minHeight: "40px", extraStyles: "max-height: 40px;" },
|
|
13
|
+
React.createElement(ButtonWithAction, { action: action, contentOverride: true, dataQa: type, extraStyles: "\n min-width: 40px;\n min-height: 100%;\n max-height: 40px;\n padding: 6px;\n border-radius: 3px;\n background-color: ".concat(numberColor !== null && numberColor !== void 0 ? numberColor : MATISSE_BLUE, ";\n border-color: ").concat(numberColor !== null && numberColor !== void 0 ? numberColor : MATISSE_BLUE, "\n ") },
|
|
14
|
+
React.createElement(Box, { padding: "0", extraStyles: type === "prev" && "transform: scaleX(-1)" },
|
|
15
|
+
React.createElement(ChevronIcon, { variant: "darkMode", iconFill: arrowColor })))));
|
|
16
|
+
};
|
|
17
|
+
export var getPagesPanel = function (page, pagesCount) {
|
|
18
|
+
if (!pagesCount || pagesCount <= 1) {
|
|
19
|
+
return [];
|
|
20
|
+
}
|
|
21
|
+
var lastPageNumber = pagesCount;
|
|
22
|
+
var space = page === 1 ? PAGING_INIT_SPACE : PAGING_SPACE;
|
|
23
|
+
var pages = [{ index: 1, isButton: true }];
|
|
24
|
+
if (page > space + 1) {
|
|
25
|
+
pages.push({ isDelimiter: true });
|
|
26
|
+
}
|
|
27
|
+
for (var j = Math.max(1, page - space) + 1; j < Math.min(lastPageNumber, page + space); j++) {
|
|
28
|
+
pages.push({ index: j, isButton: true });
|
|
29
|
+
}
|
|
30
|
+
if (page < lastPageNumber - space) {
|
|
31
|
+
pages.push({ isDelimiter: true });
|
|
32
|
+
}
|
|
33
|
+
pages.push({ index: lastPageNumber, isButton: true });
|
|
34
|
+
var activePage = pages.find(function (p) { return p.index === page; });
|
|
35
|
+
if (activePage) {
|
|
36
|
+
activePage.active = true;
|
|
37
|
+
}
|
|
38
|
+
return pages;
|
|
39
|
+
};
|
|
40
|
+
var Pagination = function (_a) {
|
|
41
|
+
var pagePrevious = _a.pagePrevious, pageNext = _a.pageNext, setCurrentPage = _a.setCurrentPage, currentPage = _a.currentPage, pageCount = _a.pageCount, numberColor = _a.numberColor, arrowColor = _a.arrowColor;
|
|
42
|
+
return (React.createElement(Cluster, { justify: "center", childGap: "10px" },
|
|
43
|
+
currentPage > 1 && (React.createElement(PrevNextButton, { type: "prev", action: pagePrevious, arrowColor: arrowColor, numberColor: numberColor })),
|
|
44
|
+
getPagesPanel(currentPage, pageCount).map(function (item, index) {
|
|
45
|
+
return item.isButton ? (React.createElement(Box, { padding: "0", border: item.active && "1px solid ".concat(numberColor !== null && numberColor !== void 0 ? numberColor : MATISSE_BLUE), borderRadius: item.active && "3px", extraStyles: "max-height: 40px;" },
|
|
46
|
+
React.createElement(ButtonWithAction, { variant: "ghost", key: item.index, text: item.index, disabled: item.active, action: !item.active
|
|
47
|
+
? function () { return setCurrentPage({ pageNumber: item.index }); }
|
|
48
|
+
: noop, textExtraStyles: "font-size: 17px; font-weight: 900;", extraStyles: "\n min-width: 40px; min-height: 100%; padding: 0;\n &:hover, &:focus {\n text-decoration: none;\n > * > span {\n text-decoration: none;\n }\n }\n > * > span {\n color: ".concat(numberColor !== null && numberColor !== void 0 ? numberColor : MATISSE_BLUE, "\n }\n }\n &:hover { ").concat(item.active
|
|
49
|
+
? "cursor: default;"
|
|
50
|
+
: "background-color: ".concat(ALABASTER_WHITE), " }\n "), dataQa: index }, item.index))) : (React.createElement(Box, { padding: "0 10px" },
|
|
51
|
+
React.createElement(Cluster, { justify: "flex-end" },
|
|
52
|
+
React.createElement(Text, { key: index, variant: "pXL", weight: "900", color: numberColor !== null && numberColor !== void 0 ? numberColor : MATISSE_BLUE }, "..."))));
|
|
53
|
+
}),
|
|
54
|
+
currentPage < pageCount && (React.createElement(PrevNextButton, { type: "next", action: pageNext, arrowColor: arrowColor, numberColor: numberColor }))));
|
|
55
|
+
};
|
|
56
|
+
export default Pagination;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default PartialAmountForm;
|
|
2
|
+
declare function PartialAmountForm({ variant, lineItems, maximum, minimum, clearOnDismount, fields, actions, showErrors }: {
|
|
3
|
+
variant?: string | undefined;
|
|
4
|
+
lineItems: any;
|
|
5
|
+
maximum: any;
|
|
6
|
+
minimum?: number | undefined;
|
|
7
|
+
clearOnDismount: any;
|
|
8
|
+
fields: any;
|
|
9
|
+
actions: any;
|
|
10
|
+
showErrors?: boolean | undefined;
|
|
11
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { required, numberGreaterThanOrEqualTo, numberLessThanOrEqualTo } from "redux-freeform";
|
|
3
|
+
import { displayCurrency } from "../../../util/general";
|
|
4
|
+
import Text from "../../atoms/text";
|
|
5
|
+
import { FormInput, FormInputColumn, FormContainer } from "../../atoms/form-layouts";
|
|
6
|
+
import { moneyFormat } from "../../../util/formats";
|
|
7
|
+
var PartialAmountForm = function (_a) {
|
|
8
|
+
var _b;
|
|
9
|
+
var _c = _a.variant, variant = _c === void 0 ? "default" : _c, lineItems = _a.lineItems, maximum = _a.maximum, _d = _a.minimum, minimum = _d === void 0 ? 1 : _d, clearOnDismount = _a.clearOnDismount, fields = _a.fields, actions = _a.actions, _e = _a.showErrors, showErrors = _e === void 0 ? false : _e;
|
|
10
|
+
if (clearOnDismount) {
|
|
11
|
+
useEffect(function () { return function () { return actions.form.clear(); }; }, []);
|
|
12
|
+
}
|
|
13
|
+
var amountErrors = (_b = {},
|
|
14
|
+
_b[required.error] = "Amount is required",
|
|
15
|
+
_b[numberGreaterThanOrEqualTo.error] = "There is a minimum payment of ".concat(displayCurrency(minimum)),
|
|
16
|
+
_b[numberLessThanOrEqualTo.error] = "There is a maximum payment of ".concat(displayCurrency(maximum)),
|
|
17
|
+
_b);
|
|
18
|
+
var lineItemsNew = Array.isArray(lineItems) ? lineItems : [];
|
|
19
|
+
return (React.createElement(FormContainer, { variant: variant, role: "form", "aria-label": "Other amount" },
|
|
20
|
+
React.createElement(Text, { variant: "p" }, "Pay a different amount. The total balance will still be due on the same due date."),
|
|
21
|
+
React.createElement("div", { style: { height: "16px" } }),
|
|
22
|
+
React.createElement(FormInputColumn, null, lineItemsNew.map(function (li) { return (React.createElement(FormInput, { labelTextWhenNoError: li.description, key: li.id, field: fields[li.id], fieldActions: actions.fields[li.id], showErrors: showErrors, errorMessages: amountErrors, style: { textAlign: "right" }, placeholder: "$0.00", formatter: moneyFormat, isNum: true, decorator: React.createElement(Text, { variant: "p" },
|
|
23
|
+
"Amount owed:",
|
|
24
|
+
" ",
|
|
25
|
+
React.createElement(Text, { variant: "p", weight: "600" }, displayCurrency(li.amount))) })); }))));
|
|
26
|
+
};
|
|
27
|
+
export default PartialAmountForm;
|
|
@@ -0,0 +1,49 @@
|
|
|
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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
13
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
14
|
+
if (ar || !(i in from)) {
|
|
15
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
16
|
+
ar[i] = from[i];
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
20
|
+
};
|
|
21
|
+
import { createFormState, required, onlyNaturals, validateSum, numberGreaterThanOrEqualTo, numberLessThanOrEqualTo } from "redux-freeform";
|
|
22
|
+
export var createPartialAmountFormState = function (lineItems, maximum, minimum) {
|
|
23
|
+
if (minimum === void 0) { minimum = 1; }
|
|
24
|
+
var formConfig = lineItems.reduce(function (acc, item) {
|
|
25
|
+
var _a;
|
|
26
|
+
var validators = [
|
|
27
|
+
required(),
|
|
28
|
+
validateSum(numberGreaterThanOrEqualTo(minimum), lineItems
|
|
29
|
+
.filter(function (lineItem) { return lineItem != item; })
|
|
30
|
+
.reduce(function (acc, curr) { return __spreadArray(__spreadArray([], acc, true), [curr.id], false); }, []))
|
|
31
|
+
];
|
|
32
|
+
if (!!maximum) {
|
|
33
|
+
validators.push(validateSum(numberLessThanOrEqualTo(maximum), lineItems
|
|
34
|
+
.filter(function (lineItem) { return lineItem != item; })
|
|
35
|
+
.reduce(function (acc, curr) { return __spreadArray(__spreadArray([], acc, true), [curr.id], false); }, [])));
|
|
36
|
+
}
|
|
37
|
+
return __assign(__assign({}, acc), (_a = {}, _a[item.id] = {
|
|
38
|
+
validators: validators,
|
|
39
|
+
constraints: [onlyNaturals()],
|
|
40
|
+
defaultValue: String(item.amount)
|
|
41
|
+
}, _a));
|
|
42
|
+
}, {});
|
|
43
|
+
var _a = createFormState(formConfig), reducer = _a.reducer, mapStateToProps = _a.mapStateToProps, mapDispatchToProps = _a.mapDispatchToProps;
|
|
44
|
+
return {
|
|
45
|
+
partialAmountFormReducer: reducer,
|
|
46
|
+
partialAmountFormMapStateToProps: mapStateToProps,
|
|
47
|
+
partialAmountFormMapDispatchToProps: mapDispatchToProps
|
|
48
|
+
};
|
|
49
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export default PaymentButtonBar;
|
|
2
|
+
declare function PaymentButtonBar({ forwardButtonText, forwardButtonAction, forwardButtonLoading, forwardButtonVariant, backButtonVariant, backButtonAction, cancelURL, cancelText, redirectURL, redirectText, buttonFlexOverride, hideForwardButton }: {
|
|
3
|
+
forwardButtonText?: string | undefined;
|
|
4
|
+
forwardButtonAction: any;
|
|
5
|
+
forwardButtonLoading: any;
|
|
6
|
+
forwardButtonVariant?: string | undefined;
|
|
7
|
+
backButtonVariant?: string | undefined;
|
|
8
|
+
backButtonAction: any;
|
|
9
|
+
cancelURL: any;
|
|
10
|
+
cancelText?: string | undefined;
|
|
11
|
+
redirectURL: any;
|
|
12
|
+
redirectText?: string | undefined;
|
|
13
|
+
buttonFlexOverride: any;
|
|
14
|
+
hideForwardButton?: boolean | undefined;
|
|
15
|
+
}): JSX.Element;
|