sapo-components-ui-rn 1.1.98 → 1.1.100
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/components/Button/index.d.ts +2 -1
- package/dist/components/ButtonIcon/index.d.ts +2 -0
- package/dist/components/Checkbox/index.d.ts +3 -1
- package/dist/components/ChipBar/index.d.ts +3 -1
- package/dist/components/FloatingButton/index.d.ts +2 -0
- package/dist/components/Icon/index.d.ts +2 -0
- package/dist/components/NumberKeyboard/index.d.ts +1 -0
- package/dist/components/RadioButton/index.d.ts +3 -1
- package/dist/components/ScaleButton/index.d.ts +1 -1
- package/dist/components/SelectionField/index.d.ts +4 -1
- package/dist/components/Switch/Switch.d.ts +3 -1
- package/dist/components/TextInput/TextInputNumber.d.ts +2 -1
- package/dist/index.esm.js +75 -71
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +75 -71
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -26,6 +26,7 @@ export interface ButtonProps extends TouchableOpacityProps {
|
|
|
26
26
|
type?: 'default' | 'text';
|
|
27
27
|
critical?: boolean;
|
|
28
28
|
width?: number;
|
|
29
|
+
testID?: string;
|
|
29
30
|
}
|
|
30
|
-
declare const _default: React.MemoExoticComponent<({ style, title, border, borderColor, isLoading, left, right, margin, textStyle, textProps, onPress, disabled, backgroundColor, textColor, textBold, mode, transparent, full, theme: themeOverrides, buttonSize, textSize, critical, width, type, ...props }: ButtonProps) => React.JSX.Element>;
|
|
31
|
+
declare const _default: React.MemoExoticComponent<({ style, title, border, borderColor, isLoading, left, right, margin, textStyle, textProps, onPress, disabled, backgroundColor, textColor, textBold, mode, transparent, full, theme: themeOverrides, buttonSize, textSize, critical, width, type, testID, accessibilityLabel, ...props }: ButtonProps) => React.JSX.Element>;
|
|
31
32
|
export default _default;
|
|
@@ -14,6 +14,8 @@ export interface ButtonIconProps {
|
|
|
14
14
|
borderColor?: string;
|
|
15
15
|
mode?: "normal" | "small";
|
|
16
16
|
testID?: string;
|
|
17
|
+
accessible?: boolean;
|
|
18
|
+
accessibilityLabel?: string;
|
|
17
19
|
}
|
|
18
20
|
declare const _default: React.MemoExoticComponent<React.ComponentType<ButtonIconProps>>;
|
|
19
21
|
export default _default;
|
|
@@ -10,6 +10,8 @@ interface CheckboxProps {
|
|
|
10
10
|
leftIcon?: React.ReactNode;
|
|
11
11
|
checked?: boolean | "indeterminate";
|
|
12
12
|
iconSize?: number;
|
|
13
|
+
accessible?: boolean;
|
|
14
|
+
accessibilityLabel?: string;
|
|
13
15
|
}
|
|
14
|
-
declare const Checkbox: ({ testID, style, content, textStyle, onPress, disabled, leftIcon, checked, iconSize, }: CheckboxProps) => React.JSX.Element;
|
|
16
|
+
declare const Checkbox: ({ testID, style, content, textStyle, onPress, disabled, leftIcon, checked, iconSize, accessible, accessibilityLabel, }: CheckboxProps) => React.JSX.Element;
|
|
15
17
|
export default Checkbox;
|
|
@@ -14,6 +14,8 @@ interface ChipBarProps {
|
|
|
14
14
|
checked?: boolean;
|
|
15
15
|
ellipsizeMode?: "head" | "middle" | "tail" | "clip";
|
|
16
16
|
numberOfLines?: number;
|
|
17
|
+
accessible?: boolean;
|
|
18
|
+
accessibilityLabel?: string;
|
|
17
19
|
}
|
|
18
|
-
declare const ChipBar: ({ testID, style, borderRadius, title, textStyle, onPress, disabled, leftIcon, rightIcon, badge, checked, ellipsizeMode, numberOfLines, }: ChipBarProps) => React.JSX.Element;
|
|
20
|
+
declare const ChipBar: ({ testID, style, borderRadius, title, textStyle, onPress, disabled, leftIcon, rightIcon, badge, checked, ellipsizeMode, numberOfLines, accessible, accessibilityLabel, }: ChipBarProps) => React.JSX.Element;
|
|
19
21
|
export default ChipBar;
|
|
@@ -15,6 +15,8 @@ export interface FloatingButtonProps {
|
|
|
15
15
|
left?: number;
|
|
16
16
|
bottom?: number;
|
|
17
17
|
testID?: string;
|
|
18
|
+
accessible?: boolean;
|
|
19
|
+
accessibilityLabel?: string;
|
|
18
20
|
}
|
|
19
21
|
declare const _default: React.MemoExoticComponent<React.ComponentType<FloatingButtonProps>>;
|
|
20
22
|
export default _default;
|
|
@@ -11,6 +11,8 @@ export interface IconProps {
|
|
|
11
11
|
tintColor?: string;
|
|
12
12
|
animatedProps?: Record<string, unknown>;
|
|
13
13
|
testID?: string;
|
|
14
|
+
accessible?: boolean;
|
|
15
|
+
accessibilityLabel?: string;
|
|
14
16
|
}
|
|
15
17
|
declare const _default: React.NamedExoticComponent<IconProps>;
|
|
16
18
|
export default _default;
|
|
@@ -20,6 +20,7 @@ export interface NumberKeyboardProps {
|
|
|
20
20
|
/** Callback khi đóng modal */
|
|
21
21
|
onClose: () => void;
|
|
22
22
|
keyboardStyle?: StyleProp<ViewStyle>;
|
|
23
|
+
testID?: string;
|
|
23
24
|
}
|
|
24
25
|
declare const _default: React.NamedExoticComponent<NumberKeyboardProps>;
|
|
25
26
|
export default _default;
|
|
@@ -9,6 +9,8 @@ interface RadioButtonProps {
|
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
leftIcon?: React.ReactNode;
|
|
11
11
|
checked?: boolean;
|
|
12
|
+
accessible?: boolean;
|
|
13
|
+
accessibilityLabel?: string;
|
|
12
14
|
}
|
|
13
|
-
declare const RadioButton: ({ testID, style, content, textStyle, onPress, disabled, leftIcon, checked, }: RadioButtonProps) => React.JSX.Element;
|
|
15
|
+
declare const RadioButton: ({ testID, style, content, textStyle, onPress, disabled, leftIcon, checked, accessible, accessibilityLabel, }: RadioButtonProps) => React.JSX.Element;
|
|
14
16
|
export default RadioButton;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { TouchableOpacityProps } from "react-native";
|
|
3
|
-
declare const _default: React.MemoExoticComponent<({ children, style, onPress, ...rest }: TouchableOpacityProps) => React.JSX.Element>;
|
|
3
|
+
declare const _default: React.MemoExoticComponent<({ children, style, onPress, accessible, accessibilityRole, ...rest }: TouchableOpacityProps) => React.JSX.Element>;
|
|
4
4
|
export default _default;
|
|
@@ -20,6 +20,9 @@ export interface SelectionFieldProps extends TouchableOpacityProps {
|
|
|
20
20
|
theme?: ThemeProp;
|
|
21
21
|
required?: boolean;
|
|
22
22
|
height?: number;
|
|
23
|
+
testID?: string;
|
|
24
|
+
accessible?: boolean;
|
|
25
|
+
accessibilityLabel?: string;
|
|
23
26
|
}
|
|
24
|
-
declare const _default: React.MemoExoticComponent<({ style, content, label, error, borderColor, left, right, textStyle, labelStyle, textProps, onPress, disabled, textColor, labelColor, theme: themeOverrides, required, height, testID, ...props }: SelectionFieldProps) => React.JSX.Element>;
|
|
27
|
+
declare const _default: React.MemoExoticComponent<({ style, content, label, error, borderColor, left, right, textStyle, labelStyle, textProps, onPress, disabled, textColor, labelColor, theme: themeOverrides, required, height, testID, accessible, accessibilityLabel, ...props }: SelectionFieldProps) => React.JSX.Element>;
|
|
25
28
|
export default _default;
|
|
@@ -14,6 +14,8 @@ export type Props = {
|
|
|
14
14
|
*/
|
|
15
15
|
onValueChange?: (value: boolean) => void;
|
|
16
16
|
testID?: string;
|
|
17
|
+
accessible?: boolean;
|
|
18
|
+
accessibilityLabel?: string;
|
|
17
19
|
};
|
|
18
|
-
declare const Switch: React.MemoExoticComponent<({ testID, value, disabled, onValueChange, size }: Props) => React.JSX.Element>;
|
|
20
|
+
declare const Switch: React.MemoExoticComponent<({ testID, value, disabled, onValueChange, size, accessible, accessibilityLabel, }: Props) => React.JSX.Element>;
|
|
19
21
|
export default Switch;
|
|
@@ -24,6 +24,7 @@ export interface TextInputNumberProps extends TouchableOpacityProps {
|
|
|
24
24
|
contentStyle?: StyleProp<TextStyle>;
|
|
25
25
|
textErrorStyle?: StyleProp<TextStyle>;
|
|
26
26
|
height?: number;
|
|
27
|
+
testID?: string;
|
|
27
28
|
}
|
|
28
|
-
declare const _default: React.MemoExoticComponent<({ style, value, label, textError, left, right, onChangeText, disabled, theme: themeOverrides, prefix, suffix, clearButton, maxValue, minValue, type, formatDecimal, required, labelStyle, contentStyle, textErrorStyle, height, keyboardStyle, ...props }: TextInputNumberProps) => React.JSX.Element>;
|
|
29
|
+
declare const _default: React.MemoExoticComponent<({ style, value, label, textError, left, right, onChangeText, disabled, theme: themeOverrides, prefix, suffix, clearButton, maxValue, minValue, type, formatDecimal, required, labelStyle, contentStyle, textErrorStyle, height, keyboardStyle, testID, ...props }: TextInputNumberProps) => React.JSX.Element>;
|
|
29
30
|
export default _default;
|
package/dist/index.esm.js
CHANGED
|
@@ -1532,7 +1532,7 @@ var ViewCustom = forwardRef$1(function (_a, ref) {
|
|
|
1532
1532
|
var View = React__default.memo(ViewCustom);
|
|
1533
1533
|
|
|
1534
1534
|
var Switch = memo(function (_a) {
|
|
1535
|
-
var testID = _a.testID, value = _a.value, disabled = _a.disabled, onValueChange = _a.onValueChange, _b = _a.size, size = _b === void 0 ? "normal" : _b;
|
|
1535
|
+
var testID = _a.testID, value = _a.value, disabled = _a.disabled, onValueChange = _a.onValueChange, _b = _a.size, size = _b === void 0 ? "normal" : _b, _c = _a.accessible, accessible = _c === void 0 ? true : _c, accessibilityLabel = _a.accessibilityLabel;
|
|
1536
1536
|
var theme = useInternalTheme();
|
|
1537
1537
|
var colors = theme.colors;
|
|
1538
1538
|
var progress = useSharedValue(value ? 1 : 0);
|
|
@@ -1605,7 +1605,7 @@ var Switch = memo(function (_a) {
|
|
|
1605
1605
|
}
|
|
1606
1606
|
}, [size, colors]);
|
|
1607
1607
|
return (React$3.createElement(View, { row: true },
|
|
1608
|
-
React$3.createElement(TouchableOpacity, { testID: testID, activeOpacity: 1, onPress: handleSwitch, disabled: disabled, style: disabled ? { opacity: 0.6 } : {} },
|
|
1608
|
+
React$3.createElement(TouchableOpacity, { testID: testID, accessible: accessible, accessibilityRole: "switch", accessibilityState: { checked: !!value, disabled: !!disabled }, accessibilityLabel: accessibilityLabel || testID || "switch", activeOpacity: 1, onPress: handleSwitch, disabled: disabled, style: disabled ? { opacity: 0.6 } : {} },
|
|
1609
1609
|
React$3.createElement(Animated.View, { style: [styles$j.vSegment, backgroundColor, getSizeSwitch()] },
|
|
1610
1610
|
React$3.createElement(Animated.View, { style: [styles$j.animated, animatedStyle, getSizeCircle()] })))));
|
|
1611
1611
|
});
|
|
@@ -5369,8 +5369,8 @@ var roundLayoutSize = function (size) {
|
|
|
5369
5369
|
};
|
|
5370
5370
|
|
|
5371
5371
|
var ScaleButton = function (_a) {
|
|
5372
|
-
var children = _a.children; _a.style; var _b = _a.onPress, onPress = _b === void 0 ? function () { } : _b, rest = __rest(_a, ["children", "style", "onPress"]);
|
|
5373
|
-
return (React__default.createElement(TouchableOpacity, __assign({}, rest, { onPress: onPress }), children));
|
|
5372
|
+
var children = _a.children; _a.style; var _b = _a.onPress, onPress = _b === void 0 ? function () { } : _b, _c = _a.accessible, accessible = _c === void 0 ? true : _c, _d = _a.accessibilityRole, accessibilityRole = _d === void 0 ? "button" : _d, rest = __rest(_a, ["children", "style", "onPress", "accessible", "accessibilityRole"]);
|
|
5373
|
+
return (React__default.createElement(TouchableOpacity, __assign({ accessible: accessible, accessibilityRole: accessibilityRole }, rest, { onPress: onPress }), children));
|
|
5374
5374
|
};
|
|
5375
5375
|
var ScaleButton$1 = React__default.memo(ScaleButton);
|
|
5376
5376
|
|
|
@@ -5415,7 +5415,7 @@ function formatShowInput$1(value, formatDecimal) {
|
|
|
5415
5415
|
return result;
|
|
5416
5416
|
}
|
|
5417
5417
|
var TextInputNumber = function (_a) {
|
|
5418
|
-
var style = _a.style, _b = _a.value, value = _b === void 0 ? "" : _b, _c = _a.label, label = _c === void 0 ? "" : _c, _d = _a.textError, textError = _d === void 0 ? "" : _d, left = _a.left, right = _a.right, onChangeText = _a.onChangeText, _e = _a.disabled, disabled = _e === void 0 ? false : _e; _a.theme; var _f = _a.prefix, prefix = _f === void 0 ? "" : _f, _g = _a.suffix, suffix = _g === void 0 ? "" : _g, _h = _a.clearButton, clearButton = _h === void 0 ? false : _h, _j = _a.maxValue, maxValue = _j === void 0 ? 999999999999 : _j, _k = _a.minValue, minValue = _k === void 0 ? 0 : _k, _l = _a.type, type = _l === void 0 ? "integer" : _l, _m = _a.formatDecimal, formatDecimal = _m === void 0 ? 3 : _m, _o = _a.required, required = _o === void 0 ? false : _o, labelStyle = _a.labelStyle, contentStyle = _a.contentStyle, textErrorStyle = _a.textErrorStyle, height = _a.height, _p = _a.keyboardStyle, keyboardStyle = _p === void 0 ? {} : _p, props = __rest(_a, ["style", "value", "label", "textError", "left", "right", "onChangeText", "disabled", "theme", "prefix", "suffix", "clearButton", "maxValue", "minValue", "type", "formatDecimal", "required", "labelStyle", "contentStyle", "textErrorStyle", "height", "keyboardStyle"]);
|
|
5418
|
+
var style = _a.style, _b = _a.value, value = _b === void 0 ? "" : _b, _c = _a.label, label = _c === void 0 ? "" : _c, _d = _a.textError, textError = _d === void 0 ? "" : _d, left = _a.left, right = _a.right, onChangeText = _a.onChangeText, _e = _a.disabled, disabled = _e === void 0 ? false : _e; _a.theme; var _f = _a.prefix, prefix = _f === void 0 ? "" : _f, _g = _a.suffix, suffix = _g === void 0 ? "" : _g, _h = _a.clearButton, clearButton = _h === void 0 ? false : _h, _j = _a.maxValue, maxValue = _j === void 0 ? 999999999999 : _j, _k = _a.minValue, minValue = _k === void 0 ? 0 : _k, _l = _a.type, type = _l === void 0 ? "integer" : _l, _m = _a.formatDecimal, formatDecimal = _m === void 0 ? 3 : _m, _o = _a.required, required = _o === void 0 ? false : _o, labelStyle = _a.labelStyle, contentStyle = _a.contentStyle, textErrorStyle = _a.textErrorStyle, height = _a.height, _p = _a.keyboardStyle, keyboardStyle = _p === void 0 ? {} : _p, testID = _a.testID, props = __rest(_a, ["style", "value", "label", "textError", "left", "right", "onChangeText", "disabled", "theme", "prefix", "suffix", "clearButton", "maxValue", "minValue", "type", "formatDecimal", "required", "labelStyle", "contentStyle", "textErrorStyle", "height", "keyboardStyle", "testID"]);
|
|
5419
5419
|
var theme = useInternalTheme();
|
|
5420
5420
|
var colors = theme.colors;
|
|
5421
5421
|
var _q = useState(false), isShowModalKeyboard = _q[0], setIsShowModalKeyboard = _q[1];
|
|
@@ -5797,7 +5797,7 @@ var TextInputNumber = function (_a) {
|
|
|
5797
5797
|
}, 300);
|
|
5798
5798
|
};
|
|
5799
5799
|
return (React__default.createElement(View, null,
|
|
5800
|
-
React__default.createElement(ScaleButton$1, __assign({ activeOpacity: 0.8, onPress: onShowModalKeyboard }, props, { disabled: disabled || false }),
|
|
5800
|
+
React__default.createElement(ScaleButton$1, __assign({ testID: testID, activeOpacity: 0.8, onPress: onShowModalKeyboard }, props, { disabled: disabled || false }),
|
|
5801
5801
|
React__default.createElement(View, { style: [
|
|
5802
5802
|
styles$c.container,
|
|
5803
5803
|
{
|
|
@@ -5882,42 +5882,43 @@ var TextInputNumber = function (_a) {
|
|
|
5882
5882
|
React__default.createElement(View, { width: "100%", style: styles$c.valueRow },
|
|
5883
5883
|
React__default.createElement(View, { style: styles$c.valueTextContainer },
|
|
5884
5884
|
React__default.createElement(Text$1, { numberOfLines: 1, style: [styles$c.text30, styles$c.valueText] }, formatNumberInput$1(inputValue, formatDecimal) || "\u00A0")),
|
|
5885
|
-
React__default.createElement(TouchableOpacity, { onPress: handleClear, style: styles$c.clearButton },
|
|
5885
|
+
React__default.createElement(TouchableOpacity, { testID: testID ? "".concat(testID, "_modal_btn_clear") : 'number_input_btn_clear', accessible: true, accessibilityRole: "button", accessibilityLabel: "X\u00F3a h\u1EBFt", onPress: handleClear, style: styles$c.clearButton },
|
|
5886
5886
|
React__default.createElement(SvgIcon, { name: "IconClearText", width: 24, height: 24, color: colors.textSecondary }))),
|
|
5887
5887
|
React__default.createElement(View, { style: styles$c.keyboardGrid }, [
|
|
5888
5888
|
["1", "2", "3"],
|
|
5889
5889
|
["4", "5", "6"],
|
|
5890
5890
|
["7", "8", "9"],
|
|
5891
5891
|
[type === "integer" ? "000" : ".", "0", "del"],
|
|
5892
|
-
].map(function (row, rowIndex) { return (React__default.createElement(View, { key: rowIndex, style: styles$c.keyboardRow }, row.map(function (key) {
|
|
5893
|
-
|
|
5894
|
-
|
|
5895
|
-
|
|
5896
|
-
|
|
5897
|
-
|
|
5898
|
-
|
|
5899
|
-
|
|
5900
|
-
|
|
5901
|
-
(
|
|
5902
|
-
|
|
5903
|
-
|
|
5904
|
-
|
|
5905
|
-
|
|
5906
|
-
|
|
5907
|
-
|
|
5908
|
-
|
|
5909
|
-
styles$c.disabledKeyText,
|
|
5910
|
-
|
|
5911
|
-
|
|
5912
|
-
|
|
5913
|
-
|
|
5892
|
+
].map(function (row, rowIndex) { return (React__default.createElement(View, { key: rowIndex, style: styles$c.keyboardRow }, row.map(function (key) {
|
|
5893
|
+
var keyId = key === 'del' ? 'del' : key === '.' ? 'dot' : key;
|
|
5894
|
+
return (React__default.createElement(TouchableOpacity, { testID: testID ? "".concat(testID, "_modal_key_").concat(keyId) : "number_input_key_".concat(keyId), accessible: true, accessibilityRole: "button", accessibilityLabel: key === 'del' ? 'Xóa' : key, activeOpacity: 0.8, key: key, style: [
|
|
5895
|
+
styles$c.keyButton,
|
|
5896
|
+
key === "000" && is000Disabled && styles$c.disabledKey,
|
|
5897
|
+
key === "0" && is0Disabled && styles$c.disabledKey,
|
|
5898
|
+
key === "." &&
|
|
5899
|
+
inputValue.includes(".") &&
|
|
5900
|
+
styles$c.disabledKey,
|
|
5901
|
+
], onPress: function () { return handleKeyPress(key); }, disabled: (key === "000" && is000Disabled) ||
|
|
5902
|
+
(key === "0" && is0Disabled) ||
|
|
5903
|
+
(key === "." && inputValue.includes(".")) }, key === "del" ? (React__default.createElement(SvgIcon, { name: "IconDelNumber", width: 24, height: 24, color: colors.textSecondary })) : (React__default.createElement(Text$1, { style: [
|
|
5904
|
+
styles$c.keyText,
|
|
5905
|
+
styles$c.text22,
|
|
5906
|
+
key === "000" &&
|
|
5907
|
+
is000Disabled &&
|
|
5908
|
+
styles$c.disabledKeyText,
|
|
5909
|
+
key === "0" && is0Disabled && styles$c.disabledKeyText,
|
|
5910
|
+
key === "." &&
|
|
5911
|
+
inputValue.includes(".") &&
|
|
5912
|
+
styles$c.disabledKeyText,
|
|
5913
|
+
] }, key))));
|
|
5914
|
+
}))); })),
|
|
5914
5915
|
React__default.createElement(View, { style: styles$c.actionRow },
|
|
5915
|
-
React__default.createElement(TouchableOpacity, { activeOpacity: 0.8, style: styles$c.actionButton, onPress: onCloseModalKeyboard },
|
|
5916
|
+
React__default.createElement(TouchableOpacity, { testID: testID ? "".concat(testID, "_modal_btn_close") : 'number_input_btn_close', accessible: true, accessibilityRole: "button", accessibilityLabel: "\u0110\u00F3ng", activeOpacity: 0.8, style: styles$c.actionButton, onPress: onCloseModalKeyboard },
|
|
5916
5917
|
React__default.createElement(Text$1, { style: [styles$c.actionText, styles$c.text16] }, "\u0110\u00F3ng")),
|
|
5917
5918
|
React__default.createElement(Spacer, { style: {
|
|
5918
5919
|
height: "100%",
|
|
5919
5920
|
}, width: 1, backgroundColor: colors.borderPrimaryDefault }),
|
|
5920
|
-
React__default.createElement(TouchableOpacity, { activeOpacity: 0.8, style: [styles$c.actionButton, !canSave && { opacity: 0.5 }], onPress: handleSave, disabled: !canSave },
|
|
5921
|
+
React__default.createElement(TouchableOpacity, { testID: testID ? "".concat(testID, "_modal_btn_save") : 'number_input_btn_save', accessible: true, accessibilityRole: "button", accessibilityLabel: "L\u01B0u", activeOpacity: 0.8, style: [styles$c.actionButton, !canSave && { opacity: 0.5 }], onPress: handleSave, disabled: !canSave },
|
|
5921
5922
|
React__default.createElement(Text$1, { style: [
|
|
5922
5923
|
styles$c.actionText,
|
|
5923
5924
|
styles$c.text16,
|
|
@@ -6263,7 +6264,7 @@ var TextInput = forwardRef(function (_a, ref) {
|
|
|
6263
6264
|
TextInput.Affix = TextInputAffix;
|
|
6264
6265
|
|
|
6265
6266
|
var Button = function (_a) {
|
|
6266
|
-
var style = _a.style, title = _a.title; _a.border; var borderColor = _a.borderColor, isLoading = _a.isLoading, left = _a.left, right = _a.right, margin = _a.margin, textStyle = _a.textStyle, textProps = _a.textProps, onPress = _a.onPress, disabled = _a.disabled, backgroundColor = _a.backgroundColor, textColor = _a.textColor, _b = _a.textBold, textBold = _b === void 0 ? true : _b, _c = _a.mode, mode = _c === void 0 ? 'contained' : _c; _a.transparent; var _e = _a.full, full = _e === void 0 ? false : _e; _a.theme; var _f = _a.buttonSize, buttonSize = _f === void 0 ? 'normal' : _f, _g = _a.textSize, textSize = _g === void 0 ? buttonSize === 'small' ? 14 : 16 : _g, _h = _a.critical, critical = _h === void 0 ? false : _h, width = _a.width, _j = _a.type, type = _j === void 0 ? 'default' : _j, props = __rest(_a, ["style", "title", "border", "borderColor", "isLoading", "left", "right", "margin", "textStyle", "textProps", "onPress", "disabled", "backgroundColor", "textColor", "textBold", "mode", "transparent", "full", "theme", "buttonSize", "textSize", "critical", "width", "type"]);
|
|
6267
|
+
var style = _a.style, title = _a.title; _a.border; var borderColor = _a.borderColor, isLoading = _a.isLoading, left = _a.left, right = _a.right, margin = _a.margin, textStyle = _a.textStyle, textProps = _a.textProps, onPress = _a.onPress, disabled = _a.disabled, backgroundColor = _a.backgroundColor, textColor = _a.textColor, _b = _a.textBold, textBold = _b === void 0 ? true : _b, _c = _a.mode, mode = _c === void 0 ? 'contained' : _c; _a.transparent; var _e = _a.full, full = _e === void 0 ? false : _e; _a.theme; var _f = _a.buttonSize, buttonSize = _f === void 0 ? 'normal' : _f, _g = _a.textSize, textSize = _g === void 0 ? buttonSize === 'small' ? 14 : 16 : _g, _h = _a.critical, critical = _h === void 0 ? false : _h, width = _a.width, _j = _a.type, type = _j === void 0 ? 'default' : _j, testID = _a.testID, accessibilityLabel = _a.accessibilityLabel, props = __rest(_a, ["style", "title", "border", "borderColor", "isLoading", "left", "right", "margin", "textStyle", "textProps", "onPress", "disabled", "backgroundColor", "textColor", "textBold", "mode", "transparent", "full", "theme", "buttonSize", "textSize", "critical", "width", "type", "testID", "accessibilityLabel"]);
|
|
6267
6268
|
var theme = useInternalTheme();
|
|
6268
6269
|
var colors = theme.colors;
|
|
6269
6270
|
var disabledTextStyle = {
|
|
@@ -6333,7 +6334,7 @@ var Button = function (_a) {
|
|
|
6333
6334
|
}
|
|
6334
6335
|
};
|
|
6335
6336
|
if (type === 'text') {
|
|
6336
|
-
return (React__default.createElement(ScaleButton$1, __assign({ activeOpacity: 0.8, onPress: onPress }, props, { disabled: disabled || isLoading }),
|
|
6337
|
+
return (React__default.createElement(ScaleButton$1, __assign({ testID: testID, accessibilityLabel: accessibilityLabel || title || testID, activeOpacity: 0.8, onPress: onPress }, props, { disabled: disabled || isLoading }),
|
|
6337
6338
|
React__default.createElement(View, { width: width, margin: margin, style: [
|
|
6338
6339
|
{
|
|
6339
6340
|
height: CONSTANTS.BUTTON_HEIGHT,
|
|
@@ -6360,7 +6361,7 @@ var Button = function (_a) {
|
|
|
6360
6361
|
!isLoading && right)))));
|
|
6361
6362
|
}
|
|
6362
6363
|
return (React__default.createElement(View, { row: !full },
|
|
6363
|
-
React__default.createElement(ScaleButton$1, __assign({ activeOpacity: 0.8, onPress: onPress }, props, { disabled: disabled || isLoading }),
|
|
6364
|
+
React__default.createElement(ScaleButton$1, __assign({ testID: testID, accessibilityLabel: accessibilityLabel || title || testID, activeOpacity: 0.8, onPress: onPress }, props, { disabled: disabled || isLoading }),
|
|
6364
6365
|
React__default.createElement(View, { width: width, margin: margin, style: [
|
|
6365
6366
|
styles$b.button,
|
|
6366
6367
|
{
|
|
@@ -6415,9 +6416,9 @@ var styles$b = StyleSheet.create(__assign(__assign({}, containerStyles), { disab
|
|
|
6415
6416
|
var index$3 = React__default.memo(Button);
|
|
6416
6417
|
|
|
6417
6418
|
var FloatingButton = function (_a) {
|
|
6418
|
-
var isLoading = _a.isLoading, disabled = _a.disabled, onPress = _a.onPress, style = _a.style, _b = _a.hiddenBackground, hiddenBackground = _b === void 0 ? false : _b, _c = _a.size, size = _c === void 0 ? BUTTON_HEIGHT : _c, children = _a.children, backgroundColor = _a.backgroundColor, props = _a.props, _d = _a.top, top = _d === void 0 ? 0 : _d, _e = _a.right, right = _e === void 0 ? 0 : _e, _f = _a.left, left = _f === void 0 ? 0 : _f, _g = _a.bottom, bottom = _g === void 0 ? 0 : _g, testID = _a.testID;
|
|
6419
|
+
var isLoading = _a.isLoading, disabled = _a.disabled, onPress = _a.onPress, style = _a.style, _b = _a.hiddenBackground, hiddenBackground = _b === void 0 ? false : _b, _c = _a.size, size = _c === void 0 ? BUTTON_HEIGHT : _c, children = _a.children, backgroundColor = _a.backgroundColor, props = _a.props, _d = _a.top, top = _d === void 0 ? 0 : _d, _e = _a.right, right = _e === void 0 ? 0 : _e, _f = _a.left, left = _f === void 0 ? 0 : _f, _g = _a.bottom, bottom = _g === void 0 ? 0 : _g, testID = _a.testID, _h = _a.accessible, accessible = _h === void 0 ? true : _h, accessibilityLabel = _a.accessibilityLabel;
|
|
6419
6420
|
var colors = useInternalTheme().colors;
|
|
6420
|
-
return (React__default.createElement(TouchableOpacity, __assign({ testID: testID, activeOpacity: 0.8, onPress: onPress }, props, { disabled: disabled || isLoading, style: [
|
|
6421
|
+
return (React__default.createElement(TouchableOpacity, __assign({ testID: testID, accessible: accessible, accessibilityRole: "button", accessibilityLabel: accessibilityLabel || testID || "floating-button", activeOpacity: 0.8, onPress: onPress }, props, { disabled: disabled || isLoading, style: [
|
|
6421
6422
|
styles$a.btn,
|
|
6422
6423
|
top > 0 && { top: top },
|
|
6423
6424
|
right > 0 && { right: right },
|
|
@@ -7032,7 +7033,7 @@ var styles$7 = StyleSheet.create(__assign(__assign({}, containerStyles), { conta
|
|
|
7032
7033
|
} }));
|
|
7033
7034
|
|
|
7034
7035
|
var ChipBar = function (_a) {
|
|
7035
|
-
var testID = _a.testID, style = _a.style, _b = _a.borderRadius, borderRadius = _b === void 0 ? CONSTANTS.BORDER_RADIUS_ROUNDED : _b, _c = _a.title, title = _c === void 0 ? "content" : _c, textStyle = _a.textStyle, onPress = _a.onPress, _d = _a.disabled, disabled = _d === void 0 ? false : _d, leftIcon = _a.leftIcon, rightIcon = _a.rightIcon, _e = _a.badge, badge = _e === void 0 ? 0 : _e, _f = _a.checked, checked = _f === void 0 ? false : _f, _g = _a.ellipsizeMode, ellipsizeMode = _g === void 0 ? "tail" : _g, _h = _a.numberOfLines, numberOfLines = _h === void 0 ? 1 : _h;
|
|
7036
|
+
var testID = _a.testID, style = _a.style, _b = _a.borderRadius, borderRadius = _b === void 0 ? CONSTANTS.BORDER_RADIUS_ROUNDED : _b, _c = _a.title, title = _c === void 0 ? "content" : _c, textStyle = _a.textStyle, onPress = _a.onPress, _d = _a.disabled, disabled = _d === void 0 ? false : _d, leftIcon = _a.leftIcon, rightIcon = _a.rightIcon, _e = _a.badge, badge = _e === void 0 ? 0 : _e, _f = _a.checked, checked = _f === void 0 ? false : _f, _g = _a.ellipsizeMode, ellipsizeMode = _g === void 0 ? "tail" : _g, _h = _a.numberOfLines, numberOfLines = _h === void 0 ? 1 : _h, _j = _a.accessible, accessible = _j === void 0 ? true : _j, accessibilityLabel = _a.accessibilityLabel;
|
|
7036
7037
|
var theme = useInternalTheme();
|
|
7037
7038
|
var colors = theme.colors;
|
|
7038
7039
|
var handlePressChipBar = function () {
|
|
@@ -7040,8 +7041,8 @@ var ChipBar = function (_a) {
|
|
|
7040
7041
|
onPress === null || onPress === void 0 ? void 0 : onPress(!checked);
|
|
7041
7042
|
}
|
|
7042
7043
|
};
|
|
7043
|
-
return (React__default.createElement(View, {
|
|
7044
|
-
React__default.createElement(View, { row: true, disabled: disabled, paddingHorizontal: CONSTANTS.SPACE_12, paddingVertical: CONSTANTS.SPACE_8, borderRadius: borderRadius, borderWidth: 1, alignCenter: true, style: [
|
|
7044
|
+
return (React__default.createElement(View, { row: true },
|
|
7045
|
+
React__default.createElement(View, { testID: testID, accessible: accessible, accessibilityRole: "button", accessibilityLabel: accessibilityLabel || title || testID, accessibilityState: { checked: checked, disabled: disabled }, row: true, disabled: disabled, paddingHorizontal: CONSTANTS.SPACE_12, paddingVertical: CONSTANTS.SPACE_8, borderRadius: borderRadius, borderWidth: 1, alignCenter: true, style: [
|
|
7045
7046
|
disabled && {
|
|
7046
7047
|
backgroundColor: colors.surfaceSecondaryDefault,
|
|
7047
7048
|
borderColor: colors.surfaceSecondaryDefault,
|
|
@@ -7085,10 +7086,10 @@ var useCheckboxColor = function (isActive, disabled) {
|
|
|
7085
7086
|
}, [isActive, disabled, colors]);
|
|
7086
7087
|
};
|
|
7087
7088
|
var Checkbox = function (_a) {
|
|
7088
|
-
var testID = _a.testID, style = _a.style, _b = _a.content, content = _b === void 0 ? "content" : _b, textStyle = _a.textStyle, onPress = _a.onPress, _c = _a.disabled, disabled = _c === void 0 ? false : _c, leftIcon = _a.leftIcon, _d = _a.checked, checked = _d === void 0 ? false : _d, _e = _a.iconSize, iconSize = _e === void 0 ? 24 : _e;
|
|
7089
|
+
var testID = _a.testID, style = _a.style, _b = _a.content, content = _b === void 0 ? "content" : _b, textStyle = _a.textStyle, onPress = _a.onPress, _c = _a.disabled, disabled = _c === void 0 ? false : _c, leftIcon = _a.leftIcon, _d = _a.checked, checked = _d === void 0 ? false : _d, _e = _a.iconSize, iconSize = _e === void 0 ? 24 : _e, _f = _a.accessible, accessible = _f === void 0 ? true : _f, accessibilityLabel = _a.accessibilityLabel;
|
|
7089
7090
|
var theme = useInternalTheme();
|
|
7090
7091
|
var colors = theme.colors;
|
|
7091
|
-
var
|
|
7092
|
+
var _g = useState(checked), isActive = _g[0], setActive = _g[1];
|
|
7092
7093
|
var checkboxColor = useCheckboxColor(isActive, disabled);
|
|
7093
7094
|
var checkboxIconName = "IconCheckbox";
|
|
7094
7095
|
if (isActive === "indeterminate") {
|
|
@@ -7103,7 +7104,7 @@ var Checkbox = function (_a) {
|
|
|
7103
7104
|
useEffect(function () {
|
|
7104
7105
|
setActive(checked);
|
|
7105
7106
|
}, [checked]);
|
|
7106
|
-
return (React__default.createElement(View, { testID: testID, row: true, disabled: disabled, alignCenter: true, style: [style], onPress: handlePress },
|
|
7107
|
+
return (React__default.createElement(View, { testID: testID, accessible: accessible, accessibilityRole: "checkbox", accessibilityState: { checked: isActive, disabled: disabled }, accessibilityLabel: accessibilityLabel || content || testID, row: true, disabled: disabled, alignCenter: true, style: [style], onPress: handlePress },
|
|
7107
7108
|
leftIcon ? (React__default.createElement(View, { paddingRight: CONSTANTS.SPACE_8 }, leftIcon)) : (React__default.createElement(View, { paddingRight: CONSTANTS.SPACE_8 },
|
|
7108
7109
|
React__default.createElement(SvgIcon, { name: checkboxIconName, width: iconSize, height: iconSize, color: checkboxColor }))),
|
|
7109
7110
|
React__default.createElement(View, { full: true },
|
|
@@ -7118,7 +7119,7 @@ var Checkbox = function (_a) {
|
|
|
7118
7119
|
var styles$5 = StyleSheet.create(__assign({}, containerStyles));
|
|
7119
7120
|
|
|
7120
7121
|
var RadioButton = function (_a) {
|
|
7121
|
-
var testID = _a.testID, style = _a.style, _b = _a.content, content = _b === void 0 ? "content" : _b, textStyle = _a.textStyle, onPress = _a.onPress, _c = _a.disabled, disabled = _c === void 0 ? false : _c, leftIcon = _a.leftIcon, _d = _a.checked, checked = _d === void 0 ? false : _d;
|
|
7122
|
+
var testID = _a.testID, style = _a.style, _b = _a.content, content = _b === void 0 ? "content" : _b, textStyle = _a.textStyle, onPress = _a.onPress, _c = _a.disabled, disabled = _c === void 0 ? false : _c, leftIcon = _a.leftIcon, _d = _a.checked, checked = _d === void 0 ? false : _d, _e = _a.accessible, accessible = _e === void 0 ? true : _e, accessibilityLabel = _a.accessibilityLabel;
|
|
7122
7123
|
var theme = useInternalTheme();
|
|
7123
7124
|
var colors = theme.colors;
|
|
7124
7125
|
var handlePress = useCallback(function () {
|
|
@@ -7133,7 +7134,7 @@ var RadioButton = function (_a) {
|
|
|
7133
7134
|
}
|
|
7134
7135
|
return colors.surfacePrimaryDefault;
|
|
7135
7136
|
}, [checked, disabled]);
|
|
7136
|
-
return (React__default.createElement(View, { testID: testID, row: true, disabled: disabled, alignCenter: true, style: [style], onPress: handlePress },
|
|
7137
|
+
return (React__default.createElement(View, { testID: testID, accessible: accessible, accessibilityRole: "radio", accessibilityState: { checked: checked, disabled: disabled }, accessibilityLabel: accessibilityLabel || content || testID, row: true, disabled: disabled, alignCenter: true, style: [style], onPress: handlePress },
|
|
7137
7138
|
leftIcon ? (React__default.createElement(View, { paddingRight: CONSTANTS.SPACE_8 }, leftIcon)) : (React__default.createElement(View, { paddingRight: CONSTANTS.SPACE_8 },
|
|
7138
7139
|
React__default.createElement(SvgIcon, { name: checked ? "IconRadioActive" : "IconRadio", width: 24, height: 24, color: getColorCheckbox }))),
|
|
7139
7140
|
React__default.createElement(View, { full: true },
|
|
@@ -7197,7 +7198,7 @@ var styles$3 = StyleSheet.create({
|
|
|
7197
7198
|
});
|
|
7198
7199
|
|
|
7199
7200
|
var SelectionField = function (_a) {
|
|
7200
|
-
var style = _a.style, _b = _a.content, content = _b === void 0 ? '' : _b, _c = _a.label, label = _c === void 0 ? '' : _c, _d = _a.error, error = _d === void 0 ? '' : _d, borderColor = _a.borderColor; _a.left; var right = _a.right, textStyle = _a.textStyle, labelStyle = _a.labelStyle, textProps = _a.textProps, onPress = _a.onPress, _e = _a.disabled, disabled = _e === void 0 ? false : _e, textColor = _a.textColor, labelColor = _a.labelColor; _a.theme; var _f = _a.required, required = _f === void 0 ? false : _f, _g = _a.height, height = _g === void 0 ? 48 : _g, testID = _a.testID, props = __rest(_a, ["style", "content", "label", "error", "borderColor", "left", "right", "textStyle", "labelStyle", "textProps", "onPress", "disabled", "textColor", "labelColor", "theme", "required", "height", "testID"]);
|
|
7201
|
+
var style = _a.style, _b = _a.content, content = _b === void 0 ? '' : _b, _c = _a.label, label = _c === void 0 ? '' : _c, _d = _a.error, error = _d === void 0 ? '' : _d, borderColor = _a.borderColor; _a.left; var right = _a.right, textStyle = _a.textStyle, labelStyle = _a.labelStyle, textProps = _a.textProps, onPress = _a.onPress, _e = _a.disabled, disabled = _e === void 0 ? false : _e, textColor = _a.textColor, labelColor = _a.labelColor; _a.theme; var _f = _a.required, required = _f === void 0 ? false : _f, _g = _a.height, height = _g === void 0 ? 48 : _g, testID = _a.testID, _h = _a.accessible, accessible = _h === void 0 ? true : _h, accessibilityLabel = _a.accessibilityLabel, props = __rest(_a, ["style", "content", "label", "error", "borderColor", "left", "right", "textStyle", "labelStyle", "textProps", "onPress", "disabled", "textColor", "labelColor", "theme", "required", "height", "testID", "accessible", "accessibilityLabel"]);
|
|
7201
7202
|
var theme = useInternalTheme();
|
|
7202
7203
|
var colors = theme.colors;
|
|
7203
7204
|
var disabledTextStyle = {
|
|
@@ -7213,8 +7214,8 @@ var SelectionField = function (_a) {
|
|
|
7213
7214
|
}
|
|
7214
7215
|
return textColor || colors.textDefault;
|
|
7215
7216
|
};
|
|
7216
|
-
return (React__default.createElement(View,
|
|
7217
|
-
React__default.createElement(ScaleButton$1, __assign({ activeOpacity: 0.8, onPress: onPress }, props, { disabled: disabled || false }),
|
|
7217
|
+
return (React__default.createElement(View, null,
|
|
7218
|
+
React__default.createElement(ScaleButton$1, __assign({ testID: testID, accessible: accessible, accessibilityRole: "button", accessibilityLabel: accessibilityLabel || label || (content === null || content === void 0 ? void 0 : content.toString()) || testID, activeOpacity: 0.8, onPress: onPress }, props, { disabled: disabled || false }),
|
|
7218
7219
|
React__default.createElement(View, { style: [
|
|
7219
7220
|
styles$2.container,
|
|
7220
7221
|
{
|
|
@@ -7369,7 +7370,7 @@ var formatShowInput = function (value, formatDecimal) {
|
|
|
7369
7370
|
return result;
|
|
7370
7371
|
};
|
|
7371
7372
|
var NumberKeyboard = function (_a) {
|
|
7372
|
-
var _b = _a.value, value = _b === void 0 ? "" : _b, _c = _a.label, label = _c === void 0 ? "" : _c, onChangeText = _a.onChangeText, _d = _a.maxValue, maxValue = _d === void 0 ? 999999999999 : _d, _e = _a.minValue, minValue = _e === void 0 ? 0 : _e, _f = _a.type, type = _f === void 0 ? "integer" : _f, _g = _a.formatDecimal, formatDecimal = _g === void 0 ? 3 : _g, visible = _a.visible, onClose = _a.onClose, keyboardStyle = _a.keyboardStyle;
|
|
7373
|
+
var _b = _a.value, value = _b === void 0 ? "" : _b, _c = _a.label, label = _c === void 0 ? "" : _c, onChangeText = _a.onChangeText, _d = _a.maxValue, maxValue = _d === void 0 ? 999999999999 : _d, _e = _a.minValue, minValue = _e === void 0 ? 0 : _e, _f = _a.type, type = _f === void 0 ? "integer" : _f, _g = _a.formatDecimal, formatDecimal = _g === void 0 ? 3 : _g, visible = _a.visible, onClose = _a.onClose, keyboardStyle = _a.keyboardStyle, testID = _a.testID;
|
|
7373
7374
|
var theme = useInternalTheme();
|
|
7374
7375
|
var colors = theme.colors;
|
|
7375
7376
|
var _h = useState((value === null || value === void 0 ? void 0 : value.toString()) || ""), inputValue = _h[0], setInputValue = _h[1];
|
|
@@ -7657,38 +7658,41 @@ var NumberKeyboard = function (_a) {
|
|
|
7657
7658
|
React__default.createElement(View, { width: "100%", style: styles.valueRow },
|
|
7658
7659
|
React__default.createElement(View, { style: styles.valueTextContainer },
|
|
7659
7660
|
React__default.createElement(Text$1, { numberOfLines: 1, style: [styles.text30, styles.valueText] }, formatNumberInput(inputValue, formatDecimal) || "\u00A0")),
|
|
7660
|
-
React__default.createElement(TouchableOpacity, { onPress: handleClear, style: styles.clearButton },
|
|
7661
|
+
React__default.createElement(TouchableOpacity, { testID: testID ? "".concat(testID, "_btn_clear") : 'keyboard_btn_clear', accessible: true, accessibilityRole: "button", accessibilityLabel: "X\u00F3a h\u1EBFt", onPress: handleClear, style: styles.clearButton },
|
|
7661
7662
|
React__default.createElement(SvgIcon, { name: "IconClearText", width: 24, height: 24, color: colors.textSecondary }))),
|
|
7662
7663
|
React__default.createElement(View, { style: styles.keyboardGrid }, [
|
|
7663
7664
|
["1", "2", "3"],
|
|
7664
7665
|
["4", "5", "6"],
|
|
7665
7666
|
["7", "8", "9"],
|
|
7666
7667
|
[type === "integer" ? "000" : ".", "0", "del"],
|
|
7667
|
-
].map(function (row, rowIndex) { return (React__default.createElement(View, { key: rowIndex, style: styles.keyboardRow }, row.map(function (key) {
|
|
7668
|
-
|
|
7669
|
-
|
|
7670
|
-
|
|
7671
|
-
|
|
7672
|
-
|
|
7673
|
-
|
|
7674
|
-
|
|
7675
|
-
|
|
7676
|
-
(
|
|
7677
|
-
|
|
7678
|
-
|
|
7679
|
-
|
|
7680
|
-
|
|
7681
|
-
|
|
7682
|
-
|
|
7683
|
-
|
|
7684
|
-
|
|
7685
|
-
|
|
7686
|
-
|
|
7668
|
+
].map(function (row, rowIndex) { return (React__default.createElement(View, { key: rowIndex, style: styles.keyboardRow }, row.map(function (key) {
|
|
7669
|
+
var keyId = key === 'del' ? 'del' : key === '.' ? 'dot' : key;
|
|
7670
|
+
return (React__default.createElement(TouchableOpacity, { testID: testID ? "".concat(testID, "_key_").concat(keyId) : "keyboard_key_".concat(keyId), accessible: true, accessibilityRole: "button", accessibilityLabel: key === 'del' ? 'Xóa' : key, activeOpacity: 0.8, key: key, style: [
|
|
7671
|
+
styles.keyButton,
|
|
7672
|
+
key === "000" && is000Disabled && styles.disabledKey,
|
|
7673
|
+
key === "0" && is0Disabled && styles.disabledKey,
|
|
7674
|
+
key === "." &&
|
|
7675
|
+
inputValue.includes(".") &&
|
|
7676
|
+
styles.disabledKey,
|
|
7677
|
+
], onPress: function () { return handleKeyPress(key); }, disabled: (key === "000" && is000Disabled) ||
|
|
7678
|
+
(key === "0" && is0Disabled) ||
|
|
7679
|
+
(key === "." && inputValue.includes(".")) }, key === "del" ? (React__default.createElement(SvgIcon, { name: "IconDelNumber", width: 24, height: 24, color: colors.textSecondary })) : (React__default.createElement(Text$1, { style: [
|
|
7680
|
+
styles.keyText,
|
|
7681
|
+
styles.text22,
|
|
7682
|
+
key === "000" &&
|
|
7683
|
+
is000Disabled &&
|
|
7684
|
+
styles.disabledKeyText,
|
|
7685
|
+
key === "0" && is0Disabled && styles.disabledKeyText,
|
|
7686
|
+
key === "." &&
|
|
7687
|
+
inputValue.includes(".") &&
|
|
7688
|
+
styles.disabledKeyText,
|
|
7689
|
+
] }, key))));
|
|
7690
|
+
}))); })),
|
|
7687
7691
|
React__default.createElement(View, { style: styles.actionRow },
|
|
7688
|
-
React__default.createElement(TouchableOpacity, { activeOpacity: 0.8, style: styles.actionButton, onPress: handleClose },
|
|
7692
|
+
React__default.createElement(TouchableOpacity, { testID: testID ? "".concat(testID, "_btn_close") : 'keyboard_btn_close', accessible: true, accessibilityRole: "button", accessibilityLabel: "\u0110\u00F3ng", activeOpacity: 0.8, style: styles.actionButton, onPress: handleClose },
|
|
7689
7693
|
React__default.createElement(Text$1, { style: [styles.actionText, styles.text16] }, "\u0110\u00F3ng")),
|
|
7690
7694
|
React__default.createElement(Spacer, { style: { height: "100%" }, width: 1, backgroundColor: colors.borderPrimaryDefault }),
|
|
7691
|
-
React__default.createElement(TouchableOpacity, { activeOpacity: 0.8, style: [styles.actionButton, !canSave && { opacity: 0.5 }], onPress: handleSave, disabled: !canSave },
|
|
7695
|
+
React__default.createElement(TouchableOpacity, { testID: testID ? "".concat(testID, "_btn_save") : 'keyboard_btn_save', accessible: true, accessibilityRole: "button", accessibilityLabel: "L\u01B0u", activeOpacity: 0.8, style: [styles.actionButton, !canSave && { opacity: 0.5 }], onPress: handleSave, disabled: !canSave },
|
|
7692
7696
|
React__default.createElement(Text$1, { style: [
|
|
7693
7697
|
styles.actionText,
|
|
7694
7698
|
styles.text16,
|