@soroush.tech/design-system 2.0.0-rc.2 → 2.0.0-rc.3

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 (267) hide show
  1. package/README.md +14 -10
  2. package/dist/AppBar.d.cts +1 -1
  3. package/dist/AppBar.d.mts +1 -1
  4. package/dist/Avatar.d.cts +1 -1
  5. package/dist/Avatar.d.mts +1 -1
  6. package/dist/Backdrop.d.cts +1 -1
  7. package/dist/Backdrop.d.mts +1 -1
  8. package/dist/Breadcrumbs.cjs +1 -1
  9. package/dist/Breadcrumbs.d.cts +3 -3
  10. package/dist/Breadcrumbs.d.mts +3 -3
  11. package/dist/Breadcrumbs.mjs +1 -1
  12. package/dist/Button.d.cts +1 -1
  13. package/dist/Button.d.mts +1 -1
  14. package/dist/ButtonGroup.d.cts +1 -1
  15. package/dist/ButtonGroup.d.mts +1 -1
  16. package/dist/Card.cjs +1 -1
  17. package/dist/Card.d.cts +4 -4
  18. package/dist/Card.d.mts +4 -4
  19. package/dist/Card.mjs +1 -1
  20. package/dist/Checkbox.d.cts +1 -1
  21. package/dist/Checkbox.d.mts +1 -1
  22. package/dist/CircularProgress.d.cts +2 -2
  23. package/dist/CircularProgress.d.mts +2 -2
  24. package/dist/Drawer.d.cts +3 -3
  25. package/dist/Drawer.d.mts +3 -3
  26. package/dist/Flex.d.cts +1 -1
  27. package/dist/Flex.d.mts +1 -1
  28. package/dist/Form.d.cts +1 -1
  29. package/dist/Form.d.mts +1 -1
  30. package/dist/FormControl.cjs +9 -1
  31. package/dist/FormControl.d.cts +9 -1
  32. package/dist/FormControl.d.mts +9 -1
  33. package/dist/FormControl.mjs +9 -1
  34. package/dist/FormHelperText.d.cts +1 -1
  35. package/dist/FormHelperText.d.mts +1 -1
  36. package/dist/FormLabel.cjs +9 -1
  37. package/dist/FormLabel.d.cts +2 -2
  38. package/dist/FormLabel.d.mts +2 -2
  39. package/dist/FormLabel.mjs +10 -2
  40. package/dist/Grid.d.cts +1 -1
  41. package/dist/Grid.d.mts +1 -1
  42. package/dist/{Icon-DlheCTJb.mjs → Icon-BihOAP4u.mjs} +40 -0
  43. package/dist/{Icon-Cvuhp9ek.cjs → Icon-D-EWsBVg.cjs} +40 -0
  44. package/dist/Icon.cjs +1 -1
  45. package/dist/Icon.d.cts +1 -1
  46. package/dist/Icon.d.mts +1 -1
  47. package/dist/Icon.mjs +1 -1
  48. package/dist/Image.d.cts +1 -1
  49. package/dist/Image.d.mts +1 -1
  50. package/dist/InputRange.cjs +675 -0
  51. package/dist/InputRange.d.cts +79 -0
  52. package/dist/InputRange.d.mts +79 -0
  53. package/dist/InputRange.mjs +673 -0
  54. package/dist/LinearProgress.d.cts +2 -2
  55. package/dist/LinearProgress.d.mts +2 -2
  56. package/dist/Link.d.cts +1 -1
  57. package/dist/Link.d.mts +1 -1
  58. package/dist/Menu/ContextMenu.cjs +1 -1
  59. package/dist/Menu/ContextMenu.d.cts +5 -5
  60. package/dist/Menu/ContextMenu.d.mts +5 -5
  61. package/dist/Menu/ContextMenu.mjs +1 -1
  62. package/dist/Menu/Menu.cjs +1 -1
  63. package/dist/Menu/Menu.d.cts +1 -1
  64. package/dist/Menu/Menu.d.mts +1 -1
  65. package/dist/Menu/Menu.mjs +1 -1
  66. package/dist/Menu/MenuItems.cjs +1 -1
  67. package/dist/Menu/MenuItems.d.cts +1 -1
  68. package/dist/Menu/MenuItems.d.mts +1 -1
  69. package/dist/Menu/MenuItems.mjs +1 -1
  70. package/dist/Menu/MenuList.d.cts +2 -2
  71. package/dist/Menu/MenuList.d.mts +2 -2
  72. package/dist/{Menu-BkKPTOfh.cjs → Menu-Cgg-sX4W.cjs} +3 -2
  73. package/dist/{Menu-tECbAEFj.mjs → Menu-CrzHc_cn.mjs} +2 -1
  74. package/dist/Menu.cjs +1 -1
  75. package/dist/Menu.d.cts +3 -3
  76. package/dist/Menu.d.mts +3 -3
  77. package/dist/Menu.mjs +1 -1
  78. package/dist/{MenuItem-CfdN4axw.cjs → MenuItem-BTP7Ijwi.cjs} +6 -17
  79. package/dist/{MenuItem-BR7ingQx.mjs → MenuItem-DUn4IZKK.mjs} +3 -8
  80. package/dist/MenuItem.cjs +1 -1
  81. package/dist/MenuItem.d.cts +1 -1
  82. package/dist/MenuItem.d.mts +1 -1
  83. package/dist/MenuItem.mjs +1 -1
  84. package/dist/{MenuListContext-Dml16k0X.d.mts → MenuListContext-DKUOhNyw.d.cts} +2 -2
  85. package/dist/{MenuListContext-vujGcRk9.d.cts → MenuListContext-x-7lH4CH.d.mts} +2 -2
  86. package/dist/Modal.d.cts +1 -1
  87. package/dist/Modal.d.mts +1 -1
  88. package/dist/NativeSelect.cjs +8 -7
  89. package/dist/NativeSelect.d.cts +3 -3
  90. package/dist/NativeSelect.d.mts +3 -3
  91. package/dist/NativeSelect.mjs +8 -7
  92. package/dist/NumberField.cjs +476 -0
  93. package/dist/NumberField.d.cts +74 -0
  94. package/dist/NumberField.d.mts +74 -0
  95. package/dist/NumberField.mjs +474 -0
  96. package/dist/Pagination/PaginationItem.cjs +1 -1
  97. package/dist/Pagination/PaginationItem.d.cts +1 -1
  98. package/dist/Pagination/PaginationItem.d.mts +1 -1
  99. package/dist/Pagination/PaginationItem.mjs +1 -1
  100. package/dist/Pagination.d.cts +2 -2
  101. package/dist/Pagination.d.mts +2 -2
  102. package/dist/Paper.d.cts +2 -2
  103. package/dist/Paper.d.mts +2 -2
  104. package/dist/Popover.d.cts +3 -3
  105. package/dist/Popover.d.mts +3 -3
  106. package/dist/Pressable.d.cts +1 -1
  107. package/dist/Pressable.d.mts +1 -1
  108. package/dist/Quote.d.cts +2 -2
  109. package/dist/Quote.d.mts +2 -2
  110. package/dist/Radio.d.cts +1 -1
  111. package/dist/Radio.d.mts +1 -1
  112. package/dist/Rating.cjs +373 -0
  113. package/dist/Rating.d.cts +57 -0
  114. package/dist/Rating.d.mts +57 -0
  115. package/dist/Rating.mjs +371 -0
  116. package/dist/Select.cjs +3 -2
  117. package/dist/Select.d.cts +3 -3
  118. package/dist/Select.d.mts +3 -3
  119. package/dist/Select.mjs +5 -4
  120. package/dist/Sidebar/Sidebar.d.cts +1 -1
  121. package/dist/Sidebar/Sidebar.d.mts +1 -1
  122. package/dist/Sidebar/SidebarItem.cjs +1 -1
  123. package/dist/Sidebar/SidebarItem.d.cts +3 -3
  124. package/dist/Sidebar/SidebarItem.d.mts +3 -3
  125. package/dist/Sidebar/SidebarItem.mjs +3 -3
  126. package/dist/Skeleton.d.cts +1 -1
  127. package/dist/Skeleton.d.mts +1 -1
  128. package/dist/Switch.cjs +22 -15
  129. package/dist/Switch.d.cts +2 -2
  130. package/dist/Switch.d.mts +2 -2
  131. package/dist/Switch.mjs +24 -17
  132. package/dist/Table/Table.d.cts +2 -2
  133. package/dist/Table/Table.d.mts +2 -2
  134. package/dist/Table/TableBody.d.cts +1 -1
  135. package/dist/Table/TableBody.d.mts +1 -1
  136. package/dist/Table/TableCell.d.cts +1 -1
  137. package/dist/Table/TableCell.d.mts +1 -1
  138. package/dist/Table/TableContainer.d.cts +1 -1
  139. package/dist/Table/TableContainer.d.mts +1 -1
  140. package/dist/Table/TableControl.d.cts +1 -1
  141. package/dist/Table/TableControl.d.mts +1 -1
  142. package/dist/Table/TableControl.mjs +2 -2
  143. package/dist/Table/TableFooter.d.cts +1 -1
  144. package/dist/Table/TableFooter.d.mts +1 -1
  145. package/dist/Table/TableHead.d.cts +1 -1
  146. package/dist/Table/TableHead.d.mts +1 -1
  147. package/dist/Table/TablePagination.d.cts +2 -2
  148. package/dist/Table/TablePagination.d.mts +2 -2
  149. package/dist/Table/TablePaginationActions.d.cts +1 -1
  150. package/dist/Table/TablePaginationActions.d.mts +1 -1
  151. package/dist/Table/TableRow.d.cts +1 -1
  152. package/dist/Table/TableRow.d.mts +1 -1
  153. package/dist/Table/TableSortLabel.cjs +1 -1
  154. package/dist/Table/TableSortLabel.d.cts +1 -1
  155. package/dist/Table/TableSortLabel.d.mts +1 -1
  156. package/dist/Table/TableSortLabel.mjs +1 -1
  157. package/dist/Table/hooks.d.cts +1 -1
  158. package/dist/Table/hooks.d.mts +1 -1
  159. package/dist/Table.d.cts +5 -5
  160. package/dist/Table.d.mts +5 -5
  161. package/dist/{TableContext-6PgGpUzM.d.mts → TableContext-DhuRf6Wy.d.mts} +1 -1
  162. package/dist/{TableContext-CBGk-Lh8.d.cts → TableContext-Duj1nVG7.d.cts} +1 -1
  163. package/dist/Tabs/Tab.cjs +1 -1
  164. package/dist/Tabs/Tab.d.cts +2 -2
  165. package/dist/Tabs/Tab.d.mts +2 -2
  166. package/dist/Tabs/Tab.mjs +1 -1
  167. package/dist/Tabs/TabContext.d.cts +1 -1
  168. package/dist/Tabs/TabContext.d.mts +1 -1
  169. package/dist/Tabs/TabList.cjs +1 -1
  170. package/dist/Tabs/TabList.d.cts +1 -1
  171. package/dist/Tabs/TabList.d.mts +1 -1
  172. package/dist/Tabs/TabList.mjs +1 -1
  173. package/dist/Tabs/TabPanel.d.cts +2 -2
  174. package/dist/Tabs/TabPanel.d.mts +2 -2
  175. package/dist/Tabs/TabScrollButton.cjs +1 -1
  176. package/dist/Tabs/TabScrollButton.d.cts +1 -1
  177. package/dist/Tabs/TabScrollButton.d.mts +1 -1
  178. package/dist/Tabs/TabScrollButton.mjs +1 -1
  179. package/dist/Tabs/Tabs.cjs +1 -1
  180. package/dist/Tabs/Tabs.d.cts +2 -2
  181. package/dist/Tabs/Tabs.d.mts +2 -2
  182. package/dist/Tabs/Tabs.mjs +1 -1
  183. package/dist/{Tabs-YfCUbkQV.mjs → Tabs-BTNOJx5v.mjs} +4 -3
  184. package/dist/{Tabs-D_wkX-Jb.cjs → Tabs-D4tWCq78.cjs} +7 -6
  185. package/dist/Tabs.cjs +1 -1
  186. package/dist/Tabs.d.cts +3 -3
  187. package/dist/Tabs.d.mts +3 -3
  188. package/dist/Tabs.mjs +1 -1
  189. package/dist/{TabsContext-C2agsLBN.d.cts → TabsContext-B_XHbjcS.d.cts} +1 -1
  190. package/dist/{TabsContext-DqyxdmGW.d.mts → TabsContext-Dn2kqUwr.d.mts} +1 -1
  191. package/dist/TextInput.cjs +3 -3
  192. package/dist/TextInput.d.cts +2 -2
  193. package/dist/TextInput.d.mts +2 -2
  194. package/dist/TextInput.mjs +3 -3
  195. package/dist/ToggleButton/ToggleButton.d.cts +1 -1
  196. package/dist/ToggleButton/ToggleButton.d.mts +1 -1
  197. package/dist/ToggleButton/ToggleButtonGroup.d.cts +1 -1
  198. package/dist/ToggleButton/ToggleButtonGroup.d.mts +1 -1
  199. package/dist/TransferList.cjs +356 -0
  200. package/dist/TransferList.d.cts +67 -0
  201. package/dist/TransferList.d.mts +67 -0
  202. package/dist/TransferList.mjs +354 -0
  203. package/dist/Typography.d.cts +2 -2
  204. package/dist/Typography.d.mts +2 -2
  205. package/dist/View.d.cts +1 -1
  206. package/dist/View.d.mts +1 -1
  207. package/dist/catalog.cjs +476 -18
  208. package/dist/catalog.d.cts +1 -1
  209. package/dist/catalog.d.mts +1 -1
  210. package/dist/catalog.mjs +476 -18
  211. package/dist/engine.d.cts +1 -1
  212. package/dist/engine.d.mts +1 -1
  213. package/dist/{index-DCmH5f9I.d.cts → index-B1RFybA_.d.mts} +2 -2
  214. package/dist/{index-Cj5Rhh_9.d.mts → index-B4TeaB7b.d.cts} +2 -2
  215. package/dist/{index-DIC7HKpP.d.mts → index-BGbTuHP9.d.mts} +1 -1
  216. package/dist/{index-BiVvxOvj.d.cts → index-BHKgEOZJ.d.cts} +2 -2
  217. package/dist/{index-BbgFYfX_.d.mts → index-BQWjh4rK.d.mts} +2 -2
  218. package/dist/{index-DJCpnTH3.d.mts → index-BelFIizY.d.cts} +3 -3
  219. package/dist/{index-C3KrFPCj.d.mts → index-BkzZxHVj.d.mts} +2 -2
  220. package/dist/{index-B8DNxyEw.d.mts → index-BrgwkY6z.d.mts} +2 -2
  221. package/dist/{index-DqjXDutI.d.mts → index-Bx0-6yeX.d.mts} +1 -1
  222. package/dist/index-BxVTIMnB.d.cts +1 -0
  223. package/dist/{index-Bhdn4KTy.d.cts → index-ByYxVl9O.d.mts} +3 -3
  224. package/dist/{index-gnh-Oe0n.d.cts → index-CE5JG1us.d.mts} +1 -1
  225. package/dist/{index-XxydXX8l.d.cts → index-CG_1uPrD.d.mts} +2 -2
  226. package/dist/{index-CVNJEUwJ.d.mts → index-CJhK7JND.d.mts} +49 -1
  227. package/dist/{index-BjfPEP_5.d.cts → index-CQfJZADG.d.cts} +2 -2
  228. package/dist/{index-DrVYWt-X.d.mts → index-CUz2h5xY.d.mts} +1 -1
  229. package/dist/{index-CrIxI8Na.d.mts → index-CbFaWtjK.d.mts} +2 -2
  230. package/dist/{index-BFruxTHv.d.cts → index-ChXeKJCk.d.cts} +1 -1
  231. package/dist/{index-DQcnJ5H4.d.cts → index-CknoXDLQ.d.cts} +2 -2
  232. package/dist/{index-IdMqR82e.d.cts → index-ClZyaZrR.d.mts} +2 -2
  233. package/dist/{index-Bxd9NOWb.d.mts → index-DAwcmIjN.d.cts} +2 -2
  234. package/dist/{index-CWnbCxgw.d.cts → index-DGnXJwLj.d.mts} +4 -4
  235. package/dist/{index-DmJ7yWWi.d.cts → index-DJ0f69wh.d.cts} +49 -1
  236. package/dist/{index-DckSub2J.d.mts → index-DWjz5ZzG.d.cts} +4 -4
  237. package/dist/{index-DXhMkjQ6.d.cts → index-DYF8sRE-.d.cts} +2 -2
  238. package/dist/index-DaIIo5QU.d.mts +1 -0
  239. package/dist/{index-BVPrG1L0.d.mts → index-DchHf5cF.d.cts} +1 -1
  240. package/dist/{index-BlLH6rlE.d.cts → index-DtYjdBvO.d.cts} +2 -2
  241. package/dist/{index-BqpS_Huq.d.mts → index-Dv_fk1_F.d.cts} +19 -3
  242. package/dist/{index-BSA6SKao.d.mts → index-K5exjvnX.d.cts} +2 -2
  243. package/dist/{index-BjPX49XA.d.mts → index-KnXhlKMr.d.cts} +1 -1
  244. package/dist/{index-B3LIhqHR.d.cts → index-WHFhjfgy.d.cts} +4 -4
  245. package/dist/{index-BCnKYNlZ.d.cts → index-YKrfFC_I.d.cts} +1 -1
  246. package/dist/{index-CoEqjFYn.d.mts → index-bpnLB_4K.d.mts} +4 -4
  247. package/dist/{index-DDJuUfL5.d.cts → index-h4dYtVrp.d.mts} +1 -1
  248. package/dist/{index-qlfNErNd.d.cts → index-ha1WjSZ5.d.mts} +19 -3
  249. package/dist/{index-DuVNRXP4.d.cts → index-nqUA_6J_.d.cts} +1 -1
  250. package/dist/{index-DeDxYlSQ.d.mts → index-pTNq3iQn.d.mts} +2 -2
  251. package/dist/index.d.cts +1 -1
  252. package/dist/index.d.mts +1 -1
  253. package/dist/isRtl-BJDtm86G.mjs +7 -0
  254. package/dist/isRtl-DTkYHRPo.cjs +12 -0
  255. package/dist/precision-B1lhxnnO.mjs +25 -0
  256. package/dist/precision-B58cTPB2.cjs +48 -0
  257. package/dist/style.d.cts +2 -2
  258. package/dist/style.d.mts +2 -2
  259. package/dist/theme.d.cts +3 -3
  260. package/dist/theme.d.mts +3 -3
  261. package/dist/useControlled-C666KpQ0.cjs +18 -0
  262. package/dist/useControlled-CBRLsO-H.mjs +13 -0
  263. package/dist/{useTablePagination-C5VKtqDp.d.cts → useTablePagination-C-u3ru4N.d.cts} +1 -1
  264. package/dist/{useTablePagination-C6LSlt3w.d.mts → useTablePagination-D-39ZmQh.d.mts} +1 -1
  265. package/package.json +42 -2
  266. package/dist/index-DBteSahY.d.cts +0 -1
  267. package/dist/index-_G1osn09.d.mts +0 -1
