@rankingcoach/vanguard 1.4.1 → 1.5.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 (157) hide show
  1. package/dist/index-Accordion2.js +1 -1
  2. package/dist/index-AccordionDetails.js +1 -1
  3. package/dist/index-AccordionSummary.js +1 -1
  4. package/dist/index-AiGlow.js +1 -1
  5. package/dist/index-AppBar2.js +1 -1
  6. package/dist/index-Autocomplete.js +2 -2
  7. package/dist/index-Autocomplete2.js +1 -1
  8. package/dist/index-Backdrop.js +1 -1
  9. package/dist/index-BasePopper.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-CalendarPicker.js +1 -1
  15. package/dist/index-Chip.js +1 -1
  16. package/dist/index-ClickAwayListener.js +1 -1
  17. package/dist/index-ClockPicker.js +1 -1
  18. package/dist/index-Collapse2.js +1 -1
  19. package/dist/index-ControlledValuePlugin.js +1 -1
  20. package/dist/index-DateInput.js +4 -4
  21. package/dist/index-DatePicker2.js +1 -1
  22. package/dist/index-DefaultPropsProvider.js +1 -1
  23. package/dist/index-DefaultPropsProvider2.js +1 -1
  24. package/dist/index-DefaultValuePlugin.js +1 -1
  25. package/dist/index-DesktopDatePicker.js +1 -1
  26. package/dist/index-Dialog.js +1 -1
  27. package/dist/index-DialogActions.js +1 -1
  28. package/dist/index-DialogContent.js +1 -1
  29. package/dist/index-Drawer.js +1 -1
  30. package/dist/index-Drawer2.js +1 -1
  31. package/dist/index-DropdownMenu.js +1 -1
  32. package/dist/index-Fade.js +1 -1
  33. package/dist/index-FilledInput.js +1 -1
  34. package/dist/index-FocusTrap.js +1 -1
  35. package/dist/index-FormControl2.js +1 -1
  36. package/dist/index-FormHelperText.js +1 -1
  37. package/dist/index-FormLabel.js +1 -1
  38. package/dist/index-GlobalStyles.js +1 -1
  39. package/dist/index-GlobalStyles2.js +1 -1
  40. package/dist/index-GlobalStyles3.js +1 -1
  41. package/dist/index-Grid.js +1 -1
  42. package/dist/index-Grow.js +1 -1
  43. package/dist/index-Header.js +1 -1
  44. package/dist/index-HyperlinkPlugin.js +1 -1
  45. package/dist/index-IconButton2.js +1 -1
  46. package/dist/index-Input2.js +1 -1
  47. package/dist/index-InputAdornment.js +1 -1
  48. package/dist/index-InputBase.js +142 -142
  49. package/dist/index-InputBase2.js +1 -1
  50. package/dist/index-InputLabel.js +1 -1
  51. package/dist/index-InputRangeField.js +1 -1
  52. package/dist/index-KeywordNode.js +1 -1
  53. package/dist/index-KeywordPlugin.js +1 -1
  54. package/dist/index-LinearProgress.js +1 -1
  55. package/dist/index-List2.js +1 -1
  56. package/dist/index-ListSubheader.js +1 -1
  57. package/dist/index-LocalizationProvider.js +1 -1
  58. package/dist/index-Menu.js +41 -251
  59. package/dist/index-Menu2.js +254 -0
  60. package/dist/index-MenuItem.js +38 -237
  61. package/dist/index-MenuItem2.js +240 -0
  62. package/dist/index-MenuList.js +1 -1
  63. package/dist/index-MobileDatePicker.js +1 -1
  64. package/dist/index-Modal2.js +1 -1
  65. package/dist/index-Month.js +2 -2
  66. package/dist/index-MonthPicker.js +1 -1
  67. package/dist/index-NativeSelectInput.js +1 -1
  68. package/dist/index-NotchedOutline.js +1 -1
  69. package/dist/index-OnChangeContentPlugin.js +1 -1
  70. package/dist/index-OnFocusOnBlurPlugin.js +1 -1
  71. package/dist/index-OutlinedInput.js +1 -1
  72. package/dist/index-Paper.js +1 -1
  73. package/dist/index-PickersDay.js +1 -1
  74. package/dist/index-Popover2.js +1 -1
  75. package/dist/index-Popper.js +1 -1
  76. package/dist/index-Portal.js +1 -1
  77. package/dist/index-PropTypes.js +1 -1
  78. package/dist/index-QuoteContainer.js +1 -1
  79. package/dist/index-Ripple.js +1 -1
  80. package/dist/index-RtlProvider.js +1 -1
  81. package/dist/index-ScrollbarSize.js +1 -1
  82. package/dist/index-SearchableSelect.js +1 -1
  83. package/dist/index-Select.js +1 -1
  84. package/dist/index-Select2.js +1 -1
  85. package/dist/index-SelectInput2.js +2 -2
  86. package/dist/index-Skeleton2.js +1 -1
  87. package/dist/index-Slide.js +1 -1
  88. package/dist/index-Slider2.js +1 -1
  89. package/dist/index-SliderValueLabel.js +1 -1
  90. package/dist/index-Snackbar2.js +1 -1
  91. package/dist/index-SnackbarContent.js +1 -1
  92. package/dist/index-StyledEngineProvider.js +1 -1
  93. package/dist/index-SvgIcon.js +1 -1
  94. package/dist/index-Tab2.js +1 -1
  95. package/dist/index-TabScrollButton.js +1 -1
  96. package/dist/index-Tabs2.js +1 -1
  97. package/dist/index-TextField.js +1 -1
  98. package/dist/index-TextareaAutosize.js +1 -1
  99. package/dist/index-ToggleButton2.js +1 -1
  100. package/dist/index-ToggleButtonGroup2.js +1 -1
  101. package/dist/index-Toolbar2.js +1 -1
  102. package/dist/index-Tooltip.js +1 -1
  103. package/dist/index-TouchRipple.js +1 -1
  104. package/dist/index-Transition.js +1 -1
  105. package/dist/index-TransitionGroup.js +1 -1
  106. package/dist/index-Typography.js +1 -1
  107. package/dist/index-YearPicker.js +1 -1
  108. package/dist/index-_virtual16.js +3 -5
  109. package/dist/index-_virtual17.js +5 -3
  110. package/dist/index-_virtual2.js +5 -5
  111. package/dist/index-_virtual21.js +2 -2
  112. package/dist/index-_virtual22.js +2 -2
  113. package/dist/index-_virtual23.js +3 -2
  114. package/dist/index-_virtual24.js +2 -2
  115. package/dist/index-_virtual25.js +2 -2
  116. package/dist/index-_virtual26.js +2 -2
  117. package/dist/index-_virtual27.js +2 -2
  118. package/dist/index-_virtual28.js +2 -2
  119. package/dist/index-_virtual3.js +4 -4
  120. package/dist/index-_virtual30.js +2 -2
  121. package/dist/index-_virtual31.js +2 -2
  122. package/dist/index-_virtual32.js +2 -3
  123. package/dist/index-_virtual4.js +5 -5
  124. package/dist/index-_virtual69.js +2 -2
  125. package/dist/index-_virtual70.js +2 -4
  126. package/dist/index-_virtual71.js +4 -2
  127. package/dist/index-_virtual72.js +2 -4
  128. package/dist/index-_virtual73.js +1 -1
  129. package/dist/index-_virtual74.js +1 -1
  130. package/dist/index-_virtual75.js +4 -2
  131. package/dist/index-_virtual76.js +2 -2
  132. package/dist/index-accessibility.js +1 -1
  133. package/dist/index-cjs.js +1 -1
  134. package/dist/index-elementAcceptingRef.js +1 -1
  135. package/dist/index-elementTypeAcceptingRef.js +1 -1
  136. package/dist/index-helpers3.js +1 -1
  137. package/dist/index-keycode.js +1 -1
  138. package/dist/index-lib4.js +1 -1
  139. package/dist/index-lib5.js +1 -1
  140. package/dist/index-mpd-parser.es.js +1 -1
  141. package/dist/index-refType.js +1 -1
  142. package/dist/index-responsivePropType.js +1 -1
  143. package/dist/index-useHyperlinkEditor.js +1 -1
  144. package/dist/index-useLexicalToolbar.js +1 -1
  145. package/dist/index.js +396 -392
  146. package/dist/types/core/Form/stories/SelectChangeDetection.story.d.ts +2 -0
  147. package/dist/types/core/Form/stories/bootstrap/form.test.slice.d.ts +58 -17
  148. package/dist/types/core/Menu/Menu.d.ts +17 -0
  149. package/dist/types/core/Menu/index.d.ts +2 -0
  150. package/dist/types/core/MenuItem/MenuItem.d.ts +14 -0
  151. package/dist/types/core/MenuItem/index.d.ts +2 -0
  152. package/dist/types/index.d.ts +62 -58
  153. package/dist/vanguard-asset-analysis.json +1 -1
  154. package/dist/vanguard.css +1 -1
  155. package/dist-wordpress/index.js +1956 -1956
  156. package/dist-wordpress/vanguard.css +1 -1
  157. package/package.json +1 -1
