mada-design-system 0.9.0 → 0.9.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 (295) hide show
  1. package/index.cjs112.js +1 -1
  2. package/index.cjs113.js +1 -1
  3. package/index.cjs118.js +1 -1
  4. package/index.cjs175.js +1 -1
  5. package/index.cjs177.js +1 -1
  6. package/index.cjs185.js +1 -1
  7. package/index.cjs186.js +1 -1
  8. package/index.cjs191.js +1 -1
  9. package/index.cjs192.js +1 -1
  10. package/index.cjs193.js +1 -1
  11. package/index.cjs196.js +1 -1
  12. package/index.cjs197.js +1 -1
  13. package/index.cjs198.js +1 -1
  14. package/index.cjs199.js +1 -1
  15. package/index.cjs200.js +1 -1
  16. package/index.cjs201.js +1 -1
  17. package/index.cjs202.js +1 -1
  18. package/index.cjs203.js +1 -1
  19. package/index.cjs205.js +1 -1
  20. package/index.cjs206.js +1 -1
  21. package/index.cjs209.js +1 -1
  22. package/index.cjs221.js +1 -1
  23. package/index.cjs225.js +1 -1
  24. package/index.cjs226.js +1 -1
  25. package/index.cjs227.js +1 -1
  26. package/index.cjs228.js +1 -1
  27. package/index.cjs230.js +1 -1
  28. package/index.cjs231.js +1 -1
  29. package/index.cjs29.js +1 -1
  30. package/index.cjs296.js +1 -1
  31. package/index.cjs297.js +1 -1
  32. package/index.cjs300.js +1 -1
  33. package/index.cjs301.js +1 -1
  34. package/index.cjs302.js +1 -1
  35. package/index.cjs303.js +1 -1
  36. package/index.cjs304.js +1 -1
  37. package/index.cjs306.js +1 -1
  38. package/index.cjs310.js +1 -1
  39. package/index.cjs362.js +1 -1
  40. package/index.cjs363.js +1 -1
  41. package/index.cjs364.js +1 -1
  42. package/index.cjs365.js +1 -15
  43. package/index.cjs366.js +1 -1
  44. package/index.cjs367.js +15 -1
  45. package/index.cjs368.js +1 -1
  46. package/index.cjs369.js +1 -1
  47. package/index.cjs370.js +1 -1
  48. package/index.cjs371.js +1 -1
  49. package/index.cjs372.js +1 -1
  50. package/index.cjs373.js +1 -1
  51. package/index.cjs374.js +1 -1
  52. package/index.cjs375.js +1 -1
  53. package/index.cjs376.js +1 -1
  54. package/index.cjs377.js +1 -1
  55. package/index.cjs378.js +1 -1
  56. package/index.cjs379.js +1 -1
  57. package/index.cjs380.js +1 -1
  58. package/index.cjs382.js +1 -1
  59. package/index.cjs383.js +1 -1
  60. package/index.cjs384.js +3 -1
  61. package/index.cjs385.js +1 -1
  62. package/index.cjs386.js +1 -1
  63. package/index.cjs387.js +1 -3
  64. package/index.cjs388.js +1 -1
  65. package/index.cjs389.js +1 -1
  66. package/index.cjs390.js +1 -1
  67. package/index.cjs391.js +1 -1
  68. package/index.cjs394.js +1 -1
  69. package/index.cjs403.js +1 -1
  70. package/index.cjs404.js +1 -1
  71. package/index.cjs405.js +1 -1
  72. package/index.cjs406.js +1 -1
  73. package/index.cjs407.js +1 -1
  74. package/index.cjs408.js +1 -1
  75. package/index.cjs409.js +1 -1
  76. package/index.cjs410.js +1 -1
  77. package/index.cjs411.js +1 -1
  78. package/index.cjs412.js +1 -1
  79. package/index.cjs413.js +1 -1
  80. package/index.cjs414.js +1 -1
  81. package/index.cjs415.js +1 -1
  82. package/index.cjs416.js +1 -1
  83. package/index.cjs417.js +1 -1
  84. package/index.cjs418.js +1 -1
  85. package/index.cjs419.js +1 -1
  86. package/index.cjs420.js +1 -1
  87. package/index.cjs421.js +1 -1
  88. package/index.cjs422.js +1 -1
  89. package/index.cjs423.js +1 -1
  90. package/index.cjs424.js +1 -1
  91. package/index.cjs425.js +1 -1
  92. package/index.cjs426.js +1 -1
  93. package/index.cjs427.js +1 -1
  94. package/index.cjs428.js +1 -1
  95. package/index.cjs429.js +1 -1
  96. package/index.cjs430.js +1 -1
  97. package/index.cjs431.js +1 -1
  98. package/index.cjs432.js +1 -1
  99. package/index.cjs433.js +1 -1
  100. package/index.cjs434.js +1 -1
  101. package/index.cjs435.js +1 -1
  102. package/index.cjs436.js +1 -1
  103. package/index.cjs437.js +1 -1
  104. package/index.cjs438.js +1 -1
  105. package/index.cjs439.js +1 -1
  106. package/index.cjs440.js +1 -1
  107. package/index.cjs441.js +1 -1
  108. package/index.cjs454.js +1 -1
  109. package/index.cjs455.js +1 -1
  110. package/index.cjs460.js +1 -1
  111. package/index.cjs461.js +1 -1
  112. package/index.cjs462.js +1 -1
  113. package/index.cjs463.js +1 -1
  114. package/index.cjs464.js +1 -1
  115. package/index.cjs465.js +1 -1
  116. package/index.cjs466.js +1 -2
  117. package/index.cjs467.js +1 -1
  118. package/index.cjs468.js +1 -1
  119. package/index.cjs469.js +2 -1
  120. package/index.cjs470.js +1 -1
  121. package/index.cjs471.js +1 -1
  122. package/index.cjs472.js +1 -1
  123. package/index.cjs473.js +1 -1
  124. package/index.cjs474.js +1 -1
  125. package/index.cjs475.js +1 -1
  126. package/index.cjs478.js +1 -1
  127. package/index.cjs479.js +74 -1
  128. package/index.cjs480.js +1 -74
  129. package/index.cjs481.js +1 -1
  130. package/index.cjs482.js +1 -1
  131. package/index.cjs483.js +1 -1
  132. package/index.cjs484.js +1 -1
  133. package/index.cjs486.js +1 -1
  134. package/index.cjs487.js +1 -1
  135. package/index.cjs488.js +1 -1
  136. package/index.cjs489.js +1 -1
  137. package/index.cjs490.js +1 -1
  138. package/index.cjs491.js +1 -1
  139. package/index.cjs492.js +1 -1
  140. package/index.cjs493.js +1 -1
  141. package/index.cjs494.js +1 -1
  142. package/index.cjs495.js +1 -1
  143. package/index.cjs496.js +1 -1
  144. package/index.cjs497.js +1 -1
  145. package/index.cjs498.js +1 -1
  146. package/index.cjs499.js +1 -1
  147. package/index.cjs500.js +1 -1
  148. package/index.es112.js +2 -2
  149. package/index.es113.js +1 -1
  150. package/index.es118.js +2 -2
  151. package/index.es175.js +2 -2
  152. package/index.es177.js +2 -2
  153. package/index.es185.js +1 -1
  154. package/index.es186.js +1 -1
  155. package/index.es191.js +1 -1
  156. package/index.es192.js +468 -221
  157. package/index.es193.js +5 -53
  158. package/index.es196.js +38 -5
  159. package/index.es197.js +221 -468
  160. package/index.es198.js +51 -15
  161. package/index.es199.js +15 -32
  162. package/index.es200.js +34 -1223
  163. package/index.es201.js +1223 -13
  164. package/index.es202.js +14 -8
  165. package/index.es203.js +8 -50
  166. package/index.es205.js +1 -1
  167. package/index.es206.js +47 -36
  168. package/index.es209.js +1 -1
  169. package/index.es221.js +3 -3
  170. package/index.es225.js +4 -4
  171. package/index.es226.js +1 -1
  172. package/index.es227.js +2 -2
  173. package/index.es228.js +3 -3
  174. package/index.es230.js +3 -3
  175. package/index.es231.js +1 -1
  176. package/index.es29.js +1 -1
  177. package/index.es296.js +1 -1
  178. package/index.es297.js +1 -1
  179. package/index.es300.js +3 -3
  180. package/index.es301.js +2 -2
  181. package/index.es302.js +5 -5
  182. package/index.es303.js +1 -1
  183. package/index.es304.js +1 -1
  184. package/index.es306.js +2 -2
  185. package/index.es310.js +4 -4
  186. package/index.es362.js +38 -2
  187. package/index.es363.js +3 -60
  188. package/index.es364.js +1 -16
  189. package/index.es365.js +57 -241
  190. package/index.es366.js +15 -72
  191. package/index.es367.js +243 -4
  192. package/index.es368.js +70 -54
  193. package/index.es369.js +5 -11
  194. package/index.es370.js +57 -6
  195. package/index.es371.js +11 -36
  196. package/index.es372.js +6 -26
  197. package/index.es373.js +36 -291
  198. package/index.es374.js +24 -88
  199. package/index.es375.js +291 -3
  200. package/index.es376.js +90 -7
  201. package/index.es377.js +3 -16
  202. package/index.es378.js +7 -146
  203. package/index.es379.js +16 -38
  204. package/index.es380.js +147 -3
  205. package/index.es382.js +8 -120
  206. package/index.es383.js +351 -7
  207. package/index.es384.js +94 -7
  208. package/index.es385.js +9 -7
  209. package/index.es386.js +3 -351
  210. package/index.es387.js +205 -94
  211. package/index.es388.js +120 -10
  212. package/index.es389.js +7 -3
  213. package/index.es390.js +8 -206
  214. package/index.es391.js +1 -1
  215. package/index.es394.js +1 -1
  216. package/index.es403.js +23 -12
  217. package/index.es404.js +6 -143
  218. package/index.es405.js +19 -41
  219. package/index.es406.js +32 -3
  220. package/index.es407.js +6 -41
  221. package/index.es408.js +6 -7
  222. package/index.es409.js +3 -76
  223. package/index.es410.js +3 -54
  224. package/index.es411.js +18 -7
  225. package/index.es412.js +64 -73
  226. package/index.es413.js +15 -23
  227. package/index.es414.js +15 -62
  228. package/index.es415.js +3 -4
  229. package/index.es416.js +5 -7
  230. package/index.es417.js +17 -32
  231. package/index.es418.js +17 -59
  232. package/index.es419.js +17 -13
  233. package/index.es420.js +17 -4
  234. package/index.es421.js +17 -10
  235. package/index.es422.js +17 -55
  236. package/index.es423.js +17 -4
  237. package/index.es424.js +13 -5
  238. package/index.es425.js +143 -17
  239. package/index.es426.js +43 -17
  240. package/index.es427.js +3 -17
  241. package/index.es428.js +41 -17
  242. package/index.es429.js +8 -17
  243. package/index.es430.js +76 -17
  244. package/index.es431.js +55 -17
  245. package/index.es432.js +7 -5
  246. package/index.es433.js +76 -21
  247. package/index.es434.js +23 -23
  248. package/index.es435.js +62 -6
  249. package/index.es436.js +5 -3
  250. package/index.es437.js +58 -3
  251. package/index.es438.js +12 -18
  252. package/index.es439.js +4 -67
  253. package/index.es440.js +9 -15
  254. package/index.es441.js +55 -15
  255. package/index.es454.js +2 -2
  256. package/index.es455.js +1 -1
  257. package/index.es460.js +2 -11
  258. package/index.es461.js +66 -3
  259. package/index.es462.js +65 -8
  260. package/index.es463.js +8 -3
  261. package/index.es464.js +9 -44
  262. package/index.es465.js +3 -24
  263. package/index.es466.js +4 -78
  264. package/index.es467.js +42 -255
  265. package/index.es468.js +24 -31
  266. package/index.es469.js +78 -6
  267. package/index.es470.js +247 -120
  268. package/index.es471.js +34 -17
  269. package/index.es472.js +6 -7
  270. package/index.es473.js +132 -2
  271. package/index.es474.js +17 -69
  272. package/index.es475.js +6 -65
  273. package/index.es478.js +1 -1
  274. package/index.es479.js +251 -2
  275. package/index.es480.js +8 -251
  276. package/index.es481.js +3 -8
  277. package/index.es482.js +2 -3
  278. package/index.es483.js +174 -2
  279. package/index.es484.js +2 -174
  280. package/index.es486.js +1 -1
  281. package/index.es487.js +2 -8
  282. package/index.es488.js +2 -7
  283. package/index.es489.js +7 -19
  284. package/index.es490.js +7 -51
  285. package/index.es491.js +18 -247
  286. package/index.es492.js +51 -43
  287. package/index.es493.js +247 -14
  288. package/index.es494.js +43 -10
  289. package/index.es495.js +15 -47
  290. package/index.es496.js +10 -26
  291. package/index.es497.js +37 -118
  292. package/index.es498.js +23 -109
  293. package/index.es499.js +129 -2
  294. package/index.es500.js +112 -2
  295. package/package.json +1 -1
