@soroush.tech/design-system 1.3.3 → 2.0.0-alpha.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 (218) hide show
  1. package/README.md +45 -7
  2. package/dist/AppBar.d.cts +3 -3
  3. package/dist/AppBar.d.mts +3 -3
  4. package/dist/Avatar.cjs +1 -1
  5. package/dist/Avatar.d.cts +3 -3
  6. package/dist/Avatar.d.mts +3 -3
  7. package/dist/Avatar.mjs +1 -1
  8. package/dist/Backdrop.d.cts +1 -1
  9. package/dist/Backdrop.d.mts +1 -1
  10. package/dist/Button.cjs +1 -1
  11. package/dist/Button.d.cts +1 -1
  12. package/dist/Button.d.mts +1 -1
  13. package/dist/Button.mjs +1 -1
  14. package/dist/ButtonGroup.d.cts +1 -1
  15. package/dist/ButtonGroup.d.mts +1 -1
  16. package/dist/Card.cjs +2 -2
  17. package/dist/Card.d.cts +3 -3
  18. package/dist/Card.d.mts +3 -3
  19. package/dist/Card.mjs +2 -2
  20. package/dist/Checkbox.d.cts +2 -2
  21. package/dist/Checkbox.d.mts +2 -2
  22. package/dist/CircularProgress.d.cts +3 -3
  23. package/dist/CircularProgress.d.mts +3 -3
  24. package/dist/Drawer.cjs +109 -17
  25. package/dist/Drawer.d.cts +43 -7
  26. package/dist/Drawer.d.mts +43 -7
  27. package/dist/Drawer.mjs +109 -18
  28. package/dist/Flex.cjs +6 -2
  29. package/dist/Flex.d.cts +1 -1
  30. package/dist/Flex.d.mts +1 -1
  31. package/dist/Flex.mjs +6 -2
  32. package/dist/Form.d.cts +1 -1
  33. package/dist/Form.d.mts +1 -1
  34. package/dist/FormControl.cjs +1 -1
  35. package/dist/FormControl.d.cts +2 -2
  36. package/dist/FormControl.d.mts +2 -2
  37. package/dist/FormControl.mjs +1 -1
  38. package/dist/FormHelperText.d.cts +1 -1
  39. package/dist/FormHelperText.d.mts +1 -1
  40. package/dist/FormLabel.d.cts +1 -1
  41. package/dist/FormLabel.d.mts +1 -1
  42. package/dist/Grid.cjs +7 -2
  43. package/dist/Grid.d.cts +9 -5
  44. package/dist/Grid.d.mts +9 -5
  45. package/dist/Grid.mjs +7 -2
  46. package/dist/{Icon-gSiGgU13.mjs → Icon-BGcd6yy0.mjs} +1 -1
  47. package/dist/{Icon-BAMpe9SO.cjs → Icon-Cn6Zx8wb.cjs} +1 -1
  48. package/dist/Icon.cjs +1 -1
  49. package/dist/Icon.d.cts +1 -1
  50. package/dist/Icon.d.mts +1 -1
  51. package/dist/Icon.mjs +1 -1
  52. package/dist/Image.d.cts +2 -2
  53. package/dist/Image.d.mts +2 -2
  54. package/dist/LinearProgress.d.cts +3 -3
  55. package/dist/LinearProgress.d.mts +3 -3
  56. package/dist/Link.cjs +1 -1
  57. package/dist/Link.d.cts +1 -1
  58. package/dist/Link.d.mts +1 -1
  59. package/dist/Link.mjs +1 -1
  60. package/dist/MenuItem.cjs +2 -2
  61. package/dist/MenuItem.d.cts +2 -2
  62. package/dist/MenuItem.d.mts +2 -2
  63. package/dist/MenuItem.mjs +2 -2
  64. package/dist/Modal.cjs +1 -1
  65. package/dist/Modal.d.cts +1 -1
  66. package/dist/Modal.d.mts +1 -1
  67. package/dist/Modal.mjs +1 -1
  68. package/dist/NativeSelect.cjs +2 -2
  69. package/dist/NativeSelect.d.cts +3 -3
  70. package/dist/NativeSelect.d.mts +3 -3
  71. package/dist/NativeSelect.mjs +2 -2
  72. package/dist/Pagination/PaginationItem.cjs +1 -1
  73. package/dist/Pagination/PaginationItem.d.cts +1 -1
  74. package/dist/Pagination/PaginationItem.d.mts +1 -1
  75. package/dist/Pagination/PaginationItem.mjs +1 -1
  76. package/dist/Pagination.d.cts +2 -2
  77. package/dist/Pagination.d.mts +2 -2
  78. package/dist/Paper.cjs +1 -1
  79. package/dist/Paper.d.cts +1 -1
  80. package/dist/Paper.d.mts +1 -1
  81. package/dist/Paper.mjs +1 -1
  82. package/dist/{Popover-gg44qzwo.cjs → Popover-CrSABgRk.cjs} +2 -2
  83. package/dist/{Popover-Bq31OTEl.mjs → Popover-DlpXdcwt.mjs} +2 -2
  84. package/dist/Popover.cjs +1 -1
  85. package/dist/Popover.d.cts +4 -4
  86. package/dist/Popover.d.mts +4 -4
  87. package/dist/Popover.mjs +1 -1
  88. package/dist/Pressable.cjs +1 -1
  89. package/dist/Pressable.d.cts +1 -1
  90. package/dist/Pressable.d.mts +1 -1
  91. package/dist/Pressable.mjs +1 -1
  92. package/dist/Quote.d.cts +4 -4
  93. package/dist/Quote.d.mts +4 -4
  94. package/dist/Radio.d.cts +2 -2
  95. package/dist/Radio.d.mts +2 -2
  96. package/dist/Select.cjs +3 -3
  97. package/dist/Select.d.cts +3 -3
  98. package/dist/Select.d.mts +3 -3
  99. package/dist/Select.mjs +3 -3
  100. package/dist/Sidebar/Sidebar.d.cts +1 -1
  101. package/dist/Sidebar/Sidebar.d.mts +1 -1
  102. package/dist/Sidebar/SidebarItem.cjs +1 -1
  103. package/dist/Sidebar/SidebarItem.d.cts +4 -4
  104. package/dist/Sidebar/SidebarItem.d.mts +4 -4
  105. package/dist/Sidebar/SidebarItem.mjs +1 -1
  106. package/dist/Skeleton.d.cts +2 -2
  107. package/dist/Skeleton.d.mts +2 -2
  108. package/dist/Switch.cjs +1 -1
  109. package/dist/Switch.d.cts +2 -2
  110. package/dist/Switch.d.mts +2 -2
  111. package/dist/Switch.mjs +1 -1
  112. package/dist/Table/Table.d.cts +3 -3
  113. package/dist/Table/Table.d.mts +3 -3
  114. package/dist/Table/TableBody.d.cts +2 -2
  115. package/dist/Table/TableBody.d.mts +2 -2
  116. package/dist/Table/TableCell.d.cts +1 -1
  117. package/dist/Table/TableCell.d.mts +1 -1
  118. package/dist/Table/TableContainer.d.cts +4 -4
  119. package/dist/Table/TableContainer.d.mts +4 -4
  120. package/dist/Table/TableControl.d.cts +1 -1
  121. package/dist/Table/TableControl.d.mts +1 -1
  122. package/dist/Table/TableFooter.d.cts +2 -2
  123. package/dist/Table/TableFooter.d.mts +2 -2
  124. package/dist/Table/TableHead.d.cts +2 -2
  125. package/dist/Table/TableHead.d.mts +2 -2
  126. package/dist/Table/TablePagination.d.cts +2 -2
  127. package/dist/Table/TablePagination.d.mts +2 -2
  128. package/dist/Table/TablePaginationActions.cjs +1 -1
  129. package/dist/Table/TablePaginationActions.d.cts +1 -1
  130. package/dist/Table/TablePaginationActions.d.mts +1 -1
  131. package/dist/Table/TablePaginationActions.mjs +1 -1
  132. package/dist/Table/TableRow.d.cts +2 -2
  133. package/dist/Table/TableRow.d.mts +2 -2
  134. package/dist/Table/TableSortLabel.cjs +1 -1
  135. package/dist/Table/TableSortLabel.d.cts +1 -1
  136. package/dist/Table/TableSortLabel.d.mts +1 -1
  137. package/dist/Table/TableSortLabel.mjs +1 -1
  138. package/dist/Table/hooks.d.cts +1 -1
  139. package/dist/Table/hooks.d.mts +1 -1
  140. package/dist/Table.d.cts +5 -5
  141. package/dist/Table.d.mts +5 -5
  142. package/dist/{TableContext-BrIREKe7.d.mts → TableContext-98M9MAm7.d.cts} +1 -1
  143. package/dist/{TableContext-DXzUQ4-a.d.cts → TableContext-BwK_fB9Q.d.mts} +1 -1
  144. package/dist/TextInput.cjs +1 -1
  145. package/dist/TextInput.d.cts +2 -2
  146. package/dist/TextInput.d.mts +2 -2
  147. package/dist/TextInput.mjs +1 -1
  148. package/dist/ToggleButton/ToggleButton.cjs +1 -1
  149. package/dist/ToggleButton/ToggleButton.d.cts +1 -1
  150. package/dist/ToggleButton/ToggleButton.d.mts +1 -1
  151. package/dist/ToggleButton/ToggleButton.mjs +1 -1
  152. package/dist/ToggleButton/ToggleButtonGroup.cjs +1 -1
  153. package/dist/ToggleButton/ToggleButtonGroup.d.cts +1 -1
  154. package/dist/ToggleButton/ToggleButtonGroup.d.mts +1 -1
  155. package/dist/ToggleButton/ToggleButtonGroup.mjs +1 -1
  156. package/dist/Typography.cjs +1 -1
  157. package/dist/Typography.d.cts +2 -2
  158. package/dist/Typography.d.mts +2 -2
  159. package/dist/Typography.mjs +1 -1
  160. package/dist/View.cjs +2 -1
  161. package/dist/View.d.cts +1 -1
  162. package/dist/View.d.mts +1 -1
  163. package/dist/View.mjs +2 -1
  164. package/dist/engine.d.cts +1 -1
  165. package/dist/engine.d.mts +1 -1
  166. package/dist/{index-C-2VKPcp.d.mts → index-6BHvkjdp.d.cts} +3 -3
  167. package/dist/{index-DQ16ijxx.d.mts → index-AlVOmB-K.d.mts} +4 -4
  168. package/dist/{index-Btmdtbpb.d.cts → index-B2LR3Y5d.d.cts} +4 -4
  169. package/dist/{index-XZDPGJ_h.d.mts → index-BAKGyLEF.d.mts} +2 -2
  170. package/dist/{index-vuPAf55D.d.cts → index-BAb24XNa.d.cts} +3 -3
  171. package/dist/{index-BoIi-XoB.d.mts → index-BC98RYwO.d.mts} +3 -3
  172. package/dist/{index-DdBeSvit.d.mts → index-BS5dkngf.d.mts} +2 -2
  173. package/dist/{index-d6gR2x8j.d.cts → index-BfOZMmZA.d.cts} +2 -2
  174. package/dist/{index-CHRAYSwH.d.cts → index-BjMQ1Sfq.d.cts} +3 -3
  175. package/dist/{index-D9CwTcnr.d.cts → index-BvLNPm5C.d.cts} +2 -2
  176. package/dist/index-C-ACdUhw.d.mts +20 -0
  177. package/dist/{index-D3iQQ0L3.d.cts → index-C2e925FY.d.cts} +1 -1
  178. package/dist/{index-D-QRCHiS.d.cts → index-CHr4HUzH.d.mts} +2 -2
  179. package/dist/{index-C5-ZM7lt.d.cts → index-CJWXZFFZ.d.cts} +3 -3
  180. package/dist/{index-h36rcOy8.d.mts → index-COKAN6-s.d.mts} +3 -3
  181. package/dist/{index-Csp1Wzbz.d.cts → index-COYl2TN0.d.mts} +3 -3
  182. package/dist/{index-DhMAwR96.d.mts → index-CaCfFN31.d.mts} +3 -3
  183. package/dist/{index-jmy5eXpx.d.cts → index-CkYiijiE.d.cts} +1 -1
  184. package/dist/{index-Cf7w9Lod.d.cts → index-CorVAOY7.d.mts} +3 -3
  185. package/dist/{index-Br2gDSme.d.cts → index-D3kNrl9W.d.cts} +3 -3
  186. package/dist/{index-COYxtrc0.d.mts → index-D4M18wt_.d.mts} +2 -2
  187. package/dist/{index-DzuXwDCW.d.cts → index-D8jHpwh5.d.cts} +2 -2
  188. package/dist/{index-BWECJgSb.d.mts → index-DClEfecw.d.cts} +3 -3
  189. package/dist/{index-Oxx0z4dS.d.cts → index-DLtzp-Mg.d.mts} +3 -3
  190. package/dist/{index-v_otepCe.d.mts → index-DVG64KQ4.d.mts} +1 -1
  191. package/dist/index-Da9Sr6v7.d.cts +20 -0
  192. package/dist/{index-76XH-GEc.d.mts → index-Dyfu-Otn.d.mts} +1 -1
  193. package/dist/{index-CTVFwvju.d.mts → index-FTr8Mn3p.d.cts} +2 -2
  194. package/dist/{index-ggLhNdZV.d.mts → index-Fcf_SOl_.d.mts} +3 -3
  195. package/dist/{index-BCvkP5R1.d.mts → index-OWbQXOvw.d.cts} +3 -3
  196. package/dist/{index-NBVilQuP.d.mts → index-iHyGhLkM.d.mts} +1 -1
  197. package/dist/{index-DCu7qjpa.d.cts → index-wJbUPxSk.d.cts} +1 -1
  198. package/dist/index.d.cts +2 -2
  199. package/dist/index.d.mts +2 -2
  200. package/dist/style.cjs +1 -1
  201. package/dist/style.d.cts +2 -2
  202. package/dist/style.d.mts +2 -2
  203. package/dist/style.mjs +1 -1
  204. package/dist/{theme-BuqqFbsz.mjs → theme-C1o9qa2E.mjs} +99 -3
  205. package/dist/{theme-Bnc03K83.cjs → theme-DfAqr7qo.cjs} +152 -2
  206. package/dist/theme.cjs +10 -1
  207. package/dist/theme.d.cts +3 -3
  208. package/dist/theme.d.mts +3 -3
  209. package/dist/theme.mjs +2 -2
  210. package/dist/{themes-kbuYiwCi.d.mts → themes-CCguU8uo.d.mts} +111 -1
  211. package/dist/{themes-kbuYiwCi.d.cts → themes-CtTQTVqe.d.cts} +111 -1
  212. package/dist/{useTablePagination-BpMOVLsR.d.cts → useTablePagination-BG93T2Od.d.cts} +1 -1
  213. package/dist/{useTablePagination-DebYZ6vN.d.mts → useTablePagination-jBWK8cmx.d.mts} +1 -1
  214. package/package.json +4 -4
  215. package/dist/index-DOLA1VFD.d.cts +0 -16
  216. package/dist/index-KZKeZDAF.d.mts +0 -16
  217. package/dist/{Modal-CYNcPk-2.mjs → Modal-BcsyrrpH.mjs} +1 -1
  218. package/dist/{Modal-CApyh_V5.cjs → Modal-CM3osOqj.cjs} +1 -1
