@shipengine/elements 2.4.0 → 2.6.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.
Files changed (67) hide show
  1. package/actions-menu.js +1 -1
  2. package/components.js +1 -1
  3. package/index.js +1 -1
  4. package/package.json +1 -1
  5. package/src/components/actions-menu/actions-menu.d.ts +2 -1
  6. package/src/components/error-state/error-state.d.ts +6 -0
  7. package/src/{workflows/onboarding/components/account-registration-step/account-registration-step.styles.d.ts → components/error-state/error-state.styles.d.ts} +9 -5
  8. package/src/components/error-state/index.d.ts +1 -0
  9. package/src/components/index.d.ts +1 -0
  10. package/src/components/templates/address-display/address-display.d.ts +2 -1
  11. package/src/components/templates/wallet-form/wallet-form.d.ts +1 -1
  12. package/src/components/warehouse-form/warehouse-form-schema.d.ts +4 -1
  13. package/src/components/warehouse-form/warehouse-form.d.ts +2 -1
  14. package/src/elements/label-layout/label-layout-element.d.ts +44 -15
  15. package/src/elements/labels-grid/hooks/use-labels-grid.d.ts +2 -0
  16. package/src/elements/labels-grid/labels-grid.d.ts +79 -44
  17. package/src/elements/labels-grid/labels-grid.styles.d.ts +7 -1
  18. package/src/elements/manage-carriers/manage-carriers.d.ts +44 -15
  19. package/src/elements/manage-external-carriers/manage-external-carriers.d.ts +66 -16
  20. package/src/elements/manage-funding/manage-funding-element.d.ts +44 -15
  21. package/src/elements/manage-warehouses/manage-warehouses.d.ts +44 -15
  22. package/src/elements/payment-method-settings/payment-method-settings-element.d.ts +44 -15
  23. package/src/elements/purchase-label/purchase-label.d.ts +54 -28
  24. package/src/elements/shipment-summary/shipment-summary.d.ts +51 -19
  25. package/src/elements/shipments-grid/hooks/use-shipments-grid.d.ts +162 -0
  26. package/src/elements/shipments-grid/shipments-grid.d.ts +128 -23
  27. package/src/elements/shipments-grid/shipments-grid.styles.d.ts +11 -0
  28. package/src/elements/theme-creator/theme-creator.d.ts +44 -15
  29. package/src/elements/transaction-history/transaction-history-element.d.ts +44 -15
  30. package/src/elements/unit-settings/unit-settings-element.d.ts +44 -15
  31. package/src/elements/vat-settings/vat-settings-element.d.ts +44 -15
  32. package/src/elements/void-label/void-label.d.ts +56 -26
  33. package/src/locales/en/index.d.ts +44 -15
  34. package/src/workflows/account-settings/account-settings.d.ts +44 -15
  35. package/src/workflows/carrier-services/carrier-services.d.ts +44 -15
  36. package/src/workflows/connect-external-carrier/connect-external-carrier.d.ts +44 -15
  37. package/src/workflows/label-workflow/label-workflow.d.ts +31 -29
  38. package/src/workflows/onboarding/components/confirmation-and-submission-step/confirmation-and-submission-step.d.ts +12 -0
  39. package/src/workflows/onboarding/components/confirmation-and-submission-step/index.d.ts +2 -0
  40. package/src/workflows/onboarding/components/confirmation-and-submission-step/use-confirmation-and-submission-step.d.ts +19 -0
  41. package/src/workflows/onboarding/components/funding-step/funding-step.d.ts +7 -0
  42. package/src/workflows/onboarding/components/funding-step/index.d.ts +1 -0
  43. package/src/workflows/onboarding/components/onboarding-wizard/onboarding-wizard.d.ts +1 -2
  44. package/src/workflows/onboarding/components/onboarding-wizard/onboarding-wizard.styles.d.ts +3 -0
  45. package/src/workflows/onboarding/components/ship-from-address-step/index.d.ts +0 -1
  46. package/src/workflows/onboarding/components/ship-from-address-step/ship-from-address-step.d.ts +3 -2
  47. package/src/workflows/onboarding/components/step-header/step-header.d.ts +3 -2
  48. package/src/workflows/onboarding/components/{funding-and-carrier-connection-step/funding-and-carrier-connection-step.styles.d.ts → step-header/step-header.styles.d.ts} +5 -8
  49. package/src/workflows/onboarding/components/welcome-page/index.d.ts +1 -0
  50. package/src/workflows/onboarding/components/welcome-page/welcome-page.d.ts +4 -0
  51. package/src/workflows/onboarding/onboarding.d.ts +46 -19
  52. package/suspend-text.js +1 -1
  53. package/transaction-history-element.js +1 -1
  54. package/use-unit-settings.js +1 -1
  55. package/usePager.js +1 -1
  56. package/wallet-form.js +1 -1
  57. package/workflows.js +1 -1
  58. package/src/workflows/onboarding/components/account-registration-form/account-registration-form-schema.d.ts +0 -13
  59. package/src/workflows/onboarding/components/account-registration-form/account-registration-form.d.ts +0 -4
  60. package/src/workflows/onboarding/components/account-registration-form/index.d.ts +0 -1
  61. package/src/workflows/onboarding/components/account-registration-step/account-registration-step.d.ts +0 -5
  62. package/src/workflows/onboarding/components/account-registration-step/index.d.ts +0 -2
  63. package/src/workflows/onboarding/components/account-registration-step/use-account-registration-step.d.ts +0 -7
  64. package/src/workflows/onboarding/components/funding-and-carrier-connection-step/funding-and-carrier-connection-step.d.ts +0 -9
  65. package/src/workflows/onboarding/components/funding-and-carrier-connection-step/index.d.ts +0 -2
  66. package/src/workflows/onboarding/components/funding-and-carrier-connection-step/use-funding-and-carrier-connection-step.d.ts +0 -25
  67. package/src/workflows/onboarding/components/ship-from-address-step/use-ship-from-address-step.d.ts +0 -9
