mada-design-system 0.5.8 → 0.5.10

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 (290) hide show
  1. package/index.cjs121.js +1 -1
  2. package/index.cjs122.js +1 -1
  3. package/index.cjs123.js +1 -1
  4. package/index.cjs124.js +1 -1
  5. package/index.cjs128.js +1 -1
  6. package/index.cjs177.js +1 -1
  7. package/index.cjs183.js +1 -1
  8. package/index.cjs192.js +1 -1
  9. package/index.cjs195.js +1 -1
  10. package/index.cjs196.js +1 -1
  11. package/index.cjs199.js +1 -1
  12. package/index.cjs200.js +1 -1
  13. package/index.cjs202.js +1 -1
  14. package/index.cjs213.js +1 -1
  15. package/index.cjs214.js +1 -1
  16. package/index.cjs215.js +1 -1
  17. package/index.cjs216.js +1 -1
  18. package/index.cjs217.js +1 -1
  19. package/index.cjs228.js +1 -1
  20. package/index.cjs229.js +1 -1
  21. package/index.cjs231.js +1 -1
  22. package/index.cjs235.js +1 -1
  23. package/index.cjs236.js +1 -1
  24. package/index.cjs237.js +1 -1
  25. package/index.cjs238.js +1 -1
  26. package/index.cjs239.js +1 -1
  27. package/index.cjs240.js +1 -1
  28. package/index.cjs241.js +1 -1
  29. package/index.cjs242.js +1 -1
  30. package/index.cjs243.js +1 -1
  31. package/index.cjs244.js +1 -1
  32. package/index.cjs252.js +1 -1
  33. package/index.cjs254.js +1 -1
  34. package/index.cjs255.js +1 -1
  35. package/index.cjs256.js +1 -1
  36. package/index.cjs257.js +1 -1
  37. package/index.cjs259.js +1 -1
  38. package/index.cjs263.js +1 -1
  39. package/index.cjs264.js +1 -1
  40. package/index.cjs272.js +1 -1
  41. package/index.cjs273.js +1 -1
  42. package/index.cjs279.js +1 -1
  43. package/index.cjs280.js +1 -1
  44. package/index.cjs281.js +1 -1
  45. package/index.cjs282.js +1 -1
  46. package/index.cjs284.js +1 -1
  47. package/index.cjs287.js +1 -1
  48. package/index.cjs288.js +1 -1
  49. package/index.cjs289.js +1 -1
  50. package/index.cjs290.js +1 -1
  51. package/index.cjs292.js +1 -1
  52. package/index.cjs294.js +1 -1
  53. package/index.cjs296.js +1 -1
  54. package/index.cjs297.js +1 -1
  55. package/index.cjs298.js +1 -1
  56. package/index.cjs299.js +1 -1
  57. package/index.cjs300.js +1 -1
  58. package/index.cjs301.js +1 -1
  59. package/index.cjs302.js +1 -1
  60. package/index.cjs303.js +1 -1
  61. package/index.cjs304.js +1 -1
  62. package/index.cjs307.js +1 -1
  63. package/index.cjs316.js +1 -1
  64. package/index.cjs322.js +1 -1
  65. package/index.cjs323.js +1 -1
  66. package/index.cjs324.js +1 -1
  67. package/index.cjs325.js +1 -1
  68. package/index.cjs326.js +1 -1
  69. package/index.cjs327.js +1 -1
  70. package/index.cjs328.js +1 -1
  71. package/index.cjs329.js +1 -1
  72. package/index.cjs330.js +1 -1
  73. package/index.cjs331.js +1 -1
  74. package/index.cjs332.js +1 -1
  75. package/index.cjs333.js +1 -1
  76. package/index.cjs334.js +1 -1
  77. package/index.cjs335.js +1 -1
  78. package/index.cjs336.js +1 -1
  79. package/index.cjs337.js +1 -1
  80. package/index.cjs338.js +1 -1
  81. package/index.cjs339.js +1 -1
  82. package/index.cjs340.js +1 -1
  83. package/index.cjs341.js +1 -1
  84. package/index.cjs342.js +1 -1
  85. package/index.cjs343.js +1 -1
  86. package/index.cjs344.js +1 -1
  87. package/index.cjs345.js +1 -1
  88. package/index.cjs346.js +1 -1
  89. package/index.cjs347.js +1 -1
  90. package/index.cjs348.js +1 -1
  91. package/index.cjs349.js +1 -1
  92. package/index.cjs350.js +1 -1
  93. package/index.cjs351.js +1 -1
  94. package/index.cjs352.js +1 -1
  95. package/index.cjs353.js +1 -1
  96. package/index.cjs354.js +1 -1
  97. package/index.cjs355.js +1 -1
  98. package/index.cjs356.js +1 -1
  99. package/index.cjs357.js +1 -1
  100. package/index.cjs358.js +1 -1
  101. package/index.cjs359.js +1 -1
  102. package/index.cjs360.js +1 -1
  103. package/index.cjs371.js +1 -1
  104. package/index.cjs372.js +1 -1
  105. package/index.cjs373.js +1 -1
  106. package/index.cjs374.js +1 -1
  107. package/index.cjs377.js +1 -1
  108. package/index.cjs386.js +1 -1
  109. package/index.cjs387.js +1 -1
  110. package/index.cjs388.js +1 -1
  111. package/index.cjs389.js +1 -1
  112. package/index.cjs390.js +1 -1
  113. package/index.cjs391.js +1 -1
  114. package/index.cjs392.js +2 -1
  115. package/index.cjs393.js +1 -1
  116. package/index.cjs394.js +1 -1
  117. package/index.cjs395.js +1 -2
  118. package/index.cjs396.js +1 -1
  119. package/index.cjs397.js +1 -1
  120. package/index.cjs398.js +1 -1
  121. package/index.cjs399.js +1 -1
  122. package/index.cjs4.js +1 -1
  123. package/index.cjs400.js +1 -1
  124. package/index.cjs401.js +1 -1
  125. package/index.cjs404.js +1 -1
  126. package/index.cjs405.js +1 -1
  127. package/index.cjs408.js +1 -1
  128. package/index.cjs410.js +1 -1
  129. package/index.cjs414.js +1 -1
  130. package/index.cjs415.js +1 -1
  131. package/index.cjs416.js +1 -1
  132. package/index.cjs417.js +1 -1
  133. package/index.cjs418.js +1 -1
  134. package/index.cjs419.js +1 -1
  135. package/index.cjs420.js +1 -1
  136. package/index.cjs421.js +1 -1
  137. package/index.cjs422.js +1 -1
  138. package/index.cjs423.js +1 -1
  139. package/index.cjs424.js +1 -1
  140. package/index.cjs425.js +1 -1
  141. package/index.cjs426.js +1 -1
  142. package/index.cjs427.js +1 -1
  143. package/index.cjs46.js +1 -1
  144. package/index.cjs9.js +1 -1
  145. package/index.es.d.ts +10 -6
  146. package/index.es121.js +1 -1
  147. package/index.es122.js +1 -1
  148. package/index.es123.js +1 -1
  149. package/index.es124.js +1 -1
  150. package/index.es128.js +1 -1
  151. package/index.es177.js +3 -3
  152. package/index.es183.js +1 -1
  153. package/index.es192.js +2 -2
  154. package/index.es195.js +37 -9
  155. package/index.es196.js +9 -37
  156. package/index.es199.js +1 -1
  157. package/index.es200.js +1 -1
  158. package/index.es202.js +1 -1
  159. package/index.es213.js +1 -1
  160. package/index.es214.js +4 -4
  161. package/index.es215.js +1 -1
  162. package/index.es216.js +1 -1
  163. package/index.es217.js +3 -3
  164. package/index.es228.js +2 -2
  165. package/index.es229.js +3 -3
  166. package/index.es231.js +1 -1
  167. package/index.es235.js +12 -3
  168. package/index.es236.js +25 -2
  169. package/index.es237.js +10 -12
  170. package/index.es238.js +38 -24
  171. package/index.es239.js +1997 -8
  172. package/index.es240.js +6 -38
  173. package/index.es241.js +71 -1999
  174. package/index.es242.js +24 -6
  175. package/index.es243.js +3 -71
  176. package/index.es244.js +2 -25
  177. package/index.es252.js +1 -1
  178. package/index.es254.js +3 -3
  179. package/index.es255.js +4 -4
  180. package/index.es256.js +2 -2
  181. package/index.es257.js +4 -4
  182. package/index.es259.js +2 -2
  183. package/index.es263.js +4 -4
  184. package/index.es264.js +1 -1
  185. package/index.es272.js +1 -1
  186. package/index.es273.js +1 -1
  187. package/index.es279.js +1 -1
  188. package/index.es280.js +1 -1
  189. package/index.es281.js +9 -9
  190. package/index.es282.js +1 -1
  191. package/index.es284.js +1 -1
  192. package/index.es287.js +5 -5
  193. package/index.es288.js +1 -1
  194. package/index.es289.js +5 -5
  195. package/index.es290.js +4 -4
  196. package/index.es292.js +1 -1
  197. package/index.es294.js +4 -4
  198. package/index.es296.js +1 -1
  199. package/index.es297.js +8 -120
  200. package/index.es298.js +351 -7
  201. package/index.es299.js +3 -8
  202. package/index.es300.js +206 -8
  203. package/index.es301.js +107 -338
  204. package/index.es302.js +7 -3
  205. package/index.es303.js +8 -206
  206. package/index.es304.js +1 -1
  207. package/index.es307.js +1 -1
  208. package/index.es316.js +1 -1
  209. package/index.es322.js +2 -6
  210. package/index.es323.js +2 -24
  211. package/index.es324.js +12 -20
  212. package/index.es325.js +143 -32
  213. package/index.es326.js +43 -6
  214. package/index.es327.js +2 -2
  215. package/index.es328.js +40 -6
  216. package/index.es329.js +7 -18
  217. package/index.es330.js +69 -60
  218. package/index.es331.js +54 -15
  219. package/index.es332.js +7 -3
  220. package/index.es333.js +76 -2
  221. package/index.es334.js +24 -2
  222. package/index.es335.js +60 -11
  223. package/index.es336.js +5 -143
  224. package/index.es337.js +6 -42
  225. package/index.es338.js +32 -3
  226. package/index.es339.js +57 -39
  227. package/index.es340.js +12 -7
  228. package/index.es341.js +4 -76
  229. package/index.es342.js +8 -53
  230. package/index.es343.js +55 -8
  231. package/index.es344.js +4 -76
  232. package/index.es345.js +5 -24
  233. package/index.es346.js +17 -62
  234. package/index.es347.js +17 -5
  235. package/index.es348.js +17 -59
  236. package/index.es349.js +17 -13
  237. package/index.es350.js +17 -4
  238. package/index.es351.js +17 -10
  239. package/index.es352.js +17 -55
  240. package/index.es353.js +6 -5
  241. package/index.es354.js +24 -17
  242. package/index.es355.js +21 -17
  243. package/index.es356.js +6 -17
  244. package/index.es357.js +3 -17
  245. package/index.es358.js +67 -17
  246. package/index.es359.js +19 -17
  247. package/index.es360.js +16 -17
  248. package/index.es371.js +6 -15
  249. package/index.es372.js +29 -6
  250. package/index.es373.js +14 -28
  251. package/index.es374.js +1 -1
  252. package/index.es377.js +1 -1
  253. package/index.es386.js +11 -2
  254. package/index.es387.js +3 -66
  255. package/index.es388.js +8 -65
  256. package/index.es389.js +3 -8
  257. package/index.es390.js +45 -3
  258. package/index.es391.js +23 -44
  259. package/index.es392.js +76 -23
  260. package/index.es393.js +256 -8
  261. package/index.es394.js +31 -3
  262. package/index.es395.js +6 -78
  263. package/index.es396.js +120 -247
  264. package/index.es397.js +17 -34
  265. package/index.es398.js +7 -6
  266. package/index.es399.js +2 -132
  267. package/index.es4.js +61 -57
  268. package/index.es400.js +69 -17
  269. package/index.es401.js +65 -6
  270. package/index.es404.js +1 -1
  271. package/index.es405.js +2 -2
  272. package/index.es408.js +2 -2
  273. package/index.es410.js +1 -1
  274. package/index.es414.js +8 -2
  275. package/index.es415.js +7 -2
  276. package/index.es416.js +18 -247
  277. package/index.es417.js +51 -20
  278. package/index.es418.js +248 -50
  279. package/index.es419.js +42 -6
  280. package/index.es420.js +14 -41
  281. package/index.es421.js +10 -16
  282. package/index.es422.js +48 -10
  283. package/index.es423.js +25 -47
  284. package/index.es424.js +127 -24
  285. package/index.es425.js +102 -119
  286. package/index.es426.js +2 -112
  287. package/index.es427.js +2 -8
  288. package/index.es46.js +139 -137
  289. package/index.es9.js +1 -1
  290. package/package.json +1 -1
