@rankingcoach/vanguard 1.9.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 (70) hide show
  1. package/dist/index-Accordion2.js +1 -1
  2. package/dist/index-Bullets.js +12 -10
  3. package/dist/index-Bullets.module.scss.js +6 -4
  4. package/dist/index-CalendarPicker.js +1 -1
  5. package/dist/index-MonthPicker.js +1 -1
  6. package/dist/index-Parser2.js +3 -2
  7. package/dist/index-PhotoCarouselModal.js +26 -25
  8. package/dist/index-PhotoCarouselModal.module.scss.js +6 -4
  9. package/dist/index-SelectInput2.js +1 -1
  10. package/dist/index-SlideCarousel.js +117 -138
  11. package/dist/index-SlideCarousel.module.scss.js +22 -14
  12. package/dist/index-Switch.js +17 -22
  13. package/dist/index-Text.js +158 -131
  14. package/dist/index-TextHighlighted.js +11 -136
  15. package/dist/index-Tooltip.js +1 -1
  16. package/dist/index-YearPicker.js +1 -1
  17. package/dist/index-_virtual19.js +2 -5
  18. package/dist/index-_virtual20.js +5 -2
  19. package/dist/index-cjs.js +1 -1
  20. package/dist/index-dist4.js +1 -1
  21. package/dist/index-generate-error-boundary-data.js +13 -11
  22. package/dist/index-http.store.js +1 -1
  23. package/dist/index-lib5.js +1 -1
  24. package/dist/index-regex.js +1 -1
  25. package/dist/index-use-carousel-movement.js +138 -0
  26. package/dist/index-useAutocomplete.js +1 -1
  27. package/dist/index-useControlled.js +26 -2
  28. package/dist/index-useControlled2.js +2 -26
  29. package/dist/index-useSlider.js +1 -1
  30. package/dist/index-useViews.js +1 -1
  31. package/dist/index.js +57 -55
  32. package/dist/types/core/SlideCarousel/Bullets/Bullets.d.ts +2 -0
  33. package/dist/types/core/SlideCarousel/SlideCarousel.d.ts +6 -0
  34. package/dist/types/core/SlideCarousel/hooks/use-carousel-movement.d.ts +27 -0
  35. package/dist/types/core/SlideCarousel/index.d.ts +2 -0
  36. package/dist/types/core/SlideCarousel/stories/SlideCarouselAutoPlay.story.d.ts +2 -0
  37. package/dist/types/core/SlideCarousel/stories/SlideCarouselBasic.story.d.ts +2 -0
  38. package/dist/types/core/SlideCarousel/stories/SlideCarouselBulletsBelow.story.d.ts +2 -0
  39. package/dist/types/core/SlideCarousel/stories/SlideCarouselControlled.story.d.ts +2 -0
  40. package/dist/types/core/SlideCarousel/stories/SlideCarouselCustomArrows.story.d.ts +2 -0
  41. package/dist/types/core/SlideCarousel/stories/SlideCarouselCustomBullets.story.d.ts +2 -0
  42. package/dist/types/core/SlideCarousel/stories/SlideCarouselMultipleSlidesAtOnce.story.d.ts +2 -0
  43. package/dist/types/core/SlideCarousel/stories/SlideCarouselOutsideArrows.story.d.ts +2 -0
  44. package/dist/types/core/SlideCarousel/stories/SlideCarouselWithArrows.story.d.ts +2 -0
  45. package/dist/types/core/SlideCarousel/stories/SlideCarouselWithArrowsAndBullets.story.d.ts +2 -0
  46. package/dist/types/core/SlideCarousel/stories/SlideCarouselWithBullets.story.d.ts +2 -0
  47. package/dist/types/core/SlideCarousel/stories/_SlideCarousel.default.d.ts +13 -0
  48. package/dist/types/core/Switch/stories/SwitchChecked.story.d.ts +2 -0
  49. package/dist/types/core/Switch/stories/SwitchDefault.story.d.ts +2 -0
  50. package/dist/types/core/Switch/stories/SwitchDisabled.story.d.ts +2 -0
  51. package/dist/types/core/Switch/stories/SwitchLabelLeft.story.d.ts +2 -0
  52. package/dist/types/core/Switch/stories/SwitchLoading.story.d.ts +2 -0
  53. package/dist/types/core/Switch/stories/SwitchSizes.story.d.ts +2 -0
  54. package/dist/types/core/Switch/stories/_Switch.default.d.ts +32 -0
  55. package/dist/types/core/Text/Text.types.d.ts +4 -0
  56. package/dist/types/core/Text/stories/stories/HighlightCaseInsensitive.story.d.ts +3 -0
  57. package/dist/types/core/Text/stories/stories/HighlightDefault.story.d.ts +2 -0
  58. package/dist/types/core/Text/stories/stories/HighlightModeBackground.story.d.ts +2 -0
  59. package/dist/types/core/Text/stories/stories/HighlightModeBold.story.d.ts +2 -0
  60. package/dist/types/core/Text/stories/stories/HighlightModeText.story.d.ts +2 -0
  61. package/dist/types/core/Text/stories/stories/HighlightWithEmphasis.story.d.ts +2 -0
  62. package/dist/types/core/TextHighlighted/TextHighlighted.d.ts +4 -1
  63. package/dist/types/index.d.ts +2 -0
  64. package/dist/vanguard-asset-analysis.json +1 -1
  65. package/dist/vanguard.css +1 -1
  66. package/dist-wordpress/index.js +17669 -17639
  67. package/dist-wordpress/types/core/TextHighlighted/TextHighlighted.d.ts +4 -1
  68. package/dist-wordpress/vanguard.css +1 -1
  69. package/package.json +8 -4
  70. package/dist/types/core/TextHighlighted/stories/TextHighlightedWithXSSAttackStory.story.d.ts +0 -2
