@semcore/carousel 3.49.2-prerelease.0 → 3.50.0-prerelease.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 (67) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/lib/cjs/Carousel.js +165 -178
  3. package/lib/cjs/Carousel.js.map +1 -1
  4. package/lib/cjs/Carousel.types.js.map +1 -1
  5. package/lib/cjs/index.js +1 -1
  6. package/lib/cjs/index.js.map +1 -1
  7. package/lib/cjs/style/carousel.shadow.css +52 -54
  8. package/lib/cjs/translations/__intergalactic-dynamic-locales.js +4 -5
  9. package/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -1
  10. package/lib/cjs/translations/de.json +3 -1
  11. package/lib/cjs/translations/en.json +3 -1
  12. package/lib/cjs/translations/es.json +3 -1
  13. package/lib/cjs/translations/fr.json +3 -1
  14. package/lib/cjs/translations/it.json +3 -1
  15. package/lib/cjs/translations/ja.json +3 -1
  16. package/lib/cjs/translations/ko.json +3 -1
  17. package/lib/cjs/translations/nl.json +3 -1
  18. package/lib/cjs/translations/pl.json +3 -1
  19. package/lib/cjs/translations/pt.json +3 -1
  20. package/lib/cjs/translations/sv.json +3 -1
  21. package/lib/cjs/translations/tr.json +3 -1
  22. package/lib/cjs/translations/vi.json +3 -1
  23. package/lib/cjs/translations/zh.json +3 -1
  24. package/lib/es6/Carousel.js +152 -162
  25. package/lib/es6/Carousel.js.map +1 -1
  26. package/lib/es6/Carousel.types.js.map +1 -1
  27. package/lib/es6/index.js.map +1 -1
  28. package/lib/es6/style/carousel.shadow.css +52 -54
  29. package/lib/es6/translations/__intergalactic-dynamic-locales.js +2 -2
  30. package/lib/es6/translations/__intergalactic-dynamic-locales.js.map +1 -1
  31. package/lib/es6/translations/de.json +3 -1
  32. package/lib/es6/translations/en.json +3 -1
  33. package/lib/es6/translations/es.json +3 -1
  34. package/lib/es6/translations/fr.json +3 -1
  35. package/lib/es6/translations/it.json +3 -1
  36. package/lib/es6/translations/ja.json +3 -1
  37. package/lib/es6/translations/ko.json +3 -1
  38. package/lib/es6/translations/nl.json +3 -1
  39. package/lib/es6/translations/pl.json +3 -1
  40. package/lib/es6/translations/pt.json +3 -1
  41. package/lib/es6/translations/sv.json +3 -1
  42. package/lib/es6/translations/tr.json +3 -1
  43. package/lib/es6/translations/vi.json +3 -1
  44. package/lib/es6/translations/zh.json +3 -1
  45. package/lib/esm/Carousel.mjs +148 -160
  46. package/lib/esm/Carousel.types.mjs +1 -0
  47. package/lib/esm/index.mjs +1 -0
  48. package/lib/esm/style/carousel.shadow.css +52 -54
  49. package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +2 -2
  50. package/lib/esm/translations/de.json.mjs +3 -1
  51. package/lib/esm/translations/en.json.mjs +3 -1
  52. package/lib/esm/translations/es.json.mjs +3 -1
  53. package/lib/esm/translations/fr.json.mjs +3 -1
  54. package/lib/esm/translations/it.json.mjs +3 -1
  55. package/lib/esm/translations/ja.json.mjs +3 -1
  56. package/lib/esm/translations/ko.json.mjs +3 -1
  57. package/lib/esm/translations/nl.json.mjs +3 -1
  58. package/lib/esm/translations/pl.json.mjs +3 -1
  59. package/lib/esm/translations/pt.json.mjs +3 -1
  60. package/lib/esm/translations/sv.json.mjs +3 -1
  61. package/lib/esm/translations/tr.json.mjs +3 -1
  62. package/lib/esm/translations/vi.json.mjs +3 -1
  63. package/lib/esm/translations/zh.json.mjs +3 -1
  64. package/lib/types/Carousel.d.ts +1 -1
  65. package/lib/types/Carousel.types.d.ts +4 -12
  66. package/lib/types/translations/__intergalactic-dynamic-locales.d.ts +28 -0
  67. package/package.json +8 -8
@@ -2,5 +2,7 @@
2
2
  "next": "下一张幻灯片",
3
3
  "prev": "上一张幻灯片",
4
4
  "slides": "幻灯片",
5
- "slide": "幻灯片 {slideNumber}"
5
+ "slide": "幻灯片 {slideNumber}",
6
+ "Carousel:aria-roledescription": "广告轮播",
7
+ "Carousel.Indicator:aria-roledescription": "幻灯片"
6
8
  }
@@ -3,55 +3,51 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
3
3
  import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
4
4
  import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
5
5
  import _createClass from "@babel/runtime/helpers/esm/createClass";
6
- import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
6
+ import _callSuper from "@babel/runtime/helpers/esm/callSuper";
7
7
  import _inherits from "@babel/runtime/helpers/esm/inherits";
8
- import _createSuper from "@babel/runtime/helpers/esm/createSuper";
9
8
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
10
- import { sstyled } from "@semcore/utils/lib/core/index";
11
- import createComponent, { sstyled as sstyled$1, assignProps, Component } from "@semcore/core";
12
- import React from "react";
9
+ import { sstyled, assignProps, Component, createComponent } from "@semcore/core";
10
+ import { createBreakpoints, Box, Flex } from "@semcore/base-components";
13
11
  import Button from "@semcore/button";
14
- import Modal from "@semcore/modal";
15
- import { Flex, Box } from "@semcore/flex-box";
16
- import ChevronRight from "@semcore/icon/ChevronRight/l";
12
+ import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
13
+ import { findAllComponents } from "@semcore/core/lib/utils/findComponent";
14
+ import logger from "@semcore/core/lib/utils/logger";
15
+ import uniqueIDEnhancement from "@semcore/core/lib/utils/uniqueID";
17
16
  import ChevronLeft from "@semcore/icon/ChevronLeft/l";
18
- import uniqueIDEnhancement from "@semcore/utils/lib/uniqueID";
19
- import i18nEnhance from "@semcore/utils/lib/enhances/i18nEnhance";
17
+ import ChevronRight from "@semcore/icon/ChevronRight/l";
18
+ import Modal from "@semcore/modal";
19
+ import React from "react";
20
20
  import { localizedMessages } from "./translations/__intergalactic-dynamic-locales.mjs";
21
- import logger from "@semcore/utils/lib/logger";
22
- import { findAllComponents } from "@semcore/utils/lib/findComponent";
23
- import { createBreakpoints } from "@semcore/breakpoints";
24
- import keyboardFocusEnhance from "@semcore/utils/lib/enhances/keyboardFocusEnhance";
25
21
  /*!__reshadow-styles__:"./style/carousel.shadow.css"*/
