@soroush.tech/design-system 1.2.0 → 1.3.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.
Files changed (200) hide show
  1. package/dist/AppBar.d.cts +2 -2
  2. package/dist/AppBar.d.mts +2 -2
  3. package/dist/AppBar.mjs +1 -1
  4. package/dist/Avatar.d.cts +2 -2
  5. package/dist/Avatar.d.mts +2 -2
  6. package/dist/Avatar.mjs +1 -1
  7. package/dist/Backdrop.d.cts +1 -1
  8. package/dist/Backdrop.d.mts +1 -1
  9. package/dist/Backdrop.mjs +1 -1
  10. package/dist/Button.d.cts +1 -1
  11. package/dist/Button.d.mts +1 -1
  12. package/dist/Button.mjs +1 -1
  13. package/dist/ButtonGroup.d.cts +1 -1
  14. package/dist/ButtonGroup.d.mts +1 -1
  15. package/dist/ButtonGroup.mjs +1 -1
  16. package/dist/Card.d.cts +3 -3
  17. package/dist/Card.d.mts +3 -3
  18. package/dist/Card.mjs +2 -2
  19. package/dist/Checkbox.d.cts +3 -2
  20. package/dist/Checkbox.d.mts +3 -2
  21. package/dist/Checkbox.mjs +1 -1
  22. package/dist/CircularProgress.d.cts +4 -3
  23. package/dist/CircularProgress.d.mts +4 -3
  24. package/dist/CircularProgress.mjs +1 -1
  25. package/dist/Drawer.cjs +1 -1
  26. package/dist/Drawer.d.cts +2 -2
  27. package/dist/Drawer.d.mts +2 -2
  28. package/dist/Drawer.mjs +2 -2
  29. package/dist/Flex.d.cts +1 -1
  30. package/dist/Flex.d.mts +1 -1
  31. package/dist/Flex.mjs +1 -1
  32. package/dist/FocusTrap.mjs +1 -1
  33. package/dist/Form.mjs +1 -1
  34. package/dist/FormControl.d.cts +1 -1
  35. package/dist/FormControl.d.mts +1 -1
  36. package/dist/FormControl.mjs +1 -1
  37. package/dist/FormHelperText.d.cts +1 -1
  38. package/dist/FormHelperText.d.mts +1 -1
  39. package/dist/FormHelperText.mjs +1 -1
  40. package/dist/FormLabel.d.cts +1 -1
  41. package/dist/FormLabel.d.mts +1 -1
  42. package/dist/FormLabel.mjs +1 -1
  43. package/dist/Grid.d.cts +4 -3
  44. package/dist/Grid.d.mts +4 -3
  45. package/dist/Grid.mjs +1 -1
  46. package/dist/{Icon-GgwNXKEY.mjs → Icon-CU_nUmsU.mjs} +1 -1
  47. package/dist/Icon.d.cts +1 -1
  48. package/dist/Icon.d.mts +1 -1
  49. package/dist/Icon.mjs +1 -1
  50. package/dist/Image.d.cts +3 -2
  51. package/dist/Image.d.mts +3 -2
  52. package/dist/Image.mjs +1 -1
  53. package/dist/LinearProgress.d.cts +4 -3
  54. package/dist/LinearProgress.d.mts +4 -3
  55. package/dist/LinearProgress.mjs +1 -1
  56. package/dist/Link.d.cts +1 -1
  57. package/dist/Link.d.mts +1 -1
  58. package/dist/Link.mjs +1 -1
  59. package/dist/MenuItem.d.cts +1 -1
  60. package/dist/MenuItem.d.mts +1 -1
  61. package/dist/MenuItem.mjs +2 -2
  62. package/dist/{Modal-S2nb35q-.cjs → Modal-Bjfv7n4e.cjs} +23 -13
  63. package/dist/{Modal-COLrJoNW.mjs → Modal-Bv-mf8Fn.mjs} +17 -13
  64. package/dist/Modal.cjs +3 -2
  65. package/dist/Modal.d.cts +2 -2
  66. package/dist/Modal.d.mts +2 -2
  67. package/dist/Modal.mjs +2 -2
  68. package/dist/NativeSelect.d.cts +4 -3
  69. package/dist/NativeSelect.d.mts +4 -3
  70. package/dist/NativeSelect.mjs +2 -2
  71. package/dist/Pagination/PaginationItem.d.cts +1 -1
  72. package/dist/Pagination/PaginationItem.d.mts +1 -1
  73. package/dist/Pagination/PaginationItem.mjs +2 -2
  74. package/dist/Pagination.d.cts +2 -2
  75. package/dist/Pagination.d.mts +2 -2
  76. package/dist/Pagination.mjs +1 -1
  77. package/dist/Paper.d.cts +1 -1
  78. package/dist/Paper.d.mts +1 -1
  79. package/dist/Paper.mjs +1 -1
  80. package/dist/{Popover-BjGubpna.mjs → Popover-CH3yI-j-.mjs} +2 -2
  81. package/dist/{Popover-BxN7ts_I.cjs → Popover-COoJ2p2I.cjs} +1 -1
  82. package/dist/Popover.cjs +1 -1
  83. package/dist/Popover.d.cts +3 -3
  84. package/dist/Popover.d.mts +3 -3
  85. package/dist/Popover.mjs +1 -1
  86. package/dist/Pressable.d.cts +1 -1
  87. package/dist/Pressable.d.mts +1 -1
  88. package/dist/Pressable.mjs +1 -1
  89. package/dist/Quote.d.cts +2 -2
  90. package/dist/Quote.d.mts +2 -2
  91. package/dist/Quote.mjs +1 -1
  92. package/dist/Radio.d.cts +3 -2
  93. package/dist/Radio.d.mts +3 -2
  94. package/dist/Radio.mjs +1 -1
  95. package/dist/Select.cjs +1 -1
  96. package/dist/Select.d.cts +4 -3
  97. package/dist/Select.d.mts +4 -3
  98. package/dist/Select.mjs +3 -3
  99. package/dist/Sidebar/Sidebar.d.cts +1 -1
  100. package/dist/Sidebar/Sidebar.d.mts +1 -1
  101. package/dist/Sidebar/Sidebar.mjs +1 -1
  102. package/dist/Sidebar/SidebarItem.d.cts +3 -3
  103. package/dist/Sidebar/SidebarItem.d.mts +3 -3
  104. package/dist/Sidebar/SidebarItem.mjs +2 -2
  105. package/dist/Skeleton.d.cts +3 -2
  106. package/dist/Skeleton.d.mts +3 -2
  107. package/dist/Skeleton.mjs +1 -1
  108. package/dist/Switch.d.cts +3 -2
  109. package/dist/Switch.d.mts +3 -2
  110. package/dist/Switch.mjs +1 -1
  111. package/dist/Table/Table.d.cts +3 -2
  112. package/dist/Table/Table.d.mts +3 -2
  113. package/dist/Table/Table.mjs +1 -1
  114. package/dist/Table/TableBody.d.cts +3 -2
  115. package/dist/Table/TableBody.d.mts +3 -2
  116. package/dist/Table/TableBody.mjs +1 -1
  117. package/dist/Table/TableCell.d.cts +1 -1
  118. package/dist/Table/TableCell.d.mts +1 -1
  119. package/dist/Table/TableCell.mjs +1 -1
  120. package/dist/Table/TableContainer.d.cts +2 -2
  121. package/dist/Table/TableContainer.d.mts +2 -2
  122. package/dist/Table/TableContainer.mjs +1 -1
  123. package/dist/Table/TableControl.d.cts +1 -1
  124. package/dist/Table/TableControl.d.mts +1 -1
  125. package/dist/Table/TableFooter.d.cts +3 -2
  126. package/dist/Table/TableFooter.d.mts +3 -2
  127. package/dist/Table/TableFooter.mjs +1 -1
  128. package/dist/Table/TableHead.d.cts +3 -2
  129. package/dist/Table/TableHead.d.mts +3 -2
  130. package/dist/Table/TableHead.mjs +1 -1
  131. package/dist/Table/TablePagination.d.cts +2 -2
  132. package/dist/Table/TablePagination.d.mts +2 -2
  133. package/dist/Table/TablePagination.mjs +1 -1
  134. package/dist/Table/TablePaginationActions.d.cts +1 -1
  135. package/dist/Table/TablePaginationActions.d.mts +1 -1
  136. package/dist/Table/TablePaginationActions.mjs +1 -1
  137. package/dist/Table/TableRow.d.cts +3 -2
  138. package/dist/Table/TableRow.d.mts +3 -2
  139. package/dist/Table/TableRow.mjs +1 -1
  140. package/dist/Table/TableSortLabel.d.cts +1 -1
  141. package/dist/Table/TableSortLabel.d.mts +1 -1
  142. package/dist/Table/TableSortLabel.mjs +2 -2
  143. package/dist/Table/hooks.d.cts +1 -1
  144. package/dist/Table/hooks.d.mts +1 -1
  145. package/dist/Table.d.cts +4 -4
  146. package/dist/Table.d.mts +4 -4
  147. package/dist/TextInput.cjs +11 -9
  148. package/dist/TextInput.d.cts +3 -2
  149. package/dist/TextInput.d.mts +3 -2
  150. package/dist/TextInput.mjs +12 -10
  151. package/dist/ToggleButton/ToggleButton.d.cts +1 -1
  152. package/dist/ToggleButton/ToggleButton.d.mts +1 -1
  153. package/dist/ToggleButton/ToggleButton.mjs +1 -1
  154. package/dist/ToggleButton/ToggleButtonGroup.d.cts +1 -1
  155. package/dist/ToggleButton/ToggleButtonGroup.d.mts +1 -1
  156. package/dist/ToggleButton/ToggleButtonGroup.mjs +1 -1
  157. package/dist/Typography.d.cts +1 -1
  158. package/dist/Typography.d.mts +1 -1
  159. package/dist/Typography.mjs +1 -1
  160. package/dist/View.d.cts +1 -1
  161. package/dist/View.d.mts +1 -1
  162. package/dist/View.mjs +1 -1
  163. package/dist/{index-DLJ-li1B.d.cts → index-2QPYJgCl.d.cts} +2 -7
  164. package/dist/{index-BwUnDd9W.d.mts → index-3hPS6Lm8.d.mts} +3 -2
  165. package/dist/{index-D8U2tk1L.d.mts → index-BAfSyQaP.d.mts} +3 -2
  166. package/dist/{index-BfpjEqqt.d.cts → index-BBWtMvkm.d.cts} +6 -3
  167. package/dist/{index-DjtGkwRM.d.cts → index-BPzvFTi5.d.cts} +4 -3
  168. package/dist/{index-CYTaYcm3.d.cts → index-BW-9sqFG.d.cts} +2 -2
  169. package/dist/{index--mvTGo8F.d.cts → index-BYYEoNec.d.cts} +4 -3
  170. package/dist/{index-BL3jwIQU.d.mts → index-BjLlSr2P.d.mts} +3 -3
  171. package/dist/{index-CA_X-mXg.d.cts → index-Borai-Wg.d.cts} +3 -3
  172. package/dist/{index-BItZoGZ1.d.mts → index-C1hP7Igl.d.mts} +4 -3
  173. package/dist/{index-B3FrhO2r.d.cts → index-CCfnnT2l.d.cts} +4 -3
  174. package/dist/{index-KZUd8B5E.d.mts → index-CKz1lEdR.d.mts} +2 -2
  175. package/dist/{index-dtLxevvf.d.cts → index-CSXMCqrV.d.cts} +3 -2
  176. package/dist/{index-Ds__py2h.d.mts → index-CTYZyQ2g.d.mts} +6 -3
  177. package/dist/{index-DF3Hweir.d.mts → index-CbGfrKZi.d.mts} +4 -3
  178. package/dist/{index-yr4HkKOj.d.cts → index-CiShdd2j.d.cts} +3 -2
  179. package/dist/{index-CvaEVk-f.d.cts → index-CohsoGjZ.d.cts} +5 -4
  180. package/dist/{index-CO3Qq0I0.d.mts → index-CrXLEJO4.d.mts} +3 -2
  181. package/dist/{index-Ca0Pj5m2.d.mts → index-D07y72Xr.d.mts} +4 -3
  182. package/dist/{index-ATXjtAOY.d.mts → index-DEEHBUUZ.d.cts} +2 -2
  183. package/dist/{index-B7aaTHOe.d.cts → index-DGku7hLP.d.mts} +2 -2
  184. package/dist/{index-zFYi0f1t.d.cts → index-DLUE7t3O.d.cts} +4 -3
  185. package/dist/{index-C7j38wne.d.mts → index-DfhMdqqI.d.mts} +3 -2
  186. package/dist/{index-v99yMdts.d.cts → index-DiLm48XP.d.cts} +4 -3
  187. package/dist/{index-B2hrssyF.d.mts → index-DxBKLmUS.d.mts} +5 -4
  188. package/dist/{index-BNP_iejT.d.cts → index-X4STXeE2.d.cts} +3 -2
  189. package/dist/{index-q6EgsH9R.d.mts → index-m9jUR509.d.mts} +4 -3
  190. package/dist/{index-DEv2QslH.d.mts → index-n2OyTMr6.d.mts} +4 -3
  191. package/dist/{index-D8b5OCLe.d.mts → index-q9peil7T.d.mts} +2 -6
  192. package/dist/{index-BJ8OC_Zh.d.cts → index-uH0EeDBZ.d.cts} +3 -2
  193. package/dist/index.d.cts +1 -1
  194. package/dist/index.d.mts +1 -1
  195. package/dist/index.mjs +1 -1
  196. package/dist/{src-BJy4dM4f.mjs → src-D3tHU94W.mjs} +26 -1
  197. package/dist/{useTablePagination-HaIcJPv-.d.mts → useTablePagination-DOty8Ucb.d.mts} +1 -1
  198. package/dist/{useTablePagination-7jiSvKCh.d.cts → useTablePagination-Dh7o59Wt.d.cts} +1 -1
  199. package/package.json +8 -7
  200. package/dist/rolldown-runtime-BBjsoOtd.mjs +0 -27
