mada-design-system 0.2.0 → 0.2.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 (317) hide show
  1. package/index.cjs116.js +1 -1
  2. package/index.cjs165.js +1 -1
  3. package/index.cjs166.js +1 -1
  4. package/index.cjs167.js +1 -1
  5. package/index.cjs168.js +1 -1
  6. package/index.cjs169.js +1 -1
  7. package/index.cjs183.js +1 -1
  8. package/index.cjs184.js +4 -1
  9. package/index.cjs185.js +1 -4
  10. package/index.cjs204.js +1 -1
  11. package/index.cjs205.js +1 -1
  12. package/index.cjs206.js +1 -1
  13. package/index.cjs207.js +1 -1
  14. package/index.cjs210.js +1 -1
  15. package/index.cjs218.js +1 -1
  16. package/index.cjs219.js +1 -1
  17. package/index.cjs220.js +1 -1
  18. package/index.cjs221.js +1 -1
  19. package/index.cjs222.js +1 -1
  20. package/index.cjs223.js +1 -1
  21. package/index.cjs224.js +1 -1
  22. package/index.cjs225.js +1 -1
  23. package/index.cjs226.js +1 -1
  24. package/index.cjs227.js +1 -1
  25. package/index.cjs232.js +1 -1
  26. package/index.cjs233.js +1 -1
  27. package/index.cjs234.js +1 -1
  28. package/index.cjs235.js +1 -1
  29. package/index.cjs237.js +1 -1
  30. package/index.cjs238.js +1 -1
  31. package/index.cjs239.js +1 -1
  32. package/index.cjs240.js +1 -1
  33. package/index.cjs242.js +1 -1
  34. package/index.cjs246.js +1 -1
  35. package/index.cjs247.js +1 -1
  36. package/index.cjs264.js +1 -1
  37. package/index.cjs270.js +1 -1
  38. package/index.cjs272.js +1 -1
  39. package/index.cjs273.js +1 -1
  40. package/index.cjs275.js +1 -1
  41. package/index.cjs277.js +1 -1
  42. package/index.cjs278.js +1 -1
  43. package/index.cjs279.js +1 -1
  44. package/index.cjs280.js +1 -1
  45. package/index.cjs281.js +1 -1
  46. package/index.cjs282.js +1 -1
  47. package/index.cjs283.js +3 -1
  48. package/index.cjs284.js +1 -1
  49. package/index.cjs285.js +1 -1
  50. package/index.cjs286.js +1 -1
  51. package/index.cjs287.js +1 -3
  52. package/index.cjs288.js +1 -1
  53. package/index.cjs289.js +1 -1
  54. package/index.cjs29.js +1 -1
  55. package/index.cjs290.js +1 -1
  56. package/index.cjs291.js +1 -1
  57. package/index.cjs292.js +1 -1
  58. package/index.cjs299.js +1 -1
  59. package/index.cjs300.js +1 -1
  60. package/index.cjs301.js +1 -1
  61. package/index.cjs302.js +1 -1
  62. package/index.cjs303.js +1 -1
  63. package/index.cjs304.js +1 -1
  64. package/index.cjs305.js +1 -1
  65. package/index.cjs306.js +1 -1
  66. package/index.cjs307.js +1 -1
  67. package/index.cjs308.js +1 -1
  68. package/index.cjs309.js +1 -1
  69. package/index.cjs310.js +1 -1
  70. package/index.cjs311.js +1 -1
  71. package/index.cjs312.js +1 -1
  72. package/index.cjs313.js +1 -1
  73. package/index.cjs314.js +1 -1
  74. package/index.cjs315.js +1 -1
  75. package/index.cjs316.js +1 -1
  76. package/index.cjs317.js +1 -1
  77. package/index.cjs318.js +1 -1
  78. package/index.cjs319.js +1 -1
  79. package/index.cjs320.js +1 -1
  80. package/index.cjs321.js +1 -1
  81. package/index.cjs322.js +1 -1
  82. package/index.cjs323.js +1 -1
  83. package/index.cjs324.js +1 -1
  84. package/index.cjs325.js +1 -1
  85. package/index.cjs326.js +1 -1
  86. package/index.cjs327.js +1 -1
  87. package/index.cjs328.js +1 -1
  88. package/index.cjs329.js +1 -1
  89. package/index.cjs330.js +1 -1
  90. package/index.cjs331.js +1 -1
  91. package/index.cjs332.js +1 -1
  92. package/index.cjs333.js +1 -1
  93. package/index.cjs334.js +1 -1
  94. package/index.cjs335.js +1 -1
  95. package/index.cjs336.js +1 -1
  96. package/index.cjs337.js +1 -1
  97. package/index.cjs338.js +1 -1
  98. package/index.cjs339.js +1 -1
  99. package/index.cjs340.js +1 -1
  100. package/index.cjs341.js +1 -1
  101. package/index.cjs342.js +1 -1
  102. package/index.cjs343.js +1 -1
  103. package/index.cjs344.js +1 -1
  104. package/index.cjs345.js +1 -1
  105. package/index.cjs346.js +1 -1
  106. package/index.cjs347.js +1 -1
  107. package/index.cjs348.js +1 -1
  108. package/index.cjs349.js +1 -1
  109. package/index.cjs350.js +1 -1
  110. package/index.cjs351.js +1 -1
  111. package/index.cjs352.js +1 -1
  112. package/index.cjs353.js +1 -1
  113. package/index.cjs356.js +1 -1
  114. package/index.cjs357.js +1 -2
  115. package/index.cjs358.js +1 -1
  116. package/index.cjs359.js +1 -1
  117. package/index.cjs360.js +1 -1
  118. package/index.cjs361.js +1 -1
  119. package/index.cjs362.js +1 -1
  120. package/index.cjs363.js +1 -1
  121. package/index.cjs364.js +1 -1
  122. package/index.cjs365.js +2 -1
  123. package/index.cjs366.js +1 -1
  124. package/index.cjs367.js +1 -1
  125. package/index.cjs368.js +1 -1
  126. package/index.cjs369.js +1 -1
  127. package/index.cjs370.js +1 -1
  128. package/index.cjs371.js +1 -1
  129. package/index.cjs372.js +1 -1
  130. package/index.cjs373.js +1 -1
  131. package/index.cjs374.js +1 -1
  132. package/index.cjs375.js +1 -74
  133. package/index.cjs376.js +74 -1
  134. package/index.cjs377.js +1 -1
  135. package/index.cjs378.js +1 -1
  136. package/index.cjs379.js +1 -1
  137. package/index.cjs380.js +1 -1
  138. package/index.cjs382.js +1 -1
  139. package/index.cjs383.js +1 -1
  140. package/index.cjs384.js +1 -1
  141. package/index.cjs385.js +1 -1
  142. package/index.cjs386.js +1 -1
  143. package/index.cjs387.js +1 -1
  144. package/index.cjs388.js +1 -1
  145. package/index.cjs389.js +1 -1
  146. package/index.cjs390.js +1 -1
  147. package/index.cjs391.js +1 -1
  148. package/index.cjs392.js +1 -1
  149. package/index.cjs393.js +1 -1
  150. package/index.cjs394.js +1 -1
  151. package/index.cjs395.js +1 -1
  152. package/index.cjs396.js +1 -1
  153. package/index.cjs398.js +1 -1
  154. package/index.cjs399.js +1 -1
  155. package/index.cjs76.js +1 -1
  156. package/index.cjs79.js +1 -1
  157. package/index.cjs82.js +1 -1
  158. package/index.cjs86.js +1 -1
  159. package/index.es116.js +1 -1
  160. package/index.es165.js +125 -2309
  161. package/index.es166.js +6 -2152
  162. package/index.es167.js +2323 -11
  163. package/index.es168.js +2149 -136
  164. package/index.es169.js +11 -6
  165. package/index.es183.js +2 -50
  166. package/index.es184.js +2261 -2
  167. package/index.es185.js +49 -2260
  168. package/index.es204.js +4 -4
  169. package/index.es205.js +1 -1
  170. package/index.es206.js +3 -3
  171. package/index.es207.js +2 -2
  172. package/index.es210.js +1 -1
  173. package/index.es218.js +3 -12
  174. package/index.es219.js +2 -25
  175. package/index.es220.js +12 -10
  176. package/index.es221.js +24 -38
  177. package/index.es222.js +8 -1997
  178. package/index.es223.js +38 -6
  179. package/index.es224.js +1999 -71
  180. package/index.es225.js +6 -24
  181. package/index.es226.js +71 -3
  182. package/index.es227.js +25 -2
  183. package/index.es232.js +1 -1
  184. package/index.es233.js +1 -1
  185. package/index.es234.js +1 -1
  186. package/index.es235.js +4 -4
  187. package/index.es237.js +3 -3
  188. package/index.es238.js +5 -5
  189. package/index.es239.js +1 -1
  190. package/index.es240.js +3 -3
  191. package/index.es242.js +2 -2
  192. package/index.es246.js +5 -5
  193. package/index.es247.js +1 -1
  194. package/index.es264.js +9 -9
  195. package/index.es270.js +4 -4
  196. package/index.es272.js +5 -5
  197. package/index.es273.js +4 -4
  198. package/index.es275.js +1 -1
  199. package/index.es277.js +3 -3
  200. package/index.es278.js +37 -10
  201. package/index.es279.js +3 -38
  202. package/index.es280.js +11 -3
  203. package/index.es281.js +8 -116
  204. package/index.es282.js +351 -7
  205. package/index.es283.js +94 -9
  206. package/index.es284.js +9 -7
  207. package/index.es285.js +3 -8
  208. package/index.es286.js +192 -337
  209. package/index.es287.js +119 -94
  210. package/index.es288.js +7 -3
  211. package/index.es289.js +8 -206
  212. package/index.es29.js +4 -4
  213. package/index.es290.js +59 -63
  214. package/index.es291.js +6 -6
  215. package/index.es292.js +7 -7
  216. package/index.es299.js +5 -12
  217. package/index.es300.js +24 -143
  218. package/index.es301.js +19 -41
  219. package/index.es302.js +32 -3
  220. package/index.es303.js +6 -41
  221. package/index.es304.js +2 -7
  222. package/index.es305.js +6 -75
  223. package/index.es306.js +3 -54
  224. package/index.es307.js +18 -7
  225. package/index.es308.js +64 -73
  226. package/index.es309.js +15 -23
  227. package/index.es310.js +15 -62
  228. package/index.es311.js +3 -4
  229. package/index.es312.js +12 -6
  230. package/index.es313.js +143 -32
  231. package/index.es314.js +42 -58
  232. package/index.es315.js +3 -13
  233. package/index.es316.js +41 -4
  234. package/index.es317.js +7 -9
  235. package/index.es318.js +75 -54
  236. package/index.es319.js +54 -3
  237. package/index.es320.js +8 -5
  238. package/index.es321.js +76 -17
  239. package/index.es322.js +24 -17
  240. package/index.es323.js +62 -17
  241. package/index.es324.js +5 -17
  242. package/index.es325.js +59 -17
  243. package/index.es326.js +13 -17
  244. package/index.es327.js +3 -16
  245. package/index.es328.js +9 -5
  246. package/index.es329.js +55 -24
  247. package/index.es330.js +5 -21
  248. package/index.es331.js +17 -6
  249. package/index.es332.js +17 -3
  250. package/index.es333.js +16 -3
  251. package/index.es334.js +17 -19
  252. package/index.es335.js +17 -67
  253. package/index.es336.js +17 -16
  254. package/index.es337.js +17 -15
  255. package/index.es338.js +6 -4
  256. package/index.es339.js +29 -4
  257. package/index.es340.js +15 -6
  258. package/index.es341.js +5 -5
  259. package/index.es342.js +5 -19
  260. package/index.es343.js +5 -4
  261. package/index.es344.js +6 -5
  262. package/index.es345.js +19 -3
  263. package/index.es346.js +4 -72
  264. package/index.es347.js +6 -4
  265. package/index.es348.js +3 -16
  266. package/index.es349.js +71 -6
  267. package/index.es350.js +3 -29
  268. package/index.es351.js +1 -1
  269. package/index.es352.js +6 -7
  270. package/index.es353.js +7 -6
  271. package/index.es356.js +2 -9
  272. package/index.es357.js +65 -77
  273. package/index.es358.js +61 -255
  274. package/index.es359.js +10 -31
  275. package/index.es360.js +4 -6
  276. package/index.es361.js +8 -131
  277. package/index.es362.js +6 -17
  278. package/index.es363.js +44 -9
  279. package/index.es364.js +9 -3
  280. package/index.es365.js +78 -4
  281. package/index.es366.js +255 -42
  282. package/index.es367.js +31 -9
  283. package/index.es368.js +6 -7
  284. package/index.es369.js +132 -2
  285. package/index.es370.js +17 -68
  286. package/index.es371.js +6 -64
  287. package/index.es372.js +2 -6
  288. package/index.es373.js +2 -4
  289. package/index.es374.js +6 -2
  290. package/index.es375.js +4 -251
  291. package/index.es376.js +251 -8
  292. package/index.es377.js +8 -3
  293. package/index.es378.js +3 -2
  294. package/index.es379.js +1 -1
  295. package/index.es380.js +1 -1
  296. package/index.es382.js +1 -1
  297. package/index.es383.js +2 -8
  298. package/index.es384.js +2 -7
  299. package/index.es385.js +7 -19
  300. package/index.es386.js +7 -51
  301. package/index.es387.js +18 -247
  302. package/index.es388.js +51 -43
  303. package/index.es389.js +247 -14
  304. package/index.es390.js +43 -10
  305. package/index.es391.js +15 -47
  306. package/index.es392.js +10 -26
  307. package/index.es393.js +37 -118
  308. package/index.es394.js +23 -109
  309. package/index.es395.js +129 -2
  310. package/index.es396.js +112 -2
  311. package/index.es398.js +3 -8
  312. package/index.es399.js +8 -3
  313. package/index.es76.js +1 -1
  314. package/index.es79.js +2 -2
  315. package/index.es82.js +2 -2
  316. package/index.es86.js +1 -1
  317. package/package.json +1 -1
