@gild-ui/react 0.1.0-alpha.0 → 0.1.0-alpha.2

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 (309) hide show
  1. package/dist/Accordion.cjs +2 -2
  2. package/dist/Accordion.d.cts +1 -1
  3. package/dist/Accordion.d.mts +2 -2
  4. package/dist/Accordion.mjs +2 -2
  5. package/dist/{Accordion.types-D06ViRMj.d.mts → Accordion.types-DxvwAfZc.d.mts} +233 -48
  6. package/dist/Alert.cjs +2 -2
  7. package/dist/Alert.d.cts +1 -1
  8. package/dist/Alert.d.mts +1 -1
  9. package/dist/Alert.mjs +2 -2
  10. package/dist/AppBar.cjs +1 -1
  11. package/dist/AppBar.d.cts +1 -1
  12. package/dist/AppBar.d.mts +1 -1
  13. package/dist/AppBar.mjs +1 -1
  14. package/dist/Autocomplete.cjs +2 -2
  15. package/dist/Autocomplete.d.cts +1 -1
  16. package/dist/Autocomplete.d.mts +1 -1
  17. package/dist/Autocomplete.mjs +2 -2
  18. package/dist/Avatar.cjs +1 -1
  19. package/dist/Avatar.d.cts +1 -1
  20. package/dist/Avatar.d.mts +1 -1
  21. package/dist/Avatar.mjs +1 -1
  22. package/dist/Backdrop.cjs +2 -2
  23. package/dist/Backdrop.d.cts +1 -1
  24. package/dist/Backdrop.d.mts +1 -1
  25. package/dist/Backdrop.mjs +2 -2
  26. package/dist/Badge.cjs +1 -1
  27. package/dist/Badge.d.cts +1 -1
  28. package/dist/Badge.d.mts +1 -1
  29. package/dist/Badge.mjs +1 -1
  30. package/dist/Breadcrumbs.cjs +2 -2
  31. package/dist/Breadcrumbs.d.cts +2 -2
  32. package/dist/Breadcrumbs.d.mts +2 -2
  33. package/dist/Breadcrumbs.mjs +2 -2
  34. package/dist/Button.cjs +1 -1
  35. package/dist/Button.d.cts +2 -50
  36. package/dist/Button.d.mts +2 -2
  37. package/dist/Button.mjs +1 -1
  38. package/dist/ButtonGroup.cjs +1 -1
  39. package/dist/ButtonGroup.d.cts +2 -2
  40. package/dist/ButtonGroup.d.mts +2 -2
  41. package/dist/ButtonGroup.mjs +1 -1
  42. package/dist/Card.cjs +2 -2
  43. package/dist/Card.d.cts +3 -3
  44. package/dist/Card.d.mts +4 -4
  45. package/dist/Card.mjs +2 -2
  46. package/dist/Checkbox.cjs +1 -1
  47. package/dist/Checkbox.d.cts +1 -1
  48. package/dist/Checkbox.d.mts +1 -1
  49. package/dist/Checkbox.mjs +1 -1
  50. package/dist/Chip.cjs +2 -2
  51. package/dist/Chip.d.cts +1 -1
  52. package/dist/Chip.d.mts +1 -1
  53. package/dist/Chip.mjs +2 -2
  54. package/dist/CircularProgress.cjs +1 -1
  55. package/dist/CircularProgress.d.cts +2 -2
  56. package/dist/CircularProgress.d.mts +2 -2
  57. package/dist/CircularProgress.mjs +1 -1
  58. package/dist/Collapse.cjs +1 -1
  59. package/dist/Collapse.d.cts +2 -2
  60. package/dist/Collapse.d.mts +2 -2
  61. package/dist/Collapse.mjs +1 -1
  62. package/dist/Drawer.cjs +1 -1
  63. package/dist/Drawer.d.cts +2 -2
  64. package/dist/Drawer.d.mts +3 -3
  65. package/dist/Drawer.mjs +1 -1
  66. package/dist/Fab.cjs +1 -1
  67. package/dist/Fab.d.cts +2 -2
  68. package/dist/Fab.d.mts +2 -2
  69. package/dist/Fab.mjs +1 -1
  70. package/dist/FabMenu.cjs +2 -2
  71. package/dist/FabMenu.d.cts +1 -1
  72. package/dist/FabMenu.d.mts +2 -2
  73. package/dist/FabMenu.mjs +2 -2
  74. package/dist/Fade.d.cts +1 -1
  75. package/dist/Fade.d.mts +1 -1
  76. package/dist/Flex.cjs +2 -2
  77. package/dist/Flex.d.cts +1 -1
  78. package/dist/Flex.d.mts +1 -1
  79. package/dist/Flex.mjs +2 -3
  80. package/dist/FocusTrap.cjs +1 -1
  81. package/dist/FocusTrap.d.cts +1 -1
  82. package/dist/FocusTrap.d.mts +1 -1
  83. package/dist/FocusTrap.mjs +1 -1
  84. package/dist/Form.cjs +1 -1
  85. package/dist/Form.d.cts +1 -1
  86. package/dist/Form.d.mts +1 -1
  87. package/dist/Form.mjs +1 -1
  88. package/dist/FormControl.cjs +1 -1
  89. package/dist/FormControl.d.cts +1 -1
  90. package/dist/FormControl.d.mts +1 -1
  91. package/dist/FormControl.mjs +1 -1
  92. package/dist/FormHelperText.cjs +1 -1
  93. package/dist/FormHelperText.d.cts +2 -2
  94. package/dist/FormHelperText.d.mts +2 -2
  95. package/dist/FormHelperText.mjs +1 -1
  96. package/dist/FormLabel.cjs +1 -1
  97. package/dist/FormLabel.d.cts +2 -2
  98. package/dist/FormLabel.d.mts +2 -2
  99. package/dist/FormLabel.mjs +1 -1
  100. package/dist/Global.d.cts +1 -1
  101. package/dist/Global.d.mts +1 -1
  102. package/dist/Grid.cjs +2 -2
  103. package/dist/Grid.d.cts +1 -1
  104. package/dist/Grid.d.mts +1 -1
  105. package/dist/Grid.mjs +2 -2
  106. package/dist/Grow.d.cts +1 -1
  107. package/dist/Grow.d.mts +1 -1
  108. package/dist/{Icon-CpmLCuWc.mjs → Icon-DBgqmUb3.mjs} +1 -1
  109. package/dist/{Icon-D8CNaUwd.cjs → Icon-DPIqGixm.cjs} +1 -1
  110. package/dist/Icon.cjs +1 -1
  111. package/dist/Icon.d.cts +2 -2
  112. package/dist/Icon.d.mts +2 -2
  113. package/dist/Icon.mjs +1 -1
  114. package/dist/Image.cjs +1 -1
  115. package/dist/Image.d.cts +1 -1
  116. package/dist/Image.d.mts +1 -1
  117. package/dist/Image.mjs +1 -1
  118. package/dist/LinearProgress.cjs +1 -1
  119. package/dist/LinearProgress.d.cts +2 -2
  120. package/dist/LinearProgress.d.mts +2 -2
  121. package/dist/LinearProgress.mjs +1 -1
  122. package/dist/Link.cjs +1 -1
  123. package/dist/Link.d.cts +2 -2
  124. package/dist/Link.d.mts +2 -2
  125. package/dist/Link.mjs +1 -1
  126. package/dist/{Menu-CEr2M5u0.mjs → Menu-Ca7aUnLg.mjs} +2 -2
  127. package/dist/{Menu-DA9QNBfE.cjs → Menu-DlPDdIAu.cjs} +2 -2
  128. package/dist/Menu.cjs +3 -3
  129. package/dist/Menu.d.cts +2 -2
  130. package/dist/Menu.d.mts +3 -3
  131. package/dist/Menu.mjs +3 -3
  132. package/dist/{MenuItem-D3lzWmIO.cjs → MenuItem-2UwOFsM6.cjs} +3 -3
  133. package/dist/{MenuItem-DzHB9Es6.mjs → MenuItem-w7D1-AYW.mjs} +3 -3
  134. package/dist/MenuItem.cjs +1 -1
  135. package/dist/MenuItem.d.cts +2 -2
  136. package/dist/MenuItem.d.mts +2 -2
  137. package/dist/MenuItem.mjs +1 -1
  138. package/dist/{Modal-C5OWwkvp.cjs → Modal-B6_1ugIW.cjs} +2 -2
  139. package/dist/{Modal-BphaFrcw.mjs → Modal-Ouz9KdOG.mjs} +2 -2
  140. package/dist/Modal.cjs +1 -1
  141. package/dist/Modal.d.cts +9 -48
  142. package/dist/Modal.d.mts +2 -2
  143. package/dist/Modal.mjs +1 -1
  144. package/dist/NativeSelect.cjs +2 -2
  145. package/dist/NativeSelect.d.cts +2 -2
  146. package/dist/NativeSelect.d.mts +2 -2
  147. package/dist/NativeSelect.mjs +2 -2
  148. package/dist/NavTree.cjs +2 -2
  149. package/dist/NavTree.d.cts +1 -1
  150. package/dist/NavTree.d.mts +1 -1
  151. package/dist/NavTree.mjs +2 -2
  152. package/dist/NumberInput.cjs +2 -2
  153. package/dist/NumberInput.d.cts +1 -1
  154. package/dist/NumberInput.d.mts +1 -1
  155. package/dist/NumberInput.mjs +2 -2
  156. package/dist/Pagination.cjs +2 -2
  157. package/dist/Pagination.d.cts +1 -1
  158. package/dist/Pagination.d.mts +2 -2
  159. package/dist/Pagination.mjs +2 -2
  160. package/dist/Paper.cjs +1 -1
  161. package/dist/Paper.d.cts +1 -1
  162. package/dist/Paper.d.mts +2 -2
  163. package/dist/Paper.mjs +1 -1
  164. package/dist/{Popover-DsPTeEPx.mjs → Popover-ZsN1txGi.mjs} +2 -2
  165. package/dist/{Popover-DY0ooIAM.cjs → Popover-d5fip8Fi.cjs} +2 -2
  166. package/dist/Popover.cjs +1 -1
  167. package/dist/Popover.d.cts +2 -2
  168. package/dist/Popover.d.mts +3 -3
  169. package/dist/Popover.mjs +1 -1
  170. package/dist/Pressable.cjs +1 -1
  171. package/dist/Pressable.d.cts +1 -1
  172. package/dist/Pressable.d.mts +2 -2
  173. package/dist/Pressable.mjs +1 -1
  174. package/dist/Quote.cjs +2 -2
  175. package/dist/Quote.d.cts +1 -1
  176. package/dist/Quote.d.mts +1 -1
  177. package/dist/Quote.mjs +2 -2
  178. package/dist/Radio.cjs +1 -1
  179. package/dist/Radio.d.cts +1 -1
  180. package/dist/Radio.d.mts +1 -1
  181. package/dist/Radio.mjs +1 -1
  182. package/dist/RangeInput.cjs +1 -1
  183. package/dist/RangeInput.d.cts +1 -1
  184. package/dist/RangeInput.d.mts +1 -1
  185. package/dist/RangeInput.mjs +1 -1
  186. package/dist/Rating.cjs +2 -2
  187. package/dist/Rating.d.cts +1 -1
  188. package/dist/Rating.d.mts +1 -1
  189. package/dist/Rating.mjs +2 -2
  190. package/dist/ScrollArea.cjs +1 -1
  191. package/dist/ScrollArea.d.cts +1 -1
  192. package/dist/ScrollArea.d.mts +1 -1
  193. package/dist/ScrollArea.mjs +1 -1
  194. package/dist/Select.cjs +3 -3
  195. package/dist/Select.d.cts +2 -2
  196. package/dist/Select.d.mts +2 -2
  197. package/dist/Select.mjs +3 -3
  198. package/dist/Sidebar.cjs +2 -2
  199. package/dist/Sidebar.d.cts +2 -2
  200. package/dist/Sidebar.d.mts +3 -3
  201. package/dist/Sidebar.mjs +2 -2
  202. package/dist/Skeleton.cjs +1 -1
  203. package/dist/Skeleton.d.cts +1 -1
  204. package/dist/Skeleton.d.mts +1 -1
  205. package/dist/Skeleton.mjs +1 -1
  206. package/dist/Slide.cjs +7 -1
  207. package/dist/Slide.d.cts +1 -1
  208. package/dist/Slide.d.mts +1 -1
  209. package/dist/Slide.mjs +7 -1
  210. package/dist/Snackbar.cjs +1 -1
  211. package/dist/Snackbar.d.cts +2 -2
  212. package/dist/Snackbar.d.mts +2 -2
  213. package/dist/Snackbar.mjs +1 -1
  214. package/dist/StyleSheet.d.cts +1 -1
  215. package/dist/StyleSheet.d.mts +1 -1
  216. package/dist/Switch.cjs +1 -1
  217. package/dist/Switch.d.cts +1 -1
  218. package/dist/Switch.d.mts +1 -1
  219. package/dist/Switch.mjs +1 -1
  220. package/dist/Table.cjs +3 -3
  221. package/dist/Table.d.cts +2 -2
  222. package/dist/Table.d.mts +3 -3
  223. package/dist/Table.mjs +3 -3
  224. package/dist/Tabs.cjs +6 -6
  225. package/dist/Tabs.d.cts +1 -1
  226. package/dist/Tabs.d.mts +1 -1
  227. package/dist/Tabs.mjs +6 -6
  228. package/dist/TextInput.cjs +1 -1
  229. package/dist/TextInput.d.cts +2 -81
  230. package/dist/TextInput.d.mts +2 -81
  231. package/dist/TextInput.mjs +1 -1
  232. package/dist/ThemeProvider.d.cts +1 -1
  233. package/dist/ThemeProvider.d.mts +1 -1
  234. package/dist/ToggleButton.cjs +1 -1
  235. package/dist/ToggleButton.d.cts +2 -2
  236. package/dist/ToggleButton.d.mts +3 -3
  237. package/dist/ToggleButton.mjs +1 -1
  238. package/dist/{Tooltip-DQo2zZH0.mjs → Tooltip-Bt5lr52c.mjs} +1 -1
  239. package/dist/{Tooltip-DaB6bJKM.cjs → Tooltip-CUpZpoC9.cjs} +1 -1
  240. package/dist/Tooltip.cjs +1 -1
  241. package/dist/Tooltip.d.cts +1 -1
  242. package/dist/Tooltip.d.mts +1 -1
  243. package/dist/Tooltip.mjs +1 -1
  244. package/dist/TransferList.cjs +2 -2
  245. package/dist/TransferList.d.cts +1 -1
  246. package/dist/TransferList.d.mts +1 -1
  247. package/dist/TransferList.mjs +2 -2
  248. package/dist/Typography.cjs +1 -1
  249. package/dist/Typography.d.cts +2 -29
  250. package/dist/Typography.d.mts +2 -2
  251. package/dist/Typography.mjs +1 -1
  252. package/dist/{View-DkfIBlcy.cjs → View-DFnZ41Xe.cjs} +7 -15
  253. package/dist/{View-BmuIFO7p.mjs → View-zuvgW6DP.mjs} +7 -16
  254. package/dist/View.cjs +1 -1
  255. package/dist/View.d.cts +1 -1
  256. package/dist/View.d.mts +1 -1
  257. package/dist/View.mjs +1 -1
  258. package/dist/Zoom.d.cts +1 -1
  259. package/dist/Zoom.d.mts +1 -1
  260. package/dist/catalog.d.cts +1 -1
  261. package/dist/catalog.d.mts +1 -1
  262. package/dist/css.d.cts +1 -1
  263. package/dist/css.d.mts +1 -1
  264. package/dist/engine.d.cts +1 -1
  265. package/dist/engine.d.mts +1 -1
  266. package/dist/{index-CT311xS9.d.cts → index-B3jHcw5h.d.cts} +2 -2
  267. package/dist/{index-CKHGDpGJ.d.mts → index-Bf-ZHQLG.d.mts} +2 -2
  268. package/dist/{index-CD0xu_P6.d.mts → index-CAMwJg71.d.mts} +1 -1
  269. package/dist/index-CLQt_mOa.d.mts +3 -0
  270. package/dist/{index-CmG1wW5D.d.mts → index-Cqse4F32.d.mts} +2 -2
  271. package/dist/index-CsYK-ukA.d.mts +3 -0
  272. package/dist/{index-CA5HTpT9.d.mts → index-D9Gg2NWm.d.mts} +1 -1
  273. package/dist/{index-DZFF1vMV.d.cts → index-DPQxIeZF.d.cts} +225 -40
  274. package/dist/{index-CEtnJkY4.d.cts → index-Dc7XiT_v.d.cts} +1 -1
  275. package/dist/{index-Blc3XujV.d.mts → index-Djum1XiO.d.mts} +1 -1
  276. package/dist/{index-Bgd6kxq_.d.mts → index-DtfH-dhY.d.mts} +2 -2
  277. package/dist/{index-B7LR7Up3.d.mts → index-IB1nBqEO.d.mts} +2 -2
  278. package/dist/{index-C21GrYkd.d.mts → index-phuw9VpI.d.mts} +9 -48
  279. package/dist/index-yCzwpbBP.d.mts +1 -0
  280. package/dist/index.cjs +1 -1
  281. package/dist/index.d.cts +1 -1
  282. package/dist/index.d.mts +1 -1
  283. package/dist/index.mjs +1 -1
  284. package/dist/keyframes.d.cts +1 -1
  285. package/dist/keyframes.d.mts +1 -1
  286. package/dist/{styled-DnzWP4pc.cjs → styled-Dr3_OY1-.cjs} +15 -1
  287. package/dist/{styled-nr_qC_Yx.mjs → styled-tLHNvicL.mjs} +15 -1
  288. package/dist/styled.cjs +1 -1
  289. package/dist/styled.d.cts +1 -1
  290. package/dist/styled.d.mts +1 -1
  291. package/dist/styled.mjs +1 -1
  292. package/dist/useDefaultProps.d.cts +1 -1
  293. package/dist/useDefaultProps.d.mts +1 -1
  294. package/dist/useMediaQuery.d.cts +1 -1
  295. package/dist/useMediaQuery.d.mts +1 -1
  296. package/dist/useStyle.d.cts +1 -1
  297. package/dist/useStyle.d.mts +1 -1
  298. package/dist/useTheme.d.cts +1 -1
  299. package/dist/useTheme.d.mts +1 -1
  300. package/dist/{useTransition-BwpSHKSf.d.mts → useTransition-BzwifRXe.d.mts} +1 -1
  301. package/dist/{useTransition-B4KGUO9m.d.cts → useTransition-lt8_WKk-.d.cts} +1 -1
  302. package/dist/withStyle.d.cts +1 -1
  303. package/dist/withStyle.d.mts +1 -1
  304. package/dist/withTheme.d.cts +1 -1
  305. package/dist/withTheme.d.mts +1 -1
  306. package/package.json +24 -21
  307. package/dist/index-CWOcMPWz.d.mts +0 -51
  308. package/dist/index-MfIvwyA4.d.mts +0 -1
  309. package/dist/index-Tg9lQlVl.d.mts +0 -30
