@telefonica/mistica 14.41.0 → 14.42.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 (137) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/boxed.css-mistica.js +14 -5
  3. package/dist/boxed.css.d.ts +1 -0
  4. package/dist/boxed.d.ts +1 -0
  5. package/dist/boxed.js +11 -9
  6. package/dist/button-fixed-footer-layout.d.ts +1 -0
  7. package/dist/button-fixed-footer-layout.js +19 -14
  8. package/dist/button-layout.css-mistica.js +16 -13
  9. package/dist/button-layout.css.d.ts +1 -0
  10. package/dist/button-layout.js +15 -15
  11. package/dist/button.js +43 -35
  12. package/dist/carousel.d.ts +13 -0
  13. package/dist/carousel.js +325 -223
  14. package/dist/credit-card-expiration-field.js +30 -26
  15. package/dist/credit-card-number-field.css-mistica.js +7 -7
  16. package/dist/credit-card-number-field.js +59 -45
  17. package/dist/cvv-field.js +46 -41
  18. package/dist/date-field.css-mistica.js +14 -0
  19. package/dist/date-field.css.d.ts +1 -0
  20. package/dist/date-field.css.ts.vanilla.css-mistica.js +11 -0
  21. package/dist/date-field.js +41 -35
  22. package/dist/date-time-field.js +40 -34
  23. package/dist/date-time-picker.js +43 -45
  24. package/dist/decimal-field.js +26 -22
  25. package/dist/dialog-context.d.ts +24 -0
  26. package/dist/dialog-context.js +192 -0
  27. package/dist/dialog.css-mistica.js +15 -12
  28. package/dist/dialog.css.d.ts +1 -0
  29. package/dist/dialog.d.ts +14 -44
  30. package/dist/dialog.js +161 -245
  31. package/dist/double-field.css-mistica.js +3 -2
  32. package/dist/email-field.js +15 -11
  33. package/dist/feedback.css-mistica.js +18 -15
  34. package/dist/feedback.css.d.ts +5 -4
  35. package/dist/feedback.js +154 -147
  36. package/dist/fixed-footer-layout.css-mistica.js +1 -1
  37. package/dist/fixed-footer-layout.js +9 -8
  38. package/dist/iban-field.js +31 -27
  39. package/dist/icons/icon-amex.d.ts +1 -1
  40. package/dist/icons/icon-cvv-amex.d.ts +1 -1
  41. package/dist/icons/icon-cvv-visa-mc.d.ts +1 -1
  42. package/dist/icons/icon-mastercard.d.ts +1 -1
  43. package/dist/icons/icon-visa.d.ts +1 -1
  44. package/dist/index.d.ts +2 -2
  45. package/dist/index.js +16 -4
  46. package/dist/inline.css-mistica.js +9 -6
  47. package/dist/inline.css.d.ts +1 -1
  48. package/dist/inline.js +9 -9
  49. package/dist/integer-field.js +17 -13
  50. package/dist/loading-bar.css-mistica.js +4 -7
  51. package/dist/loading-bar.css.d.ts +0 -2
  52. package/dist/loading-bar.js +3 -6
  53. package/dist/month-field.js +39 -33
  54. package/dist/package-version.js +1 -1
  55. package/dist/password-field.js +46 -44
  56. package/dist/phone-number-field.js +50 -46
  57. package/dist/pin-field.css-mistica.js +12 -6
  58. package/dist/pin-field.css.d.ts +2 -0
  59. package/dist/pin-field.d.ts +3 -1
  60. package/dist/pin-field.js +129 -95
  61. package/dist/responsive-layout.css-mistica.js +10 -7
  62. package/dist/responsive-layout.css.d.ts +2 -1
  63. package/dist/responsive-layout.d.ts +1 -1
  64. package/dist/responsive-layout.js +20 -17
  65. package/dist/search-field.js +36 -35
  66. package/dist/select.css-mistica.js +16 -15
  67. package/dist/select.css.d.ts +1 -0
  68. package/dist/select.js +138 -143
  69. package/dist/text-field-base.css-mistica.js +45 -21
  70. package/dist/text-field-base.css.d.ts +30 -7
  71. package/dist/text-field-base.d.ts +11 -0
  72. package/dist/text-field-base.js +175 -140
  73. package/dist/text-field-components.css-mistica.js +13 -21
  74. package/dist/text-field-components.css.d.ts +0 -3
  75. package/dist/text-field-components.d.ts +3 -0
  76. package/dist/text-field-components.js +38 -35
  77. package/dist/text-field.js +26 -22
  78. package/dist/theme-context-provider.js +2 -2
  79. package/dist/utils/platform.js +8 -11
  80. package/dist-es/boxed.css-mistica.js +3 -2
  81. package/dist-es/boxed.js +17 -15
  82. package/dist-es/button-fixed-footer-layout.js +29 -24
  83. package/dist-es/button-layout.css-mistica.js +7 -7
  84. package/dist-es/button-layout.js +23 -23
  85. package/dist-es/button.js +65 -57
  86. package/dist-es/carousel.js +373 -280
  87. package/dist-es/credit-card-expiration-field.js +34 -30
  88. package/dist-es/credit-card-number-field.css-mistica.js +4 -4
  89. package/dist-es/credit-card-number-field.js +84 -70
  90. package/dist-es/cvv-field.js +68 -63
  91. package/dist-es/date-field.css-mistica.js +5 -0
  92. package/dist-es/date-field.css.ts.vanilla.css-mistica.js +2 -0
  93. package/dist-es/date-field.js +46 -40
  94. package/dist-es/date-time-field.js +47 -41
  95. package/dist-es/date-time-picker.js +55 -57
  96. package/dist-es/decimal-field.js +31 -27
  97. package/dist-es/dialog-context.js +125 -0
  98. package/dist-es/dialog.css-mistica.js +3 -3
  99. package/dist-es/dialog.js +192 -262
  100. package/dist-es/double-field.css-mistica.js +3 -2
  101. package/dist-es/email-field.js +16 -12
  102. package/dist-es/feedback.css-mistica.js +2 -2
  103. package/dist-es/feedback.js +191 -184
  104. package/dist-es/fixed-footer-layout.css-mistica.js +1 -1
  105. package/dist-es/fixed-footer-layout.js +21 -20
  106. package/dist-es/iban-field.js +42 -38
  107. package/dist-es/index.js +1778 -1778
  108. package/dist-es/inline.css-mistica.js +3 -3
  109. package/dist-es/inline.js +18 -18
  110. package/dist-es/integer-field.js +21 -17
  111. package/dist-es/loading-bar.css-mistica.js +2 -2
  112. package/dist-es/loading-bar.js +10 -13
  113. package/dist-es/month-field.js +47 -41
  114. package/dist-es/package-version.js +1 -1
  115. package/dist-es/password-field.js +54 -52
  116. package/dist-es/phone-number-field.js +53 -49
  117. package/dist-es/pin-field.css-mistica.js +2 -2
  118. package/dist-es/pin-field.js +145 -111
  119. package/dist-es/responsive-layout.css-mistica.js +3 -3
  120. package/dist-es/responsive-layout.js +27 -24
  121. package/dist-es/search-field.js +45 -44
  122. package/dist-es/select.css-mistica.js +8 -7
  123. package/dist-es/select.js +167 -172
  124. package/dist-es/style.css +1 -1
  125. package/dist-es/text-field-base.css-mistica.js +2 -2
  126. package/dist-es/text-field-base.js +189 -157
  127. package/dist-es/text-field-components.css-mistica.js +3 -2
  128. package/dist-es/text-field-components.js +52 -49
  129. package/dist-es/text-field.js +31 -27
  130. package/dist-es/theme-context-provider.js +1 -1
  131. package/dist-es/utils/platform.js +6 -6
  132. package/package.json +1 -1
  133. package/dist/password-field.css-mistica.js +0 -13
  134. package/dist/password-field.css.d.ts +0 -1
  135. package/dist-es/password-field.css-mistica.js +0 -4
  136. /package/dist/{password-field.css.ts.vanilla.css-mistica.js → boxed.css.ts.vanilla.css-mistica.js} +0 -0
  137. /package/dist-es/{password-field.css.ts.vanilla.css-mistica.js → boxed.css.ts.vanilla.css-mistica.js} +0 -0
