sapo-components-ui-rn 1.1.21 → 1.1.23

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 (45) hide show
  1. package/dist/assets/icon-arrow-down.svg +3 -0
  2. package/dist/assets/icon-clear-text.svg +4 -0
  3. package/dist/assets/icon-del-number.svg +4 -0
  4. package/dist/assets/icon-error.svg +3 -0
  5. package/dist/assets/icon-info.svg +3 -0
  6. package/dist/assets/icon-search.svg +10 -0
  7. package/dist/assets/icon-success.svg +3 -0
  8. package/dist/assets/icon-warning.svg +3 -0
  9. package/dist/assets/index.ts +16 -0
  10. package/dist/assets/svg/icon-arrow-down.svg +3 -0
  11. package/dist/assets/svg/icon-clear-text.svg +4 -0
  12. package/dist/assets/svg/icon-del-number.svg +4 -0
  13. package/dist/assets/svg/icon-error.svg +3 -0
  14. package/dist/assets/svg/icon-info.svg +3 -0
  15. package/dist/assets/svg/icon-search.svg +10 -0
  16. package/dist/assets/svg/icon-success.svg +3 -0
  17. package/dist/assets/svg/icon-warning.svg +3 -0
  18. package/dist/assets/svg/index.d.ts +8 -0
  19. package/dist/assets/svg/index.ts +16 -0
  20. package/dist/components/IconSvg/index.d.ts +2 -1
  21. package/dist/index.esm.js +39 -133
  22. package/dist/index.esm.js.map +1 -1
  23. package/dist/index.js +47 -134
  24. package/dist/index.js.map +1 -1
  25. package/package.json +1 -1
  26. package/src/assets/svg/icon-arrow-down.svg +3 -0
  27. package/src/assets/svg/icon-clear-text.svg +4 -0
  28. package/src/assets/svg/icon-del-number.svg +4 -0
  29. package/src/assets/svg/icon-error.svg +3 -0
  30. package/src/assets/svg/icon-info.svg +3 -0
  31. package/src/assets/svg/icon-search.svg +10 -0
  32. package/src/assets/svg/icon-success.svg +3 -0
  33. package/src/assets/svg/icon-warning.svg +3 -0
  34. package/src/assets/svg/index.ts +16 -0
  35. package/src/components/Checkbox/index.tsx +4 -3
  36. package/src/components/IconSvg/index.tsx +1 -1
  37. package/src/components/NumberKeyboard/index.tsx +4 -3
  38. package/src/components/RadioButton/index.tsx +6 -11
  39. package/src/components/SearchInput/index.tsx +3 -2
  40. package/src/components/SelectionField/index.tsx +2 -2
  41. package/src/components/Tag/index.tsx +5 -4
  42. package/src/components/TextInput/TextInputDefault.tsx +2 -2
  43. package/src/components/TextInput/TextInputFlat.tsx +2 -2
  44. package/src/components/TextInput/TextInputNumber.tsx +11 -5
  45. package/src/components/Toast/index.tsx +3 -3
package/dist/index.js CHANGED
@@ -7,12 +7,19 @@ var React$3 = require('react');
7
7
  var require$$1 = require('deepmerge');
8
8
  var Animated = require('react-native-reanimated');
9
9
  var color = require('color');
10
- var IconClose$1 = require('./assets/svg/icon-close.svg');
11
- var IconCheckbox$1 = require('./assets/svg/icon-checkbox.svg');
12
- var IconCheckboxActive$1 = require('./assets/svg/icon-checkbox-active.svg');
13
- var IconRadio$1 = require('./assets/svg/icon-radio.svg');
14
- var IconRadioActive$1 = require('./assets/svg/icon-radio-active.svg');
15
- var Svg$1 = require('react-native-svg');
10
+ var IconClose = require('./assets/svg/icon-close.svg');
11
+ var IconCheckbox = require('./assets/svg/icon-checkbox.svg');
12
+ var IconCheckboxActive = require('./assets/svg/icon-checkbox-active.svg');
13
+ var IconRadio = require('./assets/svg/icon-radio.svg');
14
+ var IconRadioActive = require('./assets/svg/icon-radio-active.svg');
15
+ var IconSearch = require('./assets/svg/icons/IconSearch.svg');
16
+ var IconInfo = require('./assets/svg/icons/IconInfo.svg');
17
+ var IconSuccess = require('./assets/svg/icons/IconSuccess.svg');
18
+ var IconWarning = require('./assets/svg/icons/IconWarning.svg');
19
+ var IconArrowDown = require('./assets/svg/icons/IconArrowDown.svg');
20
+ var IconError = require('./assets/svg/icons/IconError.svg');
21
+ var IconClearText = require('./assets/svg/icons/IconClearText.svg');
22
+ var IconDelNumber = require('./assets/svg/icon-del-number.svg');
16
23
  var reactNativeSafeAreaContext = require('react-native-safe-area-context');
