@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.
- package/dist/index-Accordion2.js +1 -1
- package/dist/index-AccordionDetails.js +1 -1
- package/dist/index-AccordionSummary.js +1 -1
- package/dist/index-AppBar2.js +1 -1
- package/dist/index-Autocomplete2.js +1 -1
- package/dist/index-Backdrop.js +1 -1
- package/dist/index-BasePopper.js +1 -1
- package/dist/index-Box.js +1 -1
- package/dist/index-Bullets.js +12 -10
- package/dist/index-Bullets.module.scss.js +6 -4
- package/dist/index-Button2.js +1 -1
- package/dist/index-ButtonBase.js +1 -1
- package/dist/index-CSSTransition.js +1 -1
- package/dist/index-CalendarPicker.js +1 -1
- package/dist/index-CardMotion.config.js +159 -0
- package/dist/index-CardMotion.constants.js +23 -0
- package/dist/index-CardMotion.js +93 -0
- package/dist/index-CardMotion.module.scss.js +9 -0
- package/dist/index-Chip.js +1 -1
- package/dist/index-ClickAwayListener.js +1 -1
- package/dist/index-ClockPicker.js +1 -1
- package/dist/index-Collapse2.js +1 -1
- package/dist/index-DateInput.js +4 -4
- package/dist/index-DatePicker2.js +1 -1
- package/dist/index-DayCell.js +2 -2
- package/dist/index-DefaultPropsProvider.js +1 -1
- package/dist/index-DefaultPropsProvider2.js +1 -1
- package/dist/index-DesktopDatePicker.js +1 -1
- package/dist/index-Dialog.js +1 -1
- package/dist/index-DialogActions.js +1 -1
- package/dist/index-DialogContent.js +1 -1
- package/dist/index-Drawer2.js +1 -1
- package/dist/index-Fade.js +1 -1
- package/dist/index-FilledInput.js +1 -1
- package/dist/index-FocusTrap.js +1 -1
- package/dist/index-FormControl2.js +1 -1
- package/dist/index-FormHelperText.js +1 -1
- package/dist/index-FormLabel.js +1 -1
- package/dist/index-GlobalStyles.js +1 -1
- package/dist/index-GlobalStyles2.js +1 -1
- package/dist/index-GlobalStyles3.js +1 -1
- package/dist/index-Grid.js +1 -1
- package/dist/index-Grow.js +1 -1
- package/dist/index-IconButton2.js +1 -1
- package/dist/index-Input2.js +1 -1
- package/dist/index-InputAdornment.js +1 -1
- package/dist/index-InputBase2.js +1 -1
- package/dist/index-InputLabel.js +1 -1
- package/dist/index-InputRangeField.js +1 -1
- package/dist/index-LinearProgress.js +1 -1
- package/dist/index-List2.js +1 -1
- package/dist/index-ListSubheader.js +1 -1
- package/dist/index-LocalizationProvider.js +1 -1
- package/dist/index-Menu2.js +1 -1
- package/dist/index-MenuItem2.js +1 -1
- package/dist/index-MenuList.js +1 -1
- package/dist/index-MobileDatePicker.js +1 -1
- package/dist/index-Modal2.js +1 -1
- package/dist/index-ModalContext.js +37 -36
- package/dist/index-ModalTransition.js +9 -7
- package/dist/index-Month.js +3 -3
- package/dist/index-MonthPicker.js +1 -1
- package/dist/index-NativeSelectInput.js +1 -1
- package/dist/index-NotchedOutline.js +1 -1
- package/dist/index-OutlinedInput.js +1 -1
- package/dist/index-Paper.js +1 -1
- package/dist/index-PhotoCarouselModal.js +26 -25
- package/dist/index-PhotoCarouselModal.module.scss.js +6 -4
- package/dist/index-PickersDay.js +1 -1
- package/dist/index-Popover2.js +1 -1
- package/dist/index-Popper.js +1 -1
- package/dist/index-Portal.js +1 -1
- package/dist/index-PropTypes.js +1 -1
- package/dist/index-Ripple.js +1 -1
- package/dist/index-RtlProvider.js +1 -1
- package/dist/index-ScrollbarSize.js +1 -1
- package/dist/index-Select2.js +1 -1
- package/dist/index-SelectInput2.js +1 -1
- package/dist/index-Skeleton2.js +1 -1
- package/dist/index-Slide.js +1 -1
- package/dist/index-SlideCarousel.js +117 -138
- package/dist/index-SlideCarousel.module.scss.js +22 -14
- package/dist/index-Slider2.js +1 -1
- package/dist/index-SliderValueLabel.js +1 -1
- package/dist/index-Snackbar2.js +1 -1
- package/dist/index-SnackbarContent.js +1 -1
- package/dist/index-StyledEngineProvider.js +1 -1
- package/dist/index-SvgIcon.js +1 -1
- package/dist/index-Tab2.js +1 -1
- package/dist/index-TabScrollButton.js +1 -1
- package/dist/index-Tabs2.js +1 -1
- package/dist/index-Text.js +158 -131
- package/dist/index-TextField.js +1 -1
- package/dist/index-TextHighlighted.js +11 -136
- package/dist/index-TextareaAutosize.js +1 -1
- package/dist/index-ToggleButton2.js +1 -1
- package/dist/index-ToggleButtonGroup2.js +1 -1
- package/dist/index-Toolbar2.js +1 -1
- package/dist/index-Tooltip.js +1 -1
- package/dist/index-TouchRipple.js +1 -1
- package/dist/index-Transition.js +1 -1
- package/dist/index-TransitionGroup.js +1 -1
- package/dist/index-Typography.js +1 -1
- package/dist/index-YearPicker.js +1 -1
- package/dist/index-_virtual16.js +3 -5
- package/dist/index-_virtual17.js +5 -3
- package/dist/index-_virtual66.js +2 -2
- package/dist/index-_virtual67.js +4 -2
- package/dist/index-_virtual68.js +2 -4
- package/dist/index-_virtual69.js +4 -2
- package/dist/index-_virtual70.js +2 -2
- package/dist/index-_virtual71.js +1 -1
- package/dist/index-_virtual72.js +4 -2
- package/dist/index-_virtual73.js +1 -1
- package/dist/index-_virtual74.js +2 -4
- package/dist/index-_virtual75.js +2 -4
- package/dist/index-_virtual76.js +2 -2
- package/dist/index-accessibility.js +1 -1
- package/dist/index-elementAcceptingRef.js +1 -1
- package/dist/index-elementTypeAcceptingRef.js +1 -1
- package/dist/index-helpers3.js +1 -1
- package/dist/index-lib5.js +1 -1
- package/dist/index-react-spring_animated.modern.js +6 -6
- package/dist/index-react-spring_core.modern.js +56 -54
- package/dist/index-react-spring_web.modern.js +9 -8
- package/dist/index-refType.js +1 -1
- package/dist/index-regex.js +1 -1
- package/dist/index-responsivePropType.js +1 -1
- package/dist/index-use-carousel-movement.js +138 -0
- package/dist/index.js +300 -296
- package/dist/types/core/CardMotion/CardMotion.config.d.ts +855 -0
- package/dist/types/core/CardMotion/CardMotion.constants.d.ts +20 -0
- package/dist/types/core/CardMotion/CardMotion.d.ts +3 -0
- package/dist/types/core/CardMotion/CardMotion.types.d.ts +60 -0
- package/dist/types/core/CardMotion/index.d.ts +2 -0
- package/dist/types/core/CardMotion/stories/CustomMotion.story.d.ts +2 -0
- package/dist/types/core/CardMotion/stories/Default.story.d.ts +2 -0
- package/dist/types/core/CardMotion/stories/GlowIn.story.d.ts +2 -0
- package/dist/types/core/CardMotion/stories/GlowPreset.story.d.ts +2 -0
- package/dist/types/core/CardMotion/stories/Hoverable.story.d.ts +2 -0
- package/dist/types/core/CardMotion/stories/StaggeredGlowGroup.story.d.ts +2 -0
- package/dist/types/core/CardMotion/stories/VisibilityToggle.story.d.ts +2 -0
- package/dist/types/core/CardMotion/stories/_CardMotion.default.d.ts +3 -0
- package/dist/types/core/Modal/ModalContext.d.ts +1 -0
- package/dist/types/core/Modal/stories/StackingPermutations.story.d.ts +71 -0
- package/dist/types/core/Modal/stories/TwoModalsOverlapping.story.d.ts +2 -0
- package/dist/types/core/Modal/stories/TwoModalsOverlappingDifferentAnimations.story.d.ts +2 -0
- package/dist/types/core/SlideCarousel/Bullets/Bullets.d.ts +2 -0
- package/dist/types/core/SlideCarousel/SlideCarousel.d.ts +6 -0
- package/dist/types/core/SlideCarousel/hooks/use-carousel-movement.d.ts +27 -0
- package/dist/types/core/SlideCarousel/index.d.ts +2 -0
- package/dist/types/core/SlideCarousel/stories/SlideCarouselAutoPlay.story.d.ts +2 -0
- package/dist/types/core/SlideCarousel/stories/SlideCarouselBasic.story.d.ts +2 -0
- package/dist/types/core/SlideCarousel/stories/SlideCarouselBulletsBelow.story.d.ts +2 -0
- package/dist/types/core/SlideCarousel/stories/SlideCarouselControlled.story.d.ts +2 -0
- package/dist/types/core/SlideCarousel/stories/SlideCarouselCustomArrows.story.d.ts +2 -0
- package/dist/types/core/SlideCarousel/stories/SlideCarouselCustomBullets.story.d.ts +2 -0
- package/dist/types/core/SlideCarousel/stories/SlideCarouselMultipleSlidesAtOnce.story.d.ts +2 -0
- package/dist/types/core/SlideCarousel/stories/SlideCarouselOutsideArrows.story.d.ts +2 -0
- package/dist/types/core/SlideCarousel/stories/SlideCarouselWithArrows.story.d.ts +2 -0
- package/dist/types/core/SlideCarousel/stories/SlideCarouselWithArrowsAndBullets.story.d.ts +2 -0
- package/dist/types/core/SlideCarousel/stories/SlideCarouselWithBullets.story.d.ts +2 -0
- package/dist/types/core/SlideCarousel/stories/_SlideCarousel.default.d.ts +13 -0
- package/dist/types/core/Text/Text.types.d.ts +4 -0
- package/dist/types/core/Text/stories/stories/HighlightCaseInsensitive.story.d.ts +3 -0
- package/dist/types/core/Text/stories/stories/HighlightDefault.story.d.ts +2 -0
- package/dist/types/core/Text/stories/stories/HighlightModeBackground.story.d.ts +2 -0
- package/dist/types/core/Text/stories/stories/HighlightModeBold.story.d.ts +2 -0
- package/dist/types/core/Text/stories/stories/HighlightModeText.story.d.ts +2 -0
- package/dist/types/core/Text/stories/stories/HighlightWithEmphasis.story.d.ts +2 -0
- package/dist/types/core/TextHighlighted/TextHighlighted.d.ts +4 -1
- package/dist/types/index.d.ts +4 -0
- package/dist/vanguard-asset-analysis.json +1 -1
- package/dist/vanguard.css +1 -1
- package/dist-wordpress/index.js +17776 -17742
- package/dist-wordpress/types/core/PageSection/GradientPrimaryMeshBackground.d.ts +1 -0
- package/dist-wordpress/types/core/PageSection/PageSection.d.ts +43 -0
- package/dist-wordpress/types/core/PageSection/index.d.ts +2 -0
- package/dist-wordpress/types/core/TextHighlighted/TextHighlighted.d.ts +4 -1
- package/dist-wordpress/types/index.d.ts +2 -0
- package/dist-wordpress/vanguard.css +1 -1
- package/package.json +1 -1
- package/dist/types/core/TextHighlighted/stories/TextHighlightedWithXSSAttackStory.story.d.ts +0 -2
package/dist/index-Text.js
CHANGED
|
@@ -1,209 +1,236 @@
|
|
|
1
|
-
import { jsx as i, jsxs as
|
|
1
|
+
import { jsx as i, jsxs as k, Fragment as ye } from "react/jsx-runtime";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import { classNames as
|
|
4
|
-
import { parseCssVariable as
|
|
5
|
-
import { sanitizeHTMLToReactNode as
|
|
6
|
-
import { translationHelper as
|
|
7
|
-
import { translationService as
|
|
8
|
-
import { rcWindow as
|
|
9
|
-
import { applyWordAnimation as
|
|
10
|
-
import { parseFullLinks as
|
|
11
|
-
import { TextWrapBalancer as
|
|
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
|
|
15
|
-
import {
|
|
16
|
-
import
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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(
|
|
23
|
-
|
|
23
|
+
(function(n) {
|
|
24
|
+
n.regular = "regular", n.medium = "medium", n.bold = "bold";
|
|
24
25
|
})(d || (d = {}));
|
|
25
|
-
const
|
|
26
|
+
const Ke = (n) => {
|
|
26
27
|
const {
|
|
27
|
-
type: m =
|
|
28
|
+
type: m = K.text,
|
|
28
29
|
children: o,
|
|
29
|
-
textTight:
|
|
30
|
-
maxWidth:
|
|
31
|
-
maxChar:
|
|
30
|
+
textTight: le = !1,
|
|
31
|
+
maxWidth: oe,
|
|
32
|
+
maxChar: u,
|
|
32
33
|
// Updated prop name
|
|
33
|
-
maxLines:
|
|
34
|
-
textAlign:
|
|
35
|
-
fontWeight:
|
|
36
|
-
fontSize:
|
|
37
|
-
textWrap:
|
|
38
|
-
wordBreak:
|
|
39
|
-
replacements:
|
|
40
|
-
context:
|
|
41
|
-
testId:
|
|
42
|
-
translate:
|
|
43
|
-
className:
|
|
44
|
-
color:
|
|
45
|
-
display:
|
|
46
|
-
uppercase:
|
|
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:
|
|
49
|
-
disabled:
|
|
50
|
-
capitalize:
|
|
51
|
-
isBlurred:
|
|
52
|
-
seeMore:
|
|
53
|
-
ellipsis:
|
|
54
|
-
allowNewLines:
|
|
55
|
-
animateWords:
|
|
56
|
-
|
|
57
|
-
|
|
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 [
|
|
60
|
-
let p = null,
|
|
61
|
-
typeof o == "string" ?
|
|
62
|
-
const c = typeof
|
|
63
|
-
p =
|
|
64
|
-
const e =
|
|
65
|
-
return
|
|
66
|
-
value:
|
|
67
|
-
fixedValue:
|
|
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
|
-
}, [
|
|
76
|
+
}, [S, o, F, Q, f]), t = y ? Ce(p.value, {
|
|
72
77
|
htmlparser2: {
|
|
73
78
|
lowerCaseTags: !1
|
|
74
79
|
}
|
|
75
|
-
}) :
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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
|
|
81
|
-
},
|
|
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
|
|
84
|
-
},
|
|
85
|
-
typeof
|
|
86
|
-
},
|
|
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:
|
|
91
|
-
}),
|
|
92
|
-
if (
|
|
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 =
|
|
95
|
-
if (typeof
|
|
96
|
-
const
|
|
97
|
-
|
|
98
|
-
children: [
|
|
99
|
-
onClick:
|
|
100
|
-
children:
|
|
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
|
-
|
|
133
|
+
a.seeMoreContent && R
|
|
107
134
|
)
|
|
108
|
-
|
|
135
|
+
a && (e.children = k("span", {
|
|
109
136
|
className: "see-more",
|
|
110
137
|
style: {
|
|
111
|
-
WebkitLineClamp:
|
|
138
|
+
WebkitLineClamp: R
|
|
112
139
|
},
|
|
113
|
-
children: [
|
|
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 &&
|
|
144
|
+
c && a.seeMoreContent
|
|
118
145
|
)
|
|
119
146
|
})]
|
|
120
147
|
}));
|
|
121
148
|
else if (c && //@ts-ignore
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
if (
|
|
125
|
-
|
|
126
|
-
onClick:
|
|
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
|
-
|
|
155
|
+
C(t).children,
|
|
129
156
|
" ",
|
|
130
157
|
// @ts-ignore
|
|
131
|
-
c &&
|
|
158
|
+
c && a.seeLessContent
|
|
132
159
|
]
|
|
133
160
|
}));
|
|
134
161
|
else {
|
|
135
|
-
const
|
|
136
|
-
|
|
137
|
-
onClick:
|
|
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
|
-
|
|
167
|
+
r,
|
|
141
168
|
c && //@ts-ignore
|
|
142
|
-
|
|
169
|
+
a.seeMoreContent
|
|
143
170
|
]
|
|
144
171
|
}));
|
|
145
172
|
}
|
|
146
|
-
return
|
|
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,
|
|
176
|
+
typeof t[0] == "object" && f && typeof f == "object" && t.forEach((e, r) => {
|
|
150
177
|
if (e.type === "a") {
|
|
151
|
-
const
|
|
152
|
-
|
|
153
|
-
href:
|
|
154
|
-
key:
|
|
155
|
-
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", {},
|
|
160
|
-
onClick:
|
|
161
|
-
key:
|
|
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", {},
|
|
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
|
|
174
|
-
return i(
|
|
175
|
-
balanced:
|
|
176
|
-
children: i(
|
|
177
|
-
"data-testid":
|
|
178
|
-
className:
|
|
179
|
-
style:
|
|
180
|
-
...
|
|
181
|
-
...
|
|
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:
|
|
212
|
+
return m.indexOf("display") >= 0 ? i(V, {
|
|
213
|
+
balanced: W,
|
|
187
214
|
children: i("h1", {
|
|
188
|
-
"data-testid":
|
|
189
|
-
className:
|
|
190
|
-
style:
|
|
191
|
-
...
|
|
192
|
-
...
|
|
215
|
+
"data-testid": v,
|
|
216
|
+
className: j(),
|
|
217
|
+
style: $(),
|
|
218
|
+
...B(),
|
|
219
|
+
...L
|
|
193
220
|
})
|
|
194
|
-
}) : i(
|
|
195
|
-
balanced:
|
|
221
|
+
}) : i(V, {
|
|
222
|
+
balanced: W,
|
|
196
223
|
children: i("span", {
|
|
197
|
-
"data-testid":
|
|
198
|
-
className:
|
|
199
|
-
style:
|
|
200
|
-
...
|
|
201
|
-
...
|
|
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
|
-
|
|
208
|
-
|
|
234
|
+
Ke as Text,
|
|
235
|
+
K as TextTypes
|
|
209
236
|
};
|
package/dist/index-TextField.js
CHANGED
|
@@ -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-
|
|
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
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
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-
|
|
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-
|
|
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-
|
|
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";
|
package/dist/index-Toolbar2.js
CHANGED
|
@@ -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-
|
|
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";
|
package/dist/index-Tooltip.js
CHANGED
|
@@ -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-
|
|
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-
|
|
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";
|
package/dist/index-Transition.js
CHANGED
|
@@ -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-
|
|
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-
|
|
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";
|
package/dist/index-Typography.js
CHANGED
|
@@ -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-
|
|
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";
|
package/dist/index-YearPicker.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import ee from "./index-extends.js";
|
|
2
2
|
import * as s from "react";
|
|
3
|
-
import o from "./index-
|
|
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";
|
package/dist/index-_virtual16.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
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
|
-
|
|
4
|
+
o as e
|
|
7
5
|
};
|