@rankingcoach/vanguard 1.10.0 → 1.11.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 (135) hide show
  1. package/dist/index-Accordion2.js +2 -2
  2. package/dist/index-AccordionDetails.js +1 -1
  3. package/dist/index-AccordionSummary.js +1 -1
  4. package/dist/index-AppBar2.js +1 -1
  5. package/dist/index-Autocomplete2.js +1 -1
  6. package/dist/index-Backdrop.js +1 -1
  7. package/dist/index-BasePopper.js +1 -1
  8. package/dist/index-Box.js +1 -1
  9. package/dist/index-Button2.js +1 -1
  10. package/dist/index-ButtonBase.js +1 -1
  11. package/dist/index-CSSTransition.js +1 -1
  12. package/dist/index-CalendarPicker.js +2 -2
  13. package/dist/index-Chip.js +1 -1
  14. package/dist/index-ClickAwayListener.js +1 -1
  15. package/dist/index-ClockPicker.js +1 -1
  16. package/dist/index-Collapse2.js +1 -1
  17. package/dist/index-DateInput.js +4 -4
  18. package/dist/index-DatePicker2.js +1 -1
  19. package/dist/index-DayCell.js +2 -2
  20. package/dist/index-DefaultPropsProvider.js +1 -1
  21. package/dist/index-DefaultPropsProvider2.js +1 -1
  22. package/dist/index-DesktopDatePicker.js +1 -1
  23. package/dist/index-Dialog.js +1 -1
  24. package/dist/index-DialogActions.js +1 -1
  25. package/dist/index-DialogContent.js +1 -1
  26. package/dist/index-Drawer2.js +1 -1
  27. package/dist/index-Fade.js +1 -1
  28. package/dist/index-FilledInput.js +1 -1
  29. package/dist/index-FocusTrap.js +1 -1
  30. package/dist/index-FormControl2.js +1 -1
  31. package/dist/index-FormHelperText.js +1 -1
  32. package/dist/index-FormLabel.js +1 -1
  33. package/dist/index-GlobalStyles.js +1 -1
  34. package/dist/index-GlobalStyles2.js +1 -1
  35. package/dist/index-GlobalStyles3.js +1 -1
  36. package/dist/index-Grid.js +1 -1
  37. package/dist/index-Grow.js +1 -1
  38. package/dist/index-IconButton2.js +1 -1
  39. package/dist/index-Input2.js +1 -1
  40. package/dist/index-InputAdornment.js +1 -1
  41. package/dist/index-InputBase2.js +1 -1
  42. package/dist/index-InputLabel.js +1 -1
  43. package/dist/index-InputRangeField.js +1 -1
  44. package/dist/index-LinearProgress.js +1 -1
  45. package/dist/index-List2.js +1 -1
  46. package/dist/index-ListSubheader.js +1 -1
  47. package/dist/index-LocalizationProvider.js +1 -1
  48. package/dist/index-Menu2.js +1 -1
  49. package/dist/index-MenuItem2.js +1 -1
  50. package/dist/index-MenuList.js +1 -1
  51. package/dist/index-MobileDatePicker.js +1 -1
  52. package/dist/index-Modal2.js +1 -1
  53. package/dist/index-Month.js +3 -3
  54. package/dist/index-MonthPicker.js +2 -2
  55. package/dist/index-NativeSelectInput.js +1 -1
  56. package/dist/index-NotchedOutline.js +1 -1
  57. package/dist/index-OutlinedInput.js +1 -1
  58. package/dist/index-Paper.js +1 -1
  59. package/dist/index-Parser2.js +3 -2
  60. package/dist/index-PickersDay.js +1 -1
  61. package/dist/index-Popover2.js +1 -1
  62. package/dist/index-Popper.js +1 -1
  63. package/dist/index-Portal.js +1 -1
  64. package/dist/index-PropTypes.js +1 -1
  65. package/dist/index-Ripple.js +1 -1
  66. package/dist/index-RtlProvider.js +1 -1
  67. package/dist/index-ScrollbarSize.js +1 -1
  68. package/dist/index-Select2.js +1 -1
  69. package/dist/index-SelectInput2.js +2 -2
  70. package/dist/index-Skeleton2.js +1 -1
  71. package/dist/index-Slide.js +1 -1
  72. package/dist/index-Slider2.js +1 -1
  73. package/dist/index-SliderValueLabel.js +1 -1
  74. package/dist/index-Snackbar2.js +1 -1
  75. package/dist/index-SnackbarContent.js +1 -1
  76. package/dist/index-StyledEngineProvider.js +1 -1
  77. package/dist/index-SvgIcon.js +1 -1
  78. package/dist/index-Switch.js +17 -22
  79. package/dist/index-Tab2.js +1 -1
  80. package/dist/index-TabScrollButton.js +1 -1
  81. package/dist/index-Tabs2.js +1 -1
  82. package/dist/index-TextField.js +1 -1
  83. package/dist/index-TextareaAutosize.js +1 -1
  84. package/dist/index-ToggleButton2.js +1 -1
  85. package/dist/index-ToggleButtonGroup2.js +1 -1
  86. package/dist/index-Toolbar2.js +1 -1
  87. package/dist/index-Tooltip.js +2 -2
  88. package/dist/index-TouchRipple.js +1 -1
  89. package/dist/index-Transition.js +1 -1
  90. package/dist/index-TransitionGroup.js +1 -1
  91. package/dist/index-Typography.js +1 -1
  92. package/dist/index-YearPicker.js +2 -2
  93. package/dist/index-_virtual16.js +5 -3
  94. package/dist/index-_virtual17.js +3 -5
  95. package/dist/index-_virtual19.js +2 -5
  96. package/dist/index-_virtual20.js +5 -2
  97. package/dist/index-_virtual66.js +2 -2
  98. package/dist/index-_virtual67.js +2 -4
  99. package/dist/index-_virtual68.js +4 -2
  100. package/dist/index-_virtual69.js +2 -4
  101. package/dist/index-_virtual70.js +2 -2
  102. package/dist/index-_virtual71.js +1 -1
  103. package/dist/index-_virtual72.js +2 -4
  104. package/dist/index-_virtual73.js +1 -1
  105. package/dist/index-_virtual74.js +4 -2
  106. package/dist/index-_virtual75.js +4 -2
  107. package/dist/index-_virtual76.js +2 -2
  108. package/dist/index-accessibility.js +1 -1
  109. package/dist/index-cjs.js +1 -1
  110. package/dist/index-dist4.js +1 -1
  111. package/dist/index-elementAcceptingRef.js +1 -1
  112. package/dist/index-elementTypeAcceptingRef.js +1 -1
  113. package/dist/index-generate-error-boundary-data.js +13 -11
  114. package/dist/index-helpers3.js +1 -1
  115. package/dist/index-http.store.js +1 -1
  116. package/dist/index-lib5.js +1 -1
  117. package/dist/index-refType.js +1 -1
  118. package/dist/index-responsivePropType.js +1 -1
  119. package/dist/index-useAutocomplete.js +1 -1
  120. package/dist/index-useControlled.js +26 -2
  121. package/dist/index-useControlled2.js +2 -26
  122. package/dist/index-useSlider.js +1 -1
  123. package/dist/index-useViews.js +1 -1
  124. package/dist/types/core/Switch/stories/SwitchChecked.story.d.ts +2 -0
  125. package/dist/types/core/Switch/stories/SwitchDefault.story.d.ts +2 -0
  126. package/dist/types/core/Switch/stories/SwitchDisabled.story.d.ts +2 -0
  127. package/dist/types/core/Switch/stories/SwitchLabelLeft.story.d.ts +2 -0
  128. package/dist/types/core/Switch/stories/SwitchLoading.story.d.ts +2 -0
  129. package/dist/types/core/Switch/stories/SwitchSizes.story.d.ts +2 -0
  130. package/dist/types/core/Switch/stories/_Switch.default.d.ts +32 -0
  131. package/dist/vanguard-asset-analysis.json +1 -1
  132. package/dist/vanguard.css +1 -1
  133. package/dist-wordpress/index.js +1583 -1581
  134. package/dist-wordpress/vanguard.css +1 -1
  135. package/package.json +8 -4
