@telefonica/mistica 14.44.0 → 14.45.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 (42) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/avatar.js +14 -13
  3. package/dist/badge.css-mistica.js +9 -6
  4. package/dist/badge.css.d.ts +1 -0
  5. package/dist/badge.d.ts +2 -2
  6. package/dist/badge.js +23 -20
  7. package/dist/checkbox.css.d.ts +1 -1
  8. package/dist/feedback.css-mistica.js +11 -14
  9. package/dist/feedback.css.d.ts +0 -1
  10. package/dist/feedback.js +10 -11
  11. package/dist/highlighted-card.d.ts +2 -2
  12. package/dist/icon-button.css-mistica.js +98 -5
  13. package/dist/icon-button.css.d.ts +17 -1
  14. package/dist/icon-button.d.ts +70 -27
  15. package/dist/icon-button.js +168 -30
  16. package/dist/image.css-mistica.js +13 -4
  17. package/dist/image.css.d.ts +3 -1
  18. package/dist/image.d.ts +1 -0
  19. package/dist/image.js +47 -48
  20. package/dist/package-version.js +1 -1
  21. package/dist/tag.css-mistica.js +1 -1
  22. package/dist/tag.d.ts +1 -0
  23. package/dist/tag.js +34 -21
  24. package/dist/utils/css.d.ts +0 -1
  25. package/dist/utils/css.js +5 -15
  26. package/dist/video.js +40 -39
  27. package/dist-es/avatar.js +19 -18
  28. package/dist-es/badge.css-mistica.js +2 -2
  29. package/dist-es/badge.js +35 -32
  30. package/dist-es/feedback.css-mistica.js +2 -2
  31. package/dist-es/feedback.js +24 -25
  32. package/dist-es/icon-button.css-mistica.js +51 -2
  33. package/dist-es/icon-button.js +160 -34
  34. package/dist-es/image.css-mistica.js +2 -2
  35. package/dist-es/image.js +70 -71
  36. package/dist-es/package-version.js +1 -1
  37. package/dist-es/style.css +1 -1
  38. package/dist-es/tag.css-mistica.js +1 -1
  39. package/dist-es/tag.js +49 -36
  40. package/dist-es/utils/css.js +8 -15
  41. package/dist-es/video.js +43 -47
  42. package/package.json +1 -1
package/dist/badge.js CHANGED
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  Object.defineProperty(exports, "default", {
7
7
  enumerable: true,
8
8
  get: function() {
9
- return C;
9
+ return M;
10
10
  }
11
11
  });
12
12
  const _jsxruntime = require("react/jsx-runtime");
@@ -16,6 +16,7 @@ const _dom = require("./utils/dom.js");
16
16
  const _text = require("./text.js");
17
17
  const _hooks = require("./hooks.js");
18
18
  const _skincontractcssmistica = require("./skins/skin-contract.css-mistica.js");
19
+ const _themevariantcontext = require("./theme-variant-context.js");
19
20
  function _interop_require_default(obj) {
20
21
  return obj && obj.__esModule ? obj : {
21
22
  default: obj
@@ -73,45 +74,47 @@ function _object_spread_props(target, source) {
73
74
  }
74
75
  return target;
75
76
  }
76
- const h = (param)=>{
77
- let { children: r, value: e, right: s, top: i, dataAttributes: n } = param;
78
- const { textPresets: d } = (0, _hooks.useTheme)();
79
- if (r && e === 0) return /* @__PURE__ */ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {
80
- children: r
77
+ const j = (param)=>{
78
+ let { children: e, value: r, right: s, top: o, dataAttributes: c } = param;
79
+ const f = (0, _themevariantcontext.useIsInverseVariant)(), { textPresets: g } = (0, _hooks.useTheme)();
80
+ if (e && r === 0) return /* @__PURE__ */ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {
81
+ children: e
81
82
  });
82
- if (e === 0) return null;
83
- const o = e && e > 9;
83
+ if (r === 0) return null;
84
+ const i = r && r > 9, a = f || !!e;
84
85
  return /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", _object_spread_props(_object_spread({
85
86
  className: _badgecssmistica.container
86
- }, (0, _dom.getPrefixedDataAttributes)(n, "Badge")), {
87
+ }, (0, _dom.getPrefixedDataAttributes)(c, "Badge")), {
87
88
  children: [
88
- e ? /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
89
+ e,
90
+ r ? /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
89
91
  role: "presentation",
90
92
  "aria-hidden": "true",
91
93
  className: (0, _classnames.default)(_badgecssmistica.badgeNumber, {
92
- [_badgecssmistica.badgeWithChildren]: !!r,
93
- [_badgecssmistica.badgeBigNumber]: o
94
+ [_badgecssmistica.badgeWithChildren]: !!e,
95
+ [_badgecssmistica.badgeBigNumber]: i,
96
+ [_badgecssmistica.badgeBorder]: a
94
97
  }),
95
98
  style: {
96
99
  right: s,
97
- top: i
100
+ top: o
98
101
  },
99
102
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text1, {
100
103
  forceMobileSizes: !0,
101
- weight: d.indicator.weight,
104
+ weight: g.indicator.weight,
102
105
  color: _skincontractcssmistica.vars.colors.textPrimaryInverse,
103
- children: o ? "+9" : e
106
+ children: i ? "+9" : r
104
107
  })
105
108
  }) : /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
