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.es387.js CHANGED
@@ -1,97 +1,208 @@
1
- import y from "./index.es423.js";
2
- import l from "./index.es370.js";
3
- function h(e, t = 0, n = 1) {
4
- return process.env.NODE_ENV !== "production" && (e < t || e > n), y(e, t, n);
5
- }
6
- function x(e) {
7
- e = e.slice(1);
8
- const t = new RegExp(`.{1,${e.length >= 6 ? 2 : 1}}`, "g");
9
- let n = e.match(t);
10
- return n && n[0].length === 1 && (n = n.map((s) => s + s)), n ? `rgb${n.length === 4 ? "a" : ""}(${n.map((s, r) => r < 3 ? parseInt(s, 16) : Math.round(parseInt(s, 16) / 255 * 1e3) / 1e3).join(", ")})` : "";
11
- }
12
- function a(e) {
13
- if (e.type)
14
- return e;
15
- if (e.charAt(0) === "#")
16
- return a(x(e));
17
- const t = e.indexOf("("), n = e.substring(0, t);
18
- if (["rgb", "rgba", "hsl", "hsla", "color"].indexOf(n) === -1)
19
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${e}\` color.
20
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : l(9, e));
21
- let s = e.substring(t + 1, e.length - 1), r;
22
- if (n === "color") {
23
- if (s = s.split(" "), r = s.shift(), s.length === 4 && s[3].charAt(0) === "/" && (s[3] = s[3].slice(1)), ["srgb", "display-p3", "a98-rgb", "prophoto-rgb", "rec-2020"].indexOf(r) === -1)
24
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${r}\` color space.
25
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : l(10, r));
26
- } else
27
- s = s.split(",");
28
- return s = s.map((p) => parseFloat(p)), {
29
- type: n,
30
- values: s,
31
- colorSpace: r
32
- };
33
- }
34
- function i(e) {
35
- const {
36
- type: t,
37
- colorSpace: n
38
- } = e;
39
- let {
40
- values: s
41
- } = e;
42
- return t.indexOf("rgb") !== -1 ? s = s.map((r, p) => p < 3 ? parseInt(r, 10) : r) : t.indexOf("hsl") !== -1 && (s[1] = `${s[1]}%`, s[2] = `${s[2]}%`), t.indexOf("color") !== -1 ? s = `${n} ${s.join(" ")}` : s = `${s.join(", ")}`, `${t}(${s})`;
43
- }
44
- function $(e) {
45
- e = a(e);
46
- const {
47
- values: t
48
- } = e, n = t[0], s = t[1] / 100, r = t[2] / 100, p = s * Math.min(r, 1 - r), u = (b, d = (b + n / 30) % 12) => r - p * Math.max(Math.min(d - 3, 9 - d, 1), -1);
49
- let f = "rgb";
50
- const g = [Math.round(u(0) * 255), Math.round(u(8) * 255), Math.round(u(4) * 255)];
51
- return e.type === "hsla" && (f += "a", g.push(t[3])), i({
52
- type: f,
53
- values: g
1
+ import E from "./index.es207.js";
2
+ import x from "./index.es208.js";
3
+ import N from "./index.es442.js";
4
+ import v from "./index.es209.js";
5
+ import A from "./index.es443.js";
6
+ import _ from "./index.es444.js";
7
+ import C from "react";
8
+ import g from "./index.es445.js";
9
+ import { classNamesShape as $ } from "./index.es446.js";
10
+ import { forceReflow as S } from "./index.es447.js";
11
+ var T = function(i, p) {
12
+ return i && p && p.split(" ").forEach(function(s) {
13
+ return A(i, s);
54
14
  });
55
- }
56
- function m(e) {
57
- e = a(e);
58
- let t = e.type === "hsl" || e.type === "hsla" ? a($(e)).values : e.values;
59
- return t = t.map((n) => (e.type !== "color" && (n /= 255), n <= 0.03928 ? n / 12.92 : ((n + 0.055) / 1.055) ** 2.4)), Number((0.2126 * t[0] + 0.7152 * t[1] + 0.0722 * t[2]).toFixed(3));
60
- }
61
- function M(e, t) {
62
- const n = m(e), s = m(t);
63
- return (Math.max(n, s) + 0.05) / (Math.min(n, s) + 0.05);
64
- }
65
- function o(e, t) {
66
- return e = a(e), t = h(t), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${t}` : e.values[3] = t, i(e);
67
- }
68
- function E(e, t) {
69
- if (e = a(e), t = h(t), e.type.indexOf("hsl") !== -1)
70
- e.values[2] *= 1 - t;
71
- else if (e.type.indexOf("rgb") !== -1 || e.type.indexOf("color") !== -1)
72
- for (let n = 0; n < 3; n += 1)
73
- e.values[n] *= 1 - t;
74
- return i(e);
75
- }
76
- function w(e, t) {
77
- if (e = a(e), t = h(t), e.type.indexOf("hsl") !== -1)
78
- e.values[2] += (100 - e.values[2]) * t;
79
- else if (e.type.indexOf("rgb") !== -1)
80
- for (let n = 0; n < 3; n += 1)
81
- e.values[n] += (255 - e.values[n]) * t;
82
- else if (e.type.indexOf("color") !== -1)
83
- for (let n = 0; n < 3; n += 1)
84
- e.values[n] += (1 - e.values[n]) * t;
85
- return i(e);
86
- }
15
+ }, d = function(i, p) {
16
+ return i && p && p.split(" ").forEach(function(s) {
17
+ return _(i, s);
18
+ });
19
+ }, c = /* @__PURE__ */ function(u) {
20
+ N(i, u);
21
+ function i() {
22
+ for (var s, t = arguments.length, a = new Array(t), o = 0; o < t; o++)
23
+ a[o] = arguments[o];
24
+ return s = u.call.apply(u, [this].concat(a)) || this, s.appliedClasses = {
25
+ appear: {},
26
+ enter: {},
27
+ exit: {}
28
+ }, s.onEnter = function(e, r) {
29
+ var n = s.resolveArguments(e, r), l = n[0], m = n[1];
30
+ s.removeClasses(l, "exit"), s.addClass(l, m ? "appear" : "enter", "base"), s.props.onEnter && s.props.onEnter(e, r);
31
+ }, s.onEntering = function(e, r) {
32
+ var n = s.resolveArguments(e, r), l = n[0], m = n[1], f = m ? "appear" : "enter";
33
+ s.addClass(l, f, "active"), s.props.onEntering && s.props.onEntering(e, r);
34
+ }, s.onEntered = function(e, r) {
35
+ var n = s.resolveArguments(e, r), l = n[0], m = n[1], f = m ? "appear" : "enter";
36
+ s.removeClasses(l, f), s.addClass(l, f, "done"), s.props.onEntered && s.props.onEntered(e, r);
37
+ }, s.onExit = function(e) {
38
+ var r = s.resolveArguments(e), n = r[0];
39
+ s.removeClasses(n, "appear"), s.removeClasses(n, "enter"), s.addClass(n, "exit", "base"), s.props.onExit && s.props.onExit(e);
40
+ }, s.onExiting = function(e) {
41
+ var r = s.resolveArguments(e), n = r[0];
42
+ s.addClass(n, "exit", "active"), s.props.onExiting && s.props.onExiting(e);
43
+ }, s.onExited = function(e) {
44
+ var r = s.resolveArguments(e), n = r[0];
45
+ s.removeClasses(n, "exit"), s.addClass(n, "exit", "done"), s.props.onExited && s.props.onExited(e);
46
+ }, s.resolveArguments = function(e, r) {
47
+ return s.props.nodeRef ? [s.props.nodeRef.current, e] : [e, r];
48
+ }, s.getClassNames = function(e) {
49
+ var r = s.props.classNames, n = typeof r == "string", l = n && r ? r + "-" : "", m = n ? "" + l + e : r[e], f = n ? m + "-active" : r[e + "Active"], h = n ? m + "-done" : r[e + "Done"];
50
+ return {
51
+ baseClassName: m,
52
+ activeClassName: f,
53
+ doneClassName: h
54
+ };
55
+ }, s;
56
+ }
57
+ var p = i.prototype;
58
+ return p.addClass = function(t, a, o) {
59
+ var e = this.getClassNames(a)[o + "ClassName"], r = this.getClassNames("enter"), n = r.doneClassName;
60
+ a === "appear" && o === "done" && n && (e += " " + n), o === "active" && t && S(t), e && (this.appliedClasses[a][o] = e, T(t, e));
61
+ }, p.removeClasses = function(t, a) {
62
+ var o = this.appliedClasses[a], e = o.base, r = o.active, n = o.done;
63
+ this.appliedClasses[a] = {}, e && d(t, e), r && d(t, r), n && d(t, n);
64
+ }, p.render = function() {
65
+ var t = this.props;
66
+ t.classNames;
67
+ var a = x(t, ["classNames"]);
68
+ return /* @__PURE__ */ C.createElement(g, E({}, a, {
69
+ onEnter: this.onEnter,
70
+ onEntered: this.onEntered,
71
+ onEntering: this.onEntering,
72
+ onExit: this.onExit,
73
+ onExiting: this.onExiting,
74
+ onExited: this.onExited
75
+ }));
76
+ }, i;
77
+ }(C.Component);
78
+ c.defaultProps = {
79
+ classNames: ""
80
+ };
81
+ c.propTypes = process.env.NODE_ENV !== "production" ? E({}, g.propTypes, {
82
+ /**
83
+ * The animation classNames applied to the component as it appears, enters,
84
+ * exits or has finished the transition. A single name can be provided, which
85
+ * will be suffixed for each stage, e.g. `classNames="fade"` applies:
86
+ *
87
+ * - `fade-appear`, `fade-appear-active`, `fade-appear-done`
88
+ * - `fade-enter`, `fade-enter-active`, `fade-enter-done`
89
+ * - `fade-exit`, `fade-exit-active`, `fade-exit-done`
90
+ *
91
+ * A few details to note about how these classes are applied:
92
+ *
93
+ * 1. They are _joined_ with the ones that are already defined on the child
94
+ * component, so if you want to add some base styles, you can use
95
+ * `className` without worrying that it will be overridden.
96
+ *
97
+ * 2. If the transition component mounts with `in={false}`, no classes are
98
+ * applied yet. You might be expecting `*-exit-done`, but if you think
99
+ * about it, a component cannot finish exiting if it hasn't entered yet.
100
+ *
101
+ * 2. `fade-appear-done` and `fade-enter-done` will _both_ be applied. This
102
+ * allows you to define different behavior for when appearing is done and
103
+ * when regular entering is done, using selectors like
104
+ * `.fade-enter-done:not(.fade-appear-done)`. For example, you could apply
105
+ * an epic entrance animation when element first appears in the DOM using
106
+ * [Animate.css](https://daneden.github.io/animate.css/). Otherwise you can
107
+ * simply use `fade-enter-done` for defining both cases.
108
+ *
109
+ * Each individual classNames can also be specified independently like:
110
+ *
111
+ * ```js
112
+ * classNames={{
113
+ * appear: 'my-appear',
114
+ * appearActive: 'my-active-appear',
115
+ * appearDone: 'my-done-appear',
116
+ * enter: 'my-enter',
117
+ * enterActive: 'my-active-enter',
118
+ * enterDone: 'my-done-enter',
119
+ * exit: 'my-exit',
120
+ * exitActive: 'my-active-exit',
121
+ * exitDone: 'my-done-exit',
122
+ * }}
123
+ * ```
124
+ *
125
+ * If you want to set these classes using CSS Modules:
126
+ *
127
+ * ```js
128
+ * import styles from './styles.css';
129
+ * ```
130
+ *
131
+ * you might want to use camelCase in your CSS file, that way could simply
132
+ * spread them instead of listing them one by one:
133
+ *
134
+ * ```js
135
+ * classNames={{ ...styles }}
136
+ * ```
137
+ *
138
+ * @type {string | {
139
+ * appear?: string,
140
+ * appearActive?: string,
141
+ * appearDone?: string,
142
+ * enter?: string,
143
+ * enterActive?: string,
144
+ * enterDone?: string,
145
+ * exit?: string,
146
+ * exitActive?: string,
147
+ * exitDone?: string,
148
+ * }}
149
+ */
150
+ classNames: $,
151
+ /**
152
+ * A `<Transition>` callback fired immediately after the 'enter' or 'appear' class is
153
+ * applied.
154
+ *
155
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
156
+ *
157
+ * @type Function(node: HtmlElement, isAppearing: bool)
158
+ */
159
+ onEnter: v.func,
160
+ /**
161
+ * A `<Transition>` callback fired immediately after the 'enter-active' or
162
+ * 'appear-active' class is applied.
163
+ *
164
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
165
+ *
166
+ * @type Function(node: HtmlElement, isAppearing: bool)
167
+ */
168
+ onEntering: v.func,
169
+ /**
170
+ * A `<Transition>` callback fired immediately after the 'enter' or
171
+ * 'appear' classes are **removed** and the `done` class is added to the DOM node.
172
+ *
173
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
174
+ *
175
+ * @type Function(node: HtmlElement, isAppearing: bool)
176
+ */
177
+ onEntered: v.func,
178
+ /**
179
+ * A `<Transition>` callback fired immediately after the 'exit' class is
180
+ * applied.
181
+ *
182
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed
183
+ *
184
+ * @type Function(node: HtmlElement)
185
+ */
186
+ onExit: v.func,
187
+ /**
188
+ * A `<Transition>` callback fired immediately after the 'exit-active' is applied.
189
+ *
190
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed
191
+ *
192
+ * @type Function(node: HtmlElement)
193
+ */
194
+ onExiting: v.func,
195
+ /**
196
+ * A `<Transition>` callback fired immediately after the 'exit' classes
197
+ * are **removed** and the `exit-done` class is added to the DOM node.
198
+ *
199
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed
200
+ *
201
+ * @type Function(node: HtmlElement)
202
+ */
203
+ onExited: v.func
204
+ }) : {};
205
+ const z = c;
87
206
  export {
88
- o as alpha,
89
- E as darken,
90
- a as decomposeColor,
91
- M as getContrastRatio,
92
- m as getLuminance,
93
- x as hexToRgb,
94
- $ as hslToRgb,
95
- w as lighten,
96
- i as recomposeColor
207
+ z as default
97
208
  };