@@ -1,6 +1,6 @@
1
- import { h as Theme } from "./themes-kbuYiwCi.cjs";
2
- import "./index-jmy5eXpx.cjs";
3
- import { t as TableCellPadding } from "./TableContext-DXzUQ4-a.cjs";
1
+ import { T as Theme } from "./themes-CtTQTVqe.cjs";
2
+ import "./index-CkYiijiE.cjs";
3
+ import { t as TableCellPadding } from "./TableContext-98M9MAm7.cjs";
4
4
  import { ElementType, ThHTMLAttributes } from "react";
5
5
  import { BorderProps, SpaceProps, TypographyProps } from "@soroush.tech/styled-system";
6
6
  //#region src/Table/TableSectionContext.d.ts
@@ -1,5 +1,5 @@
1
- import { a as PaginationItemSize } from "./index-d6gR2x8j.cjs";
2
- import "./index-Br2gDSme.cjs";
1
+ import { a as PaginationItemSize } from "./index-BfOZMmZA.cjs";
2
+ import "./index-D3kNrl9W.cjs";
3
3
  import { HTMLAttributes } from "react";
4
4
  //#region src/Table/TablePaginationActions/TablePaginationActions.d.ts
5
5
  type TablePaginationActionType = 'first' | 'previous' | 'next' | 'last';
