@tecsinapse/react-web-kit 1.19.0 → 1.20.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/CHANGELOG.md +13 -0
- package/dist/components/atoms/Accordion/Accordion.js.map +1 -1
- package/dist/components/atoms/Accordion/animations.js.map +1 -1
- package/dist/components/atoms/Accordion/index.js.map +1 -1
- package/dist/components/atoms/Accordion/styled.js +1 -1
- package/dist/components/atoms/Accordion/styled.js.map +1 -1
- package/dist/components/atoms/Badge/Badge.js +1 -1
- package/dist/components/atoms/Badge/Badge.js.map +1 -1
- package/dist/components/atoms/Badge/index.js.map +1 -1
- package/dist/components/atoms/Button/Button.js +1 -1
- package/dist/components/atoms/Button/Button.js.map +1 -1
- package/dist/components/atoms/Button/hooks/useMouseHover.js.map +1 -1
- package/dist/components/atoms/Button/hooks/useMousePressed.js.map +1 -1
- package/dist/components/atoms/Button/index.js.map +1 -1
- package/dist/components/atoms/Button/styled.js.map +1 -1
- package/dist/components/atoms/Dropdown/index.js.map +1 -1
- package/dist/components/atoms/Dropdown/styled.js.map +1 -1
- package/dist/components/atoms/Input/Input.d.ts +4 -3
- package/dist/components/atoms/Input/Input.js +1 -1
- package/dist/components/atoms/Input/Input.js.map +1 -1
- package/dist/components/atoms/Input/index.js.map +1 -1
- package/dist/components/atoms/Input/styled.js.map +1 -1
- package/dist/components/atoms/InputMask/InputMask.d.ts +4 -3
- package/dist/components/atoms/InputMask/InputMask.js +1 -1
- package/dist/components/atoms/InputMask/InputMask.js.map +1 -1
- package/dist/components/atoms/InputMask/index.js.map +1 -1
- package/dist/components/atoms/InputMask/styled.js.map +1 -1
- package/dist/components/atoms/Modal/Modal.js +1 -1
- package/dist/components/atoms/Modal/Modal.js.map +1 -1
- package/dist/components/atoms/Modal/animations.js.map +1 -1
- package/dist/components/atoms/Modal/index.js.map +1 -1
- package/dist/components/atoms/Modal/styled.js.map +1 -1
- package/dist/components/atoms/Overlay/Overlay.js.map +1 -1
- package/dist/components/atoms/Overlay/animations.js.map +1 -1
- package/dist/components/atoms/Overlay/index.js.map +1 -1
- package/dist/components/atoms/Overlay/styled.js.map +1 -1
- package/dist/components/atoms/Skeleton/Skeleton.js +1 -1
- package/dist/components/atoms/Skeleton/Skeleton.js.map +1 -1
- package/dist/components/atoms/Skeleton/index.js.map +1 -1
- package/dist/components/atoms/Skeleton/styled.js.map +1 -1
- package/dist/components/atoms/Table/Body/TBody.js.map +1 -1
- package/dist/components/atoms/Table/Body/index.js.map +1 -1
- package/dist/components/atoms/Table/Cell/Td.js.map +1 -1
- package/dist/components/atoms/Table/Cell/index.js.map +1 -1
- package/dist/components/atoms/Table/Cell/styled.js.map +1 -1
- package/dist/components/atoms/Table/Container/TableContainer.js.map +1 -1
- package/dist/components/atoms/Table/Container/index.js.map +1 -1
- package/dist/components/atoms/Table/Container/styled.js.map +1 -1
- package/dist/components/atoms/Table/Footer/TFoot.js.map +1 -1
- package/dist/components/atoms/Table/Footer/index.js.map +1 -1
- package/dist/components/atoms/Table/Footer/styled.js.map +1 -1
- package/dist/components/atoms/Table/Header/THead.js.map +1 -1
- package/dist/components/atoms/Table/Header/Th.js.map +1 -1
- package/dist/components/atoms/Table/Header/index.js +4 -4
- package/dist/components/atoms/Table/Header/index.js.map +1 -1
- package/dist/components/atoms/Table/Header/styled.js +1 -1
- package/dist/components/atoms/Table/Header/styled.js.map +1 -1
- package/dist/components/atoms/Table/Row/Tr.js.map +1 -1
- package/dist/components/atoms/Table/Row/index.js.map +1 -1
- package/dist/components/atoms/Table/Row/styled.js.map +1 -1
- package/dist/components/atoms/Table/Table.js.map +1 -1
- package/dist/components/atoms/Table/Toolbar/TableToolbar.js.map +1 -1
- package/dist/components/atoms/Table/Toolbar/index.js.map +1 -1
- package/dist/components/atoms/Table/Toolbar/styled.js.map +1 -1
- package/dist/components/atoms/Table/index.js +18 -18
- package/dist/components/atoms/Table/index.js.map +1 -1
- package/dist/components/atoms/Table/styled.js.map +1 -1
- package/dist/components/atoms/Tag/Tag.js +1 -1
- package/dist/components/atoms/Tag/Tag.js.map +1 -1
- package/dist/components/atoms/Tag/index.js.map +1 -1
- package/dist/components/atoms/Tooltip/Tooltip.js.map +1 -1
- package/dist/components/atoms/Tooltip/index.js +4 -4
- package/dist/components/atoms/Tooltip/index.js.map +1 -1
- package/dist/components/atoms/Tooltip/styled.js +3 -1
- package/dist/components/atoms/Tooltip/styled.js.map +1 -1
- package/dist/components/molecules/Breadcrumbs/BreadcrumbItem/BreadcrumbItem.js +1 -1
- package/dist/components/molecules/Breadcrumbs/BreadcrumbItem/BreadcrumbItem.js.map +1 -1
- package/dist/components/molecules/Breadcrumbs/BreadcrumbItem/index.js.map +1 -1
- package/dist/components/molecules/Breadcrumbs/BreadcrumbItem/styled.js +1 -1
- package/dist/components/molecules/Breadcrumbs/BreadcrumbItem/styled.js.map +1 -1
- package/dist/components/molecules/Breadcrumbs/Breadcrumbs.js.map +1 -1
- package/dist/components/molecules/Breadcrumbs/index.js +6 -6
- package/dist/components/molecules/Breadcrumbs/index.js.map +1 -1
- package/dist/components/molecules/Breadcrumbs/styled.js.map +1 -1
- package/dist/components/molecules/DatePicker/DatePicker.js +1 -1
- package/dist/components/molecules/DatePicker/DatePicker.js.map +1 -1
- package/dist/components/molecules/DatePicker/Modal.js +1 -1
- package/dist/components/molecules/DatePicker/Modal.js.map +1 -1
- package/dist/components/molecules/DatePicker/index.js.map +1 -1
- package/dist/components/molecules/DatePicker/styled.js.map +1 -1
- package/dist/components/molecules/DateTimePicker/DateTimePicker.js +1 -1
- package/dist/components/molecules/DateTimePicker/DateTimePicker.js.map +1 -1
- package/dist/components/molecules/DateTimePicker/Modal.js +1 -2
- package/dist/components/molecules/DateTimePicker/Modal.js.map +1 -1
- package/dist/components/molecules/DateTimePicker/index.js.map +1 -1
- package/dist/components/molecules/DateTimePicker/styled.js.map +1 -1
- package/dist/components/molecules/Drawer/Drawer.js +3 -1
- package/dist/components/molecules/Drawer/Drawer.js.map +1 -1
- package/dist/components/molecules/Drawer/animations.js +1 -1
- package/dist/components/molecules/Drawer/animations.js.map +1 -1
- package/dist/components/molecules/Drawer/index.js.map +1 -1
- package/dist/components/molecules/Drawer/styled.js +2 -0
- package/dist/components/molecules/Drawer/styled.js.map +1 -1
- package/dist/components/molecules/Grid/Grid.js +1 -1
- package/dist/components/molecules/Grid/Grid.js.map +1 -1
- package/dist/components/molecules/Grid/Item/Item.js +1 -1
- package/dist/components/molecules/Grid/Item/Item.js.map +1 -1
- package/dist/components/molecules/Grid/Item/functions.js +3 -3
- package/dist/components/molecules/Grid/Item/functions.js.map +1 -1
- package/dist/components/molecules/Grid/Item/index.js.map +1 -1
- package/dist/components/molecules/Grid/index.js +4 -4
- package/dist/components/molecules/Grid/index.js.map +1 -1
- package/dist/components/molecules/IconTextButton/IconTextButton.js +1 -1
- package/dist/components/molecules/IconTextButton/IconTextButton.js.map +1 -1
- package/dist/components/molecules/IconTextButton/TextComponent.js +1 -1
- package/dist/components/molecules/IconTextButton/TextComponent.js.map +1 -1
- package/dist/components/molecules/IconTextButton/hooks/useIconTextButton.js.map +1 -1
- package/dist/components/molecules/IconTextButton/index.js.map +1 -1
- package/dist/components/molecules/IconTextButton/styled.js.map +1 -1
- package/dist/components/molecules/InputPassword/InputPassword.js +1 -1
- package/dist/components/molecules/InputPassword/InputPassword.js.map +1 -1
- package/dist/components/molecules/InputPassword/index.js.map +1 -1
- package/dist/components/molecules/LabeledSwitch/LabelComponent.js +1 -1
- package/dist/components/molecules/LabeledSwitch/LabelComponent.js.map +1 -1
- package/dist/components/molecules/LabeledSwitch/LabeledSwitch.js +1 -1
- package/dist/components/molecules/LabeledSwitch/LabeledSwitch.js.map +1 -1
- package/dist/components/molecules/LabeledSwitch/index.js.map +1 -1
- package/dist/components/molecules/LabeledSwitch/styled.js.map +1 -1
- package/dist/components/molecules/Masonry/Masonry.js.map +1 -1
- package/dist/components/molecules/Masonry/index.js.map +1 -1
- package/dist/components/molecules/Masonry/styled.js.map +1 -1
- package/dist/components/molecules/Menubar/MenuBlock/MenuBlock.js.map +1 -1
- package/dist/components/molecules/Menubar/MenuBlock/MenuItem/MenuItem.js +1 -1
- package/dist/components/molecules/Menubar/MenuBlock/MenuItem/MenuItem.js.map +1 -1
- package/dist/components/molecules/Menubar/MenuBlock/MenuItem/SubMenuBlock/SubMenuBlock.js +1 -1
- package/dist/components/molecules/Menubar/MenuBlock/MenuItem/SubMenuBlock/SubMenuBlock.js.map +1 -1
- package/dist/components/molecules/Menubar/MenuBlock/MenuItem/SubMenuBlock/index.js.map +1 -1
- package/dist/components/molecules/Menubar/MenuBlock/MenuItem/SubMenuBlock/styled.js +1 -1
- package/dist/components/molecules/Menubar/MenuBlock/MenuItem/SubMenuBlock/styled.js.map +1 -1
- package/dist/components/molecules/Menubar/MenuBlock/MenuItem/index.js.map +1 -1
- package/dist/components/molecules/Menubar/MenuBlock/MenuItem/styled.js.map +1 -1
- package/dist/components/molecules/Menubar/MenuBlock/index.js.map +1 -1
- package/dist/components/molecules/Menubar/MenuBlock/styled.js +1 -1
- package/dist/components/molecules/Menubar/MenuBlock/styled.js.map +1 -1
- package/dist/components/molecules/Menubar/Menubar.js +1 -1
- package/dist/components/molecules/Menubar/Menubar.js.map +1 -1
- package/dist/components/molecules/Menubar/MostUsed/MostUsed.js +1 -1
- package/dist/components/molecules/Menubar/MostUsed/MostUsed.js.map +1 -1
- package/dist/components/molecules/Menubar/MostUsed/index.js.map +1 -1
- package/dist/components/molecules/Menubar/MostUsed/styled.js +1 -1
- package/dist/components/molecules/Menubar/MostUsed/styled.js.map +1 -1
- package/dist/components/molecules/Menubar/SearchResultItem/SearchResultItem.js +1 -1
- package/dist/components/molecules/Menubar/SearchResultItem/SearchResultItem.js.map +1 -1
- package/dist/components/molecules/Menubar/SearchResultItem/index.js.map +1 -1
- package/dist/components/molecules/Menubar/SearchResultItem/styled.js +1 -1
- package/dist/components/molecules/Menubar/SearchResultItem/styled.js.map +1 -1
- package/dist/components/molecules/Menubar/SearchResultItem/utils.d.ts +1 -1
- package/dist/components/molecules/Menubar/SearchResultItem/utils.js +2 -2
- package/dist/components/molecules/Menubar/SearchResultItem/utils.js.map +1 -1
- package/dist/components/molecules/Menubar/animations.js +1 -1
- package/dist/components/molecules/Menubar/animations.js.map +1 -1
- package/dist/components/molecules/Menubar/index.js +4 -4
- package/dist/components/molecules/Menubar/index.js.map +1 -1
- package/dist/components/molecules/Menubar/styled.js +1 -1
- package/dist/components/molecules/Menubar/styled.js.map +1 -1
- package/dist/components/molecules/Menubar/types.js.map +1 -1
- package/dist/components/molecules/Menubar/utils.js.map +1 -1
- package/dist/components/molecules/Select/Dropdown/Dropdown.js.map +1 -1
- package/dist/components/molecules/Select/Dropdown/components/SearchInput.js.map +1 -1
- package/dist/components/molecules/Select/Dropdown/components/index.js.map +1 -1
- package/dist/components/molecules/Select/Dropdown/index.js.map +1 -1
- package/dist/components/molecules/Select/Dropdown/styled.js +1 -1
- package/dist/components/molecules/Select/Dropdown/styled.js.map +1 -1
- package/dist/components/molecules/Select/Select.js +1 -1
- package/dist/components/molecules/Select/Select.js.map +1 -1
- package/dist/components/molecules/Select/SelectItem/SelectItem.js.map +1 -1
- package/dist/components/molecules/Select/SelectItem/index.js.map +1 -1
- package/dist/components/molecules/Select/SelectItem/styled.js +1 -1
- package/dist/components/molecules/Select/SelectItem/styled.js.map +1 -1
- package/dist/components/molecules/Select/animations.js.map +1 -1
- package/dist/components/molecules/Select/functions.js.map +1 -1
- package/dist/components/molecules/Select/index.js.map +1 -1
- package/dist/components/molecules/Select/styled.js +1 -1
- package/dist/components/molecules/Select/styled.js.map +1 -1
- package/dist/components/molecules/Snackbar/Snackbar.js +1 -1
- package/dist/components/molecules/Snackbar/Snackbar.js.map +1 -1
- package/dist/components/molecules/Snackbar/index.js.map +1 -1
- package/dist/components/molecules/Snackbar/styled.js.map +1 -1
- package/dist/components/molecules/TextArea/TextArea.js +1 -1
- package/dist/components/molecules/TextArea/TextArea.js.map +1 -1
- package/dist/components/molecules/TextArea/index.js.map +1 -1
- package/dist/components/molecules/TextArea/styled.js.map +1 -1
- package/dist/components/organisms/DataGrid/DataGrid.d.ts +1 -1
- package/dist/components/organisms/DataGrid/DataGrid.js.map +1 -1
- package/dist/components/organisms/DataGrid/Footer/Footer.js.map +1 -1
- package/dist/components/organisms/DataGrid/Footer/index.js.map +1 -1
- package/dist/components/organisms/DataGrid/Footer/styled.js +1 -1
- package/dist/components/organisms/DataGrid/Footer/styled.js.map +1 -1
- package/dist/components/organisms/DataGrid/Header/Header.d.ts +1 -1
- package/dist/components/organisms/DataGrid/Header/Header.js.map +1 -1
- package/dist/components/organisms/DataGrid/Header/index.js.map +1 -1
- package/dist/components/organisms/DataGrid/Header/styled.js.map +1 -1
- package/dist/components/organisms/DataGrid/Header/utils.js +1 -1
- package/dist/components/organisms/DataGrid/Header/utils.js.map +1 -1
- package/dist/components/organisms/DataGrid/Row/Row.js.map +1 -1
- package/dist/components/organisms/DataGrid/Row/index.js.map +1 -1
- package/dist/components/organisms/DataGrid/index.js.map +1 -1
- package/dist/components/organisms/DataGrid/styled.js.map +1 -1
- package/dist/components/organisms/DataGrid/types.js.map +1 -1
- package/dist/components/organisms/DataGrid/utils.js +1 -1
- package/dist/components/organisms/DataGrid/utils.js.map +1 -1
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/useBreakpoints.js.map +1 -1
- package/dist/hooks/useClickAwayListener.js.map +1 -1
- package/dist/hooks/useWindowSize.js.map +1 -1
- package/dist/index.js +96 -96
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/components/atoms/Input/Input.tsx +4 -5
- package/src/components/atoms/InputMask/InputMask.tsx +4 -5
- package/src/components/molecules/DatePicker/Modal.tsx +11 -5
- package/src/components/molecules/DatePicker/index.ts +1 -1
- package/src/components/molecules/DatePicker/styled.ts +3 -3
- package/src/components/molecules/DateTimePicker/Modal.tsx +1 -5
- package/src/components/molecules/DateTimePicker/styled.ts +8 -5
- package/src/components/molecules/Grid/Item/functions.ts +3 -3
- package/src/components/molecules/IconTextButton/IconTextButton.tsx +2 -3
- package/src/components/molecules/Menubar/Menubar.tsx +4 -3
- package/src/components/molecules/Menubar/SearchResultItem/utils.tsx +2 -2
- package/src/components/molecules/Select/Dropdown/Dropdown.tsx +4 -3
- package/src/components/molecules/Select/Select.tsx +10 -8
- package/src/components/organisms/DataGrid/DataGrid.tsx +16 -20
- package/src/components/organisms/DataGrid/Header/Header.tsx +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"useClickAwayListener.js","names":["useClickAwayListener","ref","setVisible","event","React","useEffect","handleClickOutside","current","contains","target","document","addEventListener","removeEventListener"],"sources":["../../src/hooks/useClickAwayListener.ts"],"sourcesContent":["import React from 'react';\n\nexport const useClickAwayListener = (\n ref: React.MutableRefObject<any>,\n setVisible: React.Dispatch<React.SetStateAction<boolean>>,\n event: 'mouseup' | 'mousedown' | undefined = 'mousedown'\n): void => {\n React.useEffect(() => {\n const handleClickOutside = event => {\n if (ref.current && !ref.current.contains(event.target)) {\n setVisible(false);\n }\n };\n document.addEventListener(event, handleClickOutside);\n return () => {\n document.removeEventListener(event, handleClickOutside);\n };\n }, [ref]);\n};\n"],"mappings":";;;;;;;AAAA;;;;AAEO,MAAMA,oBAAoB,GAAG,CAClCC,GADkC,EAElCC,UAFkC,EAGlCC,KAA0C,GAAG,WAHX,KAIzB;EACTC,cAAA,CAAMC,SAAN,CAAgB,MAAM;IACpB,MAAMC,kBAAkB,GAAGH,KAAK,IAAI;MAClC,IAAIF,GAAG,CAACM,OAAJ,IAAe,CAACN,GAAG,CAACM,OAAJ,CAAYC,QAAZ,CAAqBL,KAAK,CAACM,MAA3B,CAApB,EAAwD;QACtDP,UAAU,CAAC,KAAD,CAAV;MACD;IACF,CAJD;;IAKAQ,QAAQ,CAACC,gBAAT,CAA0BR,KAA1B,EAAiCG,kBAAjC;IACA,OAAO,MAAM;MACXI,QAAQ,CAACE,mBAAT,CAA6BT,KAA7B,EAAoCG,kBAApC;IACD,CAFD;EAGD,CAVD,EAUG,CAACL,GAAD,CAVH;AAWD,CAhBM"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"useWindowSize.js","names":["useWindowSize","windowSize","setWindowSize","React","useState","width","undefined","height","useEffect","handleResize","window","innerWidth","innerHeight","addEventListener","removeEventListener"],"sources":["../../src/hooks/useWindowSize.ts"],"sourcesContent":["import React from 'react';\n\ntype WindowSize = {\n width: number | undefined;\n height: number | undefined;\n};\n\nexport const useWindowSize = (): WindowSize => {\n const [windowSize, setWindowSize] = React.useState<WindowSize>({\n width: undefined,\n height: undefined,\n });\n React.useEffect(() => {\n const handleResize = () => {\n setWindowSize({\n width: window.innerWidth,\n height: window.innerHeight,\n });\n };\n window.addEventListener('resize', handleResize);\n handleResize();\n return () => window.removeEventListener('resize', handleResize);\n }, []);\n return windowSize;\n};\n"],"mappings":";;;;;;;AAAA;;;;AAOO,MAAMA,aAAa,GAAG,MAAkB;EAC7C,MAAM,CAACC,UAAD,EAAaC,aAAb,IAA8BC,cAAA,CAAMC,QAAN,CAA2B;IAC7DC,KAAK,EAAEC,SADsD;IAE7DC,MAAM,EAAED;EAFqD,CAA3B,CAApC;;EAIAH,cAAA,CAAMK,SAAN,CAAgB,MAAM;IACpB,MAAMC,YAAY,GAAG,MAAM;MACzBP,aAAa,CAAC;QACZG,KAAK,EAAEK,MAAM,CAACC,UADF;QAEZJ,MAAM,EAAEG,MAAM,CAACE;MAFH,CAAD,CAAb;IAID,CALD;;IAMAF,MAAM,CAACG,gBAAP,CAAwB,QAAxB,EAAkCJ,YAAlC;IACAA,YAAY;IACZ,OAAO,MAAMC,MAAM,CAACI,mBAAP,CAA2B,QAA3B,EAAqCL,YAArC,CAAb;EACD,CAVD,EAUG,EAVH;;EAWA,OAAOR,UAAP;AACD,CAjBM"}
|
package/dist/index.js
CHANGED
|
@@ -67,292 +67,292 @@ Object.defineProperty(exports, "AccordionProps", {
|
|
|
67
67
|
return _Accordion.AccordionProps;
|
|
68
68
|
}
|
|
69
69
|
});
|
|
70
|
-
Object.defineProperty(exports, "
|
|
70
|
+
Object.defineProperty(exports, "Badge", {
|
|
71
71
|
enumerable: true,
|
|
72
72
|
get: function () {
|
|
73
|
-
return _Badge.
|
|
73
|
+
return _Badge.default;
|
|
74
74
|
}
|
|
75
75
|
});
|
|
76
|
-
Object.defineProperty(exports, "
|
|
76
|
+
Object.defineProperty(exports, "BadgeWebProps", {
|
|
77
77
|
enumerable: true,
|
|
78
78
|
get: function () {
|
|
79
|
-
return _Badge.
|
|
79
|
+
return _Badge.BadgeWebProps;
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
|
-
Object.defineProperty(exports, "
|
|
82
|
+
Object.defineProperty(exports, "BreadcrumbType", {
|
|
83
83
|
enumerable: true,
|
|
84
84
|
get: function () {
|
|
85
|
-
return
|
|
85
|
+
return _Breadcrumbs.BreadcrumbType;
|
|
86
86
|
}
|
|
87
87
|
});
|
|
88
|
-
Object.defineProperty(exports, "
|
|
88
|
+
Object.defineProperty(exports, "Breadcrumbs", {
|
|
89
89
|
enumerable: true,
|
|
90
90
|
get: function () {
|
|
91
|
-
return
|
|
91
|
+
return _Breadcrumbs.Breadcrumbs;
|
|
92
92
|
}
|
|
93
93
|
});
|
|
94
|
-
Object.defineProperty(exports, "
|
|
94
|
+
Object.defineProperty(exports, "BreadcrumbsProps", {
|
|
95
95
|
enumerable: true,
|
|
96
96
|
get: function () {
|
|
97
|
-
return
|
|
97
|
+
return _Breadcrumbs.BreadcrumbsProps;
|
|
98
98
|
}
|
|
99
99
|
});
|
|
100
|
-
Object.defineProperty(exports, "
|
|
100
|
+
Object.defineProperty(exports, "Button", {
|
|
101
101
|
enumerable: true,
|
|
102
102
|
get: function () {
|
|
103
|
-
return
|
|
103
|
+
return _Button.Button;
|
|
104
104
|
}
|
|
105
105
|
});
|
|
106
|
-
Object.defineProperty(exports, "
|
|
106
|
+
Object.defineProperty(exports, "DataGrid", {
|
|
107
107
|
enumerable: true,
|
|
108
108
|
get: function () {
|
|
109
|
-
return
|
|
109
|
+
return _DataGrid.DataGrid;
|
|
110
110
|
}
|
|
111
111
|
});
|
|
112
|
-
Object.defineProperty(exports, "
|
|
112
|
+
Object.defineProperty(exports, "DataGridProps", {
|
|
113
113
|
enumerable: true,
|
|
114
114
|
get: function () {
|
|
115
|
-
return
|
|
115
|
+
return _DataGrid.DataGridProps;
|
|
116
116
|
}
|
|
117
117
|
});
|
|
118
|
-
Object.defineProperty(exports, "
|
|
118
|
+
Object.defineProperty(exports, "DatePicker", {
|
|
119
119
|
enumerable: true,
|
|
120
120
|
get: function () {
|
|
121
|
-
return
|
|
121
|
+
return _DatePicker.DatePicker;
|
|
122
122
|
}
|
|
123
123
|
});
|
|
124
|
-
Object.defineProperty(exports, "
|
|
124
|
+
Object.defineProperty(exports, "DateTimePicker", {
|
|
125
125
|
enumerable: true,
|
|
126
126
|
get: function () {
|
|
127
|
-
return
|
|
127
|
+
return _DateTimePicker.DateTimePicker;
|
|
128
128
|
}
|
|
129
129
|
});
|
|
130
|
-
Object.defineProperty(exports, "
|
|
130
|
+
Object.defineProperty(exports, "Drawer", {
|
|
131
131
|
enumerable: true,
|
|
132
132
|
get: function () {
|
|
133
|
-
return
|
|
133
|
+
return _Drawer.Drawer;
|
|
134
134
|
}
|
|
135
135
|
});
|
|
136
|
-
Object.defineProperty(exports, "
|
|
136
|
+
Object.defineProperty(exports, "DrawerProps", {
|
|
137
137
|
enumerable: true,
|
|
138
138
|
get: function () {
|
|
139
|
-
return
|
|
139
|
+
return _Drawer.DrawerProps;
|
|
140
140
|
}
|
|
141
141
|
});
|
|
142
|
-
Object.defineProperty(exports, "
|
|
142
|
+
Object.defineProperty(exports, "Grid", {
|
|
143
143
|
enumerable: true,
|
|
144
144
|
get: function () {
|
|
145
|
-
return
|
|
145
|
+
return _Grid.Grid;
|
|
146
146
|
}
|
|
147
147
|
});
|
|
148
|
-
Object.defineProperty(exports, "
|
|
148
|
+
Object.defineProperty(exports, "GridItem", {
|
|
149
149
|
enumerable: true,
|
|
150
150
|
get: function () {
|
|
151
|
-
return
|
|
151
|
+
return _Grid.GridItem;
|
|
152
152
|
}
|
|
153
153
|
});
|
|
154
|
-
Object.defineProperty(exports, "
|
|
154
|
+
Object.defineProperty(exports, "HeadersType", {
|
|
155
155
|
enumerable: true,
|
|
156
156
|
get: function () {
|
|
157
|
-
return
|
|
157
|
+
return _DataGrid.HeadersType;
|
|
158
158
|
}
|
|
159
159
|
});
|
|
160
|
-
Object.defineProperty(exports, "
|
|
160
|
+
Object.defineProperty(exports, "IGridItemWeb", {
|
|
161
161
|
enumerable: true,
|
|
162
162
|
get: function () {
|
|
163
|
-
return
|
|
163
|
+
return _Grid.IGridItemWeb;
|
|
164
164
|
}
|
|
165
165
|
});
|
|
166
|
-
Object.defineProperty(exports, "
|
|
166
|
+
Object.defineProperty(exports, "IGridWeb", {
|
|
167
167
|
enumerable: true,
|
|
168
168
|
get: function () {
|
|
169
|
-
return
|
|
169
|
+
return _Grid.IGridWeb;
|
|
170
170
|
}
|
|
171
171
|
});
|
|
172
|
-
Object.defineProperty(exports, "
|
|
172
|
+
Object.defineProperty(exports, "ITooltip", {
|
|
173
173
|
enumerable: true,
|
|
174
174
|
get: function () {
|
|
175
|
-
return
|
|
175
|
+
return _Tooltip.ITooltip;
|
|
176
176
|
}
|
|
177
177
|
});
|
|
178
|
-
Object.defineProperty(exports, "
|
|
178
|
+
Object.defineProperty(exports, "Input", {
|
|
179
179
|
enumerable: true,
|
|
180
180
|
get: function () {
|
|
181
|
-
return
|
|
181
|
+
return _Input.Input;
|
|
182
182
|
}
|
|
183
183
|
});
|
|
184
|
-
Object.defineProperty(exports, "
|
|
184
|
+
Object.defineProperty(exports, "InputMask", {
|
|
185
185
|
enumerable: true,
|
|
186
186
|
get: function () {
|
|
187
|
-
return
|
|
187
|
+
return _InputMask.InputMask;
|
|
188
188
|
}
|
|
189
189
|
});
|
|
190
|
-
Object.defineProperty(exports, "
|
|
190
|
+
Object.defineProperty(exports, "InputMaskWebProps", {
|
|
191
191
|
enumerable: true,
|
|
192
192
|
get: function () {
|
|
193
|
-
return
|
|
193
|
+
return _InputMask.InputMaskWebProps;
|
|
194
194
|
}
|
|
195
195
|
});
|
|
196
|
-
Object.defineProperty(exports, "
|
|
196
|
+
Object.defineProperty(exports, "InputPassword", {
|
|
197
197
|
enumerable: true,
|
|
198
198
|
get: function () {
|
|
199
|
-
return
|
|
199
|
+
return _InputPassword.InputPassword;
|
|
200
200
|
}
|
|
201
201
|
});
|
|
202
|
-
Object.defineProperty(exports, "
|
|
202
|
+
Object.defineProperty(exports, "InputPasswordWebProps", {
|
|
203
203
|
enumerable: true,
|
|
204
204
|
get: function () {
|
|
205
|
-
return
|
|
205
|
+
return _InputPassword.InputPasswordWebProps;
|
|
206
206
|
}
|
|
207
207
|
});
|
|
208
|
-
Object.defineProperty(exports, "
|
|
208
|
+
Object.defineProperty(exports, "InputWebProps", {
|
|
209
209
|
enumerable: true,
|
|
210
210
|
get: function () {
|
|
211
|
-
return
|
|
211
|
+
return _Input.InputWebProps;
|
|
212
212
|
}
|
|
213
213
|
});
|
|
214
|
-
Object.defineProperty(exports, "
|
|
214
|
+
Object.defineProperty(exports, "LabeledSwitch", {
|
|
215
215
|
enumerable: true,
|
|
216
216
|
get: function () {
|
|
217
|
-
return
|
|
217
|
+
return _LabeledSwitch.LabeledSwitch;
|
|
218
218
|
}
|
|
219
219
|
});
|
|
220
|
-
Object.defineProperty(exports, "
|
|
220
|
+
Object.defineProperty(exports, "LabeledSwitchWebProps", {
|
|
221
221
|
enumerable: true,
|
|
222
222
|
get: function () {
|
|
223
|
-
return
|
|
223
|
+
return _LabeledSwitch.LabeledSwitchWebProps;
|
|
224
224
|
}
|
|
225
225
|
});
|
|
226
|
-
Object.defineProperty(exports, "
|
|
226
|
+
Object.defineProperty(exports, "Menubar", {
|
|
227
227
|
enumerable: true,
|
|
228
228
|
get: function () {
|
|
229
|
-
return
|
|
229
|
+
return _Menubar.Menubar;
|
|
230
230
|
}
|
|
231
231
|
});
|
|
232
|
-
Object.defineProperty(exports, "
|
|
232
|
+
Object.defineProperty(exports, "MenubarItemsOptions", {
|
|
233
233
|
enumerable: true,
|
|
234
234
|
get: function () {
|
|
235
|
-
return
|
|
235
|
+
return _Menubar.MenubarItemsOptions;
|
|
236
236
|
}
|
|
237
237
|
});
|
|
238
|
-
Object.defineProperty(exports, "
|
|
238
|
+
Object.defineProperty(exports, "MenubarMostUsedType", {
|
|
239
239
|
enumerable: true,
|
|
240
240
|
get: function () {
|
|
241
|
-
return
|
|
241
|
+
return _Menubar.MenubarMostUsedType;
|
|
242
242
|
}
|
|
243
243
|
});
|
|
244
|
-
Object.defineProperty(exports, "
|
|
244
|
+
Object.defineProperty(exports, "MenubarOptionsType", {
|
|
245
245
|
enumerable: true,
|
|
246
246
|
get: function () {
|
|
247
|
-
return
|
|
247
|
+
return _Menubar.MenubarOptionsType;
|
|
248
248
|
}
|
|
249
249
|
});
|
|
250
|
-
Object.defineProperty(exports, "
|
|
250
|
+
Object.defineProperty(exports, "MenubarProps", {
|
|
251
251
|
enumerable: true,
|
|
252
252
|
get: function () {
|
|
253
|
-
return
|
|
253
|
+
return _Menubar.MenubarProps;
|
|
254
254
|
}
|
|
255
255
|
});
|
|
256
|
-
Object.defineProperty(exports, "
|
|
256
|
+
Object.defineProperty(exports, "Modal", {
|
|
257
257
|
enumerable: true,
|
|
258
258
|
get: function () {
|
|
259
|
-
return
|
|
259
|
+
return _Modal.Modal;
|
|
260
260
|
}
|
|
261
261
|
});
|
|
262
|
-
Object.defineProperty(exports, "
|
|
262
|
+
Object.defineProperty(exports, "ModalProps", {
|
|
263
263
|
enumerable: true,
|
|
264
264
|
get: function () {
|
|
265
|
-
return
|
|
265
|
+
return _Modal.ModalProps;
|
|
266
266
|
}
|
|
267
267
|
});
|
|
268
|
-
Object.defineProperty(exports, "
|
|
268
|
+
Object.defineProperty(exports, "Select", {
|
|
269
269
|
enumerable: true,
|
|
270
270
|
get: function () {
|
|
271
|
-
return
|
|
271
|
+
return _Select.Select;
|
|
272
272
|
}
|
|
273
273
|
});
|
|
274
|
-
Object.defineProperty(exports, "
|
|
274
|
+
Object.defineProperty(exports, "SelectProps", {
|
|
275
275
|
enumerable: true,
|
|
276
276
|
get: function () {
|
|
277
|
-
return
|
|
277
|
+
return _Select.SelectProps;
|
|
278
278
|
}
|
|
279
279
|
});
|
|
280
|
-
Object.defineProperty(exports, "
|
|
280
|
+
Object.defineProperty(exports, "Skeleton", {
|
|
281
281
|
enumerable: true,
|
|
282
282
|
get: function () {
|
|
283
|
-
return
|
|
283
|
+
return _Skeleton.Skeleton;
|
|
284
284
|
}
|
|
285
285
|
});
|
|
286
|
-
Object.defineProperty(exports, "
|
|
286
|
+
Object.defineProperty(exports, "SkeletonProps", {
|
|
287
287
|
enumerable: true,
|
|
288
288
|
get: function () {
|
|
289
|
-
return
|
|
289
|
+
return _Skeleton.SkeletonProps;
|
|
290
290
|
}
|
|
291
291
|
});
|
|
292
|
-
Object.defineProperty(exports, "
|
|
292
|
+
Object.defineProperty(exports, "Snackbar", {
|
|
293
293
|
enumerable: true,
|
|
294
294
|
get: function () {
|
|
295
|
-
return
|
|
295
|
+
return _Snackbar.Snackbar;
|
|
296
296
|
}
|
|
297
297
|
});
|
|
298
|
-
Object.defineProperty(exports, "
|
|
298
|
+
Object.defineProperty(exports, "SnackbarWebProps", {
|
|
299
299
|
enumerable: true,
|
|
300
300
|
get: function () {
|
|
301
|
-
return
|
|
301
|
+
return _Snackbar.SnackbarWebProps;
|
|
302
302
|
}
|
|
303
303
|
});
|
|
304
|
-
Object.defineProperty(exports, "
|
|
304
|
+
Object.defineProperty(exports, "Tag", {
|
|
305
305
|
enumerable: true,
|
|
306
306
|
get: function () {
|
|
307
|
-
return
|
|
307
|
+
return _Tag.Tag;
|
|
308
308
|
}
|
|
309
309
|
});
|
|
310
|
-
Object.defineProperty(exports, "
|
|
310
|
+
Object.defineProperty(exports, "TagProps", {
|
|
311
311
|
enumerable: true,
|
|
312
312
|
get: function () {
|
|
313
|
-
return
|
|
313
|
+
return _Tag.TagProps;
|
|
314
314
|
}
|
|
315
315
|
});
|
|
316
|
-
Object.defineProperty(exports, "
|
|
316
|
+
Object.defineProperty(exports, "TextArea", {
|
|
317
317
|
enumerable: true,
|
|
318
318
|
get: function () {
|
|
319
|
-
return
|
|
319
|
+
return _TextArea.TextArea;
|
|
320
320
|
}
|
|
321
321
|
});
|
|
322
|
-
Object.defineProperty(exports, "
|
|
322
|
+
Object.defineProperty(exports, "TextAreaProps", {
|
|
323
323
|
enumerable: true,
|
|
324
324
|
get: function () {
|
|
325
|
-
return
|
|
325
|
+
return _TextArea.TextAreaProps;
|
|
326
326
|
}
|
|
327
327
|
});
|
|
328
|
-
Object.defineProperty(exports, "
|
|
328
|
+
Object.defineProperty(exports, "Tooltip", {
|
|
329
329
|
enumerable: true,
|
|
330
330
|
get: function () {
|
|
331
|
-
return
|
|
331
|
+
return _Tooltip.Tooltip;
|
|
332
332
|
}
|
|
333
333
|
});
|
|
334
|
-
Object.defineProperty(exports, "
|
|
334
|
+
Object.defineProperty(exports, "WebButtonProps", {
|
|
335
335
|
enumerable: true,
|
|
336
336
|
get: function () {
|
|
337
|
-
return
|
|
337
|
+
return _Button.WebButtonProps;
|
|
338
338
|
}
|
|
339
339
|
});
|
|
340
|
-
Object.defineProperty(exports, "
|
|
340
|
+
Object.defineProperty(exports, "WebDatePickerProps", {
|
|
341
341
|
enumerable: true,
|
|
342
342
|
get: function () {
|
|
343
|
-
return
|
|
343
|
+
return _DatePicker.WebDatePickerProps;
|
|
344
344
|
}
|
|
345
345
|
});
|
|
346
|
-
Object.defineProperty(exports, "
|
|
346
|
+
Object.defineProperty(exports, "WebDateTimePickerProps", {
|
|
347
347
|
enumerable: true,
|
|
348
348
|
get: function () {
|
|
349
|
-
return
|
|
349
|
+
return _DateTimePicker.WebDateTimePickerProps;
|
|
350
350
|
}
|
|
351
351
|
});
|
|
352
|
-
Object.defineProperty(exports, "
|
|
352
|
+
Object.defineProperty(exports, "useMouseHover", {
|
|
353
353
|
enumerable: true,
|
|
354
354
|
get: function () {
|
|
355
|
-
return
|
|
355
|
+
return _Button.useMouseHover;
|
|
356
356
|
}
|
|
357
357
|
});
|
|
358
358
|
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["export * from '@tecsinapse/react-core';\nexport { Accordion, AccordionProps } from './components/atoms/Accordion';\nexport {\n BadgeWebProps,\n default as Badge,\n} from './components/atoms/Badge/Badge';\nexport {\n Button,\n useMouseHover,\n WebButtonProps,\n} from './components/atoms/Button';\nexport { Input, InputWebProps } from './components/atoms/Input';\nexport { InputMask, InputMaskWebProps } from './components/atoms/InputMask';\nexport { Modal, ModalProps } from './components/atoms/Modal';\nexport { Skeleton, SkeletonProps } from './components/atoms/Skeleton';\nexport { Tag, TagProps } from './components/atoms/Tag';\nexport { ITooltip, Tooltip } from './components/atoms/Tooltip';\nexport {\n Breadcrumbs,\n BreadcrumbsProps,\n BreadcrumbType,\n} from './components/molecules/Breadcrumbs';\nexport {\n DatePicker,\n WebDatePickerProps,\n} from './components/molecules/DatePicker';\nexport {\n DateTimePicker,\n WebDateTimePickerProps,\n} from './components/molecules/DateTimePicker';\nexport { Drawer, DrawerProps } from './components/molecules/Drawer';\nexport {\n Grid,\n GridItem,\n IGridWeb,\n IGridItemWeb,\n} from './components/molecules/Grid';\nexport {\n InputPassword,\n InputPasswordWebProps,\n} from './components/molecules/InputPassword';\nexport {\n LabeledSwitch,\n LabeledSwitchWebProps,\n} from './components/molecules/LabeledSwitch';\nexport {\n Menubar,\n MenubarItemsOptions,\n MenubarMostUsedType,\n MenubarOptionsType,\n MenubarProps,\n} from './components/molecules/Menubar';\nexport { Select, SelectProps } from './components/molecules/Select';\nexport { Snackbar, SnackbarWebProps } from './components/molecules/Snackbar';\nexport { TextArea, TextAreaProps } from './components/molecules/TextArea';\nexport {\n DataGrid,\n DataGridProps,\n HeadersType,\n} from './components/organisms/DataGrid';\nexport * from './hooks';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AACA;;AAIA;;AAKA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAKA;;AAIA;;AAIA;;AACA;;AAMA;;AAIA;;AAIA;;AAOA;;AACA;;AACA;;AACA;;AAKA;;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tecsinapse/react-web-kit",
|
|
3
3
|
"description": "TecSinapse React components",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.20.0",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"license": "MIT",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"@emotion/native": "^11.10.0",
|
|
18
18
|
"@emotion/react": "^11.10.0",
|
|
19
19
|
"@emotion/styled": "^11.10.0",
|
|
20
|
-
"@tecsinapse/react-core": "^1.
|
|
20
|
+
"@tecsinapse/react-core": "^1.19.0",
|
|
21
21
|
"@types/react-native": "^0.64.4",
|
|
22
22
|
"react-native-vector-icons": "^9.2.0",
|
|
23
23
|
"react-transition-group": "^4.4.2"
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
37
37
|
"react-native-web": "^0.17.1 || ^0.18.0"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "59f85f1085ace4af0b26b85e32faf92cd2bf303f"
|
|
40
40
|
}
|
|
@@ -6,12 +6,11 @@ import {
|
|
|
6
6
|
useInputFocus,
|
|
7
7
|
} from '@tecsinapse/react-core';
|
|
8
8
|
import React, { FC } from 'react';
|
|
9
|
-
import { View } from 'react-native';
|
|
9
|
+
import { TextInput, View } from 'react-native';
|
|
10
10
|
import { StyledWebTextInput } from './styled';
|
|
11
11
|
|
|
12
|
-
export
|
|
13
|
-
|
|
14
|
-
InputContainerProps {}
|
|
12
|
+
export type InputWebProps = Omit<InputElementProps, 'style'> &
|
|
13
|
+
InputContainerProps & { ref?: React.Ref<HTMLInputElement | undefined> };
|
|
15
14
|
|
|
16
15
|
const Input: FC<InputWebProps> = React.forwardRef(
|
|
17
16
|
(
|
|
@@ -73,7 +72,7 @@ const Input: FC<InputWebProps> = React.forwardRef(
|
|
|
73
72
|
{...rest}
|
|
74
73
|
placeholder={onlyLabel ? label : placeholder}
|
|
75
74
|
value={value}
|
|
76
|
-
ref={ref}
|
|
75
|
+
ref={ref as React.Ref<TextInput>}
|
|
77
76
|
disabled={disabled}
|
|
78
77
|
onFocus={handleFocus}
|
|
79
78
|
onBlur={handleBlur}
|
|
@@ -6,12 +6,11 @@ import {
|
|
|
6
6
|
useInputFocus,
|
|
7
7
|
} from '@tecsinapse/react-core';
|
|
8
8
|
import React, { FC } from 'react';
|
|
9
|
-
import { View } from 'react-native';
|
|
9
|
+
import { TextInput, View } from 'react-native';
|
|
10
10
|
import { StyledWebTextInputMask } from './styled';
|
|
11
11
|
|
|
12
|
-
export
|
|
13
|
-
|
|
14
|
-
InputContainerProps {}
|
|
12
|
+
export type InputMaskWebProps = Omit<InputMaskElementProps, 'style'> &
|
|
13
|
+
InputContainerProps & { ref?: React.Ref<HTMLInputElement | undefined> };
|
|
15
14
|
|
|
16
15
|
const InputMask: FC<InputMaskWebProps> = React.forwardRef(
|
|
17
16
|
(
|
|
@@ -73,7 +72,7 @@ const InputMask: FC<InputMaskWebProps> = React.forwardRef(
|
|
|
73
72
|
{...rest}
|
|
74
73
|
placeholder={onlyLabel ? label : placeholder}
|
|
75
74
|
value={value}
|
|
76
|
-
ref={ref}
|
|
75
|
+
ref={ref as React.Ref<TextInput>}
|
|
77
76
|
disabled={disabled}
|
|
78
77
|
onFocus={handleFocus}
|
|
79
78
|
onBlur={handleBlur}
|
|
@@ -1,9 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
CalendarProps,
|
|
3
|
+
PressableSurface,
|
|
4
|
+
SelectionType,
|
|
5
|
+
} from '@tecsinapse/react-core';
|
|
2
6
|
import * as React from 'react';
|
|
3
7
|
import { Modal as RNModal, ModalProps } from 'react-native';
|
|
4
8
|
import { Backdrop, ModalContent } from './styled';
|
|
5
9
|
|
|
6
|
-
const Component = <T extends SelectionType>({
|
|
10
|
+
const Component = <T extends SelectionType>({
|
|
11
|
+
onRequestClose,
|
|
12
|
+
children,
|
|
13
|
+
...modalProps
|
|
14
|
+
}: CalendarProps<T> & ModalProps & { children: JSX.Element }): JSX.Element => {
|
|
7
15
|
return (
|
|
8
16
|
<RNModal
|
|
9
17
|
transparent
|
|
@@ -14,9 +22,7 @@ const Component = <T extends SelectionType>({ onRequestClose, children, ...modal
|
|
|
14
22
|
>
|
|
15
23
|
<Backdrop onPress={onRequestClose} effect="none">
|
|
16
24
|
<PressableSurface>
|
|
17
|
-
<ModalContent>
|
|
18
|
-
{children}
|
|
19
|
-
</ModalContent>
|
|
25
|
+
<ModalContent>{children}</ModalContent>
|
|
20
26
|
</PressableSurface>
|
|
21
27
|
</Backdrop>
|
|
22
28
|
</RNModal>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { DatePicker, WebDatePickerProps } from './DatePicker';
|
|
1
|
+
export { DatePicker, WebDatePickerProps } from './DatePicker';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import styled, { css } from
|
|
2
|
-
import { hex2rgba, PressableSurface, StyleProps } from
|
|
3
|
-
import { Platform } from
|
|
1
|
+
import styled, { css } from '@emotion/native';
|
|
2
|
+
import { hex2rgba, PressableSurface, StyleProps } from '@tecsinapse/react-core';
|
|
3
|
+
import { Platform } from 'react-native';
|
|
4
4
|
|
|
5
5
|
const isWeb = Platform.OS === 'web';
|
|
6
6
|
|
|
@@ -5,11 +5,9 @@ import { Backdrop, ModalContent } from './styled';
|
|
|
5
5
|
|
|
6
6
|
const Component: React.FC<DateTimeSelectorProps & ModalProps> = ({
|
|
7
7
|
onRequestClose,
|
|
8
|
-
onChange,
|
|
9
8
|
children,
|
|
10
9
|
...rest
|
|
11
10
|
}) => {
|
|
12
|
-
|
|
13
11
|
return (
|
|
14
12
|
<RNModal
|
|
15
13
|
transparent
|
|
@@ -19,9 +17,7 @@ const Component: React.FC<DateTimeSelectorProps & ModalProps> = ({
|
|
|
19
17
|
onRequestClose={onRequestClose}
|
|
20
18
|
>
|
|
21
19
|
<Backdrop onPress={onRequestClose} effect="none">
|
|
22
|
-
<ModalContent>
|
|
23
|
-
{children}
|
|
24
|
-
</ModalContent>
|
|
20
|
+
<ModalContent>{children}</ModalContent>
|
|
25
21
|
</Backdrop>
|
|
26
22
|
</RNModal>
|
|
27
23
|
);
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import styled, { css } from
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import styled, { css } from '@emotion/native';
|
|
2
|
+
import {
|
|
3
|
+
PressableSurface,
|
|
4
|
+
RFValueStr,
|
|
5
|
+
StyleProps,
|
|
6
|
+
} from '@tecsinapse/react-core';
|
|
7
|
+
import { Platform } from 'react-native';
|
|
5
8
|
|
|
6
9
|
const isWeb = Platform.OS === 'web';
|
|
7
10
|
|
|
@@ -34,4 +37,4 @@ export const ModalContent = styled.View<Partial<StyleProps>>`
|
|
|
34
37
|
`}
|
|
35
38
|
`}
|
|
36
39
|
overflow: hidden;
|
|
37
|
-
`;
|
|
40
|
+
`;
|
|
@@ -6,8 +6,8 @@ export const getSpan = (
|
|
|
6
6
|
md: boolean,
|
|
7
7
|
lg: boolean
|
|
8
8
|
): number => {
|
|
9
|
-
if (sm) return value
|
|
10
|
-
if (md) return value
|
|
11
|
-
if (lg) return value
|
|
9
|
+
if (sm) return value?.sm;
|
|
10
|
+
if (md) return value?.md ?? value?.sm;
|
|
11
|
+
if (lg) return value?.lg ?? value?.md ?? value?.sm;
|
|
12
12
|
return 0;
|
|
13
13
|
};
|
|
@@ -17,9 +17,8 @@ const IconTextButton: React.FC<WebIconTextButtonProps> = ({
|
|
|
17
17
|
size = 'default',
|
|
18
18
|
...rest
|
|
19
19
|
}): JSX.Element => {
|
|
20
|
-
const { handleHover, handlePressed, defaultFontColor } =
|
|
21
|
-
variant
|
|
22
|
-
);
|
|
20
|
+
const { handleHover, handlePressed, defaultFontColor } =
|
|
21
|
+
useIconTextButton(variant);
|
|
23
22
|
|
|
24
23
|
return (
|
|
25
24
|
<StyledIconTextButton
|
|
@@ -52,9 +52,10 @@ const Menubar: React.FC<MenubarProps> = ({
|
|
|
52
52
|
const menuRef = useRef<HTMLDivElement | null>(null);
|
|
53
53
|
useClickAwayListener(menuRef, setOpen, 'mouseup');
|
|
54
54
|
|
|
55
|
-
const toggleOpen = React.useCallback(
|
|
56
|
-
setOpen,
|
|
57
|
-
|
|
55
|
+
const toggleOpen = React.useCallback(
|
|
56
|
+
() => setOpen(state => !state),
|
|
57
|
+
[setOpen]
|
|
58
|
+
);
|
|
58
59
|
|
|
59
60
|
React.useEffect(() => {
|
|
60
61
|
if (search === '') return;
|
|
@@ -39,7 +39,7 @@ export const stringMatcher = (
|
|
|
39
39
|
return Array.from(tx.matchAll(r));
|
|
40
40
|
};
|
|
41
41
|
|
|
42
|
-
const highlightReplacer = <T
|
|
42
|
+
const highlightReplacer = <T,>(
|
|
43
43
|
searchTerm: string,
|
|
44
44
|
textToReplace: string,
|
|
45
45
|
Component: React.ElementType,
|
|
@@ -66,7 +66,7 @@ const highlightReplacer = <T extends unknown>(
|
|
|
66
66
|
});
|
|
67
67
|
};
|
|
68
68
|
|
|
69
|
-
export const highlight = <T
|
|
69
|
+
export const highlight = <T,>(
|
|
70
70
|
searchTerm: string,
|
|
71
71
|
textToReplace: string,
|
|
72
72
|
Component: React.ElementType,
|