@telefonica/mistica 10.16.0 → 10.20.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 (102) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/button.js +24 -8
  3. package/dist/card.d.ts +10 -1
  4. package/dist/card.js +29 -29
  5. package/dist/card.js.flow +16 -1
  6. package/dist/credit-card-expiration-field.js +2 -7
  7. package/dist/credit-card-number-field.js +2 -2
  8. package/dist/cvv-field.js +2 -2
  9. package/dist/date-field.js +2 -2
  10. package/dist/date-time-field.js +2 -2
  11. package/dist/date-time-picker.js +2 -2
  12. package/dist/decimal-field.js +2 -7
  13. package/dist/email-field.js +2 -7
  14. package/dist/feedback.js +5 -8
  15. package/dist/header.d.ts +2 -0
  16. package/dist/header.js.flow +5 -0
  17. package/dist/iban-field.js +2 -7
  18. package/dist/icons/icon-success.js +14 -6
  19. package/dist/image.d.ts +25 -4
  20. package/dist/image.js +67 -9
  21. package/dist/image.js.flow +33 -4
  22. package/dist/index.d.ts +3 -0
  23. package/dist/index.js +14 -0
  24. package/dist/index.js.flow +3 -0
  25. package/dist/integer-field.js +2 -7
  26. package/dist/menu.js +34 -27
  27. package/dist/month-field.js +2 -2
  28. package/dist/package-version.js +1 -1
  29. package/dist/password-field.js +2 -2
  30. package/dist/phone-number-field.js +2 -7
  31. package/dist/search-field.js +2 -2
  32. package/dist/section-title.d.ts +1 -3
  33. package/dist/section-title.js.flow +1 -2
  34. package/dist/select.js +2 -2
  35. package/dist/skins/blau.d.ts +6 -3
  36. package/dist/skins/blau.js +34 -5
  37. package/dist/skins/blau.js.flow +6 -3
  38. package/dist/skins/movistar.d.ts +21 -11
  39. package/dist/skins/movistar.js +76 -40
  40. package/dist/skins/movistar.js.flow +21 -11
  41. package/dist/skins/o2-classic.d.ts +21 -9
  42. package/dist/skins/o2-classic.js +64 -26
  43. package/dist/skins/o2-classic.js.flow +21 -9
  44. package/dist/skins/o2.d.ts +19 -17
  45. package/dist/skins/o2.js +68 -40
  46. package/dist/skins/o2.js.flow +19 -17
  47. package/dist/skins/telefonica.d.ts +18 -13
  48. package/dist/skins/telefonica.js +76 -45
  49. package/dist/skins/telefonica.js.flow +18 -13
  50. package/dist/skins/types.d.ts +12 -0
  51. package/dist/skins/types.js.flow +12 -0
  52. package/dist/skins/vivo.d.ts +9 -4
  53. package/dist/skins/vivo.js +37 -6
  54. package/dist/skins/vivo.js.flow +9 -4
  55. package/dist/tag.d.ts +6 -1
  56. package/dist/tag.js +133 -24
  57. package/dist/tag.js.flow +15 -1
  58. package/dist/text-field-base.d.ts +3 -2
  59. package/dist/text-field-base.js +8 -8
  60. package/dist/text-field-base.js.flow +6 -2
  61. package/dist/text-field.js +2 -7
  62. package/dist/text.d.ts +4 -0
  63. package/dist/text.js +13 -6
  64. package/dist/text.js.flow +10 -0
  65. package/dist/video.d.ts +32 -0
  66. package/dist/video.js +161 -0
  67. package/dist/video.js.flow +50 -0
  68. package/dist-es/button.js +24 -8
  69. package/dist-es/card.js +30 -30
  70. package/dist-es/credit-card-expiration-field.js +2 -2
  71. package/dist-es/credit-card-number-field.js +2 -2
  72. package/dist-es/cvv-field.js +2 -2
  73. package/dist-es/date-field.js +2 -2
  74. package/dist-es/date-time-field.js +2 -2
  75. package/dist-es/date-time-picker.js +2 -2
  76. package/dist-es/decimal-field.js +2 -2
  77. package/dist-es/email-field.js +2 -2
  78. package/dist-es/feedback.js +5 -8
  79. package/dist-es/iban-field.js +2 -2
  80. package/dist-es/icons/icon-success.js +14 -6
  81. package/dist-es/image.js +41 -8
  82. package/dist-es/index.js +2 -0
  83. package/dist-es/integer-field.js +2 -2
  84. package/dist-es/menu.js +35 -28
  85. package/dist-es/month-field.js +2 -2
  86. package/dist-es/package-version.js +1 -1
  87. package/dist-es/password-field.js +2 -2
  88. package/dist-es/phone-number-field.js +2 -2
  89. package/dist-es/search-field.js +2 -2
  90. package/dist-es/select.js +2 -2
  91. package/dist-es/skins/blau.js +36 -5
  92. package/dist-es/skins/movistar.js +78 -40
  93. package/dist-es/skins/o2-classic.js +66 -26
  94. package/dist-es/skins/o2.js +70 -40
  95. package/dist-es/skins/telefonica.js +78 -45
  96. package/dist-es/skins/vivo.js +39 -6
  97. package/dist-es/tag.js +130 -26
  98. package/dist-es/text-field-base.js +7 -6
  99. package/dist-es/text-field.js +2 -2
  100. package/dist-es/text.js +13 -6
  101. package/dist-es/video.js +123 -0
  102. package/package.json +1 -1
