react-easy-wall 1.0.13 → 1.0.16
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/_virtual/_commonjs-dynamic-modules.js +8 -0
- package/dist/cjs/_virtual/_commonjs-dynamic-modules.js.map +1 -0
- package/dist/cjs/_virtual/moment.js +12 -0
- package/dist/cjs/_virtual/moment.js.map +1 -0
- package/dist/cjs/_virtual/moment2.js +6 -0
- package/dist/cjs/_virtual/moment2.js.map +1 -0
- package/dist/cjs/components/panel/Panel.js +2 -2
- package/dist/cjs/components/panel/Panel.js.map +1 -1
- package/dist/cjs/components/panel/PanelButton.js +1 -1
- package/dist/cjs/components/panel/PanelButton.js.map +1 -1
- package/dist/cjs/components/panel/PanelHeader.js +1 -1
- package/dist/cjs/components/panel/PanelHeader.js.map +1 -1
- package/dist/cjs/components/panel/PanelItem.js.map +1 -1
- package/dist/cjs/components/panel/panel.actions.js +8 -0
- package/dist/cjs/components/panel/panel.actions.js.map +1 -1
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/node_modules/moment/moment.js +5697 -0
- package/dist/cjs/node_modules/moment/moment.js.map +1 -0
- package/dist/cjs/node_modules/universal-cookie/esm/index.js +411 -0
- package/dist/cjs/node_modules/universal-cookie/esm/index.js.map +1 -0
- package/dist/cjs/shared/cookies/cookies.utils.js +14 -0
- package/dist/cjs/shared/cookies/cookies.utils.js.map +1 -0
- package/dist/cjs/shared/cookies/index.js +8 -0
- package/dist/cjs/shared/cookies/index.js.map +1 -0
- package/dist/esm/_virtual/_commonjs-dynamic-modules.js +6 -0
- package/dist/esm/_virtual/_commonjs-dynamic-modules.js.map +1 -0
- package/dist/esm/_virtual/moment.js +8 -0
- package/dist/esm/_virtual/moment.js.map +1 -0
- package/dist/esm/_virtual/moment2.js +4 -0
- package/dist/esm/_virtual/moment2.js.map +1 -0
- package/dist/esm/components/panel/Panel.js +3 -3
- package/dist/esm/components/panel/Panel.js.map +1 -1
- package/dist/esm/components/panel/PanelButton.js +1 -1
- package/dist/esm/components/panel/PanelButton.js.map +1 -1
- package/dist/esm/components/panel/PanelHeader.js +1 -1
- package/dist/esm/components/panel/PanelHeader.js.map +1 -1
- package/dist/esm/components/panel/PanelItem.js.map +1 -1
- package/dist/esm/components/panel/panel.actions.js +8 -1
- package/dist/esm/components/panel/panel.actions.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/node_modules/moment/moment.js +5695 -0
- package/dist/esm/node_modules/moment/moment.js.map +1 -0
- package/dist/esm/node_modules/universal-cookie/esm/index.js +407 -0
- package/dist/esm/node_modules/universal-cookie/esm/index.js.map +1 -0
- package/dist/esm/shared/cookies/cookies.utils.js +12 -0
- package/dist/esm/shared/cookies/cookies.utils.js.map +1 -0
- package/dist/esm/shared/cookies/index.js +6 -0
- package/dist/esm/shared/cookies/index.js.map +1 -0
- package/dist/esm/types/components/panel/Panel.d.ts +1 -0
- package/dist/esm/types/components/panel/PanelFooter.d.ts +11 -0
- package/dist/esm/types/components/panel/PanelHeader.d.ts +1 -1
- package/dist/esm/types/components/panel/PanelItem.d.ts +1 -1
- package/dist/esm/types/components/panel/panel.actions.d.ts +2 -0
- package/dist/esm/types/config/config.types.d.ts +1 -0
- package/dist/esm/types/shared/cookies/cookies.utils.d.ts +6 -0
- package/dist/esm/types/shared/cookies/index.d.ts +2 -0
- package/dist/index.d.ts +9 -6
- package/package.json +4 -2
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
function commonjsRequire(path) {
|
|
4
|
+
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
exports.commonjsRequire = commonjsRequire;
|
|
8
|
+
//# sourceMappingURL=_commonjs-dynamic-modules.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_commonjs-dynamic-modules.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _commonjsHelpers = require('./_commonjsHelpers.js');
|
|
6
|
+
var moment$1 = require('../node_modules/moment/moment.js');
|
|
7
|
+
|
|
8
|
+
var momentExports = moment$1.__require();
|
|
9
|
+
var moment = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(momentExports);
|
|
10
|
+
|
|
11
|
+
exports.default = moment;
|
|
12
|
+
//# sourceMappingURL=moment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moment.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moment2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -8,9 +8,9 @@ var panel_actions = require('./panel.actions.js');
|
|
|
8
8
|
var Drawer = require('../../node_modules/@mui/material/esm/Drawer/Drawer.js');
|
|
9
9
|
var Box = require('../../node_modules/@mui/material/esm/Box/Box.js');
|
|
10
10
|
|
|
11
|
-
const Panel = ({ children, size = 300, ...rest }) => {
|
|
11
|
+
const Panel = ({ children, footer, size = 300, ...rest }) => {
|
|
12
12
|
const { isOpen } = index.libExports.useStore(panel_store.panelStore);
|
|
13
|
-
return (jsxRuntime.jsx(Drawer.default, { open: isOpen, onClose: () => panel_actions.handlePanelClick(false), ...rest, children: jsxRuntime.
|
|
13
|
+
return (jsxRuntime.jsx(Drawer.default, { open: isOpen, onClose: () => panel_actions.handlePanelClick(false), ...rest, children: jsxRuntime.jsxs(Box.default, { sx: { width: size }, display: "flex", flexDirection: "column", justifyContent: "space-between", height: "100%", children: [jsxRuntime.jsx(Box.default, { children: children }), jsxRuntime.jsx(Box.default, { children: footer })] }) }));
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
exports.Panel = Panel;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Panel.js","sources":["../../../../src/components/panel/Panel.tsx"],"sourcesContent":["'use client';\nimport { Box, Drawer, DrawerProps } from '@mui/material';\nimport React from 'react';\nimport { useStore } from '@cobuildlab/react-simple-state';\nimport { panelStore } from './panel.store';\nimport { handlePanelClick } from './panel.actions';\n\nexport interface PanelProps extends DrawerProps {\n children?: React.ReactNode;\n size?: number;\n}\n\nexport const Panel: React.FC<PanelProps> = ({ children, size = 300, ...rest }) => {\n const { isOpen } = useStore(panelStore);\n\n return (\n <Drawer open={isOpen} onClose={() => handlePanelClick(false)} {...rest}>\n <Box\n sx={{ width: size }}\n display=\"flex\"\n flexDirection=\"column\"\n justifyContent=\"space-between\"\n height=\"100%\">\n {children}
|
|
1
|
+
{"version":3,"file":"Panel.js","sources":["../../../../src/components/panel/Panel.tsx"],"sourcesContent":["'use client';\nimport { Box, Drawer, DrawerProps } from '@mui/material';\nimport React from 'react';\nimport { useStore } from '@cobuildlab/react-simple-state';\nimport { panelStore } from './panel.store';\nimport { handlePanelClick } from './panel.actions';\n\nexport interface PanelProps extends DrawerProps {\n children?: React.ReactNode;\n footer?: React.ReactNode;\n size?: number;\n}\n\nexport const Panel: React.FC<PanelProps> = ({ children, footer, size = 300, ...rest }) => {\n const { isOpen } = useStore(panelStore);\n\n return (\n <Drawer open={isOpen} onClose={() => handlePanelClick(false)} {...rest}>\n <Box\n sx={{ width: size }}\n display=\"flex\"\n flexDirection=\"column\"\n justifyContent=\"space-between\"\n height=\"100%\">\n <Box>{children}</Box>\n <Box>{footer}</Box>\n </Box>\n </Drawer>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;;AAaO;;AAGL;AAaF;;"}
|
|
@@ -9,7 +9,7 @@ var Button = require('../../node_modules/@mui/material/esm/Button/Button.js');
|
|
|
9
9
|
|
|
10
10
|
const PanelButton = ({ children, ...rest }) => {
|
|
11
11
|
const { isOpen } = index.libExports.useStore(panel_store.panelStore);
|
|
12
|
-
return jsxRuntime.jsx(Button.default, { onClick: () => panel_actions.handlePanelClick(!isOpen), ...rest });
|
|
12
|
+
return jsxRuntime.jsx(Button.default, { onClick: () => panel_actions.handlePanelClick(!isOpen), ...rest, children: children });
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
exports.PanelButton = PanelButton;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PanelButton.js","sources":["../../../../src/components/panel/PanelButton.tsx"],"sourcesContent":["'use client'\nimport React, { FC } from 'react';\nimport { Button, ButtonProps } from '@mui/material';\nimport { handlePanelClick } from './panel.actions';\nimport { useStore } from '@cobuildlab/react-simple-state';\nimport { panelStore } from './panel.store';\n\nexport interface PanelButtonProps extends ButtonProps {\n children: React.ReactNode;\n}\n\nexport const PanelButton: FC<PanelButtonProps> = ({ children, ...rest }) => {\n const { isOpen } = useStore(panelStore);\n\n return <Button onClick={() => handlePanelClick(!isOpen)} {...rest}
|
|
1
|
+
{"version":3,"file":"PanelButton.js","sources":["../../../../src/components/panel/PanelButton.tsx"],"sourcesContent":["'use client'\nimport React, { FC } from 'react';\nimport { Button, ButtonProps } from '@mui/material';\nimport { handlePanelClick } from './panel.actions';\nimport { useStore } from '@cobuildlab/react-simple-state';\nimport { panelStore } from './panel.store';\n\nexport interface PanelButtonProps extends ButtonProps {\n children: React.ReactNode;\n}\n\nexport const PanelButton: FC<PanelButtonProps> = ({ children, ...rest }) => {\n const { isOpen } = useStore(panelStore);\n\n return <Button onClick={() => handlePanelClick(!isOpen)} {...rest}>\n {children}\n </Button>;\n};\n"],"names":[],"mappings":";;;;;;;;;AAWO;;AAGL;AAGF;;"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
5
|
var Box = require('../../node_modules/@mui/material/esm/Box/Box.js');
|
|
6
6
|
|
|
7
|
-
const PanelHeader = ({ imageProps, containerProps }) => {
|
|
7
|
+
const PanelHeader = ({ imageProps = {}, containerProps = {}, }) => {
|
|
8
8
|
return (jsxRuntime.jsx(Box.default, { ...containerProps, children: jsxRuntime.jsx("img", { ...imageProps, alt: imageProps?.alt }) }));
|
|
9
9
|
};
|
|
10
10
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PanelHeader.js","sources":["../../../../src/components/panel/PanelHeader.tsx"],"sourcesContent":["'use client';\nimport React from 'react';\nimport { BoxProps, Box } from '@mui/material';\n\nexport interface PanelHeaderProps {\n containerProps
|
|
1
|
+
{"version":3,"file":"PanelHeader.js","sources":["../../../../src/components/panel/PanelHeader.tsx"],"sourcesContent":["'use client';\nimport React from 'react';\nimport { BoxProps, Box } from '@mui/material';\n\nexport interface PanelHeaderProps {\n containerProps?: BoxProps;\n imageProps?: React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>;\n}\n\nexport const PanelHeader: React.FC<PanelHeaderProps> = ({\n imageProps = {},\n containerProps = {},\n}) => {\n return (\n <Box {...containerProps}>\n <img {...imageProps} alt={imageProps?.alt} />\n </Box>\n );\n};\n"],"names":[],"mappings":";;;;;;AASO;AAIL;AAKF;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PanelItem.js","sources":["../../../../src/components/panel/PanelItem.tsx"],"sourcesContent":["'use client'\nimport React from 'react';\nimport {\n ListItem,\n ListItemButton,\n ListItemText,\n IconButton,\n ListItemProps,\n ListItemTextProps,\n} from '@mui/material';\nimport ArrowForwardIosIcon from '@mui/icons-material/ArrowForwardIos';\nimport { theme } from '../../shared/mui/theme';\n\nexport interface PanelItemProps {\n listItemProps?: ListItemProps & { href
|
|
1
|
+
{"version":3,"file":"PanelItem.js","sources":["../../../../src/components/panel/PanelItem.tsx"],"sourcesContent":["'use client'\nimport React from 'react';\nimport {\n ListItem,\n ListItemButton,\n ListItemText,\n IconButton,\n ListItemProps,\n ListItemTextProps,\n} from '@mui/material';\nimport ArrowForwardIosIcon from '@mui/icons-material/ArrowForwardIos';\nimport { theme } from '../../shared/mui/theme';\n\nexport interface PanelItemProps {\n listItemProps?: ListItemProps & { href?: string };\n listItemTextProps?: ListItemTextProps;\n}\n\nexport const PanelItem: React.FC<PanelItemProps> = ({ listItemProps, listItemTextProps }) => {\n return (\n <ListItem\n disablePadding\n component=\"a\"\n secondaryAction={\n <IconButton>\n <ArrowForwardIosIcon fontSize=\"small\" />\n </IconButton>\n }\n {...listItemProps}>\n <ListItemButton sx={{ alignItems: 'center', paddingLeft: theme.spacing(1.5) }}>\n <ListItemText {...listItemTextProps} />\n </ListItemButton>\n </ListItem>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;;;AAkBO;;AAgBP;;"}
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
var index = require('../../_virtual/index.js');
|
|
4
4
|
var panel_store = require('./panel.store.js');
|
|
5
|
+
var index$1 = require('../../shared/cookies/index.js');
|
|
6
|
+
var cookies_utils = require('../../shared/cookies/cookies.utils.js');
|
|
5
7
|
|
|
6
8
|
const panelStoreAction = index.libExports.createStoreAction(panel_store.panelStore, (prev, data) => ({
|
|
7
9
|
...prev,
|
|
@@ -10,7 +12,13 @@ const panelStoreAction = index.libExports.createStoreAction(panel_store.panelSto
|
|
|
10
12
|
const handlePanelClick = (isOpen) => {
|
|
11
13
|
return panelStoreAction({ isOpen });
|
|
12
14
|
};
|
|
15
|
+
const handleLogout = (config) => {
|
|
16
|
+
const options = cookies_utils.getCookieOptions(config);
|
|
17
|
+
index$1.universalCookies.remove(config?.cookieTokenName, options);
|
|
18
|
+
window.location.reload();
|
|
19
|
+
};
|
|
13
20
|
|
|
21
|
+
exports.handleLogout = handleLogout;
|
|
14
22
|
exports.handlePanelClick = handlePanelClick;
|
|
15
23
|
exports.panelStoreAction = panelStoreAction;
|
|
16
24
|
//# sourceMappingURL=panel.actions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"panel.actions.js","sources":["../../../../src/components/panel/panel.actions.ts"],"sourcesContent":["import { createStoreAction } from '@cobuildlab/react-simple-state';\nimport { panelStore } from './panel.store';\nimport { PanelStoreAction } from './panel.types';\n\nexport const panelStoreAction = createStoreAction(panelStore, (prev, data: PanelStoreAction) => ({\n ...prev,\n ...data,\n}));\n\nexport const handlePanelClick = (isOpen: boolean) => {\n return panelStoreAction({ isOpen });\n};\n"],"names":["createStoreAction","panelStore"],"mappings":"
|
|
1
|
+
{"version":3,"file":"panel.actions.js","sources":["../../../../src/components/panel/panel.actions.ts"],"sourcesContent":["import { createStoreAction } from '@cobuildlab/react-simple-state';\nimport { panelStore } from './panel.store';\nimport { PanelStoreAction } from './panel.types';\nimport { universalCookies } from '../../shared/cookies';\nimport { Config } from '../../config/config.types';\nimport { getCookieOptions } from '../../shared/cookies/cookies.utils';\n\nexport const panelStoreAction = createStoreAction(panelStore, (prev, data: PanelStoreAction) => ({\n ...prev,\n ...data,\n}));\n\nexport const handlePanelClick = (isOpen: boolean) => {\n return panelStoreAction({ isOpen });\n};\n\nexport const handleLogout = (config: Config | undefined) => {\n const options = getCookieOptions(config);\n universalCookies.remove(config?.cookieTokenName as string, options);\n window.location.reload();\n};\n"],"names":["createStoreAction","panelStore","getCookieOptions","universalCookies"],"mappings":";;;;;;;AAOO,MAAM,gBAAgB,GAAGA,kCAAiB,CAACC,sBAAU,EAAE,CAAC,IAAI,EAAE,IAAsB,MAAM;AAC/F,IAAA,GAAG,IAAI;AACP,IAAA,GAAG,IAAI;AACR,CAAA,CAAC;AAEK,MAAM,gBAAgB,GAAG,CAAC,MAAe,KAAI;AAClD,IAAA,OAAO,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;AACrC;AAEO,MAAM,YAAY,GAAG,CAAC,MAA0B,KAAI;AACzD,IAAA,MAAM,OAAO,GAAGC,8BAAgB,CAAC,MAAM,CAAC;IACxCC,wBAAgB,CAAC,MAAM,CAAC,MAAM,EAAE,eAAyB,EAAE,OAAO,CAAC;AACnE,IAAA,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE;AAC1B;;;;;;"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -21,6 +21,7 @@ exports.PanelHeader = PanelHeader.PanelHeader;
|
|
|
21
21
|
exports.PanelItem = PanelItem.PanelItem;
|
|
22
22
|
exports.PanelListItems = PanelListItems.PanelListItems;
|
|
23
23
|
exports.panelStore = panel_store.panelStore;
|
|
24
|
+
exports.handleLogout = panel_actions.handleLogout;
|
|
24
25
|
exports.handlePanelClick = panel_actions.handlePanelClick;
|
|
25
26
|
exports.panelStoreAction = panel_actions.panelStoreAction;
|
|
26
27
|
exports.SessionProvider = SessionProvider.SessionProvider;
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
|