@@ -1,9 +1,9 @@
1
1
  import "./LayoutProvider-DFwC1-h0.cjs";
2
- import { CSSProperties, ComponentClass, ComponentProps, ComponentType, ElementType, FunctionComponent, HTMLAttributes, JSX, ReactElement, ReactNode, Ref } from "react";
2
+ import { ButtonHTMLAttributes, CSSProperties, ChangeEventHandler, ComponentClass, ComponentProps, ComponentType, ElementType, FunctionComponent, HTMLAttributes, InputHTMLAttributes, JSX, ReactElement, ReactNode, Ref, TextareaHTMLAttributes } from "react";
3
3
  import * as GildCore from "@gild-ui/core/theme";
4
- import { ButtonVariants, InputVariantKey, OpenScale, Register, RegisteredTheme, Theme as Theme$1, ThemeBackground, ThemeColor, ThemeDefaults, ThemeFonts, ThemeRadii, ThemeSize, ThemeSpaceKey, ThemeText, ThemeTransitionEasing, ThemeTypography, ThemeZOrder, VariantOf } from "@gild-ui/core/theme";
4
+ import { ButtonVariants, InputVariantKey, OpenScale, Register, RegisteredTheme, Theme as Theme$1, ThemeBackground, ThemeColor, ThemeDefaults, ThemeFonts, ThemeRadii, ThemeSize, ThemeSpaceKey, ThemeText, ThemeTransitionEasing, ThemeTypography, ThemeZOrder, TypographyVariant, VariantOf } from "@gild-ui/core/theme";
5
5
  import { CSSObject as CSSObject$1, Global, LiveValue, PropsOf, SheetStyleProp, StyleSheet, StyledStatics, alpha, asIs, configure as configureEngine, css, defineTheme, fallback, keyframes, negate, setNonceSource, useMediaQuery, useStyle, useStyleValue, useTheme, val, variable, withStyle, withTheme } from "@umber-style/react";
