sapo-components-ui-rn 1.1.20 → 1.1.21

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.
package/dist/index.js CHANGED
@@ -7,10 +7,12 @@ 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 FontAwesome = require('react-native-vector-icons/FontAwesome');
11
- var MaterialIcons = require('react-native-vector-icons/MaterialIcons');
12
- var MaterialCommunityIcons = require('react-native-vector-icons/MaterialCommunityIcons');
13
- var Svg = require('react-native-svg');
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');
14
16
  var reactNativeSafeAreaContext = require('react-native-safe-area-context');
15
17
  var useDebounce = require('use-debounce');
16
18
 
@@ -39,10 +41,12 @@ var React__namespace = /*#__PURE__*/_interopNamespace(React$3);
39
41
  var require$$1__default = /*#__PURE__*/_interopDefaultLegacy(require$$1);
40
42
  var Animated__default = /*#__PURE__*/_interopDefaultLegacy(Animated);
41
43
  var color__default = /*#__PURE__*/_interopDefaultLegacy(color);
42
- var FontAwesome__default = /*#__PURE__*/_interopDefaultLegacy(FontAwesome);
43
- var MaterialIcons__default = /*#__PURE__*/_interopDefaultLegacy(MaterialIcons);
44
- var MaterialCommunityIcons__default = /*#__PURE__*/_interopDefaultLegacy(MaterialCommunityIcons);
45
- var Svg__default = /*#__PURE__*/_interopDefaultLegacy(Svg);
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);
46
50
 