package/index.es387.js CHANGED
@@ -1,69 +1,6 @@
1
- import { __exports as e } from "./index.es414.js";
2
- var R;
3
- function A() {
4
- if (R)
5
- return e;
6
- R = 1;
7
- var T = Symbol.for("react.transitional.element"), l = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.consumer"), f = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), a = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), c = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), S = Symbol.for("react.view_transition"), C = Symbol.for("react.client.reference");
8
- function t(r) {
9
- if (typeof r == "object" && r !== null) {
10
- var m = r.$$typeof;
11
- switch (m) {
12
- case T:
13
- switch (r = r.type, r) {
14
- case n:
15
- case i:
16
- case o:
17
- case a:
18
- case E:
19
- case S:
20
- return r;
21
- default:
22
- switch (r = r && r.$$typeof, r) {
23
- case f:
24
- case u:
25
- case _:
26
- case c:
27
- return r;
28
- case s:
29
- return r;
30
- default:
31
- return m;
32
- }
33
- }
34
- case l:
35
- return m;
36
- }
37
- }
38
- }
39
- return e.ContextConsumer = s, e.ContextProvider = f, e.Element = T, e.ForwardRef = u, e.Fragment = n, e.Lazy = _, e.Memo = c, e.Portal = l, e.Profiler = i, e.StrictMode = o, e.Suspense = a, e.SuspenseList = E, e.isContextConsumer = function(r) {
40
- return t(r) === s;
41
- }, e.isContextProvider = function(r) {
42
- return t(r) === f;
43
- }, e.isElement = function(r) {
44
- return typeof r == "object" && r !== null && r.$$typeof === T;
45
- }, e.isForwardRef = function(r) {
46
- return t(r) === u;
47
- }, e.isFragment = function(r) {
48
- return t(r) === n;
49
- }, e.isLazy = function(r) {
50
- return t(r) === _;
51
- }, e.isMemo = function(r) {
52
- return t(r) === c;
53
- }, e.isPortal = function(r) {
54
- return t(r) === l;
55
- }, e.isProfiler = function(r) {
56
- return t(r) === i;
57
- }, e.isStrictMode = function(r) {
58
- return t(r) === o;
59
- }, e.isSuspense = function(r) {
60
- return t(r) === a;
61
- }, e.isSuspenseList = function(r) {
62
- return t(r) === E;
63
- }, e.isValidElementType = function(r) {
64
- return typeof r == "string" || typeof r == "function" || r === n || r === i || r === o || r === a || r === E || typeof r == "object" && r !== null && (r.$$typeof === _ || r.$$typeof === c || r.$$typeof === f || r.$$typeof === s || r.$$typeof === u || r.$$typeof === C || r.getModuleId !== void 0);
65
- }, e.typeOf = t, e;
1
+ function n(t) {
2
+ return typeof t == "string";
66
3
  }
67
4
  export {
68
- A as __require
5
+ n as default
69
6
  };
package/index.es388.js CHANGED
@@ -1,68 +1,11 @@
1
- import { __exports as e } from "./index.es415.js";
2
- var R;
3
- function d() {
4
- return R ? e : (R = 1, process.env.NODE_ENV !== "production" && function() {
5
- function t(r) {
6
- if (typeof r == "object" && r !== null) {
7
- var m = r.$$typeof;
8
- switch (m) {
9
- case l:
10
- switch (r = r.type, r) {
11
- case n:
12
- case s:
13
- case o:
14
- case a:
15
- case E:
16
- case S:
17
- return r;
18
- default:
19
- switch (r = r && r.$$typeof, r) {
20
- case f:
21
- case u:
22
- case _:
23
- case c:
24
- return r;
25
- case i:
26
- return r;
27
- default:
28
- return m;
29
- }
30
- }
31
- case T:
32
- return m;
33
- }
34
- }
35
- }
36
- var l = Symbol.for("react.transitional.element"), T = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), i = Symbol.for("react.consumer"), f = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), a = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), c = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), S = Symbol.for("react.view_transition"), C = Symbol.for("react.client.reference");
37
- e.ContextConsumer = i, e.ContextProvider = f, e.Element = l, e.ForwardRef = u, e.Fragment = n, e.Lazy = _, e.Memo = c, e.Portal = T, e.Profiler = s, e.StrictMode = o, e.Suspense = a, e.SuspenseList = E, e.isContextConsumer = function(r) {
38
- return t(r) === i;
39
- }, e.isContextProvider = function(r) {
40
- return t(r) === f;
41
- }, e.isElement = function(r) {
42
- return typeof r == "object" && r !== null && r.$$typeof === l;
43
- }, e.isForwardRef = function(r) {
44
- return t(r) === u;
45
- }, e.isFragment = function(r) {
46
- return t(r) === n;
47
- }, e.isLazy = function(r) {
48
- return t(r) === _;
49
- }, e.isMemo = function(r) {
50
- return t(r) === c;
51
- }, e.isPortal = function(r) {
52
- return t(r) === T;
53
- }, e.isProfiler = function(r) {
54
- return t(r) === s;
55
- }, e.isStrictMode = function(r) {
56
- return t(r) === o;
57
- }, e.isSuspense = function(r) {
58
- return t(r) === a;
59
- }, e.isSuspenseList = function(r) {
60
- return t(r) === E;
61
- }, e.isValidElementType = function(r) {
62
- return typeof r == "string" || typeof r == "function" || r === n || r === s || r === o || r === a || r === E || typeof r == "object" && r !== null && (r.$$typeof === _ || r.$$typeof === c || r.$$typeof === f || r.$$typeof === i || r.$$typeof === u || r.$$typeof === C || r.getModuleId !== void 0);
63
- }, e.typeOf = t;
64
- }(), e);
1
+ function u(e, f = []) {
2
+ if (e === void 0)
3
+ return {};
4
+ const t = {};
5
+ return Object.keys(e).filter((n) => n.match(/^on[A-Z]/) && typeof e[n] == "function" && !f.includes(n)).forEach((n) => {
6
+ t[n] = e[n];
7
+ }), t;
65
8
  }