@@ -143,7 +143,6 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
143
143
  setup: {
144
144
  title: string;
145
145
  subtitle: string;
146
- hiddenTermsSubtitle: string;
147
146
  descriptionTitle: string;
148
147
  description: string;
149
148
  };
@@ -151,7 +150,6 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
151
150
  title: string;
152
151
  cardSubTitle: string;
153
152
  addressSubTitle: string;
154
- info: string;
155
153
  };
156
154
  vatSettings: {
157
155
  title: string;
@@ -165,7 +163,6 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
165
163
  title: string;
166
164
  };
167
165
  info: {
168
- title: string;
169
166
  description: string;
170
167
  };
171
168
  poBox: {
@@ -366,18 +363,15 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
366
363
  };
367
364
  onboarding: {
368
365
  title: string;
369
- inlineTitle: string;
370
- accountRegistration: {
371
- action: string;
366
+ confirmation: {
372
367
  title: string;
373
- subtitle: string;
374
- welcome: string;
375
- messageLine1: string;
376
- partnerMessageLine1: string;
377
- messageLine2: string;
368
+ warehouse: string;
369
+ billingAddress: string;
370
+ paymentMethod: string;
371
+ action: string;
378
372
  };
379
373
  stepLabel: {
380
- accountRegistration: string;
374
+ confirmation: string;
381
375
  termsAgreement: string;
382
376
  shipFromAddress: string;
383
377
  fundingAndCarrierConnection: string;
@@ -424,6 +418,14 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
424
418
  "UHVyb2xhdG9yIFRlcm1zIGFuZCBDb25kaXRpb25zIG9mIFNlcnZpY2U=": string;
425
419
  UHVyb2xhdG9yIE1vZGFsaXTDqXMgZXQgY29uZGl0aW9ucyBkZSBzZXJ2aWNl: string;
426
420
  };
421
+ tooltip: {
422
+ warehouse: string;
423
+ };
424
+ welcomePage: {
425
+ title: string;
426
+ message: string;
427
+ action: string;
428
+ };
427
429
  };
428
430
  "manage-warehouses": {
429
431
  title: string;
@@ -532,18 +534,38 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
532
534
  };
533
535
  "list-shipments": {
534
536
  title: string;
537
+ none: string;
535
538
  headers: {
536
539
  created: string;
537
- download: string;
540
+ modified: string;
541
+ shipping: string;
538
542
  shipmentId: string;
539
- shipDate: string;
540
- shipTo: string;
543
+ parcels: string;
544
+ recipient: string;
545
+ status: string;
546
+ };
547
+ status: {
548
+ cancelled: string;
549
+ purchased: string;
550
+ readyToBuy: string;
551
+ processing: string;
541
552
  };
542
553
  actions: {
543
554
  download: {
544
555
  pdf: string;
545
556
  };
546
557
  };
558
+ emptyState: {
559
+ title: string;
560
+ subtitle: string;
561
+ filtersTitle: string;
562
+ filtersSubtitle: string;
563
+ viewAll: string;
564
+ };
565
+ errorMessages: {
566
+ title: string;
567
+ subtitle: string;
568
+ };
547
569
  };
548
570
  "list-labels": {
549
571
  title: string;
@@ -577,6 +599,10 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
577
599
  void: string;
578
600
  printForms: string;
579
601
  };
602
+ errorMessages: {
603
+ title: string;
604
+ subtitle: string;
605
+ };
580
606
  };