47
51
  /******************************************************************************
48
52
  Copyright (c) Microsoft Corporation.
@@ -5046,85 +5050,80 @@ var colors = {
5046
5050
  icon: icon,
5047
5051
  };
5048
5052
 
5053
+ var Svg = {
5054
+ IconClose: IconClose__default["default"],
5055
+ IconCheckbox: IconCheckbox__default["default"],
5056
+ IconCheckboxActive: IconCheckboxActive__default["default"],
5057
+ IconRadio: IconRadio__default["default"],
5058
+ IconRadioActive: IconRadioActive__default["default"],
5059
+ };
5060
+
5049
5061
  var SvgIcon = function (_a) {
5050
5062
  var name = _a.name, _b = _a.width, width = _b === void 0 ? 24 : _b, _c = _a.height, height = _c === void 0 ? 24 : _c, _d = _a.color, color = _d === void 0 ? colors.ink.INK40 : _d, style = _a.style, onPress = _a.onPress, _e = _a.disabled, disabled = _e === void 0 ? false : _e;
5051
- // Kiểm tra kỹ hơn
5052
- if (!name || typeof name !== "function") {
5053
- console.warn("Icon is not a valid React component:", name);
5054
- return React__default["default"].createElement(reactNative.View, { style: { width: width, height: height } });
5063
+ var IconComponent = Svg[name];
5064
+ if (!IconComponent) {
5065
+ console.warn("Icon \"".concat(name, "\" kh\u00F4ng t\u1ED3n t\u1EA1i trong Svg."));
5066
+ return null;
5055
5067
  }
5056
- var IconComponent = name;
5057
5068
  return (React__default["default"].createElement(IconComponent, { width: width, height: height, color: disabled ? colors.ink.INK20 : color, style: style, onPress: disabled ? undefined : onPress }));
5058
5069
  };
5059
5070
 
5060
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),
5061
- React__namespace.createElement(Svg.Rect, { x: 2, y: 2, width: 20, height: 20, rx: 6, fill: "currentColor" }),
5062
- React__namespace.createElement(Svg.Path, { d: "M17.7745 8.32544L10.4245 15.6751L6.74951 12.0004", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }))); };
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" }))); };
5063
5074
 
5064
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),
5065
- React__namespace.createElement(Svg.Rect, { x: 2.75, y: 2.75, width: 18.5, height: 18.5, rx: 5.25, fill: "currentColor", stroke: "#A1A5AB", strokeWidth: 1.5 }))); };
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 }))); };
5066
5077
 
5067
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),
5068
- React__namespace.createElement(Svg.Circle, { cx: 12, cy: 12, r: 9.25, stroke: "#A1A5AB", strokeWidth: 1.5 }))); };
5079
+ React__namespace.createElement(Svg$1.Circle, { cx: 12, cy: 12, r: 9.25, stroke: "#A1A5AB", strokeWidth: 1.5 }))); };
5069
5080
 
5070
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),
5071
- React__namespace.createElement(Svg.Circle, { cx: 12, cy: 12, r: 9.25, stroke: "currentColor", strokeWidth: 1.5 }),
5072
- React__namespace.createElement(Svg.Circle, { cx: 12, cy: 12, r: 6, fill: "currentColor" }))); };
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" }))); };
5073
5084
 
5074
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),
5075
- React__namespace.createElement(Svg.Circle, { cx: 12, cy: 12, r: 9.25, stroke: "#E5E7EB", strokeWidth: 1.5 }),
5076
- React__namespace.createElement(Svg.Circle, { cx: 12, cy: 12, r: 6, fill: "#F3F4F6" }))); };
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" }))); };
5077
5088
 
5078
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),
5079
- React__namespace.createElement(Svg.Path, { d: "M18.0107 9.70166L12 15.7124L5.98926 9.70166L7.40332 8.2876L12 12.8843L16.5967 8.2876L18.0107 9.70166Z", fill: "currentColor" }))); };
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" }))); };
5080
5091
 
5081
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),
5082
- React__namespace.createElement(Svg.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" }))); };
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" }))); };
5083
5094
 
5084
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),
5085
- React__namespace.createElement(Svg.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" }))); };
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" }))); };
5086
5097
 
5087
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),
5088
- React__namespace.createElement(Svg.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" }))); };
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" }))); };
5089
5100
 
5090
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),
5091
- React__default["default"].createElement(Svg.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" }),
5092
- React__default["default"].createElement(Svg.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" }))); };
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" }))); };
5093
5104
 
5094
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),
5095
- React__default["default"].createElement(Svg.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" }),
5096
- React__default["default"].createElement(Svg.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" }))); };
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" }))); };
5097
5108
 
5098
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),
5099
- React__default["default"].createElement(Svg.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" }),
5100
- React__default["default"].createElement(Svg.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" }),
5101
- React__default["default"].createElement(Svg.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" }))); };
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" }))); };
5102
5113
 
5103
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),
5104
- React__default["default"].createElement(Svg.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" }),
5105
- React__default["default"].createElement(Svg.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" }),
5106
- React__default["default"].createElement(Svg.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" }))); };
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" }))); };
5107
5118
 
5108
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),
5109
- React__namespace.createElement(Svg.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" }),
5110
- React__namespace.createElement(Svg.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" }))); };
5111
-
5112
- var getIconComponent = function (type) {
5113
- switch (type) {
5114
- case "MaterialIcons":
5115
- return MaterialIcons__default["default"];
5116
- case "MaterialCommunityIcons":
5117
- return MaterialCommunityIcons__default["default"];
5118
- case "FontAwesome":
5119
- default:
5120
- return FontAwesome__default["default"];
5121
- }
5122
- };
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
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; _a.showBackground; _a.backgroundColor; var onPress = _a.onPress, _c = _a.type, type = _c === void 0 ? "FontAwesome" : _c; _a.tintColor; var rest = __rest(_a, ["name", "size", "color", "style", "showBackground", "backgroundColor", "onPress", "type", "tintColor"]);
5124
+ var name = _a.name, _b = _a.size, size = _b === void 0 ? 14 : _b, color = _a.color, style = _a.style, onPress = _a.onPress;
5125
5125
  var theme = useInternalTheme();
5126
5126
  var colors = theme.colors;
5127
- var IconComponent = React$3.useMemo(function () { return getIconComponent(type); }, [type]);
5128
5127
  var renderName = function () {
5129
5128
  switch (name) {
5130
5129
  case "IconCheckboxActive":
@@ -5160,10 +5159,7 @@ var Icon = function (_a) {
5160
5159
  }
5161
5160
  };
5162
5161
  var renderIcon = function () {
5163
- if (type === "Svg") {
5164
- return (React__default["default"].createElement(SvgIcon, { name: renderName(), width: size, height: size, color: color || colors.iconPrimaryDefault }));
5165
- }
5166
- return (React__default["default"].createElement(IconComponent, __assign({ name: name, size: size, color: color || colors.iconPrimaryDefault }, rest)));
5162
+ return (React__default["default"].createElement(SvgIcon, { name: renderName(), width: size, height: size, color: color || colors.iconPrimaryDefault }));
5167
5163
  };
5168
5164
  return (React__default["default"].createElement(reactNative.TouchableOpacity, { disabled: !onPress, onPress: onPress },
5169
5165
  React__default["default"].createElement(reactNative.View, { style: [
@@ -5427,7 +5423,7 @@ var TextInputFlat = function (_a) {
5427
5423
  ] })),
5428
5424
  renderSuffix())),
5429
5425
  parentState.focused && !disabled && clearButton && inputValue ? (React__namespace.createElement(reactNative.TouchableOpacity, { onPress: handleClear, style: styles$e.clearButton },
5430
- React__namespace.createElement(Icon$1, { name: "IconClearText", type: "Svg", size: 24 }))) : (React__namespace.createElement(Spacer, { width: SPACE_12 })),
5426
+ React__namespace.createElement(Icon$1, { name: "IconClearText", size: 24 }))) : (React__namespace.createElement(Spacer, { width: SPACE_12 })),
5431
5427
  checkLineRightAction() && (React__namespace.createElement(Spacer, { width: 1, height: 24, backgroundColor: theme.colors.borderPrimaryDefault, style: {
5432
5428
  marginRight: SPACE_8,
5433
5429
  } })),
@@ -5677,7 +5673,7 @@ var TextInputDefault = function (_a) {
5677
5673
  ] })),
5678
5674
  !multiline && renderSuffix()))),
5679
5675
  parentState.focused && !disabled && clearButton && inputValue ? (React__namespace.createElement(reactNative.TouchableOpacity, { onPress: handleClear, style: multiline ? styles$d.clearButtonMultiline : styles$d.clearButton },
5680
- React__namespace.createElement(Icon$1, { name: "IconClearText", type: "Svg", size: 24 }))) : (React__namespace.createElement(Spacer, { width: CONSTANTS.SPACE_12 })),
5676
+ React__namespace.createElement(Icon$1, { name: "IconClearText", size: 24 }))) : (React__namespace.createElement(Spacer, { width: CONSTANTS.SPACE_12 })),
5681
5677
  checkLineRightAction() && (React__namespace.createElement(Spacer, { width: 1, height: 24, backgroundColor: colors.borderPrimaryDefault, style: {
5682
5678
  marginRight: CONSTANTS.SPACE_8,
5683
5679
  } })),
@@ -5949,7 +5945,7 @@ var TextInputNumber = function (_a) {
5949
5945
  !checkValueEmpty() && suffix.toString() !== "" && (React__default["default"].createElement(Text$1, { numberOfLines: 1, color: colors.textSecondary, style: [disabled && disabledTextStyle] }, " ",
5950
5946
  suffix)))),
5951
5947
  clearButton && !checkValueEmpty() && (React__default["default"].createElement(reactNative.TouchableOpacity, { activeOpacity: 0.8, onPress: handleClearInput },
5952
- React__default["default"].createElement(Icon$1, { name: "IconClearText", type: "Svg", size: 24 }))),
5948
+ React__default["default"].createElement(Icon$1, { name: "IconClearText", size: 24 }))),
5953
5949
  right && numberValue && (React__default["default"].createElement(Spacer, { width: 1, height: 24, backgroundColor: theme.colors.borderPrimaryDefault, style: {
5954
5950
  marginLeft: SPACE_4,
5955
5951
  } })),
@@ -5965,7 +5961,7 @@ var TextInputNumber = function (_a) {
5965
5961
  React__default["default"].createElement(View, { paddingHorizontal: SPACE_40 },
5966
5962
  React__default["default"].createElement(Text$1, { numberOfLines: 1, style: [styles$c.text30, styles$c.valueText] }, formatNumberInput$1(inputValue, formatDecimal) || "0")),
5967
5963
  React__default["default"].createElement(reactNative.TouchableOpacity, { onPress: handleClear, style: styles$c.clearButton },
5968
- React__default["default"].createElement(Icon$1, { name: "IconClearText", type: "Svg", size: 24, color: colors.textSecondary }))),
5964
+ React__default["default"].createElement(Icon$1, { name: "IconClearText", size: 24, color: colors.textSecondary }))),
5969
5965
  React__default["default"].createElement(View, { style: styles$c.keyboardGrid }, [
5970
5966
  ["1", "2", "3"],
5971
5967
  ["4", "5", "6"],
@@ -5978,7 +5974,7 @@ var TextInputNumber = function (_a) {
5978
5974
  inputValue.includes(".") &&
5979
5975
  styles$c.disabledKey,
5980
5976
  ], onPress: function () { return handleKeyPress(key); }, disabled: (key === "000" && type === "float") ||
5981
- (key === "." && inputValue.includes(".")) }, key === "del" ? (React__default["default"].createElement(Icon$1, { name: "IconDelNumber", type: "Svg", size: 24 })) : (React__default["default"].createElement(Text$1, { style: [
5977
+ (key === "." && inputValue.includes(".")) }, key === "del" ? (React__default["default"].createElement(Icon$1, { name: "IconDelNumber", size: 24 })) : (React__default["default"].createElement(Text$1, { style: [
5982
5978
  styles$c.keyText,
5983
5979
  styles$c.text22,
5984
5980
  key === "000" &&
@@ -6748,7 +6744,7 @@ var Toast = memoWithRef(function (_props, ref) {
6748
6744
  ] },
6749
6745
  React__default["default"].createElement(View, { row: true, style: { alignItems: "flex-start" } },
6750
6746
  React__default["default"].createElement(View, null,
6751
- React__default["default"].createElement(Icon$1, { name: getSourceIcon(), type: "Svg", size: 20 })),
6747
+ React__default["default"].createElement(Icon$1, { name: getSourceIcon(), size: 20 })),
6752
6748
  React__default["default"].createElement(View, { full: true, paddingLeft: CONSTANTS.SPACE_8 },
6753
6749
  React__default["default"].createElement(Text$1, { bold: true, color: colors.textOnFillDefault }, options.title),
6754
6750
  message.toString().length > 0 && (React__default["default"].createElement(Text$1, { color: colors.textOnFillDefault, numberOfLines: 4, style: !options.title && styles$9.wrapMess }, message)))))));
@@ -7128,7 +7124,7 @@ var Checkbox = function (_a) {
7128
7124
  }, [checked]);
7129
7125
  return (React__default["default"].createElement(View, { row: true, disabled: disabled, alignCenter: true, style: [style], onPress: handlePress },
7130
7126
  leftIcon ? (React__default["default"].createElement(View, { paddingRight: CONSTANTS.SPACE_8 }, leftIcon)) : (React__default["default"].createElement(View, { paddingRight: CONSTANTS.SPACE_8 },
7131
- React__default["default"].createElement(Icon$1, { name: isActive ? "IconCheckboxActive" : "IconCheckbox", type: "Svg", size: iconSize, color: checkboxColor }))),
7127
+ React__default["default"].createElement(Icon$1, { name: isActive ? "IconCheckboxActive" : "IconCheckbox", size: iconSize, color: checkboxColor }))),
7132
7128
  React__default["default"].createElement(View, null,
7133
7129
  React__default["default"].createElement(Text$1, { color: colors.textDefault, style: [
7134
7130
  styles$5.text14,
@@ -7165,7 +7161,7 @@ var RadioButton = function (_a) {
7165
7161
  ? "IconRadioDisable"
7166
7162
  : checked
7167
7163
  ? "IconRadioActive"
7168
- : "IconRadio", type: "Svg", size: 24, color: getColorCheckbox }))),
7164
+ : "IconRadio", size: 24, color: getColorCheckbox }))),
7169
7165
  React__default["default"].createElement(View, null,
7170
7166
  React__default["default"].createElement(Text$1, { color: colors.textDefault, style: [
7171
7167
  styles$4.text14,
@@ -7271,7 +7267,7 @@ var SelectionField = function (_a) {
7271
7267
  React__default["default"].createElement(Text$1, __assign({ numberOfLines: 1, color: getColor(), style: [disabled && disabledTextStyle, textStyle] }, textProps),
7272
7268
  content.toString() === "" ? label : content,
7273
7269
  required && content.toString() === "" && (React__default["default"].createElement(Text$1, { color: colors.textErrorDefault }, " *")))),
7274
- right || React__default["default"].createElement(Icon$1, { name: "IconArrowDown", type: "Svg", size: 24 }),
7270
+ right || React__default["default"].createElement(Icon$1, { name: "IconArrowDown", size: 24 }),
7275
7271
  React__default["default"].createElement(Spacer, { width: SPACE_12 }))),
7276
7272
  error.length > 0 && (React__default["default"].createElement(View, { paddingHorizontal: SPACE_12, paddingVertical: SPACE_4 },
7277
7273
  React__default["default"].createElement(Text$1, { style: styles$2.text12, color: colors.textErrorDefault }, error)))));
@@ -7297,7 +7293,7 @@ var SearchInput = function (_a) {
7297
7293
  onChangeText === null || onChangeText === void 0 ? void 0 : onChangeText(text);
7298
7294
  }, debounceTime);
7299
7295
  return (React__default["default"].createElement(TextInput, { left: React__default["default"].createElement(View, null,
7300
- React__default["default"].createElement(Icon$1, { name: "IconSearch", type: "Svg", 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: [
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: [
7301
7297
  {
7302
7298
  height: height || 36,
7303
7299
  },
@@ -7341,7 +7337,7 @@ var Tag = function (_a) {
7341
7337
  textStyle,
7342
7338
  ] }, title)),
7343
7339
  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 },
7344
- React__default["default"].createElement(Icon$1, { name: "IconClose", type: "Svg", size: 20, color: colors.iconBrandDefault }))))));
7340
+ React__default["default"].createElement(Icon$1, { name: "IconClose", size: 20, color: colors.iconBrandDefault }))))));
7345
7341
  };
7346
7342
  var styles$1 = reactNative.StyleSheet.create(__assign({}, containerStyles));
7347
7343
 
@@ -7480,7 +7476,7 @@ var NumberKeyboard = function (_a) {
7480
7476
  React__default["default"].createElement(View, { paddingHorizontal: SPACE_40 },
7481
7477
  React__default["default"].createElement(Text$1, { numberOfLines: 1, style: [styles.text30, styles.valueText] }, formatNumberInput(inputValue, formatDecimal) || "0")),
7482
7478
  React__default["default"].createElement(reactNative.TouchableOpacity, { onPress: handleClear, style: styles.clearButton },
7483
- React__default["default"].createElement(Icon$1, { name: "IconClearText", type: "Svg", size: 24, color: colors.textSecondary }))),
7479
+ React__default["default"].createElement(Icon$1, { name: "IconClearText", size: 24, color: colors.textSecondary }))),
7484
7480
  React__default["default"].createElement(View, { style: styles.keyboardGrid }, [
7485
7481
  ["1", "2", "3"],
7486
7482
  ["4", "5", "6"],
@@ -7493,7 +7489,7 @@ var NumberKeyboard = function (_a) {
7493
7489
  inputValue.includes(".") &&
7494
7490
  styles.disabledKey,
7495
7491
  ], onPress: function () { return handleKeyPress(key); }, disabled: (key === "000" && type === "float") ||
7496
- (key === "." && inputValue.includes(".")) }, key === "del" ? (React__default["default"].createElement(Icon$1, { name: "IconDelNumber", type: "Svg", size: 24 })) : (React__default["default"].createElement(Text$1, { style: [
7492
+ (key === "." && inputValue.includes(".")) }, key === "del" ? (React__default["default"].createElement(Icon$1, { name: "IconDelNumber", size: 24 })) : (React__default["default"].createElement(Text$1, { style: [
7497
7493
  styles.keyText,
7498
7494
  styles.text22,
7499
7495
  key === "000" &&