package/README.md CHANGED
@@ -121,16 +121,20 @@ SSR critical-CSS extraction (e.g. with `@emotion/server`) is a separate, opt-in
121
121
 
122
122
  ### Inputs & forms
123
123
 
124
- | Component | Purpose |
125
- | ---------------------------------------------------- | ----------------------------------------------------------------------- |
126
- | `Button`, `ButtonGroup`, `ToggleButton` | Actions and toggles |
127
- | `TextInput` | Text field |
128
- | `Checkbox`, `Radio`, `Switch` | Selection controls |
129
- | `NativeSelect` | Low-level platform `<select>` - not recommended; use `Select native` |
130
- | `Select` | The select to use - custom listbox, or `native` for the platform picker |
131
- | `MenuItem` | Option row for `Select`'s listbox, and a menu row in a `MenuList` |
132
- | `Form`, `FormControl`, `FormLabel`, `FormHelperText` | Form composition and labeling |
133
- | `Pagination` | Page navigation control |
124
+ | Component | Purpose |
125
+ | ---------------------------------------------------- | ----------------------------------------------------------------------------------------- |
126
+ | `Button`, `ButtonGroup`, `ToggleButton` | Actions and toggles |
127
+ | `TextInput` | Text field |
128
+ | `Checkbox`, `Radio`, `Switch` | Selection controls |
129
+ | `InputRange` | A slider - one value on a range, or two or more thumbs for a range of values |
130
+ | `TransferList` | Two lists and the buttons that move the checked items from one to the other |
131
+ | `NumberField` | A field for a number - read in its locale, clamped to a range, stepped by keys or buttons |
132
+ | `Rating` | A row of icons the user sets as a rating, or a read-only display of one |
133
+ | `NativeSelect` | Low-level platform `<select>` - not recommended; use `Select native` |
134
+ | `Select` | The select to use - custom listbox, or `native` for the platform picker |
135
+ | `MenuItem` | Option row for `Select`'s listbox, and a menu row in a `MenuList` |
136
+ | `Form`, `FormControl`, `FormLabel`, `FormHelperText` | Form composition and labeling |
137
+ | `Pagination` | Page navigation control |
134
138
 
