@bigbinary/neeto-molecules 4.1.46 → 4.1.48
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/ConfigureView-C84AmCMq.js +255 -0
- package/dist/ConfigureView-C84AmCMq.js.map +1 -0
- package/dist/Sidebar.js +1 -2
- package/dist/Sidebar.js.map +1 -1
- package/dist/chevron-right-DcaO-Hlu.js +15 -0
- package/dist/chevron-right-DcaO-Hlu.js.map +1 -0
- package/dist/cjs/ConfigureView-DGf7cRMQ.js +270 -0
- package/dist/cjs/ConfigureView-DGf7cRMQ.js.map +1 -0
- package/dist/cjs/Sidebar.js +1 -2
- package/dist/cjs/Sidebar.js.map +1 -1
- package/dist/cjs/chevron-right-DpleLIQp.js +17 -0
- package/dist/cjs/chevron-right-DpleLIQp.js.map +1 -0
- package/dist/cjs/createLucideIcon-DBDhE7kE.js +145 -0
- package/dist/cjs/createLucideIcon-DBDhE7kE.js.map +1 -0
- package/dist/cjs/v2/ConfigurePageSidebar.js +56 -0
- package/dist/cjs/v2/ConfigurePageSidebar.js.map +1 -0
- package/dist/cjs/v2/FloatingActionMenu.js +1592 -0
- package/dist/cjs/v2/FloatingActionMenu.js.map +1 -0
- package/dist/cjs/v2/Sidebar.js +639 -0
- package/dist/cjs/v2/Sidebar.js.map +1 -0
- package/dist/createLucideIcon-mNMhCCpf.js +143 -0
- package/dist/createLucideIcon-mNMhCCpf.js.map +1 -0
- package/dist/v2/ConfigurePageSidebar.js +54 -0
- package/dist/v2/ConfigurePageSidebar.js.map +1 -0
- package/dist/v2/FloatingActionMenu.js +1571 -0
- package/dist/v2/FloatingActionMenu.js.map +1 -0
- package/dist/v2/Sidebar.js +618 -0
- package/dist/v2/Sidebar.js.map +1 -0
- package/package.json +14 -2
- package/types/v2/ConfigurePageSidebar.d.ts +16 -0
- package/types/v2/FloatingActionMenu.d.ts +48 -0
- package/types/v2/Sidebar.d.ts +41 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var createLucideIcon = require('./createLucideIcon-DBDhE7kE.js');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @license lucide-react v1.7.0 - ISC
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the ISC license.
|
|
9
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
const __iconNode = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]];
|
|
14
|
+
const ChevronRight = createLucideIcon.createLucideIcon("chevron-right", __iconNode);
|
|
15
|
+
|
|
16
|
+
exports.ChevronRight = ChevronRight;
|
|
17
|
+
//# sourceMappingURL=chevron-right-DpleLIQp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chevron-right-DpleLIQp.js","sources":["../../node_modules/lucide-react/dist/esm/icons/chevron-right.js"],"sourcesContent":["/**\n * @license lucide-react v1.7.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [[\"path\", { d: \"m9 18 6-6-6-6\", key: \"mthhwq\" }]];\nconst ChevronRight = createLucideIcon(\"chevron-right\", __iconNode);\n\nexport { __iconNode, ChevronRight as default };\n//# sourceMappingURL=chevron-right.js.map\n"],"names":["createLucideIcon"],"mappings":";;;;AAAA;AACA;AACA;AACA;AACA;AACA;;;AAIA,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,eAAe,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAC/D,MAAC,YAAY,GAAGA,iCAAgB,CAAC,eAAe,EAAE,UAAU;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @license lucide-react v1.7.0 - ISC
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the ISC license.
|
|
9
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
const mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
|
13
|
+
return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
|
|
14
|
+
}).join(" ").trim();
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @license lucide-react v1.7.0 - ISC
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the ISC license.
|
|
20
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
const toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @license lucide-react v1.7.0 - ISC
|
|
27
|
+
*
|
|
28
|
+
* This source code is licensed under the ISC license.
|
|
29
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
const toCamelCase = (string) => string.replace(
|
|
33
|
+
/^([A-Z])|[\s-_]+(\w)/g,
|
|
34
|
+
(match, p1, p2) => p2 ? p2.toUpperCase() : p1.toLowerCase()
|
|
35
|
+
);
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @license lucide-react v1.7.0 - ISC
|
|
39
|
+
*
|
|
40
|
+
* This source code is licensed under the ISC license.
|
|
41
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
42
|
+
*/
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
const toPascalCase = (string) => {
|
|
46
|
+
const camelCase = toCamelCase(string);
|
|
47
|
+
return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @license lucide-react v1.7.0 - ISC
|
|
52
|
+
*
|
|
53
|
+
* This source code is licensed under the ISC license.
|
|
54
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
55
|
+
*/
|
|
56
|
+
|
|
57
|
+
var defaultAttributes = {
|
|
58
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
59
|
+
width: 24,
|
|
60
|
+
height: 24,
|
|
61
|
+
viewBox: "0 0 24 24",
|
|
62
|
+
fill: "none",
|
|
63
|
+
stroke: "currentColor",
|
|
64
|
+
strokeWidth: 2,
|
|
65
|
+
strokeLinecap: "round",
|
|
66
|
+
strokeLinejoin: "round"
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* @license lucide-react v1.7.0 - ISC
|
|
71
|
+
*
|
|
72
|
+
* This source code is licensed under the ISC license.
|
|
73
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
74
|
+
*/
|
|
75
|
+
|
|
76
|
+
const hasA11yProp = (props) => {
|
|
77
|
+
for (const prop in props) {
|
|
78
|
+
if (prop.startsWith("aria-") || prop === "role" || prop === "title") {
|
|
79
|
+
return true;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
return false;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
const LucideContext = React.createContext({});
|
|
86
|
+
const useLucideContext = () => React.useContext(LucideContext);
|
|
87
|
+
|
|
88
|
+
const Icon = React.forwardRef(
|
|
89
|
+
({ color, size, strokeWidth, absoluteStrokeWidth, className = "", children, iconNode, ...rest }, ref) => {
|
|
90
|
+
const {
|
|
91
|
+
size: contextSize = 24,
|
|
92
|
+
strokeWidth: contextStrokeWidth = 2,
|
|
93
|
+
absoluteStrokeWidth: contextAbsoluteStrokeWidth = false,
|
|
94
|
+
color: contextColor = "currentColor",
|
|
95
|
+
className: contextClass = ""
|
|
96
|
+
} = useLucideContext() ?? {};
|
|
97
|
+
const calculatedStrokeWidth = absoluteStrokeWidth ?? contextAbsoluteStrokeWidth ? Number(strokeWidth ?? contextStrokeWidth) * 24 / Number(size ?? contextSize) : strokeWidth ?? contextStrokeWidth;
|
|
98
|
+
return React.createElement(
|
|
99
|
+
"svg",
|
|
100
|
+
{
|
|
101
|
+
ref,
|
|
102
|
+
...defaultAttributes,
|
|
103
|
+
width: size ?? contextSize ?? defaultAttributes.width,
|
|
104
|
+
height: size ?? contextSize ?? defaultAttributes.height,
|
|
105
|
+
stroke: color ?? contextColor,
|
|
106
|
+
strokeWidth: calculatedStrokeWidth,
|
|
107
|
+
className: mergeClasses("lucide", contextClass, className),
|
|
108
|
+
...!children && !hasA11yProp(rest) && { "aria-hidden": "true" },
|
|
109
|
+
...rest
|
|
110
|
+
},
|
|
111
|
+
[
|
|
112
|
+
...iconNode.map(([tag, attrs]) => React.createElement(tag, attrs)),
|
|
113
|
+
...Array.isArray(children) ? children : [children]
|
|
114
|
+
]
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
);
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* @license lucide-react v1.7.0 - ISC
|
|
121
|
+
*
|
|
122
|
+
* This source code is licensed under the ISC license.
|
|
123
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
124
|
+
*/
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
const createLucideIcon = (iconName, iconNode) => {
|
|
128
|
+
const Component = React.forwardRef(
|
|
129
|
+
({ className, ...props }, ref) => React.createElement(Icon, {
|
|
130
|
+
ref,
|
|
131
|
+
iconNode,
|
|
132
|
+
className: mergeClasses(
|
|
133
|
+
`lucide-${toKebabCase(toPascalCase(iconName))}`,
|
|
134
|
+
`lucide-${iconName}`,
|
|
135
|
+
className
|
|
136
|
+
),
|
|
137
|
+
...props
|
|
138
|
+
})
|
|
139
|
+
);
|
|
140
|
+
Component.displayName = toPascalCase(iconName);
|
|
141
|
+
return Component;
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
exports.createLucideIcon = createLucideIcon;
|
|
145
|
+
//# sourceMappingURL=createLucideIcon-DBDhE7kE.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createLucideIcon-DBDhE7kE.js","sources":["../../node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.js","../../node_modules/lucide-react/dist/esm/shared/src/utils/toKebabCase.js","../../node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase.js","../../node_modules/lucide-react/dist/esm/shared/src/utils/toPascalCase.js","../../node_modules/lucide-react/dist/esm/defaultAttributes.js","../../node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.js","../../node_modules/lucide-react/dist/esm/context.js","../../node_modules/lucide-react/dist/esm/Icon.js","../../node_modules/lucide-react/dist/esm/createLucideIcon.js"],"sourcesContent":["/**\n * @license lucide-react v1.7.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nconst mergeClasses = (...classes) => classes.filter((className, index, array) => {\n return Boolean(className) && className.trim() !== \"\" && array.indexOf(className) === index;\n}).join(\" \").trim();\n\nexport { mergeClasses };\n//# sourceMappingURL=mergeClasses.js.map\n","/**\n * @license lucide-react v1.7.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nconst toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, \"$1-$2\").toLowerCase();\n\nexport { toKebabCase };\n//# sourceMappingURL=toKebabCase.js.map\n","/**\n * @license lucide-react v1.7.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nconst toCamelCase = (string) => string.replace(\n /^([A-Z])|[\\s-_]+(\\w)/g,\n (match, p1, p2) => p2 ? p2.toUpperCase() : p1.toLowerCase()\n);\n\nexport { toCamelCase };\n//# sourceMappingURL=toCamelCase.js.map\n","/**\n * @license lucide-react v1.7.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { toCamelCase } from './toCamelCase.js';\n\nconst toPascalCase = (string) => {\n const camelCase = toCamelCase(string);\n return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);\n};\n\nexport { toPascalCase };\n//# sourceMappingURL=toPascalCase.js.map\n","/**\n * @license lucide-react v1.7.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nvar defaultAttributes = {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n};\n\nexport { defaultAttributes as default };\n//# sourceMappingURL=defaultAttributes.js.map\n","/**\n * @license lucide-react v1.7.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nconst hasA11yProp = (props) => {\n for (const prop in props) {\n if (prop.startsWith(\"aria-\") || prop === \"role\" || prop === \"title\") {\n return true;\n }\n }\n return false;\n};\n\nexport { hasA11yProp };\n//# sourceMappingURL=hasA11yProp.js.map\n","\"use strict\";\n\"use client\";\n/**\n * @license lucide-react v1.7.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { createContext, useContext, useMemo, createElement } from 'react';\n\nconst LucideContext = createContext({});\nfunction LucideProvider({\n children,\n size,\n color,\n strokeWidth,\n absoluteStrokeWidth,\n className\n}) {\n const value = useMemo(\n () => ({\n size,\n color,\n strokeWidth,\n absoluteStrokeWidth,\n className\n }),\n [size, color, strokeWidth, absoluteStrokeWidth, className]\n );\n return createElement(LucideContext.Provider, { value }, children);\n}\nconst useLucideContext = () => useContext(LucideContext);\n\nexport { LucideProvider, useLucideContext };\n//# sourceMappingURL=context.js.map\n","\"use strict\";\n\"use client\";\n/**\n * @license lucide-react v1.7.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { forwardRef, createElement } from 'react';\nimport defaultAttributes from './defaultAttributes.js';\nimport { hasA11yProp } from './shared/src/utils/hasA11yProp.js';\nimport { mergeClasses } from './shared/src/utils/mergeClasses.js';\nimport { useLucideContext } from './context.js';\n\nconst Icon = forwardRef(\n ({ color, size, strokeWidth, absoluteStrokeWidth, className = \"\", children, iconNode, ...rest }, ref) => {\n const {\n size: contextSize = 24,\n strokeWidth: contextStrokeWidth = 2,\n absoluteStrokeWidth: contextAbsoluteStrokeWidth = false,\n color: contextColor = \"currentColor\",\n className: contextClass = \"\"\n } = useLucideContext() ?? {};\n const calculatedStrokeWidth = absoluteStrokeWidth ?? contextAbsoluteStrokeWidth ? Number(strokeWidth ?? contextStrokeWidth) * 24 / Number(size ?? contextSize) : strokeWidth ?? contextStrokeWidth;\n return createElement(\n \"svg\",\n {\n ref,\n ...defaultAttributes,\n width: size ?? contextSize ?? defaultAttributes.width,\n height: size ?? contextSize ?? defaultAttributes.height,\n stroke: color ?? contextColor,\n strokeWidth: calculatedStrokeWidth,\n className: mergeClasses(\"lucide\", contextClass, className),\n ...!children && !hasA11yProp(rest) && { \"aria-hidden\": \"true\" },\n ...rest\n },\n [\n ...iconNode.map(([tag, attrs]) => createElement(tag, attrs)),\n ...Array.isArray(children) ? children : [children]\n ]\n );\n }\n);\n\nexport { Icon as default };\n//# sourceMappingURL=Icon.js.map\n","/**\n * @license lucide-react v1.7.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { forwardRef, createElement } from 'react';\nimport { mergeClasses } from './shared/src/utils/mergeClasses.js';\nimport { toKebabCase } from './shared/src/utils/toKebabCase.js';\nimport { toPascalCase } from './shared/src/utils/toPascalCase.js';\nimport Icon from './Icon.js';\n\nconst createLucideIcon = (iconName, iconNode) => {\n const Component = forwardRef(\n ({ className, ...props }, ref) => createElement(Icon, {\n ref,\n iconNode,\n className: mergeClasses(\n `lucide-${toKebabCase(toPascalCase(iconName))}`,\n `lucide-${iconName}`,\n className\n ),\n ...props\n })\n );\n Component.displayName = toPascalCase(iconName);\n return Component;\n};\n\nexport { createLucideIcon as default };\n//# sourceMappingURL=createLucideIcon.js.map\n"],"names":["createContext","useContext","forwardRef","createElement"],"mappings":";;;;AAAA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAM,YAAY,GAAG,CAAC,GAAG,OAAO,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC,SAAS,EAAE,KAAK,EAAE,KAAK,KAAK;AACjF,EAAE,OAAO,OAAO,CAAC,SAAS,CAAC,IAAI,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,KAAK;AAC5F,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE;;ACTnB;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAM,WAAW,GAAG,CAAC,MAAM,KAAK,MAAM,CAAC,OAAO,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAAC,WAAW,EAAE;;ACP3F;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAM,WAAW,GAAG,CAAC,MAAM,KAAK,MAAM,CAAC,OAAO;AAC9C,EAAE,uBAAuB;AACzB,EAAE,CAAC,KAAK,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,WAAW,EAAE,GAAG,EAAE,CAAC,WAAW;AAC3D,CAAC;;ACVD;AACA;AACA;AACA;AACA;AACA;;;AAIA,MAAM,YAAY,GAAG,CAAC,MAAM,KAAK;AACjC,EAAE,MAAM,SAAS,GAAG,WAAW,CAAC,MAAM,CAAC;AACvC,EAAE,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;AAC/D,CAAC;;ACZD;AACA;AACA;AACA;AACA;AACA;;AAEA,IAAI,iBAAiB,GAAG;AACxB,EAAE,KAAK,EAAE,4BAA4B;AACrC,EAAE,KAAK,EAAE,EAAE;AACX,E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C,CAAC,CAAC;AACvD,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;AAC5B,QAAQ;AACR,OAAO;AACP,MAAM,GAAG;AACT,KAAK;AACL,GAAG;AACH,EAAE,SAAS,CAAC,WAAW,GAAG,YAAY,CAAC,QAAQ,CAAC;AAChD,EAAE,OAAO,SAAS;AAClB;;;;","x_google_ignoreList":[0,1,2,3,4,5,6,7,8]}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var neetoAtoms = require('@bigbinary/neeto-atoms');
|
|
6
|
+
var reactRouterDom = require('react-router-dom');
|
|
7
|
+
var ConfigureView = require('../ConfigureView-DGf7cRMQ.js');
|
|
8
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
9
|
+
require('@babel/runtime/helpers/defineProperty');
|
|
10
|
+
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
11
|
+
require('@bigbinary/neeto-cist');
|
|
12
|
+
require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
13
|
+
require('@bigbinary/neeto-commons-frontend/utils/general');
|
|
14
|
+
require('ramda');
|
|
15
|
+
require('@bigbinary/neeto-commons-frontend/react-utils/useRegisterNavigationCheckpoint');
|
|
16
|
+
require('classnames');
|
|
17
|
+
require('@bigbinary/neeto-filters-frontend/Segments');
|
|
18
|
+
require('../createLucideIcon-DBDhE7kE.js');
|
|
19
|
+
|
|
20
|
+
var ConfigurePageSidebar = function ConfigurePageSidebar(_ref) {
|
|
21
|
+
var label = _ref.label,
|
|
22
|
+
items = _ref.navLinks,
|
|
23
|
+
configurePageRoute = _ref.configurePageRoute;
|
|
24
|
+
var history = reactRouterDom.useHistory();
|
|
25
|
+
var _useState = React.useState(false),
|
|
26
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
27
|
+
isSidebarCollapsed = _useState2[0],
|
|
28
|
+
setIsSidebarCollapsed = _useState2[1];
|
|
29
|
+
var handleConfigureLinkClick = function handleConfigureLinkClick() {
|
|
30
|
+
history.push(configurePageRoute);
|
|
31
|
+
};
|
|
32
|
+
return /*#__PURE__*/jsxRuntime.jsxs(neetoAtoms.SidebarProvider, {
|
|
33
|
+
className: "!w-auto",
|
|
34
|
+
open: !isSidebarCollapsed,
|
|
35
|
+
onOpenChange: function onOpenChange(open) {
|
|
36
|
+
return setIsSidebarCollapsed(!open);
|
|
37
|
+
},
|
|
38
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Sidebar, {
|
|
39
|
+
collapsible: "offcanvas",
|
|
40
|
+
side: document.documentElement.dir === "rtl" ? "right" : "left",
|
|
41
|
+
children: /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.SidebarContent, {
|
|
42
|
+
children: /*#__PURE__*/jsxRuntime.jsx(ConfigureView.ConfigureView, {
|
|
43
|
+
isConfigureSidebar: true,
|
|
44
|
+
handleGoBack: handleConfigureLinkClick,
|
|
45
|
+
navLink: {
|
|
46
|
+
label: label,
|
|
47
|
+
items: items
|
|
48
|
+
}
|
|
49
|
+
})
|
|
50
|
+
})
|
|
51
|
+
}), /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.SidebarTrigger, {})]
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
module.exports = ConfigurePageSidebar;
|
|
56
|
+
//# sourceMappingURL=ConfigurePageSidebar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfigurePageSidebar.js","sources":["../../../src/v2/components/ConfigurePageSidebar.jsx"],"sourcesContent":["import { useState } from \"react\";\n\nimport {\n Sidebar,\n SidebarContent,\n SidebarProvider,\n SidebarTrigger,\n} from \"@bigbinary/neeto-atoms\";\nimport PropTypes from \"prop-types\";\nimport { useHistory } from \"react-router-dom\";\n\nimport ConfigureView from \"./Sidebar/Components/ConfigureView\";\n\nconst ConfigurePageSidebar = ({\n label,\n navLinks: items,\n configurePageRoute,\n}) => {\n const history = useHistory();\n const [isSidebarCollapsed, setIsSidebarCollapsed] = useState(false);\n\n const handleConfigureLinkClick = () => {\n history.push(configurePageRoute);\n };\n\n return (\n <SidebarProvider\n className=\"!w-auto\"\n open={!isSidebarCollapsed}\n onOpenChange={open => setIsSidebarCollapsed(!open)}\n >\n <Sidebar\n collapsible=\"offcanvas\"\n side={document.documentElement.dir === \"rtl\" ? \"right\" : \"left\"}\n >\n <SidebarContent>\n <ConfigureView\n isConfigureSidebar\n handleGoBack={handleConfigureLinkClick}\n navLink={{ label, items }}\n />\n </SidebarContent>\n </Sidebar>\n <SidebarTrigger />\n </SidebarProvider>\n );\n};\n\nConfigurePageSidebar.propTypes = {\n configurePageRoute: PropTypes.string,\n label: PropTypes.string,\n navLinks: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string,\n to: PropTypes.string,\n items: PropTypes.arrayOf(\n PropTypes.shape({ label: PropTypes.string, to: PropTypes.string })\n ),\n })\n ),\n};\n\nexport default ConfigurePageSidebar;\n"],"names":["ConfigurePageSidebar","_ref","label","items","navLinks","configurePageRoute","history","useHistory","_useState","useState","_useState2","_slicedToArray","isSidebarCollapsed","setIsSidebarCollapsed","handleConfigureLinkClick","push","_jsxs","SidebarProvider","className","open","onOpenChange","children","_jsx","Sidebar","collapsible","side","document","documentElement","dir","SidebarContent","ConfigureView","isConfigureSidebar","handleGoBack","navLink","SidebarTrigger"],"mappings":";;;;;;;;;;;;;;;;;;;AAaA,IAAMA,oBAAoB,GAAG,SAAvBA,oBAAoBA,CAAAC,IAAA,EAIpB;AAAA,EAAA,IAHJC,KAAK,GAAAD,IAAA,CAALC,KAAK;IACKC,KAAK,GAAAF,IAAA,CAAfG,QAAQ;IACRC,kBAAkB,GAAAJ,IAAA,CAAlBI,kBAAkB;AAElB,EAAA,IAAMC,OAAO,GAAGC,yBAAU,EAAE;AAC5B,EAAA,IAAAC,SAAA,GAAoDC,cAAQ,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