106
109
  style: {
107
110
  right: s,
108
- top: i
111
+ top: o
109
112
  },
110
113
  className: (0, _classnames.default)(_badgecssmistica.badge, {
111
- [_badgecssmistica.badgeWithChildren]: !!r
114
+ [_badgecssmistica.badgeWithChildren]: !!e,
115
+ [_badgecssmistica.badgeBorder]: a
112
116
  })
113
- }),
114
- r
117
+ })
115
118
  ]
116
119
  }));
117
- }, C = h;
120
+ }, M = j;
@@ -1,6 +1,6 @@
1
1
  export declare const checkboxContainer: string;
2
2
  export declare const checkboxContainerDisabled: string;
3
- export declare const boxVariant: Record<"ios" | "rest" | "checked", string>;
3
+ export declare const boxVariant: Record<"ios" | "checked" | "rest", string>;
4
4
  export declare const check: string;
5
5
  export declare const checkChecked: string;
6
6
  export declare const disabled: string;
@@ -16,39 +16,36 @@ _export(exports, {
16
16
  return n;
17
17
  },
18
18
  desktopContainer: function() {
19
- return h;
19
+ return t;
20
20
  },
21
21
  desktopContent: function() {
22
- return t;
22
+ return h;
23
23
  },
24
24
  desktopImage: function() {
25
- return g;
25
+ return x;
26
26
  },
27
27
  feedbackData: function() {
28
- return v;
29
- },
30
- feedbackScreenInverse: function() {
31
- return x;
28
+ return g;
32
29
  },
33
30
  feedbackTextAppearFast: function() {
34
- return o;
31
+ return v;
35
32
  },
36
33
  feedbackTextAppearMedium: function() {
37
- return i;
34
+ return o;
38
35
  },
39
36
  feedbackTextAppearSlow: function() {
40
- return d;
37
+ return i;
41
38
  },
42
39
  iconContainer: function() {
43
- return f;
40
+ return p;
44
41
  },
45
42
  innerContainer: function() {
46
- return p;
43
+ return d;
47
44
  },
48
45
  innerContainerWithButtons: function() {
49
- return c;
46
+ return f;
50
47
  }
51
48
  });
52
49
  require("./sprinkles.css.ts.vanilla.css-mistica.js");
53
50
  require("./feedback.css.ts.vanilla.css-mistica.js");
54
- var r = "gx6h6ag", n = "gx6h6a4 _1y2v1nfgi _1y2v1nfhm _1y2v1nfh5 _1y2v1nfgo", h = "gx6h6a0", t = "gx6h6a1", g = "gx6h6a2", v = "gx6h6af", x = "gx6h6a7", o = "gx6h6ac gx6h6ab", i = "gx6h6ad gx6h6ab", d = "gx6h6ae gx6h6ab", f = "_1y2v1nfhh _1y2v1nfhx", p = "gx6h6a5", c = "gx6h6a6";
51
+ var r = "gx6h6af", n = "gx6h6a4 _1y2v1nfgi _1y2v1nfhm _1y2v1nfh5 _1y2v1nfgo", t = "gx6h6a0", h = "gx6h6a1", x = "gx6h6a2", g = "gx6h6ae", v = "gx6h6ab gx6h6aa", o = "gx6h6ac gx6h6aa", i = "gx6h6ad gx6h6aa", p = "_1y2v1nfhh _1y2v1nfhx", d = "gx6h6a5", f = "gx6h6a6";
@@ -4,7 +4,6 @@ export declare const desktopImage: string;
4
4
  export declare const container: string;
