@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.
Files changed (191) hide show
  1. package/dist/index-Accordion2.js +5 -5
  2. package/dist/index-AccordionDetails.js +5 -5
  3. package/dist/index-AccordionSummary.js +2 -2
  4. package/dist/index-AppBar2.js +1 -1
  5. package/dist/index-Autocomplete2.js +3 -3
  6. package/dist/index-Backdrop.js +1 -1
  7. package/dist/index-BasePopper.js +2 -2
  8. package/dist/index-BenchmarkGauge.js +1 -1
  9. package/dist/index-BenchmarkGaugeMarker.js +1 -1
  10. package/dist/index-Box.js +1 -1
  11. package/dist/index-Button2.js +1 -1
  12. package/dist/index-ButtonBase.js +1 -1
  13. package/dist/index-CSSTransition.js +1 -1
  14. package/dist/index-CalendarOrClockPicker.js +1 -1
  15. package/dist/index-CalendarPicker.js +2 -2
  16. package/dist/index-Chip.js +1 -1
  17. package/dist/index-ClickAwayListener.js +1 -1
  18. package/dist/index-Clock3.js +1 -1
  19. package/dist/index-ClockNumber.js +4 -4
  20. package/dist/index-ClockPicker.js +2 -2
  21. package/dist/index-ClockPointer.js +1 -1
  22. package/dist/index-Collapse2.js +1 -1
  23. package/dist/index-ColorPicker.js +1 -1
  24. package/dist/index-CreditCard.js +1 -1
  25. package/dist/index-Cropper.js +1 -1
  26. package/dist/index-DateInput.js +4 -4
  27. package/dist/index-DatePicker2.js +1 -1
  28. package/dist/index-DatePickerToolbar.js +1 -1
  29. package/dist/index-DayCell.js +2 -2
  30. package/dist/index-DayPicker.js +1 -1
  31. package/dist/index-DefaultPropsProvider.js +1 -1
  32. package/dist/index-DefaultPropsProvider2.js +1 -1
  33. package/dist/index-DesktopDatePicker.js +1 -1
  34. package/dist/index-Dialog.js +1 -1
  35. package/dist/index-DialogActions.js +1 -1
  36. package/dist/index-DialogContent.js +1 -1
  37. package/dist/index-Drawer2.js +1 -1
  38. package/dist/index-Fade.js +2 -2
  39. package/dist/index-FilledInput.js +1 -1
  40. package/dist/index-FocusTrap.js +1 -1
  41. package/dist/index-FormControl2.js +1 -1
  42. package/dist/index-FormHelperText.js +1 -1
  43. package/dist/index-FormLabel.js +1 -1
  44. package/dist/index-GlobalStyles.js +1 -1
  45. package/dist/index-GlobalStyles2.js +1 -1
  46. package/dist/index-GlobalStyles3.js +1 -1
  47. package/dist/index-Grid.js +1 -1
  48. package/dist/index-Grow.js +2 -2
  49. package/dist/index-IconButton2.js +1 -1
  50. package/dist/index-Input2.js +1 -1
  51. package/dist/index-InputAdornment.js +1 -1
  52. package/dist/index-InputBase2.js +1 -1
  53. package/dist/index-InputLabel.js +5 -5
  54. package/dist/index-InputRangeField.js +1 -1
  55. package/dist/index-LinearProgress.js +1 -1
  56. package/dist/index-List2.js +1 -1
  57. package/dist/index-ListSubheader.js +1 -1
  58. package/dist/index-LocalizationProvider.js +1 -1
  59. package/dist/index-Menu2.js +1 -1
  60. package/dist/index-MenuItem2.js +1 -1
  61. package/dist/index-MenuList.js +1 -1
  62. package/dist/index-MobileDatePicker.js +1 -1
  63. package/dist/index-Modal2.js +1 -1
  64. package/dist/index-ModalContext.js +3 -3
  65. package/dist/index-Month.js +3 -3
  66. package/dist/index-MonthPicker.js +7 -7
  67. package/dist/index-NativeSelectInput.js +1 -1
  68. package/dist/index-NotchedOutline.js +1 -1
  69. package/dist/index-OutlinedInput.js +1 -1
  70. package/dist/index-Paper.js +1 -1
  71. package/dist/index-Parser2.js +3 -2
  72. package/dist/index-PickersArrowSwitcher.js +1 -1
  73. package/dist/index-PickersCalendarHeader.js +1 -1
  74. package/dist/index-PickersDay.js +2 -2
  75. package/dist/index-PickersFadeTransitionGroup.js +6 -6
  76. package/dist/index-PickersMonth.js +4 -4
  77. package/dist/index-PickersPopper.js +1 -1
  78. package/dist/index-PickersSlideTransition.js +6 -6
  79. package/dist/index-PickersToolbar.js +1 -1
  80. package/dist/index-PickersYear.js +1 -1
  81. package/dist/index-Popover2.js +7 -7
  82. package/dist/index-Popper.js +1 -1
  83. package/dist/index-Portal.js +1 -1
  84. package/dist/index-Profile.js +0 -3
  85. package/dist/index-PropTypes.js +1 -1
  86. package/dist/index-QuoteContainer.js +5 -6
  87. package/dist/index-Ripple.js +1 -1
  88. package/dist/index-RtlProvider.js +1 -1
  89. package/dist/index-ScrollbarSize.js +1 -1
  90. package/dist/index-Select2.js +6 -6
  91. package/dist/index-SelectInput2.js +1 -1
  92. package/dist/index-Skeleton2.js +1 -1
  93. package/dist/index-Slide.js +6 -6
  94. package/dist/index-Slider2.js +2 -2
  95. package/dist/index-SliderValueLabel.js +1 -1
  96. package/dist/index-Snackbar2.js +7 -7
  97. package/dist/index-SnackbarContent.js +1 -1
  98. package/dist/index-StyledEngineProvider.js +1 -1
  99. package/dist/index-StyledSVG2.js +2 -2
  100. package/dist/index-SvgIcon.js +1 -1
  101. package/dist/index-Switch.js +17 -22
  102. package/dist/index-Tab2.js +1 -1
  103. package/dist/index-TabScrollButton.js +1 -1
  104. package/dist/index-Table.js +3 -3
  105. package/dist/index-Tabs2.js +5 -5
  106. package/dist/index-TextField.js +1 -1
  107. package/dist/index-TextareaAutosize.js +1 -1
  108. package/dist/index-ToggleButton2.js +1 -1
  109. package/dist/index-ToggleButtonGroup2.js +1 -1
  110. package/dist/index-Toolbar2.js +1 -1
  111. package/dist/index-Tooltip.js +3 -3
  112. package/dist/index-TouchRipple.js +1 -1
  113. package/dist/index-Transition.js +1 -1
  114. package/dist/index-TransitionGroup.js +1 -1
  115. package/dist/index-Typography.js +1 -1
  116. package/dist/index-YearPicker.js +7 -7
  117. package/dist/index-_virtual16.js +5 -3
  118. package/dist/index-_virtual17.js +3 -5
  119. package/dist/index-_virtual66.js +2 -2
  120. package/dist/index-_virtual67.js +2 -4
  121. package/dist/index-_virtual68.js +4 -2
  122. package/dist/index-_virtual69.js +2 -4
  123. package/dist/index-_virtual70.js +2 -2
  124. package/dist/index-_virtual71.js +1 -1
  125. package/dist/index-_virtual72.js +2 -4
  126. package/dist/index-_virtual73.js +1 -1
  127. package/dist/index-_virtual74.js +4 -2
  128. package/dist/index-_virtual75.js +4 -2
  129. package/dist/index-_virtual76.js +2 -2
  130. package/dist/index-accessibility.js +1 -1
  131. package/dist/index-accordionClasses.js +4 -4
  132. package/dist/index-accordionSummaryClasses.js +4 -4
  133. package/dist/index-autocompleteClasses.js +4 -4
  134. package/dist/index-buttonBaseClasses.js +4 -4
  135. package/dist/index-buttonClasses.js +4 -4
  136. package/dist/index-chipClasses.js +4 -4
  137. package/dist/index-cjs.js +1 -1
  138. package/dist/index-clockNumberClasses.js +4 -4
  139. package/dist/index-elementAcceptingRef.js +1 -1
  140. package/dist/index-elementTypeAcceptingRef.js +1 -1
  141. package/dist/index-emotion-is-prop-valid.esm.js +1 -1
  142. package/dist/index-esm.js +1 -1
  143. package/dist/index-esm4.js +293 -128
  144. package/dist/index-esm5.js +128 -293
  145. package/dist/index-esm7.js +0 -1
  146. package/dist/index-formHelperTextClasses.js +4 -4
  147. package/dist/index-generate-error-boundary-data.js +13 -11
  148. package/dist/index-helpers2.js +43 -393
  149. package/dist/index-helpers3.js +393 -43
  150. package/dist/index-iconButtonClasses.js +4 -4
  151. package/dist/index-inputAdornmentClasses.js +4 -4
  152. package/dist/index-lib5.js +1 -1
  153. package/dist/index-menuItemClasses.js +4 -4
  154. package/dist/index-nativeSelectClasses.js +4 -4
  155. package/dist/index-pickersMonthClasses.js +4 -4
  156. package/dist/index-pickersToolbarClasses.js +4 -4
  157. package/dist/index-pickersYearClasses.js +4 -4
  158. package/dist/index-react-spring_animated.modern.js +3 -3
  159. package/dist/index-react-spring_core.modern.js +445 -422
  160. package/dist/index-react-spring_web.modern.js +70 -69
  161. package/dist/index-refType.js +1 -1
  162. package/dist/index-responsivePropType.js +1 -1
  163. package/dist/index-sanitize-html.js +16 -17
  164. package/dist/index-selectClasses.js +4 -4
  165. package/dist/index-sliderClasses.js +4 -4
  166. package/dist/index-styled-engine.js +4 -4
  167. package/dist/index-tabClasses.js +4 -4
  168. package/dist/index-tabScrollButtonClasses.js +4 -4
  169. package/dist/index-tabsClasses.js +4 -4
  170. package/dist/index-toggleButtonClasses.js +4 -4
  171. package/dist/index-toggleButtonGroupClasses.js +4 -4
  172. package/dist/index-tooltipClasses.js +4 -4
  173. package/dist/index-use-benchmark-gauge-render-state.js +1 -1
  174. package/dist/index-utils2.js +47 -67
  175. package/dist/index-utils3.js +67 -47
  176. package/dist/index.js +426 -426
  177. package/dist/types/core/CardMotion/CardMotion.config.d.ts +87 -55
  178. package/dist/types/core/Switch/stories/SwitchChecked.story.d.ts +2 -0
  179. package/dist/types/core/Switch/stories/SwitchDefault.story.d.ts +2 -0
  180. package/dist/types/core/Switch/stories/SwitchDisabled.story.d.ts +2 -0
  181. package/dist/types/core/Switch/stories/SwitchLabelLeft.story.d.ts +2 -0
  182. package/dist/types/core/Switch/stories/SwitchLoading.story.d.ts +2 -0
  183. package/dist/types/core/Switch/stories/SwitchSizes.story.d.ts +2 -0
  184. package/dist/types/core/Switch/stories/_Switch.default.d.ts +32 -0
  185. package/dist/vanguard-asset-analysis.json +1 -1
  186. package/dist/vanguard.css +1 -1
  187. package/dist-wordpress/index.js +9681 -9655
  188. package/dist-wordpress/vanguard.css +1 -1
  189. package/package.json +44 -42
  190. package/scripts/verify-storybook-tsgo.js +0 -0
  191. package/scripts/verify-tsgo.js +0 -0
