@tecsinapse/react-web-kit 3.0.0 → 3.3.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/Button/styled.js +4 -4
- package/dist/cjs/components/atoms/Input/styled.js +2 -2
- package/dist/cjs/components/atoms/InputMask/styled.js +2 -2
- package/dist/cjs/components/atoms/Tooltip/styled.js +4 -1
- package/dist/cjs/components/molecules/DateTimePicker/DateTimePicker.js +8 -0
- package/dist/cjs/components/molecules/DateTimePickerSelector/DateTimePickerSelector.js +98 -0
- package/dist/cjs/components/molecules/DateTimePickerSelector/components/MemoizedTimeCard.js +22 -0
- package/dist/cjs/components/molecules/DateTimePickerSelector/components/ScrollableDigit.js +84 -0
- package/dist/cjs/components/molecules/DateTimePickerSelector/styled.js +54 -0
- package/dist/cjs/components/molecules/IconTextButton/styled.js +2 -2
- package/dist/cjs/components/molecules/LabeledSwitch/styled.js +4 -4
- package/dist/cjs/components/molecules/Menubar/MostUsed/styled.js +2 -2
- package/dist/cjs/components/molecules/Menubar/SearchResultItem/styled.js +2 -2
- package/dist/cjs/components/molecules/Menubar/styled.js +3 -3
- package/dist/cjs/components/molecules/ScrollableMonthYearPicker/ScrollableMonthYearPicker.js +86 -0
- package/dist/cjs/components/molecules/ScrollableMonthYearPicker/styled.js +18 -0
- package/dist/cjs/components/molecules/ScrollableTimePicker/ScrollableTimePicker.js +77 -0
- package/dist/cjs/components/molecules/ScrollableTimePicker/styled.js +18 -0
- package/dist/cjs/components/molecules/Select/Select.js +12 -1
- package/dist/cjs/components/molecules/Select/SelectItem/styled.js +1 -1
- package/dist/cjs/components/molecules/Snackbar/styled.js +5 -5
- package/dist/cjs/components/molecules/TextArea/styled.js +2 -2
- package/dist/cjs/components/organisms/DataGrid/Footer/styled.js +4 -4
- package/dist/esm/components/atoms/Accordion/Accordion.js +9 -9
- package/dist/esm/components/atoms/Badge/Badge.js +3 -3
- package/dist/esm/components/atoms/Button/Button.js +2 -2
- package/dist/esm/components/atoms/Button/styled.js +2 -2
- package/dist/esm/components/atoms/Dropdown/index.js +3 -3
- package/dist/esm/components/atoms/Input/Input.js +5 -5
- package/dist/esm/components/atoms/Input/styled.js +2 -2
- package/dist/esm/components/atoms/InputMask/InputMask.js +5 -5
- package/dist/esm/components/atoms/InputMask/styled.js +2 -2
- package/dist/esm/components/atoms/Modal/Modal.js +2 -2
- package/dist/esm/components/atoms/Overlay/Overlay.js +2 -2
- package/dist/esm/components/atoms/Skeleton/Skeleton.js +3 -3
- package/dist/esm/components/atoms/Switch/Switch.js +3 -3
- package/dist/esm/components/atoms/Table/Body/TBody.js +2 -2
- package/dist/esm/components/atoms/Table/Cell/Td.js +2 -2
- package/dist/esm/components/atoms/Table/Container/TableContainer.js +2 -2
- package/dist/esm/components/atoms/Table/Footer/TFoot.js +2 -2
- package/dist/esm/components/atoms/Table/Header/THead.js +2 -2
- package/dist/esm/components/atoms/Table/Header/Th.js +2 -2
- package/dist/esm/components/atoms/Table/Row/Tr.js +2 -2
- package/dist/esm/components/atoms/Table/Table.js +2 -2
- package/dist/esm/components/atoms/Table/Toolbar/TableToolbar.js +2 -2
- package/dist/esm/components/atoms/Tag/Tag.js +3 -3
- package/dist/esm/components/atoms/Tooltip/Tooltip.js +6 -6
- package/dist/esm/components/atoms/Tooltip/styled.js +4 -1
- package/dist/esm/components/molecules/Breadcrumbs/BreadcrumbItem/BreadcrumbItem.js +2 -2
- package/dist/esm/components/molecules/Breadcrumbs/Breadcrumbs.js +3 -3
- package/dist/esm/components/molecules/DatePicker/DatePicker.js +8 -8
- package/dist/esm/components/molecules/DateTimePicker/DateTimePicker.js +12 -4
- package/dist/esm/components/molecules/DateTimePickerSelector/DateTimePickerSelector.js +77 -0
- package/dist/esm/components/molecules/DateTimePickerSelector/components/MemoizedTimeCard.js +20 -0
- package/dist/esm/components/molecules/DateTimePickerSelector/components/ScrollableDigit.js +63 -0
- package/dist/esm/components/molecules/DateTimePickerSelector/styled.js +46 -0
- package/dist/esm/components/molecules/Drawer/Drawer.js +2 -2
- package/dist/esm/components/molecules/Grid/Grid.js +6 -6
- package/dist/esm/components/molecules/Grid/Item/Item.js +4 -4
- package/dist/esm/components/molecules/IconTextButton/IconTextButton.js +7 -7
- package/dist/esm/components/molecules/IconTextButton/TextComponent.js +4 -4
- package/dist/esm/components/molecules/IconTextButton/styled.js +2 -2
- package/dist/esm/components/molecules/InputPassword/InputPassword.js +4 -4
- package/dist/esm/components/molecules/LabeledSwitch/LabelComponent.js +3 -3
- package/dist/esm/components/molecules/LabeledSwitch/LabeledSwitch.js +5 -5
- package/dist/esm/components/molecules/LabeledSwitch/styled.js +2 -2
- package/dist/esm/components/molecules/Masonry/Masonry.js +6 -6
- package/dist/esm/components/molecules/Menubar/MenuBlock/MenuBlock.js +4 -4
- package/dist/esm/components/molecules/Menubar/MenuBlock/MenuItem/MenuItem.js +6 -6
- package/dist/esm/components/molecules/Menubar/MenuBlock/MenuItem/SubMenuBlock/SubMenuBlock.js +2 -2
- package/dist/esm/components/molecules/Menubar/Menubar.js +14 -14
- package/dist/esm/components/molecules/Menubar/MostUsed/MostUsed.js +5 -5
- package/dist/esm/components/molecules/Menubar/MostUsed/styled.js +2 -2
- package/dist/esm/components/molecules/Menubar/SearchResultItem/SearchResultItem.js +2 -2
- package/dist/esm/components/molecules/Menubar/SearchResultItem/styled.js +2 -2
- package/dist/esm/components/molecules/Menubar/SearchResultItem/utils.js +2 -2
- package/dist/esm/components/molecules/Menubar/styled.js +3 -3
- package/dist/esm/components/molecules/ScrollableMonthYearPicker/ScrollableMonthYearPicker.js +65 -0
- package/dist/esm/components/molecules/ScrollableMonthYearPicker/styled.js +15 -0
- package/dist/esm/components/molecules/ScrollableTimePicker/ScrollableTimePicker.js +56 -0
- package/dist/esm/components/molecules/ScrollableTimePicker/styled.js +15 -0
- package/dist/esm/components/molecules/Select/Dropdown/Dropdown.js +14 -14
- package/dist/esm/components/molecules/Select/Dropdown/components/SearchInput.js +4 -4
- package/dist/esm/components/molecules/Select/Select.js +22 -11
- package/dist/esm/components/molecules/Select/SelectItem/SelectItem.js +7 -7
- package/dist/esm/components/molecules/Select/SelectItem/styled.js +1 -1
- package/dist/esm/components/molecules/Select/styled.js +2 -2
- package/dist/esm/components/molecules/Snackbar/Snackbar.js +2 -2
- package/dist/esm/components/molecules/Snackbar/styled.js +2 -2
- package/dist/esm/components/molecules/TextArea/TextArea.js +3 -3
- package/dist/esm/components/molecules/TextArea/styled.js +2 -2
- package/dist/esm/components/organisms/DataGrid/DataGrid.js +9 -9
- package/dist/esm/components/organisms/DataGrid/Footer/Footer.js +12 -12
- package/dist/esm/components/organisms/DataGrid/Footer/styled.js +4 -4
- package/dist/esm/components/organisms/DataGrid/Header/Header.js +5 -5
- package/dist/esm/components/organisms/DataGrid/Row/Row.js +4 -4
- package/dist/esm/hooks/useClickAwayListener.js +2 -2
- package/dist/esm/hooks/useWindowSize.js +3 -3
- package/dist/types/components/molecules/DateTimePickerSelector/DateTimePickerSelector.d.ts +5 -0
- package/dist/types/components/molecules/DateTimePickerSelector/components/MemoizedTimeCard.d.ts +10 -0
- package/dist/types/components/molecules/DateTimePickerSelector/components/ScrollableDigit.d.ts +13 -0
- package/dist/types/components/molecules/DateTimePickerSelector/components/index.d.ts +2 -0
- package/dist/types/components/molecules/DateTimePickerSelector/index.d.ts +1 -0
- package/dist/types/components/molecules/DateTimePickerSelector/styled.d.ts +40 -0
- package/dist/types/components/molecules/ScrollableMonthYearPicker/ScrollableMonthYearPicker.d.ts +10 -0
- package/dist/types/components/molecules/ScrollableMonthYearPicker/index.d.ts +1 -0
- package/dist/types/components/molecules/ScrollableMonthYearPicker/styled.d.ts +9 -0
- package/dist/types/components/molecules/ScrollableTimePicker/ScrollableTimePicker.d.ts +10 -0
- package/dist/types/components/molecules/ScrollableTimePicker/index.d.ts +1 -0
- package/dist/types/components/molecules/ScrollableTimePicker/styled.d.ts +9 -0
- package/package.json +4 -4
|
@@ -43,6 +43,8 @@ const Select = ({
|
|
|
43
43
|
const hasValue = type === "single" ? !!value : (value || []).length > 0;
|
|
44
44
|
const _placeholder = onlyLabel ? label : placeholder;
|
|
45
45
|
const _label = hasValue ? label : void 0;
|
|
46
|
+
const _valueColorVariant = disabled ? "secondary" : displayTextProps?.colorVariant;
|
|
47
|
+
const _valueColorTone = disabled ? "light" : displayTextProps?.colorTone;
|
|
46
48
|
const displayValue = functions.getDisplayValue(
|
|
47
49
|
type,
|
|
48
50
|
value,
|
|
@@ -110,7 +112,16 @@ const Select = ({
|
|
|
110
112
|
disabled,
|
|
111
113
|
rightComponent: styled.RightComponent
|
|
112
114
|
},
|
|
113
|
-
/* @__PURE__ */ React.createElement(
|
|
115
|
+
/* @__PURE__ */ React.createElement(
|
|
116
|
+
reactCore.Text,
|
|
117
|
+
{
|
|
118
|
+
...displayTextProps,
|
|
119
|
+
colorTone: _valueColorTone,
|
|
120
|
+
colorVariant: _valueColorVariant,
|
|
121
|
+
fontWeight: "bold"
|
|
122
|
+
},
|
|
123
|
+
displayValue
|
|
124
|
+
)
|
|
114
125
|
)), /* @__PURE__ */ React.createElement(
|
|
115
126
|
reactTransitionGroup.Transition,
|
|
116
127
|
{
|
|
@@ -17,7 +17,7 @@ const ContainerItemSelect = styled("div")`
|
|
|
17
17
|
align-items: center;
|
|
18
18
|
`;
|
|
19
19
|
const StyledSpan = styled("span")`
|
|
20
|
-
color: ${({ theme, singleHighligh }) => singleHighligh ? theme.color.primary.
|
|
20
|
+
color: ${({ theme, singleHighligh }) => singleHighligh ? theme.color.primary.xlight : theme.color.secondary.xlight};
|
|
21
21
|
padding: ${({ theme }) => `${theme.spacing.mili} 0px`};
|
|
22
22
|
`;
|
|
23
23
|
const StyledContainerTextLabel = styled("div")`
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var styled = require('@emotion/native');
|
|
4
4
|
var reactCore = require('@tecsinapse/react-core');
|
|
5
5
|
|
|
6
6
|
const baseStyles = () => [
|
|
7
|
-
|
|
7
|
+
styled.css({
|
|
8
8
|
left: "50%",
|
|
9
9
|
maxWidth: 600,
|
|
10
10
|
transform: [{ translateX: "-50%" }]
|
|
11
11
|
})
|
|
12
12
|
];
|
|
13
13
|
const webStyles = () => [
|
|
14
|
-
|
|
14
|
+
styled.css`
|
|
15
15
|
position: fixed;
|
|
16
16
|
`
|
|
17
17
|
];
|
|
18
|
-
const SnackbarStyled =
|
|
19
|
-
() =>
|
|
18
|
+
const SnackbarStyled = styled(reactCore.Snackbar)(
|
|
19
|
+
() => styled.css`
|
|
20
20
|
${baseStyles()}
|
|
21
21
|
${webStyles()}
|
|
22
22
|
`
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var styled = require('@emotion/native');
|
|
4
4
|
var reactCore = require('@tecsinapse/react-core');
|
|
5
5
|
|
|
6
|
-
const StyledWebInput =
|
|
6
|
+
const StyledWebInput = styled(reactCore.TextAreaInputBase)`
|
|
7
7
|
font-weight: ${({ theme, fontWeight = "regular" }) => theme.font.weight[fontWeight]};
|
|
8
8
|
font-family: ${({ theme, fontStack = "default" }) => `'${theme.font.stack[fontStack]}'`};
|
|
9
9
|
outline-width: 0;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var styled = require('@emotion/styled');
|
|
4
|
-
var
|
|
4
|
+
var styled$1 = require('@emotion/native');
|
|
5
5
|
var reactCore = require('@tecsinapse/react-core');
|
|
6
6
|
require('react');
|
|
7
7
|
var Td = require('../../../atoms/Table/Cell/Td.js');
|
|
@@ -33,14 +33,14 @@ const FooterContainerEnd = styled(FlexContainer)`
|
|
|
33
33
|
const SelectContainer = styled("div")`
|
|
34
34
|
margin-right: ${({ theme }) => theme.spacing.deca};
|
|
35
35
|
`;
|
|
36
|
-
const NavigationButton =
|
|
36
|
+
const NavigationButton = styled$1(Button)`
|
|
37
37
|
border-radius: ${({ theme }) => theme.borderRadius.mili};
|
|
38
38
|
height: 44px;
|
|
39
39
|
justify-content: center;
|
|
40
40
|
padding: ${({ theme }) => theme.spacing.centi};
|
|
41
41
|
width: 44px;
|
|
42
42
|
`;
|
|
43
|
-
const PageButton =
|
|
43
|
+
const PageButton = styled$1(NavigationButton)`
|
|
44
44
|
padding-right: ${({ theme }) => theme.spacing.deca};
|
|
45
45
|
padding-left: ${({ theme }) => theme.spacing.deca};
|
|
46
46
|
border-radius: ${({ theme }) => theme.borderRadius.mili};
|
|
@@ -58,7 +58,7 @@ const HoveredText = styled("div")`
|
|
|
58
58
|
color: ${({ theme }) => theme.font.color.light};
|
|
59
59
|
}
|
|
60
60
|
`;
|
|
61
|
-
const TextPagination =
|
|
61
|
+
const TextPagination = styled$1(reactCore.Text)`
|
|
62
62
|
padding-right: ${({ theme }) => theme.spacing.deca};
|
|
63
63
|
padding-left: ${({ theme }) => theme.spacing.deca};
|
|
64
64
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default, { useRef } from 'react';
|
|
2
2
|
import { Text, Icon } from '@tecsinapse/react-core';
|
|
3
3
|
import { AccordionContainer, TitleContainer, IconContainer, ContentContainer } from './styled.js';
|
|
4
4
|
import { Transition } from 'react-transition-group';
|
|
@@ -13,26 +13,26 @@ const Accordion = ({
|
|
|
13
13
|
children,
|
|
14
14
|
...rest
|
|
15
15
|
}) => {
|
|
16
|
-
const [open, setOpen] =
|
|
17
|
-
const [contentHeight, setContentHeight] =
|
|
16
|
+
const [open, setOpen] = React__default.useState(_open);
|
|
17
|
+
const [contentHeight, setContentHeight] = React__default.useState(0);
|
|
18
18
|
const theme = useTheme();
|
|
19
19
|
const ref = useRef(null);
|
|
20
20
|
const titleTransitionRef = useRef(null);
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
React__default.useEffect(() => setOpen(_open), [_open]);
|
|
22
|
+
React__default.useLayoutEffect(() => {
|
|
23
23
|
const size = Array.from(
|
|
24
24
|
ref.current?.children || []
|
|
25
25
|
).reduce((prev, curr) => prev + curr.clientHeight, 0);
|
|
26
26
|
setContentHeight(size);
|
|
27
27
|
}, []);
|
|
28
|
-
const handleClick =
|
|
28
|
+
const handleClick = React__default.useCallback(() => {
|
|
29
29
|
if (onChange) {
|
|
30
30
|
onChange();
|
|
31
31
|
return;
|
|
32
32
|
}
|
|
33
33
|
setOpen((state) => !state);
|
|
34
34
|
}, [onChange]);
|
|
35
|
-
return /* @__PURE__ */
|
|
35
|
+
return /* @__PURE__ */ React__default.createElement(AccordionContainer, { ...rest }, /* @__PURE__ */ React__default.createElement(TitleContainer, { onClick: handleClick }, /* @__PURE__ */ React__default.createElement(Transition, { in: open, timeout: transition, nodeRef: titleTransitionRef }, (state) => /* @__PURE__ */ React__default.createElement("div", { ref: titleTransitionRef }, /* @__PURE__ */ React__default.createElement(
|
|
36
36
|
Text,
|
|
37
37
|
{
|
|
38
38
|
typography: "h4",
|
|
@@ -43,7 +43,7 @@ const Accordion = ({
|
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
title
|
|
46
|
-
))), /* @__PURE__ */
|
|
46
|
+
))), /* @__PURE__ */ React__default.createElement(IconContainer, null, /* @__PURE__ */ React__default.createElement(
|
|
47
47
|
Icon,
|
|
48
48
|
{
|
|
49
49
|
type: "material-community",
|
|
@@ -51,7 +51,7 @@ const Accordion = ({
|
|
|
51
51
|
size: "kilo",
|
|
52
52
|
fontColor: "medium"
|
|
53
53
|
}
|
|
54
|
-
))), /* @__PURE__ */
|
|
54
|
+
))), /* @__PURE__ */ React__default.createElement(Transition, { in: open, timeout: transition, nodeRef: ref }, (state) => /* @__PURE__ */ React__default.createElement(
|
|
55
55
|
ContentContainer,
|
|
56
56
|
{
|
|
57
57
|
ref: (htmlEl) => ref.current = htmlEl,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Badge as Badge$1, Text } from '@tecsinapse/react-core';
|
|
2
|
-
import
|
|
2
|
+
import React__default from 'react';
|
|
3
3
|
|
|
4
4
|
const Badge = ({
|
|
5
5
|
children,
|
|
@@ -7,11 +7,11 @@ const Badge = ({
|
|
|
7
7
|
value,
|
|
8
8
|
...props
|
|
9
9
|
}) => {
|
|
10
|
-
return /* @__PURE__ */
|
|
10
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
11
11
|
Badge$1,
|
|
12
12
|
{
|
|
13
13
|
...props,
|
|
14
|
-
value: /* @__PURE__ */
|
|
14
|
+
value: /* @__PURE__ */ React__default.createElement(Text, { fontColor, fontWeight: "bold", typography: "label" }, value)
|
|
15
15
|
},
|
|
16
16
|
children
|
|
17
17
|
);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
import { useMouseHover } from './hooks/useMouseHover.js';
|
|
3
3
|
import { useMousePressed } from './hooks/useMousePressed.js';
|
|
4
4
|
import { StyledWebButton } from './styled.js';
|
|
@@ -26,7 +26,7 @@ const Button = ({
|
|
|
26
26
|
onPressIn,
|
|
27
27
|
onPressOut
|
|
28
28
|
);
|
|
29
|
-
return /* @__PURE__ */
|
|
29
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
30
30
|
StyledWebButton,
|
|
31
31
|
{
|
|
32
32
|
...rest,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import styled, { css } from '@emotion/native';
|
|
2
2
|
import { Button, colorVC, colorGradationVC, borderColorVC, borderColorGradationVC } from '@tecsinapse/react-core';
|
|
3
3
|
|
|
4
4
|
const webStyles = () => {
|
|
@@ -24,6 +24,6 @@ const hoverStyles = ({
|
|
|
24
24
|
border-color: ${theme?.color[variantBorderColor][variantBorderColorGradation]};
|
|
25
25
|
`;
|
|
26
26
|
};
|
|
27
|
-
const StyledWebButton =
|
|
27
|
+
const StyledWebButton = styled(Button)(webStyles, hoverStyles);
|
|
28
28
|
|
|
29
29
|
export { StyledWebButton };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
import { StyledContainerDropdown } from './styled.js';
|
|
3
3
|
import { Transition } from 'react-transition-group';
|
|
4
4
|
import { defaultStyles, transition } from '../../molecules/Select/animations.js';
|
|
@@ -11,9 +11,9 @@ const Component = ({
|
|
|
11
11
|
onClickAway,
|
|
12
12
|
children
|
|
13
13
|
}) => {
|
|
14
|
-
const refDropDown =
|
|
14
|
+
const refDropDown = React__default.useRef(null);
|
|
15
15
|
useClickAwayListener(refDropDown, setVisible, "mousedown", onClickAway);
|
|
16
|
-
return /* @__PURE__ */
|
|
16
|
+
return /* @__PURE__ */ React__default.createElement(Transition, { in: visible, timeout: 300, nodeRef: refDropDown }, (state) => /* @__PURE__ */ React__default.createElement(
|
|
17
17
|
StyledContainerDropdown,
|
|
18
18
|
{
|
|
19
19
|
style: { ...defaultStyles, ...transition["bottom"][state] },
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useInputFocus, InputContainer, Hint } from '@tecsinapse/react-core';
|
|
2
|
-
import
|
|
2
|
+
import React__default from 'react';
|
|
3
3
|
import { View } from 'react-native-web';
|
|
4
4
|
import { StyledWebTextInput } from './styled.js';
|
|
5
5
|
|
|
6
|
-
const Input =
|
|
6
|
+
const Input = React__default.forwardRef(
|
|
7
7
|
({
|
|
8
8
|
label,
|
|
9
9
|
labelColor,
|
|
@@ -28,14 +28,14 @@ const Input = React.forwardRef(
|
|
|
28
28
|
value,
|
|
29
29
|
...rest
|
|
30
30
|
}, ref) => {
|
|
31
|
-
const _hint = hintComponent || /* @__PURE__ */
|
|
31
|
+
const _hint = hintComponent || /* @__PURE__ */ React__default.createElement(Hint, { text: hint, variant });
|
|
32
32
|
const { focused, handleBlur, handleFocus } = useInputFocus(
|
|
33
33
|
onFocus,
|
|
34
34
|
onBlur,
|
|
35
35
|
!disabled
|
|
36
36
|
);
|
|
37
37
|
const onlyLabel = label && !placeholder;
|
|
38
|
-
return /* @__PURE__ */
|
|
38
|
+
return /* @__PURE__ */ React__default.createElement(View, { style }, /* @__PURE__ */ React__default.createElement(
|
|
39
39
|
InputContainer,
|
|
40
40
|
{
|
|
41
41
|
label: value ? label : void 0,
|
|
@@ -54,7 +54,7 @@ const Input = React.forwardRef(
|
|
|
54
54
|
disabled,
|
|
55
55
|
variant
|
|
56
56
|
},
|
|
57
|
-
/* @__PURE__ */
|
|
57
|
+
/* @__PURE__ */ React__default.createElement(
|
|
58
58
|
StyledWebTextInput,
|
|
59
59
|
{
|
|
60
60
|
...rest,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import styled from '@emotion/native';
|
|
2
2
|
import { InputElement } from '@tecsinapse/react-core';
|
|
3
3
|
|
|
4
|
-
const StyledWebTextInput =
|
|
4
|
+
const StyledWebTextInput = styled(InputElement)`
|
|
5
5
|
&:focus-visible {
|
|
6
6
|
outline-width: 0;
|
|
7
7
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useInputFocus, InputContainer, Hint } from '@tecsinapse/react-core';
|
|
2
|
-
import
|
|
2
|
+
import React__default from 'react';
|
|
3
3
|
import { View } from 'react-native-web';
|
|
4
4
|
import { StyledWebTextInputMask } from './styled.js';
|
|
5
5
|
|
|
6
|
-
const InputMask =
|
|
6
|
+
const InputMask = React__default.forwardRef(
|
|
7
7
|
({
|
|
8
8
|
label,
|
|
9
9
|
labelColor,
|
|
@@ -28,14 +28,14 @@ const InputMask = React.forwardRef(
|
|
|
28
28
|
placeholder,
|
|
29
29
|
...rest
|
|
30
30
|
}, ref) => {
|
|
31
|
-
const _hint = hintComponent || /* @__PURE__ */
|
|
31
|
+
const _hint = hintComponent || /* @__PURE__ */ React__default.createElement(Hint, { text: hint, variant });
|
|
32
32
|
const { focused, handleBlur, handleFocus } = useInputFocus(
|
|
33
33
|
onFocus,
|
|
34
34
|
onBlur,
|
|
35
35
|
!disabled
|
|
36
36
|
);
|
|
37
37
|
const onlyLabel = label && !placeholder;
|
|
38
|
-
return /* @__PURE__ */
|
|
38
|
+
return /* @__PURE__ */ React__default.createElement(View, { style }, /* @__PURE__ */ React__default.createElement(
|
|
39
39
|
InputContainer,
|
|
40
40
|
{
|
|
41
41
|
label: String(value) ? label : void 0,
|
|
@@ -54,7 +54,7 @@ const InputMask = React.forwardRef(
|
|
|
54
54
|
disabled,
|
|
55
55
|
variant
|
|
56
56
|
},
|
|
57
|
-
/* @__PURE__ */
|
|
57
|
+
/* @__PURE__ */ React__default.createElement(
|
|
58
58
|
StyledWebTextInputMask,
|
|
59
59
|
{
|
|
60
60
|
...rest,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import styled from '@emotion/native';
|
|
2
2
|
import { InputMaskElement } from '@tecsinapse/react-core';
|
|
3
3
|
|
|
4
|
-
const StyledWebTextInputMask =
|
|
4
|
+
const StyledWebTextInputMask = styled(InputMaskElement)`
|
|
5
5
|
&:focus-visible {
|
|
6
6
|
outline-width: 0;
|
|
7
7
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default, { useRef } from 'react';
|
|
2
2
|
import { Transition } from 'react-transition-group';
|
|
3
3
|
import Overlay from '../Overlay/Overlay.js';
|
|
4
4
|
import { ModalContainer } from './styled.js';
|
|
@@ -12,7 +12,7 @@ const Modal = ({
|
|
|
12
12
|
...rest
|
|
13
13
|
}) => {
|
|
14
14
|
const transitionRef = useRef(null);
|
|
15
|
-
return /* @__PURE__ */
|
|
15
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(Overlay, { open, onClose, zIndex: "modal" }), /* @__PURE__ */ React__default.createElement(Transition, { in: open, timeout: 400, nodeRef: transitionRef }, (state) => /* @__PURE__ */ React__default.createElement(
|
|
16
16
|
ModalContainer,
|
|
17
17
|
{
|
|
18
18
|
ref: transitionRef,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default, { useRef } from 'react';
|
|
2
2
|
import { Transition } from 'react-transition-group';
|
|
3
3
|
import { defaultStyleOverlay, transitionStylesOverlay } from './animations.js';
|
|
4
4
|
import { StyledOverlay } from './styled.js';
|
|
@@ -11,7 +11,7 @@ const Overlay = ({
|
|
|
11
11
|
children
|
|
12
12
|
}) => {
|
|
13
13
|
const transitionRef = useRef(null);
|
|
14
|
-
return /* @__PURE__ */
|
|
14
|
+
return /* @__PURE__ */ React__default.createElement(Transition, { in: open, timeout, nodeRef: transitionRef }, (state) => /* @__PURE__ */ React__default.createElement(
|
|
15
15
|
StyledOverlay,
|
|
16
16
|
{
|
|
17
17
|
style: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
import { Wrapper } from './styled.js';
|
|
3
3
|
import { View } from 'react-native-web';
|
|
4
4
|
|
|
@@ -16,7 +16,7 @@ const Skeleton = ({
|
|
|
16
16
|
"[Skeleton] You should provide children or specify width and height"
|
|
17
17
|
);
|
|
18
18
|
}
|
|
19
|
-
return /* @__PURE__ */
|
|
19
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
20
20
|
Wrapper,
|
|
21
21
|
{
|
|
22
22
|
width,
|
|
@@ -26,7 +26,7 @@ const Skeleton = ({
|
|
|
26
26
|
radius,
|
|
27
27
|
...rest
|
|
28
28
|
},
|
|
29
|
-
/* @__PURE__ */
|
|
29
|
+
/* @__PURE__ */ React__default.createElement(
|
|
30
30
|
View,
|
|
31
31
|
{
|
|
32
32
|
style: { opacity: active ? 0 : 1 },
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default, { useRef, useCallback } from 'react';
|
|
2
2
|
import { useTheme, lightenDarkenColor } from '@tecsinapse/react-core';
|
|
3
3
|
import { Transition } from 'react-transition-group';
|
|
4
4
|
import { StyledSwitchContent, StyledSwitch } from './styled.js';
|
|
@@ -56,7 +56,7 @@ const Switch = ({
|
|
|
56
56
|
exiting: { transform: "translateX(150%)" },
|
|
57
57
|
exited: { transform: "translateX(0%)" }
|
|
58
58
|
};
|
|
59
|
-
return /* @__PURE__ */
|
|
59
|
+
return /* @__PURE__ */ React__default.createElement(Transition, { in: active, timeout: 100, nodeRef: transitionRef }, (state) => /* @__PURE__ */ React__default.createElement("div", { onClick: handleChange, ref: transitionRef }, /* @__PURE__ */ React__default.createElement(
|
|
60
60
|
StyledSwitchContent,
|
|
61
61
|
{
|
|
62
62
|
...rest,
|
|
@@ -65,7 +65,7 @@ const Switch = ({
|
|
|
65
65
|
...transitionStylesBackground[state]
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
|
-
/* @__PURE__ */
|
|
68
|
+
/* @__PURE__ */ React__default.createElement(
|
|
69
69
|
StyledSwitch,
|
|
70
70
|
{
|
|
71
71
|
style: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
|
|
3
3
|
const TBody = ({
|
|
4
4
|
children,
|
|
5
5
|
...rest
|
|
6
6
|
}) => {
|
|
7
|
-
return /* @__PURE__ */
|
|
7
|
+
return /* @__PURE__ */ React__default.createElement("tbody", { ...rest }, children);
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
export { TBody as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
import { TCell } from './styled.js';
|
|
3
3
|
|
|
4
4
|
const Td = ({
|
|
5
5
|
children,
|
|
6
6
|
...rest
|
|
7
7
|
}) => {
|
|
8
|
-
return /* @__PURE__ */
|
|
8
|
+
return /* @__PURE__ */ React__default.createElement(TCell, { ...rest }, children);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { Td as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
import { TContainer } from './styled.js';
|
|
3
3
|
|
|
4
4
|
const TableContainer = ({
|
|
5
5
|
children,
|
|
6
6
|
...rest
|
|
7
7
|
}) => {
|
|
8
|
-
return /* @__PURE__ */
|
|
8
|
+
return /* @__PURE__ */ React__default.createElement(TContainer, { ...rest }, children);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { TableContainer as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
import { TFooter } from './styled.js';
|
|
3
3
|
|
|
4
4
|
const TFoot = ({
|
|
5
5
|
children,
|
|
6
6
|
...rest
|
|
7
7
|
}) => {
|
|
8
|
-
return /* @__PURE__ */
|
|
8
|
+
return /* @__PURE__ */ React__default.createElement(TFooter, { ...rest }, children);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { TFoot as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
import { THeadStyled, HeaderBackground } from './styled.js';
|
|
3
3
|
import Tr from '../Row/Tr.js';
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@ const THead = ({
|
|
|
6
6
|
children,
|
|
7
7
|
...rest
|
|
8
8
|
}) => {
|
|
9
|
-
return /* @__PURE__ */
|
|
9
|
+
return /* @__PURE__ */ React__default.createElement(THeadStyled, { ...rest }, children, /* @__PURE__ */ React__default.createElement(Tr, null, /* @__PURE__ */ React__default.createElement("td", { colSpan: 99 }, /* @__PURE__ */ React__default.createElement(HeaderBackground, null))));
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
export { THead as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
import { ThStyled } from './styled.js';
|
|
3
3
|
|
|
4
4
|
const Th = ({
|
|
5
5
|
children,
|
|
6
6
|
...rest
|
|
7
7
|
}) => {
|
|
8
|
-
return /* @__PURE__ */
|
|
8
|
+
return /* @__PURE__ */ React__default.createElement(ThStyled, { ...rest }, children);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { Th as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
import { TRow } from './styled.js';
|
|
3
3
|
|
|
4
4
|
const Tr = ({
|
|
5
5
|
children,
|
|
6
6
|
...rest
|
|
7
7
|
}) => {
|
|
8
|
-
return /* @__PURE__ */
|
|
8
|
+
return /* @__PURE__ */ React__default.createElement(TRow, { ...rest }, children);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { Tr as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
import { TableStyled } from './styled.js';
|
|
3
3
|
|
|
4
4
|
const Table = ({
|
|
5
5
|
children,
|
|
6
6
|
...rest
|
|
7
7
|
}) => {
|
|
8
|
-
return /* @__PURE__ */
|
|
8
|
+
return /* @__PURE__ */ React__default.createElement(TableStyled, { ...rest }, children);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { Table as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
import { TableToolbarStyled } from './styled.js';
|
|
3
3
|
import { Text } from '@tecsinapse/react-core';
|
|
4
4
|
|
|
@@ -8,7 +8,7 @@ const TableToolbar = ({
|
|
|
8
8
|
footer,
|
|
9
9
|
...rest
|
|
10
10
|
}) => {
|
|
11
|
-
return /* @__PURE__ */
|
|
11
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(TableToolbarStyled, { ...rest }, /* @__PURE__ */ React__default.createElement(Text, { typography: "h3", fontWeight: "bold" }, title), rightIcons), footer);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
export { TableToolbar as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
import { Tag as Tag$1, Text } from '@tecsinapse/react-core';
|
|
3
3
|
|
|
4
4
|
const Tag = ({
|
|
@@ -14,12 +14,12 @@ const Tag = ({
|
|
|
14
14
|
fontStack = "default",
|
|
15
15
|
fontWeight = "bold"
|
|
16
16
|
} = textProps || {};
|
|
17
|
-
return /* @__PURE__ */
|
|
17
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
18
18
|
Tag$1,
|
|
19
19
|
{
|
|
20
20
|
backgroundColorVariant,
|
|
21
21
|
backgroundColorTone,
|
|
22
|
-
value: /* @__PURE__ */
|
|
22
|
+
value: /* @__PURE__ */ React__default.createElement(
|
|
23
23
|
Text,
|
|
24
24
|
{
|
|
25
25
|
colorVariant,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
import { Text } from '@tecsinapse/react-core';
|
|
3
3
|
import { Container, TooltipSpan } from './styled.js';
|
|
4
4
|
|
|
@@ -8,17 +8,17 @@ const Tooltip = ({
|
|
|
8
8
|
maxWidht,
|
|
9
9
|
position = "bottom"
|
|
10
10
|
}) => {
|
|
11
|
-
const spanRef =
|
|
12
|
-
const [computed, setComputed] =
|
|
11
|
+
const spanRef = React__default.useRef();
|
|
12
|
+
const [computed, setComputed] = React__default.useState(
|
|
13
13
|
void 0
|
|
14
14
|
);
|
|
15
|
-
|
|
15
|
+
React__default.useLayoutEffect(() => {
|
|
16
16
|
setComputed({
|
|
17
17
|
width: spanRef.current?.clientWidth,
|
|
18
18
|
height: spanRef.current?.clientHeight
|
|
19
19
|
});
|
|
20
20
|
}, []);
|
|
21
|
-
return /* @__PURE__ */
|
|
21
|
+
return /* @__PURE__ */ React__default.createElement(Container, { position }, children, /* @__PURE__ */ React__default.createElement(
|
|
22
22
|
TooltipSpan,
|
|
23
23
|
{
|
|
24
24
|
maxWidth: maxWidht,
|
|
@@ -26,7 +26,7 @@ const Tooltip = ({
|
|
|
26
26
|
position,
|
|
27
27
|
ref: (ref) => spanRef.current = ref
|
|
28
28
|
},
|
|
29
|
-
/* @__PURE__ */
|
|
29
|
+
/* @__PURE__ */ React__default.createElement(
|
|
30
30
|
Text,
|
|
31
31
|
{
|
|
32
32
|
fontWeight: "bold",
|
|
@@ -69,7 +69,10 @@ const TooltipSpan = styled("span")(
|
|
|
69
69
|
border-radius: ${theme.borderRadius.mili};
|
|
70
70
|
opacity: 0;
|
|
71
71
|
visibility: hidden;
|
|
72
|
-
transition:
|
|
72
|
+
transition:
|
|
73
|
+
opacity 0.3s,
|
|
74
|
+
visibility 0.3s,
|
|
75
|
+
transform 0.3s;
|
|
73
76
|
background-color: ${theme.color.secondary.xdark};
|
|
74
77
|
z-index: ${theme.zIndex.absolute};
|
|
75
78
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
import { Text, Icon } from '@tecsinapse/react-core';
|
|
3
3
|
import { StyledContainerItem, StyledContainerIcon } from './styled.js';
|
|
4
4
|
|
|
@@ -9,7 +9,7 @@ const BreadcrumbItem = ({
|
|
|
9
9
|
title
|
|
10
10
|
}) => {
|
|
11
11
|
const noTextDecoration = { textDecoration: "none" };
|
|
12
|
-
return /* @__PURE__ */
|
|
12
|
+
return /* @__PURE__ */ React__default.createElement(StyledContainerItem, null, /* @__PURE__ */ React__default.createElement(Component, { ...props, style: noTextDecoration }, /* @__PURE__ */ React__default.createElement(Text, { colorVariant: "secondary", colorTone: isLast ? "medium" : "xdark" }, title)), !isLast && /* @__PURE__ */ React__default.createElement(StyledContainerIcon, null, /* @__PURE__ */ React__default.createElement(
|
|
13
13
|
Icon,
|
|
14
14
|
{
|
|
15
15
|
name: "chevron-double-right",
|