@@ -1,209 +1,236 @@
1
- import { jsx as i, jsxs as x, Fragment as fe } from "react/jsx-runtime";
1
+ import { jsx as i, jsxs as k, Fragment as ye } from "react/jsx-runtime";
2
2
  /* empty css */
3
- import { classNames as pe } from "./index-classNames.js";
4
- import { parseCssVariable as _ } from "./index-css-variables-parser.js";
5
- import { sanitizeHTMLToReactNode as b } from "./index-sanitize-html.js";
6
- import { translationHelper as s } from "./index-translation-helper.js";
7
- import { translationService as k } from "./index-translation.service.js";
8
- import { rcWindow as ee } from "./index-window.store.js";
9
- import { applyWordAnimation as me } from "./index-text-animate-words-style.js";
10
- import { parseFullLinks as he } from "./index-text-links-parser.js";
11
- import { TextWrapBalancer as $ } from "./index-TextWrapBalancer.js";
3
+ import { classNames as xe } from "./index-classNames.js";
4
+ import { parseCssVariable as ne } from "./index-css-variables-parser.js";
5
+ import { sanitizeHTMLToReactNode as C } from "./index-sanitize-html.js";
6
+ import { translationHelper as l } from "./index-translation-helper.js";
7
+ import { translationService as T } from "./index-translation.service.js";
8
+ import { rcWindow as ae } from "./index-window.store.js";
9
+ import { applyWordAnimation as be } from "./index-text-animate-words-style.js";
10
+ import { parseFullLinks as ke } from "./index-text-links-parser.js";
11
+ import { TextWrapBalancer as V } from "./index-TextWrapBalancer.js";
12
12
  import "./index-html-react-parser.js";
13
13
  import * as w from "react";
14
- import { useState as A, useMemo as te } from "react";
15
- import { childrenAsText as B } from "./index-child-to-text.js";
16
- import ue from "./index-_virtual.js";
17
- var V;
18
- (function(a) {
19
- a.heading1 = "heading-1", a.heading2 = "heading-2", a.heading3 = "heading-3", a.heading4 = "heading-4", a.textIntro = "text-intro", a.text = "text", a.textHelp = "text-help", a.textCaption = "text-caption", a.display1 = "display-1", a.display2 = "display-2";
20
- })(V || (V = {}));
14
+ import { useState as z, useMemo as ie } from "react";
15
+ import { s as se } from "./index-server.browser.js";
16
+ import { childrenAsText as H } from "./index-child-to-text.js";
17
+ import Ce from "./index-_virtual.js";
18
+ var K;
19
+ (function(n) {
20
+ n.heading1 = "heading-1", n.heading2 = "heading-2", n.heading3 = "heading-3", n.heading4 = "heading-4", n.textIntro = "text-intro", n.text = "text", n.textHelp = "text-help", n.textCaption = "text-caption", n.display1 = "display-1", n.display2 = "display-2";
21
+ })(K || (K = {}));
21
22
  var d;