581
607
  "connect-carrier": {
582
608
  actions: {
@@ -777,6 +803,7 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
777
803
  emailIsRequired: string;
778
804
  unknown: string;
779
805
  noRatesAvailable: string;
806
+ refreshAndTryAgain: string;
780
807
  };
781
808
  errorTypes: {
782
809
  accountStatus: string;
@@ -891,6 +918,7 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
891
918
  agreeToTerms: string;
892
919
  carriersTitle: string;
893
920
  fundingSourceTitle: string;
921
+ shipEngineTitle: string;
894
922
  };
895
923
  weight: {
896
924
  ounces: string;
@@ -915,6 +943,7 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
915
943
  printForms: string;
916
944
  edit: string;
917
945
  remove: string;
946
+ viewDetails: string;
918
947
  };
919
948
  };
920
949
  ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
@@ -150,7 +150,6 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
150
150
  setup: {
151
151
  title: string;
152
152
  subtitle: string;
153
- hiddenTermsSubtitle: string;
154
153
  descriptionTitle: string;
155
154
  description: string;
156
155
  };
@@ -158,7 +157,6 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
158
157
  title: string;
159
158
  cardSubTitle: string;
160
159
  addressSubTitle: string;
161
- info: string;
162
160
  };
163
161
  vatSettings: {
164
162
  title: string;
@@ -172,7 +170,6 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
172
170
  title: string;
173
171
  };
174
172
  info: {
175
- title: string;
176
173
  description: string;
177
174
  };
178
175
  poBox: {
@@ -373,18 +370,15 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
373
370
  };
374
371
  onboarding: {
375
372
  title: string;
376
- inlineTitle: string;
377
- accountRegistration: {
378
- action: string;
373
+ confirmation: {
379
374
  title: string;
380
- subtitle: string;
381
- welcome: string;
382
- messageLine1: string;
383
- partnerMessageLine1: string;
384
- messageLine2: string;
375
+ warehouse: string;
376
+ billingAddress: string;
377
+ paymentMethod: string;
378
+ action: string;
385
379
  };
386
380
  stepLabel: {
387
- accountRegistration: string;
381
+ confirmation: string;
388
382
  termsAgreement: string;
389
383
  shipFromAddress: string;
390
384
  fundingAndCarrierConnection: string;
@@ -431,6 +425,14 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
431
425
  "UHVyb2xhdG9yIFRlcm1zIGFuZCBDb25kaXRpb25zIG9mIFNlcnZpY2U=": string;
432
426
  UHVyb2xhdG9yIE1vZGFsaXTDqXMgZXQgY29uZGl0aW9ucyBkZSBzZXJ2aWNl: string;
433
427
  };
428
+ tooltip: {
429
+ warehouse: string;
430
+ };
431
+ welcomePage: {
432
+ title: string;
433
+ message: string;
434
+ action: string;
435
+ };
434
436
  };
435
437
  "manage-warehouses": {
436
438
  title: string;
@@ -539,18 +541,38 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
539
541
  };
540
542
  "list-shipments": {
541
543
  title: string;
544
+ none: string;
542
545
  headers: {
543
546
  created: string;
544
- download: string;
547
+ modified: string;
548
+ shipping: string;
545
549
  shipmentId: string;
546
- shipDate: string;
547
- shipTo: string;
550
+ parcels: string;
551
+ recipient: string;
552
+ status: string;
553
+ };
554
+ status: {
555
+ cancelled: string;
556
+ purchased: string;
557
+ readyToBuy: string;
558
+ processing: string;
548
559
  };
549
560
  actions: {
550
561
  download: {
551
562
  pdf: string;
552
563
  };
553
564
  };
565
+ emptyState: {
566
+ title: string;
567
+ subtitle: string;
568
+ filtersTitle: string;
569
+ filtersSubtitle: string;
570
+ viewAll: string;
571
+ };
572
+ errorMessages: {
573
+ title: string;
574
+ subtitle: string;
575
+ };
554
576
  };
555
577
  "list-labels": {
556
578
  title: string;
@@ -584,6 +606,10 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
584
606
  void: string;
585
607
  printForms: string;
586
608
  };
609
+ errorMessages: {
610
+ title: string;
611
+ subtitle: string;
612
+ };
587
613
  };