@@ -1,4 +1,4 @@
1
- import c from "./index-_virtual17.js";
1
+ import c from "./index-_virtual16.js";
2
2
  import l from "./index-chainPropTypes.js";
3
3
  function f(n) {
4
4
  const {
@@ -1,29 +1,31 @@
1
- import { logStore as l } from "./index-LogStore.js";
2
- const f = (a, e, r, o, s) => {
3
- const g = (d) => {
1
+ import { logStore as f } from "./index-LogStore.js";
2
+ const S = (s, e, g, i, l) => {
3
+ var a;
4
+ const c = (d) => {
4
5
  const t = {
5
6
  ...d.getState()
6
7
  };
7
8
  t && t.Settings && delete t.Settings;
8
- let i = 2e3;
9
+ let o = 2e3;
9
10
  for (const n in t)
10
- i - JSON.stringify(t[n]).length > 0 ? i -= JSON.stringify(t[n]).length : delete t[n];
11
+ o - JSON.stringify(t[n]).length > 0 ? o -= JSON.stringify(t[n]).length : delete t[n];
11
12
  return t;
12
13
  };
13
- return l.putLog({
14
+ return f.putLog({
14
15
  data: [{
15
- info: r,
16
+ info: g,
16
17
  error: e == null ? void 0 : e.name,
18
+ message: (a = e == null ? void 0 : e.message) == null ? void 0 : a.slice(0, 100),
17
19
  href: window.location.href,
18
20
  host: window.location.host,
19
21
  pathname: window.location.pathname,
20
- state: o ? g(o) : void 0,
21
- source: s
22
+ state: i ? c(i) : void 0,
23
+ source: l
22
24
  }]
23
25
  }, {
24
- type: a
26
+ type: s
25
27
  });
26
28
  };
27
29
  export {
28
- f as generateErrorBoundaryData
30
+ S as generateErrorBoundaryData
29
31
  };
@@ -1,4 +1,4 @@
1
- import { e as u } from "./index-_virtual16.js";
1
+ import { e as u } from "./index-_virtual17.js";
2
2
  var d = {
3
3
  FAILED: "failed",
4
4
  LOADED: "loaded",
@@ -1,5 +1,5 @@
1
1
  import { PublicWidgetData as D } from "./index-public-widgets-data.store.js";
2
- import H from "./index-_virtual19.js";
2
+ import H from "./index-_virtual20.js";
3
3
  import { BaseStore as T } from "./index-base.store.js";
4
4
  import { parseParams as l } from "./index-parse-params.js";
5
5
  import { stores as q } from "./index-stores.js";
@@ -1,4 +1,4 @@
1
- import { __exports as r } from "./index-_virtual76.js";
1
+ import { __exports as r } from "./index-_virtual65.js";
2
2
  import { __require as a } from "./index-dom.js";
3
3
  import { __require as o } from "./index-dom-parser.js";
4
4
  var i;
@@ -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,7 +1,7 @@
1
1
  import Ce from "./index-extends.js";
2
2
  import * as p from "react";
3
3
  import it from "./index-useId2.js";
4
- import ce from "./index-useControlled2.js";
4
+ import ce from "./index-useControlled.js";
5
5
  import st from "./index-usePreviousProps.js";
6
6
  import Z from "./index-useEventCallback2.js";
7
7
  import lt from "./index-setRef.js";
@@ -1,4 +1,28 @@
1
- import e from "./index-useControlled2.js";
1
+ import * as e from "react";
2
+ function f({
3
+ controlled: t,
4
+ default: n,
5
+ name: r,
6
+ state: i = "value"
7
+ }) {
8
+ const {
9
+ current: o
10
+ } = e.useRef(t !== void 0), [l, c] = e.useState(n), a = o ? t : l;
11
+ if (process.env.NODE_ENV !== "production") {
12
+ e.useEffect(() => {
13
+ }, [i, r, t]);
14
+ const {
15
+ current: s
16
+ } = e.useRef(n);
17
+ e.useEffect(() => {
18
+ !o && Object.is(s, n);
19
+ }, [JSON.stringify(n)]);
20
+ }
21
+ const u = e.useCallback((s) => {
22
+ o || c(s);
23
+ }, []);
24
+ return [a, u];
25
+ }
2
26
  export {
3
- e as default
27
+ f as default
4
28
  };
@@ -1,28 +1,4 @@
1
- import * as e from "react";
2
- function f({
3
- controlled: t,
4
- default: n,
5
- name: r,
6
- state: i = "value"
7
- }) {
8
- const {
9
- current: o
10
- } = e.useRef(t !== void 0), [l, c] = e.useState(n), a = o ? t : l;
11
- if (process.env.NODE_ENV !== "production") {
12
- e.useEffect(() => {
13
- }, [i, r, t]);
14
- const {
15
- current: s
16
- } = e.useRef(n);
17
- e.useEffect(() => {
18
- !o && Object.is(s, n);
19
- }, [JSON.stringify(n)]);
20
- }
21
- const u = e.useCallback((s) => {
22
- o || c(s);
23
- }, []);
24
- return [a, u];
25
- }
1
+ import e from "./index-useControlled.js";
26
2
  export {
27
- f as default
3
+ e as default
28
4
  };
@@ -1,7 +1,7 @@
1
1
  import M from "./index-extends.js";
2
2
  import * as g from "react";
3
3
  import Re from "./index-areArraysEqual.js";
4
- import $e from "./index-useControlled2.js";
4
+ import $e from "./index-useControlled.js";
5
5
  import R from "./index-clamp2.js";
6
6
  import Fe from "./index-useIsFocusVisible2.js";
7
7
  import fe from "./index-useForkRef.js";
@@ -1,6 +1,6 @@
1
1
  import * as c from "react";
2
2
  import { arrayIncludes as b } from "./index-utils11.js";
3
- import h from "./index-useControlled2.js";
3
+ import h from "./index-useControlled.js";
4
4
  function S({
5
5
  onChange: r,
6
6
  onViewChange: l,
@@ -0,0 +1,2 @@
1
+ import { SwitchStory } from './_Switch.default';
2
+ export declare const SwitchChecked: SwitchStory;
@@ -0,0 +1,2 @@
1
+ import { SwitchStory } from './_Switch.default';
2
+ export declare const SwitchDefault: SwitchStory;
@@ -0,0 +1,2 @@
1
+ import { SwitchStory } from './_Switch.default';
2
+ export declare const SwitchDisabled: SwitchStory;
@@ -0,0 +1,2 @@
1
+ import { SwitchStory } from './_Switch.default';
2
+ export declare const SwitchLabelLeft: SwitchStory;
@@ -0,0 +1,2 @@
1
+ import { SwitchStory } from './_Switch.default';
2
+ export declare const SwitchLoading: SwitchStory;
@@ -0,0 +1,2 @@
1
+ import { SwitchStory } from './_Switch.default';
2
+ export declare const SwitchSizes: SwitchStory;
@@ -0,0 +1,32 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { Switch } from '../Switch';
3
+ export type SwitchStory = StoryObj<typeof Switch>;
4
+ export declare const SWITCH_EXCLUDED_CONTROLS_DEFAULT: string[];
5
+ export declare const switchArgTypes: {
6
+ value: {
7
+ control: string;
8
+ defaultValue: boolean;
9
+ };
10
+ size: {
11
+ control: string;
12
+ options: string[];
13
+ defaultValue: string;
14
+ };
15
+ labelPos: {
16
+ control: string;
17
+ options: string[];
18
+ defaultValue: string;
19
+ };
20
+ disabled: {
21
+ control: string;
22
+ defaultValue: boolean;
23
+ };
24
+ loading: {
25
+ control: string;
26
+ defaultValue: boolean;
27
+ };
28
+ readOnly: {
29
+ control: string;
30
+ defaultValue: boolean;
31
+ };
32
+ };
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2026-05-11T13:46:11.844Z",
2
+ "timestamp": "2026-06-02T13:41:02.394Z",
3
3
  "mode": "full",
4
4
  "buildOptimization": {
5
5
  "enabled": false,