@neo4j-ndl/react 3.3.14 → 3.3.15
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/lib/cjs/accordion/stories/accordion-clean-items-expanded.story.js +34 -0
- package/lib/cjs/accordion/stories/accordion-clean-items-expanded.story.js.map +1 -0
- package/lib/cjs/accordion/stories/accordion-default-expanded.story.js +34 -0
- package/lib/cjs/accordion/stories/accordion-default-expanded.story.js.map +1 -0
- package/lib/cjs/accordion/stories/accordion-full.story.js +37 -0
- package/lib/cjs/accordion/stories/accordion-full.story.js.map +1 -0
- package/lib/cjs/accordion/stories/accordion-multiple-expanded.story.js +37 -0
- package/lib/cjs/accordion/stories/accordion-multiple-expanded.story.js.map +1 -0
- package/lib/cjs/accordion/stories/accordion-right-content.story.js +34 -0
- package/lib/cjs/accordion/stories/accordion-right-content.story.js.map +1 -0
- package/lib/cjs/accordion/stories/accordion-single-expanded.story.js +34 -0
- package/lib/cjs/accordion/stories/accordion-single-expanded.story.js.map +1 -0
- package/lib/cjs/accordion/stories/accordion.stories.js +144 -0
- package/lib/cjs/accordion/stories/accordion.stories.js.map +1 -0
- package/lib/cjs/accordion/stories/index.js +51 -0
- package/lib/cjs/accordion/stories/index.js.map +1 -0
- package/lib/esm/accordion/stories/accordion-clean-items-expanded.story.js +32 -0
- package/lib/esm/accordion/stories/accordion-clean-items-expanded.story.js.map +1 -0
- package/lib/esm/accordion/stories/accordion-default-expanded.story.js +32 -0
- package/lib/esm/accordion/stories/accordion-default-expanded.story.js.map +1 -0
- package/lib/esm/accordion/stories/accordion-full.story.js +35 -0
- package/lib/esm/accordion/stories/accordion-full.story.js.map +1 -0
- package/lib/esm/accordion/stories/accordion-multiple-expanded.story.js +35 -0
- package/lib/esm/accordion/stories/accordion-multiple-expanded.story.js.map +1 -0
- package/lib/esm/accordion/stories/accordion-right-content.story.js +32 -0
- package/lib/esm/accordion/stories/accordion-right-content.story.js.map +1 -0
- package/lib/esm/accordion/stories/accordion-single-expanded.story.js +32 -0
- package/lib/esm/accordion/stories/accordion-single-expanded.story.js.map +1 -0
- package/lib/esm/accordion/stories/accordion.stories.js +141 -0
- package/lib/esm/accordion/stories/accordion.stories.js.map +1 -0
- package/lib/esm/accordion/stories/index.js +39 -0
- package/lib/esm/accordion/stories/index.js.map +1 -0
- package/lib/types/accordion/stories/accordion-clean-items-expanded.story.d.ts +23 -0
- package/lib/types/accordion/stories/accordion-default-expanded.story.d.ts +23 -0
- package/lib/types/accordion/stories/accordion-full.story.d.ts +23 -0
- package/lib/types/accordion/stories/accordion-multiple-expanded.story.d.ts +23 -0
- package/lib/types/accordion/stories/accordion-right-content.story.d.ts +23 -0
- package/lib/types/accordion/stories/accordion-single-expanded.story.d.ts +23 -0
- package/lib/types/accordion/stories/accordion.stories.d.ts +68 -0
- package/lib/types/accordion/stories/index.d.ts +32 -0
- package/package.json +2 -1
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) "Neo4j"
|
|
7
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
8
|
+
*
|
|
9
|
+
* This file is part of Neo4j.
|
|
10
|
+
*
|
|
11
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* This program is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU General Public License
|
|
22
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
const react_1 = require("react");
|
|
25
|
+
const react_2 = require("@neo4j-ndl/react");
|
|
26
|
+
require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
|
|
27
|
+
const Component = () => {
|
|
28
|
+
const itemIds = ['item-1', 'item-2', 'item-3', 'item-4'];
|
|
29
|
+
const [expandedItemId, setExpandedItemId] = (0, react_1.useState)(null);
|
|
30
|
+
const onChange = (expandedItemId) => setExpandedItemId(expandedItemId);
|
|
31
|
+
return ((0, jsx_runtime_1.jsxs)(react_2.Accordion, { expandedItemId: expandedItemId, isMultiple: false, onChange: onChange, children: [(0, jsx_runtime_1.jsx)(react_2.Accordion.CleanItem, { itemId: itemIds[0], title: `Accordion ${itemIds[0]}`, children: itemIds[0] }), (0, jsx_runtime_1.jsx)(react_2.Accordion.CleanItem, { itemId: itemIds[1], title: `Accordion ${itemIds[1]}`, children: itemIds[1] }), (0, jsx_runtime_1.jsx)(react_2.Accordion.CleanItem, { itemId: itemIds[2], title: `Accordion ${itemIds[2]}`, children: itemIds[2] }), (0, jsx_runtime_1.jsx)(react_2.Accordion.CleanItem, { itemId: itemIds[3], title: `Accordion ${itemIds[3]}`, children: itemIds[3] })] }));
|
|
32
|
+
};
|
|
33
|
+
exports.default = Component;
|
|
34
|
+
//# sourceMappingURL=accordion-clean-items-expanded.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion-clean-items-expanded.story.js","sourceRoot":"","sources":["../../../../src/accordion/stories/accordion-clean-items-expanded.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,iCAAiC;AACjC,4CAAmE;AACnE,mDAAiD;AAEjD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,OAAO,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAEzD,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,IAAA,gBAAQ,EAClD,IAAI,CACL,CAAC;IAEF,MAAM,QAAQ,GAAG,CAAC,cAAsC,EAAE,EAAE,CAC1D,iBAAiB,CAAC,cAAc,CAAC,CAAC;IAEpC,OAAO,CACL,wBAAC,iBAAS,IACR,cAAc,EAAE,cAAc,EAC9B,UAAU,EAAE,KAAK,EACjB,QAAQ,EAAE,QAAQ,aAElB,uBAAC,iBAAS,CAAC,SAAS,IAClB,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAClB,KAAK,EAAE,aAAa,OAAO,CAAC,CAAC,CAAC,EAAE,YAE/B,OAAO,CAAC,CAAC,CAAC,GACS,EACtB,uBAAC,iBAAS,CAAC,SAAS,IAClB,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAClB,KAAK,EAAE,aAAa,OAAO,CAAC,CAAC,CAAC,EAAE,YAE/B,OAAO,CAAC,CAAC,CAAC,GACS,EACtB,uBAAC,iBAAS,CAAC,SAAS,IAClB,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAClB,KAAK,EAAE,aAAa,OAAO,CAAC,CAAC,CAAC,EAAE,YAE/B,OAAO,CAAC,CAAC,CAAC,GACS,EACtB,uBAAC,iBAAS,CAAC,SAAS,IAClB,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAClB,KAAK,EAAE,aAAa,OAAO,CAAC,CAAC,CAAC,EAAE,YAE/B,OAAO,CAAC,CAAC,CAAC,GACS,IACZ,CACb,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) "Neo4j"
|
|
7
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
8
|
+
*
|
|
9
|
+
* This file is part of Neo4j.
|
|
10
|
+
*
|
|
11
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* This program is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU General Public License
|
|
22
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
const react_1 = require("react");
|
|
25
|
+
const react_2 = require("@neo4j-ndl/react");
|
|
26
|
+
require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
|
|
27
|
+
const Component = () => {
|
|
28
|
+
const itemIds = ['item-1', 'item-2', 'item-3', 'item-4'];
|
|
29
|
+
const [expandedItemId, setExpandedItemId] = (0, react_1.useState)(undefined);
|
|
30
|
+
const onChange = (expandedItemId) => setExpandedItemId(expandedItemId);
|
|
31
|
+
return ((0, jsx_runtime_1.jsxs)(react_2.Accordion, { expandedItemId: expandedItemId, isMultiple: undefined, onChange: onChange, children: [(0, jsx_runtime_1.jsx)(react_2.Accordion.Item, { itemId: itemIds[0], title: `Accordion ${itemIds[0]}`, children: itemIds[0] }), (0, jsx_runtime_1.jsx)(react_2.Accordion.Item, { itemId: itemIds[1], title: `Accordion ${itemIds[1]}`, children: itemIds[1] }), (0, jsx_runtime_1.jsx)(react_2.Accordion.Item, { itemId: itemIds[2], title: `Accordion ${itemIds[2]}`, children: itemIds[2] }), (0, jsx_runtime_1.jsx)(react_2.Accordion.Item, { itemId: itemIds[3], title: `Accordion ${itemIds[3]}`, children: itemIds[3] })] }));
|
|
32
|
+
};
|
|
33
|
+
exports.default = Component;
|
|
34
|
+
//# sourceMappingURL=accordion-default-expanded.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion-default-expanded.story.js","sourceRoot":"","sources":["../../../../src/accordion/stories/accordion-default-expanded.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,iCAAiC;AACjC,4CAAmE;AACnE,mDAAiD;AAEjD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,OAAO,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAEzD,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,IAAA,gBAAQ,EAClD,SAAS,CACV,CAAC;IAEF,MAAM,QAAQ,GAAG,CAAC,cAAsC,EAAE,EAAE,CAC1D,iBAAiB,CAAC,cAAc,CAAC,CAAC;IAEpC,OAAO,CACL,wBAAC,iBAAS,IACR,cAAc,EAAE,cAAc,EAC9B,UAAU,EAAE,SAAS,EACrB,QAAQ,EAAE,QAAQ,aAElB,uBAAC,iBAAS,CAAC,IAAI,IAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,aAAa,OAAO,CAAC,CAAC,CAAC,EAAE,YACjE,OAAO,CAAC,CAAC,CAAC,GACI,EACjB,uBAAC,iBAAS,CAAC,IAAI,IAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,aAAa,OAAO,CAAC,CAAC,CAAC,EAAE,YACjE,OAAO,CAAC,CAAC,CAAC,GACI,EACjB,uBAAC,iBAAS,CAAC,IAAI,IAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,aAAa,OAAO,CAAC,CAAC,CAAC,EAAE,YACjE,OAAO,CAAC,CAAC,CAAC,GACI,EACjB,uBAAC,iBAAS,CAAC,IAAI,IAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,aAAa,OAAO,CAAC,CAAC,CAAC,EAAE,YACjE,OAAO,CAAC,CAAC,CAAC,GACI,IACP,CACb,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) "Neo4j"
|
|
7
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
8
|
+
*
|
|
9
|
+
* This file is part of Neo4j.
|
|
10
|
+
*
|
|
11
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* This program is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU General Public License
|
|
22
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
const react_1 = require("react");
|
|
25
|
+
const react_2 = require("@neo4j-ndl/react");
|
|
26
|
+
require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
|
|
27
|
+
const Component = () => {
|
|
28
|
+
const itemIds = ['item-1', 'item-2', 'item-3', 'item-4'];
|
|
29
|
+
const [expandedItemIds, setExpandedItemIds] = (0, react_1.useState)([
|
|
30
|
+
itemIds[1],
|
|
31
|
+
]);
|
|
32
|
+
const onChange = (expandedItemIds) => setExpandedItemIds(expandedItemIds);
|
|
33
|
+
const onExpandedChange = (hasExpanded) => console.info(`Expanded change: ${hasExpanded}`);
|
|
34
|
+
return ((0, jsx_runtime_1.jsxs)(react_2.Accordion, { expandedItemIds: expandedItemIds, isMultiple: true, onChange: onChange, children: [(0, jsx_runtime_1.jsx)(react_2.Accordion.CleanItem, { itemId: itemIds[0], title: `Accordion ${itemIds[0]}`, children: itemIds[0] }), (0, jsx_runtime_1.jsx)(react_2.Accordion.CleanItem, { arrowPosition: "right", isDisabled: false, itemId: itemIds[1], onExpandedChange: onExpandedChange, rightContent: (0, jsx_runtime_1.jsx)(react_2.Checkbox, { label: "Right content" }), title: `Accordion ${itemIds[1]}`, titleTypographyVariant: "h6", children: itemIds[1] }), (0, jsx_runtime_1.jsx)(react_2.Accordion.CleanItem, { itemId: itemIds[2], title: `Accordion ${itemIds[2]}`, children: itemIds[2] }), (0, jsx_runtime_1.jsx)(react_2.Accordion.CleanItem, { itemId: itemIds[3], title: `Accordion ${itemIds[3]}`, children: itemIds[3] })] }));
|
|
35
|
+
};
|
|
36
|
+
exports.default = Component;
|
|
37
|
+
//# sourceMappingURL=accordion-full.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion-full.story.js","sourceRoot":"","sources":["../../../../src/accordion/stories/accordion-full.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,iCAAiC;AACjC,4CAA6E;AAC7E,mDAAiD;AAEjD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,OAAO,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAEzD,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,IAAA,gBAAQ,EAAoB;QACxE,OAAO,CAAC,CAAC,CAAC;KACX,CAAC,CAAC;IAEH,MAAM,QAAQ,GAAG,CAAC,eAAkC,EAAE,EAAE,CACtD,kBAAkB,CAAC,eAAe,CAAC,CAAC;IAEtC,MAAM,gBAAgB,GAAG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5
|
+
*
|
|
6
|
+
* Copyright (c) "Neo4j"
|
|
7
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
8
|
+
*
|
|
9
|
+
* This file is part of Neo4j.
|
|
10
|
+
*
|
|
11
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* This program is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU General Public License
|
|
22
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
const react_1 = require("react");
|
|
25
|
+
const react_2 = require("@neo4j-ndl/react");
|
|
26
|
+
require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
|
|
27
|
+
const Component = () => {
|
|
28
|
+
const itemIds = ['item-1', 'item-2', 'item-3', 'item-4'];
|
|
29
|
+
const [expandedItemIds, setExpandedItemIds] = (0, react_1.useState)([
|
|
30
|
+
itemIds[0],
|
|
31
|
+
itemIds[2],
|
|
32
|
+
]);
|
|
33
|
+
const onChange = (expandedItemIds) => setExpandedItemIds(expandedItemIds);
|
|
34
|
+
return ((0, jsx_runtime_1.jsxs)(react_2.Accordion, { expandedItemIds: expandedItemIds, isMultiple: true, onChange: onChange, children: [(0, jsx_runtime_1.jsx)(react_2.Accordion.Item, { itemId: itemIds[0], title: `Accordion ${itemIds[0]}`, children: itemIds[0] }), (0, jsx_runtime_1.jsx)(react_2.Accordion.Item, { itemId: itemIds[1], title: `Accordion ${itemIds[1]}`, children: itemIds[1] }), (0, jsx_runtime_1.jsx)(react_2.Accordion.Item, { itemId: itemIds[2], title: `Accordion ${itemIds[2]}`, children: itemIds[2] }), (0, jsx_runtime_1.jsx)(react_2.Accordion.Item, { itemId: itemIds[3], title: `Accordion ${itemIds[3]}`, children: itemIds[3] })] }));
|
|
35
|
+
};
|
|
36
|
+
exports.default = Component;
|
|
37
|
+
//# sourceMappingURL=accordion-multiple-expanded.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion-multiple-expanded.story.js","sourceRoot":"","sources":["../../../../src/accordion/stories/accordion-multiple-expanded.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,iCAAiC;AACjC,4CAAmE;AACnE,mDAAiD;AAEjD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,OAAO,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAEzD,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,IAAA,gBAAQ,EAAoB;QACxE,OAAO,CAAC,CAAC,CAAC;QACV,OAAO,CAAC,CAAC,CAAC;KACX,CAAC,CAAC;IAEH,MAAM,QAAQ,GAAG,CAAC,eAAkC,EAAE,EAAE,CACtD,kBAAkB,CAAC,eAAe,CAAC,CAAC;IAEtC,OAAO,CACL,wBAAC,iBAAS,IACR,eAAe,EAAE,eAAe,EAChC,UAAU,EAAE,IAAI,EAChB,QAAQ,EAAE,QAAQ,aAElB,uBAAC,iBAAS,CAAC,IAAI,IAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,aAAa,OAAO,CAAC,CAAC,CAAC,EAAE,YACjE,OAAO,CAAC,CAAC,CAAC,GACI,EACjB,uBAAC,iBAAS,CAAC,IAAI,IAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,aAAa,OAAO,CAAC,CAAC,CAAC,EAAE,YACjE,OAAO,CAAC,CAAC,CAAC,GACI,EACjB,uBAAC,iBAAS,CAAC,IAAI,IAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,aAAa,OAAO,CAAC,CAAC,CAAC,EAAE,YACjE,OAAO,CAAC,CAAC,CAAC,GACI,EACjB,uBAAC,iBAAS,CAAC,IAAI,IAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,aAAa,OAAO,CAAC,CAAC,CAAC,EAAE,YACjE,OAAO,CAAC,CAAC,CAAC,GACI,IACP,CACb,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) "Neo4j"
|
|
7
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
8
|
+
*
|
|
9
|
+
* This file is part of Neo4j.
|
|
10
|
+
*
|
|
11
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* This program is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU General Public License
|
|
22
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
const react_1 = require("react");
|
|
25
|
+
const react_2 = require("@neo4j-ndl/react");
|
|
26
|
+
require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
|
|
27
|
+
const Component = () => {
|
|
28
|
+
const itemIds = ['item-1', 'item-2', 'item-3', 'item-4'];
|
|
29
|
+
const [expandedItemId, setExpandedItemId] = (0, react_1.useState)(undefined);
|
|
30
|
+
const onChange = (expandedItemId) => setExpandedItemId(expandedItemId);
|
|
31
|
+
return ((0, jsx_runtime_1.jsxs)(react_2.Accordion, { expandedItemId: expandedItemId, isMultiple: undefined, onChange: onChange, children: [(0, jsx_runtime_1.jsx)(react_2.Accordion.CleanItem, { itemId: itemIds[0], title: `Accordion ${itemIds[0]}`, rightContent: (0, jsx_runtime_1.jsx)(react_2.Checkbox, { label: "Right content" }), children: itemIds[0] }), (0, jsx_runtime_1.jsx)(react_2.Accordion.CleanItem, { itemId: itemIds[1], title: `Accordion ${itemIds[1]}`, children: itemIds[1] }), (0, jsx_runtime_1.jsx)(react_2.Accordion.CleanItem, { itemId: itemIds[2], title: `Accordion ${itemIds[2]}`, children: itemIds[2] }), (0, jsx_runtime_1.jsx)(react_2.Accordion.CleanItem, { itemId: itemIds[3], title: `Accordion ${itemIds[3]}`, children: itemIds[3] })] }));
|
|
32
|
+
};
|
|
33
|
+
exports.default = Component;
|
|
34
|
+
//# sourceMappingURL=accordion-right-content.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion-right-content.story.js","sourceRoot":"","sources":["../../../../src/accordion/stories/accordion-right-content.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,iCAAiC;AACjC,4CAA6E;AAC7E,mDAAiD;AAEjD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,OAAO,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAEzD,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,IAAA,gBAAQ,EAClD,SAAS,CACV,CAAC;IAEF,MAAM,QAAQ,GAAG,CAAC,cAAsC,EAAE,EAAE,CAC1D,iBAAiB,CAAC,cAAc,CAAC,CAAC;IAEpC,OAAO,CACL,wBAAC,iBAAS,IACR,cAAc,EAAE,cAAc,EAC9B,UAAU,EAAE,SAAS,EACrB,QAAQ,EAAE,QAAQ,aAElB,uBAAC,iBAAS,CAAC,SAAS,IAClB,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAClB,KAAK,EAAE,aAAa,OAAO,CAAC,CAAC,CAAC,EAAE,EAChC,YAAY,EAAE,uBAAC,gBAAQ,IAAC,KAAK,EAAC,eAAe,GAAG,YAE/C,OAAO,CAAC,CAAC,CAAC,GACS,EACtB,uBAAC,iBAAS,CAAC,SAAS,IAClB,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAClB,KAAK,EAAE,aAAa,OAAO,CAAC,CAAC,CAAC,EAAE,YAE/B,OAAO,CAAC,CAAC,CAAC,GACS,EACtB,uBAAC,iBAAS,CAAC,SAAS,IAClB,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAClB,KAAK,EAAE,aAAa,OAAO,CAAC,CAAC,CAAC,EAAE,YAE/B,OAAO,CAAC,CAAC,CAAC,GACS,EACtB,uBAAC,iBAAS,CAAC,SAAS,IAClB,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAClB,KAAK,EAAE,aAAa,OAAO,CAAC,CAAC,CAAC,EAAE,YAE/B,OAAO,CAAC,CAAC,CAAC,GACS,IACZ,CACb,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) "Neo4j"
|
|
7
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
8
|
+
*
|
|
9
|
+
* This file is part of Neo4j.
|
|
10
|
+
*
|
|
11
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* This program is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU General Public License
|
|
22
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
const react_1 = require("react");
|
|
25
|
+
const react_2 = require("@neo4j-ndl/react");
|
|
26
|
+
require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
|
|
27
|
+
const Component = () => {
|
|
28
|
+
const itemIds = ['item-1', 'item-2', 'item-3', 'item-4'];
|
|
29
|
+
const [expandedItemId, setExpandedItemId] = (0, react_1.useState)(itemIds[1]);
|
|
30
|
+
const onChange = (expandedItemId) => setExpandedItemId(expandedItemId);
|
|
31
|
+
return ((0, jsx_runtime_1.jsxs)(react_2.Accordion, { expandedItemId: expandedItemId, isMultiple: false, onChange: onChange, children: [(0, jsx_runtime_1.jsx)(react_2.Accordion.Item, { itemId: itemIds[0], title: `Accordion ${itemIds[0]}`, children: itemIds[0] }), (0, jsx_runtime_1.jsx)(react_2.Accordion.Item, { itemId: itemIds[1], title: `Accordion ${itemIds[1]}`, children: itemIds[1] }), (0, jsx_runtime_1.jsx)(react_2.Accordion.Item, { itemId: itemIds[2], title: `Accordion ${itemIds[2]}`, children: itemIds[2] }), (0, jsx_runtime_1.jsx)(react_2.Accordion.Item, { itemId: itemIds[3], title: `Accordion ${itemIds[3]}`, children: itemIds[3] })] }));
|
|
32
|
+
};
|
|
33
|
+
exports.default = Component;
|
|
34
|
+
//# sourceMappingURL=accordion-single-expanded.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion-single-expanded.story.js","sourceRoot":"","sources":["../../../../src/accordion/stories/accordion-single-expanded.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,iCAAiC;AACjC,4CAAmE;AACnE,mDAAiD;AAEjD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,OAAO,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAEzD,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,IAAA,gBAAQ,EAClD,OAAO,CAAC,CAAC,CAAC,CACX,CAAC;IAEF,MAAM,QAAQ,GAAG,CAAC,cAAsC,EAAE,EAAE,CAC1D,iBAAiB,CAAC,cAAc,CAAC,CAAC;IAEpC,OAAO,CACL,wBAAC,iBAAS,IACR,cAAc,EAAE,cAAc,EAC9B,UAAU,EAAE,KAAK,EACjB,QAAQ,EAAE,QAAQ,aAElB,uBAAC,iBAAS,CAAC,IAAI,IAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,aAAa,OAAO,CAAC,CAAC,CAAC,EAAE,YACjE,OAAO,CAAC,CAAC,CAAC,GACI,EACjB,uBAAC,iBAAS,CAAC,IAAI,IAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,aAAa,OAAO,CAAC,CAAC,CAAC,EAAE,YACjE,OAAO,CAAC,CAAC,CAAC,GACI,EACjB,uBAAC,iBAAS,CAAC,IAAI,IAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,aAAa,OAAO,CAAC,CAAC,CAAC,EAAE,YACjE,OAAO,CAAC,CAAC,CAAC,GACI,EACjB,uBAAC,iBAAS,CAAC,IAAI,IAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,aAAa,OAAO,CAAC,CAAC,CAAC,EAAE,YACjE,OAAO,CAAC,CAAC,CAAC,GACI,IACP,CACb,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
"use strict";
|
|
23
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
exports.SingleExpanded = exports.RightContent = exports.MultipleExpanded = exports.Full = exports.Default = exports.CleanItems = void 0;
|
|
25
|
+
const index_1 = require("../../index");
|
|
26
|
+
const _1 = require("./");
|
|
27
|
+
const componentMeta = {
|
|
28
|
+
title: 'Components/Accordion',
|
|
29
|
+
component: index_1.Accordion,
|
|
30
|
+
tags: ['docsPage'],
|
|
31
|
+
parameters: {
|
|
32
|
+
controls: { disable: true },
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
exports.default = componentMeta;
|
|
36
|
+
exports.CleanItems = {
|
|
37
|
+
args: {
|
|
38
|
+
children: undefined,
|
|
39
|
+
isMultiple: undefined,
|
|
40
|
+
expandedItemId: null,
|
|
41
|
+
onChange: () => undefined,
|
|
42
|
+
},
|
|
43
|
+
render: _1.AccordionCleanItems,
|
|
44
|
+
parameters: {
|
|
45
|
+
docs: {
|
|
46
|
+
source: {
|
|
47
|
+
language: 'tsx',
|
|
48
|
+
type: 'code',
|
|
49
|
+
code: _1.AccordionCleanItemsSrc,
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
};
|
|
54
|
+
exports.Default = {
|
|
55
|
+
args: {
|
|
56
|
+
children: undefined,
|
|
57
|
+
isMultiple: undefined,
|
|
58
|
+
expandedItemId: null,
|
|
59
|
+
onChange: () => undefined,
|
|
60
|
+
},
|
|
61
|
+
render: _1.AccordionDefault,
|
|
62
|
+
parameters: {
|
|
63
|
+
docs: {
|
|
64
|
+
source: {
|
|
65
|
+
language: 'tsx',
|
|
66
|
+
type: 'code',
|
|
67
|
+
code: _1.AccordionDefaultSrc.replace(/^\/\*[\s\S]*?\*\/\s*/, ''),
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
};
|
|
72
|
+
exports.Full = {
|
|
73
|
+
args: {
|
|
74
|
+
children: undefined,
|
|
75
|
+
isMultiple: undefined,
|
|
76
|
+
expandedItemId: null,
|
|
77
|
+
onChange: () => undefined,
|
|
78
|
+
},
|
|
79
|
+
parameters: {
|
|
80
|
+
docs: {
|
|
81
|
+
source: {
|
|
82
|
+
language: 'tsx',
|
|
83
|
+
type: 'code',
|
|
84
|
+
code: _1.AccordionFullSrc.replace(/^\/\*[\s\S]*?\*\/\s*/, ''),
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
render: _1.AccordionFull,
|
|
89
|
+
};
|
|
90
|
+
exports.MultipleExpanded = {
|
|
91
|
+
args: {
|
|
92
|
+
children: undefined,
|
|
93
|
+
isMultiple: undefined,
|
|
94
|
+
expandedItemId: null,
|
|
95
|
+
onChange: () => undefined,
|
|
96
|
+
},
|
|
97
|
+
render: _1.AccordionMultipleExpanded,
|
|
98
|
+
parameters: {
|
|
99
|
+
docs: {
|
|
100
|
+
source: {
|
|
101
|
+
language: 'tsx',
|
|
102
|
+
type: 'code',
|
|
103
|
+
code: _1.AccordionMultipleExpandedSrc.replace(/^\/\*[\s\S]*?\*\/\s*/, ''),
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
};
|
|
108
|
+
exports.RightContent = {
|
|
109
|
+
args: {
|
|
110
|
+
children: undefined,
|
|
111
|
+
isMultiple: undefined,
|
|
112
|
+
expandedItemId: null,
|
|
113
|
+
onChange: () => undefined,
|
|
114
|
+
},
|
|
115
|
+
render: _1.AccordionRightContent,
|
|
116
|
+
parameters: {
|
|
117
|
+
docs: {
|
|
118
|
+
source: {
|
|
119
|
+
language: 'tsx',
|
|
120
|
+
type: 'code',
|
|
121
|
+
code: _1.AccordionRightContentSrc.replace(/^\/\*[\s\S]*?\*\/\s*/, ''),
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
};
|
|
126
|
+
exports.SingleExpanded = {
|
|
127
|
+
args: {
|
|
128
|
+
children: undefined,
|
|
129
|
+
isMultiple: undefined,
|
|
130
|
+
expandedItemId: null,
|
|
131
|
+
onChange: () => undefined,
|
|
132
|
+
},
|
|
133
|
+
render: _1.AccordionSingleExpanded,
|
|
134
|
+
parameters: {
|
|
135
|
+
docs: {
|
|
136
|
+
source: {
|
|
137
|
+
language: 'tsx',
|
|
138
|
+
type: 'code',
|
|
139
|
+
code: _1.AccordionSingleExpandedSrc.replace(/^\/\*[\s\S]*?\*\/\s*/, ''),
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
};
|
|
144
|
+
//# sourceMappingURL=accordion.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion.stories.js","sourceRoot":"","sources":["../../../../src/accordion/stories/accordion.stories.tsx"],"names":[],"mappings":";;;AAsBA,uCAA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M;gBACZ,IAAI,EAAE,6BAA0B,CAAC,OAAO,CAAC,sBAAsB,EAAE,EAAE,CAAC;aACrE;SACF;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) "Neo4j"
|
|
5
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
6
|
+
*
|
|
7
|
+
* This file is part of Neo4j.
|
|
8
|
+
*
|
|
9
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
+
* it under the terms of the GNU General Public License as published by
|
|
11
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
* (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This program is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
* GNU General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU General Public License
|
|
20
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+
*/
|
|
22
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
23
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.AccordionSingleExpandedSrc = exports.AccordionRightContentSrc = exports.AccordionMultipleExpandedSrc = exports.AccordionFullSrc = exports.AccordionDefaultSrc = exports.AccordionCleanItemsSrc = exports.AccordionSingleExpanded = exports.AccordionRightContent = exports.AccordionMultipleExpanded = exports.AccordionFull = exports.AccordionDefault = exports.AccordionCleanItems = void 0;
|
|
27
|
+
var accordion_clean_items_expanded_story_1 = require("./accordion-clean-items-expanded.story");
|
|
28
|
+
Object.defineProperty(exports, "AccordionCleanItems", { enumerable: true, get: function () { return __importDefault(accordion_clean_items_expanded_story_1).default; } });
|
|
29
|
+
var accordion_default_expanded_story_1 = require("./accordion-default-expanded.story");
|
|
30
|
+
Object.defineProperty(exports, "AccordionDefault", { enumerable: true, get: function () { return __importDefault(accordion_default_expanded_story_1).default; } });
|
|
31
|
+
var accordion_full_story_1 = require("./accordion-full.story");
|
|
32
|
+
Object.defineProperty(exports, "AccordionFull", { enumerable: true, get: function () { return __importDefault(accordion_full_story_1).default; } });
|
|
33
|
+
var accordion_multiple_expanded_story_1 = require("./accordion-multiple-expanded.story");
|
|
34
|
+
Object.defineProperty(exports, "AccordionMultipleExpanded", { enumerable: true, get: function () { return __importDefault(accordion_multiple_expanded_story_1).default; } });
|
|
35
|
+
var accordion_right_content_story_1 = require("./accordion-right-content.story");
|
|
36
|
+
Object.defineProperty(exports, "AccordionRightContent", { enumerable: true, get: function () { return __importDefault(accordion_right_content_story_1).default; } });
|
|
37
|
+
var accordion_single_expanded_story_1 = require("./accordion-single-expanded.story");
|
|
38
|
+
Object.defineProperty(exports, "AccordionSingleExpanded", { enumerable: true, get: function () { return __importDefault(accordion_single_expanded_story_1).default; } });
|
|
39
|
+
const accordion_clean_items_expanded_story_raw_1 = __importDefault(require("./accordion-clean-items-expanded.story?raw"));
|
|
40
|
+
const accordion_default_expanded_story_raw_1 = __importDefault(require("./accordion-default-expanded.story?raw"));
|
|
41
|
+
const accordion_full_story_raw_1 = __importDefault(require("./accordion-full.story?raw"));
|
|
42
|
+
const accordion_multiple_expanded_story_raw_1 = __importDefault(require("./accordion-multiple-expanded.story?raw"));
|
|
43
|
+
const accordion_right_content_story_raw_1 = __importDefault(require("./accordion-right-content.story?raw"));
|
|
44
|
+
const accordion_single_expanded_story_raw_1 = __importDefault(require("./accordion-single-expanded.story?raw"));
|
|
45
|
+
exports.AccordionCleanItemsSrc = accordion_clean_items_expanded_story_raw_1.default.replace(/^\/\*[\s\S]*?\*\/\s*/, '');
|
|
46
|
+
exports.AccordionDefaultSrc = accordion_default_expanded_story_raw_1.default.replace(/^\/\*[\s\S]*?\*\/\s*/, '');
|
|
47
|
+
exports.AccordionFullSrc = accordion_full_story_raw_1.default.replace(/^\/\*[\s\S]*?\*\/\s*/, '');
|
|
48
|
+
exports.AccordionMultipleExpandedSrc = accordion_multiple_expanded_story_raw_1.default.replace(/^\/\*[\s\S]*?\*\/\s*/, '');
|
|
49
|
+
exports.AccordionRightContentSrc = accordion_right_content_story_raw_1.default.replace(/^\/\*[\s\S]*?\*\/\s*/, '');
|
|
50
|
+
exports.AccordionSingleExpandedSrc = accordion_single_expanded_story_raw_1.default.replace(/^\/\*[\s\S]*?\*\/\s*/, '');
|
|
51
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/accordion/stories/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,+FAAwF;AAA/E,4JAAA,OAAO,OAAuB;AACvC,uFAAiF;AAAxE,qJAAA,OAAO,OAAoB;AACpC,+DAAkE;AAAzD,sIAAA,OAAO,OAAiB;AACjC,yFAA2F;AAAlF,+JAAA,OAAO,OAA6B;AAC7C,iFAAmF;AAA1E,uJAAA,OAAO,OAAyB;AACzC,qFAAuF;AAA9E,2JAAA,OAAO,OAA2B;AAE3C,0HAAmF;AACnF,kHAA4E;AAC5E,0FAA6D;AAC7D,oHAAsF;AACtF,4GAA8E;AAC9E,gHAAkF;AAErE,QAAA,sBAAsB,GAAG,kDAAyB,CAAC,OAAO,CACrE,sBAAsB,EACtB,EAAE,CACH,CAAC;AACW,QAAA,mBAAmB,GAAG,8CAAsB,CAAC,OAAO,CAC/D,sBAAsB,EACtB,EAAE,CACH,CAAC;AACW,QAAA,gBAAgB,GAAG,kCAAmB,CAAC,OAAO,CACzD,sBAAsB,EACtB,EAAE,CACH,CAAC;AACW,QAAA,4BAA4B,GACvC,+CAA+B,CAAC,OAAO,CAAC,sBAAsB,EAAE,EAAE,CAAC,CAAC;AACzD,QAAA,wBAAwB,GAAG,2CAA2B,CAAC,OAAO,CACzE,sBAAsB,EACtB,EAAE,CACH,CAAC;AACW,QAAA,0BAA0B,GAAG,6CAA6B,CAAC,OAAO,CAC7E,sBAAsB,EACtB,EAAE,CACH,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) "Neo4j"
|
|
5
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
6
|
+
*
|
|
7
|
+
* This file is part of Neo4j.
|
|
8
|
+
*
|
|
9
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
+
* it under the terms of the GNU General Public License as published by
|
|
11
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
* (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This program is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
* GNU General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU General Public License
|
|
20
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+
*/
|
|
22
|
+
import { useState } from 'react';
|
|
23
|
+
import { Accordion } from '@neo4j-ndl/react';
|
|
24
|
+
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
25
|
+
const Component = () => {
|
|
26
|
+
const itemIds = ['item-1', 'item-2', 'item-3', 'item-4'];
|
|
27
|
+
const [expandedItemId, setExpandedItemId] = useState(null);
|
|
28
|
+
const onChange = (expandedItemId) => setExpandedItemId(expandedItemId);
|
|
29
|
+
return (_jsxs(Accordion, { expandedItemId: expandedItemId, isMultiple: false, onChange: onChange, children: [_jsx(Accordion.CleanItem, { itemId: itemIds[0], title: `Accordion ${itemIds[0]}`, children: itemIds[0] }), _jsx(Accordion.CleanItem, { itemId: itemIds[1], title: `Accordion ${itemIds[1]}`, children: itemIds[1] }), _jsx(Accordion.CleanItem, { itemId: itemIds[2], title: `Accordion ${itemIds[2]}`, children: itemIds[2] }), _jsx(Accordion.CleanItem, { itemId: itemIds[3], title: `Accordion ${itemIds[3]}`, children: itemIds[3] })] }));
|
|
30
|
+
};
|
|
31
|
+
export default Component;
|
|
32
|
+
//# sourceMappingURL=accordion-clean-items-expanded.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion-clean-items-expanded.story.js","sourceRoot":"","sources":["../../../../src/accordion/stories/accordion-clean-items-expanded.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,SAAS,EAAwB,MAAM,kBAAkB,CAAC;AACnE,OAAO,yCAAyC,CAAC;AAEjD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,OAAO,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAEzD,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAClD,IAAI,CACL,CAAC;IAEF,MAAM,QAAQ,GAAG,CAAC,cAAsC,EAAE,EAAE,CAC1D,iBAAiB,CAAC,cAAc,CAAC,CAAC;IAEpC,OAAO,CACL,MAAC,SAAS,IACR,cAAc,EAAE,cAAc,EAC9B,UAAU,EAAE,KAAK,EACjB,QAAQ,EAAE,QAAQ,aAElB,KAAC,SAAS,CAAC,SAAS,IAClB,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAClB,KAAK,EAAE,aAAa,OAAO,CAAC,CAAC,CAAC,EAAE,YAE/B,OAAO,CAAC,CAAC,CAAC,GACS,EACtB,KAAC,SAAS,CAAC,SAAS,IAClB,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAClB,KAAK,EAAE,aAAa,OAAO,CAAC,CAAC,CAAC,EAAE,YAE/B,OAAO,CAAC,CAAC,CAAC,GACS,EACtB,KAAC,SAAS,CAAC,SAAS,IAClB,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAClB,KAAK,EAAE,aAAa,OAAO,CAAC,CAAC,CAAC,EAAE,YAE/B,OAAO,CAAC,CAAC,CAAC,GACS,EACtB,KAAC,SAAS,CAAC,SAAS,IAClB,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAClB,KAAK,EAAE,aAAa,OAAO,CAAC,CAAC,CAAC,EAAE,YAE/B,OAAO,CAAC,CAAC,CAAC,GACS,IACZ,CACb,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) "Neo4j"
|
|
5
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
6
|
+
*
|
|
7
|
+
* This file is part of Neo4j.
|
|
8
|
+
*
|
|
9
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
+
* it under the terms of the GNU General Public License as published by
|
|
11
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
* (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This program is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
* GNU General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU General Public License
|
|
20
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+
*/
|
|
22
|
+
import { useState } from 'react';
|
|
23
|
+
import { Accordion } from '@neo4j-ndl/react';
|
|
24
|
+
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
25
|
+
const Component = () => {
|
|
26
|
+
const itemIds = ['item-1', 'item-2', 'item-3', 'item-4'];
|
|
27
|
+
const [expandedItemId, setExpandedItemId] = useState(undefined);
|
|
28
|
+
const onChange = (expandedItemId) => setExpandedItemId(expandedItemId);
|
|
29
|
+
return (_jsxs(Accordion, { expandedItemId: expandedItemId, isMultiple: undefined, onChange: onChange, children: [_jsx(Accordion.Item, { itemId: itemIds[0], title: `Accordion ${itemIds[0]}`, children: itemIds[0] }), _jsx(Accordion.Item, { itemId: itemIds[1], title: `Accordion ${itemIds[1]}`, children: itemIds[1] }), _jsx(Accordion.Item, { itemId: itemIds[2], title: `Accordion ${itemIds[2]}`, children: itemIds[2] }), _jsx(Accordion.Item, { itemId: itemIds[3], title: `Accordion ${itemIds[3]}`, children: itemIds[3] })] }));
|
|
30
|
+
};
|
|
31
|
+
export default Component;
|
|
32
|
+
//# sourceMappingURL=accordion-default-expanded.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion-default-expanded.story.js","sourceRoot":"","sources":["../../../../src/accordion/stories/accordion-default-expanded.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,SAAS,EAAwB,MAAM,kBAAkB,CAAC;AACnE,OAAO,yCAAyC,CAAC;AAEjD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,OAAO,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAEzD,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAClD,SAAS,CACV,CAAC;IAEF,MAAM,QAAQ,GAAG,CAAC,cAAsC,EAAE,EAAE,CAC1D,iBAAiB,CAAC,cAAc,CAAC,CAAC;IAEpC,OAAO,CACL,MAAC,SAAS,IACR,cAAc,EAAE,cAAc,EAC9B,UAAU,EAAE,SAAS,EACrB,QAAQ,EAAE,QAAQ,aAElB,KAAC,SAAS,CAAC,IAAI,IAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,aAAa,OAAO,CAAC,CAAC,CAAC,EAAE,YACjE,OAAO,CAAC,CAAC,CAAC,GACI,EACjB,KAAC,SAAS,CAAC,IAAI,IAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,aAAa,OAAO,CAAC,CAAC,CAAC,EAAE,YACjE,OAAO,CAAC,CAAC,CAAC,GACI,EACjB,KAAC,SAAS,CAAC,IAAI,IAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,aAAa,OAAO,CAAC,CAAC,CAAC,EAAE,YACjE,OAAO,CAAC,CAAC,CAAC,GACI,EACjB,KAAC,SAAS,CAAC,IAAI,IAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,aAAa,OAAO,CAAC,CAAC,CAAC,EAAE,YACjE,OAAO,CAAC,CAAC,CAAC,GACI,IACP,CACb,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) "Neo4j"
|
|
5
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
6
|
+
*
|
|
7
|
+
* This file is part of Neo4j.
|
|
8
|
+
*
|
|
9
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
+
* it under the terms of the GNU General Public License as published by
|
|
11
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
* (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This program is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
* GNU General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU General Public License
|
|
20
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+
*/
|
|
22
|
+
import { useState } from 'react';
|
|
23
|
+
import { Accordion, Checkbox } from '@neo4j-ndl/react';
|
|
24
|
+
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
25
|
+
const Component = () => {
|
|
26
|
+
const itemIds = ['item-1', 'item-2', 'item-3', 'item-4'];
|
|
27
|
+
const [expandedItemIds, setExpandedItemIds] = useState([
|
|
28
|
+
itemIds[1],
|
|
29
|
+
]);
|
|
30
|
+
const onChange = (expandedItemIds) => setExpandedItemIds(expandedItemIds);
|
|
31
|
+
const onExpandedChange = (hasExpanded) => console.info(`Expanded change: ${hasExpanded}`);
|
|
32
|
+
return (_jsxs(Accordion, { expandedItemIds: expandedItemIds, isMultiple: true, onChange: onChange, children: [_jsx(Accordion.CleanItem, { itemId: itemIds[0], title: `Accordion ${itemIds[0]}`, children: itemIds[0] }), _jsx(Accordion.CleanItem, { arrowPosition: "right", isDisabled: false, itemId: itemIds[1], onExpandedChange: onExpandedChange, rightContent: _jsx(Checkbox, { label: "Right content" }), title: `Accordion ${itemIds[1]}`, titleTypographyVariant: "h6", children: itemIds[1] }), _jsx(Accordion.CleanItem, { itemId: itemIds[2], title: `Accordion ${itemIds[2]}`, children: itemIds[2] }), _jsx(Accordion.CleanItem, { itemId: itemIds[3], title: `Accordion ${itemIds[3]}`, children: itemIds[3] })] }));
|
|
33
|
+
};
|
|
34
|
+
export default Component;
|
|
35
|
+
//# sourceMappingURL=accordion-full.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion-full.story.js","sourceRoot":"","sources":["../../../../src/acc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CAAC,CAAC,GACS,EACtB,KAAC,SAAS,CAAC,SAAS,IAClB,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAClB,KAAK,EAAE,aAAa,OAAO,CAAC,CAAC,CAAC,EAAE,YAE/B,OAAO,CAAC,CAAC,CAAC,GACS,EACtB,KAAC,SAAS,CAAC,SAAS,IAClB,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAClB,KAAK,EAAE,aAAa,OAAO,CAAC,CAAC,CAAC,EAAE,YAE/B,OAAO,CAAC,CAAC,CAAC,GACS,IACZ,CACb,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) "Neo4j"
|
|
5
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
6
|
+
*
|
|
7
|
+
* This file is part of Neo4j.
|
|
8
|
+
*
|
|
9
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
+
* it under the terms of the GNU General Public License as published by
|
|
11
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
* (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This program is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
* GNU General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU General Public License
|
|
20
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+
*/
|
|
22
|
+
import { useState } from 'react';
|
|
23
|
+
import { Accordion } from '@neo4j-ndl/react';
|
|
24
|
+
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
25
|
+
const Component = () => {
|
|
26
|
+
const itemIds = ['item-1', 'item-2', 'item-3', 'item-4'];
|
|
27
|
+
const [expandedItemIds, setExpandedItemIds] = useState([
|
|
28
|
+
itemIds[0],
|
|
29
|
+
itemIds[2],
|
|
30
|
+
]);
|
|
31
|
+
const onChange = (expandedItemIds) => setExpandedItemIds(expandedItemIds);
|
|
32
|
+
return (_jsxs(Accordion, { expandedItemIds: expandedItemIds, isMultiple: true, onChange: onChange, children: [_jsx(Accordion.Item, { itemId: itemIds[0], title: `Accordion ${itemIds[0]}`, children: itemIds[0] }), _jsx(Accordion.Item, { itemId: itemIds[1], title: `Accordion ${itemIds[1]}`, children: itemIds[1] }), _jsx(Accordion.Item, { itemId: itemIds[2], title: `Accordion ${itemIds[2]}`, children: itemIds[2] }), _jsx(Accordion.Item, { itemId: itemIds[3], title: `Accordion ${itemIds[3]}`, children: itemIds[3] })] }));
|
|
33
|
+
};
|
|
34
|
+
export default Component;
|
|
35
|
+
//# sourceMappingURL=accordion-multiple-expanded.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion-multiple-expanded.story.js","sourceRoot":"","sources":["../../../../src/accordion/stories/accordion-multiple-expanded.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,SAAS,EAAwB,MAAM,kBAAkB,CAAC;AACnE,OAAO,yCAAyC,CAAC;AAEjD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,OAAO,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAEzD,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,QAAQ,CAAoB;QACxE,OAAO,CAAC,CAAC,CAAC;QACV,OAAO,CAAC,CAAC,CAAC;KACX,CAAC,CAAC;IAEH,MAAM,QAAQ,GAAG,CAAC,eAAkC,EAAE,EAAE,CACtD,kBAAkB,CAAC,eAAe,CAAC,CAAC;IAEtC,OAAO,CACL,MAAC,SAAS,IACR,eAAe,EAAE,eAAe,EAChC,UAAU,EAAE,IAAI,EAChB,QAAQ,EAAE,QAAQ,aAElB,KAAC,SAAS,CAAC,IAAI,IAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,aAAa,OAAO,CAAC,CAAC,CAAC,EAAE,YACjE,OAAO,CAAC,CAAC,CAAC,GACI,EACjB,KAAC,SAAS,CAAC,IAAI,IAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,aAAa,OAAO,CAAC,CAAC,CAAC,EAAE,YACjE,OAAO,CAAC,CAAC,CAAC,GACI,EACjB,KAAC,SAAS,CAAC,IAAI,IAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,aAAa,OAAO,CAAC,CAAC,CAAC,EAAE,YACjE,OAAO,CAAC,CAAC,CAAC,GACI,EACjB,KAAC,SAAS,CAAC,IAAI,IAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,aAAa,OAAO,CAAC,CAAC,CAAC,EAAE,YACjE,OAAO,CAAC,CAAC,CAAC,GACI,IACP,CACb,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) "Neo4j"
|
|
5
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
6
|
+
*
|
|
7
|
+
* This file is part of Neo4j.
|
|
8
|
+
*
|
|
9
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
+
* it under the terms of the GNU General Public License as published by
|
|
11
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
* (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This program is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
* GNU General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU General Public License
|
|
20
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+
*/
|
|
22
|
+
import { useState } from 'react';
|
|
23
|
+
import { Accordion, Checkbox } from '@neo4j-ndl/react';
|
|
24
|
+
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
25
|
+
const Component = () => {
|
|
26
|
+
const itemIds = ['item-1', 'item-2', 'item-3', 'item-4'];
|
|
27
|
+
const [expandedItemId, setExpandedItemId] = useState(undefined);
|
|
28
|
+
const onChange = (expandedItemId) => setExpandedItemId(expandedItemId);
|
|
29
|
+
return (_jsxs(Accordion, { expandedItemId: expandedItemId, isMultiple: undefined, onChange: onChange, children: [_jsx(Accordion.CleanItem, { itemId: itemIds[0], title: `Accordion ${itemIds[0]}`, rightContent: _jsx(Checkbox, { label: "Right content" }), children: itemIds[0] }), _jsx(Accordion.CleanItem, { itemId: itemIds[1], title: `Accordion ${itemIds[1]}`, children: itemIds[1] }), _jsx(Accordion.CleanItem, { itemId: itemIds[2], title: `Accordion ${itemIds[2]}`, children: itemIds[2] }), _jsx(Accordion.CleanItem, { itemId: itemIds[3], title: `Accordion ${itemIds[3]}`, children: itemIds[3] })] }));
|
|
30
|
+
};
|
|
31
|
+
export default Component;
|
|
32
|
+
//# sourceMappingURL=accordion-right-content.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion-right-content.story.js","sourceRoot":"","sources":["../../../../src/accordion/stories/accordion-right-content.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,E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F,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) "Neo4j"
|
|
5
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
6
|
+
*
|
|
7
|
+
* This file is part of Neo4j.
|
|
8
|
+
*
|
|
9
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
+
* it under the terms of the GNU General Public License as published by
|
|
11
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
* (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This program is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
* GNU General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU General Public License
|
|
20
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+
*/
|
|
22
|
+
import { useState } from 'react';
|
|
23
|
+
import { Accordion } from '@neo4j-ndl/react';
|
|
24
|
+
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
25
|
+
const Component = () => {
|
|
26
|
+
const itemIds = ['item-1', 'item-2', 'item-3', 'item-4'];
|
|
27
|
+
const [expandedItemId, setExpandedItemId] = useState(itemIds[1]);
|
|
28
|
+
const onChange = (expandedItemId) => setExpandedItemId(expandedItemId);
|
|
29
|
+
return (_jsxs(Accordion, { expandedItemId: expandedItemId, isMultiple: false, onChange: onChange, children: [_jsx(Accordion.Item, { itemId: itemIds[0], title: `Accordion ${itemIds[0]}`, children: itemIds[0] }), _jsx(Accordion.Item, { itemId: itemIds[1], title: `Accordion ${itemIds[1]}`, children: itemIds[1] }), _jsx(Accordion.Item, { itemId: itemIds[2], title: `Accordion ${itemIds[2]}`, children: itemIds[2] }), _jsx(Accordion.Item, { itemId: itemIds[3], title: `Accordion ${itemIds[3]}`, children: itemIds[3] })] }));
|
|
30
|
+
};
|
|
31
|
+
export default Component;
|
|
32
|
+
//# sourceMappingURL=accordion-single-expanded.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion-single-expanded.story.js","sourceRoot":"","sources":["../../../../src/accordion/stories/accordion-single-expanded.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,SAAS,EAAwB,MAAM,kBAAkB,CAAC;AACnE,OAAO,yCAAyC,CAAC;AAEjD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,OAAO,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAEzD,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAClD,OAAO,CAAC,CAAC,CAAC,CACX,CAAC;IAEF,MAAM,QAAQ,GAAG,CAAC,cAAsC,EAAE,EAAE,CAC1D,iBAAiB,CAAC,cAAc,CAAC,CAAC;IAEpC,OAAO,CACL,MAAC,SAAS,IACR,cAAc,EAAE,cAAc,EAC9B,UAAU,EAAE,KAAK,EACjB,QAAQ,EAAE,QAAQ,aAElB,KAAC,SAAS,CAAC,IAAI,IAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,aAAa,OAAO,CAAC,CAAC,CAAC,EAAE,YACjE,OAAO,CAAC,CAAC,CAAC,GACI,EACjB,KAAC,SAAS,CAAC,IAAI,IAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,aAAa,OAAO,CAAC,CAAC,CAAC,EAAE,YACjE,OAAO,CAAC,CAAC,CAAC,GACI,EACjB,KAAC,SAAS,CAAC,IAAI,IAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,aAAa,OAAO,CAAC,CAAC,CAAC,EAAE,YACjE,OAAO,CAAC,CAAC,CAAC,GACI,EACjB,KAAC,SAAS,CAAC,IAAI,IAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,aAAa,OAAO,CAAC,CAAC,CAAC,EAAE,YACjE,OAAO,CAAC,CAAC,CAAC,GACI,IACP,CACb,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
import { Accordion } from '../../index';
|
|
23
|
+
import { AccordionCleanItems, AccordionDefault, AccordionFull, AccordionMultipleExpanded, AccordionRightContent, AccordionSingleExpanded, AccordionCleanItemsSrc, AccordionDefaultSrc, AccordionFullSrc, AccordionMultipleExpandedSrc, AccordionRightContentSrc, AccordionSingleExpandedSrc, } from './';
|
|
24
|
+
const componentMeta = {
|
|
25
|
+
title: 'Components/Accordion',
|
|
26
|
+
component: Accordion,
|
|
27
|
+
tags: ['docsPage'],
|
|
28
|
+
parameters: {
|
|
29
|
+
controls: { disable: true },
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
export default componentMeta;
|
|
33
|
+
export const CleanItems = {
|
|
34
|
+
args: {
|
|
35
|
+
children: undefined,
|
|
36
|
+
isMultiple: undefined,
|
|
37
|
+
expandedItemId: null,
|
|
38
|
+
onChange: () => undefined,
|
|
39
|
+
},
|
|
40
|
+
render: AccordionCleanItems,
|
|
41
|
+
parameters: {
|
|
42
|
+
docs: {
|
|
43
|
+
source: {
|
|
44
|
+
language: 'tsx',
|
|
45
|
+
type: 'code',
|
|
46
|
+
code: AccordionCleanItemsSrc,
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
export const Default = {
|
|
52
|
+
args: {
|
|
53
|
+
children: undefined,
|
|
54
|
+
isMultiple: undefined,
|
|
55
|
+
expandedItemId: null,
|
|
56
|
+
onChange: () => undefined,
|
|
57
|
+
},
|
|
58
|
+
render: AccordionDefault,
|
|
59
|
+
parameters: {
|
|
60
|
+
docs: {
|
|
61
|
+
source: {
|
|
62
|
+
language: 'tsx',
|
|
63
|
+
type: 'code',
|
|
64
|
+
code: AccordionDefaultSrc.replace(/^\/\*[\s\S]*?\*\/\s*/, ''),
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
export const Full = {
|
|
70
|
+
args: {
|
|
71
|
+
children: undefined,
|
|
72
|
+
isMultiple: undefined,
|
|
73
|
+
expandedItemId: null,
|
|
74
|
+
onChange: () => undefined,
|
|
75
|
+
},
|
|
76
|
+
parameters: {
|
|
77
|
+
docs: {
|
|
78
|
+
source: {
|
|
79
|
+
language: 'tsx',
|
|
80
|
+
type: 'code',
|
|
81
|
+
code: AccordionFullSrc.replace(/^\/\*[\s\S]*?\*\/\s*/, ''),
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
render: AccordionFull,
|
|
86
|
+
};
|
|
87
|
+
export const MultipleExpanded = {
|
|
88
|
+
args: {
|
|
89
|
+
children: undefined,
|
|
90
|
+
isMultiple: undefined,
|
|
91
|
+
expandedItemId: null,
|
|
92
|
+
onChange: () => undefined,
|
|
93
|
+
},
|
|
94
|
+
render: AccordionMultipleExpanded,
|
|
95
|
+
parameters: {
|
|
96
|
+
docs: {
|
|
97
|
+
source: {
|
|
98
|
+
language: 'tsx',
|
|
99
|
+
type: 'code',
|
|
100
|
+
code: AccordionMultipleExpandedSrc.replace(/^\/\*[\s\S]*?\*\/\s*/, ''),
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
};
|
|
105
|
+
export const RightContent = {
|
|
106
|
+
args: {
|
|
107
|
+
children: undefined,
|
|
108
|
+
isMultiple: undefined,
|
|
109
|
+
expandedItemId: null,
|
|
110
|
+
onChange: () => undefined,
|
|
111
|
+
},
|
|
112
|
+
render: AccordionRightContent,
|
|
113
|
+
parameters: {
|
|
114
|
+
docs: {
|
|
115
|
+
source: {
|
|
116
|
+
language: 'tsx',
|
|
117
|
+
type: 'code',
|
|
118
|
+
code: AccordionRightContentSrc.replace(/^\/\*[\s\S]*?\*\/\s*/, ''),
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
};
|
|
123
|
+
export const SingleExpanded = {
|
|
124
|
+
args: {
|
|
125
|
+
children: undefined,
|
|
126
|
+
isMultiple: undefined,
|
|
127
|
+
expandedItemId: null,
|
|
128
|
+
onChange: () => undefined,
|
|
129
|
+
},
|
|
130
|
+
render: AccordionSingleExpanded,
|
|
131
|
+
parameters: {
|
|
132
|
+
docs: {
|
|
133
|
+
source: {
|
|
134
|
+
language: 'tsx',
|
|
135
|
+
type: 'code',
|
|
136
|
+
code: AccordionSingleExpandedSrc.replace(/^\/\*[\s\S]*?\*\/\s*/, ''),
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
},
|
|
140
|
+
};
|
|
141
|
+
//# sourceMappingURL=accordion.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion.stories.js","sourceRoot":"","sources":["../../../../src/accordion/stories/accordion.stories.tsx"],"names":[],"mappings":"AAsBA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,aAAa,EACb,yBAAyB,EACzB,qBAAqB,EACrB,uBAAuB,EACvB,sBAAsB,EACtB,mBAAmB,EACnB,gBAAgB,EAChB,4BAA4B,EAC5B,wBAAwB,EACxB,0BAA0B,GAC3B,MAAM,IAAI,CAAC;AAEZ,MAAM,aAAa,GAAG;IACpB,KAAK,EAAE,sBAAsB;IAC7B,SAAS,EAAE,SAAS;IACpB,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE;QACV,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;KAC5B;CAC+B,CAAC;AAEnC,eAAe,aAAa,CAAC;AAG7B,MAAM,CAAC,MAAM,UAAU,GAAU;IAC/B,IAAI,EAAE;QACJ,QAAQ,EAAE,SAAS;QACnB,UAAU,EAAE,SAAS;QACrB,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE,GAAG,EAAE,CAAC,SAAS;KAC1B;IACD,MAAM,EAAE,mBAAmB;IAC3B,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,sBAAsB;aAC7B;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE;QACJ,QAAQ,EAAE,SAAS;QACnB,UAAU,EAAE,SAAS;QACrB,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE,GAAG,EAAE,CAAC,SAAS;KAC1B;IACD,MAAM,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C7B,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,wBAAwB,CAAC,OAAO,CAAC,sBAAsB,EAAE,EAAE,CAAC;aACnE;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAU;IACnC,IAAI,EAAE;QACJ,QAAQ,EAAE,SAAS;QACnB,UAAU,EAAE,SAAS;QACrB,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE,GAAG,EAAE,CAAC,SAAS;KAC1B;IACD,MAAM,EAAE,uBAAuB;IAC/B,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,0BAA0B,CAAC,OAAO,CAAC,sBAAsB,EAAE,EAAE,CAAC;aACrE;SACF;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
export { default as AccordionCleanItems } from './accordion-clean-items-expanded.story';
|
|
22
|
+
export { default as AccordionDefault } from './accordion-default-expanded.story';
|
|
23
|
+
export { default as AccordionFull } from './accordion-full.story';
|
|
24
|
+
export { default as AccordionMultipleExpanded } from './accordion-multiple-expanded.story';
|
|
25
|
+
export { default as AccordionRightContent } from './accordion-right-content.story';
|
|
26
|
+
export { default as AccordionSingleExpanded } from './accordion-single-expanded.story';
|
|
27
|
+
import AccordionCleanItemsSrcRaw from './accordion-clean-items-expanded.story?raw';
|
|
28
|
+
import AccordionDefaultSrcRaw from './accordion-default-expanded.story?raw';
|
|
29
|
+
import AccordionFullSrcRaw from './accordion-full.story?raw';
|
|
30
|
+
import AccordionMultipleExpandedSrcRaw from './accordion-multiple-expanded.story?raw';
|
|
31
|
+
import AccordionRightContentSrcRaw from './accordion-right-content.story?raw';
|
|
32
|
+
import AccordionSingleExpandedSrcRaw from './accordion-single-expanded.story?raw';
|
|
33
|
+
export const AccordionCleanItemsSrc = AccordionCleanItemsSrcRaw.replace(/^\/\*[\s\S]*?\*\/\s*/, '');
|
|
34
|
+
export const AccordionDefaultSrc = AccordionDefaultSrcRaw.replace(/^\/\*[\s\S]*?\*\/\s*/, '');
|
|
35
|
+
export const AccordionFullSrc = AccordionFullSrcRaw.replace(/^\/\*[\s\S]*?\*\/\s*/, '');
|
|
36
|
+
export const AccordionMultipleExpandedSrc = AccordionMultipleExpandedSrcRaw.replace(/^\/\*[\s\S]*?\*\/\s*/, '');
|
|
37
|
+
export const AccordionRightContentSrc = AccordionRightContentSrcRaw.replace(/^\/\*[\s\S]*?\*\/\s*/, '');
|
|
38
|
+
export const AccordionSingleExpandedSrc = AccordionSingleExpandedSrcRaw.replace(/^\/\*[\s\S]*?\*\/\s*/, '');
|
|
39
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/accordion/stories/index.ts"],"names":[],"mappings":"AA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AAE,CACH,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
22
|
+
declare const Component: () => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export default Component;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
22
|
+
declare const Component: () => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export default Component;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
22
|
+
declare const Component: () => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export default Component;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
22
|
+
declare const Component: () => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export default Component;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
22
|
+
declare const Component: () => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export default Component;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
22
|
+
declare const Component: () => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export default Component;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
import { type StoryObj } from '@storybook/react';
|
|
22
|
+
declare const componentMeta: {
|
|
23
|
+
title: string;
|
|
24
|
+
component: (<T extends import("../Accordion").AccordionItemId, U extends React.ElementType = "div">(props: import("../../_common/types").PolymorphicPropsWithoutRef<U, import("../Accordion").AccordionProps<T>> & import("react").RefAttributes<unknown>) => import("react").ReactElement | null) & {
|
|
25
|
+
Item: {
|
|
26
|
+
<T extends import("../Accordion").AccordionItemId, U extends React.ElementType = "div">({ className, ...restProps }: import("../../_common/types").PolymorphicPropsWithoutRef<U, {
|
|
27
|
+
title: string;
|
|
28
|
+
className?: string | undefined;
|
|
29
|
+
children?: React.ReactNode;
|
|
30
|
+
htmlAttributes?: import("../../_common/types").HtmlAttributes<"div"> | undefined;
|
|
31
|
+
itemId: T;
|
|
32
|
+
arrowPosition?: import("../Accordion").AccordionArrowPosition | undefined;
|
|
33
|
+
isDisabled?: boolean | undefined;
|
|
34
|
+
onExpandedChange?: ((expanded: boolean) => void) | undefined;
|
|
35
|
+
}>): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
displayName: string;
|
|
37
|
+
};
|
|
38
|
+
CleanItem: {
|
|
39
|
+
<T extends import("../Accordion").AccordionItemId, U extends React.ElementType = "div">({ className, ...restProps }: import("../../_common/types").PolymorphicPropsWithoutRef<U, {
|
|
40
|
+
title: string;
|
|
41
|
+
className?: string | undefined;
|
|
42
|
+
children?: React.ReactNode;
|
|
43
|
+
htmlAttributes?: import("../../_common/types").HtmlAttributes<"div"> | undefined;
|
|
44
|
+
itemId: T;
|
|
45
|
+
arrowPosition?: import("../Accordion").AccordionArrowPosition | undefined;
|
|
46
|
+
isDisabled?: boolean | undefined;
|
|
47
|
+
onExpandedChange?: ((expanded: boolean) => void) | undefined;
|
|
48
|
+
titleTypographyVariant?: import("../../index").TypographyVariants | undefined;
|
|
49
|
+
rightContent?: React.ReactNode;
|
|
50
|
+
}>): import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
displayName: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
tags: string[];
|
|
55
|
+
parameters: {
|
|
56
|
+
controls: {
|
|
57
|
+
disable: boolean;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
export default componentMeta;
|
|
62
|
+
type Story = StoryObj<typeof componentMeta>;
|
|
63
|
+
export declare const CleanItems: Story;
|
|
64
|
+
export declare const Default: Story;
|
|
65
|
+
export declare const Full: Story;
|
|
66
|
+
export declare const MultipleExpanded: Story;
|
|
67
|
+
export declare const RightContent: Story;
|
|
68
|
+
export declare const SingleExpanded: Story;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
export { default as AccordionCleanItems } from './accordion-clean-items-expanded.story';
|
|
22
|
+
export { default as AccordionDefault } from './accordion-default-expanded.story';
|
|
23
|
+
export { default as AccordionFull } from './accordion-full.story';
|
|
24
|
+
export { default as AccordionMultipleExpanded } from './accordion-multiple-expanded.story';
|
|
25
|
+
export { default as AccordionRightContent } from './accordion-right-content.story';
|
|
26
|
+
export { default as AccordionSingleExpanded } from './accordion-single-expanded.story';
|
|
27
|
+
export declare const AccordionCleanItemsSrc: string;
|
|
28
|
+
export declare const AccordionDefaultSrc: string;
|
|
29
|
+
export declare const AccordionFullSrc: string;
|
|
30
|
+
export declare const AccordionMultipleExpandedSrc: string;
|
|
31
|
+
export declare const AccordionRightContentSrc: string;
|
|
32
|
+
export declare const AccordionSingleExpandedSrc: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neo4j-ndl/react",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.15",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"description": "React implementation of Neo4j Design System",
|
|
6
6
|
"keywords": [
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
"@axe-core/playwright": "4.9.0",
|
|
44
44
|
"@playwright/experimental-ct-react": "1.45.0",
|
|
45
45
|
"@playwright/test": "1.45.0",
|
|
46
|
+
"@storybook/react": "8.5.7",
|
|
46
47
|
"@svgr/cli": "6.5.1",
|
|
47
48
|
"@types/react": "18.2.18",
|
|
48
49
|
"@types/react-datepicker": "6.2.0",
|