135
139
  ### Navigation & menus
136
140
 
package/dist/AppBar.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { V as Theme, Wt as FlexProps } from "./index-DmJ7yWWi.cjs";
1
+ import { Jt as FlexProps, W as Theme } from "./index-DJ0f69wh.cjs";
2
2
  //#region src/AppBar/AppBar.d.ts
3
3
  /** Valid values for the color prop - derived from theme.background keys. */
4
4
  type AppBarColor = keyof Theme['background'];
package/dist/AppBar.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { V as Theme, Wt as FlexProps } from "./index-CVNJEUwJ.mjs";
1
+ import { Jt as FlexProps, W as Theme } from "./index-CJhK7JND.mjs";
2
2
  //#region src/AppBar/AppBar.d.ts
3
3
  /** Valid values for the color prop - derived from theme.background keys. */
4
4
  type AppBarColor = keyof Theme['background'];
package/dist/Avatar.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { V as Theme, Wt as FlexProps } from "./index-DmJ7yWWi.cjs";
1
+ import { Jt as FlexProps, W as Theme } from "./index-DJ0f69wh.cjs";
2
2
  //#region src/Avatar/Avatar.d.ts
3
3
  type AvatarVariant = 'circular' | 'rounded' | 'square';
4
4
  type AvatarSize = keyof Theme['avatar'];