17
24
  var useDebounce = require('use-debounce');
18
25
 
@@ -41,12 +48,19 @@ var React__namespace = /*#__PURE__*/_interopNamespace(React$3);
41
48
  var require$$1__default = /*#__PURE__*/_interopDefaultLegacy(require$$1);
42
49
  var Animated__default = /*#__PURE__*/_interopDefaultLegacy(Animated);
43
50
  var color__default = /*#__PURE__*/_interopDefaultLegacy(color);
44
- var IconClose__default = /*#__PURE__*/_interopDefaultLegacy(IconClose$1);
45
- var IconCheckbox__default = /*#__PURE__*/_interopDefaultLegacy(IconCheckbox$1);
46
- var IconCheckboxActive__default = /*#__PURE__*/_interopDefaultLegacy(IconCheckboxActive$1);
47
- var IconRadio__default = /*#__PURE__*/_interopDefaultLegacy(IconRadio$1);
48
- var IconRadioActive__default = /*#__PURE__*/_interopDefaultLegacy(IconRadioActive$1);
49
- var Svg__default = /*#__PURE__*/_interopDefaultLegacy(Svg$1);
51
+ var IconClose__default = /*#__PURE__*/_interopDefaultLegacy(IconClose);
52
+ var IconCheckbox__default = /*#__PURE__*/_interopDefaultLegacy(IconCheckbox);
53
+ var IconCheckboxActive__default = /*#__PURE__*/_interopDefaultLegacy(IconCheckboxActive);
54
+ var IconRadio__default = /*#__PURE__*/_interopDefaultLegacy(IconRadio);
55
+ var IconRadioActive__default = /*#__PURE__*/_interopDefaultLegacy(IconRadioActive);
56
+ var IconSearch__default = /*#__PURE__*/_interopDefaultLegacy(IconSearch);
57
+ var IconInfo__default = /*#__PURE__*/_interopDefaultLegacy(IconInfo);
58
+ var IconSuccess__default = /*#__PURE__*/_interopDefaultLegacy(IconSuccess);
59
+ var IconWarning__default = /*#__PURE__*/_interopDefaultLegacy(IconWarning);
60
+ var IconArrowDown__default = /*#__PURE__*/_interopDefaultLegacy(IconArrowDown);
61
+ var IconError__default = /*#__PURE__*/_interopDefaultLegacy(IconError);
62
+ var IconClearText__default = /*#__PURE__*/_interopDefaultLegacy(IconClearText);
63
+ var IconDelNumber__default = /*#__PURE__*/_interopDefaultLegacy(IconDelNumber);
50
64
 
