@soroush.tech/design-system 1.1.0 → 1.3.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/AppBar.cjs +1 -1
- package/dist/Avatar.cjs +2 -2
- package/dist/Avatar.mjs +1 -1
- package/dist/Backdrop.cjs +1 -1
- package/dist/Button.cjs +2 -2
- package/dist/Button.mjs +1 -1
- package/dist/ButtonGroup.cjs +1 -1
- package/dist/Card.cjs +3 -3
- package/dist/Card.mjs +2 -2
- package/dist/Checkbox.cjs +1 -1
- package/dist/CircularProgress.cjs +1 -1
- package/dist/Drawer.cjs +4 -3
- package/dist/Drawer.d.cts +1 -1
- package/dist/Drawer.d.mts +1 -1
- package/dist/Drawer.mjs +3 -2
- package/dist/Flex.cjs +1 -1
- package/dist/Flex.mjs +3 -1
- package/dist/FocusTrap.cjs +1 -1
- package/dist/Form.cjs +1 -1
- package/dist/FormControl.cjs +2 -2
- package/dist/FormControl.mjs +1 -1
- package/dist/FormHelperText.cjs +1 -1
- package/dist/FormLabel.cjs +1 -1
- package/dist/Grid.cjs +1 -1
- package/dist/Grid.mjs +3 -1
- package/dist/{Icon-BOjk5r39.cjs → Icon-ByDvM-t1.cjs} +9 -7
- package/dist/{Icon-CYjD0Bad.mjs → Icon-GgwNXKEY.mjs} +8 -6
- package/dist/Icon.cjs +1 -1
- package/dist/Icon.mjs +1 -1
- package/dist/Image.cjs +10 -9
- package/dist/Image.mjs +9 -8
- package/dist/LinearProgress.cjs +1 -1
- package/dist/Link.cjs +2 -2
- package/dist/Link.mjs +1 -1
- package/dist/MenuItem.cjs +3 -3
- package/dist/MenuItem.mjs +2 -2
- package/dist/{Modal-DZH-DzMZ.cjs → Modal-Bjfv7n4e.cjs} +26 -15
- package/dist/{Modal-dy5l7gfH.mjs → Modal-C0oiFAj5.mjs} +18 -13
- package/dist/Modal.cjs +3 -2
- package/dist/Modal.d.cts +2 -2
- package/dist/Modal.d.mts +2 -2
- package/dist/Modal.mjs +2 -2
- package/dist/NativeSelect.cjs +9 -8
- package/dist/NativeSelect.mjs +8 -7
- package/dist/Pagination/PaginationItem.cjs +2 -2
- package/dist/Pagination/PaginationItem.mjs +1 -1
- package/dist/Pagination.cjs +1 -1
- package/dist/Paper.cjs +2 -2
- package/dist/Paper.mjs +1 -1
- package/dist/{Popover-pEVboMZO.cjs → Popover-COoJ2p2I.cjs} +3 -3
- package/dist/{Popover-Chgtjn-N.mjs → Popover-mz_rnf5s.mjs} +2 -2
- package/dist/Popover.cjs +1 -1
- package/dist/Popover.d.cts +1 -1
- package/dist/Popover.d.mts +1 -1
- package/dist/Popover.mjs +1 -1
- package/dist/Pressable.cjs +2 -2
- package/dist/Pressable.mjs +1 -1
- package/dist/Quote.cjs +1 -1
- package/dist/Radio.cjs +1 -1
- package/dist/Select.cjs +42 -41
- package/dist/Select.mjs +41 -40
- package/dist/Sidebar/Sidebar.cjs +1 -1
- package/dist/Sidebar/SidebarItem.cjs +2 -2
- package/dist/Sidebar/SidebarItem.mjs +1 -1
- package/dist/Skeleton.cjs +1 -1
- package/dist/Switch.cjs +2 -2
- package/dist/Switch.mjs +1 -1
- package/dist/Table/Table.cjs +1 -1
- package/dist/Table/TableBody.cjs +18 -16
- package/dist/Table/TableBody.mjs +17 -15
- package/dist/Table/TableCell.cjs +1 -1
- package/dist/Table/TableContainer.cjs +1 -1
- package/dist/Table/TableControl.cjs +3 -2
- package/dist/Table/TableControl.mjs +3 -2
- package/dist/Table/TableFooter.cjs +18 -16
- package/dist/Table/TableFooter.mjs +17 -15
- package/dist/Table/TableHead.cjs +18 -16
- package/dist/Table/TableHead.mjs +17 -15
- package/dist/Table/TablePagination.cjs +1 -1
- package/dist/Table/TablePaginationActions.cjs +2 -2
- package/dist/Table/TablePaginationActions.mjs +1 -1
- package/dist/Table/TableRow.cjs +1 -1
- package/dist/Table/TableSortLabel.cjs +8 -7
- package/dist/Table/TableSortLabel.mjs +7 -6
- package/dist/Table/hooks.cjs +2 -1
- package/dist/Table/hooks.mjs +2 -1
- package/dist/TextInput.cjs +22 -19
- package/dist/TextInput.mjs +21 -18
- package/dist/ToggleButton/ToggleButton.cjs +2 -2
- package/dist/ToggleButton/ToggleButton.mjs +1 -1
- package/dist/ToggleButton/ToggleButtonGroup.cjs +2 -2
- package/dist/ToggleButton/ToggleButtonGroup.mjs +1 -1
- package/dist/Typography.cjs +2 -2
- package/dist/Typography.mjs +1 -1
- package/dist/View.cjs +1 -1
- package/dist/engine.cjs +1 -1
- package/dist/{index-BfpjEqqt.d.cts → index-0law1kXY.d.cts} +5 -2
- package/dist/{index-Ds__py2h.d.mts → index-CqFd46gX.d.mts} +5 -2
- package/dist/index.cjs +1 -1
- package/dist/{rolldown-runtime-DDXJien1.cjs → rolldown-runtime-BloeesfJ.cjs} +1 -1
- package/dist/{src-C8PIppTy.cjs → src-BJrcLd7P.cjs} +1 -1
- package/dist/style.cjs +1 -1
- package/dist/style.mjs +1 -1
- package/dist/{theme-Du6xgPsg.cjs → theme-CleLAV6A.cjs} +2 -1
- package/dist/{theme-V6lYzd3j.mjs → theme-Cudynq5K.mjs} +2 -1
- package/dist/theme.cjs +1 -1
- package/dist/theme.mjs +1 -1
- package/package.json +17 -17
package/dist/View.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_src = require("./src-
|
|
2
|
+
const require_src = require("./src-BJrcLd7P.cjs");
|
|
3
3
|
require("react");
|
|
4
4
|
let _soroush_tech_styled_system_should_forward_prop = require("@soroush.tech/styled-system/should-forward-prop");
|
|
5
5
|
//#region src/View/View.tsx
|
package/dist/engine.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_rolldown_runtime = require("./rolldown-runtime-
|
|
2
|
+
const require_rolldown_runtime = require("./rolldown-runtime-BloeesfJ.cjs");
|
|
3
3
|
const require_emotion = require("./emotion-DviPkkGL.cjs");
|
|
4
4
|
let _emotion_react = require("@emotion/react");
|
|
5
5
|
let _emotion_cache = require("@emotion/cache");
|
|
@@ -77,7 +77,10 @@ interface ManagedModal {
|
|
|
77
77
|
interface ManagedModalProps {
|
|
78
78
|
disableScrollLock?: boolean;
|
|
79
79
|
}
|
|
80
|
-
|
|
80
|
+
/** Hides an element from assistive tech. */
|
|
81
|
+
declare function hideFromAria(element: Element): void;
|
|
82
|
+
/** Reveals an element to assistive tech again. */
|
|
83
|
+
declare function exposeToAria(element: Element): void;
|
|
81
84
|
/**
|
|
82
85
|
* Tracks every open modal and the containers they live in. A single shared
|
|
83
86
|
* instance coordinates stacking (`isTopModal`), scroll-lock, and `aria-hidden`
|
|
@@ -92,4 +95,4 @@ declare class ModalManager {
|
|
|
92
95
|
isTopModal(modal: ManagedModal): boolean;
|
|
93
96
|
}
|
|
94
97
|
//#endregion
|
|
95
|
-
export {
|
|
98
|
+
export { hideFromAria as a, ModalScroll as c, UseModalReturnValue as d, useModal as f, exposeToAria as i, ModalCloseReason as l, ManagedModalProps as n, Modal as o, ModalManager as r, ModalProps as s, ManagedModal as t, UseModalParameters as u };
|
|
@@ -77,7 +77,10 @@ interface ManagedModal {
|
|
|
77
77
|
interface ManagedModalProps {
|
|
78
78
|
disableScrollLock?: boolean;
|
|
79
79
|
}
|
|
80
|
-
|
|
80
|
+
/** Hides an element from assistive tech. */
|
|
81
|
+
declare function hideFromAria(element: Element): void;
|
|
82
|
+
/** Reveals an element to assistive tech again. */
|
|
83
|
+
declare function exposeToAria(element: Element): void;
|
|
81
84
|
/**
|
|
82
85
|
* Tracks every open modal and the containers they live in. A single shared
|
|
83
86
|
* instance coordinates stacking (`isTopModal`), scroll-lock, and `aria-hidden`
|
|
@@ -92,4 +95,4 @@ declare class ModalManager {
|
|
|
92
95
|
isTopModal(modal: ManagedModal): boolean;
|
|
93
96
|
}
|
|
94
97
|
//#endregion
|
|
95
|
-
export {
|
|
98
|
+
export { hideFromAria as a, ModalScroll as c, UseModalReturnValue as d, useModal as f, exposeToAria as i, ModalCloseReason as l, ManagedModalProps as n, Modal as o, ModalManager as r, ModalProps as s, ManagedModal as t, UseModalParameters as u };
|
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_src = require("./src-
|
|
2
|
+
const require_src = require("./src-BJrcLd7P.cjs");
|
|
3
3
|
let _soroush_tech_styled_system_should_forward_prop = require("@soroush.tech/styled-system/should-forward-prop");
|
|
4
4
|
let _emotion_react = require("@emotion/react");
|
|
5
5
|
Object.defineProperty(exports, "createShouldForwardProp", {
|
|
@@ -25,7 +25,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
25
25
|
return to;
|
|
26
26
|
};
|
|
27
27
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
28
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
28
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
29
29
|
value: mod,
|
|
30
30
|
enumerable: true
|
|
31
31
|
}) : target, mod));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_rolldown_runtime = require("./rolldown-runtime-
|
|
1
|
+
const require_rolldown_runtime = require("./rolldown-runtime-BloeesfJ.cjs");
|
|
2
2
|
let _emotion_styled = require("@emotion/styled");
|
|
3
3
|
_emotion_styled = require_rolldown_runtime.__toESM(_emotion_styled, 1);
|
|
4
4
|
let _emotion_react = require("@emotion/react");
|
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-CleLAV6A.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.mjs
CHANGED
|
@@ -319,8 +319,9 @@ const baseTheme = {
|
|
|
319
319
|
//#endregion
|
|
320
320
|
//#region src/theme/ThemeProvider.tsx
|
|
321
321
|
function ThemeProvider({ children, theme = baseTheme, defaults }) {
|
|
322
|
+
const value = (0, react.useMemo)(() => defaults ? createTheme(theme, { defaults }) : theme, [theme, defaults]);
|
|
322
323
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_emotion_react.ThemeProvider, {
|
|
323
|
-
theme:
|
|
324
|
+
theme: value,
|
|
324
325
|
children
|
|
325
326
|
});
|
|
326
327
|
}
|
|
@@ -319,8 +319,9 @@ const baseTheme = {
|
|
|
319
319
|
//#endregion
|
|
320
320
|
//#region src/theme/ThemeProvider.tsx
|
|
321
321
|
function ThemeProvider({ children, theme = baseTheme, defaults }) {
|
|
322
|
+
const value = useMemo(() => defaults ? createTheme(theme, { defaults }) : theme, [theme, defaults]);
|
|
322
323
|
return /* @__PURE__ */ jsx(EmotionThemeProvider, {
|
|
323
|
-
theme:
|
|
324
|
+
theme: value,
|
|
324
325
|
children
|
|
325
326
|
});
|
|
326
327
|
}
|
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-CleLAV6A.cjs");
|
|
4
4
|
exports.ThemeProvider = require_theme.ThemeProvider;
|
|
5
5
|
exports.avatar = require_theme.avatar;
|
|
6
6
|
exports.baseTheme = require_theme.baseTheme;
|
package/dist/theme.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as themeDefault } from "./themeDefault-Z3KmyIbm.mjs";
|
|
2
|
-
import { _ as typography, a as avatar, c as fontSizes, d as icon, f as letterSpacings, g as space, h as sizes, i as ThemeProvider, l as fontWeights, m as radii, n as useDefaultProps, o as baseTheme, p as lineHeights, r as useTheme, s as borderWidths, t as withTheme, u as fonts, v as zOrder, y as createTheme } from "./theme-
|
|
2
|
+
import { _ as typography, a as avatar, c as fontSizes, d as icon, f as letterSpacings, g as space, h as sizes, i as ThemeProvider, l as fontWeights, m as radii, n as useDefaultProps, o as baseTheme, p as lineHeights, r as useTheme, s as borderWidths, t as withTheme, u as fonts, v as zOrder, y as createTheme } from "./theme-Cudynq5K.mjs";
|
|
3
3
|
export { ThemeProvider, avatar, baseTheme, borderWidths, createTheme, fontSizes, fontWeights, fonts, icon, letterSpacings, lineHeights, radii, sizes, space, themeDefault, typography, useDefaultProps, useTheme, withTheme, zOrder };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soroush.tech/design-system",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
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",
|
|
@@ -477,34 +477,34 @@
|
|
|
477
477
|
"@emotion/cache": "^11.14.0",
|
|
478
478
|
"@emotion/react": "^11.14.0",
|
|
479
479
|
"@emotion/styled": "^11.14.1",
|
|
480
|
-
"@soroush.tech/styled-system": "^5.8.
|
|
480
|
+
"@soroush.tech/styled-system": "^5.8.1"
|
|
481
481
|
},
|
|
482
482
|
"peerDependencies": {
|
|
483
|
-
"react": "^19.
|
|
484
|
-
"react-dom": "^19.
|
|
483
|
+
"react": "^19.2.8",
|
|
484
|
+
"react-dom": "^19.2.8"
|
|
485
485
|
},
|
|
486
486
|
"devDependencies": {
|
|
487
487
|
"@emotion/css": "^11.13.5",
|
|
488
|
-
"@storybook/react-vite": "^10.5.
|
|
489
|
-
"@testing-library/jest-dom": "^
|
|
488
|
+
"@storybook/react-vite": "^10.5.6",
|
|
489
|
+
"@testing-library/jest-dom": "^7.0.0",
|
|
490
490
|
"@testing-library/react": "^16.3.2",
|
|
491
|
-
"@types/node": "^26.1.
|
|
492
|
-
"@types/react": "^19.2.
|
|
493
|
-
"@types/react-dom": "^19.2.
|
|
491
|
+
"@types/node": "^26.1.2",
|
|
492
|
+
"@types/react": "^19.2.18",
|
|
493
|
+
"@types/react-dom": "^19.2.4",
|
|
494
494
|
"@vitest/browser-playwright": "^4.1.10",
|
|
495
495
|
"@vitest/coverage-v8": "^4.1.10",
|
|
496
|
-
"eslint": "^10.
|
|
496
|
+
"eslint": "^10.8.0",
|
|
497
497
|
"eslint-plugin-react": "^7.37.5",
|
|
498
498
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
499
499
|
"eslint-plugin-react-refresh": "^0.5.3",
|
|
500
|
-
"eslint-plugin-storybook": "^10.5.
|
|
501
|
-
"globals": "^17.
|
|
500
|
+
"eslint-plugin-storybook": "^10.5.6",
|
|
501
|
+
"globals": "^17.9.0",
|
|
502
502
|
"jsdom": "^29.1.1",
|
|
503
|
-
"playwright": "^1.
|
|
504
|
-
"react": "^19.2.
|
|
505
|
-
"react-dom": "^19.2.
|
|
506
|
-
"storybook": "^10.5.
|
|
507
|
-
"tsdown": "^0.22.
|
|
503
|
+
"playwright": "^1.62.1",
|
|
504
|
+
"react": "^19.2.8",
|
|
505
|
+
"react-dom": "^19.2.8",
|
|
506
|
+
"storybook": "^10.5.6",
|
|
507
|
+
"tsdown": "^0.22.14",
|
|
508
508
|
"typescript": "~6.0.3",
|
|
509
509
|
"vitest": "^4.1.10",
|
|
510
510
|
"zod": "^4.4.3",
|