package/dist/Avatar.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { V as Theme, Wt as FlexProps } from "./index-CVNJEUwJ.mjs";
1
+ import { Jt as FlexProps, W as Theme } from "./index-CJhK7JND.mjs";
2
2
  //#region src/Avatar/Avatar.d.ts
3
3
  type AvatarVariant = 'circular' | 'rounded' | 'square';
4
4
  type AvatarSize = keyof Theme['avatar'];
@@ -1,4 +1,4 @@
1
- import { Qt as ViewProps } from "./index-DmJ7yWWi.cjs";
1
+ import { nn as ViewProps } from "./index-DJ0f69wh.cjs";
2
2
  //#region src/Backdrop/Backdrop.d.ts
3
3
  type BackdropProps = ViewProps;
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { Qt as ViewProps } from "./index-CVNJEUwJ.mjs";
1
+ import { nn as ViewProps } from "./index-CJhK7JND.mjs";
2
2
  //#region src/Backdrop/Backdrop.d.ts
3
3
  type BackdropProps = ViewProps;
4
4
  /**
@@ -3,7 +3,7 @@ const require_src = require("./src-DU81aGy9.cjs");
3
3
  const require_themeDefault = require("./themeDefault-Cebi08Cv.cjs");
4
4
  const require_theme = require("./theme-BxXuXRgQ.cjs");
5
5
  const require_Typography = require("./Typography.cjs");
6
- const require_Icon = require("./Icon-Cvuhp9ek.cjs");
6
+ const require_Icon = require("./Icon-D-EWsBVg.cjs");
7
7
  let react = require("react");
8
8
  let react_jsx_runtime = require("react/jsx-runtime");
9
9
  //#region src/Breadcrumbs/Breadcrumbs.tsx
@@ -1,6 +1,6 @@
1
- import { dt as TypographyVariant } from "./index-DmJ7yWWi.cjs";
2
- import { a as TypographyProps } from "./index-IdMqR82e.cjs";
3
- import { n as IconProps } from "./index-qlfNErNd.cjs";
1
+ import { ht as TypographyVariant } from "./index-DJ0f69wh.cjs";
2
+ import { a as TypographyProps } from "./index-K5exjvnX.cjs";
3
+ import { n as IconProps } from "./index-Dv_fk1_F.cjs";
4
4
  import { ElementType, ReactNode } from "react";
5
5
  //#region src/Breadcrumbs/Breadcrumbs.d.ts
6
6
  interface BreadcrumbsProps extends Omit<TypographyProps, 'children' | 'variant'> {
@@ -1,6 +1,6 @@
1
- import { dt as TypographyVariant } from "./index-CVNJEUwJ.mjs";
2
- import { a as TypographyProps } from "./index-BSA6SKao.mjs";
3
- import { n as IconProps } from "./index-BqpS_Huq.mjs";
1
+ import { ht as TypographyVariant } from "./index-CJhK7JND.mjs";
2
+ import { a as TypographyProps } from "./index-ClZyaZrR.mjs";
3
+ import { n as IconProps } from "./index-ha1WjSZ5.mjs";
4
4
  import { ElementType, ReactNode } from "react";
5
5
  //#region src/Breadcrumbs/Breadcrumbs.d.ts
6
6
  interface BreadcrumbsProps extends Omit<TypographyProps, 'children' | 'variant'> {
@@ -2,7 +2,7 @@ import { a as src_exports, o as styled } from "./src-DLGYOJMh.mjs";
2
2
  import { t as themeDefault } from "./themeDefault-Z3KmyIbm.mjs";
3
3
  import { n as useDefaultProps } from "./theme-Z9_QludW.mjs";
4
4
  import { Typography } from "./Typography.mjs";
5
- import { t as Icon } from "./Icon-DlheCTJb.mjs";
5
+ import { t as Icon } from "./Icon-BihOAP4u.mjs";
6
6
  import { Children, isValidElement, useLayoutEffect, useRef, useState } from "react";
7
7
  import { jsx } from "react/jsx-runtime";
8
8
  //#region src/Breadcrumbs/Breadcrumbs.tsx
package/dist/Button.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as ButtonShape, c as GapToken, i as ButtonProps, n as ButtonColor, o as ButtonSize, r as ButtonLoadingPosition, s as ButtonVariant, t as Button } from "./index-XxydXX8l.cjs";
1
+ import { a as ButtonShape, c as GapToken, i as ButtonProps, n as ButtonColor, o as ButtonSize, r as ButtonLoadingPosition, s as ButtonVariant, t as Button } from "./index-DAwcmIjN.cjs";
2
2
  export { Button, ButtonColor, ButtonLoadingPosition, ButtonProps, ButtonShape, ButtonSize, ButtonVariant, GapToken };
package/dist/Button.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as ButtonShape, c as GapToken, i as ButtonProps, n as ButtonColor, o as ButtonSize, r as ButtonLoadingPosition, s as ButtonVariant, t as Button } from "./index-Bxd9NOWb.mjs";
1
+ import { a as ButtonShape, c as GapToken, i as ButtonProps, n as ButtonColor, o as ButtonSize, r as ButtonLoadingPosition, s as ButtonVariant, t as Button } from "./index-CG_1uPrD.mjs";
2
2
  export { Button, ButtonColor, ButtonLoadingPosition, ButtonProps, ButtonShape, ButtonSize, ButtonVariant, GapToken };
@@ -1,2 +1,2 @@
1
- import { a as ButtonGroupProps, i as ButtonGroupOrientation, n as ButtonGroupContextValue, o as ButtonGroupRadius, r as ButtonGroup, t as ButtonGroupContext } from "./index-BjfPEP_5.cjs";
1
+ import { a as ButtonGroupProps, i as ButtonGroupOrientation, n as ButtonGroupContextValue, o as ButtonGroupRadius, r as ButtonGroup, t as ButtonGroupContext } from "./index-CQfJZADG.cjs";
2
2
  export { ButtonGroup, ButtonGroupContext, ButtonGroupContextValue, ButtonGroupOrientation, ButtonGroupProps, ButtonGroupRadius };
@@ -1,2 +1,2 @@
1
- import { a as ButtonGroupProps, i as ButtonGroupOrientation, n as ButtonGroupContextValue, o as ButtonGroupRadius, r as ButtonGroup, t as ButtonGroupContext } from "./index-B8DNxyEw.mjs";
1
+ import { a as ButtonGroupProps, i as ButtonGroupOrientation, n as ButtonGroupContextValue, o as ButtonGroupRadius, r as ButtonGroup, t as ButtonGroupContext } from "./index-BrgwkY6z.mjs";
2
2
  export { ButtonGroup, ButtonGroupContext, ButtonGroupContextValue, ButtonGroupOrientation, ButtonGroupProps, ButtonGroupRadius };
package/dist/Card.cjs CHANGED
@@ -3,7 +3,7 @@ const require_src = require("./src-DU81aGy9.cjs");
3
3
  const require_themeDefault = require("./themeDefault-Cebi08Cv.cjs");
4
4
  const require_theme = require("./theme-BxXuXRgQ.cjs");
5
5
  const require_Typography = require("./Typography.cjs");
6
- const require_Icon = require("./Icon-Cvuhp9ek.cjs");
6
+ const require_Icon = require("./Icon-D-EWsBVg.cjs");
7
7
  const require_Paper = require("./Paper.cjs");
8
8
  require("react");
9
9
  let react_jsx_runtime = require("react/jsx-runtime");
package/dist/Card.d.cts CHANGED
@@ -1,7 +1,7 @@
1
- import { Ht as PaperProps } from "./index-DmJ7yWWi.cjs";
2
- import { a as TypographyProps } from "./index-IdMqR82e.cjs";
3
- import { n as IconProps, r as IconName } from "./index-qlfNErNd.cjs";
4
- import "./index-DBteSahY.cjs";
1
+ import { Kt as PaperProps } from "./index-DJ0f69wh.cjs";
2
+ import { a as TypographyProps } from "./index-K5exjvnX.cjs";
3
+ import { n as IconProps, r as IconName } from "./index-Dv_fk1_F.cjs";
4
+ import "./index-BxVTIMnB.cjs";
5
5
  import { ReactNode } from "react";
6
6
  //#region src/Card/Card.d.ts
7
7
  type CardVariant = 'paper' | 'bracketBox' | 'interactive';
package/dist/Card.d.mts CHANGED
@@ -1,7 +1,7 @@
1
- import { Ht as PaperProps } from "./index-CVNJEUwJ.mjs";
2
- import { a as TypographyProps } from "./index-BSA6SKao.mjs";
3
- import { n as IconProps, r as IconName } from "./index-BqpS_Huq.mjs";
4
- import "./index-_G1osn09.mjs";
1
+ import { Kt as PaperProps } from "./index-CJhK7JND.mjs";
2
+ import { a as TypographyProps } from "./index-ClZyaZrR.mjs";
3
+ import { n as IconProps, r as IconName } from "./index-ha1WjSZ5.mjs";
4
+ import "./index-DaIIo5QU.mjs";
5
5
  import { ReactNode } from "react";
6
6
  //#region src/Card/Card.d.ts
7
7
  type CardVariant = 'paper' | 'bracketBox' | 'interactive';
package/dist/Card.mjs CHANGED
@@ -2,7 +2,7 @@ import { o as styled } from "./src-DLGYOJMh.mjs";
2
2
  import { t as themeDefault } from "./themeDefault-Z3KmyIbm.mjs";
3
3
  import { n as useDefaultProps, r as useTheme } from "./theme-Z9_QludW.mjs";
4
4
  import { Typography } from "./Typography.mjs";
5
- import { t as Icon } from "./Icon-DlheCTJb.mjs";
5
+ import { t as Icon } from "./Icon-BihOAP4u.mjs";
6
6
  import { Paper } from "./Paper.mjs";
7
7
  import "react";
8
8
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { M as PaletteColor, V as Theme } from "./index-DmJ7yWWi.cjs";
1
+ import { P as PaletteColor, W as Theme } from "./index-DJ0f69wh.cjs";
2
2
  import { ChangeEvent, ReactNode } from "react";
3
3
  import { SpaceProps } from "@soroush.tech/styled-system";
4
4
  //#region src/Checkbox/Checkbox.d.ts
@@ -1,4 +1,4 @@
1
- import { M as PaletteColor, V as Theme } from "./index-CVNJEUwJ.mjs";
1
+ import { P as PaletteColor, W as Theme } from "./index-CJhK7JND.mjs";
2
2
  import { SpaceProps } from "@soroush.tech/styled-system";
3
3
  import { ChangeEvent, ReactNode } from "react";
4
4
  //#region src/Checkbox/Checkbox.d.ts
@@ -1,5 +1,5 @@
1
- import { V as Theme } from "./index-DmJ7yWWi.cjs";
2
- import { n as ButtonColor } from "./index-XxydXX8l.cjs";
1
+ import { W as Theme } from "./index-DJ0f69wh.cjs";
2
+ import { n as ButtonColor } from "./index-DAwcmIjN.cjs";
3
3
  import { HTMLAttributes } from "react";
4
4
  import { LayoutProps, PaddingProps, SpaceProps } from "@soroush.tech/styled-system";
5
5
  //#region src/CircularProgress/CircularProgress.d.ts
@@ -1,5 +1,5 @@
1
- import { V as Theme } from "./index-CVNJEUwJ.mjs";
2
- import { n as ButtonColor } from "./index-Bxd9NOWb.mjs";
1
+ import { W as Theme } from "./index-CJhK7JND.mjs";
2
+ import { n as ButtonColor } from "./index-CG_1uPrD.mjs";
3
3
  import { LayoutProps, PaddingProps, SpaceProps } from "@soroush.tech/styled-system";
4
4
  import { HTMLAttributes } from "react";
5
5
  //#region src/CircularProgress/CircularProgress.d.ts
package/dist/Drawer.d.cts CHANGED
@@ -1,6 +1,6 @@
1
- import { Vt as PaperElevation } from "./index-DmJ7yWWi.cjs";
2
- import { i as ButtonProps } from "./index-XxydXX8l.cjs";
3
- import "./index-DBteSahY.cjs";
1
+ import { Gt as PaperElevation } from "./index-DJ0f69wh.cjs";
2
+ import { i as ButtonProps } from "./index-DAwcmIjN.cjs";
3
+ import "./index-BxVTIMnB.cjs";
4
4
  import { ReactNode } from "react";
5
5
  //#region src/Drawer/Drawer.d.ts
6
6
  type DrawerAnchor = 'left' | 'right' | 'top' | 'bottom';
package/dist/Drawer.d.mts CHANGED
@@ -1,6 +1,6 @@
1
- import { Vt as PaperElevation } from "./index-CVNJEUwJ.mjs";
2
- import { i as ButtonProps } from "./index-Bxd9NOWb.mjs";
3
- import "./index-_G1osn09.mjs";
1
+ import { Gt as PaperElevation } from "./index-CJhK7JND.mjs";
2
+ import { i as ButtonProps } from "./index-CG_1uPrD.mjs";
3
+ import "./index-DaIIo5QU.mjs";
4
4
  import { ReactNode } from "react";
5
5
  //#region src/Drawer/Drawer.d.ts
6
6
  type DrawerAnchor = 'left' | 'right' | 'top' | 'bottom';
package/dist/Flex.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { Gt as GapToken, Ut as Flex, Wt as FlexProps } from "./index-DmJ7yWWi.cjs";
1
+ import { Jt as FlexProps, Yt as GapToken, qt as Flex } from "./index-DJ0f69wh.cjs";
2
2
  export { Flex, FlexProps, GapToken };
package/dist/Flex.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { Gt as GapToken, Ut as Flex, Wt as FlexProps } from "./index-CVNJEUwJ.mjs";
1
+ import { Jt as FlexProps, Yt as GapToken, qt as Flex } from "./index-CJhK7JND.mjs";
2
2
  export { Flex, FlexProps, GapToken };
package/dist/Form.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { V as Theme } from "./index-DmJ7yWWi.cjs";
1
+ import { W as Theme } from "./index-DJ0f69wh.cjs";
2
2
  import { ReactNode, SyntheticEvent } from "react";
3
3
  //#region src/Form/Form.d.ts
4
4
  interface FormProps {
package/dist/Form.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { V as Theme } from "./index-CVNJEUwJ.mjs";
1
+ import { W as Theme } from "./index-CJhK7JND.mjs";
2
2
  import { ReactNode, SyntheticEvent } from "react";
3
3
  //#region src/Form/Form.d.ts
4
4
  interface FormProps {
@@ -21,10 +21,15 @@ function FormControl({ children, id, error, disabled, required, size, fullWidth,
21
21
  const generatedId = (0, react.useId)();
22
22
  const resolvedId = id ?? generatedId;
23
23
  const helperId = `${resolvedId}-helper`;
24
+ const labelId = `${resolvedId}-label`;
24
25
  const [hasHelperText, setHasHelperText] = (0, react.useState)(false);
26
+ const [registeredLabelId, setRegisteredLabelId] = (0, react.useState)(null);
25
27
  const value = (0, react.useMemo)(() => ({
26
28
  id: resolvedId,
27
29
  helperId,
30
+ labelId,
31
+ registeredLabelId,
32
+ setLabelId: setRegisteredLabelId,
28
33
  error,
29
34
  disabled,
30
35
  required,
@@ -37,6 +42,8 @@ function FormControl({ children, id, error, disabled, required, size, fullWidth,
37
42
  }), [
38
43
  resolvedId,
39
44
  helperId,
45
+ labelId,
46
+ registeredLabelId,
40
47
  error,
41
48
  disabled,
42
49
  required,
@@ -75,7 +82,8 @@ function useFormControl(overrides = {}) {
75
82
  fullWidth: overrides.fullWidth ?? control?.fullWidth ?? form.fullWidth ?? false,
76
83
  color: overrides.color ?? control?.color ?? form.color,
77
84
  textColor: overrides.textColor ?? control?.textColor ?? form.textColor,
78
- "aria-describedby": control?.hasHelperText ? control.helperId : void 0
85
+ "aria-describedby": control?.hasHelperText ? control.helperId : void 0,
86
+ labelId: control?.registeredLabelId ?? void 0
79
87
  };
80
88
  }
81
89
  //#endregion
@@ -1,4 +1,4 @@
1
- import { Qt as ViewProps, V as Theme } from "./index-DmJ7yWWi.cjs";
1
+ import { W as Theme, nn as ViewProps } from "./index-DJ0f69wh.cjs";
2
2
  import { ReactNode } from "react";
3
3
  //#region src/FormControl/FormControl.d.ts
4
4
  interface FormControlProps extends Omit<ViewProps, 'color'> {
@@ -35,6 +35,12 @@ interface FormControlContextValue {
35
35
  color?: keyof Theme['palette'];
36
36
  /** Text color for label/helper/input content - resolves against `theme.text`. */
