@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,8 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
require('react');
|
|
3
|
+
require('react/jsx-runtime');
|
|
4
4
|
require('../components/atoms/Text/styled.js');
|
|
5
5
|
require('../components/atoms/Input/styled.js');
|
|
6
|
+
require('react');
|
|
6
7
|
var useNumberMask = require('../components/atoms/Input/hooks/useNumberMask.js');
|
|
7
8
|
var useStringMask = require('../components/atoms/Input/hooks/useStringMask.js');
|
|
8
9
|
require('../components/atoms/Input/InputElement/InputElement.js');
|
package/dist/cjs/utils/masks.js
CHANGED
|
@@ -16,7 +16,10 @@ const Masks = {
|
|
|
16
16
|
const isCellPhoneExtended = onlyNumbers.length === 11;
|
|
17
17
|
return value?.length <= 14 && !isCellPhoneExtended ? Masks.PHONE : Masks.PHONE_EXTENDED;
|
|
18
18
|
},
|
|
19
|
-
COMBINED_CPF_CNPJ: (value) =>
|
|
19
|
+
COMBINED_CPF_CNPJ: (value) => {
|
|
20
|
+
const onlyNumbers = extractNumbersFromString.extractDigitsFromString(value);
|
|
21
|
+
return onlyNumbers.length <= 11 ? Masks.CPF : Masks.CNPJ;
|
|
22
|
+
}
|
|
20
23
|
};
|
|
21
24
|
|
|
22
25
|
exports.Masks = Masks;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
1
2
|
import React__default from 'react';
|
|
2
3
|
import Text from '../Text/Text.js';
|
|
3
4
|
import { getIniciais } from './helpers.js';
|
|
@@ -15,7 +16,7 @@ const Avatar = ({
|
|
|
15
16
|
setHasError(false);
|
|
16
17
|
}, [source]);
|
|
17
18
|
const StyledText = getStyledTextComponent(TextComponent);
|
|
18
|
-
return /* @__PURE__ */
|
|
19
|
+
return /* @__PURE__ */ jsx(ContainerButtonAvatar, { effect: "none", onPress, size, children: source && !hasError ? /* @__PURE__ */ jsx(StyledAvatar, { source, onError: () => setHasError(true) }) : /* @__PURE__ */ jsx(StyledBackground, { children: /* @__PURE__ */ jsx(StyledText, { fontWeight: "bold", fontColor: "light", children: getIniciais(name) }) }) });
|
|
19
20
|
};
|
|
20
21
|
|
|
21
22
|
export { Avatar as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { ViewStyled, BadgeStyle } from './styled.js';
|
|
3
3
|
|
|
4
4
|
const Badge = ({
|
|
@@ -8,7 +8,10 @@ const Badge = ({
|
|
|
8
8
|
tone = "medium",
|
|
9
9
|
value
|
|
10
10
|
}) => {
|
|
11
|
-
return /* @__PURE__ */
|
|
11
|
+
return /* @__PURE__ */ jsxs(ViewStyled, { children: [
|
|
12
|
+
children,
|
|
13
|
+
/* @__PURE__ */ jsx(BadgeStyle, { style, color, tone, children: value })
|
|
14
|
+
] });
|
|
12
15
|
};
|
|
13
16
|
|
|
14
17
|
export { Badge as default };
|
|
@@ -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 '../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,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { StyledBoxContent } from './styled.js';
|
|
3
3
|
|
|
4
4
|
const BoxContent = ({ children, ...rest }) => {
|
|
5
|
-
return /* @__PURE__ */
|
|
5
|
+
return /* @__PURE__ */ jsx(StyledBoxContent, { ...rest, children });
|
|
6
6
|
};
|
|
7
7
|
|
|
8
8
|
export { BoxContent as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { jsxs } from 'react/jsx-runtime';
|
|
1
2
|
import { useTheme } from '@emotion/react';
|
|
2
|
-
import React__default from 'react';
|
|
3
3
|
import { StyledButton } from './styled.js';
|
|
4
4
|
|
|
5
5
|
const Button = ({
|
|
@@ -38,7 +38,7 @@ const Button = ({
|
|
|
38
38
|
if (disabled) {
|
|
39
39
|
_surfaceColor = theme.color[_color].light;
|
|
40
40
|
}
|
|
41
|
-
return /* @__PURE__ */
|
|
41
|
+
return /* @__PURE__ */ jsxs(
|
|
42
42
|
StyledButton,
|
|
43
43
|
{
|
|
44
44
|
...rest,
|
|
@@ -50,12 +50,14 @@ const Button = ({
|
|
|
50
50
|
variant,
|
|
51
51
|
size,
|
|
52
52
|
disabled: _frozen || disabled,
|
|
53
|
-
frozen: disabled
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
53
|
+
frozen: disabled,
|
|
54
|
+
children: [
|
|
55
|
+
state === "loading" && loadingComponent,
|
|
56
|
+
state === "error" && errorComponent,
|
|
57
|
+
state === "success" && successComponent,
|
|
58
|
+
state === "default" && children
|
|
59
|
+
]
|
|
60
|
+
}
|
|
59
61
|
);
|
|
60
62
|
};
|
|
61
63
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import Icon from '../../Icon/Icon.js';
|
|
3
3
|
import Text from '../../Text/Text.js';
|
|
4
4
|
import { getStyledTextButton } from './styled.js';
|
|
@@ -13,7 +13,10 @@ const BaseState = ({
|
|
|
13
13
|
const typo = buttonSize === "default" ? "base" : "sub";
|
|
14
14
|
const iconSize = buttonSize === "default" ? "deca" : "centi";
|
|
15
15
|
const StyledText = getStyledTextButton(textComponent);
|
|
16
|
-
return /* @__PURE__ */
|
|
16
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
17
|
+
/* @__PURE__ */ jsx(Icon, { name: icon, type: "ionicon", fontColor, size: iconSize }),
|
|
18
|
+
text && /* @__PURE__ */ jsx(StyledText, { typography: typo, fontWeight: "bold", fontColor, children: text })
|
|
19
|
+
] });
|
|
17
20
|
};
|
|
18
21
|
|
|
19
22
|
export { BaseState as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import BaseState from './BaseState.js';
|
|
3
3
|
|
|
4
4
|
const Error = (props) => {
|
|
5
|
-
return /* @__PURE__ */
|
|
5
|
+
return /* @__PURE__ */ jsx(BaseState, { ...props, icon: "close-circle-outline" });
|
|
6
6
|
};
|
|
7
7
|
|
|
8
8
|
export { Error as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
1
2
|
import { useTheme } from '@emotion/react';
|
|
2
|
-
import React__default from 'react';
|
|
3
3
|
import Text from '../../Text/Text.js';
|
|
4
4
|
import { getStyledTextButton, StyledIndicator } from './styled.js';
|
|
5
5
|
|
|
@@ -12,13 +12,16 @@ const Loading = ({
|
|
|
12
12
|
const theme = useTheme();
|
|
13
13
|
const typo = buttonSize === "default" ? "base" : "sub";
|
|
14
14
|
const StyledText = getStyledTextButton(textComponent);
|
|
15
|
-
return /* @__PURE__ */
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
16
|
+
/* @__PURE__ */ jsx(
|
|
17
|
+
StyledIndicator,
|
|
18
|
+
{
|
|
19
|
+
color: theme.font.color[fontColor],
|
|
20
|
+
buttonSize
|
|
21
|
+
}
|
|
22
|
+
),
|
|
23
|
+
text && /* @__PURE__ */ jsx(StyledText, { typography: typo, fontWeight: "bold", fontColor, children: text })
|
|
24
|
+
] });
|
|
22
25
|
};
|
|
23
26
|
|
|
24
27
|
export { Loading as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import BaseState from './BaseState.js';
|
|
3
3
|
|
|
4
4
|
const Success = (props) => {
|
|
5
|
-
return /* @__PURE__ */
|
|
5
|
+
return /* @__PURE__ */ jsx(BaseState, { ...props, icon: "checkmark-circle-outline" });
|
|
6
6
|
};
|
|
7
7
|
|
|
8
8
|
export { Success as default };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import styled, { css } 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 } from 'react/jsx-runtime';
|
|
2
2
|
import Paper from '../Paper/Paper.js';
|
|
3
3
|
import { StyledCard } from './styled.js';
|
|
4
4
|
|
|
@@ -9,9 +9,9 @@ const Card = ({
|
|
|
9
9
|
...rest
|
|
10
10
|
}) => {
|
|
11
11
|
if (onPress) {
|
|
12
|
-
return /* @__PURE__ */
|
|
12
|
+
return /* @__PURE__ */ jsx(StyledCard, { ...rest, elevated, onPress, children });
|
|
13
13
|
}
|
|
14
|
-
return /* @__PURE__ */
|
|
14
|
+
return /* @__PURE__ */ jsx(Paper, { ...rest, elevated, children });
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
export { Card as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { View } from 'react-native';
|
|
3
3
|
|
|
4
|
-
const Footer = ({ children, style }) => /* @__PURE__ */
|
|
4
|
+
const Footer = ({ children, style }) => /* @__PURE__ */ jsx(View, { style, children });
|
|
5
5
|
|
|
6
6
|
export { Footer as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { View } from 'react-native';
|
|
3
3
|
|
|
4
|
-
const Header = ({ children, style }) => /* @__PURE__ */
|
|
4
|
+
const Header = ({ children, style }) => /* @__PURE__ */ jsx(View, { style, children });
|
|
5
5
|
|
|
6
6
|
export { Header as default };
|
|
@@ -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, IconCheckedStyled, IconUncheckedStyled } from './styled.js';
|
|
@@ -16,31 +16,36 @@ const Checkbox = ({
|
|
|
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: "checkbox"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
25
|
+
accessibilityRole: "checkbox",
|
|
26
|
+
children: /* @__PURE__ */ jsxs(ViewStyled, { children: [
|
|
27
|
+
labelPosition === "left" && children,
|
|
28
|
+
checked && /* @__PURE__ */ jsx(IconViewStyled, { children: /* @__PURE__ */ jsx(IconCheckedStyled, { color, colorTone, children: /* @__PURE__ */ jsx(
|
|
29
|
+
Icon,
|
|
30
|
+
{
|
|
31
|
+
name: "check",
|
|
32
|
+
fontColor: "light",
|
|
33
|
+
type: "material-community",
|
|
34
|
+
size: "centi"
|
|
35
|
+
}
|
|
36
|
+
) }) }),
|
|
37
|
+
!checked && /* @__PURE__ */ jsx(IconViewStyled, { children: /* @__PURE__ */ jsx(IconUncheckedStyled, { color, colorTone, children: /* @__PURE__ */ jsx(
|
|
38
|
+
Icon,
|
|
39
|
+
{
|
|
40
|
+
name: "checkbox-blank",
|
|
41
|
+
fontColor: "light",
|
|
42
|
+
type: "material-community",
|
|
43
|
+
size: "centi"
|
|
44
|
+
}
|
|
45
|
+
) }) }),
|
|
46
|
+
labelPosition === "right" && children
|
|
47
|
+
] })
|
|
48
|
+
}
|
|
44
49
|
);
|
|
45
50
|
};
|
|
46
51
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { StyledDivider } from './styled.js';
|
|
3
3
|
|
|
4
4
|
const Divider = ({ children, ...rest }) => {
|
|
5
|
-
return /* @__PURE__ */
|
|
5
|
+
return /* @__PURE__ */ jsx(StyledDivider, { ...rest, children });
|
|
6
6
|
};
|
|
7
7
|
|
|
8
8
|
export { Divider as default };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
1
2
|
import { useTheme } from '@emotion/react';
|
|
2
|
-
import React__default from 'react';
|
|
3
3
|
import { StyledGroupButton, StyledOption, StyledPressable, StyledDivider } from './styled.js';
|
|
4
4
|
|
|
5
5
|
const GroupButton = ({ style, ...rest }) => {
|
|
6
|
-
return /* @__PURE__ */
|
|
6
|
+
return /* @__PURE__ */ jsx(StyledGroupButton, { style, children: groupOptions(rest) });
|
|
7
7
|
};
|
|
8
8
|
const groupOptions = ({
|
|
9
9
|
options,
|
|
@@ -39,21 +39,24 @@ const groupOptions = ({
|
|
|
39
39
|
if (!active && (inactiveBackgroundColor || inactiveBackgroundColorTone)) {
|
|
40
40
|
colors = theme.color[inactiveBackgroundColor || "secondary"][inactiveBackgroundColorTone || "medium"];
|
|
41
41
|
}
|
|
42
|
-
return /* @__PURE__ */
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
42
|
+
return /* @__PURE__ */ jsxs(StyledOption, { children: [
|
|
43
|
+
/* @__PURE__ */ jsx(
|
|
44
|
+
StyledPressable,
|
|
45
|
+
{
|
|
46
|
+
...rest,
|
|
47
|
+
...option.options,
|
|
48
|
+
disabled,
|
|
49
|
+
isActive: active,
|
|
50
|
+
isFirstOption: isFirst,
|
|
51
|
+
isLastOption: isLast,
|
|
52
|
+
onPress: () => onChange?.(optionValue),
|
|
53
|
+
surfaceColor: colors,
|
|
54
|
+
style: active ? activeStyle : inactiveStyle,
|
|
55
|
+
children: renderOption?.(option.value, active)
|
|
56
|
+
}
|
|
57
|
+
),
|
|
58
|
+
!isLast && /* @__PURE__ */ jsx(StyledDivider, {})
|
|
59
|
+
] }, key);
|
|
57
60
|
});
|
|
58
61
|
};
|
|
59
62
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import Text from '../Text/Text.js';
|
|
3
3
|
import { getStyledGroupItemText } from './styled.js';
|
|
4
4
|
|
|
@@ -8,7 +8,7 @@ const GroupButtonOption = ({
|
|
|
8
8
|
description
|
|
9
9
|
}) => {
|
|
10
10
|
const StyledText = getStyledGroupItemText(TextComponent);
|
|
11
|
-
return /* @__PURE__ */
|
|
11
|
+
return /* @__PURE__ */ jsx(StyledText, { fontWeight: "bold", typography: "sub", active, children: description });
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
export { GroupButtonOption as default };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import styled, { css } 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,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import AntDesignRNVI from 'react-native-vector-icons/dist/AntDesign';
|
|
3
3
|
import { getStyledIcon } from './styled.js';
|
|
4
4
|
|
|
5
5
|
const AntDesign = ({ size, color, name, ...rest }) => {
|
|
6
6
|
const Icon = getStyledIcon(AntDesignRNVI, size);
|
|
7
|
-
return /* @__PURE__ */
|
|
7
|
+
return /* @__PURE__ */ jsx(Icon, { ...rest, name, color });
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
export { AntDesign as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import EntypoRNVI from 'react-native-vector-icons/dist/Entypo';
|
|
3
3
|
import { getStyledIcon } from './styled.js';
|
|
4
4
|
|
|
5
5
|
const Entypo = ({ size, color, name, ...rest }) => {
|
|
6
6
|
const Icon = getStyledIcon(EntypoRNVI, size);
|
|
7
|
-
return /* @__PURE__ */
|
|
7
|
+
return /* @__PURE__ */ jsx(Icon, { ...rest, name, color });
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
export { Entypo as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import EvilRNVI from 'react-native-vector-icons/dist/EvilIcons';
|
|
3
3
|
import { getStyledIcon } from './styled.js';
|
|
4
4
|
|
|
5
5
|
const Evil = ({ size, color, name, ...rest }) => {
|
|
6
6
|
const Icon = getStyledIcon(EvilRNVI, size);
|
|
7
|
-
return /* @__PURE__ */
|
|
7
|
+
return /* @__PURE__ */ jsx(Icon, { ...rest, name, color });
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
export { Evil as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import FeatherRNVI from 'react-native-vector-icons/dist/Feather';
|
|
3
3
|
import { getStyledIcon } from './styled.js';
|
|
4
4
|
|
|
5
5
|
const Feather = ({ size, color, name, ...rest }) => {
|
|
6
6
|
const Icon = getStyledIcon(FeatherRNVI, size);
|
|
7
|
-
return /* @__PURE__ */
|
|
7
|
+
return /* @__PURE__ */ jsx(Icon, { ...rest, name, color });
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
export { Feather as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import FontAwesomeRNVI from 'react-native-vector-icons/dist/FontAwesome';
|
|
3
3
|
import { getStyledIcon } from './styled.js';
|
|
4
4
|
|
|
5
5
|
const FontAwesome = ({ size, color, name, ...rest }) => {
|
|
6
6
|
const Icon = getStyledIcon(FontAwesomeRNVI, size);
|
|
7
|
-
return /* @__PURE__ */
|
|
7
|
+
return /* @__PURE__ */ jsx(Icon, { ...rest, name, color });
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
export { FontAwesome as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import FontAwesomeFiveRNVI from 'react-native-vector-icons/dist/FontAwesome5';
|
|
3
3
|
import { getStyledIcon } from './styled.js';
|
|
4
4
|
|
|
5
5
|
const FontAwesomeFive = ({ size, color, name, ...rest }) => {
|
|
6
6
|
const Icon = getStyledIcon(FontAwesomeFiveRNVI, size);
|
|
7
|
-
return /* @__PURE__ */
|
|
7
|
+
return /* @__PURE__ */ jsx(Icon, { ...rest, name, color });
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
export { FontAwesomeFive as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import FontistoRNVI from 'react-native-vector-icons/dist/Fontisto';
|
|
3
3
|
import { getStyledIcon } from './styled.js';
|
|
4
4
|
|
|
5
5
|
const Fontisto = ({ size, color, name, ...rest }) => {
|
|
6
6
|
const Icon = getStyledIcon(FontistoRNVI, size);
|
|
7
|
-
return /* @__PURE__ */
|
|
7
|
+
return /* @__PURE__ */ jsx(Icon, { ...rest, name, color });
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
export { Fontisto as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import FoundationRNVI from 'react-native-vector-icons/dist/Foundation';
|
|
3
3
|
import { getStyledIcon } from './styled.js';
|
|
4
4
|
|
|
5
5
|
const Foundation = ({ size, color, name, ...rest }) => {
|
|
6
6
|
const Icon = getStyledIcon(FoundationRNVI, size);
|
|
7
|
-
return /* @__PURE__ */
|
|
7
|
+
return /* @__PURE__ */ jsx(Icon, { ...rest, name, color });
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
export { Foundation as default };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import 'react';
|
|
2
3
|
import { useTheme } from '../../../hooks/useTheme.js';
|
|
3
4
|
import { getIconColor, getIconComponent } from './functions.js';
|
|
4
5
|
|
|
@@ -15,7 +16,7 @@ const Icon = ({
|
|
|
15
16
|
const theme = useTheme();
|
|
16
17
|
const color = getIconColor(colorVariant, colorTone, fontColor, theme);
|
|
17
18
|
const RNVIcon = getIconComponent(type);
|
|
18
|
-
return /* @__PURE__ */
|
|
19
|
+
return /* @__PURE__ */ jsx(RNVIcon, { ...rest, style, name, color, size });
|
|
19
20
|
};
|
|
20
21
|
|
|
21
22
|
export { Icon as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import IonRNVI from 'react-native-vector-icons/dist/Ionicons';
|
|
3
3
|
import { getStyledIcon } from './styled.js';
|
|
4
4
|
|
|
5
5
|
const Ionicon = ({ size, color, name, ...rest }) => {
|
|
6
6
|
const Icon = getStyledIcon(IonRNVI, size);
|
|
7
|
-
return /* @__PURE__ */
|
|
7
|
+
return /* @__PURE__ */ jsx(Icon, { ...rest, name, color });
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
export { Ionicon as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import MaterialRNVI from 'react-native-vector-icons/dist/MaterialIcons';
|
|
3
3
|
import { getStyledIcon } from './styled.js';
|
|
4
4
|
|
|
5
5
|
const Material = ({ size, color, name, ...rest }) => {
|
|
6
6
|
const Icon = getStyledIcon(MaterialRNVI, size);
|
|
7
|
-
return /* @__PURE__ */
|
|
7
|
+
return /* @__PURE__ */ jsx(Icon, { ...rest, name, color });
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
export { Material as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import MaterialCommunityRNVI from 'react-native-vector-icons/dist/MaterialCommunityIcons';
|
|
3
3
|
import { getStyledIcon } from './styled.js';
|
|
4
4
|
|
|
@@ -9,7 +9,7 @@ const MaterialCommunity = ({
|
|
|
9
9
|
...rest
|
|
10
10
|
}) => {
|
|
11
11
|
const Icon = getStyledIcon(MaterialCommunityRNVI, size);
|
|
12
|
-
return /* @__PURE__ */
|
|
12
|
+
return /* @__PURE__ */ jsx(Icon, { ...rest, name, color });
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
export { MaterialCommunity as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import MaterialCommunityRNVI from 'react-native-vector-icons/dist/Octicons';
|
|
3
3
|
import { getStyledIcon } from './styled.js';
|
|
4
4
|
|
|
5
5
|
const Octicon = ({ size, color, name, ...rest }) => {
|
|
6
6
|
const Icon = getStyledIcon(MaterialCommunityRNVI, size);
|
|
7
|
-
return /* @__PURE__ */
|
|
7
|
+
return /* @__PURE__ */ jsx(Icon, { ...rest, name, color });
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
export { Octicon as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import MaterialCommunityRNVI from 'react-native-vector-icons/dist/SimpleLineIcons';
|
|
3
3
|
import { getStyledIcon } from './styled.js';
|
|
4
4
|
|
|
5
5
|
const SimpleLine = ({ size, color, name, ...rest }) => {
|
|
6
6
|
const Icon = getStyledIcon(MaterialCommunityRNVI, size);
|
|
7
|
-
return /* @__PURE__ */
|
|
7
|
+
return /* @__PURE__ */ jsx(Icon, { ...rest, name, color });
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
export { SimpleLine as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import MaterialCommunityRNVI from 'react-native-vector-icons/dist/Zocial';
|
|
3
3
|
import { getStyledIcon } from './styled.js';
|
|
4
4
|
|
|
5
5
|
const Zocial = ({ size, color, name, ...rest }) => {
|
|
6
6
|
const Icon = getStyledIcon(MaterialCommunityRNVI, size);
|
|
7
|
-
return /* @__PURE__ */
|
|
7
|
+
return /* @__PURE__ */ jsx(Icon, { ...rest, name, color });
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
export { Zocial as default };
|