@rankingcoach/vanguard 1.8.0 → 1.10.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 (183) 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-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-Bullets.js +12 -10
  10. package/dist/index-Bullets.module.scss.js +6 -4
  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-CardMotion.config.js +159 -0
  16. package/dist/index-CardMotion.constants.js +23 -0
  17. package/dist/index-CardMotion.js +93 -0
  18. package/dist/index-CardMotion.module.scss.js +9 -0
  19. package/dist/index-Chip.js +1 -1
  20. package/dist/index-ClickAwayListener.js +1 -1
  21. package/dist/index-ClockPicker.js +1 -1
  22. package/dist/index-Collapse2.js +1 -1
  23. package/dist/index-DateInput.js +4 -4
  24. package/dist/index-DatePicker2.js +1 -1
  25. package/dist/index-DayCell.js +2 -2
  26. package/dist/index-DefaultPropsProvider.js +1 -1
  27. package/dist/index-DefaultPropsProvider2.js +1 -1
  28. package/dist/index-DesktopDatePicker.js +1 -1
  29. package/dist/index-Dialog.js +1 -1
  30. package/dist/index-DialogActions.js +1 -1
  31. package/dist/index-DialogContent.js +1 -1
  32. package/dist/index-Drawer2.js +1 -1
  33. package/dist/index-Fade.js +1 -1
  34. package/dist/index-FilledInput.js +1 -1
  35. package/dist/index-FocusTrap.js +1 -1
  36. package/dist/index-FormControl2.js +1 -1
  37. package/dist/index-FormHelperText.js +1 -1
  38. package/dist/index-FormLabel.js +1 -1
  39. package/dist/index-GlobalStyles.js +1 -1
  40. package/dist/index-GlobalStyles2.js +1 -1
  41. package/dist/index-GlobalStyles3.js +1 -1
  42. package/dist/index-Grid.js +1 -1
  43. package/dist/index-Grow.js +1 -1
  44. package/dist/index-IconButton2.js +1 -1
  45. package/dist/index-Input2.js +1 -1
  46. package/dist/index-InputAdornment.js +1 -1
  47. package/dist/index-InputBase2.js +1 -1
  48. package/dist/index-InputLabel.js +1 -1
  49. package/dist/index-InputRangeField.js +1 -1
  50. package/dist/index-LinearProgress.js +1 -1
  51. package/dist/index-List2.js +1 -1
  52. package/dist/index-ListSubheader.js +1 -1
  53. package/dist/index-LocalizationProvider.js +1 -1
  54. package/dist/index-Menu2.js +1 -1
  55. package/dist/index-MenuItem2.js +1 -1
  56. package/dist/index-MenuList.js +1 -1
  57. package/dist/index-MobileDatePicker.js +1 -1
  58. package/dist/index-Modal2.js +1 -1
  59. package/dist/index-ModalContext.js +37 -36
  60. package/dist/index-ModalTransition.js +9 -7
  61. package/dist/index-Month.js +3 -3
  62. package/dist/index-MonthPicker.js +1 -1
  63. package/dist/index-NativeSelectInput.js +1 -1
  64. package/dist/index-NotchedOutline.js +1 -1
  65. package/dist/index-OutlinedInput.js +1 -1
  66. package/dist/index-Paper.js +1 -1
  67. package/dist/index-PhotoCarouselModal.js +26 -25
  68. package/dist/index-PhotoCarouselModal.module.scss.js +6 -4
  69. package/dist/index-PickersDay.js +1 -1
  70. package/dist/index-Popover2.js +1 -1
  71. package/dist/index-Popper.js +1 -1
  72. package/dist/index-Portal.js +1 -1
  73. package/dist/index-PropTypes.js +1 -1
  74. package/dist/index-Ripple.js +1 -1
  75. package/dist/index-RtlProvider.js +1 -1
  76. package/dist/index-ScrollbarSize.js +1 -1
  77. package/dist/index-Select2.js +1 -1
  78. package/dist/index-SelectInput2.js +1 -1
  79. package/dist/index-Skeleton2.js +1 -1
  80. package/dist/index-Slide.js +1 -1
  81. package/dist/index-SlideCarousel.js +117 -138
  82. package/dist/index-SlideCarousel.module.scss.js +22 -14
  83. package/dist/index-Slider2.js +1 -1
  84. package/dist/index-SliderValueLabel.js +1 -1
  85. package/dist/index-Snackbar2.js +1 -1
  86. package/dist/index-SnackbarContent.js +1 -1
  87. package/dist/index-StyledEngineProvider.js +1 -1
  88. package/dist/index-SvgIcon.js +1 -1
  89. package/dist/index-Tab2.js +1 -1
  90. package/dist/index-TabScrollButton.js +1 -1
  91. package/dist/index-Tabs2.js +1 -1
  92. package/dist/index-Text.js +158 -131
  93. package/dist/index-TextField.js +1 -1
  94. package/dist/index-TextHighlighted.js +11 -136
  95. package/dist/index-TextareaAutosize.js +1 -1
  96. package/dist/index-ToggleButton2.js +1 -1
  97. package/dist/index-ToggleButtonGroup2.js +1 -1
  98. package/dist/index-Toolbar2.js +1 -1
  99. package/dist/index-Tooltip.js +1 -1
  100. package/dist/index-TouchRipple.js +1 -1
  101. package/dist/index-Transition.js +1 -1
  102. package/dist/index-TransitionGroup.js +1 -1
  103. package/dist/index-Typography.js +1 -1
  104. package/dist/index-YearPicker.js +1 -1
  105. package/dist/index-_virtual16.js +3 -5
  106. package/dist/index-_virtual17.js +5 -3
  107. package/dist/index-_virtual66.js +2 -2
  108. package/dist/index-_virtual67.js +4 -2
  109. package/dist/index-_virtual68.js +2 -4
  110. package/dist/index-_virtual69.js +4 -2
  111. package/dist/index-_virtual70.js +2 -2
  112. package/dist/index-_virtual71.js +1 -1
  113. package/dist/index-_virtual72.js +4 -2
  114. package/dist/index-_virtual73.js +1 -1
  115. package/dist/index-_virtual74.js +2 -4
  116. package/dist/index-_virtual75.js +2 -4
  117. package/dist/index-_virtual76.js +2 -2
  118. package/dist/index-accessibility.js +1 -1
  119. package/dist/index-elementAcceptingRef.js +1 -1
  120. package/dist/index-elementTypeAcceptingRef.js +1 -1
  121. package/dist/index-helpers3.js +1 -1
  122. package/dist/index-lib5.js +1 -1
  123. package/dist/index-react-spring_animated.modern.js +6 -6
  124. package/dist/index-react-spring_core.modern.js +56 -54
  125. package/dist/index-react-spring_web.modern.js +9 -8
  126. package/dist/index-refType.js +1 -1
  127. package/dist/index-regex.js +1 -1
  128. package/dist/index-responsivePropType.js +1 -1
  129. package/dist/index-use-carousel-movement.js +138 -0
  130. package/dist/index.js +300 -296
  131. package/dist/types/core/CardMotion/CardMotion.config.d.ts +855 -0
  132. package/dist/types/core/CardMotion/CardMotion.constants.d.ts +20 -0
  133. package/dist/types/core/CardMotion/CardMotion.d.ts +3 -0
  134. package/dist/types/core/CardMotion/CardMotion.types.d.ts +60 -0
  135. package/dist/types/core/CardMotion/index.d.ts +2 -0
  136. package/dist/types/core/CardMotion/stories/CustomMotion.story.d.ts +2 -0
  137. package/dist/types/core/CardMotion/stories/Default.story.d.ts +2 -0
  138. package/dist/types/core/CardMotion/stories/GlowIn.story.d.ts +2 -0
  139. package/dist/types/core/CardMotion/stories/GlowPreset.story.d.ts +2 -0
  140. package/dist/types/core/CardMotion/stories/Hoverable.story.d.ts +2 -0
  141. package/dist/types/core/CardMotion/stories/StaggeredGlowGroup.story.d.ts +2 -0
  142. package/dist/types/core/CardMotion/stories/VisibilityToggle.story.d.ts +2 -0
  143. package/dist/types/core/CardMotion/stories/_CardMotion.default.d.ts +3 -0
  144. package/dist/types/core/Modal/ModalContext.d.ts +1 -0
  145. package/dist/types/core/Modal/stories/StackingPermutations.story.d.ts +71 -0
  146. package/dist/types/core/Modal/stories/TwoModalsOverlapping.story.d.ts +2 -0
  147. package/dist/types/core/Modal/stories/TwoModalsOverlappingDifferentAnimations.story.d.ts +2 -0
  148. package/dist/types/core/SlideCarousel/Bullets/Bullets.d.ts +2 -0
  149. package/dist/types/core/SlideCarousel/SlideCarousel.d.ts +6 -0
  150. package/dist/types/core/SlideCarousel/hooks/use-carousel-movement.d.ts +27 -0
  151. package/dist/types/core/SlideCarousel/index.d.ts +2 -0
  152. package/dist/types/core/SlideCarousel/stories/SlideCarouselAutoPlay.story.d.ts +2 -0
  153. package/dist/types/core/SlideCarousel/stories/SlideCarouselBasic.story.d.ts +2 -0
  154. package/dist/types/core/SlideCarousel/stories/SlideCarouselBulletsBelow.story.d.ts +2 -0
  155. package/dist/types/core/SlideCarousel/stories/SlideCarouselControlled.story.d.ts +2 -0
  156. package/dist/types/core/SlideCarousel/stories/SlideCarouselCustomArrows.story.d.ts +2 -0
  157. package/dist/types/core/SlideCarousel/stories/SlideCarouselCustomBullets.story.d.ts +2 -0
  158. package/dist/types/core/SlideCarousel/stories/SlideCarouselMultipleSlidesAtOnce.story.d.ts +2 -0
  159. package/dist/types/core/SlideCarousel/stories/SlideCarouselOutsideArrows.story.d.ts +2 -0
  160. package/dist/types/core/SlideCarousel/stories/SlideCarouselWithArrows.story.d.ts +2 -0
  161. package/dist/types/core/SlideCarousel/stories/SlideCarouselWithArrowsAndBullets.story.d.ts +2 -0
  162. package/dist/types/core/SlideCarousel/stories/SlideCarouselWithBullets.story.d.ts +2 -0
  163. package/dist/types/core/SlideCarousel/stories/_SlideCarousel.default.d.ts +13 -0
  164. package/dist/types/core/Text/Text.types.d.ts +4 -0
  165. package/dist/types/core/Text/stories/stories/HighlightCaseInsensitive.story.d.ts +3 -0
  166. package/dist/types/core/Text/stories/stories/HighlightDefault.story.d.ts +2 -0
  167. package/dist/types/core/Text/stories/stories/HighlightModeBackground.story.d.ts +2 -0
  168. package/dist/types/core/Text/stories/stories/HighlightModeBold.story.d.ts +2 -0
  169. package/dist/types/core/Text/stories/stories/HighlightModeText.story.d.ts +2 -0
  170. package/dist/types/core/Text/stories/stories/HighlightWithEmphasis.story.d.ts +2 -0
  171. package/dist/types/core/TextHighlighted/TextHighlighted.d.ts +4 -1
  172. package/dist/types/index.d.ts +4 -0
  173. package/dist/vanguard-asset-analysis.json +1 -1
  174. package/dist/vanguard.css +1 -1
  175. package/dist-wordpress/index.js +17776 -17742
  176. package/dist-wordpress/types/core/PageSection/GradientPrimaryMeshBackground.d.ts +1 -0
  177. package/dist-wordpress/types/core/PageSection/PageSection.d.ts +43 -0
  178. package/dist-wordpress/types/core/PageSection/index.d.ts +2 -0
  179. package/dist-wordpress/types/core/TextHighlighted/TextHighlighted.d.ts +4 -1
  180. package/dist-wordpress/types/index.d.ts +2 -0
  181. package/dist-wordpress/vanguard.css +1 -1
  182. package/package.json +1 -1
  183. 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,7 +1,7 @@
