@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.
Files changed (108) hide show
  1. package/dist/AppBar.cjs +1 -1
  2. package/dist/Avatar.cjs +2 -2
  3. package/dist/Avatar.mjs +1 -1
  4. package/dist/Backdrop.cjs +1 -1
  5. package/dist/Button.cjs +2 -2
  6. package/dist/Button.mjs +1 -1
  7. package/dist/ButtonGroup.cjs +1 -1
  8. package/dist/Card.cjs +3 -3
  9. package/dist/Card.mjs +2 -2
  10. package/dist/Checkbox.cjs +1 -1
  11. package/dist/CircularProgress.cjs +1 -1
  12. package/dist/Drawer.cjs +4 -3
  13. package/dist/Drawer.d.cts +1 -1
  14. package/dist/Drawer.d.mts +1 -1
  15. package/dist/Drawer.mjs +3 -2
  16. package/dist/Flex.cjs +1 -1
  17. package/dist/Flex.mjs +3 -1
  18. package/dist/FocusTrap.cjs +1 -1
  19. package/dist/Form.cjs +1 -1
  20. package/dist/FormControl.cjs +2 -2
  21. package/dist/FormControl.mjs +1 -1
  22. package/dist/FormHelperText.cjs +1 -1
  23. package/dist/FormLabel.cjs +1 -1
  24. package/dist/Grid.cjs +1 -1
  25. package/dist/Grid.mjs +3 -1
  26. package/dist/{Icon-BOjk5r39.cjs → Icon-ByDvM-t1.cjs} +9 -7
  27. package/dist/{Icon-CYjD0Bad.mjs → Icon-GgwNXKEY.mjs} +8 -6
  28. package/dist/Icon.cjs +1 -1
  29. package/dist/Icon.mjs +1 -1
  30. package/dist/Image.cjs +10 -9
  31. package/dist/Image.mjs +9 -8
  32. package/dist/LinearProgress.cjs +1 -1
  33. package/dist/Link.cjs +2 -2
  34. package/dist/Link.mjs +1 -1
  35. package/dist/MenuItem.cjs +3 -3
  36. package/dist/MenuItem.mjs +2 -2
  37. package/dist/{Modal-DZH-DzMZ.cjs → Modal-Bjfv7n4e.cjs} +26 -15
  38. package/dist/{Modal-dy5l7gfH.mjs → Modal-C0oiFAj5.mjs} +18 -13
  39. package/dist/Modal.cjs +3 -2
  40. package/dist/Modal.d.cts +2 -2
  41. package/dist/Modal.d.mts +2 -2
  42. package/dist/Modal.mjs +2 -2
  43. package/dist/NativeSelect.cjs +9 -8
  44. package/dist/NativeSelect.mjs +8 -7
  45. package/dist/Pagination/PaginationItem.cjs +2 -2
  46. package/dist/Pagination/PaginationItem.mjs +1 -1
  47. package/dist/Pagination.cjs +1 -1
  48. package/dist/Paper.cjs +2 -2
  49. package/dist/Paper.mjs +1 -1
  50. package/dist/{Popover-pEVboMZO.cjs → Popover-COoJ2p2I.cjs} +3 -3
  51. package/dist/{Popover-Chgtjn-N.mjs → Popover-mz_rnf5s.mjs} +2 -2
  52. package/dist/Popover.cjs +1 -1
  53. package/dist/Popover.d.cts +1 -1
  54. package/dist/Popover.d.mts +1 -1
  55. package/dist/Popover.mjs +1 -1
  56. package/dist/Pressable.cjs +2 -2
  57. package/dist/Pressable.mjs +1 -1
  58. package/dist/Quote.cjs +1 -1
  59. package/dist/Radio.cjs +1 -1
  60. package/dist/Select.cjs +42 -41
  61. package/dist/Select.mjs +41 -40
  62. package/dist/Sidebar/Sidebar.cjs +1 -1
  63. package/dist/Sidebar/SidebarItem.cjs +2 -2
  64. package/dist/Sidebar/SidebarItem.mjs +1 -1
  65. package/dist/Skeleton.cjs +1 -1
  66. package/dist/Switch.cjs +2 -2
  67. package/dist/Switch.mjs +1 -1
  68. package/dist/Table/Table.cjs +1 -1
  69. package/dist/Table/TableBody.cjs +18 -16
  70. package/dist/Table/TableBody.mjs +17 -15
  71. package/dist/Table/TableCell.cjs +1 -1
  72. package/dist/Table/TableContainer.cjs +1 -1
  73. package/dist/Table/TableControl.cjs +3 -2
  74. package/dist/Table/TableControl.mjs +3 -2
  75. package/dist/Table/TableFooter.cjs +18 -16
  76. package/dist/Table/TableFooter.mjs +17 -15
  77. package/dist/Table/TableHead.cjs +18 -16
  78. package/dist/Table/TableHead.mjs +17 -15
  79. package/dist/Table/TablePagination.cjs +1 -1
  80. package/dist/Table/TablePaginationActions.cjs +2 -2
  81. package/dist/Table/TablePaginationActions.mjs +1 -1
  82. package/dist/Table/TableRow.cjs +1 -1
  83. package/dist/Table/TableSortLabel.cjs +8 -7
  84. package/dist/Table/TableSortLabel.mjs +7 -6
  85. package/dist/Table/hooks.cjs +2 -1
  86. package/dist/Table/hooks.mjs +2 -1
  87. package/dist/TextInput.cjs +22 -19
  88. package/dist/TextInput.mjs +21 -18
  89. package/dist/ToggleButton/ToggleButton.cjs +2 -2
  90. package/dist/ToggleButton/ToggleButton.mjs +1 -1
  91. package/dist/ToggleButton/ToggleButtonGroup.cjs +2 -2
  92. package/dist/ToggleButton/ToggleButtonGroup.mjs +1 -1
  93. package/dist/Typography.cjs +2 -2
  94. package/dist/Typography.mjs +1 -1
  95. package/dist/View.cjs +1 -1
  96. package/dist/engine.cjs +1 -1
  97. package/dist/{index-BfpjEqqt.d.cts → index-0law1kXY.d.cts} +5 -2
  98. package/dist/{index-Ds__py2h.d.mts → index-CqFd46gX.d.mts} +5 -2
  99. package/dist/index.cjs +1 -1
  100. package/dist/{rolldown-runtime-DDXJien1.cjs → rolldown-runtime-BloeesfJ.cjs} +1 -1
  101. package/dist/{src-C8PIppTy.cjs → src-BJrcLd7P.cjs} +1 -1
  102. package/dist/style.cjs +1 -1
  103. package/dist/style.mjs +1 -1
  104. package/dist/{theme-Du6xgPsg.cjs → theme-CleLAV6A.cjs} +2 -1
  105. package/dist/{theme-V6lYzd3j.mjs → theme-Cudynq5K.mjs} +2 -1
  106. package/dist/theme.cjs +1 -1
  107. package/dist/theme.mjs +1 -1
  108. package/package.json +17 -17
