@rankingcoach/vanguard 1.10.0 → 1.12.0
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/dist/index-Accordion2.js +5 -5
- package/dist/index-AccordionDetails.js +5 -5
- package/dist/index-AccordionSummary.js +2 -2
- package/dist/index-AppBar2.js +1 -1
- package/dist/index-Autocomplete2.js +3 -3
- package/dist/index-Backdrop.js +1 -1
- package/dist/index-BasePopper.js +2 -2
- package/dist/index-BenchmarkGauge.js +1 -1
- package/dist/index-BenchmarkGaugeMarker.js +1 -1
- package/dist/index-Box.js +1 -1
- package/dist/index-Button2.js +1 -1
- package/dist/index-ButtonBase.js +1 -1
- package/dist/index-CSSTransition.js +1 -1
- package/dist/index-CalendarOrClockPicker.js +1 -1
- package/dist/index-CalendarPicker.js +2 -2
- package/dist/index-Chip.js +1 -1
- package/dist/index-ClickAwayListener.js +1 -1
- package/dist/index-Clock3.js +1 -1
- package/dist/index-ClockNumber.js +4 -4
- package/dist/index-ClockPicker.js +2 -2
- package/dist/index-ClockPointer.js +1 -1
- package/dist/index-Collapse2.js +1 -1
- package/dist/index-ColorPicker.js +1 -1
- package/dist/index-CreditCard.js +1 -1
- package/dist/index-Cropper.js +1 -1
- package/dist/index-DateInput.js +4 -4
- package/dist/index-DatePicker2.js +1 -1
- package/dist/index-DatePickerToolbar.js +1 -1
- package/dist/index-DayCell.js +2 -2
- package/dist/index-DayPicker.js +1 -1
- package/dist/index-DefaultPropsProvider.js +1 -1
- package/dist/index-DefaultPropsProvider2.js +1 -1
- package/dist/index-DesktopDatePicker.js +1 -1
- package/dist/index-Dialog.js +1 -1
- package/dist/index-DialogActions.js +1 -1
- package/dist/index-DialogContent.js +1 -1
- package/dist/index-Drawer2.js +1 -1
- package/dist/index-Fade.js +2 -2
- package/dist/index-FilledInput.js +1 -1
- package/dist/index-FocusTrap.js +1 -1
- package/dist/index-FormControl2.js +1 -1
- package/dist/index-FormHelperText.js +1 -1
- package/dist/index-FormLabel.js +1 -1
- package/dist/index-GlobalStyles.js +1 -1
- package/dist/index-GlobalStyles2.js +1 -1
- package/dist/index-GlobalStyles3.js +1 -1
- package/dist/index-Grid.js +1 -1
- package/dist/index-Grow.js +2 -2
- package/dist/index-IconButton2.js +1 -1
- package/dist/index-Input2.js +1 -1
- package/dist/index-InputAdornment.js +1 -1
- package/dist/index-InputBase2.js +1 -1
- package/dist/index-InputLabel.js +5 -5
- package/dist/index-InputRangeField.js +1 -1
- package/dist/index-LinearProgress.js +1 -1
- package/dist/index-List2.js +1 -1
- package/dist/index-ListSubheader.js +1 -1
- package/dist/index-LocalizationProvider.js +1 -1
- package/dist/index-Menu2.js +1 -1
- package/dist/index-MenuItem2.js +1 -1
- package/dist/index-MenuList.js +1 -1
- package/dist/index-MobileDatePicker.js +1 -1
- package/dist/index-Modal2.js +1 -1
- package/dist/index-ModalContext.js +3 -3
- package/dist/index-Month.js +3 -3
- package/dist/index-MonthPicker.js +7 -7
- package/dist/index-NativeSelectInput.js +1 -1
- package/dist/index-NotchedOutline.js +1 -1
- package/dist/index-OutlinedInput.js +1 -1
- package/dist/index-Paper.js +1 -1
- package/dist/index-Parser2.js +3 -2
- package/dist/index-PickersArrowSwitcher.js +1 -1
- package/dist/index-PickersCalendarHeader.js +1 -1
- package/dist/index-PickersDay.js +2 -2
- package/dist/index-PickersFadeTransitionGroup.js +6 -6
- package/dist/index-PickersMonth.js +4 -4
- package/dist/index-PickersPopper.js +1 -1
- package/dist/index-PickersSlideTransition.js +6 -6
- package/dist/index-PickersToolbar.js +1 -1
- package/dist/index-PickersYear.js +1 -1
- package/dist/index-Popover2.js +7 -7
- package/dist/index-Popper.js +1 -1
- package/dist/index-Portal.js +1 -1
- package/dist/index-Profile.js +0 -3
- package/dist/index-PropTypes.js +1 -1
- package/dist/index-QuoteContainer.js +5 -6
- package/dist/index-Ripple.js +1 -1
- package/dist/index-RtlProvider.js +1 -1
- package/dist/index-ScrollbarSize.js +1 -1
- package/dist/index-Select2.js +6 -6
- package/dist/index-SelectInput2.js +1 -1
- package/dist/index-Skeleton2.js +1 -1
- package/dist/index-Slide.js +6 -6
- package/dist/index-Slider2.js +2 -2
- package/dist/index-SliderValueLabel.js +1 -1
- package/dist/index-Snackbar2.js +7 -7
- package/dist/index-SnackbarContent.js +1 -1
- package/dist/index-StyledEngineProvider.js +1 -1
- package/dist/index-StyledSVG2.js +2 -2
- package/dist/index-SvgIcon.js +1 -1
- package/dist/index-Switch.js +17 -22
- package/dist/index-Tab2.js +1 -1
- package/dist/index-TabScrollButton.js +1 -1
- package/dist/index-Table.js +3 -3
- package/dist/index-Tabs2.js +5 -5
- package/dist/index-TextField.js +1 -1
- package/dist/index-TextareaAutosize.js +1 -1
- package/dist/index-ToggleButton2.js +1 -1
- package/dist/index-ToggleButtonGroup2.js +1 -1
- package/dist/index-Toolbar2.js +1 -1
- package/dist/index-Tooltip.js +3 -3
- package/dist/index-TouchRipple.js +1 -1
- package/dist/index-Transition.js +1 -1
- package/dist/index-TransitionGroup.js +1 -1
- package/dist/index-Typography.js +1 -1
- package/dist/index-YearPicker.js +7 -7
- package/dist/index-_virtual16.js +5 -3
- package/dist/index-_virtual17.js +3 -5
- package/dist/index-_virtual66.js +2 -2
- package/dist/index-_virtual67.js +2 -4
- package/dist/index-_virtual68.js +4 -2
- package/dist/index-_virtual69.js +2 -4
- package/dist/index-_virtual70.js +2 -2
- package/dist/index-_virtual71.js +1 -1
- package/dist/index-_virtual72.js +2 -4
- package/dist/index-_virtual73.js +1 -1
- package/dist/index-_virtual74.js +4 -2
- package/dist/index-_virtual75.js +4 -2
- package/dist/index-_virtual76.js +2 -2
- package/dist/index-accessibility.js +1 -1
- package/dist/index-accordionClasses.js +4 -4
- package/dist/index-accordionSummaryClasses.js +4 -4
- package/dist/index-autocompleteClasses.js +4 -4
- package/dist/index-buttonBaseClasses.js +4 -4
- package/dist/index-buttonClasses.js +4 -4
- package/dist/index-chipClasses.js +4 -4
- package/dist/index-cjs.js +1 -1
- package/dist/index-clockNumberClasses.js +4 -4
- package/dist/index-elementAcceptingRef.js +1 -1
- package/dist/index-elementTypeAcceptingRef.js +1 -1
- package/dist/index-emotion-is-prop-valid.esm.js +1 -1
- package/dist/index-esm.js +1 -1
- package/dist/index-esm4.js +293 -128
- package/dist/index-esm5.js +128 -293
- package/dist/index-esm7.js +0 -1
- package/dist/index-formHelperTextClasses.js +4 -4
- package/dist/index-generate-error-boundary-data.js +13 -11
- package/dist/index-helpers2.js +43 -393
- package/dist/index-helpers3.js +393 -43
- package/dist/index-iconButtonClasses.js +4 -4
- package/dist/index-inputAdornmentClasses.js +4 -4
- package/dist/index-lib5.js +1 -1
- package/dist/index-menuItemClasses.js +4 -4
- package/dist/index-nativeSelectClasses.js +4 -4
- package/dist/index-pickersMonthClasses.js +4 -4
- package/dist/index-pickersToolbarClasses.js +4 -4
- package/dist/index-pickersYearClasses.js +4 -4
- package/dist/index-react-spring_animated.modern.js +3 -3
- package/dist/index-react-spring_core.modern.js +445 -422
- package/dist/index-react-spring_web.modern.js +70 -69
- package/dist/index-refType.js +1 -1
- package/dist/index-responsivePropType.js +1 -1
- package/dist/index-sanitize-html.js +16 -17
- package/dist/index-selectClasses.js +4 -4
- package/dist/index-sliderClasses.js +4 -4
- package/dist/index-styled-engine.js +4 -4
- package/dist/index-tabClasses.js +4 -4
- package/dist/index-tabScrollButtonClasses.js +4 -4
- package/dist/index-tabsClasses.js +4 -4
- package/dist/index-toggleButtonClasses.js +4 -4
- package/dist/index-toggleButtonGroupClasses.js +4 -4
- package/dist/index-tooltipClasses.js +4 -4
- package/dist/index-use-benchmark-gauge-render-state.js +1 -1
- package/dist/index-utils2.js +47 -67
- package/dist/index-utils3.js +67 -47
- package/dist/index.js +426 -426
- package/dist/types/core/CardMotion/CardMotion.config.d.ts +87 -55
- package/dist/types/core/Switch/stories/SwitchChecked.story.d.ts +2 -0
- package/dist/types/core/Switch/stories/SwitchDefault.story.d.ts +2 -0
- package/dist/types/core/Switch/stories/SwitchDisabled.story.d.ts +2 -0
- package/dist/types/core/Switch/stories/SwitchLabelLeft.story.d.ts +2 -0
- package/dist/types/core/Switch/stories/SwitchLoading.story.d.ts +2 -0
- package/dist/types/core/Switch/stories/SwitchSizes.story.d.ts +2 -0
- package/dist/types/core/Switch/stories/_Switch.default.d.ts +32 -0
- package/dist/vanguard-asset-analysis.json +1 -1
- package/dist/vanguard.css +1 -1
- package/dist-wordpress/index.js +9681 -9655
- package/dist-wordpress/vanguard.css +1 -1
- package/package.json +44 -42
- package/scripts/verify-storybook-tsgo.js +0 -0
- package/scripts/verify-tsgo.js +0 -0
|
@@ -1,40 +1,41 @@
|
|
|
1
|
-
import { BailSignal as
|
|
2
|
-
import { unstable_batchedUpdates as
|
|
3
|
-
import { Globals as C, colors as
|
|
4
|
-
import { createInterpolator as
|
|
5
|
-
import { createHost as
|
|
1
|
+
import { BailSignal as Y, Controller as tt, FrameValue as et, Interpolation as rt, SpringContext as ot, SpringRef as st, SpringValue as it, config as at, inferTo as lt, to as ut, useSpring as nt, useSprings as dt, useTransition as pt } from "./index-react-spring_core.modern.js";
|
|
2
|
+
import { unstable_batchedUpdates as A } from "react-dom";
|
|
3
|
+
import { Globals as C, colors as F, createStringInterpolator as I, eachProp as P, is as h, toArray as k, FluidValue as T, each as f, getFluidValue as y, hasFluidValue as w, addFluidObserver as N, removeFluidObserver as j, callFluidObservers as V } from "./index-react-spring_shared.modern.js";
|
|
4
|
+
import { createInterpolator as ft, easings as ct, useIsomorphicLayoutEffect as ht } from "./index-react-spring_shared.modern.js";
|
|
5
|
+
import { createHost as _, AnimatedObject as E } from "./index-react-spring_animated.modern.js";
|
|
6
6
|
var S = /^--/;
|
|
7
|
-
function
|
|
7
|
+
function G(t, e) {
|
|
8
8
|
return e == null || typeof e == "boolean" || e === "" ? "" : typeof e == "number" && e !== 0 && !S.test(t) && !(c.hasOwnProperty(t) && c[t]) ? e + "px" : ("" + e).trim();
|
|
9
9
|
}
|
|
10
10
|
var O = {};
|
|
11
|
-
function
|
|
12
|
-
if (!t.nodeType || !t.setAttribute)
|
|
11
|
+
function R(t, e) {
|
|
12
|
+
if (!t.nodeType || !t.setAttribute || !t.removeAttribute)
|
|
13
13
|
return !1;
|
|
14
14
|
const r = t.nodeName === "filter" || t.parentNode && t.parentNode.nodeName === "filter", {
|
|
15
15
|
className: l,
|
|
16
|
-
style:
|
|
17
|
-
children:
|
|
18
|
-
scrollTop:
|
|
16
|
+
style: i,
|
|
17
|
+
children: u,
|
|
18
|
+
scrollTop: a,
|
|
19
19
|
scrollLeft: s,
|
|
20
|
-
viewBox:
|
|
20
|
+
viewBox: n,
|
|
21
21
|
...d
|
|
22
|
-
} = e, m = Object.values(d),
|
|
22
|
+
} = e, m = Object.values(d), g = Object.keys(d).map(
|
|
23
23
|
(o) => r || t.hasAttribute(o) ? o : O[o] || (O[o] = o.replace(
|
|
24
24
|
/([A-Z])/g,
|
|
25
25
|
// Attributes are written in dash case
|
|
26
26
|
(p) => "-" + p.toLowerCase()
|
|
27
27
|
))
|
|
28
28
|
);
|
|
29
|
-
|
|
30
|
-
for (const o in
|
|
31
|
-
if (
|
|
32
|
-
const p =
|
|
29
|
+
e.hasOwnProperty("children") && (t.textContent = u);
|
|
30
|
+
for (const o in i)
|
|
31
|
+
if (i.hasOwnProperty(o)) {
|
|
32
|
+
const p = G(o, i[o]);
|
|
33
33
|
S.test(o) ? t.style.setProperty(o, p) : t.style[o] = p;
|
|
34
34
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
g.forEach((o, p) => {
|
|
36
|
+
const x = m[p];
|
|
37
|
+
x !== void 0 ? t.setAttribute(o, x) : t.removeAttribute(o);
|
|
38
|
+
}), e.hasOwnProperty("className") && (l !== void 0 ? t.className = l : t.removeAttribute("class")), a !== void 0 && (t.scrollTop = a), s !== void 0 && (t.scrollLeft = s), e.hasOwnProperty("viewBox") && (n !== void 0 ? t.setAttribute("viewBox", n) : t.removeAttribute("viewBox"));
|
|
38
39
|
}
|
|
39
40
|
var c = {
|
|
40
41
|
animationIterationCount: !0,
|
|
@@ -79,34 +80,34 @@ var c = {
|
|
|
79
80
|
strokeMiterlimit: !0,
|
|
80
81
|
strokeOpacity: !0,
|
|
81
82
|
strokeWidth: !0
|
|
82
|
-
},
|
|
83
|
-
c = Object.keys(c).reduce((t, e) => (
|
|
84
|
-
var L = /^(matrix|translate|scale|rotate|skew)/, U = /^(translate)/, W = /^(rotate|skew)/, v = (t, e) => h.num(t) && t !== 0 ? t + e : t,
|
|
83
|
+
}, $ = (t, e) => t + e.charAt(0).toUpperCase() + e.substring(1), B = ["Webkit", "Ms", "Moz", "O"];
|
|
84
|
+
c = Object.keys(c).reduce((t, e) => (B.forEach((r) => t[$(r, e)] = t[e]), t), c);
|
|
85
|
+
var L = /^(matrix|translate|scale|rotate|skew)/, U = /^(translate)/, W = /^(rotate|skew)/, v = (t, e) => h.num(t) && t !== 0 ? t + e : t, b = (t, e) => h.arr(t) ? t.every((r) => b(r, e)) : h.num(t) ? t === e : parseFloat(t) === e, M = class extends E {
|
|
85
86
|
constructor({ x: t, y: e, z: r, ...l }) {
|
|
86
|
-
const
|
|
87
|
-
(t || e || r) && (
|
|
88
|
-
`translate3d(${
|
|
87
|
+
const i = [], u = [];
|
|
88
|
+
(t || e || r) && (i.push([t || 0, e || 0, r || 0]), u.push((a) => [
|
|
89
|
+
`translate3d(${a.map((s) => v(s, "px")).join(",")})`,
|
|
89
90
|
// prettier-ignore
|
|
90
|
-
|
|
91
|
-
])),
|
|
91
|
+
b(a, 0)
|
|
92
|
+
])), P(l, (a, s) => {
|
|
92
93
|
if (s === "transform")
|
|
93
|
-
|
|
94
|
+
i.push([a || ""]), u.push((n) => [n, n === ""]);
|
|
94
95
|
else if (L.test(s)) {
|
|
95
|
-
if (delete l[s], h.und(
|
|
96
|
-
const
|
|
97
|
-
|
|
98
|
-
s === "rotate3d" ? ([d, m,
|
|
99
|
-
`rotate3d(${d},${m},${
|
|
100
|
-
|
|
96
|
+
if (delete l[s], h.und(a)) return;
|
|
97
|
+
const n = U.test(s) ? "px" : W.test(s) ? "deg" : "";
|
|
98
|
+
i.push(k(a)), u.push(
|
|
99
|
+
s === "rotate3d" ? ([d, m, g, o]) => [
|
|
100
|
+
`rotate3d(${d},${m},${g},${v(o, n)})`,
|
|
101
|
+
b(o, 0)
|
|
101
102
|
] : (d) => [
|
|
102
|
-
`${s}(${d.map((m) => v(m,
|
|
103
|
-
|
|
103
|
+
`${s}(${d.map((m) => v(m, n)).join(",")})`,
|
|
104
|
+
b(d, s.startsWith("scale") ? 1 : 0)
|
|
104
105
|
]
|
|
105
106
|
);
|
|
106
107
|
}
|
|
107
|
-
}),
|
|
108
|
+
}), i.length && (l.transform = new q(i, u)), super(l);
|
|
108
109
|
}
|
|
109
|
-
},
|
|
110
|
+
}, q = class extends T {
|
|
110
111
|
constructor(t, e) {
|
|
111
112
|
super(), this.inputs = t, this.transforms = e, this._value = null;
|
|
112
113
|
}
|
|
@@ -116,10 +117,10 @@ var L = /^(matrix|translate|scale|rotate|skew)/, U = /^(translate)/, W = /^(rota
|
|
|
116
117
|
_get() {
|
|
117
118
|
let t = "", e = !0;
|
|
118
119
|
return f(this.inputs, (r, l) => {
|
|
119
|
-
const
|
|
120
|
-
h.arr(
|
|
120
|
+
const i = y(r[0]), [u, a] = this.transforms[l](
|
|
121
|
+
h.arr(i) ? i : r.map(y)
|
|
121
122
|
);
|
|
122
|
-
t += " " +
|
|
123
|
+
t += " " + u, e = e && a;
|
|
123
124
|
}), e ? "none" : t;
|
|
124
125
|
}
|
|
125
126
|
// Start observing our inputs once we have an observer.
|
|
@@ -128,7 +129,7 @@ var L = /^(matrix|translate|scale|rotate|skew)/, U = /^(translate)/, W = /^(rota
|
|
|
128
129
|
this.inputs,
|
|
129
130
|
(e) => f(
|
|
130
131
|
e,
|
|
131
|
-
(r) =>
|
|
132
|
+
(r) => w(r) && N(r, this)
|
|
132
133
|
)
|
|
133
134
|
);
|
|
134
135
|
}
|
|
@@ -138,14 +139,14 @@ var L = /^(matrix|translate|scale|rotate|skew)/, U = /^(translate)/, W = /^(rota
|
|
|
138
139
|
this.inputs,
|
|
139
140
|
(e) => f(
|
|
140
141
|
e,
|
|
141
|
-
(r) =>
|
|
142
|
+
(r) => w(r) && j(r, this)
|
|
142
143
|
)
|
|
143
144
|
);
|
|
144
145
|
}
|
|
145
146
|
eventObserved(t) {
|
|
146
|
-
t.type == "change" && (this._value = null),
|
|
147
|
+
t.type == "change" && (this._value = null), V(this, t);
|
|
147
148
|
}
|
|
148
|
-
},
|
|
149
|
+
}, z = [
|
|
149
150
|
"a",
|
|
150
151
|
"abbr",
|
|
151
152
|
"address",
|
|
@@ -282,34 +283,34 @@ var L = /^(matrix|translate|scale|rotate|skew)/, U = /^(translate)/, W = /^(rota
|
|
|
282
283
|
"tspan"
|
|
283
284
|
];
|
|
284
285
|
C.assign({
|
|
285
|
-
batchedUpdates:
|
|
286
|
-
createStringInterpolator:
|
|
287
|
-
colors:
|
|
286
|
+
batchedUpdates: A,
|
|
287
|
+
createStringInterpolator: I,
|
|
288
|
+
colors: F
|
|
288
289
|
});
|
|
289
|
-
var
|
|
290
|
-
applyAnimatedValues:
|
|
291
|
-
createAnimatedStyle: (t) => new
|
|
290
|
+
var D = _(z, {
|
|
291
|
+
applyAnimatedValues: R,
|
|
292
|
+
createAnimatedStyle: (t) => new M(t),
|
|
292
293
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
293
294
|
getComponentProps: ({ scrollTop: t, scrollLeft: e, ...r }) => r
|
|
294
|
-
}),
|
|
295
|
+
}), J = D.animated;
|
|
295
296
|
export {
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
297
|
+
Y as BailSignal,
|
|
298
|
+
tt as Controller,
|
|
299
|
+
et as FrameValue,
|
|
299
300
|
C as Globals,
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
301
|
+
rt as Interpolation,
|
|
302
|
+
ot as SpringContext,
|
|
303
|
+
st as SpringRef,
|
|
304
|
+
it as SpringValue,
|
|
305
|
+
J as a,
|
|
306
|
+
J as animated,
|
|
306
307
|
at as config,
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
308
|
+
ft as createInterpolator,
|
|
309
|
+
ct as easings,
|
|
310
|
+
lt as inferTo,
|
|
311
|
+
ut as to,
|
|
312
|
+
ht as useIsomorphicLayoutEffect,
|
|
312
313
|
nt as useSpring,
|
|
313
|
-
|
|
314
|
-
|
|
314
|
+
dt as useSprings,
|
|
315
|
+
pt as useTransition
|
|
315
316
|
};
|
package/dist/index-refType.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCallback as b, Fragment as T, createElement as d } from "react";
|
|
2
2
|
import { jsx as u, Fragment as A } from "react/jsx-runtime";
|
|
3
|
-
import
|
|
3
|
+
import p from "./index-esm2.js";
|
|
4
4
|
import { domToReact as w } from "./index-html-react-parser.js";
|
|
5
5
|
import { parseDocument as L } from "./index-esm3.js";
|
|
6
6
|
import { Element as h } from "./index-node.js";
|
|
@@ -10,17 +10,17 @@ const E = ({
|
|
|
10
10
|
html: e,
|
|
11
11
|
acceptUnknown: c
|
|
12
12
|
}) => {
|
|
13
|
-
const
|
|
13
|
+
const i = b((t, o, l, s) => {
|
|
14
14
|
if (!t || typeof t != "string")
|
|
15
15
|
return u(T, {
|
|
16
16
|
children: s
|
|
17
17
|
}, l);
|
|
18
|
-
const
|
|
18
|
+
const a = r[t], f = () => d(t, {
|
|
19
19
|
...o,
|
|
20
20
|
children: s,
|
|
21
21
|
key: l
|
|
22
22
|
});
|
|
23
|
-
return
|
|
23
|
+
return a === null ? f() : typeof a > "u" ? c ? f() : null : d(a, {
|
|
24
24
|
...o,
|
|
25
25
|
index: l,
|
|
26
26
|
key: l
|
|
@@ -31,7 +31,7 @@ const E = ({
|
|
|
31
31
|
const o = t.tagName.toLowerCase(), l = {
|
|
32
32
|
...t.attribs
|
|
33
33
|
}, s = w(t.children, n);
|
|
34
|
-
return
|
|
34
|
+
return i(o, l, Math.random(), s);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
};
|
|
@@ -64,12 +64,12 @@ const E = ({
|
|
|
64
64
|
}, R = /* @__PURE__ */ new Set(["script", "style", "iframe", "object", "embed", "noscript"]), S = /* @__PURE__ */ new Set(["a", "abbr", "b", "blockquote", "br", "code", "div", "em", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "i", "li", "ol", "p", "pre", "span", "strong", "sub", "sup", "table", "thead", "tbody", "td", "th", "tr", "u", "ul"]), y = {
|
|
65
65
|
a: ["href", "name", "target", "rel"]
|
|
66
66
|
}, _ = /^\s*(javascript|vbscript|data)\s*:/i, D = /* @__PURE__ */ new Set(["href", "src", "action", "formaction", "xlink:href"]);
|
|
67
|
-
function k(r, e, c,
|
|
67
|
+
function k(r, e, c, i) {
|
|
68
68
|
if (e.toLowerCase().startsWith("on") || D.has(e) && _.test(c)) return !1;
|
|
69
|
-
const n =
|
|
69
|
+
const n = i[r];
|
|
70
70
|
return n ? n.includes(e) : !1;
|
|
71
71
|
}
|
|
72
|
-
function m(r, e, c,
|
|
72
|
+
function m(r, e, c, i) {
|
|
73
73
|
const n = [];
|
|
74
74
|
for (const t of r) {
|
|
75
75
|
if (t.type === "text") {
|
|
@@ -80,17 +80,17 @@ function m(r, e, c, a) {
|
|
|
80
80
|
const o = t.tagName.toLowerCase();
|
|
81
81
|
if (R.has(o))
|
|
82
82
|
continue;
|
|
83
|
-
const l = m(t.children, e, c,
|
|
83
|
+
const l = m(t.children, e, c, i);
|
|
84
84
|
if (!e.has(o)) {
|
|
85
85
|
n.push(...l);
|
|
86
86
|
continue;
|
|
87
87
|
}
|
|
88
88
|
const s = {};
|
|
89
|
-
for (const [
|
|
90
|
-
k(o,
|
|
91
|
-
if (
|
|
92
|
-
const
|
|
93
|
-
|
|
89
|
+
for (const [a, f] of Object.entries(t.attribs))
|
|
90
|
+
k(o, a, f, c) && (s[a] = f);
|
|
91
|
+
if (i && "class" in s) {
|
|
92
|
+
const a = s.class.split(/\s+/).filter((f) => f && i.has(f)).join(" ");
|
|
93
|
+
a ? s.class = a : delete s.class;
|
|
94
94
|
}
|
|
95
95
|
t.attribs = s, t.children = l, n.push(t);
|
|
96
96
|
}
|
|
@@ -99,11 +99,10 @@ function m(r, e, c, a) {
|
|
|
99
99
|
}
|
|
100
100
|
function G(r, e) {
|
|
101
101
|
if (!r) return "";
|
|
102
|
-
const c = e != null && e.allowedTags ? new Set(e.allowedTags) : S,
|
|
103
|
-
return t.children = m(t.children, c,
|
|
102
|
+
const c = e != null && e.allowedTags ? new Set(e.allowedTags) : S, i = (e == null ? void 0 : e.allowedAttributes) ?? y, n = e != null && e.allowedClasses ? new Set(e.allowedClasses) : void 0, t = L(r);
|
|
103
|
+
return t.children = m(t.children, c, i, n), p(t);
|
|
104
104
|
}
|
|
105
105
|
export {
|
|
106
|
-
E as default,
|
|
107
106
|
M as sanitizeHTMLToReactNode,
|
|
108
107
|
G as sanitizeHtml
|
|
109
108
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import t from "./index-
|
|
2
|
-
import i from "./index-
|
|
1
|
+
import t from "./index-generateUtilityClass.js";
|
|
2
|
+
import i from "./index-generateUtilityClasses.js";
|
|
3
3
|
function s(e) {
|
|
4
|
-
return
|
|
4
|
+
return t("MuiSelect", e);
|
|
5
5
|
}
|
|
6
|
-
const o =
|
|
6
|
+
const o = i("MuiSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "focused", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]);
|
|
7
7
|
export {
|
|
8
8
|
o as default,
|
|
9
9
|
s as getSelectUtilityClasses
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import e from "./index-
|
|
2
|
-
import l from "./index-
|
|
1
|
+
import e from "./index-generateUtilityClass.js";
|
|
2
|
+
import l from "./index-generateUtilityClasses.js";
|
|
3
3
|
function t(r) {
|
|
4
|
-
return
|
|
4
|
+
return e("MuiSlider", r);
|
|
5
5
|
}
|
|
6
|
-
const i =
|
|
6
|
+
const i = l("MuiSlider", ["root", "active", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "disabled", "dragging", "focusVisible", "mark", "markActive", "marked", "markLabel", "markLabelActive", "rail", "sizeSmall", "thumb", "thumbColorPrimary", "thumbColorSecondary", "thumbColorError", "thumbColorSuccess", "thumbColorInfo", "thumbColorWarning", "track", "trackInverted", "trackFalse", "thumbSizeSmall", "valueLabel", "valueLabelOpen", "valueLabelCircle", "valueLabelLabel", "vertical"]);
|
|
7
7
|
export {
|
|
8
8
|
i as default,
|
|
9
9
|
t as getSliderUtilityClass
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import l from "./index-emotion-styled.browser.esm.js";
|
|
2
2
|
import { serializeStyles as i } from "./index-emotion-serialize.esm.js";
|
|
3
3
|
import { css as _, keyframes as S } from "./index-emotion-react.browser.esm.js";
|
|
4
|
-
import { default as g } from "./index-
|
|
5
|
-
import { default as v } from "./index-
|
|
4
|
+
import { default as g } from "./index-GlobalStyles3.js";
|
|
5
|
+
import { default as v } from "./index-StyledEngineProvider.js";
|
|
6
6
|
import { T as A } from "./index-emotion-element-8ce3e063.browser.esm.js";
|
|
7
7
|
function f(e, o) {
|
|
8
8
|
const r = l(e, o);
|
|
@@ -18,8 +18,8 @@ function c(e) {
|
|
|
18
18
|
return s[0] = e, i(s);
|
|
19
19
|
}
|
|
20
20
|
export {
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
g as GlobalStyles,
|
|
22
|
+
v as StyledEngineProvider,
|
|
23
23
|
A as ThemeContext,
|
|
24
24
|
_ as css,
|
|
25
25
|
f as default,
|
package/dist/index-tabClasses.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import e from "./index-
|
|
2
|
-
import r from "./index-
|
|
1
|
+
import e from "./index-generateUtilityClass.js";
|
|
2
|
+
import r from "./index-generateUtilityClasses.js";
|
|
3
3
|
function l(t) {
|
|
4
|
-
return
|
|
4
|
+
return e("MuiTab", t);
|
|
5
5
|
}
|
|
6
|
-
const i =
|
|
6
|
+
const i = r("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrimary", "textColorSecondary", "selected", "disabled", "fullWidth", "wrapped", "iconWrapper"]);
|
|
7
7
|
export {
|
|
8
8
|
i as default,
|
|
9
9
|
l as getTabUtilityClass
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import l from "./index-
|
|
2
|
-
import o from "./index-
|
|
1
|
+
import l from "./index-generateUtilityClass.js";
|
|
2
|
+
import o from "./index-generateUtilityClasses.js";
|
|
3
3
|
function e(t) {
|
|
4
|
-
return
|
|
4
|
+
return l("MuiTabScrollButton", t);
|
|
5
5
|
}
|
|
6
|
-
const i =
|
|
6
|
+
const i = o("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled"]);
|
|
7
7
|
export {
|
|
8
8
|
i as default,
|
|
9
9
|
e as getTabScrollButtonUtilityClass
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import t from "./index-
|
|
2
|
-
import l from "./index-
|
|
1
|
+
import t from "./index-generateUtilityClass.js";
|
|
2
|
+
import l from "./index-generateUtilityClasses.js";
|
|
3
3
|
function i(e) {
|
|
4
|
-
return
|
|
4
|
+
return t("MuiTabs", e);
|
|
5
5
|
}
|
|
6
|
-
const o =
|
|
6
|
+
const o = l("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVertical", "centered", "scroller", "fixed", "scrollableX", "scrollableY", "hideScrollbar", "scrollButtons", "scrollButtonsHideMobile", "indicator"]);
|
|
7
7
|
export {
|
|
8
8
|
o as default,
|
|
9
9
|
i as getTabsUtilityClass
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import e from "./index-
|
|
2
|
-
import s from "./index-
|
|
1
|
+
import e from "./index-generateUtilityClass.js";
|
|
2
|
+
import s from "./index-generateUtilityClasses.js";
|
|
3
3
|
function o(t) {
|
|
4
|
-
return
|
|
4
|
+
return e("MuiToggleButton", t);
|
|
5
5
|
}
|
|
6
|
-
const a =
|
|
6
|
+
const a = s("MuiToggleButton", ["root", "disabled", "selected", "standard", "primary", "secondary", "sizeSmall", "sizeMedium", "sizeLarge", "fullWidth"]);
|
|
7
7
|
export {
|
|
8
8
|
a as default,
|
|
9
9
|
o as getToggleButtonUtilityClass
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import o from "./index-
|
|
2
|
-
import e from "./index-
|
|
1
|
+
import o from "./index-generateUtilityClass.js";
|
|
2
|
+
import e from "./index-generateUtilityClasses.js";
|
|
3
3
|
function u(t) {
|
|
4
|
-
return
|
|
4
|
+
return o("MuiToggleButtonGroup", t);
|
|
5
5
|
}
|
|
6
|
-
const i =
|
|
6
|
+
const i = e("MuiToggleButtonGroup", ["root", "selected", "horizontal", "vertical", "disabled", "grouped", "groupedHorizontal", "groupedVertical", "fullWidth", "firstButton", "lastButton", "middleButton"]);
|
|
7
7
|
export {
|
|
8
8
|
i as default,
|
|
9
9
|
u as getToggleButtonGroupUtilityClass
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import o from "./index-
|
|
2
|
-
import e from "./index-
|
|
1
|
+
import o from "./index-generateUtilityClass.js";
|
|
2
|
+
import e from "./index-generateUtilityClasses.js";
|
|
3
3
|
function l(t) {
|
|
4
|
-
return
|
|
4
|
+
return o("MuiTooltip", t);
|
|
5
5
|
}
|
|
6
|
-
const r =
|
|
6
|
+
const r = e("MuiTooltip", ["popper", "popperInteractive", "popperArrow", "popperClose", "tooltip", "tooltipArrow", "touch", "tooltipPlacementLeft", "tooltipPlacementRight", "tooltipPlacementTop", "tooltipPlacementBottom", "arrow"]);
|
|
7
7
|
export {
|
|
8
8
|
r as default,
|
|
9
9
|
l as getTooltipUtilityClass
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMemo as n } from "react";
|
|
2
|
-
import { valueToPercent as F,
|
|
2
|
+
import { valueToPercent as F, resolveLabels as H, fillClipInset as p } from "./index-utils2.js";
|
|
3
3
|
const j = (h) => {
|
|
4
4
|
const {
|
|
5
5
|
min: d,
|
package/dist/index-utils2.js
CHANGED
|
@@ -1,70 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const r = p(l, {
|
|
20
|
-
baseURL: c,
|
|
21
|
-
hash: d,
|
|
22
|
-
uniquifyIDs: n
|
|
23
|
-
});
|
|
24
|
-
if (s) {
|
|
25
|
-
const e = r.querySelector("desc");
|
|
26
|
-
e != null && e.parentNode && e.parentNode.removeChild(e);
|
|
27
|
-
const t = document.createElementNS("http://www.w3.org/2000/svg", "desc");
|
|
28
|
-
t.innerHTML = s, r.prepend(t);
|
|
29
|
-
}
|
|
30
|
-
if (typeof u < "u") {
|
|
31
|
-
const e = r.querySelector("title");
|
|
32
|
-
if (e != null && e.parentNode && e.parentNode.removeChild(e), u) {
|
|
33
|
-
const t = document.createElementNS("http://www.w3.org/2000/svg", "title");
|
|
34
|
-
t.innerHTML = u, r.prepend(t);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
return r;
|
|
38
|
-
} catch (o) {
|
|
39
|
-
return f(o);
|
|
1
|
+
const d = (e, t, n) => n <= t ? 0 : Math.max(0, Math.min(100, (e - t) / (n - t) * 100)), l = (e) => `calc(var(--benchmark-gauge-marker-inset, 20px) + ${e / 100} * (100% - 2 * var(--benchmark-gauge-marker-inset, 20px)))`, g = (e) => e >= 100 ? "0px" : `calc(${1 - e / 100} * (100% - 2 * var(--benchmark-gauge-marker-inset, 20px)))`, m = (e) => new Intl.NumberFormat("en", {
|
|
2
|
+
notation: "compact",
|
|
3
|
+
maximumSignificantDigits: 3
|
|
4
|
+
}).format(e), o = ["var(--e500)", "var(--a2900)", "var(--s400)"], h = ({
|
|
5
|
+
markerColor: e,
|
|
6
|
+
rankIndex: t,
|
|
7
|
+
rankCount: n,
|
|
8
|
+
colorByRank: c,
|
|
9
|
+
rankColors: r
|
|
10
|
+
}) => {
|
|
11
|
+
const u = "var(--n400)";
|
|
12
|
+
if (e) return e;
|
|
13
|
+
if (c) {
|
|
14
|
+
const a = r != null && r.length ? r : o;
|
|
15
|
+
if (!a.length)
|
|
16
|
+
return u;
|
|
17
|
+
const i = Math.round(t / Math.max(n - 1, 1) * (a.length - 1));
|
|
18
|
+
return a[Math.max(0, Math.min(i, a.length - 1))] ?? u;
|
|
40
19
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}), i;
|
|
65
|
-
}
|
|
20
|
+
return u;
|
|
21
|
+
}, v = ({
|
|
22
|
+
showLabels: e,
|
|
23
|
+
startLabel: t,
|
|
24
|
+
endLabel: n,
|
|
25
|
+
min: c,
|
|
26
|
+
max: r,
|
|
27
|
+
compactLabels: u = !1
|
|
28
|
+
}) => {
|
|
29
|
+
if (e === !1)
|
|
30
|
+
return {
|
|
31
|
+
startLabel: void 0,
|
|
32
|
+
endLabel: void 0
|
|
33
|
+
};
|
|
34
|
+
const a = u ? m : String, i = (s, f) => {
|
|
35
|
+
if (s !== null)
|
|
36
|
+
return s !== void 0 ? s : e ? a(f) : void 0;
|
|
37
|
+
};
|
|
38
|
+
return {
|
|
39
|
+
startLabel: i(t, c),
|
|
40
|
+
endLabel: i(n, r)
|
|
41
|
+
};
|
|
42
|
+
};
|
|
66
43
|
export {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
44
|
+
o as DEFAULT_RANK_COLORS,
|
|
45
|
+
g as fillClipInset,
|
|
46
|
+
l as markerPosition,
|
|
47
|
+
v as resolveLabels,
|
|
48
|
+
h as resolveMarkerColor,
|
|
49
|
+
d as valueToPercent
|
|
70
50
|
};
|