@shipengine/elements 0.18.0 → 0.19.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.
@@ -0,0 +1 @@
1
+ export declare const HistoryActions: () => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const styles: Record<"dateRangeInput", import("@emotion/serialize").Interpolation<import("@packlink/brands/dist/js/theme/Theme").Theme>>;
@@ -0,0 +1 @@
1
+ export * from "./history-actions";
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ import { WalletTransactionHistory } from "@shipengine/api";
3
+ export type HistoryBodyProps = {
4
+ historyData: WalletTransactionHistory;
5
+ };
6
+ export declare const HistoryBody: React.FC<HistoryBodyProps>;
@@ -0,0 +1 @@
1
+ export * from "./history-body";
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ import { WalletTransactionHistory } from "@shipengine/api";
3
+ export type HistoryListProps = {
4
+ historyData: WalletTransactionHistory;
5
+ };
6
+ /**
7
+ * This component is the list of events that represent the history of a
8
+ * specific entity. The events are displayed in reverse chronological order.
9
+ *
10
+ * @param historyData The history data to display.
11
+ */
12
+ export declare const HistoryList: React.FC<HistoryListProps>;
@@ -0,0 +1 @@
1
+ export * from "./history-list";
@@ -0,0 +1,6 @@
1
+ import { FC } from "react";
2
+ export type HistoryRowProps = {
3
+ key: number;
4
+ rowItem: number;
5
+ };
6
+ export declare const HistoryRow: FC<HistoryRowProps>;
@@ -0,0 +1 @@
1
+ export * from "./history-row";
@@ -0,0 +1,11 @@
1
+ import * as React from "react";
2
+ import { HistoryBodyProps } from "./history-body";
3
+ import { HistoryListProps } from "./history-list";
4
+ import { HistoryRowProps } from "./history-row";
5
+ export type HistoryType = React.FC & {
6
+ Actions: React.FC;
7
+ Body: React.FC<HistoryBodyProps>;
8
+ List: React.FC<HistoryListProps>;
9
+ Row: React.FC<HistoryRowProps>;
10
+ };
11
+ export declare const History: HistoryType;
@@ -0,0 +1 @@
1
+ export * from "./history";
@@ -16,6 +16,7 @@ export * from "./suspend-sales-order";
16
16
  export * from "./shipment-form";
17
17
  export * from "./shipment";
18
18
  export * from "./suspend-shipment";
19
+ export * from "./wallet-history";
19
20
  export * from "./warehouse-form";
20
21
  export * from "./void-label";
21
22
  export * from "./wallet-form";
@@ -1,10 +1,13 @@
1
1
  import { SE } from "@shipengine/api";
2
2
  import { Templates } from "../../../components";
3
+ import { WarehousePayload } from "../manage-warehouses";
4
+ import { WarehousePreference } from "../warehouse-preference-wizard";
3
5
  export type OnboardingProps = {
4
6
  carriers: SE.Carrier[];
5
7
  createWarehouse: (payload: Partial<SE.Warehouse>) => Promise<SE.Warehouse>;
6
8
  onCarrierCreated: () => Promise<void>;
7
9
  onCompleteOnboarding: () => void;
10
+ onValidateWarehouse: (warehouse: WarehousePayload) => Promise<WarehousePreference>;
8
11
  onWarehouseCreated: () => Promise<void>;
9
12
  registerDhlCarrier: (payload: SE.CarrierConnection) => Promise<void>;
10
13
  registerDhlCarrierErrors: SE.CodedError[] | null;
@@ -12,6 +15,9 @@ export type OnboardingProps = {
12
15
  registerStampsCarrierErrors: SE.CodedError[] | null;
13
16
  registerUpsCarrier: (payload: SE.CarrierConnection) => Promise<void>;
14
17
  registerUpsCarrierErrors: SE.CodedError[] | null;
18
+ setWarehousePreference: (warehousePreference?: WarehousePreference) => void;
19
+ validationErrors: SE.CodedError[] | null;
20
+ warehousePreference?: WarehousePreference;
15
21
  warehouses: SE.Warehouse[];
16
22
  };
17
- export declare const Onboarding: ({ carriers, createWarehouse, onCarrierCreated, onWarehouseCreated, onCompleteOnboarding, registerDhlCarrier, registerDhlCarrierErrors, registerStampsCarrier, registerStampsCarrierErrors, registerUpsCarrier, registerUpsCarrierErrors, warehouses, }: OnboardingProps) => import("@emotion/react/jsx-runtime").JSX.Element;
23
+ export declare const Onboarding: ({ carriers, createWarehouse, onCarrierCreated, onWarehouseCreated, onValidateWarehouse, warehousePreference, setWarehousePreference, onCompleteOnboarding, registerDhlCarrier, registerDhlCarrierErrors, registerStampsCarrier, registerStampsCarrierErrors, registerUpsCarrier, registerUpsCarrierErrors, warehouses, validationErrors, }: OnboardingProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from "./wallet-history";
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ import { WalletTransactionHistory } from "@shipengine/api";
3
+ export type WalletHistoryProps = {
4
+ historyData: WalletTransactionHistory;
5
+ };
6
+ export declare const WalletHistory: React.FC<WalletHistoryProps>;