@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.
Files changed (153) 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-Chip.js +1 -1
  16. package/dist/index-ClickAwayListener.js +1 -1
  17. package/dist/index-ClockPicker.js +1 -1
  18. package/dist/index-Collapse2.js +1 -1
  19. package/dist/index-DateInput.js +4 -4
  20. package/dist/index-DatePicker2.js +1 -1
  21. package/dist/index-DayCell.js +2 -2
  22. package/dist/index-DefaultPropsProvider.js +1 -1
  23. package/dist/index-DefaultPropsProvider2.js +1 -1
  24. package/dist/index-DesktopDatePicker.js +1 -1
  25. package/dist/index-Dialog.js +1 -1
  26. package/dist/index-DialogActions.js +1 -1
  27. package/dist/index-DialogContent.js +1 -1
  28. package/dist/index-Drawer2.js +1 -1
  29. package/dist/index-Fade.js +1 -1
  30. package/dist/index-FilledInput.js +1 -1
  31. package/dist/index-FocusTrap.js +1 -1
  32. package/dist/index-FormControl2.js +1 -1
  33. package/dist/index-FormHelperText.js +1 -1
  34. package/dist/index-FormLabel.js +1 -1
  35. package/dist/index-GlobalStyles.js +1 -1
  36. package/dist/index-GlobalStyles2.js +1 -1
  37. package/dist/index-GlobalStyles3.js +1 -1
  38. package/dist/index-Grid.js +1 -1
  39. package/dist/index-Grow.js +1 -1
  40. package/dist/index-IconButton2.js +1 -1
  41. package/dist/index-Input2.js +1 -1
  42. package/dist/index-InputAdornment.js +1 -1
  43. package/dist/index-InputBase2.js +1 -1
  44. package/dist/index-InputLabel.js +1 -1
  45. package/dist/index-InputRangeField.js +1 -1
  46. package/dist/index-LinearProgress.js +1 -1
  47. package/dist/index-List2.js +1 -1
  48. package/dist/index-ListSubheader.js +1 -1
  49. package/dist/index-LocalizationProvider.js +1 -1
  50. package/dist/index-Menu2.js +1 -1
  51. package/dist/index-MenuItem2.js +1 -1
  52. package/dist/index-MenuList.js +1 -1
  53. package/dist/index-MobileDatePicker.js +1 -1
  54. package/dist/index-Modal2.js +1 -1
  55. package/dist/index-Month.js +3 -3
  56. package/dist/index-MonthPicker.js +1 -1
  57. package/dist/index-NativeSelectInput.js +1 -1
  58. package/dist/index-NotchedOutline.js +1 -1
  59. package/dist/index-OutlinedInput.js +1 -1
  60. package/dist/index-Paper.js +1 -1
  61. package/dist/index-PhotoCarouselModal.js +26 -25
  62. package/dist/index-PhotoCarouselModal.module.scss.js +6 -4
  63. package/dist/index-PickersDay.js +1 -1
  64. package/dist/index-Popover2.js +1 -1
  65. package/dist/index-Popper.js +1 -1
  66. package/dist/index-Portal.js +1 -1
  67. package/dist/index-PropTypes.js +1 -1
  68. package/dist/index-Ripple.js +1 -1
  69. package/dist/index-RtlProvider.js +1 -1
  70. package/dist/index-ScrollbarSize.js +1 -1
  71. package/dist/index-Select2.js +1 -1
  72. package/dist/index-SelectInput2.js +1 -1
  73. package/dist/index-Skeleton2.js +1 -1
  74. package/dist/index-Slide.js +1 -1
  75. package/dist/index-SlideCarousel.js +117 -138
  76. package/dist/index-SlideCarousel.module.scss.js +22 -14
  77. package/dist/index-Slider2.js +1 -1
  78. package/dist/index-SliderValueLabel.js +1 -1
  79. package/dist/index-Snackbar2.js +1 -1
  80. package/dist/index-SnackbarContent.js +1 -1
  81. package/dist/index-StyledEngineProvider.js +1 -1
  82. package/dist/index-SvgIcon.js +1 -1
  83. package/dist/index-Tab2.js +1 -1
  84. package/dist/index-TabScrollButton.js +1 -1
  85. package/dist/index-Tabs2.js +1 -1
  86. package/dist/index-Text.js +158 -131
  87. package/dist/index-TextField.js +1 -1
  88. package/dist/index-TextHighlighted.js +11 -136
  89. package/dist/index-TextareaAutosize.js +1 -1
  90. package/dist/index-ToggleButton2.js +1 -1
  91. package/dist/index-ToggleButtonGroup2.js +1 -1
  92. package/dist/index-Toolbar2.js +1 -1
  93. package/dist/index-Tooltip.js +1 -1
  94. package/dist/index-TouchRipple.js +1 -1
  95. package/dist/index-Transition.js +1 -1
  96. package/dist/index-TransitionGroup.js +1 -1
  97. package/dist/index-Typography.js +1 -1
  98. package/dist/index-YearPicker.js +1 -1
  99. package/dist/index-_virtual16.js +3 -5
  100. package/dist/index-_virtual17.js +5 -3
  101. package/dist/index-_virtual66.js +2 -2
  102. package/dist/index-_virtual67.js +4 -2
  103. package/dist/index-_virtual68.js +2 -4
  104. package/dist/index-_virtual69.js +4 -2
  105. package/dist/index-_virtual70.js +2 -2
  106. package/dist/index-_virtual71.js +1 -1
  107. package/dist/index-_virtual72.js +4 -2
  108. package/dist/index-_virtual73.js +1 -1
  109. package/dist/index-_virtual74.js +2 -4
  110. package/dist/index-_virtual75.js +2 -4
  111. package/dist/index-_virtual76.js +2 -2
  112. package/dist/index-accessibility.js +1 -1
  113. package/dist/index-elementAcceptingRef.js +1 -1
  114. package/dist/index-elementTypeAcceptingRef.js +1 -1
  115. package/dist/index-helpers3.js +1 -1
  116. package/dist/index-lib5.js +1 -1
  117. package/dist/index-refType.js +1 -1
  118. package/dist/index-regex.js +1 -1
  119. package/dist/index-responsivePropType.js +1 -1
  120. package/dist/index-use-carousel-movement.js +138 -0
  121. package/dist/index.js +57 -55
  122. package/dist/types/core/SlideCarousel/Bullets/Bullets.d.ts +2 -0
  123. package/dist/types/core/SlideCarousel/SlideCarousel.d.ts +6 -0
  124. package/dist/types/core/SlideCarousel/hooks/use-carousel-movement.d.ts +27 -0
  125. package/dist/types/core/SlideCarousel/index.d.ts +2 -0
  126. package/dist/types/core/SlideCarousel/stories/SlideCarouselAutoPlay.story.d.ts +2 -0
  127. package/dist/types/core/SlideCarousel/stories/SlideCarouselBasic.story.d.ts +2 -0
  128. package/dist/types/core/SlideCarousel/stories/SlideCarouselBulletsBelow.story.d.ts +2 -0
  129. package/dist/types/core/SlideCarousel/stories/SlideCarouselControlled.story.d.ts +2 -0
  130. package/dist/types/core/SlideCarousel/stories/SlideCarouselCustomArrows.story.d.ts +2 -0
  131. package/dist/types/core/SlideCarousel/stories/SlideCarouselCustomBullets.story.d.ts +2 -0
  132. package/dist/types/core/SlideCarousel/stories/SlideCarouselMultipleSlidesAtOnce.story.d.ts +2 -0
  133. package/dist/types/core/SlideCarousel/stories/SlideCarouselOutsideArrows.story.d.ts +2 -0
  134. package/dist/types/core/SlideCarousel/stories/SlideCarouselWithArrows.story.d.ts +2 -0
  135. package/dist/types/core/SlideCarousel/stories/SlideCarouselWithArrowsAndBullets.story.d.ts +2 -0
  136. package/dist/types/core/SlideCarousel/stories/SlideCarouselWithBullets.story.d.ts +2 -0
  137. package/dist/types/core/SlideCarousel/stories/_SlideCarousel.default.d.ts +13 -0
  138. package/dist/types/core/Text/Text.types.d.ts +4 -0
  139. package/dist/types/core/Text/stories/stories/HighlightCaseInsensitive.story.d.ts +3 -0
  140. package/dist/types/core/Text/stories/stories/HighlightDefault.story.d.ts +2 -0
  141. package/dist/types/core/Text/stories/stories/HighlightModeBackground.story.d.ts +2 -0
  142. package/dist/types/core/Text/stories/stories/HighlightModeBold.story.d.ts +2 -0
  143. package/dist/types/core/Text/stories/stories/HighlightModeText.story.d.ts +2 -0
  144. package/dist/types/core/Text/stories/stories/HighlightWithEmphasis.story.d.ts +2 -0
  145. package/dist/types/core/TextHighlighted/TextHighlighted.d.ts +4 -1
  146. package/dist/types/index.d.ts +2 -0
  147. package/dist/vanguard-asset-analysis.json +1 -1
  148. package/dist/vanguard.css +1 -1
  149. package/dist-wordpress/index.js +17750 -17722
  150. package/dist-wordpress/types/core/TextHighlighted/TextHighlighted.d.ts +4 -1
  151. package/dist-wordpress/vanguard.css +1 -1
  152. package/package.json +1 -1
  153. package/dist/types/core/TextHighlighted/stories/TextHighlightedWithXSSAttackStory.story.d.ts +0 -2