@@ -1,30 +1,32 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_src = require("../src-C8PIppTy.cjs");
2
+ const require_src = require("../src-BJrcLd7P.cjs");
3
3
  const require_TableSectionContext = require("../TableSectionContext-pYlJ-duI.cjs");
4
4
  require("react");
5
5
  let react_jsx_runtime = require("react/jsx-runtime");
6
6
  let _soroush_tech_styled_system_should_forward_prop = require("@soroush.tech/styled-system/should-forward-prop");
7
7
  //#region src/Table/TableBody/TableBody.tsx
8
+ const shouldForwardProp = (0, _soroush_tech_styled_system_should_forward_prop.createShouldForwardProp)([..._soroush_tech_styled_system_should_forward_prop.props]);
9
+ const colorSystem = (0, require_src.src_exports.system)({
10
+ color: {
11
+ property: "color",
12
+ scale: "text"
13
+ },
14
+ bg: {
15
+ property: "backgroundColor",
16
+ scale: "background"
17
+ },
18
+ borderColor: {
19
+ property: "borderColor",
20
+ scale: "border"
21
+ }
22
+ });
8
23
  const TableBodyBase = require_src.styled("tbody", {
9
24
  name: "TableBody",
10
25
  label: "TableBody",
11
- shouldForwardProp: (0, _soroush_tech_styled_system_should_forward_prop.createShouldForwardProp)([..._soroush_tech_styled_system_should_forward_prop.props]),
26
+ shouldForwardProp,
12
27
  systemProps: [
13
28
  require_src.src_exports.space,
14
- (0, require_src.src_exports.system)({
15
- color: {
16
- property: "color",
17
- scale: "text"
18
- },
19
- bg: {
20
- property: "backgroundColor",
21
- scale: "background"
22
- },
23
- borderColor: {
24
- property: "borderColor",
25
- scale: "border"
26
- }
27
- }),
29
+ colorSystem,
28
30
  require_src.src_exports.border
29
31
  ]
30
32
  })();