package/index.es388.js CHANGED
@@ -1,12 +1,122 @@
1
- import * as o from "react";
2
- import u from "./index.es437.js";
3
- function f(...e) {
4
- return o.useMemo(() => e.every((r) => r == null) ? null : (r) => {
5
- e.forEach((t) => {
6
- u(t, r);
7
- });
8
- }, e);
9
- }
1
+ import B from "./index.es208.js";
2
+ import v from "./index.es207.js";
3
+ import * as u from "react";
4
+ import { pickersMonthClasses as n, getPickersMonthUtilityClass as R } from "./index.es390.js";
5
+ import { jsx as p } from "react/jsx-runtime";
6
+ import m from "./index.es221.js";
7
+ import w from "./index.es230.js";
8
+ import $ from "./index.es386.js";
9
+ import F from "./index.es229.js";
10
+ import { alpha as b } from "./index.es384.js";
11
+ const I = ["autoFocus", "children", "disabled", "selected", "value", "tabIndex", "onClick", "onKeyDown", "onFocus", "onBlur", "aria-current", "aria-label", "monthsPerRow"], O = (o) => {
12
+ const {
13
+ disabled: r,
14
+ selected: e,
15
+ classes: a
16
+ } = o;
17
+ return F({
18
+ root: ["root"],
19
+ monthButton: ["monthButton", r && "disabled", e && "selected"]
20
+ }, R, a);
21
+ }, _ = m("div", {
22
+ name: "MuiPickersMonth",
23
+ slot: "Root",
24
+ overridesResolver: (o, r) => [r.root]
25
+ })(({
26
+ ownerState: o
27
+ }) => ({
28
+ flexBasis: o.monthsPerRow === 3 ? "33.3%" : "25%",
29
+ display: "flex",
30
+ alignItems: "center",
31
+ justifyContent: "center"
32
+ })), j = m("button", {
33
+ name: "MuiPickersMonth",
34
+ slot: "MonthButton",
35
+ overridesResolver: (o, r) => [r.monthButton, {
36
+ [`&.${n.disabled}`]: r.disabled
37
+ }, {
38
+ [`&.${n.selected}`]: r.selected
39
+ }]
40
+ })(({
41
+ theme: o
42
+ }) => v({
43
+ color: "unset",
44
+ backgroundColor: "transparent",
45
+ border: 0,
46
+ outline: 0
47
+ }, o.typography.subtitle1, {
48
+ margin: "8px 0",
49
+ height: 36,
50
+ width: 72,
51
+ borderRadius: 18,
52
+ cursor: "pointer",
53
+ "&:focus": {
54
+ backgroundColor: o.vars ? `rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})` : b(o.palette.action.active, o.palette.action.hoverOpacity)
55
+ },
56
+ "&:hover": {
57
+ backgroundColor: o.vars ? `rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})` : b(o.palette.action.active, o.palette.action.hoverOpacity)
58
+ },
59
+ "&:disabled": {
60
+ cursor: "auto",
61
+ pointerEvents: "none"
62
+ },
63
+ [`&.${n.disabled}`]: {
64
+ color: (o.vars || o).palette.text.secondary
65
+ },
66
+ [`&.${n.selected}`]: {
67
+ color: (o.vars || o).palette.primary.contrastText,
68
+ backgroundColor: (o.vars || o).palette.primary.main,
69
+ "&:focus, &:hover": {
70
+ backgroundColor: (o.vars || o).palette.primary.dark
71
+ }
72
+ }
73
+ })), q = /* @__PURE__ */ u.memo(function(r) {
74
+ const e = w({
75
+ props: r,
76
+ name: "MuiPickersMonth"
77
+ }), {
78
+ autoFocus: a,
79
+ children: i,
80
+ disabled: c,
81
+ selected: f,
82
+ value: s,
83
+ tabIndex: h,
84
+ onClick: k,
85
+ onKeyDown: y,
86
+ onFocus: C,
87
+ onBlur: M,
88
+ "aria-current": g,
89
+ "aria-label": x
90
+ // We don't want to forward this prop to the root element
91
+ } = e, P = B(e, I), l = u.useRef(null), d = O(e);
92
+ return $(() => {
93
+ if (a) {
94
+ var t;
95
+ (t = l.current) == null || t.focus();
96
+ }
97
+ }, [a]), /* @__PURE__ */ p(_, v({
98
+ className: d.root,
99
+ ownerState: e
100
+ }, P, {
101
+ children: /* @__PURE__ */ p(j, {
102
+ ref: l,
103
+ disabled: c,
104
+ type: "button",
105
+ role: "radio",
106
+ tabIndex: c ? -1 : h,
107
+ "aria-current": g,
108
+ "aria-checked": f,
109
+ "aria-label": x,
110
+ onClick: (t) => k(t, s),
111
+ onKeyDown: (t) => y(t, s),
112
+ onFocus: (t) => C(t, s),
113
+ onBlur: (t) => M(t, s),
114
+ className: d.monthButton,
115
+ ownerState: e,
116
+ children: i
117
+ })
118
+ }));
119
+ });
10
120
  export {
11
- f as default
121
+ q as PickersMonth
12
122
  };
