jcicl 0.0.87 → 0.0.89
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/.chunks/ButtonBase.js +68 -68
- package/.chunks/DefaultPropsProvider.js +439 -439
- package/.chunks/Input.js +255 -254
- package/.chunks/Portal.js +57 -57
- package/.chunks/TransitionGroupContext.js +6 -7
- package/{composite/Accordion → Accordion}/Accordion.js +6 -6
- package/{templates/AppContainer → AppContainer}/AppContainer.js +5 -5
- package/{supercomposite/AppHeader → AppHeader}/AppHeader.js +6 -6
- package/{base/Avatar → Avatar}/Avatar.js +4 -4
- package/{base/AvatarWithImage → AvatarWithImage}/AvatarWithImage.js +3 -3
- package/{base/Button → Button}/Button.js +5 -5
- package/{base/Divider → Divider}/Divider.js +3 -3
- package/{supercomposite/EditableInfoCard → EditableInfoCard}/EditableInfoCard.js +14 -14
- package/{composite/ErrorBoundary → ErrorBoundary}/ErrorBoundary.js +3 -3
- package/{base/Flex → Flex}/Flex.js +1 -1
- package/{base/Grid → Grid}/Grid.js +1 -1
- package/{base/Icon → Icon}/Icon.js +3 -3
- package/{composite/InfoCard → InfoCard}/InfoCard.js +5 -5
- package/Input/Input.js +8 -0
- package/Input/index.js +4 -0
- package/{composite/LabeledInput → LabeledInput}/LabeledInput.js +3 -3
- package/{base/LabeledValue → LabeledValue}/LabeledValue.js +2 -2
- package/{composite/List → List}/List.js +2 -2
- package/{base/ListButton → ListButton}/ListButton.js +3 -3
- package/Loading/Loading.js +14 -0
- package/{composite/LogoLoop → LogoLoop}/LogoLoop.js +5 -5
- package/{supercomposite/Nav → Nav}/Nav.js +4 -4
- package/{base/ScrollContainer → ScrollContainer}/ScrollContainer.js +2 -2
- package/{animation/Spin → Spin}/Spin.js +2 -2
- package/{composite/Tooltip → Tooltip}/Tooltip.js +6 -6
- package/{composite/WithLabel → WithLabel}/WithLabel.js +2 -2
- package/{composite/WithLoading → WithLoading}/WithLoading.js +4 -4
- package/{animation/ZoomEntrance → ZoomEntrance}/ZoomEntrance.js +2 -2
- package/index.d.ts +25 -5
- package/index.js +4 -54
- package/package.json +1 -1
- package/animation/index.js +0 -6
- package/base/Input/Input.js +0 -8
- package/base/Input/index.js +0 -4
- package/base/Loading/Loading.js +0 -14
- package/base/index.d.ts +0 -12
- package/base/index.js +0 -26
- package/composite/index.d.ts +0 -9
- package/composite/index.js +0 -20
- package/supercomposite/index.d.ts +0 -3
- package/supercomposite/index.js +0 -8
- package/templates/index.d.ts +0 -1
- package/templates/index.js +0 -4
- /package/{composite/Accordion → Accordion}/Accordion.d.ts +0 -0
- /package/{composite/Accordion → Accordion}/index.d.ts +0 -0
- /package/{composite/Accordion → Accordion}/index.js +0 -0
- /package/{templates/AppContainer → AppContainer}/AppContainer.d.ts +0 -0
- /package/{templates/AppContainer → AppContainer}/index.d.ts +0 -0
- /package/{templates/AppContainer → AppContainer}/index.js +0 -0
- /package/{supercomposite/AppHeader → AppHeader}/AppHeader.d.ts +0 -0
- /package/{supercomposite/AppHeader → AppHeader}/index.d.ts +0 -0
- /package/{supercomposite/AppHeader → AppHeader}/index.js +0 -0
- /package/{base/Avatar → Avatar}/Avatar.d.ts +0 -0
- /package/{base/Avatar → Avatar}/index.d.ts +0 -0
- /package/{base/Avatar → Avatar}/index.js +0 -0
- /package/{base/AvatarWithImage → AvatarWithImage}/AvatarWithImage.d.ts +0 -0
- /package/{base/AvatarWithImage → AvatarWithImage}/index.d.ts +0 -0
- /package/{base/AvatarWithImage → AvatarWithImage}/index.js +0 -0
- /package/{base/Button → Button}/Button.d.ts +0 -0
- /package/{base/Button → Button}/index.d.ts +0 -0
- /package/{base/Button → Button}/index.js +0 -0
- /package/{base/Divider → Divider}/Divider.d.ts +0 -0
- /package/{base/Divider → Divider}/index.d.ts +0 -0
- /package/{base/Divider → Divider}/index.js +0 -0
- /package/{supercomposite/EditableInfoCard → EditableInfoCard}/EditableInfoCard.d.ts +0 -0
- /package/{supercomposite/EditableInfoCard → EditableInfoCard}/index.d.ts +0 -0
- /package/{supercomposite/EditableInfoCard → EditableInfoCard}/index.js +0 -0
- /package/{composite/ErrorBoundary → ErrorBoundary}/ErrorBoundary.d.ts +0 -0
- /package/{composite/ErrorBoundary → ErrorBoundary}/index.d.ts +0 -0
- /package/{composite/ErrorBoundary → ErrorBoundary}/index.js +0 -0
- /package/{base/Flex → Flex}/Flex.d.ts +0 -0
- /package/{base/Flex → Flex}/index.d.ts +0 -0
- /package/{base/Flex → Flex}/index.js +0 -0
- /package/{base/Grid → Grid}/Grid.d.ts +0 -0
- /package/{base/Grid → Grid}/index.d.ts +0 -0
- /package/{base/Grid → Grid}/index.js +0 -0
- /package/{base/Icon → Icon}/Icon.d.ts +0 -0
- /package/{base/Icon → Icon}/index.d.ts +0 -0
- /package/{base/Icon → Icon}/index.js +0 -0
- /package/{composite/InfoCard → InfoCard}/InfoCard.d.ts +0 -0
- /package/{composite/InfoCard → InfoCard}/index.d.ts +0 -0
- /package/{composite/InfoCard → InfoCard}/index.js +0 -0
- /package/{base/Input → Input}/Input.d.ts +0 -0
- /package/{base/Input → Input}/index.d.ts +0 -0
- /package/{composite/LabeledInput → LabeledInput}/LabeledInput.d.ts +0 -0
- /package/{composite/LabeledInput → LabeledInput}/index.d.ts +0 -0
- /package/{composite/LabeledInput → LabeledInput}/index.js +0 -0
- /package/{base/LabeledValue → LabeledValue}/LabeledValue.d.ts +0 -0
- /package/{base/LabeledValue → LabeledValue}/index.d.ts +0 -0
- /package/{base/LabeledValue → LabeledValue}/index.js +0 -0
- /package/{composite/List → List}/List.d.ts +0 -0
- /package/{composite/List → List}/index.d.ts +0 -0
- /package/{composite/List → List}/index.js +0 -0
- /package/{base/ListButton → ListButton}/ListButton.d.ts +0 -0
- /package/{base/ListButton → ListButton}/index.d.ts +0 -0
- /package/{base/ListButton → ListButton}/index.js +0 -0
- /package/{base/Loading → Loading}/Loading.d.ts +0 -0
- /package/{base/Loading → Loading}/index.d.ts +0 -0
- /package/{base/Loading → Loading}/index.js +0 -0
- /package/{composite/LogoLoop → LogoLoop}/LogoLoop.d.ts +0 -0
- /package/{composite/LogoLoop → LogoLoop}/index.d.ts +0 -0
- /package/{composite/LogoLoop → LogoLoop}/index.js +0 -0
- /package/{supercomposite/Nav → Nav}/Nav.d.ts +0 -0
- /package/{supercomposite/Nav → Nav}/index.d.ts +0 -0
- /package/{supercomposite/Nav → Nav}/index.js +0 -0
- /package/{base/ScrollContainer → ScrollContainer}/ScrollContainer.d.ts +0 -0
- /package/{base/ScrollContainer → ScrollContainer}/index.d.ts +0 -0
- /package/{base/ScrollContainer → ScrollContainer}/index.js +0 -0
- /package/{animation/Spin → Spin}/index.js +0 -0
- /package/{composite/Tooltip → Tooltip}/Tooltip.d.ts +0 -0
- /package/{composite/Tooltip → Tooltip}/index.d.ts +0 -0
- /package/{composite/Tooltip → Tooltip}/index.js +0 -0
- /package/{composite/WithLabel → WithLabel}/WithLabel.d.ts +0 -0
- /package/{composite/WithLabel → WithLabel}/index.d.ts +0 -0
- /package/{composite/WithLabel → WithLabel}/index.js +0 -0
- /package/{composite/WithLoading → WithLoading}/WithLoading.d.ts +0 -0
- /package/{composite/WithLoading → WithLoading}/index.d.ts +0 -0
- /package/{composite/WithLoading → WithLoading}/index.js +0 -0
- /package/{animation/ZoomEntrance → ZoomEntrance}/index.js +0 -0
package/.chunks/ButtonBase.js
CHANGED
|
@@ -6,65 +6,11 @@ import W, { Children as Oe, isValidElement as G, cloneElement as J } from "react
|
|
|
6
6
|
import { P as e, b as E, a as fe, s as te, u as de, g as je, d as Fe } from "./DefaultPropsProvider.js";
|
|
7
7
|
import { jsx as I, jsxs as $e } from "react/jsx-runtime";
|
|
8
8
|
import { k as ne } from "./emotion-react.browser.esm.js";
|
|
9
|
-
import {
|
|
9
|
+
import { _ as Ie, a as Ue, T as ue, u as ze, b as _e, c as ce, d as H, r as Xe } from "./TransitionGroupContext.js";
|
|
10
10
|
import { _ as Ye } from "./emotion-styled.browser.esm.js";
|
|
11
11
|
import { e as Ae } from "./elementTypeAcceptingRef.js";
|
|
12
12
|
import { i as pe } from "./isFocusVisible.js";
|
|
13
|
-
|
|
14
|
-
constructor() {
|
|
15
|
-
le(this, "mountEffect", () => {
|
|
16
|
-
this.shouldMount && !this.didMount && this.ref.current !== null && (this.didMount = !0, this.mounted.resolve());
|
|
17
|
-
});
|
|
18
|
-
this.ref = {
|
|
19
|
-
current: null
|
|
20
|
-
}, this.mounted = null, this.didMount = !1, this.shouldMount = !1, this.setShouldMount = null;
|
|
21
|
-
}
|
|
22
|
-
/** React ref to the ripple instance */
|
|
23
|
-
/** If the ripple component should be mounted */
|
|
24
|
-
/** Promise that resolves when the ripple component is mounted */
|
|
25
|
-
/** If the ripple component has been mounted */
|
|
26
|
-
/** React state hook setter */
|
|
27
|
-
static create() {
|
|
28
|
-
return new Q();
|
|
29
|
-
}
|
|
30
|
-
static use() {
|
|
31
|
-
const t = Ie(Q.create).current, [n, l] = d.useState(!1);
|
|
32
|
-
return t.shouldMount = n, t.setShouldMount = l, d.useEffect(t.mountEffect, [n]), t;
|
|
33
|
-
}
|
|
34
|
-
mount() {
|
|
35
|
-
return this.mounted || (this.mounted = qe(), this.shouldMount = !0, this.setShouldMount(this.shouldMount)), this.mounted;
|
|
36
|
-
}
|
|
37
|
-
/* Ripple API */
|
|
38
|
-
start(...t) {
|
|
39
|
-
this.mount().then(() => {
|
|
40
|
-
var n;
|
|
41
|
-
return (n = this.ref.current) == null ? void 0 : n.start(...t);
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
stop(...t) {
|
|
45
|
-
this.mount().then(() => {
|
|
46
|
-
var n;
|
|
47
|
-
return (n = this.ref.current) == null ? void 0 : n.stop(...t);
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
pulsate(...t) {
|
|
51
|
-
this.mount().then(() => {
|
|
52
|
-
var n;
|
|
53
|
-
return (n = this.ref.current) == null ? void 0 : n.pulsate(...t);
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
function Ke() {
|
|
58
|
-
return Q.use();
|
|
59
|
-
}
|
|
60
|
-
function qe() {
|
|
61
|
-
let o, t;
|
|
62
|
-
const n = new Promise((l, i) => {
|
|
63
|
-
o = l, t = i;
|
|
64
|
-
});
|
|
65
|
-
return n.resolve = o, n.reject = t, n;
|
|
66
|
-
}
|
|
67
|
-
function We(o) {
|
|
13
|
+
function Ke(o) {
|
|
68
14
|
if (o === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
69
15
|
return o;
|
|
70
16
|
}
|
|
@@ -78,7 +24,7 @@ function oe(o, t) {
|
|
|
78
24
|
l[i.key] = n(i);
|
|
79
25
|
}), l;
|
|
80
26
|
}
|
|
81
|
-
function
|
|
27
|
+
function qe(o, t) {
|
|
82
28
|
o = o || {}, t = t || {};
|
|
83
29
|
function n(h) {
|
|
84
30
|
return h in t ? t[h] : o[h];
|
|
@@ -102,7 +48,7 @@ function He(o, t) {
|
|
|
102
48
|
function O(o, t, n) {
|
|
103
49
|
return n[t] != null ? n[t] : o.props[t];
|
|
104
50
|
}
|
|
105
|
-
function
|
|
51
|
+
function We(o, t) {
|
|
106
52
|
return oe(o.children, function(n) {
|
|
107
53
|
return J(n, {
|
|
108
54
|
onExited: t.bind(null, n),
|
|
@@ -113,8 +59,8 @@ function Ge(o, t) {
|
|
|
113
59
|
});
|
|
114
60
|
});
|
|
115
61
|
}
|
|
116
|
-
function
|
|
117
|
-
var l = oe(o.children), i =
|
|
62
|
+
function He(o, t, n) {
|
|
63
|
+
var l = oe(o.children), i = qe(t, l);
|
|
118
64
|
return Object.keys(i).forEach(function(s) {
|
|
119
65
|
var r = i[s];
|
|
120
66
|
if (G(r)) {
|
|
@@ -135,21 +81,21 @@ function Je(o, t, n) {
|
|
|
135
81
|
}
|
|
136
82
|
}), i;
|
|
137
83
|
}
|
|
138
|
-
var
|
|
84
|
+
var Ge = Object.values || function(o) {
|
|
139
85
|
return Object.keys(o).map(function(t) {
|
|
140
86
|
return o[t];
|
|
141
87
|
});
|
|
142
|
-
},
|
|
88
|
+
}, Je = {
|
|
143
89
|
component: "div",
|
|
144
90
|
childFactory: function(t) {
|
|
145
91
|
return t;
|
|
146
92
|
}
|
|
147
93
|
}, ie = /* @__PURE__ */ function(o) {
|
|
148
|
-
|
|
94
|
+
Ie(t, o);
|
|
149
95
|
function t(l, i) {
|
|
150
96
|
var s;
|
|
151
97
|
s = o.call(this, l, i) || this;
|
|
152
|
-
var r = s.handleExited.bind(
|
|
98
|
+
var r = s.handleExited.bind(Ke(s));
|
|
153
99
|
return s.state = {
|
|
154
100
|
contextValue: {
|
|
155
101
|
isMounting: !0
|
|
@@ -170,7 +116,7 @@ var Qe = Object.values || function(o) {
|
|
|
170
116
|
}, t.getDerivedStateFromProps = function(i, s) {
|
|
171
117
|
var r = s.children, p = s.handleExited, u = s.firstRender;
|
|
172
118
|
return {
|
|
173
|
-
children: u ?
|
|
119
|
+
children: u ? We(i, p) : He(i, r, p),
|
|
174
120
|
firstRender: !1
|
|
175
121
|
};
|
|
176
122
|
}, n.handleExited = function(i, s) {
|
|
@@ -182,7 +128,7 @@ var Qe = Object.values || function(o) {
|
|
|
182
128
|
};
|
|
183
129
|
}));
|
|
184
130
|
}, n.render = function() {
|
|
185
|
-
var i = this.props, s = i.component, r = i.childFactory, p =
|
|
131
|
+
var i = this.props, s = i.component, r = i.childFactory, p = Ue(i, ["component", "childFactory"]), u = this.state.contextValue, f = Ge(this.state.children).map(r);
|
|
186
132
|
return delete p.appear, delete p.enter, delete p.exit, s === null ? /* @__PURE__ */ W.createElement(ue.Provider, {
|
|
187
133
|
value: u
|
|
188
134
|
}, f) : /* @__PURE__ */ W.createElement(ue.Provider, {
|
|
@@ -243,7 +189,61 @@ ie.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
243
189
|
*/
|
|
244
190
|
childFactory: e.func
|
|
245
191
|
} : {};
|
|
246
|
-
ie.defaultProps =
|
|
192
|
+
ie.defaultProps = Je;
|
|
193
|
+
class Q {
|
|
194
|
+
constructor() {
|
|
195
|
+
le(this, "mountEffect", () => {
|
|
196
|
+
this.shouldMount && !this.didMount && this.ref.current !== null && (this.didMount = !0, this.mounted.resolve());
|
|
197
|
+
});
|
|
198
|
+
this.ref = {
|
|
199
|
+
current: null
|
|
200
|
+
}, this.mounted = null, this.didMount = !1, this.shouldMount = !1, this.setShouldMount = null;
|
|
201
|
+
}
|
|
202
|
+
/** React ref to the ripple instance */
|
|
203
|
+
/** If the ripple component should be mounted */
|
|
204
|
+
/** Promise that resolves when the ripple component is mounted */
|
|
205
|
+
/** If the ripple component has been mounted */
|
|
206
|
+
/** React state hook setter */
|
|
207
|
+
static create() {
|
|
208
|
+
return new Q();
|
|
209
|
+
}
|
|
210
|
+
static use() {
|
|
211
|
+
const t = ze(Q.create).current, [n, l] = d.useState(!1);
|
|
212
|
+
return t.shouldMount = n, t.setShouldMount = l, d.useEffect(t.mountEffect, [n]), t;
|
|
213
|
+
}
|
|
214
|
+
mount() {
|
|
215
|
+
return this.mounted || (this.mounted = Ze(), this.shouldMount = !0, this.setShouldMount(this.shouldMount)), this.mounted;
|
|
216
|
+
}
|
|
217
|
+
/* Ripple API */
|
|
218
|
+
start(...t) {
|
|
219
|
+
this.mount().then(() => {
|
|
220
|
+
var n;
|
|
221
|
+
return (n = this.ref.current) == null ? void 0 : n.start(...t);
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
stop(...t) {
|
|
225
|
+
this.mount().then(() => {
|
|
226
|
+
var n;
|
|
227
|
+
return (n = this.ref.current) == null ? void 0 : n.stop(...t);
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
pulsate(...t) {
|
|
231
|
+
this.mount().then(() => {
|
|
232
|
+
var n;
|
|
233
|
+
return (n = this.ref.current) == null ? void 0 : n.pulsate(...t);
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
function Qe() {
|
|
238
|
+
return Q.use();
|
|
239
|
+
}
|
|
240
|
+
function Ze() {
|
|
241
|
+
let o, t;
|
|
242
|
+
const n = new Promise((l, i) => {
|
|
243
|
+
o = l, t = i;
|
|
244
|
+
});
|
|
245
|
+
return n.resolve = o, n.reject = t, n;
|
|
246
|
+
}
|
|
247
247
|
function he(o) {
|
|
248
248
|
const {
|
|
249
249
|
className: t,
|
|
@@ -630,7 +630,7 @@ const at = fe("MuiButtonBase", ["root", "disabled", "focusVisible"]), lt = (o) =
|
|
|
630
630
|
touchRippleRef: z,
|
|
631
631
|
type: L,
|
|
632
632
|
..._
|
|
633
|
-
} = l, X = d.useRef(null), P =
|
|
633
|
+
} = l, X = d.useRef(null), P = Qe(), be = ce(P.ref, z), [k, K] = d.useState(!1);
|
|
634
634
|
f && k && K(!1), d.useImperativeHandle(i, () => ({
|
|
635
635
|
focusVisible: () => {
|
|
636
636
|
K(!0), X.current.focus();
|