sapo-components-ui-rn 1.1.19 → 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.
Files changed (34) hide show
  1. package/dist/assets/icon-radio-active.svg +5 -0
  2. package/dist/assets/icon-radio.svg +4 -0
  3. package/dist/assets/index.ts +13 -0
  4. package/dist/assets/svg/icon-radio-active.svg +5 -0
  5. package/dist/assets/svg/icon-radio.svg +4 -0
  6. package/dist/assets/svg/index.d.ts +7 -0
  7. package/dist/assets/svg/index.ts +13 -0
  8. package/dist/components/Icon/index.d.ts +0 -2
  9. package/dist/components/TextInput/constants.d.ts +2 -2
  10. package/dist/index.esm.js +55 -63
  11. package/dist/index.esm.js.map +1 -1
  12. package/dist/index.js +68 -74
  13. package/dist/index.js.map +1 -1
  14. package/package.json +1 -1
  15. package/src/.DS_Store +0 -0
  16. package/src/assets/svg/icon-radio-active.svg +5 -0
  17. package/src/assets/svg/icon-radio.svg +4 -0
  18. package/src/assets/svg/index.ts +13 -0
  19. package/src/components/Checkbox/index.tsx +0 -1
  20. package/src/components/Icon/index.tsx +5 -47
  21. package/src/components/IconSvg/index.tsx +6 -7
  22. package/src/components/NumberKeyboard/index.tsx +1 -2
  23. package/src/components/RadioButton/index.tsx +1 -2
  24. package/src/components/SearchInput/index.tsx +2 -3
  25. package/src/components/SelectionField/index.tsx +1 -1
  26. package/src/components/Tag/index.tsx +0 -1
  27. package/src/components/Text/index.tsx +2 -2
  28. package/src/components/TextInput/TextInputDefault.tsx +1 -1
  29. package/src/components/TextInput/TextInputFlat.tsx +1 -1
  30. package/src/components/TextInput/TextInputNumber.tsx +2 -3
  31. package/src/components/TextInput/constants.tsx +2 -2
  32. package/src/components/Toast/index.tsx +1 -1
  33. package/src/icons/IconRadio.tsx +2 -9
  34. package/src/icons/IconRadioActive.tsx +3 -9
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.
@@ -1921,8 +1925,8 @@ function getTextColor(_a) {
1921
1925
  return theme.colors.textDefault;
1922
1926
  }
1923
1927
 
1924
- var MAXIMIZED_LABEL_FONT_SIZE = 15;
1925
- var MINIMIZED_LABEL_FONT_SIZE = 13;
1928
+ var MAXIMIZED_LABEL_FONT_SIZE = 14;
1929
+ var MINIMIZED_LABEL_FONT_SIZE = 12;
1926
1930
  var LABEL_WIGGLE_X_OFFSET = 4;
1927
1931
  var ADORNMENT_SIZE = 24;
1928
1932
  var MIN_WIDTH = 100;
@@ -4808,10 +4812,10 @@ var Text = function (props) {
4808
4812
  fontWeight: "normal",
4809
4813
  color: colors.textDefault,
4810
4814
  fontFamily: "Inter-Regular",
4811
- fontSize: 15,
4815
+ fontSize: 14,
4812
4816
  lineHeight: 20,
4813
4817
  };
4814
- var _a = props.size, size = _a === void 0 ? 15 : _a, lineHeight = props.lineHeight, center = props.center, color = props.color, bold = props.bold, medium = props.medium, semibold = props.semibold;
4818
+ var _a = props.size, size = _a === void 0 ? 14 : _a, lineHeight = props.lineHeight, center = props.center, color = props.color, bold = props.bold, medium = props.medium, semibold = props.semibold;
4815
4819
  style.color = theme.colors.textDefault || "black";
