@shipengine/elements 2.20.0 → 2.22.0
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/cjs/assets/cc-logos/amex.cjs +6 -0
- package/cjs/assets/cc-logos/discover.cjs +6 -0
- package/cjs/assets/cc-logos/mastercard.cjs +6 -0
- package/cjs/assets/cc-logos/visa.cjs +6 -0
- package/cjs/assets/funding.cjs +6 -0
- package/cjs/assets/onboarding-globe.cjs +6 -0
- package/cjs/assets/parcelguard/icon.cjs +6 -0
- package/cjs/assets/parcelguard/logo.cjs +6 -0
- package/cjs/assets/reload.cjs +6 -0
- package/cjs/assets/shipengine-logo.cjs +51 -0
- package/cjs/components/actions-menu/actions-menu.cjs +84 -0
- package/cjs/components/actions-menu/index.cjs +13 -0
- package/cjs/components/address-display/address-display.cjs +96 -0
- package/cjs/components/address-display/index.cjs +9 -0
- package/cjs/components/address-parser/address-parser-schema.cjs +11 -0
- package/cjs/components/address-parser/address-parser.cjs +88 -0
- package/cjs/components/address-parser/index.cjs +11 -0
- package/cjs/components/address-preference-context/address-preference-context.cjs +105 -0
- package/cjs/components/address-preference-context/index.cjs +11 -0
- package/cjs/components/address-preference-display/address-preference-display.cjs +113 -0
- package/cjs/components/address-preference-display/index.cjs +9 -0
- package/cjs/components/address-preference-select/address-preference-select.cjs +209 -0
- package/cjs/components/address-preference-select/index.cjs +9 -0
- package/cjs/components/button-group/button-group.cjs +65 -0
- package/cjs/components/button-group/index.cjs +9 -0
- package/cjs/components/carrier-balance/carrier-balance.cjs +45 -0
- package/cjs/components/carrier-balance/carrier-balance.styles.cjs +13 -0
- package/cjs/components/carrier-balance/index.cjs +9 -0
- package/cjs/components/carrier-connection-card/carrier-connection-card.cjs +44 -0
- package/cjs/components/carrier-connection-card/carrier-connection-card.styles.cjs +43 -0
- package/cjs/components/carrier-connection-card/index.cjs +9 -0
- package/cjs/components/carrier-icon/carrier-icon.cjs +33 -0
- package/cjs/components/carrier-icon/index.cjs +10 -0
- package/cjs/components/carrier-logo/carrier-logo.cjs +29 -0
- package/cjs/components/carrier-logo/index.cjs +9 -0
- package/cjs/components/cc-provider-logo/cc-provider-logo.cjs +37 -0
- package/cjs/components/cc-provider-logo/index.cjs +9 -0
- package/cjs/components/collapsible-panel/collapsible-panel.cjs +77 -0
- package/cjs/components/collapsible-panel/collapsible-panel.styles.cjs +28 -0
- package/cjs/components/collapsible-panel/index.cjs +9 -0
- package/cjs/components/copy/copy-button.cjs +42 -0
- package/cjs/components/copy/index.cjs +9 -0
- package/cjs/components/cube/cube.cjs +68 -0
- package/cjs/components/cube/index.cjs +9 -0
- package/cjs/components/disclosure/disclosure.cjs +52 -0
- package/cjs/components/disclosure/disclosure.styles.cjs +30 -0
- package/cjs/components/disclosure/index.cjs +9 -0
- package/cjs/components/display-term/display-term.cjs +45 -0
- package/cjs/components/display-term/display-term.styles.cjs +33 -0
- package/cjs/components/display-term/index.cjs +9 -0
- package/cjs/components/drawer/drawer.cjs +67 -0
- package/cjs/components/drawer/drawer.styles.cjs +35 -0
- package/cjs/components/drawer/index.cjs +9 -0
- package/cjs/components/enable-insurance-banner/enable-insurance-banner.cjs +104 -0
- package/cjs/components/enable-insurance-banner/enable-insurance-banner.styles.cjs +45 -0
- package/cjs/components/enable-insurance-banner/index.cjs +9 -0
- package/cjs/components/error-display/error-display.cjs +35 -0
- package/cjs/components/error-display/error-display.styles.cjs +27 -0
- package/cjs/components/error-display/index.cjs +9 -0
- package/cjs/components/error-fallback/error-fallback.cjs +52 -0
- package/cjs/components/error-fallback/index.cjs +9 -0
- package/cjs/components/error-state/error-state.cjs +44 -0
- package/cjs/components/error-state/error-state.styles.cjs +26 -0
- package/cjs/components/error-state/index.cjs +9 -0
- package/cjs/components/field/checkbox-input/checkbox-input.cjs +35 -0
- package/cjs/components/field/checkbox-input/index.cjs +9 -0
- package/cjs/components/field/create-field-controller.cjs +137 -0
- package/cjs/components/field/credit-card-input/credit-card-input.cjs +47 -0
- package/cjs/components/field/credit-card-input/index.cjs +9 -0
- package/cjs/components/field/date-picker/date-picker.cjs +50 -0
- package/cjs/components/field/date-picker/index.cjs +9 -0
- package/cjs/components/field/expiration-input/expiration-input.cjs +46 -0
- package/cjs/components/field/expiration-input/index.cjs +9 -0
- package/cjs/components/field/field.styles.cjs +22 -0
- package/cjs/components/field/fields.cjs +38 -0
- package/cjs/components/field/index.cjs +9 -0
- package/cjs/components/field/input-group/index.cjs +9 -0
- package/cjs/components/field/input-group/input-group.cjs +146 -0
- package/cjs/components/field/input-group/input-group.styles.cjs +41 -0
- package/cjs/components/field/money-input/index.cjs +10 -0
- package/cjs/components/field/money-input/money-input-styles.cjs +13 -0
- package/cjs/components/field/money-input/money-input.cjs +134 -0
- package/cjs/components/field/number-input/index.cjs +9 -0
- package/cjs/components/field/number-input/number-input.cjs +56 -0
- package/cjs/components/field/rate-select/index.cjs +9 -0
- package/cjs/components/field/rate-select/rate-card/cost-breakdown/cost-breakdown.cjs +95 -0
- package/cjs/components/field/rate-select/rate-card/cost-breakdown/cost-breakdown.styles.cjs +26 -0
- package/cjs/components/field/rate-select/rate-card/cost-breakdown/index.cjs +9 -0
- package/cjs/components/field/rate-select/rate-card/index.cjs +9 -0
- package/cjs/components/field/rate-select/rate-card/rate-card.cjs +229 -0
- package/cjs/components/field/rate-select/rate-card/rate-card.styles.cjs +38 -0
- package/cjs/components/field/rate-select/rate-card/rate-detail-cost-breakdown/index.cjs +9 -0
- package/cjs/components/field/rate-select/rate-card/rate-detail-cost-breakdown/rate-detail-cost-breakdown.cjs +73 -0
- package/cjs/components/field/rate-select/rate-card/rate-detail-cost-breakdown/rate-detail-cost-breakdown.styles.cjs +26 -0
- package/cjs/components/field/rate-select/rate-select.cjs +82 -0
- package/cjs/components/field/rate-select/rate-select.styles.cjs +15 -0
- package/cjs/components/field/select/index.cjs +11 -0
- package/cjs/components/field/select/select-with-categories.cjs +98 -0
- package/cjs/components/field/select/select.cjs +65 -0
- package/cjs/components/field/select-auto-complete/index.cjs +9 -0
- package/cjs/components/field/select-auto-complete/select-auto-complete.cjs +52 -0
- package/cjs/components/field/submit-button/index.cjs +9 -0
- package/cjs/components/field/submit-button/submit-button.cjs +43 -0
- package/cjs/components/field/switch/index.cjs +9 -0
- package/cjs/components/field/switch/switch.cjs +51 -0
- package/cjs/components/field/text-area/index.cjs +9 -0
- package/cjs/components/field/text-area/text-area.cjs +29 -0
- package/cjs/components/field/text-input/index.cjs +9 -0
- package/cjs/components/field/text-input/text-input.cjs +35 -0
- package/cjs/components/field-label/field-label.cjs +73 -0
- package/cjs/components/field-label/field-label.styles.cjs +35 -0
- package/cjs/components/field-label/index.cjs +9 -0
- package/cjs/components/form-portal/form-portal.cjs +60 -0
- package/cjs/components/form-portal/index.cjs +9 -0
- package/cjs/components/forms/add-funds-form/add-funds-form.cjs +202 -0
- package/cjs/components/forms/add-funds-form/add-funds-form.styles.cjs +33 -0
- package/cjs/components/forms/add-funds-form/add-funds-schema.cjs +25 -0
- package/cjs/components/forms/add-funds-form/index.cjs +9 -0
- package/cjs/components/forms/address-form/address-fields.cjs +154 -0
- package/cjs/components/forms/address-form/address-fields.styles.cjs +35 -0
- package/cjs/components/forms/address-form/address-form-schema.cjs +46 -0
- package/cjs/components/forms/address-form/address-form.cjs +119 -0
- package/cjs/components/forms/address-form/address-form.styles.cjs +32 -0
- package/cjs/components/forms/address-form/address-schema.cjs +29 -0
- package/cjs/components/forms/address-form/index.cjs +18 -0
- package/cjs/components/forms/auto-funding-form/auto-funding-form.cjs +241 -0
- package/cjs/components/forms/auto-funding-form/auto-funding-form.styles.cjs +23 -0
- package/cjs/components/forms/auto-funding-form/auto-funding-schema.cjs +26 -0
- package/cjs/components/forms/auto-funding-form/index.cjs +9 -0
- package/cjs/components/forms/edit-billing-form/edit-billing-form.cjs +106 -0
- package/cjs/components/forms/edit-billing-form/edit-billing-form.styles.cjs +24 -0
- package/cjs/components/forms/edit-billing-form/index.cjs +9 -0
- package/cjs/components/forms/edit-wallet-address-form/edit-wallet-address-form.cjs +82 -0
- package/cjs/components/forms/edit-wallet-address-form/index.cjs +9 -0
- package/cjs/components/forms/register-funding-source-insurance-form/index.cjs +9 -0
- package/cjs/components/forms/register-funding-source-insurance-form/register-funding-source-insurance-form-schema.cjs +11 -0
- package/cjs/components/forms/register-funding-source-insurance-form/register-funding-source-insurance-form.cjs +137 -0
- package/cjs/components/forms/register-funding-source-insurance-form/register-funding-source-insurance-from.styles.cjs +22 -0
- package/cjs/components/forms/ship-from-address-form/index.cjs +11 -0
- package/cjs/components/forms/ship-from-address-form/ship-from-address-form-schema.cjs +18 -0
- package/cjs/components/forms/ship-from-address-form/ship-from-address-form.cjs +191 -0
- package/cjs/components/forms/ship-from-address-form/ship-from-address-form.styles.cjs +29 -0
- package/cjs/components/forms/vat-form/index.cjs +9 -0
- package/cjs/components/forms/vat-form/vat-form-schema.cjs +16 -0
- package/cjs/components/forms/vat-form/vat-form.cjs +171 -0
- package/cjs/components/forms/vat-form/vat-form.styles.cjs +20 -0
- package/cjs/components/forms/vat-form/vat-types.cjs +34 -0
- package/cjs/components/forms/wallet-form/billing-fields.cjs +76 -0
- package/cjs/components/forms/wallet-form/index.cjs +16 -0
- package/cjs/components/forms/wallet-form/wallet-form.cjs +200 -0
- package/cjs/components/forms/wallet-form/wallet-form.styles.cjs +16 -0
- package/cjs/components/forms/wallet-form/wallet-schema.cjs +101 -0
- package/cjs/components/forms/warehouse-form/index.cjs +12 -0
- package/cjs/components/forms/warehouse-form/warehouse-form-schema.cjs +57 -0
- package/cjs/components/forms/warehouse-form/warehouse-form.cjs +187 -0
- package/cjs/components/grid-controller/cell-formatted-date.cjs +25 -0
- package/cjs/components/grid-controller/grid-controller.cjs +129 -0
- package/cjs/components/grid-controller/grid-controller.styles.cjs +38 -0
- package/cjs/components/grid-controller/grid-footer.cjs +65 -0
- package/cjs/components/grid-controller/grid-footer.styles.cjs +24 -0
- package/cjs/components/grid-controller/index.cjs +15 -0
- package/cjs/components/grid-controller/sortable-header/index.cjs +9 -0
- package/cjs/components/grid-controller/sortable-header/sortable-header.cjs +41 -0
- package/cjs/components/grid-controller/sortable-header/sortable-header.styles.cjs +18 -0
- package/cjs/components/grid-filters/components/created-date-filter/created-date-filter.cjs +233 -0
- package/cjs/components/grid-filters/components/created-date-filter/created-date-filter.styles.cjs +49 -0
- package/cjs/components/grid-filters/components/created-date-filter/index.cjs +9 -0
- package/cjs/components/grid-filters/components/created-date-filter/types/form.cjs +12 -0
- package/cjs/components/grid-filters/components/created-date-filter/utils/dates.cjs +32 -0
- package/cjs/components/grid-filters/components/created-date-filter/utils/index.cjs +9 -0
- package/cjs/components/grid-filters/components/index.cjs +15 -0
- package/cjs/components/grid-filters/components/label-id-filter/index.cjs +9 -0
- package/cjs/components/grid-filters/components/label-id-filter/label-id-filter-shema.cjs +15 -0
- package/cjs/components/grid-filters/components/label-id-filter/label-id-filter.cjs +147 -0
- package/cjs/components/grid-filters/components/label-id-filter/label-id-filter.styles.cjs +15 -0
- package/cjs/components/grid-filters/components/shipment-id-filter/index.cjs +9 -0
- package/cjs/components/grid-filters/components/shipment-id-filter/shipment-id-filter-shema.cjs +15 -0
- package/cjs/components/grid-filters/components/shipment-id-filter/shipment-id-filter.cjs +147 -0
- package/cjs/components/grid-filters/components/shipment-id-filter/shipment-id-filter.styles.cjs +18 -0
- package/cjs/components/grid-filters/components/tracking-status-filter/index.cjs +9 -0
- package/cjs/components/grid-filters/components/tracking-status-filter/tracking-status-filter-schema.cjs +15 -0
- package/cjs/components/grid-filters/components/tracking-status-filter/tracking-status-filter.cjs +224 -0
- package/cjs/components/grid-filters/components/tracking-status-filter/tracking-status-filter.styles.cjs +21 -0
- package/cjs/components/grid-filters/grid-filters.cjs +72 -0
- package/cjs/components/grid-filters/index.cjs +9 -0
- package/cjs/components/history/history-card/history-card.cjs +170 -0
- package/cjs/components/history/history-card/history-card.styles.cjs +47 -0
- package/cjs/components/history/history-card/index.cjs +9 -0
- package/cjs/components/history/history-card/label/index.cjs +9 -0
- package/cjs/components/history/history-card/label/label.cjs +28 -0
- package/cjs/components/history/history-card/label/label.styles.cjs +20 -0
- package/cjs/components/history/history-card-extension/history-card-extension.cjs +155 -0
- package/cjs/components/history/history-card-extension/history-card-extension.styles.cjs +34 -0
- package/cjs/components/history/history-card-extension/index.cjs +9 -0
- package/cjs/components/history/index.cjs +11 -0
- package/cjs/components/inline-label/index.cjs +9 -0
- package/cjs/components/inline-label/inline-label.cjs +27 -0
- package/cjs/components/inline-label/inline-label.styles.cjs +16 -0
- package/cjs/components/insurance-popover/index.cjs +9 -0
- package/cjs/components/insurance-popover/insurance-popover.cjs +85 -0
- package/cjs/components/insurance-popover/insurance-popover.styles.cjs +22 -0
- package/cjs/components/items-breakdown/index.cjs +9 -0
- package/cjs/components/items-breakdown/items-breakdown.cjs +91 -0
- package/cjs/components/items-breakdown/items-breakdown.styles.cjs +43 -0
- package/cjs/components/link-action/index.cjs +9 -0
- package/cjs/components/link-action/link-action.cjs +96 -0
- package/cjs/components/loader/index.cjs +9 -0
- package/cjs/components/loader/loader.cjs +24 -0
- package/cjs/components/loader/loader.styles.cjs +19 -0
- package/cjs/components/modal/index.cjs +13 -0
- package/cjs/components/modal/modal-container.cjs +69 -0
- package/cjs/components/modal/modal.cjs +63 -0
- package/cjs/components/modal/modal.styles.cjs +29 -0
- package/cjs/components/pager/index.cjs +11 -0
- package/cjs/components/pager/pager.cjs +101 -0
- package/cjs/components/pager/pager.styles.cjs +53 -0
- package/cjs/components/pager/usePager.cjs +32 -0
- package/cjs/components/portal/index.cjs +9 -0
- package/cjs/components/portal/portal.cjs +29 -0
- package/cjs/components/powered-by-shipengine/index.cjs +9 -0
- package/cjs/components/powered-by-shipengine/powered-by-shipengine.cjs +32 -0
- package/cjs/components/powered-by-shipengine/powered-by-shipengine.styles.cjs +19 -0
- package/cjs/components/rate-details/index.cjs +9 -0
- package/cjs/components/rate-details/rate-details.cjs +144 -0
- package/cjs/components/rate-details/rate-details.styles.cjs +31 -0
- package/cjs/components/save-status/index.cjs +11 -0
- package/cjs/components/save-status/save-status-styles.cjs +71 -0
- package/cjs/components/save-status/save-status.cjs +92 -0
- package/cjs/components/search-bar/index.cjs +9 -0
- package/cjs/components/search-bar/search-bar.cjs +47 -0
- package/cjs/components/section/index.cjs +9 -0
- package/cjs/components/section/section.cjs +50 -0
- package/cjs/components/section/section.styles.cjs +42 -0
- package/cjs/components/segmented-control/index.cjs +9 -0
- package/cjs/components/segmented-control/segemented-control.cjs +34 -0
- package/cjs/components/segmented-control/segmented-control.styles.cjs +29 -0
- package/cjs/components/service-card/index.cjs +11 -0
- package/cjs/components/service-card/service-card.cjs +121 -0
- package/cjs/components/service-card/service-card.styles.cjs +74 -0
- package/cjs/components/service-point-display/index.cjs +10 -0
- package/cjs/components/service-point-display/operating-hours.cjs +258 -0
- package/cjs/components/service-point-display/operating-hours.styles.cjs +51 -0
- package/cjs/components/service-point-display/service-point-display.cjs +133 -0
- package/cjs/components/service-point-display/service-point-display.styles.cjs +53 -0
- package/cjs/components/service-points/index.cjs +9 -0
- package/cjs/components/service-points/service-points.cjs +125 -0
- package/cjs/components/service-points/service-points.styles.cjs +58 -0
- package/cjs/components/settings-card/index.cjs +9 -0
- package/cjs/components/settings-card/settings-card.cjs +75 -0
- package/cjs/components/settings-card/settings-card.styles.cjs +49 -0
- package/cjs/components/skeleton/index.cjs +9 -0
- package/cjs/components/skeleton/skeleton-carrier-row.cjs +39 -0
- package/cjs/components/skeleton/skeleton-carrier-row.styles.cjs +25 -0
- package/cjs/components/spacer/index.cjs +9 -0
- package/cjs/components/spacer/spacer.cjs +54 -0
- package/cjs/components/spread/index.cjs +9 -0
- package/cjs/components/spread/spread.cjs +25 -0
- package/cjs/components/story-notes/index.cjs +9 -0
- package/cjs/components/story-notes/story-notes.cjs +54 -0
- package/cjs/components/suspend/index.cjs +9 -0
- package/cjs/components/suspend/suspend-text.cjs +23 -0
- package/cjs/components/suspend-purchase/index.cjs +9 -0
- package/cjs/components/suspend-purchase/suspend-purchase.cjs +53 -0
- package/cjs/components/wallet-card/index.cjs +9 -0
- package/cjs/components/wallet-card/wallet-card.cjs +44 -0
- package/cjs/components/wallet-card/wallet-card.styles.cjs +16 -0
- package/cjs/components/zero-state/index.cjs +9 -0
- package/cjs/components/zero-state/zero-state.cjs +23 -0
- package/cjs/components/zero-state/zero-state.styles.cjs +22 -0
- package/cjs/constants/index.cjs +19 -0
- package/cjs/constants/shipengine/address.cjs +277 -0
- package/cjs/constants/shipengine/index.cjs +19 -0
- package/cjs/create-element/create-element.cjs +44 -0
- package/cjs/create-element/element/element.cjs +55 -0
- package/cjs/create-element/element/hooks/index.cjs +9 -0
- package/cjs/create-element/element/hooks/use-i18n.cjs +38 -0
- package/cjs/create-element/element/index.cjs +11 -0
- package/cjs/create-element/error-boundary/error-boundary.cjs +63 -0
- package/cjs/create-element/error-boundary/index.cjs +9 -0
- package/cjs/create-element/index.cjs +9 -0
- package/cjs/data/carrier-metadatas.cjs +88 -0
- package/cjs/data/insurance-provider-metadatas.cjs +20 -0
- package/cjs/data/rate-messages.cjs +99 -0
- package/cjs/elements/index.cjs +40 -0
- package/cjs/elements/labels-grid/hooks/use-labels-grid.cjs +246 -0
- package/cjs/elements/labels-grid/hooks/use-tracking-status-filter.cjs +109 -0
- package/cjs/elements/labels-grid/index.cjs +9 -0
- package/cjs/elements/labels-grid/labels-grid.cjs +461 -0
- package/cjs/elements/labels-grid/labels-grid.styles.cjs +16 -0
- package/cjs/elements/manage-carriers/index.cjs +9 -0
- package/cjs/elements/manage-carriers/manage-carriers.cjs +66 -0
- package/cjs/elements/manage-external-carriers/index.cjs +9 -0
- package/cjs/elements/manage-external-carriers/manage-external-carriers.cjs +50 -0
- package/cjs/elements/manage-funding/index.cjs +9 -0
- package/cjs/elements/manage-funding/manage-funding-element.cjs +66 -0
- package/cjs/elements/manage-warehouses/index.cjs +9 -0
- package/cjs/elements/manage-warehouses/manage-warehouses.cjs +42 -0
- package/cjs/elements/payment-method-settings/index.cjs +9 -0
- package/cjs/elements/payment-method-settings/payment-method-settings-element.cjs +25 -0
- package/cjs/elements/purchase-label/components/customs-forms/customs-forms.cjs +151 -0
- package/cjs/elements/purchase-label/components/customs-forms/index.cjs +9 -0
- package/cjs/elements/purchase-label/components/customs-forms/product-form/index.cjs +11 -0
- package/cjs/elements/purchase-label/components/customs-forms/product-form/product-form-schema.cjs +43 -0
- package/cjs/elements/purchase-label/components/customs-forms/product-form/product-form.cjs +233 -0
- package/cjs/elements/purchase-label/components/customs-forms/product-form/product-form.styles.cjs +17 -0
- package/cjs/elements/purchase-label/components/customs-forms/products-display/index.cjs +9 -0
- package/cjs/elements/purchase-label/components/customs-forms/products-display/products-display.cjs +283 -0
- package/cjs/elements/purchase-label/components/customs-forms/products-display/products-display.styles.cjs +110 -0
- package/cjs/elements/purchase-label/components/customs-forms/tax-ids/form/index.cjs +12 -0
- package/cjs/elements/purchase-label/components/customs-forms/tax-ids/form/schema.cjs +18 -0
- package/cjs/elements/purchase-label/components/customs-forms/tax-ids/form/values.cjs +27 -0
- package/cjs/elements/purchase-label/components/customs-forms/tax-ids/index.cjs +9 -0
- package/cjs/elements/purchase-label/components/customs-forms/tax-ids/tax-id-form.cjs +139 -0
- package/cjs/elements/purchase-label/components/customs-forms/tax-ids/tax-id-list.cjs +63 -0
- package/cjs/elements/purchase-label/components/customs-forms/tax-ids/tax-ids.cjs +172 -0
- package/cjs/elements/purchase-label/components/customs-forms/tax-ids/tax-ids.styles.cjs +81 -0
- package/cjs/elements/purchase-label/components/customs-forms/windsor-framework/windsor-framework.cjs +57 -0
- package/cjs/elements/purchase-label/components/customs-forms/windsor-framework/windsor-framework.styles.cjs +28 -0
- package/cjs/elements/purchase-label/components/fund-and-purchase/fund-and-purchase.cjs +295 -0
- package/cjs/elements/purchase-label/components/fund-and-purchase/fund-and-purchase.styles.cjs +30 -0
- package/cjs/elements/purchase-label/components/fund-and-purchase/index.cjs +9 -0
- package/cjs/elements/purchase-label/components/index.cjs +11 -0
- package/cjs/elements/purchase-label/components/preset-descriptor/index.cjs +9 -0
- package/cjs/elements/purchase-label/components/preset-descriptor/preset-descriptor.cjs +45 -0
- package/cjs/elements/purchase-label/components/preset-descriptor/preset-descriptor.styles.cjs +37 -0
- package/cjs/elements/purchase-label/components/pudo/here-map/here-map.cjs +77 -0
- package/cjs/elements/purchase-label/components/pudo/here-map/here-map.styles.cjs +31 -0
- package/cjs/elements/purchase-label/components/pudo/here-map/init.cjs +41 -0
- package/cjs/elements/purchase-label/components/pudo/here-map/use-here-map-ui.cjs +82 -0
- package/cjs/elements/purchase-label/components/pudo/here-map/use-here-map.cjs +40 -0
- package/cjs/elements/purchase-label/components/pudo/index.cjs +9 -0
- package/cjs/elements/purchase-label/components/pudo/pudo-rate-tabs/pudo-list-view/pudo-list-view.cjs +73 -0
- package/cjs/elements/purchase-label/components/pudo/pudo-rate-tabs/pudo-list-view/pudo-list-view.styles.cjs +15 -0
- package/cjs/elements/purchase-label/components/pudo/pudo-rate-tabs/pudo-map-view/pudo-map-view.cjs +105 -0
- package/cjs/elements/purchase-label/components/pudo/pudo-rate-tabs/pudo-rate-tabs.cjs +157 -0
- package/cjs/elements/purchase-label/components/rate-form/rate-form.cjs +236 -0
- package/cjs/elements/purchase-label/components/rate-form/rate-form.styles.cjs +28 -0
- package/cjs/elements/purchase-label/components/rate-form/rate-schema.cjs +14 -0
- package/cjs/elements/purchase-label/components/rate-form/rate-view.cjs +247 -0
- package/cjs/elements/purchase-label/components/shipment-form/shipment-form.cjs +1067 -0
- package/cjs/elements/purchase-label/components/shipment-form/shipment-form.styles.cjs +48 -0
- package/cjs/elements/purchase-label/components/shipment-form/shipment-schema.cjs +160 -0
- package/cjs/elements/purchase-label/configure-shipment.cjs +183 -0
- package/cjs/elements/purchase-label/hooks/index.cjs +50 -0
- package/cjs/elements/purchase-label/hooks/use-address.cjs +198 -0
- package/cjs/elements/purchase-label/hooks/use-confirmation-options.cjs +29 -0
- package/cjs/elements/purchase-label/hooks/use-customs-contents-options.cjs +27 -0
- package/cjs/elements/purchase-label/hooks/use-customs-non-delivery-options.cjs +27 -0
- package/cjs/elements/purchase-label/hooks/use-customs.cjs +59 -0
- package/cjs/elements/purchase-label/hooks/use-filter-visible-rate-options/use-filter-visible-rate-options.cjs +34 -0
- package/cjs/elements/purchase-label/hooks/use-insurance-provider-options.cjs +43 -0
- package/cjs/elements/purchase-label/hooks/use-movement-indicator-options.cjs +26 -0
- package/cjs/elements/purchase-label/hooks/use-package-options/use-package-options.cjs +87 -0
- package/cjs/elements/purchase-label/hooks/use-presets.cjs +58 -0
- package/cjs/elements/purchase-label/hooks/use-rate-options.cjs +117 -0
- package/cjs/elements/purchase-label/hooks/use-rates-form.cjs +295 -0
- package/cjs/elements/purchase-label/hooks/use-rates-with-cache.cjs +103 -0
- package/cjs/elements/purchase-label/hooks/use-request-preferred-rates.cjs +21 -0
- package/cjs/elements/purchase-label/hooks/use-request-rates.cjs +125 -0
- package/cjs/elements/purchase-label/hooks/use-service-code-options/index.cjs +9 -0
- package/cjs/elements/purchase-label/hooks/use-service-code-options/use-service-code-options.cjs +52 -0
- package/cjs/elements/purchase-label/hooks/use-service-points.cjs +55 -0
- package/cjs/elements/purchase-label/hooks/use-ship-from-address-options.cjs +51 -0
- package/cjs/elements/purchase-label/hooks/use-shipment-form.cjs +174 -0
- package/cjs/elements/purchase-label/hooks/use-shipping-presets-options.cjs +39 -0
- package/cjs/elements/purchase-label/hooks/use-windsor-framework.cjs +93 -0
- package/cjs/elements/purchase-label/index.cjs +9 -0
- package/cjs/elements/purchase-label/purchase-label.cjs +157 -0
- package/cjs/elements/select-label-layout/index.cjs +9 -0
- package/cjs/elements/select-label-layout/select-label-layout-element.cjs +24 -0
- package/cjs/elements/shipment-summary/components/index.cjs +10 -0
- package/cjs/elements/shipment-summary/components/label-display/index.cjs +9 -0
- package/cjs/elements/shipment-summary/components/label-display/label-card.cjs +176 -0
- package/cjs/elements/shipment-summary/components/label-display/label-card.styles.cjs +40 -0
- package/cjs/elements/shipment-summary/components/label-display/label-display.cjs +109 -0
- package/cjs/elements/shipment-summary/components/shipment/index.cjs +10 -0
- package/cjs/elements/shipment-summary/components/shipment/shipment.cjs +312 -0
- package/cjs/elements/shipment-summary/index.cjs +9 -0
- package/cjs/elements/shipment-summary/shipment-summary.cjs +121 -0
- package/cjs/elements/shipments-grid/hooks/use-shipments-grid.cjs +144 -0
- package/cjs/elements/shipments-grid/index.cjs +9 -0
- package/cjs/elements/shipments-grid/shipments-grid.cjs +302 -0
- package/cjs/elements/shipments-grid/shipments-grid.styles.cjs +16 -0
- package/cjs/elements/shipments-grid/utils/created-date-value.cjs +48 -0
- package/cjs/elements/shipments-grid/utils/index.cjs +10 -0
- package/cjs/elements/theme-creator/components/color-palette-editor/color-palette-editor.cjs +115 -0
- package/cjs/elements/theme-creator/components/color-palette-editor/color-palette-editor.styles.cjs +56 -0
- package/cjs/elements/theme-creator/components/color-palette-editor/index.cjs +9 -0
- package/cjs/elements/theme-creator/components/configure-theme/configure-theme.cjs +329 -0
- package/cjs/elements/theme-creator/components/configure-theme/configure-theme.styles.cjs +116 -0
- package/cjs/elements/theme-creator/components/configure-theme/index.cjs +9 -0
- package/cjs/elements/theme-creator/components/index.cjs +9 -0
- package/cjs/elements/theme-creator/components/typography-editor/index.cjs +9 -0
- package/cjs/elements/theme-creator/components/typography-editor/typography-editor.cjs +106 -0
- package/cjs/elements/theme-creator/components/typography-editor/typography-editor.styles.cjs +43 -0
- package/cjs/elements/theme-creator/index.cjs +12 -0
- package/cjs/elements/theme-creator/theme-creator-provider.cjs +30 -0
- package/cjs/elements/theme-creator/theme-creator.cjs +23 -0
- package/cjs/elements/transaction-history/index.cjs +9 -0
- package/cjs/elements/transaction-history/transaction-history-element.cjs +21 -0
- package/cjs/elements/unit-settings/index.cjs +9 -0
- package/cjs/elements/unit-settings/unit-settings-element.cjs +24 -0
- package/cjs/elements/vat-settings/index.cjs +9 -0
- package/cjs/elements/vat-settings/vat-settings-element.cjs +21 -0
- package/cjs/elements/void-label/components/actions/actions.cjs +79 -0
- package/cjs/elements/void-label/components/actions/index.cjs +9 -0
- package/cjs/elements/void-label/components/index.cjs +11 -0
- package/cjs/elements/void-label/components/message/index.cjs +9 -0
- package/cjs/elements/void-label/components/message/message.cjs +74 -0
- package/cjs/elements/void-label/index.cjs +9 -0
- package/cjs/elements/void-label/void-label.cjs +143 -0
- package/cjs/elements-provider/elements-context-provider.cjs +85 -0
- package/cjs/elements-provider/elements-provider.cjs +127 -0
- package/cjs/elements-provider/elements-test-provider.cjs +55 -0
- package/cjs/elements-provider/hooks/index.cjs +9 -0
- package/cjs/elements-provider/hooks/use-load-icons.cjs +29 -0
- package/cjs/elements-provider/index.cjs +15 -0
- package/cjs/extensions/index.cjs +9 -0
- package/cjs/extensions/zod.cjs +24 -0
- package/cjs/features/manage-carriers/hooks/index.cjs +11 -0
- package/cjs/features/manage-carriers/hooks/use-carrier-metadata.cjs +11 -0
- package/cjs/features/manage-carriers/hooks/use-list-funding-source-carriers.cjs +74 -0
- package/cjs/features/manage-carriers/index.cjs +11 -0
- package/cjs/features/manage-carriers/manage-carriers-row/index.cjs +9 -0
- package/cjs/features/manage-carriers/manage-carriers-row/manage-carriers-row.cjs +112 -0
- package/cjs/features/manage-carriers/manage-carriers-row/manage-carriers-row.styles.cjs +32 -0
- package/cjs/features/manage-carriers/manage-carriers.cjs +198 -0
- package/cjs/features/manage-carriers/manage-carriers.styles.cjs +20 -0
- package/cjs/features/manage-carriers/manage-insurance-provider-row/index.cjs +9 -0
- package/cjs/features/manage-carriers/manage-insurance-provider-row/info-popover.cjs +56 -0
- package/cjs/features/manage-carriers/manage-insurance-provider-row/manage-insurance-provider-row.cjs +105 -0
- package/cjs/features/manage-carriers/manage-insurance-provider-row/manage-insurance-provider-row.styles.cjs +46 -0
- package/cjs/features/manage-carriers/register-funding-source-carrier-form/index.cjs +11 -0
- package/cjs/features/manage-carriers/register-funding-source-carrier-form/register-funding-source-carrier-form.cjs +212 -0
- package/cjs/features/manage-carriers/register-funding-source-carrier-form/register-funding-source-carrier-form.styles.cjs +33 -0
- package/cjs/features/manage-carriers/register-funding-source-carrier-form/register-funding-source-carrier-schema.cjs +17 -0
- package/cjs/features/manage-carriers/use-manage-carriers.cjs +36 -0
- package/cjs/features/manage-external-carriers/connected-carrier-list/connected-carrier-list.cjs +76 -0
- package/cjs/features/manage-external-carriers/connected-carrier-list/connected-carrier-list.styles.cjs +33 -0
- package/cjs/features/manage-external-carriers/connected-carrier-list/connected-carrier-row/connected-carrier-row.cjs +119 -0
- package/cjs/features/manage-external-carriers/connected-carrier-list/connected-carrier-row/connected-carrier-row.styles.cjs +68 -0
- package/cjs/features/manage-external-carriers/connected-carrier-list/connected-carrier-row/index.cjs +9 -0
- package/cjs/features/manage-external-carriers/connected-carrier-list/index.cjs +9 -0
- package/cjs/features/manage-external-carriers/index.cjs +11 -0
- package/cjs/features/manage-external-carriers/manage-external-carriers.cjs +101 -0
- package/cjs/features/manage-external-carriers/use-manage-external-carriers.cjs +38 -0
- package/cjs/features/manage-funding/index.cjs +9 -0
- package/cjs/features/manage-funding/manage-funding.cjs +90 -0
- package/cjs/features/manage-warehouses/index.cjs +11 -0
- package/cjs/features/manage-warehouses/manage-warehouse.styles.cjs +22 -0
- package/cjs/features/manage-warehouses/manage-warehouses.cjs +190 -0
- package/cjs/features/manage-warehouses/use-manage-warehouses.cjs +46 -0
- package/cjs/features/manage-warehouses/warehouse-display/index.cjs +9 -0
- package/cjs/features/manage-warehouses/warehouse-display/warehouse-display.cjs +64 -0
- package/cjs/features/payment-method-settings/index.cjs +9 -0
- package/cjs/features/payment-method-settings/payment-method-settings.cjs +80 -0
- package/cjs/features/select-label-layout/index.cjs +11 -0
- package/cjs/features/select-label-layout/select-label-layout.cjs +144 -0
- package/cjs/features/select-label-layout/select-label-layout.styles.cjs +117 -0
- package/cjs/features/select-label-layout/use-label-layout.cjs +34 -0
- package/cjs/features/transaction-history/components/date-range-combo/date-range-combo.cjs +73 -0
- package/cjs/features/transaction-history/components/date-range-combo/index.cjs +9 -0
- package/cjs/features/transaction-history/components/date-range-select/date-range-select.cjs +44 -0
- package/cjs/features/transaction-history/components/date-range-select/index.cjs +9 -0
- package/cjs/features/transaction-history/index.cjs +9 -0
- package/cjs/features/transaction-history/transaction-history.cjs +331 -0
- package/cjs/features/transaction-history/transaction-history.styles.cjs +94 -0
- package/cjs/features/transaction-history/use-date-range-options.cjs +56 -0
- package/cjs/features/unit-settings/index.cjs +11 -0
- package/cjs/features/unit-settings/unit-settings.cjs +116 -0
- package/cjs/features/unit-settings/use-unit-settings.cjs +39 -0
- package/cjs/features/vat-settings/index.cjs +9 -0
- package/cjs/features/vat-settings/vat-settings.cjs +99 -0
- package/cjs/features/vat-settings/vat-settings.styles.cjs +41 -0
- package/cjs/hooks/index.cjs +17 -0
- package/cjs/hooks/options/format-carrier-label.cjs +30 -0
- package/cjs/hooks/options/index.cjs +13 -0
- package/cjs/hooks/options/use-country-code-options.cjs +37 -0
- package/cjs/hooks/options/use-shipment-metadata.cjs +52 -0
- package/cjs/hooks/options/use-state-code-options.cjs +22 -0
- package/cjs/hooks/use-address-validation.cjs +108 -0
- package/cjs/hooks/use-balance-services.cjs +145 -0
- package/cjs/hooks/use-black-box-detection.cjs +69 -0
- package/cjs/hooks/use-configure-shipment.cjs +237 -0
- package/cjs/hooks/use-get-funding-source-insurance-provider.cjs +51 -0
- package/cjs/hooks/use-get-service-name.cjs +24 -0
- package/cjs/hooks/use-helpers.cjs +26 -0
- package/cjs/hooks/use-helpers.stories.cjs +80 -0
- package/cjs/hooks/use-import-sales-order.cjs +73 -0
- package/cjs/hooks/use-manage-funding-source-insurance.cjs +98 -0
- package/cjs/hooks/use-nested-form.cjs +68 -0
- package/cjs/hooks/use-page-layout.cjs +85 -0
- package/cjs/hooks/use-replace-support-email.cjs +41 -0
- package/cjs/hooks/use-root-portal.cjs +67 -0
- package/cjs/hooks/use-run-once-on-true.cjs +27 -0
- package/cjs/hooks/use-scrub-errors.cjs +36 -0
- package/cjs/hooks/use-sortable-query.cjs +36 -0
- package/cjs/hooks/use-toggle.cjs +24 -0
- package/cjs/hooks/use-vat-settings.cjs +29 -0
- package/cjs/index.cjs +104 -0
- package/cjs/locales/en/account-settings.cjs +33 -0
- package/cjs/locales/en/common.cjs +389 -0
- package/cjs/locales/en/connect-carrier.cjs +47 -0
- package/cjs/locales/en/index.cjs +25 -0
- package/cjs/locales/en/list-labels.cjs +56 -0
- package/cjs/locales/en/list-shipments.cjs +41 -0
- package/cjs/locales/en/manage-carriers.cjs +20 -0
- package/cjs/locales/en/manage-defaults.cjs +42 -0
- package/cjs/locales/en/manage-funding.cjs +60 -0
- package/cjs/locales/en/manage-warehouses.cjs +21 -0
- package/cjs/locales/en/onboarding.cjs +89 -0
- package/cjs/locales/en/payment-method.cjs +9 -0
- package/cjs/locales/en/purchase-label.cjs +145 -0
- package/cjs/locales/en/rate-details.cjs +38 -0
- package/cjs/locales/en/register-carrier.cjs +19 -0
- package/cjs/locales/en/register-wallet.cjs +65 -0
- package/cjs/locales/en/vat-settings.cjs +26 -0
- package/cjs/locales/en/view-shipment.cjs +55 -0
- package/cjs/locales/en/void-label.cjs +30 -0
- package/cjs/locales/en/wallet-history.cjs +29 -0
- package/cjs/locales/index.cjs +9 -0
- package/cjs/package.cjs +7 -0
- package/cjs/schemas/index.cjs +12 -0
- package/cjs/schemas/shipengine/index.cjs +12 -0
- package/cjs/schemas/shipengine/money.cjs +20 -0
- package/cjs/schemas/shipengine/phone.cjs +26 -0
- package/cjs/themes/auctane.cjs +83 -0
- package/cjs/themes/fallback.cjs +359 -0
- package/cjs/themes/index.cjs +11 -0
- package/cjs/types/canada-ddp.cjs +9 -0
- package/cjs/types/pudo.cjs +14 -0
- package/cjs/utilities/assertions.cjs +13 -0
- package/cjs/utilities/checks.cjs +61 -0
- package/cjs/utilities/create-dictionary.cjs +17 -0
- package/cjs/utilities/date.cjs +223 -0
- package/cjs/utilities/error.cjs +55 -0
- package/cjs/utilities/feature-flags/feature-flags.cjs +119 -0
- package/cjs/utilities/feature-flags/index.cjs +14 -0
- package/cjs/utilities/feature-flags/types.cjs +2 -0
- package/cjs/utilities/feature-flags/utils.cjs +12 -0
- package/cjs/utilities/form-logger.cjs +59 -0
- package/cjs/utilities/formatString.cjs +33 -0
- package/cjs/utilities/index.cjs +16 -0
- package/cjs/utilities/money.cjs +107 -0
- package/cjs/utilities/predicates/index.cjs +9 -0
- package/cjs/utilities/predicates/isString.cjs +14 -0
- package/cjs/utilities/pudo.cjs +45 -0
- package/cjs/utilities/rate-details.cjs +48 -0
- package/cjs/utilities/rates.cjs +47 -0
- package/cjs/utilities/shipengine/address.cjs +179 -0
- package/cjs/utilities/shipengine/carrier.cjs +95 -0
- package/cjs/utilities/shipengine/dimensions.cjs +30 -0
- package/cjs/utilities/shipengine/index.cjs +60 -0
- package/cjs/utilities/shipengine/insurance.cjs +29 -0
- package/cjs/utilities/shipengine/package.cjs +16 -0
- package/cjs/utilities/shipengine/sales-order.cjs +92 -0
- package/cjs/utilities/shipengine/shipment.cjs +94 -0
- package/cjs/utilities/shipengine/warehouses.cjs +13 -0
- package/cjs/utilities/shipengine/weight.cjs +160 -0
- package/cjs/utilities/storybook-local-storage-config.cjs +30 -0
- package/cjs/utilities/styles.cjs +40 -0
- package/cjs/utilities/tracking-formatter.cjs +32 -0
- package/cjs/utilities/validation.cjs +79 -0
- package/cjs/utilities/vat.cjs +16 -0
- package/cjs/workflows/account-settings/account-settings.cjs +112 -0
- package/cjs/workflows/account-settings/account-settings.styles.cjs +15 -0
- package/cjs/workflows/account-settings/index.cjs +9 -0
- package/cjs/workflows/account-settings/use-get-panel-props.cjs +115 -0
- package/cjs/workflows/carrier-services/carrier-services.cjs +102 -0
- package/cjs/workflows/carrier-services/index.cjs +9 -0
- package/cjs/workflows/carrier-services/use-get-wallet-panel-props.cjs +41 -0
- package/cjs/workflows/connect-external-carrier/components/available-carriers-list/available-carriers-list.cjs +52 -0
- package/cjs/workflows/connect-external-carrier/components/available-carriers-list/available-carriers-list.styles.cjs +21 -0
- package/cjs/workflows/connect-external-carrier/components/connect-external-carrier-form/connect-external-carrier-form.cjs +182 -0
- package/cjs/workflows/connect-external-carrier/components/connect-external-carrier-form/connect-external-carrier-form.styles.cjs +71 -0
- package/cjs/workflows/connect-external-carrier/components/custom-external-carrier-form/custom-external-carrier-form.cjs +46 -0
- package/cjs/workflows/connect-external-carrier/components/custom-external-carrier-form/custom-form-fedex.cjs +259 -0
- package/cjs/workflows/connect-external-carrier/components/custom-external-carrier-form/custom-form-stamps_com.cjs +59 -0
- package/cjs/workflows/connect-external-carrier/components/custom-external-carrier-form/eula-clickwrap.cjs +139 -0
- package/cjs/workflows/connect-external-carrier/components/custom-external-carrier-form/eula-clickwrap.styles.cjs +28 -0
- package/cjs/workflows/connect-external-carrier/components/index.cjs +14 -0
- package/cjs/workflows/connect-external-carrier/connect-external-carrier.cjs +241 -0
- package/cjs/workflows/connect-external-carrier/index.cjs +9 -0
- package/cjs/workflows/index.cjs +17 -0
- package/cjs/workflows/label-workflow/index.cjs +9 -0
- package/cjs/workflows/label-workflow/label-workflow.cjs +211 -0
- package/cjs/workflows/onboarding/components/carrier-recovery-form/carrier-recovery-form-schema.cjs +39 -0
- package/cjs/workflows/onboarding/components/carrier-recovery-form/carrier-recovery-form.cjs +136 -0
- package/cjs/workflows/onboarding/components/carrier-recovery-form/carrier-recovery-form.styles.cjs +19 -0
- package/cjs/workflows/onboarding/components/carrier-recovery-form/index.cjs +9 -0
- package/cjs/workflows/onboarding/components/completion-page/completion-page.cjs +74 -0
- package/cjs/workflows/onboarding/components/completion-page/index.cjs +9 -0
- package/cjs/workflows/onboarding/components/confirmation-and-submission-step/confirmation-and-submission-step.cjs +231 -0
- package/cjs/workflows/onboarding/components/confirmation-and-submission-step/index.cjs +11 -0
- package/cjs/workflows/onboarding/components/confirmation-and-submission-step/use-confirmation-and-submission-step.cjs +315 -0
- package/cjs/workflows/onboarding/components/funding-step/funding-step.cjs +77 -0
- package/cjs/workflows/onboarding/components/funding-step/index.cjs +9 -0
- package/cjs/workflows/onboarding/components/onboarding-wizard/index.cjs +9 -0
- package/cjs/workflows/onboarding/components/onboarding-wizard/onboarding-wizard.cjs +239 -0
- package/cjs/workflows/onboarding/components/onboarding-wizard/onboarding-wizard.styles.cjs +21 -0
- package/cjs/workflows/onboarding/components/ship-from-address-step/index.cjs +9 -0
- package/cjs/workflows/onboarding/components/ship-from-address-step/ship-from-address-step.cjs +60 -0
- package/cjs/workflows/onboarding/components/step-header/index.cjs +9 -0
- package/cjs/workflows/onboarding/components/step-header/step-header.cjs +60 -0
- package/cjs/workflows/onboarding/components/step-header/step-header.styles.cjs +23 -0
- package/cjs/workflows/onboarding/components/terms-agreement-form/index.cjs +9 -0
- package/cjs/workflows/onboarding/components/terms-agreement-form/terms-agreement-form-schema.cjs +11 -0
- package/cjs/workflows/onboarding/components/terms-agreement-form/terms-agreement-form.cjs +152 -0
- package/cjs/workflows/onboarding/components/terms-agreement-form/terms-agreement-form.styles.cjs +31 -0
- package/cjs/workflows/onboarding/components/terms-agreement-step/index.cjs +9 -0
- package/cjs/workflows/onboarding/components/terms-agreement-step/terms-agreement-step.cjs +117 -0
- package/cjs/workflows/onboarding/components/terms-agreement-step/terms-agreement-step.styles.cjs +33 -0
- package/cjs/workflows/onboarding/components/terms-agreement-step/use-terms-agreement-step.cjs +112 -0
- package/cjs/workflows/onboarding/components/welcome-page/index.cjs +9 -0
- package/cjs/workflows/onboarding/components/welcome-page/welcome-page.cjs +59 -0
- package/cjs/workflows/onboarding/index.cjs +9 -0
- package/cjs/workflows/onboarding/onboarding.cjs +94 -0
- package/esm/assets/cc-logos/amex.js +2 -2
- package/esm/assets/cc-logos/discover.js +2 -2
- package/esm/assets/cc-logos/mastercard.js +2 -2
- package/esm/assets/cc-logos/visa.js +2 -2
- package/esm/components/address-display/address-display.js +8 -16
- package/esm/components/cc-provider-logo/cc-provider-logo.js +33 -0
- package/esm/components/cc-provider-logo/index.js +1 -0
- package/esm/components/collapsible-panel/collapsible-panel.js +0 -1
- package/esm/components/collapsible-panel/collapsible-panel.styles.js +0 -3
- package/esm/components/disclosure/disclosure.js +3 -3
- package/esm/components/disclosure/disclosure.styles.js +3 -4
- package/esm/components/field/rate-select/rate-select.js +1 -1
- package/esm/components/field/select-auto-complete/select-auto-complete.js +5 -1
- package/esm/components/forms/address-form/address-form.js +5 -12
- package/esm/components/forms/address-form/address-form.styles.js +2 -3
- package/esm/components/forms/auto-funding-form/auto-funding-form.styles.js +1 -1
- package/esm/components/forms/edit-wallet-address-form/edit-wallet-address-form.js +1 -1
- package/esm/components/forms/ship-from-address-form/ship-from-address-form.js +5 -12
- package/esm/components/grid-controller/grid-controller.js +27 -9
- package/esm/components/grid-controller/grid-controller.styles.js +8 -3
- package/esm/components/grid-controller/grid-footer.js +32 -17
- package/esm/components/grid-controller/grid-footer.styles.js +20 -0
- package/esm/components/grid-controller/index.js +1 -1
- package/esm/components/grid-controller/sortable-header/index.js +1 -0
- package/esm/components/grid-controller/{sortable-header.js → sortable-header/sortable-header.js} +3 -5
- package/esm/components/grid-controller/sortable-header/sortable-header.styles.js +14 -0
- package/esm/components/grid-filters/components/created-date-filter/created-date-filter.js +3 -0
- package/esm/components/grid-filters/components/label-id-filter/label-id-filter.js +2 -0
- package/esm/components/grid-filters/components/shipment-id-filter/shipment-id-filter.js +2 -0
- package/esm/components/grid-filters/components/tracking-status-filter/tracking-status-filter.js +2 -0
- package/esm/components/grid-filters/grid-filters.js +6 -0
- package/esm/components/link-action/link-action.js +28 -10
- package/esm/components/segmented-control/index.js +1 -0
- package/esm/components/segmented-control/segemented-control.js +30 -0
- package/esm/components/{tabs/tabs.styles.js → segmented-control/segmented-control.styles.js} +8 -8
- package/esm/components/wallet-card/wallet-card.js +4 -21
- package/esm/components/wallet-card/wallet-card.styles.js +2 -5
- package/esm/constants/shipengine/address.js +1 -1
- package/esm/elements/labels-grid/hooks/use-labels-grid.js +96 -31
- package/esm/elements/labels-grid/hooks/use-tracking-status-filter.js +105 -0
- package/esm/elements/labels-grid/labels-grid.js +74 -32
- package/esm/elements/purchase-label/components/customs-forms/customs-forms.js +7 -5
- package/esm/elements/purchase-label/components/customs-forms/products-display/products-display.js +16 -34
- package/esm/elements/purchase-label/components/customs-forms/tax-ids/tax-ids.js +11 -12
- package/esm/elements/purchase-label/components/fund-and-purchase/fund-and-purchase.js +28 -18
- package/esm/elements/purchase-label/components/pudo/pudo-rate-tabs/pudo-list-view/pudo-list-view.js +17 -35
- package/esm/elements/purchase-label/components/pudo/pudo-rate-tabs/pudo-rate-tabs.js +12 -21
- package/esm/elements/purchase-label/components/rate-form/rate-form.js +11 -4
- package/esm/elements/purchase-label/components/rate-form/rate-view.js +37 -41
- package/esm/elements/purchase-label/components/shipment-form/shipment-form.js +31 -74
- package/esm/elements/purchase-label/components/shipment-form/shipment-form.styles.js +2 -2
- package/esm/elements/purchase-label/hooks/index.js +1 -0
- package/esm/elements/purchase-label/hooks/use-filter-visible-rate-options/use-filter-visible-rate-options.js +29 -0
- package/esm/elements/purchase-label/hooks/use-rates-form.js +11 -2
- package/esm/elements/purchase-label/hooks/use-rates-with-cache.js +44 -35
- package/esm/elements/shipment-summary/components/shipment/shipment.js +7 -21
- package/esm/elements/shipments-grid/hooks/use-shipments-grid.js +6 -5
- package/esm/elements/shipments-grid/shipments-grid.js +57 -25
- package/esm/elements/theme-creator/components/configure-theme/configure-theme.js +5 -5
- package/esm/features/manage-carriers/manage-carriers.styles.js +2 -0
- package/esm/features/manage-carriers/register-funding-source-carrier-form/register-funding-source-carrier-form.styles.js +3 -3
- package/esm/features/manage-external-carriers/use-manage-external-carriers.js +1 -1
- package/esm/features/manage-warehouses/manage-warehouses.js +10 -12
- package/esm/features/select-label-layout/select-label-layout.styles.js +5 -5
- package/esm/hooks/use-balance-services.js +50 -22
- package/esm/hooks/use-sortable-query.js +32 -0
- package/esm/locales/en/common.js +4 -0
- package/esm/locales/en/list-labels.js +5 -4
- package/esm/locales/en/onboarding.js +10 -1
- package/esm/locales/en/purchase-label.js +3 -2
- package/esm/package.js +1 -1
- package/esm/themes/auctane.js +2 -2
- package/esm/utilities/feature-flags/feature-flags.js +1 -3
- package/esm/workflows/connect-external-carrier/components/custom-external-carrier-form/custom-external-carrier-form.js +6 -0
- package/esm/workflows/connect-external-carrier/components/custom-external-carrier-form/custom-form-fedex.js +6 -2
- package/esm/workflows/connect-external-carrier/components/custom-external-carrier-form/custom-form-stamps_com.js +55 -0
- package/esm/workflows/onboarding/components/confirmation-and-submission-step/confirmation-and-submission-step.js +125 -40
- package/esm/workflows/onboarding/components/confirmation-and-submission-step/use-confirmation-and-submission-step.js +190 -71
- package/esm/workflows/onboarding/components/onboarding-wizard/onboarding-wizard.js +63 -24
- package/esm/workflows/onboarding/components/terms-agreement-step/terms-agreement-step.js +68 -37
- package/esm/workflows/onboarding/components/terms-agreement-step/use-terms-agreement-step.js +82 -20
- package/package.json +93 -5
- package/types/src/components/cc-provider-logo/cc-provider-logo.d.ts +7 -0
- package/types/src/components/cc-provider-logo/index.d.ts +1 -0
- package/types/src/components/collapsible-panel/collapsible-panel.styles.d.ts +0 -3
- package/types/src/components/disclosure/disclosure.styles.d.ts +2 -3
- package/types/src/components/field/rate-select/rate-select.d.ts +1 -0
- package/types/src/components/forms/address-form/address-form.styles.d.ts +1 -2
- package/types/src/components/grid-controller/grid-controller.d.ts +2 -1
- package/types/src/components/grid-controller/grid-controller.styles.d.ts +6 -1
- package/types/src/components/grid-controller/grid-footer.d.ts +9 -1
- package/types/src/components/grid-controller/grid-footer.styles.d.ts +16 -0
- package/types/src/components/grid-controller/sortable-header/index.d.ts +1 -0
- package/types/src/components/grid-controller/{sortable-header.d.ts → sortable-header/sortable-header.d.ts} +2 -2
- package/types/src/components/grid-controller/sortable-header/sortable-header.styles.d.ts +10 -0
- package/types/src/components/grid-filters/components/created-date-filter/created-date-filter.d.ts +2 -1
- package/types/src/components/grid-filters/components/label-id-filter/label-id-filter.d.ts +2 -1
- package/types/src/components/grid-filters/components/shipment-id-filter/shipment-id-filter.d.ts +2 -1
- package/types/src/components/grid-filters/components/tracking-status-filter/tracking-status-filter.d.ts +2 -1
- package/types/src/components/grid-filters/grid-filters.d.ts +2 -1
- package/types/src/components/grid-filters/index.d.ts +2 -2
- package/types/src/components/link-action/link-action.d.ts +21 -2
- package/types/src/components/segmented-control/index.d.ts +1 -0
- package/types/src/components/segmented-control/segemented-control.d.ts +12 -0
- package/types/src/components/{tabs/tabs.styles.d.ts → segmented-control/segmented-control.styles.d.ts} +4 -4
- package/types/src/components/wallet-card/wallet-card.styles.d.ts +0 -3
- package/types/src/elements/labels-grid/hooks/use-labels-grid.d.ts +7 -5
- package/types/src/elements/labels-grid/hooks/use-tracking-status-filter.d.ts +25 -0
- package/types/src/elements/labels-grid/labels-grid.d.ts +52 -15
- package/types/src/elements/manage-carriers/manage-carriers.d.ts +15 -0
- package/types/src/elements/manage-external-carriers/manage-external-carriers.d.ts +15 -0
- package/types/src/elements/manage-funding/manage-funding-element.d.ts +15 -0
- package/types/src/elements/manage-warehouses/manage-warehouses.d.ts +15 -0
- package/types/src/elements/payment-method-settings/payment-method-settings-element.d.ts +15 -0
- package/types/src/elements/purchase-label/components/fund-and-purchase/fund-and-purchase.d.ts +2 -2
- package/types/src/elements/purchase-label/components/pudo/pudo-rate-tabs/pudo-list-view/pudo-list-view.d.ts +1 -1
- package/types/src/elements/purchase-label/components/pudo/pudo-rate-tabs/pudo-rate-tabs.d.ts +1 -1
- package/types/src/elements/purchase-label/components/rate-form/rate-form.d.ts +5 -4
- package/types/src/elements/purchase-label/components/rate-form/rate-view.d.ts +3 -2
- package/types/src/elements/purchase-label/components/shipment-form/shipment-form.styles.d.ts +1 -1
- package/types/src/elements/purchase-label/hooks/index.d.ts +1 -0
- package/types/src/elements/purchase-label/hooks/use-filter-visible-rate-options/use-filter-visible-rate-options.d.ts +13 -0
- package/types/src/elements/purchase-label/hooks/use-rates-form.d.ts +6 -3
- package/types/src/elements/purchase-label/purchase-label.d.ts +25 -15
- package/types/src/elements/select-label-layout/select-label-layout-element.d.ts +15 -0
- package/types/src/elements/shipment-summary/shipment-summary.d.ts +24 -4
- package/types/src/elements/shipments-grid/hooks/use-shipments-grid.d.ts +7 -1
- package/types/src/elements/shipments-grid/shipments-grid.d.ts +27 -28
- package/types/src/elements/theme-creator/theme-creator.d.ts +15 -0
- package/types/src/elements/transaction-history/transaction-history-element.d.ts +15 -0
- package/types/src/elements/unit-settings/unit-settings-element.d.ts +15 -0
- package/types/src/elements/vat-settings/vat-settings-element.d.ts +15 -0
- package/types/src/elements/void-label/void-label.d.ts +16 -4
- package/types/src/features/manage-carriers/manage-carriers.styles.d.ts +2 -0
- package/types/src/features/select-label-layout/select-label-layout.styles.d.ts +4 -4
- package/types/src/hooks/use-balance-services.d.ts +6 -1
- package/types/src/hooks/use-sortable-query.d.ts +13 -0
- package/types/src/locales/en/index.d.ts +15 -0
- package/types/src/utilities/feature-flags/types.d.ts +1 -1
- package/types/src/workflows/account-settings/account-settings.d.ts +15 -0
- package/types/src/workflows/carrier-services/carrier-services.d.ts +16 -46
- package/types/src/workflows/connect-external-carrier/components/custom-external-carrier-form/custom-form-stamps_com.d.ts +2 -0
- package/types/src/workflows/connect-external-carrier/connect-external-carrier.d.ts +15 -0
- package/types/src/workflows/label-workflow/label-workflow.d.ts +15 -0
- package/types/src/workflows/onboarding/components/confirmation-and-submission-step/confirmation-and-submission-step.d.ts +9 -4
- package/types/src/workflows/onboarding/components/confirmation-and-submission-step/use-confirmation-and-submission-step.d.ts +12 -5
- package/types/src/workflows/onboarding/components/terms-agreement-step/terms-agreement-step.d.ts +3 -2
- package/types/src/workflows/onboarding/components/terms-agreement-step/use-terms-agreement-step.d.ts +11 -4
- package/types/src/workflows/onboarding/onboarding.d.ts +16 -1
- package/esm/components/tabs/index.js +0 -1
- package/esm/components/tabs/tabs.js +0 -30
- package/types/src/components/tabs/index.d.ts +0 -1
- package/types/src/components/tabs/tabs.d.ts +0 -12
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
6
|
+
var styles = require('../../utilities/styles.cjs');
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @internal
|
|
10
|
+
*
|
|
11
|
+
* # Spread Component
|
|
12
|
+
*/
|
|
13
|
+
const Spread = ({
|
|
14
|
+
children
|
|
15
|
+
}) => jsxRuntime.jsx("div", Object.assign({
|
|
16
|
+
css: theme => ({
|
|
17
|
+
display: "flex",
|
|
18
|
+
gap: styles.scopeTheme(theme).spacing(2),
|
|
19
|
+
justifyContent: "space-between"
|
|
20
|
+
})
|
|
21
|
+
}, {
|
|
22
|
+
children: children
|
|
23
|
+
}));
|
|
24
|
+
|
|
25
|
+
exports.Spread = Spread;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
6
|
+
var styles = require('../../utilities/styles.cjs');
|
|
7
|
+
var giger = require('@shipengine/giger');
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*
|
|
12
|
+
* # Story Notes Component
|
|
13
|
+
*
|
|
14
|
+
* - For relevant notes about Storybook stories
|
|
15
|
+
*
|
|
16
|
+
* Stopgap until we setup https://storybook.js.org/addons/@storybook/addon-docs
|
|
17
|
+
*/
|
|
18
|
+
const StoryNotes = ({
|
|
19
|
+
children,
|
|
20
|
+
notes
|
|
21
|
+
}) => jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
22
|
+
children: [jsxRuntime.jsxs("div", Object.assign({
|
|
23
|
+
css: () => ({
|
|
24
|
+
backgroundColor: "lightsteelblue",
|
|
25
|
+
marginBottom: "16px",
|
|
26
|
+
padding: "16px",
|
|
27
|
+
paddingLeft: "32px"
|
|
28
|
+
})
|
|
29
|
+
}, {
|
|
30
|
+
children: [jsxRuntime.jsx(giger.Typography, Object.assign({
|
|
31
|
+
variant: "heading5"
|
|
32
|
+
}, {
|
|
33
|
+
children: "Story notes:"
|
|
34
|
+
})), jsxRuntime.jsx("ul", Object.assign({
|
|
35
|
+
css: theme => ({
|
|
36
|
+
"> li": {
|
|
37
|
+
marginTop: styles.scopeTheme(theme).spacing(1)
|
|
38
|
+
}
|
|
39
|
+
})
|
|
40
|
+
}, {
|
|
41
|
+
children: notes.map(n => jsxRuntime.jsx("li", {
|
|
42
|
+
children: n
|
|
43
|
+
}, n))
|
|
44
|
+
}))]
|
|
45
|
+
})), jsxRuntime.jsx("hr", {
|
|
46
|
+
css: () => ({
|
|
47
|
+
backgroundColor: "transparent",
|
|
48
|
+
borderTop: "1px dotted lightgrey",
|
|
49
|
+
marginBottom: "16px"
|
|
50
|
+
})
|
|
51
|
+
}), children]
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
exports.StoryNotes = StoryNotes;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
6
|
+
var giger = require('@shipengine/giger');
|
|
7
|
+
|
|
8
|
+
const SuspendText = ({
|
|
9
|
+
children,
|
|
10
|
+
loading
|
|
11
|
+
}) => {
|
|
12
|
+
if (loading) {
|
|
13
|
+
return jsxRuntime.jsx(giger.Skeleton, {
|
|
14
|
+
animation: giger.SkeletonAnimation.WAVE,
|
|
15
|
+
variant: giger.SkeletonVariant.TEXT
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return jsxRuntime.jsx("span", {
|
|
19
|
+
children: children
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
exports.SuspendText = SuspendText;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
6
|
+
var reactI18next = require('react-i18next');
|
|
7
|
+
var loader = require('../loader/loader.cjs');
|
|
8
|
+
|
|
9
|
+
const SuspendPurchase = ({
|
|
10
|
+
children,
|
|
11
|
+
errors,
|
|
12
|
+
isLoading,
|
|
13
|
+
data
|
|
14
|
+
}) => {
|
|
15
|
+
const {
|
|
16
|
+
t
|
|
17
|
+
} = reactI18next.useTranslation(["common", "purchase-label"]);
|
|
18
|
+
if (isLoading) return jsxRuntime.jsx(loader.Loader, {
|
|
19
|
+
message: t("loading.shipment")
|
|
20
|
+
});
|
|
21
|
+
if (errors) {
|
|
22
|
+
errors.forEach(error => {
|
|
23
|
+
switch (error.message) {
|
|
24
|
+
case "no_carriers":
|
|
25
|
+
throw new Error(t("common:errorMessages.incompleteLabelPurchaseRequirements", {
|
|
26
|
+
requirements: t("purchase-label:requirements.noCarrier")
|
|
27
|
+
}));
|
|
28
|
+
case "no_warehouses":
|
|
29
|
+
throw new Error(t("common:errorMessages.incompleteLabelPurchaseRequirements", {
|
|
30
|
+
requirements: t("purchase-label:requirements.noWarehouse")
|
|
31
|
+
}));
|
|
32
|
+
case "no_carriers_and_warehouses":
|
|
33
|
+
throw new Error(t("common:errorMessages.incompleteLabelPurchaseRequirements", {
|
|
34
|
+
requirements: t("purchase-label:requirements.noWarehouseOrCarrier")
|
|
35
|
+
}));
|
|
36
|
+
case "label_purchased":
|
|
37
|
+
throw new Error(t("common:errorMessages.labelHasBeenPurchased"));
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
throw new Error(errors.map(e => e.message).join(", "));
|
|
41
|
+
}
|
|
42
|
+
if (!data) throw new Error("errorMessages.unableToLoad.shipment");
|
|
43
|
+
return jsxRuntime.jsx("div", Object.assign({
|
|
44
|
+
css: {
|
|
45
|
+
height: "100%",
|
|
46
|
+
width: "100%"
|
|
47
|
+
}
|
|
48
|
+
}, {
|
|
49
|
+
children: children
|
|
50
|
+
}));
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
exports.SuspendPurchase = SuspendPurchase;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
6
|
+
var reactI18next = require('react-i18next');
|
|
7
|
+
var giger = require('@shipengine/giger');
|
|
8
|
+
var walletCard_styles = require('./wallet-card.styles.cjs');
|
|
9
|
+
var settingsCard = require('../settings-card/settings-card.cjs');
|
|
10
|
+
var ccProviderLogo = require('../cc-provider-logo/cc-provider-logo.cjs');
|
|
11
|
+
|
|
12
|
+
const WalletCard = ({
|
|
13
|
+
fundingSource,
|
|
14
|
+
onEdit
|
|
15
|
+
}) => {
|
|
16
|
+
var _a, _b;
|
|
17
|
+
const {
|
|
18
|
+
t
|
|
19
|
+
} = reactI18next.useTranslation("common");
|
|
20
|
+
const provider = (_a = fundingSource === null || fundingSource === void 0 ? void 0 : fundingSource.paymentMethod.creditCardInfo) === null || _a === void 0 ? void 0 : _a.provider;
|
|
21
|
+
const last4 = (_b = fundingSource === null || fundingSource === void 0 ? void 0 : fundingSource.paymentMethod.creditCardInfo) === null || _b === void 0 ? void 0 : _b.cardNumberLastFour;
|
|
22
|
+
return jsxRuntime.jsx("div", Object.assign({
|
|
23
|
+
css: walletCard_styles.styles.container
|
|
24
|
+
}, {
|
|
25
|
+
children: jsxRuntime.jsx(settingsCard.SettingsCard, {
|
|
26
|
+
cardAction: {
|
|
27
|
+
action: onEdit,
|
|
28
|
+
name: t("actions.edit")
|
|
29
|
+
},
|
|
30
|
+
title: jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
31
|
+
children: [jsxRuntime.jsx(ccProviderLogo.CcProviderLogo, {
|
|
32
|
+
provider: provider
|
|
33
|
+
}), jsxRuntime.jsx(giger.Typography, Object.assign({
|
|
34
|
+
variant: "body1"
|
|
35
|
+
}, {
|
|
36
|
+
children: `**** **** **** ${last4 || "****"}`
|
|
37
|
+
}))]
|
|
38
|
+
}),
|
|
39
|
+
verticallyAligned: true
|
|
40
|
+
})
|
|
41
|
+
}));
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
exports.WalletCard = WalletCard;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var styles$1 = require('../../utilities/styles.cjs');
|
|
6
|
+
|
|
7
|
+
const styles = styles$1.createStyles({
|
|
8
|
+
container: {
|
|
9
|
+
display: "flex",
|
|
10
|
+
height: "72px",
|
|
11
|
+
justifyContent: "center",
|
|
12
|
+
width: "100%"
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
exports.styles = styles;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
6
|
+
var giger = require('@shipengine/giger');
|
|
7
|
+
var zeroState_styles = require('./zero-state.styles.cjs');
|
|
8
|
+
var linkAction = require('../link-action/link-action.cjs');
|
|
9
|
+
|
|
10
|
+
const ZeroState = ({
|
|
11
|
+
description,
|
|
12
|
+
showLinkAction
|
|
13
|
+
}) => {
|
|
14
|
+
return jsxRuntime.jsxs("div", Object.assign({
|
|
15
|
+
css: zeroState_styles.styles.container
|
|
16
|
+
}, {
|
|
17
|
+
children: [jsxRuntime.jsx(giger.Typography, {
|
|
18
|
+
children: description
|
|
19
|
+
}), showLinkAction && jsxRuntime.jsx(linkAction.LinkAction, Object.assign({}, showLinkAction))]
|
|
20
|
+
}));
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
exports.ZeroState = ZeroState;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var styles$1 = require('../../utilities/styles.cjs');
|
|
6
|
+
|
|
7
|
+
const styles = styles$1.createStyles({
|
|
8
|
+
container: theme => ({
|
|
9
|
+
alignItems: "center",
|
|
10
|
+
borderColor: styles$1.scopeTheme(theme).palette.gray.light,
|
|
11
|
+
borderRadius: styles$1.scopeTheme(theme).borderRadius.M,
|
|
12
|
+
borderStyle: "dashed",
|
|
13
|
+
borderWidth: "1px",
|
|
14
|
+
display: "flex",
|
|
15
|
+
flexDirection: "column",
|
|
16
|
+
gap: styles$1.scopeTheme(theme).spacing(2),
|
|
17
|
+
padding: `${styles$1.scopeTheme(theme).spacing(3)}px ${styles$1.scopeTheme(theme).spacing(2)}px`,
|
|
18
|
+
textAlign: "center"
|
|
19
|
+
})
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
exports.styles = styles;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var address = require('./shipengine/address.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.Country = address.Country;
|
|
10
|
+
exports.UsState = address.UsState;
|
|
11
|
+
exports.UsaCity = address.UsaCity;
|
|
12
|
+
exports.addressNameRegex = address.addressNameRegex;
|
|
13
|
+
exports.countries = address.countries;
|
|
14
|
+
exports.countryCodes = address.countryCodes;
|
|
15
|
+
exports.euCountryCodes = address.euCountryCodes;
|
|
16
|
+
exports.postalCodeRegex = address.postalCodeRegex;
|
|
17
|
+
exports.usCities = address.usCities;
|
|
18
|
+
exports.usStateCodes = address.usStateCodes;
|
|
19
|
+
exports.usStates = address.usStates;
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
// Declaring these flags to allow shorthand object syntax, i.e. { flagName } instead of { flagName: true }
|
|
6
|
+
const hasEuCustomsRules = true,
|
|
7
|
+
hasProvinces = true,
|
|
8
|
+
isMilitary = true,
|
|
9
|
+
// United States territories that ship domestic but require customs
|
|
10
|
+
// https://blog.stamps.com/2015/09/23/how-to-ship-packages-to-u-s-territories/
|
|
11
|
+
isUnitedStatesTerritory = true,
|
|
12
|
+
isUnsupportedByUps = true,
|
|
13
|
+
supportsByoa = true;
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*
|
|
17
|
+
* # Address Utils - Country Type
|
|
18
|
+
*/
|
|
19
|
+
class Country {
|
|
20
|
+
constructor(name, code, rules = {}) {
|
|
21
|
+
var _a, _b, _c, _d, _e;
|
|
22
|
+
this.name = name;
|
|
23
|
+
this.code = code;
|
|
24
|
+
this.hasEuCustomsRules = (_a = rules.hasEuCustomsRules) !== null && _a !== void 0 ? _a : false;
|
|
25
|
+
this.hasProvinces = (_b = rules.hasProvinces) !== null && _b !== void 0 ? _b : false;
|
|
26
|
+
this.isUnitedStatesTerritory = (_c = rules.isUnitedStatesTerritory) !== null && _c !== void 0 ? _c : false;
|
|
27
|
+
this.supportsByoa = (_d = rules.supportsByoa) !== null && _d !== void 0 ? _d : false;
|
|
28
|
+
this.isUnsupportedByUps = (_e = rules.isUnsupportedByUps) !== null && _e !== void 0 ? _e : false;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
*
|
|
34
|
+
* # Address Utils - Array of Countries and their codes
|
|
35
|
+
*/
|
|
36
|
+
const countries = [new Country("Afghanistan", "AF"), new Country("Aland Islands", "AX"), new Country("Albania", "AL"), new Country("Algeria", "DZ"), new Country("American Samoa", "AS", {
|
|
37
|
+
isUnitedStatesTerritory
|
|
38
|
+
}), new Country("Andorra", "AD"), new Country("Angola", "AO"), new Country("Anguilla", "AI"), new Country("Antarctica", "AQ"), new Country("Antigua Barbuda", "AG"), new Country("Argentina", "AR"), new Country("Armenia", "AM"), new Country("Aruba", "AW"), new Country("Australia", "AU", {
|
|
39
|
+
hasProvinces,
|
|
40
|
+
supportsByoa
|
|
41
|
+
}), new Country("Austria", "AT", {
|
|
42
|
+
hasEuCustomsRules,
|
|
43
|
+
supportsByoa
|
|
44
|
+
}), new Country("Azerbaijan", "AZ"), new Country("Bahamas", "BS"), new Country("Bahrain", "BH"), new Country("Bangladesh", "BD"), new Country("Barbados", "BB"), new Country("Belarus", "BY"), new Country("Belgium", "BE", {
|
|
45
|
+
hasEuCustomsRules,
|
|
46
|
+
supportsByoa
|
|
47
|
+
}), new Country("Belize", "BZ"), new Country("Benin", "BJ"), new Country("Bermuda", "BM"), new Country("Bhutan", "BT"), new Country("Bolivia", "BO"), new Country("Bonaire, Sint Eustatius And Saba", "BQ"), new Country("Bosnia and Herzegovina", "BA"), new Country("Botswana", "BW"), new Country("Brazil", "BR", {
|
|
48
|
+
hasProvinces
|
|
49
|
+
}), new Country("British Indian Ocean Territory", "IO"), new Country("British Virgin Islands", "VG"), new Country("Brunei Darussalam", "BN"), new Country("Bulgaria", "BG", {
|
|
50
|
+
hasEuCustomsRules,
|
|
51
|
+
supportsByoa
|
|
52
|
+
}), new Country("Burkina Faso", "BF"), new Country("Burundi", "BI"), new Country("Canada", "CA", {
|
|
53
|
+
hasProvinces
|
|
54
|
+
}), new Country("Cambodia", "KH", {
|
|
55
|
+
isUnsupportedByUps
|
|
56
|
+
}), new Country("Cameroon", "CM"), new Country("Cape Verde Islands", "CV"), new Country("Cayman Islands", "KY"), new Country("Central African Republic", "CF"), new Country("Chad", "TD"), new Country("Chile", "CL"), new Country("China", "CN"), new Country("Christmas Island", "CX"), new Country("Cocos(Keeling) Islands", "CC"), new Country("Colombia", "CO"), new Country("Comoros", "KM"), new Country("Congo", "CG"), new Country("Congo, The Democratic Republic of", "CD"), new Country("Cook Islands", "CK"), new Country("Costa Rica", "CR"), new Country("Croatia", "HR", {
|
|
57
|
+
hasEuCustomsRules,
|
|
58
|
+
supportsByoa
|
|
59
|
+
}), new Country("Cuba", "CU"), new Country("Curacao", "CW"), new Country("Cyprus", "CY", {
|
|
60
|
+
hasEuCustomsRules,
|
|
61
|
+
supportsByoa
|
|
62
|
+
}), new Country("Czech Republic", "CZ", {
|
|
63
|
+
hasEuCustomsRules,
|
|
64
|
+
supportsByoa
|
|
65
|
+
}), new Country("Denmark", "DK", {
|
|
66
|
+
hasEuCustomsRules,
|
|
67
|
+
supportsByoa
|
|
68
|
+
}), new Country("Djibouti", "DJ"), new Country("Dominica", "DM"), new Country("Dominican Republic", "DO"), new Country("Ecuador", "EC"), new Country("Egypt", "EG"), new Country("El Salvador", "SV"), new Country("Equatorial Guinea", "GQ"), new Country("Eritrea", "ER"), new Country("Estonia", "EE", {
|
|
69
|
+
hasEuCustomsRules,
|
|
70
|
+
supportsByoa
|
|
71
|
+
}), new Country("Ethiopia", "ET"), new Country("Falkland Islands", "FK"), new Country("Faroe Islands", "FO"), new Country("Federated States of Micronesia", "FM", {
|
|
72
|
+
isUnitedStatesTerritory
|
|
73
|
+
}), new Country("Fiji", "FJ"), new Country("Finland", "FI", {
|
|
74
|
+
hasEuCustomsRules,
|
|
75
|
+
supportsByoa
|
|
76
|
+
}), new Country("France", "FR", {
|
|
77
|
+
hasEuCustomsRules,
|
|
78
|
+
supportsByoa
|
|
79
|
+
}), new Country("French Guiana", "GF"), new Country("French Polynesia", "PF"), new Country("French Southern Territories", "TF"), new Country("Gabon", "GA"), new Country("Gambia", "GM"), new Country("Georgia", "GE"), new Country("Germany", "DE", {
|
|
80
|
+
hasEuCustomsRules,
|
|
81
|
+
supportsByoa
|
|
82
|
+
}), new Country("Ghana", "GH"), new Country("Gibraltar", "GI"), new Country("Greece", "GR", {
|
|
83
|
+
hasEuCustomsRules,
|
|
84
|
+
supportsByoa
|
|
85
|
+
}), new Country("Greenland", "GL"), new Country("Grenada", "GD"), new Country("Guadeloupe", "GP"), new Country("Guam", "GU", {
|
|
86
|
+
isUnitedStatesTerritory
|
|
87
|
+
}), new Country("Guatemala", "GT"), new Country("Guernsey", "GG"), new Country("Guinea", "GN"), new Country("Guinea - Bissau", "GW"), new Country("Guyana", "GY"), new Country("Haiti", "HT"), new Country("Holy See", "VA"), new Country("Honduras", "HN"), new Country("Hong Kong", "HK"), new Country("Hungary", "HU", {
|
|
88
|
+
hasEuCustomsRules,
|
|
89
|
+
supportsByoa
|
|
90
|
+
}), new Country("Iceland", "IS"), new Country("India", "IN"), new Country("Indonesia", "ID"), new Country("Iran", "IR"), new Country("Iraq", "IQ"), new Country("Ireland", "IE", {
|
|
91
|
+
hasEuCustomsRules,
|
|
92
|
+
supportsByoa
|
|
93
|
+
}), new Country("Isle of Man", "IM"), new Country("Israel", "IL"), new Country("Italy", "IT", {
|
|
94
|
+
hasEuCustomsRules,
|
|
95
|
+
supportsByoa
|
|
96
|
+
}), new Country("Ivory Coast", "CI"), new Country("Jamaica", "JM"), new Country("Japan", "JP", {
|
|
97
|
+
hasProvinces
|
|
98
|
+
}), new Country("Jersey", "JE"), new Country("Jordan", "JO"), new Country("Kazakhstan", "KZ"), new Country("Kenya", "KE"), new Country("Kiribati", "KI"), new Country("Korea, Republic of", "KR"), new Country("Kuwait", "KW"), new Country("Kyrgyzstan", "KG"), new Country("Laos", "LA"), new Country("Latvia", "LV", {
|
|
99
|
+
hasEuCustomsRules,
|
|
100
|
+
supportsByoa
|
|
101
|
+
}), new Country("Lebanon", "LB"), new Country("Lesotho", "LS"), new Country("Liberia", "LR"), new Country("Libya", "LY"), new Country("Liechtenstein", "LI"), new Country("Lithuania", "LT", {
|
|
102
|
+
hasEuCustomsRules,
|
|
103
|
+
supportsByoa
|
|
104
|
+
}), new Country("Luxembourg", "LU", {
|
|
105
|
+
hasEuCustomsRules,
|
|
106
|
+
supportsByoa
|
|
107
|
+
}), new Country("Macao", "MO"), new Country("Macedonia", "MK"), new Country("Madagascar", "MG"), new Country("Malawi", "MW"), new Country("Malaysia", "MY"), new Country("Maldives", "MV"), new Country("Mali", "ML"), new Country("Malta", "MT", {
|
|
108
|
+
hasEuCustomsRules,
|
|
109
|
+
supportsByoa
|
|
110
|
+
}), new Country("Marshall Islands", "MH", {
|
|
111
|
+
isUnitedStatesTerritory
|
|
112
|
+
}), new Country("Martinique", "MQ"), new Country("Mauritania", "MR"), new Country("Mauritius0", "MU"), new Country("Mayotte", "YT"), new Country("Mexico", "MX", {
|
|
113
|
+
supportsByoa
|
|
114
|
+
}), new Country("Moldova", "MD"), new Country("Monaco", "MC"), new Country("Mongolia", "MN"), new Country("Montenegro", "ME"), new Country("Montserrat", "MS"), new Country("Morocco", "MA"), new Country("Mozambique", "MZ"), new Country("Myanmar", "MM"), new Country("Namibia", "NA"), new Country("Nauru", "NR"), new Country("Nepal", "NP"), new Country("Netherlands", "NL", {
|
|
115
|
+
hasEuCustomsRules,
|
|
116
|
+
supportsByoa
|
|
117
|
+
}), new Country("Netherlands Antilles", "AN"), new Country("New Caledonia", "NC", {
|
|
118
|
+
isUnsupportedByUps
|
|
119
|
+
}), new Country("New Zealand", "NZ", {
|
|
120
|
+
supportsByoa
|
|
121
|
+
}), new Country("Nicaragua", "NI"), new Country("Niger", "NE"), new Country("Nigeria", "NG"), new Country("Niue", "NU"), new Country("Norfolk Island", "NF"), new Country("North Korea", "KP"), new Country("Northern Mariana Islands", "MP", {
|
|
122
|
+
isUnitedStatesTerritory
|
|
123
|
+
}), new Country("Norway", "NO", {
|
|
124
|
+
hasEuCustomsRules
|
|
125
|
+
}), new Country("Oman", "OM"), new Country("Pakistan", "PK"), new Country("Palau", "PW", {
|
|
126
|
+
isUnitedStatesTerritory
|
|
127
|
+
}), new Country("Palestinian Territory", "PS"), new Country("Panama", "PA"), new Country("Papua New Guinea", "PG"), new Country("Paraguay", "PY"), new Country("Peru", "PE"), new Country("Philippines", "PH"), new Country("Pitcairn Island", "PN"), new Country("Poland", "PL", {
|
|
128
|
+
hasEuCustomsRules
|
|
129
|
+
}), new Country("Portugal", "PT", {
|
|
130
|
+
hasEuCustomsRules,
|
|
131
|
+
supportsByoa
|
|
132
|
+
}),
|
|
133
|
+
// TODO - Puerto Rico is a US territory but there are some funky rules with USPS that need to be addressed
|
|
134
|
+
new Country("Puerto Rico", "PR", {
|
|
135
|
+
isUnitedStatesTerritory,
|
|
136
|
+
supportsByoa
|
|
137
|
+
}), new Country("Qatar", "QA"), new Country("Reunion", "RE"), new Country("Romania", "RO", {
|
|
138
|
+
hasEuCustomsRules,
|
|
139
|
+
supportsByoa
|
|
140
|
+
}), new Country("Russia", "RU"), new Country("Rwanda", "RW"), new Country("Saint Barthelemy", "BL"), new Country("Saint Helena", "SH"), new Country("Saint Kitts and Nevis", "KN"), new Country("Saint Lucia", "LC"), new Country("Saint Martin", "MF"), new Country("Saint Pierre and Miquelon", "PM"), new Country("Saint Vincent & the Grenadines", "VC"), new Country("Samoa", "WS"), new Country("San Marino", "SM"), new Country("Sao Tome and Principe", "ST"), new Country("Saudi Arabia", "SA"), new Country("Senegal", "SN"), new Country("Serbia", "RS"), new Country("Seychelles", "SC"), new Country("Sierra Leone", "SL"), new Country("Singapore", "SG"), new Country("Sint Maarten(Dutch)", "SX"), new Country("Slovakia", "SK", {
|
|
141
|
+
hasEuCustomsRules,
|
|
142
|
+
supportsByoa
|
|
143
|
+
}), new Country("Slovenia", "SI", {
|
|
144
|
+
hasEuCustomsRules,
|
|
145
|
+
supportsByoa
|
|
146
|
+
}), new Country("Solomon Islands", "SB"), new Country("Somalia", "SO"), new Country("South Africa", "ZA"), new Country("South Georgia & the South Sandwich Islands", "GS"), new Country("South Sudan", "SS"), new Country("Spain", "ES", {
|
|
147
|
+
hasEuCustomsRules,
|
|
148
|
+
supportsByoa
|
|
149
|
+
}), new Country("Sri Lanka", "LK"), new Country("Sudan", "SD"), new Country("Suriname", "SR"), new Country("Svalbard & Jan Mayen Islands", "SJ"), new Country("Swaziland", "SZ"), new Country("Sweden", "SE", {
|
|
150
|
+
hasEuCustomsRules,
|
|
151
|
+
supportsByoa
|
|
152
|
+
}), new Country("Switzerland", "CH", {
|
|
153
|
+
hasEuCustomsRules
|
|
154
|
+
}), new Country("Syria", "SY"), new Country("Taiwan", "TW"), new Country("Tajikistan", "TJ"), new Country("Tanzania", "TZ"), new Country("Thailand", "TH"), new Country("Timor - Leste(formerly East Timor)", "TL"), new Country("Togo", "TG"), new Country("Tokelau", "TK"), new Country("Tonga", "TO"), new Country("Trinidad and Tobago", "TT"), new Country("Tunisia", "TN"), new Country("Turkey", "TR"), new Country("Turkmenistan", "TM"), new Country("Turks and Caicos Islands", "TC"), new Country("Tuvalu", "TV"), new Country("Uganda", "UG"), new Country("Ukraine", "UA"), new Country("United Arab Emirates", "AE"), new Country("United Kingdom", "GB", {
|
|
155
|
+
supportsByoa
|
|
156
|
+
}), new Country("United States Virgin Islands", "VI", {
|
|
157
|
+
isUnitedStatesTerritory
|
|
158
|
+
}), new Country("U.S. Minor Outlying Islands", "UM", {
|
|
159
|
+
isUnitedStatesTerritory
|
|
160
|
+
}), new Country("United States of America", "US", {
|
|
161
|
+
hasProvinces,
|
|
162
|
+
supportsByoa
|
|
163
|
+
}), new Country("Uruguay", "UY"), new Country("Uzbekistan", "UZ"), new Country("Vanuatu", "VU"), new Country("Venezuela", "VE"), new Country("Vietnam", "VN"), new Country("Wallis and Futuna Islands", "WF"), new Country("Western Sahara", "EH"), new Country("Yemen", "YE"), new Country("Zambia", "ZM"), new Country("Zimbabwe", "ZW")];
|
|
164
|
+
/**
|
|
165
|
+
* @internal
|
|
166
|
+
*
|
|
167
|
+
* # Address Utils - Map of Country Codes
|
|
168
|
+
*/
|
|
169
|
+
const countryCodes = countries.map(c => c.code);
|
|
170
|
+
/**
|
|
171
|
+
* @internal
|
|
172
|
+
*
|
|
173
|
+
* # Address Utils - EU Country Codes
|
|
174
|
+
*/
|
|
175
|
+
const euCountryCodes = countries.filter(c => c.hasEuCustomsRules).map(c => c.code);
|
|
176
|
+
// #endregion
|
|
177
|
+
// #region [ rgba(0,0,0,0) ] Address Regex
|
|
178
|
+
/**
|
|
179
|
+
* @internal
|
|
180
|
+
*
|
|
181
|
+
* # Address Utils - Postal Code Regex
|
|
182
|
+
*/
|
|
183
|
+
const postalCodeRegex = /(^\d{5}$)|(^\d{5}-\d{4}$)/;
|
|
184
|
+
/**
|
|
185
|
+
* @internal
|
|
186
|
+
*
|
|
187
|
+
* # Address Utils - Address Name Regex
|
|
188
|
+
*/
|
|
189
|
+
const addressNameRegex = /^[a-zA-Z.']{2,}(?: [a-zA-Z.]?\.?)? [a-zA-Z.']{2,}/;
|
|
190
|
+
/**
|
|
191
|
+
* @internal
|
|
192
|
+
*
|
|
193
|
+
* # Address Utils - US State Type
|
|
194
|
+
*/
|
|
195
|
+
class UsState {
|
|
196
|
+
constructor(name, code, rules = {}) {
|
|
197
|
+
var _a, _b;
|
|
198
|
+
this.name = name;
|
|
199
|
+
this.code = code;
|
|
200
|
+
this.isMilitary = (_a = rules.isMilitary) !== null && _a !== void 0 ? _a : false;
|
|
201
|
+
this.isUnitedStatesTerritory = (_b = rules.isUnitedStatesTerritory) !== null && _b !== void 0 ? _b : false;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* @internal
|
|
206
|
+
*
|
|
207
|
+
* # Address Utils - Array US States and their codes
|
|
208
|
+
*/
|
|
209
|
+
const usStates = [new UsState("Alabama", "AL"), new UsState("Alaska", "AK"), new UsState("American Samoa", "AS", {
|
|
210
|
+
isUnitedStatesTerritory
|
|
211
|
+
}), new UsState("Arizona", "AZ"), new UsState("Arkansas", "AR"), new UsState("Armed Forces Americas", "AA", {
|
|
212
|
+
isMilitary
|
|
213
|
+
}), new UsState("Armed Forces Europe", "AE", {
|
|
214
|
+
isMilitary
|
|
215
|
+
}), new UsState("Armed Forces Pacific", "AP", {
|
|
216
|
+
isMilitary
|
|
217
|
+
}), new UsState("California", "CA"), new UsState("Colorado", "CO"), new UsState("Connecticut", "CT"), new UsState("Delaware", "DE"), new UsState("District of Columbia", "DC"), new UsState("Florida", "FL"), new UsState("Georgia", "GA"), new UsState("Guam", "GU", {
|
|
218
|
+
isUnitedStatesTerritory
|
|
219
|
+
}), new UsState("Hawaii", "HI"), new UsState("Idaho", "ID"), new UsState("Illinois", "IL"), new UsState("Indiana", "IN"), new UsState("Iowa", "IA"), new UsState("Kansas", "KS"), new UsState("Kentucky", "KY"), new UsState("Louisiana", "LA"), new UsState("Maine", "ME"), new UsState("Marshall Islands", "MH", {
|
|
220
|
+
isUnitedStatesTerritory
|
|
221
|
+
}), new UsState("Maryland", "MD"), new UsState("Massachusetts", "MA"), new UsState("Michigan", "MI"), new UsState("Micronesia", "FM", {
|
|
222
|
+
isUnitedStatesTerritory
|
|
223
|
+
}), new UsState("Minnesota", "MN"), new UsState("Mississippi", "MS"), new UsState("Missouri", "MO"), new UsState("Montana", "MT"), new UsState("Nebraska", "NE"), new UsState("Nevada", "NV"), new UsState("New Hampshire", "NH"), new UsState("New Jersey", "NJ"), new UsState("New Mexico", "NM"), new UsState("New York", "NY"), new UsState("North Carolina", "NC"), new UsState("North Dakota", "ND"), new UsState("Northern Mariana Islands", "MP", {
|
|
224
|
+
isUnitedStatesTerritory
|
|
225
|
+
}), new UsState("Ohio", "OH"), new UsState("Oklahoma", "OK"), new UsState("Oregon", "OR"), new UsState("Palau", "PW", {
|
|
226
|
+
isUnitedStatesTerritory
|
|
227
|
+
}), new UsState("Pennsylvania", "PA"), new UsState("Puerto Rico", "PR", {
|
|
228
|
+
isUnitedStatesTerritory
|
|
229
|
+
}), new UsState("Rhode Island", "RI"), new UsState("South Carolina", "SC"), new UsState("South Dakota", "SD"), new UsState("Tennessee", "TN"), new UsState("Texas", "TX"), new UsState("Utah", "UT"), new UsState("Vermont", "VT"), new UsState("Virgin Islands", "VI", {
|
|
230
|
+
isUnitedStatesTerritory
|
|
231
|
+
}), new UsState("Virginia", "VA"), new UsState("Washington", "WA"), new UsState("West Virginia", "WV"), new UsState("Wisconsin", "WI"), new UsState("Wyoming", "WY"), new UsState("U.S. Minor Outlying Islands", "UM", {
|
|
232
|
+
isUnitedStatesTerritory
|
|
233
|
+
})];
|
|
234
|
+
/**
|
|
235
|
+
* @internal
|
|
236
|
+
*
|
|
237
|
+
* # Address Utils - Map of US State Codes
|
|
238
|
+
*/
|
|
239
|
+
const usStateCodes = usStates.map(item => item.code);
|
|
240
|
+
/**
|
|
241
|
+
* @internal
|
|
242
|
+
*
|
|
243
|
+
* # Address Utils - USA City Type
|
|
244
|
+
*/
|
|
245
|
+
class UsaCity {
|
|
246
|
+
constructor(name, code, rules = {}) {
|
|
247
|
+
var _a;
|
|
248
|
+
this.name = name;
|
|
249
|
+
this.code = code;
|
|
250
|
+
this.isMilitary = (_a = rules.isMilitary) !== null && _a !== void 0 ? _a : false;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* @internal
|
|
255
|
+
*
|
|
256
|
+
* # Address Utils - US Cities
|
|
257
|
+
*/
|
|
258
|
+
const usCities = [new UsaCity("Army Post Office", "APO", {
|
|
259
|
+
isMilitary
|
|
260
|
+
}), new UsaCity("Diplomatic Post Office", "DPO", {
|
|
261
|
+
isMilitary
|
|
262
|
+
}), new UsaCity("Fleet Post Office", "FPO", {
|
|
263
|
+
isMilitary
|
|
264
|
+
})];
|
|
265
|
+
// #endregion
|
|
266
|
+
|
|
267
|
+
exports.Country = Country;
|
|
268
|
+
exports.UsState = UsState;
|
|
269
|
+
exports.UsaCity = UsaCity;
|
|
270
|
+
exports.addressNameRegex = addressNameRegex;
|
|
271
|
+
exports.countries = countries;
|
|
272
|
+
exports.countryCodes = countryCodes;
|
|
273
|
+
exports.euCountryCodes = euCountryCodes;
|
|
274
|
+
exports.postalCodeRegex = postalCodeRegex;
|
|
275
|
+
exports.usCities = usCities;
|
|
276
|
+
exports.usStateCodes = usStateCodes;
|
|
277
|
+
exports.usStates = usStates;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var address = require('./address.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.Country = address.Country;
|
|
10
|
+
exports.UsState = address.UsState;
|
|
11
|
+
exports.UsaCity = address.UsaCity;
|
|
12
|
+
exports.addressNameRegex = address.addressNameRegex;
|
|
13
|
+
exports.countries = address.countries;
|
|
14
|
+
exports.countryCodes = address.countryCodes;
|
|
15
|
+
exports.euCountryCodes = address.euCountryCodes;
|
|
16
|
+
exports.postalCodeRegex = address.postalCodeRegex;
|
|
17
|
+
exports.usCities = address.usCities;
|
|
18
|
+
exports.usStateCodes = address.usStateCodes;
|
|
19
|
+
exports.usStates = address.usStates;
|