6
- import { BorderProps, FlexboxProps, LayoutFrameProps, LayoutProps, PositionProps, SpaceProps, SpanProps, TypographyProps } from "@soroush.tech/styled-system";
6
+ import { BorderProps, FlexboxProps, LayoutFrameProps, LayoutProps, PositionProps, SpaceProps, SpanProps, TypographyProps as TypographyProps$1 } from "@soroush.tech/styled-system";
7
7
  import { CreateStyledComponent, FilteringStyledOptions, Interpolation, StyledOptions } from "@umber-style/styled";
8
8
  /**
9
9
  * Once themes are registered, `T` may have no key the registered themes lack, at any depth: each
@@ -136,6 +136,31 @@ interface BreadcrumbsOwnerState {
136
136
  type BreadcrumbsSlot = 'root' | 'list' | 'item' | 'separator' | 'collapsed' | 'collapsedIcon';
137
137
  /** What `theme.components.Breadcrumbs` takes. */
138
138
  type BreadcrumbsThemeConfig = ComponentConfig<BreadcrumbsOwnerState, BreadcrumbsSlot>;
139
+ /**
140
+ * What the `style` prop of a component takes: the engine's `SheetStyleProp`, so an entry of
141
+ * `StyleSheet.create` (of an object, or a handle `sheet.card` of a sheet of the theme) or a list of
142
+ * them, with `false`, `null` and `undefined` for a condition that is off. A plain style object is not
143
+ * one: it is a type error.
144
+ */
145
+ type StyleOverride = SheetStyleProp;
146
+ /**
147
+ * What one slot of a component takes in `slotProps`: a `style` (as above), a `className`, and `data-*`
148
+ * and `aria-*` attributes. Nothing a component controls (its handlers, `ref`, `id`, `role`) is here.
149
+ */
150
+ type SlotOverride = {
151
+ style?: StyleOverride;
152
+ className?: string;
153
+ } & { [K in `data-${string}` | `aria-${string}`]?: string | number | boolean | undefined; };
154
+ /** The `slotProps` of a component: one `SlotOverride` for each slot it declares for the theme (`<Name>Slot`). */
155
+ type SlotProps<Slot extends string> = { [S in Slot]?: SlotOverride; };
156
+ /**
157
+ * A component made by `styled` with its `style` narrowed to `StyleOverride`, for one the library
158
+ * exports: `styled` itself takes any style on the element it makes.
159
+ */
160
+ type StrictStyled<C extends ElementType & StyledStatics> = FunctionComponent<Omit<ComponentProps<C>, 'style' | 'slotProps'> & {
161
+ style?: StyleOverride;
162
+ slotProps?: SlotProps<'root'>;
163
+ }> & StyledStatics;
139
164
  /** The corner shapes of a control or a surface. */
140
165
  type ShapeKey$2 = 'square' | 'rounded' | 'pill';
141
166
  /** The resolved props Button's styled roots receive - what `ownerState` exposes. */
@@ -153,6 +178,51 @@ type ButtonVariant = keyof ButtonVariants | VariantOf<'Button'>;
153
178
  type ButtonSlot = 'root' | 'label' | 'icon' | 'loader';
154
179
  /** What `theme.components.Button` takes. */
155
180
  type ButtonThemeConfig = ComponentConfig<ButtonOwnerState, ButtonSlot>;
181
+ /** Augmentable via the `ButtonVariants` interface, or defined by a registered theme - style new values through `theme.components.Button.variants`. */
182
+ type ButtonColor = ThemeColor;
183
+ type ButtonSize = keyof AppTheme['sizes'];
184
+ type ButtonShape = 'square' | 'rounded' | 'pill';
185
+ type ButtonLoadingPosition = 'start' | 'end' | 'center';
186
+ /** Valid values for the gap prop - resolves against theme.space. Default: `1` (8px). */
187
+ type GapToken$1 = keyof AppTheme['space'];
188
+ interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'color' | 'style'>, SpaceProps, LayoutProps, BorderProps, TypographyProps$1 {
189
+ /** Visual style - filled, stroked, or ghost. Default: `'contained'`, overridable via `theme.defaults.buttonVariant`. */
190
+ variant?: ButtonVariant;
191
+ /** Color palette - maps to `theme.palette[color]`. Default: `'primary'`, overridable via `theme.defaults.color`. */
192
+ color?: ButtonColor;
193
+ /** Size token - controls padding and font size. Default: `'md'`, overridable via `theme.defaults.size`. */
194
+ size?: ButtonSize;
195
+ /** Gap between icon and label - resolves against theme.space. Default: `1` (8px). */
196
+ gap?: GapToken$1;
197
+ /** Icon rendered before the label. */
198
+ startIcon?: ReactNode;
199
+ /** Icon rendered after the label. */
200
+ endIcon?: ReactNode;
201
+ /** Stretch button to full container width. */
202
+ fullWidth?: boolean;
203
+ /** Shows loading indicator and disables the button. */
204
+ loading?: boolean;
205
+ /** Custom loading element. Default: animated spinner. */
206
+ loadingIndicator?: ReactNode;
207
+ /**
208
+ * Corner shape - sets the default `borderRadius`.
209
+ * `"square"` → 0 · `"rounded"` → `theme.radii.md` (default) · `"pill"` → 9999px
210
+ * The `borderRadius` prop always overrides this.
211
+ */
212
+ shape?: ButtonShape;
213
+ /** Where the loading indicator appears. Default: `"center"`. */
214
+ loadingPosition?: ButtonLoadingPosition;
215
+ /** The URL to link to when the button is clicked. If defined, an `a` element will be used as the root node. */
216
+ href?: string;
217
+ /** Anchor `target` - only meaningful when `href` is set. */
218
+ target?: string;
219
+ /** Anchor `rel` - only meaningful when `href` is set. */
220
+ rel?: string;
221
+ /** Overrides the CSS of the root: an entry of `StyleSheet.create`, or a list of them. It wins over `slotProps.root.style`. */
222
+ style?: StyleOverride;
223
+ /** Overrides for the slots a theme can style: `style`, `className`, `data-*` and `aria-*`. */
224
+ slotProps?: SlotProps<ButtonSlot>;
225
+ }
156
226
  /** The resolved props ButtonGroup's styled elements receive - what `ownerState` exposes. */
157
227
  type ButtonGroupOwnerState = Record<string, unknown>;
158
228
  /** The slots of ButtonGroup a theme can style with `styleOverrides`. */