@@ -10,36 +10,39 @@ function _export(target, all) {
10
10
  }
11
11
  _export(exports, {
12
12
  alignMoreThanOneChildren: function() {
13
- return i;
13
+ return r;
14
14
  },
15
15
  alignVariant: function() {
16
- return l;
16
+ return y;
17
17
  },
18
18
  baseContainer: function() {
19
- return a;
19
+ return h;
20
20
  },
21
21
  container: function() {
22
- return v;
22
+ return i;
23
23
  },
24
24
  fullWidthContainer: function() {
25
- return y;
25
+ return a;
26
26
  },
27
27
  link: function() {
28
- return h;
28
+ return v;
29
29
  },
30
30
  linkAlignment: function() {
31
31
  return t;
32
32
  },
33
+ linkWithTwoButtons: function() {
34
+ return k;
35
+ },
33
36
  margins: function() {
34
- return e;
37
+ return x;
35
38
  }
36
39
  });
37
40
  require("./sprinkles.css.ts.vanilla.css-mistica.js");
38
41
  require("./button.css.ts.vanilla.css-mistica.js");
39
42
  require("./button-layout.css.ts.vanilla.css-mistica.js");
40
- var i = "kfxylhg", l = {
41
- right: "_1y2v1nfgs",
42
- left: "_1y2v1nfgq",
43
- center: "_1y2v1nfgr",
44
- "full-width": "kfxylhf _1y2v1nfgr"
45
- }, a = "kfxylh5 _1y2v1nfgi", v = "kfxylh6", y = "kfxylh7", h = "kfxylh2 _1y2v1nfgi _1y2v1nfh5", t = "kfxylh3", e = "kfxylh0";
43
+ var r = "kfxylhh", y = {
44
+ right: "kfxylhd _1y2v1nfgs",
45
+ left: "kfxylhe _1y2v1nfgq",
46
+ center: "kfxylhf _1y2v1nfgr",
47
+ "full-width": "kfxylhg _1y2v1nfgr"
48
+ }, h = "kfxylh6 _1y2v1nfgi _1y2v1nfgx", i = "kfxylh7", a = "kfxylh8", v = "kfxylh3 kfxylh2 _1y2v1nfgi _1y2v1nfh5", t = "kfxylh4", k = "kfxylh2 _1y2v1nfgi _1y2v1nfh5", x = "kfxylh0";
@@ -1,5 +1,6 @@
1
1
  export declare const margins: string;