@@ -0,0 +1,20 @@
1
+ import { T as Theme } from "./themes-CCguU8uo.mjs";
2
+ import "./index-DVG64KQ4.mjs";
3
+ import { s as ViewProps } from "./index-AlVOmB-K.mjs";
4
+ import { FlexboxProps, LayoutGridProps } from "@soroush.tech/styled-system";
5
+ //#region src/Flex/Flex.d.ts
6
+ /** Valid values for the gap prop - derived from theme.space keys. */
7
+ type GapToken = keyof Theme['space'];
8
+ /**
9
+ * `layout` lays a wrapping row out from `theme.layout` - the theme's gutter and margin per
10
+ * breakpoint, with `--layout-columns` / `--layout-gutter` for the children's `span`.
11
+ */
12
+ interface FlexProps extends ViewProps, FlexboxProps<Theme>, LayoutGridProps<Theme> {}
13
+ declare const Flex: import("@emotion/styled").StyledComponent<{
14
+ theme?: Theme;
15
+ as?: React.ElementType;
16
+ } & ViewProps & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
17
+ theme?: Theme;
18
+ } & FlexProps, {}, {}>;
19
+ //#endregion
20
+ export { FlexProps as n, GapToken as r, Flex as t };
@@ -1,4 +1,4 @@
1
- import { b as ThemeComponents, h as Theme, x as ThemeDefaults } from "./themes-kbuYiwCi.cjs";
1
+ import { M as ThemeDefaults, T as Theme, j as ThemeComponents } from "./themes-CtTQTVqe.cjs";
2
2
  import { ComponentType, ReactNode } from "react";
