mada-design-system 0.8.0 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (408) hide show
  1. package/index.cjs128.js +1 -1
  2. package/index.cjs141.js +1 -1
  3. package/index.cjs144.js +1 -1
  4. package/index.cjs145.js +1 -1
  5. package/index.cjs146.js +1 -1
  6. package/index.cjs147.js +1 -1
  7. package/index.cjs185.js +1 -1
  8. package/index.cjs186.js +1 -1
  9. package/index.cjs187.js +1 -1
  10. package/index.cjs188.js +1 -1
  11. package/index.cjs189.js +1 -1
  12. package/index.cjs190.js +1 -1
  13. package/index.cjs205.js +1 -1
  14. package/index.cjs225.js +1 -1
  15. package/index.cjs231.js +1 -1
  16. package/index.cjs236.js +1 -1
  17. package/index.cjs237.js +1 -1
  18. package/index.cjs238.js +1 -1
  19. package/index.cjs239.js +1 -1
  20. package/index.cjs240.js +1 -1
  21. package/index.cjs241.js +1 -1
  22. package/index.cjs242.js +1 -1
  23. package/index.cjs243.js +1 -1
  24. package/index.cjs244.js +1 -1
  25. package/index.cjs245.js +1 -1
  26. package/index.cjs246.js +1 -1
  27. package/index.cjs247.js +1 -1
  28. package/index.cjs248.js +1 -1
  29. package/index.cjs249.js +1 -1
  30. package/index.cjs250.js +1 -1
  31. package/index.cjs251.js +1 -1
  32. package/index.cjs252.js +1 -1
  33. package/index.cjs253.js +1 -1
  34. package/index.cjs254.js +1 -1
  35. package/index.cjs255.js +1 -1
  36. package/index.cjs256.js +1 -1
  37. package/index.cjs257.js +1 -1
  38. package/index.cjs258.js +1 -1
  39. package/index.cjs259.js +1 -1
  40. package/index.cjs260.js +1 -1
  41. package/index.cjs261.js +1 -1
  42. package/index.cjs262.js +1 -1
  43. package/index.cjs263.js +1 -1
  44. package/index.cjs264.js +1 -1
  45. package/index.cjs265.js +1 -1
  46. package/index.cjs266.js +1 -1
  47. package/index.cjs267.js +1 -1
  48. package/index.cjs268.js +1 -1
  49. package/index.cjs269.js +1 -1
  50. package/index.cjs270.js +1 -1
  51. package/index.cjs271.js +1 -1
  52. package/index.cjs272.js +1 -1
  53. package/index.cjs273.js +1 -1
  54. package/index.cjs274.js +1 -1
  55. package/index.cjs275.js +1 -1
  56. package/index.cjs276.js +1 -1
  57. package/index.cjs277.js +1 -1
  58. package/index.cjs278.js +1 -1
  59. package/index.cjs282.js +1 -1
  60. package/index.cjs283.js +1 -1
  61. package/index.cjs284.js +1 -1
  62. package/index.cjs285.js +1 -1
  63. package/index.cjs286.js +1 -1
  64. package/index.cjs287.js +1 -1
  65. package/index.cjs288.js +1 -1
  66. package/index.cjs289.js +1 -1
  67. package/index.cjs290.js +1 -1
  68. package/index.cjs291.js +1 -1
  69. package/index.cjs301.js +1 -1
  70. package/index.cjs304.js +1 -1
  71. package/index.cjs306.js +1 -1
  72. package/index.cjs310.js +1 -1
  73. package/index.cjs312.js +1 -1
  74. package/index.cjs313.js +1 -1
  75. package/index.cjs314.js +1 -1
  76. package/index.cjs315.js +1 -1
  77. package/index.cjs316.js +1 -1
  78. package/index.cjs317.js +1 -1
  79. package/index.cjs318.js +1 -1
  80. package/index.cjs319.js +1 -1
  81. package/index.cjs320.js +1 -1
  82. package/index.cjs321.js +1 -1
  83. package/index.cjs322.js +1 -1
  84. package/index.cjs323.js +1 -1
  85. package/index.cjs324.js +1 -1
  86. package/index.cjs325.js +1 -1
  87. package/index.cjs326.js +1 -1
  88. package/index.cjs327.js +1 -1
  89. package/index.cjs328.js +1 -1
  90. package/index.cjs329.js +1 -1
  91. package/index.cjs330.js +1 -1
  92. package/index.cjs331.js +1 -1
  93. package/index.cjs332.js +1 -1
  94. package/index.cjs333.js +1 -1
  95. package/index.cjs334.js +1 -1
  96. package/index.cjs335.js +1 -1
  97. package/index.cjs336.js +1 -1
  98. package/index.cjs337.js +1 -1
  99. package/index.cjs338.js +1 -1
  100. package/index.cjs339.js +1 -1
  101. package/index.cjs340.js +1 -1
  102. package/index.cjs341.js +1 -1
  103. package/index.cjs342.js +1 -1
  104. package/index.cjs343.js +1 -1
  105. package/index.cjs344.js +1 -1
  106. package/index.cjs345.js +1 -1
  107. package/index.cjs346.js +1 -1
  108. package/index.cjs347.js +1 -1
  109. package/index.cjs348.js +1 -1
  110. package/index.cjs356.js +1 -1
  111. package/index.cjs357.js +1 -1
  112. package/index.cjs365.js +1 -1
  113. package/index.cjs371.js +1 -1
  114. package/index.cjs373.js +1 -1
  115. package/index.cjs374.js +1 -1
  116. package/index.cjs376.js +1 -1
  117. package/index.cjs378.js +1 -1
  118. package/index.cjs383.js +1 -1
  119. package/index.cjs384.js +1 -1
  120. package/index.cjs385.js +1 -1
  121. package/index.cjs395.js +1 -1
  122. package/index.cjs396.js +1 -1
  123. package/index.cjs401.js +1 -1
  124. package/index.cjs403.js +1 -1
  125. package/index.cjs404.js +1 -1
  126. package/index.cjs405.js +1 -1
  127. package/index.cjs406.js +1 -1
  128. package/index.cjs407.js +1 -1
  129. package/index.cjs408.js +1 -1
  130. package/index.cjs409.js +1 -1
  131. package/index.cjs410.js +1 -1
  132. package/index.cjs411.js +1 -1
  133. package/index.cjs412.js +1 -1
  134. package/index.cjs413.js +1 -1
  135. package/index.cjs414.js +1 -1
  136. package/index.cjs415.js +1 -1
  137. package/index.cjs416.js +1 -1
  138. package/index.cjs417.js +1 -1
  139. package/index.cjs418.js +1 -1
  140. package/index.cjs419.js +1 -1
  141. package/index.cjs420.js +1 -1
  142. package/index.cjs421.js +1 -1
  143. package/index.cjs422.js +1 -1
  144. package/index.cjs423.js +1 -1
  145. package/index.cjs424.js +1 -1
  146. package/index.cjs425.js +1 -1
  147. package/index.cjs426.js +1 -1
  148. package/index.cjs427.js +1 -1
  149. package/index.cjs428.js +1 -1
  150. package/index.cjs429.js +1 -1
  151. package/index.cjs430.js +1 -1
  152. package/index.cjs431.js +1 -1
  153. package/index.cjs432.js +1 -1
  154. package/index.cjs433.js +1 -1
  155. package/index.cjs434.js +1 -1
  156. package/index.cjs435.js +1 -1
  157. package/index.cjs436.js +1 -1
  158. package/index.cjs437.js +1 -1
  159. package/index.cjs438.js +1 -1
  160. package/index.cjs439.js +1 -1
  161. package/index.cjs440.js +1 -1
  162. package/index.cjs441.js +1 -1
  163. package/index.cjs455.js +1 -1
  164. package/index.cjs460.js +1 -1
  165. package/index.cjs461.js +1 -1
  166. package/index.cjs462.js +1 -1
  167. package/index.cjs463.js +2 -1
  168. package/index.cjs464.js +1 -1
  169. package/index.cjs465.js +1 -1
  170. package/index.cjs466.js +1 -2
  171. package/index.cjs467.js +1 -1
  172. package/index.cjs468.js +1 -1
  173. package/index.cjs469.js +1 -1
  174. package/index.cjs47.js +1 -1
  175. package/index.cjs470.js +1 -1
  176. package/index.cjs471.js +1 -1
  177. package/index.cjs472.js +1 -1
  178. package/index.cjs473.js +1 -1
  179. package/index.cjs474.js +1 -1
  180. package/index.cjs475.js +1 -1
  181. package/index.cjs479.js +1 -1
  182. package/index.cjs480.js +1 -1
  183. package/index.cjs484.js +1 -1
  184. package/index.cjs486.js +1 -1
  185. package/index.cjs487.js +1 -1
  186. package/index.cjs488.js +1 -1
  187. package/index.cjs489.js +1 -1
  188. package/index.cjs490.js +1 -1
  189. package/index.cjs491.js +1 -1
  190. package/index.cjs492.js +1 -1
  191. package/index.cjs493.js +1 -1
  192. package/index.cjs494.js +1 -1
  193. package/index.cjs495.js +1 -1
  194. package/index.cjs496.js +1 -1
  195. package/index.cjs497.js +1 -1
  196. package/index.cjs498.js +1 -1
  197. package/index.cjs499.js +1 -1
  198. package/index.cjs500.js +1 -1
  199. package/index.cjs85.js +1 -1
  200. package/index.cjs86.js +1 -1
  201. package/index.cjs89.js +1 -1
  202. package/index.cjs92.js +1 -1
  203. package/index.cjs96.js +1 -1
  204. package/index.es128.js +1 -1
  205. package/index.es141.js +6 -6
  206. package/index.es144.js +5 -5
  207. package/index.es145.js +1 -1
  208. package/index.es146.js +7 -7
  209. package/index.es147.js +5 -5
  210. package/index.es185.js +443 -2310
  211. package/index.es186.js +2300 -2114
  212. package/index.es187.js +2152 -11
  213. package/index.es188.js +11 -139
  214. package/index.es189.js +139 -6
  215. package/index.es190.js +6 -471
  216. package/index.es205.js +2 -2
  217. package/index.es225.js +4 -4
  218. package/index.es231.js +1 -1
  219. package/index.es236.js +98 -8
  220. package/index.es237.js +31 -6
  221. package/index.es238.js +9 -6
  222. package/index.es239.js +141 -7
  223. package/index.es240.js +117 -14
  224. package/index.es241.js +68 -16
  225. package/index.es242.js +31 -9
  226. package/index.es243.js +9 -7
  227. package/index.es244.js +153 -5
  228. package/index.es245.js +106 -513
  229. package/index.es246.js +8 -50
  230. package/index.es247.js +5 -18
  231. package/index.es248.js +5 -6
  232. package/index.es249.js +7 -9
  233. package/index.es250.js +13 -6
  234. package/index.es251.js +15 -5
  235. package/index.es252.js +8 -6
  236. package/index.es253.js +6 -9
  237. package/index.es254.js +4 -5
  238. package/index.es255.js +514 -8
  239. package/index.es256.js +50 -13
  240. package/index.es257.js +18 -9
  241. package/index.es258.js +6 -8
  242. package/index.es259.js +8 -10
  243. package/index.es260.js +6 -14
  244. package/index.es261.js +5 -4
  245. package/index.es262.js +6 -38
  246. package/index.es263.js +10 -65
  247. package/index.es264.js +5 -9
  248. package/index.es265.js +8 -8
  249. package/index.es266.js +12 -7
  250. package/index.es267.js +9 -7
  251. package/index.es268.js +8 -15
  252. package/index.es269.js +11 -98
  253. package/index.es270.js +15 -31
  254. package/index.es271.js +5 -9
  255. package/index.es272.js +37 -139
  256. package/index.es273.js +64 -116
  257. package/index.es274.js +10 -68
  258. package/index.es275.js +9 -31
  259. package/index.es276.js +8 -9
  260. package/index.es277.js +8 -153
  261. package/index.es278.js +16 -108
  262. package/index.es282.js +12 -3
  263. package/index.es283.js +25 -2
  264. package/index.es284.js +10 -12
  265. package/index.es285.js +38 -24
  266. package/index.es286.js +1997 -8
  267. package/index.es287.js +6 -38
  268. package/index.es288.js +71 -1999
  269. package/index.es289.js +24 -6
  270. package/index.es290.js +3 -71
  271. package/index.es291.js +2 -25
  272. package/index.es301.js +1 -1
  273. package/index.es304.js +1 -1
  274. package/index.es306.js +1 -1
  275. package/index.es310.js +2 -2
  276. package/index.es312.js +6 -4
  277. package/index.es313.js +15 -56
  278. package/index.es314.js +28 -27
  279. package/index.es315.js +14 -46
  280. package/index.es316.js +4 -66
  281. package/index.es317.js +56 -37
  282. package/index.es318.js +22 -13
  283. package/index.es319.js +38 -59
  284. package/index.es320.js +47 -48
  285. package/index.es321.js +21 -52
  286. package/index.es322.js +13 -63
  287. package/index.es323.js +47 -25
  288. package/index.es324.js +47 -26
  289. package/index.es325.js +47 -37
  290. package/index.es326.js +47 -27
  291. package/index.es327.js +37 -34
  292. package/index.es328.js +26 -51
  293. package/index.es329.js +39 -52
  294. package/index.es330.js +27 -75
  295. package/index.es331.js +28 -32
  296. package/index.es332.js +56 -31
  297. package/index.es333.js +60 -35
  298. package/index.es334.js +88 -22
  299. package/index.es335.js +39 -22
  300. package/index.es336.js +39 -22
  301. package/index.es337.js +39 -23
  302. package/index.es338.js +22 -21
  303. package/index.es339.js +20 -20
  304. package/index.es340.js +24 -14
  305. package/index.es341.js +23 -38
  306. package/index.es342.js +22 -38
  307. package/index.es343.js +24 -14
  308. package/index.es344.js +14 -14
  309. package/index.es345.js +45 -6
  310. package/index.es346.js +44 -14
  311. package/index.es347.js +19 -28
  312. package/index.es348.js +19 -14
  313. package/index.es356.js +1 -1
  314. package/index.es357.js +1 -1
  315. package/index.es365.js +8 -8
  316. package/index.es371.js +4 -4
  317. package/index.es373.js +5 -5
  318. package/index.es374.js +4 -4
  319. package/index.es376.js +1 -1
  320. package/index.es378.js +3 -3
  321. package/index.es383.js +3 -3
  322. package/index.es384.js +1 -1
  323. package/index.es385.js +1 -1
  324. package/index.es395.js +1 -1
  325. package/index.es396.js +1 -1
  326. package/index.es401.js +6 -2
  327. package/index.es402.js +2 -2
  328. package/index.es403.js +2 -13
  329. package/index.es404.js +24 -143
  330. package/index.es405.js +19 -41
  331. package/index.es406.js +32 -3
  332. package/index.es407.js +6 -41
  333. package/index.es408.js +2 -7
  334. package/index.es409.js +6 -75
  335. package/index.es410.js +3 -54
  336. package/index.es411.js +18 -7
  337. package/index.es412.js +64 -73
  338. package/index.es413.js +15 -23
  339. package/index.es414.js +15 -62
  340. package/index.es415.js +3 -4
  341. package/index.es416.js +12 -6
  342. package/index.es417.js +143 -32
  343. package/index.es418.js +42 -58
  344. package/index.es419.js +3 -13
  345. package/index.es420.js +41 -4
  346. package/index.es421.js +7 -9
  347. package/index.es422.js +75 -54
  348. package/index.es423.js +54 -3
  349. package/index.es424.js +8 -5
  350. package/index.es425.js +76 -17
  351. package/index.es426.js +24 -17
  352. package/index.es427.js +62 -17
  353. package/index.es428.js +5 -17
  354. package/index.es429.js +59 -17
  355. package/index.es430.js +13 -17
  356. package/index.es431.js +3 -16
  357. package/index.es432.js +9 -5
  358. package/index.es433.js +55 -24
  359. package/index.es434.js +5 -21
  360. package/index.es435.js +17 -6
  361. package/index.es436.js +17 -3
  362. package/index.es437.js +16 -3
  363. package/index.es438.js +17 -19
  364. package/index.es439.js +17 -67
  365. package/index.es440.js +17 -16
  366. package/index.es441.js +17 -15
  367. package/index.es455.js +1 -1
  368. package/index.es460.js +2 -11
  369. package/index.es461.js +66 -3
  370. package/index.es462.js +65 -8
  371. package/index.es463.js +78 -4
  372. package/index.es464.js +255 -42
  373. package/index.es465.js +31 -24
  374. package/index.es466.js +6 -78
  375. package/index.es467.js +120 -247
  376. package/index.es468.js +17 -34
  377. package/index.es469.js +7 -6
  378. package/index.es47.js +2 -2
  379. package/index.es470.js +3 -131
  380. package/index.es471.js +48 -17
  381. package/index.es472.js +24 -6
  382. package/index.es473.js +11 -2
  383. package/index.es474.js +3 -66
  384. package/index.es475.js +8 -65
  385. package/index.es479.js +1 -1
  386. package/index.es480.js +1 -1
  387. package/index.es484.js +1 -1
  388. package/index.es486.js +1 -1
  389. package/index.es487.js +2 -8
  390. package/index.es488.js +2 -7
  391. package/index.es489.js +7 -19
  392. package/index.es490.js +7 -51
  393. package/index.es491.js +18 -247
  394. package/index.es492.js +51 -43
  395. package/index.es493.js +247 -14
  396. package/index.es494.js +43 -10
  397. package/index.es495.js +15 -47
  398. package/index.es496.js +10 -26
  399. package/index.es497.js +37 -118
  400. package/index.es498.js +23 -109
  401. package/index.es499.js +129 -2
  402. package/index.es500.js +112 -2
  403. package/index.es85.js +1 -1
  404. package/index.es86.js +1 -1
  405. package/index.es89.js +2 -2
  406. package/index.es92.js +2 -2
  407. package/index.es96.js +1 -1
  408. package/package.json +1 -1
