@stella-source/stellasource-dsl 3.0.0 → 3.1.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,4 @@
1
+ import React from "react";
2
+ import { OrderStatusProps } from "./types";
3
+ declare const OrderStatus: ({ variant, id, className, isPurchaser, }: OrderStatusProps) => React.JSX.Element;
4
+ export default OrderStatus;
@@ -0,0 +1,20 @@
1
+ import { OrderStatusVariant } from "./types";
2
+ declare const _default: {
3
+ title: string;
4
+ component: ({ variant, id, className, isPurchaser, }: import("./types").OrderStatusProps) => import("react").JSX.Element;
5
+ tags: string[];
6
+ argTypes: {
7
+ variant: {
8
+ control: {
9
+ type: string;
10
+ };
11
+ options: (OrderStatusVariant | null)[];
12
+ };
13
+ };
14
+ args: {
15
+ variant: OrderStatusVariant;
16
+ isPurchaser: boolean;
17
+ };
18
+ };
19
+ export default _default;
20
+ export declare const Default: {};
@@ -0,0 +1,2 @@
1
+ import { OrderStatusVariant } from "./types";
2
+ export declare const getOrderStatusLabel: (variant: OrderStatusVariant | null, isPurchaser?: boolean) => string;
@@ -0,0 +1,4 @@
1
+ declare const OrderStatusComponent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
+ declare const OrderStatusIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("../StellaIcon/types").StellaIconProps, never>> & string & Omit<({ iconName, size, color, className, id, dataTestId, }: import("../StellaIcon/types").StellaIconProps) => import("react").JSX.Element, keyof import("react").Component<any, {}, any>>;
3
+ declare const OrderStatusLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
4
+ export { OrderStatusComponent, OrderStatusIcon, OrderStatusLabel };
@@ -0,0 +1,20 @@
1
+ export declare enum OrderStatusVariant {
2
+ COMPLETED = "Completed",
3
+ ORDER_PLACED = "OrderPlaced",
4
+ IN_PROGRESS = "InProgress",
5
+ ACTION_REQUIRED = "ActionRequired",
6
+ CLOSED = "Closed",
7
+ DECLINED = "Declined",
8
+ VIEW_PRICING = "ViewPricing",
9
+ EXPIRED = "Expired",
10
+ ORDER_CANCELED = "OrderCanceled",
11
+ ORDER_ACKNOWLEDGED = "OrderAcknowledged",
12
+ DELIVERED = "Delivered",
13
+ INFO_NEEDED = "InfoNeeded"
14
+ }
15
+ export interface OrderStatusProps {
16
+ id?: string;
17
+ className?: string;
18
+ variant: OrderStatusVariant | null;
19
+ isPurchaser?: boolean;
20
+ }
@@ -1,4 +1,4 @@
1
- export type StellaIconDefinition = "search" | "required" | "help" | "info" | "kebab-menu" | "error" | "warning" | "filter" | "sort" | "close" | "add" | "stella-logo" | "chevron-right" | "chevron-down" | "caret-right" | "caret-down" | "success" | "in-progress" | "complete" | "calendar" | "unlocked" | "locked" | "settings" | "preferences" | "account-settings" | "user" | "company-details" | "collapse" | "expand" | "star-filled" | "star-outline" | "dashboard" | "shopping-cart" | "calculator" | "pricing-strategies" | "stella-finance" | "resource-center" | "line-item-pricing" | "basket-pricing" | "paperclip" | "thumbs-up" | "thumbs-down" | "send" | "palette" | "eye" | "eye-slash" | "sync" | "chevron-left" | "check-square" | "money" | "currency-dollar" | "x-circle" | "empty" | "hourglass-simple-low";
1
+ export type StellaIconDefinition = "search" | "required" | "help" | "info" | "kebab-menu" | "error" | "warning" | "filter" | "sort" | "close" | "add" | "stella-logo" | "chevron-right" | "chevron-down" | "caret-right" | "caret-down" | "success" | "in-progress" | "complete" | "calendar" | "unlocked" | "locked" | "settings" | "preferences" | "account-settings" | "user" | "company-details" | "collapse" | "expand" | "star-filled" | "star-outline" | "dashboard" | "shopping-cart" | "calculator" | "pricing-strategies" | "stella-finance" | "resource-center" | "line-item-pricing" | "basket-pricing" | "paperclip" | "thumbs-up" | "thumbs-down" | "send" | "palette" | "eye" | "eye-slash" | "sync" | "chevron-left" | "check-square" | "money" | "currency-dollar" | "x-circle" | "empty" | "hourglass-simple-low" | "broadcast" | "list-checks" | "note-pencil" | "truck";
2
2
  export interface StellaIconProps {
3
3
  iconName: StellaIconDefinition;
4
4
  size?: number;
@@ -21,6 +21,7 @@ import { StellaButtonVariant } from "./components/StellaButton/types";
21
21
  /** Tokens */
22
22
  import { Styles } from "./shared/tokens";
23
23
  import "./shared/tokens/tokens.css";
24
+ import OrderStatus from "./components/OrderStatus/OrderStatus";
24
25
  /**Exports */
25
26
  export type { StellaIconDefinition } from "./components/StellaIcon/types";
26
- export { Tabs, Label, StellaButton, IconButton, Loader, HelperText, Tooltip, StellaIcon, TextInput, PasswordInput, NumberInput, Table, Pagination, Sync, TableUnitsAndTotals, StellaButtonVariant, PaymentStatus, Styles, };
27
+ export { Tabs, Label, StellaButton, IconButton, Loader, HelperText, Tooltip, StellaIcon, TextInput, PasswordInput, NumberInput, Table, Pagination, Sync, TableUnitsAndTotals, StellaButtonVariant, PaymentStatus, OrderStatus, Styles, };