@soroush.tech/design-system 2.0.0-alpha.5 → 2.0.0-rc.1
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/README.md +2 -2
- package/dist/AppBar.d.cts +3 -3
- package/dist/AppBar.d.mts +3 -3
- package/dist/Avatar.cjs +1 -1
- package/dist/Avatar.d.cts +3 -3
- package/dist/Avatar.d.mts +3 -3
- package/dist/Avatar.mjs +1 -1
- package/dist/Backdrop.d.cts +1 -1
- package/dist/Backdrop.d.mts +1 -1
- package/dist/Button.cjs +1 -1
- package/dist/Button.d.cts +1 -1
- package/dist/Button.d.mts +1 -1
- package/dist/Button.mjs +1 -1
- package/dist/ButtonGroup.d.cts +1 -1
- package/dist/ButtonGroup.d.mts +1 -1
- package/dist/Card.cjs +2 -2
- package/dist/Card.d.cts +3 -3
- package/dist/Card.d.mts +3 -3
- package/dist/Card.mjs +2 -2
- package/dist/Checkbox.d.cts +2 -2
- package/dist/Checkbox.d.mts +2 -2
- package/dist/CircularProgress.cjs +1 -0
- package/dist/CircularProgress.d.cts +3 -3
- package/dist/CircularProgress.d.mts +3 -3
- package/dist/CircularProgress.mjs +1 -0
- package/dist/Drawer.cjs +2 -1
- package/dist/Drawer.d.cts +2 -2
- package/dist/Drawer.d.mts +2 -2
- package/dist/Drawer.mjs +2 -1
- package/dist/Flex.d.cts +1 -1
- package/dist/Flex.d.mts +1 -1
- package/dist/Form.d.cts +1 -1
- package/dist/Form.d.mts +1 -1
- package/dist/FormControl.cjs +1 -1
- package/dist/FormControl.d.cts +2 -2
- package/dist/FormControl.d.mts +2 -2
- package/dist/FormControl.mjs +1 -1
- package/dist/FormHelperText.d.cts +1 -1
- package/dist/FormHelperText.d.mts +1 -1
- package/dist/FormLabel.d.cts +1 -1
- package/dist/FormLabel.d.mts +1 -1
- package/dist/Grid.d.cts +3 -3
- package/dist/Grid.d.mts +3 -3
- package/dist/{Icon-CnYvHWhh.mjs → Icon-CH3asUJu.mjs} +1 -1
- package/dist/{Icon-DRBVfAHY.cjs → Icon-CI6q2Eyi.cjs} +1 -1
- package/dist/Icon.cjs +1 -1
- package/dist/Icon.d.cts +1 -1
- package/dist/Icon.d.mts +1 -1
- package/dist/Icon.mjs +1 -1
- package/dist/Image.d.cts +2 -2
- package/dist/Image.d.mts +2 -2
- package/dist/LinearProgress.d.cts +3 -3
- package/dist/LinearProgress.d.mts +3 -3
- package/dist/Link.cjs +1 -1
- package/dist/Link.d.cts +1 -1
- package/dist/Link.d.mts +1 -1
- package/dist/Link.mjs +1 -1
- package/dist/MenuItem.cjs +2 -2
- package/dist/MenuItem.d.cts +2 -2
- package/dist/MenuItem.d.mts +2 -2
- package/dist/MenuItem.mjs +2 -2
- package/dist/Modal.d.cts +1 -1
- package/dist/Modal.d.mts +1 -1
- package/dist/NativeSelect.cjs +2 -2
- package/dist/NativeSelect.d.cts +3 -3
- package/dist/NativeSelect.d.mts +3 -3
- package/dist/NativeSelect.mjs +2 -2
- package/dist/Pagination/PaginationItem.cjs +1 -1
- package/dist/Pagination/PaginationItem.d.cts +1 -1
- package/dist/Pagination/PaginationItem.d.mts +1 -1
- package/dist/Pagination/PaginationItem.mjs +1 -1
- package/dist/Pagination.d.cts +2 -2
- package/dist/Pagination.d.mts +2 -2
- package/dist/Paper.cjs +1 -1
- package/dist/Paper.d.cts +1 -1
- package/dist/Paper.d.mts +1 -1
- package/dist/Paper.mjs +1 -1
- package/dist/{Popover-DPcahLFU.mjs → Popover-DwnSLpp1.mjs} +1 -1
- package/dist/{Popover-CGJO-ztB.cjs → Popover-TpwRSORC.cjs} +1 -1
- package/dist/Popover.cjs +1 -1
- package/dist/Popover.d.cts +4 -4
- package/dist/Popover.d.mts +4 -4
- package/dist/Popover.mjs +1 -1
- package/dist/Pressable.cjs +1 -1
- package/dist/Pressable.d.cts +1 -1
- package/dist/Pressable.d.mts +1 -1
- package/dist/Pressable.mjs +1 -1
- package/dist/Quote.d.cts +3 -3
- package/dist/Quote.d.mts +3 -3
- package/dist/Radio.d.cts +2 -2
- package/dist/Radio.d.mts +2 -2
- package/dist/Select.cjs +3 -3
- package/dist/Select.d.cts +3 -3
- package/dist/Select.d.mts +3 -3
- package/dist/Select.mjs +3 -3
- package/dist/Sidebar/Sidebar.d.cts +1 -1
- package/dist/Sidebar/Sidebar.d.mts +1 -1
- package/dist/Sidebar/SidebarItem.cjs +1 -1
- package/dist/Sidebar/SidebarItem.d.cts +4 -4
- package/dist/Sidebar/SidebarItem.d.mts +4 -4
- package/dist/Sidebar/SidebarItem.mjs +1 -1
- package/dist/Skeleton.d.cts +2 -2
- package/dist/Skeleton.d.mts +2 -2
- package/dist/Switch.cjs +1 -1
- package/dist/Switch.d.cts +2 -2
- package/dist/Switch.d.mts +2 -2
- package/dist/Switch.mjs +1 -1
- package/dist/Table/Table.d.cts +3 -3
- package/dist/Table/Table.d.mts +3 -3
- package/dist/Table/TableBody.d.cts +2 -2
- package/dist/Table/TableBody.d.mts +2 -2
- package/dist/Table/TableCell.d.cts +1 -1
- package/dist/Table/TableCell.d.mts +1 -1
- package/dist/Table/TableContainer.d.cts +3 -3
- package/dist/Table/TableContainer.d.mts +3 -3
- package/dist/Table/TableControl.d.cts +1 -1
- package/dist/Table/TableControl.d.mts +1 -1
- package/dist/Table/TableFooter.d.cts +2 -2
- package/dist/Table/TableFooter.d.mts +2 -2
- package/dist/Table/TableHead.d.cts +2 -2
- package/dist/Table/TableHead.d.mts +2 -2
- package/dist/Table/TablePagination.d.cts +2 -2
- package/dist/Table/TablePagination.d.mts +2 -2
- package/dist/Table/TablePaginationActions.cjs +1 -1
- package/dist/Table/TablePaginationActions.d.cts +1 -1
- package/dist/Table/TablePaginationActions.d.mts +1 -1
- package/dist/Table/TablePaginationActions.mjs +1 -1
- package/dist/Table/TableRow.d.cts +2 -2
- package/dist/Table/TableRow.d.mts +2 -2
- package/dist/Table/TableSortLabel.cjs +1 -1
- package/dist/Table/TableSortLabel.d.cts +1 -1
- package/dist/Table/TableSortLabel.d.mts +1 -1
- package/dist/Table/TableSortLabel.mjs +1 -1
- package/dist/Table/hooks.d.cts +1 -1
- package/dist/Table/hooks.d.mts +1 -1
- package/dist/Table.d.cts +5 -5
- package/dist/Table.d.mts +5 -5
- package/dist/{TableContext-CA6a5Ol5.d.cts → TableContext-BeCxbtHH.d.cts} +1 -1
- package/dist/{TableContext-CIuPZ_at.d.mts → TableContext-BiRiYkVZ.d.mts} +1 -1
- package/dist/TextInput.cjs +1 -1
- package/dist/TextInput.d.cts +2 -2
- package/dist/TextInput.d.mts +2 -2
- package/dist/TextInput.mjs +1 -1
- package/dist/ToggleButton/ToggleButton.cjs +1 -1
- package/dist/ToggleButton/ToggleButton.d.cts +1 -1
- package/dist/ToggleButton/ToggleButton.d.mts +1 -1
- package/dist/ToggleButton/ToggleButton.mjs +1 -1
- package/dist/ToggleButton/ToggleButtonGroup.cjs +1 -1
- package/dist/ToggleButton/ToggleButtonGroup.d.cts +1 -1
- package/dist/ToggleButton/ToggleButtonGroup.d.mts +1 -1
- package/dist/ToggleButton/ToggleButtonGroup.mjs +1 -1
- package/dist/Typography.cjs +1 -1
- package/dist/Typography.d.cts +2 -2
- package/dist/Typography.d.mts +2 -2
- package/dist/Typography.mjs +1 -1
- package/dist/View.d.cts +1 -1
- package/dist/View.d.mts +1 -1
- package/dist/engine.d.cts +1 -1
- package/dist/engine.d.mts +1 -1
- package/dist/{index-BYqxI8bu.d.cts → index-B78VkB0-.d.cts} +3 -3
- package/dist/{index-yQfi7MqO.d.mts → index-BB-dLv5V.d.mts} +3 -3
- package/dist/{index-yR_0laAQ.d.mts → index-BSqet8aO.d.cts} +3 -3
- package/dist/{index-DbkAYV9r.d.mts → index-BUoVTCqX.d.mts} +2 -2
- package/dist/{index-BcU5ow8v.d.mts → index-B_dKjEDR.d.mts} +3 -3
- package/dist/{index-CAjXum0k.d.cts → index-Belxmt1X.d.cts} +2 -2
- package/dist/{index-BSYW7cMN.d.mts → index-BfZuh9c2.d.mts} +3 -3
- package/dist/{index-FiPb4-DU.d.mts → index-BhibLnZ0.d.cts} +3 -3
- package/dist/{index-CQRdyj3E.d.mts → index-Bid71KeF.d.cts} +2 -2
- package/dist/{index-e5hDFZ05.d.mts → index-C1WqEDtQ.d.mts} +1 -1
- package/dist/{index-BUrUPbcB.d.mts → index-CA7HnbtH.d.cts} +3 -3
- package/dist/{index-ClclP_mB.d.cts → index-CKZaErxJ.d.mts} +3 -3
- package/dist/{index-sCbCJL02.d.cts → index-Celm-8iN.d.cts} +3 -3
- package/dist/{index-q3Ftmjpf.d.mts → index-Chg6pSrr.d.mts} +3 -3
- package/dist/{index-DLezwPW8.d.mts → index-CrN4MSUF.d.cts} +1 -1
- package/dist/{index-BUb6X9OH.d.mts → index-Ctqajtac.d.cts} +2 -2
- package/dist/{index-BHIuGvMo.d.cts → index-CxUsrlg1.d.cts} +2 -2
- package/dist/{index-C1uWcbTj.d.cts → index-DBUwu65Z.d.cts} +1 -1
- package/dist/{index-BqJWxp9I.d.cts → index-DNwF3DUX.d.cts} +3 -3
- package/dist/{index-DmJCHY90.d.cts → index-DO9J-Fla.d.mts} +2 -2
- package/dist/{index-DT6KvZ1x.d.cts → index-DXvQ-JVZ.d.mts} +3 -3
- package/dist/{index-ChPaQZ6F.d.cts → index-DbEnSf2m.d.cts} +3 -3
- package/dist/{index-BCQ9LmG1.d.cts → index-DdqdSOct.d.cts} +2 -2
- package/dist/{index-B2ljqGWF.d.cts → index-DzQJSYIh.d.cts} +3 -3
- package/dist/{index-BAsVlkuL.d.mts → index-GpnmW6vu.d.mts} +2 -2
- package/dist/{index-DzdiUOgM.d.cts → index-S-ClM6WM.d.mts} +2 -2
- package/dist/{index-DPMcs3Q1.d.cts → index-VOsBSWEu.d.mts} +1 -1
- package/dist/{index-Dq5PHWL4.d.mts → index-Wnv6jCR3.d.mts} +2 -2
- package/dist/{index-CllDs3D0.d.mts → index-cuv3o-L7.d.mts} +2 -2
- package/dist/{index-CSoaaZ20.d.cts → index-nB94D7UM.d.cts} +2 -2
- package/dist/{index-Cj--T8Sh.d.mts → index-nc4Sxiy9.d.mts} +3 -3
- package/dist/{index-5w87AK-Y.d.cts → index-smqjMLAZ.d.mts} +3 -3
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/style.cjs +1 -1
- package/dist/style.d.cts +2 -2
- package/dist/style.d.mts +2 -2
- package/dist/style.mjs +1 -1
- package/dist/testing.cjs +1 -0
- package/dist/testing.mjs +1 -0
- package/dist/{theme-B0P8owUo.cjs → theme-BXlAP3xf.cjs} +6 -1
- package/dist/{theme-DdjeZjsA.mjs → theme-CDVxig_g.mjs} +6 -1
- package/dist/theme.cjs +1 -1
- package/dist/theme.d.cts +2 -2
- package/dist/theme.d.mts +2 -2
- package/dist/theme.mjs +1 -1
- package/dist/{themes-DEom6o-J.d.cts → themes-Kbk9h5cN.d.cts} +5 -0
- package/dist/{themes-CQKn24UN.d.mts → themes-RX2UX5gD.d.mts} +5 -0
- package/dist/{useTablePagination-Ci9tV-Y3.d.cts → useTablePagination-COTiNH_8.d.mts} +1 -1
- package/dist/{useTablePagination-Et2FY7SE.d.mts → useTablePagination-WFkaUZu8.d.cts} +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as Theme } from "./themes-
|
|
2
|
-
import "./index-
|
|
1
|
+
import { T as Theme } from "./themes-Kbk9h5cN.cjs";
|
|
2
|
+
import "./index-DBUwu65Z.cjs";
|
|
3
3
|
import { CSSProperties, HTMLAttributes } from "react";
|
|
4
4
|
import { BorderProps, FlexboxProps, LayoutFrameProps, LayoutProps, PositionProps, SpaceProps, SpanProps, TypographyProps } from "@soroush.tech/styled-system";
|
|
5
5
|
//#region src/View/View.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { T as Theme } from "./themes-
|
|
2
|
-
import "./index-
|
|
3
|
-
import { n as IconProps, r as IconName } from "./index-
|
|
1
|
+
import { T as Theme } from "./themes-RX2UX5gD.mjs";
|
|
2
|
+
import "./index-C1WqEDtQ.mjs";
|
|
3
|
+
import { n as IconProps, r as IconName } from "./index-DO9J-Fla.mjs";
|
|
4
4
|
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
5
5
|
import { ButtonHTMLAttributes } from "react";
|
|
6
6
|
//#region src/Table/TableSortLabel/TableSortLabel.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { T as Theme, Y as TypographyVariant } from "./themes-
|
|
2
|
-
import "./index-
|
|
3
|
-
import { CSSProperties, ElementType, HTMLAttributes } from "react";
|
|
1
|
+
import { T as Theme, Y as TypographyVariant } from "./themes-RX2UX5gD.mjs";
|
|
2
|
+
import "./index-C1WqEDtQ.mjs";
|
|
4
3
|
import { BorderProps, FlexboxProps, LayoutProps, PositionProps, SpaceProps, TypographyProps } from "@soroush.tech/styled-system";
|
|
4
|
+
import { CSSProperties, ElementType, HTMLAttributes } from "react";
|
|
5
5
|
//#region src/Typography/Typography.d.ts
|
|
6
6
|
type TypographyAlign = 'left' | 'right' | 'center' | 'justify' | 'inherit';
|
|
7
7
|
/** Valid values for the color prop - derived from theme.text keys. */
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as Theme, a as CSSObject, x as PaletteColor } from "./themes-
|
|
2
|
-
import { a as ThemeCustomizationOptions, i as props, n as css, o as styled, r as keyframes, t as createShouldForwardProp } from "./index-
|
|
1
|
+
import { T as Theme, a as CSSObject, x as PaletteColor } from "./themes-Kbk9h5cN.cjs";
|
|
2
|
+
import { a as ThemeCustomizationOptions, i as props, n as css, o as styled, r as keyframes, t as createShouldForwardProp } from "./index-DBUwu65Z.cjs";
|
|
3
3
|
export * from "@soroush.tech/styled-system";
|
|
4
4
|
export { type CSSObject, type PaletteColor, type Theme, type ThemeCustomizationOptions, createShouldForwardProp, css, keyframes, props, styled };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as Theme, a as CSSObject, x as PaletteColor } from "./themes-
|
|
2
|
-
import { a as ThemeCustomizationOptions, i as props, n as css, o as styled, r as keyframes, t as createShouldForwardProp } from "./index-
|
|
1
|
+
import { T as Theme, a as CSSObject, x as PaletteColor } from "./themes-RX2UX5gD.mjs";
|
|
2
|
+
import { a as ThemeCustomizationOptions, i as props, n as css, o as styled, r as keyframes, t as createShouldForwardProp } from "./index-C1WqEDtQ.mjs";
|
|
3
3
|
export * from "@soroush.tech/styled-system";
|
|
4
4
|
export { type CSSObject, type PaletteColor, type Theme, type ThemeCustomizationOptions, createShouldForwardProp, css, keyframes, props, styled };
|
package/dist/style.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_theme = require("./theme-
|
|
2
|
+
const require_theme = require("./theme-BXlAP3xf.cjs");
|
|
3
3
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
4
4
|
let _emotion_react = require("@emotion/react");
|
|
5
5
|
//#region src/style/hooks/useStyle.ts
|
package/dist/style.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as Theme, a as CSSObject } from "./themes-
|
|
2
|
-
import "./index-
|
|
1
|
+
import { T as Theme, a as CSSObject } from "./themes-Kbk9h5cN.cjs";
|
|
2
|
+
import "./index-CrN4MSUF.cjs";
|
|
3
3
|
import { ComponentType, ReactNode } from "react";
|
|
4
4
|
//#region src/style/hooks/useStyle.d.ts
|
|
5
5
|
type StyleFactory = {
|
package/dist/style.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as Theme, a as CSSObject } from "./themes-
|
|
2
|
-
import "./index-
|
|
1
|
+
import { T as Theme, a as CSSObject } from "./themes-RX2UX5gD.mjs";
|
|
2
|
+
import "./index-VOsBSWEu.mjs";
|
|
3
3
|
import { ComponentType, ReactNode } from "react";
|
|
4
4
|
//#region src/style/hooks/useStyle.d.ts
|
|
5
5
|
type StyleFactory = {
|
package/dist/style.mjs
CHANGED
package/dist/testing.cjs
CHANGED
|
@@ -38,6 +38,7 @@ function installPopover() {
|
|
|
38
38
|
for (const element of document.querySelectorAll(`[popover]:not([popover="manual"])[${OPEN}]`)) setOpen(element, false);
|
|
39
39
|
};
|
|
40
40
|
const onClick = (event) => {
|
|
41
|
+
if (!(event.target instanceof Element)) return;
|
|
41
42
|
const button = event.target.closest("[popovertarget]");
|
|
42
43
|
const target = button && document.getElementById(button.getAttribute("popovertarget"));
|
|
43
44
|
if (!target?.hasAttribute("popover")) return;
|
package/dist/testing.mjs
CHANGED
|
@@ -37,6 +37,7 @@ function installPopover() {
|
|
|
37
37
|
for (const element of document.querySelectorAll(`[popover]:not([popover="manual"])[${OPEN}]`)) setOpen(element, false);
|
|
38
38
|
};
|
|
39
39
|
const onClick = (event) => {
|
|
40
|
+
if (!(event.target instanceof Element)) return;
|
|
40
41
|
const button = event.target.closest("[popovertarget]");
|
|
41
42
|
const target = button && document.getElementById(button.getAttribute("popovertarget"));
|
|
42
43
|
if (!target?.hasAttribute("popover")) return;
|
|
@@ -4,7 +4,7 @@ let react = require("react");
|
|
|
4
4
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
5
|
let _emotion_react = require("@emotion/react");
|
|
6
6
|
//#region src/theme/utils/spacing.ts
|
|
7
|
-
const spacing = (units) => `${8 * units}px`;
|
|
7
|
+
const spacing = (units) => units === 0 ? "0px" : `${Math.max(1, Math.round(8 * units))}px`;
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/theme/breakpoints.ts
|
|
10
10
|
/**
|
|
@@ -157,9 +157,14 @@ const sizes = {
|
|
|
157
157
|
};
|
|
158
158
|
const space = {
|
|
159
159
|
0: 0,
|
|
160
|
+
.125: spacing(.125),
|
|
161
|
+
.25: spacing(.25),
|
|
160
162
|
.5: spacing(.5),
|
|
163
|
+
.75: spacing(.75),
|
|
161
164
|
1: spacing(1),
|
|
165
|
+
1.25: spacing(1.25),
|
|
162
166
|
1.5: spacing(1.5),
|
|
167
|
+
1.75: spacing(1.75),
|
|
163
168
|
2: spacing(2),
|
|
164
169
|
3: spacing(3),
|
|
165
170
|
4: spacing(4),
|
|
@@ -4,7 +4,7 @@ import { createContainerQueries, createMediaHelpers } from "@soroush.tech/styled
|
|
|
4
4
|
import { useCallback, useMemo } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region src/theme/utils/spacing.ts
|
|
7
|
-
const spacing = (units) => `${8 * units}px`;
|
|
7
|
+
const spacing = (units) => units === 0 ? "0px" : `${Math.max(1, Math.round(8 * units))}px`;
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/theme/breakpoints.ts
|
|
10
10
|
/**
|
|
@@ -157,9 +157,14 @@ const sizes = {
|
|
|
157
157
|
};
|
|
158
158
|
const space = {
|
|
159
159
|
0: 0,
|
|
160
|
+
.125: spacing(.125),
|
|
161
|
+
.25: spacing(.25),
|
|
160
162
|
.5: spacing(.5),
|
|
163
|
+
.75: spacing(.75),
|
|
161
164
|
1: spacing(1),
|
|
165
|
+
1.25: spacing(1.25),
|
|
162
166
|
1.5: spacing(1.5),
|
|
167
|
+
1.75: spacing(1.75),
|
|
163
168
|
2: spacing(2),
|
|
164
169
|
3: spacing(3),
|
|
165
170
|
4: spacing(4),
|
package/dist/theme.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_themeDefault = require("./themeDefault-Cebi08Cv.cjs");
|
|
3
|
-
const require_theme = require("./theme-
|
|
3
|
+
const require_theme = require("./theme-BXlAP3xf.cjs");
|
|
4
4
|
exports.LayoutProvider = require_theme.LayoutProvider;
|
|
5
5
|
exports.ThemeProvider = require_theme.ThemeProvider;
|
|
6
6
|
exports.avatar = require_theme.avatar;
|
package/dist/theme.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as between, A as ThemeBreakpoints, B as ThemeRadii, C as PressableOwnerState, Ct as withBreakpointHelpers, D as ThemeBackground, E as ThemeAvatarSizes, F as ThemeIconSizes, G as ThemeSwitch, H as ThemeSizes, I as ThemeLayout, J as ThemeZOrder, K as ThemeText, L as ThemeLetterSpacings, M as ThemeDefaults, N as ThemeFontWeights, O as ThemeBorder, P as ThemeFonts, Q as baseTheme, R as ThemeLineHeights, S as PaletteEntry, St as BreakpointHelpers, T as Theme, U as ThemeSkeleton, V as ThemeShadow, W as ThemeSpace, X as TypographyVariantStyle, Y as TypographyVariant, Z as avatar, _ as LayoutPanel, _t as up, a as CSSObject, at as fontWeights, b as OpenScale, bt as ThemeOverride, c as CardSlotTypographyProps, ct as layout, d as ComponentVariant, dt as not, et as borderWidths, f as DefaultBreakpoints, ft as only, g as LayoutLength, gt as typography, h as LayoutEntry, ht as space, i as ButtonVariants, it as fontSizes, j as ThemeComponents, k as ThemeBorderWidths, l as ComponentConfig, lt as letterSpacings, m as LayoutContent, mt as sizes, n as BreakpointOverrides, nt as containerQueries, o as CardOwnerState, ot as fonts, p as LayoutBars, pt as radii, q as ThemeTypographyVariants, r as ButtonOwnerState, rt as down, s as CardSlotIconProps, st as icon, t as BreakpointKey, tt as breakpoints, u as ComponentStyle, ut as lineHeights, v as LayoutPanels, vt as zOrder, w as SizeEntry, x as PaletteColor, xt as createTheme, y as LayoutSpace, yt as DeepPartial, z as ThemePalette } from "./themes-
|
|
2
|
-
import { a as LayoutProvider, i as themeDefault, n as useDefaultProps, o as LayoutProviderProps, r as useTheme, s as ThemeProvider, t as withTheme } from "./index-
|
|
1
|
+
import { $ as between, A as ThemeBreakpoints, B as ThemeRadii, C as PressableOwnerState, Ct as withBreakpointHelpers, D as ThemeBackground, E as ThemeAvatarSizes, F as ThemeIconSizes, G as ThemeSwitch, H as ThemeSizes, I as ThemeLayout, J as ThemeZOrder, K as ThemeText, L as ThemeLetterSpacings, M as ThemeDefaults, N as ThemeFontWeights, O as ThemeBorder, P as ThemeFonts, Q as baseTheme, R as ThemeLineHeights, S as PaletteEntry, St as BreakpointHelpers, T as Theme, U as ThemeSkeleton, V as ThemeShadow, W as ThemeSpace, X as TypographyVariantStyle, Y as TypographyVariant, Z as avatar, _ as LayoutPanel, _t as up, a as CSSObject, at as fontWeights, b as OpenScale, bt as ThemeOverride, c as CardSlotTypographyProps, ct as layout, d as ComponentVariant, dt as not, et as borderWidths, f as DefaultBreakpoints, ft as only, g as LayoutLength, gt as typography, h as LayoutEntry, ht as space, i as ButtonVariants, it as fontSizes, j as ThemeComponents, k as ThemeBorderWidths, l as ComponentConfig, lt as letterSpacings, m as LayoutContent, mt as sizes, n as BreakpointOverrides, nt as containerQueries, o as CardOwnerState, ot as fonts, p as LayoutBars, pt as radii, q as ThemeTypographyVariants, r as ButtonOwnerState, rt as down, s as CardSlotIconProps, st as icon, t as BreakpointKey, tt as breakpoints, u as ComponentStyle, ut as lineHeights, v as LayoutPanels, vt as zOrder, w as SizeEntry, x as PaletteColor, xt as createTheme, y as LayoutSpace, yt as DeepPartial, z as ThemePalette } from "./themes-Kbk9h5cN.cjs";
|
|
2
|
+
import { a as LayoutProvider, i as themeDefault, n as useDefaultProps, o as LayoutProviderProps, r as useTheme, s as ThemeProvider, t as withTheme } from "./index-CrN4MSUF.cjs";
|
|
3
3
|
export { BreakpointHelpers, BreakpointKey, BreakpointOverrides, ButtonOwnerState, ButtonVariants, CSSObject, CardOwnerState, CardSlotIconProps, CardSlotTypographyProps, ComponentConfig, ComponentStyle, ComponentVariant, type DeepPartial, DefaultBreakpoints, LayoutBars, LayoutContent, LayoutEntry, LayoutLength, LayoutPanel, LayoutPanels, LayoutProvider, LayoutProviderProps, LayoutSpace, OpenScale, PaletteColor, PaletteEntry, PressableOwnerState, SizeEntry, Theme, ThemeAvatarSizes, ThemeBackground, ThemeBorder, ThemeBorderWidths, ThemeBreakpoints, ThemeComponents, ThemeDefaults, ThemeFontWeights, ThemeFonts, ThemeIconSizes, ThemeLayout, ThemeLetterSpacings, ThemeLineHeights, type ThemeOverride, ThemePalette, ThemeProvider, ThemeRadii, ThemeShadow, ThemeSizes, ThemeSkeleton, ThemeSpace, ThemeSwitch, ThemeText, ThemeTypographyVariants, ThemeZOrder, TypographyVariant, TypographyVariantStyle, avatar, baseTheme, between, borderWidths, breakpoints, containerQueries, createTheme, down, fontSizes, fontWeights, fonts, icon, layout, letterSpacings, lineHeights, not, only, radii, sizes, space, themeDefault, typography, up, useDefaultProps, useTheme, withBreakpointHelpers, withTheme, zOrder };
|
package/dist/theme.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as between, A as ThemeBreakpoints, B as ThemeRadii, C as PressableOwnerState, Ct as withBreakpointHelpers, D as ThemeBackground, E as ThemeAvatarSizes, F as ThemeIconSizes, G as ThemeSwitch, H as ThemeSizes, I as ThemeLayout, J as ThemeZOrder, K as ThemeText, L as ThemeLetterSpacings, M as ThemeDefaults, N as ThemeFontWeights, O as ThemeBorder, P as ThemeFonts, Q as baseTheme, R as ThemeLineHeights, S as PaletteEntry, St as BreakpointHelpers, T as Theme, U as ThemeSkeleton, V as ThemeShadow, W as ThemeSpace, X as TypographyVariantStyle, Y as TypographyVariant, Z as avatar, _ as LayoutPanel, _t as up, a as CSSObject, at as fontWeights, b as OpenScale, bt as ThemeOverride, c as CardSlotTypographyProps, ct as layout, d as ComponentVariant, dt as not, et as borderWidths, f as DefaultBreakpoints, ft as only, g as LayoutLength, gt as typography, h as LayoutEntry, ht as space, i as ButtonVariants, it as fontSizes, j as ThemeComponents, k as ThemeBorderWidths, l as ComponentConfig, lt as letterSpacings, m as LayoutContent, mt as sizes, n as BreakpointOverrides, nt as containerQueries, o as CardOwnerState, ot as fonts, p as LayoutBars, pt as radii, q as ThemeTypographyVariants, r as ButtonOwnerState, rt as down, s as CardSlotIconProps, st as icon, t as BreakpointKey, tt as breakpoints, u as ComponentStyle, ut as lineHeights, v as LayoutPanels, vt as zOrder, w as SizeEntry, x as PaletteColor, xt as createTheme, y as LayoutSpace, yt as DeepPartial, z as ThemePalette } from "./themes-
|
|
2
|
-
import { a as LayoutProvider, i as themeDefault, n as useDefaultProps, o as LayoutProviderProps, r as useTheme, s as ThemeProvider, t as withTheme } from "./index-
|
|
1
|
+
import { $ as between, A as ThemeBreakpoints, B as ThemeRadii, C as PressableOwnerState, Ct as withBreakpointHelpers, D as ThemeBackground, E as ThemeAvatarSizes, F as ThemeIconSizes, G as ThemeSwitch, H as ThemeSizes, I as ThemeLayout, J as ThemeZOrder, K as ThemeText, L as ThemeLetterSpacings, M as ThemeDefaults, N as ThemeFontWeights, O as ThemeBorder, P as ThemeFonts, Q as baseTheme, R as ThemeLineHeights, S as PaletteEntry, St as BreakpointHelpers, T as Theme, U as ThemeSkeleton, V as ThemeShadow, W as ThemeSpace, X as TypographyVariantStyle, Y as TypographyVariant, Z as avatar, _ as LayoutPanel, _t as up, a as CSSObject, at as fontWeights, b as OpenScale, bt as ThemeOverride, c as CardSlotTypographyProps, ct as layout, d as ComponentVariant, dt as not, et as borderWidths, f as DefaultBreakpoints, ft as only, g as LayoutLength, gt as typography, h as LayoutEntry, ht as space, i as ButtonVariants, it as fontSizes, j as ThemeComponents, k as ThemeBorderWidths, l as ComponentConfig, lt as letterSpacings, m as LayoutContent, mt as sizes, n as BreakpointOverrides, nt as containerQueries, o as CardOwnerState, ot as fonts, p as LayoutBars, pt as radii, q as ThemeTypographyVariants, r as ButtonOwnerState, rt as down, s as CardSlotIconProps, st as icon, t as BreakpointKey, tt as breakpoints, u as ComponentStyle, ut as lineHeights, v as LayoutPanels, vt as zOrder, w as SizeEntry, x as PaletteColor, xt as createTheme, y as LayoutSpace, yt as DeepPartial, z as ThemePalette } from "./themes-RX2UX5gD.mjs";
|
|
2
|
+
import { a as LayoutProvider, i as themeDefault, n as useDefaultProps, o as LayoutProviderProps, r as useTheme, s as ThemeProvider, t as withTheme } from "./index-VOsBSWEu.mjs";
|
|
3
3
|
export { BreakpointHelpers, BreakpointKey, BreakpointOverrides, ButtonOwnerState, ButtonVariants, CSSObject, CardOwnerState, CardSlotIconProps, CardSlotTypographyProps, ComponentConfig, ComponentStyle, ComponentVariant, type DeepPartial, DefaultBreakpoints, LayoutBars, LayoutContent, LayoutEntry, LayoutLength, LayoutPanel, LayoutPanels, LayoutProvider, LayoutProviderProps, LayoutSpace, OpenScale, PaletteColor, PaletteEntry, PressableOwnerState, SizeEntry, Theme, ThemeAvatarSizes, ThemeBackground, ThemeBorder, ThemeBorderWidths, ThemeBreakpoints, ThemeComponents, ThemeDefaults, ThemeFontWeights, ThemeFonts, ThemeIconSizes, ThemeLayout, ThemeLetterSpacings, ThemeLineHeights, type ThemeOverride, ThemePalette, ThemeProvider, ThemeRadii, ThemeShadow, ThemeSizes, ThemeSkeleton, ThemeSpace, ThemeSwitch, ThemeText, ThemeTypographyVariants, ThemeZOrder, TypographyVariant, TypographyVariantStyle, avatar, baseTheme, between, borderWidths, breakpoints, containerQueries, createTheme, down, fontSizes, fontWeights, fonts, icon, layout, letterSpacings, lineHeights, not, only, radii, sizes, space, themeDefault, typography, up, useDefaultProps, useTheme, withBreakpointHelpers, withTheme, zOrder };
|
package/dist/theme.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as themeDefault } from "./themeDefault-Z3KmyIbm.mjs";
|
|
2
|
-
import { C as sizes, D as zOrder, E as up, O as createTheme, S as radii, T as typography, _ as layout, a as ThemeProvider, b as not, c as between, d as containerQueries, f as down, g as icon, h as fonts, i as LayoutProvider, k as withBreakpointHelpers, l as borderWidths, m as fontWeights, n as useDefaultProps, o as avatar, p as fontSizes, r as useTheme, s as baseTheme, t as withTheme, u as breakpoints, v as letterSpacings, w as space, x as only, y as lineHeights } from "./theme-
|
|
2
|
+
import { C as sizes, D as zOrder, E as up, O as createTheme, S as radii, T as typography, _ as layout, a as ThemeProvider, b as not, c as between, d as containerQueries, f as down, g as icon, h as fonts, i as LayoutProvider, k as withBreakpointHelpers, l as borderWidths, m as fontWeights, n as useDefaultProps, o as avatar, p as fontSizes, r as useTheme, s as baseTheme, t as withTheme, u as breakpoints, v as letterSpacings, w as space, x as only, y as lineHeights } from "./theme-CDVxig_g.mjs";
|
|
3
3
|
export { LayoutProvider, ThemeProvider, avatar, baseTheme, between, borderWidths, breakpoints, containerQueries, createTheme, down, fontSizes, fontWeights, fonts, icon, layout, letterSpacings, lineHeights, not, only, radii, sizes, space, themeDefault, typography, up, useDefaultProps, useTheme, withBreakpointHelpers, withTheme, zOrder };
|
|
@@ -172,9 +172,14 @@ interface ThemeLetterSpacings {
|
|
|
172
172
|
interface ThemeSpace {
|
|
173
173
|
auto: string;
|
|
174
174
|
0: number | string;
|
|
175
|
+
0.125: number | string;
|
|
176
|
+
0.25: number | string;
|
|
175
177
|
0.5: number | string;
|
|
178
|
+
0.75: number | string;
|
|
176
179
|
1: number | string;
|
|
180
|
+
1.25: number | string;
|
|
177
181
|
1.5: number | string;
|
|
182
|
+
1.75: number | string;
|
|
178
183
|
2: number | string;
|
|
179
184
|
3: number | string;
|
|
180
185
|
4: number | string;
|
|
@@ -172,9 +172,14 @@ interface ThemeLetterSpacings {
|
|
|
172
172
|
interface ThemeSpace {
|
|
173
173
|
auto: string;
|
|
174
174
|
0: number | string;
|
|
175
|
+
0.125: number | string;
|
|
176
|
+
0.25: number | string;
|
|
175
177
|
0.5: number | string;
|
|
178
|
+
0.75: number | string;
|
|
176
179
|
1: number | string;
|
|
180
|
+
1.25: number | string;
|
|
177
181
|
1.5: number | string;
|
|
182
|
+
1.75: number | string;
|
|
178
183
|
2: number | string;
|
|
179
184
|
3: number | string;
|
|
180
185
|
4: number | string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as TableSortLabelDirection } from "./index-
|
|
1
|
+
import { n as TableSortLabelDirection } from "./index-nc4Sxiy9.mjs";
|
|
2
2
|
//#region src/Table/hooks/useTableSort.d.ts
|
|
3
3
|
/** One column's sort state - spreads directly onto `TableSortLabel`. */
|
|
4
4
|
interface TableSortEntry {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as TableSortLabelDirection } from "./index-
|
|
1
|
+
import { n as TableSortLabelDirection } from "./index-DNwF3DUX.cjs";
|
|
2
2
|
//#region src/Table/hooks/useTableSort.d.ts
|
|
3
3
|
/** One column's sort state - spreads directly onto `TableSortLabel`. */
|
|
4
4
|
interface TableSortEntry {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soroush.tech/design-system",
|
|
3
|
-
"version": "2.0.0-
|
|
3
|
+
"version": "2.0.0-rc.1",
|
|
4
4
|
"description": "Emotion + @soroush.tech/styled-system React component library - token-driven light/dark themes, layout primitives, forms, and overlays.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"design-system",
|
|
@@ -487,7 +487,7 @@
|
|
|
487
487
|
"@emotion/cache": "^11.14.0",
|
|
488
488
|
"@emotion/react": "^11.14.0",
|
|
489
489
|
"@emotion/styled": "^11.14.1",
|
|
490
|
-
"@soroush.tech/styled-system": "^6.0.0-
|
|
490
|
+
"@soroush.tech/styled-system": "^6.0.0-rc.1"
|
|
491
491
|
},
|
|
492
492
|
"peerDependencies": {
|
|
493
493
|
"react": "^19.2.8",
|