@@ -1,6 +1,7 @@
1
- import { r as index_d_exports } from "./index-DLJ-li1B.cjs";
2
1
  import { d as PaletteColor, h as Theme, n as ButtonVariants } from "./themes-CUV79qWU.cjs";
2
+ import "./index-2QPYJgCl.cjs";
3
3
  import { ButtonHTMLAttributes, ReactNode } from "react";
4
+ import { BorderProps, LayoutProps, SpaceProps, TypographyProps } from "@soroush.tech/styled-system";
4
5
  //#region src/Button/Button.d.ts
5
6
  /** Augmentable via the `ButtonVariants` interface — style new values through `theme.components.Button.variants`. */
6
7
  type ButtonVariant = keyof ButtonVariants;
@@ -10,7 +11,7 @@ type ButtonShape = 'square' | 'rounded' | 'pill';
10
11
  type ButtonLoadingPosition = 'start' | 'end' | 'center';
11
12
  /** Valid values for the gap prop — resolves against theme.space. */
12
13
  type GapToken = keyof Theme['space'];
13
- interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'color'>, index_d_exports.SpaceProps<Theme>, index_d_exports.LayoutProps<Theme>, index_d_exports.BorderProps<Theme>, index_d_exports.TypographyProps<Theme> {
14
+ interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'color'>, SpaceProps<Theme>, LayoutProps<Theme>, BorderProps<Theme>, TypographyProps<Theme> {
14
15
  /** Visual style — filled, stroked, or ghost. Default: `'contained'`, overridable via `theme.defaults.buttonVariant`. */
15
16
  variant?: ButtonVariant;
16
17
  /** Color palette — maps to `theme.palette[color]`. Default: `'primary'`, overridable via `theme.defaults.color`. */
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as props, i as keyframes, n as css, o as ThemeCustomizationOptions, s as styled, t as createShouldForwardProp } from "./index-DLJ-li1B.cjs";
2
1
  import { d as PaletteColor, h as Theme, r as CSSObject } from "./themes-CUV79qWU.cjs";
2
+ import { a as ThemeCustomizationOptions, i as props, n as css, o as styled, r as keyframes, t as createShouldForwardProp } from "./index-2QPYJgCl.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
1
  import { d as PaletteColor, h as Theme, r as CSSObject } from "./themes-CUV79qWU.mjs";
2
- import { a as props, i as keyframes, n as css, o as ThemeCustomizationOptions, s as styled, t as createShouldForwardProp } from "./index-D8b5OCLe.mjs";
2
+ import { a as ThemeCustomizationOptions, i as props, n as css, o as styled, r as keyframes, t as createShouldForwardProp } from "./index-q9peil7T.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/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { i as props, n as css, o as styled, r as keyframes, t as createShouldForwardProp } from "./src-BJy4dM4f.mjs";
1
+ import { i as props, n as css, o as styled, r as keyframes, t as createShouldForwardProp } from "./src-D3tHU94W.mjs";
2
2
  export * from "@soroush.tech/styled-system";
3
3
  export { createShouldForwardProp, css, keyframes, props, styled };
@@ -1,7 +1,32 @@
1
- import { n as __reExport, t as __exportAll } from "./rolldown-runtime-BBjsoOtd.mjs";
2
1
  import emotionStyled from "@emotion/styled";
3
2
  import { css as css$1, keyframes } from "@emotion/react";
4
3
  import { createShouldForwardProp, props } from "@soroush.tech/styled-system/should-forward-prop";
4
+ //#region \0rolldown/runtime.js
5
+ var __defProp = Object.defineProperty;
6
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
+ var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __exportAll = (all, no_symbols) => {
10
+ let target = {};
11
+ for (var name in all) __defProp(target, name, {
12
+ get: all[name],
13
+ enumerable: true
14
+ });
15
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
16
+ return target;
17
+ };
18
+ var __copyProps = (to, from, except, desc) => {
19
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
20
+ key = keys[i];
21
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
22
+ get: ((k) => from[k]).bind(null, key),
23
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
24
+ });
25
+ }
26
+ return to;
27
+ };
28
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
29
+ //#endregion
5
30
  //#region src/style/styled.ts
