@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.
@@ -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;
@@ -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
- export { TabsBar, TabButton };
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: string[];
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, };