package/dist/video.js ADDED
@@ -0,0 +1,161 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ exports.default = exports.RATIO = void 0;
6
+ var _jsxRuntime = require("react/jsx-runtime");
7
+ var React = _interopRequireWildcard(require("react"));
8
+ var _image = require("./image");
9
+ var _jss = require("./jss");
10
+ var _common = require("./utils/common");
11
+ function _interopRequireWildcard(obj) {
12
+ if (obj && obj.__esModule) {
13
+ return obj;
14
+ } else {
15
+ var newObj = {
16
+ };
17
+ if (obj != null) {
18
+ for(var key in obj){
19
+ if (Object.prototype.hasOwnProperty.call(obj, key)) {
20
+ var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {
21
+ };
22
+ if (desc.get || desc.set) {
23
+ Object.defineProperty(newObj, key, desc);
24
+ } else {
25
+ newObj[key] = obj[key];
26
+ }
27
+ }
28
+ }
29
+ }
30
+ newObj.default = obj;
31
+ return newObj;
32
+ }
33
+ }
34
+ function _objectWithoutProperties(source, excluded) {
35
+ if (source == null) return {
36
+ };
37
+ var target = _objectWithoutPropertiesLoose(source, excluded);
38
+ var key, i;
39
+ if (Object.getOwnPropertySymbols) {
40
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
41
+ for(i = 0; i < sourceSymbolKeys.length; i++){
42
+ key = sourceSymbolKeys[i];
43
+ if (excluded.indexOf(key) >= 0) continue;
44
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
45
+ target[key] = source[key];
46
+ }
47
+ }
48
+ return target;
49
+ }
50
+ function _objectWithoutPropertiesLoose(source, excluded) {
51
+ if (source == null) return {
52
+ };
53
+ var target = {
54
+ };
55
+ var sourceKeys = Object.keys(source);
56
+ var key, i;
57
+ for(i = 0; i < sourceKeys.length; i++){
58
+ key = sourceKeys[i];
59
+ if (excluded.indexOf(key) >= 0) continue;
60
+ target[key] = source[key];
61
+ }
62
+ return target;
63
+ }
64
+ var RATIO = {
65
+ '1:1': 1,
66
+ '16:9': 16 / 9,
67
+ '12:5': 12 / 5
68
+ };
69
+ exports.RATIO = RATIO;
70
+ var useStyles = (0, _jss).createUseStyles(function() {
71
+ return {
72
+ video: {
73
+ borderRadius: function borderRadius(param) {
74
+ var noBorderRadius = param.noBorderRadius;
75
+ return noBorderRadius ? 0 : 4;
76
+ },
77
+ display: 'block',
78
+ maxWidth: '100%',
79
+ maxHeight: '100%',
80
+ objectFit: 'cover',
81
+ aspectRatio: function aspectRatio(param) {
82
+ var aspectRatio1 = param.aspectRatio;
83
+ return aspectRatio1 !== null && aspectRatio1 !== void 0 ? aspectRatio1 : 'unset';
84
+ }
85
+ }
86
+ };
87
+ });
88
+ /** Transparent 1x1px PNG */ var TRANSPARENT_PIXEL = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAAtJREFUGFdjYAACAAAFAAGq1chRAAAAAElFTkSuQmCC';
89
+ var Video = /*#__PURE__*/ React.forwardRef(function(_param, ref) {
90
+ var src = _param.src, poster = _param.poster, _autoPlay = _param.autoPlay, autoPlay = _autoPlay === void 0 ? true : _autoPlay, _muted = _param.muted, muted = _muted === void 0 ? true : _muted, _loop = _param.loop, loop = _loop === void 0 ? true : _loop, _preload = _param.preload, preload = _preload === void 0 ? 'none' : _preload, _aspectRatio = _param.aspectRatio, aspectRatio = _aspectRatio === void 0 ? '1:1' : _aspectRatio, props = _objectWithoutProperties(_param, [
91
+ "src",
92
+ "poster",
93
+ "autoPlay",
94
+ "muted",
95
+ "loop",
96
+ "preload",
97
+ "aspectRatio"
98
+ ]);
99
+ var noBorderRadius = (0, _image).useDisableBorderRadius();
100
+ var classes = useStyles({
101
+ noBorderRadius: noBorderRadius,
102
+ aspectRatio: !props.width && !props.height ? RATIO[aspectRatio] : undefined
103
+ });
104
+ var videoRef = React.useRef(null);
105
+ React.useEffect(function() {
106
+ var video = videoRef.current;
107
+ if (video && autoPlay && video.paused) {
108
+ video.play();
109
+ }
110
+ }, [
111
+ autoPlay
112
+ ]);
113
+ // normalize sources
114
+ var sources = (Array.isArray(src) ? src : [
115
+ src
116
+ ]).map(function(source) {
117
+ if (typeof source === 'string') {
118
+ return {
119
+ src: source
120
+ };
121
+ } else {
122
+ return source;
123
+ }
124
+ });
125
+ var width = props.width;
126
+ var height = props.height;
127
+ if (props.width !== undefined && props.height !== undefined) {
128
+ width = props.width;
129
+ height = props.height;
130
+ } else if (props.width !== undefined) {
131
+ height = props.width / RATIO[aspectRatio];
132
+ } else if (props.height !== undefined) {
133
+ width = props.height * RATIO[aspectRatio];
134
+ } else {
135
+ width = '100%';
136
+ }
137
+ return(/*#__PURE__*/ (0, _jsxRuntime).jsx("video", {
138
+ ref: (0, _common).combineRefs(ref, videoRef),
139
+ playsInline: true,
140
+ disablePictureInPicture: true,
141
+ disableRemotePlayback: true,
142
+ autoPlay: autoPlay,
143
+ muted: muted,
144
+ loop: loop,
145
+ width: width,
146
+ height: height,
147
+ className: classes.video,
148
+ preload: preload,
149
+ // This transparent pixel fallback avoids showing the ugly "play" image in android webviews
150
+ poster: poster || TRANSPARENT_PIXEL,
151
+ children: sources.map(function(param, index) {
152
+ var src = param.src, type = param.type;
153
+ /*#__PURE__*/ return (0, _jsxRuntime).jsx("source", {
154
+ src: src,
155
+ type: type
156
+ }, index);
157
+ })
158
+ }));
159
+ });
160
+ var _default = Video;
161
+ exports.default = _default;
@@ -0,0 +1,50 @@
1
+ // @flow
2
+
3
+ import * as React from "react";
4
+ export type AspectRatio = "1:1" | "16:9" | "12:5";
5
+ declare export var RATIO: {
6
+ "1:1": number,
7
+ "16:9": number,
8
+ "12:5": number,
9
+ };
10
+ declare type VideoSource = {
11
+ src: string,
12
+ type?: string,
13
+ };
14
+ export type VideoProps = {
15
+ /**
16
+ * defaults to 100% when no width and no height are given
17
+ */
18
+ width?: number,
19
+ height?: number,
20
+ /**
21
+ * defaults to 1:1, if both width and height are given, aspectRatio is ignored
22
+ */
23
+ aspectRatio?: AspectRatio,
24
+ /**
25
+ * accepts multiple sources
26
+ */
27
+ src: string | Array<string> | VideoSource | Array<VideoSource>,
28
+ /**
29
+ * defaults to true
30
+ */
31
+ loop?: boolean,
32
+ /**
33
+ * defaults to true
34
+ */
35
+ muted?: boolean,
36
+ /**
37
+ * defaults to true
38
+ */
39
+ autoPlay?: boolean,
40
+ poster?: string,
41
+ /**
42
+ * defaults to none
43
+ */
44
+ preload?: "none" | "metadata" | "auto",
45
+ };
46
+ declare var Video: React.ComponentType<{
47
+ ...VideoProps,
48
+ ref?: React.Ref<HTMLVideoElement>,
49
+ }>;
50
+ declare export default typeof Video;
package/dist-es/button.js CHANGED
@@ -361,6 +361,11 @@ var Button = function(props) {
361
361
  disabled: props.disabled || showSpinner || isFormSending,
362
362
  role: 'button'
363
363
  };