2
2
  export declare const link: string;
3
+ export declare const linkWithTwoButtons: string;
3
4
  export declare const linkAlignment: string;
4
5
  export declare const baseContainer: string;
5
6
  export declare const container: string;
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  Object.defineProperty(exports, "default", {
7
7
  enumerable: true,
8
8
  get: function() {
9
- return T;
9
+ return S;
10
10
  }
11
11
  });
12
12
  const _jsxruntime = require("react/jsx-runtime");
@@ -113,33 +113,33 @@ function _object_spread_props(target, source) {
113
113
  }
114
114
  return target;
115
115
  }
116
- const s = [
116
+ const l = [
117
117
  _button.ButtonSecondary,
118
118
  _button.ButtonDanger,
119
119
  _button.ButtonPrimary
120
- ], w = (param)=>{
121
- let { children: n, align: t = "full-width", link: o, withMargins: l = !1, dataAttributes: u } = param;
122
- const c = _react.Children.count(n), d = _react.Children.toArray(n).sort((m, f)=>{
123
- const h = s.indexOf(m.type), p = s.indexOf(f.type);
120
+ ], D = (param)=>{
121
+ let { children: o, align: t = "full-width", link: e, withMargins: u = !1, dataAttributes: c } = param;
122
+ const d = _react.Children.count(o), n = _react.Children.toArray(o).sort((m, f)=>{
123
+ const h = l.indexOf(m.type), p = l.indexOf(f.type);
124
124
  return h - p;
125
125
  }), r = /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", _object_spread_props(_object_spread({
126
126
  className: (0, _classnames.default)(_buttonlayoutcssmistica.baseContainer, _buttonlayoutcssmistica.alignVariant[t], t === "full-width" ? _buttonlayoutcssmistica.fullWidthContainer : _buttonlayoutcssmistica.container, {
127
- [_buttonlayoutcssmistica.alignMoreThanOneChildren]: c > 1
127
+ [_buttonlayoutcssmistica.alignMoreThanOneChildren]: d > 1
128
128
  })
129
- }, (0, _dom.getPrefixedDataAttributes)(u, "ButtonLayout")), {
129
+ }, (0, _dom.getPrefixedDataAttributes)(c, "ButtonLayout")), {
130
130
  children: [
131
- o ? /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
132
- className: (0, _classnames.default)(_buttonlayoutcssmistica.link, {
133
- [_buttonlayoutcssmistica.linkAlignment]: t === "left"
131
+ e ? /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
132
+ className: (0, _classnames.default)(n.length > 1 ? _buttonlayoutcssmistica.linkWithTwoButtons : _buttonlayoutcssmistica.link, {
133
+ [_buttonlayoutcssmistica.linkAlignment]: (t === "left" || t === "full-width") && n.length > 1
134
134
  }),
135
135
  "data-link": "true",
136
- children: o
136
+ children: e
137
137
  }) : null,
138
- d
138
+ n
139
139
  ]
140
140
  }));