@@ -1,59 +1,59 @@
1
- import { jsxs as c, jsx as n, Fragment as ct } from "react/jsx-runtime";
1
+ import { jsxs as c, jsx as l, Fragment as mt } from "react/jsx-runtime";
2
2
  /* empty css */
3
- import { REGEX as Ce } from "./index-regex.js";
4
- import { useAppDispatch as gt } from "./index-use-app-dispatch.js";
5
- import { useWindowResize as mt } from "./index-use-window.resize.js";
6
- import { classNames as vt } from "./index-classNames.js";
7
- import { debounce as ft } from "./index-debounce.js";
8
- import { preventInput as yt } from "./index-prevent-input.js";
9
- import { sanitizeHtml as bt } from "./index-sanitize-html.js";
10
- import { highlightedTextMaxLength as kt } from "./index-string-helpers.js";
11
- import { isValidHexColor as xt } from "./index-hex-color.js";
3
+ import { REGEX as Ie } from "./index-regex.js";
4
+ import { useAppDispatch as vt } from "./index-use-app-dispatch.js";
5
+ import { useWindowResize as ft } from "./index-use-window.resize.js";
6
+ import { classNames as yt } from "./index-classNames.js";
7
+ import { debounce as bt } from "./index-debounce.js";
8
+ import { preventInput as kt } from "./index-prevent-input.js";
9
+ import { sanitizeHtml as xt } from "./index-sanitize-html.js";
10
+ import { highlightedTextMaxLength as Ct } from "./index-string-helpers.js";
11
+ import { isValidHexColor as Pt } from "./index-hex-color.js";
12
12
  import { translationService as E } from "./index-translation.service.js";
