mada-design-system 0.5.9 → 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 (406) hide show
  1. package/index.cjs100.js +1 -1
  2. package/index.cjs103.js +1 -1
  3. package/index.cjs106.js +1 -1
  4. package/index.cjs107.js +1 -1
  5. package/index.cjs108.js +1 -1
  6. package/index.cjs109.js +1 -1
  7. package/index.cjs110.js +1 -1
  8. package/index.cjs111.js +1 -1
  9. package/index.cjs112.js +1 -1
  10. package/index.cjs114.js +1 -1
  11. package/index.cjs115.js +1 -1
  12. package/index.cjs116.js +1 -1
  13. package/index.cjs117.js +1 -1
  14. package/index.cjs118.js +1 -1
  15. package/index.cjs122.js +1 -1
  16. package/index.cjs125.js +1 -1
  17. package/index.cjs126.js +1 -1
  18. package/index.cjs127.js +1 -1
  19. package/index.cjs129.js +1 -1
  20. package/index.cjs130.js +1 -1
  21. package/index.cjs131.js +1 -1
  22. package/index.cjs133.js +1 -1
  23. package/index.cjs134.js +1 -1
  24. package/index.cjs135.js +1 -1
  25. package/index.cjs136.js +1 -1
  26. package/index.cjs137.js +1 -1
  27. package/index.cjs138.js +1 -1
  28. package/index.cjs139.js +1 -1
  29. package/index.cjs140.js +1 -1
  30. package/index.cjs141.js +1 -1
  31. package/index.cjs148.js +1 -1
  32. package/index.cjs149.js +1 -1
  33. package/index.cjs150.js +1 -1
  34. package/index.cjs151.js +1 -1
  35. package/index.cjs153.js +1 -1
  36. package/index.cjs154.js +1 -1
  37. package/index.cjs155.js +1 -1
  38. package/index.cjs156.js +1 -1
  39. package/index.cjs159.js +1 -1
  40. package/index.cjs160.js +1 -1
  41. package/index.cjs161.js +1 -1
  42. package/index.cjs162.js +1 -1
  43. package/index.cjs163.js +1 -1
  44. package/index.cjs164.js +1 -1
  45. package/index.cjs165.js +1 -1
  46. package/index.cjs166.js +1 -1
  47. package/index.cjs167.js +1 -1
  48. package/index.cjs168.js +1 -1
  49. package/index.cjs170.js +1 -1
  50. package/index.cjs171.js +1 -1
  51. package/index.cjs172.js +1 -1
  52. package/index.cjs173.js +1 -1
  53. package/index.cjs174.js +1 -1
  54. package/index.cjs175.js +1 -1
  55. package/index.cjs176.js +1 -1
  56. package/index.cjs177.js +1 -1
  57. package/index.cjs178.js +1 -1
  58. package/index.cjs179.js +1 -1
  59. package/index.cjs180.js +1 -1
  60. package/index.cjs181.js +1 -1
  61. package/index.cjs182.js +1 -1
  62. package/index.cjs183.js +1 -1
  63. package/index.cjs184.js +1 -1
  64. package/index.cjs185.js +1 -1
  65. package/index.cjs186.js +1 -1
  66. package/index.cjs187.js +1 -1
  67. package/index.cjs188.js +1 -1
  68. package/index.cjs189.js +1 -1
  69. package/index.cjs190.js +1 -1
  70. package/index.cjs191.js +1 -1
  71. package/index.cjs192.js +4 -1
  72. package/index.cjs193.js +1 -1
  73. package/index.cjs194.js +1 -1
  74. package/index.cjs195.js +1 -4
  75. package/index.cjs198.js +1 -1
  76. package/index.cjs214.js +1 -1
  77. package/index.cjs215.js +1 -1
  78. package/index.cjs217.js +1 -1
  79. package/index.cjs220.js +1 -1
  80. package/index.cjs228.js +1 -1
  81. package/index.cjs229.js +1 -1
  82. package/index.cjs230.js +1 -1
  83. package/index.cjs231.js +1 -1
  84. package/index.cjs254.js +1 -1
  85. package/index.cjs255.js +1 -1
  86. package/index.cjs256.js +1 -1
  87. package/index.cjs257.js +1 -1
  88. package/index.cjs259.js +1 -1
  89. package/index.cjs263.js +1 -1
  90. package/index.cjs272.js +1 -1
  91. package/index.cjs273.js +1 -1
  92. package/index.cjs28.js +1 -1
  93. package/index.cjs281.js +1 -1
  94. package/index.cjs287.js +1 -1
  95. package/index.cjs289.js +1 -1
  96. package/index.cjs290.js +1 -1
  97. package/index.cjs292.js +1 -1
  98. package/index.cjs294.js +1 -1
  99. package/index.cjs297.js +1 -1
  100. package/index.cjs298.js +1 -1
  101. package/index.cjs299.js +1 -1
  102. package/index.cjs300.js +1 -1
  103. package/index.cjs301.js +1 -1
  104. package/index.cjs302.js +1 -1
  105. package/index.cjs303.js +1 -1
  106. package/index.cjs308.js +1 -1
  107. package/index.cjs309.js +1 -1
  108. package/index.cjs310.js +1 -1
  109. package/index.cjs311.js +1 -1
  110. package/index.cjs312.js +1 -1
  111. package/index.cjs313.js +1 -1
  112. package/index.cjs314.js +1 -1
  113. package/index.cjs315.js +1 -1
  114. package/index.cjs316.js +1 -1
  115. package/index.cjs317.js +1 -1
  116. package/index.cjs318.js +1 -1
  117. package/index.cjs322.js +1 -1
  118. package/index.cjs323.js +1 -1
  119. package/index.cjs324.js +1 -1
  120. package/index.cjs325.js +1 -1
  121. package/index.cjs326.js +1 -1
  122. package/index.cjs327.js +1 -1
  123. package/index.cjs328.js +1 -1
  124. package/index.cjs329.js +1 -1
  125. package/index.cjs330.js +1 -1
  126. package/index.cjs331.js +1 -1
  127. package/index.cjs332.js +1 -1
  128. package/index.cjs333.js +1 -1
  129. package/index.cjs334.js +1 -1
  130. package/index.cjs335.js +1 -1
  131. package/index.cjs336.js +1 -1
  132. package/index.cjs337.js +1 -1
  133. package/index.cjs338.js +1 -1
  134. package/index.cjs339.js +1 -1
  135. package/index.cjs340.js +1 -1
  136. package/index.cjs341.js +1 -1
  137. package/index.cjs342.js +1 -1
  138. package/index.cjs343.js +1 -1
  139. package/index.cjs344.js +1 -1
  140. package/index.cjs345.js +1 -1
  141. package/index.cjs346.js +1 -1
  142. package/index.cjs347.js +1 -1
  143. package/index.cjs348.js +1 -1
  144. package/index.cjs349.js +1 -1
  145. package/index.cjs350.js +1 -1
  146. package/index.cjs351.js +1 -1
  147. package/index.cjs352.js +1 -1
  148. package/index.cjs353.js +1 -1
  149. package/index.cjs354.js +1 -1
  150. package/index.cjs355.js +1 -1
  151. package/index.cjs356.js +1 -1
  152. package/index.cjs357.js +1 -1
  153. package/index.cjs358.js +1 -1
  154. package/index.cjs359.js +1 -1
  155. package/index.cjs360.js +1 -1
  156. package/index.cjs371.js +1 -1
  157. package/index.cjs372.js +1 -1
  158. package/index.cjs373.js +1 -1
  159. package/index.cjs374.js +1 -1
  160. package/index.cjs377.js +1 -1
  161. package/index.cjs382.js +1 -1
  162. package/index.cjs383.js +1 -1
  163. package/index.cjs386.js +1 -1
  164. package/index.cjs387.js +1 -1
  165. package/index.cjs388.js +1 -1
  166. package/index.cjs389.js +1 -1
  167. package/index.cjs390.js +1 -1
  168. package/index.cjs391.js +1 -1
  169. package/index.cjs392.js +2 -1
  170. package/index.cjs393.js +1 -1
  171. package/index.cjs394.js +1 -1
  172. package/index.cjs395.js +1 -2
  173. package/index.cjs396.js +1 -1
  174. package/index.cjs397.js +1 -1
  175. package/index.cjs398.js +1 -1
  176. package/index.cjs399.js +1 -1
  177. package/index.cjs4.js +1 -1
  178. package/index.cjs400.js +1 -1
  179. package/index.cjs401.js +1 -1
  180. package/index.cjs404.js +1 -1
  181. package/index.cjs405.js +1 -1
  182. package/index.cjs408.js +1 -1
  183. package/index.cjs410.js +1 -1
  184. package/index.cjs414.js +1 -1
  185. package/index.cjs415.js +1 -1
  186. package/index.cjs416.js +1 -1
  187. package/index.cjs417.js +1 -1
  188. package/index.cjs418.js +1 -1
  189. package/index.cjs419.js +1 -1
  190. package/index.cjs420.js +1 -1
  191. package/index.cjs421.js +1 -1
  192. package/index.cjs422.js +1 -1
  193. package/index.cjs423.js +1 -1
  194. package/index.cjs424.js +1 -1
  195. package/index.cjs425.js +1 -1
  196. package/index.cjs426.js +1 -1
  197. package/index.cjs427.js +1 -1
  198. package/index.cjs81.js +1 -1
  199. package/index.cjs82.js +1 -1
  200. package/index.cjs85.js +1 -1
  201. package/index.cjs88.js +1 -1
  202. package/index.cjs92.js +1 -1
  203. package/index.es.d.ts +2 -0
  204. package/index.es100.js +1 -1
  205. package/index.es103.js +1 -1
  206. package/index.es106.js +2 -2
  207. package/index.es107.js +1 -1
  208. package/index.es108.js +1 -1
  209. package/index.es109.js +1 -1
  210. package/index.es110.js +1 -1
  211. package/index.es111.js +1 -1
  212. package/index.es112.js +2 -2
  213. package/index.es114.js +1 -1
  214. package/index.es115.js +1 -1
  215. package/index.es116.js +1 -1
  216. package/index.es117.js +1 -1
  217. package/index.es118.js +1 -1
  218. package/index.es122.js +1 -1
  219. package/index.es125.js +1 -1
  220. package/index.es126.js +1 -1
  221. package/index.es127.js +1 -1
  222. package/index.es129.js +1 -1
  223. package/index.es130.js +1 -1
  224. package/index.es131.js +1 -1
  225. package/index.es133.js +1 -1
  226. package/index.es134.js +1 -1
  227. package/index.es135.js +1 -1
  228. package/index.es136.js +1 -1
  229. package/index.es137.js +1 -1
  230. package/index.es138.js +1 -1
  231. package/index.es139.js +1 -1
  232. package/index.es140.js +1 -1
  233. package/index.es141.js +1 -1
  234. package/index.es148.js +1 -1
  235. package/index.es149.js +1 -1
  236. package/index.es150.js +1 -1
  237. package/index.es151.js +1 -1
  238. package/index.es153.js +1 -1
  239. package/index.es154.js +1 -1
  240. package/index.es155.js +1 -1
  241. package/index.es156.js +1 -1
  242. package/index.es159.js +1 -1
  243. package/index.es160.js +1 -1
  244. package/index.es161.js +1 -1
  245. package/index.es162.js +1 -1
  246. package/index.es163.js +1 -1
  247. package/index.es164.js +2 -2
  248. package/index.es165.js +1 -1
  249. package/index.es166.js +2 -2
  250. package/index.es167.js +1 -1
  251. package/index.es168.js +1 -1
  252. package/index.es170.js +1 -1
  253. package/index.es171.js +1 -1
  254. package/index.es172.js +1 -1
  255. package/index.es173.js +1 -1
  256. package/index.es174.js +443 -2310
  257. package/index.es175.js +2300 -2114
  258. package/index.es176.js +2152 -11
  259. package/index.es177.js +11 -139
  260. package/index.es178.js +139 -6
  261. package/index.es179.js +6 -471
  262. package/index.es180.js +3 -235
  263. package/index.es181.js +231 -52
  264. package/index.es182.js +51 -477
  265. package/index.es183.js +482 -3
  266. package/index.es184.js +18 -31
  267. package/index.es185.js +35 -12
  268. package/index.es186.js +1216 -31
  269. package/index.es187.js +14 -6
  270. package/index.es188.js +8 -18
  271. package/index.es189.js +46 -31
  272. package/index.es190.js +5 -1223
  273. package/index.es191.js +2 -14
  274. package/index.es192.js +2261 -8
  275. package/index.es193.js +31 -50
  276. package/index.es194.js +12 -2
  277. package/index.es195.js +38 -2260
  278. package/index.es198.js +1 -1
  279. package/index.es214.js +4 -4
  280. package/index.es215.js +1 -1
  281. package/index.es217.js +2 -2
  282. package/index.es220.js +1 -1
  283. package/index.es228.js +5 -5
  284. package/index.es229.js +7 -7
  285. package/index.es230.js +1 -1
  286. package/index.es231.js +1 -1
  287. package/index.es254.js +2 -2
  288. package/index.es255.js +3 -3
  289. package/index.es256.js +1 -1
  290. package/index.es257.js +3 -3
  291. package/index.es259.js +2 -2
  292. package/index.es263.js +3 -3
  293. package/index.es272.js +1 -1
  294. package/index.es273.js +1 -1
  295. package/index.es28.js +1 -1
  296. package/index.es281.js +8 -8
  297. package/index.es287.js +4 -4
  298. package/index.es289.js +5 -5
  299. package/index.es290.js +4 -4
  300. package/index.es292.js +1 -1
  301. package/index.es294.js +3 -3
  302. package/index.es297.js +8 -120
  303. package/index.es298.js +351 -7
  304. package/index.es299.js +3 -8
  305. package/index.es300.js +206 -8
  306. package/index.es301.js +107 -338
  307. package/index.es302.js +7 -3
  308. package/index.es303.js +8 -206
  309. package/index.es308.js +5 -15
  310. package/index.es309.js +8 -5
  311. package/index.es310.js +3 -8
  312. package/index.es311.js +3 -3
  313. package/index.es312.js +2 -2
  314. package/index.es313.js +6 -3
  315. package/index.es314.js +5 -6
  316. package/index.es315.js +2 -3
  317. package/index.es316.js +117 -4
  318. package/index.es317.js +4 -117
  319. package/index.es318.js +15 -4
  320. package/index.es322.js +2 -6
  321. package/index.es323.js +2 -24
  322. package/index.es324.js +12 -20
  323. package/index.es325.js +143 -32
  324. package/index.es326.js +43 -6
  325. package/index.es327.js +2 -2
  326. package/index.es328.js +40 -6
  327. package/index.es329.js +7 -18
  328. package/index.es330.js +69 -60
  329. package/index.es331.js +54 -15
  330. package/index.es332.js +7 -3
  331. package/index.es333.js +76 -2
  332. package/index.es334.js +24 -2
  333. package/index.es335.js +60 -11
  334. package/index.es336.js +5 -143
  335. package/index.es337.js +6 -42
  336. package/index.es338.js +32 -3
  337. package/index.es339.js +57 -39
  338. package/index.es340.js +12 -7
  339. package/index.es341.js +4 -76
  340. package/index.es342.js +8 -53
  341. package/index.es343.js +55 -8
  342. package/index.es344.js +4 -76
  343. package/index.es345.js +5 -24
  344. package/index.es346.js +17 -62
  345. package/index.es347.js +17 -5
  346. package/index.es348.js +17 -59
  347. package/index.es349.js +17 -13
  348. package/index.es350.js +17 -4
  349. package/index.es351.js +17 -10
  350. package/index.es352.js +17 -55
  351. package/index.es353.js +6 -5
  352. package/index.es354.js +24 -17
  353. package/index.es355.js +21 -17
  354. package/index.es356.js +6 -17
  355. package/index.es357.js +3 -17
  356. package/index.es358.js +67 -17
  357. package/index.es359.js +19 -17
  358. package/index.es360.js +16 -17
  359. package/index.es371.js +6 -15
  360. package/index.es372.js +29 -6
  361. package/index.es373.js +14 -28
  362. package/index.es374.js +1 -1
  363. package/index.es377.js +1 -1
  364. package/index.es382.js +1 -1
  365. package/index.es383.js +1 -1
  366. package/index.es386.js +11 -2
  367. package/index.es387.js +3 -66
  368. package/index.es388.js +8 -65
  369. package/index.es389.js +3 -10
  370. package/index.es390.js +45 -3
  371. package/index.es391.js +24 -8
  372. package/index.es392.js +78 -4
  373. package/index.es393.js +255 -42
  374. package/index.es394.js +31 -24
  375. package/index.es395.js +6 -78
  376. package/index.es396.js +120 -247
  377. package/index.es397.js +17 -34
  378. package/index.es398.js +7 -6
  379. package/index.es399.js +2 -132
  380. package/index.es4.js +61 -57
  381. package/index.es400.js +69 -17
  382. package/index.es401.js +65 -6
  383. package/index.es404.js +1 -1
  384. package/index.es405.js +1 -1
  385. package/index.es408.js +1 -1
  386. package/index.es410.js +1 -1
  387. package/index.es414.js +8 -2
  388. package/index.es415.js +7 -2
  389. package/index.es416.js +19 -7
  390. package/index.es417.js +51 -7
  391. package/index.es418.js +247 -18
  392. package/index.es419.js +43 -51
  393. package/index.es420.js +14 -247
  394. package/index.es421.js +10 -43
  395. package/index.es422.js +47 -15
  396. package/index.es423.js +26 -10
  397. package/index.es424.js +118 -37
  398. package/index.es425.js +109 -23
  399. package/index.es426.js +2 -129
  400. package/index.es427.js +2 -112
  401. package/index.es81.js +1 -1
  402. package/index.es82.js +1 -1
  403. package/index.es85.js +2 -2
  404. package/index.es88.js +2 -2
  405. package/index.es92.js +1 -1
  406. package/package.json +1 -1
package/index.es393.js CHANGED
@@ -1,48 +1,261 @@
1
- import { clsx as v } from "./index.es102.js";
2
- import k from "./index.es391.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
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();
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.es394.js CHANGED
@@ -1,27 +1,34 @@
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);
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;
24
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
+ };
25
30
  export {
26
- i as default
31
+ u as getRegisteredStyles,
32
+ y as insertStyles,
33
+ o as registerStyles
27
34
  };
package/index.es395.js CHANGED
@@ -1,80 +1,8 @@
1
- import T from "./index.es196.js";
2
- import * as _ from "react";
3
- import L from "./index.es416.js";
4
- import { getRegisteredStyles as A, registerStyles as I, insertStyles as z } from "./index.es397.js";
5
- import { serializeStyles as D } from "./index.es399.js";
6
- import { useInsertionEffectAlwaysWithSyncFallback as U } from "./index.es398.js";
7
- import { w as V, T as x } from "./index.es352.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
+ 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;
78
5
  export {
79
- H as default
6
+ c as useInsertionEffectAlwaysWithSyncFallback,
7
+ f as useInsertionEffectWithLayoutFallback
80
8
  };