1
1
  import r from "./index-extends.js";
2
2
  import J from "./index-objectWithoutPropertiesLoose.js";
3
3
  import * as K from "react";
4
- import e from "./index-_virtual16.js";
4
+ import e from "./index-_virtual17.js";
5
5
  import { clsx as Q } from "./index-clsx.js";
6
6
  import X from "./index-styled.js";
7
7
  import { getTextFieldUtilityClass as Y } from "./index-textFieldClasses.js";
@@ -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
  };
@@ -1,7 +1,7 @@
1
1
  import z from "./index-extends.js";
2
2
  import M from "./index-objectWithoutPropertiesLoose.js";
3
3
  import * as a from "react";
4
- import e from "./index-_virtual16.js";
4
+ import e from "./index-_virtual17.js";
5
5
  import { jsxs as B, jsx as O } from "react/jsx-runtime";
6
6
  import L from "./index-useForkRef.js";
7
7
  import T from "./index-ownerWindow2.js";
@@ -1,7 +1,7 @@
1
1
  import x from "./index-objectWithoutPropertiesLoose.js";
2
2
  import i from "./index-extends.js";
3
3
  import * as v from "react";
4
- import e from "./index-_virtual16.js";
4
+ import e from "./index-_virtual17.js";
5
5
  import { clsx as D } from "./index-clsx.js";