588
614
  "connect-carrier": {
589
615
  actions: {
@@ -784,6 +810,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
784
810
  emailIsRequired: string;
785
811
  unknown: string;
786
812
  noRatesAvailable: string;
813
+ refreshAndTryAgain: string;
787
814
  };
788
815
  errorTypes: {
789
816
  accountStatus: string;
@@ -898,6 +925,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
898
925
  agreeToTerms: string;
899
926
  carriersTitle: string;
900
927
  fundingSourceTitle: string;
928
+ shipEngineTitle: string;
901
929
  };
902
930
  weight: {
903
931
  ounces: string;
@@ -922,6 +950,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
922
950
  printForms: string;
923
951
  edit: string;
924
952
  remove: string;
953
+ viewDetails: string;
925
954
  };
926
955
  };
927
956
  ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { Shipment } from "@shipengine/js-api";
3
+ import { SE } from "@shipengine/react-api";
3
4
  import { PurchaseLabelFeatures, ShipmentSummaryFeatures } from "../../utilities";
4
5
  /**
5
6
  * @internal
@@ -23,11 +24,21 @@ export type LabelWorkflowProps = {
23
24
  onLabelCreateSuccess?: (label: {
24
25
  labelId: string;
25
26
  }, shipment: Shipment) => void;
27
+ /**
28
+ * `onVoidLabelComplete` is a callback function that will be invoked when the request to void a given
29
+ * shipping label is completed.
30
+ */
31
+ onVoidLabelComplete?: (request: SE.VoidRequest, shipment: SE.SalesOrderShipment) => void;
32
+ /**
33
+ * `onVoidLabelSuccess` is a callback function that will be invoked when the request to void a given
34
+ * shipping label is successful.
35
+ */
36
+ onVoidLabelSuccess?: (label: SE.Label, shipment: SE.SalesOrderShipment) => void;
26
37
  };
27
38
  /**
28
39
  * `features` is a set of feature flags you would like to enable or disable in this component.
29
40
  */
30
- features: PurchaseLabelFeatures & ShipmentSummaryFeatures;
41
+ features?: PurchaseLabelFeatures & ShipmentSummaryFeatures;
31
42
  /**
32
43
  * `multiplexedId` is the unique pattern of props that help index which Element is being displayed.
33
44
  */
@@ -39,37 +50,14 @@ export type LabelWorkflowProps = {
39
50
  externalOrderId: string;
40
51
  })) | {
41
52
  salesOrderId: string;
53
+ } | {
54
+ externalShipmentId: string;
42
55
  } | {
43
56
  shipmentId: string;
44
57
  } | {
45
58
  oneOff: true;
46
59
  };
47
60
  };