141
- return l ? /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
141
+ return u ? /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
142
142
  className: _buttonlayoutcssmistica.margins,
143
143
  children: r
144
144
  }) : r;
145
- }, T = w;
145
+ }, S = D;
package/dist/button.js CHANGED
@@ -14,13 +14,13 @@ _export(exports, {
14
14
  return Ae;
15
15
  },
16
16
  ButtonLink: function() {
17
- return Re;
17
+ return xe;
18
18
  },
19
19
  ButtonLinkDanger: function() {
20
- return ke;
20
+ return Re;
21
21
  },
22
22
  ButtonPrimary: function() {
23
- return xe;
23
+ return ke;
24
24
  },
25
25
  ButtonSecondary: function() {
26
26
  return Be;
@@ -166,7 +166,7 @@ function _object_without_properties_loose(source, excluded) {
166
166
  }
167
167
  return target;
168
168
  }
169
- const _ = (param)=>{
169
+ const x = (param)=>{
170
170
  let { content: e, defaultIconSize: t, renderText: r } = param;
171
171
  const s = (0, _utils.flattenChildren)(e), u = s.length, c = [];
172
172
  let l = [];
@@ -196,10 +196,10 @@ const _ = (param)=>{
196
196
  }), c;
197
197
  }, fe = ()=>/* @__PURE__ */ (0, _jsxruntime.jsx)("svg", {
198
198
  width: "0.5em",
199
- height: "1.25em",
200
- viewBox: "0 0 8 20",
199
+ height: "0.5em",
200
+ viewBox: "0 0 8 8",
201
201
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)("path", {
202
- d: "M6.32595 11.0107L3.03801 7.7086L3.03292 7.70375L3.032 7.70291L3.02931 7.70047L3.02848 7.69974L3.02248 7.69436C2.88533 7.57121 2.71386 7.53733 2.56343 7.55395C2.41648 7.57018 2.27272 7.63567 2.16886 7.73711C2.06893 7.83185 2.01209 7.97816 2.00175 8.11707C1.99083 8.26377 2.02925 8.43959 2.16869 8.57393L5.24446 11.5515L2.15859 14.512L2.15375 14.5171L2.1529 14.518L2.15046 14.5207L2.14974 14.5215L2.14435 14.5275C2.02121 14.6647 1.98733 14.8361 2.00394 14.9866C2.02017 15.1335 2.08567 15.2773 2.18711 15.3811C2.28184 15.4811 2.42816 15.5379 2.56706 15.5483C2.71377 15.5592 2.88958 15.5208 3.02392 15.3813L6.32595 12.0922C6.6246 11.7936 6.6246 11.3094 6.32595 11.0107Z",
202
+ d: "M6.32595 3.46071L3.03801 0.158595L3.03292 0.153747L3.032 0.152903L3.02931 0.150463L3.02848 0.149738L3.02248 0.144353C2.88533 0.021206 2.71386 -0.0126731 2.56343 0.00394249C2.41648 0.0201739 2.27272 0.0856702 2.16886 0.18711C2.06893 0.281844 2.01209 0.42816 2.00175 0.567065C1.99083 0.71377 2.02925 0.889583 2.16869 1.02392L5.24446 4.00145L2.15859 6.96199L2.15375 6.96708L2.1529 6.968L2.15046 6.97069L2.14974 6.97152L2.14435 6.97752C2.02121 7.11467 1.98733 7.28614 2.00394 7.43657C2.02017 7.58352 2.08567 7.72728 2.18711 7.83114C2.28184 7.93107 2.42816 7.98791 2.56706 7.99825C2.71377 8.00917 2.88958 7.97075 3.02392 7.83132L6.32595 4.5422V4.5422C6.6246 4.24355 6.6246 3.75935 6.32595 3.46071V3.46071Z",
203
203
  fill: "currentColor"
204
204
  })
205
205
  }), X = (param)=>{
@@ -218,14 +218,30 @@ const _ = (param)=>{
218
218
  marginRight: _buttoncssmistica.ICON_MARGIN_PX
219
219
  },
220
220
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(d, {
221
- size: o,
221
+ size: (0, _css.pxToRem)(o),
222
222
  color: "currentColor"
223
223
  })
224
224
  }),