5
5
  export declare const innerContainer: string;
6
6
  export declare const innerContainerWithButtons: string;
7
- export declare const feedbackScreenInverse: string;
8
7
  export declare const iconContainer: string;
9
8
  export declare const feedbackTextAppearFast: string;
10
9
  export declare const feedbackTextAppearMedium: string;
package/dist/feedback.js CHANGED
@@ -11,19 +11,19 @@ function _export(target, all) {
11
11
  }
12
12
  _export(exports, {
13
13
  ErrorFeedbackScreen: function() {
14
- return Qe;
14
+ return Je;
15
15
  },
16
16
  FeedbackScreen: function() {
17
17
  return x;
18
18
  },
19
19
  InfoFeedbackScreen: function() {
20
- return Ye;
20
+ return Qe;
21
21
  },
22
22
  SuccessFeedback: function() {
23
- return Ze;
23
+ return Ye;
24
24
  },
25
25
  SuccessFeedbackScreen: function() {
26
- return Je;
26
+ return Xe;
27
27
  }
28
28
  });
29
29
  const _jsxruntime = require("react/jsx-runtime");
@@ -178,7 +178,7 @@ function _object_without_properties_loose(source, excluded) {
178
178
  const D = (r)=>!(0, _platform.isRunningAcceptanceTest)(r), R = (param)=>{
179
179
  let { primaryButton: r, secondaryButton: o } = param;
180
180
  return !!r || !!o;
181
- }, Be = (param)=>{
181
+ }, Te = (param)=>{
182
182
  let { isInverse: r } = param;
183
183
  const o = `@media ${_mediaqueriescssmistica.tabletOrSmaller} {
184
184
  body {background:${r ? _skincontractcssmistica.vars.colors.backgroundBrand : _skincontractcssmistica.vars.colors.background}; background-attachment: fixed;}
@@ -311,7 +311,6 @@ const D = (r)=>!(0, _platform.isRunningAcceptanceTest)(r), R = (param)=>{
311
311
  style: {
312
312
  position: "relative"
313
313
  },
314
- className: a ? _feedbackcssmistica.feedbackScreenInverse : void 0,
315
314
  children: [
316
315
  a && /* @__PURE__ */ (0, _jsxruntime.jsx)(_themevariantcontext.ThemeVariant, {
317
316
  isInverse: !0,
@@ -362,12 +361,12 @@ const D = (r)=>!(0, _platform.isRunningAcceptanceTest)(r), R = (param)=>{
362
361
  background: a ? _skincontractcssmistica.vars.colors.backgroundBrand : _skincontractcssmistica.vars.colors.background
363
362
  }
364
363
  }),
365
- N !== _constants.O2_CLASSIC_SKIN && /* @__PURE__ */ (0, _jsxruntime.jsx)(Be, {
364
+ N !== _constants.O2_CLASSIC_SKIN && /* @__PURE__ */ (0, _jsxruntime.jsx)(Te, {
366
365
  isInverse: a
367
366
  })
368
367
  ]
369
368
  });
370
- }, Je = (_param)=>{
369
+ }, Xe = (_param)=>{
371
370
  var { dataAttributes: r } = _param, o = _object_without_properties(_param, [
372
371
  "dataAttributes"
373
372
  ]);
@@ -389,7 +388,7 @@ const D = (r)=>!(0, _platform.isRunningAcceptanceTest)(r), R = (param)=>{
389
388
  "component-name": "SuccessFeedbackScreen"
390
389
  }, r)
391
390
  }));
392
- }, Qe = (_param)=>{
391
+ }, Je = (_param)=>{
393
392
  var { children: r, errorReference: o, dataAttributes: t } = _param, c = _object_without_properties(_param, [
394
393
  "children",
395
394
  "errorReference",
@@ -416,7 +415,7 @@ const D = (r)=>!(0, _platform.isRunningAcceptanceTest)(r), R = (param)=>{
416
415
  ]
417
416
  })
418
417
  }));
419
- }, Ye = (_param)=>{
418
+ }, Qe = (_param)=>{
420
419
  var { dataAttributes: r, Icon: o = _iconinfo.default } = _param, t = _object_without_properties(_param, [
421
420
  "dataAttributes",
422
421
  "Icon"
@@ -429,7 +428,7 @@ const D = (r)=>!(0, _platform.isRunningAcceptanceTest)(r), R = (param)=>{
429
428
  size: "100%"
430
429
  })
431
430
  }, t));
432
- }, Ze = (param)=>{
431
+ }, Ye = (param)=>{
433
432
  let { title: r, description: o, children: t, extra: c, primaryButton: n, secondaryButton: i, link: s, imageUrl: m, imageFit: f, dataAttributes: h } = param;
434
433
  W("success");
435
434
  const { skinName: a, platformOverrides: k } = (0, _hooks.useTheme)(), g = L({
@@ -2,9 +2,9 @@ import * as React from 'react';
2
2
  import type { ButtonLink, NullableButtonElement } from './button';
3
3
  import type { DataAttributes, RendersNullableElement, TrackingEvent } from './utils/types';
4
4
  interface CommonProps {
5
- title: string;
5
+ title?: string;
6
6
  titleLinesMax?: number;
7
- description: string;
7
+ description?: string;
8
8
  descriptionLinesMax?: number;
9
9
  imageUrl?: string;
10
10
  imageFit?: 'fit' | 'fill' | 'fill-center';
@@ -2,12 +2,105 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- Object.defineProperty(exports, "base", {
6
- enumerable: true,
7
- get: function() {
8
- return t;
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ bleedLeft: function() {
13
+ return n;
14
+ },
15
+ bleedRight: function() {
16
+ return a;
17
+ },
18
+ bleedY: function() {
19
+ return r;
20
+ },
21
+ buttonContainer: function() {
22
+ return o;
23
+ },
24
+ deprecatedIconButtonBase: function() {
25
+ return y;
26
+ },
27
+ disabled: function() {
28
+ return v;
29
+ },
30
+ icon: function() {
31
+ return l;
32
+ },
33
+ iconButtonTokens: function() {
34
+ return f;
35
+ },
36
+ iconContainer: function() {
37
+ return d;
38
+ },
39
+ iconSize: function() {
40
+ return i;
41
+ },
42
+ isLoading: function() {
43
+ return q;
44
+ },
45
+ overlay: function() {
46
+ return s;
47
+ },
48
+ overlayContainer: function() {
49
+ return _;
50
+ },
51
+ spinner: function() {
52
+ return g;
9
53
  }
10
54
  });
11
55
  require("./sprinkles.css.ts.vanilla.css-mistica.js");
12
56
  require("./icon-button.css.ts.vanilla.css-mistica.js");
13
- var t = "yqt1oe1 _1y2v1nfgm";
57
+ var n = {
58
+ default: "yqt1oe14",
59
+ small: "yqt1oe15"
60
+ }, a = {
61
+ default: "yqt1oe16",
62
+ small: "yqt1oe17"
63
+ }, r = {
64
+ default: "yqt1oe18",
65
+ small: "yqt1oe19"
66
+ }, o = {
67
+ default: "yqt1oe12 _1y2v1nf6b _1y2v1nf7k _1y2v1nf8t _1y2v1nfa2 _1y2v1nfj0 _1y2v1nf6a _1y2v1nfgi _1y2v1nfgx _1y2v1nfgr",
68
+ small: "yqt1oe13 _1y2v1nf6b _1y2v1nf7k _1y2v1nf8t _1y2v1nfa2 _1y2v1nfj0 _1y2v1nf6a _1y2v1nfgi _1y2v1nfgx _1y2v1nfgr"
69
+ }, y = "yqt1oe1k _1y2v1nfgm", v = "yqt1oey", l = "yqt1oe1g _1y2v1nfgc _1y2v1nfgj", f = {
70
+ "brand-solid-default": "yqt1oe4",
71
+ "brand-solid-inverse": "yqt1oe5",
72
+ "brand-solid-alternative": "yqt1oe6",
73
+ "brand-soft-default": "yqt1oe7",
74
+ "brand-soft-inverse": "yqt1oe8",
75
+ "brand-soft-alternative": "yqt1oe9",
76
+ "brand-transparent-default": "yqt1oea",
77
+ "brand-transparent-inverse": "yqt1oeb",
78
+ "brand-transparent-alternative": "yqt1oec",
79
+ "neutral-solid-default": "yqt1oed",
80
+ "neutral-solid-inverse": "yqt1oee",
81
+ "neutral-solid-alternative": "yqt1oef",
82
+ "neutral-soft-default": "yqt1oeg",
83
+ "neutral-soft-inverse": "yqt1oeh",
84
+ "neutral-soft-alternative": "yqt1oei",
85
+ "neutral-transparent-default": "yqt1oej",
86
+ "neutral-transparent-inverse": "yqt1oek",
87
+ "neutral-transparent-alternative": "yqt1oel",
88
+ "danger-solid-default": "yqt1oem",
89
+ "danger-solid-inverse": "yqt1oen",
90
+ "danger-solid-alternative": "yqt1oeo",
91
+ "danger-soft-default": "yqt1oep",
92
+ "danger-soft-inverse": "yqt1oeq",
93
+ "danger-soft-alternative": "yqt1oer",
94
+ "danger-transparent-default": "yqt1oes",
95
+ "danger-transparent-inverse": "yqt1oet",
96
+ "danger-transparent-alternative": "yqt1oeu",
97
+ "brand-media": "yqt1oev",
98
+ "neutral-media": "yqt1oew",
99
+ "danger-media": "yqt1oex"
100
+ }, d = {
101
+ default: "yqt1oe1c yqt1oe1b _1y2v1nfj1 _1y2v1nfgi _1y2v1nfgx _1y2v1nfgr _1y2v1nfjj _1y2v1nfgc",
102
+ small: "yqt1oe1d yqt1oe1b _1y2v1nfj1 _1y2v1nfgi _1y2v1nfgx _1y2v1nfgr _1y2v1nfjj _1y2v1nfgc"
103
+ }, i = {
104
+ default: "1.5rem",
105
+ small: "1.25rem"
106
+ }, q = "yqt1oez", s = "yqt1oe1e", _ = "yqt1oe10", g = "yqt1oe1i _1y2v1nfgd";
@@ -1 +1,17 @@
1
- export declare const base: string;
1
+ export declare const iconButtonTokens: Record<"brand-solid-default" | "brand-solid-inverse" | "brand-solid-alternative" | "brand-soft-default" | "brand-soft-inverse" | "brand-soft-alternative" | "brand-transparent-default" | "brand-transparent-inverse" | "brand-transparent-alternative" | "neutral-solid-default" | "neutral-solid-inverse" | "neutral-solid-alternative" | "neutral-soft-default" | "neutral-soft-inverse" | "neutral-soft-alternative" | "neutral-transparent-default" | "neutral-transparent-inverse" | "neutral-transparent-alternative" | "danger-solid-default" | "danger-solid-inverse" | "danger-solid-alternative" | "danger-soft-default" | "danger-soft-inverse" | "danger-soft-alternative" | "danger-transparent-default" | "danger-transparent-inverse" | "danger-transparent-alternative" | "brand-media" | "neutral-media" | "danger-media", string>;
2
+ export declare const disabled: string;
3
+ export declare const isLoading: string;
4
+ export declare const overlayContainer: string;
5
+ export declare const iconSize: {
6
+ default: string;
7
+ small: string;
8
+ };
9
+ export declare const buttonContainer: Record<"default" | "small", string>;
10
+ export declare const bleedLeft: Record<"default" | "small", string>;
11
+ export declare const bleedRight: Record<"default" | "small", string>;
12
+ export declare const bleedY: Record<"default" | "small", string>;
13
+ export declare const iconContainer: Record<"default" | "small", string>;
14
+ export declare const overlay: string;
15
+ export declare const icon: string;
16
+ export declare const spinner: string;
17
+ export declare const deprecatedIconButtonBase: string;
@@ -1,44 +1,87 @@
1
1
  import * as React from 'react';
2
- import type { DataAttributes, TrackingEvent } from './utils/types';
3
- interface CommonProps {
2
+ import type { TouchableElement } from './touchable';
3
+ import type { ExclusifyUnion } from './utils/utility-types';
4
+ import type { DataAttributes, IconProps, TrackingEvent } from './utils/types';
5
+ interface HrefProps {
6
+ href: string;
7
+ newTab?: boolean;
8
+ }
9
+ interface ToProps {
10
+ to: string;
11
+ fullPageOnWebView?: boolean;
12
+ replace?: boolean;
13
+ }
14
+ interface OnPressProps {
15
+ onPress: (event: React.MouseEvent<HTMLElement>) => void | undefined | Promise<void>;
16
+ }
17
+ interface MaybeProps {
18
+ onPress?: undefined;
19
+ href?: undefined;
20
+ to?: undefined;
21
+ }
22
+ interface BaseDeprecatedProps {
23
+ /** @deprecated */
4
24
  children?: React.ReactNode;
25
+ /** @deprecated */
5
26
  className?: string;
6
27
  disabled?: boolean;
28
+ /** @deprecated */
7
29
  icon?: string;
30
+ /** @deprecated */
8
31
  iconSize?: number;
32
+ /** @deprecated */
9
33
  backgroundColor?: string;
34
+ /** @deprecated */
10
35
  size?: number | string;
36
+ /** @deprecated */
11
37
  style?: React.CSSProperties;
38
+ /** @deprecated */
39
+ 'aria-live'?: 'polite' | 'off' | 'assertive';
12
40
  trackingEvent?: TrackingEvent | ReadonlyArray<TrackingEvent>;
13
41
  /** "data-" prefix is automatically added. For example, use "testid" instead of "data-testid" */
14
42
  dataAttributes?: DataAttributes;
15
43
  newTab?: boolean;
16
44
  'aria-label'?: string;
17
- 'aria-live'?: 'polite' | 'off' | 'assertive';
18
- }
19
- interface HrefProps extends CommonProps {
20
- href: string;
21
- to?: undefined;
22
- onPress?: undefined;
23
45
  }
24
- interface ToProps extends CommonProps {
25
- to: string;
26
- fullPageOnWebView?: boolean;
27
- replace?: boolean;
28
- href?: undefined;
29
- onPress?: undefined;
30
- }
31
- interface OnPressProps extends CommonProps {
32
- onPress: (event: React.MouseEvent<HTMLElement>) => void;
33
- href?: undefined;
34
- to?: undefined;
35
- }
36
- interface MaybeProps extends CommonProps {
37
- onPress?: undefined;
38
- href?: undefined;
39
- to?: undefined;
46
+ type DeprecatedProps = BaseDeprecatedProps & ExclusifyUnion<HrefProps | ToProps | OnPressProps | MaybeProps>;
47
+ /**
48
+ * @deprecated these usages of IconButton will be removed
49
+ *
50
+ * IconButton with image url:
51
+ *
52
+ * <IconButton icon="http://my.image.jpg" aria-label="label" />
53
+ *
54
+ * IconButton with SVG component as icon. Child ignored if `icon` prop is set. Only one child is accepted!
55
+ *
56
+ * <IconButton aria-label="label">
57
+ * <MySvgIconComponent />
58
+ * </IconButton />
59
+ *
60
+ */
61
+ export declare const RawDeprecatedIconButton: React.ForwardRefExoticComponent<DeprecatedProps & React.RefAttributes<TouchableElement>>;
62
+ interface BaseProps {
63
+ children?: undefined;
64
+ Icon: React.FC<IconProps>;
65
+ trackingEvent?: TrackingEvent | ReadonlyArray<TrackingEvent>;
66
+ dataAttributes?: DataAttributes;
67
+ disabled?: boolean;
68
+ showSpinner?: boolean;
69
+ 'aria-label'?: string;
70
+ small?: boolean;
71
+ type?: 'neutral' | 'brand' | 'danger';
72
+ backgroundType?: 'transparent' | 'solid' | 'soft';
73
+ bleedLeft?: boolean;
74
+ bleedRight?: boolean;
75
+ bleedY?: boolean;
40
76
  }
41
- type Props = HrefProps | ToProps | OnPressProps | MaybeProps;
42
- declare const IconButton: (props: Props) => JSX.Element;
43
- export declare const BaseIconButton: (props: Props) => JSX.Element;
77
+ type Props = BaseProps & ExclusifyUnion<HrefProps | ToProps | OnPressProps | MaybeProps>;
78
+ export declare const RawIconButton: React.ForwardRefExoticComponent<(Props & {
79
+ isOverMedia?: boolean | undefined;
80
+ }) & React.RefAttributes<TouchableElement>>;
81
+ type IconButtonProps = ExclusifyUnion<DeprecatedProps | Props>;
82
+ export declare const InternalIconButton: React.ForwardRefExoticComponent<(IconButtonProps & {
83
+ isOverMedia?: boolean | undefined;
84
+ }) & React.RefAttributes<TouchableElement>>;
85
+ export declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<TouchableElement>>;
86
+ export declare const BaseIconButton: (props: IconButtonProps) => JSX.Element;
44
87
  export default IconButton;