package/index.es389.js CHANGED
@@ -1,5 +1,9 @@
1
- import * as e from "react";
2
- const f = typeof window < "u" ? e.useLayoutEffect : e.useEffect, t = f;
1
+ import e from "./index.es231.js";
2
+ import r from "./index.es232.js";
3
+ function n(t) {
4
+ return e("MuiMonthCalendar", t);
5
+ }
6
+ r("MuiMonthCalendar", ["root"]);
3
7
  export {
4
- t as default
8
+ n as getMonthCalendarUtilityClass
5
9
  };
package/index.es390.js CHANGED
@@ -1,208 +1,10 @@
1
- import E from "./index.es207.js";
2
- import x from "./index.es208.js";
3
- import N from "./index.es442.js";
4
- import v from "./index.es209.js";
5
- import A from "./index.es443.js";
6
- import _ from "./index.es444.js";
7
- import C from "react";
8
- import g from "./index.es445.js";
9
- import { classNamesShape as $ } from "./index.es446.js";
10
- import { forceReflow as S } from "./index.es447.js";
11
- var T = function(i, p) {
12
- return i && p && p.split(" ").forEach(function(s) {
13
- return A(i, s);
14
- });
15
- }, d = function(i, p) {
16
- return i && p && p.split(" ").forEach(function(s) {
17
- return _(i, s);
18
- });
19
- }, c = /* @__PURE__ */ function(u) {
20
- N(i, u);
21
- function i() {
22
- for (var s, t = arguments.length, a = new Array(t), o = 0; o < t; o++)
23
- a[o] = arguments[o];
24
- return s = u.call.apply(u, [this].concat(a)) || this, s.appliedClasses = {
25
- appear: {},
26
- enter: {},
27
- exit: {}
28
- }, s.onEnter = function(e, r) {
29
- var n = s.resolveArguments(e, r), l = n[0], m = n[1];
30
- s.removeClasses(l, "exit"), s.addClass(l, m ? "appear" : "enter", "base"), s.props.onEnter && s.props.onEnter(e, r);
31
- }, s.onEntering = function(e, r) {
32
- var n = s.resolveArguments(e, r), l = n[0], m = n[1], f = m ? "appear" : "enter";
33
- s.addClass(l, f, "active"), s.props.onEntering && s.props.onEntering(e, r);
34
- }, s.onEntered = function(e, r) {
35
- var n = s.resolveArguments(e, r), l = n[0], m = n[1], f = m ? "appear" : "enter";
36
- s.removeClasses(l, f), s.addClass(l, f, "done"), s.props.onEntered && s.props.onEntered(e, r);
37
- }, s.onExit = function(e) {
38
- var r = s.resolveArguments(e), n = r[0];
39
- s.removeClasses(n, "appear"), s.removeClasses(n, "enter"), s.addClass(n, "exit", "base"), s.props.onExit && s.props.onExit(e);
40
- }, s.onExiting = function(e) {
41
- var r = s.resolveArguments(e), n = r[0];
42
- s.addClass(n, "exit", "active"), s.props.onExiting && s.props.onExiting(e);
43
- }, s.onExited = function(e) {
44
- var r = s.resolveArguments(e), n = r[0];
45
- s.removeClasses(n, "exit"), s.addClass(n, "exit", "done"), s.props.onExited && s.props.onExited(e);
46
- }, s.resolveArguments = function(e, r) {
47
- return s.props.nodeRef ? [s.props.nodeRef.current, e] : [e, r];
48
- }, s.getClassNames = function(e) {
49
- var r = s.props.classNames, n = typeof r == "string", l = n && r ? r + "-" : "", m = n ? "" + l + e : r[e], f = n ? m + "-active" : r[e + "Active"], h = n ? m + "-done" : r[e + "Done"];
50
- return {
51
- baseClassName: m,
52
- activeClassName: f,
53
- doneClassName: h
54
- };
55
- }, s;
56
- }
57
- var p = i.prototype;
58
- return p.addClass = function(t, a, o) {
59
- var e = this.getClassNames(a)[o + "ClassName"], r = this.getClassNames("enter"), n = r.doneClassName;
60
- a === "appear" && o === "done" && n && (e += " " + n), o === "active" && t && S(t), e && (this.appliedClasses[a][o] = e, T(t, e));
61
- }, p.removeClasses = function(t, a) {
62
- var o = this.appliedClasses[a], e = o.base, r = o.active, n = o.done;
63
- this.appliedClasses[a] = {}, e && d(t, e), r && d(t, r), n && d(t, n);
64
- }, p.render = function() {
65
- var t = this.props;
66
- t.classNames;
67
- var a = x(t, ["classNames"]);
68
- return /* @__PURE__ */ C.createElement(g, E({}, a, {
69
- onEnter: this.onEnter,
70
- onEntered: this.onEntered,
71
- onEntering: this.onEntering,
72
- onExit: this.onExit,
73
- onExiting: this.onExiting,
74
- onExited: this.onExited
75
- }));
76
- }, i;
77
- }(C.Component);
78
- c.defaultProps = {
79
- classNames: ""
80
- };
81
- c.propTypes = process.env.NODE_ENV !== "production" ? E({}, g.propTypes, {
82
- /**
83
- * The animation classNames applied to the component as it appears, enters,
84
- * exits or has finished the transition. A single name can be provided, which
85
- * will be suffixed for each stage, e.g. `classNames="fade"` applies:
86
- *
87
- * - `fade-appear`, `fade-appear-active`, `fade-appear-done`
88
- * - `fade-enter`, `fade-enter-active`, `fade-enter-done`
89
- * - `fade-exit`, `fade-exit-active`, `fade-exit-done`
90
- *
91
- * A few details to note about how these classes are applied:
92
- *
93
- * 1. They are _joined_ with the ones that are already defined on the child
94
- * component, so if you want to add some base styles, you can use
95
- * `className` without worrying that it will be overridden.
96
- *
97
- * 2. If the transition component mounts with `in={false}`, no classes are
98
- * applied yet. You might be expecting `*-exit-done`, but if you think
99
- * about it, a component cannot finish exiting if it hasn't entered yet.
100
- *
101
- * 2. `fade-appear-done` and `fade-enter-done` will _both_ be applied. This
102
- * allows you to define different behavior for when appearing is done and
103
- * when regular entering is done, using selectors like
104
- * `.fade-enter-done:not(.fade-appear-done)`. For example, you could apply
105
- * an epic entrance animation when element first appears in the DOM using
106
- * [Animate.css](https://daneden.github.io/animate.css/). Otherwise you can
107
- * simply use `fade-enter-done` for defining both cases.
108
- *
109
- * Each individual classNames can also be specified independently like:
110
- *
111
- * ```js
112
- * classNames={{
113
- * appear: 'my-appear',
114
- * appearActive: 'my-active-appear',
115
- * appearDone: 'my-done-appear',
116
- * enter: 'my-enter',
117
- * enterActive: 'my-active-enter',
118
- * enterDone: 'my-done-enter',
119
- * exit: 'my-exit',
120
- * exitActive: 'my-active-exit',
121
- * exitDone: 'my-done-exit',
122
- * }}
123
- * ```
124
- *
125
- * If you want to set these classes using CSS Modules:
126
- *
127
- * ```js
128
- * import styles from './styles.css';
129
- * ```
130
- *
131
- * you might want to use camelCase in your CSS file, that way could simply
132
- * spread them instead of listing them one by one:
133
- *
134
- * ```js
135
- * classNames={{ ...styles }}
136
- * ```
137
- *
138
- * @type {string | {
139
- * appear?: string,
140
- * appearActive?: string,
141
- * appearDone?: string,
142
- * enter?: string,
143
- * enterActive?: string,
144
- * enterDone?: string,
145
- * exit?: string,
146
- * exitActive?: string,
147
- * exitDone?: string,
148
- * }}
149
- */
150
- classNames: $,
151
- /**
152
- * A `<Transition>` callback fired immediately after the 'enter' or 'appear' class is
153
- * applied.
154
- *
155
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
156
- *
157
- * @type Function(node: HtmlElement, isAppearing: bool)
158
- */
159
- onEnter: v.func,
160
- /**
161
- * A `<Transition>` callback fired immediately after the 'enter-active' or
162
- * 'appear-active' class is applied.
163
- *
164
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
165
- *
166
- * @type Function(node: HtmlElement, isAppearing: bool)
167
- */
168
- onEntering: v.func,
169
- /**
170
- * A `<Transition>` callback fired immediately after the 'enter' or
171
- * 'appear' classes are **removed** and the `done` class is added to the DOM node.
172
- *
173
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
174
- *
175
- * @type Function(node: HtmlElement, isAppearing: bool)
176
- */
177
- onEntered: v.func,
178
- /**
179
- * A `<Transition>` callback fired immediately after the 'exit' class is
180
- * applied.
181
- *
182
- * **Note**: when `nodeRef` prop is passed, `node` is not passed
183
- *
184
- * @type Function(node: HtmlElement)
185
- */
186
- onExit: v.func,
187
- /**
188
- * A `<Transition>` callback fired immediately after the 'exit-active' is applied.
189
- *
190
- * **Note**: when `nodeRef` prop is passed, `node` is not passed
191
- *
192
- * @type Function(node: HtmlElement)
193
- */
194
- onExiting: v.func,
195
- /**
196
- * A `<Transition>` callback fired immediately after the 'exit' classes
197
- * are **removed** and the `exit-done` class is added to the DOM node.
198
- *
199
- * **Note**: when `nodeRef` prop is passed, `node` is not passed
200
- *
201
- * @type Function(node: HtmlElement)
202
- */
203
- onExited: v.func
204
- }) : {};
205
- const z = c;
1
+ import e from "./index.es232.js";
2
+ import s from "./index.es231.js";
3
+ function r(t) {
4
+ return s("MuiPickersMonth", t);
5
+ }
6
+ const n = e("MuiPickersMonth", ["root", "monthButton", "disabled", "selected"]);
206
7
  export {
207
- z as default
8
+ r as getPickersMonthUtilityClass,
9
+ n as pickersMonthClasses
208
10
  };
package/index.es391.js CHANGED
@@ -7,7 +7,7 @@ import { jsx as p } from "react/jsx-runtime";
7
7
  import f from "./index.es221.js";
8
8
  import F from "./index.es230.js";
9
9
  import _ from "./index.es229.js";
10
- import { alpha as v } from "./index.es387.js";
10
+ import { alpha as v } from "./index.es384.js";
11
11
  const I = ["autoFocus", "className", "children", "disabled", "selected", "value", "tabIndex", "onClick", "onKeyDown", "onFocus", "onBlur", "aria-current", "yearsPerRow"], N = (o) => {
12
12
  const {
13
13
  disabled: r,