225
- _({
226
- content: t,
227
- defaultIconSize: o,
228
- renderText: l
225
+ /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
226
+ style: {
227
+ display: "flex",
228
+ alignItems: "baseline"
229
+ },
230
+ children: [
231
+ x({
232
+ content: t,
233
+ defaultIconSize: o,
234
+ renderText: l
235
+ }),
236
+ h && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
237
+ style: {
238
+ display: "flex",
239
+ alignItems: "center",
240
+ marginLeft: _buttoncssmistica.CHEVRON_MARGIN_LEFT_LINK
241
+ },
242
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)(fe, {})
243
+ })
244
+ ]
229
245
  }),
230
246
  m && !h && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
231
247
  style: {
@@ -234,17 +250,9 @@ const _ = (param)=>{
234
250
  marginLeft: _buttoncssmistica.ICON_MARGIN_PX
235
251
  },
236
252
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(m, {
237
- size: o,
253
+ size: (0, _css.pxToRem)(o),
238
254
  color: "currentColor"
239
255
  })
240
- }),
241
- h && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
242
- style: {
243
- display: "flex",
244
- alignItems: "center",
245
- marginLeft: _buttoncssmistica.CHEVRON_MARGIN_LEFT_LINK
246
- },
247
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(fe, {})
248
256
  })
249
257
  ]
250
258
  }),
@@ -255,7 +263,7 @@ const _ = (param)=>{
255
263
  paddingLeft: i,
256
264
  paddingRight: _buttoncssmistica.ICON_MARGIN_PX + 2 * (r ? _buttoncssmistica.X_SMALL_PADDING_PX : _buttoncssmistica.X_PADDING_PX)
257
265
  } : void 0,
