@shipengine/elements 1.8.0 → 2.0.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/README.md +0 -4
- package/address-8f8119f4.js +1 -0
- package/assertions-dfa95b4d.js +1 -0
- package/carrier-c2a5ed53.js +1 -0
- package/carrier-logo-330e926f.js +1 -0
- package/components.js +1 -0
- package/constants.js +1 -0
- package/elements.js +1 -0
- package/extensions.js +1 -0
- package/formatString-413ec7c7.js +1 -0
- package/hooks.js +1 -0
- package/index.js +1 -25578
- package/money-d4f3d7c3.js +1 -0
- package/package.json +53 -7
- package/phone-87dd7bd8.js +1 -0
- package/schemas.js +1 -0
- package/shipment-150160e0.js +1 -0
- package/src/components/add-funds-form/add-funds-form.d.ts +1 -1
- package/src/components/address-preference-context/address-preference-context.d.ts +5 -2
- package/src/components/auto-funding-form/auto-funding-form.d.ts +1 -1
- package/src/components/carrier-balance/carrier-balance.d.ts +1 -1
- package/src/components/carrier-icon/carrier-icon.d.ts +9 -9
- package/src/components/carrier-logo/carrier-logo.d.ts +2 -1
- package/src/components/collapsible-panel/collapsible-panel.d.ts +1 -1
- package/src/components/display-term/display-term.d.ts +1 -1
- package/src/components/edit-billing-form/edit-billing-form.d.ts +1 -1
- package/src/components/field/date-picker/date-picker.d.ts +1 -1
- package/src/components/field/money-input/money-input.d.ts +1 -1
- package/src/components/field/rate-card/cost-breakdown/cost-breakdown.d.ts +1 -1
- package/src/components/field/rate-card/rate-card.d.ts +3 -2
- package/src/components/field/rate-card/rate-card.styles.d.ts +0 -1
- package/src/components/field/rate-select/rate-select.d.ts +7 -2
- package/src/components/fund-and-purchase/fund-and-purchase.d.ts +5 -2
- package/src/components/here-map/here-map.d.ts +16 -0
- package/src/components/here-map/here-map.styles.d.ts +23 -0
- package/src/components/history/history-card/history-card.d.ts +1 -1
- package/src/components/index.d.ts +1 -0
- package/src/components/items-breakdown/items-breakdown.d.ts +1 -1
- package/src/components/modal/modal.d.ts +2 -1
- package/src/components/pager/pager.d.ts +1 -1
- package/src/components/rate-details/index.d.ts +1 -0
- package/src/components/rate-details/rate-details.d.ts +17 -0
- package/src/components/rate-details/rate-details.styles.d.ts +23 -0
- package/src/components/save-status/save-status.d.ts +1 -1
- package/src/components/search-bar/index.d.ts +1 -0
- package/src/components/search-bar/search-bar.d.ts +8 -0
- package/src/components/service-point-display/operating-hours.d.ts +6 -0
- package/src/components/service-point-display/operating-hours.styles.d.ts +44 -0
- package/src/components/service-point-display/service-point-display.d.ts +6 -6
- package/src/components/service-point-display/service-point-display.styles.d.ts +13 -19
- package/src/components/service-points/service-points.d.ts +3 -2
- package/src/components/tabs/tabs.d.ts +5 -1
- package/src/components/tabs/tabs.styles.d.ts +3 -2
- package/src/components/templates/address-display/address-display.d.ts +1 -1
- package/src/components/templates/address-preference-display/address-preference-display.d.ts +1 -1
- package/src/components/templates/address-preference-select/address-preference-select.d.ts +1 -1
- package/src/components/templates/connect-external-carrier-form/connect-external-carrier-form.d.ts +12 -0
- package/src/components/templates/connect-external-carrier-form/index.d.ts +1 -0
- package/src/components/templates/index.d.ts +2 -2
- package/src/components/templates/label/label.d.ts +1 -1
- package/src/components/templates/label/label.styles.d.ts +21 -1
- package/src/components/templates/product-form/product-form-schema.d.ts +12 -0
- package/src/components/templates/product-form/product-form.d.ts +1 -1
- package/src/components/templates/products-display/products-display.d.ts +1 -1
- package/src/components/templates/pudo-rate-tabs/index.d.ts +0 -1
- package/src/components/templates/pudo-rate-tabs/pudo-list-view/pudo-list-view.d.ts +5 -0
- package/src/components/templates/pudo-rate-tabs/pudo-map-view/pudo-map-view.d.ts +15 -0
- package/src/components/templates/pudo-rate-tabs/pudo-rate-tabs.d.ts +17 -15
- package/src/components/templates/rate-form/rate-form.d.ts +11 -4
- package/src/components/templates/register-funding-source-carrier-form/index.d.ts +2 -0
- package/src/components/templates/register-funding-source-carrier-form/register-funding-source-carrier-form.d.ts +13 -0
- package/src/components/templates/register-funding-source-carrier-form/register-funding-source-carrier-form.styles.d.ts +25 -0
- package/src/components/templates/{add-carrier-form/add-carrier-form-schema.d.ts → register-funding-source-carrier-form/register-funding-source-carrier-schema.d.ts} +42 -88
- package/src/components/templates/shipment/shipment.d.ts +3 -10
- package/src/components/templates/shipment-form/shipment-form.d.ts +2 -9
- package/src/components/templates/shipment-form/shipment-schema.d.ts +1 -1
- package/src/components/templates/suspend-sales-order/suspend-sales-order.d.ts +1 -1
- package/src/components/templates/suspend-shipment/suspend-shipment.d.ts +1 -1
- package/src/components/templates/wallet-form/edit-wallet-address-form.d.ts +1 -1
- package/src/components/templates/wallet-form/wallet-form.d.ts +2 -4
- package/src/components/templates/wallet-form/wallet-schema.d.ts +1 -1
- package/src/components/wallet-card/wallet-card.d.ts +1 -1
- package/src/components/warehouse-form/warehouse-form.d.ts +1 -1
- package/src/create-element/create-element.d.ts +10 -0
- package/src/create-element/element/element.d.ts +16 -0
- package/src/create-element/element/hooks/index.d.ts +1 -0
- package/src/create-element/element/hooks/use-i18n.d.ts +12 -0
- package/src/create-element/element/index.d.ts +3 -0
- package/src/create-element/element/utils/get-emotion-cache.d.ts +2 -0
- package/src/create-element/element/utils/index.d.ts +1 -0
- package/src/create-element/error-boundary/error-boundary.d.ts +21 -0
- package/src/create-element/error-boundary/index.d.ts +1 -0
- package/src/create-element/index.d.ts +1 -0
- package/src/elements/index.d.ts +5 -4
- package/src/elements/label-layout/label-layout-element.d.ts +50 -4
- package/src/elements/labels-grid/labels-grid.d.ts +51 -5
- package/src/elements/manage-carriers/index.d.ts +1 -0
- package/src/elements/{shipengine-carriers/shipengine-carriers.d.ts → manage-carriers/manage-carriers.d.ts} +101 -49
- package/src/elements/manage-external-carriers/index.d.ts +1 -0
- package/src/elements/{external-carriers/external-carriers.d.ts → manage-external-carriers/manage-external-carriers.d.ts} +58 -41
- package/src/elements/manage-funding/manage-funding-element.d.ts +50 -4
- package/src/elements/manage-warehouses/manage-warehouses.d.ts +68 -5
- package/src/elements/payment-method-settings/payment-method-settings-element.d.ts +50 -4
- package/src/elements/purchase-label/configure-shipment.d.ts +4 -26
- package/src/elements/purchase-label/hooks/use-address.d.ts +1 -1
- package/src/elements/purchase-label/hooks/use-configure-shipment.d.ts +1 -1
- package/src/elements/purchase-label/hooks/use-customs.d.ts +1 -1
- package/src/elements/purchase-label/hooks/use-import-sales-order.d.ts +2 -2
- package/src/elements/purchase-label/hooks/use-load-shipment.d.ts +3 -3
- package/src/elements/purchase-label/hooks/use-pending-shipment.d.ts +1 -1
- package/src/elements/purchase-label/hooks/use-presets.d.ts +1 -1
- package/src/elements/purchase-label/hooks/use-rates-form.d.ts +6 -1
- package/src/elements/purchase-label/hooks/use-rates-with-cache.d.ts +1 -1
- package/src/elements/purchase-label/hooks/use-request-preferred-rates.d.ts +1 -1
- package/src/elements/purchase-label/hooks/use-request-rates.d.ts +1 -1
- package/src/elements/purchase-label/hooks/use-shipment-form.d.ts +1 -1
- package/src/elements/purchase-label/purchase-label-by-sales-order.d.ts +1 -1
- package/src/elements/purchase-label/purchase-label-by-shipment.d.ts +1 -1
- package/src/elements/purchase-label/purchase-label.d.ts +67 -44
- package/src/elements/shipment-summary/index.d.ts +1 -0
- package/src/elements/{view-shipment/view-shipment.d.ts → shipment-summary/shipment-summary.d.ts} +87 -51
- package/src/elements/shipments-grid/shipments-grid.d.ts +51 -5
- package/src/elements/theme-creator/theme-creator.d.ts +50 -4
- package/src/elements/theme-creator/themeData/themeData.d.ts +0 -1
- package/src/elements/transaction-history/index.d.ts +1 -0
- package/src/elements/{wallet-history/wallet-history-element.d.ts → transaction-history/transaction-history-element.d.ts} +50 -4
- package/src/elements/unit-settings/unit-settings-element.d.ts +50 -4
- package/src/elements/vat-settings/vat-settings-element.d.ts +50 -4
- package/src/elements/void-label/components/actions/actions.d.ts +4 -4
- package/src/elements/void-label/components/message/message.d.ts +1 -1
- package/src/elements/void-label/void-label.d.ts +80 -45
- package/src/elements-provider/elements-provider.d.ts +46 -0
- package/src/elements-provider/elements-test-provider.d.ts +3 -0
- package/src/elements-provider/hooks/index.d.ts +1 -0
- package/src/elements-provider/hooks/use-load-icons.d.ts +7 -0
- package/src/elements-provider/index.d.ts +1 -0
- package/src/factories/shipengine/address.d.ts +1 -1
- package/src/factories/shipengine/carrier.d.ts +1 -1
- package/src/factories/shipengine/index.d.ts +1 -1
- package/src/factories/shipengine/label.d.ts +3 -1
- package/src/factories/shipengine/money.d.ts +1 -1
- package/src/factories/shipengine/order-source.d.ts +1 -1
- package/src/factories/shipengine/package.d.ts +1 -1
- package/src/factories/shipengine/resource.d.ts +1 -1
- package/src/factories/shipengine/sales-order.d.ts +1 -1
- package/src/factories/shipengine/service-point.d.ts +1 -1
- package/src/factories/shipengine/service.d.ts +1 -1
- package/src/factories/shipengine/shipment.d.ts +1 -1
- package/src/factories/shipengine/{wallet-history.d.ts → transaction-history.d.ts} +1 -1
- package/src/factories/shipengine/warehouse.d.ts +1 -1
- package/src/factories/shipengine/weight.d.ts +1 -1
- package/src/features/index.d.ts +3 -3
- package/src/features/label-layout/label-layout.d.ts +1 -1
- package/src/features/label-layout/use-label-layout.d.ts +1 -1
- package/src/features/manage-carriers/hooks/index.d.ts +3 -0
- package/src/features/manage-carriers/hooks/use-carrier-metadata.d.ts +2 -0
- package/src/features/manage-carriers/hooks/use-list-funding-source-carriers.d.ts +11 -0
- package/src/features/manage-carriers/index.d.ts +1 -0
- package/src/features/manage-carriers/manage-carriers-row/index.d.ts +1 -0
- package/src/features/manage-carriers/manage-carriers-row/manage-carriers-row.d.ts +11 -0
- package/src/features/manage-carriers/manage-carriers.d.ts +4 -0
- package/src/features/manage-external-carriers/index.d.ts +1 -0
- package/src/features/manage-external-carriers/manage-external-carriers.d.ts +4 -0
- package/src/features/manage-warehouses/manage-warehouses.d.ts +1 -1
- package/src/features/manage-warehouses/use-manage-warehouses.d.ts +9 -9
- package/src/features/manage-warehouses/warehouse-display/warehouse-display.d.ts +1 -1
- package/src/features/transaction-history/index.d.ts +1 -0
- package/src/features/transaction-history/transaction-history.d.ts +6 -0
- package/src/features/unit-settings/unit-settings.d.ts +1 -1
- package/src/features/unit-settings/use-unit-settings.d.ts +1 -1
- package/src/features/vat-settings/use-vat-settings.d.ts +5 -5
- package/src/hooks/here-map/init.d.ts +6 -0
- package/src/hooks/here-map/use-here-map-ui.d.ts +10 -0
- package/src/hooks/here-map/use-here-map.d.ts +5 -0
- package/src/hooks/options/use-confirmation-options.d.ts +1 -1
- package/src/hooks/options/use-customs-contents-options.d.ts +1 -1
- package/src/hooks/options/use-customs-non-delivery-options.d.ts +1 -1
- package/src/hooks/options/use-insurance-provider-options.d.ts +1 -1
- package/src/hooks/options/use-package-options.d.ts +1 -1
- package/src/hooks/options/use-rate-options.d.ts +1 -1
- package/src/hooks/options/use-service-code-options.d.ts +1 -1
- package/src/hooks/options/use-service-points.d.ts +5 -3
- package/src/hooks/options/use-shipment-metadata.d.ts +1 -1
- package/src/hooks/options/use-shipping-presets-options.d.ts +1 -1
- package/src/hooks/options/use-warehouse-options.d.ts +1 -1
- package/src/hooks/use-address-validation.d.ts +1 -1
- package/src/hooks/use-get-or-create-shipment.d.ts +3 -3
- package/src/hooks/use-scrub-errors.d.ts +1 -1
- package/src/index.d.ts +1 -0
- package/src/locales/en/index.d.ts +50 -4
- package/src/mocks/carriers/handlers.d.ts +1 -1
- package/src/mocks/warehouses/handlers.d.ts +1 -1
- package/src/schemas/shipengine/money.d.ts +1 -1
- package/src/testing/test-utils.d.ts +8 -1
- package/src/themes/fallback.d.ts +3 -0
- package/src/themes/index.d.ts +4 -0
- package/src/types/carrier-metadata.d.ts +7 -11
- package/src/types/index.d.ts +0 -1
- package/src/types/preferred-rates.d.ts +1 -1
- package/src/types/shipping-preset/shipping-preset.d.ts +1 -1
- package/src/utilities/date.d.ts +1 -2
- package/src/utilities/error.d.ts +1 -1
- package/src/utilities/feature-flags/feature-flags.d.ts +18 -0
- package/src/utilities/feature-flags/index.d.ts +2 -0
- package/src/utilities/feature-flags/types.d.ts +141 -0
- package/src/utilities/money.d.ts +1 -1
- package/src/utilities/rates.d.ts +1 -1
- package/src/utilities/shipengine/address.d.ts +1 -1
- package/src/utilities/shipengine/carrier.d.ts +9 -1
- package/src/utilities/shipengine/dimensions.d.ts +1 -1
- package/src/utilities/shipengine/sales-order.d.ts +1 -1
- package/src/utilities/shipengine/shipment.d.ts +1 -1
- package/src/utilities/shipengine/warehouses.d.ts +1 -1
- package/src/utilities/shipengine/weight.d.ts +1 -1
- package/src/workflows/account-settings/account-settings.d.ts +56 -17
- package/src/workflows/{manage-wallet-workflow/manage-wallet-workflow.d.ts → carrier-services/carrier-services.d.ts} +79 -25
- package/src/workflows/carrier-services/index.d.ts +1 -0
- package/src/workflows/{connect-carrier/connect-carrier.d.ts → connect-external-carrier/connect-external-carrier.d.ts} +58 -39
- package/src/workflows/connect-external-carrier/index.d.ts +1 -0
- package/src/workflows/index.d.ts +3 -2
- package/src/workflows/label-workflow/index.d.ts +1 -0
- package/src/workflows/{purchase-label-workflow/purchase-label-workflow.d.ts → label-workflow/label-workflow.d.ts} +16 -34
- package/src/workflows/onboarding/components/carrier-recovery-form/carrier-recovery-form.d.ts +4 -5
- package/src/workflows/onboarding/components/funding-and-carrier-connection-step/funding-and-carrier-connection-step.d.ts +2 -4
- package/src/workflows/onboarding/components/funding-and-carrier-connection-step/use-funding-and-carrier-connection-step.d.ts +2 -3
- package/src/workflows/onboarding/components/onboarding-wizard/onboarding-wizard.d.ts +2 -9
- package/src/workflows/onboarding/components/ship-from-address-step/ship-from-address-step.d.ts +1 -1
- package/src/workflows/onboarding/components/ship-from-address-step/use-ship-from-address-step.d.ts +1 -1
- package/src/workflows/onboarding/components/terms-agreement-form/terms-agreement-form.d.ts +1 -1
- package/src/workflows/onboarding/components/terms-agreement-step/terms-agreement-step.d.ts +1 -1
- package/src/workflows/onboarding/components/terms-agreement-step/use-terms-agreement-step.d.ts +2 -7
- package/src/workflows/onboarding/onboarding.d.ts +71 -73
- package/story-notes-c714d2ed.js +1 -0
- package/suspend-text-cad3a977.js +1 -0
- package/transaction-history-element-cbfe487c.js +1 -0
- package/types.js +1 -0
- package/use-page-layout-8cb5075f.js +1 -0
- package/use-scrub-errors-9870a6f3.js +1 -0
- package/use-toggle-866d7938.js +1 -0
- package/use-unit-settings-a5bae16e.js +1 -0
- package/utilities.js +1 -0
- package/validation-528e7834.js +1 -0
- package/wallet-form-9e4bfaea.js +1 -0
- package/warehouse-form-da6a7ac5.js +34 -0
- package/warehouses-a83188ab.js +1 -0
- package/workflows.js +1 -0
- package/zod-60def96c.js +1 -0
- package/index.cjs +0 -25795
- package/src/components/templates/add-carrier-form/add-carrier-form-test.d.ts +0 -1
- package/src/components/templates/add-carrier-form/add-carrier-form.d.ts +0 -10
- package/src/components/templates/add-carrier-form/index.d.ts +0 -2
- package/src/components/templates/connect-carrier-form/connect-carrier-form.d.ts +0 -12
- package/src/components/templates/connect-carrier-form/index.d.ts +0 -1
- package/src/components/templates/pudo-rate-tabs/service-points-search-bar/index.d.ts +0 -1
- package/src/components/templates/pudo-rate-tabs/service-points-search-bar/service-points-search-bar.d.ts +0 -6
- package/src/elements/external-carriers/index.d.ts +0 -1
- package/src/elements/shipengine-carriers/index.d.ts +0 -1
- package/src/elements/view-shipment/index.d.ts +0 -1
- package/src/elements/wallet-history/index.d.ts +0 -1
- package/src/features/external-carriers/external-carriers.d.ts +0 -10
- package/src/features/external-carriers/index.d.ts +0 -1
- package/src/features/shipengine-carriers/hooks/index.d.ts +0 -2
- package/src/features/shipengine-carriers/hooks/use-carrier-metadata.d.ts +0 -13
- package/src/features/shipengine-carriers/hooks/use-list-connected-carriers.d.ts +0 -11
- package/src/features/shipengine-carriers/index.d.ts +0 -1
- package/src/features/shipengine-carriers/shipengine-carriers-row/index.d.ts +0 -1
- package/src/features/shipengine-carriers/shipengine-carriers-row/shipengine-carriers-row.d.ts +0 -9
- package/src/features/shipengine-carriers/shipengine-carriers.d.ts +0 -10
- package/src/features/wallet-history/index.d.ts +0 -1
- package/src/features/wallet-history/wallet-history.d.ts +0 -6
- package/src/hooks/use-elements.d.ts +0 -35
- package/src/types/patch.d.ts +0 -2
- package/src/utilities/feature-flags.d.ts +0 -232
- package/src/workflows/connect-carrier/index.d.ts +0 -1
- package/src/workflows/manage-wallet-workflow/index.d.ts +0 -1
- package/src/workflows/purchase-label-workflow/index.d.ts +0 -1
- /package/src/components/templates/{connect-carrier-form/connect-carrier-form.styles.d.ts → connect-external-carrier-form/connect-external-carrier-form.styles.d.ts} +0 -0
- /package/src/features/{shipengine-carriers/shipengine-carriers-row/shipengine-carriers-row.styles.d.ts → manage-carriers/manage-carriers-row/manage-carriers-row.styles.d.ts} +0 -0
- /package/src/features/{shipengine-carriers/shipengine-carriers.styles.d.ts → manage-carriers/manage-carriers.styles.d.ts} +0 -0
- /package/src/features/{wallet-history/wallet-history.styles.d.ts → transaction-history/transaction-history.styles.d.ts} +0 -0
- /package/src/workflows/{manage-wallet-workflow → carrier-services}/use-get-wallet-panel-props.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{z as n}from"zod";import{SE as e}from"@shipengine/react-api";const r=n.object({amount:n.number().nonnegative(),currency:n.nativeEnum(e.Currency)});export{r as m};
|
package/package.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shipengine/elements",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@shipengine/alchemy": "5.x.x",
|
|
6
5
|
"@emotion/react": "11.x",
|
|
7
6
|
"react-i18next": "11.x",
|
|
8
7
|
"i18next": "22.x",
|
|
@@ -12,11 +11,54 @@
|
|
|
12
11
|
"msw": {
|
|
13
12
|
"workerDirectory": "public"
|
|
14
13
|
},
|
|
15
|
-
"module": "./index.js",
|
|
16
14
|
"main": "./index.cjs",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"import": "./index.js",
|
|
18
|
+
"require": "./index.js"
|
|
19
|
+
},
|
|
20
|
+
"./components": {
|
|
21
|
+
"import": "./components.js",
|
|
22
|
+
"require": "./components.js"
|
|
23
|
+
},
|
|
24
|
+
"./constants": {
|
|
25
|
+
"import": "./constants.js",
|
|
26
|
+
"require": "./constants.js"
|
|
27
|
+
},
|
|
28
|
+
"./elements": {
|
|
29
|
+
"import": "./elements.js",
|
|
30
|
+
"require": "./elements.js"
|
|
31
|
+
},
|
|
32
|
+
"./extensions": {
|
|
33
|
+
"import": "./extensions.js",
|
|
34
|
+
"require": "./extensions.js"
|
|
35
|
+
},
|
|
36
|
+
"./hooks": {
|
|
37
|
+
"import": "./hooks.js",
|
|
38
|
+
"require": "./hooks.js"
|
|
39
|
+
},
|
|
40
|
+
"./schemas": {
|
|
41
|
+
"import": "./schemas.js",
|
|
42
|
+
"require": "./schemas.js"
|
|
43
|
+
},
|
|
44
|
+
"./types": {
|
|
45
|
+
"import": "./types.js",
|
|
46
|
+
"require": "./types.js"
|
|
47
|
+
},
|
|
48
|
+
"./utilities": {
|
|
49
|
+
"import": "./utilities.js",
|
|
50
|
+
"require": "./utilities.js"
|
|
51
|
+
},
|
|
52
|
+
"./workflows": {
|
|
53
|
+
"import": "./workflows.js",
|
|
54
|
+
"require": "./workflows.js"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"module": "./index.js",
|
|
17
58
|
"type": "module",
|
|
18
59
|
"types": "./src/index.d.ts",
|
|
19
60
|
"dependencies": {
|
|
61
|
+
"@emotion/cache": "11.10.5",
|
|
20
62
|
"@emotion/serialize": "1.1.1",
|
|
21
63
|
"@faker-js/faker": "7.6.0",
|
|
22
64
|
"@hookform/resolvers": "2.9.1",
|
|
@@ -24,9 +66,10 @@
|
|
|
24
66
|
"@rjsf/core": "5.16.1",
|
|
25
67
|
"@rjsf/utils": "5.16.1",
|
|
26
68
|
"@rjsf/validator-ajv8": "5.16.1",
|
|
27
|
-
"@shipengine/giger": "1.
|
|
28
|
-
"@shipengine/giger-theme": "1.
|
|
29
|
-
"@shipengine/js-api": "1.
|
|
69
|
+
"@shipengine/giger": "1.11.2",
|
|
70
|
+
"@shipengine/giger-theme": "1.5.1",
|
|
71
|
+
"@shipengine/js-api": "1.21.0",
|
|
72
|
+
"@shipengine/react-api": "2.11.8",
|
|
30
73
|
"@storybook/addons": "6.5.16",
|
|
31
74
|
"@storybook/components": "7.0.0-rc.1",
|
|
32
75
|
"@storybook/core-events": "7.0.0-rc.1",
|
|
@@ -35,17 +78,20 @@
|
|
|
35
78
|
"@tanstack/react-query": "4.36.1",
|
|
36
79
|
"@testing-library/dom": "8.19.0",
|
|
37
80
|
"@vitejs/plugin-react": "1.3.2",
|
|
38
|
-
"axios": "
|
|
81
|
+
"axios": "1.7.2",
|
|
39
82
|
"card-validator": "8.1.1",
|
|
83
|
+
"classnames": "2.5.1",
|
|
40
84
|
"copy-to-clipboard": "3.3.3",
|
|
41
85
|
"date-fns": "3.6.0",
|
|
42
86
|
"expect": "28.1.3",
|
|
43
87
|
"humps": "2.0.1",
|
|
88
|
+
"i18next-browser-languagedetector": "6.1.8",
|
|
44
89
|
"js-base64": "3.7.3",
|
|
45
90
|
"libphonenumber-js": "1.10.14",
|
|
46
91
|
"lodash": "4.17.21",
|
|
47
92
|
"react-hook-form": "7.40.0",
|
|
48
93
|
"rollup-plugin-copy": "3.4.0",
|
|
94
|
+
"stylis": "4.1.3",
|
|
49
95
|
"use-debounce": "10.0.0",
|
|
50
96
|
"zod": "3.19.1"
|
|
51
97
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isValidPhoneNumber as r}from"libphonenumber-js/min";import{z as o}from"zod";const i=(i="US")=>o.string().trim().refine((o=>r(o,i)),"schemaErrors.notAValidPhoneNumber"),m=o.string().trim();export{m as a,i as p};
|
package/schemas.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{m as moneySchema}from"./money-d4f3d7c3.js";export{p as phoneSchema,a as phoneSchemaUnvalidated}from"./phone-87dd7bd8.js";import"zod";import"@shipengine/react-api";import"libphonenumber-js/min";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C as s,D as t,s as e,_ as n}from"./carrier-c2a5ed53.js";const o=(s,t)=>{var e;return null!==(e=null==s?void 0:s.reduce(((s,e)=>Object.assign(Object.assign({},s),t(e,s))),{}))&&void 0!==e?e:{}},i=s=>`${s.length} x ${s.width} x ${s.height} `;function a(s,{allowAllZeroes:t}={}){const{length:e,width:n,height:o,unit:i}=s;if(![e,n,o].every((s=>0===s))||t)return Object.assign(Object.assign({},s),{unit:null!=i?i:"inch"})}const u=({shipFrom:s,shipTo:t})=>(null==s?void 0:s.countryCode)!==(null==t?void 0:t.countryCode),c=({shipFrom:e,shipTo:n})=>e&&s(e)||n&&(s(n)||t(n))||(null==e?void 0:e.countryCode)!==(null==n?void 0:n.countryCode),l=s=>null==s?void 0:s.filter((s=>"pending"===s.shipmentStatus)).sort(e)[0],r=s=>null==s?void 0:s.filter((s=>"cancelled"===s.shipmentStatus)).sort(e)[0],d=(s,t)=>null==t?void 0:t.filter((({shipmentStatus:t})=>t===s)).sort(e)[0],m=s=>{var t,e;if(!(null===(e=null===(t=s.customs)||void 0===t?void 0:t.customsItems)||void 0===e?void 0:e.length))return s;const o=s.customs.customsItems.map((s=>Object.assign(Object.assign({},s),{value:s.value instanceof Object?s.value:{amount:s.value,currency:s.valueCurrency||"USD"}}))),i=s.customs,a=n(i,["customsItems"]);return Object.assign(Object.assign({},s),{customs:a,packages:s.packages.map(((s,t)=>0===t?Object.assign(Object.assign({},s),{products:o}):s))})};export{a,c as b,o as c,l as d,r as e,i as f,u as g,d as h,m};
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
import { SE } from "@shipengine/js-api";
|
|
3
3
|
import { WarehousePayload } from "../";
|
|
4
|
-
import { WalletPayload } from "../templates";
|
|
4
|
+
import { RegisterFundingSourceCarrierPayload, WalletPayload } from "../templates";
|
|
5
5
|
import { AddressValidationPreference } from "../templates/address-preference-select";
|
|
6
6
|
type WarehouseData = Pick<WarehousePayload, "name" | "isDefault">;
|
|
7
7
|
type WalletData = {
|
|
8
8
|
creditCard: WalletPayload["creditCard"];
|
|
9
9
|
};
|
|
10
|
+
type RegisterFundingSourceCarrierData = {
|
|
11
|
+
agreeToTerms: RegisterFundingSourceCarrierPayload["agreeToTerms"];
|
|
12
|
+
};
|
|
10
13
|
type InternalValidateAddressPayload = {
|
|
11
14
|
addresses: {
|
|
12
15
|
originAddress: SE.Address;
|
|
13
16
|
returnAddress?: SE.Address | undefined;
|
|
14
17
|
};
|
|
15
|
-
data?: WarehouseData | WalletData;
|
|
18
|
+
data?: WarehouseData | WalletData | RegisterFundingSourceCarrierData;
|
|
16
19
|
onValid: (payload: {
|
|
17
20
|
originAddress: SE.Address;
|
|
18
21
|
returnAddress?: SE.Address;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { IconSize } from "@shipengine/giger";
|
|
2
|
+
export declare const styles: {
|
|
3
|
+
getIconSize: (size: IconSize) => (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
4
|
+
height: string;
|
|
5
|
+
width: string;
|
|
6
|
+
};
|
|
7
7
|
};
|
|
8
8
|
export type CarrierIconProps = {
|
|
9
9
|
carrierCode: string;
|
|
10
|
-
|
|
10
|
+
carrierName?: string;
|
|
11
|
+
size?: IconSize;
|
|
11
12
|
};
|
|
12
|
-
export declare const CarrierIcon: ({ carrierCode, size }: CarrierIconProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
13
|
-
export {};
|
|
13
|
+
export declare const CarrierIcon: ({ carrierCode, carrierName, size, }: CarrierIconProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -5,7 +5,8 @@ declare const sizes: {
|
|
|
5
5
|
};
|
|
6
6
|
export type CarrierLogoProps = {
|
|
7
7
|
carrierCode: string;
|
|
8
|
+
carrierName: string;
|
|
8
9
|
size?: keyof typeof sizes;
|
|
9
10
|
};
|
|
10
|
-
export declare const CarrierLogo: ({ carrierCode, size }: CarrierLogoProps) => import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
11
|
+
export declare const CarrierLogo: ({ carrierCode, carrierName, size }: CarrierLogoProps) => import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
11
12
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SE } from "@shipengine/alchemy";
|
|
2
1
|
import { InputProps } from "@shipengine/giger";
|
|
2
|
+
import { SE } from "@shipengine/react-api";
|
|
3
3
|
import { ControlledField } from "../create-field-controller";
|
|
4
4
|
export declare const transform: {
|
|
5
5
|
in: ({ amount, currency }?: Partial<{
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import type { SE } from "@shipengine/alchemy";
|
|
2
1
|
import { WithCommonProps } from "@shipengine/giger";
|
|
2
|
+
import type { SE } from "@shipengine/react-api";
|
|
3
3
|
import { RateOption } from "../../../hooks";
|
|
4
4
|
export type RateCardProps = Partial<RateOption> & WithCommonProps<{
|
|
5
5
|
isAcknowledged?: boolean;
|
|
6
6
|
isLoading?: boolean;
|
|
7
7
|
isPreferredRate?: boolean;
|
|
8
|
+
mapViewEnabled?: boolean;
|
|
8
9
|
onClick?: (rateId: string) => void;
|
|
9
10
|
onClickAcknowledgement?: (isAcknowledged: boolean) => void;
|
|
10
11
|
onSelectServicePoint?: (servicePoint?: SE.ServicePoint) => void;
|
|
@@ -15,4 +16,4 @@ export type RateCardProps = Partial<RateOption> & WithCommonProps<{
|
|
|
15
16
|
voided?: boolean;
|
|
16
17
|
voidedAt?: string;
|
|
17
18
|
}>;
|
|
18
|
-
export declare const RateCard: ({ carrierCode, carrierFriendlyName, carrierNickname, children, className, confirmationAmount, deliveryDays, insuranceAmount, isAcknowledged, messages, onClick, onClickAcknowledgement, onSelectServicePoint, otherAmount, rateId, requiresAcknowledgement, rateAcknowledgementMessage, selected, serviceCode, packageType, serviceType, shippingAmount, taxAmount, trackable, trackingStatus, voided, voidedAt, isLoading: servicePointsLoading, isPreferredRate, selectedRateCost, servicePoints, }: RateCardProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare const RateCard: ({ carrierCode, carrierFriendlyName, carrierNickname, children, className, confirmationAmount, deliveryDays, insuranceAmount, isAcknowledged, messages, onClick, onClickAcknowledgement, onSelectServicePoint, otherAmount, rateId, requiresAcknowledgement, rateAcknowledgementMessage, selected, serviceCode, packageType, serviceType, shippingAmount, taxAmount, trackable, trackingStatus, voided, voidedAt, isLoading: servicePointsLoading, isPreferredRate, selectedRateCost, servicePoints, mapViewEnabled, }: RateCardProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -7,7 +7,6 @@ export declare const getArticleSelectedStyles: (theme: Theme) => SerializedStyle
|
|
|
7
7
|
export declare const getArticleVoidedStyles: () => SerializedStyles;
|
|
8
8
|
export declare const getSectionStyles: (theme: Theme) => SerializedStyles;
|
|
9
9
|
export declare const getRateImageStyles: (theme: Theme) => SerializedStyles;
|
|
10
|
-
export declare const getViewShipmentImageStyles: (theme: Theme) => SerializedStyles;
|
|
11
10
|
export declare const getRateSavingsSectionStyles: () => SerializedStyles;
|
|
12
11
|
export declare const getRateSavingsStyles: (theme: Theme) => SerializedStyles;
|
|
13
12
|
export declare const getRateInfoStyles: (theme: Theme) => SerializedStyles;
|
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { SE } from "@shipengine/react-api";
|
|
2
3
|
import { RateOption } from "../../../hooks";
|
|
3
4
|
import { RateFormProps } from "../../templates";
|
|
4
5
|
import { ControlledField } from "../create-field-controller";
|
|
5
|
-
type RateSelectProps = {
|
|
6
|
+
export type RateSelectProps = {
|
|
6
7
|
isLoading?: boolean;
|
|
8
|
+
mapViewEnabled?: boolean;
|
|
7
9
|
nicknameFeature?: boolean;
|
|
8
10
|
onSelectServicePoint?: (servicePoint?: SE.ServicePoint) => void;
|
|
9
11
|
options: RateOption[];
|
|
10
12
|
preferredServiceCodes?: RateFormProps["preferredServiceCodes"];
|
|
13
|
+
rateFormScrollToRef?: React.RefObject<HTMLFormElement>;
|
|
14
|
+
setShowHiddenRates?: (showHiddenRates: boolean) => void;
|
|
15
|
+
showHiddenRates?: boolean;
|
|
11
16
|
};
|
|
12
17
|
type RateSelectOptions = {
|
|
13
18
|
onClick?: (rateId: string) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Control } from "react-hook-form";
|
|
2
|
-
import { SE } from "@shipengine/
|
|
2
|
+
import { SE } from "@shipengine/react-api";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*
|
|
@@ -20,7 +20,10 @@ export type FundAndPurchaseProps = {
|
|
|
20
20
|
nickname?: string;
|
|
21
21
|
onPurchase: () => void;
|
|
22
22
|
onSave: () => Promise<void>;
|
|
23
|
+
onVatRegistrationComplete?: () => void;
|
|
23
24
|
purchaseAmount: number;
|
|
25
|
+
rateDetails?: SE.RateDetail[];
|
|
26
|
+
showVatSettings?: boolean;
|
|
24
27
|
};
|
|
25
28
|
/**
|
|
26
29
|
* @internal
|
|
@@ -33,4 +36,4 @@ export type FundAndPurchaseProps = {
|
|
|
33
36
|
*
|
|
34
37
|
* @see {@link FundAndPurchaseProps | The props that are passed into the `<FundAndPurchase />` component}
|
|
35
38
|
*/
|
|
36
|
-
export declare const FundAndPurchase: ({ balance: uspsBalance, carrierId,
|
|
39
|
+
export declare const FundAndPurchase: ({ balance: uspsBalance, carrierId, control, currency, disabled, isFundingEnabled, isFundingRequired, isPreferredRate, nickname, purchaseAmount, rateDetails, onSave, onPurchase, showVatSettings, onVatRegistrationComplete, }: FundAndPurchaseProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/// <reference types="heremaps" />
|
|
3
|
+
import { MarkerData } from "../../hooks/here-map/use-here-map-ui";
|
|
4
|
+
export type HereMapProps = {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
informationCardContent?: React.ReactNode;
|
|
7
|
+
mapOptions: H.Map.Options;
|
|
8
|
+
markerData?: MarkerData[];
|
|
9
|
+
onClickMarker?: (markerData: MarkerData) => void;
|
|
10
|
+
onMapCenterChange?: () => void;
|
|
11
|
+
showMapSettingsControl?: boolean;
|
|
12
|
+
showScaleBarControl?: boolean;
|
|
13
|
+
showZoomControl?: boolean;
|
|
14
|
+
zoomControlPosition?: H.ui.LayoutAlignment;
|
|
15
|
+
};
|
|
16
|
+
export declare const HereMap: ({ mapOptions, children, markerData, onClickMarker, showZoomControl, zoomControlPosition, showMapSettingsControl, informationCardContent, showScaleBarControl, onMapCenterChange, }: HereMapProps) => import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const styles: {
|
|
2
|
+
container: {
|
|
3
|
+
position: "relative";
|
|
4
|
+
};
|
|
5
|
+
informationOverlay: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
6
|
+
backgroundColor: "white";
|
|
7
|
+
borderRadius: string;
|
|
8
|
+
bottom: number;
|
|
9
|
+
boxShadow: "0px 4px 2px 0px rgba(161, 161, 161, 0.25)";
|
|
10
|
+
left: string;
|
|
11
|
+
padding: number;
|
|
12
|
+
position: "absolute";
|
|
13
|
+
transform: "translateX(-50%)";
|
|
14
|
+
width: string;
|
|
15
|
+
zIndex: number;
|
|
16
|
+
};
|
|
17
|
+
map: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
18
|
+
border: string;
|
|
19
|
+
borderRadius: string;
|
|
20
|
+
height: string;
|
|
21
|
+
width: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -2,8 +2,9 @@ import * as React from "react";
|
|
|
2
2
|
export type ModalProps = {
|
|
3
3
|
children?: React.ReactNode;
|
|
4
4
|
closeAriaLabel?: string;
|
|
5
|
+
isFullScreen?: boolean;
|
|
5
6
|
isOpen?: boolean;
|
|
6
7
|
onClose?: () => void;
|
|
7
8
|
title?: string;
|
|
8
9
|
};
|
|
9
|
-
export declare const Modal: ({ children, closeAriaLabel, isOpen, onClose, title }: ModalProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const Modal: ({ children, closeAriaLabel, isOpen, onClose, title, isFullScreen, }: ModalProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./rate-details";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SE } from "@shipengine/react-api";
|
|
2
|
+
export type RateDetailsProps = {
|
|
3
|
+
/**
|
|
4
|
+
* `onVatRegistrationComplete` callback that notifies that the vat registration has been successfully completed
|
|
5
|
+
*/
|
|
6
|
+
onVatRegistrationComplete?: () => void;
|
|
7
|
+
/**
|
|
8
|
+
* `rateDetails` array of rate details
|
|
9
|
+
*/
|
|
10
|
+
rateDetails: SE.RateDetail[];
|
|
11
|
+
/**
|
|
12
|
+
* `registerVatAllowed` flag to determine if register vat button should be displayed
|
|
13
|
+
* It also depends if the user already has a vat number registered
|
|
14
|
+
*/
|
|
15
|
+
registerVatAllowed?: boolean;
|
|
16
|
+
};
|
|
17
|
+
export declare const RateDetails: ({ rateDetails, registerVatAllowed, onVatRegistrationComplete, }: RateDetailsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const styles: {
|
|
2
|
+
breakdownCollapsible: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
3
|
+
alignItems: "center";
|
|
4
|
+
color: string;
|
|
5
|
+
display: "flex";
|
|
6
|
+
fontWeight: number;
|
|
7
|
+
};
|
|
8
|
+
conceptGroup: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
9
|
+
alignItems: "center";
|
|
10
|
+
display: "flex";
|
|
11
|
+
gap: number;
|
|
12
|
+
};
|
|
13
|
+
divider: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
14
|
+
marginTop: number;
|
|
15
|
+
paddingTop: number;
|
|
16
|
+
};
|
|
17
|
+
rateDetail: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
18
|
+
alignItems: "center";
|
|
19
|
+
display: "flex";
|
|
20
|
+
justifyContent: "space-between";
|
|
21
|
+
marginBottom: number;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./search-bar";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type SearchBarProps = {
|
|
2
|
+
defaultValue?: string;
|
|
3
|
+
label?: string;
|
|
4
|
+
loading?: boolean;
|
|
5
|
+
onSearch: (value: string) => void | Promise<void>;
|
|
6
|
+
};
|
|
7
|
+
export declare const SearchBar: ({ label, defaultValue, onSearch, loading }: SearchBarProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ServicePoint } from "@shipengine/js-api";
|
|
2
|
+
export type OperatingHoursProps = {
|
|
3
|
+
hoursOfOperation: ServicePoint["hoursOfOperation"];
|
|
4
|
+
rateSelected?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare const OperatingHoursDisplay: ({ hoursOfOperation, rateSelected }: OperatingHoursProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export declare const styles: {
|
|
2
|
+
closed: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
3
|
+
color: string;
|
|
4
|
+
whiteSpace: "pre";
|
|
5
|
+
};
|
|
6
|
+
dayColumn: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
7
|
+
gridColumn: "1";
|
|
8
|
+
minWidth: number;
|
|
9
|
+
};
|
|
10
|
+
getTextStyles: (isToday?: boolean, expanded?: boolean, isClosed?: boolean) => (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
11
|
+
color: string;
|
|
12
|
+
fontSize: string;
|
|
13
|
+
fontStyle: "normal" | "italic";
|
|
14
|
+
fontWeight: "normal" | "bold";
|
|
15
|
+
};
|
|
16
|
+
hoursDisplayContainer: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
17
|
+
"& > span": {
|
|
18
|
+
lineHeight: string;
|
|
19
|
+
};
|
|
20
|
+
"& > span:last-child": {
|
|
21
|
+
marginBottom: number;
|
|
22
|
+
};
|
|
23
|
+
display: "flex";
|
|
24
|
+
flexDirection: "column";
|
|
25
|
+
};
|
|
26
|
+
hoursListItem: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
27
|
+
display: "grid";
|
|
28
|
+
gap: number;
|
|
29
|
+
gridTemplateColumns: string;
|
|
30
|
+
listStyle: "none";
|
|
31
|
+
marginBottom: number;
|
|
32
|
+
};
|
|
33
|
+
inlineWrapper: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
34
|
+
"& > span": {
|
|
35
|
+
lineHeight: string;
|
|
36
|
+
};
|
|
37
|
+
display: "flex";
|
|
38
|
+
gap: number;
|
|
39
|
+
};
|
|
40
|
+
open: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
41
|
+
color: string;
|
|
42
|
+
whiteSpace: "pre";
|
|
43
|
+
};
|
|
44
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ServicePoint } from "@shipengine/js-api";
|
|
2
2
|
type ServicePointDisplayProps = {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
mapViewEnabled?: boolean;
|
|
4
|
+
onViewMapClick?: (servicePoint: ServicePoint) => void;
|
|
5
5
|
rateSelected?: boolean;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
servicePoint: ServicePoint;
|
|
7
|
+
showViewMapButton?: boolean;
|
|
8
8
|
};
|
|
9
|
-
export declare const ServicePointDisplay: ({
|
|
9
|
+
export declare const ServicePointDisplay: ({ onViewMapClick, servicePoint, rateSelected, mapViewEnabled, showViewMapButton, }: ServicePointDisplayProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -1,40 +1,31 @@
|
|
|
1
1
|
export declare const styles: {
|
|
2
|
-
closed: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
3
|
-
color: string;
|
|
4
|
-
whiteSpace: "pre";
|
|
5
|
-
};
|
|
6
2
|
container: {
|
|
7
3
|
display: "flex";
|
|
8
4
|
flexDirection: "column";
|
|
9
5
|
};
|
|
10
|
-
getHoursOfOperationTextStyles: (isCurrentWeekday: boolean) => (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
11
|
-
color: string;
|
|
12
|
-
fontSize: string;
|
|
13
|
-
fontWeight: "normal" | "bold";
|
|
14
|
-
lineHeight: string;
|
|
15
|
-
margin: number;
|
|
16
|
-
};
|
|
17
6
|
getSelectedStyles: (isSelected?: boolean) => (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
18
7
|
alignItems: "center";
|
|
19
8
|
display: "flex";
|
|
20
9
|
gap: number;
|
|
21
10
|
justifyContent: "" | "space-between";
|
|
22
11
|
};
|
|
23
|
-
hoursToggle: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
24
|
-
alignItems: "center";
|
|
25
|
-
color: string;
|
|
26
|
-
display: "flex";
|
|
27
|
-
lineHeight: string;
|
|
28
|
-
};
|
|
29
12
|
inlineWrapper: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
30
13
|
alignItems: "center";
|
|
31
14
|
display: "flex";
|
|
32
15
|
gap: number;
|
|
33
16
|
justifyContent: "space-between";
|
|
34
17
|
};
|
|
35
|
-
|
|
18
|
+
paperlessIcon: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
19
|
+
color: string;
|
|
20
|
+
paddingRight: string;
|
|
21
|
+
};
|
|
22
|
+
paperlessText: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
36
23
|
color: string;
|
|
37
|
-
|
|
24
|
+
paddingLeft: number;
|
|
25
|
+
};
|
|
26
|
+
paperlessWrapper: () => {
|
|
27
|
+
display: "flex";
|
|
28
|
+
marginBottom: string;
|
|
38
29
|
};
|
|
39
30
|
selectButton: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
40
31
|
backgroundColor: string;
|
|
@@ -45,6 +36,9 @@ export declare const styles: {
|
|
|
45
36
|
whiteSpace: "nowrap";
|
|
46
37
|
};
|
|
47
38
|
viewMap: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
39
|
+
"&:hover": {
|
|
40
|
+
textDecoration: string;
|
|
41
|
+
};
|
|
48
42
|
color: string;
|
|
49
43
|
textDecoration: string;
|
|
50
44
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { SE } from "@shipengine/
|
|
1
|
+
import { SE } from "@shipengine/react-api";
|
|
2
2
|
type ServicePointsProps = {
|
|
3
|
+
mapViewEnabled?: boolean;
|
|
3
4
|
onSelectServicePoint?: (servicePoint: SE.ServicePoint) => void;
|
|
4
5
|
rateSelected: boolean;
|
|
5
6
|
servicePoints: SE.ServicePoint[];
|
|
6
7
|
};
|
|
7
|
-
export declare const ServicePoints: ({ servicePoints, rateSelected, onSelectServicePoint, }: ServicePointsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const ServicePoints: ({ servicePoints, rateSelected, onSelectServicePoint, mapViewEnabled, }: ServicePointsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
9
|
export {};
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
type TabsProps = {
|
|
2
3
|
fullWidth?: boolean;
|
|
3
4
|
onSelectTab: (tab: string) => void;
|
|
4
5
|
selectedTab: string;
|
|
5
|
-
tabs:
|
|
6
|
+
tabs: {
|
|
7
|
+
label: string | React.ReactNode;
|
|
8
|
+
value: string;
|
|
9
|
+
}[];
|
|
6
10
|
};
|
|
7
11
|
export declare const Tabs: ({ fullWidth, onSelectTab, selectedTab, tabs }: TabsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
12
|
export {};
|