6
31
  const resolveStyle = (style, props) => typeof style === "function" ? style({
7
32
  theme: props.theme,
@@ -1,4 +1,4 @@
1
- import { n as TableSortLabelDirection } from "./index-BItZoGZ1.mjs";
1
+ import { n as TableSortLabelDirection } from "./index-C1hP7Igl.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-v99yMdts.cjs";
1
+ import { n as TableSortLabelDirection } from "./index-DiLm48XP.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": "1.2.0",
3
+ "version": "1.3.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",
@@ -485,25 +485,25 @@
485
485
  },
486
486
  "devDependencies": {
487
487
  "@emotion/css": "^11.13.5",
488
- "@storybook/react-vite": "^10.5.6",
488
+ "@storybook/react-vite": "^10.5.7",
489
489
  "@testing-library/jest-dom": "^7.0.0",
490
490
  "@testing-library/react": "^16.3.2",
491
- "@types/node": "^26.1.2",
491
+ "@types/node": "^26.2.0",
492
492
  "@types/react": "^19.2.18",
493
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.8.0",
496
+ "eslint": "^10.8.1",
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.6",
500
+ "eslint-plugin-storybook": "^10.5.7",
501
501
  "globals": "^17.9.0",
502
502
  "jsdom": "^29.1.1",
503
503
  "playwright": "^1.62.1",
504
504
  "react": "^19.2.8",
505
505
  "react-dom": "^19.2.8",
506
- "storybook": "^10.5.6",
506
+ "storybook": "^10.5.7",
507
507
  "tsdown": "^0.22.14",
508
508
  "typescript": "~6.0.3",
509
509
  "vitest": "^4.1.10",
@@ -517,7 +517,8 @@
517
517
  "typecheck": "tsc --noEmit",
518
518
  "test": "vitest run",
519
519
  "test:coverage": "vitest run --coverage",
520
- "test:types": "pnpm build && tsc -p type-tests/tsconfig.json",
520
+ "test:types": "pnpm build && node scripts/check-dts.mjs && tsc -p type-tests/tsconfig.json",
521
+ "check:dts": "node scripts/check-dts.mjs",
521
522
  "audit:styled": "node scripts/audit-styled.mjs"
522
523
  },
523
524
  "main": "./dist/index.cjs",
@@ -1,27 +0,0 @@
1
- //#region \0rolldown/runtime.js
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __exportAll = (all, no_symbols) => {
7
- let target = {};
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
12
- if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
13
- return target;
14
- };
15
- var __copyProps = (to, from, except, desc) => {
16
- if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
17
- key = keys[i];
18
- if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
19
- get: ((k) => from[k]).bind(null, key),
20
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
21
- });
22
- }
23
- return to;
24
- };
25
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
26
- //#endregion
27
- export { __reExport as n, __exportAll as t };