37
37
  textColor?: keyof Theme['text'];
38
+ /** The id a FormLabel takes when it is not given one of its own. */
39
+ labelId: string;
40
+ /** The id of the FormLabel now rendered - a group control (a radio group, a rating) names itself by it - or `null` with none. */
41
+ registeredLabelId: string | null;
42
+ /** Stable setter FormLabel calls to register its rendered id, and to clear it when it goes. */
43
+ setLabelId: (id: string | null) => void;
38
44
  /** Whether a FormHelperText is currently rendered - drives `aria-describedby` on the control. */
39
45
  hasHelperText: boolean;
40
46
  /** Stable setter FormHelperText calls to register/unregister its presence. */
@@ -66,6 +72,8 @@ interface ResolvedFormControl {
66
72
  textColor?: keyof Theme['text'];
67
73
  /** Points at the helper text id only while one is rendered - avoids a dangling reference. */
68
74
  'aria-describedby'?: string;
75
+ /** The FormLabel's id while one is rendered - for a group control, which a `for` can't label. */
76
+ labelId?: string;
69
77
  }
70
78
  /**
71
79
  * Merges a control's explicit props with FormControl and Form context.
@@ -1,4 +1,4 @@
1
- import { Qt as ViewProps, V as Theme } from "./index-CVNJEUwJ.mjs";
1
+ import { W as Theme, nn as ViewProps } from "./index-CJhK7JND.mjs";
2
2
  import { ReactNode } from "react";
3
3
  //#region src/FormControl/FormControl.d.ts
4
4
  interface FormControlProps extends Omit<ViewProps, 'color'> {
@@ -35,6 +35,12 @@ interface FormControlContextValue {
35
35
  color?: keyof Theme['palette'];
36
36
  /** Text color for label/helper/input content - resolves against `theme.text`. */