package/index.es365.js CHANGED
@@ -1,6 +1,80 @@
1
- function r(e, t, f) {
2
- return typeof e == "function" ? e(t, f) : e;
3
- }
1
+ import T from "./index.es186.js";
2
+ import * as _ from "react";
3
+ import L from "./index.es385.js";
4
+ import { getRegisteredStyles as A, registerStyles as I, insertStyles as z } from "./index.es367.js";
5
+ import { serializeStyles as D } from "./index.es369.js";
6
+ import { useInsertionEffectAlwaysWithSyncFallback as U } from "./index.es368.js";
7
+ import { w as V, T as x } from "./index.es329.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);
53
+ }
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));
66
+ });
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
+ };
4
78
  export {
5
- r as default
79
+ H as default
6
80
  };
package/index.es366.js CHANGED
@@ -1,48 +1,261 @@
1
- import { clsx as v } from "./index.es96.js";
2
- import k from "./index.es356.js";
3
- import H from "./index.es398.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
1
+ import { w as x, T as g } from "./index.es329.js";
2
+ import * as u from "react";
3
+ import { insertStyles as w, registerStyles as E, getRegisteredStyles as N } from "./index.es367.js";
4
+ import { useInsertionEffectWithLayoutFallback as v, useInsertionEffectAlwaysWithSyncFallback as k } from "./index.es368.js";
5
+ import { serializeStyles as p } from "./index.es369.js";
6
+ import "./index.es370.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();
25
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_";
181
+ }
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
+ }
26
206
  }
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
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));
35
233
  }, 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