package/index.es466.js CHANGED
@@ -1,80 +1,6 @@
1
- import T from "./index.es207.js";
2
- import * as _ from "react";
3
- import L from "./index.es487.js";
4
- import { getRegisteredStyles as A, registerStyles as I, insertStyles as z } from "./index.es468.js";
5
- import { serializeStyles as D } from "./index.es470.js";
6
- import { useInsertionEffectAlwaysWithSyncFallback as U } from "./index.es469.js";
7
- import { w as V, T as x } from "./index.es422.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
- };
1
+ function r(e, t, f) {
2
+ return typeof e == "function" ? e(t, f) : e;
3
+ }
78
4
  export {
79
- H as default
5
+ r as default
80
6
  };
package/index.es467.js CHANGED
@@ -1,261 +1,48 @@
1
- import { w as x, T as g } from "./index.es422.js";
2
- import * as u from "react";
3
- import { insertStyles as w, registerStyles as E, getRegisteredStyles as N } from "./index.es468.js";
4
- import { useInsertionEffectWithLayoutFallback as v, useInsertionEffectAlwaysWithSyncFallback as k } from "./index.es469.js";
5
- import { serializeStyles as p } from "./index.es470.js";
6
- import "./index.es471.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();
1
+ import { clsx as v } from "./index.es133.js";
2
+ import k from "./index.es463.js";
3
+ import H from "./index.es502.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
153
25
  };
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
- }
206
26
  }
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));
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
233
35
  }, 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
