mada-design-system 0.2.6 → 0.2.7
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.
- package/index.cjs10.js +1 -1
- package/index.cjs100.js +5 -1
- package/index.cjs101.js +1 -5
- package/index.cjs102.js +1 -1
- package/index.cjs103.js +1 -1
- package/index.cjs104.js +1 -1
- package/index.cjs105.js +1 -1
- package/index.cjs106.js +1 -1
- package/index.cjs107.js +1 -1
- package/index.cjs108.js +1 -1
- package/index.cjs109.js +1 -1
- package/index.cjs110.js +1 -1
- package/index.cjs111.js +1 -1
- package/index.cjs112.js +1 -1
- package/index.cjs113.js +4 -1
- package/index.cjs114.js +1 -4
- package/index.cjs115.js +2 -1
- package/index.cjs116.js +1 -2
- package/index.cjs117.js +2 -1
- package/index.cjs118.js +1 -2
- package/index.cjs119.js +1 -1
- package/index.cjs12.js +1 -1
- package/index.cjs120.js +1 -1
- package/index.cjs121.js +1 -1
- package/index.cjs122.js +1 -1
- package/index.cjs123.js +1 -1
- package/index.cjs124.js +1 -1
- package/index.cjs125.js +20 -1
- package/index.cjs126.js +1 -20
- package/index.cjs127.js +1 -1
- package/index.cjs128.js +1 -1
- package/index.cjs129.js +1 -1
- package/index.cjs13.js +1 -1
- package/index.cjs130.js +1 -1
- package/index.cjs131.js +1 -1
- package/index.cjs132.js +1 -1
- package/index.cjs133.js +1 -1
- package/index.cjs134.js +1 -1
- package/index.cjs135.js +1 -1
- package/index.cjs136.js +1 -1
- package/index.cjs137.js +1 -1
- package/index.cjs138.js +1 -1
- package/index.cjs139.js +1 -1
- package/index.cjs140.js +1 -1
- package/index.cjs141.js +1 -1
- package/index.cjs142.js +1 -1
- package/index.cjs143.js +1 -1
- package/index.cjs144.js +1 -1
- package/index.cjs145.js +1 -1
- package/index.cjs146.js +1 -1
- package/index.cjs147.js +1 -1
- package/index.cjs148.js +1 -1
- package/index.cjs149.js +1 -1
- package/index.cjs15.js +1 -1
- package/index.cjs150.js +1 -1
- package/index.cjs151.js +1 -1
- package/index.cjs152.js +1 -1
- package/index.cjs153.js +1 -1
- package/index.cjs154.js +1 -1
- package/index.cjs155.js +1 -1
- package/index.cjs156.js +1 -1
- package/index.cjs157.js +1 -1
- package/index.cjs158.js +1 -1
- package/index.cjs159.js +1 -1
- package/index.cjs160.js +1 -1
- package/index.cjs161.js +1 -1
- package/index.cjs162.js +1 -1
- package/index.cjs163.js +1 -1
- package/index.cjs164.js +1 -1
- package/index.cjs165.js +1 -1
- package/index.cjs166.js +1 -1
- package/index.cjs167.js +1 -1
- package/index.cjs168.js +1 -1
- package/index.cjs169.js +1 -1
- package/index.cjs17.js +1 -1
- package/index.cjs170.js +1 -1
- package/index.cjs171.js +1 -1
- package/index.cjs172.js +1 -1
- package/index.cjs173.js +1 -1
- package/index.cjs174.js +1 -1
- package/index.cjs175.js +1 -1
- package/index.cjs176.js +1 -1
- package/index.cjs177.js +1 -1
- package/index.cjs178.js +1 -1
- package/index.cjs179.js +1 -1
- package/index.cjs180.js +1 -1
- package/index.cjs181.js +1 -1
- package/index.cjs182.js +1 -1
- package/index.cjs184.js +1 -1
- package/index.cjs185.js +1 -1
- package/index.cjs188.js +1 -1
- package/index.cjs190.js +1 -1
- package/index.cjs191.js +1 -1
- package/index.cjs192.js +1 -1
- package/index.cjs20.js +1 -1
- package/index.cjs200.js +1 -1
- package/index.cjs203.js +1 -1
- package/index.cjs205.js +1 -1
- package/index.cjs206.js +1 -1
- package/index.cjs207.js +1 -1
- package/index.cjs209.js +1 -1
- package/index.cjs21.js +1 -1
- package/index.cjs22.js +1 -1
- package/index.cjs23.js +1 -1
- package/index.cjs234.js +1 -1
- package/index.cjs235.js +1 -1
- package/index.cjs236.js +1 -1
- package/index.cjs237.js +1 -1
- package/index.cjs238.js +1 -1
- package/index.cjs239.js +1 -1
- package/index.cjs240.js +1 -1
- package/index.cjs242.js +1 -1
- package/index.cjs246.js +1 -1
- package/index.cjs247.js +1 -1
- package/index.cjs25.js +1 -1
- package/index.cjs26.js +1 -1
- package/index.cjs261.js +1 -1
- package/index.cjs262.js +1 -1
- package/index.cjs263.js +1 -1
- package/index.cjs264.js +15 -1
- package/index.cjs265.js +1 -15
- package/index.cjs266.js +1 -1
- package/index.cjs267.js +1 -1
- package/index.cjs268.js +1 -1
- package/index.cjs269.js +1 -1
- package/index.cjs27.js +1 -1
- package/index.cjs270.js +1 -1
- package/index.cjs271.js +1 -1
- package/index.cjs272.js +1 -1
- package/index.cjs273.js +1 -1
- package/index.cjs274.js +1 -1
- package/index.cjs275.js +1 -1
- package/index.cjs276.js +1 -1
- package/index.cjs277.js +1 -1
- package/index.cjs278.js +1 -1
- package/index.cjs28.js +1 -1
- package/index.cjs281.js +1 -1
- package/index.cjs282.js +1 -1
- package/index.cjs283.js +1 -3
- package/index.cjs284.js +1 -1
- package/index.cjs285.js +1 -1
- package/index.cjs286.js +3 -1
- package/index.cjs287.js +1 -1
- package/index.cjs288.js +1 -1
- package/index.cjs289.js +1 -1
- package/index.cjs29.js +1 -1
- package/index.cjs290.js +1 -1
- package/index.cjs298.js +1 -1
- package/index.cjs299.js +1 -1
- package/index.cjs30.js +1 -1
- package/index.cjs303.js +1 -1
- package/index.cjs31.js +1 -1
- package/index.cjs32.js +1 -1
- package/index.cjs320.js +1 -1
- package/index.cjs338.js +1 -1
- package/index.cjs339.js +1 -1
- package/index.cjs340.js +1 -1
- package/index.cjs341.js +1 -1
- package/index.cjs342.js +1 -1
- package/index.cjs343.js +1 -1
- package/index.cjs344.js +1 -1
- package/index.cjs345.js +1 -1
- package/index.cjs346.js +1 -1
- package/index.cjs347.js +1 -1
- package/index.cjs348.js +1 -1
- package/index.cjs349.js +1 -1
- package/index.cjs35.js +1 -1
- package/index.cjs350.js +1 -1
- package/index.cjs36.js +1 -1
- package/index.cjs37.js +1 -1
- package/index.cjs370.js +1 -1
- package/index.cjs372.js +1 -1
- package/index.cjs373.js +1 -74
- package/index.cjs374.js +1 -1
- package/index.cjs375.js +1 -1
- package/index.cjs376.js +74 -1
- package/index.cjs377.js +1 -1
- package/index.cjs378.js +1 -1
- package/index.cjs379.js +1 -1
- package/index.cjs38.js +1 -1
- package/index.cjs380.js +1 -1
- package/index.cjs39.js +1 -1
- package/index.cjs397.js +1 -1
- package/index.cjs4.js +1 -1
- package/index.cjs40.js +1 -1
- package/index.cjs41.js +1 -1
- package/index.cjs43.js +1 -1
- package/index.cjs44.js +1 -1
- package/index.cjs45.js +1 -1
- package/index.cjs46.js +1 -1
- package/index.cjs47.js +1 -1
- package/index.cjs49.js +1 -1
- package/index.cjs50.js +1 -1
- package/index.cjs51.js +1 -1
- package/index.cjs54.js +2 -2
- package/index.cjs56.js +1 -1
- package/index.cjs57.js +1 -1
- package/index.cjs59.js +1 -1
- package/index.cjs60.js +1 -1
- package/index.cjs65.js +1 -1
- package/index.cjs66.js +1 -1
- package/index.cjs67.js +1 -1
- package/index.cjs68.js +1 -1
- package/index.cjs69.js +1 -1
- package/index.cjs7.js +1 -1
- package/index.cjs73.js +1 -1
- package/index.cjs75.js +1 -1
- package/index.cjs76.js +1 -1
- package/index.cjs79.js +1 -1
- package/index.cjs8.js +1 -1
- package/index.cjs80.js +1 -1
- package/index.cjs81.js +1 -1
- package/index.cjs82.js +1 -1
- package/index.cjs83.js +1 -1
- package/index.cjs86.js +1 -1
- package/index.cjs9.js +1 -1
- package/index.cjs90.js +1 -1
- package/index.cjs92.js +1 -1
- package/index.cjs93.js +1 -1
- package/index.cjs94.js +1 -1
- package/index.cjs95.js +1 -1
- package/index.cjs96.js +1 -1
- package/index.cjs97.js +1 -1
- package/index.cjs98.js +1 -1
- package/index.cjs99.js +1 -1
- package/index.es.d.ts +33 -12
- package/index.es10.js +81 -74
- package/index.es100.js +2594 -33
- package/index.es101.js +287 -2561
- package/index.es102.js +10 -321
- package/index.es103.js +5 -5
- package/index.es104.js +5 -5
- package/index.es105.js +7 -10
- package/index.es106.js +33 -8
- package/index.es107.js +37 -32
- package/index.es108.js +11 -38
- package/index.es109.js +5 -5
- package/index.es110.js +5 -5
- package/index.es111.js +5 -5
- package/index.es112.js +5 -5
- package/index.es113.js +2567 -9
- package/index.es114.js +139 -2567
- package/index.es115.js +118 -142
- package/index.es116.js +136 -116
- package/index.es117.js +162 -76
- package/index.es118.js +515 -222
- package/index.es119.js +309 -515
- package/index.es12.js +3 -3
- package/index.es120.js +11 -310
- package/index.es121.js +5 -5
- package/index.es122.js +5 -5
- package/index.es123.js +5 -5
- package/index.es124.js +5 -5
- package/index.es125.js +205 -11
- package/index.es126.js +11 -205
- package/index.es127.js +4 -10
- package/index.es128.js +10 -4
- package/index.es129.js +5 -5
- package/index.es13.js +2 -2
- package/index.es130.js +5 -5
- package/index.es131.js +5 -5
- package/index.es132.js +5 -5
- package/index.es133.js +1 -1
- package/index.es134.js +5 -5
- package/index.es135.js +2 -11
- package/index.es136.js +1 -1
- package/index.es137.js +1 -1
- package/index.es138.js +1 -1
- package/index.es139.js +1 -1
- package/index.es140.js +1 -1
- package/index.es141.js +11 -2
- package/index.es142.js +4 -4
- package/index.es143.js +5 -5
- package/index.es144.js +5 -5
- package/index.es145.js +3 -11
- package/index.es146.js +11 -3
- package/index.es147.js +5 -5
- package/index.es148.js +5 -5
- package/index.es149.js +5 -5
- package/index.es15.js +5 -5
- package/index.es150.js +5 -5
- package/index.es151.js +5 -5
- package/index.es152.js +22 -11
- package/index.es153.js +11 -22
- package/index.es154.js +22 -11
- package/index.es155.js +11 -22
- package/index.es156.js +5 -5
- package/index.es157.js +12 -11
- package/index.es158.js +11 -12
- package/index.es159.js +4 -4
- package/index.es160.js +5 -5
- package/index.es161.js +5 -5
- package/index.es162.js +5 -5
- package/index.es163.js +5 -5
- package/index.es164.js +470 -10
- package/index.es165.js +2324 -125
- package/index.es166.js +2152 -6
- package/index.es167.js +11 -2338
- package/index.es168.js +136 -2149
- package/index.es169.js +6 -11
- package/index.es17.js +1 -1
- package/index.es170.js +235 -3
- package/index.es171.js +52 -231
- package/index.es172.js +477 -51
- package/index.es173.js +3 -8
- package/index.es174.js +6 -31
- package/index.es175.js +38 -11
- package/index.es176.js +28 -477
- package/index.es177.js +12 -18
- package/index.es178.js +15 -32
- package/index.es179.js +34 -1223
- package/index.es180.js +1223 -13
- package/index.es181.js +14 -8
- package/index.es182.js +8 -50
- package/index.es184.js +1 -1
- package/index.es185.js +47 -36
- package/index.es188.js +1 -1
- package/index.es190.js +1 -1
- package/index.es191.js +1 -1
- package/index.es192.js +1 -1
- package/index.es20.js +1 -1
- package/index.es200.js +3 -3
- package/index.es203.js +1 -1
- package/index.es205.js +1 -1
- package/index.es206.js +3 -3
- package/index.es207.js +4 -4
- package/index.es209.js +3 -3
- package/index.es21.js +3 -3
- package/index.es22.js +1 -1
- package/index.es23.js +6 -6
- package/index.es234.js +1 -1
- package/index.es235.js +4 -4
- package/index.es236.js +3 -3
- package/index.es237.js +3 -3
- package/index.es238.js +6 -6
- package/index.es239.js +2 -2
- package/index.es240.js +3 -3
- package/index.es242.js +1 -1
- package/index.es246.js +3 -3
- package/index.es247.js +1 -1
- package/index.es25.js +1 -1
- package/index.es26.js +20 -9
- package/index.es261.js +2 -11
- package/index.es262.js +60 -2
- package/index.es263.js +14 -57
- package/index.es264.js +243 -16
- package/index.es265.js +71 -241
- package/index.es266.js +4 -73
- package/index.es267.js +57 -4
- package/index.es268.js +11 -58
- package/index.es269.js +7 -11
- package/index.es27.js +41 -41
- package/index.es270.js +35 -6
- package/index.es271.js +26 -35
- package/index.es272.js +291 -27
- package/index.es273.js +90 -290
- package/index.es274.js +3 -91
- package/index.es275.js +8 -3
- package/index.es276.js +15 -7
- package/index.es277.js +145 -14
- package/index.es278.js +10 -146
- package/index.es28.js +2 -2
- package/index.es281.js +120 -8
- package/index.es282.js +7 -351
- package/index.es283.js +7 -94
- package/index.es284.js +7 -9
- package/index.es285.js +351 -3
- package/index.es286.js +94 -205
- package/index.es287.js +10 -120
- package/index.es288.js +3 -7
- package/index.es289.js +206 -8
- package/index.es29.js +2 -2
- package/index.es290.js +2 -2
- package/index.es298.js +14 -11
- package/index.es299.js +11 -14
- package/index.es30.js +3 -3
- package/index.es303.js +1 -1
- package/index.es31.js +1 -1
- package/index.es32.js +1 -1
- package/index.es320.js +1 -1
- package/index.es338.js +4 -6
- package/index.es339.js +4 -29
- package/index.es340.js +6 -15
- package/index.es341.js +5 -5
- package/index.es342.js +19 -5
- package/index.es343.js +4 -5
- package/index.es344.js +5 -6
- package/index.es345.js +3 -19
- package/index.es346.js +72 -4
- package/index.es347.js +4 -6
- package/index.es348.js +16 -3
- package/index.es349.js +6 -71
- package/index.es35.js +1 -1
- package/index.es350.js +29 -3
- package/index.es36.js +1 -1
- package/index.es37.js +16 -6
- package/index.es370.js +1 -1
- package/index.es372.js +6 -2
- package/index.es373.js +4 -251
- package/index.es374.js +2 -8
- package/index.es375.js +2 -3
- package/index.es376.js +251 -2
- package/index.es377.js +7 -5
- package/index.es378.js +3 -4
- package/index.es379.js +1 -1
- package/index.es38.js +2 -2
- package/index.es380.js +1 -1
- package/index.es39.js +1 -1
- package/index.es397.js +1 -1
- package/index.es4.js +4 -4
- package/index.es40.js +2 -2
- package/index.es41.js +7 -7
- package/index.es43.js +76 -73
- package/index.es44.js +189 -154
- package/index.es45.js +10 -10
- package/index.es46.js +2 -2
- package/index.es47.js +12 -12
- package/index.es49.js +1 -1
- package/index.es50.js +2 -2
- package/index.es51.js +195 -168
- package/index.es54.js +31 -17
- package/index.es56.js +42 -39
- package/index.es57.js +5 -5
- package/index.es59.js +73 -81
- package/index.es60.js +3 -3
- package/index.es65.js +1 -1
- package/index.es66.js +1 -1
- package/index.es67.js +3 -3
- package/index.es68.js +4 -4
- package/index.es69.js +1 -1
- package/index.es7.js +1 -1
- package/index.es73.js +2 -2
- package/index.es75.js +1 -1
- package/index.es76.js +1 -1
- package/index.es79.js +5 -5
- package/index.es8.js +1 -1
- package/index.es80.js +1 -1
- package/index.es81.js +1 -1
- package/index.es82.js +2 -2
- package/index.es83.js +1 -1
- package/index.es86.js +1 -1
- package/index.es9.js +6 -6
- package/index.es90.js +2 -2
- package/index.es92.js +5 -1
- package/index.es93.js +5 -1
- package/index.es94.js +10 -470
- package/index.es95.js +87 -10
- package/index.es96.js +19 -86
- package/index.es97.js +22 -19
- package/index.es98.js +1712 -23
- package/index.es99.js +34 -1708
- package/package.json +4 -3
package/index.es286.js
CHANGED
|
@@ -1,208 +1,97 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import y from "./index.es309.js";
|
|
2
|
+
import l from "./index.es269.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
|
|
14
54
|
});
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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;
|
|
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
|
+
}
|
|
206
87
|
export {
|
|
207
|
-
|
|
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
|
|
208
97
|
};
|
package/index.es287.js
CHANGED
|
@@ -1,122 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
import { alpha as b } from "./index.es283.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
|
-
});
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
import u from "./index.es304.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
|
+
}
|
|
120
10
|
export {
|
|
121
|
-
|
|
11
|
+
f as default
|
|
122
12
|
};
|
package/index.es288.js
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
|
|
3
|
-
function n(t) {
|
|
4
|
-
return e("MuiMonthCalendar", t);
|
|
5
|
-
}
|
|
6
|
-
r("MuiMonthCalendar", ["root"]);
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
const f = typeof window < "u" ? e.useLayoutEffect : e.useEffect, t = f;
|
|
7
3
|
export {
|
|
8
|
-
|
|
4
|
+
t as default
|
|
9
5
|
};
|
package/index.es289.js
CHANGED
|
@@ -1,10 +1,208 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import E from "./index.es186.js";
|
|
2
|
+
import x from "./index.es187.js";
|
|
3
|
+
import N from "./index.es338.js";
|
|
4
|
+
import v from "./index.es188.js";
|
|
5
|
+
import A from "./index.es339.js";
|
|
6
|
+
import _ from "./index.es340.js";
|
|
7
|
+
import C from "react";
|
|
8
|
+
import g from "./index.es341.js";
|
|
9
|
+
import { classNamesShape as $ } from "./index.es342.js";
|
|
10
|
+
import { forceReflow as S } from "./index.es343.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;
|
|
7
206
|
export {
|
|
8
|
-
|
|
9
|
-
n as pickersMonthClasses
|
|
207
|
+
z as default
|
|
10
208
|
};
|