3
3
  //#region src/theme/ThemeProvider.d.ts
4
4
  interface ThemeProviderProps {
@@ -1,5 +1,5 @@
1
- import { h as Theme } from "./themes-kbuYiwCi.cjs";
2
- import "./index-jmy5eXpx.cjs";
1
+ import { T as Theme } from "./themes-CCguU8uo.mjs";
2
+ import "./index-DVG64KQ4.mjs";
3
3
  import { KeyboardEvent, MouseEvent, ReactNode, Ref, RefCallback, SyntheticEvent } from "react";
4
4
  //#region src/Modal/useModal.d.ts
5
5
  type ModalCloseReason = 'escapeKey' | 'backdropClick';
@@ -1,6 +1,6 @@
1
- import { h as Theme } from "./themes-kbuYiwCi.cjs";
2
- import "./index-jmy5eXpx.cjs";
3
- import { n as ButtonColor, o as ButtonSize, s as ButtonVariant } from "./index-Oxx0z4dS.cjs";
1
+ import { T as Theme } from "./themes-CtTQTVqe.cjs";
2
+ import "./index-CkYiijiE.cjs";
3
+ import { n as ButtonColor, o as ButtonSize, s as ButtonVariant } from "./index-6BHvkjdp.cjs";
4
4
  import { ElementType, HTMLAttributes } from "react";
5
5
  import { SpaceProps } from "@soroush.tech/styled-system";
6
6
  //#region src/ButtonGroup/ButtonGroup.d.ts
@@ -1,6 +1,6 @@
1
- import { h as Theme } from "./themes-kbuYiwCi.mjs";
2
- import "./index-v_otepCe.mjs";
3
- import { a as PaginationItemSize, i as PaginationItemShape, l as UsePaginationProps, n as PaginationItemColor, o as PaginationItemVariant, s as PaginationItemType } from "./index-DdBeSvit.mjs";
1
+ import { T as Theme } from "./themes-CCguU8uo.mjs";
2
+ import "./index-DVG64KQ4.mjs";
3
+ import { a as PaginationItemSize, i as PaginationItemShape, l as UsePaginationProps, n as PaginationItemColor, o as PaginationItemVariant, s as PaginationItemType } from "./index-BS5dkngf.mjs";
4
4
  import { SpaceProps } from "@soroush.tech/styled-system";
5
5
  import { HTMLAttributes } from "react";
6
6
  //#region src/Pagination/Pagination.d.ts
@@ -1,7 +1,7 @@
1
- import { L as TypographyVariant, h as Theme } from "./themes-kbuYiwCi.cjs";
2
- import "./index-jmy5eXpx.cjs";
3
- import { CSSProperties, ElementType, HTMLAttributes } from "react";
1
+ import { T as Theme, Y as TypographyVariant } from "./themes-CCguU8uo.mjs";
2
+ import "./index-DVG64KQ4.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. */
@@ -1,6 +1,6 @@
1
- import { h as Theme } from "./themes-kbuYiwCi.mjs";
2
- import "./index-v_otepCe.mjs";
3
- import { n as ButtonColor, o as ButtonSize, s as ButtonVariant } from "./index-C-2VKPcp.mjs";
1
+ import { T as Theme } from "./themes-CCguU8uo.mjs";
2
+ import "./index-DVG64KQ4.mjs";
3
+ import { n as ButtonColor, o as ButtonSize, s as ButtonVariant } from "./index-DLtzp-Mg.mjs";
4
4
  import { SpaceProps } from "@soroush.tech/styled-system";
5
5
  import { ElementType, HTMLAttributes } from "react";
6
6
  //#region src/ButtonGroup/ButtonGroup.d.ts
@@ -1,4 +1,4 @@
1
- import { h as Theme } from "./themes-kbuYiwCi.cjs";
1
+ import { T as Theme } from "./themes-CtTQTVqe.cjs";
2
2
  import { CreateStyledComponent, FilteringStyledOptions, Interpolation, StyledOptions } from "@emotion/styled";
3
3
  import { PropsOf, css, keyframes } from "@emotion/react";
4
4
  import { ComponentClass, ComponentProps, ComponentType, JSX, Ref } from "react";
@@ -1,6 +1,6 @@
1
- import { h as Theme } from "./themes-kbuYiwCi.cjs";
2
- import "./index-jmy5eXpx.cjs";
3
- import { n as FlexProps } from "./index-DOLA1VFD.cjs";
1
+ import { T as Theme } from "./themes-CCguU8uo.mjs";
2
+ import "./index-DVG64KQ4.mjs";
3
+ import { n as FlexProps } from "./index-C-ACdUhw.mjs";
4
4
  import { CSSProperties, ElementType } from "react";
5
5
  //#region src/Paper/Paper.d.ts
6
6
  type PaperElevation = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24;
@@ -1,6 +1,6 @@
1
- import { h as Theme } from "./themes-kbuYiwCi.cjs";
2
- import "./index-jmy5eXpx.cjs";
3
- import { a as PaginationItemSize, i as PaginationItemShape, l as UsePaginationProps, n as PaginationItemColor, o as PaginationItemVariant, s as PaginationItemType } from "./index-d6gR2x8j.cjs";
1
+ import { T as Theme } from "./themes-CtTQTVqe.cjs";
2
+ import "./index-CkYiijiE.cjs";
3
+ import { a as PaginationItemSize, i as PaginationItemShape, l as UsePaginationProps, n as PaginationItemColor, o as PaginationItemVariant, s as PaginationItemType } from "./index-BfOZMmZA.cjs";
4
4
  import { HTMLAttributes } from "react";
5
5
  import { SpaceProps } from "@soroush.tech/styled-system";
6
6
  //#region src/Pagination/Pagination.d.ts
@@ -1,5 +1,5 @@
1
- import { d as PaletteColor, h as Theme } from "./themes-kbuYiwCi.mjs";
2
- import "./index-v_otepCe.mjs";
1
+ import { T as Theme, x as PaletteColor } from "./themes-CCguU8uo.mjs";
2
+ import "./index-DVG64KQ4.mjs";
3
3
  import { BorderProps, LayoutProps, SpaceProps, TypographyProps } from "@soroush.tech/styled-system";
4
4
  import { ButtonHTMLAttributes, ElementType } from "react";
5
5
  //#region src/Pressable/Pressable.d.ts
@@ -1,5 +1,5 @@
1
- import { d as PaletteColor, h as Theme } from "./themes-kbuYiwCi.cjs";
2
- import "./index-jmy5eXpx.cjs";
1
+ import { T as Theme, x as PaletteColor } from "./themes-CtTQTVqe.cjs";
2
+ import "./index-CkYiijiE.cjs";
3
3
  import { ButtonHTMLAttributes, ElementType } from "react";
4
4
  import { BorderProps, LayoutProps, SpaceProps, TypographyProps } from "@soroush.tech/styled-system";
5
5
  //#region src/Pressable/Pressable.d.ts
@@ -1,7 +1,7 @@
1
- import { L as TypographyVariant, h as Theme } from "./themes-kbuYiwCi.mjs";
2
- import "./index-v_otepCe.mjs";
3
- import { BorderProps, FlexboxProps, LayoutProps, PositionProps, SpaceProps, TypographyProps } from "@soroush.tech/styled-system";
1
+ import { T as Theme, Y as TypographyVariant } from "./themes-CtTQTVqe.cjs";
2
+ import "./index-CkYiijiE.cjs";
4
3
  import { CSSProperties, ElementType, HTMLAttributes } from "react";
4
+ import { BorderProps, FlexboxProps, LayoutProps, PositionProps, SpaceProps, TypographyProps } from "@soroush.tech/styled-system";
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. */
@@ -1,7 +1,7 @@
1
- import { d as PaletteColor, h as Theme, n as ButtonVariants } from "./themes-kbuYiwCi.cjs";
2
- import "./index-jmy5eXpx.cjs";
3
- import { ButtonHTMLAttributes, ReactNode } from "react";
1
+ import { T as Theme, i as ButtonVariants, x as PaletteColor } from "./themes-CCguU8uo.mjs";
2
+ import "./index-DVG64KQ4.mjs";
4
3
  import { BorderProps, LayoutProps, SpaceProps, TypographyProps } from "@soroush.tech/styled-system";
4
+ import { ButtonHTMLAttributes, ReactNode } from "react";
5
5
  //#region src/Button/Button.d.ts
6
6
  /** Augmentable via the `ButtonVariants` interface - style new values through `theme.components.Button.variants`. */
7
7
  type ButtonVariant = keyof ButtonVariants;
@@ -1,4 +1,4 @@
1
- import { h as Theme } from "./themes-kbuYiwCi.mjs";
1
+ import { T as Theme } from "./themes-CCguU8uo.mjs";
2
2
  import { CreateStyledComponent, FilteringStyledOptions, Interpolation, StyledOptions } from "@emotion/styled";
3
3
  import { PropsOf, css as css$1, keyframes } from "@emotion/react";
4
4
  import { createShouldForwardProp, props } from "@soroush.tech/styled-system/should-forward-prop";
@@ -0,0 +1,20 @@
1
+ import { T as Theme } from "./themes-CtTQTVqe.cjs";
2
+ import "./index-CkYiijiE.cjs";
3
+ import { s as ViewProps } from "./index-B2LR3Y5d.cjs";
4
+ import { FlexboxProps, LayoutGridProps } from "@soroush.tech/styled-system";
5
+ //#region src/Flex/Flex.d.ts
6
+ /** Valid values for the gap prop - derived from theme.space keys. */
7
+ type GapToken = keyof Theme['space'];
8
+ /**
9
+ * `layout` lays a wrapping row out from `theme.layout` - the theme's gutter and margin per
10
+ * breakpoint, with `--layout-columns` / `--layout-gutter` for the children's `span`.
11
+ */
12
+ interface FlexProps extends ViewProps, FlexboxProps<Theme>, LayoutGridProps<Theme> {}
13
+ declare const Flex: import("@emotion/styled").StyledComponent<{
14
+ theme?: Theme;
15
+ as?: React.ElementType;
16
+ } & ViewProps & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
17
+ theme?: Theme;
18
+ } & FlexProps, {}, {}>;
19
+ //#endregion
20
+ export { FlexProps as n, GapToken as r, Flex as t };
@@ -1,4 +1,4 @@
1
- import { n as TextColorToken } from "./index-BWECJgSb.mjs";
1
+ import { n as TextColorToken } from "./index-COYl2TN0.mjs";
2
2
  import { LayoutProps, SpaceProps } from "@soroush.tech/styled-system";
