reshaped 3.8.2 → 3.8.4-canary.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/bundle.css +1 -1
- package/dist/bundle.js +8 -8
- package/dist/components/Accordion/Accordion.d.ts +1 -6
- package/dist/components/Accordion/Accordion.js +0 -4
- package/dist/components/Accordion/index.d.ts +8 -1
- package/dist/components/Accordion/index.js +7 -1
- package/dist/components/Actionable/Actionable.types.d.ts +1 -1
- package/dist/components/Autocomplete/Autocomplete.d.ts +2 -4
- package/dist/components/Autocomplete/Autocomplete.js +1 -2
- package/dist/components/Autocomplete/index.d.ts +5 -1
- package/dist/components/Autocomplete/index.js +4 -1
- package/dist/components/Autocomplete/tests/Autocomplete.stories.d.ts +1 -1
- package/dist/components/Badge/Badge.d.ts +2 -1
- package/dist/components/Badge/Badge.js +0 -2
- package/dist/components/Badge/Badge.types.d.ts +1 -6
- package/dist/components/Badge/index.d.ts +6 -1
- package/dist/components/Badge/index.js +5 -1
- package/dist/components/Badge/tests/Badge.stories.d.ts +3 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +1 -4
- package/dist/components/Breadcrumbs/Breadcrumbs.js +0 -2
- package/dist/components/Breadcrumbs/index.d.ts +6 -1
- package/dist/components/Breadcrumbs/index.js +5 -1
- package/dist/components/Button/Button.d.ts +14 -1
- package/dist/components/Button/Button.js +0 -4
- package/dist/components/Button/Button.module.css +1 -1
- package/dist/components/Button/Button.types.d.ts +1 -7
- package/dist/components/Button/index.d.ts +8 -1
- package/dist/components/Button/index.js +7 -1
- package/dist/components/Button/tests/Button.stories.d.ts +16 -1
- package/dist/components/Carousel/Carousel.types.d.ts +2 -1
- package/dist/components/Carousel/CarouselControl.d.ts +2 -1
- package/dist/components/ContextMenu/ContextMenu.d.ts +1 -8
- package/dist/components/ContextMenu/ContextMenu.js +0 -5
- package/dist/components/ContextMenu/index.d.ts +10 -1
- package/dist/components/ContextMenu/index.js +9 -1
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +7 -15
- package/dist/components/DropdownMenu/DropdownMenu.js +7 -14
- package/dist/components/DropdownMenu/index.d.ts +12 -1
- package/dist/components/DropdownMenu/index.js +11 -1
- package/dist/components/DropdownMenu/tests/DropdownMenu.stories.d.ts +5 -5
- package/dist/components/FileUpload/FileUpload.d.ts +2 -4
- package/dist/components/FileUpload/FileUpload.js +1 -2
- package/dist/components/FileUpload/index.d.ts +5 -1
- package/dist/components/FileUpload/index.js +4 -1
- package/dist/components/FileUpload/tests/FileUpload.stories.d.ts +1 -1
- package/dist/components/Flyout/Flyout.d.ts +1 -6
- package/dist/components/Flyout/Flyout.js +0 -4
- package/dist/components/Flyout/index.d.ts +8 -1
- package/dist/components/Flyout/index.js +7 -1
- package/dist/components/FormControl/FormControl.d.ts +1 -8
- package/dist/components/FormControl/FormControl.js +0 -6
- package/dist/components/FormControl/index.d.ts +10 -1
- package/dist/components/FormControl/index.js +9 -1
- package/dist/components/Grid/Grid.d.ts +4 -4
- package/dist/components/Grid/Grid.js +1 -2
- package/dist/components/Grid/index.d.ts +5 -1
- package/dist/components/Grid/index.js +4 -1
- package/dist/components/Grid/tests/Grid.stories.d.ts +2 -4
- package/dist/components/MenuItem/MenuItem.d.ts +12 -1
- package/dist/components/MenuItem/MenuItem.js +0 -2
- package/dist/components/MenuItem/MenuItem.types.d.ts +1 -6
- package/dist/components/MenuItem/index.d.ts +6 -1
- package/dist/components/MenuItem/index.js +5 -1
- package/dist/components/MenuItem/tests/MenuItem.stories.d.ts +13 -1
- package/dist/components/Modal/Modal.d.ts +3 -6
- package/dist/components/Modal/Modal.js +2 -4
- package/dist/components/Modal/index.d.ts +6 -1
- package/dist/components/Modal/index.js +5 -1
- package/dist/components/Modal/tests/Modal.stories.d.ts +2 -2
- package/dist/components/Popover/Popover.d.ts +2 -7
- package/dist/components/Popover/Popover.js +1 -4
- package/dist/components/Popover/index.d.ts +8 -1
- package/dist/components/Popover/index.js +7 -1
- package/dist/components/Popover/tests/Popover.stories.d.ts +1 -1
- package/dist/components/Resizable/Resizable.d.ts +2 -4
- package/dist/components/Resizable/Resizable.js +4 -5
- package/dist/components/Resizable/index.d.ts +7 -1
- package/dist/components/Resizable/index.js +6 -1
- package/dist/components/Resizable/tests/Resizable.stories.d.ts +2 -2
- package/dist/components/Select/Select.d.ts +1 -8
- package/dist/components/Select/Select.js +0 -6
- package/dist/components/Select/index.d.ts +10 -1
- package/dist/components/Select/index.js +9 -1
- package/dist/components/Stepper/Stepper.d.ts +2 -4
- package/dist/components/Stepper/Stepper.js +1 -2
- package/dist/components/Stepper/index.d.ts +5 -1
- package/dist/components/Stepper/index.js +4 -1
- package/dist/components/Stepper/tests/Stepper.stories.d.ts +1 -4
- package/dist/components/Table/Table.d.ts +6 -12
- package/dist/components/Table/Table.js +5 -10
- package/dist/components/Table/index.d.ts +9 -1
- package/dist/components/Table/index.js +8 -1
- package/dist/components/Table/tests/Table.stories.d.ts +5 -5
- package/dist/components/Tabs/Tabs.d.ts +1 -8
- package/dist/components/Tabs/Tabs.js +0 -6
- package/dist/components/Tabs/index.d.ts +10 -1
- package/dist/components/Tabs/index.js +9 -1
- package/dist/components/TextArea/TextArea.d.ts +1 -4
- package/dist/components/TextArea/TextArea.js +0 -2
- package/dist/components/TextArea/index.d.ts +6 -1
- package/dist/components/TextArea/index.js +5 -1
- package/dist/components/TextField/TextField.d.ts +1 -4
- package/dist/components/TextField/TextField.js +0 -2
- package/dist/components/TextField/index.d.ts +6 -1
- package/dist/components/TextField/index.js +5 -1
- package/dist/components/Timeline/Timeline.d.ts +2 -4
- package/dist/components/Timeline/Timeline.js +1 -2
- package/dist/components/Timeline/index.d.ts +5 -1
- package/dist/components/Timeline/index.js +4 -1
- package/dist/components/Timeline/tests/Timeline.stories.d.ts +1 -1
- package/dist/components/ToggleButtonGroup/tests/ToggleButtonGroup.stories.d.ts +4 -0
- package/dist/components/ToggleButtonGroup/tests/ToggleButtonGroup.stories.js +19 -0
- package/dist/components/View/View.d.ts +4 -4
- package/dist/components/View/View.js +1 -2
- package/dist/components/View/index.d.ts +5 -1
- package/dist/components/View/index.js +4 -1
- package/dist/components/View/tests/View.stories.d.ts +2 -4
- package/dist/components/_private/Portal/Portal.d.ts +3 -5
- package/dist/components/_private/Portal/Portal.js +1 -2
- package/dist/components/_private/Portal/index.d.ts +5 -1
- package/dist/components/_private/Portal/index.js +4 -1
- package/dist/config/postcss.js +3 -0
- package/package.json +5 -6
- package/dist/cjs/cli/theming/index.d.ts +0 -4
- package/dist/cjs/cli/theming/index.js +0 -40
- package/dist/cjs/cli/theming/reshaped.config.d.ts +0 -3
- package/dist/cjs/cli/theming/reshaped.config.js +0 -25
- package/dist/cjs/cli/theming/tailwind.d.ts +0 -2
- package/dist/cjs/cli/theming/tailwind.js +0 -83
- package/dist/cjs/config/postcss.d.ts +0 -28
- package/dist/cjs/config/postcss.js +0 -33
- package/dist/cjs/config/tailwind.d.ts +0 -2
- package/dist/cjs/config/tailwind.js +0 -86
- package/dist/cjs/constants/breakpoints.d.ts +0 -6
- package/dist/cjs/constants/breakpoints.js +0 -7
- package/dist/cjs/themes/_generator/constants.d.ts +0 -2
- package/dist/cjs/themes/_generator/constants.js +0 -11
- package/dist/cjs/themes/_generator/definitions/figma.d.ts +0 -3
- package/dist/cjs/themes/_generator/definitions/figma.js +0 -197
- package/dist/cjs/themes/_generator/definitions/reshaped.d.ts +0 -3
- package/dist/cjs/themes/_generator/definitions/reshaped.js +0 -210
- package/dist/cjs/themes/_generator/definitions/slate.d.ts +0 -3
- package/dist/cjs/themes/_generator/definitions/slate.js +0 -12
- package/dist/cjs/themes/_generator/tokens/color/color.transforms.d.ts +0 -4
- package/dist/cjs/themes/_generator/tokens/color/color.transforms.js +0 -44
- package/dist/cjs/themes/_generator/tokens/color/color.types.d.ts +0 -33
- package/dist/cjs/themes/_generator/tokens/color/color.types.js +0 -2
- package/dist/cjs/themes/_generator/tokens/color/utilities/a11y.d.ts +0 -20
- package/dist/cjs/themes/_generator/tokens/color/utilities/a11y.js +0 -64
- package/dist/cjs/themes/_generator/tokens/color/utilities/convert.d.ts +0 -11
- package/dist/cjs/themes/_generator/tokens/color/utilities/convert.js +0 -33
- package/dist/cjs/themes/_generator/tokens/color/utilities/generateColors.d.ts +0 -4
- package/dist/cjs/themes/_generator/tokens/color/utilities/generateColors.js +0 -152
- package/dist/cjs/themes/_generator/tokens/color/utilities/generateMetaColors.d.ts +0 -4
- package/dist/cjs/themes/_generator/tokens/color/utilities/generateMetaColors.js +0 -68
- package/dist/cjs/themes/_generator/tokens/color/utilities/tests/a11y.test.d.ts +0 -1
- package/dist/cjs/themes/_generator/tokens/color/utilities/tests/a11y.test.js +0 -38
- package/dist/cjs/themes/_generator/tokens/color/utilities/tests/convert.test.d.ts +0 -1
- package/dist/cjs/themes/_generator/tokens/color/utilities/tests/convert.test.js +0 -48
- package/dist/cjs/themes/_generator/tokens/color/utilities/tests/generateColors.test.d.ts +0 -1
- package/dist/cjs/themes/_generator/tokens/color/utilities/tests/generateColors.test.js +0 -21
- package/dist/cjs/themes/_generator/tokens/css.d.ts +0 -6
- package/dist/cjs/themes/_generator/tokens/css.js +0 -52
- package/dist/cjs/themes/_generator/tokens/duration/duration.transforms.d.ts +0 -4
- package/dist/cjs/themes/_generator/tokens/duration/duration.transforms.js +0 -11
- package/dist/cjs/themes/_generator/tokens/duration/duration.types.d.ts +0 -4
- package/dist/cjs/themes/_generator/tokens/duration/duration.types.js +0 -2
- package/dist/cjs/themes/_generator/tokens/easing/easing.transforms.d.ts +0 -4
- package/dist/cjs/themes/_generator/tokens/easing/easing.transforms.js +0 -11
- package/dist/cjs/themes/_generator/tokens/easing/easing.types.d.ts +0 -7
- package/dist/cjs/themes/_generator/tokens/easing/easing.types.js +0 -2
- package/dist/cjs/themes/_generator/tokens/font/font.transforms.d.ts +0 -4
- package/dist/cjs/themes/_generator/tokens/font/font.transforms.js +0 -43
- package/dist/cjs/themes/_generator/tokens/font/font.types.d.ts +0 -11
- package/dist/cjs/themes/_generator/tokens/font/font.types.js +0 -2
- package/dist/cjs/themes/_generator/tokens/fontFamily/fontFamily.transforms.d.ts +0 -4
- package/dist/cjs/themes/_generator/tokens/fontFamily/fontFamily.transforms.js +0 -11
- package/dist/cjs/themes/_generator/tokens/fontFamily/fontFamily.types.d.ts +0 -4
- package/dist/cjs/themes/_generator/tokens/fontFamily/fontFamily.types.js +0 -2
- package/dist/cjs/themes/_generator/tokens/fontWeight/fontWeight.transforms.d.ts +0 -4
- package/dist/cjs/themes/_generator/tokens/fontWeight/fontWeight.transforms.js +0 -11
- package/dist/cjs/themes/_generator/tokens/fontWeight/fontWeight.types.d.ts +0 -4
- package/dist/cjs/themes/_generator/tokens/fontWeight/fontWeight.types.js +0 -2
- package/dist/cjs/themes/_generator/tokens/radius/radius.transforms.d.ts +0 -4
- package/dist/cjs/themes/_generator/tokens/radius/radius.transforms.js +0 -11
- package/dist/cjs/themes/_generator/tokens/radius/radius.types.d.ts +0 -4
- package/dist/cjs/themes/_generator/tokens/radius/radius.types.js +0 -2
- package/dist/cjs/themes/_generator/tokens/shadow/shadow.transforms.d.ts +0 -4
- package/dist/cjs/themes/_generator/tokens/shadow/shadow.transforms.js +0 -22
- package/dist/cjs/themes/_generator/tokens/shadow/shadow.types.d.ts +0 -13
- package/dist/cjs/themes/_generator/tokens/shadow/shadow.types.js +0 -2
- package/dist/cjs/themes/_generator/tokens/transforms.d.ts +0 -13
- package/dist/cjs/themes/_generator/tokens/transforms.js +0 -30
- package/dist/cjs/themes/_generator/tokens/types.d.ts +0 -62
- package/dist/cjs/themes/_generator/tokens/types.js +0 -2
- package/dist/cjs/themes/_generator/tokens/unit/unit.transforms.d.ts +0 -4
- package/dist/cjs/themes/_generator/tokens/unit/unit.transforms.js +0 -11
- package/dist/cjs/themes/_generator/tokens/unit/unit.types.d.ts +0 -5
- package/dist/cjs/themes/_generator/tokens/unit/unit.types.js +0 -2
- package/dist/cjs/themes/_generator/tokens/unit/utilities/generate.d.ts +0 -5
- package/dist/cjs/themes/_generator/tokens/unit/utilities/generate.js +0 -16
- package/dist/cjs/themes/_generator/tokens/viewport/viewport.transforms.d.ts +0 -4
- package/dist/cjs/themes/_generator/tokens/viewport/viewport.transforms.js +0 -27
- package/dist/cjs/themes/_generator/tokens/viewport/viewport.types.d.ts +0 -9
- package/dist/cjs/themes/_generator/tokens/viewport/viewport.types.js +0 -2
- package/dist/cjs/themes/_generator/tokens/zIndex/zIndex.transforms.d.ts +0 -4
- package/dist/cjs/themes/_generator/tokens/zIndex/zIndex.transforms.js +0 -11
- package/dist/cjs/themes/_generator/tokens/zIndex/zIndex.types.d.ts +0 -4
- package/dist/cjs/themes/_generator/tokens/zIndex/zIndex.types.js +0 -2
- package/dist/cjs/themes/_generator/transform.d.ts +0 -8
- package/dist/cjs/themes/_generator/transform.js +0 -108
- package/dist/cjs/themes/_generator/types.d.ts +0 -15
- package/dist/cjs/themes/_generator/types.js +0 -2
- package/dist/cjs/themes/_generator/utilities/mergeDefinitions.d.ts +0 -3
- package/dist/cjs/themes/_generator/utilities/mergeDefinitions.js +0 -19
- package/dist/cjs/themes/figma/media.css +0 -1
- package/dist/cjs/themes/figma/tailwind.css +0 -1
- package/dist/cjs/themes/figma/theme.css +0 -1
- package/dist/cjs/themes/fragments/twitter/tailwind.css +0 -1
- package/dist/cjs/themes/fragments/twitter/theme.css +0 -1
- package/dist/cjs/themes/index.d.ts +0 -23
- package/dist/cjs/themes/index.js +0 -21
- package/dist/cjs/themes/reshaped/media.css +0 -1
- package/dist/cjs/themes/reshaped/tailwind.css +0 -1
- package/dist/cjs/themes/reshaped/theme.css +0 -1
- package/dist/cjs/themes/slate/media.css +0 -1
- package/dist/cjs/themes/slate/tailwind.css +0 -1
- package/dist/cjs/themes/slate/theme.css +0 -1
- package/dist/cjs/types/config.d.ts +0 -20
- package/dist/cjs/types/config.js +0 -2
- package/dist/cjs/utilities/string.d.ts +0 -2
- package/dist/cjs/utilities/string.js +0 -15
|
@@ -1 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import Select from "./Select.js";
|
|
2
|
+
import SelectCustom from "./SelectCustom.js";
|
|
3
|
+
import SelectOption from "./SelectOption.js";
|
|
4
|
+
import SelectOptionGroup from "./SelectOptionGroup.js";
|
|
5
|
+
const SelectRoot = Select;
|
|
6
|
+
SelectRoot.Custom = SelectCustom;
|
|
7
|
+
SelectRoot.Option = SelectOption;
|
|
8
|
+
SelectRoot.OptionGroup = SelectOptionGroup;
|
|
9
|
+
export default SelectRoot;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type * as T from "./Stepper.types";
|
|
3
|
-
declare const StepperItem: {
|
|
3
|
+
export declare const StepperItem: {
|
|
4
4
|
(_: T.ItemProps): null;
|
|
5
5
|
displayName: string;
|
|
6
6
|
};
|
|
7
|
-
declare const Stepper: React.FC<T.Props
|
|
8
|
-
Item: typeof StepperItem;
|
|
9
|
-
};
|
|
7
|
+
declare const Stepper: React.FC<T.Props>;
|
|
10
8
|
export default Stepper;
|
|
@@ -16,7 +16,7 @@ const StepperItemPrivate = (props) => {
|
|
|
16
16
|
return (_jsxs(View, { attributes: attributes, className: className, children: [_jsxs(View, { direction: "row", gap: 2, align: "center", position: "static", children: [_jsxs(View.Item, { children: [_jsx(View, { align: "center", justify: "center", backgroundColor: active || completed ? "primary" : "neutral-faded", borderColor: active || completed ? undefined : "neutral-faded", borderRadius: "circular", as: "span", width: 8, height: 8, zIndex: 5, children: _jsx(Text, { variant: "body-3", weight: active ? "bold" : "medium", children: completed ? _jsx(Icon, { svg: IconCheckmark, size: 4 }) : step }) }), direction === "column" && !last && _jsx(Divider, { vertical: true, className: s.verticalDivider })] }), labelDisplay ? _jsx(Hidden, { hide: labelHidden, children: labelNode }) : labelNode] }), direction === "column" && children && (_jsx(Expandable, { active: active, children: _jsx(View, { paddingStart: 10, paddingTop: 2, children: children }) }))] }));
|
|
17
17
|
};
|
|
18
18
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
19
|
-
const StepperItem = (_) => null;
|
|
19
|
+
export const StepperItem = (_) => null;
|
|
20
20
|
const Stepper = (props) => {
|
|
21
21
|
const { children, direction = "row", activeId, labelDisplay, gap = 3, className, attributes, } = props;
|
|
22
22
|
const vertical = direction === "column";
|
|
@@ -31,7 +31,6 @@ const Stepper = (props) => {
|
|
|
31
31
|
return (_jsxs(React.Fragment, { children: [_jsx(StepperItemPrivate, { ...props, id: itemId, active: activeId?.toString() === itemId, step: index + 1, last: index === length - 1, direction: direction, labelDisplay: labelDisplay }), !vertical && index < length - 1 && (_jsx(View, { grow: true, children: _jsx(Divider, {}) }))] }, index));
|
|
32
32
|
}) }));
|
|
33
33
|
};
|
|
34
|
-
Stepper.Item = StepperItem;
|
|
35
34
|
Stepper.displayName = "Stepper";
|
|
36
35
|
StepperItem.displayName = "Stepper.Item";
|
|
37
36
|
export default Stepper;
|
|
@@ -3,10 +3,7 @@ import { StoryObj } from "@storybook/react-vite";
|
|
|
3
3
|
declare const _default: {
|
|
4
4
|
title: string;
|
|
5
5
|
component: React.FC<import("./..").StepperProps> & {
|
|
6
|
-
Item:
|
|
7
|
-
(_: import("../Stepper.types").ItemProps): null;
|
|
8
|
-
displayName: string;
|
|
9
|
-
};
|
|
6
|
+
Item: typeof import("../Stepper").StepperItem;
|
|
10
7
|
};
|
|
11
8
|
parameters: {
|
|
12
9
|
iframe: {
|
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type * as T from "./Table.types";
|
|
3
|
-
declare const TableCell: React.FC<T.CellProps>;
|
|
4
|
-
declare const TableHeading: React.FC<T.HeadingProps>;
|
|
5
|
-
declare const TableRow: React.FC<T.RowProps>;
|
|
6
|
-
declare const TableBody: React.FC<T.BodyProps>;
|
|
7
|
-
declare const TableHead: React.FC<T.HeadProps>;
|
|
8
|
-
declare const Table: React.FC<T.Props
|
|
9
|
-
Cell: typeof TableCell;
|
|
10
|
-
Heading: typeof TableHeading;
|
|
11
|
-
Row: typeof TableRow;
|
|
12
|
-
Body: typeof TableBody;
|
|
13
|
-
Head: typeof TableHead;
|
|
14
|
-
};
|
|
3
|
+
export declare const TableCell: React.FC<T.CellProps>;
|
|
4
|
+
export declare const TableHeading: React.FC<T.HeadingProps>;
|
|
5
|
+
export declare const TableRow: React.FC<T.RowProps>;
|
|
6
|
+
export declare const TableBody: React.FC<T.BodyProps>;
|
|
7
|
+
export declare const TableHead: React.FC<T.HeadProps>;
|
|
8
|
+
declare const Table: React.FC<T.Props>;
|
|
15
9
|
export default Table;
|
|
@@ -17,23 +17,23 @@ const TableCellPrivate = (props) => {
|
|
|
17
17
|
};
|
|
18
18
|
return (_jsx(TagName, { ...attributes, className: headingClassNames, rowSpan: rowSpan, colSpan: colSpan, style: headingStyle, children: children }));
|
|
19
19
|
};
|
|
20
|
-
const TableCell = (props) => {
|
|
20
|
+
export const TableCell = (props) => {
|
|
21
21
|
return _jsx(TableCellPrivate, { ...props, tagName: "td" });
|
|
22
22
|
};
|
|
23
|
-
const TableHeading = (props) => {
|
|
23
|
+
export const TableHeading = (props) => {
|
|
24
24
|
return _jsx(TableCellPrivate, { ...props, tagName: "th" });
|
|
25
25
|
};
|
|
26
|
-
const TableRow = (props) => {
|
|
26
|
+
export const TableRow = (props) => {
|
|
27
27
|
const { highlighted, children, className, attributes } = props;
|
|
28
28
|
const onClick = props.onClick || attributes?.onClick;
|
|
29
29
|
const rowClassNames = classNames(s.row, highlighted && s["--row-highlighted"], className);
|
|
30
30
|
return (_jsx("tr", { ...attributes, className: rowClassNames, onClick: onClick, tabIndex: onClick ? 0 : undefined, children: children }));
|
|
31
31
|
};
|
|
32
|
-
const TableBody = (props) => {
|
|
32
|
+
export const TableBody = (props) => {
|
|
33
33
|
const { children, attributes, className } = props;
|
|
34
34
|
return (_jsx("tbody", { ...attributes, className: classNames(s.body, className), children: children }));
|
|
35
35
|
};
|
|
36
|
-
const TableHead = (props) => {
|
|
36
|
+
export const TableHead = (props) => {
|
|
37
37
|
const { children, attributes, className } = props;
|
|
38
38
|
return (_jsx("thead", { ...attributes, className: classNames(s.head, className), children: children }));
|
|
39
39
|
};
|
|
@@ -48,11 +48,6 @@ const Table = (props) => {
|
|
|
48
48
|
const isHead = isElement && firstChild.type === TableHead;
|
|
49
49
|
return (_jsx("div", { ...attributes, className: rootClassNames, ref: rootRef, children: _jsx("table", { className: s.table, children: isBody || isHead ? children : _jsx(TableBody, { children: children }) }) }));
|
|
50
50
|
};
|
|
51
|
-
Table.Cell = TableCell;
|
|
52
|
-
Table.Heading = TableHeading;
|
|
53
|
-
Table.Row = TableRow;
|
|
54
|
-
Table.Body = TableBody;
|
|
55
|
-
Table.Head = TableHead;
|
|
56
51
|
Table.displayName = "Table";
|
|
57
52
|
TableCell.displayName = "TableCell";
|
|
58
53
|
TableHeading.displayName = "TableHeading";
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import Table, { TableCell, TableHeading, TableRow, TableBody, TableHead } from "./Table";
|
|
2
|
+
declare const TableRoot: typeof Table & {
|
|
3
|
+
Cell: typeof TableCell;
|
|
4
|
+
Heading: typeof TableHeading;
|
|
5
|
+
Row: typeof TableRow;
|
|
6
|
+
Body: typeof TableBody;
|
|
7
|
+
Head: typeof TableHead;
|
|
8
|
+
};
|
|
9
|
+
export default TableRoot;
|
|
2
10
|
export type { Props as TableProps, HeadProps as TableHeadProps, BodyProps as TableBodyProps, RowProps as TableRowProps, CellProps as TableCellProps, HeadingProps as TableHeadingProps, } from "./Table.types";
|
|
@@ -1 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import Table, { TableCell, TableHeading, TableRow, TableBody, TableHead } from "./Table.js";
|
|
2
|
+
const TableRoot = Table;
|
|
3
|
+
TableRoot.Cell = TableCell;
|
|
4
|
+
TableRoot.Heading = TableHeading;
|
|
5
|
+
TableRoot.Row = TableRow;
|
|
6
|
+
TableRoot.Body = TableBody;
|
|
7
|
+
TableRoot.Head = TableHead;
|
|
8
|
+
export default TableRoot;
|
|
@@ -3,11 +3,11 @@ import { StoryObj } from "@storybook/react-vite";
|
|
|
3
3
|
declare const _default: {
|
|
4
4
|
title: string;
|
|
5
5
|
component: React.FC<import("./..").TableProps> & {
|
|
6
|
-
Cell:
|
|
7
|
-
Heading:
|
|
8
|
-
Row:
|
|
9
|
-
Body:
|
|
10
|
-
Head:
|
|
6
|
+
Cell: typeof import("../Table").TableCell;
|
|
7
|
+
Heading: typeof import("../Table").TableHeading;
|
|
8
|
+
Row: typeof import("../Table").TableRow;
|
|
9
|
+
Body: typeof import("../Table").TableBody;
|
|
10
|
+
Head: typeof import("../Table").TableHead;
|
|
11
11
|
};
|
|
12
12
|
parameters: {
|
|
13
13
|
iframe: {
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import TabsItem from "./TabsItem";
|
|
2
|
-
import TabsList from "./TabsList";
|
|
3
|
-
import TabsPanel from "./TabsPanel";
|
|
4
1
|
import type * as T from "./Tabs.types";
|
|
5
|
-
declare const Tabs: React.FC<T.Props
|
|
6
|
-
Item: typeof TabsItem;
|
|
7
|
-
List: typeof TabsList;
|
|
8
|
-
Panel: typeof TabsPanel;
|
|
9
|
-
};
|
|
2
|
+
declare const Tabs: React.FC<T.Props>;
|
|
10
3
|
export default Tabs;
|
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import TabsControlled from "./TabsControlled.js";
|
|
3
3
|
import TabsUncontrolled from "./TabsUncontrolled.js";
|
|
4
|
-
import TabsItem from "./TabsItem.js";
|
|
5
|
-
import TabsList from "./TabsList.js";
|
|
6
|
-
import TabsPanel from "./TabsPanel.js";
|
|
7
4
|
const Tabs = (props) => {
|
|
8
5
|
const { value } = props;
|
|
9
6
|
if (value !== undefined)
|
|
10
7
|
return _jsx(TabsControlled, { ...props });
|
|
11
8
|
return _jsx(TabsUncontrolled, { ...props });
|
|
12
9
|
};
|
|
13
|
-
Tabs.Item = TabsItem;
|
|
14
|
-
Tabs.List = TabsList;
|
|
15
|
-
Tabs.Panel = TabsPanel;
|
|
16
10
|
Tabs.displayName = "Tabs";
|
|
17
11
|
export default Tabs;
|
|
@@ -1,2 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import Tabs from "./Tabs";
|
|
2
|
+
import TabsItem from "./TabsItem";
|
|
3
|
+
import TabsList from "./TabsList";
|
|
4
|
+
import TabsPanel from "./TabsPanel";
|
|
5
|
+
declare const TabsRoot: typeof Tabs & {
|
|
6
|
+
Item: typeof TabsItem;
|
|
7
|
+
List: typeof TabsList;
|
|
8
|
+
Panel: typeof TabsPanel;
|
|
9
|
+
};
|
|
10
|
+
export default TabsRoot;
|
|
2
11
|
export type { Props as TabsProps, ItemProps as TabsItemProps } from "./Tabs.types";
|
|
@@ -1 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import Tabs from "./Tabs.js";
|
|
2
|
+
import TabsItem from "./TabsItem.js";
|
|
3
|
+
import TabsList from "./TabsList.js";
|
|
4
|
+
import TabsPanel from "./TabsPanel.js";
|
|
5
|
+
const TabsRoot = Tabs;
|
|
6
|
+
TabsRoot.Item = TabsItem;
|
|
7
|
+
TabsRoot.List = TabsList;
|
|
8
|
+
TabsRoot.Panel = TabsPanel;
|
|
9
|
+
export default TabsRoot;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import Aligner from "../_private/Aligner";
|
|
3
2
|
import type * as T from "./TextArea.types";
|
|
4
|
-
declare const TextArea: React.FC<T.Props
|
|
5
|
-
Aligner: typeof Aligner;
|
|
6
|
-
};
|
|
3
|
+
declare const TextArea: React.FC<T.Props>;
|
|
7
4
|
export default TextArea;
|
|
@@ -3,7 +3,6 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { classNames, responsiveClassNames } from "../../utilities/props.js";
|
|
5
5
|
import { useFormControl } from "../FormControl/index.js";
|
|
6
|
-
import Aligner from "../_private/Aligner/index.js";
|
|
7
6
|
import useElementId from "../../hooks/useElementId.js";
|
|
8
7
|
import s from "./TextArea.module.css";
|
|
9
8
|
const TextArea = (props) => {
|
|
@@ -30,6 +29,5 @@ const TextArea = (props) => {
|
|
|
30
29
|
}, [value, resize]);
|
|
31
30
|
return (_jsx("div", { ...attributes, "data-rs-aligner-target": true, className: rootClassName, "data-rs-textarea-value": autogrowValue, children: _jsx("textarea", { rows: 3, ...inputAttributes, className: s.input, disabled: disabled, name: name, placeholder: placeholder, value: value, defaultValue: defaultValue, onChange: handleChange, onFocus: onFocus || inputAttributes?.onFocus, onBlur: onBlur || inputAttributes?.onBlur, id: inputId }) }));
|
|
32
31
|
};
|
|
33
|
-
TextArea.Aligner = Aligner;
|
|
34
32
|
TextArea.displayName = "TextArea";
|
|
35
33
|
export default TextArea;
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import Aligner from "../_private/Aligner";
|
|
2
|
+
import TextArea from "./TextArea";
|
|
3
|
+
declare const TextAreaRoot: typeof TextArea & {
|
|
4
|
+
Aligner: typeof Aligner;
|
|
5
|
+
};
|
|
6
|
+
export default TextAreaRoot;
|
|
2
7
|
export type { Props as TextAreaProps } from "./TextArea.types";
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import Aligner from "../_private/Aligner";
|
|
3
2
|
import type * as T from "./TextField.types";
|
|
4
|
-
declare const TextField: React.FC<T.Props
|
|
5
|
-
Aligner: typeof Aligner;
|
|
6
|
-
};
|
|
3
|
+
declare const TextField: React.FC<T.Props>;
|
|
7
4
|
export default TextField;
|
|
@@ -5,7 +5,6 @@ import { classNames, responsiveClassNames, responsivePropDependency } from "../.
|
|
|
5
5
|
import useElementId from "../../hooks/useElementId.js";
|
|
6
6
|
import { useFormControl } from "../FormControl/index.js";
|
|
7
7
|
import Icon from "../Icon/index.js";
|
|
8
|
-
import Aligner from "../_private/Aligner/index.js";
|
|
9
8
|
import s from "./TextField.module.css";
|
|
10
9
|
const TextFieldSlot = (props) => {
|
|
11
10
|
const { slot, icon, size, affix, position, id } = props;
|
|
@@ -60,6 +59,5 @@ const TextField = (props) => {
|
|
|
60
59
|
: undefined,
|
|
61
60
|
}, "data-rs-aligner-target": true, className: rootClassName, children: [_jsx(TextFieldSlot, { position: "start", icon: icon, slot: startSlot, size: size, affix: prefix, id: id }), _jsxs("div", { className: s.inner, children: [_jsx("input", { type: "text", autoComplete: "off", ...inputAttributes, className: classNames(s.input, inputAttributes.className), disabled: disabled, name: name, placeholder: placeholder, value: value, defaultValue: defaultValue, onChange: handleChange, onFocus: onFocus || inputAttributes?.onFocus, onBlur: onBlur || inputAttributes?.onBlur, id: inputId }), _jsx(TextFieldSlot, { position: "end", icon: endIcon, slot: endSlot, size: size, affix: suffix, id: id })] })] }));
|
|
62
61
|
};
|
|
63
|
-
TextField.Aligner = Aligner;
|
|
64
62
|
TextField.displayName = "TextField";
|
|
65
63
|
export default TextField;
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import Aligner from "../_private/Aligner";
|
|
2
|
+
import TextField from "./TextField";
|
|
3
|
+
declare const TextFieldRoot: typeof TextField & {
|
|
4
|
+
Aligner: typeof Aligner;
|
|
5
|
+
};
|
|
6
|
+
export default TextFieldRoot;
|
|
2
7
|
export type { Props as TextFieldProps, BaseProps as TextFieldBaseProps } from "./TextField.types";
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type * as T from "./Timeline.types";
|
|
3
|
-
declare const TimelineItem: React.FC<T.ItemProps>;
|
|
4
|
-
declare const Timeline: React.FC<T.Props
|
|
5
|
-
Item: typeof TimelineItem;
|
|
6
|
-
};
|
|
3
|
+
export declare const TimelineItem: React.FC<T.ItemProps>;
|
|
4
|
+
declare const Timeline: React.FC<T.Props>;
|
|
7
5
|
export default Timeline;
|
|
@@ -3,7 +3,7 @@ import React, { isValidElement } from "react";
|
|
|
3
3
|
import { classNames } from "../../utilities/props.js";
|
|
4
4
|
import View from "../View/index.js";
|
|
5
5
|
import s from "./Timeline.module.css";
|
|
6
|
-
const TimelineItem = (props) => {
|
|
6
|
+
export const TimelineItem = (props) => {
|
|
7
7
|
const { children, markerSlot, className, attributes } = props;
|
|
8
8
|
const hasMarker = markerSlot !== null;
|
|
9
9
|
const itemClassNames = classNames(s.item, !hasMarker && s["item--full-width"], className);
|
|
@@ -16,7 +16,6 @@ const Timeline = (props) => {
|
|
|
16
16
|
return isValidElement(child) && child.type === TimelineItem ? (child) : (_jsx(TimelineItem, { children: child }, index));
|
|
17
17
|
}) }));
|
|
18
18
|
};
|
|
19
|
-
Timeline.Item = TimelineItem;
|
|
20
19
|
Timeline.displayName = "Timeline";
|
|
21
20
|
TimelineItem.displayName = "Timeline.Item";
|
|
22
21
|
export default Timeline;
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import Timeline, { TimelineItem } from "./Timeline";
|
|
2
|
+
declare const TimelineRoot: typeof Timeline & {
|
|
3
|
+
Item: typeof TimelineItem;
|
|
4
|
+
};
|
|
5
|
+
export default TimelineRoot;
|
|
2
6
|
export type { Props as TimelineProps, ItemProps as TimelineItemProps } from "./Timeline.types";
|
|
@@ -2,7 +2,7 @@ import { StoryObj } from "@storybook/react-vite";
|
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
4
|
component: import("react").FC<import("./..").TimelineProps> & {
|
|
5
|
-
Item: import("
|
|
5
|
+
Item: typeof import("../Timeline").TimelineItem;
|
|
6
6
|
};
|
|
7
7
|
parameters: {
|
|
8
8
|
iframe: {
|
|
@@ -2,6 +2,9 @@ import { expect, fn, userEvent } from "storybook/test";
|
|
|
2
2
|
import { Example } from "../../../utilities/storybook/index.js";
|
|
3
3
|
import ToggleButtonGroup from "../index.js";
|
|
4
4
|
import ToggleButton from "../../ToggleButton/index.js";
|
|
5
|
+
import IconPlus from "../../../icons/Plus.js";
|
|
6
|
+
import IconMinus from "../../../icons/Minus.js";
|
|
7
|
+
import IconCheckmark from "../../../icons/Checkmark.js";
|
|
5
8
|
export default {
|
|
6
9
|
title: "Components/ToggleButtonGroup",
|
|
7
10
|
component: ToggleButtonGroup,
|
|
@@ -120,6 +123,7 @@ export const selectedColor = {
|
|
|
120
123
|
<ToggleButtonGroup selectedColor="primary" defaultValue={["2"]}>
|
|
121
124
|
<ToggleButton value="1">Button</ToggleButton>
|
|
122
125
|
<ToggleButton value="2">Button</ToggleButton>
|
|
126
|
+
<ToggleButton value="3">Button</ToggleButton>
|
|
123
127
|
</ToggleButtonGroup>
|
|
124
128
|
</Example.Item>
|
|
125
129
|
<Example.Item title="color: primary, selectedColor: critical">
|
|
@@ -130,6 +134,9 @@ export const selectedColor = {
|
|
|
130
134
|
<ToggleButton value="2" variant="ghost">
|
|
131
135
|
Button
|
|
132
136
|
</ToggleButton>
|
|
137
|
+
<ToggleButton value="3" variant="ghost">
|
|
138
|
+
Button
|
|
139
|
+
</ToggleButton>
|
|
133
140
|
</ToggleButtonGroup>
|
|
134
141
|
</Example.Item>
|
|
135
142
|
</Example>),
|
|
@@ -148,3 +155,15 @@ export const className = {
|
|
|
148
155
|
expect(root).toHaveAttribute("id", "test-id");
|
|
149
156
|
},
|
|
150
157
|
};
|
|
158
|
+
export const testIcon = {
|
|
159
|
+
name: "test: icon only",
|
|
160
|
+
render: () => (<Example>
|
|
161
|
+
<Example.Item title="icon only">
|
|
162
|
+
<ToggleButtonGroup selectedColor="primary">
|
|
163
|
+
<ToggleButton value="1" icon={IconPlus}/>
|
|
164
|
+
<ToggleButton value="2" icon={IconMinus}/>
|
|
165
|
+
<ToggleButton value="3" icon={IconCheckmark}/>
|
|
166
|
+
</ToggleButtonGroup>
|
|
167
|
+
</Example.Item>
|
|
168
|
+
</Example>),
|
|
169
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type * as T from "./View.types";
|
|
3
|
+
export declare const ViewItem: {
|
|
4
|
+
<As extends keyof React.JSX.IntrinsicElements = "div">(props: T.ItemProps<As>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
3
7
|
declare const View: {
|
|
4
8
|
<As extends keyof React.JSX.IntrinsicElements = "div">(props: T.Props<As>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
Item: {
|
|
6
|
-
<As extends keyof React.JSX.IntrinsicElements = "div">(props: T.ItemProps<As>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
displayName: string;
|
|
8
|
-
};
|
|
9
9
|
displayName: string;
|
|
10
10
|
};
|
|
11
11
|
export default View;
|
|
@@ -6,7 +6,7 @@ import Divider from "../Divider/index.js";
|
|
|
6
6
|
import Hidden from "../Hidden/index.js";
|
|
7
7
|
import s from "./View.module.css";
|
|
8
8
|
import { resolveMixin } from "../../styles/mixin.js";
|
|
9
|
-
const ViewItem = (props) => {
|
|
9
|
+
export const ViewItem = (props) => {
|
|
10
10
|
const { columns, grow, shrink, gapBefore,
|
|
11
11
|
// Using any here to let TS save on type resolving, otherwise TS throws an error due to the type complexity
|
|
12
12
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -173,7 +173,6 @@ const View = (props) => {
|
|
|
173
173
|
};
|
|
174
174
|
return (_jsx(TagName, { ...attributes, className: rootClassNames, style: rootVariables, children: formattedChildren }));
|
|
175
175
|
};
|
|
176
|
-
View.Item = ViewItem;
|
|
177
176
|
View.displayName = "View";
|
|
178
177
|
ViewItem.displayName = "View.Item";
|
|
179
178
|
export default View;
|
|
@@ -5,11 +5,9 @@ declare const _default: {
|
|
|
5
5
|
title: string;
|
|
6
6
|
component: {
|
|
7
7
|
<As extends keyof React.JSX.IntrinsicElements = "div">(props: ViewProps<As>): React.JSX.Element;
|
|
8
|
-
Item: {
|
|
9
|
-
<As extends keyof React.JSX.IntrinsicElements = "div">(props: import("./..").ViewItemProps<As>): React.JSX.Element;
|
|
10
|
-
displayName: string;
|
|
11
|
-
};
|
|
12
8
|
displayName: string;
|
|
9
|
+
} & {
|
|
10
|
+
Item: typeof import("../View").ViewItem;
|
|
13
11
|
};
|
|
14
12
|
parameters: {
|
|
15
13
|
iframe: {
|
|
@@ -5,11 +5,9 @@ export declare const usePortalScope: () => T.Context;
|
|
|
5
5
|
* Disclaimer: Works only for components that don't show the portal immediately
|
|
6
6
|
* That gives Portal time to receive scope on first render
|
|
7
7
|
*/
|
|
8
|
-
declare const Portal: React.FC<T.Props
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
declare function PortalScope<T extends HTMLElement>(props: T.ScopeProps<T>): React.ReactNode;
|
|
12
|
-
declare namespace PortalScope {
|
|
8
|
+
declare const Portal: React.FC<T.Props>;
|
|
9
|
+
export declare function PortalScope(props: T.ScopeProps<HTMLDivElement>): React.ReactNode;
|
|
10
|
+
export declare namespace PortalScope {
|
|
13
11
|
var displayName: string;
|
|
14
12
|
}
|
|
15
13
|
export default Portal;
|
|
@@ -45,12 +45,11 @@ const Portal = (props) => {
|
|
|
45
45
|
!mountedToggle.active && _jsx("div", { ref: rootRef, className: s.root }, "root"),
|
|
46
46
|
];
|
|
47
47
|
};
|
|
48
|
-
function PortalScope(props) {
|
|
48
|
+
export function PortalScope(props) {
|
|
49
49
|
const { children } = props;
|
|
50
50
|
const ref = React.useRef(null);
|
|
51
51
|
return (_jsx(PortalScopeContext.Provider, { value: { scopeRef: ref }, children: children(ref) }));
|
|
52
52
|
}
|
|
53
|
-
Portal.Scope = PortalScope;
|
|
54
53
|
Portal.displayName = "Portal";
|
|
55
54
|
PortalScope.displayName = "PortalScope";
|
|
56
55
|
export default Portal;
|
package/dist/config/postcss.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import path from "path";
|
|
2
|
+
import { fileURLToPath } from "url";
|
|
3
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
4
|
+
const __dirname = path.dirname(__filename);
|
|
2
5
|
const defaultThemeMediaCSSPath = path.resolve(__dirname, "../themes/reshaped/media.css");
|
|
3
6
|
// Using [plugin]: { ...options } format here because it's supported by the most frameworks
|
|
4
7
|
// - require('plugin') is not supported by Next
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reshaped",
|
|
3
3
|
"description": "Professionally crafted design system in React & Figma for building products of any scale and complexity",
|
|
4
|
-
"version": "3.8.
|
|
4
|
+
"version": "3.8.4-canary.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"email": "hello@reshaped.so",
|
|
7
7
|
"homepage": "https://reshaped.so",
|
|
@@ -45,15 +45,15 @@
|
|
|
45
45
|
},
|
|
46
46
|
"./themes": {
|
|
47
47
|
"types": "./dist/themes/index.d.ts",
|
|
48
|
-
"
|
|
48
|
+
"import": "./dist/themes/index.js"
|
|
49
49
|
},
|
|
50
50
|
"./config/postcss": {
|
|
51
51
|
"types": "./dist/config/postcss.d.ts",
|
|
52
|
-
"
|
|
52
|
+
"import": "./dist/config/postcss.js"
|
|
53
53
|
},
|
|
54
54
|
"./config/tailwind": {
|
|
55
55
|
"types": "./dist/config/tailwind.d.ts",
|
|
56
|
-
"
|
|
56
|
+
"import": "./dist/config/tailwind.js"
|
|
57
57
|
},
|
|
58
58
|
"./bundle": {
|
|
59
59
|
"types": "./dist/bundle.d.ts",
|
|
@@ -170,10 +170,9 @@
|
|
|
170
170
|
"clean": "sh ./bin/clean.sh",
|
|
171
171
|
"commit": "git-cz",
|
|
172
172
|
"changeset": "changeset",
|
|
173
|
-
"build": "pnpm clean && pnpm build:stories && pnpm build:esm && pnpm build:css && pnpm build:
|
|
173
|
+
"build": "pnpm clean && pnpm build:stories && pnpm build:esm && pnpm build:css && pnpm build:bundle",
|
|
174
174
|
"build:themes": "node bin/cli.js theming --config dist/cjs/cli/theming/reshaped.config.js --output src/themes",
|
|
175
175
|
"build:esm": "tsc -p tsconfig.esm.json && resolve-tspaths -p tsconfig.esm.json",
|
|
176
|
-
"build:cjs": "tsc -p tsconfig.cjs.json && resolve-tspaths -p tsconfig.cjs.json && node ./bin/format-cjs-build.js",
|
|
177
176
|
"build:css": "postcss \"src/**/*.css\" --dir dist --base src --config tools/build",
|
|
178
177
|
"build:stories": "tsc -p tsconfig.stories.json && resolve-tspaths -p tsconfig.stories.json",
|
|
179
178
|
"build:bundle": "vite build && cp dist/index.d.ts dist/bundle.d.ts",
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { PassedThemeDefinition } from "../../themes/_generator/tokens/types";
|
|
2
|
-
import type * as T from "../../themes/_generator/types";
|
|
3
|
-
export declare const addThemeFragment: (name: string, definition: PassedThemeDefinition, options: T.CLIOptions) => void;
|
|
4
|
-
export declare const addTheme: (name: string, definition: PassedThemeDefinition, options: T.CLIOptions) => void;
|