@stella-source/stellasource-dsl 3.3.0 → 3.4.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 +69 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/SelectorChip/SelectorChip.d.ts +12 -0
- package/dist/cjs/types/components/SelectorChip/SelectorChip.stories.d.ts +14 -0
- package/dist/cjs/types/components/SelectorChip/styles.d.ts +7 -0
- package/dist/cjs/types/components/SelectorChip/types.d.ts +9 -0
- package/dist/cjs/types/components/Tabs/Tab.d.ts +1 -1
- package/dist/cjs/types/index.d.ts +2 -1
- package/dist/esm/index.esm.js +69 -2
- package/dist/esm/index.esm.js.map +1 -1
- package/dist/esm/types/components/SelectorChip/SelectorChip.d.ts +12 -0
- package/dist/esm/types/components/SelectorChip/SelectorChip.stories.d.ts +14 -0
- package/dist/esm/types/components/SelectorChip/styles.d.ts +7 -0
- package/dist/esm/types/components/SelectorChip/types.d.ts +9 -0
- package/dist/esm/types/components/Tabs/Tab.d.ts +1 -1
- package/dist/esm/types/index.d.ts +2 -1
- package/dist/index.d.ts +12 -1
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface SelectorChipProps {
|
|
3
|
+
id?: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
label: string;
|
|
6
|
+
selected?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
onClick?: () => void;
|
|
9
|
+
onClose?: () => void;
|
|
10
|
+
}
|
|
11
|
+
declare const SelectorChip: ({ id, className, label, selected, disabled, onClick, onClose, }: SelectorChipProps) => React.JSX.Element;
|
|
12
|
+
export default SelectorChip;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: ({ id, className, label, selected, disabled, onClick, onClose, }: import("./SelectorChip").SelectorChipProps) => import("react").JSX.Element;
|
|
4
|
+
tags: string[];
|
|
5
|
+
args: {
|
|
6
|
+
label: string;
|
|
7
|
+
selected: boolean;
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
onClick: () => void;
|
|
10
|
+
onClose: () => void;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
14
|
+
export declare const SelectorChip: {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface SelectorChipStyleProps {
|
|
2
|
+
$selected?: boolean;
|
|
3
|
+
}
|
|
4
|
+
export declare const SelectorChipComponent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "$selected"> & SelectorChipStyleProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "$selected"> & SelectorChipStyleProps, never>>> & string;
|
|
5
|
+
export declare const SelectorChipLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>>> & string;
|
|
6
|
+
export declare const SelectorChipClose: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>>> & string;
|
|
7
|
+
export {};
|
|
@@ -7,7 +7,7 @@ interface TabProps {
|
|
|
7
7
|
htmlProps?: HTMLAttributes<HTMLButtonElement>;
|
|
8
8
|
active?: boolean;
|
|
9
9
|
variant?: `${TabsVariant}`;
|
|
10
|
-
notifications?: number;
|
|
10
|
+
notifications?: number | string;
|
|
11
11
|
label: string;
|
|
12
12
|
}
|
|
13
13
|
declare const Tab: ({ id, className, onClick, htmlProps, label, variant, active, notifications, }: TabProps) => React.JSX.Element;
|
|
@@ -16,6 +16,7 @@ import Sync from "./components/Sync/Sync";
|
|
|
16
16
|
import TableUnitsAndTotals from "./components/TableUnitsAndTotals/TableUnitsAndTotals";
|
|
17
17
|
import PaymentStatus from "./components/PaymentStatus/PaymentStatus";
|
|
18
18
|
import Tabs from "./components/Tabs/Tabs";
|
|
19
|
+
import SelectorChip from "./components/SelectorChip/SelectorChip";
|
|
19
20
|
/** Types */
|
|
20
21
|
import { StellaButtonVariant } from "./components/StellaButton/types";
|
|
21
22
|
/** Tokens */
|
|
@@ -25,4 +26,4 @@ import OrderStatus from "./components/OrderStatus/OrderStatus";
|
|
|
25
26
|
/**Exports */
|
|
26
27
|
export type { StellaIconDefinition } from "./components/StellaIcon/types";
|
|
27
28
|
export type { CustomColumnMeta } from "./components/Table/types";
|
|
28
|
-
export { Tabs, Label, StellaButton, IconButton, Loader, HelperText, Tooltip, StellaIcon, TextInput, PasswordInput, NumberInput, Table, Pagination, Sync, TableUnitsAndTotals, StellaButtonVariant, PaymentStatus, OrderStatus, Styles, };
|
|
29
|
+
export { Tabs, Label, StellaButton, IconButton, Loader, HelperText, Tooltip, StellaIcon, TextInput, PasswordInput, NumberInput, Table, Pagination, Sync, TableUnitsAndTotals, StellaButtonVariant, PaymentStatus, OrderStatus, SelectorChip, Styles, };
|
package/dist/index.d.ts
CHANGED
|
@@ -389,6 +389,17 @@ type TabsProps = TabsBaseProps & (TabsPropsLight | TabsPropsDark);
|
|
|
389
389
|
|
|
390
390
|
declare const Tabs: ({ id, className, tabs, htmlProps, onTabClick, defaultActiveTab, variant, isPill, }: TabsProps) => React$1.JSX.Element;
|
|
391
391
|
|
|
392
|
+
interface SelectorChipProps {
|
|
393
|
+
id?: string;
|
|
394
|
+
className?: string;
|
|
395
|
+
label: string;
|
|
396
|
+
selected?: boolean;
|
|
397
|
+
disabled?: boolean;
|
|
398
|
+
onClick?: () => void;
|
|
399
|
+
onClose?: () => void;
|
|
400
|
+
}
|
|
401
|
+
declare const SelectorChip: ({ id, className, label, selected, disabled, onClick, onClose, }: SelectorChipProps) => React$1.JSX.Element;
|
|
402
|
+
|
|
392
403
|
declare const Styles: {
|
|
393
404
|
color: {
|
|
394
405
|
white: string;
|
|
@@ -475,5 +486,5 @@ interface OrderStatusProps {
|
|
|
475
486
|
|
|
476
487
|
declare const OrderStatus: ({ variant, id, className, isPurchaser, }: OrderStatusProps) => React$1.JSX.Element;
|
|
477
488
|
|
|
478
|
-
export { HelperText, IconButton, Label, Loader, NumberInput, OrderStatus, Pagination, PasswordInput, PaymentStatus, StellaButton, StellaButtonVariant, StellaIcon, Styles, Sync, Table, TableUnitsAndTotals, Tabs, TextInput, Tooltip };
|
|
489
|
+
export { HelperText, IconButton, Label, Loader, NumberInput, OrderStatus, Pagination, PasswordInput, PaymentStatus, SelectorChip, StellaButton, StellaButtonVariant, StellaIcon, Styles, Sync, Table, TableUnitsAndTotals, Tabs, TextInput, Tooltip };
|
|
479
490
|
export type { CustomColumnMeta, StellaIconDefinition };
|