@@ -1,40 +1,41 @@
1
- import { BailSignal as X, Controller as Y, FrameValue as tt, Interpolation as et, SpringContext as rt, SpringRef as ot, SpringValue as st, config as at, inferTo as it, to as lt, useSpring as nt, useSprings as ut, useTransition as dt } from "./index-react-spring_core.modern.js";
2
- import { unstable_batchedUpdates as w } from "react-dom";
3
- import { Globals as C, colors as A, createStringInterpolator as F, eachProp as I, is as h, toArray as k, FluidValue as T, each as f, getFluidValue as x, hasFluidValue as y, addFluidObserver as j, removeFluidObserver as N, callFluidObservers as P } from "./index-react-spring_shared.modern.js";
4
- import { createInterpolator as mt, easings as ft, useIsomorphicLayoutEffect as ct } from "./index-react-spring_shared.modern.js";
5
- import { createHost as V, AnimatedObject as _ } from "./index-react-spring_animated.modern.js";
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 E(t, e) {
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 G(t, e) {
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: a,
17
- children: n,
18
- scrollTop: i,
16
+ style: i,
17
+ children: u,
18
+ scrollTop: a,
19
19
  scrollLeft: s,
20
- viewBox: u,
20
+ viewBox: n,
21
21
  ...d
22
- } = e, m = Object.values(d), b = Object.keys(d).map(
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
- n !== void 0 && (t.textContent = n);
30
- for (const o in a)
31
- if (a.hasOwnProperty(o)) {
32
- const p = E(o, a[o]);
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
- b.forEach((o, p) => {
36
- t.setAttribute(o, m[p]);
37
- }), l !== void 0 && (t.className = l), i !== void 0 && (t.scrollTop = i), s !== void 0 && (t.scrollLeft = s), u !== void 0 && t.setAttribute("viewBox", u);
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
- }, R = (t, e) => t + e.charAt(0).toUpperCase() + e.substring(1), $ = ["Webkit", "Ms", "Moz", "O"];
83
- c = Object.keys(c).reduce((t, e) => ($.forEach((r) => t[R(r, e)] = t[e]), t), c);
84
- var L = /^(matrix|translate|scale|rotate|skew)/, U = /^(translate)/, W = /^(rotate|skew)/, v = (t, e) => h.num(t) && t !== 0 ? t + e : t, g = (t, e) => h.arr(t) ? t.every((r) => g(r, e)) : h.num(t) ? t === e : parseFloat(t) === e, B = class extends _ {
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 a = [], n = [];
87
- (t || e || r) && (a.push([t || 0, e || 0, r || 0]), n.push((i) => [
88
- `translate3d(${i.map((s) => v(s, "px")).join(",")})`,
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
- g(i, 0)
91
- ])), I(l, (i, s) => {
91
+ b(a, 0)
92
+ ])), P(l, (a, s) => {
92
93
  if (s === "transform")
93
- a.push([i || ""]), n.push((u) => [u, u === ""]);
94
+ i.push([a || ""]), u.push((n) => [n, n === ""]);
94
95
  else if (L.test(s)) {
95
- if (delete l[s], h.und(i)) return;
96
- const u = U.test(s) ? "px" : W.test(s) ? "deg" : "";
97
- a.push(k(i)), n.push(
98
- s === "rotate3d" ? ([d, m, b, o]) => [
99
- `rotate3d(${d},${m},${b},${v(o, u)})`,
100
- g(o, 0)
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, u)).join(",")})`,
103
- g(d, s.startsWith("scale") ? 1 : 0)
103
+ `${s}(${d.map((m) => v(m, n)).join(",")})`,
104
+ b(d, s.startsWith("scale") ? 1 : 0)
104
105
  ]
105
106
  );
106
107
  }
107
- }), a.length && (l.transform = new M(a, n)), super(l);
108
+ }), i.length && (l.transform = new q(i, u)), super(l);
108
109
  }
109
- }, M = class extends T {
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 a = x(r[0]), [n, i] = this.transforms[l](
120
- h.arr(a) ? a : r.map(x)
120
+ const i = y(r[0]), [u, a] = this.transforms[l](
121
+ h.arr(i) ? i : r.map(y)
121
122
  );
122
- t += " " + n, e = e && i;
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) => y(r) && j(r, this)
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) => y(r) && N(r, this)
142
+ (r) => w(r) && j(r, this)
142
143
  )
143
144
  );
144
145
  }
145
146
  eventObserved(t) {
146
- t.type == "change" && (this._value = null), P(this, t);
147
+ t.type == "change" && (this._value = null), V(this, t);
147
148
  }
148
- }, q = [
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: w,
286
- createStringInterpolator: F,
287
- colors: A
286
+ batchedUpdates: A,
287
+ createStringInterpolator: I,
288
+ colors: F
288
289
  });
289
- var z = V(q, {
290
- applyAnimatedValues: G,
291
- createAnimatedStyle: (t) => new B(t),
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
- }), Z = z.animated;
295
+ }), J = D.animated;
295
296
  export {
296
- X as BailSignal,
297
- Y as Controller,
298
- tt as FrameValue,
297
+ Y as BailSignal,
298
+ tt as Controller,
299
+ et as FrameValue,
299
300
  C as Globals,
300
- et as Interpolation,
301
- rt as SpringContext,
302
- ot as SpringRef,
303
- st as SpringValue,
304
- Z as a,
305
- Z as animated,
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
- mt as createInterpolator,
308
- ft as easings,
309
- it as inferTo,
310
- lt as to,
311
- ct as useIsomorphicLayoutEffect,
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
- ut as useSprings,
314
- dt as useTransition
314
+ dt as useSprings,
315
+ pt as useTransition
315
316
  };
@@ -1,4 +1,4 @@
1
- import e from "./index-_virtual17.js";
1
+ import e from "./index-_virtual16.js";
2
2
  const p = e.oneOfType([e.func, e.object]);
3
3
  export {
4
4
  p as default
@@ -1,4 +1,4 @@
1
- import e from "./index-_virtual17.js";
1
+ import e from "./index-_virtual16.js";
2
2
  const r = process.env.NODE_ENV !== "production" ? e.oneOfType([e.number, e.string, e.object, e.array]) : {};
3
3
  export {
4
4
  r as default
@@ -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 { render as p } from "./index-esm2.js";
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 a = b((t, o, l, s) => {
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 i = r[t], f = () => d(t, {
18
+ const a = r[t], f = () => d(t, {
19
19
  ...o,
20
20
  children: s,
21
21
  key: l
22
22
  });
23
- return i === null ? f() : typeof i > "u" ? c ? f() : null : d(i, {
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 a(o, l, Math.random(), s);
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, a) {
67
+ function k(r, e, c, i) {
68
68
  if (e.toLowerCase().startsWith("on") || D.has(e) && _.test(c)) return !1;
69
- const n = a[r];
69
+ const n = i[r];
70
70
  return n ? n.includes(e) : !1;
71
71
  }
72
- function m(r, e, c, a) {
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, a);
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 [i, f] of Object.entries(t.attribs))
90
- k(o, i, f, c) && (s[i] = f);
91
- if (a && "class" in s) {
92
- const i = s.class.split(/\s+/).filter((f) => f && a.has(f)).join(" ");
93
- i ? s.class = i : delete s.class;
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, a = (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, a, n), p(t);
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-generateUtilityClasses.js";
2
- import i from "./index-generateUtilityClass.js";
1
+ import t from "./index-generateUtilityClass.js";
2
+ import i from "./index-generateUtilityClasses.js";
3
3
  function s(e) {
4
- return i("MuiSelect", e);
4
+ return t("MuiSelect", e);
5
5
  }
6
- const o = t("MuiSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "focused", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]);
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-generateUtilityClasses.js";
2
- import l from "./index-generateUtilityClass.js";
1
+ import e from "./index-generateUtilityClass.js";
2
+ import l from "./index-generateUtilityClasses.js";
3
3
  function t(r) {
4
- return l("MuiSlider", r);
4
+ return e("MuiSlider", r);
5
5
  }
6
- const i = e("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"]);
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-StyledEngineProvider.js";
5
- import { default as v } from "./index-GlobalStyles3.js";
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
- v as GlobalStyles,
22
- g as StyledEngineProvider,
21
+ g as GlobalStyles,
22
+ v as StyledEngineProvider,
23
23
  A as ThemeContext,
24
24
  _ as css,
25
25
  f as default,
@@ -1,9 +1,9 @@
1
- import e from "./index-generateUtilityClasses.js";
2
- import r from "./index-generateUtilityClass.js";
1
+ import e from "./index-generateUtilityClass.js";
2
+ import r from "./index-generateUtilityClasses.js";
3
3
  function l(t) {
4
- return r("MuiTab", t);
4
+ return e("MuiTab", t);
5
5
  }
6
- const i = e("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrimary", "textColorSecondary", "selected", "disabled", "fullWidth", "wrapped", "iconWrapper"]);
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-generateUtilityClasses.js";
2
- import o from "./index-generateUtilityClass.js";
1
+ import l from "./index-generateUtilityClass.js";
2
+ import o from "./index-generateUtilityClasses.js";
3
3
  function e(t) {
4
- return o("MuiTabScrollButton", t);
4
+ return l("MuiTabScrollButton", t);
5
5
  }
6
- const i = l("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled"]);
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-generateUtilityClasses.js";
2
- import l from "./index-generateUtilityClass.js";
1
+ import t from "./index-generateUtilityClass.js";
2
+ import l from "./index-generateUtilityClasses.js";
3
3
  function i(e) {
4
- return l("MuiTabs", e);
4
+ return t("MuiTabs", e);
5
5
  }
6
- const o = t("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVertical", "centered", "scroller", "fixed", "scrollableX", "scrollableY", "hideScrollbar", "scrollButtons", "scrollButtonsHideMobile", "indicator"]);
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-generateUtilityClasses.js";
2
- import s from "./index-generateUtilityClass.js";
1
+ import e from "./index-generateUtilityClass.js";
2
+ import s from "./index-generateUtilityClasses.js";
3
3
  function o(t) {
4
- return s("MuiToggleButton", t);
4
+ return e("MuiToggleButton", t);
5
5
  }
6
- const a = e("MuiToggleButton", ["root", "disabled", "selected", "standard", "primary", "secondary", "sizeSmall", "sizeMedium", "sizeLarge", "fullWidth"]);
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-generateUtilityClasses.js";
2
- import e from "./index-generateUtilityClass.js";
1
+ import o from "./index-generateUtilityClass.js";
2
+ import e from "./index-generateUtilityClasses.js";
3
3
  function u(t) {
4
- return e("MuiToggleButtonGroup", t);
4
+ return o("MuiToggleButtonGroup", t);
5
5
  }
6
- const i = o("MuiToggleButtonGroup", ["root", "selected", "horizontal", "vertical", "disabled", "grouped", "groupedHorizontal", "groupedVertical", "fullWidth", "firstButton", "lastButton", "middleButton"]);
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-generateUtilityClasses.js";
2
- import e from "./index-generateUtilityClass.js";
1
+ import o from "./index-generateUtilityClass.js";
2
+ import e from "./index-generateUtilityClasses.js";
3
3
  function l(t) {
4
- return e("MuiTooltip", t);
4
+ return o("MuiTooltip", t);
5
5
  }
6
- const r = o("MuiTooltip", ["popper", "popperInteractive", "popperArrow", "popperClose", "tooltip", "tooltipArrow", "touch", "tooltipPlacementLeft", "tooltipPlacementRight", "tooltipPlacementTop", "tooltipPlacementBottom", "arrow"]);
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, fillClipInset as p, resolveLabels as H } from "./index-utils3.js";
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,
@@ -1,70 +1,50 @@
1
- import v from "./index-esm4.js";
2
- function w(i) {
3
- const {
4
- baseURL: c,
5
- content: a,
6
- description: s,
7
- handleError: f,
8
- hash: d,
9
- preProcessor: h,
10
- title: u,
11
- uniquifyIDs: n = !1
12
- } = i;
13
- try {
14
- const o = b(a, h), l = v(o, {
15
- nodeOnly: !0
16
- });
17
- if (!l || !(l instanceof SVGSVGElement))
18
- throw new Error("Could not convert the src to a DOM Node");
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
- function b(i, c) {
43
- return c ? c(i) : i;
44
- }
45
- function p(i, c) {
46
- const {
47
- baseURL: a = "",
48
- hash: s,
49
- uniquifyIDs: f
50
- } = c, d = ["id", "href", "xlink:href", "xlink:role", "xlink:arcrole"], h = ["href", "xlink:href"], u = (n, o) => h.includes(n) && (o ? !o.includes("#") : !1);
51
- return f && [...i.children].forEach((n) => {
52
- var o;
53
- if ((o = n.attributes) != null && o.length) {
54
- const l = Object.values(n.attributes).map((r) => {
55
- const e = r, t = /url\((.*?)\)/.exec(r.value);
56
- return t != null && t[1] && (e.value = r.value.replace(t[0], `url(${a}${t[1]}__${s})`)), e;
57
- });
58
- d.forEach((r) => {
59
- const e = l.find((t) => t.name === r);
60
- e && !u(r, e.value) && (e.value = `${e.value}__${s}`);
61
- });
62
- }
63
- return n.children.length ? p(n, c) : n;
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
- w as getNode,
68
- b as processSVG,
69
- p as updateSVGAttributes
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
  };