13
- import { Icon as Pe } from "./index-Icon.js";
14
- import { IconNames as Ie } from "./index-IconNames.js";
15
- import { Link as Ct } from "./index-Link.js";
16
- import { Popover as Pt } from "./index-Popover.js";
17
- import { Render as M } from "./index-Render.js";
18
- import { Text as _, FontWeights as H } from "./index-Text.js";
19
- import It, { useRef as Se, useState as D, useEffect as v } from "react";
13
+ import { Icon as Se } from "./index-Icon.js";
14
+ import { IconNames as Te } from "./index-IconNames.js";
15
+ import { Link as It } from "./index-Link.js";
16
+ import { Popover as St } from "./index-Popover.js";
17
+ import { Render as _ } from "./index-Render.js";
18
+ import { Text as M, FontWeights as H } from "./index-Text.js";
19
+ import Tt, { useRef as Ve, useState as D, useEffect as v } from "react";
20
20
  import W from "./index-Skeleton2.js";
21
- import St from "./index-TextField.js";
22
- const Xt = (P) => {
21
+ import Vt from "./index-TextField.js";
22
+ const Qt = (P) => {
23
23
  var me, ve, fe, ye;
24
24
  const {
25
- id: Te,
26
- className: Ve,
27
- formFieldType: l = "InputBase",
28
- type: Fe = "Text",
25
+ id: Fe,
26
+ className: Ne,
27
+ formFieldType: n = "InputBase",
28
+ type: Re = "Text",
29
29
  roundedNumericCTAType: $ = !1,
30
30
  value: i,
31
- defaultValue: Ne,
31
+ defaultValue: Ae,
32
32
  valueAsDefaultValue: j,
33
33
  placeholder: O,
34
- disabled: Ae,
34
+ disabled: Le,
35
35
  label: f,
36
36
  labelType: y = "floating",
37
37
  infoText: U,
38
38
  popoverMessage: K,
39
- popoverPosition: Le = "top",
39
+ popoverPosition: we = "top",
40
40
  multiline: q,
41
- rows: Re,
41
+ rows: Be,
42
42
  minRows: z = 3,
43
43
  maxRows: G = 6,
44
- allowBreakLines: A,
44
+ allowBreakLines: R,
45
45
  highlightUrl: I,
46
46
  highlightWords: S,
47
47
  prohibitedWords: b,
48
48
  highlightLengthExceeded: X,
49
- counter: we,
49
+ counter: Ee,
50
50
  select: J = !1,
51
- selectRenderValue: Be,
52
- selectDisplayEmpty: Tt,
53
- menuItemHeight: Ee = 36,
54
- maxMenuItemsUntilScroll: Me = 7,
51
+ selectRenderValue: _e,
52
+ selectDisplayEmpty: Ft,
53
+ menuItemHeight: Me = 36,
54
+ maxMenuItemsUntilScroll: He = 7,
55
55
  formconfig: e,
56
- children: _e,
56
+ children: De,
57
57
  onFocus: Q,
58
58
  onBlur: Y,
59
59
  onKeyUp: Z,
@@ -63,55 +63,55 @@ const Xt = (P) => {
63
63
  onChange: T,
64
64
  onStepUpNumericClick: ae,
65
65
  onStepDownNumericClick: ne,
66
- testId: He,
67
- isLoading: L,
66
+ testId: We,
67
+ isLoading: A,
68
68
  adornment: le,
69
69
  endAdornment: ie,
70
70
  textFieldProps: o = {},
71
- replacements: R,
71
+ replacements: L,
72
72
  onProhibitedWordFound: ue,
73
73
  onHighlightWordFound: se,
74
- triggerChangeOnStateFieldChange: De,
75
- theme: We = "default",
76
- autoFocus: $e,
74
+ triggerChangeOnStateFieldChange: $e,
75
+ theme: je = "default",
76
+ autoFocus: Oe,
77
77
  highlightUrlType: oe = "negative",
78
- popoverHighlight: Vt,
78
+ popoverHighlight: Nt,
79
79
  helperLinkText: pe,
80
80
  onHelperLinkClick: de,
81
- helperLinkDisabled: je,
82
- helperLinkHref: Oe,
81
+ helperLinkDisabled: Ue,
82
+ helperLinkHref: Ke,
83
83
  labelStyle: p
84
84
  } = P;
85
85
  let {
86
86
  maxLength: g
87
87
  } = P;
88
- const Ue = mt(100);
89
- e && (e.fieldType = l);
88
+ const qe = ft(100);
89
+ e && (e.fieldType = n);
90
90
  let {
91
91
  inputRef: u
92
92
  } = P;
93
- e ? u = e._inputRef : u || (u = Se(null));
93
+ e ? u = e._inputRef : u || (u = Ve(null));
94
94
  const [V, k] = D((i && typeof i == "string" && i.length) ?? 0), F = () => {
95
95
  B && s && s.current && u && u.current && (s.current.style.height = `${u.current.getBoundingClientRect().height.toString()}px`, s.current.style.width = `${u.current.getBoundingClientRect().width.toString()}px`, s.current.scrollTop = u.current.scrollTop, s.current.scrollLeft = u.current.scrollLeft);
96
- }, he = It.useMemo(() => ft(F, 100), [F]);
96
+ }, he = Tt.useMemo(() => bt(F, 100), [F]);
97
97
  v(() => {
98
98
  k(typeof i == "string" ? i.length : 0);
99
99
  }, [i]), v(() => {
100
100
  he();
101
- }, [Ue, he]), e && e != null && e.validation && "maxLength" in (e == null ? void 0 : e.validation) && (g = (me = e == null ? void 0 : e.validation) == null ? void 0 : me.maxLength);
101
+ }, [qe, he]), e && e != null && e.validation && "maxLength" in (e == null ? void 0 : e.validation) && (g = (me = e == null ? void 0 : e.validation) == null ? void 0 : me.maxLength);
102
102
  let {
103
103
  required: w
104
104
  } = P;