package/index.es190.js CHANGED
@@ -1,473 +1,8 @@
1
- var W = Symbol.for("immer-nothing"), R = Symbol.for("immer-draftable"), u = Symbol.for("immer-state"), Q = process.env.NODE_ENV !== "production" ? [
2
- // All error codes, starting by 0:
3
- function(e) {
4
- return `The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`;
5
- },
6
- function(e) {
7
- return `produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`;
8
- },
9
- "This object has been frozen and should not be mutated",
10
- function(e) {
11
- return "Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? " + e;
12
- },
13
- "An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",
14
- "Immer forbids circular references",
15
- "The first or second argument to `produce` must be a function",
16
- "The third argument to `produce` must be a function or undefined",
17
- "First argument to `createDraft` must be a plain object, an array, or an immerable object",
18
- "First argument to `finishDraft` must be a draft returned by `createDraft`",
19
- function(e) {
20
- return `'current' expects a draft, got: ${e}`;
21
- },
22
- "Object.defineProperty() cannot be used on an Immer draft",
23
- "Object.setPrototypeOf() cannot be used on an Immer draft",
24
- "Immer only supports deleting array indices",
25
- "Immer only supports setting array indices and the 'length' property",
26
- function(e) {
27
- return `'original' expects a draft, got: ${e}`;
28
- }
29
- // Note: if more errors are added, the errorOffset in Patches.ts should be increased
30
- // See Patches.ts for additional errors
31
- ] : [];
32
- function f(e, ...t) {
33
- if (process.env.NODE_ENV !== "production") {
34
- const r = Q[e], n = typeof r == "function" ? r.apply(null, t) : r;
35
- throw new Error(`[Immer] ${n}`);
36
- }
37
- throw new Error(
38
- `[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`
39
- );
40
- }
41
- var m = Object.getPrototypeOf;
42
- function h(e) {
43
- return !!e && !!e[u];
44
- }
45
- function _(e) {
46
- var t;
47
- return e ? U(e) || Array.isArray(e) || !!e[R] || !!((t = e.constructor) != null && t[R]) || O(e) || D(e) : !1;
48
- }
49
- var Y = Object.prototype.constructor.toString();
50
- function U(e) {
51
- if (!e || typeof e != "object")
52
- return !1;
53
- const t = m(e);
54
- if (t === null)
55
- return !0;
56
- const r = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
57
- return r === Object ? !0 : typeof r == "function" && Function.toString.call(r) === Y;
58
- }
59
- function b(e, t) {
60
- z(e) === 0 ? Reflect.ownKeys(e).forEach((r) => {
61
- t(r, e[r], e);
62
- }) : e.forEach((r, n) => t(n, r, e));
63
- }
64
- function z(e) {
65
- const t = e[u];
66
- return t ? t.type_ : Array.isArray(e) ? 1 : O(e) ? 2 : D(e) ? 3 : 0;
67
- }
68
- function A(e, t) {
69
- return z(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
70
- }
71
- function B(e, t, r) {
72
- const n = z(e);
73
- n === 2 ? e.set(t, r) : n === 3 ? e.add(r) : e[t] = r;
74
- }
75
- function Z(e, t) {
76
- return e === t ? e !== 0 || 1 / e === 1 / t : e !== e && t !== t;
77
- }
78
- function O(e) {
79
- return e instanceof Map;
80
- }
81
- function D(e) {
82
- return e instanceof Set;
83
- }
84
- function d(e) {
85
- return e.copy_ || e.base_;
86
- }
87
- function N(e, t) {
88
- if (O(e))
89
- return new Map(e);
90
- if (D(e))
91
- return new Set(e);
92
- if (Array.isArray(e))
93
- return Array.prototype.slice.call(e);
94
- const r = U(e);
95
- if (t === !0 || t === "class_only" && !r) {
96
- const n = Object.getOwnPropertyDescriptors(e);
97
- delete n[u];
98
- let i = Reflect.ownKeys(n);
99
- for (let o = 0; o < i.length; o++) {
100
- const s = i[o], c = n[s];
101
- c.writable === !1 && (c.writable = !0, c.configurable = !0), (c.get || c.set) && (n[s] = {
102
- configurable: !0,
103
- writable: !0,
104
- // could live with !!desc.set as well here...
105
- enumerable: c.enumerable,
106
- value: e[s]
107
- });
108
- }
109
- return Object.create(m(e), n);
110
- } else {
111
- const n = m(e);
112
- if (n !== null && r)
113
- return { ...e };
114
- const i = Object.create(n);
115
- return Object.assign(i, e);
116
- }
117
- }
118
- function T(e, t = !1) {
119
- return S(e) || h(e) || !_(e) || (z(e) > 1 && (e.set = e.add = e.clear = e.delete = L), Object.freeze(e), t && Object.entries(e).forEach(([r, n]) => T(n, !0))), e;
120
- }
121
- function L() {
122
- f(2);
123
- }
124
- function S(e) {
125
- return Object.isFrozen(e);
126
- }
127
- var V = {};
128
- function y(e) {
129
- const t = V[e];
130
- return t || f(0, e), t;
131
- }
132
- var p;
133
- function G() {
134
- return p;
135
- }
136
- function ee(e, t) {
137
- return {
138
- drafts_: [],
139
- parent_: e,
140
- immer_: t,
141
- // Whenever the modified draft contains a draft from another scope, we
142
- // need to prevent auto-freezing so the unowned draft can be finalized.
143
- canAutoFreeze_: !0,
144
- unfinalizedDrafts_: 0
145
- };
146
- }
147
- function x(e, t) {
148
- t && (y("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
149
- }
150
- function v(e) {
151
- C(e), e.drafts_.forEach(te), e.drafts_ = null;
152
- }
153
- function C(e) {
154
- e === p && (p = e.parent_);
155
- }
156
- function j(e) {
157
- return p = ee(p, e);
158
- }
159
- function te(e) {
160
- const t = e[u];
161
- t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
162
- }
163
- function $(e, t) {
164
- t.unfinalizedDrafts_ = t.drafts_.length;
165
- const r = t.drafts_[0];
166
- return e !== void 0 && e !== r ? (r[u].modified_ && (v(t), f(4)), _(e) && (e = w(t, e), t.parent_ || g(t, e)), t.patches_ && y("Patches").generateReplacementPatches_(
167
- r[u].base_,
168
- e,
169
- t.patches_,
170
- t.inversePatches_
171
- )) : e = w(t, r, []), v(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !== W ? e : void 0;
172
- }
173
- function w(e, t, r) {
174
- if (S(t))
175
- return t;
176
- const n = t[u];
177
- if (!n)
178
- return b(
179
- t,
180
- (i, o) => K(e, n, t, i, o, r)
181
- ), t;
182
- if (n.scope_ !== e)
183
- return t;
184
- if (!n.modified_)
185
- return g(e, n.base_, !0), n.base_;
186
- if (!n.finalized_) {
187
- n.finalized_ = !0, n.scope_.unfinalizedDrafts_--;
188
- const i = n.copy_;
189
- let o = i, s = !1;
190
- n.type_ === 3 && (o = new Set(i), i.clear(), s = !0), b(
191
- o,
192
- (c, l) => K(e, n, i, c, l, r, s)
193
- ), g(e, i, !1), r && e.patches_ && y("Patches").generatePatches_(
194
- n,
195
- r,
196
- e.patches_,
197
- e.inversePatches_
198
- );
199
- }
200
- return n.copy_;
201
- }
202
- function K(e, t, r, n, i, o, s) {
203
- if (process.env.NODE_ENV !== "production" && i === r && f(5), h(i)) {
204
- const c = o && t && t.type_ !== 3 && // Set objects are atomic since they have no keys.
205
- !A(t.assigned_, n) ? o.concat(n) : void 0, l = w(e, i, c);
206
- if (B(r, n, l), h(l))
207
- e.canAutoFreeze_ = !1;
208
- else
209
- return;
210
- } else
211
- s && r.add(i);
212
- if (_(i) && !S(i)) {
213
- if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1)
214
- return;
215
- w(e, i), (!t || !t.scope_.parent_) && typeof n != "symbol" && Object.prototype.propertyIsEnumerable.call(r, n) && g(e, i);
216
- }
217
- }
218
- function g(e, t, r = !1) {
219
- !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && T(t, r);
220
- }
221
- function re(e, t) {
222
- const r = Array.isArray(e), n = {
223
- type_: r ? 1 : 0,
224
- // Track which produce call this is associated with.
225
- scope_: t ? t.scope_ : G(),
226
- // True for both shallow and deep changes.
227
- modified_: !1,
228
- // Used during finalization.
229
- finalized_: !1,
230
- // Track which properties have been assigned (true) or deleted (false).
231
- assigned_: {},
232
- // The parent draft state.
233
- parent_: t,
234
- // The base state.
235
- base_: e,
236
- // The base proxy.
237
- draft_: null,
238
- // set below
239
- // The base copy with any updated values.
240
- copy_: null,
241
- // Called by the `produce` function.
242
- revoke_: null,
243
- isManual_: !1
244
- };
245
- let i = n, o = M;
246
- r && (i = [n], o = P);
247
- const { revoke: s, proxy: c } = Proxy.revocable(i, o);
248
- return n.draft_ = c, n.revoke_ = s, c;
249
- }
250
- var M = {
251
- get(e, t) {
252
- if (t === u)
253
- return e;
254
- const r = d(e);
255
- if (!A(r, t))
256
- return ne(e, r, t);
257
- const n = r[t];
258
- return e.finalized_ || !_(n) ? n : n === F(e.base_, t) ? (E(e), e.copy_[t] = k(n, e)) : n;
259
- },
260
- has(e, t) {
261
- return t in d(e);
262
- },
263
- ownKeys(e) {
264
- return Reflect.ownKeys(d(e));
265
- },
266
- set(e, t, r) {
267
- const n = H(d(e), t);
268
- if (n != null && n.set)
269
- return n.set.call(e.draft_, r), !0;
270
- if (!e.modified_) {
271
- const i = F(d(e), t), o = i == null ? void 0 : i[u];
272
- if (o && o.base_ === r)
273
- return e.copy_[t] = r, e.assigned_[t] = !1, !0;
274
- if (Z(r, i) && (r !== void 0 || A(e.base_, t)))
275
- return !0;
276
- E(e), I(e);
277
- }
278
- return e.copy_[t] === r && // special case: handle new props with value 'undefined'
279
- (r !== void 0 || t in e.copy_) || // special case: NaN
280
- Number.isNaN(r) && Number.isNaN(e.copy_[t]) || (e.copy_[t] = r, e.assigned_[t] = !0), !0;
281
- },
282
- deleteProperty(e, t) {
283
- return F(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, E(e), I(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;
284
- },
285
- // Note: We never coerce `desc.value` into an Immer draft, because we can't make
286
- // the same guarantee in ES5 mode.
287
- getOwnPropertyDescriptor(e, t) {
288
- const r = d(e), n = Reflect.getOwnPropertyDescriptor(r, t);
289
- return n && {
290
- writable: !0,
291
- configurable: e.type_ !== 1 || t !== "length",
292
- enumerable: n.enumerable,
293
- value: r[t]
294
- };
295
- },
296
- defineProperty() {
297
- f(11);
298
- },
299
- getPrototypeOf(e) {
300
- return m(e.base_);
301
- },
302
- setPrototypeOf() {
303
- f(12);
304
- }
305
- }, P = {};
306
- b(M, (e, t) => {
307
- P[e] = function() {
308
- return arguments[0] = arguments[0][0], t.apply(this, arguments);
309
- };
310
- });
311
- P.deleteProperty = function(e, t) {
312
- return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && f(13), P.set.call(this, e, t, void 0);
313
- };
314
- P.set = function(e, t, r) {
315
- return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && f(14), M.set.call(this, e[0], t, r, e[0]);
316
- };
317
- function F(e, t) {
318
- const r = e[u];
319
- return (r ? d(r) : e)[t];
320
- }
321
- function ne(e, t, r) {
322
- var i;
323
- const n = H(t, r);
324
- return n ? "value" in n ? n.value : (
325
- // This is a very special case, if the prop is a getter defined by the
326
- // prototype, we should invoke it with the draft as context!
327
- (i = n.get) == null ? void 0 : i.call(e.draft_)
328
- ) : void 0;
329
- }
330
- function H(e, t) {
331
- if (!(t in e))
332
- return;
333
- let r = m(e);
334
- for (; r; ) {
335
- const n = Object.getOwnPropertyDescriptor(r, t);
336
- if (n)
337
- return n;
338
- r = m(r);
339
- }
340
- }
341
- function I(e) {
342
- e.modified_ || (e.modified_ = !0, e.parent_ && I(e.parent_));
343
- }
344
- function E(e) {
345
- e.copy_ || (e.copy_ = N(
346
- e.base_,
347
- e.scope_.immer_.useStrictShallowCopy_
348
- ));
349
- }
350
- var ie = class {
351
- constructor(e) {
352
- this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.produce = (t, r, n) => {
353
- if (typeof t == "function" && typeof r != "function") {
354
- const o = r;
355
- r = t;
356
- const s = this;
357
- return function(l = o, ...q) {
358
- return s.produce(l, (J) => r.call(this, J, ...q));
359
- };
360
- }
361
- typeof r != "function" && f(6), n !== void 0 && typeof n != "function" && f(7);
362
- let i;
363
- if (_(t)) {
364
- const o = j(this), s = k(t, void 0);
365
- let c = !0;
366
- try {
367
- i = r(s), c = !1;
368
- } finally {
369
- c ? v(o) : C(o);
370
- }
371
- return x(o, n), $(i, o);
372
- } else if (!t || typeof t != "object") {
373
- if (i = r(t), i === void 0 && (i = t), i === W && (i = void 0), this.autoFreeze_ && T(i, !0), n) {
374
- const o = [], s = [];
375
- y("Patches").generateReplacementPatches_(t, i, o, s), n(o, s);
376
- }
377
- return i;
378
- } else
379
- f(1, t);
380
- }, this.produceWithPatches = (t, r) => {
381
- if (typeof t == "function")
382
- return (s, ...c) => this.produceWithPatches(s, (l) => t(l, ...c));
383
- let n, i;
384
- return [this.produce(t, r, (s, c) => {
385
- n = s, i = c;
386
- }), n, i];
387
- }, typeof (e == null ? void 0 : e.autoFreeze) == "boolean" && this.setAutoFreeze(e.autoFreeze), typeof (e == null ? void 0 : e.useStrictShallowCopy) == "boolean" && this.setUseStrictShallowCopy(e.useStrictShallowCopy);
388
- }
389
- createDraft(e) {
390
- _(e) || f(8), h(e) && (e = oe(e));
391
- const t = j(this), r = k(e, void 0);
392
- return r[u].isManual_ = !0, C(t), r;
393
- }
394
- finishDraft(e, t) {
395
- const r = e && e[u];
396
- (!r || !r.isManual_) && f(9);
397
- const { scope_: n } = r;
398
- return x(n, t), $(void 0, n);
399
- }
400
- /**
401
- * Pass true to automatically freeze all copies created by Immer.
402
- *
403
- * By default, auto-freezing is enabled.
404
- */
405
- setAutoFreeze(e) {
406
- this.autoFreeze_ = e;
407
- }
408
- /**
409
- * Pass true to enable strict shallow copy.
410
- *
411
- * By default, immer does not copy the object descriptors such as getter, setter and non-enumrable properties.
412
- */
413
- setUseStrictShallowCopy(e) {
414
- this.useStrictShallowCopy_ = e;
415
- }
416
- applyPatches(e, t) {
417
- let r;
418
- for (r = t.length - 1; r >= 0; r--) {
419
- const i = t[r];
420
- if (i.path.length === 0 && i.op === "replace") {
421
- e = i.value;
422
- break;
423
- }
424
- }
425
- r > -1 && (t = t.slice(r + 1));
426
- const n = y("Patches").applyPatches_;
427
- return h(e) ? n(e, t) : this.produce(
428
- e,
429
- (i) => n(i, t)
430
- );
431
- }
432
- };
433
- function k(e, t) {
434
- const r = O(e) ? y("MapSet").proxyMap_(e, t) : D(e) ? y("MapSet").proxySet_(e, t) : re(e, t);
435
- return (t ? t.scope_ : G()).drafts_.push(r), r;
436
- }
437
- function oe(e) {
438
- return h(e) || f(10, e), X(e);
439
- }
440
- function X(e) {
441
- if (!_(e) || S(e))
442
- return e;
443
- const t = e[u];
444
- let r;
445
- if (t) {
446
- if (!t.modified_)
447
- return t.base_;
448
- t.finalized_ = !0, r = N(e, t.scope_.immer_.useStrictShallowCopy_);
449
- } else
450
- r = N(e, !0);
451
- return b(r, (n, i) => {
452
- B(r, n, X(i));
453
- }), t && (t.finalized_ = !1), r;
454
- }
455
- var a = new ie(), se = a.produce;
456
- a.produceWithPatches.bind(
457
- a
458
- );
459
- a.setAutoFreeze.bind(a);
460
- a.setUseStrictShallowCopy.bind(a);
461
- a.applyPatches.bind(a);
462
- a.createDraft.bind(a);
463
- a.finishDraft.bind(a);
1
+ import { produce as f } from "./index.es185.js";
2
+ const p = (n) => (m, o, t) => (t.setState = (e, r, ...c) => {
3
+ const i = typeof e == "function" ? f(e) : e;
4
+ return m(i, r, ...c);
5
+ }, n(t.setState, o, t)), S = p;
464
6
  export {
465
- ie as Immer,
466
- oe as current,
467
- T as freeze,
468
- R as immerable,
469
- h as isDraft,
470
- _ as isDraftable,
471
- W as nothing,
472
- se as produce
7
+ S as immer
473
8
  };
package/index.es205.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { commonjsGlobal as pi } from "./index.es196.js";
2
- import { commonjsRequire as Oi } from "./index.es282.js";
3
- import { __module as Ot } from "./index.es283.js";
2
+ import { commonjsRequire as Oi } from "./index.es290.js";
3
+ import { __module as Ot } from "./index.es291.js";
4
4
  var vs;
5
5
  function Wi() {
6
6
  return vs ? Ot.exports : (vs = 1, function(ze, Ti) {
package/index.es225.js CHANGED
@@ -1,7 +1,7 @@
1
- import a from "./index.es463.js";
2
- import P from "./index.es464.js";
3
- import S from "./index.es465.js";
4
- import c from "./index.es460.js";
1
+ import a from "./index.es470.js";
2
+ import P from "./index.es471.js";
3
+ import S from "./index.es472.js";
4
+ import c from "./index.es473.js";
5
5
  function k(r) {
6
6
  var t;
7
7
  const {
package/index.es231.js CHANGED
@@ -1,4 +1,4 @@
1
- import s from "./index.es441.js";
1
+ import s from "./index.es414.js";
2
2
  const t = {
3
3
  active: "active",
4
4
  checked: "checked",
package/index.es236.js CHANGED
@@ -1,10 +1,100 @@
1
- import { constructFrom as t } from "./index.es237.js";
2
- import { toDate as c } from "./index.es238.js";
3
- function N(f, a, r) {
4
- const e = c(f, r == null ? void 0 : r.in);
5
- return isNaN(a) ? t((r == null ? void 0 : r.in) || f, NaN) : (a && e.setDate(e.getDate() + a), e);
6
- }
1
+ const u = {
2
+ lessThanXSeconds: {
3
+ one: "أقل من ثانية واحدة",
4
+ two: "أقل من ثانتين",
5
+ threeToTen: "أقل من {{count}} ثواني",
6
+ other: "أقل من {{count}} ثانية"
7
+ },
8
+ xSeconds: {
9
+ one: "ثانية واحدة",
10
+ two: "ثانتين",
11
+ threeToTen: "{{count}} ثواني",
12
+ other: "{{count}} ثانية"
13
+ },
14
+ halfAMinute: "نصف دقيقة",
15
+ lessThanXMinutes: {
16
+ one: "أقل من دقيقة",
17
+ two: "أقل من دقيقتين",
18
+ threeToTen: "أقل من {{count}} دقائق",
19
+ other: "أقل من {{count}} دقيقة"
20
+ },
21
+ xMinutes: {
22
+ one: "دقيقة واحدة",
23
+ two: "دقيقتين",
24
+ threeToTen: "{{count}} دقائق",
25
+ other: "{{count}} دقيقة"
26
+ },
27
+ aboutXHours: {
28
+ one: "ساعة واحدة تقريباً",
29
+ two: "ساعتين تقريباً",
30
+ threeToTen: "{{count}} ساعات تقريباً",
31
+ other: "{{count}} ساعة تقريباً"
32
+ },
33
+ xHours: {
34
+ one: "ساعة واحدة",
35
+ two: "ساعتين",
36
+ threeToTen: "{{count}} ساعات",
37
+ other: "{{count}} ساعة"
38
+ },
39
+ xDays: {
40
+ one: "يوم واحد",
41
+ two: "يومين",
42
+ threeToTen: "{{count}} أيام",
43
+ other: "{{count}} يوم"
44
+ },
45
+ aboutXWeeks: {
46
+ one: "أسبوع واحد تقريباً",
47
+ two: "أسبوعين تقريباً",
48
+ threeToTen: "{{count}} أسابيع تقريباً",
49
+ other: "{{count}} أسبوع تقريباً"
50
+ },
51
+ xWeeks: {
52
+ one: "أسبوع واحد",
53
+ two: "أسبوعين",
54
+ threeToTen: "{{count}} أسابيع",
55
+ other: "{{count}} أسبوع"
56
+ },
57
+ aboutXMonths: {
58
+ one: "شهر واحد تقريباً",
59
+ two: "شهرين تقريباً",
60
+ threeToTen: "{{count}} أشهر تقريباً",
61
+ other: "{{count}} شهر تقريباً"
62
+ },
63
+ xMonths: {
64
+ one: "شهر واحد",
65
+ two: "شهرين",
66
+ threeToTen: "{{count}} أشهر",
67
+ other: "{{count}} شهر"
68
+ },
69
+ aboutXYears: {
70
+ one: "عام واحد تقريباً",
71
+ two: "عامين تقريباً",
72
+ threeToTen: "{{count}} أعوام تقريباً",
73
+ other: "{{count}} عام تقريباً"
74
+ },
75
+ xYears: {
76
+ one: "عام واحد",
77
+ two: "عامين",
78
+ threeToTen: "{{count}} أعوام",
79
+ other: "{{count}} عام"
80
+ },
81
+ overXYears: {
82
+ one: "أكثر من عام",
83
+ two: "أكثر من عامين",
84
+ threeToTen: "أكثر من {{count}} أعوام",
85
+ other: "أكثر من {{count}} عام"
86
+ },
87
+ almostXYears: {
88
+ one: "عام واحد تقريباً",
89
+ two: "عامين تقريباً",
90
+ threeToTen: "{{count}} أعوام تقريباً",
91
+ other: "{{count}} عام تقريباً"
92
+ }
93
+ }, c = (r, t, n) => {
94
+ let e;
95
+ const o = u[r];
96
+ return typeof o == "string" ? e = o : t === 1 ? e = o.one : t === 2 ? e = o.two : t <= 10 ? e = o.threeToTen.replace("{{count}}", String(t)) : e = o.other.replace("{{count}}", String(t)), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "في خلال " + e : "منذ " + e : e;
97
+ };
7
98
  export {
8
- N as addDays,
9
- N as default
99
+ c as formatDistance
10
100
  };
package/index.es237.js CHANGED
@@ -1,8 +1,33 @@
1
- import { constructFromSymbol as o } from "./index.es239.js";
2
- function c(r, n) {
3
- return typeof r == "function" ? r(n) : r && typeof r == "object" && o in r ? r[o](n) : r instanceof Date ? new r.constructor(n) : new Date(n);
4
- }
1
+ import { buildFormatLongFn as t } from "./index.es312.js";
2
+ const m = {
3
+ full: "EEEE, MMMM do, y",
4
+ long: "MMMM do, y",
5
+ medium: "MMM d, y",
6
+ short: "MM/dd/yyyy"
7
+ }, o = {
8
+ full: "h:mm:ss a zzzz",
9
+ long: "h:mm:ss a z",
10
+ medium: "h:mm:ss a",
11
+ short: "h:mm a"
12
+ }, a = {
13
+ full: "{{date}} 'عند' {{time}}",
14
+ long: "{{date}} 'عند' {{time}}",
15
+ medium: "{{date}}, {{time}}",
16
+ short: "{{date}}, {{time}}"
17
+ }, e = {
18
+ date: t({
19
+ formats: m,
20
+ defaultWidth: "full"
21
+ }),
22
+ time: t({
23
+ formats: o,
24
+ defaultWidth: "full"
25
+ }),
26
+ dateTime: t({
27
+ formats: a,
28
+ defaultWidth: "full"
29
+ })
30
+ };
5
31
  export {
6
- c as constructFrom,
7
- c as default
32
+ e as formatLong
8
33
  };
package/index.es238.js CHANGED
@@ -1,8 +1,11 @@
1
- import { constructFrom as r } from "./index.es237.js";
2
- function e(t, o) {
3
- return r(o || t, t);
4
- }
1
+ const t = {
2
+ lastWeek: "'أخر' eeee 'عند' p",
3
+ yesterday: "'أمس عند' p",
4
+ today: "'اليوم عند' p",
5
+ tomorrow: "'غداً عند' p",
6
+ nextWeek: "eeee 'عند' p",
7
+ other: "P"
8
+ }, r = (e, o, a, p) => t[e];
5
9
  export {
6
- e as default,
7
- e as toDate
10
+ r as formatRelative
8
11
  };