@tecsinapse/react-core 3.4.14-beta.0 → 3.4.15-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/atoms/Avatar/Avatar.js +2 -1
- package/dist/cjs/components/atoms/Badge/Badge.js +5 -2
- package/dist/cjs/components/atoms/Badge/styled.js +2 -1
- package/dist/cjs/components/atoms/BoxContent/BoxContent.js +2 -2
- package/dist/cjs/components/atoms/Button/Button.js +10 -8
- package/dist/cjs/components/atoms/Button/States/BaseState.js +5 -2
- package/dist/cjs/components/atoms/Button/States/Error.js +2 -2
- package/dist/cjs/components/atoms/Button/States/Loading.js +11 -8
- package/dist/cjs/components/atoms/Button/States/Success.js +2 -2
- package/dist/cjs/components/atoms/Button/styled.js +2 -1
- package/dist/cjs/components/atoms/Card/Card.js +3 -3
- package/dist/cjs/components/atoms/Card/Footer/Footer.js +2 -2
- package/dist/cjs/components/atoms/Card/Header/Header.js +2 -2
- package/dist/cjs/components/atoms/Checkbox/Checkbox.js +26 -21
- package/dist/cjs/components/atoms/Divider/Divider.js +2 -2
- package/dist/cjs/components/atoms/GroupButton/GroupButton.js +20 -17
- package/dist/cjs/components/atoms/GroupButton/GroupButtonOption.js +2 -2
- package/dist/cjs/components/atoms/GroupButton/styled.js +2 -1
- package/dist/cjs/components/atoms/Icon/AntDesign.js +2 -2
- package/dist/cjs/components/atoms/Icon/Entypo.js +2 -2
- package/dist/cjs/components/atoms/Icon/Evil.js +2 -2
- package/dist/cjs/components/atoms/Icon/Feather.js +2 -2
- package/dist/cjs/components/atoms/Icon/FontAwesome.js +2 -2
- package/dist/cjs/components/atoms/Icon/FontAwesomeFive.js +2 -2
- package/dist/cjs/components/atoms/Icon/Fontisto.js +2 -2
- package/dist/cjs/components/atoms/Icon/Foundation.js +2 -2
- package/dist/cjs/components/atoms/Icon/Icon.js +3 -2
- package/dist/cjs/components/atoms/Icon/Ionicon.js +2 -2
- package/dist/cjs/components/atoms/Icon/Material.js +2 -2
- package/dist/cjs/components/atoms/Icon/MaterialCommunity.js +2 -2
- package/dist/cjs/components/atoms/Icon/Octicon.js +2 -2
- package/dist/cjs/components/atoms/Icon/SimpleLine.js +2 -2
- package/dist/cjs/components/atoms/Icon/Zocial.js +2 -2
- package/dist/cjs/components/atoms/Input/Hint.js +13 -10
- package/dist/cjs/components/atoms/Input/InputContainer/InputContainer.js +38 -34
- package/dist/cjs/components/atoms/Input/InputElement/InputElement.js +2 -1
- package/dist/cjs/components/atoms/Input/InputMaskElement/InputMaskElement.js +2 -1
- package/dist/cjs/components/atoms/Input/PressableInputContainer/PressableInputContainer.js +2 -21
- package/dist/cjs/components/atoms/Paper/Paper.js +2 -2
- package/dist/cjs/components/atoms/PressableSurface/PressableSurface.js +3 -2
- package/dist/cjs/components/atoms/ProgressBar/ProgressBar.js +16 -15
- package/dist/cjs/components/atoms/ProgressBar/styled.js +2 -1
- package/dist/cjs/components/atoms/RadioButton/RadioButton.js +27 -22
- package/dist/cjs/components/atoms/Switch/Switch.js +14 -13
- package/dist/cjs/components/atoms/Switch/styled.js +2 -1
- package/dist/cjs/components/atoms/Tag/Tag.js +24 -21
- package/dist/cjs/components/atoms/Text/Text.js +5 -5
- package/dist/cjs/components/molecules/Calendar/Calendar.js +83 -73
- package/dist/cjs/components/molecules/Calendar/components/MemoizedYearCard.js +13 -12
- package/dist/cjs/components/molecules/Calendar/components/MonthWeek.js +7 -6
- package/dist/cjs/components/molecules/Calendar/components/SelectYear.js +3 -2
- package/dist/cjs/components/molecules/Calendar/components/Weekdays.js +6 -5
- package/dist/cjs/components/molecules/ControlledDateTimeSelector/ControlledDateTimeSelector.js +2 -1
- package/dist/cjs/components/molecules/DatePicker/DatePicker.js +24 -17
- package/dist/cjs/components/molecules/DatePicker/styled.js +2 -1
- package/dist/cjs/components/molecules/DateTimePicker/DateTimePicker.js +25 -37
- package/dist/cjs/components/molecules/DateTimeSelector/DateTimeSelector.js +85 -70
- package/dist/cjs/components/molecules/DateTimeSelector/Selector.js +37 -29
- package/dist/cjs/components/molecules/DateTimeSelector/styled.js +2 -1
- package/dist/cjs/components/molecules/Grid/functions.js +2 -1
- package/dist/cjs/components/molecules/HintInputContainer/HintInputContainer.js +19 -34
- package/dist/cjs/components/molecules/IconTextButton/IconComponent.js +3 -2
- package/dist/cjs/components/molecules/InputPassword/InputPasswordIcon.js +5 -5
- package/dist/cjs/components/molecules/InputPassword/styled.js +1 -0
- package/dist/cjs/components/molecules/Snackbar/Snackbar.js +19 -12
- package/dist/cjs/components/molecules/Snackbar/styled.js +2 -1
- package/dist/cjs/components/molecules/TextArea/TextArea.js +41 -35
- package/dist/cjs/components/molecules/TextArea/styled.js +2 -1
- package/dist/cjs/styles/ThemeProvider.js +2 -2
- package/dist/cjs/styles/definitions.js +2 -1
- package/dist/cjs/utils/formatWithMask.js +2 -1
- package/dist/cjs/utils/masks.js +4 -1
- package/dist/esm/components/atoms/Avatar/Avatar.js +2 -1
- package/dist/esm/components/atoms/Badge/Badge.js +5 -2
- package/dist/esm/components/atoms/Badge/styled.js +2 -1
- package/dist/esm/components/atoms/BoxContent/BoxContent.js +2 -2
- package/dist/esm/components/atoms/Button/Button.js +10 -8
- package/dist/esm/components/atoms/Button/States/BaseState.js +5 -2
- package/dist/esm/components/atoms/Button/States/Error.js +2 -2
- package/dist/esm/components/atoms/Button/States/Loading.js +11 -8
- package/dist/esm/components/atoms/Button/States/Success.js +2 -2
- package/dist/esm/components/atoms/Button/styled.js +2 -1
- package/dist/esm/components/atoms/Card/Card.js +3 -3
- package/dist/esm/components/atoms/Card/Footer/Footer.js +2 -2
- package/dist/esm/components/atoms/Card/Header/Header.js +2 -2
- package/dist/esm/components/atoms/Checkbox/Checkbox.js +26 -21
- package/dist/esm/components/atoms/Divider/Divider.js +2 -2
- package/dist/esm/components/atoms/GroupButton/GroupButton.js +20 -17
- package/dist/esm/components/atoms/GroupButton/GroupButtonOption.js +2 -2
- package/dist/esm/components/atoms/GroupButton/styled.js +2 -1
- package/dist/esm/components/atoms/Icon/AntDesign.js +2 -2
- package/dist/esm/components/atoms/Icon/Entypo.js +2 -2
- package/dist/esm/components/atoms/Icon/Evil.js +2 -2
- package/dist/esm/components/atoms/Icon/Feather.js +2 -2
- package/dist/esm/components/atoms/Icon/FontAwesome.js +2 -2
- package/dist/esm/components/atoms/Icon/FontAwesomeFive.js +2 -2
- package/dist/esm/components/atoms/Icon/Fontisto.js +2 -2
- package/dist/esm/components/atoms/Icon/Foundation.js +2 -2
- package/dist/esm/components/atoms/Icon/Icon.js +3 -2
- package/dist/esm/components/atoms/Icon/Ionicon.js +2 -2
- package/dist/esm/components/atoms/Icon/Material.js +2 -2
- package/dist/esm/components/atoms/Icon/MaterialCommunity.js +2 -2
- package/dist/esm/components/atoms/Icon/Octicon.js +2 -2
- package/dist/esm/components/atoms/Icon/SimpleLine.js +2 -2
- package/dist/esm/components/atoms/Icon/Zocial.js +2 -2
- package/dist/esm/components/atoms/Input/Hint.js +13 -10
- package/dist/esm/components/atoms/Input/InputContainer/InputContainer.js +38 -34
- package/dist/esm/components/atoms/Input/InputElement/InputElement.js +2 -1
- package/dist/esm/components/atoms/Input/InputMaskElement/InputMaskElement.js +2 -1
- package/dist/esm/components/atoms/Input/PressableInputContainer/PressableInputContainer.js +2 -2
- package/dist/esm/components/atoms/Paper/Paper.js +2 -2
- package/dist/esm/components/atoms/PressableSurface/PressableSurface.js +3 -2
- package/dist/esm/components/atoms/ProgressBar/ProgressBar.js +16 -15
- package/dist/esm/components/atoms/ProgressBar/styled.js +2 -1
- package/dist/esm/components/atoms/RadioButton/RadioButton.js +27 -22
- package/dist/esm/components/atoms/Switch/Switch.js +14 -13
- package/dist/esm/components/atoms/Switch/styled.js +2 -1
- package/dist/esm/components/atoms/Tag/Tag.js +24 -21
- package/dist/esm/components/atoms/Text/Text.js +5 -5
- package/dist/esm/components/molecules/Calendar/Calendar.js +83 -73
- package/dist/esm/components/molecules/Calendar/components/MemoizedYearCard.js +13 -12
- package/dist/esm/components/molecules/Calendar/components/MonthWeek.js +7 -6
- package/dist/esm/components/molecules/Calendar/components/SelectYear.js +3 -2
- package/dist/esm/components/molecules/Calendar/components/Weekdays.js +6 -5
- package/dist/esm/components/molecules/ControlledDateTimeSelector/ControlledDateTimeSelector.js +2 -1
- package/dist/esm/components/molecules/DatePicker/DatePicker.js +24 -17
- package/dist/esm/components/molecules/DatePicker/styled.js +2 -1
- package/dist/esm/components/molecules/DateTimePicker/DateTimePicker.js +25 -18
- package/dist/esm/components/molecules/DateTimeSelector/DateTimeSelector.js +85 -70
- package/dist/esm/components/molecules/DateTimeSelector/Selector.js +37 -29
- package/dist/esm/components/molecules/DateTimeSelector/styled.js +2 -1
- package/dist/esm/components/molecules/Grid/functions.js +2 -1
- package/dist/esm/components/molecules/HintInputContainer/HintInputContainer.js +19 -15
- package/dist/esm/components/molecules/IconTextButton/IconComponent.js +3 -2
- package/dist/esm/components/molecules/InputPassword/InputPasswordIcon.js +5 -5
- package/dist/esm/components/molecules/InputPassword/styled.js +1 -0
- package/dist/esm/components/molecules/Snackbar/Snackbar.js +19 -12
- package/dist/esm/components/molecules/Snackbar/styled.js +2 -1
- package/dist/esm/components/molecules/TextArea/TextArea.js +41 -35
- package/dist/esm/components/molecules/TextArea/styled.js +2 -1
- package/dist/esm/styles/ThemeProvider.js +2 -2
- package/dist/esm/styles/definitions.js +2 -1
- package/dist/esm/utils/formatWithMask.js +2 -1
- package/dist/esm/utils/masks.js +4 -1
- package/dist/types/components/atoms/GroupButton/GroupButton.d.ts +1 -2
- package/dist/types/components/atoms/Icon/AntDesign.d.ts +1 -2
- package/dist/types/components/atoms/Icon/Entypo.d.ts +1 -2
- package/dist/types/components/atoms/Icon/Evil.d.ts +1 -2
- package/dist/types/components/atoms/Icon/Feather.d.ts +1 -2
- package/dist/types/components/atoms/Icon/FontAwesome.d.ts +1 -2
- package/dist/types/components/atoms/Icon/FontAwesomeFive.d.ts +1 -2
- package/dist/types/components/atoms/Icon/Fontisto.d.ts +1 -2
- package/dist/types/components/atoms/Icon/Foundation.d.ts +1 -2
- package/dist/types/components/atoms/Icon/Ionicon.d.ts +1 -2
- package/dist/types/components/atoms/Icon/Material.d.ts +1 -2
- package/dist/types/components/atoms/Icon/MaterialCommunity.d.ts +1 -2
- package/dist/types/components/atoms/Icon/Octicon.d.ts +1 -2
- package/dist/types/components/atoms/Icon/SimpleLine.d.ts +1 -2
- package/dist/types/components/atoms/Icon/Zocial.d.ts +1 -2
- package/dist/types/components/molecules/Calendar/components/MonthWeek.d.ts +1 -1
- package/dist/types/components/molecules/Calendar/components/SelectYear.d.ts +1 -1
- package/dist/types/components/molecules/Calendar/components/Weekdays.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import Text from '../../Text/Text.js';
|
|
3
3
|
import { StyledInputContainer, StyledBorderKeeper, StyledIconContent, StyledLabelContainer } from '../styled.js';
|
|
4
4
|
|
|
@@ -25,44 +25,48 @@ const InputContainer = ({
|
|
|
25
25
|
if (variant === "success") _defaultLabelColor = "success";
|
|
26
26
|
const _labelColorVariant = disabled ? "secondary" : _defaultLabelColor;
|
|
27
27
|
const _labelColorTone = disabled ? "light" : labelColorTone;
|
|
28
|
-
return /* @__PURE__ */
|
|
28
|
+
return /* @__PURE__ */ jsxs(
|
|
29
29
|
StyledInputContainer,
|
|
30
30
|
{
|
|
31
31
|
...rest,
|
|
32
32
|
style: inputContainerStyle,
|
|
33
33
|
focused,
|
|
34
|
-
disabled
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
34
|
+
disabled,
|
|
35
|
+
children: [
|
|
36
|
+
/* @__PURE__ */ jsx(
|
|
37
|
+
StyledBorderKeeper,
|
|
38
|
+
{
|
|
39
|
+
focused,
|
|
40
|
+
disabled,
|
|
41
|
+
borderColor: _defaultLabelColor
|
|
42
|
+
}
|
|
43
|
+
),
|
|
44
|
+
leftComponent && /* @__PURE__ */ jsx(StyledIconContent, { children: leftComponent }),
|
|
45
|
+
/* @__PURE__ */ jsxs(
|
|
46
|
+
StyledLabelContainer,
|
|
47
|
+
{
|
|
48
|
+
leftComponent,
|
|
49
|
+
rightComponent,
|
|
50
|
+
children: [
|
|
51
|
+
label && /* @__PURE__ */ jsx(
|
|
52
|
+
LabelComponent,
|
|
53
|
+
{
|
|
54
|
+
fontColor: labelColor,
|
|
55
|
+
colorTone: _labelColorTone,
|
|
56
|
+
colorVariant: _labelColorVariant,
|
|
57
|
+
typography: labelTypography,
|
|
58
|
+
fontWeight: labelWeight,
|
|
59
|
+
fontStack: labelStack,
|
|
60
|
+
children: label
|
|
61
|
+
}
|
|
62
|
+
),
|
|
63
|
+
children
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
),
|
|
67
|
+
rightComponent && /* @__PURE__ */ jsx(StyledIconContent, { children: rightComponent })
|
|
68
|
+
]
|
|
69
|
+
}
|
|
66
70
|
);
|
|
67
71
|
};
|
|
68
72
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
1
2
|
import React__default from 'react';
|
|
2
3
|
import { StyledInputElement } from '../styled.js';
|
|
3
4
|
import { useTheme } from '../../../../hooks/useTheme.js';
|
|
@@ -13,7 +14,7 @@ const InputElement = React__default.forwardRef(
|
|
|
13
14
|
}, ref) => {
|
|
14
15
|
const theme = useTheme();
|
|
15
16
|
const _placeholderColor = placeholderTextColor || theme.font?.color?.dark;
|
|
16
|
-
return /* @__PURE__ */
|
|
17
|
+
return /* @__PURE__ */ jsx(
|
|
17
18
|
StyledInputElement,
|
|
18
19
|
{
|
|
19
20
|
...rest,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
1
2
|
import { useTheme } from '@emotion/react';
|
|
2
3
|
import React__default, { useEffect, useCallback } from 'react';
|
|
3
4
|
import { StyledInputElement } from '../styled.js';
|
|
@@ -51,7 +52,7 @@ const InputMaskElement = React__default.forwardRef(
|
|
|
51
52
|
onChangeValue(value);
|
|
52
53
|
}
|
|
53
54
|
}, [value]);
|
|
54
|
-
return /* @__PURE__ */
|
|
55
|
+
return /* @__PURE__ */ jsx(
|
|
55
56
|
StyledInputElement,
|
|
56
57
|
{
|
|
57
58
|
...rest,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import InputContainer from '../InputContainer/InputContainer.js';
|
|
3
3
|
import { StyledPressableSurface } from './styled.js';
|
|
4
4
|
|
|
@@ -9,7 +9,7 @@ const PressableInputContainer = ({
|
|
|
9
9
|
children,
|
|
10
10
|
...rest
|
|
11
11
|
}) => {
|
|
12
|
-
return /* @__PURE__ */
|
|
12
|
+
return /* @__PURE__ */ jsx(StyledPressableSurface, { onPress, disabled, style, children: /* @__PURE__ */ jsx(InputContainer, { disabled, ...rest, children }) });
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
export { PressableInputContainer as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { StyledPaper } from './styled.js';
|
|
3
3
|
|
|
4
4
|
const Paper = ({
|
|
5
5
|
children,
|
|
6
6
|
elevated = false,
|
|
7
7
|
...rest
|
|
8
|
-
}) => /* @__PURE__ */
|
|
8
|
+
}) => /* @__PURE__ */ jsx(StyledPaper, { ...rest, elevated, children });
|
|
9
9
|
|
|
10
10
|
export { Paper as default };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
1
2
|
import { useTheme } from '@emotion/react';
|
|
2
|
-
import React__default from 'react';
|
|
3
3
|
import { Pressable } from 'react-native';
|
|
4
4
|
import '../Text/styled.js';
|
|
5
5
|
import '../Input/styled.js';
|
|
6
|
+
import 'react';
|
|
6
7
|
import 'currency.js';
|
|
7
8
|
import '../Input/InputElement/InputElement.js';
|
|
8
9
|
import '../Input/InputMaskElement/InputMaskElement.js';
|
|
@@ -31,7 +32,7 @@ const PressableSurface = ({
|
|
|
31
32
|
effectBaseColor,
|
|
32
33
|
bgColor
|
|
33
34
|
);
|
|
34
|
-
return /* @__PURE__ */
|
|
35
|
+
return /* @__PURE__ */ jsx(Pressable, { ...rest, style: readyStyle, children });
|
|
35
36
|
};
|
|
36
37
|
const prepareStyle = (props, effectColor, bgColor) => {
|
|
37
38
|
const {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { useTheme } from '@emotion/react';
|
|
3
3
|
import { extractNumbersFromString } from '../../../utils/extractNumbersFromString.js';
|
|
4
4
|
import '../Text/styled.js';
|
|
5
5
|
import '../Input/styled.js';
|
|
6
|
+
import 'react';
|
|
6
7
|
import 'currency.js';
|
|
7
8
|
import '../Input/InputElement/InputElement.js';
|
|
8
9
|
import '../Input/InputMaskElement/InputMaskElement.js';
|
|
@@ -31,27 +32,27 @@ const ProgressBar = ({
|
|
|
31
32
|
const minmax = (totalProgress - min) / (max - min);
|
|
32
33
|
const width = (minmax > 1 ? 1 : minmax < 0 ? 0 : minmax) * 100;
|
|
33
34
|
const progressPercent = `${width}%`;
|
|
34
|
-
return /* @__PURE__ */
|
|
35
|
+
return /* @__PURE__ */ jsx(
|
|
35
36
|
Segment,
|
|
36
37
|
{
|
|
37
|
-
key: index,
|
|
38
38
|
style: {
|
|
39
39
|
borderRightWidth: index == segments - 1 ? 0 : 2
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
40
|
+
},
|
|
41
|
+
children: /* @__PURE__ */ jsx(
|
|
42
|
+
Progress,
|
|
43
|
+
{
|
|
44
|
+
style: {
|
|
45
|
+
width: progressPercent,
|
|
46
|
+
backgroundColor: theme.color[color][colorTone],
|
|
47
|
+
borderRightWidth: width > 0 && width < 100 ? 2 : 0
|
|
48
|
+
}
|
|
49
49
|
}
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
)
|
|
51
|
+
},
|
|
52
|
+
index
|
|
52
53
|
);
|
|
53
54
|
});
|
|
54
|
-
return /* @__PURE__ */
|
|
55
|
+
return /* @__PURE__ */ jsx(Container, { ...rest, children: segmentsRender });
|
|
55
56
|
};
|
|
56
57
|
|
|
57
58
|
export { ProgressBar as default };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import styled from '@emotion/native';
|
|
2
|
-
import 'react';
|
|
2
|
+
import 'react/jsx-runtime';
|
|
3
3
|
import '../Text/styled.js';
|
|
4
4
|
import '../Input/styled.js';
|
|
5
|
+
import 'react';
|
|
5
6
|
import 'currency.js';
|
|
6
7
|
import '../Input/InputElement/InputElement.js';
|
|
7
8
|
import '../Input/InputMaskElement/InputMaskElement.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { Pressable } from 'react-native';
|
|
3
3
|
import Icon from '../Icon/Icon.js';
|
|
4
4
|
import { ViewStyled, IconViewStyled, IconWrapper, ScaledView } from './styled.js';
|
|
@@ -16,32 +16,37 @@ const RadioButton = ({
|
|
|
16
16
|
const handleChange = () => {
|
|
17
17
|
onChange?.(!checked);
|
|
18
18
|
};
|
|
19
|
-
return /* @__PURE__ */
|
|
19
|
+
return /* @__PURE__ */ jsx(
|
|
20
20
|
Pressable,
|
|
21
21
|
{
|
|
22
22
|
...rest,
|
|
23
23
|
disabled,
|
|
24
24
|
onPress: handleChange,
|
|
25
|
-
accessibilityRole: "radio"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
25
|
+
accessibilityRole: "radio",
|
|
26
|
+
children: /* @__PURE__ */ jsxs(ViewStyled, { children: [
|
|
27
|
+
labelPosition === "left" && children,
|
|
28
|
+
checked && /* @__PURE__ */ jsx(IconViewStyled, { children: /* @__PURE__ */ jsx(IconWrapper, { children: /* @__PURE__ */ jsx(ScaledView, { children: /* @__PURE__ */ jsx(
|
|
29
|
+
Icon,
|
|
30
|
+
{
|
|
31
|
+
name: "circle",
|
|
32
|
+
colorVariant: color,
|
|
33
|
+
colorTone,
|
|
34
|
+
type: "material-community",
|
|
35
|
+
size: "centi"
|
|
36
|
+
}
|
|
37
|
+
) }) }) }),
|
|
38
|
+
!checked && /* @__PURE__ */ jsx(IconViewStyled, { children: /* @__PURE__ */ jsx(IconWrapper, { children: /* @__PURE__ */ jsx(ScaledView, { children: /* @__PURE__ */ jsx(
|
|
39
|
+
Icon,
|
|
40
|
+
{
|
|
41
|
+
name: "circle",
|
|
42
|
+
fontColor: "light",
|
|
43
|
+
type: "material-community",
|
|
44
|
+
size: "centi"
|
|
45
|
+
}
|
|
46
|
+
) }) }) }),
|
|
47
|
+
labelPosition === "right" && children
|
|
48
|
+
] })
|
|
49
|
+
}
|
|
45
50
|
);
|
|
46
51
|
};
|
|
47
52
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
1
2
|
import { useTheme } from '@emotion/react';
|
|
2
3
|
import React__default, { useEffect, useCallback } from 'react';
|
|
3
4
|
import { Animated } from 'react-native';
|
|
@@ -57,27 +58,27 @@ const Switch = ({
|
|
|
57
58
|
const translate = calculateTranslate();
|
|
58
59
|
transitionSwitch(active, translate, transitionValue, animatedColor);
|
|
59
60
|
};
|
|
60
|
-
return /* @__PURE__ */
|
|
61
|
+
return /* @__PURE__ */ jsx(
|
|
61
62
|
PressableSurface,
|
|
62
63
|
{
|
|
63
64
|
...rest,
|
|
64
65
|
onPress: handleChange,
|
|
65
66
|
effect: "none",
|
|
66
|
-
disabled
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
StyledSwitchContent,
|
|
70
|
-
{
|
|
71
|
-
onLayout: handleSwitchLayout,
|
|
72
|
-
style: { backgroundColor: interpolateColor }
|
|
73
|
-
},
|
|
74
|
-
/* @__PURE__ */ React__default.createElement(
|
|
75
|
-
StyledSwitch,
|
|
67
|
+
disabled,
|
|
68
|
+
children: /* @__PURE__ */ jsx(
|
|
69
|
+
StyledSwitchContent,
|
|
76
70
|
{
|
|
77
|
-
|
|
71
|
+
onLayout: handleSwitchLayout,
|
|
72
|
+
style: { backgroundColor: interpolateColor },
|
|
73
|
+
children: /* @__PURE__ */ jsx(
|
|
74
|
+
StyledSwitch,
|
|
75
|
+
{
|
|
76
|
+
style: [dotStyle, { transform: [{ translateX: transitionValue }] }]
|
|
77
|
+
}
|
|
78
|
+
)
|
|
78
79
|
}
|
|
79
80
|
)
|
|
80
|
-
|
|
81
|
+
}
|
|
81
82
|
);
|
|
82
83
|
};
|
|
83
84
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import styled from '@emotion/native';
|
|
2
2
|
import { Animated } from 'react-native';
|
|
3
|
-
import 'react';
|
|
3
|
+
import 'react/jsx-runtime';
|
|
4
4
|
import '../Text/styled.js';
|
|
5
5
|
import '../Input/styled.js';
|
|
6
|
+
import 'react';
|
|
6
7
|
import 'currency.js';
|
|
7
8
|
import '../Input/InputElement/InputElement.js';
|
|
8
9
|
import '../Input/InputMaskElement/InputMaskElement.js';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
1
2
|
import React__default, { useState, useCallback } from 'react';
|
|
2
3
|
import { Animated } from 'react-native';
|
|
3
4
|
import PressableSurface from '../PressableSurface/PressableSurface.js';
|
|
@@ -29,7 +30,7 @@ const Tag = ({
|
|
|
29
30
|
fadeOut();
|
|
30
31
|
setTimeout(() => setDismiss(true), duration);
|
|
31
32
|
}, [onDismiss]);
|
|
32
|
-
return /* @__PURE__ */
|
|
33
|
+
return /* @__PURE__ */ jsxs(
|
|
33
34
|
StyledTagContainer,
|
|
34
35
|
{
|
|
35
36
|
backgroundColorTone,
|
|
@@ -37,26 +38,28 @@ const Tag = ({
|
|
|
37
38
|
variant,
|
|
38
39
|
style: [{ opacity: fadeAnim }, style],
|
|
39
40
|
visible: !dismiss,
|
|
40
|
-
...rest
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
41
|
+
...rest,
|
|
42
|
+
children: [
|
|
43
|
+
icon && /* @__PURE__ */ jsx(
|
|
44
|
+
StyledLeftIcon,
|
|
45
|
+
{
|
|
46
|
+
size: icon.size || "micro",
|
|
47
|
+
colorVariant: icon.colorVariant || "primary",
|
|
48
|
+
...icon
|
|
49
|
+
}
|
|
50
|
+
),
|
|
51
|
+
value,
|
|
52
|
+
canDismiss && /* @__PURE__ */ jsx(PressableSurface, { onPress: handleDismiss, children: /* @__PURE__ */ jsx(
|
|
53
|
+
StyledCloseIcon,
|
|
54
|
+
{
|
|
55
|
+
name: "close-outline",
|
|
56
|
+
type: "ionicon",
|
|
57
|
+
size: "centi",
|
|
58
|
+
fontColor: "medium"
|
|
59
|
+
}
|
|
60
|
+
) })
|
|
61
|
+
]
|
|
62
|
+
}
|
|
60
63
|
);
|
|
61
64
|
};
|
|
62
65
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { StyledColoredText } from './styled.js';
|
|
3
3
|
import { getLabel } from './functions.js';
|
|
4
4
|
|
|
@@ -16,7 +16,7 @@ const Text = ({
|
|
|
16
16
|
capitalFirst = false,
|
|
17
17
|
...rest
|
|
18
18
|
}) => {
|
|
19
|
-
return /* @__PURE__ */
|
|
19
|
+
return /* @__PURE__ */ jsx(
|
|
20
20
|
StyledColoredText,
|
|
21
21
|
{
|
|
22
22
|
...rest,
|
|
@@ -28,9 +28,9 @@ const Text = ({
|
|
|
28
28
|
typography,
|
|
29
29
|
numberOfLines,
|
|
30
30
|
ellipsizeMode,
|
|
31
|
-
textTransform
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
textTransform,
|
|
32
|
+
children: getLabel(children, capitalFirst)
|
|
33
|
+
}
|
|
34
34
|
);
|
|
35
35
|
};
|
|
36
36
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
1
2
|
import { set, getWeeksInMonth, add, format } from 'date-fns';
|
|
2
3
|
import * as React from 'react';
|
|
3
4
|
import { useRef } from 'react';
|
|
@@ -84,84 +85,93 @@ function Calendar({
|
|
|
84
85
|
},
|
|
85
86
|
[referenceDate]
|
|
86
87
|
);
|
|
87
|
-
return /* @__PURE__ */
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
88
|
+
return /* @__PURE__ */ jsxs(View, { ...rest, children: [
|
|
89
|
+
/* @__PURE__ */ jsxs(TitleContainer, { children: [
|
|
90
|
+
/* @__PURE__ */ jsx(
|
|
91
|
+
Control,
|
|
92
|
+
{
|
|
93
|
+
onPress: handlePressPrev,
|
|
94
|
+
align: "start",
|
|
95
|
+
disabled: showSelectYear,
|
|
96
|
+
isLeft: true,
|
|
97
|
+
children: /* @__PURE__ */ jsx(
|
|
98
|
+
Icon,
|
|
99
|
+
{
|
|
100
|
+
name: "chevron-left",
|
|
101
|
+
type: "material-community",
|
|
102
|
+
size: "kilo",
|
|
103
|
+
colorVariant: "secondary",
|
|
104
|
+
colorTone: "medium"
|
|
105
|
+
}
|
|
106
|
+
)
|
|
107
|
+
}
|
|
108
|
+
),
|
|
109
|
+
/* @__PURE__ */ jsx(TouchableOpacity, { onPress: handlePressSelectYear, children: /* @__PURE__ */ jsx(
|
|
110
|
+
Capitalized,
|
|
111
|
+
{
|
|
112
|
+
colorVariant: "secondary",
|
|
113
|
+
colorTone: "xdark",
|
|
114
|
+
fontWeight: "bold",
|
|
115
|
+
children: format(referenceDate, "MMMM yyyy", { locale })
|
|
116
|
+
}
|
|
117
|
+
) }),
|
|
118
|
+
/* @__PURE__ */ jsx(
|
|
119
|
+
Control,
|
|
120
|
+
{
|
|
121
|
+
onPress: handlePressNext,
|
|
122
|
+
align: "end",
|
|
123
|
+
disabled: showSelectYear,
|
|
124
|
+
isRight: true,
|
|
125
|
+
children: /* @__PURE__ */ jsx(
|
|
126
|
+
Icon,
|
|
127
|
+
{
|
|
128
|
+
name: "chevron-right",
|
|
129
|
+
type: "material-community",
|
|
130
|
+
size: "kilo",
|
|
131
|
+
colorVariant: "secondary",
|
|
132
|
+
colorTone: "medium"
|
|
133
|
+
}
|
|
134
|
+
)
|
|
135
|
+
}
|
|
136
|
+
)
|
|
137
|
+
] }),
|
|
138
|
+
showSelectYear ? /* @__PURE__ */ jsx(Content, { height: calendarHeightRef.current, children: /* @__PURE__ */ jsx(
|
|
139
|
+
SelectYear,
|
|
97
140
|
{
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
colorTone: "medium"
|
|
141
|
+
currentYear: referenceDate.getFullYear(),
|
|
142
|
+
onSelectYear: handleSelectYear,
|
|
143
|
+
TextComponent,
|
|
144
|
+
...selectYearProps
|
|
103
145
|
}
|
|
104
|
-
)
|
|
105
|
-
|
|
106
|
-
Capitalized,
|
|
107
|
-
{
|
|
108
|
-
colorVariant: "secondary",
|
|
109
|
-
colorTone: "xdark",
|
|
110
|
-
fontWeight: "bold"
|
|
111
|
-
},
|
|
112
|
-
format(referenceDate, "MMMM yyyy", { locale })
|
|
113
|
-
)), /* @__PURE__ */ React.createElement(
|
|
114
|
-
Control,
|
|
115
|
-
{
|
|
116
|
-
onPress: handlePressNext,
|
|
117
|
-
align: "end",
|
|
118
|
-
disabled: showSelectYear,
|
|
119
|
-
isRight: true
|
|
120
|
-
},
|
|
121
|
-
/* @__PURE__ */ React.createElement(
|
|
122
|
-
Icon,
|
|
146
|
+
) }) : /* @__PURE__ */ jsxs(
|
|
147
|
+
Content,
|
|
123
148
|
{
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
149
|
+
onLayout: (e) => calendarHeightRef.current = e.nativeEvent.layout.height,
|
|
150
|
+
children: [
|
|
151
|
+
/* @__PURE__ */ jsx(
|
|
152
|
+
Weekdays,
|
|
153
|
+
{
|
|
154
|
+
locale,
|
|
155
|
+
calendar,
|
|
156
|
+
Capitalized
|
|
157
|
+
}
|
|
158
|
+
),
|
|
159
|
+
calendar.map((week, index) => /* @__PURE__ */ jsx(
|
|
160
|
+
MonthWeek,
|
|
161
|
+
{
|
|
162
|
+
week,
|
|
163
|
+
type,
|
|
164
|
+
value,
|
|
165
|
+
onChange,
|
|
166
|
+
TextComponent,
|
|
167
|
+
referenceDate
|
|
168
|
+
},
|
|
169
|
+
`week-${index}`
|
|
170
|
+
))
|
|
171
|
+
]
|
|
129
172
|
}
|
|
130
173
|
)
|
|
131
|
-
|
|
132
|
-
SelectYear,
|
|
133
|
-
{
|
|
134
|
-
currentYear: referenceDate.getFullYear(),
|
|
135
|
-
onSelectYear: handleSelectYear,
|
|
136
|
-
TextComponent,
|
|
137
|
-
...selectYearProps
|
|
138
|
-
}
|
|
139
|
-
)) : /* @__PURE__ */ React.createElement(
|
|
140
|
-
Content,
|
|
141
|
-
{
|
|
142
|
-
onLayout: (e) => calendarHeightRef.current = e.nativeEvent.layout.height
|
|
143
|
-
},
|
|
144
|
-
/* @__PURE__ */ React.createElement(
|
|
145
|
-
Weekdays,
|
|
146
|
-
{
|
|
147
|
-
locale,
|
|
148
|
-
calendar,
|
|
149
|
-
Capitalized
|
|
150
|
-
}
|
|
151
|
-
),
|
|
152
|
-
calendar.map((week, index) => /* @__PURE__ */ React.createElement(
|
|
153
|
-
MonthWeek,
|
|
154
|
-
{
|
|
155
|
-
week,
|
|
156
|
-
type,
|
|
157
|
-
value,
|
|
158
|
-
key: `week-${index}`,
|
|
159
|
-
onChange,
|
|
160
|
-
TextComponent,
|
|
161
|
-
referenceDate
|
|
162
|
-
}
|
|
163
|
-
))
|
|
164
|
-
));
|
|
174
|
+
] });
|
|
165
175
|
}
|
|
166
176
|
|
|
167
177
|
export { Calendar as default };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
1
2
|
import React__default from 'react';
|
|
2
3
|
import { YearCard } from '../styled.js';
|
|
3
4
|
|
|
@@ -7,23 +8,23 @@ const MemoizedYearCard = React__default.memo(
|
|
|
7
8
|
isSelected,
|
|
8
9
|
onPress,
|
|
9
10
|
TextComponent
|
|
10
|
-
}) => /* @__PURE__ */
|
|
11
|
+
}) => /* @__PURE__ */ jsx(
|
|
11
12
|
YearCard,
|
|
12
13
|
{
|
|
13
14
|
id: String(year),
|
|
14
|
-
key: year,
|
|
15
15
|
isSelected,
|
|
16
|
-
onPress
|
|
16
|
+
onPress,
|
|
17
|
+
children: /* @__PURE__ */ jsx(
|
|
18
|
+
TextComponent,
|
|
19
|
+
{
|
|
20
|
+
colorVariant: isSelected ? "primary" : "secondary",
|
|
21
|
+
colorTone: "xdark",
|
|
22
|
+
typography: "sub",
|
|
23
|
+
children: year
|
|
24
|
+
}
|
|
25
|
+
)
|
|
17
26
|
},
|
|
18
|
-
|
|
19
|
-
TextComponent,
|
|
20
|
-
{
|
|
21
|
-
colorVariant: isSelected ? "primary" : "secondary",
|
|
22
|
-
colorTone: "xdark",
|
|
23
|
-
typography: "sub"
|
|
24
|
-
},
|
|
25
|
-
year
|
|
26
|
-
)
|
|
27
|
+
year
|
|
27
28
|
)
|
|
28
29
|
);
|
|
29
30
|
|