364
+ if (process.env.NODE_ENV !== 'production') {
365
+ if (props.to === '' || props.href === '') {
366
+ throw Error('to or href props are empty strings');
367
+ }
368
+ }
364
369
  if (props.fake) {
365
370
  return(/*#__PURE__*/ _jsx(Touchable, _objectSpread({
366
371
  maybe: true
@@ -384,22 +389,25 @@ var Button = function(props) {
384
389
  onPress: props.onPress
385
390
  })));
386
391
  }
387
- if (props.to) {
392
+ if (props.to || props.to === '') {
388
393
  return(/*#__PURE__*/ _jsx(Touchable, _objectSpread({
389
394
  }, commonProps, {
390
395
  to: props.to,
391
396
  fullPageOnWebView: props.fullPageOnWebView
392
397
  })));
393
398
  }
394
- if (props.href) {
399
+ if (props.href || props.href === '') {
395
400
  return(/*#__PURE__*/ _jsx(Touchable, _objectSpread({
396
401
  }, commonProps, {
397
402
  href: props.href,
398
403
  newTab: props.newTab
399
404
  })));
400
405
  }
401
- // this cannot happen
402
- throw Error('Bad button props');
406
+ if (process.env.NODE_ENV !== 'production') {
407
+ // this cannot happen
408
+ throw Error('Bad button props');
409
+ }
410
+ return null;
403
411
  };
404
412
  var useButtonLinkStyles = createUseStyles(function(theme) {
405
413
  var padding = 6;
@@ -456,6 +464,11 @@ export var ButtonLink = /*#__PURE__*/ React.forwardRef(function(props, ref) {
456
464
  children: props.children
457
465
  })
458
466
  };
467
+ if (process.env.NODE_ENV !== 'production') {
468
+ if (props.to === '' || props.href === '') {
469
+ throw Error('to or href props are empty strings');
470
+ }
471
+ }
459
472
  if (props.onPress) {
460
473
  return(/*#__PURE__*/ _jsx(Touchable, _objectSpread({
461
474
  ref: ref
@@ -463,7 +476,7 @@ export var ButtonLink = /*#__PURE__*/ React.forwardRef(function(props, ref) {
463
476
  onPress: props.onPress
464
477
  })));
465
478
  }
466
- if (props.to) {
479
+ if (props.to || props.to === '') {
467
480
  return(/*#__PURE__*/ _jsx(Touchable, _objectSpread({
468
481
  ref: ref
469
482
  }, commonProps, {
@@ -471,7 +484,7 @@ export var ButtonLink = /*#__PURE__*/ React.forwardRef(function(props, ref) {
471
484
  fullPageOnWebView: props.fullPageOnWebView
472
485
  })));
473
486
  }
474
- if (props.href) {
487
+ if (props.href || props.href === '') {
475
488
  return(/*#__PURE__*/ _jsx(Touchable, _objectSpread({
476
489
  ref: ref
477
490
  }, commonProps, {
@@ -479,8 +492,11 @@ export var ButtonLink = /*#__PURE__*/ React.forwardRef(function(props, ref) {
479
492
  newTab: props.newTab
480
493
  })));
481
494
  }
482
- // this cannot happen
483
- throw Error('Bad button props');
495
+ if (process.env.NODE_ENV !== 'production') {
496
+ // this cannot happen
497
+ throw Error('Bad button props');
498
+ }
499
+ return null;
484
500
  });
485
501
  export var ButtonPrimary = function(props) {
486
502
  var classes = usePrimaryButtonStyles();
package/dist-es/card.js CHANGED
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import * as React from 'react';
3
3
  import Tag from './tag';
4
4
  import Stack from './stack';
@@ -8,13 +8,13 @@ import { Text1, Text2, Text4 } from './text';
8
8
  import { createUseStyles } from './jss';
9
9
  import { Boxed } from './boxed';
10
10
  import ButtonGroup from './button-group';
11
+ import { DisableBorderRadiusProvider } from './image';
11
12
  var useCardContentStyles = createUseStyles(function() {
12
13
  return {
13
14
  actions: {
14
15
  flex: 1,
15
16
  display: 'flex',
16
- alignItems: 'flex-end',
17
- marginTop: 16
17
+ alignItems: 'flex-end'
18
18
  }
19
19
  };
20
20
  });
@@ -28,32 +28,30 @@ var CardContent = function(param) {
28
28
  }
29
29
  if (typeof headline === 'string') {
30
30
  return(/*#__PURE__*/ _jsx(Tag, {
31
- color: theme.colors.promo,
31
+ type: "promo",
32
32
  children: headline
33
33
  }));
34
34
  }
35
35
  return headline;
36
36
  };
37
- return(/*#__PURE__*/ _jsxs(_Fragment, {
37
+ return(/*#__PURE__*/ _jsxs(Stack, {
38
+ space: 16,
38
39
  children: [
39
40
  /*#__PURE__*/ _jsxs(Stack, {
40
- space: 16,
41
+ space: 8,
41
42
  children: [
42
- /*#__PURE__*/ _jsxs(Stack, {
43
- space: 8,
44
- children: [
45
- (headline || pretitle || title || subtitle) && /*#__PURE__*/ _jsx("header", {
46
- children: /*#__PURE__*/ _jsxs(Stack, {
43
+ (headline || pretitle || title || subtitle) && /*#__PURE__*/ _jsx("header", {
44
+ children: /*#__PURE__*/ _jsxs(Stack, {
45
+ space: 16,
46
+ children: [
47
+ renderHeadline(),
48
+ /*#__PURE__*/ _jsxs(Stack, {
47
49
  space: 4,
48
50
  children: [
49
- renderHeadline(),
50
- pretitle && /*#__PURE__*/ _jsx(Box, {
51
- paddingTop: 4,
52
- children: /*#__PURE__*/ _jsx(Text1, {
53
- regular: true,
54
- uppercase: true,
55
- children: pretitle
56
- })
51
+ pretitle && /*#__PURE__*/ _jsx(Text1, {
52
+ regular: true,
53
+ uppercase: true,
54
+ children: pretitle
57
55
  }),
58
56
  /*#__PURE__*/ _jsx(Text4, {
59
57
  as: "h1",
@@ -66,20 +64,20 @@ var CardContent = function(param) {
66
64
  })
67
65
  ]
68
66
  })
69
- }),
70
- description && /*#__PURE__*/ _jsx(Text2, {
71
- as: "p",
72
- regular: true,
73
- color: theme.colors.textSecondary,
74
- children: description
75
- })
76
- ]
67
+ ]
68
+ })
77
69
  }),
78
- extra && /*#__PURE__*/ _jsx("div", {
79
- children: extra
70
+ description && /*#__PURE__*/ _jsx(Text2, {
71
+ as: "p",
72
+ regular: true,
73
+ color: theme.colors.textSecondary,
74
+ children: description
80
75
  })
81
76
  ]
82
77
  }),
78
+ extra && /*#__PURE__*/ _jsx("div", {
79
+ children: extra
80
+ }),
83
81
  (button || buttonLink) && /*#__PURE__*/ _jsx("div", {
84
82
  className: classes.actions,
85
83
  children: /*#__PURE__*/ _jsx(ButtonGroup, {
@@ -141,8 +139,10 @@ export var MediaCard = /*#__PURE__*/ React.forwardRef(function(param, ref) {
141
139
  className: classes.mediaCard,
142
140
  "aria-label": ariaLabel,
143
141
  children: [
144
- /*#__PURE__*/ _jsx("div", {
142
+ typeof media.src === 'string' ? /*#__PURE__*/ _jsx("div", {
145
143
  className: classes.media
144
+ }) : /*#__PURE__*/ _jsx(DisableBorderRadiusProvider, {
145
+ children: media
146
146
  }),
147
147
  /*#__PURE__*/ _jsx("div", {
148
148
  className: classes.content,
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as React from 'react';
3
3
  import { useForm, useFieldProps } from './form-context';
4
4
  import { useTheme } from './hooks';
5
- import TextFieldBase from './text-field-base';
5
+ import { TextFieldBaseAutosuggest } from './text-field-base';
6
6
  function _arrayWithHoles(arr) {
7
7
  if (Array.isArray(arr)) return arr;
8
8
  }
@@ -192,7 +192,7 @@ var CreditCardExpirationField = function(_param) {
192
192
  onChange: onChange,
193
193
  onChangeValue: onChangeValue
194
194
  });
195
- return(/*#__PURE__*/ _jsx(TextFieldBase, _objectSpread({
195
+ return(/*#__PURE__*/ _jsx(TextFieldBaseAutosuggest, _objectSpread({
196
196
  }, rest, fieldProps, {
197
197
  onChange: function(event) {
198
198
  fieldProps.onChange(event);
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import { useForm, useFieldProps } from './form-context';
4
4
  import { useTheme } from './hooks';
5
5
  import { getCreditCardNumberLength, isAmericanExpress, isVisa, isMasterCard, isValidCreditCardNumber } from './utils/credit-card';
6
- import TextFieldBase from './text-field-base';
6
+ import { TextFieldBaseAutosuggest } from './text-field-base';
7
7
  import IconCreditcard from './icons/icon-creditcard';
8
8
  import IconVisa from './icons/icon-visa';
9
9
  import IconMastercard from './icons/icon-mastercard';
@@ -305,7 +305,7 @@ var CreditCardNumberField = function(_param) {
305
305
  onChangeValue: onChangeValue
306
306
  });
307
307
  var ref2;
308
- return(/*#__PURE__*/ _jsx(TextFieldBase, _objectSpread({
308
+ return(/*#__PURE__*/ _jsx(TextFieldBaseAutosuggest, _objectSpread({
309
309
  }, rest, fieldProps, {
310
310
  onChange: function(event) {
311
311
  fieldProps.onChange(event);
@@ -7,7 +7,7 @@ import Tooltip from './tooltip';
7
7
  import IconButton from './icon-button';
8
8
  import IcnInfo from './icons/icon-info-cvv';
9
9
  import { useFieldProps, useForm } from './form-context';
10
- import TextFieldBase from './text-field-base';
10
+ import { TextFieldBaseAutosuggest } from './text-field-base';
11
11
  import { IntegerInput } from './integer-field';
12
12
  function _defineProperty(obj, key, value) {
13
13
  if (key in obj) {
@@ -152,7 +152,7 @@ var CvvField = function(_param) {
152
152
  onChange: onChange,
153
153
  onChangeValue: onChangeValue
154
154
  });
155
- return(/*#__PURE__*/ _jsx(TextFieldBase, _objectSpread({
155
+ return(/*#__PURE__*/ _jsx(TextFieldBaseAutosuggest, _objectSpread({
156
156
  }, rest, fieldProps, {
157
157
  maxLength: maxLength,
158
158
  onChange: function(event) {
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as React from 'react';
3
3
  import { useFieldProps } from './form-context';
4
- import TextFieldBase from './text-field-base';
4
+ import { TextFieldBaseAutosuggest } from './text-field-base';
5
5
  import { isInputTypeSupported } from './utils/dom';
6
6
  import { isServerSide } from './utils/environment';
7
7
  import IconCalendarRegular from './generated/mistica-icons/icon-calendar-regular';
@@ -118,7 +118,7 @@ var DateField = function(_param) {
118
118
  onChange: onChange,
119
119
  onChangeValue: onChangeValue
120
120
  });
121
- var nativePicker = /*#__PURE__*/ _jsx(TextFieldBase, _objectSpread({
121
+ var nativePicker = /*#__PURE__*/ _jsx(TextFieldBaseAutosuggest, _objectSpread({
122
122
  }, rest, fieldProps, {
123
123
  min: min ? getLocalDateString(min) : undefined,
124
124
  max: max ? getLocalDateString(max) : undefined,
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as React from 'react';
3
3
  import { useFieldProps } from './form-context';
4
- import TextFieldBase from './text-field-base';
4
+ import { TextFieldBaseAutosuggest } from './text-field-base';
5
5
  import { isInputTypeSupported } from './utils/dom';
6
6
  import { isServerSide } from './utils/environment';
7
7
  import { getLocalDateTimeString } from './utils/time';
@@ -119,7 +119,7 @@ var FormDateField = function(_param) {
119
119
  onChange: onChange,
120
120
  onChangeValue: onChangeValue
121
121
  });
122
- var nativePicker = /*#__PURE__*/ _jsx(TextFieldBase, _objectSpread({
122
+ var nativePicker = /*#__PURE__*/ _jsx(TextFieldBaseAutosuggest, _objectSpread({
123
123
  }, rest, fieldProps, {
124
124
  min: min ? getLocalDateTimeString(min) : undefined,
125
125
  max: max ? getLocalDateTimeString(max) : undefined,
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import * as React from 'react';
3
- import TextFieldBase from './text-field-base';
3
+ import { TextFieldBaseAutosuggest } from './text-field-base';
4
4
  import IconCalendarRegular from './generated/mistica-icons/icon-calendar-regular';
5
5
  import Datetime from 'react-datetime';
6
6
  import Overlay from './overlay';
@@ -367,7 +367,7 @@ var DateTimePicker = function(_param) {
367
367
  };
368
368
  return(/*#__PURE__*/ _jsxs(_Fragment, {
369
369
  children: [
370
- /*#__PURE__*/ _jsx(TextFieldBase, _objectSpread({
370
+ /*#__PURE__*/ _jsx(TextFieldBaseAutosuggest, _objectSpread({
371
371
  }, rest, {
372
372
  style: {
373
373
  cursor: 'default'
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as React from 'react';
3
3
  import { useFieldProps } from './form-context';
4
4
  import { useTheme } from './hooks';
5
- import TextFieldBase from './text-field-base';
5
+ import { TextFieldBaseAutosuggest } from './text-field-base';
6
6
  import { createChangeEvent } from './utils/dom';
7
7
  import { useRifm } from 'rifm';
8
8
  import { combineRefs } from './utils/common';
@@ -191,7 +191,7 @@ var DecimalField = function(_param) {
191
191
  onChange: onChange,
192
192
  onChangeValue: onChangeValue
193
193
  });
194
- return(/*#__PURE__*/ _jsx(TextFieldBase, _objectSpread({
194
+ return(/*#__PURE__*/ _jsx(TextFieldBaseAutosuggest, _objectSpread({
195
195
  }, rest, fieldProps, {
196
196
  inputComponent: DecimalInput,
197
197
  inputProps: {
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useFieldProps } from './form-context';
3
3
  import { useTheme } from './hooks';
4
- import TextFieldBase from './text-field-base';
4
+ import { TextFieldBaseAutosuggest } from './text-field-base';
5
5
  function _defineProperty(obj, key, value) {
6
6
  if (key in obj) {
7
7
  Object.defineProperty(obj, key, {
@@ -92,7 +92,7 @@ var EmailField = function(_param) {
92
92
  onChange: onChange,
93
93
  onChangeValue: onChangeValue
94
94
  });
95
- return(/*#__PURE__*/ _jsx(TextFieldBase, _objectSpread({
95
+ return(/*#__PURE__*/ _jsx(TextFieldBaseAutosuggest, _objectSpread({
96
96
  }, rest, fieldProps, {
97
97
  type: "email",
98
98
  inputMode: "email",
@@ -420,13 +420,12 @@ export var SuccessFeedbackScreen = function(props) {
420
420
  };
421
421
  var ErrorFeedbackScreen = function(_param) {
422
422
  var children = _param.children, errorReference = _param.errorReference, otherProps = _objectWithoutProperties(_param, ["children", "errorReference"]);
423
- var ref = useTheme(), skinName = ref.skinName, colors = ref.colors;
424
- var hasIcon = skinName !== VIVO_SKIN;
423
+ var ref = useTheme(), colors = ref.colors;
425
424
  return(/*#__PURE__*/ _jsxs(FeedbackScreen, _objectSpread({
426
425
  }, otherProps, {
427
426
  hapticFeedback: "error",
428
- icon: hasIcon ? /*#__PURE__*/ _jsx(IcnError, {
429
- }) : undefined,
427
+ icon: /*#__PURE__*/ _jsx(IcnError, {
428
+ }),
430
429
  animateText: true,
431
430
  children: [
432
431
  children,
@@ -440,12 +439,10 @@ var ErrorFeedbackScreen = function(_param) {
440
439
  };
441
440
  export { ErrorFeedbackScreen };
442
441
  export var InfoFeedbackScreen = function(props) {
443
- var ref = useTheme(), skinName = ref.skinName;
444
- var hasIcon = skinName !== VIVO_SKIN;
445
442
  return(/*#__PURE__*/ _jsx(FeedbackScreen, _objectSpread({
446
443
  }, props, {
447
- icon: hasIcon ? /*#__PURE__*/ _jsx(IcnInfo, {
448
- }) : undefined
444
+ icon: /*#__PURE__*/ _jsx(IcnInfo, {
445
+ })
449
446
  })));
450
447
  };
451
448
  export var SuccessFeedback = function(param) {
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as React from 'react';
3
3
  import { useRifm } from 'rifm';
4
4
  import { useFieldProps } from './form-context';
5
- import TextFieldBase from './text-field-base';
5
+ import { TextFieldBaseAutosuggest } from './text-field-base';
6
6
  import { createChangeEvent } from './utils/dom';
7
7
  import { combineRefs } from './utils/common';
8
8
  import { useTheme } from './hooks';
@@ -246,7 +246,7 @@ var IbanField = function(_param) {
246
246
  onChange: onChange,
247
247
  onChangeValue: onChangeValue
248
248
  });
249
- return(/*#__PURE__*/ _jsx(TextFieldBase, _objectSpread({
249
+ return(/*#__PURE__*/ _jsx(TextFieldBaseAutosuggest, _objectSpread({
250
250
  }, rest, fieldProps, {
251
251
  inputComponent: IbanInput
252
252
  })));
@@ -59,21 +59,29 @@ var IconSuccessO2 = function(param) {
59
59
  children: /*#__PURE__*/ _jsxs("g", {
60
60
  className: classnames(_defineProperty({
61
61
  }, classes.iconContainer, !color)),
62
- strokeWidth: "2",
63
62
  strokeLinecap: "round",
64
63
  strokeLinejoin: "round",
65
64
  children: [
66
65
  /*#__PURE__*/ _jsx("path", _objectSpread({
67
66
  fill: "none",
67
+ strokeWidth: "2",
68
68
  stroke: color ? color : undefined,
69
- strokeMiterlimit: "10",
70
- d: "M21.7,35.6l2.8,2.8c1.1,1.1,2.9,1.1,4.1,0l17.3-17.3"
71
- }, !skipAnimation && mergeProperties(getAnimateDrawLineProps('33', '0.9s', platformOverrides), getAnimateHopInProps('0.9s', platformOverrides)))),
69
+ d: "M45.64 53.84A25.599 25.599 0 0 1 32 57.75C17.78 57.75 6.25 46.22 6.25 32S17.78 6.25 32 6.25 57.75 17.78 57.75 32c0 5.13-1.5 9.92-4.09 13.93"
70
+ }, !skipAnimation && getAnimateDrawLineProps('202', '0.3s', platformOverrides))),
72
71
  /*#__PURE__*/ _jsx("path", _objectSpread({
73
72
  fill: "none",
73
+ strokeWidth: "2",
74
+ stroke: color ? color : undefined,
75
+ d: "m19.33 30.39 9.88 10.95 18.13-19.23"
76
+ }, !skipAnimation && mergeProperties(getAnimateDrawLineProps('44', '0.6s', platformOverrides), getAnimateHopInProps('0.6', platformOverrides)))),
77
+ /*#__PURE__*/ _jsx("circle", _objectSpread({
78
+ fill: "none",
79
+ strokeWidth: "2",
74
80
  stroke: color ? color : undefined,
75
- d: "M49.1,57.9C44.2,61.1,38.3,63,32,63C14.9,63,1,49.1,1,32C1,14.9,14.9,1,32,1c17.1,0,31,13.9,31,31c0,7.5-2.6,14.3-7.1,19.7"
76
- }, !skipAnimation && getAnimateDrawLineProps('186', '0.5s', platformOverrides)))
81
+ cx: "50.18",
82
+ cy: "50.1",
83
+ r: ".89"
84
+ }, !skipAnimation && getAnimateDrawLineProps('180', '0.2s', platformOverrides)))
77
85
  ]
78
86
  })
79
87
  }));