105
105
  (((ve = e == null ? void 0 : e.validation) == null ? void 0 : ve.required) === !0 || ((fe = e == null ? void 0 : e.validation) == null ? void 0 : fe.required) === !1) && (w = (ye = e == null ? void 0 : e.validation) == null ? void 0 : ye.required);
106
- let [d, Ke] = D((e == null ? void 0 : e.hasError) ?? !1);
107
- e && (d = !!e.hasError), e != null && e.setHasError && (Ke = e.setHasError), v(() => {
106
+ let [d, ze] = D((e == null ? void 0 : e.hasError) ?? !1);
107
+ e && (d = !!e.hasError), e != null && e.setHasError && (ze = e.setHasError), v(() => {
108
108
  e && (e.hasError = d);
109
109
  }, [d]), v(() => {
110
110
  var t;
111
111
  if (e) {
112
112
  e.hasError = d;
113
113
  const r = (t = e._inputRef) == null ? void 0 : t.current;
114
- l !== "Autocomplete" && e.stateValue && r && (r.value = e == null ? void 0 : e.stateValue, De && T && T({
114
+ n !== "Autocomplete" && e.stateValue && r && (r.value = e == null ? void 0 : e.stateValue, $e && T && T({
115
115
  target: {
116
116
  value: e == null ? void 0 : e.stateValue
117
117
  }
@@ -122,7 +122,7 @@ const Xt = (P) => {
122
122
  }, [e == null ? void 0 : e.stateValue, b]), v(() => {
123
123
  i && I && typeof i == "string" && N(i);
124
124
  }, [I, i, oe]);
125
- const qe = () => f ? y === "static" ? {
125
+ const Ge = () => f ? y === "static" ? {
126
126
  shrink: !0,
127
127
  style: p
128
128
  } : y === "outer" ? {
@@ -131,15 +131,15 @@ const Xt = (P) => {
131
131
  } : null : {
132
132
  shrink: !0,
133
133
  style: p
134
- }, ze = () => !f || y === "hidden" ? "vanguard-label-hidden" : y === "outer" ? "vanguard-label-outer" : "", Ge = () => !f || y === "hidden" ? null : c(ct, {
135
- children: [E.get(f, R).value, !w && n("span", {
134
+ }, Xe = () => !f || y === "hidden" ? "vanguard-label-hidden" : y === "outer" ? "vanguard-label-outer" : "", Je = () => !f || y === "hidden" ? null : c(mt, {
135
+ children: [E.get(f, L).value, !w && l("span", {
136
136
  className: "vanguard-input-label-optional",
137
137
  style: {
138
138
  color: p != null && p.color ? `rgb(from ${p.color} r g b / 0.7)` : void 0
139
139
  },
140
140
  children: E.get("Optional", void 0).value
141
141
  })]
142
- }), Xe = c("div", {
142
+ }), Qe = c("div", {
143
143
  style: {
144
144
  marginRight: "20px",
145
145
  display: "flex",
@@ -147,7 +147,7 @@ const Xt = (P) => {
147
147
  gap: "8px",
148
148
  cursor: "pointer"
149
149
  },
150
- children: [n(Pe, {
150
+ children: [l(Se, {
151
151
  role: "button",
152
152
  testId: "button-step-down",
153
153
  onClick: (t) => {
@@ -156,8 +156,8 @@ const Xt = (P) => {
156
156
  color: "var(--n500)",
157
157
  fillColor: "var(--n100)",
158
158
  hasCircle: !0,
159
- children: Ie.remove
160
- }), n(Pe, {
159
+ children: Te.remove
160
+ }), l(Se, {
161
161
  role: "button",
162
162
  testId: "button-step-up",
163
163
  onClick: (t) => {
@@ -166,31 +166,31 @@ const Xt = (P) => {
166
166
  color: "var(--n500)",
167
167
  fillColor: "var(--n100)",
168
168
  hasCircle: !0,
169
- children: Ie.add
169
+ children: Te.add
170
170
  })]
171
- }), ce = (t) => t || null, Je = () => ce(le), Qe = () => ce(ie);
171
+ }), ce = (t) => t || null, Ye = () => ce(le), Ze = () => ce(ie);
172
172
  le && (o.InputProps = {
173
173
  ...o.InputProps,
174
- startAdornment: Je()
174
+ startAdornment: Ye()
175
175
  }), ie && (o.InputProps = {
176
176
  ...o.InputProps,
177
- endAdornment: Qe()
178
- }), l == "InputNumber" && $ && (o.InputProps = {
177
+ endAdornment: Ze()
178
+ }), n == "InputNumber" && $ && (o.InputProps = {
179
179
  ...o.InputProps,
180
- endAdornment: Xe
180
+ endAdornment: Qe
181
181
  });
182
- const Ye = () => {
182
+ const et = () => {
183
183
  var x;
184
184
  const t = {
185
185
  field_name: f,
186
186
  length: V || "0",
187
187
  ...e == null ? void 0 : e.validation,
188
188
  ...(x = e == null ? void 0 : e.validation) == null ? void 0 : x.replacements,
189
- ...R
189
+ ...L
190
190
  // Info Text translation variables
191
191
  };
192
192
  let r = "";
193
- d ? r = n(_, {
193
+ d ? r = l(M, {
194
194
  className: "vanguard-input-error-text",
195
195
  testId: "vanguard-input-error-text",
196
196
  fontWeight: H.regular,
@@ -199,14 +199,14 @@ const Xt = (P) => {
199
199
  "aria-live": "polite",
200
200
  "aria-atomic": "true",
201
201
  children: e != null && e.errors ? e == null ? void 0 : e.errors[0] : null
202
- }) : U && (r = n(_, {
202
+ }) : U && (r = l(M, {
203
203
  className: "vanguard-input-info-text",
204
204
  fontWeight: H.regular,
205
205
  replacements: t,
206
206
  children: U
207
207
  }));
208
208
  let a;
209
- we && (a = c(_, {
209
+ Ee && (a = c(M, {
210
210
  className: "vanguard-input-counter",
211
211
  fontWeight: H.regular,
212
212
  color: d ? "--e500" : "",
@@ -214,17 +214,17 @@ const Xt = (P) => {
214
214
  children: [V || "0", g && `/${g}`]
215
215
  }));
216
216
  let m;
217
- return pe && de && (m = n(Ct, {
217
+ return pe && de && (m = l(It, {
218
218
  onClick: () => {
219
219
  de(i ?? "");
220
220
  },
221
221
  className: "vanguard-input-helper-link-button",
222
- disabled: je,
223
- href: Oe,
222
+ disabled: Ue,
223
+ href: Ke,
224
224
  children: pe
225
225
  })), !r && !a && !m ? null : c("span", {
226
226
  className: "vanguard-input-bottom-container",
227
- children: [n(M, {
227
+ children: [l(_, {
228
228
  if: !!r || !!a,
229
229
  children: c("span", {
230
230
  className: "vanguard-input-bottom-container-line",
@@ -232,16 +232,16 @@ const Xt = (P) => {
232
232
  })
233
233
  }), m]
234
234
  });
235
- }, B = X || S || I || b, s = Se(null), [Ze, ge] = D({
235
+ }, B = X || S || I || b, s = Ve(null), [tt, ge] = D({
236
236
  __html: ""
237
237
  }), N = (t) => {
238
238
  if (B || ge({
239
239
  __html: ""
240
- }), X && g && (t == null ? void 0 : t.length) > g && (t = kt(t, g, "vanguard-input-mark-red")), S && S.length && S.forEach((a) => {
240
+ }), X && g && (t == null ? void 0 : t.length) > g && (t = Ct(t, g, "vanguard-input-mark-red")), S && S.length && S.forEach((a) => {
241
241
  t = t == null ? void 0 : t.replace(a, `<span class="vanguard-input-mark-green">${a}</span>`), t != null && t.includes(a) && se && se(a, e);
242
242
  }), b && b.length && b.forEach((a) => {
243
243
  t = t == null ? void 0 : t.replace(a, `<span class="vanguard-input-mark-red">${a}</span>`), t != null && t.includes(a) && ue && ue(a, e);
244
- }), I && t && t.search(Ce.url) >= 0) {
244
+ }), I && t && t.search(Ie.url) >= 0) {
245
245
  let a = "";
246
246
  switch (oe) {
247
247
  case "negative":
@@ -254,9 +254,9 @@ const Xt = (P) => {
254
254
  a = "vanguard-input-mark-blue";
255
255
  break;
256
256
  }
257
- t = t.replace(Ce.url, `<span class="${a}">$&</span>`);
257
+ t = t.replace(Ie.url, `<span class="${a}">$&</span>`);
258
258
  }
259
- const r = bt(t, {
259
+ const r = xt(t, {
260
260
  allowedAttributes: {
261
261
  span: ["class"]
262
262
  },
@@ -265,50 +265,50 @@ const Xt = (P) => {
265
265
  ge({
266
266
  __html: r
267
267
  });
268
- }, et = () => {
268
+ }, rt = () => {
269
269
  if (O)
270
- return E.get(O, R).value;
271
- }, tt = (t) => K ? n(Pt, {
272
- position: Le,
270
+ return E.get(O, L).value;
271
+ }, at = (t) => K ? l(St, {
272
+ position: we,
273
273
  message: K,
274
274
  wrapChildren: !1,
275
275
  children: t
276
- }) : t, rt = () => q ? {
276
+ }) : t, nt = () => q ? {
277
277
  multiline: q,
278
- rows: Re,
278
+ rows: Be,
279
279
  minRows: z,
280
280
  maxRows: G
281
- } : null, at = () => J ? {
281
+ } : null, lt = () => J ? {
282
282
  select: J,
283
283
  SelectProps: {
284
- renderValue: Be,
284
+ renderValue: _e,
285
285
  MenuProps: {
286
286
  PaperProps: {
287
287
  style: {
288
- maxHeight: Ee * Me
288
+ maxHeight: Me * He
289
289
  }
290
290
  }
291
291
  }
292
292
  }
293
- } : null, nt = (t) => {
293
+ } : null, it = (t) => {
294
294
  Q && Q(t);
295
- }, lt = (t) => {
296
- Y && Y(t);
297
- }, it = (t) => {
298
- Z && Z(t);
299
295
  }, ut = (t) => {
300
- ee && ee(t), t.code === "Enter" && !A && t.preventDefault(), yt(t, e, i);
296
+ Y && Y(t);
301
297
  }, st = (t) => {
302
- te && te(t);
298
+ Z && Z(t);
303
299
  }, ot = (t) => {
300
+ ee && ee(t), t.code === "Enter" && !R && t.preventDefault(), kt(t, e, i);
301
+ }, pt = (t) => {
302
+ te && te(t);
303
+ }, dt = (t) => {
304
304
  re && re(t);
305
- }, h = gt(), pt = (t) => {
306
- var a, m, x, be, ke, xe;
305
+ }, h = vt(), ht = (t) => {
306
+ var a, m, x, be, ke, xe, Ce, Pe;
307
307
  T && T(t);
308
308
  let r;
309
309
  if (e) {
310
310
  if (e.setStateValue) {
311
- if (l == "InputBase" || l == "Input" || l == "InputNumber" || l == "ColorPicker")
311
+ if (n == "InputBase" || n == "Input" || n == "InputNumber" || n == "ColorPicker")
312
312
  if (r = t.currentTarget.value, (a = e.valueMappers) != null && a.toObject && (r = e.valueMappers.toObject(r)), e.arrayPosition !== void 0 && e.setStateValueArray)
313
313
  h(e.setStateValueArray({
314
314
  el: r,
@@ -316,98 +316,98 @@ const Xt = (P) => {
316
316
  }));
317
317
  else {
318
318
  let C = r;
319
- l == "InputNumber" && (C = parseInt(C)), l == "ColorPicker" ? xt(C) && h(e.setStateValue(C)) : h(e.setStateValue(C));
319
+ n == "InputNumber" && (C = parseInt(C)), n == "ColorPicker" ? Pt(C) && h(e.setStateValue(C)) : h(e.setStateValue(C));
320
320
  }
321
- l == "Textarea" && (r = t.currentTarget.value, A || (r = t.currentTarget.value.replace(/(\r\n|\n|\r)/gm, " ")), (m = e.valueMappers) != null && m.toObject && (r = e.valueMappers.toObject(r)), e.arrayPosition !== void 0 && e.setStateValueArray ? h(e.setStateValueArray({
321
+ n == "Textarea" && (r = t.currentTarget.value, R || (r = t.currentTarget.value.replace(/(\r\n|\n|\r)/gm, " ")), (m = e.valueMappers) != null && m.toObject && (r = e.valueMappers.toObject(r)), e.arrayPosition !== void 0 && e.setStateValueArray ? h(e.setStateValueArray({
322
322
  el: r,
323
323
  idx: e.arrayPosition
324
- })) : h(e.setStateValue(r))), l == "Select" && (r = ((x = t.currentTarget) == null ? void 0 : x.value) || ((be = t.target) == null ? void 0 : be.value), (ke = e.valueMappers) != null && ke.toObject && (r = e.valueMappers.toObject(r)), e.arrayPosition !== void 0 && e.setStateValueArray ? h(e.setStateValueArray({
324
+ })) : h(e.setStateValue(r))), n == "Select" && (r = ((x = t.currentTarget) == null ? void 0 : x.value) || ((be = t.target) == null ? void 0 : be.value), (ke = e.valueMappers) != null && ke.toObject && (r = e.valueMappers.toObject(r)), e.arrayPosition !== void 0 && e.setStateValueArray ? h(e.setStateValueArray({
325
325
  el: r,
326
326
  idx: e.arrayPosition
327
327
  })) : h(e.setStateValue(r)));
328
328
  }
329
- e != null && e._onChange && (e == null || e._onChange());
329
+ n === "Select" && ((xe = e._inputRef) != null && xe.current) && (e._inputRef.current.value = ((Ce = t.target) == null ? void 0 : Ce.value) ?? ""), e != null && e._onChange && (e == null || e._onChange());
330
330
  } else
331
- r = ((xe = t.currentTarget) == null ? void 0 : xe.value) ?? "";
332
- k(r && typeof r == "string" ? r.length : 0), B && s && s.current && u && u.current && (s.current.style.height = `${u.current.getBoundingClientRect().height.toString()}px`, s.current.style.width = `${u.current.getBoundingClientRect().width.toString()}px`, N(A ? t.currentTarget.value : t.currentTarget.value.replace(/(\r\n|\n|\r)/gm, " ")));
333
- }, dt = () => {
331
+ r = ((Pe = t.currentTarget) == null ? void 0 : Pe.value) ?? "";
332
+ k(r && typeof r == "string" ? r.length : 0), B && s && s.current && u && u.current && (s.current.style.height = `${u.current.getBoundingClientRect().height.toString()}px`, s.current.style.width = `${u.current.getBoundingClientRect().width.toString()}px`, N(R ? t.currentTarget.value : t.currentTarget.value.replace(/(\r\n|\n|\r)/gm, " ")));
333
+ }, ct = () => {
334
334
  setTimeout(() => {
335
335
  F();
336
336
  }, 0);
337
- }, ht = () => {
337
+ }, gt = () => {
338
338
  F();
339
339
  };
340
- return tt(c("div", {
341
- className: vt("vanguard-input", Ve, ze(), We === "grey" ? "vanguard-input-grey" : "", L ? "vanguard-input-loading" : "", $ ? "vanguard-input-type-number-rounded" : "", l === "ColorPicker" ? "vanguard-input-type-colorpicker" : ""),
342
- onClick: (t) => ot(t),
343
- children: [n("div", {
340
+ return at(c("div", {
341
+ className: yt("vanguard-input", Ne, Xe(), je === "grey" ? "vanguard-input-grey" : "", A ? "vanguard-input-loading" : "", $ ? "vanguard-input-type-number-rounded" : "", n === "ColorPicker" ? "vanguard-input-type-colorpicker" : ""),
342
+ onClick: (t) => dt(t),
343
+ children: [l("div", {
344
344
  className: "vanguard-input-backdrop",
345
345
  ref: s,
346
- children: n("div", {
346
+ children: l("div", {
347
347
  className: "vanguard-input-highlights",
348
- dangerouslySetInnerHTML: Ze
348
+ dangerouslySetInnerHTML: tt
349
349
  })
350
- }), n(M, {
351
- if: L && l == "Textarea",
350
+ }), l(_, {
351
+ if: A && n == "Textarea",
352
352
  children: c("div", {
353
353
  className: "vanguard-input-skeleton",
354
354
  ref: s,
355
- children: [[...Array(Math.min(z, G))].map((t, r) => n(W, {
355
+ children: [[...Array(Math.min(z, G))].map((t, r) => l(W, {
356
356
  height: 16,
357
357
  width: "100%"
358
- }, r)), n(W, {
358
+ }, r)), l(W, {
359
359
  height: 16,
360
360
  width: "80%"
361
361
  })]
362
362
  })
363
- }), n(M, {
364
- if: L && (l == "Input" || l == "InputBase" || l == "InputNumber" || l == "Autocomplete"),
365
- children: n("div", {
363
+ }), l(_, {
364
+ if: A && (n == "Input" || n == "InputBase" || n == "InputNumber" || n == "Autocomplete"),
365
+ children: l("div", {
366
366
  className: "vanguard-input-skeleton",
367
367
  ref: s,
368
- children: n(W, {
368
+ children: l(W, {
369
369
  height: 42,
370
370
  width: "100%"
371
371
  })
372
372
  })
373
- }), n(St, {
374
- autoFocus: $e,
373
+ }), l(Vt, {
374
+ autoFocus: Oe,
375
375
  variant: "outlined",
376
- id: Te,
377
- "data-testid": He,
376
+ id: Fe,
377
+ "data-testid": We,
378
378
  fullWidth: !0,
379
- label: Ge(),
380
- InputLabelProps: qe() ?? void 0,
381
- type: Fe,
379
+ label: Je(),
380
+ InputLabelProps: Ge() ?? void 0,
381
+ type: Re,
382
382
  value: j ? void 0 : i,
383
- defaultValue: j ? i : Ne,
384
- placeholder: et(),
385
- helperText: n(Ye, {}),
383
+ defaultValue: j ? i : Ae,
384
+ placeholder: rt(),
385
+ helperText: l(et, {}),
386
386
  error: d,
387
387
  required: w,
388
- disabled: Ae,
388
+ disabled: Le,
389
389
  role: "textbox",
390
- ...rt(),
391
- ...at(),
392
- onFocus: (t) => nt(t),
393
- onBlur: (t) => lt(t),
394
- onKeyUp: (t) => it(t),
395
- onKeyDown: (t) => ut(t),
396
- onInput: (t) => st(t),
397
- onChange: (t) => pt(t),
398
- onPaste: () => dt(),
390
+ ...nt(),
391
+ ...lt(),
392
+ onFocus: (t) => it(t),
393
+ onBlur: (t) => ut(t),
394
+ onKeyUp: (t) => st(t),
395
+ onKeyDown: (t) => ot(t),
396
+ onInput: (t) => pt(t),
397
+ onChange: (t) => ht(t),
398
+ onPaste: () => ct(),
399
399
  inputRef: u,
400
400
  ...o,
401
401
  inputProps: {
402
402
  ...o.inputProps ?? {},
403
403
  onScroll: () => {
404
- ht();
404
+ gt();
405
405
  }
406
406
  },
407
- children: _e
407
+ children: De
408
408
  })]
409
409
  }));
410
410
  };
411
411
  export {
412
- Xt as InputBase
412
+ Qt as InputBase
413
413
  };
@@ -1,7 +1,7 @@
1
1
  import So from "./index-objectWithoutPropertiesLoose.js";
2
2
  import l from "./index-extends.js";
3
3
  import * as u from "react";
4
- import o from "./index-_virtual16.js";
4
+ import o from "./index-_virtual17.js";
5
5
  import { clsx as to } from "./index-clsx.js";
6
6
  import Eo from "./index-formControlState.js";
7
7
  import Io from "./index-FormControlContext.js";
@@ -1,7 +1,7 @@
1
1
  import x from "./index-objectWithoutPropertiesLoose.js";
2
2
  import n from "./index-extends.js";
3
3
  import * as b from "react";
4
- import r from "./index-_virtual16.js";
4
+ import r from "./index-_virtual17.js";
5
5
  import { clsx as h } from "./index-clsx.js";
6
6
  import v from "./index-formControlState.js";
7
7
  import k from "./index-useFormControl.js";
@@ -1,4 +1,4 @@
1
- import { __exports as p } from "./index-_virtual76.js";
1
+ import { __exports as p } from "./index-_virtual69.js";
2
2
  import E from "react";
3
3
  import { __require as W } from "./index-prop-types.js";
4
4
  var R;
@@ -1,4 +1,4 @@
1
- import { __exports as t } from "./index-_virtual23.js";
1
+ import { __exports as t } from "./index-_virtual26.js";
2
2
  import { __require as l } from "./index-Lexical.js";
3
3
  var i;
4
4
  function N() {
@@ -1,4 +1,4 @@
1
- import { __exports as r } from "./index-_virtual27.js";
1
+ import { __exports as r } from "./index-_virtual30.js";
2
2
  import { __require as p } from "./index-LexicalComposerContext2.js";
3
3
  import { __require as h } from "./index-useLexicalTextEntity.js";
4
4
  import P from "react";
@@ -1,7 +1,7 @@
1
1
  import M from "./index-objectWithoutPropertiesLoose.js";
2
2
  import l from "./index-extends.js";
3
3
  import * as T from "react";
4
- import a from "./index-_virtual16.js";
4
+ import a from "./index-_virtual17.js";
5
5
  import { clsx as q } from "./index-clsx.js";
6
6
  import { c as k } from "./index-colorManipulator2.js";
7
7
  import { useRtl as j } from "./index-RtlProvider.js";
@@ -1,7 +1,7 @@
1
1
  import h from "./index-objectWithoutPropertiesLoose.js";
2
2
  import i from "./index-extends.js";
3
3
  import * as p from "react";
4
- import e from "./index-_virtual16.js";
4
+ import e from "./index-_virtual17.js";
5
5
  import { clsx as P } from "./index-clsx.js";
6
6
  import x from "./index-styled.js";
7
7
  import L from "./index-ListContext.js";
@@ -1,7 +1,7 @@
1
1
  import g from "./index-objectWithoutPropertiesLoose.js";
2
2
  import n from "./index-extends.js";
3
3
  import * as S from "react";
4
- import o from "./index-_virtual16.js";
4
+ import o from "./index-_virtual17.js";
5
5
  import { clsx as h } from "./index-clsx.js";
6
6
  import k from "./index-styled.js";
7
7
  import { getListSubheaderUtilityClass as x } from "./index-listSubheaderClasses.js";
@@ -1,6 +1,6 @@
1
1
  import h from "./index-extends.js";
2
2
  import * as r from "react";
3
- import e from "./index-_virtual16.js";
3
+ import e from "./index-_virtual17.js";
4
4
  import { jsx as D } from "react/jsx-runtime";
5
5
  import T from "./index-useThemeProps.js";
6
6
  import { DEFAULT_LOCALE as y } from "./index-enUS.js";