4816
4820
  if (size) {
4817
4821
  style.fontSize = size;
@@ -5046,87 +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.Path, { d: "M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12Z", fill: "#9F9FA9" }),
5069
- React__namespace.createElement(Svg.Path, { d: "M6 12C6 8.68629 8.68629 6 12 6C15.3137 6 18 8.68629 18 12C18 15.3137 15.3137 18 12 18C8.68629 18 6 15.3137 6 12Z", fill: "white" }))); };
5079
+ React__namespace.createElement(Svg$1.Circle, { cx: 12, cy: 12, r: 9.25, stroke: "#A1A5AB", strokeWidth: 1.5 }))); };
5070
5080
 
5071
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),
5072
- React__namespace.createElement(Svg.Path, { d: "M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12Z", fill: "#0071ED" }),
5073
- React__namespace.createElement(Svg.Circle, { cx: "12", cy: "12", r: "6", fill: "white" }),
5074
- React__namespace.createElement(Svg.Circle, { cx: "12", cy: "12", r: "4", fill: "#0071ED" }))); };
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" }))); };
5075
5084
 
5076
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),
5077
- React__namespace.createElement(Svg.Circle, { cx: 12, cy: 12, r: 9.25, stroke: "#E5E7EB", strokeWidth: 1.5 }),
5078
- 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" }))); };
5079
5088
 
5080
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),
5081
- 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" }))); };
5082
5091
 
5083
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),
5084
- 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" }))); };
5085
5094
 
5086
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),
5087
- 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" }))); };
5088
5097
 
5089
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),
5090
- 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" }))); };
5091
5100
 
5092
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),
5093
- 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" }),
5094
- 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" }))); };
5095
5104
 
5096
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),
5097
- 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" }),
5098
- 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" }))); };
5099
5108
 
5100
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),
5101
- 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" }),
5102
- 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" }),
5103
- 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" }))); };
5104
5113
 
5105
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),
5106
- 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" }),
5107
- 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" }),
5108
- 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" }))); };
5109
5118
 
5110
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),
5111
- 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" }),
5112
- 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" }))); };
5113
-
5114
- var getIconComponent = function (type) {
5115
- switch (type) {
5116
- case "MaterialIcons":
5117
- return MaterialIcons__default["default"];
5118
- case "MaterialCommunityIcons":
5119
- return MaterialCommunityIcons__default["default"];
5120
- case "FontAwesome":
5121
- default:
5122
- return FontAwesome__default["default"];
5123
- }
5124
- };
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
+
5125
5123
  var Icon = function (_a) {
5126
- 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;
5127
5125
  var theme = useInternalTheme();
5128
5126
  var colors = theme.colors;
5129
- var IconComponent = React$3.useMemo(function () { return getIconComponent(type); }, [type]);
5130
5127
  var renderName = function () {
5131
5128
  switch (name) {
5132
5129
  case "IconCheckboxActive":
@@ -5162,10 +5159,7 @@ var Icon = function (_a) {
5162
5159
  }
5163
5160
  };
5164
5161
  var renderIcon = function () {
5165
- if (type === "Svg") {
5166
- return (React__default["default"].createElement(SvgIcon, { name: renderName(), width: size, height: size, color: color || colors.iconPrimaryDefault }));
5167
- }
5168
- 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 }));
5169
5163
  };
5170
5164
  return (React__default["default"].createElement(reactNative.TouchableOpacity, { disabled: !onPress, onPress: onPress },
5171
5165
  React__default["default"].createElement(reactNative.View, { style: [
@@ -5429,7 +5423,7 @@ var TextInputFlat = function (_a) {
5429
5423
  ] })),
5430
5424
  renderSuffix())),
5431
5425
  parentState.focused && !disabled && clearButton && inputValue ? (React__namespace.createElement(reactNative.TouchableOpacity, { onPress: handleClear, style: styles$e.clearButton },
5432
- 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 })),
5433
5427
  checkLineRightAction() && (React__namespace.createElement(Spacer, { width: 1, height: 24, backgroundColor: theme.colors.borderPrimaryDefault, style: {
5434
5428
  marginRight: SPACE_8,
5435
5429
  } })),
@@ -5679,7 +5673,7 @@ var TextInputDefault = function (_a) {
5679
5673
  ] })),
