@shipengine/elements 0.33.0 → 0.35.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 (105) hide show
  1. package/index.cjs +1975 -493
  2. package/index.js +1970 -496
  3. package/package.json +1 -1
  4. package/src/components/add-funds-form/add-funds-form.d.ts +22 -2
  5. package/src/components/add-funds-form/add-funds-schema.d.ts +26 -0
  6. package/src/components/address-preference-context/address-preference-context.d.ts +8 -0
  7. package/src/components/auto-funding-form/auto-funding-form.d.ts +22 -0
  8. package/src/components/auto-funding-form/auto-funding-schema.d.ts +17 -0
  9. package/src/components/button-group/button-group.d.ts +29 -0
  10. package/src/components/carrier-balance/carrier-balance.d.ts +23 -0
  11. package/src/components/collapsible-panel/collapsible-panel.d.ts +32 -0
  12. package/src/components/copy/copy-button.d.ts +4 -0
  13. package/src/components/cube/cube.d.ts +16 -0
  14. package/src/components/date-range-combo/date-range-combo.d.ts +14 -0
  15. package/src/components/date-range-select/date-range-select.d.ts +6 -0
  16. package/src/components/error-fallback/error-fallback.d.ts +12 -1
  17. package/src/components/field-label/field-label.d.ts +10 -0
  18. package/src/components/form-portal/form-portal.d.ts +9 -0
  19. package/src/components/fund-and-purchase/fund-and-purchase.d.ts +13 -0
  20. package/src/components/inline-label/inline-label.d.ts +10 -0
  21. package/src/components/items-breakdown/items-breakdown.d.ts +15 -0
  22. package/src/components/label-layout/label-layout.d.ts +5 -0
  23. package/src/components/link-action/link-action.d.ts +10 -0
  24. package/src/components/loader/loader.d.ts +5 -0
  25. package/src/components/manage-funding/manage-funding.d.ts +26 -0
  26. package/src/components/payment-method-settings/payment-method-settings.d.ts +19 -0
  27. package/src/components/portal/portal.d.ts +10 -1
  28. package/src/components/powered-by-shipengine/powered-by-shipengine.d.ts +8 -0
  29. package/src/components/section/section.d.ts +10 -0
  30. package/src/components/spacer/spacer.d.ts +30 -0
  31. package/src/components/spread/spread.d.ts +10 -0
  32. package/src/components/story-notes/story-notes.d.ts +10 -1
  33. package/src/components/templates/carrier-terms-form/carrier-terms-form.styles.d.ts +1 -0
  34. package/src/components/templates/landing-page/landing-page.d.ts +2 -1
  35. package/src/components/templates/onboarding/onboarding.d.ts +3 -1
  36. package/src/components/templates/onboarding/onboarding.styles.d.ts +10 -0
  37. package/src/components/templates/rate-form/rate-form.d.ts +2 -2
  38. package/src/components/templates/shipment-form/shipment-form.d.ts +2 -1
  39. package/src/components/templates/shipment-form/shipment-schema.d.ts +179 -17
  40. package/src/components/templates/warehouse-form/warehouse-form.d.ts +1 -1
  41. package/src/components/unit-settings/unit-settings.d.ts +5 -0
  42. package/src/constants/shipengine/address.d.ts +75 -0
  43. package/src/elements/account-settings/account-settings.d.ts +139 -3
  44. package/src/elements/configure-shipment/configure-shipment.d.ts +1 -0
  45. package/src/elements/configure-shipment/hooks/use-rates-form.d.ts +2 -2
  46. package/src/elements/configure-shipment/hooks/use-rates-with-cache.d.ts +1 -1
  47. package/src/elements/configure-shipment/hooks/use-request-rates.d.ts +1 -1
  48. package/src/elements/configure-shipment/hooks/use-shipment-form.d.ts +1 -0
  49. package/src/elements/list-carriers/list-carriers.d.ts +31 -0
  50. package/src/elements/manage-warehouses/manage-warehouses.d.ts +34 -0
  51. package/src/elements/onboarding/onboarding.d.ts +99 -5
  52. package/src/elements/purchase-label/purchase-label.d.ts +194 -9
  53. package/src/elements/shipengine-workflow/label-workflow.d.ts +138 -2
  54. package/src/elements/view-shipment/view-shipment.d.ts +131 -4
  55. package/src/elements/void-label/void-label.d.ts +137 -5
  56. package/src/extensions/zod.d.ts +5 -0
  57. package/src/factories/shipengine/package.d.ts +11 -0
  58. package/src/features/wallet-history/wallet-history.d.ts +5 -0
  59. package/src/hooks/index.d.ts +1 -0
  60. package/src/hooks/options/use-confirmation-options.d.ts +7 -0
  61. package/src/hooks/options/use-country-code-options.d.ts +16 -3
  62. package/src/hooks/options/use-customs-contents-options.d.ts +7 -0
  63. package/src/hooks/options/use-customs-non-delivery-options.d.ts +7 -0
  64. package/src/hooks/options/use-date-range-options.d.ts +22 -1
  65. package/src/hooks/options/use-expiration-month-options.d.ts +7 -0
  66. package/src/hooks/options/use-insurance-provider-options.d.ts +7 -0
  67. package/src/hooks/options/use-package-options.d.ts +7 -0
  68. package/src/hooks/options/use-rate-options.d.ts +11 -1
  69. package/src/hooks/options/use-service-code-options.d.ts +7 -0
  70. package/src/hooks/options/use-shipment-metadata.d.ts +8 -0
  71. package/src/hooks/options/use-shipping-presets-options.d.ts +10 -0
  72. package/src/hooks/options/use-state-code-options.d.ts +7 -0
  73. package/src/hooks/options/use-warehouse-options.d.ts +7 -0
  74. package/src/hooks/use-address-validation.d.ts +7 -0
  75. package/src/hooks/use-black-box-detection.d.ts +17 -1
  76. package/src/hooks/use-carrier-metadata.d.ts +7 -0
  77. package/src/hooks/use-nested-form.d.ts +9 -0
  78. package/src/hooks/use-page-layout.d.ts +25 -1
  79. package/src/hooks/use-root-portal.d.ts +15 -2
  80. package/src/hooks/use-run-once-on-true.d.ts +5 -1
  81. package/src/hooks/use-scrub-errors.d.ts +6 -3
  82. package/src/hooks/use-toggle.d.ts +5 -1
  83. package/src/locales/en/index.d.ts +11 -3
  84. package/src/schemas/shipengine/money.d.ts +4 -0
  85. package/src/schemas/shipengine/phone.d.ts +8 -0
  86. package/src/types/carrier-metadata.d.ts +20 -0
  87. package/src/utilities/create-dictionary.d.ts +4 -0
  88. package/src/utilities/date.d.ts +51 -2
  89. package/src/utilities/error.d.ts +16 -2
  90. package/src/utilities/feature-flags.d.ts +181 -0
  91. package/src/utilities/form-logger.d.ts +4 -0
  92. package/src/utilities/index.d.ts +1 -1
  93. package/src/utilities/money.d.ts +25 -0
  94. package/src/utilities/predicates/isString.d.ts +7 -0
  95. package/src/utilities/rates.d.ts +22 -1
  96. package/src/utilities/shipengine/address.d.ts +31 -0
  97. package/src/utilities/shipengine/carrier.d.ts +21 -0
  98. package/src/utilities/shipengine/dimensions.d.ts +27 -4
  99. package/src/utilities/shipengine/package.d.ts +4 -0
  100. package/src/utilities/shipengine/sales-order.d.ts +26 -0
  101. package/src/utilities/shipengine/shipment.d.ts +12 -0
  102. package/src/utilities/shipengine/weight.d.ts +92 -2
  103. package/src/utilities/string.d.ts +7 -0
  104. package/src/utilities/styles.d.ts +4 -0
  105. package/src/utilities/validation.d.ts +8 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/elements",