51
65
  /******************************************************************************
52
66
  Copyright (c) Microsoft Corporation.
@@ -5056,6 +5070,14 @@ var Svg = {
5056
5070
  IconCheckboxActive: IconCheckboxActive__default["default"],
5057
5071
  IconRadio: IconRadio__default["default"],
5058
5072
  IconRadioActive: IconRadioActive__default["default"],
5073
+ IconSearch: IconSearch__default["default"],
5074
+ IconInfo: IconInfo__default["default"],
5075
+ IconSuccess: IconSuccess__default["default"],
5076
+ IconWarning: IconWarning__default["default"],
5077
+ IconArrowDown: IconArrowDown__default["default"],
5078
+ IconError: IconError__default["default"],
5079
+ IconClearText: IconClearText__default["default"],
5080
+ IconDelNumber: IconDelNumber__default["default"],
5059
5081
  };
5060
5082
 
5061
5083
  var SvgIcon = function (_a) {
@@ -5068,111 +5090,6 @@ var SvgIcon = function (_a) {
5068
5090
  return (React__default["default"].createElement(IconComponent, { width: width, height: height, color: disabled ? colors.ink.INK20 : color, style: style, onPress: disabled ? undefined : onPress }));
5069
5091
  };
5070
5092
 
5071
- var IconCheckboxActive = function (props) { return (React__namespace.createElement(Svg__default["default"], __assign({ width: 24, height: 24, viewBox: "0 0 24 24", fill: "none" }, props),
5072
- React__namespace.createElement(Svg$1.Rect, { x: 2, y: 2, width: 20, height: 20, rx: 6, fill: "currentColor" }),
5073
- React__namespace.createElement(Svg$1.Path, { d: "M17.7745 8.32544L10.4245 15.6751L6.74951 12.0004", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }))); };
5074
-
5075
- var IconCheckbox = function (props) { return (React__namespace.createElement(Svg__default["default"], __assign({ width: 24, height: 24, viewBox: "0 0 24 24", fill: "none" }, props),
5076
- React__namespace.createElement(Svg$1.Rect, { x: 2.75, y: 2.75, width: 18.5, height: 18.5, rx: 5.25, fill: "currentColor", stroke: "#A1A5AB", strokeWidth: 1.5 }))); };
5077
-
5078
- var IconRadio = function (props) { return (React__namespace.createElement(Svg__default["default"], __assign({ width: 24, height: 24, viewBox: "0 0 24 24", fill: "none" }, props),
5079
- React__namespace.createElement(Svg$1.Circle, { cx: 12, cy: 12, r: 9.25, stroke: "#A1A5AB", strokeWidth: 1.5 }))); };
5080
-
5081
- var IconRadioActive = function (props) { return (React__namespace.createElement(Svg__default["default"], __assign({ width: 24, height: 24, viewBox: "0 0 24 24", fill: "none" }, props),
5082
- React__namespace.createElement(Svg$1.Circle, { cx: 12, cy: 12, r: 9.25, stroke: "currentColor", strokeWidth: 1.5 }),
5083
- React__namespace.createElement(Svg$1.Circle, { cx: 12, cy: 12, r: 6, fill: "currentColor" }))); };
5084
-
5085
- var IconRadioDisable = function (props) { return (React__namespace.createElement(Svg__default["default"], __assign({ width: 24, height: 24, viewBox: "0 0 24 24", fill: "none" }, props),
5086
- React__namespace.createElement(Svg$1.Circle, { cx: 12, cy: 12, r: 9.25, stroke: "#E5E7EB", strokeWidth: 1.5 }),
5087
- React__namespace.createElement(Svg$1.Circle, { cx: 12, cy: 12, r: 6, fill: "#F3F4F6" }))); };
5088
-
5089
- var IconArrowDown = function (props) { return (React__namespace.createElement(Svg__default["default"], __assign({ width: 24, height: 24, viewBox: "0 0 24 24", fill: "none" }, props),
5090
- React__namespace.createElement(Svg$1.Path, { d: "M18.0107 9.70166L12 15.7124L5.98926 9.70166L7.40332 8.2876L12 12.8843L16.5967 8.2876L18.0107 9.70166Z", fill: "currentColor" }))); };
5091
-
5092
- var IconClearText = function (props) { return (React__namespace.createElement(Svg__default["default"], __assign({ width: 24, height: 24, viewBox: "0 0 24 24", fill: "none" }, props),
5093
- React__namespace.createElement(Svg$1.Path, { d: "M12 2.00043C17.53 2.00043 22 6.47046 22 12.0004C21.9997 17.5302 17.5298 22.0004 12 22.0004C6.47016 22.0004 2.00026 17.5302 2 12.0004C2.00004 6.47046 6.47003 2.00043 12 2.00043ZM12 10.5903L9.41016 8.00043L8 9.40961L10.5898 12.0004L8 14.5903L9.41016 16.0004L12 13.4096L14.5898 16.0004L16 14.5903L13.4102 12.0004L16 9.40961L14.5898 8.00043L12 10.5903Z", fill: "currentColor" }))); };
5094
-
5095
- var IconSearch = function (props) { return (React__namespace.createElement(Svg__default["default"], __assign({ width: 16, height: 16, viewBox: "0 0 16 16", fill: "none" }, props),
5096
- React__namespace.createElement(Svg$1.Path, { d: "M15.7 14.3L11.5 10.1C11.3 9.9 11 9.8 10.7 9.8C11.5 8.8 12 7.4 12 6C12 2.7 9.3 0 6 0C2.7 0 0 2.7 0 6C0 9.3 2.7 12 6 12C7.4 12 8.8 11.5 9.8 10.6C9.8 10.9 9.8 11.2 10.1 11.4L14.3 15.6C14.5 15.8 14.8 15.9 15 15.9C15.2 15.9 15.5 15.8 15.7 15.6C16.1 15.3 16.1 14.7 15.7 14.3ZM6 10.5C3.5 10.5 1.5 8.5 1.5 6C1.5 3.5 3.5 1.5 6 1.5C8.5 1.5 10.5 3.5 10.5 6C10.5 8.5 8.5 10.5 6 10.5Z", fill: "currentColor" }))); };
5097
-
5098
- var IconClose = function (props) { return (React__namespace.createElement(Svg__default["default"], __assign({ width: 24, height: 24, viewBox: "0 0 24 24", fill: "none" }, props),
5099
- React__namespace.createElement(Svg$1.Path, { d: "M19 6.40958L13.4102 12.0004L19 17.5902L17.5898 19.0004L12 13.4096L6.41016 19.0004L5 17.5902L10.5898 12.0004L5 6.40958L6.41016 5.0004L12 10.5902L17.5898 5.0004L19 6.40958Z", fill: "currentColor" }))); };
5100
-
5101
- var IconSuccess = function (props) { return (React__default["default"].createElement(Svg__default["default"], __assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, props),
5102
- React__default["default"].createElement(Svg$1.Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M10 2.5C5.85786 2.5 2.5 5.85786 2.5 10C2.5 14.1421 5.85786 17.5 10 17.5C14.1421 17.5 17.5 14.1421 17.5 10C17.5 5.85786 14.1421 2.5 10 2.5ZM3.86364 10C3.86364 6.61098 6.61098 3.86364 10 3.86364C13.389 3.86364 16.1364 6.61098 16.1364 10C16.1364 13.389 13.389 16.1364 10 16.1364C6.61098 16.1364 3.86364 13.389 3.86364 10Z", fill: "white" }),
5103
- React__default["default"].createElement(Svg$1.Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M8.875 10.9242L12.8447 6.9545L13.9053 8.01516L8.875 13.0455L6.09467 10.2652L7.15533 9.2045L8.875 10.9242Z", fill: "white" }))); };
5104
-
5105
- var IconError = function (props) { return (React__default["default"].createElement(Svg__default["default"], __assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, props),
5106
- React__default["default"].createElement(Svg$1.Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M10 2.5C5.85786 2.5 2.5 5.85786 2.5 10C2.5 14.1421 5.85786 17.5 10 17.5C14.1421 17.5 17.5 14.1421 17.5 10C17.5 5.85786 14.1421 2.5 10 2.5ZM3.86364 10C3.86364 6.61098 6.61098 3.86364 10 3.86364C13.389 3.86364 16.1364 6.61098 16.1364 10C16.1364 13.389 13.389 16.1364 10 16.1364C6.61098 16.1364 3.86364 13.389 3.86364 10Z", fill: "white" }),
5107
- React__default["default"].createElement(Svg$1.Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M13.3333 6.66667L10 10L6.66667 6.66667L5.83333 7.5L9.16667 10.8333L5.83333 14.1667L6.66667 15L10 11.6667L13.3333 15L14.1667 14.1667L10.8333 10.8333L14.1667 7.5L13.3333 6.66667Z", fill: "white" }))); };
5108
-
5109
- var IconInfo = function (props) { return (React__default["default"].createElement(Svg__default["default"], __assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, props),
5110
- React__default["default"].createElement(Svg$1.Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M10 2.5C5.85786 2.5 2.5 5.85786 2.5 10C2.5 14.1421 5.85786 17.5 10 17.5C14.1421 17.5 17.5 14.1421 17.5 10C17.5 5.85786 14.1421 2.5 10 2.5ZM3.86364 10C3.86364 6.61098 6.61098 3.86364 10 3.86364C13.389 3.86364 16.1364 6.61098 16.1364 10C16.1364 13.389 13.389 16.1364 10 16.1364C6.61098 16.1364 3.86364 13.389 3.86364 10Z", fill: "white" }),
5111
- React__default["default"].createElement(Svg$1.Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M10 6.66667C10.4602 6.66667 10.8333 7.03976 10.8333 7.5V10.8333C10.8333 11.2936 10.4602 11.6667 10 11.6667C9.53976 11.6667 9.16667 11.2936 9.16667 10.8333V7.5C9.16667 7.03976 9.53976 6.66667 10 6.66667Z", fill: "white" }),
5112
- React__default["default"].createElement(Svg$1.Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M10 12.5C10.4602 12.5 10.8333 12.8731 10.8333 13.3333C10.8333 13.7936 10.4602 14.1667 10 14.1667C9.53976 14.1667 9.16667 13.7936 9.16667 13.3333C9.16667 12.8731 9.53976 12.5 10 12.5Z", fill: "white" }))); };
5113
-
5114
- var IconWarning = function (props) { return (React__default["default"].createElement(Svg__default["default"], __assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, props),
5115
- React__default["default"].createElement(Svg$1.Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M10 2.5L17.5 17.5H2.5L10 2.5ZM10 5.83333L4.16667 15.8333H15.8333L10 5.83333Z", fill: "white" }),
5116
- React__default["default"].createElement(Svg$1.Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M10 7.5C10.4602 7.5 10.8333 7.8731 10.8333 8.33333V11.6667C10.8333 12.1269 10.4602 12.5 10 12.5C9.53976 12.5 9.16667 12.1269 9.16667 11.6667V8.33333C9.16667 7.8731 9.53976 7.5 10 7.5Z", fill: "white" }),
5117
- React__default["default"].createElement(Svg$1.Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M10 13.3333C10.4602 13.3333 10.8333 13.7064 10.8333 14.1667C10.8333 14.6269 10.4602 15 10 15C9.53976 15 9.16667 14.6269 9.16667 14.1667C9.16667 13.7064 9.53976 13.3333 10 13.3333Z", fill: "white" }))); };
5118
-
5119
- var IconDelNumber = function (props) { return (React__namespace.createElement(Svg__default["default"], __assign({ width: 28, height: 20, viewBox: "0 0 28 20", fill: "none" }, props),
5120
- React__namespace.createElement(Svg$1.Path, { d: "M25.1705 0H11.5404C10.9189 0.000239015 10.3202 0.240624 9.8659 0.6725L1.0149 9.08617C0.766199 9.32258 0.625 9.65352 0.625 10C0.625 10.3465 0.766199 10.6774 1.0149 10.9138L9.86599 19.3276C10.3203 19.7595 10.9189 19.9998 11.5404 20H25.1705C25.8214 20 26.4458 19.7366 26.9061 19.2678C27.3664 18.7989 27.625 18.163 27.625 17.5V2.5C27.625 1.83696 27.3664 1.20108 26.9061 0.732233C26.4458 0.263392 25.8214 0 25.1705 0Z", fill: "currentColor" }),
5121
- React__namespace.createElement(Svg$1.Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M13.8326 5.95343C14.2267 5.5665 14.8598 5.57231 15.2468 5.9664L17.8059 8.57296L20.3651 5.9664C20.752 5.57231 21.3852 5.5665 21.7792 5.95343C22.1733 6.34035 22.1791 6.97349 21.7922 7.36758L19.2073 10.0003L21.7922 12.6331C22.1791 13.0272 22.1733 13.6603 21.7792 14.0472C21.3852 14.4341 20.752 14.4283 20.3651 14.0342L17.8059 11.4277L15.2468 14.0342C14.8598 14.4283 14.2267 14.4341 13.8326 14.0472C13.4385 13.6603 13.4327 13.0272 13.8196 12.6331L16.4045 10.0003L13.8196 7.36758C13.4327 6.97349 13.4385 6.34035 13.8326 5.95343Z", fill: "white" }))); };
5122
-
5123
- var Icon = function (_a) {
5124
- var name = _a.name, _b = _a.size, size = _b === void 0 ? 14 : _b, color = _a.color, style = _a.style, onPress = _a.onPress;
5125
- var theme = useInternalTheme();
5126
- var colors = theme.colors;
5127
- var renderName = function () {
5128
- switch (name) {
5129
- case "IconCheckboxActive":
5130
- return IconCheckboxActive;
5131
- case "IconCheckbox":
5132
- return IconCheckbox;
5133
- case "IconRadio":
5134
- return IconRadio;
5135
- case "IconRadioActive":
5136
- return IconRadioActive;
5137
- case "IconRadioDisable":
5138
- return IconRadioDisable;
5139
- case "IconArrowDown":
5140
- return IconArrowDown;
5141
- case "IconClearText":
5142
- return IconClearText;
5143
- case "IconSearch":
5144
- return IconSearch;
5145
- case "IconClose":
5146
- return IconClose;
5147
- case "IconSuccess":
5148
- return IconSuccess;
5149
- case "IconError":
5150
- return IconError;
5151
- case "IconInfo":
5152
- return IconInfo;
5153
- case "IconWarning":
5154
- return IconWarning;
5155
- case "IconDelNumber":
5156
- return IconDelNumber;
5157
- default:
5158
- return IconCheckbox;
5159
- }
5160
- };
5161
- var renderIcon = function () {
5162
- return (React__default["default"].createElement(SvgIcon, { name: renderName(), width: size, height: size, color: color || colors.iconPrimaryDefault }));
5163
- };
5164
- return (React__default["default"].createElement(reactNative.TouchableOpacity, { disabled: !onPress, onPress: onPress },
5165
- React__default["default"].createElement(reactNative.View, { style: [
5166
- {
5167
- width: size,
5168
- height: size,
5169
- borderRadius: CONSTANTS.BORDER_RADIUS_8,
5170
- },
5171
- style,
5172
- ] }, renderIcon())));
5173
- };
5174
- var Icon$1 = React__default["default"].memo(Icon);
5175
-
5176
5093
  var TextInputFlat = function (_a) {
5177
5094
  var _b = _a.disabled, disabled = _b === void 0 ? false : _b, _c = _a.editable, editable = _c === void 0 ? true : _c, label = _a.label, _d = _a.error, error = _d === void 0 ? false : _d, customSelectionColor = _a.selectionColor, cursorColor = _a.cursorColor, underlineColor = _a.underlineColor; _a.underlineStyle; var activeUnderlineColor = _a.activeUnderlineColor, textColor = _a.textColor, dense = _a.dense, style = _a.style, theme = _a.theme, _e = _a.render, render = _e === void 0 ? function (props) { return React__namespace.createElement(reactNative.TextInput, __assign({}, props)); } : _e, _f = _a.multiline, multiline = _f === void 0 ? false : _f, parentState = _a.parentState, innerRef = _a.innerRef, onFocus = _a.onFocus; _a.forceFocus; var onBlur = _a.onBlur, onChangeText = _a.onChangeText, onLayoutAnimatedText = _a.onLayoutAnimatedText, onLabelTextLayout = _a.onLabelTextLayout; _a.onLeftAffixLayoutChange; _a.onRightAffixLayoutChange; var onInputLayout = _a.onInputLayout, left = _a.left, right = _a.right, prefix = _a.prefix, suffix = _a.suffix, placeholderTextColor = _a.placeholderTextColor, clearButton = _a.clearButton, contentStyle = _a.contentStyle, scaledLabel = _a.scaledLabel, outlineStyle = _a.outlineStyle, outlineColor = _a.outlineColor, value = _a.value, textError = _a.textError, required = _a.required, rest = __rest(_a, ["disabled", "editable", "label", "error", "selectionColor", "cursorColor", "underlineColor", "underlineStyle", "activeUnderlineColor", "textColor", "dense", "style", "theme", "render", "multiline", "parentState", "innerRef", "onFocus", "forceFocus", "onBlur", "onChangeText", "onLayoutAnimatedText", "onLabelTextLayout", "onLeftAffixLayoutChange", "onRightAffixLayoutChange", "onInputLayout", "left", "right", "prefix", "suffix", "placeholderTextColor", "clearButton", "contentStyle", "scaledLabel", "outlineStyle", "outlineColor", "value", "textError", "required"]);
5178
5095
  var _g = React__namespace.useState(value || ""), inputValue = _g[0], setInputValue = _g[1];
@@ -5423,7 +5340,7 @@ var TextInputFlat = function (_a) {
5423
5340
  ] })),
5424
5341
  renderSuffix())),
5425
5342
  parentState.focused && !disabled && clearButton && inputValue ? (React__namespace.createElement(reactNative.TouchableOpacity, { onPress: handleClear, style: styles$e.clearButton },
5426
- React__namespace.createElement(Icon$1, { name: "IconClearText", size: 24 }))) : (React__namespace.createElement(Spacer, { width: SPACE_12 })),
5343
+ React__namespace.createElement(SvgIcon, { name: "IconClearText", width: 24, height: 24 }))) : (React__namespace.createElement(Spacer, { width: SPACE_12 })),
5427
5344
  checkLineRightAction() && (React__namespace.createElement(Spacer, { width: 1, height: 24, backgroundColor: theme.colors.borderPrimaryDefault, style: {
5428
5345
  marginRight: SPACE_8,
5429
5346
  } })),
@@ -5673,7 +5590,7 @@ var TextInputDefault = function (_a) {
5673
5590
  ] })),
5674
5591
  !multiline && renderSuffix()))),
5675
5592
  parentState.focused && !disabled && clearButton && inputValue ? (React__namespace.createElement(reactNative.TouchableOpacity, { onPress: handleClear, style: multiline ? styles$d.clearButtonMultiline : styles$d.clearButton },
5676
- React__namespace.createElement(Icon$1, { name: "IconClearText", size: 24 }))) : (React__namespace.createElement(Spacer, { width: CONSTANTS.SPACE_12 })),
5593
+ React__namespace.createElement(SvgIcon, { name: "IconClearText", width: 24, height: 24 }))) : (React__namespace.createElement(Spacer, { width: CONSTANTS.SPACE_12 })),
5677
5594
  checkLineRightAction() && (React__namespace.createElement(Spacer, { width: 1, height: 24, backgroundColor: colors.borderPrimaryDefault, style: {
5678
5595
  marginRight: CONSTANTS.SPACE_8,
5679
5596
  } })),
@@ -5945,7 +5862,7 @@ var TextInputNumber = function (_a) {
5945
5862
  !checkValueEmpty() && suffix.toString() !== "" && (React__default["default"].createElement(Text$1, { numberOfLines: 1, color: colors.textSecondary, style: [disabled && disabledTextStyle] }, " ",
5946
5863
  suffix)))),
5947
5864
  clearButton && !checkValueEmpty() && (React__default["default"].createElement(reactNative.TouchableOpacity, { activeOpacity: 0.8, onPress: handleClearInput },
5948
- React__default["default"].createElement(Icon$1, { name: "IconClearText", size: 24 }))),
5865
+ React__default["default"].createElement(SvgIcon, { name: "IconClearText", width: 24, height: 24 }))),
5949
5866
  right && numberValue && (React__default["default"].createElement(Spacer, { width: 1, height: 24, backgroundColor: theme.colors.borderPrimaryDefault, style: {
5950
5867
  marginLeft: SPACE_4,
5951
5868
  } })),
@@ -5961,7 +5878,7 @@ var TextInputNumber = function (_a) {
5961
5878
  React__default["default"].createElement(View, { paddingHorizontal: SPACE_40 },
5962
5879
  React__default["default"].createElement(Text$1, { numberOfLines: 1, style: [styles$c.text30, styles$c.valueText] }, formatNumberInput$1(inputValue, formatDecimal) || "0")),
5963
5880
  React__default["default"].createElement(reactNative.TouchableOpacity, { onPress: handleClear, style: styles$c.clearButton },
5964
- React__default["default"].createElement(Icon$1, { name: "IconClearText", size: 24, color: colors.textSecondary }))),
5881
+ React__default["default"].createElement(SvgIcon, { name: "IconClearText", width: 24, height: 24, color: colors.textSecondary }))),
5965
5882
  React__default["default"].createElement(View, { style: styles$c.keyboardGrid }, [
5966
5883
  ["1", "2", "3"],
5967
5884
  ["4", "5", "6"],
@@ -5974,7 +5891,7 @@ var TextInputNumber = function (_a) {
5974
5891
  inputValue.includes(".") &&
5975
5892
  styles$c.disabledKey,
5976
5893
  ], onPress: function () { return handleKeyPress(key); }, disabled: (key === "000" && type === "float") ||
5977
- (key === "." && inputValue.includes(".")) }, key === "del" ? (React__default["default"].createElement(Icon$1, { name: "IconDelNumber", size: 24 })) : (React__default["default"].createElement(Text$1, { style: [
5894
+ (key === "." && inputValue.includes(".")) }, key === "del" ? (React__default["default"].createElement(SvgIcon, { name: "IconDelNumber", width: 24, height: 24, color: colors.textSecondary })) : (React__default["default"].createElement(Text$1, { style: [
5978
5895
  styles$c.keyText,
5979
5896
  styles$c.text22,
5980
5897
  key === "000" &&
@@ -6744,7 +6661,7 @@ var Toast = memoWithRef(function (_props, ref) {
6744
6661
  ] },
6745
6662
  React__default["default"].createElement(View, { row: true, style: { alignItems: "flex-start" } },
6746
6663
  React__default["default"].createElement(View, null,
6747
- React__default["default"].createElement(Icon$1, { name: getSourceIcon(), size: 20 })),
6664
+ React__default["default"].createElement(SvgIcon, { name: getSourceIcon(), width: 20, height: 20 })),
6748
6665
  React__default["default"].createElement(View, { full: true, paddingLeft: CONSTANTS.SPACE_8 },
6749
6666
  React__default["default"].createElement(Text$1, { bold: true, color: colors.textOnFillDefault }, options.title),
6750
6667
  message.toString().length > 0 && (React__default["default"].createElement(Text$1, { color: colors.textOnFillDefault, numberOfLines: 4, style: !options.title && styles$9.wrapMess }, message)))))));
@@ -7124,7 +7041,7 @@ var Checkbox = function (_a) {
7124
7041
  }, [checked]);
7125
7042
  return (React__default["default"].createElement(View, { row: true, disabled: disabled, alignCenter: true, style: [style], onPress: handlePress },
7126
7043
  leftIcon ? (React__default["default"].createElement(View, { paddingRight: CONSTANTS.SPACE_8 }, leftIcon)) : (React__default["default"].createElement(View, { paddingRight: CONSTANTS.SPACE_8 },
7127
- React__default["default"].createElement(Icon$1, { name: isActive ? "IconCheckboxActive" : "IconCheckbox", size: iconSize, color: checkboxColor }))),
7044
+ React__default["default"].createElement(SvgIcon, { name: isActive ? "IconCheckboxActive" : "IconCheckbox", width: iconSize, height: iconSize, color: checkboxColor }))),
7128
7045
  React__default["default"].createElement(View, null,
7129
7046
  React__default["default"].createElement(Text$1, { color: colors.textDefault, style: [
7130
7047
  styles$5.text14,
@@ -7157,11 +7074,7 @@ var RadioButton = function (_a) {
7157
7074
  }, [checked, disabled]);
7158
7075
  return (React__default["default"].createElement(View, { row: true, disabled: disabled, alignCenter: true, style: [style], onPress: handlePress },
7159
7076
  leftIcon ? (React__default["default"].createElement(View, { paddingRight: CONSTANTS.SPACE_8 }, leftIcon)) : (React__default["default"].createElement(View, { paddingRight: CONSTANTS.SPACE_8 },
7160
- React__default["default"].createElement(Icon$1, { name: disabled
7161
- ? "IconRadioDisable"
7162
- : checked
7163
- ? "IconRadioActive"
7164
- : "IconRadio", size: 24, color: getColorCheckbox }))),
7077
+ React__default["default"].createElement(SvgIcon, { name: checked ? "IconRadioActive" : "IconRadio", width: 24, height: 24, color: getColorCheckbox }))),
7165
7078
  React__default["default"].createElement(View, null,
7166
7079
  React__default["default"].createElement(Text$1, { color: colors.textDefault, style: [
7167
7080
  styles$4.text14,
@@ -7267,7 +7180,7 @@ var SelectionField = function (_a) {
7267
7180
  React__default["default"].createElement(Text$1, __assign({ numberOfLines: 1, color: getColor(), style: [disabled && disabledTextStyle, textStyle] }, textProps),
7268
7181
  content.toString() === "" ? label : content,
7269
7182
  required && content.toString() === "" && (React__default["default"].createElement(Text$1, { color: colors.textErrorDefault }, " *")))),
7270
- right || React__default["default"].createElement(Icon$1, { name: "IconArrowDown", size: 24 }),
7183
+ right || React__default["default"].createElement(SvgIcon, { name: "IconArrowDown", height: 24, width: 24 }),
7271
7184
  React__default["default"].createElement(Spacer, { width: SPACE_12 }))),
7272
7185
  error.length > 0 && (React__default["default"].createElement(View, { paddingHorizontal: SPACE_12, paddingVertical: SPACE_4 },
7273
7186
  React__default["default"].createElement(Text$1, { style: styles$2.text12, color: colors.textErrorDefault }, error)))));
@@ -7293,7 +7206,7 @@ var SearchInput = function (_a) {
7293
7206
  onChangeText === null || onChangeText === void 0 ? void 0 : onChangeText(text);
7294
7207
  }, debounceTime);
7295
7208
  return (React__default["default"].createElement(TextInput, { left: React__default["default"].createElement(View, null,
7296
- React__default["default"].createElement(Icon$1, { name: "IconSearch", size: 18 })), disabled: disabled, value: value, clearButton: clearButton, mode: "default", label: placeholder, placeholder: placeholder, placeholderTextColor: colors.textPlaceholder, right: rightIcon, onFocus: onFocus, autoFocus: autoFocus, onBlur: onBlur, allowFontScaling: false, onChangeText: debouncedOnChangeText, style: [
7209
+ React__default["default"].createElement(SvgIcon, { name: "IconSearch", width: 18, height: 18 })), disabled: disabled, value: value, clearButton: clearButton, mode: "default", label: placeholder, placeholder: placeholder, placeholderTextColor: colors.textPlaceholder, right: rightIcon, onFocus: onFocus, autoFocus: autoFocus, onBlur: onBlur, allowFontScaling: false, onChangeText: debouncedOnChangeText, style: [
7297
7210
  {
7298
7211
  height: height || 36,
7299
7212
  },
@@ -7337,7 +7250,7 @@ var Tag = function (_a) {
7337
7250
  textStyle,
7338
7251
  ] }, title)),
7339
7252
  rightIcon ? (React__default["default"].createElement(View, { paddingLeft: CONSTANTS.SPACE_4 }, rightIcon)) : hideRightIcon ? (React__default["default"].createElement(View, null)) : (React__default["default"].createElement(View, { paddingLeft: CONSTANTS.SPACE_4 },
7340
- React__default["default"].createElement(Icon$1, { name: "IconClose", size: 20, color: colors.iconBrandDefault }))))));
7253
+ React__default["default"].createElement(SvgIcon, { name: "IconClose", width: 20, height: 20, color: colors.iconBrandDefault }))))));
7341
7254
  };
7342
7255
  var styles$1 = reactNative.StyleSheet.create(__assign({}, containerStyles));
7343
7256
 
@@ -7476,7 +7389,7 @@ var NumberKeyboard = function (_a) {
7476
7389
  React__default["default"].createElement(View, { paddingHorizontal: SPACE_40 },
7477
7390
  React__default["default"].createElement(Text$1, { numberOfLines: 1, style: [styles.text30, styles.valueText] }, formatNumberInput(inputValue, formatDecimal) || "0")),
7478
7391
  React__default["default"].createElement(reactNative.TouchableOpacity, { onPress: handleClear, style: styles.clearButton },
7479
- React__default["default"].createElement(Icon$1, { name: "IconClearText", size: 24, color: colors.textSecondary }))),
7392
+ React__default["default"].createElement(SvgIcon, { name: "IconClearText", width: 24, height: 24, color: colors.textSecondary }))),
7480
7393
  React__default["default"].createElement(View, { style: styles.keyboardGrid }, [
7481
7394
  ["1", "2", "3"],
7482
7395
  ["4", "5", "6"],
@@ -7489,7 +7402,7 @@ var NumberKeyboard = function (_a) {
7489
7402
  inputValue.includes(".") &&
7490
7403
  styles.disabledKey,
7491
7404
  ], onPress: function () { return handleKeyPress(key); }, disabled: (key === "000" && type === "float") ||
7492
- (key === "." && inputValue.includes(".")) }, key === "del" ? (React__default["default"].createElement(Icon$1, { name: "IconDelNumber", size: 24 })) : (React__default["default"].createElement(Text$1, { style: [
7405
+ (key === "." && inputValue.includes(".")) }, key === "del" ? (React__default["default"].createElement(Icon, { name: "IconDelNumber", size: 24 })) : (React__default["default"].createElement(Text$1, { style: [
7493
7406
  styles.keyText,
7494
7407
  styles.text22,
7495
7408
  key === "000" &&