22
- (function(a) {
23
- a.regular = "regular", a.medium = "medium", a.bold = "bold";
23
+ (function(n) {
24
+ n.regular = "regular", n.medium = "medium", n.bold = "bold";
24
25
  })(d || (d = {}));
25
- const Ee = (a) => {
26
+ const Ke = (n) => {
26
27
  const {
27
- type: m = V.text,
28
+ type: m = K.text,
28
29
  children: o,
29
- textTight: ae = !1,
30
- maxWidth: re,
31
- maxChar: h,
30
+ textTight: le = !1,
31
+ maxWidth: oe,
32
+ maxChar: u,
32
33
  // Updated prop name
33
- maxLines: z,
34
- textAlign: H,
35
- fontWeight: u = d.regular,
36
- fontSize: K,
37
- textWrap: T = "wrap",
38
- wordBreak: R = "initial",
39
- replacements: C,
40
- context: O = "one",
41
- testId: M,
42
- translate: g = !0,
43
- className: I = "",
44
- color: P,
45
- display: F = "block",
46
- uppercase: ne = !1,
34
+ maxLines: R,
35
+ textAlign: I,
36
+ fontWeight: g = d.regular,
37
+ fontSize: O,
38
+ textWrap: M = "wrap",
39
+ wordBreak: P = "initial",
40
+ replacements: S,
41
+ context: F = "one",
42
+ testId: v,
43
+ translate: y = !0,
44
+ className: U = "",
45
+ color: _,
46
+ display: q = "block",
47
+ uppercase: ce = !1,
47
48
  links: f,
48
- balanced: S,
49
- disabled: se,
50
- capitalize: ie = !1,
51
- isBlurred: le = !1,
52
- seeMore: r = !1,
53
- ellipsis: oe,
54
- allowNewLines: U = !1,
55
- animateWords: q = void 0,
56
- ...W
57
- } = a, D = ee.translationsWritingStyle ? ee.translationsWritingStyle : "personal";
49
+ balanced: W,
50
+ disabled: de,
51
+ capitalize: fe = !1,
52
+ isBlurred: pe = !1,
53
+ seeMore: a = !1,
54
+ ellipsis: he,
55
+ allowNewLines: D = !1,
56
+ animateWords: G = void 0,
57
+ highlightWords: x,
58
+ highlightColor: J,
59
+ highlightMode: E = "background",
60
+ highlightCaseInsensitive: me = !1,
61
+ ...L
62
+ } = n, Q = ae.translationsWritingStyle ? ae.translationsWritingStyle : "personal";
58
63
  let t = o;
59
- const [G, ce] = A(!1), [v, de] = A(!1), [J, Q] = A(!1), X = (e) => s.shouldTrackTranslations ? e.wasTranslated : s.shouldTrackTranslationKeys ? e.hasTranslationKey : !1;
60
- let p = null, y = "";
61
- typeof o == "string" ? y = o : y = B(o);
62
- const c = typeof r == "object" && (r.seeMoreVisible === !0 || r.seeMoreVisible === void 0);
63
- p = te(() => {
64
- const e = k.get(y, C, O, D), n = he(f, e.value);
65
- return h && typeof n == "string" && (e.value.length > h ? Q(!0) : Q(!1)), {
66
- value: n,
67
- fixedValue: n,
64
+ const [X, ue] = z(!1), [N, ge] = z(!1), [Y, Z] = z(!1), ee = (e) => l.shouldTrackTranslations ? e.wasTranslated : l.shouldTrackTranslationKeys ? e.hasTranslationKey : !1;
65
+ let p = null, b = "";
66
+ typeof o == "string" ? b = o : b = H(o);
67
+ const c = typeof a == "object" && (a.seeMoreVisible === !0 || a.seeMoreVisible === void 0);
68
+ if (p = ie(() => {
69
+ const e = T.get(b, S, F, Q), r = ke(f, e.value);
70
+ return u && typeof r == "string" && (e.value.length > u ? Z(!0) : Z(!1)), {
71
+ value: r,
72
+ fixedValue: r,
68
73
  wasTranslated: e.wasTranslated
69
74
  // include other properties from the translation object as needed
70
75
  };
71
- }, [C, o, O, D, f]), t = g ? ue(p.value, {
76
+ }, [S, o, F, Q, f]), t = y ? Ce(p.value, {
72
77
  htmlparser2: {
73
78
  lowerCaseTags: !1
74
79
  }
75
- }) : k.justReplace(y, C), te(() => {
76
- g && (s.shouldTrackTranslations || s.shouldTrackTranslationKeys) && (ce(X(p)), X(p) ? s.addTranslated(B(o)) : s.addUntranslated(B(o)));
77
- }, [p, s.shouldTrackTranslations, s.shouldTrackTranslationKeys]);
78
- const L = () => {
80
+ }) : T.justReplace(b, S), typeof t == "string" && (x != null && x.length)) {
81
+ const e = {
82
+ backgroundColor: E === "background" ? J : void 0,
83
+ color: E === "text" ? J : void 0,
84
+ fontWeight: E === "bold" ? "bold" : void 0
85
+ };
86
+ x.forEach((r) => {
87
+ if (me) {
88
+ const s = new RegExp(r.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "gi"), h = t.match(s);
89
+ h && h.forEach((re) => {
90
+ t = t.replace(re, se.renderToString(i("span", {
91
+ style: e,
92
+ children: re
93
+ })));
94
+ });
95
+ } else
96
+ t = t.replace(r, se.renderToString(i("span", {
97
+ style: e,
98
+ children: r
99
+ })));
100
+ });
101
+ }
102
+ ie(() => {
103
+ y && (l.shouldTrackTranslations || l.shouldTrackTranslationKeys) && (ue(ee(p)), ee(p) ? l.addTranslated(H(o)) : l.addUntranslated(H(o)));
104
+ }, [p, l.shouldTrackTranslations, l.shouldTrackTranslationKeys]);
105
+ const j = () => {
79
106
  let e = `rc-text ${m}`;
80
- return T && (e += ` text-${T}`), R && (e += ` text-${R}`), ae && (e += " text-tight"), le && (e += " text-isBlurred"), U && (e += " notranslate"), g || (e += " notranslate"), (s.shouldTrackTranslations || s.shouldTrackTranslationKeys) && (G || (e += " not-translated"), G && (e += " was-translated"), g || (e += " do-not-translate")), ne && (e += " uppercase"), ie && (e += " text-capitalize"), I && (e += ` ${I}`), e;
81
- }, N = () => {
107
+ return M && (e += ` text-${M}`), P && (e += ` text-${P}`), le && (e += " text-tight"), pe && (e += " text-isBlurred"), D && (e += " notranslate"), y || (e += " notranslate"), (l.shouldTrackTranslations || l.shouldTrackTranslationKeys) && (X || (e += " not-translated"), X && (e += " was-translated"), y || (e += " do-not-translate")), ce && (e += " uppercase"), fe && (e += " text-capitalize"), U && (e += ` ${U}`), e;
108
+ }, $ = () => {
82
109
  const e = {};
83
- return se && (e.color = _("--n300")), P && (e.color = _(P)), u && (u === d.regular && (e.fontWeight = "normal"), u === d.medium && (e.fontWeight = 500), u === d.bold && (e.fontWeight = "bold")), K && (e.fontSize = K), H && (e.textAlign = H), oe && (e.whiteSpace = T === "wrap" ? "unset" : "nowrap", e.overflow = "hidden", e.textOverflow = "ellipsis", e.wordBreak = a.wordBreak || "break-word", e.maxWidth = re || "100%"), F && (e.display = F), e;
84
- }, j = () => {
85
- typeof r == "object" && !c || de((e) => !e);
86
- }, Y = (e) => i("b", {
110
+ return de && (e.color = ne("--n300")), _ && (e.color = ne(_)), g && (g === d.regular && (e.fontWeight = "normal"), g === d.medium && (e.fontWeight = 500), g === d.bold && (e.fontWeight = "bold")), O && (e.fontSize = O), I && (e.textAlign = I), he && (e.whiteSpace = M === "wrap" ? "unset" : "nowrap", e.overflow = "hidden", e.textOverflow = "ellipsis", e.wordBreak = n.wordBreak || "break-word", e.maxWidth = oe || "100%"), q && (e.display = q), e;
111
+ }, A = () => {
112
+ typeof a == "object" && !c || ge((e) => !e);
113
+ }, te = (e) => i("b", {
87
114
  style: {
88
115
  cursor: "pointer"
89
116
  },
90
- children: k.get(e).value
91
- }), E = () => {
92
- if (U && typeof t == "string" && !r && (t = t.replaceAll(`
117
+ children: T.get(e).value
118
+ }), B = () => {
119
+ if (D && typeof t == "string" && !a && (t = t.replaceAll(`
93
120
  `, "<br>")), typeof t == "string") {
94
- const e = b(t);
95
- if (typeof r == "boolean" && r) {
96
- const n = Y(v ? "See Less" : "See More"), l = v ? t : `${t.slice(0, h)}...`;
97
- J && (e.children = x(fe, {
98
- children: [b(l).children, " ", i("a", {
99
- onClick: j,
100
- children: n
121
+ const e = C(t);
122
+ if (typeof a == "boolean" && a) {
123
+ const r = te(N ? "See Less" : "See More"), s = N ? t : `${t.slice(0, u)}...`;
124
+ Y && (e.children = k(ye, {
125
+ children: [C(s).children, " ", i("a", {
126
+ onClick: A,
127
+ children: r
101
128
  })]
102
129
  }));
103
130
  } else if (
104
131
  //@ts-ignore
105
132
  c && //@ts-ignore
106
- r.seeMoreContent && z
133
+ a.seeMoreContent && R
107
134
  )
108
- r && (e.children = x("span", {
135
+ a && (e.children = k("span", {
109
136
  className: "see-more",
110
137
  style: {
111
- WebkitLineClamp: z
138
+ WebkitLineClamp: R
112
139
  },
113
- children: [b(t).children, t.length > 100 && i("span", {
140
+ children: [C(t).children, t.length > 100 && i("span", {
114
141
  className: "see-more-content",
115
142
  children: (
116
143
  //@ts-ignore
117
- c && r.seeMoreContent
144
+ c && a.seeMoreContent
118
145
  )
119
146
  })]
120
147
  }));
121
148
  else if (c && //@ts-ignore
122
- r.seeMoreContent && //@ts-ignore
123
- r.seeLessContent || typeof r == "object" && r.seeMoreVisible === !1)
124
- if (v)
125
- r && (e.children = x("span", {
126
- onClick: j,
149
+ a.seeMoreContent && //@ts-ignore
150
+ a.seeLessContent || typeof a == "object" && a.seeMoreVisible === !1)
151
+ if (N)
152
+ a && (e.children = k("span", {
153
+ onClick: A,
127
154
  children: [
128
- b(t).children,
155
+ C(t).children,
129
156
  " ",
130
157
  // @ts-ignore
131
- c && r.seeLessContent
158
+ c && a.seeLessContent
132
159
  ]
133
160
  }));
134
161
  else {
135
- const n = typeof t == "string" ? `${t.slice(0, h)}...` : t;
136
- J && (e.children = x("span", {
137
- onClick: j,
162
+ const r = typeof t == "string" ? `${t.slice(0, u)}...` : t;
163
+ Y && (e.children = k("span", {
164
+ onClick: A,
138
165
  children: [
139
166
  // @ts-ignore
140
- n,
167
+ r,
141
168
  c && //@ts-ignore
142
- r.seeMoreContent
169
+ a.seeMoreContent
143
170
  ]
144
171
  }));
145
172
  }
146
- return q && (e.children = me(t, q)), e;
173
+ return G && (e.children = be(t, G)), e;
147
174
  }
148
175
  return t && typeof t == "object" && //@ts-ignore
149
- typeof t[0] == "object" && f && typeof f == "object" && t.forEach((e, n) => {
176
+ typeof t[0] == "object" && f && typeof f == "object" && t.forEach((e, r) => {
150
177
  if (e.type === "a") {
151
- const l = f[e.props.children], Z = k.get(l.text);
152
- l.href && ((t ?? [])[n] = w.createElement("a", {
153
- href: l.href,
154
- key: n,
155
- target: l.target,
178
+ const s = f[e.props.children], h = T.get(s.text);
179
+ s.href && ((t ?? [])[r] = w.createElement("a", {
180
+ href: s.href,
181
+ key: r,
182
+ target: s.target,
156
183
  style: {
157
184
  cursor: "pointer"
158
185
  }
159
- }, w.createElement("em", {}, Z.value))), l.onClick && ((t ?? [])[n] = w.createElement("a", {
160
- onClick: l.onClick,
161
- key: n,
186
+ }, w.createElement("em", {}, h.value))), s.onClick && ((t ?? [])[r] = w.createElement("a", {
187
+ onClick: s.onClick,
188
+ key: r,
162
189
  role: "link",
163
190
  style: {
164
191
  cursor: "pointer"
165
192
  }
166
- }, w.createElement("em", {}, Z.value)));
193
+ }, w.createElement("em", {}, h.value)));
167
194
  }
168
195
  }), {
169
196
  children: t
170
197
  };
171
198
  };
172
199
  if (m.indexOf("heading") >= 0) {
173
- const n = `h${m.split("-")[1]}`;
174
- return i($, {
175
- balanced: S,
176
- children: i(n, {
177
- "data-testid": M,
178
- className: L(),
179
- style: N(),
180
- ...E(),
181
- ...W
200
+ const r = `h${m.split("-")[1]}`;
201
+ return i(V, {
202
+ balanced: W,
203
+ children: i(r, {
204
+ "data-testid": v,
205
+ className: j(),
206
+ style: $(),
207
+ ...B(),
208
+ ...L
182
209
  })
183
210
  });
184
211
  }
185
- return m.indexOf("display") >= 0 ? i($, {
186
- balanced: S,
212
+ return m.indexOf("display") >= 0 ? i(V, {
213
+ balanced: W,
187
214
  children: i("h1", {
188
- "data-testid": M,
189
- className: L(),
190
- style: N(),
191
- ...E(),
192
- ...W
215
+ "data-testid": v,
216
+ className: j(),
217
+ style: $(),
218
+ ...B(),
219
+ ...L
193
220
  })
194
- }) : i($, {
195
- balanced: S,
221
+ }) : i(V, {
222
+ balanced: W,
196
223
  children: i("span", {
197
- "data-testid": M,
198
- className: pe("paragraph", L()),
199
- style: N(),
200
- ...E(),
201
- ...W
224
+ "data-testid": v,
225
+ className: xe("paragraph", j()),
226
+ style: $(),
227
+ ...B(),
228
+ ...L
202
229
  })
203
230
  });
204
231
  };
205
232
  export {
206
233
  d as FontWeights,
207
- Ee as Text,
208
- V as TextTypes
234
+ Ke as Text,
235
+ K as TextTypes
209
236
  };
@@ -1,138 +1,13 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { classNames as Y } from "./index-classNames.js";
3
- import { parseCssVariable as M } from "./index-css-variables-parser.js";
4
- import { sanitizeHtml as Z } from "./index-sanitize-html.js";
5
- import { translationHelper as r } from "./index-translation-helper.js";
6
- import { translationService as O } from "./index-translation.service.js";
7
- import { rcWindow as F } from "./index-window.store.js";
8
- import { childrenAsText as C } from "./index-child-to-text.js";
9
- import { TextTypes as ee, FontWeights as m } from "./index-Text.js";
10
- import { parseFullLinks as te } from "./index-text-links-parser.js";
11
- import { TextWrapBalancer as E } from "./index-TextWrapBalancer.js";
12
- import u, { useState as re, useMemo as R } from "react";
13
- import { s as B } from "./index-server.browser.js";
14
- const ue = (P) => {
15
- const {
16
- type: d = ee.text,
17
- children: l,
18
- textTight: U = !1,
19
- ellipsis: V,
20
- maxWidth: q,
21
- maxChar: y,
22
- textAlign: v,
23
- fontWeight: p = m.regular,
24
- fontSize: z,
25
- textWrap: $ = "wrap",
26
- replacements: N,
27
- context: H = "one",
28
- testId: T,
29
- translate: x = !0,
30
- className: K = "",
31
- color: _,
32
- display: j = "block",
33
- uppercase: D = !1,
34
- links: h,
35
- balanced: b,
36
- disabled: G,
37
- capitalize: J = !1,
38
- highlightWords: k,
39
- highlightColor: g,
40
- highlightMode: o = "background",
41
- caseInsensitive: Q = !1
42
- } = P, A = F.translationsWritingStyle ? F.translationsWritingStyle : "personal";
43
- let t = l;
44
- const [I, X] = re(!1), L = (e) => r.shouldTrackTranslations ? e.wasTranslated : r.shouldTrackTranslationKeys ? e.hasTranslationKey : !1;
45
- let c = null, a = "";
46
- typeof l == "string" ? a = l : a = C(l), c = R(() => O.get(a, N, H, A), [N, l, H, A]), c.value = te(h, c.value), k && k.length && k.forEach((e) => {
47
- if (Q) {
48
- const n = new RegExp(e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "gi"), i = a.match(n);
49
- i && i.forEach((f) => {
50
- a = a.replace(f, B.renderToString(s("span", {
51
- style: {
52
- backgroundColor: o === "background" ? g : void 0,
53
- color: o === "text" ? g : void 0,
54
- fontWeight: o === "bold" ? "bold" : void 0
55
- },
56
- children: f
57
- })));
58
- });
59
- } else
60
- a = a.replace(e, B.renderToString(s("span", {
61
- style: {
62
- backgroundColor: o === "background" ? g : void 0,
63
- color: o === "text" ? g : void 0,
64
- fontWeight: o === "bold" ? "bold" : void 0
65
- },
66
- children: e
67
- })));
68
- }), y && typeof t == "string" && t.length > y && (t = `${t.slice(0, y)}...`), R(() => {
69
- x && (r.shouldTrackTranslations || r.shouldTrackTranslationKeys) && (X(L(c)), L(c) ? r.addTranslated(C(l)) : r.addUntranslated(C(l)));
70
- }, [c, r.shouldTrackTranslations, r.shouldTrackTranslationKeys]);
71
- const W = () => {
72
- let e = `rc-text ${d}`;
73
- return $ && (e += ` text-${$}`), U && (e += " text-tight"), x || (e += " notranslate"), (r.shouldTrackTranslations || r.shouldTrackTranslationKeys) && (I || (e += " not-translated"), I && (e += " was-translated"), x || (e += " do-not-translate")), D && (e += " uppercase"), J && (e += " text-capitalize"), K && (e += ` ${K}`), e;
74
- }, S = () => {
75
- const e = {};
76
- return G && (e.color = M("--n300")), _ && (e.color = M(_)), p && (p === m.regular && (e.fontWeight = "normal"), p === m.medium && (e.fontWeight = 500), p === m.bold && (e.fontWeight = "bold")), z && (e.fontSize = z), v && (e.textAlign = v), V && (e.whiteSpace = "nowrap", e.overflow = "hidden", e.textOverflow = "ellipsis", e.maxWidth = q || "100%"), j && (e.display = j), e;
77
- }, w = () => typeof t == "string" ? {
78
- dangerouslySetInnerHTML: {
79
- __html: Z(t, {
80
- allowedAttributes: {
81
- span: ["class"]
82
- }
83
- })
84
- }
85
- } : (t && typeof t == "object" && //@ts-ignore
86
- typeof t[0] == "object" && h && typeof h == "object" && t.forEach((e, n) => {
87
- if (e.type === "a") {
88
- const i = h[e.props.children], f = O.get(i.text);
89
- i.href && ((t ?? [])[n] = u.createElement("a", {
90
- href: i.href,
91
- key: n,
92
- style: {
93
- cursor: "pointer"
94
- }
95
- }, u.createElement("em", {}, f.value))), i.onClick && ((t ?? [])[n] = u.createElement("a", {
96
- onClick: i.onClick,
97
- key: n,
98
- style: {
99
- cursor: "pointer"
100
- }
101
- }, u.createElement("em", {}, f.value)));
102
- }
103
- }), {
104
- children: t
105
- });
106
- if (d.indexOf("heading") >= 0) {
107
- const n = `h${d.split("-")[1]}`;
108
- return s(E, {
109
- balanced: b,
110
- children: s(n, {
111
- "data-testid": T,
112
- className: W(),
113
- style: S(),
114
- ...w()
115
- })
116
- });
117
- }
118
- return d.indexOf("display") >= 0 ? s(E, {
119
- balanced: b,
120
- children: s("h1", {
121
- "data-testid": T,
122
- className: W(),
123
- style: S(),
124
- ...w()
125
- })
126
- }) : s(E, {
127
- balanced: b,
128
- children: s("span", {
129
- "data-testid": T,
130
- className: Y("paragraph", W()),
131
- style: S(),
132
- ...w()
133
- })
134
- });
135
- };
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { Text as r } from "./index-Text.js";
3
+ import "react";
4
+ const s = ({
5
+ caseInsensitive: t,
6
+ ...i
7
+ }) => e(r, {
8
+ ...i,
9
+ highlightCaseInsensitive: t
10
+ });
136
11
  export {
137
- ue as TextHighlighted
12
+ s as TextHighlighted
138
13
  };
@@ -11,7 +11,7 @@ import { useDefaultProps as ye } from "./index-DefaultPropsProvider.js";
11
11
  import Wo from "./index-Grow.js";
12
12
  import ve from "./index-useTheme.js";
13
13
  import j, { Timeout as Pe } from "./index-useTimeout.js";
14
- import we from "./index-useControlled2.js";
14
+ import we from "./index-useControlled.js";
15
15
  import Re from "./index-useId2.js";
16
16
  import Bo from "./index-useEventCallback2.js";
17
17
  import xe from "./index-useIsFocusVisible2.js";
@@ -9,7 +9,7 @@ import { getYearPickerUtilityClass as ne } from "./index-yearPickerClasses.js";
9
9
  import { parseNonNullablePickerDate as O } from "./index-date-utils.js";
10
10
  import { jsx as S } from "react/jsx-runtime";
11
11
  import ce from "./index-useTheme.js";
12
- import le from "./index-useControlled2.js";
12
+ import le from "./index-useControlled.js";
13
13
  import ue from "./index-useForkRef.js";
14
14
  import ie from "./index-styled.js";
15
15
  import fe from "./index-useThemeProps.js";
@@ -1,7 +1,4 @@
1
- import { getDefaultExportFromCjs as r } from "./index-_commonjsHelpers.js";
2
- import { __require as o } from "./index-axios.js";
3
- var t = o();
4
- const a = /* @__PURE__ */ r(t);
1
+ var r = {};
5
2
  export {
6
- a as default
3
+ r as __exports
7
4
  };
@@ -1,4 +1,7 @@
1
- var r = {};
1
+ import { getDefaultExportFromCjs as r } from "./index-_commonjsHelpers.js";
2
+ import { __require as o } from "./index-axios.js";
3
+ var t = o();
4
+ const a = /* @__PURE__ */ r(t);
2
5
  export {
3
- r as __exports
6
+ a as default
4
7
  };
package/dist/index-cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- import { __exports as e } from "./index-_virtual65.js";
1
+ import { __exports as e } from "./index-_virtual66.js";
2
2
  import { __require as c } from "./index-style-to-object.js";
3
3
  import { __require as q } from "./index-utilities4.js";
4
4
  var o;
@@ -1,4 +1,4 @@
1
- import { __exports as a } from "./index-_virtual20.js";
1
+ import { __exports as a } from "./index-_virtual19.js";
2
2
  import { __require as c } from "./index-DateRange2.js";
3
3
  import { __require as l } from "./index-Calendar.js";
4
4
  import { __require as o } from "./index-DateRangePicker2.js";
@@ -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,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-_virtual66.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;
@@ -14,7 +14,7 @@ const a = {
14
14
  excessiveCapitalisation: /\b(?:\w*[A-Z]){2}\w*\b/,
15
15
  at: /@/g,
16
16
  domain: /^(?:https?:\/\/)?(?:www\.)?([^\/]+)/i,
17
- path: /\//g,
17
+ path: /[^a-zA-Z0-9_\-À-ɏḀ-ỿ ]/g,
18
18
  fullStopMark: /\./g
19
19
  };
20
20
  export {