@@ -227,31 +297,6 @@ interface CollapseOwnerState {
227
297
  type CollapseSlot = 'root' | 'wrapper' | 'inner';
228
298
  /** What `theme.components.Collapse` takes. */
229
299
  type CollapseThemeConfig = ComponentConfig<CollapseOwnerState, CollapseSlot>;
230
- /**
231
- * What the `style` prop of a component takes: the engine's `SheetStyleProp`, so an entry of
232
- * `StyleSheet.create` (of an object, or a handle `sheet.card` of a sheet of the theme) or a list of
233
- * them, with `false`, `null` and `undefined` for a condition that is off. A plain style object is not
234
- * one: it is a type error.
235
- */
236
- type StyleOverride = SheetStyleProp;
237
- /**
238
- * What one slot of a component takes in `slotProps`: a `style` (as above), a `className`, and `data-*`
239
- * and `aria-*` attributes. Nothing a component controls (its handlers, `ref`, `id`, `role`) is here.
240
- */
241
- type SlotOverride = {
242
- style?: StyleOverride;
243
- className?: string;
244
- } & { [K in `data-${string}` | `aria-${string}`]?: string | number | boolean | undefined; };
245
- /** The `slotProps` of a component: one `SlotOverride` for each slot it declares for the theme (`<Name>Slot`). */
246
- type SlotProps<Slot extends string> = { [S in Slot]?: SlotOverride; };
247
- /**
248
- * A component made by `styled` with its `style` narrowed to `StyleOverride`, for one the library
249
- * exports: `styled` itself takes any style on the element it makes.
250
- */
251
- type StrictStyled<C extends ElementType & StyledStatics> = FunctionComponent<Omit<ComponentProps<C>, 'style' | 'slotProps'> & {
252
- style?: StyleOverride;
253
- slotProps?: SlotProps<'root'>;
254
- }> & StyledStatics;
255
300
  /** The resolved props Paper's styled elements receive - what `ownerState` exposes. */
256
301
  type PaperOwnerState = Record<string, unknown>;
257
302
  /** The slots of Paper a theme can style with `styleOverrides`. */
@@ -269,7 +314,7 @@ type ViewBorderWidthToken = keyof Theme['borderWidths'];
269
314
  /** Valid theme tokens for border-radius. Raw CSS pixel values (e.g. '6px', '9999px') are also accepted. */
270
315
  type OrPixels<Token extends PropertyKey> = Token | `${number}px`;
271
316
  type ViewBorderRadiusToken = OrPixels<keyof Theme['radii']>;
272
- interface ViewProps extends Omit<HTMLAttributes<HTMLElement>, 'color' | 'style'>, SpaceProps, LayoutProps, TypographyProps, Omit<BorderProps, 'borderColor' | 'borderWidth' | 'borderRadius'>, PositionProps, SpanProps, LayoutFrameProps {
317
+ interface ViewProps extends Omit<HTMLAttributes<HTMLElement>, 'color' | 'style'>, SpaceProps, LayoutProps, TypographyProps$1, Omit<BorderProps, 'borderColor' | 'borderWidth' | 'borderRadius'>, PositionProps, SpanProps, LayoutFrameProps {
273
318
  /** Overrides the CSS of the element: an entry of `StyleSheet.create`, or a list of them. */
274
319
  style?: StyleOverride;
275
320
  /** Overrides for the slot a theme can style: `style`, `className`, `data-*` and `aria-*`. */
@@ -286,16 +331,16 @@ interface ViewProps extends Omit<HTMLAttributes<HTMLElement>, 'color' | 'style'>
286
331
  /** CSS order for flex/grid item placement. Accepts responsive arrays. */
287
332
  order?: FlexboxProps['order'];
288
333
  }
289
- declare const View: StrictStyled<import("@umber-style/react").StyledComponent<import("react").ElementType, ViewProps, {
290
- theme?: AppTheme;
291
- as?: React.ElementType;
292
- } & import("react").ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> & object>>;
293
334
  /** The resolved props View's styled elements receive - what `ownerState` exposes. */
294
335
  type ViewOwnerState = Record<string, unknown>;
295
336
  /** The slots of View a theme can style with `styleOverrides`. */
296
337
  type ViewSlot = 'root';
297
338
  /** What `theme.components.View` takes. */
298
339
  type ViewThemeConfig = ComponentConfig<ViewOwnerState, ViewSlot>;
340
+ declare const View: StrictStyled<import("@umber-style/react").StyledComponent<import("react").ElementType, ViewProps, {
341
+ theme?: AppTheme;
342
+ as?: React.ElementType;
343
+ } & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & object>>;
299
344
  /** Valid values for the gap prop - derived from theme.space keys. */
300
345
  type GapToken = keyof Theme['space'];
301
346
  /**
@@ -304,6 +349,12 @@ type GapToken = keyof Theme['space'];
304
349
  * `flexDirection="row"`. Columns are Grid's: content on the page columns uses `<Grid layout>`.
305
350
  */
306
351
  interface FlexProps extends ViewProps, FlexboxProps {}
352
+ /** The resolved props Flex's styled elements receive - what `ownerState` exposes. */
353
+ type FlexOwnerState = Record<string, unknown>;
354
+ /** The slots of Flex a theme can style with `styleOverrides`. */
355
+ type FlexSlot = 'root';
356
+ /** What `theme.components.Flex` takes. */
357
+ type FlexThemeConfig = ComponentConfig<FlexOwnerState, FlexSlot>;
307
358
  declare const Flex: StrictStyled<import("@umber-style/react").StyledComponent<import("react").ElementType, FlexProps, Omit<Omit<{
308
359
  theme?: AppTheme;
309
360
  as?: React.ElementType;
@@ -316,12 +367,6 @@ declare const Flex: StrictStyled<import("@umber-style/react").StyledComponent<im
316
367
  } & {
317
368
  theme?: AppTheme;
318
369
  } & object>>;
319
- /** The resolved props Flex's styled elements receive - what `ownerState` exposes. */
320
- type FlexOwnerState = Record<string, unknown>;
321
- /** The slots of Flex a theme can style with `styleOverrides`. */
322
- type FlexSlot = 'root';
323
- /** What `theme.components.Flex` takes. */
324
- type FlexThemeConfig = ComponentConfig<FlexOwnerState, FlexSlot>;
325
370
  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;
326
371
  interface PaperProps extends FlexProps {
327
372
  /** Shadow depth - 0 (flat) to 24 (highest). Resolves to theme.shadows[n]. Default: 1. */
@@ -478,6 +523,45 @@ interface MenuListOwnerState {
478
523
  type MenuListSlot = 'root';
479
524
  /** What `theme.components.MenuList` takes. */
480
525
  type MenuListThemeConfig = ComponentConfig<MenuListOwnerState, MenuListSlot>;
526
+ type ModalCloseReason = 'escapeKey' | 'backdropClick';
527
+ type ModalScroll = 'paper' | 'body';
528
+ interface ModalProps {
529
+ /** If true, the modal is shown. */
530
+ isOpen: boolean;
531
+ /** A single content element. */
532
+ children: ReactNode;
533
+ /** Fired on Escape (top modal only) or backdrop click. */
534
+ onClose?: (event: Event | React.SyntheticEvent, reason: ModalCloseReason) => void;
535
+ /** Render the dimmed backdrop. Default: true. */
536
+ hasBackdrop?: boolean;
537
+ /** Keep the children mounted while closed. Default: false. */
538
+ shouldKeepMounted?: boolean;
539
+ /** Portal the modal into `portalContainer`. Default: true. */
540
+ shouldUsePortal?: boolean;
541
+ /** Portal target, or a function returning one. Defaults to the document body. */
542
+ portalContainer?: HTMLElement | (() => HTMLElement | null) | null;
543
+ /** Lock body scroll while open. Default: true. */
544
+ shouldLockScroll?: boolean;
545
+ /** Skip `aria-hidden` on background content - for non-modal popovers whose trigger stays focused. Default: false. */
546
+ disableAriaHidden?: boolean;
547
+ /** Move focus into the modal on open. Default: true. */
548
+ shouldAutoFocus?: boolean;
549
+ /** Trap Tab focus within the modal. Default: true. */
550
+ shouldTrapFocus?: boolean;
551
+ /** Pull focus back into the modal whenever it escapes. Default: true. */
552
+ shouldEnforceFocus?: boolean;
553
+ /** Restore focus to the trigger on close. Default: true. */
554
+ shouldRestoreFocus?: boolean;
555
+ /** How long content scrolls: within the content (`'paper'`) or the whole root (`'body'`). Default: 'paper'. */
556
+ scroll?: ModalScroll;
557
+ /** Stacking layer from `theme.zOrder`. Default: 'modal'. */
558
+ layer?: keyof Theme['zOrder'];
559
+ /** Overrides the CSS of the root: an entry of `StyleSheet.create`, or a list of them. It wins over `slotProps.root.style`. */
560
+ style?: StyleOverride;
561
+ className?: string;
562
+ /** Overrides for the slots a theme can style: `style`, `className`, `data-*` and `aria-*`. */
563
+ slotProps?: SlotProps<ModalSlot>;
564
+ }
481
565
  /** The resolved props Modal's styled elements receive - what `ownerState` exposes. */
482
566
  type ModalOwnerState = Record<string, unknown>;
483
567
  /** The slots of Modal a theme can style with `styleOverrides`. */
@@ -771,6 +855,83 @@ type TabsVariant = keyof TabsVariants | VariantOf<'Tabs'>;
771
855
  type TabsSlot = 'root' | 'list' | 'indicator' | 'startContent' | 'endContent' | 'scrollButton' | 'overflowButton' | 'overflowClose';
772
856
  /** What `theme.components.Tabs` takes. */
773
857
  type TabsThemeConfig = ComponentConfig<TabsOwnerState, TabsSlot>;
858
+ type TextInputColor = keyof Theme['palette'];
859
+ type TextInputTextColor = keyof Theme['text'];
860
+ type TextInputVariant = 'default' | 'outlined' | 'text' | 'underline';
861
+ type TextInputSize = keyof Theme['sizes'];
862
+ interface TextInputClasses {
863
+ root?: string;
864
+ input?: string;
865
+ }
866
+ interface TextInputProps extends SpaceProps, Pick<LayoutProps, 'width' | 'minWidth' | 'maxWidth'> {
867
+ /** Corner radius - applies only to `default` and `outlined` variants. Resolves against `theme.radii`. */
868
+ borderRadius?: keyof Theme['radii'];
869
+ autoComplete?: string;
870
+ autoFocus?: boolean;
871
+ /** Class names applied to inner elements. `root` targets the wrapper; `input` targets the native element. */
872
+ classes?: TextInputClasses;
873
+ /** Override components for the Root and Input slots. */
874
+ components?: {
875
+ Input?: ElementType;
876
+ Root?: ElementType;
877
+ };
878
+ /** Focus/active border color - resolves to `theme.palette[color].main`. Default: 'primary', overridable via `theme.defaults.color`. */
879
+ color?: TextInputColor;
880
+ /** Text color of the typed value - resolves against `theme.text`. Default: the accent `color`'s `main`. */
881
+ textColor?: TextInputTextColor;
882
+ /** Disables the input. */
883
+ disabled?: boolean;
884
+ /** Marks the field as invalid - applies error border color. */
885
+ error?: boolean;
886
+ /** Stretches the root to fill its container. */
887
+ fullWidth?: boolean;
888
+ id?: string;
889
+ /** Custom component for the input element. Takes priority over `components.Input`. Default: `'input'`. */
890
+ inputComponent?: ElementType;
891
+ /** Native HTML `size` attribute - visible width in character widths. Has no effect with `multiline` or `resize`. */
892
+ inputSize?: number;
893
+ /** Extra props spread onto the native element. Explicit top-level props take priority. */
894
+ inputProps?: Omit<InputHTMLAttributes<HTMLInputElement>, 'style'> & Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'style'>;
895
+ /** Maximum rows before the auto-grow textarea starts scrolling. Only applies when `resize` is set. */
896
+ maxRows?: number | string;
897
+ /** Minimum rows for the auto-grow textarea. Only applies when `resize` is set. */
898
+ minRows?: number | string;
899
+ /**
900
+ * Renders a `<textarea>` that grows with its content.
901
+ * Combine with `rows` to fix the height instead of auto-growing.
902
+ */
903
+ multiline?: boolean;
904
+ name?: string;
905
+ onChange?: ChangeEventHandler<HTMLInputElement | HTMLTextAreaElement>;
906
+ placeholder?: string;
907
+ readOnly?: boolean;
908
+ required?: boolean;
909
+ /** Auto-grows the textarea as content increases. Requires `multiline`. */
910
+ resize?: boolean;
911
+ /** Controls padding and font size. Default: 'md', overridable via `theme.defaults.size`. */
912
+ size?: TextInputSize;
913
+ /**
914
+ * Fixes the textarea height to this many rows. Also enables `multiline`
915
+ * when value is greater than 1. Disables resize.
916
+ */
917
+ rows?: number | string;
918
+ /** HTML input type. Ignored when multiline. Default: `'text'`. */
919
+ type?: string;
920
+ /**
921
+ * Visual style of the input.
922
+ * - `outlined` / `default` - full border box (default)
923
+ * - `underline` - border on bottom only
924
+ * - `text` - no border, transparent background
925
+ */
926
+ variant?: TextInputVariant;
927
+ value?: string | number | readonly string[];
928
+ className?: string;
929
+ /** Overrides the CSS of the root: an entry of `StyleSheet.create`, or a list of them. It wins over `slotProps.root.style`. */
930
+ style?: StyleOverride;
931
+ /** Overrides for the slots a theme can style: `style`, `className`, `data-*` and `aria-*`. */
932
+ slotProps?: SlotProps<TextInputSlot>;
933
+ 'data-testid'?: string;
934
+ }
774
935
  /** The resolved props TextInput's styled elements receive - what `ownerState` exposes. */
775
936
  type TextInputOwnerState = Record<string, unknown>;
776
937
  /** The slots of TextInput a theme can style with `styleOverrides`. */
@@ -834,6 +995,30 @@ interface TransferListOwnerState {
834
995
  type TransferListSlot = 'root' | 'list' | 'header' | 'title' | 'count' | 'items' | 'item' | 'controls' | 'icon';
835
996
  /** What `theme.components.TransferList` takes. */
836
997
  type TransferListThemeConfig = ComponentConfig<TransferListOwnerState, TransferListSlot>;
998
+ type TypographyAlign = 'left' | 'right' | 'center' | 'justify' | 'inherit';
999
+ /** Valid values for the color prop - derived from theme.text keys. */
1000
+ type TextColorToken = keyof Theme['text'];
1001
+ /** Valid values for the bg prop - derived from theme.background keys. */
1002
+ type BackgroundToken = keyof Theme['background'];
1003
+ interface TypographyProps extends Omit<HTMLAttributes<HTMLElement>, 'color' | 'style'>, SpaceProps, LayoutProps, TypographyProps$1, FlexboxProps, BorderProps, PositionProps {
1004
+ /** Resolves against theme.text - inherit · initial · primary · secondary · error · success */
1005
+ color?: TextColorToken;
1006
+ /** Resolves against theme.background */
1007
+ bg?: BackgroundToken;
1008
+ /** Overrides the CSS of the element: an entry of `StyleSheet.create`, or a list of them. */
1009
+ style?: StyleOverride;
1010
+ /** Overrides for the slots a theme can style: `style`, `className`, `data-*` and `aria-*`. */
1011
+ slotProps?: SlotProps<TypographySlot>;
1012
+ opacity?: number;
1013
+ textTransform?: CSSProperties['textTransform'];
1014
+ variant?: TypographyVariant;
1015
+ align?: TypographyAlign;
1016
+ gutterBottom?: boolean;
1017
+ noWrap?: boolean;
1018
+ /** Machine-readable timestamp - forwarded when rendering as `<time>` (`as="time"`). */
1019
+ dateTime?: string;
1020
+ as?: ElementType;
1021
+ }
837
1022
  /** The resolved props Typography's styled elements receive - what `ownerState` exposes. */
838
1023
  type TypographyOwnerState = Record<string, unknown>;
839
1024
  /** The slots of Typography a theme can style with `styleOverrides`. */
@@ -1111,4 +1296,4 @@ interface CreateThemedStyled extends StyledTags {
1111
1296
  * customization (`theme.components[name].styleOverrides` / `.variants`).
1112
1297
  */
1113
1298
  declare const styled: CreateThemedStyled;
1114
- export { TableSortLabelThemeConfig as $, AutocompleteThemeConfig as $i, MenuDividerThemeConfig as $n, GapToken as $r, SelectThemeConfig as $t, TypographySlot as A, CardSlot as Ai, NavTreeOwnerState as An, FabMenuOwnerState as Ar, TabPanelOwnerState as At, ToggleButtonGroupThemeConfig as B, BreadcrumbsSlot as Bi, NativeSelectSlot as Bn, ContextMenuSlot as Br, SnackbarSlot as Bt, ThemeProvider$1 as C, AccordionThemeConfig as Ca, ChipOwnerState as Ci, PaginationItemThemeConfig as Cn, FormControlThemeConfig as Cr, TableBodyThemeConfig as Ct, Theme as D, CheckboxSlot as Di, NumberInputOwnerState as Dn, FocusTrapOwnerState as Dr, TabScrollButtonOwnerState as Dt, ComponentConfig as E, CheckboxOwnerState as Ei, PaginationThemeConfig as En, FormThemeConfig as Er, TableThemeConfig as Et, TooltipOwnerState as F, ButtonOwnerState as Fi, NavLinkThemeConfig as Fn, FabThemeConfig as Fr, TabThemeConfig as Ft, TextInputSlot as G, BackdropOwnerState as Gi, MenuListOwnerState as Gn, Paper as Gr, SidebarItemOwnerState as Gt, ToggleButtonSlot as H, BadgeOwnerState as Hi, ModalOwnerState as Hn, MenuOwnerState as Hr, SkeletonOwnerState as Ht, TooltipSlot as I, ButtonSlot as Ii, NavGroupOwnerState as In, DrawerOwnerState as Ir, SwitchOwnerState as It, TabsSlot as J, AvatarOwnerState as Ji, MenuItemOwnerState as Jn, FlexOwnerState as Jr, SidebarOwnerState as Jt, TextInputThemeConfig as K, BackdropSlot as Ki, MenuListSlot as Kn, PaperElevation as Kr, SidebarItemSlot as Kt, TooltipThemeConfig as L, ButtonThemeConfig as Li, NavGroupSlot as Ln, DrawerSlot as Lr, SwitchSlot as Lt, TransferListOwnerState as M, ButtonGroupOwnerState as Mi, NavTreeThemeConfig as Mn, FabMenuThemeConfig as Mr, TabPanelThemeConfig as Mt, TransferListSlot as N, ButtonGroupSlot as Ni, NavLinkOwnerState as Nn, FabOwnerState as Nr, TabOwnerState as Nt, ThemeComponents as O, CheckboxThemeConfig as Oi, NumberInputSlot as On, FocusTrapSlot as Or, TabScrollButtonSlot as Ot, TransferListThemeConfig as P, ButtonGroupThemeConfig as Pi, NavLinkSlot as Pn, FabSlot as Pr, TabSlot as Pt, TableSortLabelSlot as Q, AutocompleteSlot as Qi, MenuDividerSlot as Qn, FlexProps as Qr, SelectSlot as Qt, ToggleButtonGroupOwnerState as R, ButtonVariant as Ri, NavGroupThemeConfig as Rn, DrawerThemeConfig as Rr, SwitchThemeConfig as Rt, withTheme as S, AccordionSlot as Sa, CircularProgressThemeConfig as Si, PaginationItemSlot as Sn, FormControlSlot as Sr, TableBodySlot as St, CSSObject as T, ChipThemeConfig as Ti, PaginationSlot as Tn, FormSlot as Tr, TableSlot as Tt, ToggleButtonThemeConfig as U, BadgeSlot as Ui, ModalSlot as Un, MenuSlot as Ur, SkeletonSlot as Ut, ToggleButtonOwnerState as V, BreadcrumbsThemeConfig as Vi, NativeSelectThemeConfig as Vn, ContextMenuThemeConfig as Vr, SnackbarThemeConfig as Vt, TextInputOwnerState as W, BadgeThemeConfig as Wi, ModalThemeConfig as Wn, MenuThemeConfig as Wr, SkeletonThemeConfig as Wt, TabsVariant as X, AvatarThemeConfig as Xi, MenuItemThemeConfig as Xn, FlexThemeConfig as Xr, SidebarThemeConfig as Xt, TabsThemeConfig as Y, AvatarSlot as Yi, MenuItemSlot as Yn, FlexSlot as Yr, SidebarSlot as Yt, TableSortLabelOwnerState as Z, AutocompleteOwnerState as Zi, MenuDividerOwnerState as Zn, Flex as Zr, SelectOwnerState as Zt, useStyleValue as _, AccordionDetailsThemeConfig as _a, CollapseOwnerState as _i, PressableThemeConfig as _n, FormLabelThemeConfig as _r, TableContainerThemeConfig as _t, LiveValue as a, AlertTitleThemeConfig as aa, ViewBorderColorToken as ai, RatingThemeConfig as an, LinearProgressThemeConfig as ar, TablePaginationActionsThemeConfig as at, variable as b, AccordionActionsThemeConfig as ba, CircularProgressOwnerState as bi, PopoverThemeConfig as bn, FormHelperTextThemeConfig as br, TableCellThemeConfig as bt, asIs as c, AlertThemeConfig as ca, ViewColorToken as ci, RangeInputThemeConfig as cn, ImageThemeConfig as cr, TablePaginationThemeConfig as ct, defineTheme as d, AccordionSummaryThemeConfig as da, PaperSlot as di, RadioThemeConfig as dn, IconThemeConfig as dr, TableHeadThemeConfig as dt, AppBarOwnerState as ea, ViewOwnerState as ei, ScrollAreaOwnerState as en, LinkOwnerState as er, TableRowOwnerState as et, fallback as f, AccordionGroupOwnerState as fa, PaperThemeConfig as fi, QuoteOwnerState as fn, GridOwnerState as fr, TableFooterOwnerState as ft, useStyle as g, AccordionDetailsSlot as ga, StyleOverride as gi, PressableSlot as gn, FormLabelSlot as gr, TableContainerSlot as gt, setNonceSource as h, AccordionDetailsOwnerState as ha, StrictStyled as hi, PressableOwnerState as hn, FormLabelOwnerState as hr, TableContainerOwnerState as ht, Global as i, AlertTitleSlot as ia, ViewBackgroundToken as ii, RatingSlot as in, LinearProgressSlot as ir, TablePaginationActionsSlot as it, TypographyThemeConfig as j, CardThemeConfig as ji, NavTreeSlot as jn, FabMenuSlot as jr, TabPanelSlot as jt, TypographyOwnerState as k, CardOwnerState as ki, NumberInputThemeConfig as kn, FocusTrapThemeConfig as kr, TabScrollButtonThemeConfig as kt, configureEngine as l, AccordionSummaryOwnerState as la, ViewProps as li, RadioOwnerState as ln, IconOwnerState as lr, TableHeadOwnerState as lt, negate as m, AccordionGroupThemeConfig as ma, SlotProps as mi, QuoteThemeConfig as mn, GridThemeConfig as mr, TableFooterThemeConfig as mt, useMediaQuery as n, AppBarThemeConfig as na, ViewThemeConfig as ni, ScrollAreaThemeConfig as nn, LinkThemeConfig as nr, TableRowThemeConfig as nt, StyleSheet as o, AlertOwnerState as oa, ViewBorderRadiusToken as oi, RangeInputOwnerState as on, ImageOwnerState as or, TablePaginationOwnerState as ot, keyframes as p, AccordionGroupSlot as pa, SlotOverride as pi, QuoteSlot as pn, GridSlot as pr, TableFooterSlot as pt, TabsOwnerState as q, BackdropThemeConfig as qi, MenuListThemeConfig as qn, PaperProps as qr, SidebarItemThemeConfig as qt, useDefaultProps as r, AlertTitleOwnerState as ra, View as ri, RatingOwnerState as rn, LinearProgressOwnerState as rr, TablePaginationActionsOwnerState as rt, alpha as s, AlertSlot as sa, ViewBorderWidthToken as si, RangeInputSlot as sn, ImageSlot as sr, TablePaginationSlot as st, styled as t, AppBarSlot as ta, ViewSlot as ti, ScrollAreaSlot as tn, LinkSlot as tr, TableRowSlot as tt, css as u, AccordionSummarySlot as ua, PaperOwnerState as ui, RadioSlot as un, IconSlot as ur, TableHeadSlot as ut, useTheme as v, AccordionActionsOwnerState as va, CollapseSlot as vi, PopoverOwnerState as vn, FormHelperTextOwnerState as vr, TableCellOwnerState as vt, AppTheme as w, Exact as wa, ChipSlot as wi, PaginationOwnerState as wn, FormOwnerState as wr, TableOwnerState as wt, withStyle as x, AccordionOwnerState as xa, CircularProgressSlot as xi, PaginationItemOwnerState as xn, FormControlOwnerState as xr, TableBodyOwnerState as xt, val as y, AccordionActionsSlot as ya, CollapseThemeConfig as yi, PopoverSlot as yn, FormHelperTextSlot as yr, TableCellSlot as yt, ToggleButtonGroupSlot as z, BreadcrumbsOwnerState as zi, NativeSelectOwnerState as zn, ContextMenuOwnerState as zr, SnackbarOwnerState as zt };
1299
+ export { TextInputSize as $, ButtonVariant as $i, ModalCloseReason as $n, ContextMenuOwnerState as $r, SkeletonOwnerState as $t, TextColorToken as A, AccordionSummarySlot as Aa, CircularProgressOwnerState as Ai, PopoverSlot as An, FormLabelSlot as Ar, TableCellSlot as At, TooltipOwnerState as B, AccordionActionsThemeConfig as Ba, CardSlot as Bi, NumberInputThemeConfig as Bn, FormThemeConfig as Br, TabScrollButtonThemeConfig as Bt, ThemeProvider$1 as C, AlertTitleOwnerState as Ca, ViewThemeConfig as Ci, QuoteOwnerState as Cn, IconOwnerState as Cr, TableFooterOwnerState as Ct, Theme as D, AlertSlot as Da, CollapseOwnerState as Di, PressableSlot as Dn, GridSlot as Dr, TableContainerSlot as Dt, ComponentConfig as E, AlertOwnerState as Ea, PaperThemeConfig as Ei, PressableOwnerState as En, GridOwnerState as Er, TableContainerOwnerState as Et, TypographyThemeConfig as F, AccordionDetailsOwnerState as Fa, ChipThemeConfig as Fi, PaginationOwnerState as Fn, FormControlOwnerState as Fr, TableOwnerState as Ft, ToggleButtonGroupThemeConfig as G, ButtonColor as Gi, NavLinkSlot as Gn, FabMenuSlot as Gr, TabSlot as Gt, TooltipThemeConfig as H, AccordionSlot as Ha, ButtonGroupOwnerState as Hi, NavTreeSlot as Hn, FocusTrapSlot as Hr, TabPanelSlot as Ht, TypographyVariant as I, AccordionDetailsSlot as Ia, CheckboxOwnerState as Ii, PaginationSlot as In, FormControlSlot as Ir, TableSlot as It, ToggleButtonThemeConfig as J, ButtonProps as Ji, NavGroupSlot as Jn, FabSlot as Jr, SwitchSlot as Jt, ToggleButtonOwnerState as K, ButtonLoadingPosition as Ki, NavLinkThemeConfig as Kn, FabMenuThemeConfig as Kr, TabThemeConfig as Kt, TransferListOwnerState as L, AccordionDetailsThemeConfig as La, CheckboxSlot as Li, PaginationThemeConfig as Ln, FormControlThemeConfig as Lr, TableThemeConfig as Lt, TypographyOwnerState as M, AccordionGroupOwnerState as Ma, CircularProgressThemeConfig as Mi, PaginationItemOwnerState as Mn, FormHelperTextOwnerState as Mr, TableBodyOwnerState as Mt, TypographyProps as N, AccordionGroupSlot as Na, ChipOwnerState as Ni, PaginationItemSlot as Nn, FormHelperTextSlot as Nr, TableBodySlot as Nt, ThemeComponents as O, AlertThemeConfig as Oa, CollapseSlot as Oi, PressableThemeConfig as On, GridThemeConfig as Or, TableContainerThemeConfig as Ot, TypographySlot as P, AccordionGroupThemeConfig as Pa, ChipSlot as Pi, PaginationItemThemeConfig as Pn, FormHelperTextThemeConfig as Pr, TableBodyThemeConfig as Pt, TextInputProps as Q, ButtonThemeConfig as Qi, NativeSelectThemeConfig as Qn, DrawerThemeConfig as Qr, SnackbarThemeConfig as Qt, TransferListSlot as R, AccordionActionsOwnerState as Ra, CheckboxThemeConfig as Ri, NumberInputOwnerState as Rn, FormOwnerState as Rr, TabScrollButtonOwnerState as Rt, withTheme as S, AppBarThemeConfig as Sa, ViewSlot as Si, RadioThemeConfig as Sn, ImageThemeConfig as Sr, TableHeadThemeConfig as St, CSSObject as T, AlertTitleThemeConfig as Ta, PaperSlot as Ti, QuoteThemeConfig as Tn, IconThemeConfig as Tr, TableFooterThemeConfig as Tt, ToggleButtonGroupOwnerState as U, AccordionThemeConfig as Ua, ButtonGroupSlot as Ui, NavTreeThemeConfig as Un, FocusTrapThemeConfig as Ur, TabPanelThemeConfig as Ut, TooltipSlot as V, AccordionOwnerState as Va, CardThemeConfig as Vi, NavTreeOwnerState as Vn, FocusTrapOwnerState as Vr, TabPanelOwnerState as Vt, ToggleButtonGroupSlot as W, Exact as Wa, ButtonGroupThemeConfig as Wi, NavLinkOwnerState as Wn, FabMenuOwnerState as Wr, TabOwnerState as Wt, TextInputColor as X, ButtonSize as Xi, NativeSelectOwnerState as Xn, DrawerOwnerState as Xr, SnackbarOwnerState as Xt, TextInputClasses as Y, ButtonShape as Yi, NavGroupThemeConfig as Yn, FabThemeConfig as Yr, SwitchThemeConfig as Yt, TextInputOwnerState as Z, ButtonSlot as Zi, NativeSelectSlot as Zn, DrawerSlot as Zr, SnackbarSlot as Zt, useStyleValue as _, AutocompleteOwnerState as _a, ViewBorderRadiusToken as _i, RangeInputOwnerState as _n, LinearProgressOwnerState as _r, TablePaginationOwnerState as _t, LiveValue as a, BreadcrumbsOwnerState as aa, Paper as ai, SidebarOwnerState as an, MenuListOwnerState as ar, TabsSlot as at, variable as b, AppBarOwnerState as ba, ViewOwnerState as bi, RadioOwnerState as bn, ImageOwnerState as br, TableHeadOwnerState as bt, asIs as c, BadgeOwnerState as ca, Flex as ci, SelectOwnerState as cn, MenuItemOwnerState as cr, TableSortLabelOwnerState as ct, defineTheme as d, BackdropOwnerState as da, FlexSlot as di, ScrollAreaOwnerState as dn, MenuDividerOwnerState as dr, TableRowOwnerState as dt, GapToken$1 as ea, ContextMenuSlot as ei, SkeletonSlot as en, ModalOwnerState as er, TextInputSlot as et, fallback as f, BackdropSlot as fa, FlexThemeConfig as fi, ScrollAreaSlot as fn, MenuDividerSlot as fr, TableRowSlot as ft, useStyle as g, AvatarThemeConfig as ga, ViewBorderColorToken as gi, RatingThemeConfig as gn, LinkThemeConfig as gr, TablePaginationActionsThemeConfig as gt, setNonceSource as h, AvatarSlot as ha, ViewBackgroundToken as hi, RatingSlot as hn, LinkSlot as hr, TablePaginationActionsSlot as ht, Global as i, StyleOverride as ia, MenuThemeConfig as ii, SidebarItemThemeConfig as in, ModalThemeConfig as ir, TabsOwnerState as it, TypographyAlign as j, AccordionSummaryThemeConfig as ja, CircularProgressSlot as ji, PopoverThemeConfig as jn, FormLabelThemeConfig as jr, TableCellThemeConfig as jt, BackgroundToken as k, AccordionSummaryOwnerState as ka, CollapseThemeConfig as ki, PopoverOwnerState as kn, FormLabelOwnerState as kr, TableCellOwnerState as kt, configureEngine as l, BadgeSlot as la, FlexOwnerState as li, SelectSlot as ln, MenuItemSlot as lr, TableSortLabelSlot as lt, negate as m, AvatarOwnerState as ma, View as mi, RatingOwnerState as mn, LinkOwnerState as mr, TablePaginationActionsOwnerState as mt, useMediaQuery as n, SlotProps as na, MenuOwnerState as ni, SidebarItemOwnerState as nn, ModalScroll as nr, TextInputThemeConfig as nt, StyleSheet as o, BreadcrumbsSlot as oa, PaperElevation as oi, SidebarSlot as on, MenuListSlot as or, TabsThemeConfig as ot, keyframes as p, BackdropThemeConfig as pa, GapToken as pi, ScrollAreaThemeConfig as pn, MenuDividerThemeConfig as pr, TableRowThemeConfig as pt, ToggleButtonSlot as q, ButtonOwnerState as qi, NavGroupOwnerState as qn, FabOwnerState as qr, SwitchOwnerState as qt, useDefaultProps as r, StrictStyled as ra, MenuSlot as ri, SidebarItemSlot as rn, ModalSlot as rr, TextInputVariant as rt, alpha as s, BreadcrumbsThemeConfig as sa, PaperProps as si, SidebarThemeConfig as sn, MenuListThemeConfig as sr, TabsVariant as st, styled as t, SlotOverride as ta, ContextMenuThemeConfig as ti, SkeletonThemeConfig as tn, ModalProps as tr, TextInputTextColor as tt, css as u, BadgeThemeConfig as ua, FlexProps as ui, SelectThemeConfig as un, MenuItemThemeConfig as ur, TableSortLabelThemeConfig as ut, useTheme as v, AutocompleteSlot as va, ViewBorderWidthToken as vi, RangeInputSlot as vn, LinearProgressSlot as vr, TablePaginationSlot as vt, AppTheme as w, AlertTitleSlot as wa, PaperOwnerState as wi, QuoteSlot as wn, IconSlot as wr, TableFooterSlot as wt, withStyle as x, AppBarSlot as xa, ViewProps as xi, RadioSlot as xn, ImageSlot as xr, TableHeadSlot as xt, val as y, AutocompleteThemeConfig as ya, ViewColorToken as yi, RangeInputThemeConfig as yn, LinearProgressThemeConfig as yr, TablePaginationThemeConfig as yt, TransferListThemeConfig as z, AccordionActionsSlot as za, CardOwnerState as zi, NumberInputSlot as zn, FormSlot as zr, TabScrollButtonSlot as zt };
@@ -1,4 +1,4 @@
1
- import { D as Theme, Yn as MenuItemSlot, gi as StyleOverride, mi as SlotProps } from "./index-DZFF1vMV.cjs";
1
+ import { D as Theme, ia as StyleOverride, lr as MenuItemSlot, na as SlotProps } from "./index-DPQxIeZF.cjs";
2
2
  import { ElementType, KeyboardEvent, MouseEvent, ReactNode, SyntheticEvent } from "react";
3
3
  type MenuItemValue = string | number;
4
4
  interface MenuListContextValue {
@@ -1,4 +1,4 @@
1
- import { Sa as SlotProps, Xt as PressableSlot, wa as StyleOverride } from "./Accordion.types-D06ViRMj.mjs";
1
+ import { Ha as SlotProps, Wa as StyleOverride, sn as PressableSlot } from "./Accordion.types-DxvwAfZc.mjs";
2
2
  import { ButtonHTMLAttributes, ElementType } from "react";
3
3
  import { PaletteColor } from "@gild-ui/core/theme";
4
4
  import { BorderProps, LayoutProps, SpaceProps, TypographyProps } from "@soroush.tech/styled-system";
@@ -1,5 +1,5 @@
1
- import { n as ButtonColor, o as ButtonSize } from "./index-CWOcMPWz.mjs";
2
- import { Ni as ButtonGroupSlot, Ri as ButtonVariant, Sa as SlotProps, s as Theme, wa as StyleOverride } from "./Accordion.types-D06ViRMj.mjs";
1
+ import "./index-CLQt_mOa.mjs";
2
+ import { Ha as SlotProps, Wa as StyleOverride, Yi as ButtonColor, ea as ButtonSize, qi as ButtonGroupSlot, ra as ButtonVariant, s as Theme } from "./Accordion.types-DxvwAfZc.mjs";
3
3
  import { ElementType, HTMLAttributes } from "react";
4
4
  import { SpaceProps } from "@soroush.tech/styled-system";
5
5
  type ButtonGroupOrientation = 'horizontal' | 'vertical';
@@ -1,5 +1,5 @@
1
- import { Sa as SlotProps, Wn as IconSlot, wa as StyleOverride } from "./Accordion.types-D06ViRMj.mjs";
2
- import { n as TextColorToken } from "./index-Tg9lQlVl.mjs";
1
+ import { Ha as SlotProps, Wa as StyleOverride, ir as IconSlot, u as TextColorToken } from "./Accordion.types-DxvwAfZc.mjs";
2
+ import "./index-CsYK-ukA.mjs";
3
3
  import { SVGProps } from "react";
4
4
  import { ThemeIconSizes } from "@gild-ui/core/theme";
5
5
  import { LayoutProps, SpaceProps } from "@soroush.tech/styled-system";
@@ -1,6 +1,11 @@
1
- import { Cn as ModalSlot, Sa as SlotProps, s as Theme, wa as StyleOverride } from "./Accordion.types-D06ViRMj.mjs";
2
- import { KeyboardEvent, MouseEvent, ReactNode, Ref, RefCallback, SyntheticEvent } from "react";
3
- type ModalCloseReason = 'escapeKey' | 'backdropClick';
1
+ import { Fn as ModalProps, Nn as ModalCloseReason } from "./Accordion.types-DxvwAfZc.mjs";
2
+ import { KeyboardEvent, MouseEvent, Ref, RefCallback, SyntheticEvent } from "react";
3
+ /**
4
+ * @description Accessible overlay primitive: portals its content, dims the page,
5
+ * traps focus, locks scroll, and closes on Escape or backdrop click. The base for
6
+ * higher-level overlays such as Drawer.
7
+ */
8
+ declare function Modal({ isOpen, children, onClose, hasBackdrop, shouldKeepMounted, shouldUsePortal, portalContainer, shouldLockScroll, disableAriaHidden, shouldAutoFocus, shouldTrapFocus, shouldEnforceFocus, shouldRestoreFocus, scroll, layer, style, className, slotProps }: Readonly<ModalProps>): import("react").JSX.Element | null;
4
9
  type EventHandlers = Record<string, ((event: SyntheticEvent) => void) | undefined>;
5
10
  interface UseModalParameters {
6
11
  /** Whether the modal is shown. */
@@ -24,50 +29,6 @@ interface UseModalReturnValue {
24
29
  isTopModal: () => boolean;
25
30
  }
26
31
  declare function useModal(parameters: UseModalParameters): UseModalReturnValue;
27
- type ModalScroll = 'paper' | 'body';
28
- interface ModalProps {
29
- /** If true, the modal is shown. */
30
- isOpen: boolean;
31
- /** A single content element. */
32
- children: ReactNode;
33
- /** Fired on Escape (top modal only) or backdrop click. */
34
- onClose?: (event: Event | React.SyntheticEvent, reason: ModalCloseReason) => void;
35
- /** Render the dimmed backdrop. Default: true. */
36
- hasBackdrop?: boolean;
37
- /** Keep the children mounted while closed. Default: false. */
38
- shouldKeepMounted?: boolean;
39
- /** Portal the modal into `portalContainer`. Default: true. */
40
- shouldUsePortal?: boolean;
41
- /** Portal target, or a function returning one. Defaults to the document body. */
42
- portalContainer?: HTMLElement | (() => HTMLElement | null) | null;
43
- /** Lock body scroll while open. Default: true. */
44
- shouldLockScroll?: boolean;
45
- /** Skip `aria-hidden` on background content - for non-modal popovers whose trigger stays focused. Default: false. */
46
- disableAriaHidden?: boolean;
47
- /** Move focus into the modal on open. Default: true. */
48
- shouldAutoFocus?: boolean;
49
- /** Trap Tab focus within the modal. Default: true. */
50
- shouldTrapFocus?: boolean;
51
- /** Pull focus back into the modal whenever it escapes. Default: true. */
52
- shouldEnforceFocus?: boolean;
53
- /** Restore focus to the trigger on close. Default: true. */
54
- shouldRestoreFocus?: boolean;
55
- /** How long content scrolls: within the content (`'paper'`) or the whole root (`'body'`). Default: 'paper'. */
56
- scroll?: ModalScroll;
57
- /** Stacking layer from `theme.zOrder`. Default: 'modal'. */
58
- layer?: keyof Theme['zOrder'];
59
- /** Overrides the CSS of the root: an entry of `StyleSheet.create`, or a list of them. It wins over `slotProps.root.style`. */
60
- style?: StyleOverride;
61
- className?: string;
62
- /** Overrides for the slots a theme can style: `style`, `className`, `data-*` and `aria-*`. */
63
- slotProps?: SlotProps<ModalSlot>;
64
- }
65
- /**
66
- * @description Accessible overlay primitive: portals its content, dims the page,
67
- * traps focus, locks scroll, and closes on Escape or backdrop click. The base for
68
- * higher-level overlays such as Drawer.
69
- */
70
- declare function Modal({ isOpen, children, onClose, hasBackdrop, shouldKeepMounted, shouldUsePortal, portalContainer, shouldLockScroll, disableAriaHidden, shouldAutoFocus, shouldTrapFocus, shouldEnforceFocus, shouldRestoreFocus, scroll, layer, style, className, slotProps }: Readonly<ModalProps>): import("react").JSX.Element | null;
71
32
  /** A modal tracked by the manager: its portal mount node and its root element. */
72
33
  interface ManagedModal {
73
34
  mount: Element;
@@ -93,4 +54,4 @@ declare class ModalManager {
93
54
  remove(modal: ManagedModal, ariaHiddenState?: boolean): number;
94
55
  isTopModal(modal: ManagedModal): boolean;
95
56
  }
96
- 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 };
57
+ export { hideFromAria as a, useModal as c, exposeToAria as i, Modal as l, ManagedModalProps as n, UseModalParameters as o, ModalManager as r, UseModalReturnValue as s, ManagedModal as t };
@@ -0,0 +1 @@
1
+ import "./Accordion.types-DxvwAfZc.mjs";
package/dist/index.cjs CHANGED
@@ -5,7 +5,7 @@ require("./useTheme.cjs");
5
5
  const require_useDefaultProps = require("./useDefaultProps-DratGGIL.cjs");
6
6
  require("./useDefaultProps.cjs");
7
7
  require("./useMediaQuery.cjs");
8
- const require_styled = require("./styled-DnzWP4pc.cjs");
8
+ const require_styled = require("./styled-Dr3_OY1-.cjs");
9
9
  require("./styled.cjs");
10
10
  require("./css.cjs");
11
11
  require("./keyframes.cjs");
package/dist/index.d.cts CHANGED
@@ -1,3 +1,3 @@
1
- import { C as ThemeProvider, E as ComponentConfig, O as ThemeComponents, S as withTheme, T as CSSObject, _ as useStyleValue, a as LiveValue, g as useStyle, gi as StyleOverride, i as Global, m as negate, mi as SlotProps, n as useMediaQuery, o as StyleSheet, p as keyframes, pi as SlotOverride, r as useDefaultProps, s as alpha, t as styled, u as css, v as useTheme, x as withStyle } from "./index-DZFF1vMV.cjs";
1
+ import { C as ThemeProvider, E as ComponentConfig, O as ThemeComponents, S as withTheme, T as CSSObject, _ as useStyleValue, a as LiveValue, g as useStyle, i as Global, ia as StyleOverride, m as negate, n as useMediaQuery, na as SlotProps, o as StyleSheet, p as keyframes, r as useDefaultProps, s as alpha, t as styled, ta as SlotOverride, u as css, v as useTheme, x as withStyle } from "./index-DPQxIeZF.cjs";
2
2
  import { n as LayoutProviderProps, t as LayoutProvider } from "./LayoutProvider-DFwC1-h0.cjs";
3
3
  export { type CSSObject, type ComponentConfig, Global, LayoutProvider, type LayoutProviderProps, type LiveValue, type SlotOverride, type SlotProps, type StyleOverride, StyleSheet, type ThemeComponents, ThemeProvider, alpha, css, keyframes, negate, styled, useDefaultProps, useMediaQuery, useStyle, useStyleValue, useTheme, withStyle, withTheme };
package/dist/index.d.mts CHANGED
@@ -1,3 +1,3 @@
1
- import { $r as css, Gr as useMediaQuery, Jr as LiveValue, Kr as useDefaultProps, Sa as SlotProps, Wr as styled, Xr as alpha, Yr as StyleSheet, a as CSSObject, ai as useStyle, c as ThemeComponents, di as withTheme, fi as ThemeProvider, ni as keyframes, o as ComponentConfig, oi as useStyleValue, qr as Global, ri as negate, si as useTheme, ui as withStyle, wa as StyleOverride, xa as SlotOverride } from "./Accordion.types-D06ViRMj.mjs";
1
+ import { $r as StyleSheet, Ha as SlotProps, Jr as styled, Qr as LiveValue, Va as SlotOverride, Wa as StyleOverride, Xr as useDefaultProps, Yr as useMediaQuery, Zr as Global, a as CSSObject, c as ThemeComponents, di as useTheme, ei as alpha, gi as ThemeProvider, hi as withTheme, li as useStyle, mi as withStyle, o as ComponentConfig, oi as keyframes, ri as css, si as negate, ui as useStyleValue } from "./Accordion.types-DxvwAfZc.mjs";
2
2
  import { n as LayoutProviderProps, t as LayoutProvider } from "./LayoutProvider-DFwC1-h0.mjs";
3
3
  export { type CSSObject, type ComponentConfig, Global, LayoutProvider, type LayoutProviderProps, type LiveValue, type SlotOverride, type SlotProps, type StyleOverride, StyleSheet, type ThemeComponents, ThemeProvider, alpha, css, keyframes, negate, styled, useDefaultProps, useMediaQuery, useStyle, useStyleValue, useTheme, withStyle, withTheme };
package/dist/index.mjs CHANGED
@@ -5,7 +5,7 @@ import "./useTheme.mjs";
5
5
  import { t as useDefaultProps } from "./useDefaultProps-BTQGhvfY.mjs";
6
6
  import "./useDefaultProps.mjs";
7
7
  import { t as useMediaQuery } from "./useMediaQuery-acJak9M3.mjs";
8
- import { t as styled } from "./styled-nr_qC_Yx.mjs";
8
+ import { t as styled } from "./styled-tLHNvicL.mjs";
9
9
  import "./styled.mjs";
10
10
  import "./css.mjs";
11
11
  import "./keyframes.mjs";
@@ -1,2 +1,2 @@
1
- import { p as keyframes } from "./index-DZFF1vMV.cjs";
1
+ import { p as keyframes } from "./index-DPQxIeZF.cjs";
2
2
  export { keyframes };
@@ -1,2 +1,2 @@
1
- import { ni as keyframes } from "./Accordion.types-D06ViRMj.mjs";
1
+ import { oi as keyframes } from "./Accordion.types-DxvwAfZc.mjs";
2
2
  export { keyframes };
@@ -1,10 +1,24 @@
1
1
  let _umber_style_styled = require("@umber-style/styled");
2
+ let _soroush_tech_styled_system_core = require("@soroush.tech/styled-system/core");
2
3
  // src/style/styled.ts
3
4
  const resolveStyle = (style, props) => typeof style === "function" ? style({
4
5
  theme: props.theme,
5
6
  ownerState: props
6
7
  }) : style;
7
8
  const matchesProps = (props, matcher) => Object.entries(matcher).every(([key, value]) => props[key] === value);
9
+ const orderedBlocks = /* @__PURE__ */ new WeakMap();
10
+ /** The interpolation that closes the system props of a root; exported for its test. */
11
+ const mediaOrder = ({ theme }) => {
12
+ const breakpoints = theme?.breakpoints;
13
+ if (!breakpoints) return {};
14
+ let blocks = orderedBlocks.get(breakpoints);
15
+ if (!blocks) {
16
+ const widths = Object.fromEntries(Object.entries(breakpoints).map(([name, value]) => [name, String(value)]));
17
+ blocks = Object.fromEntries((0, _soroush_tech_styled_system_core.responsiveQueries)(widths).order.map((query) => [query, {}]));
18
+ orderedBlocks.set(breakpoints, blocks);
19
+ }
20
+ return blocks;
21
+ };
8
22
  const createThemedStyled = (tag, options = {}) => {
9
23
  const { name, slot = "root", systemProps = [], overridesResolver, ...engineOptions } = options;
10
24
  const create = (0, _umber_style_styled.styled)(tag, engineOptions);
@@ -19,7 +33,7 @@ const createThemedStyled = (tag, options = {}) => {
19
33
  }
20
34
  return applied;
21
35
  };
22
- return (...styles) => create(...styles, themeStyles, ...systemProps);
36
+ return (...styles) => create(...styles, themeStyles, ...systemProps, ...systemProps.length > 0 ? [mediaOrder] : []);
23
37
  };
24
38
  /**
25
39
  * The design system's `styled` - the engine's styled plus theme-level component
@@ -1,10 +1,24 @@
1
1
  import { styled as styled$1 } from "@umber-style/styled";
2
+ import { responsiveQueries } from "@soroush.tech/styled-system/core";
2
3
  // src/style/styled.ts
3
4
  const resolveStyle = (style, props) => typeof style === "function" ? style({
4
5
  theme: props.theme,
5
6
  ownerState: props
6
7
  }) : style;
7
8
  const matchesProps = (props, matcher) => Object.entries(matcher).every(([key, value]) => props[key] === value);
9
+ const orderedBlocks = /* @__PURE__ */ new WeakMap();
10
+ /** The interpolation that closes the system props of a root; exported for its test. */
11
+ const mediaOrder = ({ theme }) => {
12
+ const breakpoints = theme?.breakpoints;
13
+ if (!breakpoints) return {};
14
+ let blocks = orderedBlocks.get(breakpoints);
15
+ if (!blocks) {
16
+ const widths = Object.fromEntries(Object.entries(breakpoints).map(([name, value]) => [name, String(value)]));
17
+ blocks = Object.fromEntries(responsiveQueries(widths).order.map((query) => [query, {}]));
18
+ orderedBlocks.set(breakpoints, blocks);
19
+ }
20
+ return blocks;
21
+ };
8
22
  const createThemedStyled = (tag, options = {}) => {
9
23
  const { name, slot = "root", systemProps = [], overridesResolver, ...engineOptions } = options;
10
24
  const create = styled$1(tag, engineOptions);
@@ -19,7 +33,7 @@ const createThemedStyled = (tag, options = {}) => {
19
33
  }
20
34
  return applied;
21
35
  };
22
- return (...styles) => create(...styles, themeStyles, ...systemProps);
36
+ return (...styles) => create(...styles, themeStyles, ...systemProps, ...systemProps.length > 0 ? [mediaOrder] : []);
23
37
  };
24
38
  /**
25
39
  * The design system's `styled` - the engine's styled plus theme-level component
package/dist/styled.cjs CHANGED
@@ -1,3 +1,3 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_styled = require("./styled-DnzWP4pc.cjs");
2
+ const require_styled = require("./styled-Dr3_OY1-.cjs");
3
3
  exports.styled = require_styled.styled;
package/dist/styled.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { t as styled } from "./index-DZFF1vMV.cjs";
1
+ import { t as styled } from "./index-DPQxIeZF.cjs";
2
2
  export { styled };