@@ -3,26 +3,28 @@ import { t as TableSectionContext } from "../TableSectionContext-meIG4lFZ.mjs";
3
3
  import "react";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  //#region src/Table/TableBody/TableBody.tsx
6
+ const shouldForwardProp = createShouldForwardProp([...props]);
7
+ const colorSystem = (0, src_exports.system)({
8
+ color: {
9
+ property: "color",
10
+ scale: "text"
11
+ },
12
+ bg: {
13
+ property: "backgroundColor",
14
+ scale: "background"
15
+ },
16
+ borderColor: {
17
+ property: "borderColor",
18
+ scale: "border"
19
+ }
20
+ });
6
21
  const TableBodyBase = styled("tbody", {
7
22
  name: "TableBody",
8
23
  label: "TableBody",
9
- shouldForwardProp: createShouldForwardProp([...props]),
24
+ shouldForwardProp,
10
25
  systemProps: [
11
26
  src_exports.space,
12
- (0, src_exports.system)({
13
- color: {
14
- property: "color",
15
- scale: "text"
16
- },
17
- bg: {
18
- property: "backgroundColor",
19
- scale: "background"
20
- },
21
- borderColor: {
22
- property: "borderColor",
23
- scale: "border"
24
- }
25
- }),
27
+ colorSystem,
26
28
  src_exports.border
27
29
  ]
28
30
  })();
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_src = require("../src-C8PIppTy.cjs");
2
+ const require_src = require("../src-BJrcLd7P.cjs");
3
3
  const require_themeDefault = require("../themeDefault-Cebi08Cv.cjs");
4
4
  const require_TableContext = require("../TableContext-Bfg1C3Sr.cjs");
5
5
  const require_TableSectionContext = require("../TableSectionContext-pYlJ-duI.cjs");
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_src = require("../src-C8PIppTy.cjs");
2
+ const require_src = require("../src-BJrcLd7P.cjs");
3
3
  const require_View = require("../View.cjs");
4
4
  //#region src/Table/TableContainer/TableContainer.tsx
5
5
  /**
@@ -16,7 +16,7 @@ const defaultSortFunction = (a, b, orderBy) => {
16
16
  * `<tr>` children of `<tbody>`. Both `sort` and `pagination` are optional.
17
17
  */
18
18
  function TableControl({ data, sort, pagination, sortFunction = defaultSortFunction, children }) {
19
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: (0, react.useMemo)(() => {
19
+ const rows = (0, react.useMemo)(() => {
20
20
  let visible = [...data];
21
21
  const active = sort && Object.entries(sort).find(([, entry]) => entry.isActive);
22
22
  if (active) {
@@ -36,7 +36,8 @@ function TableControl({ data, sort, pagination, sortFunction = defaultSortFuncti
36
36
  sort,
37
37
  pagination,
38
38
  sortFunction
39
- ]).map(children) });
39
+ ]);
40
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: rows.map(children) });
40
41
  }
41
42
  //#endregion
42
43
  exports.TableControl = TableControl;