26
22
  var style = (
27
23
  /*__reshadow_css_start__*/
28
24
  (sstyled.insert(
29
25
  /*__inner_css_start__*/
30
- '.___SCarousel_33mp3_gg_{overflow:hidden;outline:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.___SContainer_33mp3_gg_{display:flex;transition:transform var(--duration_33mp3) ease-in-out}.___SContentBox_33mp3_gg_,.___SModalBox_33mp3_gg_{position:relative;overflow:hidden;border-radius:var(--intergalactic-surface-rounded, 6px)}.___SContentBox_33mp3_gg_:has(.___SItem_33mp3_gg_.__keyboardFocused_33mp3_gg_):after,.___SModalBox_33mp3_gg_:has(.___SItem_33mp3_gg_.__keyboardFocused_33mp3_gg_):after{content:"";display:block;position:absolute;box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5));z-index:1;width:calc(100% - 3px*2);height:calc(100% - 3px*2);top:3px;left:3px}.___SModalContainer_33mp3_gg_{display:flex;transition:transform var(--duration_33mp3) ease-in-out}.___SItem_33mp3_gg_{flex:0 0 100%;max-width:100%;box-sizing:border-box;transform:var(--transform_33mp3);border-radius:var(--intergalactic-surface-rounded, 6px);overflow:hidden;outline:0}.___SItem_33mp3_gg_.__zoomIn_33mp3_gg_{cursor:zoom-in}.___SItem_33mp3_gg_.__zoomOut_33mp3_gg_{cursor:zoom-out}.___SIndicators_33mp3_gg_{display:flex;justify-content:center;margin-top:var(--intergalactic-spacing-4x, 16px);outline:0;position:relative}.___SIndicators_33mp3_gg_.__keyboardFocused_33mp3_gg_:after{content:"";display:block;position:absolute;box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5));z-index:1;width:calc(100% - 3px*2);height:calc(100% - 3px);top:0;left:3px}.___SIndicator_33mp3_gg_{margin:0 calc(.5*var(--intergalactic-spacing-3x, 12px));cursor:pointer;display:block;width:12px;height:12px;border-radius:var(--intergalactic-control-rounded, 6px);background-color:var(--intergalactic-icon-secondary-neutral, #a9abb6);opacity:var(--intergalactic-disabled-opacity, 0.3);-o-object-fit:cover;object-fit:cover;transition:ease-in-out opacity .1s}@media (hover:hover){.___SIndicator_33mp3_gg_:hover{opacity:calc(2*var(--intergalactic-disabled-opacity, 0.3))}}.___SIndicator_33mp3_gg_.__active_33mp3_gg_{opacity:1}.___SIndicator_33mp3_gg_.__inverted_33mp3_gg_{background-color:var(--intergalactic-icon-primary-invert, #ffffff)}.___SNext_33mp3_gg_,.___SPrev_33mp3_gg_{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;color:var(--intergalactic-icon-primary-neutral, #6c6e79)}.___SNext_33mp3_gg_ .___SNextButton_33mp3_gg_ span:has(>svg:only-child),.___SNext_33mp3_gg_ .___SPrevButton_33mp3_gg_ span:has(>svg:only-child),.___SPrev_33mp3_gg_ .___SNextButton_33mp3_gg_ span:has(>svg:only-child),.___SPrev_33mp3_gg_ .___SPrevButton_33mp3_gg_ span:has(>svg:only-child){margin-left:calc(2*var(--intergalactic-spacing-1x, 4px) - 1px);margin-right:calc(2*var(--intergalactic-spacing-1x, 4px) - 1px)}.___SNextButton_33mp3_gg_:focus-visible,.___SPrevButton_33mp3_gg_:focus-visible{box-shadow:none}.___SNextButton_33mp3_gg_:focus-visible:after,.___SPrevButton_33mp3_gg_:focus-visible:after{content:"";display:block;position:absolute;box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5));z-index:1;width:calc(100% - 3px*2);height:calc(100% - 3px*2);top:3px;left:3px;border-radius:var(--intergalactic-control-rounded, 6px)}.___SPrev_33mp3_gg_{margin-right:var(--intergalactic-spacing-2x, 8px)}.___SNext_33mp3_gg_{margin-left:var(--intergalactic-spacing-2x, 8px)}.___SNext_33mp3_gg_.__disabled_33mp3_gg_,.___SPrev_33mp3_gg_.__disabled_33mp3_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none}@media (prefers-reduced-motion){.___SContainer_33mp3_gg_{transition:none}}',
26
+ '.___SCarousel_mxe6r_gg_{overflow:hidden;outline:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.___SContainer_mxe6r_gg_{display:flex;transition:transform var(--duration_mxe6r) ease-in-out}.___SContentBox_mxe6r_gg_,.___SIndicator_mxe6r_gg_,.___SModalBox_mxe6r_gg_{position:relative;overflow:hidden;border-radius:var(--intergalactic-surface-rounded, calc(6px + 2px))}.___SContentBox_mxe6r_gg_:has(.___SItem_mxe6r_gg_:focus-visible)::after{border-radius:inherit;z-index:2;position:absolute;top:0;right:0;bottom:0;left:0;content:"";outline-color:var(--intergalactic-keyboard-focus-outline, #008ff8);outline-style:solid;outline-width:2px;outline-offset:-2px;transition-duration:calc(var(--intergalactic-duration-extra-fast, 100)*1ms);transition-timing-function:ease-in-out;transition-property:outline-color,outline-width,outline-offset}.___SImageBoxContainer_mxe6r_gg_{position:relative;border-radius:var(--intergalactic-surface-rounded, calc(6px + 2px))}.___SImageBoxContainer_mxe6r_gg_:has(.___SItem_mxe6r_gg_:focus-visible)::after{border-radius:inherit;z-index:2;position:absolute;top:0;right:0;bottom:0;left:0;content:"";outline-color:var(--intergalactic-keyboard-focus-outline, #008ff8);outline-style:solid;outline-width:2px;outline-offset:2px;transition-duration:calc(var(--intergalactic-duration-extra-fast, 100)*1ms);transition-timing-function:ease-in-out;transition-property:outline-color,outline-width,outline-offset}@supports (color:oklab(0%0 0%)){.___SImageBoxContainer_mxe6r_gg_:has(.___SItem_mxe6r_gg_:focus-visible)::after{outline-color:var(--intergalactic-keyboard-focus-invert-outline, oklch(1 0 0 / 0.7))}}.___SImageBoxContainer_mxe6r_gg_ .___SItem_mxe6r_gg_:focus-visible{outline:0}.___SModalContainer_mxe6r_gg_{display:flex;transition:transform var(--duration_mxe6r) ease-in-out}.___SItem_mxe6r_gg_{flex:0 0 100%;max-width:100%;box-sizing:border-box;transform:var(--transform_mxe6r);border-radius:var(--intergalactic-surface-rounded, calc(6px + 2px));overflow:hidden;outline:0}.___SItem_mxe6r_gg_>img{display:block}.___SItem_mxe6r_gg_.__zoomIn_mxe6r_gg_{cursor:zoom-in}.___SItem_mxe6r_gg_.__zoomOut_mxe6r_gg_{cursor:zoom-out}.___SIndicators_mxe6r_gg_{display:flex;justify-content:center;margin:var(--intergalactic-spacing-4x, 16px) 4px 4px 4px;outline:0;position:relative}.___SIndicator_mxe6r_gg_{margin:0 calc(.5*var(--intergalactic-spacing-3x, 12px));cursor:pointer;display:block;width:12px;height:12px;background-color:var(--intergalactic-icon-secondary-neutral, rgba(0, 5, 2, 0.385));opacity:var(--intergalactic-disabled-opacity, 0.4);-o-object-fit:cover;object-fit:cover;transition:ease-in-out opacity .1s}@supports (color:color(display-p3 0 0 0%)){.___SIndicator_mxe6r_gg_{background-color:var(--intergalactic-icon-secondary-neutral, rgba(0, 5, 2, 0.385))}@media (color-gamut:p3){.___SIndicator_mxe6r_gg_{background-color:var(--intergalactic-icon-secondary-neutral, color(display-p3 0.0036 0.02041 0.00996 / 0.385))}}}.___SIndicator_mxe6r_gg_[aria-roledescription=slide]{width:100px;height:100px}@media (hover:hover){.___SIndicator_mxe6r_gg_:hover{opacity:calc(2*var(--intergalactic-disabled-opacity, 0.4))}}.___SIndicator_mxe6r_gg_.__active_mxe6r_gg_{opacity:1}.___SIndicator_mxe6r_gg_.__inverted_mxe6r_gg_{background-color:var(--intergalactic-icon-primary-invert, rgba(253, 255, 254, 0.808))}@supports (color:color(display-p3 0 0 0%)){.___SIndicator_mxe6r_gg_.__inverted_mxe6r_gg_{background-color:var(--intergalactic-icon-primary-invert, rgba(253, 255, 254, 0.808))}@media (color-gamut:p3){.___SIndicator_mxe6r_gg_.__inverted_mxe6r_gg_{background-color:var(--intergalactic-icon-primary-invert, color(display-p3 0.99189 0.99995 0.99683 / 0.808))}}}.___SNext_mxe6r_gg_,.___SPrev_mxe6r_gg_{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;color:var(--intergalactic-icon-primary-neutral, rgba(0, 4, 1, 0.526))}.___SNext_mxe6r_gg_ .___SNextButton_mxe6r_gg_ span:has(>svg:only-child),.___SNext_mxe6r_gg_ .___SPrevButton_mxe6r_gg_ span:has(>svg:only-child),.___SPrev_mxe6r_gg_ .___SNextButton_mxe6r_gg_ span:has(>svg:only-child),.___SPrev_mxe6r_gg_ .___SPrevButton_mxe6r_gg_ span:has(>svg:only-child){margin-left:calc(2*var(--intergalactic-spacing-1x, 4px) - 1px);margin-right:calc(2*var(--intergalactic-spacing-1x, 4px) - 1px)}.___SPrev_mxe6r_gg_{margin-right:var(--intergalactic-spacing-2x, 8px)}.___SNext_mxe6r_gg_{margin-left:var(--intergalactic-spacing-2x, 8px)}.___SNext_mxe6r_gg_.__disabled_mxe6r_gg_,.___SPrev_mxe6r_gg_.__disabled_mxe6r_gg_{opacity:var(--intergalactic-disabled-opacity, 0.4);cursor:default;pointer-events:none}@media (prefers-reduced-motion){.___SContainer_mxe6r_gg_{transition:none}}',
31
27
  /*__inner_css_end__*/
32
- "33mp3_gg_"
28
+ "mxe6r_gg_"
33
29
  ), /*__reshadow_css_end__*/
34
30
  {
35
- "__SCarousel": "___SCarousel_33mp3_gg_",
36
- "__SContainer": "___SContainer_33mp3_gg_",
37
- "--duration": "--duration_33mp3",
38
- "__SModalContainer": "___SModalContainer_33mp3_gg_",
39
- "__SItem": "___SItem_33mp3_gg_",
40
- "--transform": "--transform_33mp3",
41
- "_zoomIn": "__zoomIn_33mp3_gg_",
42
- "_zoomOut": "__zoomOut_33mp3_gg_",
43
- "__SIndicators": "___SIndicators_33mp3_gg_",
44
- "_keyboardFocused": "__keyboardFocused_33mp3_gg_",
45
- "__SIndicator": "___SIndicator_33mp3_gg_",
46
- "_active": "__active_33mp3_gg_",
47
- "_inverted": "__inverted_33mp3_gg_",
48
- "__SPrev": "___SPrev_33mp3_gg_",
49
- "__SNext": "___SNext_33mp3_gg_",
50
- "_disabled": "__disabled_33mp3_gg_",
51
- "__SContentBox": "___SContentBox_33mp3_gg_",
52
- "__SModalBox": "___SModalBox_33mp3_gg_",
53
- "__SPrevButton": "___SPrevButton_33mp3_gg_",
54
- "__SNextButton": "___SNextButton_33mp3_gg_"
31
+ "__SCarousel": "___SCarousel_mxe6r_gg_",
32
+ "__SContainer": "___SContainer_mxe6r_gg_",
33
+ "--duration": "--duration_mxe6r",
34
+ "__SContentBox": "___SContentBox_mxe6r_gg_",
35
+ "__SModalBox": "___SModalBox_mxe6r_gg_",
36
+ "__SIndicator": "___SIndicator_mxe6r_gg_",
37
+ "__SItem": "___SItem_mxe6r_gg_",
38
+ "__SModalContainer": "___SModalContainer_mxe6r_gg_",
39
+ "_zoomIn": "__zoomIn_mxe6r_gg_",
40
+ "_zoomOut": "__zoomOut_mxe6r_gg_",
41
+ "__SIndicators": "___SIndicators_mxe6r_gg_",
42
+ "_active": "__active_mxe6r_gg_",
43
+ "_inverted": "__inverted_mxe6r_gg_",
44
+ "__SPrev": "___SPrev_mxe6r_gg_",
45
+ "__SNext": "___SNext_mxe6r_gg_",
46
+ "_disabled": "__disabled_mxe6r_gg_",
47
+ "__SImageBoxContainer": "___SImageBoxContainer_mxe6r_gg_",
48
+ "--transform": "--transform_mxe6r",
49
+ "__SPrevButton": "___SPrevButton_mxe6r_gg_",
50
+ "__SNextButton": "___SNextButton_mxe6r_gg_"
55
51
  })
56
52
  );