6
6
  import F from "./index-styled.js";
7
7
  import O, { getToggleButtonUtilityClass as G } from "./index-toggleButtonClasses.js";
@@ -2,7 +2,7 @@ import E from "./index-objectWithoutPropertiesLoose.js";
2
2
  import g from "./index-extends.js";
3
3
  import * as f from "react";
4
4
  import { isFragment as _ } from "react-is";
5
- import t from "./index-_virtual16.js";
5
+ import t from "./index-_virtual17.js";
6
6
  import { clsx as D } from "./index-clsx.js";
7
7
  import M from "./index-styled.js";
8
8
  import o, { getToggleButtonGroupUtilityClass as w } from "./index-toggleButtonGroupClasses.js";
@@ -1,7 +1,7 @@
1
1
  import f from "./index-objectWithoutPropertiesLoose.js";
2
2
  import a 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 b } from "./index-clsx.js";
6
6
  import g from "./index-styled.js";
7
7
  import { getToolbarUtilityClass as v } from "./index-toolbarClasses.js";
@@ -1,7 +1,7 @@
1
1
  import be from "./index-objectWithoutPropertiesLoose.js";
2
2
  import n from "./index-extends.js";
3
3
  import * as p from "react";
4
- import o from "./index-_virtual16.js";
4
+ import o from "./index-_virtual17.js";
5
5
  import { clsx as D } from "./index-clsx.js";