- }
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
+ };
253
45
  }
254
46
  export {
255
- R as ClassNames,
256
- C as Global,
257
- g as ThemeContext,
258
- O as css,
259
- G as keyframes,
260
- x as withEmotionCache
47
+ W as default
261
48
  };
package/index.es468.js CHANGED
@@ -1,34 +1,27 @@
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;
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());
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);
7
24
  }
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
- };
30
25
  export {
31
- u as getRegisteredStyles,
32
- y as insertStyles,
33
- o as registerStyles
26
+ i as default
34
27
  };
package/index.es469.js CHANGED
@@ -1,8 +1,80 @@
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;
1
+ import T from "./index.es207.js";
2
+ import * as _ from "react";
3
+ import L from "./index.es489.js";
4
+ import { getRegisteredStyles as A, registerStyles as I, insertStyles as z } from "./index.es471.js";
5
+ import { serializeStyles as D } from "./index.es473.js";
6
+ import { useInsertionEffectAlwaysWithSyncFallback as U } from "./index.es472.js";
7
+ import { w as V, T as x } from "./index.es441.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
+ };
5
78
  export {
6
- c as useInsertionEffectAlwaysWithSyncFallback,
7
- f as useInsertionEffectWithLayoutFallback
79
+ H as default
8
80
  };