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.es394.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import c from "./index.es207.js";
2
2
  import * as e from "react";
3
3
  import { jsx as f } from "react/jsx-runtime";
4
- import t from "./index.es484.js";
4
+ import t from "./index.es483.js";
5
5
  function d(n, r) {
6
6
  function o(m, i) {
7
7
  return /* @__PURE__ */ f(t, c({
package/index.es403.js CHANGED
@@ -1,15 +1,26 @@
1
- import r from "./index.es404.js";
2
- function y(e, o) {
3
- const n = r(e, o);
4
- return process.env.NODE_ENV !== "production" ? (...t) => {
5
- const i = typeof e == "string" ? `"${e}"` : "component";
6
- return t.length === 0 || t.some((s) => s === void 0), n(...t);
7
- } : n;
1
+ import r from "./index.es209.js";
2
+ import c from "./index.es404.js";
3
+ function m(n) {
4
+ const {
5
+ prototype: e = {}
6
+ } = n;
7
+ return !!e.isReactComponent;
8
8
  }
9
- const c = (e, o) => {
10
- Array.isArray(e.__emotion_styles) && (e.__emotion_styles = o(e.__emotion_styles));
11
- };
9
+ function l(n, e, p, f, s) {
10
+ const o = n[e], u = s || e;
11
+ if (o == null || // When server-side rendering React doesn't warn either.
12
+ // This is not an accurate check for SSR.
13
+ // This is only in place for Emotion compat.
14
+ // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
15
+ typeof window > "u")
16
+ return null;
17
+ let t;
18
+ const i = o.type;
19
+ return typeof i == "function" && !m(i) && (t = "Did you accidentally use a plain function component for an element instead?"), t !== void 0 ? new Error(`Invalid ${f} \`${u}\` supplied to \`${p}\`. Expected an element that can hold a ref. ${t} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
20
+ }
21
+ const a = c(r.element, l);
22
+ a.isRequired = c(r.element.isRequired, l);
23
+ const R = a;
12
24
  export {
13
- y as default,
14
- c as internal_processStyles
25
+ R as default
15
26
  };
package/index.es404.js CHANGED
@@ -1,145 +1,8 @@
1
- import a from "./index.es466.js";
2
- import "react";
3
- var r = [
4
- "a",
5
- "abbr",
6
- "address",
7
- "area",
8
- "article",
9
- "aside",
10
- "audio",
11
- "b",
12
- "base",
13
- "bdi",
14
- "bdo",
15
- "big",
16
- "blockquote",
17
- "body",
18
- "br",
19
- "button",
20
- "canvas",
21
- "caption",
22
- "cite",
23
- "code",
24
- "col",
25
- "colgroup",
26
- "data",
27
- "datalist",
28
- "dd",
29
- "del",
30
- "details",
31
- "dfn",
32
- "dialog",
33
- "div",
34
- "dl",
35
- "dt",
36
- "em",
37
- "embed",
38
- "fieldset",
39
- "figcaption",
40
- "figure",
41
- "footer",
42
- "form",
43
- "h1",
44
- "h2",
45
- "h3",
46
- "h4",
47
- "h5",
48
- "h6",
49
- "head",
50
- "header",
51
- "hgroup",
52
- "hr",
53
- "html",
54
- "i",
55
- "iframe",
56
- "img",
57
- "input",
58
- "ins",
59
- "kbd",
60
- "keygen",
61
- "label",
62
- "legend",
63
- "li",
64
- "link",
65
- "main",
66
- "map",
67
- "mark",
68
- "marquee",
69
- "menu",
70
- "menuitem",
71
- "meta",
72
- "meter",
73
- "nav",
74
- "noscript",
75
- "object",
76
- "ol",
77
- "optgroup",
78
- "option",
79
- "output",
80
- "p",
81
- "param",
82
- "picture",
83
- "pre",
84
- "progress",
85
- "q",
86
- "rp",
87
- "rt",
88
- "ruby",
89
- "s",
90
- "samp",
91
- "script",
92
- "section",
93
- "select",
94
- "small",
95
- "source",
96
- "span",
97
- "strong",
98
- "style",
99
- "sub",
100
- "summary",
101
- "sup",
102
- "table",
103
- "tbody",
104
- "td",
105
- "textarea",
106
- "tfoot",
107
- "th",
108
- "thead",
109
- "time",
110
- "title",
111
- "tr",
112
- "track",
113
- "u",
114
- "ul",
115
- "var",
116
- "video",
117
- "wbr",
118
- // SVG
119
- "circle",
120
- "clipPath",
121
- "defs",
122
- "ellipse",
123
- "foreignObject",
124
- "g",
125
- "image",
126
- "line",
127
- "linearGradient",
128
- "mask",
129
- "path",
130
- "pattern",
131
- "polygon",
132
- "polyline",
133
- "radialGradient",
134
- "rect",
135
- "stop",
136
- "svg",
137
- "text",
138
- "tspan"
139
- ], t = a.bind();
140
- r.forEach(function(e) {
141
- t[e] = t(e);
142
- });
1
+ function u(e, r) {
2
+ return process.env.NODE_ENV === "production" ? () => null : function(...n) {
3
+ return e(...n) || r(...n);
4
+ };
5
+ }
143
6
  export {
144
- t as default
7
+ u as default
145
8
  };
package/index.es405.js CHANGED
@@ -1,45 +1,23 @@
1
- import i from "./index.es406.js";
2
- import b from "./index.es407.js";
3
- import l from "./index.es408.js";
4
- import { createUnaryUnit as u, getValue as c } from "./index.es409.js";
5
- import { handleBreakpoints as m } from "./index.es410.js";
6
- function e(r) {
7
- return typeof r != "number" ? r : `${r}px solid`;
1
+ import c from "./index.es209.js";
2
+ import l from "./index.es404.js";
3
+ function f(n) {
4
+ const {
5
+ prototype: e = {}
6
+ } = n;
7
+ return !!e.isReactComponent;
8
8
  }
9
- function o(r, t) {
10
- return b({
11
- prop: r,
12
- themeKey: "borders",
13
- transform: t
14
- });
9
+ function u(n, e, i, r, p) {
10
+ const t = n[e], a = p || e;
11
+ if (t == null || // When server-side rendering React doesn't warn either.
12
+ // This is not an accurate check for SSR.
13
+ // This is only in place for emotion compat.
14
+ // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
15
+ typeof window > "u")
16
+ return null;
17
+ let o;
18
+ return typeof t == "function" && !f(t) && (o = "Did you accidentally provide a plain function component instead?"), o !== void 0 ? new Error(`Invalid ${r} \`${a}\` supplied to \`${i}\`. Expected an element type that can hold a ref. ${o} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
15
19
  }
16
- const f = o("border", e), a = o("borderTop", e), p = o("borderRight", e), R = o("borderBottom", e), C = o("borderLeft", e), h = o("borderColor"), y = o("borderTopColor"), T = o("borderRightColor"), B = o("borderBottomColor"), g = o("borderLeftColor"), L = o("outline", e), P = o("outlineColor"), d = (r) => {
17
- if (r.borderRadius !== void 0 && r.borderRadius !== null) {
18
- const t = u(r.theme, "shape.borderRadius", 4, "borderRadius"), n = (s) => ({
19
- borderRadius: c(t, s)
20
- });
21
- return m(r, r.borderRadius, n);
22
- }
23
- return null;
24
- };
25
- d.propTypes = process.env.NODE_ENV !== "production" ? {
26
- borderRadius: i
27
- } : {};
28
- d.filterProps = ["borderRadius"];
29
- l(f, a, p, R, C, h, y, T, B, g, d, L, P);
20
+ const m = l(c.elementType, u);
30
21
  export {
31
- f as border,
32
- R as borderBottom,
33
- B as borderBottomColor,
34
- h as borderColor,
35
- C as borderLeft,
36
- g as borderLeftColor,
37
- d as borderRadius,
38
- p as borderRight,
39
- T as borderRightColor,
40
- a as borderTop,
41
- y as borderTopColor,
42
- e as borderTransform,
43
- L as outline,
44
- P as outlineColor
22
+ m as default
45
23
  };
package/index.es406.js CHANGED
@@ -1,5 +1,34 @@
1
- import e from "./index.es209.js";
2
- const o = process.env.NODE_ENV !== "production" ? e.oneOfType([e.number, e.string, e.object, e.array]) : {}, p = o;
1
+ import { r as n } from "./index.es407.js";
2
+ const i = /^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;
3
+ function c(e) {
4
+ const t = `${e}`.match(i);
5
+ return t && t[1] || "";
6
+ }
7
+ function f(e, t = "") {
8
+ return e.displayName || e.name || c(e) || t;
9
+ }
10
+ function u(e, t, r) {
11
+ const a = f(t);
12
+ return e.displayName || (a !== "" ? `${r}(${a})` : r);
13
+ }
14
+ function d(e) {
15
+ if (e != null) {
16
+ if (typeof e == "string")
17
+ return e;
18
+ if (typeof e == "function")
19
+ return f(e, "Component");
20
+ if (typeof e == "object")
21
+ switch (e.$$typeof) {
22
+ case n.ForwardRef:
23
+ return u(e, e.render, "ForwardRef");
24
+ case n.Memo:
25
+ return u(e, e.type, "memo");
26
+ default:
27
+ return;
28
+ }
29
+ }
30
+ }
3
31
  export {
4
- p as default
32
+ d as default,
33
+ c as getFunctionName
5
34
  };
package/index.es407.js CHANGED
@@ -1,43 +1,8 @@
1
- import P from "./index.es406.js";
2
- import { handleBreakpoints as m } from "./index.es410.js";
3
- import $ from "./index.es416.js";
4
- function c(t, e, f = !0) {
5
- if (!e || typeof e != "string")
6
- return null;
7
- if (t && t.vars && f) {
8
- const n = `vars.${e}`.split(".").reduce((r, s) => r && r[s] ? r[s] : null, t);
9
- if (n != null)
10
- return n;
11
- }
12
- return e.split(".").reduce((n, r) => n && n[r] != null ? n[r] : null, t);
13
- }
14
- function y(t, e, f, n = f) {
15
- let r;
16
- return typeof t == "function" ? r = t(f) : Array.isArray(t) ? r = t[f] || n : r = c(t, f) || n, e && (r = e(r, n, t)), r;
17
- }
18
- function k(t) {
19
- const {
20
- prop: e,
21
- cssProperty: f = t.prop,
22
- themeKey: n,
23
- transform: r
24
- } = t, s = (o) => {
25
- if (o[e] == null)
26
- return null;
27
- const v = o[e], d = o.theme, i = c(d, n) || {};
28
- return m(o, v, (u) => {
29
- let l = y(i, r, u);
30
- return u === l && typeof u == "string" && (l = y(i, r, `${e}${u === "default" ? "" : $(u)}`, u)), f === !1 ? l : {
31
- [f]: l
32
- };
33
- });
34
- };
35
- return s.propTypes = process.env.NODE_ENV !== "production" ? {
36
- [e]: P
37
- } : {}, s.filterProps = [e], s;
38
- }
1
+ import { __module as r } from "./index.es460.js";
2
+ import { __require as e } from "./index.es461.js";
3
+ import { __require as o } from "./index.es462.js";
4
+ process.env.NODE_ENV === "production" ? r.exports = e() : r.exports = o();
5
+ var i = r.exports;
39
6
  export {
40
- k as default,
41
- c as getPath,
42
- y as getStyleValue
7
+ i as r
43
8
  };
package/index.es408.js CHANGED
@@ -1,10 +1,9 @@
1
- import c from "./index.es411.js";
2
- function f(...n) {
3
- const u = n.reduce((r, e) => (e.filterProps.forEach((o) => {
4
- r[o] = e;
5
- }), r), {}), t = (r) => Object.keys(r).reduce((e, o) => u[o] ? c(e, u[o](r)) : e, {});
6
- return t.propTypes = process.env.NODE_ENV !== "production" ? n.reduce((r, e) => Object.assign(r, e.propTypes), {}) : {}, t.filterProps = n.reduce((r, e) => r.concat(e.filterProps), []), t;
1
+ import e from "./index.es372.js";
2
+ function o(r) {
3
+ if (typeof r != "string")
4
+ throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : e(7));
5
+ return r.charAt(0).toUpperCase() + r.slice(1);
7
6
  }
8
7
  export {
9
- f as default
8
+ o as default
10
9
  };
package/index.es409.js CHANGED
@@ -1,78 +1,5 @@
1
- import d from "./index.es406.js";
2
- import { handleBreakpoints as f } from "./index.es410.js";
3
- import { getPath as l } from "./index.es407.js";
4
- import y from "./index.es411.js";
5
- import h from "./index.es415.js";
6
- const v = {
7
- m: "margin",
8
- p: "padding"
9
- }, E = {
10
- t: "Top",
11
- r: "Right",
12
- b: "Bottom",
13
- l: "Left",
14
- x: ["Left", "Right"],
15
- y: ["Top", "Bottom"]
16
- }, p = {
17
- marginX: "mx",
18
- marginY: "my",
19
- paddingX: "px",
20
- paddingY: "py"
21
- }, N = h((e) => {
22
- if (e.length > 2)
23
- if (p[e])
24
- e = p[e];
25
- else
26
- return [e];
27
- const [n, t] = e.split(""), r = v[n], a = E[t] || "";
28
- return Array.isArray(a) ? a.map((o) => r + o) : [r + a];
29
- }), s = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], m = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"], b = [...s, ...m];
30
- function I(e, n, t, r) {
31
- var a;
32
- const o = (a = l(e, n, !1)) != null ? a : t;
33
- return typeof o == "number" ? (i) => typeof i == "string" ? i : (process.env.NODE_ENV, o * i) : Array.isArray(o) ? (i) => typeof i == "string" ? i : (process.env.NODE_ENV !== "production" && Number.isInteger(i) && i > o.length - 1, o[i]) : typeof o == "function" ? o : (process.env.NODE_ENV, () => {
34
- });
35
- }
36
- function B(e) {
37
- return I(e, "spacing", 8, "spacing");
38
- }
39
- function S(e, n) {
40
- if (typeof n == "string" || n == null)
41
- return n;
42
- const t = Math.abs(n), r = e(t);
43
- return n >= 0 ? r : typeof r == "number" ? -r : `-${r}`;
44
- }
45
- function T(e, n) {
46
- return (t) => e.reduce((r, a) => (r[a] = S(n, t), r), {});
47
- }
48
- function $(e, n, t, r) {
49
- if (n.indexOf(t) === -1)
50
- return null;
51
- const a = N(t), o = T(a, r), i = e[t];
52
- return f(e, i, o);
53
- }
54
- function u(e, n) {
55
- const t = B(e.theme);
56
- return Object.keys(e).map((r) => $(e, n, r, t)).reduce(y, {});
57
- }
58
- function c(e) {
59
- return u(e, s);
60
- }
61
- c.propTypes = process.env.NODE_ENV !== "production" ? s.reduce((e, n) => (e[n] = d, e), {}) : {};
62
- c.filterProps = s;
63
- function g(e) {
64
- return u(e, m);
65
- }
66
- g.propTypes = process.env.NODE_ENV !== "production" ? m.reduce((e, n) => (e[n] = d, e), {}) : {};
67
- g.filterProps = m;
68
- process.env.NODE_ENV !== "production" && b.reduce((e, n) => (e[n] = d, e), {});
1
+ import e from "./index.es209.js";
2
+ const o = e.oneOfType([e.func, e.object]), f = o;
69
3
  export {
70
- B as createUnarySpacing,
71
- I as createUnaryUnit,
72
- T as getStyleFromPropValue,
73
- S as getValue,
74
- c as margin,
75
- s as marginKeys,
76
- g as padding,
77
- m as paddingKeys
4
+ f as default
78
5
  };
package/index.es410.js CHANGED
@@ -1,57 +1,6 @@
1
- const c = {
2
- xs: 0,
3
- // phone
4
- sm: 600,
5
- // tablet
6
- md: 900,
7
- // small laptop
8
- lg: 1200,
9
- // desktop
10
- xl: 1536
11
- // large screen
12
- }, k = {
13
- // Sorted ASC by size. That's important.
14
- // It can't be configured as it's used statically for propTypes.
15
- keys: ["xs", "sm", "md", "lg", "xl"],
16
- up: (t) => `@media (min-width:${c[t]}px)`
17
- };
18
- function m(t, e, n) {
19
- const s = t.theme || {};
20
- if (Array.isArray(e)) {
21
- const r = s.breakpoints || k;
22
- return e.reduce((u, o, i) => (u[r.up(r.keys[i])] = n(e[i]), u), {});
23
- }
24
- if (typeof e == "object") {
25
- const r = s.breakpoints || k;
26
- return Object.keys(e).reduce((u, o) => {
27
- if (Object.keys(r.values || c).indexOf(o) !== -1) {
28
- const i = r.up(o);
29
- u[i] = n(e[o], o);
30
- } else {
31
- const i = o;
32
- u[i] = e[i];
33
- }
34
- return u;
35
- }, {});
36
- }
37
- return n(e);
38
- }
39
- function y(t = {}) {
40
- var e;
41
- return ((e = t.keys) == null ? void 0 : e.reduce((s, d) => {
42
- const r = t.up(d);
43
- return s[r] = {}, s;
44
- }, {})) || {};
45
- }
46
- function f(t, e) {
47
- return t.reduce((n, s) => {
48
- const d = n[s];
49
- return (!d || Object.keys(d).length === 0) && delete n[s], n;
50
- }, e);
1
+ function e(t, n) {
2
+ typeof t == "function" ? t(n) : t && (t.current = n);
51
3
  }
52
4
  export {
53
- y as createEmptyBreakpointObject,
54
- m as handleBreakpoints,
55
- f as removeUnusedBreakpoints,
56
- c as values
5
+ e as default
57
6
  };
package/index.es411.js CHANGED
@@ -1,10 +1,21 @@
1
- import f from "./index.es372.js";
2
- function o(e, r) {
3
- return r ? f(e, r, {
4
- clone: !1
5
- // No need to clone deep, it's way faster.
6
- }) : e;
1
+ class t {
2
+ constructor() {
3
+ this.currentId = null, this.clear = () => {
4
+ this.currentId !== null && (clearTimeout(this.currentId), this.currentId = null);
5
+ }, this.disposeEffect = () => this.clear;
6
+ }
7
+ static create() {
8
+ return new t();
9
+ }
10
+ /**
11
+ * Executes `fn` after `delay`, clearing any previously scheduled call.
12
+ */
13
+ start(r, e) {
14
+ this.clear(), this.currentId = setTimeout(() => {
15
+ this.currentId = null, e();
16
+ }, r);
17
+ }
7
18
  }
8
19
  export {
9
- o as default
20
+ t as Timeout
10
21
  };