57
53
  var MAP_TRANSFORM = {
@@ -64,20 +60,18 @@ var BreakPoints = createBreakpoints(media);
64
60
  var isSmallScreen = function isSmallScreen2(index) {
65
61
  return index === 1;
66
62
  };
67
- var CarouselRoot = /* @__PURE__ */ function(_Component) {
68
- _inherits(CarouselRoot2, _Component);
69
- var _super = _createSuper(CarouselRoot2);
63
+ var CarouselRoot = /* @__PURE__ */ (function(_Component) {
70
64
  function CarouselRoot2(props) {
71
- var _ref20, _props$index;
65
+ var _ref18, _props$index;
72
66
  var _this;
73
67
  _classCallCheck(this, CarouselRoot2);
74
- _this = _super.call(this, props);
75
- _defineProperty(_assertThisInitialized(_this), "defaultItemsCount", 0);
76
- _defineProperty(_assertThisInitialized(_this), "refCarousel", /* @__PURE__ */ React.createRef());
77
- _defineProperty(_assertThisInitialized(_this), "refContainer", /* @__PURE__ */ React.createRef());
78
- _defineProperty(_assertThisInitialized(_this), "refModalContainer", /* @__PURE__ */ React.createRef());
79
- _defineProperty(_assertThisInitialized(_this), "_touchStartCoord", -1);
80
- _defineProperty(_assertThisInitialized(_this), "handlerKeyDown", function(e) {
68
+ _this = _callSuper(this, CarouselRoot2, [props]);
69
+ _defineProperty(_this, "defaultItemsCount", 0);
70
+ _defineProperty(_this, "refCarousel", /* @__PURE__ */ React.createRef());
71
+ _defineProperty(_this, "refContainer", /* @__PURE__ */ React.createRef());
72
+ _defineProperty(_this, "refModalContainer", /* @__PURE__ */ React.createRef());
73
+ _defineProperty(_this, "_touchStartCoord", -1);
74
+ _defineProperty(_this, "handlerKeyDown", function(e) {
81
75
  var firstSlide = 1;
82
76
  var lastSlide = _this.state.items.length + 1;
83
77
  switch (e.key) {
@@ -111,7 +105,7 @@ var CarouselRoot = /* @__PURE__ */ function(_Component) {
111
105
  _this.handleToggleZoomModal();
112
106
  }
113
107
  });
114
- _defineProperty(_assertThisInitialized(_this), "toggleItem", function(item) {
108
+ _defineProperty(_this, "toggleItem", function(item) {
115
109
  var removeItem = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
116
110
  _this.setState(function(prevState) {
117
111
  var newItems = removeItem ? prevState.items.filter(function(element) {
@@ -125,7 +119,7 @@ var CarouselRoot = /* @__PURE__ */ function(_Component) {
125
119
  _this.defaultItemsCount++;
126
120
  }
127
121
  });
128
- _defineProperty(_assertThisInitialized(_this), "transformContainer", function() {
122
+ _defineProperty(_this, "transformContainer", function() {
129
123
  var transform = _this.state.selectedIndex * -1 * 100;
130
124
  if (_this.refContainer.current) {
131
125
  _this.refContainer.current.style.transform = "translateX(".concat(transform, "%)");
@@ -134,7 +128,7 @@ var CarouselRoot = /* @__PURE__ */ function(_Component) {
134
128
  _this.refModalContainer.current.style.transform = "translateX(".concat(transform, "%)");
135
129
  }
136
130
  });
137
- _defineProperty(_assertThisInitialized(_this), "getDirection", function(currentIndex, nextIndex) {
131
+ _defineProperty(_this, "getDirection", function(currentIndex, nextIndex) {
138
132
  var bounded = _this.asProps.bounded;
139
133
  if (bounded) {
140
134
  return currentIndex < nextIndex ? "right" : "left";
@@ -161,7 +155,7 @@ var CarouselRoot = /* @__PURE__ */ function(_Component) {
161
155
  var left = tmpArr.indexOf(nextIndex);
162
156
  return left - tmpCurrentIndex < 0 ? "left" : "right";
163
157
  });
164
- _defineProperty(_assertThisInitialized(_this), "slideToValue", function(nextIndex) {
158
+ _defineProperty(_this, "slideToValue", function(nextIndex) {
165
159
  var selectedIndex = _this.state.selectedIndex;
166
160
  var direction = selectedIndex < nextIndex ? "right" : "left";
167
161
  var diff = Math.abs(selectedIndex - nextIndex);
@@ -170,7 +164,7 @@ var CarouselRoot = /* @__PURE__ */ function(_Component) {
170
164
  diff--;
171
165
  }
172
166
  });
173
- _defineProperty(_assertThisInitialized(_this), "transformItem", function(direction) {
167
+ _defineProperty(_this, "transformItem", function(direction) {
174
168
  var bounded = _this.asProps.bounded;
175
169
  var _this$state = _this.state, items = _this$state.items, selectedIndex = _this$state.selectedIndex;
176
170
  var maxIndexIndicator = items.length - 1;
@@ -213,12 +207,12 @@ var CarouselRoot = /* @__PURE__ */ function(_Component) {
213
207
  return;
214
208
  }
215
209
  });
216
- _defineProperty(_assertThisInitialized(_this), "bindHandlerClick", function(direction) {
210
+ _defineProperty(_this, "bindHandlerClick", function(direction) {
217
211
  return function() {
218
212
  _this.transformItem(direction);
219
213
  };
220
214
  });
221
- _defineProperty(_assertThisInitialized(_this), "bindHandlerClickIndicator", function(value) {
215
+ _defineProperty(_this, "bindHandlerClickIndicator", function(value) {
222
216
  return function() {
223
217
  var _this$state2 = _this.state, selectedIndex = _this$state2.selectedIndex, items = _this$state2.items;
224
218
  if (!_this.isControlled && value !== selectedIndex) {
@@ -228,10 +222,10 @@ var CarouselRoot = /* @__PURE__ */ function(_Component) {
228
222
  _this.handlers.index(value);
229
223
  };
230
224
  });
231
- _defineProperty(_assertThisInitialized(_this), "handlerTouchStart", function(e) {
225
+ _defineProperty(_this, "handlerTouchStart", function(e) {
232
226
  _this._touchStartCoord = e.changedTouches[0].clientX;
233
227
  });
234
- _defineProperty(_assertThisInitialized(_this), "handlerTouchEnd", function(e) {
228
+ _defineProperty(_this, "handlerTouchEnd", function(e) {
235
229
  var touchEndCoord = e.changedTouches[0].clientX;
236
230
  var delta = touchEndCoord - _this._touchStartCoord;
237
231
  if (delta > 50) {
@@ -240,16 +234,18 @@ var CarouselRoot = /* @__PURE__ */ function(_Component) {
240
234
  _this.transformItem("right");
241
235
  }
242
236
  });
243
- _defineProperty(_assertThisInitialized(_this), "handleToggleZoomModal", function() {
237
+ _defineProperty(_this, "handleToggleZoomModal", function() {
244
238
  _this.setState(function(prevState) {
245
239
  return {
246
240
  isOpenZoom: !prevState.isOpenZoom
247
241
  };
248
242
  }, function() {
249
- _this.state.isOpenZoom && _this.transformContainer();
243
+ if (_this.state.isOpenZoom) {
244
+ _this.transformContainer();
245
+ }
250
246
  });
251
247
  });
252
- _defineProperty(_assertThisInitialized(_this), "bindHandlerKeydownControl", function(direction) {
248
+ _defineProperty(_this, "bindHandlerKeydownControl", function(direction) {
253
249
  return function(e) {
254
250
  if (e.key === "Enter" || e.key === " ") {
255
251
  e.preventDefault();
@@ -261,21 +257,22 @@ var CarouselRoot = /* @__PURE__ */ function(_Component) {
261
257
  _this.state = {
262
258
  items: [],
263
259
  isOpenZoom: false,
264
- selectedIndex: (_ref20 = (_props$index = props.index) !== null && _props$index !== void 0 ? _props$index : props.defaultIndex) !== null && _ref20 !== void 0 ? _ref20 : 0
260
+ selectedIndex: (_ref18 = (_props$index = props.index) !== null && _props$index !== void 0 ? _props$index : props.defaultIndex) !== null && _ref18 !== void 0 ? _ref18 : 0
265
261
  };
266
262
  return _this;
267
263
  }
268
- _createClass(CarouselRoot2, [{
264
+ _inherits(CarouselRoot2, _Component);
265
+ return _createClass(CarouselRoot2, [{
269
266
  key: "uncontrolledProps",
270
267
  value: function uncontrolledProps() {
271
268
  var _this2 = this;
272
269
  return {
273
270
  index: [null, function(_index) {
274
271
  var _this2$refCarousel$cu;
275
- (_this2$refCarousel$cu = _this2.refCarousel.current) === null || _this2$refCarousel$cu === void 0 ? void 0 : _this2$refCarousel$cu.blur();
272
+ (_this2$refCarousel$cu = _this2.refCarousel.current) === null || _this2$refCarousel$cu === void 0 || _this2$refCarousel$cu.blur();
276
273
  setTimeout(function() {
277
274
  var _this2$refCarousel$cu2;
278
- (_this2$refCarousel$cu2 = _this2.refCarousel.current) === null || _this2$refCarousel$cu2 === void 0 ? void 0 : _this2$refCarousel$cu2.focus();
275
+ (_this2$refCarousel$cu2 = _this2.refCarousel.current) === null || _this2$refCarousel$cu2 === void 0 || _this2$refCarousel$cu2.focus();
279
276
  }, 0);
280
277
  }]
281
278
  };
@@ -321,7 +318,7 @@ var CarouselRoot = /* @__PURE__ */ function(_Component) {
321
318
  }
322
319
  }, {
323
320
  key: "getItemProps",
324
- value: function getItemProps(props, index) {
321
+ value: function getItemProps(_props, index) {
325
322
  var zoom = this.asProps.zoom;
326
323
  var isCurrent = this.isSelected(index);
327
324
  return {
@@ -345,10 +342,10 @@ var CarouselRoot = /* @__PURE__ */ function(_Component) {
345
342
  disabled = selectedIndex === 0;
346
343
  }
347
344
  return {
348
- onClick: this.bindHandlerClick("left"),
349
- onKeyDown: this.bindHandlerKeydownControl("left"),
345
+ "onClick": this.bindHandlerClick("left"),
346
+ "onKeyDown": this.bindHandlerKeydownControl("left"),
350
347
  disabled,
351
- label: getI18nText("prev"),
348
+ "label": getI18nText("prev"),
352
349
  "aria-controls": "igc-".concat(uid, "-carousel")
353
350
  };
354
351
  }
@@ -362,10 +359,10 @@ var CarouselRoot = /* @__PURE__ */ function(_Component) {
362
359
  disabled = selectedIndex === items.length - 1;
363
360
  }
364
361
  return {
365
- onClick: this.bindHandlerClick("right"),
366
- onKeyDown: this.bindHandlerKeydownControl("right"),
362
+ "onClick": this.bindHandlerClick("right"),
363
+ "onKeyDown": this.bindHandlerKeydownControl("right"),
367
364
  disabled,
368
- label: getI18nText("next"),
365
+ "label": getI18nText("next"),
369
366
  "aria-controls": "igc-".concat(uid, "-carousel")
370
367
  };
371
368
  }
@@ -376,14 +373,15 @@ var CarouselRoot = /* @__PURE__ */ function(_Component) {
376
373
  var items = this.state.items;
377
374
  var getI18nText = this.asProps.getI18nText;
378
375
  return {
379
- items: items.map(function(item, key) {
376
+ "items": items.map(function(_item, key) {
380
377
  return {
381
378
  active: _this4.isSelected(key),
382
379
  onClick: _this4.bindHandlerClickIndicator(key),
383
380
  key
384
381
  };
385
382
  }),
386
- role: "tablist",
383
+ "role": "tablist",
384
+ "tabIndex": 0,
387
385
  "aria-label": getI18nText("slides")
388
386
  };
389
387
  }
@@ -393,7 +391,7 @@ var CarouselRoot = /* @__PURE__ */ function(_Component) {
393
391
  var isCurrent = this.isSelected(index);
394
392
  var getI18nText = this.asProps.getI18nText;
395
393
  return {
396
- role: "tab",
394
+ "role": "tab",
397
395
  "aria-selected": isCurrent,
398
396
  "aria-controls": "igc-".concat(this.asProps.uid, "-carousel-item-").concat(index),
399
397
  "aria-label": getI18nText("slide", {
@@ -434,21 +432,22 @@ var CarouselRoot = /* @__PURE__ */ function(_Component) {
434
432
  }, {
435
433
  key: "renderModal",
436
434
  value: function renderModal(isSmall, ComponentItems) {
437
- var _ref = this.asProps, _ref10, _this5 = this;
435
+ var _ref = this.asProps, _ref0, _this5 = this;
438
436
  var SModalContainer = Box;
439
437
  var SModalBox = Box;
438
+ var SImageBoxContainer = Box;
440
439
  var _this$asProps3 = this.asProps, styles = _this$asProps3.styles, uid = _this$asProps3.uid, duration = _this$asProps3.duration, zoomWidth = _this$asProps3.zoomWidth;
441
440
  var isOpenZoom = this.state.isOpenZoom;
442
- return _ref10 = sstyled$1(styles), /* @__PURE__ */ React.createElement(Modal, _ref10.cn("Modal", {
441
+ return _ref0 = sstyled(styles), /* @__PURE__ */ React.createElement(Modal, _ref0.cn("Modal", {
443
442
  "visible": isOpenZoom,
444
443
  "onClose": this.handleToggleZoomModal,
445
444
  "ghost": true,
446
445
  "closable": !isSmall
447
- }), /* @__PURE__ */ React.createElement(Flex, _ref10.cn("Flex", {
446
+ }), /* @__PURE__ */ React.createElement(Flex, _ref0.cn("Flex", {
448
447
  "direction": isSmall ? "column" : "row"
449
448
  }), !isSmall && /* @__PURE__ */ React.createElement(Carousel.Prev, {
450
449
  inverted: true
451
- }), /* @__PURE__ */ React.createElement(SModalBox, _ref10.cn("SModalBox", {}), /* @__PURE__ */ React.createElement(SModalContainer, _ref10.cn("SModalContainer", _objectSpread({}, assignProps({
450
+ }), /* @__PURE__ */ React.createElement(SImageBoxContainer, _ref0.cn("SImageBoxContainer", {}), /* @__PURE__ */ React.createElement(SModalBox, _ref0.cn("SModalBox", {}), /* @__PURE__ */ React.createElement(SModalContainer, _ref0.cn("SModalContainer", _objectSpread({}, assignProps({
452
451
  "aria-live": "polite",
453
452
  "use:duration": "".concat(duration, "ms"),
454
453
  "ref": this.refModalContainer,
@@ -465,7 +464,7 @@ var CarouselRoot = /* @__PURE__ */ function(_Component) {
465
464
  zoomOut: true,
466
465
  transform: _this5.isSelected(i) ? _this5.getTransform() : void 0
467
466
  }));
468
- }))), isSmall ? /* @__PURE__ */ React.createElement(Flex, _ref10.cn("Flex", {
467
+ })))), isSmall ? /* @__PURE__ */ React.createElement(Flex, _ref0.cn("Flex", {
469
468
  "justifyContent": "center",
470
469
  "mt": 2
471
470
  }), /* @__PURE__ */ React.createElement(Carousel.Prev, {
@@ -481,40 +480,37 @@ var CarouselRoot = /* @__PURE__ */ function(_Component) {
481
480
  }, {
482
481
  key: "render",
483
482
  value: function render() {
484
- var _ref2 = this.asProps, _ref11, _this6 = this;
483
+ var _ref2 = this.asProps, _ref1, _this6 = this;
485
484
  var SCarousel = Box;
486
- var _this$asProps4 = this.asProps, styles = _this$asProps4.styles, Children = _this$asProps4.Children, uid = _this$asProps4.uid, hasZoom = _this$asProps4.zoom, ariaLabel = _this$asProps4["aria-label"], ariaRoledescription = _this$asProps4["aria-roledescription"], indicators = _this$asProps4.indicators;
485
+ var _this$asProps4 = this.asProps, styles = _this$asProps4.styles, Children = _this$asProps4.Children, uid = _this$asProps4.uid, hasZoom = _this$asProps4.zoom, ariaLabel = _this$asProps4["aria-label"], indicators = _this$asProps4.indicators, getI18nText = _this$asProps4.getI18nText;
487
486
  var ComponentItems = findAllComponents(Children, ["Carousel.Item"]);
488
487
  var Controls = findAllComponents(Children, ["Carousel.Prev", "Carousel.Next", "Carousel.Indicators"]);
489
- return _ref11 = sstyled$1(styles), /* @__PURE__ */ React.createElement(SCarousel, _ref11.cn("SCarousel", _objectSpread({}, assignProps({
488
+ return _ref1 = sstyled(styles), /* @__PURE__ */ React.createElement(SCarousel, _ref1.cn("SCarousel", _objectSpread({}, assignProps({
490
489
  "role": "region",
491
- "roledescription": "carousel",
490
+ "aria-roledescription": getI18nText("Carousel:aria-roledescription"),
492
491
  "onKeyDown": this.handlerKeyDown,
493
492
  "onTouchStart": this.handlerTouchStart,
494
493
  "onTouchEnd": this.handlerTouchEnd,
495
494
  "ref": this.refCarousel,
496
- "id": "igc-".concat(uid, "-carousel"),
497
- "aria-roledescription": ariaRoledescription
498
- }, _ref2))), Controls.length === 0 ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Flex, _ref11.cn("Flex", {}), /* @__PURE__ */ React.createElement(Carousel.Prev, null), /* @__PURE__ */ React.createElement(Carousel.ContentBox, null, /* @__PURE__ */ React.createElement(Carousel.Container, {
495
+ "id": "igc-".concat(uid, "-carousel")
496
+ }, _ref2))), Controls.length === 0 ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Flex, _ref1.cn("Flex", {}), /* @__PURE__ */ React.createElement(Carousel.Prev, null), /* @__PURE__ */ React.createElement(Carousel.ContentBox, null, /* @__PURE__ */ React.createElement(Carousel.Container, {
499
497
  "aria-label": ariaLabel
500
- }, /* @__PURE__ */ React.createElement(Children, _ref11.cn("Children", {})))), /* @__PURE__ */ React.createElement(Carousel.Next, null)), indicators === "default" && /* @__PURE__ */ React.createElement(Carousel.Indicators, null), indicators === "preview" && /* @__PURE__ */ React.createElement(Carousel.Indicators, null, function() {
498
+ }, /* @__PURE__ */ React.createElement(Children, _ref1.cn("Children", {})))), /* @__PURE__ */ React.createElement(Carousel.Next, null)), indicators === "default" && /* @__PURE__ */ React.createElement(Carousel.Indicators, null), indicators === "preview" && /* @__PURE__ */ React.createElement(Carousel.Indicators, null, function() {
501
499
  return ComponentItems.map(function(item, index) {
502
500
  return /* @__PURE__ */ React.createElement(Carousel.Indicator, _extends({}, item.props, {
503
501
  key: item.key,
504
- w: 100,
505
- h: 100,
506
- "aria-roledescription": "slide",
502
+ w: void 0,
503
+ "aria-roledescription": getI18nText("Carousel.Indicator:aria-roledescription"),
507
504
  active: _this6.isSelected(index),
508
505
  onClick: _this6.bindHandlerClickIndicator(index)
509
506
  }));
510
507
  });
511
- })) : /* @__PURE__ */ React.createElement(Children, _ref11.cn("Children", {})), hasZoom && /* @__PURE__ */ React.createElement(BreakPoints, _ref11.cn("BreakPoints", {}), /* @__PURE__ */ React.createElement(BreakPoints.Context.Consumer, null, function(mediaIndex) {
508
+ })) : /* @__PURE__ */ React.createElement(Children, _ref1.cn("Children", {})), hasZoom && /* @__PURE__ */ React.createElement(BreakPoints, _ref1.cn("BreakPoints", {}), /* @__PURE__ */ React.createElement(BreakPoints.Context.Consumer, null, function(mediaIndex) {
512
509
  return _this6.renderModal(isSmallScreen(mediaIndex), ComponentItems);
513
510
  })));
514
511
  }
515
512
  }]);
516
- return CarouselRoot2;
517
- }(Component);
513
+ })(Component);
518
514
  _defineProperty(CarouselRoot, "displayName", "Carousel");
519
515
  _defineProperty(CarouselRoot, "defaultProps", {
520
516
  defaultIndex: 0,
@@ -527,43 +523,43 @@ _defineProperty(CarouselRoot, "defaultProps", {
527
523
  });
528
524
  _defineProperty(CarouselRoot, "style", style);
529
525
  _defineProperty(CarouselRoot, "enhance", enhance);
530
- var Container = function Container2(props) {
531
- var _ref3 = arguments[0], _ref12;
526
+ function Container(props) {
527
+ var _ref3 = arguments[0], _ref10;
532
528
  var SContainer = Box;
533
529
  var styles = props.styles, duration = props.duration;
534
- return _ref12 = sstyled$1(styles), /* @__PURE__ */ React.createElement(SContainer, _ref12.cn("SContainer", _objectSpread({}, assignProps({
530
+ return _ref10 = sstyled(styles), /* @__PURE__ */ React.createElement(SContainer, _ref10.cn("SContainer", _objectSpread({}, assignProps({
535
531
  "use:duration": "".concat(duration, "ms"),
536
532
  "aria-live": "polite"
537
533
  }, _ref3))));
538
- };
539
- var ContentBox = function ContentBox2(props) {
540
- var _ref4 = arguments[0], _ref13;
534
+ }
535
+ function ContentBox(props) {
536
+ var _ref4 = arguments[0], _ref11;
541
537
  var SContentBox = Box;
542
538
  var styles = props.styles;
543
- return _ref13 = sstyled$1(styles), /* @__PURE__ */ React.createElement(SContentBox, _ref13.cn("SContentBox", _objectSpread({}, assignProps({}, _ref4))));
544
- };
545
- var Item = /* @__PURE__ */ function(_Component2) {
546
- _inherits(Item2, _Component2);
547
- var _super2 = _createSuper(Item2);
539
+ return _ref11 = sstyled(styles), /* @__PURE__ */ React.createElement(SContentBox, _ref11.cn("SContentBox", _objectSpread({}, assignProps({}, _ref4))));
540
+ }
541
+ var Item = /* @__PURE__ */ (function(_Component2) {
548
542
  function Item2() {
549
543
  var _this7;
550
544
  _classCallCheck(this, Item2);
551
545
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
552
546
  args[_key] = arguments[_key];
553
547
  }
554
- _this7 = _super2.call.apply(_super2, [this].concat(args));
555
- _defineProperty(_assertThisInitialized(_this7), "refItem", /* @__PURE__ */ React.createRef());
556
- _defineProperty(_assertThisInitialized(_this7), "keepFocusTimeout", void 0);
548
+ _this7 = _callSuper(this, Item2, [].concat(args));
549
+ _defineProperty(_this7, "refItem", /* @__PURE__ */ React.createRef());
557
550
  return _this7;
558
551
  }
559
- _createClass(Item2, [{
552
+ _inherits(Item2, _Component2);
553
+ return _createClass(Item2, [{
560
554
  key: "componentDidMount",
561
555
  value: function componentDidMount() {
562
556
  var _this$props = this.props, toggleItem = _this$props.toggleItem, transform = _this$props.transform;
563
557
  var refItem = this.refItem.current;
564
- toggleItem && refItem && toggleItem({
565
- node: refItem
566
- });
558
+ if (toggleItem && refItem) {
559
+ toggleItem({
560
+ node: refItem
561
+ });
562
+ }
567
563
  if (transform && refItem) {
568
564
  refItem.style.transform = "translateX(".concat(transform, "%)");
569
565
  }
@@ -573,43 +569,28 @@ var Item = /* @__PURE__ */ function(_Component2) {
573
569
  value: function componentWillUnmount() {
574
570
  var toggleItem = this.props.toggleItem;
575
571
  var refItem = this.refItem.current;
576
- toggleItem && refItem && toggleItem({
577
- node: refItem
578
- }, true);
579
- clearTimeout(this.keepFocusTimeout);
572
+ if (toggleItem && refItem) {
573
+ toggleItem({
574
+ node: refItem
575
+ }, true);
576
+ }
580
577
  }
581
578
  }, {
582
579
  key: "componentDidUpdate",
583
580
  value: function componentDidUpdate(prevProps) {
584
- var _this8 = this;
585
- clearTimeout(this.keepFocusTimeout);
586
581
  var transform = this.props.transform;
587
582
  var refItem = this.refItem.current;
588
583
  if (prevProps.transform !== transform && refItem) {
589
584
  refItem.style.transform = "translateX(".concat(transform, "%)");
590
585
  }
591
- if (this.props.current) {
592
- this.keepFocusTimeout = setTimeout(function() {
593
- var _document$activeEleme;
594
- if (document.activeElement !== refItem && ((_document$activeEleme = document.activeElement) === null || _document$activeEleme === void 0 ? void 0 : _document$activeEleme.dataset.carousel) === (refItem === null || refItem === void 0 ? void 0 : refItem.dataset.carousel)) {
595
- refItem === null || refItem === void 0 ? void 0 : refItem.focus();
596
- }
597
- }, 100);
598
- }
599
- if (prevProps.isOpenZoom === true && this.props.isOpenZoom === false && this.props.current && !this.props.zoomOut) {
600
- this.keepFocusTimeout = setTimeout(function() {
601
- var _this8$refItem$curren;
602
- (_this8$refItem$curren = _this8.refItem.current) === null || _this8$refItem$curren === void 0 ? void 0 : _this8$refItem$curren.focus();
603
- }, 200);
604
- }
605
586
  }
606
587
  }, {
607
588
  key: "render",
608
589
  value: function render() {
609
- var _ref5 = this.asProps, _ref14;
590
+ var _ref5 = this.asProps, _ref12;
610
591
  var _this$props2 = this.props, styles = _this$props2.styles, index = _this$props2.index, uid = _this$props2.uid, current = _this$props2.current, zoomIn = _this$props2.zoomIn, onToggleZoomModal = _this$props2.onToggleZoomModal;
611
592
  var SItem = Box;
612
- return _ref14 = sstyled$1(styles), /* @__PURE__ */ React.createElement(SItem, _ref14.cn("SItem", _objectSpread({}, assignProps({
593
+ return _ref12 = sstyled(styles), /* @__PURE__ */ React.createElement(SItem, _ref12.cn("SItem", _objectSpread({}, assignProps({
613
594
  "ref": this.refItem,
614
595
  "role": "tabpanel",
615
596
  "data-carousel": "igc-".concat(uid, "-carousel"),
@@ -621,62 +602,69 @@ var Item = /* @__PURE__ */ function(_Component2) {
621
602
  }, _ref5))));
622
603
  }
623
604
  }]);
624
- return Item2;
625
- }(Component);
626
- _defineProperty(Item, "enhance", [keyboardFocusEnhance(false)]);
627
- var Prev = function Prev2(props) {
628
- var _ref6 = arguments[0], _ref15;
605
+ })(Component);
606
+ function Prev(props) {
607
+ var _ref6 = arguments[0], _ref13;
629
608
  var styles = props.styles, children = props.children, Children = props.Children, label = props.label, _props$top = props.top, top = _props$top === void 0 ? 0 : _props$top, inverted = props.inverted;
630
609
  var SPrev = Box;
631
610
  var SPrevButton = Button;
632
- return _ref15 = sstyled$1(styles), /* @__PURE__ */ React.createElement(SPrev, _ref15.cn("SPrev", _objectSpread({}, assignProps({
611
+ return _ref13 = sstyled(styles), /* @__PURE__ */ React.createElement(SPrev, _ref13.cn("SPrev", _objectSpread({}, assignProps({
633
612
  "top": top
634
- }, _ref6))), children ? /* @__PURE__ */ React.createElement(Children, _ref15.cn("Children", {})) : /* @__PURE__ */ React.createElement(SPrevButton, _ref15.cn("SPrevButton", {
613
+ }, _ref6))), children ? /* @__PURE__ */ React.createElement(Children, _ref13.cn("Children", {})) : /* @__PURE__ */ React.createElement(SPrevButton, _ref13.cn("SPrevButton", {
635
614
  "addonLeft": ChevronLeft,
636
615
  "aria-label": label,
637
616
  "theme": inverted ? "invert" : "muted",
638
617
  "use": "tertiary",
639
- "size": "l"
618
+ "size": "l",
619
+ "innerOutline": true
640
620
  })));
641
- };
642
- var Next = function Next2(props) {
643
- var _ref7 = arguments[0], _ref16;
621
+ }
622
+ ;
623
+ function Next(props) {
624
+ var _ref7 = arguments[0], _ref14;
644
625
  var styles = props.styles, children = props.children, Children = props.Children, label = props.label, _props$top2 = props.top, top = _props$top2 === void 0 ? 0 : _props$top2, inverted = props.inverted;
645
626
  var SNext = Box;
646
627
  var SNextButton = Button;
647
- return _ref16 = sstyled$1(styles), /* @__PURE__ */ React.createElement(SNext, _ref16.cn("SNext", _objectSpread({}, assignProps({
628
+ return _ref14 = sstyled(styles), /* @__PURE__ */ React.createElement(SNext, _ref14.cn("SNext", _objectSpread({}, assignProps({
648
629
  "top": top
649
- }, _ref7))), children ? /* @__PURE__ */ React.createElement(Children, _ref16.cn("Children", {})) : /* @__PURE__ */ React.createElement(SNextButton, _ref16.cn("SNextButton", {
630
+ }, _ref7))), children ? /* @__PURE__ */ React.createElement(Children, _ref14.cn("Children", {})) : /* @__PURE__ */ React.createElement(SNextButton, _ref14.cn("SNextButton", {
650
631
  "addonLeft": ChevronRight,
651
632
  "aria-label": label,
652
633
  "theme": inverted ? "invert" : "muted",
653
634
  "use": "tertiary",
654
- "size": "l"
635
+ "size": "l",
636
+ "innerOutline": true
655
637
  })));
656
- };
657
- var Indicators = function Indicators2(_ref21) {
658
- var _ref8 = arguments[0], _ref18;
659
- var items = _ref21.items, styles = _ref21.styles, Children = _ref21.Children, inverted = _ref21.inverted;
638
+ }
639
+ ;
640
+ function Indicators(_ref19) {
641
+ var _ref8 = arguments[0], _ref16;
642
+ var items = _ref19.items, styles = _ref19.styles, Children = _ref19.Children, inverted = _ref19.inverted;
660
643
  var SIndicators = Box;
661
644
  if (Children.origin) {
662
- var _ref17;
663
- return _ref17 = sstyled$1(styles), /* @__PURE__ */ React.createElement(SIndicators, _ref17.cn("SIndicators", _objectSpread({}, assignProps({}, _ref8))), /* @__PURE__ */ React.createElement(Children, _ref17.cn("Children", {})));
645
+ var _ref15;
646
+ return _ref15 = sstyled(styles), /* @__PURE__ */ React.createElement(SIndicators, _ref15.cn("SIndicators", _objectSpread({}, assignProps({
647
+ "innerOffset": true
648
+ }, _ref8))), /* @__PURE__ */ React.createElement(Children, _ref15.cn("Children", {})));
664
649
  }
665
- return _ref18 = sstyled$1(styles), /* @__PURE__ */ React.createElement(SIndicators, _ref18.cn("SIndicators", _objectSpread({}, assignProps({}, _ref8))), items === null || items === void 0 ? void 0 : items.map(function(item, index) {
650
+ return _ref16 = sstyled(styles), /* @__PURE__ */ React.createElement(SIndicators, _ref16.cn("SIndicators", _objectSpread({}, assignProps({
651
+ "invertOutline": inverted
652
+ }, _ref8))), items === null || items === void 0 ? void 0 : items.map(function(item, index) {
666
653
  return /* @__PURE__ */ React.createElement(Carousel.Indicator, _extends({
667
654
  key: index
668
655
  }, item, {
669
656
  inverted
670
657
  }));
671
658
  }));
672
- };
673
- Indicators.enhance = [keyboardFocusEnhance()];
674
- var Indicator = function Indicator2(_ref22) {
675
- var _ref9 = arguments[0], _ref19;
676
- var styles = _ref22.styles, Children = _ref22.Children;
659
+ }
660
+ ;
661
+ function Indicator(_ref20) {
662
+ var _ref9 = arguments[0], _ref17;
663
+ var styles = _ref20.styles, Children = _ref20.Children, inverted = _ref20.inverted;
677
664
  var SIndicator = Box;
678
- return _ref19 = sstyled$1(styles), /* @__PURE__ */ React.createElement(SIndicator, _ref19.cn("SIndicator", _objectSpread({}, assignProps({}, _ref9))), /* @__PURE__ */ React.createElement(Children, _ref19.cn("Children", {})));
679
- };
665
+ return _ref17 = sstyled(styles), /* @__PURE__ */ React.createElement(SIndicator, _ref17.cn("SIndicator", _objectSpread({}, assignProps({}, _ref9))), /* @__PURE__ */ React.createElement(Children, _ref17.cn("Children", {})));
666
+ }
667
+ ;
680
668
  var Carousel = createComponent(CarouselRoot, {
681
669
  Container,
682
670
  ContentBox,
@@ -0,0 +1 @@
1
+