@shipengine/elements 0.27.0 → 0.29.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 (27) hide show
  1. package/index.cjs +13821 -12807
  2. package/index.js +14081 -13070
  3. package/package.json +1 -1
  4. package/src/components/collapsible-panel/collapsible-panel.d.ts +9 -0
  5. package/src/components/collapsible-panel/collapsible-panel.styles.d.ts +27 -0
  6. package/src/components/collapsible-panel/index.d.ts +1 -0
  7. package/src/components/index.d.ts +1 -0
  8. package/src/components/label/label.styles.d.ts +1 -1
  9. package/src/components/save-status/save-status.d.ts +3 -3
  10. package/src/components/templates/account-settings/account-settings.d.ts +6 -0
  11. package/src/components/templates/account-settings/index.d.ts +1 -0
  12. package/src/components/templates/index.d.ts +1 -0
  13. package/src/components/templates/shipment-form/shipment-form.d.ts +2 -1
  14. package/src/elements/account-settings/account-settings.d.ts +621 -0
  15. package/src/elements/account-settings/index.d.ts +1 -0
  16. package/src/elements/configure-shipment/hooks/use-address.d.ts +1 -0
  17. package/src/elements/configure-shipment/hooks/use-shipment-form.d.ts +1 -0
  18. package/src/elements/index.d.ts +1 -0
  19. package/src/elements/list-carriers/list-carriers.d.ts +0 -602
  20. package/src/elements/manage-warehouses/manage-warehouses.d.ts +0 -602
  21. package/src/elements/onboarding/onboarding.d.ts +15 -0
  22. package/src/elements/purchase-label/purchase-label.d.ts +15 -0
  23. package/src/elements/view-shipment/view-shipment.d.ts +15 -0
  24. package/src/elements/void-label/void-label.d.ts +15 -0
  25. package/src/hooks/use-get-or-create-shipment.d.ts +4 -3
  26. package/src/locales/en/index.d.ts +15 -0
  27. package/src/utilities/shipengine/carrier.d.ts +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/elements",
3
- "version": "0.27.0",
3
+ "version": "0.29.0",
4
4
  "typedoc": {
5
5
  "entryPoint": "./src/index.ts",
6
6
  "readmeFile": "../../README.md",
@@ -0,0 +1,9 @@
1
+ import { WithChildrenCommonProps } from "@packlink/giger";
2
+ import { SE } from "@shipengine/alchemy";
3
+ export type CollapsiblePanelProps = WithChildrenCommonProps<{
4
+ errors?: SE.CodedError[] | null;
5
+ initialExpanded?: boolean;
6
+ isSaving?: boolean;
7
+ title?: string;
8
+ }>;
9
+ export declare const CollapsiblePanel: ({ errors, initialExpanded, isSaving, children, title, }: CollapsiblePanelProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,27 @@
1
+ export declare const styles: {
2
+ content: (theme: import("@packlink/giger-theme/dist/lib/Theme").Theme) => {
3
+ padding: string;
4
+ };
5
+ header: (theme: import("@packlink/giger-theme/dist/lib/Theme").Theme) => {
6
+ backgroundColor: string;
7
+ display: "flex";
8
+ height: number;
9
+ padding: string;
10
+ };
11
+ icon: (theme: import("@packlink/giger-theme/dist/lib/Theme").Theme) => {
12
+ color: "#006fbb";
13
+ };
14
+ link: (theme: import("@packlink/giger-theme/dist/lib/Theme").Theme) => {
15
+ ":hover": {
16
+ color: string;
17
+ textDecoration: string;
18
+ };
19
+ alignItems: "center";
20
+ color: string;
21
+ display: "flex";
22
+ fontWeight: number;
23
+ justifyContent: "space-between";
24
+ textDecoration: string;
25
+ width: string;
26
+ };
27
+ };
@@ -0,0 +1 @@
1
+ export * from "./collapsible-panel";
@@ -1,4 +1,5 @@
1
1
  export * as Templates from "./templates";
2
+ export * from "./collapsible-panel";
2
3
  export * from "./add-funds-form";
3
4
  export * from "./auto-funding-form";
4
5
  export * from "./button-group";
@@ -6,7 +6,7 @@ export declare const styles: ({ variant, spacing, }: {
6
6
  labelContainer: (theme: import("@packlink/giger-theme/dist/lib/Theme").Theme) => {
7
7
  alignItems: "center";
8
8
  display: "flex";
9
- flexDirection: "row" | "column" | "row-reverse";
9
+ flexDirection: "column" | "row" | "row-reverse";
10
10
  gap: number;
11
11
  justifyContent: "flex-start" | "space-between;";
12
12
  };
@@ -1,6 +1,6 @@
1
1
  import { SE } from "@shipengine/alchemy";
2
2
  export type SaveStatusProps = {
3
- errors: SE.CodedError[] | null;
4
- isSaving: boolean;
3
+ errors?: SE.CodedError[] | null;
4
+ isSaving?: boolean;
5
5
  };
6
- export declare const SaveStatus: ({ errors, isSaving }: SaveStatusProps) => import("@emotion/react/jsx-runtime").JSX.Element;
6
+ export declare const SaveStatus: ({ errors, isSaving }: SaveStatusProps) => import("@emotion/react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,6 @@
1
+ import { SE } from "@shipengine/alchemy";
2
+ export type AccountSettingsProps = {
3
+ carriers?: SE.Carrier[];
4
+ onSaveSettings: () => void;
5
+ };
6
+ export declare const AccountSettings: ({ carriers, ...rest }: AccountSettingsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from "./account-settings";
@@ -1,3 +1,4 @@
1
+ export * from "./account-settings";
1
2
  export * from "./add-carrier-form";
2
3
  export * from "./address-display";
3
4
  export * from "./address-form";
@@ -9,6 +9,7 @@ export type OnChangeAddressOptions = {
9
9
  };
10
10
  export type ShipmentFormMode = "browse_rates" | "select_service";
11
11
  export type ShipmentFormProps = {
12
+ addressLoading: boolean;
12
13
  addressPreference?: AddressPreference;
13
14
  carriers?: SE.Carrier[];
14
15
  charsetWarning?: CharsetWarning;
@@ -48,4 +49,4 @@ export type ShipmentFormFeatures = {
48
49
  selectService?: boolean;
49
50
  shippingPresets?: boolean;
50
51
  };
51
- export declare const ShipmentForm: ({ addressPreference, charsetWarning, carriers, customPackageTypes, errors, features, hydrateRef, insuranceAccount, isLoading, onApplyPreset, onChangeAddress, onChangeMode, onDirty, onSubmit, onSubmitParseShipTo, onToggleAddressPreferenceDisclosure, onUpdateCustoms, salesOrder, shipment, shippingPresets, warehouseId, warehouses, }: ShipmentFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
52
+ export declare const ShipmentForm: ({ addressLoading, addressPreference, charsetWarning, carriers, customPackageTypes, errors, features, hydrateRef, insuranceAccount, isLoading, onApplyPreset, onChangeAddress, onChangeMode, onDirty, onSubmit, onSubmitParseShipTo, onToggleAddressPreferenceDisclosure, onUpdateCustoms, salesOrder, shipment, shippingPresets, warehouseId, warehouses, }: ShipmentFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;