3
- "version": "0.33.0",
3
+ "version": "0.35.0",
4
4
  "peerDependencies": {
5
5
  "@packlink/giger": "*",
6
6
  "react-i18next": "*",
@@ -1,5 +1,12 @@
1
1
  /// <reference types="react" />
2
+ import { SE } from "@shipengine/alchemy";
3
+ /**
4
+ * @internal
5
+ *
6
+ * # Add Funds Form Provider
7
+ */
2
8
  export type AddFundsFormProvider = {
9
+ error?: SE.CodedError[] | null;
3
10
  isCustomAmount?: boolean;
4
11
  isSubmitted?: boolean;
5
12
  isSubmitting?: boolean;
@@ -7,6 +14,13 @@ export type AddFundsFormProvider = {
7
14
  selectedAmount?: number;
8
15
  submit?: () => void;
9
16
  };
17
+ /**
18
+ * @internal
19
+ *
20
+ * # Add Funds Form Props
21
+ *
22
+ * @see {@link AddFundsForm | The `<AddFundsForm />` component using these props}
23
+ */
10
24
  export type AddFundsFormProps = {
11
25
  carrierId: string;
12
26
  children?: (addFundsForm: AddFundsFormProvider) => React.ReactElement;
@@ -15,8 +29,14 @@ export type AddFundsFormProps = {
15
29
  onSuccess?: () => void;
16
30
  };
17
31
  /**
18
- * Form for adding funds to a carrier's account.
32
+ * @internal
33
+ *
34
+ * # Add Funds Form Component
35
+ *
36
+ * - Form for adding funds to a carrier's account.
37
+ *
38
+ * If a `render child` is provided, external control is assumed and the cancel / submit buttons are hidden.
19
39
  *
20
- * If a render child is provided, external control is assumed and the cancel / submit buttons are hidden.
40
+ * @see {@link AddFundsFormProps | The props that are passed into the `<AddFundsForm />` component}
21
41
  */
22
42
  export declare const AddFundsForm: ({ carrierId, children, onCancel, onSuccess, minimumAmount, }: AddFundsFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,4 +1,15 @@
1
1
  import { z } from "zod";
2
+ /**
3
+ * @internal
4
+ *
5
+ * # Add Funds Form Schema
6
+ *
7
+ * - A util function to create a dynamic form schema based on the mininum amount
8
+ * passed into the function.
9
+ *
10
+ * @param minimumAmount - The minimum amount that can be added to the account. This defaults to
11
+ * 10 if nothing is passed in.
12
+ */
2
13
  export declare const getAddFundsSchema: (minimumAmount?: number) => z.ZodEffects<z.ZodObject<{
3
14
  funds: z.ZodObject<z.extendShape<{
4
15
  amount: z.ZodNumber;
@@ -31,7 +42,22 @@ export declare const getAddFundsSchema: (minimumAmount?: number) => z.ZodEffects
31
42
  currency: import("@shipengine/js-api").Currency;
32
43
  };
33
44
  }>;
45
+ /**
46
+ * @internal
47
+ *
48
+ * # Add Funds Form Schema
49
+ */
34
50
  type AddFundsFormSchema = ReturnType<typeof getAddFundsSchema>;
51
+ /**
52
+ * @internal
53
+ *
54
+ * # Add Funds Form Schema
55
+ */
35
56
  export type AddFundsFormFields = z.input<AddFundsFormSchema>;
57
+ /**
58
+ * @internal
59
+ *
60
+ * # Add Funds Form Schema
61
+ */
36
62
  export type AddFundsFormPayload = z.output<AddFundsFormSchema>;
37
63
  export {};
@@ -30,9 +30,17 @@ export type AddressPreferenceProviderProps = {
30
30
  passengerData: InternalValidateAddressPayload["data"];
31
31
  returnAddress?: SE.Address | undefined;
32
32
  }) => Promise<void> | void;
33
+ userInput?: {
34
+ originAddress: SE.Address;
35
+ returnAddress?: SE.Address | undefined;
36
+ };
33
37
  };
34
38
  export type AddressPreferenceValue = {
35
39
  data: InternalValidateAddressPayload["data"];
40
+ userInput?: {
41
+ originAddress: SE.Address;
42
+ returnAddress?: SE.Address | undefined;
43
+ };
36
44
  validateAddress: (payload: InternalValidateAddressPayload) => Promise<void>;
37
45
  validationPreference?: ValidationPreference;
38
46
  };
@@ -1,10 +1,32 @@
1
+ /**
2
+ * @internal
3
+ *
4
+ * # Auto Funding Form Props
5
+ *
6
+ * - These are the base props that will be passed into the `<AutoFundingForm />` component.
7
+ *
8
+ * @see {@link AutoFundingForm | The `<AutoFundingForm />` component}
9
+ */
1
10
  export type AutoFundingFormProps = {
11
+ /**
12
+ * `carrierId` is the unique identifier for the carrier provider you wish to configure
13
+ * auto-funding rules for.
14
+ */
2
15
  carrierId: string;
3
16
  };
4
17
  /**
18
+ * @internal
19
+ *
20
+ * # Auto Funding Form Component
21
+ *
5
22
  * This form that allows users to enable or disable auto funding, and
6
23
  * configure auto funding rules in ShipEngine API.
7
24
  *
8
25
  * @param carrierId The carrierId of the carrier provider you wish to configure auto-funding rules for.
26
+ *
27
+ * @returns Element A React element that renders the Auto Funding Form allowing users to configure
28
+ * auto-funding rules for a given carrier provider.
29
+ *
30
+ * @see {@link AutoFundingFormProps | The props that are passed into the `<AutoFundingForm />` component}
9
31
  */
10
32
  export declare const AutoFundingForm: ({ carrierId }: AutoFundingFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,4 +1,11 @@
1
1
  import { z } from "zod";
2
+ /**
3
+ * @internal
4
+ *
5
+ * # Auto Funding Form Schema
6
+ *
7
+ * @see {@link AutoFundingForm | Auto Funding Form component using this schema}
8
+ * */
2
9
  export declare const autoFundingSchema: z.ZodObject<{
3
10
  isEnabled: z.ZodBoolean;
4
11
  lowBalancePurchaseThreshold: z.ZodObject<z.extendShape<{
@@ -49,5 +56,15 @@ export declare const autoFundingSchema: z.ZodObject<{
49
56
  currency: import("@shipengine/js-api").Currency;
50
57
  };
51
58
  }>;
59
+ /**
60
+ * @internal
61
+ *
62
+ * # Auto Funding Form Fields
63
+ */
52
64
  export type AutoFundingFormFields = z.input<typeof autoFundingSchema>;
65
+ /**
66
+ * @internal
67
+ *
68
+ * # Auto Funding Form Payload
69
+ */
53
70
  export type AutoFundingFormPayload = z.output<typeof autoFundingSchema>;
@@ -1,7 +1,36 @@
1
1
  import * as React from "react";
2
+ /**
3
+ * @internal
4
+ *
5
+ * # Button Group Props
6
+ *
7
+ * - These are the base props that will be passed into the `<ButtonGroup />` component.
8
+ *
9
+ * @see {@link ButtonGroup | This prop types usage in the `<ButtonGroup />` component}
10
+ */
2
11
  export type ButtonGroupProps = {
12
+ /**
13
+ * `children` is the list of buttons you wish to group together.
14
+ */
3
15
  children: React.ReactNode;
16
+ /**
17
+ * `justify` is the optional alignment of the buttons within the group.
18
+ */
4
19
  justify?: "start" | "center" | "end";
20
+ /**
21
+ * `toolbar` is an optional boolean that will be used to determine if the buttons should be
22
+ * arranged in an optional way to display in a toolbar.
23
+ */
5
24
  toolbar?: boolean;
6
25
  } & React.ComponentPropsWithoutRef<"div">;
26
+ /**
27
+ * @internal
28
+ *
29
+ * # Button Group Component
30
+ *
31
+ * - The `<ButtonGroup />` is a composition component used to group buttons together that are
32
+ * passed in as children.
33
+ *
34
+ * @see {@link ButtonGroupProps | The props that are passed into the `<ButtonGroup />` component}
35
+ */
7
36
  export declare const ButtonGroup: ({ children, justify, toolbar, ...props }: ButtonGroupProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,5 +1,28 @@
1
+ /**
2
+ * @internal
3
+ *
4
+ * # Carrier Balance Props
5
+ *
6
+ * @see {@link CarrierBalance | The `<CarrierBalance />` component}
7
+ */
1
8
  export type CarrierBalanceProps = {
9
+ /**
10
+ * `balance` is the current balance for the carrier if there is one.
11
+ */
2
12
  balance?: number;
13
+ /**
14
+ * `carrierId` is the unique identifier for the carrier provider you wish to get the balance for.
15
+ */
3
16
  carrierId?: string;
4
17
  };
18
+ /**
19
+ * @internal
20
+ *
21
+ * # Carrier Balance
22
+ *
23
+ * - The `<CarrierBalance />` component is used to display the current balance for a given
24
+ * carrier provider.
25
+ *
26
+ * @see {@link CarrierBalanceProps | The props for the `<CarrierBalance />` component}
27
+ */
5
28
  export declare const CarrierBalance: ({ balance, carrierId }: CarrierBalanceProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,9 +1,41 @@
1
1
  import { WithChildrenCommonProps } from "@packlink/giger";
2
2
  import { SE } from "@shipengine/alchemy";
3
+ /**
4
+ * @internal
5
+ *
6
+ * # Collapsible Panel Props
7
+ *
8
+ * @see {@link CollapsiblePanel | This prop types usage in the `<CollapsiblePanel />` component}
9
+ */
3
10
  export type CollapsiblePanelProps = WithChildrenCommonProps<{
11
+ /**
12
+ * `errors` is an optional array of ShipEngine errors that will be displayed in
13
+ * the `<SaveStatus />`.
14
+ */
4
15
  errors?: SE.CodedError[] | null;
16
+ /**
17
+ * `initialExpanded` is an optional boolean that will be used to determine if the panel
18
+ * should be expanded or collapsed by default.
19
+ */
5
20
  initialExpanded?: boolean;
21
+ /**
22
+ * `isSaving` is an optional boolean that will be used to determine if the panel
23
+ * should display a bust state while work is being done.
24
+ */
6
25
  isSaving?: boolean;
26
+ /**
27
+ * `title` is an optional string that will be used to display the title of the panel.
28
+ */
7
29
  title?: string;
8
30
  }>;
31
+ /**
32
+ * @internal
33
+ *
34
+ * # Collapsible Panel Component
35
+ *
36
+ * - The `<CollapsiblePanel />` composition component is used to group content together that can
37
+ * be expanded or collapsed.
38
+ *
39
+ * @see {@link CollapsiblePanelProps | The props that are passed into the `<CollapsiblePanel />` component}
40
+ */
9
41
  export declare const CollapsiblePanel: ({ errors, initialExpanded, isSaving, children, title, }: CollapsiblePanelProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * @internal
3
+ *
4
+ * # Copy Button
5
+ *
2
6
  * A copy button that copies the content to the users' clipboard and displays a
3
7
  * checkmark on click.
4
8
  */
@@ -1,5 +1,21 @@
1
1
  /// <reference types="react" />
2
+ /**
3
+ * @internal
4
+ *
5
+ * # Cube Props
6
+ *
7
+ * @see {@link Cube | The `<Cube />` component}
8
+ */
2
9
  export type CubePropTypes = {
3
10
  animate?: boolean;
4
11
  } & React.ComponentPropsWithoutRef<"div">;
12
+ /**
13
+ * @internal
14
+ *
15
+ * # Cube Component
16
+ *
17
+ * - This is a spinning cube that is used to display a loading state.
18
+ *
19
+ * @see {@link CubePropTypes | The props that are passed into the `<Cube />` component}
20
+ */
5
21
  export declare const Cube: ({ animate, ...props }: CubePropTypes) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,5 +1,12 @@
1
1
  /// <reference types="react" />
2
2
  import { DateRange, DateRangeOption } from "../../hooks";
3
+ /**
4
+ * @internal
5
+ *
6
+ * # Date Range Combo Props
7
+ *
8
+ * @see {@link DateRangeCombo | This prop types usage in the `<DateRangeCombo />` component}
9
+ */
3
10
  export type DateRangeComboProps = {
4
11
  children?: (renderedComponent: JSX.Element) => React.ReactNode;
5
12
  onChange: (nextOption: DateRangeOption | undefined, nextCustomRange: [Date, Date] | undefined) => Promise<void> | void;
@@ -9,4 +16,11 @@ export type DateRangeComboProps = {
9
16
  selectedOption?: DateRangeOption;
10
17
  };
11
18
  };
19
+ /**
20
+ * @internal
21
+ *
22
+ * # Date Range Combo Component
23
+ *
24
+ * @see {@link DateRangeComboProps | This is the type of the props used in the `<DateRangeCombo />` component}
25
+ */
12
26
  export declare const DateRangeCombo: ({ children: renderChildren, onChange, options, values: { customRange, selectedOption }, }: DateRangeComboProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,8 +1,14 @@
1
1
  import { DateRangeOption } from "../../hooks";
2
+ /**
3
+ * @internal
4
+ */
2
5
  export type DateRangeSelectProps = {
3
6
  fullWidth?: boolean;
4
7
  onChange: (nextOption: DateRangeOption) => void | Promise<void>;
5
8
  options: DateRangeOption[];
6
9
  value?: DateRangeOption;
7
10
  };
11
+ /**
12
+ * @internal
13
+ */
8
14
  export declare const DateRangeSelect: ({ fullWidth, onChange, options, value }: DateRangeSelectProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,9 +1,20 @@
1
+ /**
2
+ * @internal
3
+ *
4
+ * # Error Fallback Props
5
+ *
6
+ * @see {@link ErrorFallback | The `<ErrorFallback />` component}
7
+ */
1
8
  export interface ErrorFallbackProps {
2
9
  error: Error | string;
3
10
  }
4
11
  /**
12
+ * @internal
13
+ *
14
+ * # Error Fallback Component
15
+ *
5
16
  * Fallback component for the Elements ErrorBoundary
6
17
  *
7
- * @see {@link registerElement}
18
+ * @see {@link ErrorFallbackProps | The props that are passed into the `<ErrorFallback />` component}
8
19
  */
9
20
  export declare const ErrorFallback: ({ error }: ErrorFallbackProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,4 +1,9 @@
1
1
  /// <reference types="react" />
2
+ /**
3
+ * @internal
4
+ *
5
+ * # Field Label Props
6
+ */
2
7
  export type FieldLabelProps = {
3
8
  children: React.ReactNode;
4
9
  label?: string;
@@ -6,4 +11,9 @@ export type FieldLabelProps = {
6
11
  weight?: "bold" | "normal";
7
12
  withInput?: boolean;
8
13
  };
14
+ /**
15
+ * @internal
16
+ *
17
+ * # Field Label Component
18
+ */
9
19
  export declare const FieldLabel: ({ children, label, subLabel, weight, withInput, }: FieldLabelProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,6 +1,11 @@
1
1
  /// <reference types="react" />
2
2
  import { Interpolation, Theme } from "@emotion/react";
3
3
  declare const variants: readonly ["well"];
4
+ /**
5
+ * @internal
6
+ *
7
+ * # Form Portal Props
8
+ */
4
9
  type FormPortalProps = {
5
10
  children: React.ReactNode;
6
11
  css?: Interpolation<Theme>;
@@ -9,6 +14,10 @@ type FormPortalProps = {
9
14
  variant?: typeof variants[number];
10
15
  };
11
16
  /**
17
+ * @internal
18
+ *
19
+ * # Form Portal Component
20
+ *
12
21
  * A drop-in replacement for the `<form>` tag that allows nested forms.
13
22
  *
14
23
  * Via portals, the <form> tag is mounted as a sibling of the app root. The form's
@@ -1,4 +1,11 @@
1
1
  import { Control } from "react-hook-form";
2
+ /**
3
+ * @internal
4
+ *
5
+ * # Fund And Purchase Props
6
+ *
7
+ * @see {@link FundAndPurchase | The `<FundAndPurchase />` component using these props}
8
+ */
2
9
  export type FundAndPurchaseProps = {
3
10
  balance?: number;
4
11
  carrierId?: string;
@@ -12,8 +19,14 @@ export type FundAndPurchaseProps = {
12
19
  purchaseAmount: number;
13
20
  };
14
21
  /**
22
+ * @internal
23
+ *
24
+ * # Fund And Purchase Component
25
+ *
15
26
  * Fund and Purchase handles the label purchase submission UX, ensuring that a user
16
27
  * has the necessary funds available and can add them if not. It allows a single button
17
28
  * to submit the funding form followed by the purchase form.
29
+ *
30
+ * @see {@link FundAndPurchaseProps | The props that are passed into the `<FundAndPurchase />` component}
18
31
  */
19
32
  export declare const FundAndPurchase: ({ balance: uspsBalance, carrierId, className, control, disabled, isFundingEnabled, isFundingRequired, onSave, purchaseAmount, onPurchase, }: FundAndPurchaseProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,10 +1,20 @@
1
1
  /// <reference types="react" />
2
2
  import { WithConditionalCSSProp } from "@emotion/react/types/jsx-namespace";
3
3
  import { ITypographyProps } from "@packlink/giger";
4
+ /**
5
+ * @internal
6
+ *
7
+ * # Inline Label Props
8
+ */
4
9
  export type InlineLabelProps = {
5
10
  children: React.ReactElement;
6
11
  isLabelRight?: boolean;
7
12
  label: string;
8
13
  labelProps?: WithConditionalCSSProp<ITypographyProps<"span">>;
9
14
  };
15
+ /**
16
+ * @internal
17
+ *
18
+ * # Inline Label Component
19
+ */
10
20
  export declare const InlineLabel: ({ children, label, isLabelRight, labelProps, }: InlineLabelProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
@@ -1,4 +1,9 @@
1
1
  import { SE } from "@shipengine/alchemy";
2
+ /**
3
+ * @internal
4
+ *
5
+ * # Items Breakdown - Item Props
6
+ */
2
7
  export type Item = {
3
8
  detail: string;
4
9
  name: string;
@@ -8,7 +13,17 @@ export type Item = {
8
13
  totalValue?: SE.Money;
9
14
  value?: SE.Money;
10
15
  };
16
+ /**
17
+ * @internal
18
+ *
19
+ * # Items Breakdown Props
20
+ */
11
21
  export type ItemsBreakdownProps = {
12
22
  items: Item[];
13
23
  };
24
+ /**
25
+ * @internal
26
+ *
27
+ * # Items Breakdown Component
28
+ */
14
29
  export declare const ItemsBreakdown: ({ items }: ItemsBreakdownProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,4 +1,9 @@
1
1
  export type LabelLayoutProps = {
2
2
  display: "settings" | "purchase";
3
3
  };
4
+ /**
5
+ * @namespace LabelLayout
6
+ *
7
+ * # Label Layout Component
8
+ */
4
9
  export declare const LabelLayout: ({ display }: LabelLayoutProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -7,10 +7,20 @@ declare const icons: {
7
7
  readonly download: IconNames.DOWNLOAD;
8
8
  readonly retry: IconNames.CIRCULAR_ARROW;
9
9
  };
10
+ /**
11
+ * @internal
12
+ *
13
+ * # Link Action Props
14
+ */
10
15
  export type LinkActionProps = {
11
16
  icon?: keyof typeof icons;
12
17
  isBold?: boolean;
13
18
  title: string;
14
19
  } & ILinkProps;
20
+ /**
21
+ * @internal
22
+ *
23
+ * # Link Action Component
24
+ */
15
25
  export declare const LinkAction: ({ css, icon, isDisabled, isLoading, title, isBold, ...props }: LinkActionProps) => import("@emotion/react/jsx-runtime").JSX.Element;
16
26
  export {};
@@ -1,2 +1,7 @@
1
1
  import { ISpinnerProps } from "@packlink/giger";
2
+ /**
3
+ * @internal
4
+ *
5
+ * # Loader Component
6
+ */
2
7
  export declare const Loader: (props: ISpinnerProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,4 +1,30 @@
1
+ /**
2
+ # Manage Funding Props
3
+ *
4
+ * - These are the base props that will be passed into the `<ManageFunding />` component.
5
+ *
6
+ * @see {@link ManageFunding | The `<ManageFunding />` component}
7
+ */
1
8
  export type ManageFundingProps = {
9
+ /**
10
+ * `carrierId` is the unique identifier for the carrier provider you wish to manage funding for.
11
+ */
2
12
  carrierId: string;
3
13
  };
14
+ /**
15
+ * @namespace ManageFunding
16
+ *
17
+ * # Manage Funding Component
18
+ *
19
+ * - The `<ManageFunding />` component is used to manage funding rules and add funds to a carrier
20
+ * account, and is composed in the `<AccountSettings />` component.
21
+ *
22
+ * @param ManageFundingProps The base props that will be passed into the `<ManageFunding />` component.
23
+ *
24
+ * @returns Element A React element that renders the `<ManageFunding />` component allowing users
25
+ * manage funding rules and add funds to their carrier accounts.
26
+ *
27
+ * @see {@link ManageFundingProps | The props that are passed into the `<ManageFunding />` component}
28
+ * @see {@link AccountSettings.Element | The `<AccountSettings />` component renders the `<ManageFunding />` component}
29
+ */
4
30
  export declare const ManageFunding: ({ carrierId }: ManageFundingProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1 +1,20 @@
1
+ /**
2
+ * # Payment Method Settings Component
3
+ *
4
+ * - The `<PaymentMethodSettings />` component is used to manage the users payment information
5
+ * and is composed in the `<AccountSettings />` component. For example, users can update their
6
+ * billing information.
7
+ *
8
+ * @returns Elements A React element that renders the `<PaymentMethodSettings />` component
9
+ * allowing uses to configure their payment settings.
10
+ *
11
+ * @example
12
+ * ```tsx
13
+ * <PaymentMethodSettings />
14
+ * ```
15
+ *
16
+ * <br />
17
+ *
18
+ * @see {@link AccountSettings.Element | The `<AccountSettings />` component renders the `<PaymentMethodSettings />` component}
19
+ */
1
20
  export declare const PaymentMethodSettings: () => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,10 +1,19 @@
1
1
  /// <reference types="react" />
2
+ /**
3
+ * @internal
4
+ *
5
+ * # Portal Props
6
+ */
2
7
  export type PortalProps<T> = {
3
8
  children: React.ReactNode;
4
9
  target?: React.RefObject<T> | HTMLElement | null;
5
10
  };
6
11
  /**
7
- * A no-frills wrapper around React.createPortal for more elegant DOM composition
12
+ * @internal
13
+ *
14
+ * # Portal
15
+ *
16
+ * - A no-frills wrapper around React.createPortal for more elegant DOM composition
8
17
  *
9
18
  * @category Components
10
19
  *
@@ -1 +1,9 @@
1
+ /**
2
+ * @internal
3
+ *
4
+ * # Powered By ShipEngine Component
5
+ *
6
+ * - The `<PoweredByShipEngine />` composition component is used to render the
7
+ * "Powered By ShipEngine" logo throughout the various elements.
8
+ */
1
9
  export declare const PoweredByShipEngine: () => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,5 +1,10 @@
1
1
  /// <reference types="react" />
2
2
  import { WithChildrenCommonProps } from "@packlink/giger";
3
+ /**
4
+ * @internal
5
+ *
6
+ * # Section Props
7
+ */
3
8
  export type SectionProps = WithChildrenCommonProps<{
4
9
  bold?: boolean;
5
10
  /** Element to render at the right part of the summary */
@@ -7,4 +12,9 @@ export type SectionProps = WithChildrenCommonProps<{
7
12
  /** Title to show */
8
13
  title?: string;
9
14
  }>;
15
+ /**
16
+ * @internal
17
+ *
18
+ * # Section Component
19
+ */
10
20
  export declare const Section: ({ bold, title, children, rightContent, ...rest }: SectionProps) => import("@emotion/react/jsx-runtime").JSX.Element;