48
- /**
49
- * @internal
50
- *
51
- * # Label Workflow Component
52
- *
53
- * @example
54
- * ```tsx
55
- * const {
56
- * labelId,
57
- * multiplexedId,
58
- * isVoidingLabel,
59
- * shipmentId,
60
- * setLabelId,
61
- * setShipmentId,
62
- * setIsVoidingLabel,
63
- * } = useLabelWorkflow({
64
- * _labelId,
65
- * _multiplexedId,
66
- * });
67
- * ```
68
- *
69
- * <br />
70
- *
71
- * @see {@link LabelWorkflow.Element | The `<LabelWorkflow.Element />` component using this hook}
72
- */
73
61
  export declare const useLabelWorkflow: ({ _multiplexedId, }: {
74
62
  _callbacks?: {
75
63
  /**
@@ -79,6 +67,16 @@ export declare const useLabelWorkflow: ({ _multiplexedId, }: {
79
67
  onLabelCreateSuccess?: ((label: {
80
68
  labelId: string;
81
69
  }, shipment: Shipment) => void) | undefined;
70
+ /**
71
+ * `onVoidLabelComplete` is a callback function that will be invoked when the request to void a given
72
+ * shipping label is completed.
73
+ */
74
+ onVoidLabelComplete?: ((request: SE.VoidRequest, shipment: SE.SalesOrderShipment) => void) | undefined;
75
+ /**
76
+ * `onVoidLabelSuccess` is a callback function that will be invoked when the request to void a given
77
+ * shipping label is successful.
78
+ */
79
+ onVoidLabelSuccess?: ((label: SE.Label, shipment: SE.SalesOrderShipment) => void) | undefined;
82
80
  } | undefined;
83
81
  _multiplexedId: ({
84
82
  orderSourceCode: string;
@@ -88,13 +86,15 @@ export declare const useLabelWorkflow: ({ _multiplexedId, }: {
88
86
  externalOrderId: string;
89
87
  })) | {
90
88
  salesOrderId: string;
89
+ } | {
90
+ externalShipmentId: string;
91
91
  } | {
92
92
  shipmentId: string;
93
93
  } | {
94
94
  oneOff: true;
95
95
  };
96
96
  }) => {
97
- isVoidingLabel: boolean;
97
+ element: "purchaseLabel" | "shipmentSummary" | "voidLabel" | undefined;
98
98
  labelId: string | undefined;
99
99
  multiplexedId: ({
100
100
  orderSourceCode: string;
@@ -104,13 +104,15 @@ export declare const useLabelWorkflow: ({ _multiplexedId, }: {
104
104
  externalOrderId: string;
105
105
  })) | {
106
106
  salesOrderId: string;
107
+ } | {
108
+ externalShipmentId: string;
107
109
  } | {
108
110
  shipmentId: string;
109
111
  } | {
110
112
  oneOff: true;
111
113
  };
112
- setIsVoidingLabel: import("react").Dispatch<import("react").SetStateAction<boolean>>;
113
- setLabelId: (nextLabelId?: string) => void;
114
+ setElement: import("react").Dispatch<import("react").SetStateAction<"purchaseLabel" | "shipmentSummary" | "voidLabel" | undefined>>;
115
+ setLabelId: import("react").Dispatch<import("react").SetStateAction<string | undefined>>;
114
116
  setShipmentId: import("react").Dispatch<import("react").SetStateAction<string | undefined>>;
115
117
  shipmentId: string | undefined;
116
118
  };
@@ -0,0 +1,12 @@
1
+ import { SE } from "@shipengine/js-api";
2
+ import { WarehousePayload } from "../../../../components";
3
+ import { WalletPayload } from "../../../../components/templates";
4
+ export type ConfirmationAndSubmissionStepProps = {
5
+ createFundingSourceErrors: SE.CodedError[] | null;
6
+ onEdit: (step: number) => void;
7
+ onSubmit: (wallet: WalletPayload, warehouse: WarehousePayload) => Promise<void>;
8
+ registerCarrierErrors: SE.CodedError[] | null;
9
+ walletPayload: WalletPayload;
10
+ warehousePayload: WarehousePayload;
11
+ };
12
+ export declare const ConfirmationAndSubmissionStep: ({ createFundingSourceErrors, onSubmit, onEdit, registerCarrierErrors, walletPayload, warehousePayload, }: ConfirmationAndSubmissionStepProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export * from "./confirmation-and-submission-step";
2
+ export * from "./use-confirmation-and-submission-step";
@@ -0,0 +1,19 @@
1
+ import { SE } from "@shipengine/react-api";
2
+ import { WarehousePayload } from "../../../../components";
3
+ import { WalletPayload } from "../../../../components/templates/wallet-form";
4
+ type UseConfirmationAndSubmissionProps = {
5
+ onStepComplete: () => void;
6
+ };
7
+ export declare const useConfirmationAndSubmissionStep: ({ onStepComplete, }: UseConfirmationAndSubmissionProps) => {
8
+ createFundingSourceErrors: SE.CodedError[] | null;
9
+ createOnboardingSubmissionHandler: ({ carrierProfiles, fundingSourceTerms, }: {
10
+ carrierProfiles: SE.MetadataCarrierProfile[];
11
+ fundingSourceTerms: SE.MetadataRequiredTerm[];
12
+ }) => ({ address, creditCard, iovationBlackbox }: WalletPayload, warehousePayload: WarehousePayload) => Promise<void>;
13
+ isCreatingFundingSource: boolean;
14
+ isRegisteringCarriers: boolean;
15
+ isRegisteringCarriersSuccess: boolean;
16
+ registerCarrierErrors: SE.CodedError[] | null;
17
+ resetMutations: () => void;
18
+ };
19
+ export {};
@@ -0,0 +1,7 @@
1
+ import { SE } from "@shipengine/react-api";
2
+ import { WalletPayload } from "../../../../components/templates/wallet-form";
3
+ export type FundingStepProps = {
4
+ address: SE.Address;
5
+ onSubmit: (payload: WalletPayload) => void;
6
+ };
7
+ export declare const FundingStep: ({ address, onSubmit, }: FundingStepProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from "./funding-step";
@@ -15,6 +15,5 @@ export type ValidateAddress = ValidateWarehouse | ValidateBilling;
15
15
  export type OnboardingWizardProps = {
16
16
  defaultShipFromAddress?: ShipFromAddressStepProps["defaultShipFromAddress"];
17
17
  onComplete: () => void;
18
- partnerName?: string;
19
18
  };
20
- export declare const OnboardingWizard: ({ defaultShipFromAddress, onComplete: onWizardComplete, partnerName, }: OnboardingWizardProps) => import("@emotion/react/jsx-runtime").JSX.Element;
19
+ export declare const OnboardingWizard: ({ defaultShipFromAddress, onComplete: onWizardComplete, }: OnboardingWizardProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,5 +1,8 @@
1
1
  export declare const styles: {
2
2
  container: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
3
+ display: "grid";
4
+ gridTemplateRows: string;
5
+ minHeight: string;
3
6
  padding: number;
4
7
  };
5
8
  step: {
@@ -1,2 +1 @@
1
1
  export * from "./ship-from-address-step";
2
- export * from "./use-ship-from-address-step";
@@ -2,6 +2,7 @@ import { SE } from "@shipengine/react-api";
2
2
  import { WarehousePayload } from "../../../../components";
3
3
  export type ShipFromAddressStepProps = {
4
4
  defaultShipFromAddress?: Pick<SE.Warehouse, "name" | "isDefault" | "originAddress" | "returnAddress">;
5
- onSubmit: (payload: WarehousePayload) => Promise<void>;
5
+ onSubmit: (payload: WarehousePayload) => void;
6
+ warehousePayload?: WarehousePayload;
6
7
  };
7
- export declare const ShipFromAddressStep: ({ defaultShipFromAddress, onSubmit, }: ShipFromAddressStepProps) => import("@emotion/react/jsx-runtime").JSX.Element;
8
+ export declare const ShipFromAddressStep: ({ defaultShipFromAddress, warehousePayload, onSubmit, }: ShipFromAddressStepProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,5 +1,6 @@
1
1
  export type StepHeaderProps = {
2
- subtitle: string;
2
+ subtitle?: string;
3
3
  title: string;
4
+ tooltipMessage?: string;
4
5
  };
5
- export declare const StepHeader: ({ title, subtitle }: StepHeaderProps) => import("@emotion/react/jsx-runtime").JSX.Element;
6
+ export declare const StepHeader: ({ title, subtitle, tooltipMessage }: StepHeaderProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,18 +1,15 @@
1
1
  export declare const styles: {
2
+ header: () => {
3
+ alignItems: "center";
4
+ display: "flex";
5
+ justifyContent: "center";
6
+ };
2
7
  iconTooltip: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
3
8
  color: string;
4
- display: "inline-block";
5
9
  marginLeft: number;
6
- verticalAlign: string;
7
10
  };
8
11
  tooltipContainer: {
9
12
  maxWidth: string;
10
13
  textAlign: "left";
11
14
  };
12
- walletFormHeader: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
13
- margin: number;
14
- };
15
- walletFormTitle: {
16
- textAlign: "center";
17
- };
18
15
  };
@@ -0,0 +1 @@
1
+ export * from "./welcome-page";
@@ -0,0 +1,4 @@
1
+ export type CompletionPageProps = {
2
+ onContinue: () => void;
3
+ };
4
+ export declare const WelcomePage: ({ onContinue }: CompletionPageProps) => import("@emotion/react/jsx-runtime").JSX.Element;