mada-design-system 0.7.0 → 0.7.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.
- package/index.cjs.js +1 -1
- package/index.cjs103.js +1 -1
- package/index.cjs106.js +1 -1
- package/index.cjs107.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 +1 -1
- package/index.cjs114.js +1 -1
- package/index.cjs115.js +1 -1
- package/index.cjs116.js +1 -1
- package/index.cjs118.js +1 -1
- package/index.cjs119.js +1 -1
- package/index.cjs120.js +1 -1
- package/index.cjs121.js +1 -1
- package/index.cjs122.js +1 -1
- package/index.cjs126.js +1 -1
- package/index.cjs129.js +1 -1
- package/index.cjs130.js +1 -1
- package/index.cjs132.js +1 -1
- package/index.cjs133.js +1 -1
- package/index.cjs134.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.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.cjs153.js +1 -1
- package/index.cjs154.js +1 -1
- package/index.cjs155.js +1 -1
- package/index.cjs156.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.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.cjs170.js +1 -1
- package/index.cjs171.js +1 -1
- package/index.cjs172.js +1 -1
- package/index.cjs173.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.cjs180.js +1 -1
- package/index.cjs181.js +1 -1
- package/index.cjs182.js +1 -1
- package/index.cjs183.js +1 -1
- package/index.cjs184.js +1 -1
- package/index.cjs185.js +1 -1
- package/index.cjs186.js +1 -1
- package/index.cjs187.js +1 -1
- package/index.cjs188.js +1 -1
- package/index.cjs189.js +1 -1
- package/index.cjs190.js +1 -1
- package/index.cjs191.js +1 -1
- package/index.cjs192.js +1 -1
- package/index.cjs193.js +1 -1
- package/index.cjs194.js +1 -1
- package/index.cjs195.js +1 -1
- package/index.cjs196.js +1 -1
- package/index.cjs197.js +1 -1
- package/index.cjs198.js +1 -1
- package/index.cjs199.js +1 -4
- package/index.cjs200.js +4 -1
- package/index.cjs203.js +1 -1
- package/index.cjs219.js +1 -1
- package/index.cjs220.js +1 -1
- package/index.cjs222.js +1 -1
- package/index.cjs233.js +1 -1
- package/index.cjs234.js +1 -1
- package/index.cjs260.js +1 -1
- package/index.cjs261.js +1 -1
- package/index.cjs264.js +1 -1
- package/index.cjs268.js +1 -1
- package/index.cjs29.js +1 -1
- package/index.cjs302.js +1 -1
- package/index.cjs303.js +1 -1
- package/index.cjs304.js +1 -1
- package/index.cjs305.js +1 -1
- package/index.cjs306.js +1 -1
- package/index.cjs307.js +1 -1
- package/index.cjs308.js +1 -1
- package/index.cjs382.js +1 -1
- package/index.cjs391.js +1 -1
- package/index.cjs392.js +1 -1
- package/index.cjs393.js +1 -1
- package/index.cjs395.js +1 -1
- package/index.cjs60.js +1 -1
- package/index.cjs85.js +1 -1
- package/index.cjs88.js +1 -1
- package/index.cjs91.js +1 -1
- package/index.cjs95.js +1 -1
- package/index.es.d.ts +2 -0
- package/index.es.js +179 -178
- package/index.es103.js +1 -1
- package/index.es106.js +1 -1
- package/index.es107.js +1 -1
- package/index.es110.js +2 -2
- package/index.es111.js +1 -1
- package/index.es112.js +1 -1
- package/index.es113.js +1 -1
- package/index.es114.js +1 -1
- package/index.es115.js +1 -1
- package/index.es116.js +2 -2
- package/index.es118.js +1 -1
- package/index.es119.js +1 -1
- package/index.es120.js +1 -1
- package/index.es121.js +1 -1
- package/index.es122.js +1 -1
- package/index.es126.js +1 -1
- package/index.es129.js +1 -1
- package/index.es130.js +1 -1
- package/index.es132.js +1 -1
- package/index.es133.js +1 -1
- package/index.es134.js +1 -1
- 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.es141.js +1 -1
- package/index.es142.js +1 -1
- package/index.es143.js +1 -1
- package/index.es144.js +1 -1
- package/index.es145.js +1 -1
- package/index.es146.js +1 -1
- package/index.es153.js +1 -1
- package/index.es154.js +1 -1
- package/index.es155.js +1 -1
- package/index.es156.js +1 -1
- package/index.es158.js +1 -1
- package/index.es159.js +1 -1
- package/index.es160.js +1 -1
- package/index.es161.js +1 -1
- package/index.es164.js +1 -1
- package/index.es165.js +1 -1
- package/index.es166.js +1 -1
- package/index.es167.js +1 -1
- package/index.es168.js +1 -1
- package/index.es169.js +2 -2
- package/index.es170.js +1 -1
- package/index.es171.js +2 -2
- package/index.es172.js +1 -1
- package/index.es173.js +1 -1
- package/index.es175.js +1 -1
- package/index.es176.js +1 -1
- package/index.es177.js +1 -1
- package/index.es178.js +1 -1
- package/index.es180.js +2324 -125
- package/index.es181.js +2152 -6
- package/index.es182.js +11 -2338
- package/index.es183.js +136 -2149
- package/index.es184.js +6 -11
- package/index.es185.js +1 -1
- package/index.es186.js +468 -221
- package/index.es187.js +30 -53
- package/index.es188.js +11 -30
- package/index.es189.js +6 -12
- package/index.es190.js +38 -5
- package/index.es191.js +221 -468
- package/index.es192.js +51 -15
- package/index.es193.js +15 -32
- package/index.es194.js +34 -1223
- package/index.es195.js +1223 -13
- package/index.es196.js +14 -8
- package/index.es197.js +8 -50
- package/index.es198.js +50 -2
- package/index.es199.js +2 -2261
- package/index.es200.js +2260 -38
- package/index.es203.js +1 -1
- package/index.es219.js +1 -1
- package/index.es220.js +1 -1
- package/index.es222.js +2 -2
- package/index.es233.js +1 -1
- package/index.es234.js +2 -2
- package/index.es260.js +3 -3
- package/index.es261.js +1 -1
- package/index.es264.js +1 -1
- package/index.es268.js +1 -1
- package/index.es29.js +1 -1
- package/index.es302.js +120 -8
- package/index.es303.js +7 -351
- package/index.es304.js +8 -3
- package/index.es305.js +8 -206
- package/index.es306.js +338 -107
- package/index.es307.js +3 -7
- package/index.es308.js +206 -8
- package/index.es382.js +1 -1
- package/index.es391.js +8 -10
- package/index.es392.js +10 -3
- package/index.es393.js +3 -8
- package/index.es395.js +1 -1
- package/index.es60.js +8 -4
- package/index.es85.js +1 -1
- package/index.es88.js +2 -2
- package/index.es91.js +2 -2
- package/index.es95.js +1 -1
- package/package.json +1 -1
package/index.es305.js
CHANGED
|
@@ -1,208 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import C from "react";
|
|
8
|
-
import g from "./index.es369.js";
|
|
9
|
-
import { classNamesShape as $ } from "./index.es370.js";
|
|
10
|
-
import { forceReflow as S } from "./index.es371.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 i from "./index.es226.js";
|
|
2
|
+
import t from "./index.es225.js";
|
|
3
|
+
function r(e) {
|
|
4
|
+
return t("MuiPickersDay", e);
|
|
5
|
+
}
|
|
6
|
+
const l = i("MuiPickersDay", ["root", "dayWithMargin", "dayOutsideMonth", "hiddenDaySpacingFiller", "today", "selected", "disabled"]);
|
|
206
7
|
export {
|
|
207
|
-
|
|
8
|
+
r as getPickersDayUtilityClass,
|
|
9
|
+
l as pickersDayClasses
|
|
208
10
|
};
|
package/index.es306.js
CHANGED
|
@@ -1,122 +1,353 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import * as
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
|
|
1
|
+
import w from "./index.es201.js";
|
|
2
|
+
import ge from "./index.es202.js";
|
|
3
|
+
import * as t from "react";
|
|
4
|
+
import e from "./index.es203.js";
|
|
5
|
+
import { clsx as Be } from "./index.es131.js";
|
|
6
|
+
import Ce from "./index.es215.js";
|
|
7
|
+
import xe from "./index.es224.js";
|
|
8
|
+
import De from "./index.es410.js";
|
|
9
|
+
import ke, { getButtonBaseUtilityClass as Ve } from "./index.es411.js";
|
|
10
|
+
import { jsxs as Ee, jsx as we } from "react/jsx-runtime";
|
|
11
|
+
import _ from "./index.es235.js";
|
|
12
|
+
import Fe from "./index.es364.js";
|
|
13
|
+
import M from "./index.es220.js";
|
|
14
|
+
import Le from "./index.es362.js";
|
|
15
|
+
import Ne from "./index.es360.js";
|
|
16
|
+
import Se from "./index.es223.js";
|
|
17
|
+
const Ue = ["action", "centerRipple", "children", "className", "component", "disabled", "disableRipple", "disableTouchRipple", "focusRipple", "focusVisibleClassName", "LinkComponent", "onBlur", "onClick", "onContextMenu", "onDragLeave", "onFocus", "onFocusVisible", "onKeyDown", "onKeyUp", "onMouseDown", "onMouseLeave", "onMouseUp", "onTouchEnd", "onTouchMove", "onTouchStart", "tabIndex", "TouchRippleProps", "touchRippleRef", "type"], Pe = (g) => {
|
|
12
18
|
const {
|
|
13
|
-
disabled:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
root: ["root"]
|
|
19
|
-
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
name: "
|
|
19
|
+
disabled: i,
|
|
20
|
+
focusVisible: b,
|
|
21
|
+
focusVisibleClassName: c,
|
|
22
|
+
classes: B
|
|
23
|
+
} = g, m = Se({
|
|
24
|
+
root: ["root", i && "disabled", b && "focusVisible"]
|
|
25
|
+
}, Ve, B);
|
|
26
|
+
return b && c && (m.root += ` ${c}`), m;
|
|
27
|
+
}, je = Ce("button", {
|
|
28
|
+
name: "MuiButtonBase",
|
|
23
29
|
slot: "Root",
|
|
24
|
-
overridesResolver: (
|
|
25
|
-
})(
|
|
26
|
-
|
|
27
|
-
}) => ({
|
|
28
|
-
flexBasis: o.monthsPerRow === 3 ? "33.3%" : "25%",
|
|
29
|
-
display: "flex",
|
|
30
|
+
overridesResolver: (g, i) => i.root
|
|
31
|
+
})({
|
|
32
|
+
display: "inline-flex",
|
|
30
33
|
alignItems: "center",
|
|
31
|
-
justifyContent: "center"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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",
|
|
34
|
+
justifyContent: "center",
|
|
35
|
+
position: "relative",
|
|
36
|
+
boxSizing: "border-box",
|
|
37
|
+
WebkitTapHighlightColor: "transparent",
|
|
44
38
|
backgroundColor: "transparent",
|
|
39
|
+
// Reset default value
|
|
40
|
+
// We disable the focus ring for mouse, touch and keyboard users.
|
|
41
|
+
outline: 0,
|
|
45
42
|
border: 0,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
borderRadius: 18,
|
|
43
|
+
margin: 0,
|
|
44
|
+
// Remove the margin in Safari
|
|
45
|
+
borderRadius: 0,
|
|
46
|
+
padding: 0,
|
|
47
|
+
// Remove the padding in Firefox
|
|
52
48
|
cursor: "pointer",
|
|
53
|
-
"
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
"
|
|
60
|
-
|
|
61
|
-
|
|
49
|
+
userSelect: "none",
|
|
50
|
+
verticalAlign: "middle",
|
|
51
|
+
MozAppearance: "none",
|
|
52
|
+
// Reset
|
|
53
|
+
WebkitAppearance: "none",
|
|
54
|
+
// Reset
|
|
55
|
+
textDecoration: "none",
|
|
56
|
+
// So we take precedent over the style of a native <a /> element.
|
|
57
|
+
color: "inherit",
|
|
58
|
+
"&::-moz-focus-inner": {
|
|
59
|
+
borderStyle: "none"
|
|
60
|
+
// Remove Firefox dotted outline.
|
|
62
61
|
},
|
|
63
|
-
[`&.${
|
|
64
|
-
|
|
62
|
+
[`&.${ke.disabled}`]: {
|
|
63
|
+
pointerEvents: "none",
|
|
64
|
+
// Disable link interactions
|
|
65
|
+
cursor: "default"
|
|
65
66
|
},
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
backgroundColor: (o.vars || o).palette.primary.main,
|
|
69
|
-
"&:focus, &:hover": {
|
|
70
|
-
backgroundColor: (o.vars || o).palette.primary.dark
|
|
71
|
-
}
|
|
67
|
+
"@media print": {
|
|
68
|
+
colorAdjust: "exact"
|
|
72
69
|
}
|
|
73
|
-
})
|
|
74
|
-
const
|
|
75
|
-
props:
|
|
76
|
-
name: "
|
|
70
|
+
}), q = /* @__PURE__ */ t.forwardRef(function(i, b) {
|
|
71
|
+
const c = xe({
|
|
72
|
+
props: i,
|
|
73
|
+
name: "MuiButtonBase"
|
|
77
74
|
}), {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
75
|
+
action: B,
|
|
76
|
+
centerRipple: C = !1,
|
|
77
|
+
children: m,
|
|
78
|
+
className: z,
|
|
79
|
+
component: h = "button",
|
|
80
|
+
disabled: r = !1,
|
|
81
|
+
disableRipple: R = !1,
|
|
82
|
+
disableTouchRipple: F = !1,
|
|
83
|
+
focusRipple: a = !1,
|
|
84
|
+
LinkComponent: H = "a",
|
|
85
|
+
onBlur: L,
|
|
86
|
+
onClick: l,
|
|
87
|
+
onContextMenu: W,
|
|
88
|
+
onDragLeave: $,
|
|
89
|
+
onFocus: N,
|
|
90
|
+
onFocusVisible: S,
|
|
91
|
+
onKeyDown: U,
|
|
92
|
+
onKeyUp: P,
|
|
93
|
+
onMouseDown: G,
|
|
94
|
+
onMouseLeave: j,
|
|
95
|
+
onMouseUp: J,
|
|
96
|
+
onTouchEnd: Q,
|
|
97
|
+
onTouchMove: X,
|
|
98
|
+
onTouchStart: Y,
|
|
99
|
+
tabIndex: K = 0,
|
|
100
|
+
TouchRippleProps: Z,
|
|
101
|
+
touchRippleRef: ee,
|
|
102
|
+
type: x
|
|
103
|
+
} = c, p = ge(c, Ue), f = t.useRef(null), n = t.useRef(null), oe = _(n, ee), {
|
|
104
|
+
isFocusVisibleRef: I,
|
|
105
|
+
onFocus: ne,
|
|
106
|
+
onBlur: te,
|
|
107
|
+
ref: se
|
|
108
|
+
} = Fe(), [u, T] = t.useState(!1);
|
|
109
|
+
r && u && T(!1), t.useImperativeHandle(B, () => ({
|
|
110
|
+
focusVisible: () => {
|
|
111
|
+
T(!0), f.current.focus();
|
|
96
112
|
}
|
|
97
|
-
}, [
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
113
|
+
}), []);
|
|
114
|
+
const [D, re] = t.useState(!1);
|
|
115
|
+
t.useEffect(() => {
|
|
116
|
+
re(!0);
|
|
117
|
+
}, []);
|
|
118
|
+
const k = D && !R && !r;
|
|
119
|
+
t.useEffect(() => {
|
|
120
|
+
u && a && !R && D && n.current.pulsate();
|
|
121
|
+
}, [R, a, u, D]);
|
|
122
|
+
function s(o, A, Me = F) {
|
|
123
|
+
return M((v) => (A && A(v), !Me && n.current && n.current[o](v), !0));
|
|
124
|
+
}
|
|
125
|
+
const ue = s("start", G), ce = s("stop", W), ie = s("stop", $), ae = s("stop", J), le = s("stop", (o) => {
|
|
126
|
+
u && o.preventDefault(), j && j(o);
|
|
127
|
+
}), pe = s("start", Y), fe = s("stop", Q), de = s("stop", X), be = s("stop", (o) => {
|
|
128
|
+
te(o), I.current === !1 && T(!1), L && L(o);
|
|
129
|
+
}, !1), me = M((o) => {
|
|
130
|
+
f.current || (f.current = o.currentTarget), ne(o), I.current === !0 && (T(!0), S && S(o)), N && N(o);
|
|
131
|
+
}), V = () => {
|
|
132
|
+
const o = f.current;
|
|
133
|
+
return h && h !== "button" && !(o.tagName === "A" && o.href);
|
|
134
|
+
}, E = t.useRef(!1), he = M((o) => {
|
|
135
|
+
a && !E.current && u && n.current && o.key === " " && (E.current = !0, n.current.stop(o, () => {
|
|
136
|
+
n.current.start(o);
|
|
137
|
+
})), o.target === o.currentTarget && V() && o.key === " " && o.preventDefault(), U && U(o), o.target === o.currentTarget && V() && o.key === "Enter" && !r && (o.preventDefault(), l && l(o));
|
|
138
|
+
}), Re = M((o) => {
|
|
139
|
+
a && o.key === " " && n.current && u && !o.defaultPrevented && (E.current = !1, n.current.stop(o, () => {
|
|
140
|
+
n.current.pulsate(o);
|
|
141
|
+
})), P && P(o), l && o.target === o.currentTarget && V() && o.key === " " && !o.defaultPrevented && l(o);
|
|
142
|
+
});
|
|
143
|
+
let y = h;
|
|
144
|
+
y === "button" && (p.href || p.to) && (y = H);
|
|
145
|
+
const d = {};
|
|
146
|
+
y === "button" ? (d.type = x === void 0 ? "button" : x, d.disabled = r) : (!p.href && !p.to && (d.role = "button"), r && (d["aria-disabled"] = r));
|
|
147
|
+
const Te = _(b, se, f);
|
|
148
|
+
process.env.NODE_ENV !== "production" && t.useEffect(() => {
|
|
149
|
+
k && n.current;
|
|
150
|
+
}, [k]);
|
|
151
|
+
const O = w({}, c, {
|
|
152
|
+
centerRipple: C,
|
|
153
|
+
component: h,
|
|
154
|
+
disabled: r,
|
|
155
|
+
disableRipple: R,
|
|
156
|
+
disableTouchRipple: F,
|
|
157
|
+
focusRipple: a,
|
|
158
|
+
tabIndex: K,
|
|
159
|
+
focusVisible: u
|
|
160
|
+
}), ye = Pe(O);
|
|
161
|
+
return /* @__PURE__ */ Ee(je, w({
|
|
162
|
+
as: y,
|
|
163
|
+
className: Be(ye.root, z),
|
|
164
|
+
ownerState: O,
|
|
165
|
+
onBlur: be,
|
|
166
|
+
onClick: l,
|
|
167
|
+
onContextMenu: ce,
|
|
168
|
+
onFocus: me,
|
|
169
|
+
onKeyDown: he,
|
|
170
|
+
onKeyUp: Re,
|
|
171
|
+
onMouseDown: ue,
|
|
172
|
+
onMouseLeave: le,
|
|
173
|
+
onMouseUp: ae,
|
|
174
|
+
onDragLeave: ie,
|
|
175
|
+
onTouchEnd: fe,
|
|
176
|
+
onTouchMove: de,
|
|
177
|
+
onTouchStart: pe,
|
|
178
|
+
ref: Te,
|
|
179
|
+
tabIndex: r ? -1 : K,
|
|
180
|
+
type: x
|
|
181
|
+
}, d, p, {
|
|
182
|
+
children: [m, k ? (
|
|
183
|
+
/* TouchRipple is only needed client-side, x2 boost on the server. */
|
|
184
|
+
/* @__PURE__ */ we(De, w({
|
|
185
|
+
ref: oe,
|
|
186
|
+
center: C
|
|
187
|
+
}, Z))
|
|
188
|
+
) : null]
|
|
118
189
|
}));
|
|
119
190
|
});
|
|
191
|
+
process.env.NODE_ENV !== "production" && (q.propTypes = {
|
|
192
|
+
// ----------------------------- Warning --------------------------------
|
|
193
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
194
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
195
|
+
// ----------------------------------------------------------------------
|
|
196
|
+
/**
|
|
197
|
+
* A ref for imperative actions.
|
|
198
|
+
* It currently only supports `focusVisible()` action.
|
|
199
|
+
*/
|
|
200
|
+
action: Le,
|
|
201
|
+
/**
|
|
202
|
+
* If `true`, the ripples are centered.
|
|
203
|
+
* They won't start at the cursor interaction position.
|
|
204
|
+
* @default false
|
|
205
|
+
*/
|
|
206
|
+
centerRipple: e.bool,
|
|
207
|
+
/**
|
|
208
|
+
* The content of the component.
|
|
209
|
+
*/
|
|
210
|
+
children: e.node,
|
|
211
|
+
/**
|
|
212
|
+
* Override or extend the styles applied to the component.
|
|
213
|
+
*/
|
|
214
|
+
classes: e.object,
|
|
215
|
+
/**
|
|
216
|
+
* @ignore
|
|
217
|
+
*/
|
|
218
|
+
className: e.string,
|
|
219
|
+
/**
|
|
220
|
+
* The component used for the root node.
|
|
221
|
+
* Either a string to use a HTML element or a component.
|
|
222
|
+
*/
|
|
223
|
+
component: Ne,
|
|
224
|
+
/**
|
|
225
|
+
* If `true`, the component is disabled.
|
|
226
|
+
* @default false
|
|
227
|
+
*/
|
|
228
|
+
disabled: e.bool,
|
|
229
|
+
/**
|
|
230
|
+
* If `true`, the ripple effect is disabled.
|
|
231
|
+
*
|
|
232
|
+
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
|
233
|
+
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
234
|
+
* @default false
|
|
235
|
+
*/
|
|
236
|
+
disableRipple: e.bool,
|
|
237
|
+
/**
|
|
238
|
+
* If `true`, the touch ripple effect is disabled.
|
|
239
|
+
* @default false
|
|
240
|
+
*/
|
|
241
|
+
disableTouchRipple: e.bool,
|
|
242
|
+
/**
|
|
243
|
+
* If `true`, the base button will have a keyboard focus ripple.
|
|
244
|
+
* @default false
|
|
245
|
+
*/
|
|
246
|
+
focusRipple: e.bool,
|
|
247
|
+
/**
|
|
248
|
+
* This prop can help identify which element has keyboard focus.
|
|
249
|
+
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
250
|
+
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
|
251
|
+
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
|
|
252
|
+
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
253
|
+
* if needed.
|
|
254
|
+
*/
|
|
255
|
+
focusVisibleClassName: e.string,
|
|
256
|
+
/**
|
|
257
|
+
* @ignore
|
|
258
|
+
*/
|
|
259
|
+
href: e.any,
|
|
260
|
+
/**
|
|
261
|
+
* The component used to render a link when the `href` prop is provided.
|
|
262
|
+
* @default 'a'
|
|
263
|
+
*/
|
|
264
|
+
LinkComponent: e.elementType,
|
|
265
|
+
/**
|
|
266
|
+
* @ignore
|
|
267
|
+
*/
|
|
268
|
+
onBlur: e.func,
|
|
269
|
+
/**
|
|
270
|
+
* @ignore
|
|
271
|
+
*/
|
|
272
|
+
onClick: e.func,
|
|
273
|
+
/**
|
|
274
|
+
* @ignore
|
|
275
|
+
*/
|
|
276
|
+
onContextMenu: e.func,
|
|
277
|
+
/**
|
|
278
|
+
* @ignore
|
|
279
|
+
*/
|
|
280
|
+
onDragLeave: e.func,
|
|
281
|
+
/**
|
|
282
|
+
* @ignore
|
|
283
|
+
*/
|
|
284
|
+
onFocus: e.func,
|
|
285
|
+
/**
|
|
286
|
+
* Callback fired when the component is focused with a keyboard.
|
|
287
|
+
* We trigger a `onFocus` callback too.
|
|
288
|
+
*/
|
|
289
|
+
onFocusVisible: e.func,
|
|
290
|
+
/**
|
|
291
|
+
* @ignore
|
|
292
|
+
*/
|
|
293
|
+
onKeyDown: e.func,
|
|
294
|
+
/**
|
|
295
|
+
* @ignore
|
|
296
|
+
*/
|
|
297
|
+
onKeyUp: e.func,
|
|
298
|
+
/**
|
|
299
|
+
* @ignore
|
|
300
|
+
*/
|
|
301
|
+
onMouseDown: e.func,
|
|
302
|
+
/**
|
|
303
|
+
* @ignore
|
|
304
|
+
*/
|
|
305
|
+
onMouseLeave: e.func,
|
|
306
|
+
/**
|
|
307
|
+
* @ignore
|
|
308
|
+
*/
|
|
309
|
+
onMouseUp: e.func,
|
|
310
|
+
/**
|
|
311
|
+
* @ignore
|
|
312
|
+
*/
|
|
313
|
+
onTouchEnd: e.func,
|
|
314
|
+
/**
|
|
315
|
+
* @ignore
|
|
316
|
+
*/
|
|
317
|
+
onTouchMove: e.func,
|
|
318
|
+
/**
|
|
319
|
+
* @ignore
|
|
320
|
+
*/
|
|
321
|
+
onTouchStart: e.func,
|
|
322
|
+
/**
|
|
323
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
324
|
+
*/
|
|
325
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
326
|
+
/**
|
|
327
|
+
* @default 0
|
|
328
|
+
*/
|
|
329
|
+
tabIndex: e.number,
|
|
330
|
+
/**
|
|
331
|
+
* Props applied to the `TouchRipple` element.
|
|
332
|
+
*/
|
|
333
|
+
TouchRippleProps: e.object,
|
|
334
|
+
/**
|
|
335
|
+
* A ref that points to the `TouchRipple` element.
|
|
336
|
+
*/
|
|
337
|
+
touchRippleRef: e.oneOfType([e.func, e.shape({
|
|
338
|
+
current: e.shape({
|
|
339
|
+
pulsate: e.func.isRequired,
|
|
340
|
+
start: e.func.isRequired,
|
|
341
|
+
stop: e.func.isRequired
|
|
342
|
+
})
|
|
343
|
+
})]),
|
|
344
|
+
/**
|
|
345
|
+
* @ignore
|
|
346
|
+
*/
|
|
347
|
+
type: e.oneOfType([e.oneOf(["button", "reset", "submit"]), e.string])
|
|
348
|
+
});
|
|
349
|
+
const Ze = q;
|
|
120
350
|
export {
|
|
121
|
-
|
|
351
|
+
je as ButtonBaseRoot,
|
|
352
|
+
Ze as default
|
|
122
353
|
};
|