3
3
  import { SVGProps } from "react";
4
4
  //#region src/Icon/icons/AccountTree.d.ts
@@ -1,5 +1,5 @@
1
- import { h as Theme } from "./themes-kbuYiwCi.mjs";
2
- import "./index-v_otepCe.mjs";
1
+ import { T as Theme } from "./themes-CtTQTVqe.cjs";
2
+ import "./index-CkYiijiE.cjs";
3
3
  import { KeyboardEvent, MouseEvent, ReactNode, Ref, RefCallback, SyntheticEvent } from "react";
4
4
  //#region src/Modal/useModal.d.ts
5
5
  type ModalCloseReason = 'escapeKey' | 'backdropClick';
@@ -1,6 +1,6 @@
1
- import { h as Theme } from "./themes-kbuYiwCi.mjs";
2
- import "./index-v_otepCe.mjs";
3
- import { n as IconProps, r as IconName } from "./index-76XH-GEc.mjs";
1
+ import { T as Theme } from "./themes-CCguU8uo.mjs";
2
+ import "./index-DVG64KQ4.mjs";
3
+ import { n as IconProps, r as IconName } from "./index-Dyfu-Otn.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,6 +1,6 @@
1
- import { h as Theme } from "./themes-kbuYiwCi.mjs";
2
- import "./index-v_otepCe.mjs";
3
- import { n as FlexProps } from "./index-KZKeZDAF.mjs";
1
+ import { T as Theme } from "./themes-CtTQTVqe.cjs";
2
+ import "./index-CkYiijiE.cjs";
3
+ import { n as FlexProps } from "./index-Da9Sr6v7.cjs";
4
4
  import { CSSProperties, ElementType } from "react";