5680
5674
  !multiline && renderSuffix()))),
5681
5675
  parentState.focused && !disabled && clearButton && inputValue ? (React__namespace.createElement(reactNative.TouchableOpacity, { onPress: handleClear, style: multiline ? styles$d.clearButtonMultiline : styles$d.clearButton },
5682
- 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 })),
5683
5677
  checkLineRightAction() && (React__namespace.createElement(Spacer, { width: 1, height: 24, backgroundColor: colors.borderPrimaryDefault, style: {
5684
5678
  marginRight: CONSTANTS.SPACE_8,
5685
5679
  } })),
@@ -5951,7 +5945,7 @@ var TextInputNumber = function (_a) {
5951
5945
  !checkValueEmpty() && suffix.toString() !== "" && (React__default["default"].createElement(Text$1, { numberOfLines: 1, color: colors.textSecondary, style: [disabled && disabledTextStyle] }, " ",
5952
5946
  suffix)))),
5953
5947
  clearButton && !checkValueEmpty() && (React__default["default"].createElement(reactNative.TouchableOpacity, { activeOpacity: 0.8, onPress: handleClearInput },
5954
- React__default["default"].createElement(Icon$1, { name: "IconClearText", type: "Svg", size: 24 }))),
5948
+ React__default["default"].createElement(Icon$1, { name: "IconClearText", size: 24 }))),
5955
5949
  right && numberValue && (React__default["default"].createElement(Spacer, { width: 1, height: 24, backgroundColor: theme.colors.borderPrimaryDefault, style: {
5956
5950
  marginLeft: SPACE_4,
5957
5951
  } })),
@@ -5967,7 +5961,7 @@ var TextInputNumber = function (_a) {
5967
5961
  React__default["default"].createElement(View, { paddingHorizontal: SPACE_40 },
5968
5962
  React__default["default"].createElement(Text$1, { numberOfLines: 1, style: [styles$c.text30, styles$c.valueText] }, formatNumberInput$1(inputValue, formatDecimal) || "0")),
5969
5963
  React__default["default"].createElement(reactNative.TouchableOpacity, { onPress: handleClear, style: styles$c.clearButton },
5970
- 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 }))),
5971
5965
  React__default["default"].createElement(View, { style: styles$c.keyboardGrid }, [
5972
5966
  ["1", "2", "3"],
5973
5967
  ["4", "5", "6"],
@@ -5980,7 +5974,7 @@ var TextInputNumber = function (_a) {
5980
5974
  inputValue.includes(".") &&
5981
5975
  styles$c.disabledKey,
5982
5976
  ], onPress: function () { return handleKeyPress(key); }, disabled: (key === "000" && type === "float") ||
5983
- (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: [
5984
5978
  styles$c.keyText,
5985
5979
  styles$c.text22,
5986
5980
  key === "000" &&
@@ -6750,7 +6744,7 @@ var Toast = memoWithRef(function (_props, ref) {
6750
6744
  ] },
6751
6745
  React__default["default"].createElement(View, { row: true, style: { alignItems: "flex-start" } },
6752
6746
  React__default["default"].createElement(View, null,
6753
- React__default["default"].createElement(Icon$1, { name: getSourceIcon(), type: "Svg", size: 20 })),
6747
+ React__default["default"].createElement(Icon$1, { name: getSourceIcon(), size: 20 })),
6754
6748
  React__default["default"].createElement(View, { full: true, paddingLeft: CONSTANTS.SPACE_8 },
6755
6749
  React__default["default"].createElement(Text$1, { bold: true, color: colors.textOnFillDefault }, options.title),
6756
6750
  message.toString().length > 0 && (React__default["default"].createElement(Text$1, { color: colors.textOnFillDefault, numberOfLines: 4, style: !options.title && styles$9.wrapMess }, message)))))));
@@ -7130,7 +7124,7 @@ var Checkbox = function (_a) {
7130
7124
  }, [checked]);