37
37
  textColor?: keyof Theme['text'];
38
+ /** The id a FormLabel takes when it is not given one of its own. */
39
+ labelId: string;
40
+ /** The id of the FormLabel now rendered - a group control (a radio group, a rating) names itself by it - or `null` with none. */
41
+ registeredLabelId: string | null;
42
+ /** Stable setter FormLabel calls to register its rendered id, and to clear it when it goes. */
43
+ setLabelId: (id: string | null) => void;
38
44
  /** Whether a FormHelperText is currently rendered - drives `aria-describedby` on the control. */
39
45
  hasHelperText: boolean;
40
46
  /** Stable setter FormHelperText calls to register/unregister its presence. */
@@ -66,6 +72,8 @@ interface ResolvedFormControl {
66
72
  textColor?: keyof Theme['text'];
67
73
  /** Points at the helper text id only while one is rendered - avoids a dangling reference. */
68
74
  'aria-describedby'?: string;
75
+ /** The FormLabel's id while one is rendered - for a group control, which a `for` can't label. */
76
+ labelId?: string;
69
77
  }
70
78
  /**
71
79
  * Merges a control's explicit props with FormControl and Form context.
@@ -20,10 +20,15 @@ function FormControl({ children, id, error, disabled, required, size, fullWidth,
20
20
  const generatedId = useId();
21
21
  const resolvedId = id ?? generatedId;
22
22
  const helperId = `${resolvedId}-helper`;
23
+ const labelId = `${resolvedId}-label`;
23
24
  const [hasHelperText, setHasHelperText] = useState(false);
25
+ const [registeredLabelId, setRegisteredLabelId] = useState(null);
24
26
  const value = useMemo(() => ({
25
27
  id: resolvedId,
26
28
  helperId,
29
+ labelId,
30
+ registeredLabelId,
31
+ setLabelId: setRegisteredLabelId,
27
32
  error,
28
33
  disabled,
29
34
  required,
@@ -36,6 +41,8 @@ function FormControl({ children, id, error, disabled, required, size, fullWidth,
36
41
  }), [
37
42
  resolvedId,
38
43
  helperId,
44
+ labelId,
45
+ registeredLabelId,
39
46
  error,
40
47
  disabled,
41
48
  required,
@@ -74,7 +81,8 @@ function useFormControl(overrides = {}) {
74
81
  fullWidth: overrides.fullWidth ?? control?.fullWidth ?? form.fullWidth ?? false,
75
82
  color: overrides.color ?? control?.color ?? form.color,
76
83
  textColor: overrides.textColor ?? control?.textColor ?? form.textColor,
77
- "aria-describedby": control?.hasHelperText ? control.helperId : void 0
84
+ "aria-describedby": control?.hasHelperText ? control.helperId : void 0,
85
+ labelId: control?.registeredLabelId ?? void 0
78
86
  };
79
87
  }
80
88
  //#endregion
@@ -1,4 +1,4 @@
1
- import { a as TypographyProps } from "./index-IdMqR82e.cjs";
1
+ import { a as TypographyProps } from "./index-K5exjvnX.cjs";
2
2
  import { ReactNode } from "react";
3
3
  //#region src/FormHelperText/FormHelperText.d.ts
4
4
  interface FormHelperTextProps extends TypographyProps {
@@ -1,4 +1,4 @@
1
- import { a as TypographyProps } from "./index-BSA6SKao.mjs";
1
+ import { a as TypographyProps } from "./index-ClZyaZrR.mjs";
2
2
  import { ReactNode } from "react";
3
3
  //#region src/FormHelperText/FormHelperText.d.ts
4
4
  interface FormHelperTextProps extends TypographyProps {
@@ -15,14 +15,22 @@ const FormLabelRoot = require_src.styled(require_Typography.Typography, {
15
15
  * `required` flag from FormControl context. All Typography props pass through,
16
16
  * so callers can restyle freely while keeping the wiring automatic.
17
17
  */
