@tecsinapse/react-core 3.4.14 → 3.4.15-beta.1
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 +38 -30
- 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 +20 -13
- 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/hooks/useDebouncedState.js +1 -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 +38 -30
- 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 +20 -13
- 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/hooks/useDebouncedState.js +1 -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/Badge/Badge.d.ts +1 -1
- package/dist/types/components/atoms/Button/Button.d.ts +3 -3
- package/dist/types/components/atoms/Card/Card.d.ts +2 -2
- package/dist/types/components/atoms/Card/Footer/Footer.d.ts +2 -2
- package/dist/types/components/atoms/Card/Header/Header.d.ts +2 -2
- package/dist/types/components/atoms/Checkbox/Checkbox.d.ts +2 -2
- package/dist/types/components/atoms/GroupButton/GroupButton.d.ts +2 -2
- package/dist/types/components/atoms/GroupButton/GroupButtonOption.d.ts +2 -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/atoms/Input/InputContainer/InputContainer.d.ts +4 -4
- package/dist/types/components/atoms/Input/PressableInputContainer/PressableInputContainer.d.ts +2 -1
- package/dist/types/components/atoms/Paper/Paper.d.ts +2 -2
- package/dist/types/components/atoms/PressableSurface/PressableSurface.d.ts +2 -2
- package/dist/types/components/atoms/ProgressBar/ProgressBar.d.ts +2 -1
- package/dist/types/components/atoms/RadioButton/RadioButton.d.ts +2 -2
- package/dist/types/components/molecules/Calendar/Calendar.d.ts +1 -1
- package/dist/types/components/molecules/Calendar/components/MemoizedYearCard.d.ts +1 -1
- 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/dist/types/components/molecules/DatePicker/DatePicker.d.ts +3 -3
- package/dist/types/components/molecules/DateTimePicker/DateTimePicker.d.ts +2 -2
- package/dist/types/components/molecules/Grid/index.d.ts +1 -1
- package/dist/types/components/molecules/HintInputContainer/HintInputContainer.d.ts +2 -2
- package/dist/types/components/molecules/Snackbar/Snackbar.d.ts +2 -2
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import Icon from '../../atoms/Icon/Icon.js';
|
|
3
3
|
import { StyledPasswordButtonIcon } from './styled.js';
|
|
4
4
|
|
|
@@ -8,15 +8,15 @@ const InputPasswordIcon = ({
|
|
|
8
8
|
...rest
|
|
9
9
|
}) => {
|
|
10
10
|
const icon = revealed ? "eye-outline" : "eye-off-outline";
|
|
11
|
-
return /* @__PURE__ */
|
|
11
|
+
return /* @__PURE__ */ jsx(
|
|
12
12
|
StyledPasswordButtonIcon,
|
|
13
13
|
{
|
|
14
14
|
...rest,
|
|
15
15
|
variant: "text",
|
|
16
16
|
size: "small",
|
|
17
|
-
onPress: () => onChangeState(!revealed)
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
onPress: () => onChangeState(!revealed),
|
|
18
|
+
children: /* @__PURE__ */ jsx(Icon, { name: icon, type: "ionicon", size: "centi" })
|
|
19
|
+
}
|
|
20
20
|
);
|
|
21
21
|
};
|
|
22
22
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
1
2
|
import React__default from 'react';
|
|
2
3
|
import { Animated } from 'react-native';
|
|
3
4
|
import Icon from '../../atoms/Icon/Icon.js';
|
|
@@ -19,7 +20,7 @@ const Snackbar = ({
|
|
|
19
20
|
style
|
|
20
21
|
}) => {
|
|
21
22
|
const fadeAnim = React__default.useRef(new Animated.Value(0)).current;
|
|
22
|
-
const timeoutRef = React__default.useRef();
|
|
23
|
+
const timeoutRef = React__default.useRef(void 0);
|
|
23
24
|
const fadeIn = () => {
|
|
24
25
|
Animated.timing(fadeAnim, {
|
|
25
26
|
toValue: 1,
|
|
@@ -57,7 +58,7 @@ const Snackbar = ({
|
|
|
57
58
|
}, timeout + FADE_DURATION);
|
|
58
59
|
}
|
|
59
60
|
}, [open, timeout]);
|
|
60
|
-
return /* @__PURE__ */
|
|
61
|
+
return /* @__PURE__ */ jsx(
|
|
61
62
|
SnackbarContainer,
|
|
62
63
|
{
|
|
63
64
|
colorVariant,
|
|
@@ -67,17 +68,23 @@ const Snackbar = ({
|
|
|
67
68
|
anchorDistance,
|
|
68
69
|
visible: open,
|
|
69
70
|
style: [{ opacity: fadeAnim }, style],
|
|
70
|
-
timeout
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
71
|
+
timeout,
|
|
72
|
+
children: /* @__PURE__ */ jsxs(StyledContainerFlexRow, { children: [
|
|
73
|
+
/* @__PURE__ */ jsxs(ContentContainer, { children: [
|
|
74
|
+
leftIcon && /* @__PURE__ */ jsx(IconContainer, { children: /* @__PURE__ */ jsx(Icon, { ...leftIcon, size: "centi" }) }),
|
|
75
|
+
/* @__PURE__ */ jsx(TextContainer, { children })
|
|
76
|
+
] }),
|
|
77
|
+
dismissable && /* @__PURE__ */ jsx(DismissContainer, { effect: "none", onPress: handleDismiss, children: /* @__PURE__ */ jsx(
|
|
78
|
+
Icon,
|
|
79
|
+
{
|
|
80
|
+
...rightIcon,
|
|
81
|
+
size: "centi",
|
|
82
|
+
name: "close",
|
|
83
|
+
type: "material-community"
|
|
84
|
+
}
|
|
85
|
+
) })
|
|
86
|
+
] })
|
|
87
|
+
}
|
|
81
88
|
);
|
|
82
89
|
};
|
|
83
90
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import styled, { css } from '@emotion/native';
|
|
2
2
|
import { View } from 'react-native';
|
|
3
|
-
import 'react';
|
|
3
|
+
import 'react/jsx-runtime';
|
|
4
4
|
import '../../atoms/Text/styled.js';
|
|
5
5
|
import '../../atoms/Input/styled.js';
|
|
6
|
+
import 'react';
|
|
6
7
|
import 'currency.js';
|
|
7
8
|
import '../../atoms/Input/InputElement/InputElement.js';
|
|
8
9
|
import '../../atoms/Input/InputMaskElement/InputMaskElement.js';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { View } from 'react-native';
|
|
3
3
|
import Hint from '../../atoms/Input/Hint.js';
|
|
4
|
+
import 'react';
|
|
4
5
|
import 'currency.js';
|
|
5
6
|
import Text from '../../atoms/Text/Text.js';
|
|
6
7
|
import '../../atoms/Input/styled.js';
|
|
@@ -38,41 +39,46 @@ const TextArea = ({
|
|
|
38
39
|
if (maxLength && length > maxLength) {
|
|
39
40
|
length = maxLength;
|
|
40
41
|
}
|
|
41
|
-
const _hint = hintComponent || /* @__PURE__ */
|
|
42
|
-
return /* @__PURE__ */
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
label,
|
|
46
|
-
labelColor,
|
|
47
|
-
labelColorVariant,
|
|
48
|
-
labelColorTone,
|
|
49
|
-
labelTypography,
|
|
50
|
-
labelStack,
|
|
51
|
-
labelWeight,
|
|
52
|
-
LabelComponent: TextComponent,
|
|
53
|
-
leftComponent,
|
|
54
|
-
rightComponent,
|
|
55
|
-
borderColor,
|
|
56
|
-
borderColorGradation,
|
|
57
|
-
inputContainerStyle,
|
|
58
|
-
focused,
|
|
59
|
-
disabled,
|
|
60
|
-
variant
|
|
61
|
-
},
|
|
62
|
-
children,
|
|
63
|
-
maxLength && /* @__PURE__ */ React__default.createElement(
|
|
64
|
-
TextComponent,
|
|
42
|
+
const _hint = hintComponent || /* @__PURE__ */ jsx(Hint, { TextComponent, text: hint, variant });
|
|
43
|
+
return /* @__PURE__ */ jsxs(View, { style, children: [
|
|
44
|
+
/* @__PURE__ */ jsxs(
|
|
45
|
+
StyledInputContainer,
|
|
65
46
|
{
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
47
|
+
label,
|
|
48
|
+
labelColor,
|
|
49
|
+
labelColorVariant,
|
|
50
|
+
labelColorTone,
|
|
51
|
+
labelTypography,
|
|
52
|
+
labelStack,
|
|
53
|
+
labelWeight,
|
|
54
|
+
LabelComponent: TextComponent,
|
|
55
|
+
leftComponent,
|
|
56
|
+
rightComponent,
|
|
57
|
+
borderColor,
|
|
58
|
+
borderColorGradation,
|
|
59
|
+
inputContainerStyle,
|
|
60
|
+
focused,
|
|
61
|
+
disabled,
|
|
62
|
+
variant,
|
|
63
|
+
children: [
|
|
64
|
+
children,
|
|
65
|
+
maxLength && /* @__PURE__ */ jsx(
|
|
66
|
+
TextComponent,
|
|
67
|
+
{
|
|
68
|
+
colorVariant: "secondary",
|
|
69
|
+
colorTone: "medium",
|
|
70
|
+
typography: "label",
|
|
71
|
+
fontStack: "default",
|
|
72
|
+
fontWeight: "bold",
|
|
73
|
+
style: { textAlign: "right" },
|
|
74
|
+
children: `${length}/${maxLength}`
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
),
|
|
80
|
+
hint && _hint
|
|
81
|
+
] });
|
|
76
82
|
};
|
|
77
83
|
|
|
78
84
|
export { TextArea as default };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import styled from '@emotion/native';
|
|
2
2
|
import { extractNumbersFromString } from '../../../utils/extractNumbersFromString.js';
|
|
3
|
-
import 'react';
|
|
3
|
+
import 'react/jsx-runtime';
|
|
4
4
|
import '../../atoms/Text/styled.js';
|
|
5
5
|
import '../../atoms/Input/styled.js';
|
|
6
|
+
import 'react';
|
|
6
7
|
import 'currency.js';
|
|
7
8
|
import InputContainer from '../../atoms/Input/InputContainer/InputContainer.js';
|
|
8
9
|
import InputElement from '../../atoms/Input/InputElement/InputElement.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useRef, useState, useEffect } from 'react';
|
|
2
2
|
|
|
3
3
|
function useDebouncedState(initialState, timeoutCallback, timeoutMs = 166) {
|
|
4
|
-
const timeoutId = useRef();
|
|
4
|
+
const timeoutId = useRef(void 0);
|
|
5
5
|
const [state, setState] = useState(initialState);
|
|
6
6
|
useEffect(() => {
|
|
7
7
|
if (timeoutId.current) clearTimeout(timeoutId.current);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { ThemeProvider as ThemeProvider$1 } from '@emotion/react';
|
|
3
3
|
|
|
4
4
|
const ThemeProvider = ({
|
|
5
5
|
theme,
|
|
6
6
|
children
|
|
7
7
|
}) => {
|
|
8
|
-
return /* @__PURE__ */
|
|
8
|
+
return /* @__PURE__ */ jsx(ThemeProvider$1, { theme, children });
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { ThemeProvider as default };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import 'react';
|
|
1
|
+
import 'react/jsx-runtime';
|
|
2
2
|
import '../components/atoms/Text/styled.js';
|
|
3
3
|
import '../components/atoms/Input/styled.js';
|
|
4
|
+
import 'react';
|
|
4
5
|
import 'currency.js';
|
|
5
6
|
import '../components/atoms/Input/InputElement/InputElement.js';
|
|
6
7
|
import '../components/atoms/Input/InputMaskElement/InputMaskElement.js';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import 'react';
|
|
1
|
+
import 'react/jsx-runtime';
|
|
2
2
|
import '../components/atoms/Text/styled.js';
|
|
3
3
|
import '../components/atoms/Input/styled.js';
|
|
4
|
+
import 'react';
|
|
4
5
|
import { getInternalNumberAndMask } from '../components/atoms/Input/hooks/useNumberMask.js';
|
|
5
6
|
import { getMask, mergeMask } from '../components/atoms/Input/hooks/useStringMask.js';
|
|
6
7
|
import '../components/atoms/Input/InputElement/InputElement.js';
|
package/dist/esm/utils/masks.js
CHANGED
|
@@ -14,7 +14,10 @@ const Masks = {
|
|
|
14
14
|
const isCellPhoneExtended = onlyNumbers.length === 11;
|
|
15
15
|
return value?.length <= 14 && !isCellPhoneExtended ? Masks.PHONE : Masks.PHONE_EXTENDED;
|
|
16
16
|
},
|
|
17
|
-
COMBINED_CPF_CNPJ: (value) =>
|
|
17
|
+
COMBINED_CPF_CNPJ: (value) => {
|
|
18
|
+
const onlyNumbers = extractDigitsFromString(value);
|
|
19
|
+
return onlyNumbers.length <= 11 ? Masks.CPF : Masks.CNPJ;
|
|
20
|
+
}
|
|
18
21
|
};
|
|
19
22
|
|
|
20
23
|
export { Masks };
|
|
@@ -8,5 +8,5 @@ export interface BadgeProps {
|
|
|
8
8
|
value: React.ReactNode;
|
|
9
9
|
children?: ReactNode;
|
|
10
10
|
}
|
|
11
|
-
declare const Badge: ({ children, style, color, tone, value, }: BadgeProps) =>
|
|
11
|
+
declare const Badge: ({ children, style, color, tone, value, }: BadgeProps) => React.ReactElement;
|
|
12
12
|
export default Badge;
|
|
@@ -20,9 +20,9 @@ export interface ButtonProps extends PressableSurfaceProps {
|
|
|
20
20
|
borderRadius?: BorderRadiusType;
|
|
21
21
|
size?: ButtonSizeType;
|
|
22
22
|
state?: ButtonStateType;
|
|
23
|
-
loadingComponent?:
|
|
24
|
-
errorComponent?:
|
|
25
|
-
successComponent?:
|
|
23
|
+
loadingComponent?: React.ReactNode;
|
|
24
|
+
errorComponent?: React.ReactNode;
|
|
25
|
+
successComponent?: React.ReactNode;
|
|
26
26
|
}
|
|
27
27
|
declare const Button: FC<ButtonProps>;
|
|
28
28
|
export default Button;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { PressableSurfaceProps } from '../PressableSurface';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
2
|
+
import React, { ReactNode } from 'react';
|
|
3
3
|
import { GestureResponderEvent } from 'react-native';
|
|
4
4
|
import { PaperProps } from '../Paper';
|
|
5
5
|
export interface CardProps extends PaperProps, Omit<PressableSurfaceProps, 'style'> {
|
|
6
6
|
onPress?: null | ((event: GestureResponderEvent) => void);
|
|
7
7
|
children?: ReactNode;
|
|
8
8
|
}
|
|
9
|
-
declare const Card: ({ children, elevated, onPress, ...rest }: CardProps) =>
|
|
9
|
+
declare const Card: ({ children, elevated, onPress, ...rest }: CardProps) => React.ReactElement;
|
|
10
10
|
export default Card;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
3
|
export interface FooterProps {
|
|
4
4
|
style?: StyleProp<ViewStyle>;
|
|
5
5
|
children?: ReactNode;
|
|
6
6
|
}
|
|
7
|
-
declare const Footer: ({ children, style }: FooterProps) =>
|
|
7
|
+
declare const Footer: ({ children, style }: FooterProps) => React.ReactElement;
|
|
8
8
|
export default Footer;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
3
|
export interface HeaderProps {
|
|
4
4
|
style?: StyleProp<ViewStyle>;
|
|
5
5
|
children?: ReactNode;
|
|
6
6
|
}
|
|
7
|
-
declare const Header: ({ children, style }: HeaderProps) =>
|
|
7
|
+
declare const Header: ({ children, style }: HeaderProps) => React.ReactElement;
|
|
8
8
|
export default Header;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
3
|
import { ColorGradationType, ColorType } from '../../../types/defaults';
|
|
4
4
|
export interface CheckboxProps {
|
|
@@ -11,5 +11,5 @@ export interface CheckboxProps {
|
|
|
11
11
|
style?: StyleProp<ViewStyle>;
|
|
12
12
|
children?: ReactNode;
|
|
13
13
|
}
|
|
14
|
-
declare const Checkbox: ({ children, checked, onChange, color, colorTone, labelPosition, disabled, ...rest }: CheckboxProps) =>
|
|
14
|
+
declare const Checkbox: ({ children, checked, onChange, color, colorTone, labelPosition, disabled, ...rest }: CheckboxProps) => React.ReactElement;
|
|
15
15
|
export default Checkbox;
|
|
@@ -23,11 +23,11 @@ export interface GroupButtonProps<T> {
|
|
|
23
23
|
value: T;
|
|
24
24
|
options: GroupButtonValue<T>[];
|
|
25
25
|
renderKey: (option?: T) => string | number | undefined;
|
|
26
|
-
renderOption: (option: T, active: boolean) =>
|
|
26
|
+
renderOption: (option: T, active: boolean) => React.ReactElement;
|
|
27
27
|
onChange: (option: T) => void;
|
|
28
28
|
buttonSize?: ButtonSizeType;
|
|
29
29
|
style?: StyleProp<ViewStyle>;
|
|
30
30
|
disableAllOptions?: boolean;
|
|
31
31
|
}
|
|
32
|
-
declare const GroupButton: <T>({ style, ...rest }: GroupButtonProps<T>) =>
|
|
32
|
+
declare const GroupButton: <T>({ style, ...rest }: GroupButtonProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
33
33
|
export default GroupButton;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
2
|
import { TextProps } from '../Text';
|
|
3
3
|
export interface GroupButtonOptionProps {
|
|
4
4
|
active: boolean;
|
|
5
5
|
description: string;
|
|
6
6
|
TextComponent?: FC<TextProps>;
|
|
7
7
|
}
|
|
8
|
-
declare const GroupButtonOption: ({ TextComponent, active, description, }: GroupButtonOptionProps) =>
|
|
8
|
+
declare const GroupButtonOption: ({ TextComponent, active, description, }: GroupButtonOptionProps) => React.ReactElement;
|
|
9
9
|
export default GroupButtonOption;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { IconInternalProps } from './types';
|
|
3
|
-
declare const AntDesign: ({ size, color, name, ...rest }: IconInternalProps) =>
|
|
2
|
+
declare const AntDesign: ({ size, color, name, ...rest }: IconInternalProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default AntDesign;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { IconInternalProps } from './types';
|
|
3
|
-
declare const Entypo: ({ size, color, name, ...rest }: IconInternalProps) =>
|
|
2
|
+
declare const Entypo: ({ size, color, name, ...rest }: IconInternalProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default Entypo;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { IconInternalProps } from './types';
|
|
3
|
-
declare const Evil: ({ size, color, name, ...rest }: IconInternalProps) =>
|
|
2
|
+
declare const Evil: ({ size, color, name, ...rest }: IconInternalProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default Evil;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { IconInternalProps } from './types';
|
|
3
|
-
declare const Feather: ({ size, color, name, ...rest }: IconInternalProps) =>
|
|
2
|
+
declare const Feather: ({ size, color, name, ...rest }: IconInternalProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default Feather;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { IconInternalProps } from './types';
|
|
3
|
-
declare const FontAwesome: ({ size, color, name, ...rest }: IconInternalProps) =>
|
|
2
|
+
declare const FontAwesome: ({ size, color, name, ...rest }: IconInternalProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default FontAwesome;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { IconInternalProps } from './types';
|
|
3
|
-
declare const FontAwesomeFive: ({ size, color, name, ...rest }: IconInternalProps) =>
|
|
2
|
+
declare const FontAwesomeFive: ({ size, color, name, ...rest }: IconInternalProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default FontAwesomeFive;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { IconInternalProps } from './types';
|
|
3
|
-
declare const Fontisto: ({ size, color, name, ...rest }: IconInternalProps) =>
|
|
2
|
+
declare const Fontisto: ({ size, color, name, ...rest }: IconInternalProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default Fontisto;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { IconInternalProps } from './types';
|
|
3
|
-
declare const Foundation: ({ size, color, name, ...rest }: IconInternalProps) =>
|
|
2
|
+
declare const Foundation: ({ size, color, name, ...rest }: IconInternalProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default Foundation;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { IconInternalProps } from './types';
|
|
3
|
-
declare const Ionicon: ({ size, color, name, ...rest }: IconInternalProps) =>
|
|
2
|
+
declare const Ionicon: ({ size, color, name, ...rest }: IconInternalProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default Ionicon;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { IconInternalProps } from './types';
|
|
3
|
-
declare const Material: ({ size, color, name, ...rest }: IconInternalProps) =>
|
|
2
|
+
declare const Material: ({ size, color, name, ...rest }: IconInternalProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default Material;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { IconInternalProps } from './types';
|
|
3
|
-
declare const MaterialCommunity: ({ size, color, name, ...rest }: IconInternalProps) =>
|
|
2
|
+
declare const MaterialCommunity: ({ size, color, name, ...rest }: IconInternalProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default MaterialCommunity;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { IconInternalProps } from './types';
|
|
3
|
-
declare const Octicon: ({ size, color, name, ...rest }: IconInternalProps) =>
|
|
2
|
+
declare const Octicon: ({ size, color, name, ...rest }: IconInternalProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default Octicon;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { IconInternalProps } from './types';
|
|
3
|
-
declare const SimpleLine: ({ size, color, name, ...rest }: IconInternalProps) =>
|
|
2
|
+
declare const SimpleLine: ({ size, color, name, ...rest }: IconInternalProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default SimpleLine;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { IconInternalProps } from './types';
|
|
3
|
-
declare const Zocial: ({ size, color, name, ...rest }: IconInternalProps) =>
|
|
2
|
+
declare const Zocial: ({ size, color, name, ...rest }: IconInternalProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default Zocial;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
2
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
3
|
import { InputElementProps } from '..';
|
|
4
4
|
import { ColorGradationType, ColorType, FontColorType, FontStackType, FontWeightType, TypographyVariationType } from '../../../../types/defaults';
|
|
@@ -13,8 +13,8 @@ export interface InputContainerProps {
|
|
|
13
13
|
labelStack?: FontStackType;
|
|
14
14
|
LabelComponent?: FC<TextProps>;
|
|
15
15
|
labelWeight?: FontWeightType;
|
|
16
|
-
leftComponent?:
|
|
17
|
-
rightComponent?:
|
|
16
|
+
leftComponent?: React.ReactNode;
|
|
17
|
+
rightComponent?: React.ReactNode;
|
|
18
18
|
borderColor?: ColorType;
|
|
19
19
|
borderColorGradation?: ColorGradationType;
|
|
20
20
|
style?: StyleProp<ViewStyle>;
|
|
@@ -23,7 +23,7 @@ export interface InputContainerProps {
|
|
|
23
23
|
disabled?: boolean;
|
|
24
24
|
variant?: InputVariantType;
|
|
25
25
|
hint?: string;
|
|
26
|
-
hintComponent?:
|
|
26
|
+
hintComponent?: React.ReactNode;
|
|
27
27
|
testID?: string;
|
|
28
28
|
}
|
|
29
29
|
declare const InputContainer: FC<InputContainerProps & Partial<InputElementProps>>;
|
package/dist/types/components/atoms/Input/PressableInputContainer/PressableInputContainer.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { PressableStateCallbackType, StyleProp, ViewStyle } from 'react-native';
|
|
2
3
|
import { InputContainerProps } from '../InputContainer/InputContainer';
|
|
3
4
|
import { ReactNode } from 'react';
|
|
@@ -7,5 +8,5 @@ export interface PressableInputContainerProps extends Omit<InputContainerProps,
|
|
|
7
8
|
style?: StyleProp<ViewStyle> | ((state: PressableStateCallbackType) => StyleProp<ViewStyle>);
|
|
8
9
|
children?: ReactNode;
|
|
9
10
|
}
|
|
10
|
-
declare const PressableInputContainer: ({ onPress, disabled, style, children, ...rest }: PressableInputContainerProps) =>
|
|
11
|
+
declare const PressableInputContainer: ({ onPress, disabled, style, children, ...rest }: PressableInputContainerProps) => React.ReactElement;
|
|
11
12
|
export default PressableInputContainer;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
3
|
export interface PaperProps {
|
|
4
4
|
elevated?: boolean;
|
|
5
5
|
style?: StyleProp<ViewStyle>;
|
|
6
6
|
children?: ReactNode;
|
|
7
7
|
}
|
|
8
|
-
declare const Paper: ({ children, elevated, ...rest }: PaperProps) =>
|
|
8
|
+
declare const Paper: ({ children, elevated, ...rest }: PaperProps) => React.ReactElement;
|
|
9
9
|
export default Paper;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
import { PressableProps, StyleProp, ViewStyle } from 'react-native';
|
|
3
3
|
export interface PressableSurfaceProps extends PressableProps {
|
|
4
4
|
effect?: 'darken' | 'lighten' | 'none';
|
|
@@ -7,5 +7,5 @@ export interface PressableSurfaceProps extends PressableProps {
|
|
|
7
7
|
effectStyle?: (pressed: boolean) => StyleProp<ViewStyle>;
|
|
8
8
|
children?: ReactNode;
|
|
9
9
|
}
|
|
10
|
-
declare const PressableSurface: ({ children, surfaceColor, effect, effectIntensity, effectStyle, style, ...rest }: PressableSurfaceProps) =>
|
|
10
|
+
declare const PressableSurface: ({ children, surfaceColor, effect, effectIntensity, effectStyle, style, ...rest }: PressableSurfaceProps) => React.ReactElement;
|
|
11
11
|
export default PressableSurface;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { ViewProps } from 'react-native';
|
|
2
3
|
import { ColorGradationType, ColorType } from '../../../types/defaults';
|
|
3
4
|
export interface ProgressBarProps extends ViewProps {
|
|
@@ -8,5 +9,5 @@ export interface ProgressBarProps extends ViewProps {
|
|
|
8
9
|
color?: ColorType;
|
|
9
10
|
colorTone?: ColorGradationType;
|
|
10
11
|
}
|
|
11
|
-
declare const ProgressBar: ({ segments: _segments, valueMin, valueNow: _valueNow, valueMax, color, colorTone, ...rest }: ProgressBarProps) =>
|
|
12
|
+
declare const ProgressBar: ({ segments: _segments, valueMin, valueNow: _valueNow, valueMax, color, colorTone, ...rest }: ProgressBarProps) => React.ReactElement;
|
|
12
13
|
export default ProgressBar;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
3
|
import { ColorGradationType, ColorType } from '../../../types/defaults';
|
|
4
4
|
export interface RadioButtonProps {
|
|
@@ -11,5 +11,5 @@ export interface RadioButtonProps {
|
|
|
11
11
|
style?: StyleProp<ViewStyle>;
|
|
12
12
|
children?: ReactNode;
|
|
13
13
|
}
|
|
14
|
-
declare const RadioButton: ({ children, onChange, checked, labelPosition, disabled, color, colorTone, ...rest }: RadioButtonProps) =>
|
|
14
|
+
declare const RadioButton: ({ children, onChange, checked, labelPosition, disabled, color, colorTone, ...rest }: RadioButtonProps) => React.ReactElement;
|
|
15
15
|
export default RadioButton;
|
|
@@ -18,5 +18,5 @@ export interface CalendarProps<T extends SelectionType> extends ViewProps {
|
|
|
18
18
|
locale?: Locale;
|
|
19
19
|
selectYearProps?: Omit<SelectYearProps, 'TextComponent' | 'currentYear' | 'onSelectYear'>;
|
|
20
20
|
}
|
|
21
|
-
declare function Calendar<T extends SelectionType>({ TextComponent, year: _year, month: _month, value, type, onChange, locale, selectYearProps, ...rest }: CalendarProps<T>):
|
|
21
|
+
declare function Calendar<T extends SelectionType>({ TextComponent, year: _year, month: _month, value, type, onChange, locale, selectYearProps, ...rest }: CalendarProps<T>): React.ReactElement;
|
|
22
22
|
export default Calendar;
|
|
@@ -6,5 +6,5 @@ interface MemoizedYearCardProps {
|
|
|
6
6
|
onPress: () => void;
|
|
7
7
|
TextComponent: React.FC<TextProps>;
|
|
8
8
|
}
|
|
9
|
-
declare const MemoizedYearCard: React.MemoExoticComponent<({ year, isSelected, onPress, TextComponent, }: MemoizedYearCardProps) =>
|
|
9
|
+
declare const MemoizedYearCard: React.MemoExoticComponent<({ year, isSelected, onPress, TextComponent, }: MemoizedYearCardProps) => React.ReactElement>;
|
|
10
10
|
export default MemoizedYearCard;
|
|
@@ -9,5 +9,5 @@ interface IMonthWeek<T extends SelectionType> {
|
|
|
9
9
|
week: Date[];
|
|
10
10
|
referenceDate: Date;
|
|
11
11
|
}
|
|
12
|
-
declare const _default: React.MemoExoticComponent<(<T extends SelectionType>({ week, referenceDate, type, value, TextComponent, onChange, }: IMonthWeek<T>) =>
|
|
12
|
+
declare const _default: React.MemoExoticComponent<(<T extends SelectionType>({ week, referenceDate, type, value, TextComponent, onChange, }: IMonthWeek<T>) => import("react/jsx-runtime").JSX.Element)>;
|
|
13
13
|
export default _default;
|
|
@@ -8,5 +8,5 @@ export interface SelectYearProps {
|
|
|
8
8
|
firstYear?: number;
|
|
9
9
|
numColumns?: number;
|
|
10
10
|
}
|
|
11
|
-
declare const _default: React.MemoExoticComponent<({ currentYear, onSelectYear, TextComponent, yearsToShow, firstYear, numColumns, }: SelectYearProps) =>
|
|
11
|
+
declare const _default: React.MemoExoticComponent<({ currentYear, onSelectYear, TextComponent, yearsToShow, firstYear, numColumns, }: SelectYearProps) => import("react/jsx-runtime").JSX.Element>;
|
|
12
12
|
export default _default;
|
|
@@ -4,5 +4,5 @@ interface IWeekdays {
|
|
|
4
4
|
locale?: Locale;
|
|
5
5
|
Capitalized: React.ElementType;
|
|
6
6
|
}
|
|
7
|
-
declare const _default: React.MemoExoticComponent<({ calendar, locale, Capitalized }: IWeekdays) =>
|
|
7
|
+
declare const _default: React.MemoExoticComponent<({ calendar, locale, Capitalized }: IWeekdays) => import("react/jsx-runtime").JSX.Element>;
|
|
8
8
|
export default _default;
|