@@ -1,7 +1,7 @@
1
1
  import j from "./index-objectWithoutPropertiesLoose.js";
2
2
  import l from "./index-extends.js";
3
3
  import * as I from "react";
4
- import o from "./index-_virtual16.js";
4
+ import o from "./index-_virtual17.js";
5
5
  import A from "./index-NotchedOutline.js";
6
6
  import N from "./index-useFormControl.js";
7
7
  import w from "./index-formControlState.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 g from "react";
4
- import r from "./index-_virtual16.js";
4
+ import r from "./index-_virtual17.js";
5
5
  import { clsx as y } from "./index-clsx.js";
6
6
  import { c as v } from "./index-colorManipulator2.js";
7
7
  import P from "./index-styled.js";
@@ -1,5 +1,5 @@
1
1
  import { jsx as o, jsxs as p } from "react/jsx-runtime";
2
- import { mb3 as m, w100 as h, dFlexColumn as g } from "./index-general.module.js";
2
+ import { mb3 as c, w100 as h, dFlexColumn as g } from "./index-general.module.js";
3
3
  import { classNames as b } from "./index-classNames.js";
4
4
  import { updateImageUrlWithBaseRequest as v } from "./index-update-image-url-with-base-request.js";
5
5
  import { MediaItemType as x } from "./index-MediaItem.js";
