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.es374.js CHANGED
@@ -1,93 +1,29 @@
1
- import k from "./index.es411.js";
2
- import { getPath as j, getStyleValue as h } from "./index.es407.js";
3
- import { createEmptyBreakpointObject as x, handleBreakpoints as p, removeUnusedBreakpoints as O } from "./index.es410.js";
4
- import P from "./index.es373.js";
5
- import B from "./index.es416.js";
6
- function _(...s) {
7
- const a = s.reduce((t, i) => t.concat(Object.keys(i)), []), r = new Set(a);
8
- return s.every((t) => r.size === Object.keys(t).length);
1
+ import r from "./index.es207.js";
2
+ import * as i from "react";
3
+ function f(t) {
4
+ if (typeof t != "object" || t === null)
5
+ return !1;
6
+ const n = Object.getPrototypeOf(t);
7
+ return (n === null || n === Object.prototype || Object.getPrototypeOf(n) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
9
8
  }
10
- function $(s, a) {
11
- return typeof s == "function" ? s(a) : s;
9
+ function p(t) {
10
+ if (/* @__PURE__ */ i.isValidElement(t) || !f(t))
11
+ return t;
12
+ const n = {};
13
+ return Object.keys(t).forEach((o) => {
14
+ n[o] = p(t[o]);
15
+ }), n;
12
16
  }
13
- function C() {
14
- function s(r, t, i, o) {
15
- const m = {
16
- [r]: t,
17
- theme: i
18
- }, y = o[r];
19
- if (!y)
20
- return {
21
- [r]: t
22
- };
23
- const {
24
- cssProperty: c = r,
25
- themeKey: f,
26
- transform: b,
27
- style: g
28
- } = y;
29
- if (t == null)
30
- return null;
31
- if (f === "typography" && t === "inherit")
32
- return {
33
- [r]: t
34
- };
35
- const n = j(i, f) || {};
36
- return g ? g(m) : p(m, t, (e) => {
37
- let l = h(n, b, e);
38
- return e === l && typeof e == "string" && (l = h(n, b, `${r}${e === "default" ? "" : B(e)}`, e)), c === !1 ? l : {
39
- [c]: l
40
- };
41
- });
42
- }
43
- function a(r) {
44
- var t;
45
- const {
46
- sx: i,
47
- theme: o = {}
48
- } = r || {};
49
- if (!i)
50
- return null;
51
- const m = (t = o.unstable_sxConfig) != null ? t : P;
52
- function y(c) {
53
- let f = c;
54
- if (typeof c == "function")
55
- f = c(o);
56
- else if (typeof c != "object")
57
- return c;
58
- if (!f)
59
- return null;
60
- const b = x(o.breakpoints), g = Object.keys(b);
61
- let n = b;
62
- return Object.keys(f).forEach((u) => {
63
- const e = $(f[u], o);
64
- if (e != null)
65
- if (typeof e == "object")
66
- if (m[u])
67
- n = k(n, s(u, e, o, m));
68
- else {
69
- const l = p({
70
- theme: o
71
- }, e, (d) => ({
72
- [u]: d
73
- }));
74
- _(l, e) ? n[u] = a({
75
- sx: e,
76
- theme: o
77
- }) : n = k(n, l);
78
- }
79
- else
80
- n = k(n, s(u, e, o, m));
81
- }), O(g, n);
82
- }
83
- return Array.isArray(i) ? i.map(y) : y(i);
84
- }
85
- return a;
17
+ function b(t, n, o = {
18
+ clone: !0
19
+ }) {
20
+ const e = o.clone ? r({}, t) : t;
21
+ return f(t) && f(n) && Object.keys(n).forEach((l) => {
22
+ /* @__PURE__ */ i.isValidElement(n[l]) ? e[l] = n[l] : f(n[l]) && // Avoid prototype pollution
23
+ Object.prototype.hasOwnProperty.call(t, l) && f(t[l]) ? e[l] = b(t[l], n[l], o) : o.clone ? e[l] = f(n[l]) ? p(n[l]) : n[l] : e[l] = n[l];
24
+ }), e;
86
25
  }
87
- const S = C();
88
- S.filterProps = ["sx"];
89
- const H = S;
90
26
  export {
91
- H as default,
92
- C as unstable_createStyleFunctionSx
27
+ b as default,
28
+ f as isPlainObject
93
29
  };
package/index.es375.js CHANGED
@@ -1,5 +1,293 @@
1
- import e from "./index.es363.js";
2
- const t = e(), m = t;
1
+ import { padding as e, margin as t } from "./index.es430.js";
2
+ import { borderTransform as r, borderRadius as s } from "./index.es426.js";
3
+ import { gap as i, rowGap as n, columnGap as m } from "./index.es433.js";
4
+ import { paletteTransform as l } from "./index.es434.js";
5
+ import { sizingTransform as o, maxWidth as y } from "./index.es435.js";
6
+ const d = {
7
+ // borders
8
+ border: {
9
+ themeKey: "borders",
10
+ transform: r
11
+ },
12
+ borderTop: {
13
+ themeKey: "borders",
14
+ transform: r
15
+ },
16
+ borderRight: {
17
+ themeKey: "borders",
18
+ transform: r
19
+ },
20
+ borderBottom: {
21
+ themeKey: "borders",
22
+ transform: r
23
+ },
24
+ borderLeft: {
25
+ themeKey: "borders",
26
+ transform: r
27
+ },
28
+ borderColor: {
29
+ themeKey: "palette"
30
+ },
31
+ borderTopColor: {
32
+ themeKey: "palette"
33
+ },
34
+ borderRightColor: {
35
+ themeKey: "palette"
36
+ },
37
+ borderBottomColor: {
38
+ themeKey: "palette"
39
+ },
40
+ borderLeftColor: {
41
+ themeKey: "palette"
42
+ },
43
+ outline: {
44
+ themeKey: "borders",
45
+ transform: r
46
+ },
47
+ outlineColor: {
48
+ themeKey: "palette"
49
+ },
50
+ borderRadius: {
51
+ themeKey: "shape.borderRadius",
52
+ style: s
53
+ },
54
+ // palette
55
+ color: {
56
+ themeKey: "palette",
57
+ transform: l
58
+ },
59
+ bgcolor: {
60
+ themeKey: "palette",
61
+ cssProperty: "backgroundColor",
62
+ transform: l
63
+ },
64
+ backgroundColor: {
65
+ themeKey: "palette",
66
+ transform: l
67
+ },
68
+ // spacing
69
+ p: {
70
+ style: e
71
+ },
72
+ pt: {
73
+ style: e
74
+ },
75
+ pr: {
76
+ style: e
77
+ },
78
+ pb: {
79
+ style: e
80
+ },
81
+ pl: {
82
+ style: e
83
+ },
84
+ px: {
85
+ style: e
86
+ },
87
+ py: {
88
+ style: e
89
+ },
90
+ padding: {
91
+ style: e
92
+ },
93
+ paddingTop: {
94
+ style: e
95
+ },
96
+ paddingRight: {
97
+ style: e
98
+ },
99
+ paddingBottom: {
100
+ style: e
101
+ },
102
+ paddingLeft: {
103
+ style: e
104
+ },
105
+ paddingX: {
106
+ style: e
107
+ },
108
+ paddingY: {
109
+ style: e
110
+ },
111
+ paddingInline: {
112
+ style: e
113
+ },
114
+ paddingInlineStart: {
115
+ style: e
116
+ },
117
+ paddingInlineEnd: {
118
+ style: e
119
+ },
120
+ paddingBlock: {
121
+ style: e
122
+ },
123
+ paddingBlockStart: {
124
+ style: e
125
+ },
126
+ paddingBlockEnd: {
127
+ style: e
128
+ },
129
+ m: {
130
+ style: t
131
+ },
132
+ mt: {
133
+ style: t
134
+ },
135
+ mr: {
136
+ style: t
137
+ },
138
+ mb: {
139
+ style: t
140
+ },
141
+ ml: {
142
+ style: t
143
+ },
144
+ mx: {
145
+ style: t
146
+ },
147
+ my: {
148
+ style: t
149
+ },
150
+ margin: {
151
+ style: t
152
+ },
153
+ marginTop: {
154
+ style: t
155
+ },
156
+ marginRight: {
157
+ style: t
158
+ },
159
+ marginBottom: {
160
+ style: t
161
+ },
162
+ marginLeft: {
163
+ style: t
164
+ },
165
+ marginX: {
166
+ style: t
167
+ },
168
+ marginY: {
169
+ style: t
170
+ },
171
+ marginInline: {
172
+ style: t
173
+ },
174
+ marginInlineStart: {
175
+ style: t
176
+ },
177
+ marginInlineEnd: {
178
+ style: t
179
+ },
180
+ marginBlock: {
181
+ style: t
182
+ },
183
+ marginBlockStart: {
184
+ style: t
185
+ },
186
+ marginBlockEnd: {
187
+ style: t
188
+ },
189
+ // display
190
+ displayPrint: {
191
+ cssProperty: !1,
192
+ transform: (a) => ({
193
+ "@media print": {
194
+ display: a
195
+ }
196
+ })
197
+ },
198
+ display: {},
199
+ overflow: {},
200
+ textOverflow: {},
201
+ visibility: {},
202
+ whiteSpace: {},
203
+ // flexbox
204
+ flexBasis: {},
205
+ flexDirection: {},
206
+ flexWrap: {},
207
+ justifyContent: {},
208
+ alignItems: {},
209
+ alignContent: {},
210
+ order: {},
211
+ flex: {},
212
+ flexGrow: {},
213
+ flexShrink: {},
214
+ alignSelf: {},
215
+ justifyItems: {},
216
+ justifySelf: {},
217
+ // grid
218
+ gap: {
219
+ style: i
220
+ },
221
+ rowGap: {
222
+ style: n
223
+ },
224
+ columnGap: {
225
+ style: m
226
+ },
227
+ gridColumn: {},
228
+ gridRow: {},
229
+ gridAutoFlow: {},
230
+ gridAutoColumns: {},
231
+ gridAutoRows: {},
232
+ gridTemplateColumns: {},
233
+ gridTemplateRows: {},
234
+ gridTemplateAreas: {},
235
+ gridArea: {},
236
+ // positions
237
+ position: {},
238
+ zIndex: {
239
+ themeKey: "zIndex"
240
+ },
241
+ top: {},
242
+ right: {},
243
+ bottom: {},
244
+ left: {},
245
+ // shadows
246
+ boxShadow: {
247
+ themeKey: "shadows"
248
+ },
249
+ // sizing
250
+ width: {
251
+ transform: o
252
+ },
253
+ maxWidth: {
254
+ style: y
255
+ },
256
+ minWidth: {
257
+ transform: o
258
+ },
259
+ height: {
260
+ transform: o
261
+ },
262
+ maxHeight: {
263
+ transform: o
264
+ },
265
+ minHeight: {
266
+ transform: o
267
+ },
268
+ boxSizing: {},
269
+ // typography
270
+ fontFamily: {
271
+ themeKey: "typography"
272
+ },
273
+ fontSize: {
274
+ themeKey: "typography"
275
+ },
276
+ fontStyle: {
277
+ themeKey: "typography"
278
+ },
279
+ fontWeight: {
280
+ themeKey: "typography"
281
+ },
282
+ letterSpacing: {},
283
+ textTransform: {},
284
+ lineHeight: {},
285
+ textAlign: {},
286
+ typography: {
287
+ cssProperty: !1,
288
+ themeKey: "typography"
289
+ }
290
+ }, K = d;
3
291
  export {
4
- m as default
292
+ K as default
5
293
  };
package/index.es376.js CHANGED
@@ -1,10 +1,93 @@
1
- import t from "./index.es421.js";
2
- import m from "./index.es371.js";
3
- const r = m();
4
- function u(e = r) {
5
- return t(e);
1
+ import k from "./index.es432.js";
2
+ import { getPath as j, getStyleValue as h } from "./index.es428.js";
3
+ import { createEmptyBreakpointObject as x, handleBreakpoints as p, removeUnusedBreakpoints as O } from "./index.es431.js";
4
+ import P from "./index.es375.js";
5
+ import B from "./index.es408.js";
6
+ function _(...s) {
7
+ const a = s.reduce((t, i) => t.concat(Object.keys(i)), []), r = new Set(a);
8
+ return s.every((t) => r.size === Object.keys(t).length);
6
9
  }
10
+ function $(s, a) {
11
+ return typeof s == "function" ? s(a) : s;
12
+ }
13
+ function C() {
14
+ function s(r, t, i, o) {
15
+ const m = {
16
+ [r]: t,
17
+ theme: i
18
+ }, y = o[r];
19
+ if (!y)
20
+ return {
21
+ [r]: t
22
+ };
23
+ const {
24
+ cssProperty: c = r,
25
+ themeKey: f,
26
+ transform: b,
27
+ style: g
28
+ } = y;
29
+ if (t == null)
30
+ return null;
31
+ if (f === "typography" && t === "inherit")
32
+ return {
33
+ [r]: t
34
+ };
35
+ const n = j(i, f) || {};
36
+ return g ? g(m) : p(m, t, (e) => {
37
+ let l = h(n, b, e);
38
+ return e === l && typeof e == "string" && (l = h(n, b, `${r}${e === "default" ? "" : B(e)}`, e)), c === !1 ? l : {
39
+ [c]: l
40
+ };
41
+ });
42
+ }
43
+ function a(r) {
44
+ var t;
45
+ const {
46
+ sx: i,
47
+ theme: o = {}
48
+ } = r || {};
49
+ if (!i)
50
+ return null;
51
+ const m = (t = o.unstable_sxConfig) != null ? t : P;
52
+ function y(c) {
53
+ let f = c;
54
+ if (typeof c == "function")
55
+ f = c(o);
56
+ else if (typeof c != "object")
57
+ return c;
58
+ if (!f)
59
+ return null;
60
+ const b = x(o.breakpoints), g = Object.keys(b);
61
+ let n = b;
62
+ return Object.keys(f).forEach((u) => {
63
+ const e = $(f[u], o);
64
+ if (e != null)
65
+ if (typeof e == "object")
66
+ if (m[u])
67
+ n = k(n, s(u, e, o, m));
68
+ else {
69
+ const l = p({
70
+ theme: o
71
+ }, e, (d) => ({
72
+ [u]: d
73
+ }));
74
+ _(l, e) ? n[u] = a({
75
+ sx: e,
76
+ theme: o
77
+ }) : n = k(n, l);
78
+ }
79
+ else
80
+ n = k(n, s(u, e, o, m));
81
+ }), O(g, n);
82
+ }
83
+ return Array.isArray(i) ? i.map(y) : y(i);
84
+ }
85
+ return a;
86
+ }
87
+ const S = C();
88
+ S.filterProps = ["sx"];
89
+ const H = S;
7
90
  export {
8
- u as default,
9
- r as systemDefaultTheme
91
+ H as default,
92
+ C as unstable_createStyleFunctionSx
10
93
  };
package/index.es377.js CHANGED
@@ -1,18 +1,5 @@
1
- import s from "./index.es455.js";
2
- import p from "./index.es376.js";
3
- function n({
4
- props: o,
5
- name: m,
6
- defaultTheme: t,
7
- themeId: r
8
- }) {
9
- let e = p(t);
10
- return r && (e = e[r] || e), s({
11
- theme: e,
12
- name: m,
13
- props: o
14
- });
15
- }
1
+ import e from "./index.es365.js";
2
+ const t = e(), m = t;
16
3
  export {
17
- n as default
4
+ m as default
18
5
  };
package/index.es378.js CHANGED
@@ -1,149 +1,10 @@
1
- import l from "./index.es207.js";
2
- import E from "./index.es208.js";
3
- import W, { internal_processStyles as z } from "./index.es403.js";
4
- import I from "./index.es371.js";
5
- import q from "./index.es416.js";
6
- import B from "./index.es417.js";
7
- import G from "./index.es374.js";
8
- import { isPlainObject as H } from "./index.es372.js";
9
- const J = ["ownerState"], K = ["variants"], Q = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
10
- function U(e) {
11
- return Object.keys(e).length === 0;
12
- }
13
- function X(e) {
14
- return typeof e == "string" && // 96 is one less than the char code
15
- // for "a" so this is checking that
16
- // it's a lowercase character
17
- e.charCodeAt(0) > 96;
18
- }
19
- function A(e) {
20
- return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
21
- }
22
- const Y = I(), j = (e) => e && e.charAt(0).toLowerCase() + e.slice(1);
23
- function w({
24
- defaultTheme: e,
25
- theme: i,
26
- themeId: o
27
- }) {
28
- return U(i) ? e : i[o] || i;
29
- }
30
- function Z(e) {
31
- return e ? (i, o) => o[e] : null;
32
- }
33
- function x(e, i) {
34
- let {
35
- ownerState: o
36
- } = i, p = E(i, J);
37
- const u = typeof e == "function" ? e(l({
38
- ownerState: o
39
- }, p)) : e;
40
- if (Array.isArray(u))
41
- return u.flatMap((h) => x(h, l({
42
- ownerState: o
43
- }, p)));
44
- if (u && typeof u == "object" && Array.isArray(u.variants)) {
45
- const {
46
- variants: h = []
47
- } = u;
48
- let a = E(u, K);
49
- return h.forEach((t) => {
50
- let n = !0;
51
- typeof t.props == "function" ? n = t.props(l({
52
- ownerState: o
53
- }, p, o)) : Object.keys(t.props).forEach((d) => {
54
- (o == null ? void 0 : o[d]) !== t.props[d] && p[d] !== t.props[d] && (n = !1);
55
- }), n && (Array.isArray(a) || (a = [a]), a.push(typeof t.style == "function" ? t.style(l({
56
- ownerState: o
57
- }, p, o)) : t.style));
58
- }), a;
59
- }
60
- return u;
61
- }
62
- function le(e = {}) {
63
- const {
64
- themeId: i,
65
- defaultTheme: o = Y,
66
- rootShouldForwardProp: p = A,
67
- slotShouldForwardProp: u = A
68
- } = e, h = (f) => G(l({}, f, {
69
- theme: w(l({}, f, {
70
- defaultTheme: o,
71
- themeId: i
72
- }))
73
- }));
74
- return h.__mui_systemSx = !0, (f, a = {}) => {
75
- z(f, (s) => s.filter((m) => !(m != null && m.__mui_systemSx)));
76
- const {
77
- name: t,
78
- slot: n,
79
- skipVariantsResolver: d,
80
- skipSx: T,
81
- // TODO v6: remove `lowercaseFirstLetter()` in the next major release
82
- // For more details: https://github.com/mui/material-ui/pull/37908
83
- overridesResolver: F = Z(j(n))
84
- } = a, $ = E(a, Q), b = d !== void 0 ? d : (
85
- // TODO v6: remove `Root` in the next major release
86
- // For more details: https://github.com/mui/material-ui/pull/37908
87
- n && n !== "Root" && n !== "root" || !1
88
- ), D = T || !1;
89
- let k;
90
- process.env.NODE_ENV !== "production" && t && (k = `${t}-${j(n || "Root")}`);
91
- let v = A;
92
- n === "Root" || n === "root" ? v = p : n ? v = u : X(f) && (v = void 0);
93
- const O = W(f, l({
94
- shouldForwardProp: v,
95
- label: k
96
- }, $)), C = (s) => typeof s == "function" && s.__emotion_real !== s || H(s) ? (m) => x(s, l({}, m, {
97
- theme: w({
98
- theme: m.theme,
99
- defaultTheme: o,
100
- themeId: i
101
- })
102
- })) : s, P = (s, ...m) => {
103
- let R = C(s);
104
- const y = m ? m.map(C) : [];
105
- t && F && y.push((r) => {
106
- const c = w(l({}, r, {
107
- defaultTheme: o,
108
- themeId: i
109
- }));
110
- if (!c.components || !c.components[t] || !c.components[t].styleOverrides)
111
- return null;
112
- const S = c.components[t].styleOverrides, _ = {};
113
- return Object.entries(S).forEach(([L, M]) => {
114
- _[L] = x(M, l({}, r, {
115
- theme: c
116
- }));
117
- }), F(r, _);
118
- }), t && !b && y.push((r) => {
119
- var c;
120
- const S = w(l({}, r, {
121
- defaultTheme: o,
122
- themeId: i
123
- })), _ = S == null || (c = S.components) == null || (c = c[t]) == null ? void 0 : c.variants;
124
- return x({
125
- variants: _
126
- }, l({}, r, {
127
- theme: S
128
- }));
129
- }), D || y.push(h);
130
- const V = y.length - m.length;
131
- if (Array.isArray(s) && V > 0) {
132
- const r = new Array(V).fill("");
133
- R = [...s, ...r], R.raw = [...s.raw, ...r];
134
- }
135
- const N = O(R, ...y);
136
- if (process.env.NODE_ENV !== "production") {
137
- let r;
138
- t && (r = `${t}${q(n || "")}`), r === void 0 && (r = `Styled(${B(f)})`), N.displayName = r;
139
- }
140
- return f.muiName && (N.muiName = f.muiName), N;
141
- };
142
- return O.withConfig && (P.withConfig = O.withConfig), P;
143
- };
1
+ import t from "./index.es440.js";
2
+ import m from "./index.es373.js";
3
+ const r = m();
4
+ function u(e = r) {
5
+ return t(e);
144
6
  }
145
7
  export {
146
- le as default,
147
- A as shouldForwardProp,
148
- Y as systemDefaultTheme
8
+ u as default,
9
+ r as systemDefaultTheme
149
10
  };