@stella-source/stellasource-dsl 2.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 +576 -348
- 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/components/Tabs/Styles.d.ts +5 -1
- package/dist/cjs/types/components/Tabs/Tab.d.ts +2 -1
- package/dist/cjs/types/components/Tabs/types.d.ts +4 -1
- package/dist/cjs/types/index.d.ts +2 -1
- package/dist/esm/index.esm.js +907 -680
- 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/components/Tabs/Styles.d.ts +5 -1
- package/dist/esm/types/components/Tabs/Tab.d.ts +2 -1
- package/dist/esm/types/components/Tabs/types.d.ts +4 -1
- package/dist/esm/types/index.d.ts +2 -1
- package/dist/index.d.ts +29 -3
- 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;
|
|
@@ -3,6 +3,10 @@ interface TabsStylesProps {
|
|
|
3
3
|
$variant: `${TabsVariant}`;
|
|
4
4
|
$isPill?: boolean;
|
|
5
5
|
}
|
|
6
|
+
interface NotificationBubbleProps {
|
|
7
|
+
$isActive?: boolean;
|
|
8
|
+
}
|
|
6
9
|
declare const TabsBar: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, TabsStylesProps>> & string;
|
|
7
10
|
declare const TabButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, TabsStylesProps>> & string;
|
|
8
|
-
|
|
11
|
+
declare const NotificationBubble: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, NotificationBubbleProps>> & string;
|
|
12
|
+
export { TabsBar, TabButton, NotificationBubble };
|
|
@@ -7,7 +7,8 @@ interface TabProps {
|
|
|
7
7
|
htmlProps?: HTMLAttributes<HTMLButtonElement>;
|
|
8
8
|
active?: boolean;
|
|
9
9
|
variant?: `${TabsVariant}`;
|
|
10
|
+
notifications?: number;
|
|
10
11
|
label: string;
|
|
11
12
|
}
|
|
12
|
-
declare const Tab: ({ id, className, onClick, htmlProps, label, variant, active, }: TabProps) => React.JSX.Element;
|
|
13
|
+
declare const Tab: ({ id, className, onClick, htmlProps, label, variant, active, notifications, }: TabProps) => React.JSX.Element;
|
|
13
14
|
export default Tab;
|
|
@@ -11,7 +11,10 @@ interface TabsBaseProps {
|
|
|
11
11
|
defaultActiveTab?: string;
|
|
12
12
|
isPill?: boolean;
|
|
13
13
|
variant?: `${TabsVariant}`;
|
|
14
|
-
tabs:
|
|
14
|
+
tabs: {
|
|
15
|
+
label: string;
|
|
16
|
+
notifications?: number;
|
|
17
|
+
}[];
|
|
15
18
|
onTabClick: (label?: string) => void;
|
|
16
19
|
}
|
|
17
20
|
interface TabsPropsLight {
|
|
@@ -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;
|
|
@@ -356,7 +356,10 @@ interface TabsBaseProps {
|
|
|
356
356
|
defaultActiveTab?: string;
|
|
357
357
|
isPill?: boolean;
|
|
358
358
|
variant?: `${TabsVariant}`;
|
|
359
|
-
tabs:
|
|
359
|
+
tabs: {
|
|
360
|
+
label: string;
|
|
361
|
+
notifications?: number;
|
|
362
|
+
}[];
|
|
360
363
|
onTabClick: (label?: string) => void;
|
|
361
364
|
}
|
|
362
365
|
interface TabsPropsLight {
|
|
@@ -434,5 +437,28 @@ declare const Styles: {
|
|
|
434
437
|
};
|
|
435
438
|
};
|
|
436
439
|
|
|
437
|
-
|
|
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 };
|
|
438
464
|
export type { StellaIconDefinition };
|