@tecsinapse/react-web-kit 3.5.0 → 3.5.1-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/Accordion/Accordion.js +36 -29
- package/dist/cjs/components/atoms/Badge/Badge.js +5 -5
- package/dist/cjs/components/atoms/Button/Button.js +5 -5
- package/dist/cjs/components/atoms/Dropdown/index.js +6 -5
- package/dist/cjs/components/atoms/Input/Input.js +34 -30
- package/dist/cjs/components/atoms/InputMask/InputMask.js +34 -30
- package/dist/cjs/components/atoms/Modal/Modal.js +17 -13
- package/dist/cjs/components/atoms/Overlay/Overlay.js +6 -5
- package/dist/cjs/components/atoms/Skeleton/Skeleton.js +12 -12
- package/dist/cjs/components/atoms/Switch/Switch.js +13 -12
- package/dist/cjs/components/atoms/Table/Body/TBody.js +2 -2
- package/dist/cjs/components/atoms/Table/Cell/Td.js +2 -2
- package/dist/cjs/components/atoms/Table/Container/TableContainer.js +2 -2
- package/dist/cjs/components/atoms/Table/Footer/TFoot.js +2 -2
- package/dist/cjs/components/atoms/Table/Header/THead.js +5 -2
- package/dist/cjs/components/atoms/Table/Header/Th.js +2 -2
- package/dist/cjs/components/atoms/Table/Row/Tr.js +2 -2
- package/dist/cjs/components/atoms/Table/Table.js +2 -2
- package/dist/cjs/components/atoms/Table/Toolbar/TableToolbar.js +8 -2
- package/dist/cjs/components/atoms/Tag/Tag.js +6 -6
- package/dist/cjs/components/atoms/Tooltip/Tooltip.js +24 -18
- package/dist/cjs/components/molecules/Breadcrumbs/BreadcrumbItem/BreadcrumbItem.js +13 -10
- package/dist/cjs/components/molecules/Breadcrumbs/Breadcrumbs.js +6 -6
- package/dist/cjs/components/molecules/DatePicker/DatePicker.js +13 -12
- package/dist/cjs/components/molecules/DateTimePicker/DateTimePicker.js +4 -3
- package/dist/cjs/components/molecules/DateTimePickerSelector/DateTimePickerSelector.js +53 -64
- package/dist/cjs/components/molecules/DateTimePickerSelector/components/MemoizedTimeCard.js +6 -5
- package/dist/cjs/components/molecules/DateTimePickerSelector/components/ScrollableDigit.js +25 -21
- package/dist/cjs/components/molecules/Drawer/Drawer.js +16 -12
- package/dist/cjs/components/molecules/Grid/Grid.js +32 -24
- package/dist/cjs/components/molecules/Grid/Item/Item.js +10 -5
- package/dist/cjs/components/molecules/IconTextButton/IconTextButton.js +33 -31
- package/dist/cjs/components/molecules/IconTextButton/TextComponent.js +6 -5
- package/dist/cjs/components/molecules/InputPassword/InputPassword.js +13 -9
- package/dist/cjs/components/molecules/LabeledSwitch/LabelComponent.js +6 -5
- package/dist/cjs/components/molecules/LabeledSwitch/LabeledSwitch.js +36 -32
- package/dist/cjs/components/molecules/Masonry/Masonry.js +4 -3
- package/dist/cjs/components/molecules/Menubar/MenuBlock/MenuBlock.js +24 -17
- package/dist/cjs/components/molecules/Menubar/MenuBlock/MenuItem/MenuItem.js +23 -15
- package/dist/cjs/components/molecules/Menubar/MenuBlock/MenuItem/SubMenuBlock/SubMenuBlock.js +6 -2
- package/dist/cjs/components/molecules/Menubar/Menubar.js +75 -58
- package/dist/cjs/components/molecules/Menubar/MostUsed/MostUsed.js +30 -23
- package/dist/cjs/components/molecules/Menubar/SearchResultItem/SearchResultItem.js +14 -11
- package/dist/cjs/components/molecules/Menubar/SearchResultItem/utils.js +2 -2
- package/dist/cjs/components/molecules/ScrollableMonthYearPicker/ScrollableMonthYearPicker.js +28 -24
- package/dist/cjs/components/molecules/ScrollableTimePicker/ScrollableTimePicker.js +31 -47
- package/dist/cjs/components/molecules/Select/Dropdown/Dropdown.js +50 -45
- package/dist/cjs/components/molecules/Select/Dropdown/components/SearchInput.js +3 -2
- package/dist/cjs/components/molecules/Select/Select.js +50 -45
- package/dist/cjs/components/molecules/Select/SelectItem/SelectItem.js +5 -1
- package/dist/cjs/components/molecules/Snackbar/Snackbar.js +2 -2
- package/dist/cjs/components/molecules/TextArea/TextArea.js +19 -19
- package/dist/cjs/components/organisms/DataGrid/DataGrid.js +55 -47
- package/dist/cjs/components/organisms/DataGrid/Footer/Footer.js +72 -57
- package/dist/cjs/components/organisms/DataGrid/Footer/styled.js +2 -1
- package/dist/cjs/components/organisms/DataGrid/Header/Header.js +28 -22
- package/dist/cjs/components/organisms/DataGrid/Header/styled.js +1 -1
- package/dist/cjs/components/organisms/DataGrid/Row/Row.js +11 -7
- package/dist/cjs/components/organisms/DataGrid/styled.js +1 -1
- package/dist/esm/components/atoms/Accordion/Accordion.js +36 -29
- package/dist/esm/components/atoms/Badge/Badge.js +5 -5
- package/dist/esm/components/atoms/Button/Button.js +5 -5
- package/dist/esm/components/atoms/Dropdown/index.js +6 -5
- package/dist/esm/components/atoms/Input/Input.js +34 -30
- package/dist/esm/components/atoms/InputMask/InputMask.js +34 -30
- package/dist/esm/components/atoms/Modal/Modal.js +18 -14
- package/dist/esm/components/atoms/Overlay/Overlay.js +7 -6
- package/dist/esm/components/atoms/Skeleton/Skeleton.js +12 -12
- package/dist/esm/components/atoms/Switch/Switch.js +14 -13
- 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 +5 -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 +8 -2
- package/dist/esm/components/atoms/Tag/Tag.js +6 -6
- package/dist/esm/components/atoms/Tooltip/Tooltip.js +24 -18
- package/dist/esm/components/molecules/Breadcrumbs/BreadcrumbItem/BreadcrumbItem.js +13 -10
- package/dist/esm/components/molecules/Breadcrumbs/Breadcrumbs.js +6 -6
- package/dist/esm/components/molecules/DatePicker/DatePicker.js +14 -13
- package/dist/esm/components/molecules/DateTimePicker/DateTimePicker.js +5 -4
- package/dist/esm/components/molecules/DateTimePickerSelector/DateTimePickerSelector.js +53 -45
- package/dist/esm/components/molecules/DateTimePickerSelector/components/MemoizedTimeCard.js +6 -5
- package/dist/esm/components/molecules/DateTimePickerSelector/components/ScrollableDigit.js +25 -21
- package/dist/esm/components/molecules/Drawer/Drawer.js +17 -13
- package/dist/esm/components/molecules/Grid/Grid.js +32 -24
- package/dist/esm/components/molecules/Grid/Item/Item.js +10 -5
- package/dist/esm/components/molecules/IconTextButton/IconTextButton.js +33 -31
- package/dist/esm/components/molecules/IconTextButton/TextComponent.js +6 -5
- package/dist/esm/components/molecules/InputPassword/InputPassword.js +13 -9
- package/dist/esm/components/molecules/LabeledSwitch/LabelComponent.js +6 -5
- package/dist/esm/components/molecules/LabeledSwitch/LabeledSwitch.js +36 -32
- package/dist/esm/components/molecules/Masonry/Masonry.js +4 -3
- package/dist/esm/components/molecules/Menubar/MenuBlock/MenuBlock.js +24 -17
- package/dist/esm/components/molecules/Menubar/MenuBlock/MenuItem/MenuItem.js +23 -15
- package/dist/esm/components/molecules/Menubar/MenuBlock/MenuItem/SubMenuBlock/SubMenuBlock.js +6 -2
- package/dist/esm/components/molecules/Menubar/Menubar.js +75 -58
- package/dist/esm/components/molecules/Menubar/MostUsed/MostUsed.js +31 -24
- package/dist/esm/components/molecules/Menubar/SearchResultItem/SearchResultItem.js +14 -11
- package/dist/esm/components/molecules/Menubar/SearchResultItem/utils.js +2 -2
- package/dist/esm/components/molecules/ScrollableMonthYearPicker/ScrollableMonthYearPicker.js +28 -24
- package/dist/esm/components/molecules/ScrollableTimePicker/ScrollableTimePicker.js +31 -28
- package/dist/esm/components/molecules/Select/Dropdown/Dropdown.js +50 -45
- package/dist/esm/components/molecules/Select/Dropdown/components/SearchInput.js +3 -2
- package/dist/esm/components/molecules/Select/Select.js +50 -45
- package/dist/esm/components/molecules/Select/SelectItem/SelectItem.js +5 -1
- package/dist/esm/components/molecules/Snackbar/Snackbar.js +2 -2
- package/dist/esm/components/molecules/TextArea/TextArea.js +19 -19
- package/dist/esm/components/organisms/DataGrid/DataGrid.js +55 -47
- package/dist/esm/components/organisms/DataGrid/Footer/Footer.js +72 -57
- package/dist/esm/components/organisms/DataGrid/Footer/styled.js +2 -1
- package/dist/esm/components/organisms/DataGrid/Header/Header.js +28 -22
- package/dist/esm/components/organisms/DataGrid/Header/styled.js +1 -1
- package/dist/esm/components/organisms/DataGrid/Row/Row.js +11 -7
- package/dist/esm/components/organisms/DataGrid/styled.js +1 -1
- package/dist/types/components/atoms/Accordion/Accordion.d.ts +1 -1
- package/dist/types/components/atoms/Accordion/styled.d.ts +4 -4
- package/dist/types/components/atoms/Dropdown/index.d.ts +1 -1
- package/dist/types/components/atoms/Dropdown/styled.d.ts +1 -1
- package/dist/types/components/atoms/Modal/styled.d.ts +1 -1
- package/dist/types/components/atoms/Overlay/Overlay.d.ts +2 -2
- package/dist/types/components/atoms/Overlay/styled.d.ts +1 -1
- package/dist/types/components/atoms/Skeleton/styled.d.ts +1 -1
- package/dist/types/components/atoms/Switch/styled.d.ts +2 -2
- package/dist/types/components/atoms/Table/Cell/styled.d.ts +1 -1
- package/dist/types/components/atoms/Table/Container/styled.d.ts +1 -1
- package/dist/types/components/atoms/Table/Footer/styled.d.ts +1 -1
- package/dist/types/components/atoms/Table/Header/styled.d.ts +3 -3
- package/dist/types/components/atoms/Table/Row/styled.d.ts +1 -1
- package/dist/types/components/atoms/Table/Toolbar/styled.d.ts +1 -1
- package/dist/types/components/atoms/Table/styled.d.ts +1 -1
- package/dist/types/components/atoms/Tooltip/styled.d.ts +2 -2
- package/dist/types/components/molecules/Breadcrumbs/BreadcrumbItem/styled.d.ts +2 -2
- package/dist/types/components/molecules/Breadcrumbs/styled.d.ts +1 -1
- package/dist/types/components/molecules/DatePicker/DatePicker.d.ts +2 -1
- package/dist/types/components/molecules/DatePicker/Modal.d.ts +3 -2
- package/dist/types/components/molecules/DateTimePickerSelector/components/MemoizedTimeCard.d.ts +1 -1
- package/dist/types/components/molecules/Drawer/styled.d.ts +1 -1
- package/dist/types/components/molecules/Grid/Grid.d.ts +1 -1
- package/dist/types/components/molecules/Grid/Item/Item.d.ts +1 -1
- package/dist/types/components/molecules/LabeledSwitch/styled.d.ts +1 -1
- package/dist/types/components/molecules/Masonry/Masonry.d.ts +2 -2
- package/dist/types/components/molecules/Masonry/styled.d.ts +3 -3
- package/dist/types/components/molecules/Menubar/MenuBlock/MenuItem/SubMenuBlock/styled.d.ts +2 -2
- package/dist/types/components/molecules/Menubar/MenuBlock/MenuItem/styled.d.ts +2 -2
- package/dist/types/components/molecules/Menubar/MenuBlock/styled.d.ts +5 -5
- package/dist/types/components/molecules/Menubar/MostUsed/styled.d.ts +1 -1
- package/dist/types/components/molecules/Menubar/SearchResultItem/styled.d.ts +1 -1
- package/dist/types/components/molecules/Menubar/styled.d.ts +6 -6
- package/dist/types/components/molecules/ScrollableMonthYearPicker/styled.d.ts +2 -2
- package/dist/types/components/molecules/ScrollableTimePicker/styled.d.ts +2 -2
- package/dist/types/components/molecules/Select/Dropdown/Dropdown.d.ts +1 -1
- package/dist/types/components/molecules/Select/Dropdown/components/SearchInput.d.ts +1 -1
- package/dist/types/components/molecules/Select/Dropdown/styled.d.ts +7 -12
- package/dist/types/components/molecules/Select/Select.d.ts +2 -2
- package/dist/types/components/molecules/Select/SelectItem/SelectItem.d.ts +2 -1
- package/dist/types/components/molecules/Select/SelectItem/styled.d.ts +3 -3
- package/dist/types/components/molecules/Select/styled.d.ts +3 -3
- package/dist/types/components/organisms/DataGrid/DataGrid.d.ts +1 -1
- package/dist/types/components/organisms/DataGrid/Footer/styled.d.ts +8 -25
- package/dist/types/components/organisms/DataGrid/Header/Header.d.ts +2 -1
- package/dist/types/components/organisms/DataGrid/Header/styled.d.ts +1 -3
- package/dist/types/components/organisms/DataGrid/Row/Row.d.ts +1 -1
- package/dist/types/components/organisms/DataGrid/styled.d.ts +1 -3
- package/package.json +3 -3
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
1
2
|
import { useInputFocus, InputContainer, Hint } from '@tecsinapse/react-core';
|
|
2
3
|
import React__default from 'react';
|
|
3
4
|
import { View } from 'react-native-web';
|
|
@@ -28,45 +29,48 @@ const InputMask = React__default.forwardRef(
|
|
|
28
29
|
placeholder,
|
|
29
30
|
...rest
|
|
30
31
|
}, ref) => {
|
|
31
|
-
const _hint = hintComponent || /* @__PURE__ */
|
|
32
|
+
const _hint = hintComponent || /* @__PURE__ */ jsx(Hint, { text: hint, variant });
|
|
32
33
|
const { focused, handleBlur, handleFocus } = useInputFocus(
|
|
33
34
|
onFocus,
|
|
34
35
|
onBlur,
|
|
35
36
|
!disabled
|
|
36
37
|
);
|
|
37
38
|
const onlyLabel = label && !placeholder;
|
|
38
|
-
return /* @__PURE__ */
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
label: String(value) ? label : void 0,
|
|
42
|
-
labelColor,
|
|
43
|
-
labelColorVariant,
|
|
44
|
-
labelColorTone,
|
|
45
|
-
labelTypography,
|
|
46
|
-
labelStack,
|
|
47
|
-
labelWeight,
|
|
48
|
-
leftComponent,
|
|
49
|
-
rightComponent,
|
|
50
|
-
borderColor,
|
|
51
|
-
borderColorGradation,
|
|
52
|
-
inputContainerStyle,
|
|
53
|
-
focused,
|
|
54
|
-
disabled,
|
|
55
|
-
variant
|
|
56
|
-
},
|
|
57
|
-
/* @__PURE__ */ React__default.createElement(
|
|
58
|
-
StyledWebTextInputMask,
|
|
39
|
+
return /* @__PURE__ */ jsxs(View, { style, children: [
|
|
40
|
+
/* @__PURE__ */ jsx(
|
|
41
|
+
InputContainer,
|
|
59
42
|
{
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
43
|
+
label: String(value) ? label : void 0,
|
|
44
|
+
labelColor,
|
|
45
|
+
labelColorVariant,
|
|
46
|
+
labelColorTone,
|
|
47
|
+
labelTypography,
|
|
48
|
+
labelStack,
|
|
49
|
+
labelWeight,
|
|
50
|
+
leftComponent,
|
|
51
|
+
rightComponent,
|
|
52
|
+
borderColor,
|
|
53
|
+
borderColorGradation,
|
|
54
|
+
inputContainerStyle,
|
|
55
|
+
focused,
|
|
64
56
|
disabled,
|
|
65
|
-
|
|
66
|
-
|
|
57
|
+
variant,
|
|
58
|
+
children: /* @__PURE__ */ jsx(
|
|
59
|
+
StyledWebTextInputMask,
|
|
60
|
+
{
|
|
61
|
+
...rest,
|
|
62
|
+
placeholder: onlyLabel ? label : placeholder,
|
|
63
|
+
value,
|
|
64
|
+
ref,
|
|
65
|
+
disabled,
|
|
66
|
+
onFocus: handleFocus,
|
|
67
|
+
onBlur: handleBlur
|
|
68
|
+
}
|
|
69
|
+
)
|
|
67
70
|
}
|
|
68
|
-
)
|
|
69
|
-
|
|
71
|
+
),
|
|
72
|
+
hint && _hint
|
|
73
|
+
] });
|
|
70
74
|
}
|
|
71
75
|
);
|
|
72
76
|
InputMask.displayName = "InputMask";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useRef } from 'react';
|
|
2
3
|
import { Transition } from 'react-transition-group';
|
|
3
4
|
import Overlay from '../Overlay/Overlay.js';
|
|
4
5
|
import { ModalContainer } from './styled.js';
|
|
@@ -12,19 +13,22 @@ const Modal = ({
|
|
|
12
13
|
...rest
|
|
13
14
|
}) => {
|
|
14
15
|
const transitionRef = useRef(null);
|
|
15
|
-
return /* @__PURE__ */
|
|
16
|
-
|
|
17
|
-
{
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
16
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
17
|
+
/* @__PURE__ */ jsx(Overlay, { open, onClose, zIndex: "modal" }),
|
|
18
|
+
/* @__PURE__ */ jsx(Transition, { in: open, timeout: 400, nodeRef: transitionRef, children: (state) => /* @__PURE__ */ jsx(
|
|
19
|
+
ModalContainer,
|
|
20
|
+
{
|
|
21
|
+
ref: transitionRef,
|
|
22
|
+
style: {
|
|
23
|
+
...style,
|
|
24
|
+
...defaultStyleOverlay,
|
|
25
|
+
...transitionStylesOverlay[state]
|
|
26
|
+
},
|
|
27
|
+
...rest,
|
|
28
|
+
children
|
|
29
|
+
}
|
|
30
|
+
) })
|
|
31
|
+
] });
|
|
28
32
|
};
|
|
29
33
|
|
|
30
34
|
export { Modal as default };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useRef } from 'react';
|
|
2
3
|
import { Transition } from 'react-transition-group';
|
|
3
4
|
import { defaultStyleOverlay, transitionStylesOverlay } from './animations.js';
|
|
4
5
|
import { StyledOverlay } from './styled.js';
|
|
@@ -11,7 +12,7 @@ const Overlay = ({
|
|
|
11
12
|
children
|
|
12
13
|
}) => {
|
|
13
14
|
const transitionRef = useRef(null);
|
|
14
|
-
return /* @__PURE__ */
|
|
15
|
+
return /* @__PURE__ */ jsx(Transition, { in: open, timeout, nodeRef: transitionRef, children: (state) => /* @__PURE__ */ jsx(
|
|
15
16
|
StyledOverlay,
|
|
16
17
|
{
|
|
17
18
|
style: {
|
|
@@ -21,10 +22,10 @@ const Overlay = ({
|
|
|
21
22
|
onClick: open ? onClose : void 0,
|
|
22
23
|
show: open,
|
|
23
24
|
zIndex,
|
|
24
|
-
ref: transitionRef
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
));
|
|
25
|
+
ref: transitionRef,
|
|
26
|
+
children
|
|
27
|
+
}
|
|
28
|
+
) });
|
|
28
29
|
};
|
|
29
30
|
|
|
30
31
|
export { Overlay as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
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__ */ jsx(
|
|
20
20
|
Wrapper,
|
|
21
21
|
{
|
|
22
22
|
width,
|
|
@@ -24,16 +24,16 @@ const Skeleton = ({
|
|
|
24
24
|
animation,
|
|
25
25
|
active,
|
|
26
26
|
radius,
|
|
27
|
-
...rest
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
27
|
+
...rest,
|
|
28
|
+
children: /* @__PURE__ */ jsx(
|
|
29
|
+
View,
|
|
30
|
+
{
|
|
31
|
+
style: { opacity: active ? 0 : 1 },
|
|
32
|
+
pointerEvents: active ? "none" : "auto",
|
|
33
|
+
children
|
|
34
|
+
}
|
|
35
|
+
)
|
|
36
|
+
}
|
|
37
37
|
);
|
|
38
38
|
};
|
|
39
39
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useRef, useCallback } from 'react';
|
|
2
3
|
import { useTheme, lightenDarkenColor } from '@tecsinapse/react-core';
|
|
3
4
|
import { Transition } from 'react-transition-group';
|
|
4
5
|
import { StyledSwitchContent, StyledSwitch } from './styled.js';
|
|
@@ -47,25 +48,25 @@ const Switch = ({
|
|
|
47
48
|
)
|
|
48
49
|
}
|
|
49
50
|
};
|
|
50
|
-
return /* @__PURE__ */
|
|
51
|
+
return /* @__PURE__ */ jsx(Transition, { in: active, timeout: 100, nodeRef: transitionRef, children: (state) => /* @__PURE__ */ jsx("div", { onClick: handleChange, ref: transitionRef, children: /* @__PURE__ */ jsx(
|
|
51
52
|
StyledSwitchContent,
|
|
52
53
|
{
|
|
53
54
|
...rest,
|
|
54
55
|
style: {
|
|
55
56
|
...defaultStyleBackground,
|
|
56
57
|
...transitionStylesBackground[state]
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
58
|
+
},
|
|
59
|
+
children: /* @__PURE__ */ jsx(
|
|
60
|
+
StyledSwitch,
|
|
61
|
+
{
|
|
62
|
+
style: {
|
|
63
|
+
...defaultStyleCircle,
|
|
64
|
+
...transitionStylesCircle[state]
|
|
65
|
+
}
|
|
65
66
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
)));
|
|
67
|
+
)
|
|
68
|
+
}
|
|
69
|
+
) }) });
|
|
69
70
|
};
|
|
70
71
|
|
|
71
72
|
export { Switch as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
|
|
3
3
|
const TBody = ({
|
|
4
4
|
children,
|
|
5
5
|
...rest
|
|
6
6
|
}) => {
|
|
7
|
-
return /* @__PURE__ */
|
|
7
|
+
return /* @__PURE__ */ jsx("tbody", { ...rest, children });
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
export { TBody as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
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__ */ jsx(TCell, { ...rest, children });
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { Td as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
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__ */ jsx(TContainer, { ...rest, children });
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { TableContainer as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
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__ */ jsx(TFooter, { ...rest, children });
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { TFoot as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { THeadStyled, HeaderBackground } from './styled.js';
|
|
3
3
|
import Tr from '../Row/Tr.js';
|
|
4
4
|
|
|
@@ -6,7 +6,10 @@ const THead = ({
|
|
|
6
6
|
children,
|
|
7
7
|
...rest
|
|
8
8
|
}) => {
|
|
9
|
-
return /* @__PURE__ */
|
|
9
|
+
return /* @__PURE__ */ jsxs(THeadStyled, { ...rest, children: [
|
|
10
|
+
children,
|
|
11
|
+
/* @__PURE__ */ jsx(Tr, { children: /* @__PURE__ */ jsx("td", { colSpan: 99, children: /* @__PURE__ */ jsx(HeaderBackground, {}) }) })
|
|
12
|
+
] });
|
|
10
13
|
};
|
|
11
14
|
|
|
12
15
|
export { THead as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
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__ */ jsx(ThStyled, { ...rest, children });
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { Th as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
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__ */ jsx(TRow, { ...rest, children });
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { Tr as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
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__ */ jsx(TableStyled, { ...rest, children });
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { Table as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { TableToolbarStyled } from './styled.js';
|
|
3
3
|
import { Text } from '@tecsinapse/react-core';
|
|
4
4
|
|
|
@@ -8,7 +8,13 @@ const TableToolbar = ({
|
|
|
8
8
|
footer,
|
|
9
9
|
...rest
|
|
10
10
|
}) => {
|
|
11
|
-
return /* @__PURE__ */
|
|
11
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
12
|
+
/* @__PURE__ */ jsxs(TableToolbarStyled, { ...rest, children: [
|
|
13
|
+
/* @__PURE__ */ jsx(Text, { typography: "h3", fontWeight: "bold", children: title }),
|
|
14
|
+
rightIcons
|
|
15
|
+
] }),
|
|
16
|
+
footer
|
|
17
|
+
] });
|
|
12
18
|
};
|
|
13
19
|
|
|
14
20
|
export { TableToolbar as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Tag as Tag$1, Text } from '@tecsinapse/react-core';
|
|
3
3
|
|
|
4
4
|
const Tag = ({
|
|
@@ -14,21 +14,21 @@ const Tag = ({
|
|
|
14
14
|
fontStack = "default",
|
|
15
15
|
fontWeight = "bold"
|
|
16
16
|
} = textProps || {};
|
|
17
|
-
return /* @__PURE__ */
|
|
17
|
+
return /* @__PURE__ */ jsx(
|
|
18
18
|
Tag$1,
|
|
19
19
|
{
|
|
20
20
|
backgroundColorVariant,
|
|
21
21
|
backgroundColorTone,
|
|
22
|
-
value: /* @__PURE__ */
|
|
22
|
+
value: /* @__PURE__ */ jsx(
|
|
23
23
|
Text,
|
|
24
24
|
{
|
|
25
25
|
colorVariant,
|
|
26
26
|
colorTone,
|
|
27
27
|
fontStack,
|
|
28
28
|
fontWeight,
|
|
29
|
-
typography: rest.variant === "small" ? "sub" : "base"
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
typography: rest.variant === "small" ? "sub" : "base",
|
|
30
|
+
children: value
|
|
31
|
+
}
|
|
32
32
|
),
|
|
33
33
|
...rest
|
|
34
34
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
1
2
|
import React__default from 'react';
|
|
2
3
|
import { Text } from '@tecsinapse/react-core';
|
|
3
4
|
import { Container, TooltipSpan } from './styled.js';
|
|
@@ -8,7 +9,7 @@ const Tooltip = ({
|
|
|
8
9
|
maxWidht,
|
|
9
10
|
position = "bottom"
|
|
10
11
|
}) => {
|
|
11
|
-
const spanRef = React__default.useRef();
|
|
12
|
+
const spanRef = React__default.useRef(null);
|
|
12
13
|
const [computed, setComputed] = React__default.useState(
|
|
13
14
|
void 0
|
|
14
15
|
);
|
|
@@ -18,25 +19,30 @@ const Tooltip = ({
|
|
|
18
19
|
height: spanRef.current?.clientHeight
|
|
19
20
|
});
|
|
20
21
|
}, []);
|
|
21
|
-
return /* @__PURE__ */
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
computed,
|
|
26
|
-
position,
|
|
27
|
-
ref: (ref) => spanRef.current = ref
|
|
28
|
-
},
|
|
29
|
-
/* @__PURE__ */ React__default.createElement(
|
|
30
|
-
Text,
|
|
22
|
+
return /* @__PURE__ */ jsxs(Container, { position, children: [
|
|
23
|
+
children,
|
|
24
|
+
/* @__PURE__ */ jsx(
|
|
25
|
+
TooltipSpan,
|
|
31
26
|
{
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
27
|
+
maxWidth: maxWidht,
|
|
28
|
+
computed,
|
|
29
|
+
position,
|
|
30
|
+
ref: (ref) => {
|
|
31
|
+
spanRef.current = ref;
|
|
32
|
+
},
|
|
33
|
+
children: /* @__PURE__ */ jsx(
|
|
34
|
+
Text,
|
|
35
|
+
{
|
|
36
|
+
fontWeight: "bold",
|
|
37
|
+
typography: "base",
|
|
38
|
+
colorVariant: "secondary",
|
|
39
|
+
colorTone: "xlight",
|
|
40
|
+
children: title
|
|
41
|
+
}
|
|
42
|
+
)
|
|
43
|
+
}
|
|
38
44
|
)
|
|
39
|
-
)
|
|
45
|
+
] });
|
|
40
46
|
};
|
|
41
47
|
|
|
42
48
|
export { Tooltip as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Text, Icon } from '@tecsinapse/react-core';
|
|
3
3
|
import { StyledContainerItem, StyledContainerIcon } from './styled.js';
|
|
4
4
|
|
|
@@ -9,15 +9,18 @@ const BreadcrumbItem = ({
|
|
|
9
9
|
title
|
|
10
10
|
}) => {
|
|
11
11
|
const noTextDecoration = { textDecoration: "none" };
|
|
12
|
-
return /* @__PURE__ */
|
|
13
|
-
|
|
14
|
-
{
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
12
|
+
return /* @__PURE__ */ jsxs(StyledContainerItem, { children: [
|
|
13
|
+
/* @__PURE__ */ jsx(Component, { ...props, style: noTextDecoration, children: /* @__PURE__ */ jsx(Text, { colorVariant: "secondary", colorTone: isLast ? "medium" : "xdark", children: title }) }),
|
|
14
|
+
!isLast && /* @__PURE__ */ jsx(StyledContainerIcon, { children: /* @__PURE__ */ jsx(
|
|
15
|
+
Icon,
|
|
16
|
+
{
|
|
17
|
+
name: "chevron-double-right",
|
|
18
|
+
type: "material-community",
|
|
19
|
+
size: "centi",
|
|
20
|
+
fontColor: "orange"
|
|
21
|
+
}
|
|
22
|
+
) })
|
|
23
|
+
] });
|
|
21
24
|
};
|
|
22
25
|
|
|
23
26
|
export { BreadcrumbItem as default };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { StyledContainerBreadcrumbs } from './styled.js';
|
|
3
3
|
import BreadcrumbItem from './BreadcrumbItem/BreadcrumbItem.js';
|
|
4
4
|
|
|
5
5
|
const Breadcrumbs = ({ breadcrumbs, ...rest }) => {
|
|
6
|
-
return /* @__PURE__ */
|
|
6
|
+
return /* @__PURE__ */ jsx(StyledContainerBreadcrumbs, { ...rest, children: breadcrumbs.map((item, index) => {
|
|
7
7
|
const { props, Component = "a", title } = item;
|
|
8
|
-
return /* @__PURE__ */
|
|
8
|
+
return /* @__PURE__ */ jsx(
|
|
9
9
|
BreadcrumbItem,
|
|
10
10
|
{
|
|
11
|
-
key: index,
|
|
12
11
|
Component,
|
|
13
12
|
props,
|
|
14
13
|
isLast: breadcrumbs.length - 1 === index,
|
|
15
14
|
title
|
|
16
|
-
}
|
|
15
|
+
},
|
|
16
|
+
index
|
|
17
17
|
);
|
|
18
|
-
}));
|
|
18
|
+
}) });
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
export { Breadcrumbs as default };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
1
2
|
import { useTheme, DatePicker as DatePicker$1, Calendar, Masks, PressableSurface, CalendarIcon } from '@tecsinapse/react-core';
|
|
2
3
|
import { parse, isValid } from 'date-fns';
|
|
3
|
-
import
|
|
4
|
+
import { useState, useCallback, useMemo } from 'react';
|
|
4
5
|
import { Dropdown } from '../../atoms/Dropdown/index.js';
|
|
5
6
|
import InputMask from '../../atoms/InputMask/InputMask.js';
|
|
6
7
|
|
|
@@ -49,7 +50,7 @@ const DatePicker = ({
|
|
|
49
50
|
onChange?.(void 0);
|
|
50
51
|
}, [value]);
|
|
51
52
|
const controlComponent = (onPress, displayValue) => {
|
|
52
|
-
return /* @__PURE__ */
|
|
53
|
+
return /* @__PURE__ */ jsx(
|
|
53
54
|
InputMask,
|
|
54
55
|
{
|
|
55
56
|
onBlur: () => {
|
|
@@ -84,21 +85,21 @@ const DatePicker = ({
|
|
|
84
85
|
placeholder,
|
|
85
86
|
label,
|
|
86
87
|
placeholderTextColor: disabled ? theme.color.secondary.light : void 0,
|
|
87
|
-
rightComponent: /* @__PURE__ */
|
|
88
|
+
rightComponent: /* @__PURE__ */ jsx(
|
|
88
89
|
PressableSurface,
|
|
89
90
|
{
|
|
90
91
|
effect: "none",
|
|
91
92
|
style: { padding: 0 },
|
|
92
93
|
onPress,
|
|
93
|
-
disabled
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
disabled,
|
|
95
|
+
children: /* @__PURE__ */ jsx(CalendarIcon, { name: "calendar-sharp", type: "ionicon", size: "centi" })
|
|
96
|
+
}
|
|
96
97
|
)
|
|
97
98
|
}
|
|
98
99
|
);
|
|
99
100
|
};
|
|
100
101
|
if (type === "day") {
|
|
101
|
-
return /* @__PURE__ */
|
|
102
|
+
return /* @__PURE__ */ jsx(
|
|
102
103
|
DatePicker$1,
|
|
103
104
|
{
|
|
104
105
|
...rest,
|
|
@@ -113,12 +114,12 @@ const DatePicker = ({
|
|
|
113
114
|
month: getMonth,
|
|
114
115
|
requestShowCalendar: show,
|
|
115
116
|
requestCloseCalendar: close,
|
|
116
|
-
renderCalendar: (calendar) => /* @__PURE__ */
|
|
117
|
+
renderCalendar: (calendar) => /* @__PURE__ */ jsx(Dropdown, { visible, setVisible, children: calendar }),
|
|
117
118
|
controlComponent
|
|
118
119
|
}
|
|
119
120
|
);
|
|
120
121
|
} else {
|
|
121
|
-
return /* @__PURE__ */
|
|
122
|
+
return /* @__PURE__ */ jsx(
|
|
122
123
|
DatePicker$1,
|
|
123
124
|
{
|
|
124
125
|
...rest,
|
|
@@ -135,7 +136,7 @@ const DatePicker = ({
|
|
|
135
136
|
requestCloseCalendar: close,
|
|
136
137
|
placeholder,
|
|
137
138
|
label,
|
|
138
|
-
renderCalendar: (calendar, handleBlur) => /* @__PURE__ */
|
|
139
|
+
renderCalendar: (calendar, handleBlur) => /* @__PURE__ */ jsx(
|
|
139
140
|
Dropdown,
|
|
140
141
|
{
|
|
141
142
|
visible,
|
|
@@ -143,9 +144,9 @@ const DatePicker = ({
|
|
|
143
144
|
onClickAway: () => {
|
|
144
145
|
handleBlur?.();
|
|
145
146
|
checksFullRange();
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
|
|
147
|
+
},
|
|
148
|
+
children: calendar
|
|
149
|
+
}
|
|
149
150
|
)
|
|
150
151
|
}
|
|
151
152
|
);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
1
2
|
import { DateTimePicker as DateTimePicker$1, ControlledDateTimeSelector } from '@tecsinapse/react-core';
|
|
2
|
-
import
|
|
3
|
+
import { useState, useCallback } from 'react';
|
|
3
4
|
import { Dropdown } from '../../atoms/Dropdown/index.js';
|
|
4
5
|
import DateTimePickerSelector from '../DateTimePickerSelector/DateTimePickerSelector.js';
|
|
5
6
|
|
|
@@ -7,11 +8,11 @@ const DateTimePicker = ({ ...rest }) => {
|
|
|
7
8
|
const [visible, setVisible] = useState(false);
|
|
8
9
|
const show = useCallback(() => setVisible(true), []);
|
|
9
10
|
const close = useCallback(() => setVisible(false), []);
|
|
10
|
-
return /* @__PURE__ */
|
|
11
|
+
return /* @__PURE__ */ jsx(
|
|
11
12
|
DateTimePicker$1,
|
|
12
13
|
{
|
|
13
14
|
...rest,
|
|
14
|
-
DateTimeSelectorComponent: (props) => /* @__PURE__ */
|
|
15
|
+
DateTimeSelectorComponent: (props) => /* @__PURE__ */ jsx(
|
|
15
16
|
ControlledDateTimeSelector,
|
|
16
17
|
{
|
|
17
18
|
SelectorComponent: DateTimePickerSelector,
|
|
@@ -20,7 +21,7 @@ const DateTimePicker = ({ ...rest }) => {
|
|
|
20
21
|
),
|
|
21
22
|
requestShowSelector: show,
|
|
22
23
|
requestCloseSelector: close,
|
|
23
|
-
renderSelector: (selector) => /* @__PURE__ */
|
|
24
|
+
renderSelector: (selector) => /* @__PURE__ */ jsx(Dropdown, { visible, setVisible, children: selector })
|
|
24
25
|
}
|
|
25
26
|
);
|
|
26
27
|
};
|