- };
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
+ }
45
253
  }
46
254
  export {
47
- W 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
48
261
  };
package/index.es367.js CHANGED
@@ -1,12 +1,34 @@
1
- import * as o from "react";
2
- import u from "./index.es399.js";
3
- function f(...e) {
4
- return o.useMemo(() => e.every((r) => r == null) ? null : (r) => {
5
- e.forEach((t) => {
6
- u(t, r);
7
- });
8
- }, e);
1
+ var i = !0;
2
+ function u(r, e, t) {
3
+ var s = "";
4
+ return t.split(" ").forEach(function(n) {
5
+ r[n] !== void 0 ? e.push(r[n] + ";") : n && (s += n + " ");
6
+ }), s;
9
7
  }
8
+ var o = function(e, t, s) {
9
+ var n = e.key + "-" + t.name;
10
+ // we only need to add the styles to the registered cache if the
11
+ // class name could be used further down
12
+ // the tree but if it's a string tag, we know it won't
13
+ // so we don't have to add it to registered cache.
14
+ // this improves memory usage since we can avoid storing the whole style string
15
+ (s === !1 || // we need to always store it if we're in compat mode and
16
+ // in node since emotion-server relies on whether a style is in
17
+ // the registered cache to know whether a style is global or not
18
+ // also, note that this check will be dead code eliminated in the browser
19
+ i === !1) && e.registered[n] === void 0 && (e.registered[n] = t.styles);
20
+ }, y = function(e, t, s) {
21
+ o(e, t, s);
22
+ var n = e.key + "-" + t.name;
23
+ if (e.inserted[t.name] === void 0) {
24
+ var f = t;
25
+ do
26
+ e.insert(t === f ? "." + n : "", f, e.sheet, !0), f = f.next;
27
+ while (f !== void 0);
28
+ }
29
+ };
10
30
  export {
11
- f as default
31
+ u as getRegisteredStyles,
32
+ y as insertStyles,
33
+ o as registerStyles
12
34
  };
package/index.es368.js CHANGED
@@ -1,9 +1,8 @@
1
- function c(t, r) {
2
- const e = this;
3
- return e.vars && typeof e.getColorSchemeSelector == "function" ? {
4
- [e.getColorSchemeSelector(t).replace(/(\[[^\]]+\])/, "*:where($1)")]: r
5
- } : e.palette.mode === t ? r : {};
6
- }
1
+ import * as e from "react";
2
+ var n = function(a) {
3
+ return a();
4
+ }, t = e["useInsertionEffect"] ? e["useInsertionEffect"] : !1, c = t || n, f = t || e.useLayoutEffect;
7
5
  export {
8
- c as default
6
+ c as useInsertionEffectAlwaysWithSyncFallback,
7
+ f as useInsertionEffectWithLayoutFallback
9
8
  };