@@ -10,28 +10,28 @@ import { Modal as T } from "./index-Modal.js";
10
10
  import { ModalBody as B } from "./index-ModalBody.js";
11
11
  import { ModalHeader as R } from "./index-ModalHeader.js";
12
12
  import { SlideCarousel as j } from "./index-SlideCarousel.js";
13
- import c from "./index-PhotoCarouselModal.module.scss.js";
14
- const z = (a) => {
13
+ import a from "./index-PhotoCarouselModal.module.scss.js";
14
+ const $ = (l) => {
15
15
  const {
16
- gallery: t,
16
+ gallery: r,
17
17
  close: f,
18
- defaultMediaItem: r
19
- } = a, [l, u] = M(0);
18
+ defaultMediaItem: t
19
+ } = l, [s, u] = M(0);
20
20
  return N(() => {
21
- r && u(t.map((e) => e.uuid).indexOf(r.uuid));
22
- }, [r]), o(U, {
23
- className: c.container,
21
+ t && u(r.map((e) => e.uuid).indexOf(t.uuid));
22
+ }, [t]), o(U, {
23
+ className: a.container,
24
24
  children: p(T, {
25
- ...a,
25
+ ...l,
26
26
  className: "confirm-modal",
27
27
  children: [o(R, {
28
- className: m,
28
+ className: c,
29
29
  closeFn: f,
30
30
  hideCloseButtonOnMobile: !1,
31
31
  children: o(y, {
32
32
  fontWeight: I.bold,
33
33
  type: C.heading4,
34
- className: b(h, m),
34
+ className: b(h, c),
35
35
  children: "Media gallery"
36
36
  })
37
37
  }), o(B, {
@@ -39,30 +39,31 @@ const z = (a) => {
39
39
  children: o("div", {
40
40
  className: g,
41
41
  children: o(j, {
42
- activeIndex: l,
43
- initialIndex: l,
44
- hasBullets: t.length > 1,
45
- hasArrows: t.length != 1,
46
- children: t && t.map((e) => {
47
- var s, d;
48
- if (e.file && ((s = e.fileType) != null && s.includes("video")) || e.type === x.video) {
42
+ activeIndex: s,
43
+ initialIndex: s,
44
+ hasBullets: r.length > 1,
45
+ hasArrows: r.length != 1,
46
+ children: r && r.map((e) => {
47
+ var m, n;
48
+ if (e.file && ((m = e.fileType) != null && m.includes("video")) || e.type === x.video) {
49
49
  let i = "";
50
50
  return e.file ? i = URL.createObjectURL(e.file) : i = e.publicUrl ?? "", o("video", {
51
51
  src: i,
52
52
  width: "100%",
53
53
  height: "100%",
54
- controls: !0
54
+ controls: !0,
55
+ className: a.carouselVideo
55
56
  });
56
57
  }
57
- const n = e.publicThumbnailUrl ?? e.publicUrl ?? ((d = e.mediaItemContent) == null ? void 0 : d.base64EncodedContent);
58
+ const d = e.publicThumbnailUrl ?? e.publicUrl ?? ((n = e.mediaItemContent) == null ? void 0 : n.base64EncodedContent);
58
59
  return o("div", {
59
60
  draggable: "false",
60
- className: c.carouselPhoto,
61
+ className: a.carouselPhoto,
61
62
  style: {
62
- backgroundImage: `url(${v(n)})`,
63
+ backgroundImage: `url(${v(d)})`,
63
64
  backgroundColor: "var(--fn-bg-var)"
64
65
  }
65
- }, n);
66
+ }, d);
66
67
  })
67
68
  })
68
69
  })
@@ -71,5 +72,5 @@ const z = (a) => {
71
72
  });
72
73
  };
73
74
  export {
74
- z as PhotoCarouselModal
75
+ $ as PhotoCarouselModal
75
76
  };
@@ -1,9 +1,11 @@
1
- const o = "container_O5", t = "carousel-photo_je", e = {
1
+ const o = "container_O5", e = "carousel-video_g-", c = "carousel-photo_je", s = {
2
2
  container: o,
3
- carouselPhoto: t
3
+ carouselVideo: e,
4
+ carouselPhoto: c
4
5
  };
5
6
  export {
6
- t as carouselPhoto,
7
+ c as carouselPhoto,
8
+ e as carouselVideo,
7
9
  o as container,
8
- e as default
10
+ s as default
9
11
  };
@@ -1,7 +1,7 @@
1
1
  import G from "./index-objectWithoutPropertiesLoose.js";
2
2
  import y from "./index-extends.js";
3
3
  import * as m from "react";
4
- import e from "./index-_virtual16.js";
4
+ import e from "./index-_virtual17.js";
5
5
  import { clsx as T } from "./index-clsx.m.js";
6
6
  import { useUtils as L } from "./index-useUtils.js";
7
7
  import { DAY_SIZE as S, DAY_MARGIN as V } from "./index-dimensions.js";
@@ -1,7 +1,7 @@
1
1
  import v from "./index-extends.js";
2
2
  import j from "./index-objectWithoutPropertiesLoose.js";
3
3
  import * as p from "react";
4
- import e from "./index-_virtual16.js";
4
+ import e from "./index-_virtual17.js";
5
5
  import { clsx as Z } from "./index-clsx.js";
6
6
  import le from "./index-styled.js";
7
7
  import { getPopoverUtilityClass as Ee } from "./index-popoverClasses.js";
@@ -1,7 +1,7 @@
1
1
  import i from "./index-extends.js";
2
2
  import E from "./index-objectWithoutPropertiesLoose.js";
3
3
  import _ from "./index-useThemeWithoutDefault.js";
4
- import o from "./index-_virtual16.js";
4
+ import o from "./index-_virtual17.js";
5
5
  import * as k from "react";
6
6
  import q from "./index-BasePopper.js";
7
7
  import { jsx as W } from "react/jsx-runtime";
@@ -1,6 +1,6 @@
1
1
  import * as e from "react";
2
2
  import * as y from "react-dom";
3
- import p from "./index-_virtual16.js";
3
+ import p from "./index-_virtual17.js";
4
4
  import { jsx as s } from "react/jsx-runtime";
5
5
  import P from "./index-useForkRef.js";
6
6
  import T from "./index-getReactElementRef.js";
@@ -1,4 +1,4 @@
1
- import e from "./index-_virtual16.js";
1
+ import e from "./index-_virtual17.js";
2
2
  var n = process.env.NODE_ENV !== "production" ? e.oneOfType([e.number, e.shape({
3
3
  enter: e.number,
4
4
  exit: e.number,
@@ -1,5 +1,5 @@
1
1
  import * as n from "react";
2
- import e from "./index-_virtual16.js";
2
+ import e from "./index-_virtual17.js";
3
3
  import { clsx as a } from "./index-clsx.js";
4
4
  import { jsx as u } from "react/jsx-runtime";
5
5
  function x(c) {
@@ -1,5 +1,5 @@
1
1
  import * as e from "react";
2
- import t from "./index-_virtual16.js";
2
+ import t from "./index-_virtual17.js";
3
3
  import "react/jsx-runtime";
4
4
  const r = /* @__PURE__ */ e.createContext();
5
5
  process.env.NODE_ENV !== "production" && (t.node, t.bool);
@@ -1,7 +1,7 @@
1
1
  import m from "./index-extends.js";
2
2
  import p from "./index-objectWithoutPropertiesLoose.js";
3
3
  import * as n from "react";
4
- import d from "./index-_virtual16.js";
4
+ import d from "./index-_virtual17.js";
5
5
  import { jsx as l } from "react/jsx-runtime";
6
6
  import a from "./index-useEnhancedEffect2.js";
7
7
  import h from "./index-debounce3.js";
@@ -1,7 +1,7 @@
1
1
  import p from "./index-extends.js";
2
2
  import I from "./index-objectWithoutPropertiesLoose.js";
3
3
  import * as u from "react";
4
- import e from "./index-_virtual16.js";
4
+ import e from "./index-_virtual17.js";
5
5
  import { clsx as z } from "./index-clsx.js";
6
6
  import B from "./index-SelectInput2.js";
7
7
  import G from "./index-formControlState.js";
@@ -2,7 +2,7 @@ import u from "./index-extends.js";
2
2
  import Re from "./index-objectWithoutPropertiesLoose.js";
3
3
  import * as i from "react";
4
4
  import { isFragment as Fe } from "react-is";
5
- import t from "./index-_virtual16.js";
5
+ import t from "./index-_virtual17.js";
6
6
  import { clsx as $e } from "./index-clsx.js";
7
7
  import je from "./index-Menu2.js";
8
8
  import { nativeSelectSelectStyles as Ve, nativeSelectIconStyles as We } from "./index-NativeSelectInput.js";
@@ -2,7 +2,7 @@ import x from "./index-objectWithoutPropertiesLoose.js";
2
2
  import s from "./index-extends.js";
3
3
  import * as R from "react";
4
4
  import { clsx as O } from "./index-clsx.js";
5
- import t from "./index-_virtual16.js";
5
+ import t from "./index-_virtual17.js";
6
6
  import _ from "./index-styled.js";
7
7
  import { getSkeletonUtilityClass as T } from "./index-skeletonClasses.js";
8
8
  import { jsx as $ } from "react/jsx-runtime";
@@ -1,7 +1,7 @@
1
1
  import x from "./index-extends.js";
2
2
  import D from "./index-objectWithoutPropertiesLoose.js";
3
3
  import * as g from "react";
4
- import t from "./index-_virtual16.js";
4
+ import t from "./index-_virtual17.js";
5
5
  import U from "./index-useTheme.js";
6
6
  import { getTransitionProps as $, reflow as q } from "./index-utils6.js";
7
7
  import { jsx as A } from "react/jsx-runtime";
@@ -1,146 +1,125 @@
1
- import X, { useRef as Y, useState as L, useEffect as N, createElement as Z } from "react";
2
- import { jsx as m, jsxs as M } from "react/jsx-runtime";
3
- import { dFlex as A } from "./index-general.module.js";
4
- import { classNames as j } from "./index-classNames.js";
5
- import { useGesture as T } from "./index-use-gesture-react.esm.js";
6
- import { a as O } from "./index-react-spring_web.modern.js";
7
- import { ComponentContainer as c } from "./index-ComponentContainer.js";
8
- import { Arrow as d } from "./index-Arrow.js";
9
- import { Bullet as h } from "./index-Bullet.js";
10
- import { Bullets as tt } from "./index-Bullets.js";
11
- import r from "./index-SlideCarousel.module.scss.js";
12
- import { useSprings as st } from "./index-react-spring_core.modern.js";
13
- const ot = (p, S, n) => Math.min(Math.max(p, S), n), kt = ({
14
- activeIndex: p = 0,
15
- initialIndex: S = p,
16
- ArrowComponent: n = d,
17
- arrowStyle: w = {},
18
- auto: l = 0,
19
- BulletComponent: D = h,
20
- BulletsComponent: P = tt,
21
- bulletStyle: $ = {},
22
- children: t = [],
23
- hasArrows: G = !1,
24
- hasBullets: I = !1,
25
- onSlideChange: R = () => {
1
+ import { jsxs as d, jsx as l } from "react/jsx-runtime";
2
+ import { classNames as s } from "./index-classNames.js";
3
+ import { ComponentContainer as z } from "./index-ComponentContainer.js";
4
+ import H, { useRef as x } from "react";
5
+ import { a as I } from "./index-react-spring_web.modern.js";
6
+ import { Arrow as J } from "./index-Arrow.js";
7
+ import { Bullet as K } from "./index-Bullet.js";
8
+ import { Bullets as Q } from "./index-Bullets.js";
9
+ import { useCarouselMovement as U } from "./index-use-carousel-movement.js";
10
+ import e from "./index-SlideCarousel.module.scss.js";
11
+ const Y = 16, de = ({
12
+ activeIndex: m = 0,
13
+ initialIndex: k = m,
14
+ ArrowComponent: i = J,
15
+ arrowStyle: t = {},
16
+ auto: R = 0,
17
+ BulletComponent: S = K,
18
+ BulletsComponent: f = Q,
19
+ bulletStyle: _ = {},
20
+ children: M = [],
21
+ hasArrows: a = !1,
22
+ hasBullets: p = !1,
23
+ onSlideChange: $ = () => {
26
24
  },
27
- setSlideCustom: v = void 0,
28
- slidesAtOnce: f = 1,
29
- slidesToSlide: u = 1
25
+ setSlideCustom: w = void 0,
26
+ slidesAtOnce: u = 1,
27
+ slidesToSlide: L = 1,
28
+ className: O,
29
+ arrowPlacement: o = "overlay",
30
+ bulletPlacement: h = "overlayBottom"
30
31
  }) => {
31
- const i = Y(null), [e, x] = L(0), a = v ? (s) => x(v(s)) : x, [q, y] = L(!1);
32
- t || (t = []);
33
- const [z, g] = st((t == null ? void 0 : t.length) || 0, (s) => ({
34
- offset: s
35
- })), H = T({
36
- onDrag: ({
37
- down: s,
38
- movement: [o],
39
- direction: [k],
40
- cancel: _,
41
- first: V,
42
- active: b
43
- }) => {
44
- if (V && y(!0), i && i.current && i.current.parentElement) {
45
- const {
46
- width: F
47
- } = i.current.parentElement.getBoundingClientRect();
48
- s && Math.abs(o) > F / 2 && (_ && _(), b && a(ot(e + (k > 0 ? -1 : 1), 0, ((t == null ? void 0 : t.length) || 0) - f))), g.update((W) => ({
49
- offset: (b && s ? o : 0) / F + (W - e)
50
- })).start();
51
- }
52
- },
53
- onClick: () => {
54
- if (q) {
55
- y(!1);
56
- return;
57
- }
58
- J(e);
59
- }
60
- }, {
61
- drag: {
62
- delay: 200
63
- }
32
+ const b = x(null), v = x(null), C = M || [], y = C.length, c = y > 1 ? Y : 0, j = `calc((100% - ${c * Math.max(u - 1, 0)}px) / ${u})`, {
33
+ gestureBinds: A,
34
+ maxSlide: G,
35
+ nextSlide: N,
36
+ previousSlide: B,
37
+ slide: D,
38
+ trackStyle: E,
39
+ updateSlide: F
40
+ } = U({
41
+ activeIndex: m,
42
+ auto: R,
43
+ initialIndex: k,
44
+ length: y,
45
+ onSlideChange: $,
46
+ setSlideCustom: w,
47
+ slideGap: c,
48
+ slidesAtOnce: u,
49
+ slidesToSlide: L,
50
+ viewportRef: v
51
+ }), g = () => {
52
+ const n = [];
53
+ for (let r = 0; r <= G; r++)
54
+ n.push(l(S, {
55
+ isActive: r === D,
56
+ onClick: () => F(r),
57
+ style: _
58
+ }, r));
59
+ return n;
60
+ }, T = () => !a || o !== "overlay" ? null : d(H.Fragment, {
61
+ children: [l(i, {
62
+ className: s(e.slideCarouselArrow, e.arrowLeft),
63
+ style: t,
64
+ direction: "left",
65
+ onClick: B
66
+ }), l(i, {
67
+ className: s(e.slideCarouselArrow, e.arrowRight),
68
+ style: t,
69
+ direction: "right",
70
+ onClick: N
71
+ })]
72
+ }), V = () => !a || o !== "outside" ? null : l(i, {
73
+ style: t,
74
+ direction: "left",
75
+ onClick: B
76
+ }), W = () => !a || o !== "outside" ? null : l(i, {
77
+ style: t,
78
+ direction: "right",
79
+ onClick: N
80
+ }), X = () => !p || h !== "overlayBottom" ? null : l(f, {
81
+ placement: "overlayBottom",
82
+ children: l("ul", {
83
+ className: e.slideCarouselBullets,
84
+ children: g()
85
+ })
86
+ }), q = () => !p || h !== "below" ? null : l(f, {
87
+ placement: "below",
88
+ children: l("ul", {
89
+ className: e.slideCarouselBullets,
90
+ children: g()
91
+ })
64
92
  });
65
- N(() => {
66
- g.update((s) => ({
67
- offset: s - e
68
- })).start(), R(e);
69
- }, [e, g, R]), N(() => {
70
- let s;
71
- return l > 0 && (s = window.setInterval(() => {
72
- const o = (e + 1) % ((t == null ? void 0 : t.length) || 0);
73
- a(o);
74
- }, l)), () => {
75
- s && clearInterval(s);
76
- };
77
- }, [l, (t == null ? void 0 : t.length) || 0, e]), N(() => {
78
- a(p % ((t == null ? void 0 : t.length) || 0));
79
- }, [p, (t == null ? void 0 : t.length) || 0]);
80
- const C = t == null ? void 0 : t.map((s, o) => m("div", {
81
- className: r.slideCarouselSlide,
82
- children: s
83
- }, o)), J = (s) => {
84
- C[s].props.children.props.onClick && C[s].props.children.props.onClick();
85
- }, B = () => {
86
- a(0);
87
- }, E = () => {
88
- a(((t == null ? void 0 : t.length) || 0) - f);
89
- }, K = () => {
90
- const s = e === ((t == null ? void 0 : t.length) || 0) - f, o = e + (f - 1) + u < ((t == null ? void 0 : t.length) || 0) - 1;
91
- s ? B() : o ? a(e + u) : E();
92
- }, Q = () => {
93
- e === 0 ? E() : e - u <= 0 ? B() : a(e - u);
94
- }, U = () => {
95
- const s = [];
96
- for (let o = 0; o <= ((t == null ? void 0 : t.length) || 0) - f; o++)
97
- s.push(m(D, {
98
- isActive: o === e,
99
- onClick: () => a(o),
100
- style: $
101
- }, o));
102
- return s;
103
- };
104
- return m(c, {
105
- className: r.SlideCarouselContainer,
106
- innerRef: i,
107
- children: M("div", {
108
- className: r.slideCarousel,
109
- children: [G && M(X.Fragment, {
110
- children: [m(n, {
111
- className: j(r.slideCarouselArrow, r.arrowLeft, A),
112
- style: w,
113
- direction: "left",
114
- onClick: Q
115
- }), m(n, {
116
- className: j(r.slideCarouselArrow, r.arrowRight),
117
- style: w,
118
- direction: "right",
119
- onClick: K
93
+ return d(z, {
94
+ className: s(e.SlideCarouselContainer, O),
95
+ innerRef: b,
96
+ children: [d("div", {
97
+ className: s(e.carouselMain, o === "outside" ? e.carouselMainOutsideArrows : void 0),
98
+ children: [V(), d("div", {
99
+ className: e.slideCarousel,
100
+ children: [T(), X(), l("div", {
101
+ className: e.slideCarouselViewport,
102
+ ref: v,
103
+ children: l(I.div, {
104
+ ...A(),
105
+ className: e.slideCarouselTrack,
106
+ style: {
107
+ ...E,
108
+ gap: `${c}px`
109
+ },
110
+ children: C.map((n, r) => l("div", {
111
+ className: s(e.slideCarouselSlide, "slider__slide"),
112
+ style: {
113
+ flex: `0 0 ${j}`
114
+ },
115
+ children: n
116
+ }, r))
117
+ })
120
118
  })]
121
- }), I && m(P, {
122
- children: m("ul", {
123
- className: r.slideCarouselBullets,
124
- children: U()
125
- })
126
- }), z.map(({
127
- offset: s
128
- }, o) => Z(O.div, {
129
- ...H(),
130
- key: o,
131
- className: "slider__slide",
132
- style: {
133
- transform: s == null ? void 0 : s.to((k) => `translate3d(${k * 100}%, 0, 0)`),
134
- position: "absolute",
135
- width: `${100 / f}%`,
136
- height: "100%",
137
- willChange: "transform",
138
- touchAction: "none"
139
- }
140
- }, C[o]))]
141
- })
119
+ }), W()]
120
+ }), q()]
142
121
  });
143
122
  };
144
123
  export {
145
- kt as SlideCarousel
124
+ de as SlideCarousel
146
125
  };
@@ -1,19 +1,27 @@
1
- const e = "SlideCarouselContainer_uf", l = "slide-carousel_NQ", s = "slide-carousel-slide_ZA", r = "slide-carousel-arrow_R5", o = "arrow-left_zm", a = "arrow-right_Y7", i = "slide-carousel-bullets_g-", t = {
2
- SlideCarouselContainer: e,
1
+ const s = "SlideCarouselContainer_uf", e = "carousel-main_E6", r = "carousel-main-outside-arrows_8B", l = "slide-carousel_NQ", o = "slide-carousel-arrow_R5", a = "arrow-left_zm", i = "arrow-right_Y7", u = "slide-carousel-bullets_g-", t = "slide-carousel-viewport_6P", d = "slide-carousel-track_p9", c = "slide-carousel-slide_ZA", n = {
2
+ SlideCarouselContainer: s,
3
+ carouselMain: e,
4
+ carouselMainOutsideArrows: r,
3
5
  slideCarousel: l,
4
- slideCarouselSlide: s,
5
- slideCarouselArrow: r,
6
- arrowLeft: o,
7
- arrowRight: a,
8
- slideCarouselBullets: i
6
+ slideCarouselArrow: o,
7
+ arrowLeft: a,
8
+ arrowRight: i,
9
+ slideCarouselBullets: u,
10
+ slideCarouselViewport: t,
11
+ slideCarouselTrack: d,
12
+ slideCarouselSlide: c
9
13
  };
10
14
  export {
11
- e as SlideCarouselContainer,
12
- o as arrowLeft,
13
- a as arrowRight,
14
- t as default,
15
+ s as SlideCarouselContainer,
16
+ a as arrowLeft,
17
+ i as arrowRight,
18
+ e as carouselMain,
19
+ r as carouselMainOutsideArrows,
20
+ n as default,
15
21
  l as slideCarousel,
16
- r as slideCarouselArrow,
17
- i as slideCarouselBullets,
18
- s as slideCarouselSlide
22
+ o as slideCarouselArrow,
23
+ u as slideCarouselBullets,
24
+ c as slideCarouselSlide,
25
+ d as slideCarouselTrack,
26
+ t as slideCarouselViewport
19
27
  };
@@ -1,7 +1,7 @@
1
1
  import ut from "./index-objectWithoutPropertiesLoose.js";
2
2
  import o from "./index-extends.js";
3
3
  import * as we from "react";
4
- import e from "./index-_virtual16.js";
4
+ import e from "./index-_virtual17.js";
5
5
  import { clsx as J } from "./index-clsx.js";
6
6
  import { c as T } from "./index-colorManipulator2.js";
7
7
  import { useRtl as ct } from "./index-RtlProvider.js";
@@ -1,5 +1,5 @@
1
1
  import * as o from "react";
2
- import a from "./index-_virtual16.js";
2
+ import a from "./index-_virtual17.js";
3
3
  import { clsx as c } from "./index-clsx.js";
4
4
  import r from "./index-sliderClasses.js";
5
5
  import { jsxs as m, jsx as n } from "react/jsx-runtime";
@@ -1,7 +1,7 @@
1
1
  import O from "./index-objectWithoutPropertiesLoose.js";
2
2
  import e from "./index-extends.js";
3
3
  import * as x from "react";
4
- import o from "./index-_virtual16.js";
4
+ import o from "./index-_virtual17.js";
5
5
  import $ from "./index-useSnackbar.js";
6
6
  import { getSnackbarUtilityClass as F } from "./index-snackbarClasses.js";
7
7
  import { jsx as s } from "react/jsx-runtime";
@@ -1,7 +1,7 @@
1
1
  import g from "./index-objectWithoutPropertiesLoose.js";
2
2
  import p from "./index-extends.js";
3
3
  import * as b from "react";
4
- import e from "./index-_virtual16.js";
4
+ import e from "./index-_virtual17.js";
5
5
  import { clsx as C } from "./index-clsx.js";
6
6
  import { c as x } from "./index-colorManipulator2.js";
7
7
  import c from "./index-styled.js";
@@ -1,5 +1,5 @@
1
1
  import * as p from "react";
2
- import c from "./index-_virtual16.js";
2
+ import c from "./index-_virtual17.js";
3
3
  import "./index-emotion-react.browser.esm.js";
4
4
  import m from "./index-emotion-cache.browser.esm.js";
5
5
  import { jsx as l } from "react/jsx-runtime";
@@ -1,7 +1,7 @@
1
1
  import S from "./index-extends.js";
2
2
  import z from "./index-objectWithoutPropertiesLoose.js";
3
3
  import * as x 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 w from "./index-styled.js";
7
7
  import { getSvgIconUtilityClass as T } from "./index-svgIconClasses.js";
@@ -1,7 +1,7 @@
1
1
  import E from "./index-objectWithoutPropertiesLoose.js";
2
2
  import u from "./index-extends.js";
3
3
  import * as p from "react";
4
- import e from "./index-_virtual16.js";
4
+ import e from "./index-_virtual17.js";
5
5
  import { clsx as T } from "./index-clsx.js";
6
6
  import _ from "./index-styled.js";
7
7
  import a, { getTabUtilityClass as D } from "./index-tabClasses.js";
@@ -1,7 +1,7 @@
1
1
  import P from "./index-objectWithoutPropertiesLoose.js";
2
2
  import n from "./index-extends.js";
3
3
  import * as R from "react";
4
- import o from "./index-_virtual16.js";
4
+ import o from "./index-_virtual17.js";
5
5
  import { clsx as x } from "./index-clsx.js";
6
6
  import { useRtl as v } from "./index-RtlProvider.js";
7
7
  import O from "./index-KeyboardArrowLeft.js";