6
6
  import { c as Uo } from "./index-colorManipulator2.js";
7
7
  import { useRtl as ge } from "./index-RtlProvider.js";
@@ -1,7 +1,7 @@
1
1
  import B from "./index-extends.js";
2
2
  import G from "./index-objectWithoutPropertiesLoose.js";
3
3
  import * as e from "react";
4
- import _ from "./index-_virtual16.js";
4
+ import _ from "./index-_virtual17.js";
5
5
  import { clsx as c } from "./index-clsx.js";
6
6
  import j from "./index-styled.js";
7
7
  import U from "./index-Ripple.js";
@@ -1,6 +1,6 @@
1
1
  import C from "./index-objectWithoutPropertiesLoose.js";
2
2
  import D from "./index-inheritsLoose.js";
3
- import o from "./index-_virtual16.js";
3
+ import o from "./index-_virtual17.js";
4
4
  import v from "react";
5
5
  import b from "react-dom";
6
6
  import T from "./index-config3.js";
@@ -2,7 +2,7 @@ import m from "./index-objectWithoutPropertiesLoose.js";
2
2
  import f from "./index-extends.js";
3
3
  import v from "./index-assertThisInitialized.js";
4
4
  import x from "./index-inheritsLoose.js";
5
- import d from "./index-_virtual16.js";
5
+ import d from "./index-_virtual17.js";
6
6
  import s from "react";
7
7
  import c from "./index-TransitionGroupContext.js";
8
8
  import { getInitialChildMapping as E, getNextChildMapping as y, getChildMapping as g } from "./index-ChildMapping.js";
@@ -1,7 +1,7 @@
1
1
  import B from "./index-objectWithoutPropertiesLoose.js";
2
2
  import s from "./index-extends.js";
3
3
  import * as W from "react";
4
- import o from "./index-_virtual16.js";
4
+ import o from "./index-_virtual17.js";
5
5
  import { clsx as O } from "./index-clsx.js";
6
6
  import j from "./index-styled.js";
7
7
  import { getTypographyUtilityClass as M } from "./index-typographyClasses.js";
@@ -1,6 +1,6 @@
1
1
  import ee from "./index-extends.js";
2
2
  import * as s from "react";
3
- import o from "./index-_virtual16.js";
3
+ import o from "./index-_virtual17.js";
4
4
  import { clsx as te } from "./index-clsx.m.js";
5
5
  import { PickersYear as re } from "./index-PickersYear.js";
6
6
  import { useNow as oe, useUtils as E, useDefaultDates as se } from "./index-useUtils.js";
@@ -1,7 +1,5 @@
1
- import { getDefaultExportFromCjs as r } from "./index-_commonjsHelpers.js";
2
- import { __require as o } from "./index-prop-types.js";
3
- var p = /* @__PURE__ */ o();
4
- const s = /* @__PURE__ */ r(p);
1
+ import { __require as e } from "./index-exenv.js";
2
+ var o = e();
5
3
  export {
6
- s as default
4
+ o as e
7
5
  };