18
- function FormLabel({ children, required, htmlFor, color, ...rest }) {
18
+ function FormLabel({ children, required, htmlFor, id, color, ...rest }) {
19
19
  const control = (0, react.useContext)(require_FormControlContext.FormControlContext);
20
20
  const form = (0, react.useContext)(require_FormContext.FormContext);
21
21
  const isRequired = required ?? control?.required ?? false;
22
22
  const resolvedFor = htmlFor ?? control?.id;
23
+ const renderedId = id ?? control?.labelId;
24
+ const setLabelId = control?.setLabelId;
25
+ (0, react.useEffect)(() => {
26
+ if (!setLabelId || !renderedId) return void 0;
27
+ setLabelId(renderedId);
28
+ return () => setLabelId(null);
29
+ }, [setLabelId, renderedId]);
23
30
  const resolvedColor = color ?? control?.textColor ?? form.textColor;
24
31
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(FormLabelRoot, {
25
32
  as: "label",
33
+ id: renderedId,
26
34
  htmlFor: resolvedFor,
27
35
  variant: "body2",
28
36
  ...rest,
@@ -1,4 +1,4 @@
1
- import { a as TypographyProps } from "./index-IdMqR82e.cjs";
1
+ import { a as TypographyProps } from "./index-K5exjvnX.cjs";
2
2
  import { ReactNode } from "react";
3
3
  //#region src/FormLabel/FormLabel.d.ts
4
4
  interface FormLabelProps extends TypographyProps {
@@ -13,6 +13,6 @@ interface FormLabelProps extends TypographyProps {
13
13
  * `required` flag from FormControl context. All Typography props pass through,
14
14
  * so callers can restyle freely while keeping the wiring automatic.
15
15
  */
16
- declare function FormLabel({ children, required, htmlFor, color, ...rest }: Readonly<FormLabelProps>): import("react").JSX.Element;
16
+ declare function FormLabel({ children, required, htmlFor, id, color, ...rest }: Readonly<FormLabelProps>): import("react").JSX.Element;
17
17
  //#endregion
18
18
  export { FormLabel, FormLabelProps };
@@ -1,4 +1,4 @@
1
- import { a as TypographyProps } from "./index-BSA6SKao.mjs";
1
+ import { a as TypographyProps } from "./index-ClZyaZrR.mjs";
2
2
  import { ReactNode } from "react";
3
3
  //#region src/FormLabel/FormLabel.d.ts
4
4
  interface FormLabelProps extends TypographyProps {
@@ -13,6 +13,6 @@ interface FormLabelProps extends TypographyProps {
13
13
  * `required` flag from FormControl context. All Typography props pass through,
14
14
  * so callers can restyle freely while keeping the wiring automatic.
15
15
  */
16
- declare function FormLabel({ children, required, htmlFor, color, ...rest }: Readonly<FormLabelProps>): import("react").JSX.Element;
16
+ declare function FormLabel({ children, required, htmlFor, id, color, ...rest }: Readonly<FormLabelProps>): import("react").JSX.Element;
17
17
  //#endregion
18
18
  export { FormLabel, FormLabelProps };
@@ -2,7 +2,7 @@ import { o as styled } from "./src-DLGYOJMh.mjs";
2
2
  import { Typography } from "./Typography.mjs";
3
3
  import { t as FormControlContext } from "./FormControlContext-CC2kToms.mjs";
4
4
  import { t as FormContext } from "./FormContext-LrjAGe6U.mjs";
5
- import { useContext } from "react";
5
+ import { useContext, useEffect } from "react";
6
6
  import { jsxs } from "react/jsx-runtime";
7
7
  //#region src/FormLabel/FormLabel.tsx
8
8
  const FormLabelRoot = styled(Typography, {
@@ -14,14 +14,22 @@ const FormLabelRoot = styled(Typography, {
14
14
  * `required` flag from FormControl context. All Typography props pass through,
15
15
  * so callers can restyle freely while keeping the wiring automatic.
16
16
  */
17
- function FormLabel({ children, required, htmlFor, color, ...rest }) {
17
+ function FormLabel({ children, required, htmlFor, id, color, ...rest }) {
18
18
  const control = useContext(FormControlContext);
19
19
  const form = useContext(FormContext);
20
20
  const isRequired = required ?? control?.required ?? false;
21
21
  const resolvedFor = htmlFor ?? control?.id;
22
+ const renderedId = id ?? control?.labelId;
23
+ const setLabelId = control?.setLabelId;
24
+ useEffect(() => {
25
+ if (!setLabelId || !renderedId) return void 0;
26
+ setLabelId(renderedId);
27
+ return () => setLabelId(null);
28
+ }, [setLabelId, renderedId]);
22
29
  const resolvedColor = color ?? control?.textColor ?? form.textColor;
23
30
  return /* @__PURE__ */ jsxs(FormLabelRoot, {
24
31
  as: "label",
32
+ id: renderedId,
25
33
  htmlFor: resolvedFor,
26
34
  variant: "body2",
27
35
  ...rest,
package/dist/Grid.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { Qt as ViewProps, V as Theme } from "./index-DmJ7yWWi.cjs";
1
+ import { W as Theme, nn as ViewProps } from "./index-DJ0f69wh.cjs";
2
2
  import { FlexboxProps, GridProps as GridProps$1, LayoutGridProps } from "@soroush.tech/styled-system";
3
3
  //#region src/Grid/Grid.d.ts
4
4
  /** Valid values for the gap / columnGap / rowGap props - derived from theme.space keys. */
package/dist/Grid.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { Qt as ViewProps, V as Theme } from "./index-CVNJEUwJ.mjs";
1
+ import { W as Theme, nn as ViewProps } from "./index-CJhK7JND.mjs";
2
2
  import { FlexboxProps, GridProps as GridProps$1, LayoutGridProps } from "@soroush.tech/styled-system";
3
3
  //#region src/Grid/Grid.d.ts
4
4
  /** Valid values for the gap / columnGap / rowGap props - derived from theme.space keys. */
@@ -12,6 +12,15 @@ const SvgAccountTree = (props) => /* @__PURE__ */ jsx("svg", {
12
12
  children: /* @__PURE__ */ jsx("path", { d: "M604-120v-125H450v-410h-93v130H80v-315h277v125h247v-125h276v315H604v-130h-94v350h94v-130h276v315H604ZM140-780v195-195Zm524 405v195-195Zm0-405v195-195Zm0 195h156v-195H664v195Zm0 405h156v-195H664v195ZM140-585h157v-195H140v195Z" })
13
13
  });
14
14
  //#endregion
15
+ //#region src/Icon/icons/Add.tsx
16
+ const SvgAdd = (props) => /* @__PURE__ */ jsx("svg", {
17
+ viewBox: "0 0 24 24",
18
+ fill: "#9cff93",
19
+ xmlns: "http://www.w3.org/2000/svg",
20
+ ...props,
21
+ children: /* @__PURE__ */ jsx("path", { d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z" })
22
+ });
23
+ //#endregion
15
24
  //#region src/Icon/icons/AdsClick.tsx
16
25
  const SvgAdsClick = (props) => /* @__PURE__ */ jsx("svg", {
17
26
  viewBox: "0 0 24 24",
@@ -579,6 +588,15 @@ const SvgRefresh = (props) => /* @__PURE__ */ jsx("svg", {
579
588
  children: /* @__PURE__ */ jsx("path", { d: "M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z" })
580
589
  });
581
590
  //#endregion
591
+ //#region src/Icon/icons/Remove.tsx
592
+ const SvgRemove = (props) => /* @__PURE__ */ jsx("svg", {
593
+ viewBox: "0 0 24 24",
594
+ fill: "#9cff93",
595
+ xmlns: "http://www.w3.org/2000/svg",
596
+ ...props,
597
+ children: /* @__PURE__ */ jsx("path", { d: "M19 13H5v-2h14v2z" })
598
+ });
599
+ //#endregion
582
600
  //#region src/Icon/icons/Schema.tsx
583
601
  const SvgSchema = (props) => /* @__PURE__ */ jsx("svg", {
584
602
  viewBox: "0 -960 960 960",
@@ -642,6 +660,24 @@ const SvgStacks = (props) => /* @__PURE__ */ jsx("svg", {
642
660
  children: /* @__PURE__ */ jsx("path", { d: "M12 14L1 8l11-6l11 6zm0 4L1.575 12.325l2.1-1.15L12 15.725l8.325-4.55l2.1 1.15zm0 4L1.575 16.325l2.1-1.15L12 19.725l8.325-4.55l2.1 1.15z" })
643
661
  });
644
662
  //#endregion
663
+ //#region src/Icon/icons/Star.tsx
664
+ const SvgStar = (props) => /* @__PURE__ */ jsx("svg", {
665
+ viewBox: "0 0 24 24",
666
+ fill: "#9cff93",
667
+ xmlns: "http://www.w3.org/2000/svg",
668
+ ...props,
669
+ children: /* @__PURE__ */ jsx("path", { d: "M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z" })
670
+ });
671
+ //#endregion
672
+ //#region src/Icon/icons/StarBorder.tsx
673
+ const SvgStarBorder = (props) => /* @__PURE__ */ jsx("svg", {
674
+ viewBox: "0 0 24 24",
675
+ fill: "#9cff93",
676
+ xmlns: "http://www.w3.org/2000/svg",
677
+ ...props,
678
+ children: /* @__PURE__ */ jsx("path", { d: "M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z" })
679
+ });
680
+ //#endregion
645
681
  //#region src/Icon/icons/Table.tsx
646
682
  const SvgTable = (props) => /* @__PURE__ */ jsxs("svg", {
647
683
  xmlns: "http://www.w3.org/2000/svg",
@@ -734,6 +770,7 @@ const SvgZoomOut = (props) => /* @__PURE__ */ jsx("svg", {
734
770
  /** Registry of available icons, keyed by their asset file name. */
735
771
  const icons = {
736
772
  account_tree: SvgAccountTree,
773
+ add: SvgAdd,
737
774
  ads_click: SvgAdsClick,
738
775
  analytics: SvgAnalytics,
739
776
  architecture: SvgArchitecture,
@@ -777,6 +814,7 @@ const icons = {
777
814
  psychology: SvgPsychology,
778
815
  rebase_edit: SvgRebaseEdit,
779
816
  refresh: SvgRefresh,
817
+ remove: SvgRemove,
780
818
  schema: SvgSchema,
781
819
  security: SvgSecurity,
782
820
  settings_input_component: SvgSettingsInputComponent,
@@ -784,6 +822,8 @@ const icons = {
784
822
  smartphone: SvgSmartphone,
785
823
  speed: SvgSpeed,
786
824
  stacks: SvgStacks,
825
+ star: SvgStar,
826
+ star_border: SvgStarBorder,
787
827
  table: SvgTable,
788
828
  terminal: SvgTerminal,
789
829
  visibility: SvgVisibility,