@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
@@ -0,0 +1,474 @@
1
+ import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "./src-DLGYOJMh.mjs";
2
+ import { t as themeDefault } from "./themeDefault-Z3KmyIbm.mjs";
3
+ import { clamp } from "./utils.mjs";
4
+ import { n as useDefaultProps, r as useTheme } from "./theme-Z9_QludW.mjs";
5
+ import { t as Icon } from "./Icon-BihOAP4u.mjs";
6
+ import { t as FormControlContext } from "./FormControlContext-CC2kToms.mjs";
7
+ import { useFormControl } from "./FormControl.mjs";
8
+ import { t as useControlled } from "./useControlled-CBRLsO-H.mjs";
9
+ import { i as snapToStep, n as getDecimalPrecision, t as addExact } from "./precision-B1lhxnnO.mjs";
10
+ import { t as inputVariantStyles } from "./inputVariantStyles-CcqpGfuP.mjs";
11
+ import { useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
12
+ import { jsx, jsxs } from "react/jsx-runtime";
13
+ //#region src/NumberField/hooks/useHoldRepeat.ts
14
+ /**
15
+ * Runs `action` at once on a press, then again and again while it is held - after a pause, so a
16
+ * tap is one step. `start` begins it, `stop` ends it, and it ends by itself when the component
17
+ * goes.
18
+ */
19
+ function useHoldRepeat(action, { delay = 400, interval = 60 } = {}) {
20
+ const actionRef = useRef(action);
21
+ useEffect(() => {
22
+ actionRef.current = action;
23
+ });
24
+ const timers = useRef({});
25
+ const stop = useCallback(() => {
26
+ window.clearTimeout(timers.current.pause);
27
+ window.clearInterval(timers.current.repeat);
28
+ timers.current = {};
29
+ }, []);
30
+ const start = useCallback(() => {
31
+ stop();
32
+ actionRef.current();
33
+ timers.current.pause = window.setTimeout(() => {
34
+ timers.current.repeat = window.setInterval(() => actionRef.current(), interval);
35
+ }, delay);
36
+ }, [
37
+ stop,
38
+ delay,
39
+ interval
40
+ ]);
41
+ useEffect(() => stop, [stop]);
42
+ return {
43
+ start,
44
+ stop
45
+ };
46
+ }
47
+ //#endregion
48
+ //#region src/NumberField/utils/number.ts
49
+ /** What a number is shown as unless told otherwise: all its digits, ungrouped, so typing round-trips. */
50
+ const DEFAULT_FORMAT = {
51
+ useGrouping: false,
52
+ maximumFractionDigits: 20
53
+ };
54
+ /** The syntax a locale and format write a number in. */
55
+ function getNumberSyntax(locale, format) {
56
+ const probe = new Intl.NumberFormat(locale, {
57
+ useGrouping: false,
58
+ minimumFractionDigits: 1,
59
+ maximumFractionDigits: 1
60
+ });
61
+ const digitFormat = new Intl.NumberFormat(locale, { useGrouping: false });
62
+ return {
63
+ decimal: probe.formatToParts(1.1).find((part) => part.type === "decimal").value,
64
+ digits: Array.from({ length: 10 }, (_, digit) => digitFormat.format(digit)),
65
+ isPercent: format?.style === "percent"
66
+ };
67
+ }
68
+ /** The number as its locale and format write it. */
69
+ function formatNumber(value, locale, format) {
70
+ return new Intl.NumberFormat(locale, {
71
+ ...DEFAULT_FORMAT,
72
+ ...format
73
+ }).format(value);
74
+ }
75
+ const MINUS = new RegExp(`[${[
76
+ 8722,
77
+ 8210,
78
+ 8211,
79
+ 8212
80
+ ].map((code) => String.fromCodePoint(code)).join("")}]`, "g");
81
+ /**
82
+ * The number a text stands for - `null` when it stands for none: its locale's digits and decimal
83
+ * mark, a leading minus, a percent's `%` (so `50%` is `0.5`). Group marks, spaces and symbols
84
+ * round it are ignored.
85
+ */
86
+ function parseNumber(text, syntax) {
87
+ let normalized = text.replace(MINUS, "-");
88
+ syntax.digits.forEach((digit, index) => {
89
+ normalized = normalized.split(digit).join(String(index));
90
+ });
91
+ const isNegative = normalized.includes("-");
92
+ const [whole = "", ...fraction] = normalized.split(syntax.decimal);
93
+ const digits = (text) => text.replaceAll(/\D/g, "");
94
+ const wholeDigits = digits(whole);
95
+ const fractionDigits = fraction.map(digits).join("");
96
+ if (wholeDigits === "" && fractionDigits === "") return null;
97
+ const parsed = Number(`${wholeDigits || "0"}.${fractionDigits || "0"}`);
98
+ const signed = isNegative ? -parsed : parsed;
99
+ return syntax.isPercent ? Number((signed / 100).toFixed(getDecimalPrecision(parsed) + 2)) : signed;
100
+ }
101
+ //#endregion
102
+ //#region src/NumberField/hooks/useNumberField.ts
103
+ const clampTo = (value, min, max) => clamp(value, min ?? Number.NEGATIVE_INFINITY, max ?? Number.POSITIVE_INFINITY);
104
+ /**
105
+ * A number field's state: the number (controlled or not), the text the user is typing - which
106
+ * is theirs until it is committed on blur or Enter - and the steps by key and by button. A
107
+ * number typed is told at once; one outside the range is clamped when it is committed.
108
+ */
109
+ function useNumberField({ value: valueProp, defaultValue, onChange, onChangeCommitted, min, max, step, smallStep, largeStep, format, locale, shouldSnapOnStep, isFrozen }) {
110
+ const [value, setValue] = useControlled({
111
+ controlled: valueProp,
112
+ default: defaultValue ?? null
113
+ });
114
+ const [draft, setDraft] = useState(null);
115
+ const syntax = useMemo(() => getNumberSyntax(locale, format), [locale, format]);
116
+ const text = draft ?? (value === null ? "" : formatNumber(value, locale, format));
117
+ const update = (next) => {
118
+ if (next === value) return;
119
+ setValue(next);
120
+ onChange?.(next);
121
+ };
122
+ const handleChange = (event) => {
123
+ const typed = event.currentTarget.value;
124
+ setDraft(typed);
125
+ if (typed.trim() === "") return update(null);
126
+ const parsed = parseNumber(typed, syntax);
127
+ if (parsed !== null) update(parsed);
128
+ };
129
+ const settle = () => {
130
+ if (draft === null) return value;
131
+ if (draft.trim() === "") return null;
132
+ const parsed = parseNumber(draft, syntax);
133
+ return parsed === null ? value : clampTo(parsed, min, max);
134
+ };
135
+ const commit = (next) => {
136
+ setDraft(null);
137
+ update(next);
138
+ onChangeCommitted?.(next);
139
+ };
140
+ const handleBlur = () => {
141
+ if (draft !== null) commit(settle());
142
+ };
143
+ const stepBy = (direction, size = step) => {
144
+ if (isFrozen) return;
145
+ const base = settle() ?? 0;
146
+ let next = addExact(base, direction * size);
147
+ if (shouldSnapOnStep) next = snapToStep(next, step, min ?? 0);
148
+ commit(clampTo(next, min, max));
149
+ };
150
+ const handleKeyDown = (event) => {
151
+ if (isFrozen) return;
152
+ const { key, altKey, shiftKey } = event;
153
+ if (key === "Enter") return commit(settle());
154
+ if (key === "ArrowUp" || key === "ArrowDown") {
155
+ event.preventDefault();
156
+ let size = step;
157
+ if (altKey) size = smallStep;
158
+ if (shiftKey) size = largeStep;
159
+ return stepBy(key === "ArrowUp" ? 1 : -1, size);
160
+ }
161
+ const edge = key === "Home" ? min : max;
162
+ if ((key === "Home" || key === "End") && edge !== void 0) {
163
+ event.preventDefault();
164
+ commit(edge);
165
+ }
166
+ };
167
+ return {
168
+ text,
169
+ value,
170
+ canIncrement: !isFrozen && (max === void 0 || (value ?? Number.NEGATIVE_INFINITY) < max),
171
+ canDecrement: !isFrozen && (min === void 0 || (value ?? Number.POSITIVE_INFINITY) > min),
172
+ handleChange,
173
+ handleBlur,
174
+ handleKeyDown,
175
+ stepBy
176
+ };
177
+ }
178
+ //#endregion
179
+ //#region src/NumberField/hooks/useWheelStep.ts
180
+ /**
181
+ * Steps a focused field by the mouse wheel - up for a wheel up. A native listener, since the
182
+ * page must not scroll as it turns, and a React one can't prevent that.
183
+ */
184
+ function useWheelStep(ref, isEnabled, onStep) {
185
+ const stepRef = useRef(onStep);
186
+ useEffect(() => {
187
+ stepRef.current = onStep;
188
+ });
189
+ useEffect(() => {
190
+ const element = ref.current;
191
+ if (!isEnabled || !element) return void 0;
192
+ const handleWheel = (event) => {
193
+ if (element.ownerDocument.activeElement !== element) return;
194
+ event.preventDefault();
195
+ stepRef.current(event.deltaY < 0 ? 1 : -1);
196
+ };
197
+ element.addEventListener("wheel", handleWheel, { passive: false });
198
+ return () => element.removeEventListener("wheel", handleWheel);
199
+ }, [ref, isEnabled]);
200
+ }
201
+ //#endregion
202
+ //#region src/NumberField/NumberField.tsx
203
+ const widthStyles = (0, src_exports.system)({
204
+ width: true,
205
+ minWidth: true,
206
+ maxWidth: true
207
+ });
208
+ const frameStyle = ({ theme, color, textColor, isError, isDisabled, isFullWidth, isInField }) => {
209
+ const main = (0, src_exports.get)(theme, `palette.${color}.main`);
210
+ const border = isError ? (0, src_exports.get)(theme, "palette.error.main") : (0, src_exports.get)(theme, `palette.${color}.light`);
211
+ const focusBorder = isError ? (0, src_exports.get)(theme, "palette.error.main") : main;
212
+ return {
213
+ display: isFullWidth || isInField ? "flex" : "inline-flex",
214
+ ...isFullWidth && { width: "100%" },
215
+ ...isInField && !isFullWidth && { width: "fit-content" },
216
+ alignItems: "stretch",
217
+ transition: "border-color 0.15s ease",
218
+ backgroundColor: (0, src_exports.get)(theme, `background.${themeDefault(theme, "inputBg", "terminal")}`),
219
+ color: textColor ? (0, src_exports.get)(theme, `text.${textColor}`) : (0, src_exports.get)(theme, `palette.${color}.main`),
220
+ fontFamily: (0, src_exports.get)(theme, "fonts.body"),
221
+ lineHeight: (0, src_exports.get)(theme, "lineHeights.base"),
222
+ borderColor: border,
223
+ "&:focus-within": { borderColor: focusBorder },
224
+ "&:has(input:focus-visible)": {
225
+ outline: `2px solid ${main}`,
226
+ outlineOffset: "2px"
227
+ },
228
+ ...isDisabled && {
229
+ opacity: .5,
230
+ cursor: "not-allowed",
231
+ pointerEvents: "none"
232
+ }
233
+ };
234
+ };
235
+ const NumberFieldRoot = styled("div", {
236
+ name: "NumberField",
237
+ label: "NumberField",
238
+ shouldForwardProp: createShouldForwardProp([
239
+ ...props,
240
+ "color",
241
+ "textColor",
242
+ "variant",
243
+ "isError",
244
+ "isDisabled",
245
+ "isFullWidth",
246
+ "isInField"
247
+ ]),
248
+ systemProps: [src_exports.space, widthStyles]
249
+ })(inputVariantStyles, frameStyle);
250
+ const NumberFieldInput = styled("input", {
251
+ name: "NumberField",
252
+ slot: "input",
253
+ label: "NumberFieldInput",
254
+ shouldForwardProp: createShouldForwardProp(["sizeToken", "isCentered"])
255
+ })(({ theme, sizeToken, isCentered }) => {
256
+ const s = theme.sizes[sizeToken];
257
+ return {
258
+ flex: 1,
259
+ minWidth: 0,
260
+ width: "100%",
261
+ border: "none",
262
+ outline: "none",
263
+ background: "transparent",
264
+ color: "inherit",
265
+ fontFamily: "inherit",
266
+ lineHeight: "inherit",
267
+ textAlign: isCentered ? "center" : "start",
268
+ paddingTop: theme.space[s.paddingTop],
269
+ paddingBottom: theme.space[s.paddingBottom],
270
+ paddingLeft: theme.space[s.paddingLeft],
271
+ paddingRight: theme.space[s.paddingRight],
272
+ fontSize: theme.fontSizes[s.fontSize],
273
+ "&::placeholder": {
274
+ color: "inherit",
275
+ opacity: .5
276
+ },
277
+ "&:disabled": { cursor: "not-allowed" }
278
+ };
279
+ });
280
+ const NumberFieldSpinButtons = styled("span", {
281
+ name: "NumberField",
282
+ slot: "spinButtons",
283
+ label: "NumberFieldSpinButtons"
284
+ })(({ theme }) => ({
285
+ display: "flex",
286
+ flexDirection: "column",
287
+ borderInlineStart: `${theme.borderWidths.thin} solid`,
288
+ borderColor: "inherit"
289
+ }));
290
+ const spinStyle = ({ theme, color, isSide }) => {
291
+ const main = (0, src_exports.get)(theme, `palette.${color}.main`);
292
+ return {
293
+ appearance: "none",
294
+ display: "grid",
295
+ placeItems: "center",
296
+ flex: isSide ? "0 0 auto" : 1,
297
+ minWidth: isSide ? theme.space[5] : theme.icon.lg,
298
+ padding: 0,
299
+ border: "none",
300
+ background: "transparent",
301
+ color: "inherit",
302
+ cursor: "pointer",
303
+ "&:hover:not(:disabled)": { backgroundColor: `${main}1F` },
304
+ "&:disabled": {
305
+ opacity: .4,
306
+ cursor: "default"
307
+ }
308
+ };
309
+ };
310
+ const spinProps = createShouldForwardProp(["color", "isSide"]);
311
+ const sideDivider = (edge) => {
312
+ return ({ theme, isSide }) => isSide ? {
313
+ [edge]: `${theme.borderWidths.thin} solid`,
314
+ borderColor: "inherit"
315
+ } : {};
316
+ };
317
+ const NumberFieldIncrement = styled("button", {
318
+ name: "NumberField",
319
+ slot: "increment",
320
+ label: "NumberFieldIncrement",
321
+ shouldForwardProp: spinProps
322
+ })(spinStyle, sideDivider("borderInlineStart"));
323
+ const NumberFieldDecrement = styled("button", {
324
+ name: "NumberField",
325
+ slot: "decrement",
326
+ label: "NumberFieldDecrement",
327
+ shouldForwardProp: spinProps
328
+ })(spinStyle, sideDivider("borderInlineEnd"));
329
+ const getSpinIcon = (direction, isSide) => {
330
+ if (isSide) return direction === 1 ? "add" : "remove";
331
+ return direction === 1 ? "expand_less" : "expand_more";
332
+ };
333
+ function SpinButton({ direction, label, isSide, isDisabled, color, onStep }) {
334
+ const hold = useHoldRepeat(() => onStep(direction));
335
+ const { stop } = hold;
336
+ useEffect(() => {
337
+ if (isDisabled) stop();
338
+ }, [isDisabled, stop]);
339
+ return /* @__PURE__ */ jsx(direction === 1 ? NumberFieldIncrement : NumberFieldDecrement, {
340
+ type: "button",
341
+ tabIndex: -1,
342
+ "aria-label": label,
343
+ disabled: isDisabled,
344
+ color,
345
+ isSide,
346
+ onMouseDown: (event) => event.preventDefault(),
347
+ onPointerDown: (event) => event.button === 0 && hold.start(),
348
+ onPointerUp: hold.stop,
349
+ onPointerLeave: hold.stop,
350
+ onPointerCancel: hold.stop,
351
+ onClick: (event) => event.detail === 0 && onStep(direction),
352
+ children: /* @__PURE__ */ jsx(Icon, {
353
+ name: getSpinIcon(direction, isSide),
354
+ size: "sm",
355
+ color: "inherit"
356
+ })
357
+ });
358
+ }
359
+ /**
360
+ * @description A field for a number: a text input - so what is typed is the user's until it is
361
+ * settled - that reads and writes the number in its locale, clamps it to `min`/`max`, and steps
362
+ * by the arrow keys, Home/End, the wheel and buttons that repeat while held. A
363
+ * `role="spinbutton"`, so the number and its range are announced; a hidden input carries the raw
364
+ * number to a form. In a `FormControl` it takes the field's size, color, error, disabled and
365
+ * required state, and its `FormLabel` targets the field.
366
+ */
367
+ function NumberField({ value, defaultValue, onChange, onChangeCommitted, min, max, step: stepProp, smallStep: smallStepProp, largeStep: largeStepProp, format, locale, shouldSnapOnStep: shouldSnapProp, shouldScrubOnWheel: shouldScrubProp, spinButtons: spinButtonsProp, incrementLabel: incrementLabelProp, decrementLabel: decrementLabelProp, variant: variantProp, size: sizeProp, color: colorProp, textColor: textColorProp, error: errorProp, disabled: disabledProp, readOnly = false, required: requiredProp, fullWidth: fullWidthProp, name, id: idProp, placeholder, autoFocus, className, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby, "data-testid": dataTestid, ...rest }) {
368
+ const theme = useTheme();
369
+ const dp = useDefaultProps("NumberField");
370
+ const isInField = useContext(FormControlContext) !== null;
371
+ const fc = useFormControl({
372
+ id: idProp,
373
+ error: errorProp,
374
+ disabled: disabledProp,
375
+ required: requiredProp,
376
+ size: sizeProp ?? dp.size,
377
+ fullWidth: fullWidthProp,
378
+ color: colorProp ?? dp.color,
379
+ textColor: textColorProp
380
+ });
381
+ const color = fc.color ?? themeDefault(theme, "color", "primary");
382
+ const textColor = fc.textColor;
383
+ const variant = variantProp ?? dp.variant ?? themeDefault(theme, "inputVariant", "default");
384
+ const spinButtons = spinButtonsProp ?? dp.spinButtons ?? "stacked";
385
+ const step = stepProp ?? dp.step ?? 1;
386
+ const isFrozen = fc.disabled || readOnly;
387
+ const field = useNumberField({
388
+ value,
389
+ defaultValue,
390
+ onChange,
391
+ onChangeCommitted,
392
+ min,
393
+ max,
394
+ step,
395
+ smallStep: smallStepProp ?? dp.smallStep ?? .1,
396
+ largeStep: largeStepProp ?? dp.largeStep ?? 10,
397
+ format,
398
+ locale,
399
+ shouldSnapOnStep: shouldSnapProp ?? dp.shouldSnapOnStep ?? false,
400
+ isFrozen
401
+ });
402
+ const inputRef = useRef(null);
403
+ useWheelStep(inputRef, shouldScrubProp ?? dp.shouldScrubOnWheel ?? false, field.stepBy);
404
+ const isSide = spinButtons === "sides";
405
+ const buttonProps = {
406
+ isSide,
407
+ color,
408
+ onStep: field.stepBy
409
+ };
410
+ const decrement = /* @__PURE__ */ jsx(SpinButton, {
411
+ direction: -1,
412
+ label: decrementLabelProp ?? dp.decrementLabel,
413
+ isDisabled: !field.canDecrement,
414
+ ...buttonProps
415
+ });
416
+ const increment = /* @__PURE__ */ jsx(SpinButton, {
417
+ direction: 1,
418
+ label: incrementLabelProp ?? dp.incrementLabel,
419
+ isDisabled: !field.canIncrement,
420
+ ...buttonProps
421
+ });
422
+ const inputMode = (min ?? -1) >= 0 && Number.isInteger(step) ? "numeric" : "decimal";
423
+ return /* @__PURE__ */ jsxs(NumberFieldRoot, {
424
+ color,
425
+ textColor,
426
+ variant,
427
+ isError: fc.error,
428
+ isDisabled: fc.disabled,
429
+ isFullWidth: fc.fullWidth,
430
+ isInField,
431
+ className,
432
+ "data-testid": dataTestid,
433
+ ...rest,
434
+ children: [
435
+ isSide && decrement,
436
+ /* @__PURE__ */ jsx(NumberFieldInput, {
437
+ ref: inputRef,
438
+ type: "text",
439
+ role: "spinbutton",
440
+ inputMode,
441
+ autoComplete: "off",
442
+ id: fc.id,
443
+ value: field.text,
444
+ placeholder,
445
+ autoFocus,
446
+ disabled: fc.disabled,
447
+ readOnly,
448
+ required: fc.required,
449
+ sizeToken: fc.size,
450
+ isCentered: isSide,
451
+ "aria-valuenow": field.value ?? void 0,
452
+ "aria-valuemin": min,
453
+ "aria-valuemax": max,
454
+ "aria-label": ariaLabel,
455
+ "aria-labelledby": ariaLabelledby,
456
+ "aria-describedby": ariaDescribedby ?? fc["aria-describedby"],
457
+ "aria-invalid": fc.error || void 0,
458
+ onChange: field.handleChange,
459
+ onBlur: field.handleBlur,
460
+ onKeyDown: field.handleKeyDown
461
+ }),
462
+ name !== void 0 && /* @__PURE__ */ jsx("input", {
463
+ type: "hidden",
464
+ name,
465
+ value: field.value ?? "",
466
+ disabled: fc.disabled
467
+ }),
468
+ spinButtons === "stacked" && /* @__PURE__ */ jsxs(NumberFieldSpinButtons, { children: [increment, decrement] }),
469
+ isSide && increment
470
+ ]
471
+ });
472
+ }
473
+ //#endregion
474
+ export { NumberField };
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_src = require("../src-DU81aGy9.cjs");
3
3
  const require_themeDefault = require("../themeDefault-Cebi08Cv.cjs");
4
4
  const require_utils = require("../utils.cjs");
5
- const require_Icon = require("../Icon-Cvuhp9ek.cjs");
5
+ const require_Icon = require("../Icon-D-EWsBVg.cjs");
6
6
  require("react");
7
7
  let react_jsx_runtime = require("react/jsx-runtime");
8
8
  let _soroush_tech_styled_system_should_forward_prop = require("@soroush.tech/styled-system/should-forward-prop");
@@ -1,2 +1,2 @@
1
- import { a as PaginationItemSize, i as PaginationItemShape, n as PaginationItemColor, o as PaginationItemVariant, r as PaginationItemProps, t as PaginationItem } from "../index-BFruxTHv.cjs";
1
+ import { a as PaginationItemSize, i as PaginationItemShape, n as PaginationItemColor, o as PaginationItemVariant, r as PaginationItemProps, t as PaginationItem } from "../index-ChXeKJCk.cjs";
2
2
  export { PaginationItem, PaginationItemColor, PaginationItemProps, PaginationItemShape, PaginationItemSize, PaginationItemVariant };
@@ -1,2 +1,2 @@
1
- import { a as PaginationItemSize, i as PaginationItemShape, n as PaginationItemColor, o as PaginationItemVariant, r as PaginationItemProps, t as PaginationItem } from "../index-DIC7HKpP.mjs";
1
+ import { a as PaginationItemSize, i as PaginationItemShape, n as PaginationItemColor, o as PaginationItemVariant, r as PaginationItemProps, t as PaginationItem } from "../index-BGbTuHP9.mjs";
2
2
  export { PaginationItem, PaginationItemColor, PaginationItemProps, PaginationItemShape, PaginationItemSize, PaginationItemVariant };
@@ -1,7 +1,7 @@
1
1
  import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "../src-DLGYOJMh.mjs";
2
2
  import { t as themeDefault } from "../themeDefault-Z3KmyIbm.mjs";
3
3
  import { alpha } from "../utils.mjs";
4
- import { t as Icon } from "../Icon-DlheCTJb.mjs";
4
+ import { t as Icon } from "../Icon-BihOAP4u.mjs";
5
5
  import "react";
6
6
  import { jsx } from "react/jsx-runtime";
7
7
  //#region src/Pagination/PaginationItem/PaginationItem.tsx
@@ -1,3 +1,3 @@
1
- import { a as PaginationItemSize, c as UsePaginationItem, i as PaginationItemShape, l as UsePaginationProps, n as PaginationItemColor, o as PaginationItemVariant, r as PaginationItemProps, s as PaginationItemType, t as PaginationItem, u as usePagination } from "./index-BFruxTHv.cjs";
2
- import { a as PaginationSize, i as PaginationShape, n as PaginationColor, o as PaginationVariant, r as PaginationProps, t as Pagination } from "./index-BiVvxOvj.cjs";
1
+ import { a as PaginationItemSize, c as UsePaginationItem, i as PaginationItemShape, l as UsePaginationProps, n as PaginationItemColor, o as PaginationItemVariant, r as PaginationItemProps, s as PaginationItemType, t as PaginationItem, u as usePagination } from "./index-ChXeKJCk.cjs";
2
+ import { a as PaginationSize, i as PaginationShape, n as PaginationColor, o as PaginationVariant, r as PaginationProps, t as Pagination } from "./index-BHKgEOZJ.cjs";
3
3
  export { Pagination, PaginationColor, PaginationItem, PaginationItemColor, PaginationItemProps, PaginationItemShape, PaginationItemSize, PaginationItemType, PaginationItemVariant, PaginationProps, PaginationShape, PaginationSize, PaginationVariant, UsePaginationItem, UsePaginationProps, usePagination };
@@ -1,3 +1,3 @@
1
- import { a as PaginationItemSize, c as UsePaginationItem, i as PaginationItemShape, l as UsePaginationProps, n as PaginationItemColor, o as PaginationItemVariant, r as PaginationItemProps, s as PaginationItemType, t as PaginationItem, u as usePagination } from "./index-DIC7HKpP.mjs";
2
- import { a as PaginationSize, i as PaginationShape, n as PaginationColor, o as PaginationVariant, r as PaginationProps, t as Pagination } from "./index-BbgFYfX_.mjs";
1
+ import { a as PaginationItemSize, c as UsePaginationItem, i as PaginationItemShape, l as UsePaginationProps, n as PaginationItemColor, o as PaginationItemVariant, r as PaginationItemProps, s as PaginationItemType, t as PaginationItem, u as usePagination } from "./index-BGbTuHP9.mjs";
2
+ import { a as PaginationSize, i as PaginationShape, n as PaginationColor, o as PaginationVariant, r as PaginationProps, t as Pagination } from "./index-BQWjh4rK.mjs";
3
3
  export { Pagination, PaginationColor, PaginationItem, PaginationItemColor, PaginationItemProps, PaginationItemShape, PaginationItemSize, PaginationItemType, PaginationItemVariant, PaginationProps, PaginationShape, PaginationSize, PaginationVariant, UsePaginationItem, UsePaginationProps, usePagination };
package/dist/Paper.d.cts CHANGED
@@ -1,3 +1,3 @@
1
- import { Bt as Paper, Ht as PaperProps, Vt as PaperElevation } from "./index-DmJ7yWWi.cjs";
2
- import "./index-DBteSahY.cjs";
1
+ import { Gt as PaperElevation, Kt as PaperProps, Wt as Paper } from "./index-DJ0f69wh.cjs";
2
+ import "./index-BxVTIMnB.cjs";
3
3
  export { Paper, PaperElevation, PaperProps };
package/dist/Paper.d.mts CHANGED
@@ -1,3 +1,3 @@
1
- import { Bt as Paper, Ht as PaperProps, Vt as PaperElevation } from "./index-CVNJEUwJ.mjs";
2
- import "./index-_G1osn09.mjs";
1
+ import { Gt as PaperElevation, Kt as PaperProps, Wt as Paper } from "./index-CJhK7JND.mjs";
2
+ import "./index-DaIIo5QU.mjs";
3
3
  export { Paper, PaperElevation, PaperProps };
@@ -1,6 +1,6 @@
1
- import { Ht as PaperProps, V as Theme, Vt as PaperElevation } from "./index-DmJ7yWWi.cjs";
2
- import "./index-DBteSahY.cjs";
3
- import { l as ModalCloseReason } from "./index-DuVNRXP4.cjs";
1
+ import { Gt as PaperElevation, Kt as PaperProps, W as Theme } from "./index-DJ0f69wh.cjs";
2
+ import "./index-BxVTIMnB.cjs";
3
+ import { l as ModalCloseReason } from "./index-nqUA_6J_.cjs";
4
4
  import { ReactNode, Ref } from "react";
5
5
  //#region src/Popover/utils/getOffset.d.ts
6
6
  type PopoverVerticalOrigin = 'top' | 'center' | 'bottom' | number;
@@ -1,6 +1,6 @@
1
- import { Ht as PaperProps, V as Theme, Vt as PaperElevation } from "./index-CVNJEUwJ.mjs";
2
- import "./index-_G1osn09.mjs";
3
- import { l as ModalCloseReason } from "./index-DqjXDutI.mjs";
1
+ import { Gt as PaperElevation, Kt as PaperProps, W as Theme } from "./index-CJhK7JND.mjs";
2
+ import "./index-DaIIo5QU.mjs";
3
+ import { l as ModalCloseReason } from "./index-Bx0-6yeX.mjs";
4
4
  import { ReactNode, Ref } from "react";
5
5
  //#region src/Popover/utils/getOffset.d.ts
6
6
  type PopoverVerticalOrigin = 'top' | 'center' | 'bottom' | number;
@@ -1,2 +1,2 @@
1
- import { i as PressableProps, n as PressableColor, r as PressableFeedback, t as Pressable } from "./index-BCnKYNlZ.cjs";
1
+ import { i as PressableProps, n as PressableColor, r as PressableFeedback, t as Pressable } from "./index-YKrfFC_I.cjs";
2
2
  export { Pressable, PressableColor, PressableFeedback, PressableProps };
@@ -1,2 +1,2 @@
1
- import { i as PressableProps, n as PressableColor, r as PressableFeedback, t as Pressable } from "./index-DrVYWt-X.mjs";
1
+ import { i as PressableProps, n as PressableColor, r as PressableFeedback, t as Pressable } from "./index-CUz2h5xY.mjs";
2
2
  export { Pressable, PressableColor, PressableFeedback, PressableProps };
package/dist/Quote.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { Qt as ViewProps, V as Theme } from "./index-DmJ7yWWi.cjs";
2
- import "./index-DDJuUfL5.cjs";
1
+ import { W as Theme, nn as ViewProps } from "./index-DJ0f69wh.cjs";
2
+ import "./index-DchHf5cF.cjs";
3
3
  //#region src/Quote/Quote.d.ts
4
4
  type QuoteProps = ViewProps;
5
5
  /** A View with a 2px primary left-border - used for terminal readouts and markdown blockquotes. */
package/dist/Quote.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { Qt as ViewProps, V as Theme } from "./index-CVNJEUwJ.mjs";
2
- import "./index-BVPrG1L0.mjs";
1
+ import { W as Theme, nn as ViewProps } from "./index-CJhK7JND.mjs";
2
+ import "./index-h4dYtVrp.mjs";
3
3
  //#region src/Quote/Quote.d.ts
4
4
  type QuoteProps = ViewProps;
5
5
  /** A View with a 2px primary left-border - used for terminal readouts and markdown blockquotes. */
package/dist/Radio.d.cts CHANGED
@@ -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, InputHTMLAttributes, ReactNode } from "react";
3
3
  import { SpaceProps } from "@soroush.tech/styled-system";
4
4
  //#region src/Radio/Radio.d.ts
package/dist/Radio.d.mts CHANGED
@@ -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, InputHTMLAttributes, ReactNode } from "react";
4
4
  //#region src/Radio/Radio.d.ts