@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.
- package/dist/cjs/index.js +560 -345
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/OrderStatus/OrderStatus.d.ts +4 -0
- package/dist/cjs/types/components/OrderStatus/OrderStatus.stories.d.ts +20 -0
- package/dist/cjs/types/components/OrderStatus/helpers.d.ts +2 -0
- package/dist/cjs/types/components/OrderStatus/styles.d.ts +4 -0
- package/dist/cjs/types/components/OrderStatus/types.d.ts +20 -0
- package/dist/cjs/types/components/StellaIcon/types.d.ts +1 -1
- package/dist/cjs/types/index.d.ts +2 -1
- package/dist/esm/index.esm.js +888 -674
- package/dist/esm/index.esm.js.map +1 -1
- package/dist/esm/types/components/OrderStatus/OrderStatus.d.ts +4 -0
- package/dist/esm/types/components/OrderStatus/OrderStatus.stories.d.ts +20 -0
- package/dist/esm/types/components/OrderStatus/helpers.d.ts +2 -0
- package/dist/esm/types/components/OrderStatus/styles.d.ts +4 -0
- package/dist/esm/types/components/OrderStatus/types.d.ts +20 -0
- package/dist/esm/types/components/StellaIcon/types.d.ts +1 -1
- package/dist/esm/types/index.d.ts +2 -1
- package/dist/index.d.ts +25 -2
- package/package.json +1 -1
|
@@ -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,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, };
|
package/dist/index.d.ts
CHANGED
|
@@ -96,7 +96,7 @@ interface TooltipProps {
|
|
|
96
96
|
|
|
97
97
|
declare const Tooltip: ({ title, placement, type, ariaLabel, iconSize, htmlProps, className, id, }: TooltipProps) => React$1.JSX.Element;
|
|
98
98
|
|
|
99
|
-
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";
|
|
99
|
+
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";
|
|
100
100
|
interface StellaIconProps {
|
|
101
101
|
iconName: StellaIconDefinition;
|
|
102
102
|
size?: number;
|
|
@@ -437,5 +437,28 @@ declare const Styles: {
|
|
|
437
437
|
};
|
|
438
438
|
};
|
|
439
439
|
|
|
440
|
-
|
|
440
|
+
declare enum OrderStatusVariant {
|
|
441
|
+
COMPLETED = "Completed",
|
|
442
|
+
ORDER_PLACED = "OrderPlaced",
|
|
443
|
+
IN_PROGRESS = "InProgress",
|
|
444
|
+
ACTION_REQUIRED = "ActionRequired",
|
|
445
|
+
CLOSED = "Closed",
|
|
446
|
+
DECLINED = "Declined",
|
|
447
|
+
VIEW_PRICING = "ViewPricing",
|
|
448
|
+
EXPIRED = "Expired",
|
|
449
|
+
ORDER_CANCELED = "OrderCanceled",
|
|
450
|
+
ORDER_ACKNOWLEDGED = "OrderAcknowledged",
|
|
451
|
+
DELIVERED = "Delivered",
|
|
452
|
+
INFO_NEEDED = "InfoNeeded"
|
|
453
|
+
}
|
|
454
|
+
interface OrderStatusProps {
|
|
455
|
+
id?: string;
|
|
456
|
+
className?: string;
|
|
457
|
+
variant: OrderStatusVariant | null;
|
|
458
|
+
isPurchaser?: boolean;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
declare const OrderStatus: ({ variant, id, className, isPurchaser, }: OrderStatusProps) => React$1.JSX.Element;
|
|
462
|
+
|
|
463
|
+
export { HelperText, IconButton, Label, Loader, NumberInput, OrderStatus, Pagination, PasswordInput, PaymentStatus, StellaButton, StellaButtonVariant, StellaIcon, Styles, Sync, Table, TableUnitsAndTotals, Tabs, TextInput, Tooltip };
|
|
441
464
|
export type { StellaIconDefinition };
|