66
9
  export {
67
- d as __require
10
+ u as default
68
11
  };
package/index.es389.js CHANGED
@@ -1,11 +1,6 @@
1
- function u(e, f = []) {
2
- if (e === void 0)
3
- return {};
4
- const t = {};
5
- return Object.keys(e).filter((n) => n.match(/^on[A-Z]/) && typeof e[n] == "function" && !f.includes(n)).forEach((n) => {
6
- t[n] = e[n];
7
- }), t;
1
+ function r(e, t, f) {
2
+ return typeof e == "function" ? e(t, f) : e;
8
3
  }
9
4
  export {
10
- u as default
5
+ r as default
11
6
  };
package/index.es390.js CHANGED
@@ -1,6 +1,48 @@
1
- function r(e, t, f) {
2
- return typeof e == "function" ? e(t, f) : e;
1
+ import { clsx as v } from "./index.es102.js";
2
+ import k from "./index.es388.js";
3
+ import H from "./index.es429.js";
4
+ function W(j) {
5
+ const {
6
+ getSlotProps: y,
7
+ additionalProps: e,
8
+ externalSlotProps: s,
9
+ externalForwardedProps: c,
10
+ className: n
11
+ } = j;
12
+ if (!y) {
13
+ const h = v(e == null ? void 0 : e.className, n, c == null ? void 0 : c.className, s == null ? void 0 : s.className), u = {
14
+ ...e == null ? void 0 : e.style,
15
+ ...c == null ? void 0 : c.style,
16
+ ...s == null ? void 0 : s.style
17
+ }, f = {
18
+ ...e,
19
+ ...c,
20
+ ...s
21
+ };
22
+ return h.length > 0 && (f.className = h), Object.keys(u).length > 0 && (f.style = u), {
23
+ props: f,
24
+ internalRef: void 0
25
+ };
26
+ }
27
+ const l = k({
28
+ ...c,
29
+ ...s
30
+ }), E = H(s), b = H(c), m = y(l), N = v(m == null ? void 0 : m.className, e == null ? void 0 : e.className, n, c == null ? void 0 : c.className, s == null ? void 0 : s.className), g = {
31
+ ...m == null ? void 0 : m.style,
32
+ ...e == null ? void 0 : e.style,
33
+ ...c == null ? void 0 : c.style,
34
+ ...s == null ? void 0 : s.style
35
+ }, t = {
36
+ ...m,
37
+ ...e,
38
+ ...b,
39
+ ...E
40
+ };
41
+ return N.length > 0 && (t.className = N), Object.keys(g).length > 0 && (t.style = g), {
42
+ props: t,
43
+ internalRef: m.ref
44
+ };
3
45
  }
4
46
  export {
5
- r as default
47
+ W as default
6
48
  };
package/index.es391.js CHANGED
@@ -1,48 +1,27 @@
1
- import { clsx as v } from "./index.es102.js";
2
- import k from "./index.es389.js";
3
- import H from "./index.es429.js";
4
- function W(j) {
5
- const {
6
- getSlotProps: y,
7
- additionalProps: e,
8
- externalSlotProps: s,
9
- externalForwardedProps: c,
10
- className: n
11
- } = j;
12
- if (!y) {
13
- const h = v(e == null ? void 0 : e.className, n, c == null ? void 0 : c.className, s == null ? void 0 : s.className), u = {
14
- ...e == null ? void 0 : e.style,
15
- ...c == null ? void 0 : c.style,
16
- ...s == null ? void 0 : s.style
17
- }, f = {
18
- ...e,
19
- ...c,
20
- ...s
1
+ import * as e from "react";
2
+ function i(...t) {
3
+ const r = e.useRef(void 0), o = e.useCallback((u) => {
4
+ const f = t.map((n) => {
5
+ if (n == null)
6
+ return null;
7
+ if (typeof n == "function") {
8
+ const c = n, l = c(u);
9
+ return typeof l == "function" ? l : () => {
10
+ c(null);
11
+ };
12
+ }
13
+ return n.current = u, () => {
14
+ n.current = null;
15
+ };
16
+ });
17
+ return () => {
18
+ f.forEach((n) => n == null ? void 0 : n());
21
19
  };
22
- return h.length > 0 && (f.className = h), Object.keys(u).length > 0 && (f.style = u), {
23
- props: f,
24
- internalRef: void 0
25
- };
26
- }
27
- const l = k({
28
- ...c,
29
- ...s
30
- }), E = H(s), b = H(c), m = y(l), N = v(m == null ? void 0 : m.className, e == null ? void 0 : e.className, n, c == null ? void 0 : c.className, s == null ? void 0 : s.className), g = {
31
- ...m == null ? void 0 : m.style,
32
- ...e == null ? void 0 : e.style,
33
- ...c == null ? void 0 : c.style,
34
- ...s == null ? void 0 : s.style
35
- }, t = {
36
- ...m,
37
- ...e,
38
- ...b,
39
- ...E
40
- };
41
- return N.length > 0 && (t.className = N), Object.keys(g).length > 0 && (t.style = g), {
42
- props: t,
43
- internalRef: m.ref
44
- };
20
+ }, t);
21
+ return e.useMemo(() => t.every((u) => u == null) ? null : (u) => {
22
+ r.current && (r.current(), r.current = void 0), u != null && (r.current = o(u));
23
+ }, t);
45
24
  }
46
25
  export {
47
- W as default
26
+ i as default
48
27
  };
package/index.es392.js CHANGED
@@ -1,27 +1,80 @@
1
- import * as e from "react";
2
- function i(...t) {
3
- const r = e.useRef(void 0), o = e.useCallback((u) => {
4
- const f = t.map((n) => {
5
- if (n == null)
6
- return null;
7
- if (typeof n == "function") {
8
- const c = n, l = c(u);
9
- return typeof l == "function" ? l : () => {
10
- c(null);
11
- };
1
+ import T from "./index.es196.js";
2
+ import * as _ from "react";
3
+ import L from "./index.es414.js";
4
+ import { getRegisteredStyles as A, registerStyles as I, insertStyles as z } from "./index.es394.js";
5
+ import { serializeStyles as D } from "./index.es396.js";
6
+ import { useInsertionEffectAlwaysWithSyncFallback as U } from "./index.es395.js";
7
+ import { w as V, T as x } from "./index.es343.js";
8
+ var Y = L, G = function(e) {
9
+ return e !== "theme";
10
+ }, C = function(e) {
11
+ return typeof e == "string" && // 96 is one less than the char code
12
+ // for "a" so this is checking that
13
+ // it's a lowercase character
14
+ e.charCodeAt(0) > 96 ? Y : G;
15
+ }, O = function(e, n, s) {
16
+ var r;
17
+ if (n) {
18
+ var a = n.shouldForwardProp;
19
+ r = e.__emotion_forwardProp && a ? function(l) {
20
+ return e.__emotion_forwardProp(l) && a(l);
21
+ } : a;
22
+ }
23
+ return typeof r != "function" && s && (r = e.__emotion_forwardProp), r;
24
+ };
25
+ var Q = function(e) {
26
+ var n = e.cache, s = e.serialized, r = e.isStringTag;
27
+ return I(n, s, r), U(function() {
28
+ return z(n, s, r);
29
+ }), null;
30
+ }, H = function f(e, n) {
31
+ if (process.env.NODE_ENV !== "production" && e === void 0)
32
+ throw new Error(`You are trying to create a styled element with an undefined component.
33
+ You may have forgotten to import it.`);
34
+ var s = e.__emotion_real === e, r = s && e.__emotion_base || e, a, l;
35
+ n !== void 0 && (a = n.label, l = n.target);
36
+ var h = O(e, n, s), g = h || C(r), y = !g("as");
37
+ return function() {
38
+ var i = arguments, u = s && e.__emotion_styles !== void 0 ? e.__emotion_styles.slice(0) : [];
39
+ if (a !== void 0 && u.push("label:" + a + ";"), i[0] == null || i[0].raw === void 0)
40
+ u.push.apply(u, i);
41
+ else {
42
+ process.env.NODE_ENV !== "production" && i[0][0], u.push(i[0][0]);
43
+ for (var R = i.length, m = 1; m < R; m++)
44
+ process.env.NODE_ENV !== "production" && i[0][m], u.push(i[m], i[0][m]);
45
+ }
46
+ var o = V(function(t, d, b) {
47
+ var S = y && t.as || r, c = "", P = [], v = t;
48
+ if (t.theme == null) {
49
+ v = {};
50
+ for (var N in t)
51
+ v[N] = t[N];
52
+ v.theme = _.useContext(x);
12
53
  }
13
- return n.current = u, () => {
14
- n.current = null;
15
- };
54
+ typeof t.className == "string" ? c = A(d.registered, P, t.className) : t.className != null && (c = t.className + " ");
55
+ var w = D(u.concat(P), d.registered, v);
56
+ c += d.key + "-" + w.name, l !== void 0 && (c += " " + l);
57
+ var F = y && h === void 0 ? C(S) : g, p = {};
58
+ for (var E in t)
59
+ y && E === "as" || // $FlowFixMe
60
+ F(E) && (p[E] = t[E]);
61
+ return p.className = c, p.ref = b, /* @__PURE__ */ _.createElement(_.Fragment, null, /* @__PURE__ */ _.createElement(Q, {
62
+ cache: d,
63
+ serialized: w,
64
+ isStringTag: typeof S == "string"
65
+ }), /* @__PURE__ */ _.createElement(S, p));
16
66
  });
17
- return () => {
18
- f.forEach((n) => n == null ? void 0 : n());
19
- };
20
- }, t);
21
- return e.useMemo(() => t.every((u) => u == null) ? null : (u) => {
22
- r.current && (r.current(), r.current = void 0), u != null && (r.current = o(u));
23
- }, t);
24
- }
67
+ return o.displayName = a !== void 0 ? a : "Styled(" + (typeof r == "string" ? r : r.displayName || r.name || "Component") + ")", o.defaultProps = e.defaultProps, o.__emotion_real = o, o.__emotion_base = r, o.__emotion_styles = u, o.__emotion_forwardProp = h, Object.defineProperty(o, "toString", {
68
+ value: function() {
69
+ return l === void 0 && process.env.NODE_ENV !== "production" ? "NO_COMPONENT_SELECTOR" : "." + l;
70
+ }
71
+ }), o.withComponent = function(t, d) {
72
+ return f(t, T({}, n, d, {
73
+ shouldForwardProp: O(o, d, !0)
74
+ })).apply(void 0, u);
75
+ }, o;
76
+ };
77
+ };
25
78
  export {
26
- i as default
79
+ H as default
27
80
  };
package/index.es393.js CHANGED
@@ -1,13 +1,261 @@
1
- import a from "./index.es394.js";
2
- function f(t, n, e) {
3
- return t === void 0 || a(t) ? n : {
4
- ...n,
5
- ownerState: {
6
- ...n.ownerState,
7
- ...e
1
+ import { w as x, T as g } from "./index.es343.js";
2
+ import * as u from "react";
3
+ import { insertStyles as w, registerStyles as E, getRegisteredStyles as N } from "./index.es394.js";
4
+ import { useInsertionEffectWithLayoutFallback as v, useInsertionEffectAlwaysWithSyncFallback as k } from "./index.es395.js";
5
+ import { serializeStyles as p } from "./index.es396.js";
6
+ import "./index.es397.js";
7
+ var _ = {
8
+ name: "@emotion/react",
9
+ version: "11.11.3",
10
+ main: "dist/emotion-react.cjs.js",
11
+ module: "dist/emotion-react.esm.js",
12
+ browser: {
13
+ "./dist/emotion-react.esm.js": "./dist/emotion-react.browser.esm.js"
14
+ },
15
+ exports: {
16
+ ".": {
17
+ module: {
18
+ worker: "./dist/emotion-react.worker.esm.js",
19
+ browser: "./dist/emotion-react.browser.esm.js",
20
+ default: "./dist/emotion-react.esm.js"
21
+ },
22
+ import: "./dist/emotion-react.cjs.mjs",
23
+ default: "./dist/emotion-react.cjs.js"
24
+ },
25
+ "./jsx-runtime": {
26
+ module: {
27
+ worker: "./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",
28
+ browser: "./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",
29
+ default: "./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"
30
+ },
31
+ import: "./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",
32
+ default: "./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"
33
+ },
34
+ "./_isolated-hnrs": {
35
+ module: {
36
+ worker: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",
37
+ browser: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",
38
+ default: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"
39
+ },
40
+ import: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",
41
+ default: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"
42
+ },
43
+ "./jsx-dev-runtime": {
44
+ module: {
45
+ worker: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",
46
+ browser: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",
47
+ default: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"
48
+ },
49
+ import: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",
50
+ default: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"
51
+ },
52
+ "./package.json": "./package.json",
53
+ "./types/css-prop": "./types/css-prop.d.ts",
54
+ "./macro": {
55
+ types: {
56
+ import: "./macro.d.mts",
57
+ default: "./macro.d.ts"
58
+ },
59
+ default: "./macro.js"
60
+ }
61
+ },
62
+ types: "types/index.d.ts",
63
+ files: [
64
+ "src",
65
+ "dist",
66
+ "jsx-runtime",
67
+ "jsx-dev-runtime",
68
+ "_isolated-hnrs",
69
+ "types/*.d.ts",
70
+ "macro.*"
71
+ ],
72
+ sideEffects: !1,
73
+ author: "Emotion Contributors",
74
+ license: "MIT",
75
+ scripts: {
76
+ "test:typescript": "dtslint types"
77
+ },
78
+ dependencies: {
79
+ "@babel/runtime": "^7.18.3",
80
+ "@emotion/babel-plugin": "^11.11.0",
81
+ "@emotion/cache": "^11.11.0",
82
+ "@emotion/serialize": "^1.1.3",
83
+ "@emotion/use-insertion-effect-with-fallbacks": "^1.0.1",
84
+ "@emotion/utils": "^1.2.1",
85
+ "@emotion/weak-memoize": "^0.3.1",
86
+ "hoist-non-react-statics": "^3.3.1"
87
+ },
88
+ peerDependencies: {
89
+ react: ">=16.8.0"
90
+ },
91
+ peerDependenciesMeta: {
92
+ "@types/react": {
93
+ optional: !0
94
+ }
95
+ },
96
+ devDependencies: {
97
+ "@definitelytyped/dtslint": "0.0.112",
98
+ "@emotion/css": "11.11.2",
99
+ "@emotion/css-prettifier": "1.1.3",
100
+ "@emotion/server": "11.11.0",
101
+ "@emotion/styled": "11.11.0",
102
+ "html-tag-names": "^1.1.2",
103
+ react: "16.14.0",
104
+ "svg-tag-names": "^1.1.1",
105
+ typescript: "^4.5.5"
106
+ },
107
+ repository: "https://github.com/emotion-js/emotion/tree/main/packages/react",
108
+ publishConfig: {
109
+ access: "public"
110
+ },
111
+ "umd:main": "dist/emotion-react.umd.min.js",
112
+ preconstruct: {
113
+ entrypoints: [
114
+ "./index.js",
115
+ "./jsx-runtime.js",
116
+ "./jsx-dev-runtime.js",
117
+ "./_isolated-hnrs.js"
118
+ ],
119
+ umdName: "emotionReact",
120
+ exports: {
121
+ envConditions: [
122
+ "browser",
123
+ "worker"
124
+ ],
125
+ extra: {
126
+ "./types/css-prop": "./types/css-prop.d.ts",
127
+ "./macro": {
128
+ types: {
129
+ import: "./macro.d.mts",
130
+ default: "./macro.d.ts"
131
+ },
132
+ default: "./macro.js"
133
+ }
134
+ }
135
+ }
136
+ }
137
+ }, j = !1, C = /* @__PURE__ */ x(function(i, e) {
138
+ process.env.NODE_ENV !== "production" && !j && // check for className as well since the user is
139
+ // probably using the custom createElement which
140
+ // means it will be turned into a className prop
141
+ // $FlowFixMe I don't really want to add it to the type since it shouldn't be used
142
+ (i.className || i.css) && (j = !0);
143
+ var s = i.styles, r = p([s], void 0, u.useContext(g)), o = u.useRef();
144
+ return v(function() {
145
+ var n = e.key + "-global", t = new e.sheet.constructor({
146
+ key: n,
147
+ nonce: e.sheet.nonce,
148
+ container: e.sheet.container,
149
+ speedy: e.sheet.isSpeedy
150
+ }), a = !1, l = document.querySelector('style[data-emotion="' + n + " " + r.name + '"]');
151
+ return e.sheet.tags.length && (t.before = e.sheet.tags[0]), l !== null && (a = !0, l.setAttribute("data-emotion", n), t.hydrate([l])), o.current = [t, a], function() {
152
+ t.flush();
153
+ };
154
+ }, [e]), v(function() {
155
+ var n = o.current, t = n[0], a = n[1];
156
+ if (a) {
157
+ n[1] = !1;
158
+ return;
159
+ }
160
+ if (r.next !== void 0 && w(e, r.next, !0), t.tags.length) {
161
+ var l = t.tags[t.tags.length - 1].nextElementSibling;
162
+ t.before = l, t.flush();
163
+ }
164
+ e.insert("", r, t, !1);
165
+ }, [e, r.name]), null;
166
+ });
167
+ process.env.NODE_ENV !== "production" && (C.displayName = "EmotionGlobal");
168
+ function O() {
169
+ for (var i = arguments.length, e = new Array(i), s = 0; s < i; s++)
170
+ e[s] = arguments[s];
171
+ return p(e);
172
+ }
173
+ var G = function() {
174
+ var e = O.apply(void 0, arguments), s = "animation-" + e.name;
175
+ return {
176
+ name: s,
177
+ styles: "@keyframes " + s + "{" + e.styles + "}",
178
+ anim: 1,
179
+ toString: function() {
180
+ return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
8
181
  }
9
182
  };
183
+ }, S = function i(e) {
184
+ for (var s = e.length, r = 0, o = ""; r < s; r++) {
185
+ var n = e[r];
186
+ if (n != null) {
187
+ var t = void 0;
188
+ switch (typeof n) {
189
+ case "boolean":
190
+ break;
191
+ case "object": {
192
+ if (Array.isArray(n))
193
+ t = i(n);
194
+ else {
195
+ process.env.NODE_ENV !== "production" && n.styles !== void 0 && n.name, t = "";
196
+ for (var a in n)
197
+ n[a] && a && (t && (t += " "), t += a);
198
+ }
199
+ break;
200
+ }
201
+ default:
202
+ t = n;
203
+ }
204
+ t && (o && (o += " "), o += t);
205
+ }
206
+ }
207
+ return o;
208
+ };
209
+ function D(i, e, s) {
210
+ var r = [], o = N(i, r, s);
211
+ return r.length < 2 ? s : o + e(r);
212
+ }
213
+ var z = function(e) {
214
+ var s = e.cache, r = e.serializedArr;
215
+ return k(function() {
216
+ for (var o = 0; o < r.length; o++)
217
+ w(s, r[o], !1);
218
+ }), null;
219
+ }, R = /* @__PURE__ */ x(function(i, e) {
220
+ var s = !1, r = [], o = function() {
221
+ if (s && process.env.NODE_ENV !== "production")
222
+ throw new Error("css can only be used during render");
223
+ for (var d = arguments.length, c = new Array(d), m = 0; m < d; m++)
224
+ c[m] = arguments[m];
225
+ var f = p(c, e.registered);
226
+ return r.push(f), E(e, f, !1), e.key + "-" + f.name;
227
+ }, n = function() {
228
+ if (s && process.env.NODE_ENV !== "production")
229
+ throw new Error("cx can only be used during render");
230
+ for (var d = arguments.length, c = new Array(d), m = 0; m < d; m++)
231
+ c[m] = arguments[m];
232
+ return D(e.registered, o, S(c));
233
+ }, t = {
234
+ css: o,
235
+ cx: n,
236
+ theme: u.useContext(g)
237
+ }, a = i.children(t);
238
+ return s = !0, /* @__PURE__ */ u.createElement(u.Fragment, null, /* @__PURE__ */ u.createElement(z, {
239
+ cache: e,
240
+ serializedArr: r
241
+ }), a);
242
+ });
243
+ process.env.NODE_ENV !== "production" && (R.displayName = "EmotionClassNames");
244
+ if (process.env.NODE_ENV !== "production") {
245
+ var h = !0, T = typeof jest < "u" || typeof vi < "u";
246
+ if (h && !T) {
247
+ var y = (
248
+ // $FlowIgnore
249
+ typeof globalThis < "u" ? globalThis : h ? window : global
250
+ ), b = "__EMOTION_REACT_" + _.version.split(".")[0] + "__";
251
+ y[b], y[b] = !0;
252
+ }
10
253
  }
11
254
  export {
12
- f as default
255
+ R as ClassNames,
256
+ C as Global,
257
+ g as ThemeContext,
258
+ O as css,
259
+ G as keyframes,
260
+ x as withEmotionCache
13
261
  };