@rankingcoach/vanguard 1.9.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-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-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-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 +57 -55
- 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 +2 -0
- package/dist/vanguard-asset-analysis.json +1 -1
- package/dist/vanguard.css +1 -1
- package/dist-wordpress/index.js +17750 -17722
- package/dist-wordpress/types/core/TextHighlighted/TextHighlighted.d.ts +4 -1
- 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-_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
|
};
|
package/dist/index-_virtual17.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
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);
|
|
3
5
|
export {
|
|
4
|
-
|
|
6
|
+
s as default
|
|
5
7
|
};
|
package/dist/index-_virtual66.js
CHANGED
package/dist/index-_virtual67.js
CHANGED
package/dist/index-_virtual68.js
CHANGED
package/dist/index-_virtual69.js
CHANGED
package/dist/index-_virtual70.js
CHANGED
package/dist/index-_virtual71.js
CHANGED
package/dist/index-_virtual72.js
CHANGED
package/dist/index-_virtual73.js
CHANGED
package/dist/index-_virtual74.js
CHANGED
package/dist/index-_virtual75.js
CHANGED
package/dist/index-_virtual76.js
CHANGED
package/dist/index-helpers3.js
CHANGED
package/dist/index-lib5.js
CHANGED
package/dist/index-refType.js
CHANGED
package/dist/index-regex.js
CHANGED
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { useGesture as K } from "./index-use-gesture-react.esm.js";
|
|
2
|
+
import { useState as N, useEffect as g, useMemo as O, useRef as P } from "react";
|
|
3
|
+
import "./index-react-spring_web.modern.js";
|
|
4
|
+
import { useSpring as Q } from "./index-react-spring_core.modern.js";
|
|
5
|
+
const I = (s, n, p) => Math.min(Math.max(s, n), p), U = (s, n) => Math.max(0, s - n), L = (s) => {
|
|
6
|
+
const n = P(s);
|
|
7
|
+
return n.current = s, n;
|
|
8
|
+
}, tt = ({
|
|
9
|
+
activeIndex: s,
|
|
10
|
+
auto: n,
|
|
11
|
+
initialIndex: p,
|
|
12
|
+
length: c,
|
|
13
|
+
onSlideChange: w,
|
|
14
|
+
setSlideCustom: M,
|
|
15
|
+
slideGap: h,
|
|
16
|
+
slidesAtOnce: u,
|
|
17
|
+
slidesToSlide: l,
|
|
18
|
+
viewportRef: x
|
|
19
|
+
}) => {
|
|
20
|
+
const o = U(c, u), k = () => {
|
|
21
|
+
var a;
|
|
22
|
+
const t = ((a = x.current) == null ? void 0 : a.getBoundingClientRect().width) ?? 0, r = h * Math.max(u - 1, 0);
|
|
23
|
+
return (t - r) / u;
|
|
24
|
+
}, v = (t) => {
|
|
25
|
+
const r = M ? M(t) : t;
|
|
26
|
+
return I(r, 0, o);
|
|
27
|
+
}, [e, B] = N(() => v(p)), f = L(e), E = L(w), [T, W] = Q(() => ({
|
|
28
|
+
x: 0,
|
|
29
|
+
config: {
|
|
30
|
+
tension: 280,
|
|
31
|
+
friction: 30,
|
|
32
|
+
mass: 1
|
|
33
|
+
}
|
|
34
|
+
})), i = (t) => {
|
|
35
|
+
B(v(t));
|
|
36
|
+
}, S = (t, r = !1) => {
|
|
37
|
+
const a = k(), d = a + h;
|
|
38
|
+
a <= 0 || W.start({
|
|
39
|
+
x: -t * d,
|
|
40
|
+
immediate: r
|
|
41
|
+
});
|
|
42
|
+
}, F = (t) => {
|
|
43
|
+
W.start({
|
|
44
|
+
x: t,
|
|
45
|
+
immediate: !0
|
|
46
|
+
});
|
|
47
|
+
}, X = (t, r) => I(t + (r > 0 ? -1 : 1), 0, o), $ = K({
|
|
48
|
+
onDrag: ({
|
|
49
|
+
down: t,
|
|
50
|
+
movement: [r],
|
|
51
|
+
direction: [a],
|
|
52
|
+
cancel: d,
|
|
53
|
+
active: y,
|
|
54
|
+
last: H
|
|
55
|
+
}) => {
|
|
56
|
+
const D = k(), z = D + h;
|
|
57
|
+
if (D <= 0) return;
|
|
58
|
+
const m = f.current, J = -m * z;
|
|
59
|
+
if (t && Math.abs(r) > z / 2) {
|
|
60
|
+
const C = X(m, a);
|
|
61
|
+
d == null || d(), y && (C === m ? S(m) : i(C));
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
if (y && t) {
|
|
65
|
+
F(J + r);
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
(H || !t) && S(m);
|
|
69
|
+
}
|
|
70
|
+
}, {
|
|
71
|
+
drag: {
|
|
72
|
+
delay: 200,
|
|
73
|
+
filterTaps: !0
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
g(() => {
|
|
77
|
+
S(e), E.current(e);
|
|
78
|
+
}, [e, u]), g(() => {
|
|
79
|
+
let t;
|
|
80
|
+
return n > 0 && c > 0 && (t = window.setInterval(() => {
|
|
81
|
+
const r = f.current >= o ? 0 : f.current + 1;
|
|
82
|
+
i(r);
|
|
83
|
+
}, n)), () => {
|
|
84
|
+
t && clearInterval(t);
|
|
85
|
+
};
|
|
86
|
+
}, [n, c, o]), g(() => {
|
|
87
|
+
const t = c > 0 ? v(s % c) : 0;
|
|
88
|
+
t !== f.current && i(t);
|
|
89
|
+
}, [s, c, o]), g(() => {
|
|
90
|
+
if (!x.current || typeof ResizeObserver > "u") return;
|
|
91
|
+
const t = new ResizeObserver(() => {
|
|
92
|
+
S(f.current, !0);
|
|
93
|
+
});
|
|
94
|
+
return t.observe(x.current), () => t.disconnect();
|
|
95
|
+
}, [u]);
|
|
96
|
+
const b = () => {
|
|
97
|
+
i(0);
|
|
98
|
+
}, R = () => {
|
|
99
|
+
i(o);
|
|
100
|
+
}, j = () => {
|
|
101
|
+
const t = e >= o, r = e + u - 1 + l < c - 1;
|
|
102
|
+
if (t) {
|
|
103
|
+
b();
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
if (!r) {
|
|
107
|
+
R();
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
i(e + l);
|
|
111
|
+
}, q = () => {
|
|
112
|
+
if (e === 0) {
|
|
113
|
+
R();
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
if (e - l <= 0) {
|
|
117
|
+
b();
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
i(e - l);
|
|
121
|
+
}, G = O(() => ({
|
|
122
|
+
transform: T.x.to((t) => `translate3d(${t}px, 0, 0)`),
|
|
123
|
+
willChange: "transform",
|
|
124
|
+
touchAction: "pan-y"
|
|
125
|
+
}), [T.x]);
|
|
126
|
+
return {
|
|
127
|
+
gestureBinds: $,
|
|
128
|
+
maxSlide: o,
|
|
129
|
+
nextSlide: j,
|
|
130
|
+
previousSlide: q,
|
|
131
|
+
slide: e,
|
|
132
|
+
trackStyle: G,
|
|
133
|
+
updateSlide: i
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
export {
|
|
137
|
+
tt as useCarouselMovement
|
|
138
|
+
};
|
package/dist/index.js
CHANGED
|
@@ -182,33 +182,34 @@ import { RcNavLink as Sa } from "./index-RcNavLink.js";
|
|
|
182
182
|
import { RichTextEditor as Pa } from "./index-RichTextEditor.js";
|
|
183
183
|
import { SearchableSelect as Da } from "./index-SearchableSelect.js";
|
|
184
184
|
import { Slider as Ba } from "./index-Slider.js";
|
|
185
|
-
import {
|
|
186
|
-
import {
|
|
187
|
-
import {
|
|
188
|
-
import {
|
|
189
|
-
import {
|
|
190
|
-
import {
|
|
191
|
-
import {
|
|
192
|
-
import {
|
|
193
|
-
import {
|
|
194
|
-
import {
|
|
195
|
-
import {
|
|
196
|
-
import {
|
|
197
|
-
import {
|
|
198
|
-
import {
|
|
199
|
-
import {
|
|
200
|
-
import {
|
|
201
|
-
import {
|
|
202
|
-
import {
|
|
203
|
-
import {
|
|
204
|
-
import {
|
|
205
|
-
import {
|
|
206
|
-
import {
|
|
207
|
-
import {
|
|
208
|
-
import {
|
|
209
|
-
import {
|
|
210
|
-
import {
|
|
211
|
-
import {
|
|
185
|
+
import { SlideCarousel as Na } from "./index-SlideCarousel.js";
|
|
186
|
+
import { SmallLoader as ha } from "./index-SmallLoader.js";
|
|
187
|
+
import { Snackbar as ya } from "./index-Snackbar.js";
|
|
188
|
+
import { SnackbarRoot as Ga } from "./index-SnackbarRoot.js";
|
|
189
|
+
import { snackbarService as va } from "./index-SnackBarService.js";
|
|
190
|
+
import { SocialMediaLink as Fa } from "./index-SocialMediaLink.js";
|
|
191
|
+
import { AcceptModal as Ya } from "./index-AcceptModal.js";
|
|
192
|
+
import { ConfirmModal as Ha } from "./index-ConfirmModal.js";
|
|
193
|
+
import { DateRangeModal as Ua } from "./index-DateRangeModal.js";
|
|
194
|
+
import { ErrorModal as Ja } from "./index-ErrorModal.js";
|
|
195
|
+
import { LoadingModal as Xa } from "./index-LoadingModal.js";
|
|
196
|
+
import { SuccessModal as Ka } from "./index-SuccessModal.js";
|
|
197
|
+
import { Star as Za } from "./index-Star.js";
|
|
198
|
+
import { StarRating as of } from "./index-StarRating.js";
|
|
199
|
+
import { Table as ef } from "./index-Table.js";
|
|
200
|
+
import { TableBody as mf } from "./index-TableBody.js";
|
|
201
|
+
import { TableCell as af } from "./index-TableCell.js";
|
|
202
|
+
import { TableFooter as xf } from "./index-TableFooter.js";
|
|
203
|
+
import { TableHeader as lf } from "./index-TableHeader.js";
|
|
204
|
+
import { CtaWithIcon as cf } from "./index-CtaWithIcon.js";
|
|
205
|
+
import { TimePicker as Tf } from "./index-TimePicker.js";
|
|
206
|
+
import { ToggleButton as Cf } from "./index-ToggleButton.js";
|
|
207
|
+
import { ToggleButtonGroup as gf } from "./index-ToggleButtonGroup.js";
|
|
208
|
+
import { Toolbar as Af } from "./index-Toolbar.js";
|
|
209
|
+
import { VideoPlayer as Mf } from "./index-VideoPlayer.js";
|
|
210
|
+
import { videoPlayerService as Ef } from "./index-VideoPlayer.service.js";
|
|
211
|
+
import { isYouTubeUrl as kf } from "./index-utils.js";
|
|
212
|
+
import { Header as Lf, HeaderTypes as hf } from "./index-Header.js";
|
|
212
213
|
const r = "";
|
|
213
214
|
export {
|
|
214
215
|
Re as AIAssistant,
|
|
@@ -216,7 +217,7 @@ export {
|
|
|
216
217
|
Fr as AIOrb,
|
|
217
218
|
wr as AIOrbSize,
|
|
218
219
|
Yr as AIOrbStatus,
|
|
219
|
-
|
|
220
|
+
Ya as AcceptModal,
|
|
220
221
|
No as Accordion,
|
|
221
222
|
ge as ActionBar,
|
|
222
223
|
Ae as ActionBarRoot,
|
|
@@ -265,15 +266,15 @@ export {
|
|
|
265
266
|
At as Collapse,
|
|
266
267
|
Mt as ColorPicker,
|
|
267
268
|
m as ComponentContainer,
|
|
268
|
-
|
|
269
|
+
Ha as ConfirmModal,
|
|
269
270
|
Hp as ContentPlaceholder,
|
|
270
271
|
im as ContentType,
|
|
271
272
|
Et as CreditCard,
|
|
272
273
|
Bt as CreditCardType,
|
|
273
|
-
|
|
274
|
+
cf as CtaWithIcon,
|
|
274
275
|
yt as DatePicker,
|
|
275
276
|
Gt as DateRangeInput,
|
|
276
|
-
|
|
277
|
+
Ua as DateRangeModal,
|
|
277
278
|
Vt as DateRangePicker,
|
|
278
279
|
jt as DateTimePicker,
|
|
279
280
|
$t as Divider,
|
|
@@ -290,7 +291,7 @@ export {
|
|
|
290
291
|
fr as EditModal,
|
|
291
292
|
u as EditableCard,
|
|
292
293
|
ua as ErrorBoundary,
|
|
293
|
-
|
|
294
|
+
Ja as ErrorModal,
|
|
294
295
|
Em as ExportXLS,
|
|
295
296
|
Nm as FadeCarouselAuto,
|
|
296
297
|
hm as FadedCarousel,
|
|
@@ -311,8 +312,8 @@ export {
|
|
|
311
312
|
cp as GoogleMapsMarker,
|
|
312
313
|
Tp as GoogleMapsMarkerDefault,
|
|
313
314
|
Tt as HSBChart,
|
|
314
|
-
|
|
315
|
-
|
|
315
|
+
Lf as Header,
|
|
316
|
+
hf as HeaderTypes,
|
|
316
317
|
xo as IMaskInput,
|
|
317
318
|
Mo as Icon,
|
|
318
319
|
Sp as IconButton,
|
|
@@ -338,7 +339,7 @@ export {
|
|
|
338
339
|
Fp as ListLoader,
|
|
339
340
|
Cr as ListShowMore,
|
|
340
341
|
Yp as Loader,
|
|
341
|
-
|
|
342
|
+
Xa as LoadingModal,
|
|
342
343
|
qr as LottieAnimationLoader,
|
|
343
344
|
jr as LottieBase,
|
|
344
345
|
lp as MarkerF,
|
|
@@ -387,25 +388,26 @@ export {
|
|
|
387
388
|
G as SelectiveImportExample,
|
|
388
389
|
Er as Skeleton,
|
|
389
390
|
Br as SkeletonTypes,
|
|
391
|
+
Na as SlideCarousel,
|
|
390
392
|
$r as SlideTransition,
|
|
391
393
|
Ba as Slider,
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
394
|
+
ha as SmallLoader,
|
|
395
|
+
ya as Snackbar,
|
|
396
|
+
Ga as SnackbarRoot,
|
|
397
|
+
Fa as SocialMediaLink,
|
|
398
|
+
Za as Star,
|
|
399
|
+
of as StarRating,
|
|
398
400
|
hr as StatusBadge,
|
|
399
401
|
yr as StatusBadgeIcon,
|
|
400
402
|
te as StyledSVG,
|
|
401
|
-
|
|
403
|
+
Ka as SuccessModal,
|
|
402
404
|
vr as SvgImage,
|
|
403
405
|
Mr as Switch,
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
406
|
+
ef as Table,
|
|
407
|
+
mf as TableBody,
|
|
408
|
+
af as TableCell,
|
|
409
|
+
xf as TableFooter,
|
|
410
|
+
lf as TableHeader,
|
|
409
411
|
Ao as Tabs,
|
|
410
412
|
ir as Tag,
|
|
411
413
|
cr as TagList,
|
|
@@ -416,13 +418,13 @@ export {
|
|
|
416
418
|
a as TextIcon,
|
|
417
419
|
F as TextTypes,
|
|
418
420
|
J as Textarea,
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
421
|
+
Tf as TimePicker,
|
|
422
|
+
Cf as ToggleButton,
|
|
423
|
+
gf as ToggleButtonGroup,
|
|
422
424
|
Nr as TogglerWithText,
|
|
423
|
-
|
|
425
|
+
Af as Toolbar,
|
|
424
426
|
o as VanguardStyle,
|
|
425
|
-
|
|
427
|
+
Mf as VideoPlayer,
|
|
426
428
|
Ce as actionBarService,
|
|
427
429
|
vt as areDatesEqual,
|
|
428
430
|
Y as childrenAsText,
|
|
@@ -439,7 +441,7 @@ export {
|
|
|
439
441
|
zr as getContainerVisibility,
|
|
440
442
|
Wt as isBackendDateAfterNow,
|
|
441
443
|
Ut as isDateTimePickerAfterNow,
|
|
442
|
-
|
|
444
|
+
kf as isYouTubeUrl,
|
|
443
445
|
r as lottieAnimation,
|
|
444
446
|
zt as mapBackendDateToDateTimePicker,
|
|
445
447
|
Jt as mapDateTimePickerToBackendDate,
|
|
@@ -449,7 +451,7 @@ export {
|
|
|
449
451
|
P as maskInput,
|
|
450
452
|
pp as panToOffset,
|
|
451
453
|
D as sanitizeHtml,
|
|
452
|
-
|
|
454
|
+
va as snackbarService,
|
|
453
455
|
B as useDynamicImport,
|
|
454
456
|
Bm as useExportXLS,
|
|
455
457
|
h as useFormConfig,
|
|
@@ -458,5 +460,5 @@ export {
|
|
|
458
460
|
Qr as useLottieInteractivity,
|
|
459
461
|
zo as useModalContext,
|
|
460
462
|
N as useSelectiveDynamicImport,
|
|
461
|
-
|
|
463
|
+
Ef as videoPlayerService
|
|
462
464
|
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
export type BulletsPlacement = 'overlayBottom' | 'below';
|
|
2
3
|
export interface BulletsProps {
|
|
3
4
|
children: React.ReactElement;
|
|
5
|
+
placement?: BulletsPlacement;
|
|
4
6
|
}
|
|
5
7
|
export type BulletsComponentType = (props: BulletsProps) => React.ReactElement;
|
|
6
8
|
export declare const Bullets: (props: BulletsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,6 +2,8 @@ import { default as React } from 'react';
|
|
|
2
2
|
import { ArrowComponentType, ArrowStyle } from './Arrow/Arrow';
|
|
3
3
|
import { BulletComponentType, BulletStyle } from './Bullet/Bullet';
|
|
4
4
|
import { BulletsComponentType } from './Bullets/Bullets';
|
|
5
|
+
export type SlideCarouselArrowPlacement = 'overlay' | 'outside';
|
|
6
|
+
export type SlideCarouselBulletPlacement = 'overlayBottom' | 'below';
|
|
5
7
|
export interface SliderProps {
|
|
6
8
|
activeIndex?: number;
|
|
7
9
|
initialIndex?: number;
|
|
@@ -18,5 +20,9 @@ export interface SliderProps {
|
|
|
18
20
|
setSlideCustom?: (slide: number) => number;
|
|
19
21
|
slidesAtOnce?: number;
|
|
20
22
|
slidesToSlide?: number;
|
|
23
|
+
/** Merged onto outer container; consumer-owned sizing escape hatch. */
|
|
24
|
+
className?: string;
|
|
25
|
+
arrowPlacement?: SlideCarouselArrowPlacement;
|
|
26
|
+
bulletPlacement?: SlideCarouselBulletPlacement;
|
|
21
27
|
}
|
|
22
28
|
export declare const SlideCarousel: React.FunctionComponent<SliderProps>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
interface UseCarouselMovementArgs {
|
|
3
|
+
activeIndex: number;
|
|
4
|
+
auto: number;
|
|
5
|
+
initialIndex: number;
|
|
6
|
+
length: number;
|
|
7
|
+
onSlideChange: (slide: number) => void;
|
|
8
|
+
setSlideCustom?: (slide: number) => number;
|
|
9
|
+
slideGap: number;
|
|
10
|
+
slidesAtOnce: number;
|
|
11
|
+
slidesToSlide: number;
|
|
12
|
+
viewportRef: RefObject<HTMLDivElement>;
|
|
13
|
+
}
|
|
14
|
+
export declare const useCarouselMovement: ({ activeIndex, auto, initialIndex, length, onSlideChange, setSlideCustom, slideGap, slidesAtOnce, slidesToSlide, viewportRef, }: UseCarouselMovementArgs) => {
|
|
15
|
+
gestureBinds: (...args: any[]) => import('@use-gesture/react/dist/declarations/src/types').ReactDOMAttributes;
|
|
16
|
+
maxSlide: number;
|
|
17
|
+
nextSlide: () => void;
|
|
18
|
+
previousSlide: () => void;
|
|
19
|
+
slide: number;
|
|
20
|
+
trackStyle: {
|
|
21
|
+
transform: import('react-spring').Interpolation<number, string>;
|
|
22
|
+
willChange: string;
|
|
23
|
+
touchAction: string;
|
|
24
|
+
};
|
|
25
|
+
updateSlide: (index: number) => void;
|
|
26
|
+
};
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { SlideCarousel } from '../SlideCarousel';
|
|
4
|
+
export type SlideCarouselStory = StoryObj<typeof SlideCarousel>;
|
|
5
|
+
export declare const EXCLUDED_CONTROLS: string[];
|
|
6
|
+
export declare function Slide({ n, bg }: {
|
|
7
|
+
n: number;
|
|
8
|
+
bg: string;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const SLIDES: import("react/jsx-runtime").JSX.Element[];
|
|
11
|
+
export declare function CarouselWrapper({ children }: {
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element;
|