5
5
  //#region src/Paper/Paper.d.ts
6
6
  type PaperElevation = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24;
@@ -1,4 +1,4 @@
1
- import { b as ThemeComponents, h as Theme, x as ThemeDefaults } from "./themes-kbuYiwCi.mjs";
1
+ import { M as ThemeDefaults, T as Theme, j as ThemeComponents } from "./themes-CCguU8uo.mjs";
2
2
  import { ComponentType, ReactNode } from "react";
3
3
  //#region src/theme/ThemeProvider.d.ts
4
4
  interface ThemeProviderProps {
@@ -1,4 +1,4 @@
1
- import { n as TextColorToken } from "./index-Csp1Wzbz.cjs";
1
+ import { n as TextColorToken } from "./index-DClEfecw.cjs";
2
2
  import { SVGProps } from "react";
3
3
  import { LayoutProps, SpaceProps } from "@soroush.tech/styled-system";
4
4
  //#region src/Icon/icons/AccountTree.d.ts
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { d as PaletteColor, h as Theme, r as CSSObject } from "./themes-kbuYiwCi.cjs";
2
- import { a as ThemeCustomizationOptions, i as props, n as css, o as styled, r as keyframes, t as createShouldForwardProp } from "./index-jmy5eXpx.cjs";
1
+ import { T as Theme, a as CSSObject, x as PaletteColor } from "./themes-CtTQTVqe.cjs";
2
+ import { a as ThemeCustomizationOptions, i as props, n as css, o as styled, r as keyframes, t as createShouldForwardProp } from "./index-CkYiijiE.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 { d as PaletteColor, h as Theme, r as CSSObject } from "./themes-kbuYiwCi.mjs";
2
- import { a as ThemeCustomizationOptions, i as props, n as css, o as styled, r as keyframes, t as createShouldForwardProp } from "./index-v_otepCe.mjs";
1
+ import { T as Theme, a as CSSObject, x as PaletteColor } from "./themes-CCguU8uo.mjs";
2
+ import { a as ThemeCustomizationOptions, i as props, n as css, o as styled, r as keyframes, t as createShouldForwardProp } from "./index-DVG64KQ4.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-Bnc03K83.cjs");
2
+ const require_theme = require("./theme-DfAqr7qo.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 { h as Theme, r as CSSObject } from "./themes-kbuYiwCi.cjs";
2
- import "./index-D3iQQ0L3.cjs";
1
+ import { T as Theme, a as CSSObject } from "./themes-CtTQTVqe.cjs";
2
+ import "./index-C2e925FY.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 { h as Theme, r as CSSObject } from "./themes-kbuYiwCi.mjs";
2
- import "./index-NBVilQuP.mjs";
1
+ import { T as Theme, a as CSSObject } from "./themes-CCguU8uo.mjs";
2
+ import "./index-iHyGhLkM.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
@@ -1,4 +1,4 @@
1
- import { r as useTheme } from "./theme-BuqqFbsz.mjs";
1
+ import { r as useTheme } from "./theme-C1o9qa2E.mjs";
2
2
  import { n as EmotionThemeContext } from "./emotion-BAyqVw0c.mjs";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  //#region src/style/hooks/useStyle.ts
@@ -1,10 +1,31 @@
1
1
  import { alpha, generateBoxShadow } from "./utils.mjs";
2
2
  import { a as useEmotionTheme, n as EmotionThemeContext, r as EmotionThemeProvider } from "./emotion-BAyqVw0c.mjs";
3
+ import { createContainerQueries, createMediaHelpers } from "@soroush.tech/styled-system";
3
4
  import { useMemo } from "react";
4
5
  import { jsx } from "react/jsx-runtime";
5
6
  //#region src/theme/utils/spacing.ts
6
7
  const spacing = (units) => `${8 * units}px`;
7
8
  //#endregion
9
+ //#region src/theme/breakpoints.ts
10
+ /**
11
+ * The scale with its helpers attached as non-enumerable methods: the engine, the theme's JSON
12
+ * and a spread see only the sizes, while `theme.breakpoints.up('md')` works. `createTheme`
13
+ * and `ThemeProvider` re-attach them after a merge, so they always follow the theme's own
14
+ * breakpoints.
15
+ */
16
+ const withBreakpointHelpers = (scale) => {
17
+ const sizes = { ...scale };
18
+ const helpers = {
19
+ ...createMediaHelpers(sizes),
20
+ containerQueries: createContainerQueries(sizes)
21
+ };
22
+ for (const [name, helper] of Object.entries(helpers)) Object.defineProperty(sizes, name, {
23
+ value: helper,
24
+ enumerable: false
25
+ });
26
+ return sizes;
27
+ };
28
+ //#endregion
8
29
  //#region src/theme/utils/createTheme.ts
9
30
  const isPlainObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
10
31
  const deepMerge = (base, overrides) => {
@@ -24,8 +45,17 @@ const deepMerge = (base, overrides) => {
24
45
  * - `undefined` override values are ignored - a key can be added or replaced,
25
46
  * never removed.
26
47
  * - Neither argument is mutated; untouched branches keep referential identity.
48
+ * - `breakpoints` gets its query helpers back, built from the merged sizes.
27
49
  */
28
- const createTheme = (base, overrides) => deepMerge(base, overrides);
50
+ const createTheme = (base, overrides) => {
51
+ const theme = deepMerge(base, overrides);
52
+ return withHelpers(theme);
53
+ };
54
+ /** A theme whose `breakpoints` carry the query helpers - added when a hand-built theme lacks them. */
55
+ const withHelpers = (theme) => theme.breakpoints && !("up" in theme.breakpoints) ? {
56
+ ...theme,
57
+ breakpoints: withBreakpointHelpers(theme.breakpoints)
58
+ } : theme;
29
59
  //#endregion
30
60
  //#region src/theme/themes.ts
31
61
  const shadow = {
@@ -141,6 +171,65 @@ const space = {
141
171
  10: spacing(10),
142
172
  auto: "auto"
143
173
  };
174
+ const breakpoints = withBreakpointHelpers({
175
+ xs: "0px",
176
+ sm: "600px",
177
+ md: "840px",
178
+ lg: "1200px",
179
+ xl: "1600px"
180
+ });
181
+ const layout = {
182
+ xs: {
183
+ bars: { top: 8 },
184
+ panels: {
185
+ start: {
186
+ mode: "hidden",
187
+ width: "280px",
188
+ railWidth: 9
189
+ },
190
+ end: {
191
+ mode: "hidden",
192
+ width: "360px",
193
+ railWidth: 9
194
+ }
195
+ },
196
+ content: {
197
+ columns: 4,
198
+ margin: 2,
199
+ gutter: 2,
200
+ mode: "fluid"
201
+ }
202
+ },
203
+ sm: {
204
+ panels: { start: { mode: "collapsed" } },
205
+ content: {
206
+ columns: 8,
207
+ margin: 4
208
+ }
209
+ },
210
+ md: {
211
+ panels: { end: { mode: "overlay" } },
212
+ content: {
213
+ columns: 12,
214
+ margin: 3,
215
+ gutter: 3
216
+ }
217
+ },
218
+ lg: {
219
+ panels: { end: { width: "412px" } },
220
+ content: {
221
+ mode: "fixed",
222
+ maxWidth: "1200px"
223
+ }
224
+ },
225
+ xl: {
226
+ panels: {
227
+ start: { mode: "inline" },
228
+ end: { mode: "inline" }
229
+ },
230
+ content: { maxWidth: "1600px" }
231
+ }
232
+ };
144
233
  const typography = {
145
234
  h1: {
146
235
  element: "h1",
@@ -232,6 +321,8 @@ const baseTheme = {
232
321
  icon,
233
322
  sizes,
234
323
  space,
324
+ breakpoints,
325
+ layout,
235
326
  zOrder,
236
327
  blur: "12px",
237
328
  colorScheme: "dark",
@@ -316,10 +407,15 @@ const baseTheme = {
316
407
  shadow,
317
408
  shadows
318
409
  };
410
+ /**
411
+ * The query helpers for `baseTheme`'s breakpoints, as plain functions. A theme with its own
412
+ * breakpoints has the same helpers on `theme.breakpoints`.
413
+ */
414
+ const { up, down, only, between, not, containerQueries } = breakpoints;
319
415
  //#endregion
320
416
  //#region src/theme/ThemeProvider.tsx
321
417
  function ThemeProvider({ children, theme = baseTheme, defaults }) {
322
- const value = useMemo(() => defaults ? createTheme(theme, { defaults }) : theme, [theme, defaults]);
418
+ const value = useMemo(() => defaults ? createTheme(theme, { defaults }) : withHelpers(theme), [theme, defaults]);
323
419
  return /* @__PURE__ */ jsx(EmotionThemeProvider, {
324
420
  theme: value,
325
421
  children
@@ -355,4 +451,4 @@ function withTheme(WrappedComponent) {
355
451
  };
356
452
  }
357
453
  //#endregion
358
- export { typography as _, avatar as a, fontSizes as c, icon as d, letterSpacings as f, space as g, sizes as h, ThemeProvider as i, fontWeights as l, radii as m, useDefaultProps as n, baseTheme as o, lineHeights as p, useTheme as r, borderWidths as s, withTheme as t, fonts as u, zOrder as v, createTheme as y };
454
+ export { space as C, createTheme as D, zOrder as E, withBreakpointHelpers as O, sizes as S, up as T, letterSpacings as _, avatar as a, only as b, borderWidths as c, down as d, fontSizes as f, layout as g, icon as h, ThemeProvider as i, breakpoints as l, fonts as m, useDefaultProps as n, baseTheme as o, fontWeights as p, useTheme as r, between as s, withTheme as t, containerQueries as u, lineHeights as v, typography as w, radii as x, not as y };