7131
7125
  return (React__default["default"].createElement(View, { row: true, disabled: disabled, alignCenter: true, style: [style], onPress: handlePress },
7132
7126
  leftIcon ? (React__default["default"].createElement(View, { paddingRight: CONSTANTS.SPACE_8 }, leftIcon)) : (React__default["default"].createElement(View, { paddingRight: CONSTANTS.SPACE_8 },
7133
- 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 }))),
7134
7128
  React__default["default"].createElement(View, null,
7135
7129
  React__default["default"].createElement(Text$1, { color: colors.textDefault, style: [
7136
7130
  styles$5.text14,
@@ -7167,7 +7161,7 @@ var RadioButton = function (_a) {
7167
7161
  ? "IconRadioDisable"
7168
7162
  : checked
7169
7163
  ? "IconRadioActive"
7170
- : "IconRadio", type: "Svg", size: 24, color: getColorCheckbox }))),
7164
+ : "IconRadio", size: 24, color: getColorCheckbox }))),
7171
7165
  React__default["default"].createElement(View, null,
7172
7166
  React__default["default"].createElement(Text$1, { color: colors.textDefault, style: [
7173
7167
  styles$4.text14,
@@ -7273,7 +7267,7 @@ var SelectionField = function (_a) {
7273
7267
  React__default["default"].createElement(Text$1, __assign({ numberOfLines: 1, color: getColor(), style: [disabled && disabledTextStyle, textStyle] }, textProps),
7274
7268
  content.toString() === "" ? label : content,
7275
7269
  required && content.toString() === "" && (React__default["default"].createElement(Text$1, { color: colors.textErrorDefault }, " *")))),
7276
- 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 }),
7277
7271
  React__default["default"].createElement(Spacer, { width: SPACE_12 }))),
7278
7272
  error.length > 0 && (React__default["default"].createElement(View, { paddingHorizontal: SPACE_12, paddingVertical: SPACE_4 },
7279
7273
  React__default["default"].createElement(Text$1, { style: styles$2.text12, color: colors.textErrorDefault }, error)))));
@@ -7299,7 +7293,7 @@ var SearchInput = function (_a) {
7299
7293
  onChangeText === null || onChangeText === void 0 ? void 0 : onChangeText(text);
7300
7294
  }, debounceTime);
7301
7295
  return (React__default["default"].createElement(TextInput, { left: React__default["default"].createElement(View, null,
7302
- 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: [
7303
7297
  {
7304
7298
  height: height || 36,
7305
7299
  },
@@ -7343,7 +7337,7 @@ var Tag = function (_a) {
7343
7337
  textStyle,
7344
7338
  ] }, title)),
7345
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 },
7346
- 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 }))))));
7347
7341
  };
7348
7342
  var styles$1 = reactNative.StyleSheet.create(__assign({}, containerStyles));
7349
7343
 
@@ -7482,7 +7476,7 @@ var NumberKeyboard = function (_a) {
7482
7476
  React__default["default"].createElement(View, { paddingHorizontal: SPACE_40 },
7483
7477
  React__default["default"].createElement(Text$1, { numberOfLines: 1, style: [styles.text30, styles.valueText] }, formatNumberInput(inputValue, formatDecimal) || "0")),
7484
7478
  React__default["default"].createElement(reactNative.TouchableOpacity, { onPress: handleClear, style: styles.clearButton },
7485
- 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 }))),
7486
7480
  React__default["default"].createElement(View, { style: styles.keyboardGrid }, [
7487
7481
  ["1", "2", "3"],
7488
7482
  ["4", "5", "6"],
@@ -7495,7 +7489,7 @@ var NumberKeyboard = function (_a) {
7495
7489
  inputValue.includes(".") &&
7496
7490
  styles.disabledKey,
7497
7491
  ], onPress: function () { return handleKeyPress(key); }, disabled: (key === "000" && type === "float") ||
7498
- (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: [
7499
7493
  styles.keyText,
7500
7494
  styles.text22,
7501
7495
  key === "000" &&