258
- children: _({
266
+ children: x({
259
267
  content: s,
260
268
  defaultIconSize: o,
261
269
  renderText: l
@@ -282,7 +290,7 @@ const _ = (param)=>{
282
290
  }),
283
291
  s ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
284
292
  paddingLeft: 8,
285
- children: _({
293
+ children: x({
286
294
  content: s,
287
295
  defaultIconSize: o,
288
296
  renderText: l
@@ -310,7 +318,7 @@ const _ = (param)=>{
310
318
  category: _analytics.eventCategories.userInteraction,
311
319
  action: `${e.type}_button_tapped`,
312
320
  label: (0, _common.getTextFromChildren)(e.children)
313
- }, C = (y)=>e.small ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, {
321
+ }, N = (y)=>e.small ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, {
314
322
  size: 14,
315
323
  lineHeight: 20,
316
324
  weight: r.button.weight,
@@ -347,7 +355,7 @@ const _ = (param)=>{
347
355
  children: e.children,
348
356
  loadingText: f,
349
357
  small: e.small,
350
- renderText: C,
358
+ renderText: N,
351
359
  textContentStyle: _buttoncssmistica.textContent,
352
360
  StartIcon: e.StartIcon,
353
361
  EndIcon: e.EndIcon
@@ -398,7 +406,7 @@ const _ = (param)=>{
398
406
  s
399
407
  ]);
400
408
  var _t_trackingEvent;
401
- const C = ()=>l === "google-analytics-4" ? {
409
+ const N = ()=>l === "google-analytics-4" ? {
402
410
  name: _analytics.eventNames.userInteraction,
403
411
  component_type: e === "danger" ? "danger_link" : "link",
404
412
  component_copy: (0, _common.getTextFromChildren)(t.children)
@@ -406,11 +414,11 @@ const _ = (param)=>{
406
414
  category: _analytics.eventCategories.userInteraction,
407
415
  action: _analytics.eventActions.linkTapped,
408
416
  label: (0, _common.getTextFromChildren)(t.children)
409
- }, b = (w)=>/* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
417
+ }, b = (_)=>/* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
410
418
  weight: c.button.weight,
411
419
  truncate: 1,
412
420
  color: "inherit",
413
- children: w
421
+ children: _
414
422
  }), y = e === "danger" && f && u ? "dangerDark" : e, L = {
415
423
  className: (0, _classnames.default)(u ? _buttoncssmistica.inverseLinkVariants[y] : _buttoncssmistica.linkVariants[y], {
416
424
  [_buttoncssmistica.isLoading]: i
@@ -426,7 +434,7 @@ const _ = (param)=>{
426
434
  marginTop: -_buttoncssmistica.PADDING_Y_LINK,
427
435
  marginBottom: -_buttoncssmistica.PADDING_Y_LINK
428
436
  } : void 0),
429
- trackingEvent: (_t_trackingEvent = t.trackingEvent) !== null && _t_trackingEvent !== void 0 ? _t_trackingEvent : t.trackEvent ? C() : void 0,
437
+ trackingEvent: (_t_trackingEvent = t.trackingEvent) !== null && _t_trackingEvent !== void 0 ? _t_trackingEvent : t.trackEvent ? N() : void 0,
430
438
  dataAttributes: t.dataAttributes,
431
439
  "aria-label": t["aria-label"],
432
440
  "aria-controls": t["aria-controls"],
@@ -451,9 +459,9 @@ const _ = (param)=>{
451
459
  if (t.onPress) return /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
452
460
  ref: r
453
461
  }, L), {
454
- onPress: (w)=>{
455
- const x = t.onPress(w);
456
- x && (o(!0), x.finally(()=>o(!1)));
462
+ onPress: (_)=>{
463
+ const B = t.onPress(_);
464
+ B && (o(!0), B.finally(()=>o(!1)));
457
465
  }
458
466
  }));
459
467
  if (t.to || t.to === "") return /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
@@ -470,7 +478,7 @@ const _ = (param)=>{
470
478
  }));
471
479
  if (process.env.NODE_ENV !== "production") throw Error("Bad button props");
472
480
  return null;
473
- }), Re = /*#__PURE__*/ _react.forwardRef((_param, r)=>{
481
+ }), xe = /*#__PURE__*/ _react.forwardRef((_param, r)=>{
474
482
  var { dataAttributes: e } = _param, t = _object_without_properties(_param, [
475
483
  "dataAttributes"
476
484
  ]);
@@ -482,7 +490,7 @@ const _ = (param)=>{
482
490
  ref: r,
483
491
  type: "default"
484
492
  }));
485
- }), ke = /*#__PURE__*/ _react.forwardRef((_param, r)=>{
493
+ }), Re = /*#__PURE__*/ _react.forwardRef((_param, r)=>{
486
494
  var { dataAttributes: e } = _param, t = _object_without_properties(_param, [
487
495
  "dataAttributes"
488
496
  ]);
@@ -495,7 +503,7 @@ const _ = (param)=>{
495
503
  ref: r,
496
504
  type: "danger"
497
505
  }));
498
- }), xe = /*#__PURE__*/ _react.forwardRef((_param, r)=>{
506
+ }), ke = /*#__PURE__*/ _react.forwardRef((_param, r)=>{
499
507
  var { dataAttributes: e } = _param, t = _object_without_properties(_param, [
500
508
  "dataAttributes"
501
509
  ]);
@@ -6,6 +6,18 @@ type PageBulletsProps = {
6
6
  onPress?: (index: number) => void;
7
7
  };
8
8
  export declare const PageBullets: React.FC<PageBulletsProps>;
9
+ type GoToPage = (pageIndex: number, animate?: boolean) => void;
10
+ type CarouselControls = {
11
+ goPrev: () => void;
12
+ goNext: () => void;
13
+ goToPage: GoToPage;
14
+ bulletsProps: PageBulletsProps;
15
+ };
16
+ export declare const CarouselContextProvider: ({ children }: {
17
+ children: React.ReactNode;
18
+ }) => JSX.Element;
19
+ export declare const useCarouselContext: () => CarouselControls;
20
+ export declare const CarouselContextConsummer: React.Consumer<CarouselControls>;
9
21
  type DesktopItemsPerPage = {
10
22
  small?: number;
11
23
  medium?: number;
@@ -63,6 +75,7 @@ type SlideshowProps = {
63
75
  time: number;
64
76
  loop?: boolean;
65
77
  };
78
+ initialPageIndex?: number;
66
79
  onPageChange?: (newPageIndex: number) => void;
67
80
  dataAttributes?: DataAttributes;
68
81
  inverseBullets?: boolean;