@@ -15,7 +15,7 @@ const defaultSortFunction = (a, b, orderBy) => {
15
15
  * `<tr>` children of `<tbody>`. Both `sort` and `pagination` are optional.
16
16
  */
17
17
  function TableControl({ data, sort, pagination, sortFunction = defaultSortFunction, children }) {
18
- return /* @__PURE__ */ jsx(Fragment, { children: useMemo(() => {
18
+ const rows = useMemo(() => {
19
19
  let visible = [...data];
20
20
  const active = sort && Object.entries(sort).find(([, entry]) => entry.isActive);
21
21
  if (active) {
@@ -35,7 +35,8 @@ function TableControl({ data, sort, pagination, sortFunction = defaultSortFuncti
35
35
  sort,
36
36
  pagination,
37
37
  sortFunction
38
- ]).map(children) });
38
+ ]);
39
+ return /* @__PURE__ */ jsx(Fragment, { children: rows.map(children) });
39
40
  }
40
41
  //#endregion
41
42
  export { TableControl };
@@ -1,30 +1,32 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_src = require("../src-C8PIppTy.cjs");
2
+ const require_src = require("../src-BJrcLd7P.cjs");
3
3
  const require_TableSectionContext = require("../TableSectionContext-pYlJ-duI.cjs");
4
4
  require("react");
5
5
  let react_jsx_runtime = require("react/jsx-runtime");
6
6
  let _soroush_tech_styled_system_should_forward_prop = require("@soroush.tech/styled-system/should-forward-prop");
7
7
  //#region src/Table/TableFooter/TableFooter.tsx
8
+ const shouldForwardProp = (0, _soroush_tech_styled_system_should_forward_prop.createShouldForwardProp)([..._soroush_tech_styled_system_should_forward_prop.props]);
9
+ const colorSystem = (0, require_src.src_exports.system)({
10
+ color: {
11
+ property: "color",
12
+ scale: "text"
13
+ },
14
+ bg: {
15
+ property: "backgroundColor",
16
+ scale: "background"
17
+ },
18
+ borderColor: {
19
+ property: "borderColor",
20
+ scale: "border"
21
+ }
22
+ });
8
23
  const TableFooterBase = require_src.styled("tfoot", {
9
24
  name: "TableFooter",
10
25
  label: "TableFooter",
11
- shouldForwardProp: (0, _soroush_tech_styled_system_should_forward_prop.createShouldForwardProp)([..._soroush_tech_styled_system_should_forward_prop.props]),
26
+ shouldForwardProp,
12
27
  systemProps: [
13
28
  require_src.src_exports.space,
14
- (0, require_src.src_exports.system)({
15
- color: {
16
- property: "color",
17
- scale: "text"
18
- },
19
- bg: {
20
- property: "backgroundColor",
21
- scale: "background"
22
- },
23
- borderColor: {
24
- property: "borderColor",
25
- scale: "border"
26
- }
27
- }),
29
+ colorSystem,
28
30
  require_src.src_exports.border
29
31
  ]
30
32
  })();
@@ -3,26 +3,28 @@ import { t as TableSectionContext } from "../TableSectionContext-meIG4lFZ.mjs";
3
3
  import "react";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  //#region src/Table/TableFooter/TableFooter.tsx
6
+ const shouldForwardProp = createShouldForwardProp([...props]);
7
+ const colorSystem = (0, src_exports.system)({
8
+ color: {
9
+ property: "color",
10
+ scale: "text"
11
+ },
12
+ bg: {
13
+ property: "backgroundColor",
14
+ scale: "background"
15
+ },
16
+ borderColor: {
17
+ property: "borderColor",
18
+ scale: "border"
19
+ }
20
+ });
6
21
  const TableFooterBase = styled("tfoot", {
7
22
  name: "TableFooter",
8
23
  label: "TableFooter",
9
- shouldForwardProp: createShouldForwardProp([...props]),
24
+ shouldForwardProp,
10
25
  systemProps: [
11
26
  src_exports.space,
12
- (0, src_exports.system)({
13
- color: {
14
- property: "color",
15
- scale: "text"
16
- },
17
- bg: {
18
- property: "backgroundColor",
19
- scale: "background"
20
- },
21
- borderColor: {
22
- property: "borderColor",
23
- scale: "border"
24
- }
25
- }),
27
+ colorSystem,
26
28
  src_exports.border
27
29
  ]
28
30
  })();
@@ -1,30 +1,32 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_src = require("../src-C8PIppTy.cjs");
2
+ const require_src = require("../src-BJrcLd7P.cjs");
3
3
  const require_TableSectionContext = require("../TableSectionContext-pYlJ-duI.cjs");
4
4
  require("react");
5
5
  let react_jsx_runtime = require("react/jsx-runtime");
6
6
  let _soroush_tech_styled_system_should_forward_prop = require("@soroush.tech/styled-system/should-forward-prop");
7
7
  //#region src/Table/TableHead/TableHead.tsx
8
+ const shouldForwardProp = (0, _soroush_tech_styled_system_should_forward_prop.createShouldForwardProp)([..._soroush_tech_styled_system_should_forward_prop.props]);
9
+ const colorSystem = (0, require_src.src_exports.system)({
10
+ color: {
11
+ property: "color",
12
+ scale: "text"
13
+ },
14
+ bg: {
15
+ property: "backgroundColor",
16
+ scale: "background"
17
+ },
18
+ borderColor: {
19
+ property: "borderColor",
20
+ scale: "border"
21
+ }
22
+ });
8
23
  const TableHeadBase = require_src.styled("thead", {
9
24
  name: "TableHead",
10
25
  label: "TableHead",
11
- shouldForwardProp: (0, _soroush_tech_styled_system_should_forward_prop.createShouldForwardProp)([..._soroush_tech_styled_system_should_forward_prop.props]),
26
+ shouldForwardProp,
12
27
  systemProps: [
13
28
  require_src.src_exports.space,
14
- (0, require_src.src_exports.system)({
15
- color: {
16
- property: "color",
17
- scale: "text"
18
- },
19
- bg: {
20
- property: "backgroundColor",
21
- scale: "background"
22
- },
23
- borderColor: {
24
- property: "borderColor",
25
- scale: "border"
26
- }
27
- }),
29
+ colorSystem,
28
30
  require_src.src_exports.border
29
31
  ]
30
32
  })();
@@ -3,26 +3,28 @@ import { t as TableSectionContext } from "../TableSectionContext-meIG4lFZ.mjs";
3
3
  import "react";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  //#region src/Table/TableHead/TableHead.tsx
6
+ const shouldForwardProp = createShouldForwardProp([...props]);
7
+ const colorSystem = (0, src_exports.system)({
8
+ color: {
9
+ property: "color",
10
+ scale: "text"
11
+ },
12
+ bg: {
13
+ property: "backgroundColor",
14
+ scale: "background"
15
+ },
16
+ borderColor: {
17
+ property: "borderColor",
18
+ scale: "border"
19
+ }
20
+ });
6
21
  const TableHeadBase = styled("thead", {
7
22
  name: "TableHead",
8
23
  label: "TableHead",
9
- shouldForwardProp: createShouldForwardProp([...props]),
24
+ shouldForwardProp,
10
25
  systemProps: [
11
26
  src_exports.space,
12
- (0, src_exports.system)({
13
- color: {
14
- property: "color",
15
- scale: "text"
16
- },
17
- bg: {
18
- property: "backgroundColor",
19
- scale: "background"
20
- },
21
- borderColor: {
22
- property: "borderColor",
23
- scale: "border"
24
- }
25
- }),
27
+ colorSystem,
26
28
  src_exports.border
27
29
  ]
28
30
  })();
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_src = require("../src-C8PIppTy.cjs");
2
+ const require_src = require("../src-BJrcLd7P.cjs");
3
3
  const require_Typography = require("../Typography.cjs");
4
4
  const require_NativeSelect = require("../NativeSelect.cjs");
5
5
  const require_Table_TableCell = require("./TableCell.cjs");
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_src = require("../src-C8PIppTy.cjs");
2
+ const require_src = require("../src-BJrcLd7P.cjs");
3
3
  const require_themeDefault = require("../themeDefault-Cebi08Cv.cjs");
4
- const require_theme = require("../theme-Du6xgPsg.cjs");
4
+ const require_theme = require("../theme-CleLAV6A.cjs");
5
5
  const require_Pagination_PaginationItem = require("../Pagination/PaginationItem.cjs");
6
6
  require("react");
7
7
  let react_jsx_runtime = require("react/jsx-runtime");
@@ -1,6 +1,6 @@
1
1
  import { o as styled } from "../src-BJy4dM4f.mjs";
2
2
  import { t as themeDefault } from "../themeDefault-Z3KmyIbm.mjs";
3
- import { r as useTheme } from "../theme-V6lYzd3j.mjs";
3
+ import { r as useTheme } from "../theme-Cudynq5K.mjs";
4
4
  import { PaginationItem } from "../Pagination/PaginationItem.mjs";
5
5
  import "react";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_src = require("../src-C8PIppTy.cjs");
2
+ const require_src = require("../src-BJrcLd7P.cjs");
3
3
  const require_themeDefault = require("../themeDefault-Cebi08Cv.cjs");
4
4
  const require_TableContext = require("../TableContext-Bfg1C3Sr.cjs");
5
5
  let react = require("react");
@@ -1,19 +1,20 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_src = require("../src-C8PIppTy.cjs");
3
- const require_Icon = require("../Icon-BOjk5r39.cjs");
2
+ const require_src = require("../src-BJrcLd7P.cjs");
3
+ const require_Icon = require("../Icon-ByDvM-t1.cjs");
4
4
  const require_TableContext = require("../TableContext-Bfg1C3Sr.cjs");
5
5
  let react = require("react");
6
6
  let react_jsx_runtime = require("react/jsx-runtime");
7
7
  let _soroush_tech_styled_system_should_forward_prop = require("@soroush.tech/styled-system/should-forward-prop");
8
8
  //#region src/Table/TableSortLabel/TableSortLabel.tsx
9
+ const shouldForwardProp = (0, _soroush_tech_styled_system_should_forward_prop.createShouldForwardProp)([
10
+ ..._soroush_tech_styled_system_should_forward_prop.props,
11
+ "isActive",
12
+ "shouldHideSortIcon"
13
+ ]);
9
14
  const SortLabelRoot = require_src.styled("button", {
10
15
  name: "TableSortLabel",
11
16
  label: "TableSortLabel",
12
- shouldForwardProp: (0, _soroush_tech_styled_system_should_forward_prop.createShouldForwardProp)([
13
- ..._soroush_tech_styled_system_should_forward_prop.props,
14
- "isActive",
15
- "shouldHideSortIcon"
16
- ]),
17
+ shouldForwardProp,
17
18
  systemProps: [require_src.src_exports.space]
18
19
  })({
19
20
  display: "inline-flex",
@@ -1,17 +1,18 @@
1
1
  import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "../src-BJy4dM4f.mjs";
2
- import { t as Icon } from "../Icon-CYjD0Bad.mjs";
2
+ import { t as Icon } from "../Icon-GgwNXKEY.mjs";
3
3
  import { t as TableContext } from "../TableContext-Dyr89h_k.mjs";
4
4
  import { useContext } from "react";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  //#region src/Table/TableSortLabel/TableSortLabel.tsx
7
+ const shouldForwardProp = createShouldForwardProp([
8
+ ...props,
9
+ "isActive",
10
+ "shouldHideSortIcon"
11
+ ]);
7
12
  const SortLabelRoot = styled("button", {
8
13
  name: "TableSortLabel",
9
14
  label: "TableSortLabel",
10
- shouldForwardProp: createShouldForwardProp([
11
- ...props,
12
- "isActive",
13
- "shouldHideSortIcon"
14
- ]),
15
+ shouldForwardProp,
15
16
  systemProps: [src_exports.space]
16
17
  })({
17
18
  display: "inline-flex",
@@ -40,6 +40,7 @@ const toggleKey = (selected, selectedSet, key) => selectedSet.has(key) ? selecte
40
40
  */
41
41
  function useTableSelection(keys, onChange) {
42
42
  const [selected, setSelected] = (0, react.useState)([]);
43
+ const keysKey = JSON.stringify(keys);
43
44
  return (0, react.useMemo)(() => {
44
45
  const selectedSet = new Set(selected);
45
46
  const isAllSelected = keys.length > 0 && keys.every((key) => selectedSet.has(key));
@@ -64,7 +65,7 @@ function useTableSelection(keys, onChange) {
64
65
  };
65
66
  }, [
66
67
  selected,
67
- JSON.stringify(keys),
68
+ keysKey,
68
69
  onChange
69
70
  ]);
70
71
  }
@@ -39,6 +39,7 @@ const toggleKey = (selected, selectedSet, key) => selectedSet.has(key) ? selecte
39
39
  */
40
40
  function useTableSelection(keys, onChange) {
41
41
  const [selected, setSelected] = useState([]);
42
+ const keysKey = JSON.stringify(keys);
42
43
  return useMemo(() => {
43
44
  const selectedSet = new Set(selected);
44
45
  const isAllSelected = keys.length > 0 && keys.every((key) => selectedSet.has(key));
@@ -63,7 +64,7 @@ function useTableSelection(keys, onChange) {
63
64
  };
64
65
  }, [
65
66
  selected,
66
- JSON.stringify(keys),
67
+ keysKey,
67
68
  onChange
68
69
  ]);
69
70
  }
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_src = require("./src-C8PIppTy.cjs");
2
+ const require_src = require("./src-BJrcLd7P.cjs");
3
3
  const require_themeDefault = require("./themeDefault-Cebi08Cv.cjs");
4
- const require_theme = require("./theme-Du6xgPsg.cjs");
4
+ const require_theme = require("./theme-CleLAV6A.cjs");
5
5
  const require_FormControl = require("./FormControl.cjs");
6
6
  const require_inputVariantStyles = require("./inputVariantStyles-BBkkYQtE.cjs");
7
7
  let react = require("react");
@@ -33,17 +33,18 @@ const TextAreaAutoResize = (0, react.forwardRef)(function TextAreaAutoResize({ v
33
33
  minRows,
34
34
  maxRows
35
35
  ]);
36
+ const handleChange = (0, react.useCallback)((e) => {
37
+ adjust(e.currentTarget, minRows, maxRows);
38
+ onChange?.(e);
39
+ }, [
40
+ onChange,
41
+ minRows,
42
+ maxRows
43
+ ]);
36
44
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("textarea", {
37
45
  ref: setRef,
38
46
  value,
39
- onChange: (0, react.useCallback)((e) => {
40
- adjust(e.currentTarget, minRows, maxRows);
41
- onChange?.(e);
42
- }, [
43
- onChange,
44
- minRows,
45
- maxRows
46
- ]),
47
+ onChange: handleChange,
47
48
  ...rest
48
49
  });
49
50
  });
@@ -202,6 +203,16 @@ function TextInput({ autoComplete, autoFocus, borderRadius, classes, components,
202
203
  size,
203
204
  "aria-describedby": inputProps?.["aria-describedby"] ?? fc["aria-describedby"]
204
205
  };
206
+ let inputElement = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledInput, {
207
+ inputComponent: resolvedInputComponent,
208
+ inputSize,
209
+ ...inputElProps
210
+ });
211
+ if (isTextarea) inputElement = isAutoResize ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledAutoResizeTextarea, {
212
+ ...inputElProps,
213
+ minRows: minRows ?? rows,
214
+ maxRows
215
+ }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledTextarea, { ...inputElProps });
205
216
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TextInputRoot, {
206
217
  as: components?.Root,
207
218
  color,
@@ -214,15 +225,7 @@ function TextInput({ autoComplete, autoFocus, borderRadius, classes, components,
214
225
  className: rootClassName,
215
226
  "data-testid": dataTestid,
216
227
  ...spaceProps,
217
- children: isTextarea && isAutoResize ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledAutoResizeTextarea, {
218
- ...inputElProps,
219
- minRows: minRows ?? rows,
220
- maxRows
221
- }) : isTextarea ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledTextarea, { ...inputElProps }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledInput, {
222
- inputComponent: resolvedInputComponent,
223
- inputSize,
224
- ...inputElProps
225
- })
228
+ children: inputElement
226
229
  });
227
230
  }
228
231
  //#endregion
@@ -1,6 +1,6 @@
1
1
  import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "./src-BJy4dM4f.mjs";
2
2
  import { t as themeDefault } from "./themeDefault-Z3KmyIbm.mjs";
3
- import { r as useTheme } from "./theme-V6lYzd3j.mjs";
3
+ import { r as useTheme } from "./theme-Cudynq5K.mjs";
4
4
  import { useFormControl } from "./FormControl.mjs";
5
5
  import { t as inputVariantStyles } from "./inputVariantStyles-CcqpGfuP.mjs";
6
6
  import { forwardRef, useCallback, useLayoutEffect, useRef } from "react";
@@ -31,17 +31,18 @@ const TextAreaAutoResize = forwardRef(function TextAreaAutoResize({ value, onCha
31
31
  minRows,
32
32
  maxRows
33
33
  ]);
34
+ const handleChange = useCallback((e) => {
35
+ adjust(e.currentTarget, minRows, maxRows);
36
+ onChange?.(e);
37
+ }, [
38
+ onChange,
39
+ minRows,
40
+ maxRows
41
+ ]);
34
42
  return /* @__PURE__ */ jsx("textarea", {
35
43
  ref: setRef,
36
44
  value,
37
- onChange: useCallback((e) => {
38
- adjust(e.currentTarget, minRows, maxRows);
39
- onChange?.(e);
40
- }, [
41
- onChange,
42
- minRows,
43
- maxRows
44
- ]),
45
+ onChange: handleChange,
45
46
  ...rest
46
47
  });
47
48
  });
@@ -200,6 +201,16 @@ function TextInput({ autoComplete, autoFocus, borderRadius, classes, components,
200
201
  size,
201
202
  "aria-describedby": inputProps?.["aria-describedby"] ?? fc["aria-describedby"]
202
203
  };
204
+ let inputElement = /* @__PURE__ */ jsx(StyledInput, {
205
+ inputComponent: resolvedInputComponent,
206
+ inputSize,
207
+ ...inputElProps
208
+ });
209
+ if (isTextarea) inputElement = isAutoResize ? /* @__PURE__ */ jsx(StyledAutoResizeTextarea, {
210
+ ...inputElProps,
211
+ minRows: minRows ?? rows,
212
+ maxRows
213
+ }) : /* @__PURE__ */ jsx(StyledTextarea, { ...inputElProps });
203
214
  return /* @__PURE__ */ jsx(TextInputRoot, {
204
215
  as: components?.Root,
205
216
  color,
@@ -212,15 +223,7 @@ function TextInput({ autoComplete, autoFocus, borderRadius, classes, components,
212
223
  className: rootClassName,
213
224
  "data-testid": dataTestid,
214
225
  ...spaceProps,
215
- children: isTextarea && isAutoResize ? /* @__PURE__ */ jsx(StyledAutoResizeTextarea, {
216
- ...inputElProps,
217
- minRows: minRows ?? rows,
218
- maxRows
219
- }) : isTextarea ? /* @__PURE__ */ jsx(StyledTextarea, { ...inputElProps }) : /* @__PURE__ */ jsx(StyledInput, {
220
- inputComponent: resolvedInputComponent,
221
- inputSize,
222
- ...inputElProps
223
- })
226
+ children: inputElement
224
227
  });
225
228
  }
226
229
  //#endregion
@@ -1,8 +1,8 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_src = require("../src-C8PIppTy.cjs");
2
+ const require_src = require("../src-BJrcLd7P.cjs");
3
3
  const require_themeDefault = require("../themeDefault-Cebi08Cv.cjs");
4
4
  const require_utils = require("../utils.cjs");
5
- const require_theme = require("../theme-Du6xgPsg.cjs");
5
+ const require_theme = require("../theme-CleLAV6A.cjs");
6
6
  const require_ButtonGroupContext = require("../ButtonGroupContext-NtkVeDVE.cjs");
7
7
  const require_Button = require("../Button.cjs");
8
8
  const require_ToggleButtonGroupContext = require("../ToggleButtonGroupContext-Ewc5Ixas.cjs");
@@ -1,7 +1,7 @@
1
1
  import { a as src_exports, o as styled } from "../src-BJy4dM4f.mjs";
2
2
  import { t as themeDefault } from "../themeDefault-Z3KmyIbm.mjs";
3
3
  import { alpha } from "../utils.mjs";
4
- import { r as useTheme } from "../theme-V6lYzd3j.mjs";
4
+ import { r as useTheme } from "../theme-Cudynq5K.mjs";
5
5
  import { t as ButtonGroupContext } from "../ButtonGroupContext-DS-kl9lG.mjs";
6
6
  import { Button } from "../Button.mjs";
7
7
  import { t as ToggleButtonGroupContext } from "../ToggleButtonGroupContext-DxIyy8ze.mjs";
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_src = require("../src-C8PIppTy.cjs");
2
+ const require_src = require("../src-BJrcLd7P.cjs");
3
3
  const require_themeDefault = require("../themeDefault-Cebi08Cv.cjs");
4
- const require_theme = require("../theme-Du6xgPsg.cjs");
4
+ const require_theme = require("../theme-CleLAV6A.cjs");
5
5
  const require_ButtonGroup = require("../ButtonGroup.cjs");
6
6
  const require_ToggleButtonGroupContext = require("../ToggleButtonGroupContext-Ewc5Ixas.cjs");
7
7
  let react = require("react");
@@ -1,6 +1,6 @@
1
1
  import { o as styled } from "../src-BJy4dM4f.mjs";
2
2
  import { t as themeDefault } from "../themeDefault-Z3KmyIbm.mjs";
3
- import { r as useTheme } from "../theme-V6lYzd3j.mjs";
3
+ import { r as useTheme } from "../theme-Cudynq5K.mjs";
4
4
  import { ButtonGroup } from "../ButtonGroup.mjs";
5
5
  import { t as ToggleButtonGroupContext } from "../ToggleButtonGroupContext-DxIyy8ze.mjs";
6
6
  import { useMemo } from "react";
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_src = require("./src-C8PIppTy.cjs");
3
- const require_theme = require("./theme-Du6xgPsg.cjs");
2
+ const require_src = require("./src-BJrcLd7P.cjs");
3
+ const require_theme = require("./theme-CleLAV6A.cjs");
4
4
  require("react");
5
5
  let react_jsx_runtime = require("react/jsx-runtime");
6
6
  let _soroush_tech_styled_system_should_forward_prop = require("@soroush.tech/styled-system/should-forward-prop");
@@ -1,5 +1,5 @@
1
1
  import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "./src-BJy4dM4f.mjs";
2
- import { r as useTheme } from "./theme-V6lYzd3j.mjs";
2
+ import { r as useTheme } from "./theme-Cudynq5K.mjs";
3
3
  import "react";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  //#region src/Typography/Typography.tsx