package/index.es369.js CHANGED
@@ -1,4 +1,134 @@
1
- var e = { exports: {} };
1
+ import w from "./index.es387.js";
2
+ import C from "./index.es388.js";
3
+ import E from "./index.es386.js";
4
+ var _ = !1, x = /[A-Z]|^ms/g, O = /_EMO_([^_]+?)_([^]*?)_EMO_/g, d = function(n) {
5
+ return n.charCodeAt(1) === 45;
6
+ }, p = function(n) {
7
+ return n != null && typeof n != "boolean";
8
+ }, h = /* @__PURE__ */ E(function(r) {
9
+ return d(r) ? r : r.replace(x, "-$&").toLowerCase();
10
+ }), y = function(n, e) {
11
+ switch (n) {
12
+ case "animation":
13
+ case "animationName":
14
+ if (typeof e == "string")
15
+ return e.replace(O, function(f, a, t) {
16
+ return s = {
17
+ name: a,
18
+ styles: t,
19
+ next: s
20
+ }, a;
21
+ });
22
+ }
23
+ return C[n] !== 1 && !d(n) && typeof e == "number" && e !== 0 ? e + "px" : e;
24
+ }, A = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";
25
+ function m(r, n, e) {
26
+ if (e == null)
27
+ return "";
28
+ var f = e;
29
+ if (f.__emotion_styles !== void 0)
30
+ return f;
31
+ switch (typeof e) {
32
+ case "boolean":
33
+ return "";
34
+ case "object": {
35
+ var a = e;
36
+ if (a.anim === 1)
37
+ return s = {
38
+ name: a.name,
39
+ styles: a.styles,
40
+ next: s
41
+ }, a.name;
42
+ var t = e;
43
+ if (t.styles !== void 0) {
44
+ var o = t.next;
45
+ if (o !== void 0)
46
+ for (; o !== void 0; )
47
+ s = {
48
+ name: o.name,
49
+ styles: o.styles,
50
+ next: s
51
+ }, o = o.next;
52
+ var i = t.styles + ";";
53
+ return i;
54
+ }
55
+ return M(r, n, e);
56
+ }
57
+ case "function": {
58
+ if (r !== void 0) {
59
+ var u = s, c = e(r);
60
+ return s = u, m(r, n, c);
61
+ }
62
+ break;
63
+ }
64
+ }
65
+ var l = e;
66
+ if (n == null)
67
+ return l;
68
+ var v = n[l];
69
+ return v !== void 0 ? v : l;
70
+ }
71
+ function M(r, n, e) {
72
+ var f = "";
73
+ if (Array.isArray(e))
74
+ for (var a = 0; a < e.length; a++)
75
+ f += m(r, n, e[a]) + ";";
76
+ else
77
+ for (var t in e) {
78
+ var o = e[t];
79
+ if (typeof o != "object") {
80
+ var i = o;
81
+ n != null && n[i] !== void 0 ? f += t + "{" + n[i] + "}" : p(i) && (f += h(t) + ":" + y(t, i) + ";");
82
+ } else {
83
+ if (t === "NO_COMPONENT_SELECTOR" && _)
84
+ throw new Error(A);
85
+ if (Array.isArray(o) && typeof o[0] == "string" && (n == null || n[o[0]] === void 0))
86
+ for (var u = 0; u < o.length; u++)
87
+ p(o[u]) && (f += h(t) + ":" + y(t, o[u]) + ";");
88
+ else {
89
+ var c = m(r, n, o);
90
+ switch (t) {
91
+ case "animation":
92
+ case "animationName": {
93
+ f += h(t) + ":" + c + ";";
94
+ break;
95
+ }
96
+ default:
97
+ f += t + "{" + c + "}";
98
+ }
99
+ }
100
+ }
101
+ }
102
+ return f;
103
+ }
104
+ var b = /label:\s*([^\s;{]+)\s*(;|$)/g, s;
105
+ function R(r, n, e) {
106
+ if (r.length === 1 && typeof r[0] == "object" && r[0] !== null && r[0].styles !== void 0)
107
+ return r[0];
108
+ var f = !0, a = "";
109
+ s = void 0;
110
+ var t = r[0];
111
+ if (t == null || t.raw === void 0)
112
+ f = !1, a += m(e, n, t);
113
+ else {
114
+ var o = t;
115
+ a += o[0];
116
+ }
117
+ for (var i = 1; i < r.length; i++)
118
+ if (a += m(e, n, r[i]), f) {
119
+ var u = t;
120
+ a += u[i];
121
+ }
122
+ b.lastIndex = 0;
123
+ for (var c = "", l; (l = b.exec(a)) !== null; )
124
+ c += "-" + l[1];
125
+ var v = w(a) + c;
126
+ return {
127
+ name: v,
128
+ styles: a,
129
+ next: s
130
+ };
131
+ }
2
132
  export {
3
- e as __module
133
+ R as serializeStyles
4
134
  };
package/index.es370.js CHANGED
@@ -1,68 +1,17 @@
1
- import { __exports as e } from "./index.es395.js";
2
- var R;
3
- function d() {
4
- if (R)
5
- return e;
6
- R = 1;
7
- var l = Symbol.for("react.transitional.element"), T = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), s = Symbol.for("react.consumer"), i = 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.offscreen"), 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 l:
13
- switch (r = r.type, r) {
14
- case n:
15
- case f:
16
- case o:
17
- case a:
18
- case E:
19
- return r;
20
- default:
21
- switch (r = r && r.$$typeof, r) {
22
- case i:
23
- case u:
24
- case _:
25
- case c:
26
- return r;
27
- case s:
28
- return r;
29
- default:
30
- return m;
31
- }
32
- }
33
- case T:
34
- return m;
35
- }
36
- }
37
- }
38
- return e.ContextConsumer = s, e.ContextProvider = i, e.Element = l, e.ForwardRef = u, e.Fragment = n, e.Lazy = _, e.Memo = c, e.Portal = T, e.Profiler = f, e.StrictMode = o, e.Suspense = a, e.SuspenseList = E, e.isContextConsumer = function(r) {
39
- return t(r) === s;
40
- }, e.isContextProvider = function(r) {
41
- return t(r) === i;
42
- }, e.isElement = function(r) {
43
- return typeof r == "object" && r !== null && r.$$typeof === l;
44
- }, e.isForwardRef = function(r) {
45
- return t(r) === u;
46
- }, e.isFragment = function(r) {
47
- return t(r) === n;
48
- }, e.isLazy = function(r) {
49
- return t(r) === _;
50
- }, e.isMemo = function(r) {
51
- return t(r) === c;
52
- }, e.isPortal = function(r) {
53
- return t(r) === T;
54
- }, e.isProfiler = function(r) {
55
- return t(r) === f;
56
- }, e.isStrictMode = function(r) {
57
- return t(r) === o;
58
- }, e.isSuspense = function(r) {
59
- return t(r) === a;
60
- }, e.isSuspenseList = function(r) {
61
- return t(r) === E;
62
- }, e.isValidElementType = function(r) {
63
- return typeof r == "string" || typeof r == "function" || r === n || r === f || r === o || r === a || r === E || r === S || typeof r == "object" && r !== null && (r.$$typeof === _ || r.$$typeof === c || r.$$typeof === i || r.$$typeof === s || r.$$typeof === u || r.$$typeof === C || r.getModuleId !== void 0);
64
- }, e.typeOf = t, e;
65
- }
66
- export {
67
- d as __require
68
- };
1
+ import { __require as t } from "./index.es229.js";
2
+ var e = t(), a = {
3
+ $$typeof: !0,
4
+ render: !0,
5
+ defaultProps: !0,
6
+ displayName: !0,
7
+ propTypes: !0
8
+ }, p = {
9
+ $$typeof: !0,
10
+ compare: !0,
11
+ defaultProps: !0,
12
+ displayName: !0,
13
+ propTypes: !0,
14
+ type: !0
15
+ }, r = {};
16
+ r[e.ForwardRef] = a;
17
+ r[e.Memo] = p;