@eccenca/gui-elements 23.7.0 → 23.8.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -0
- package/dist/cjs/cmem/DateTimeDisplay/ElapsedDateTimeDisplay.js +2 -1
- package/dist/cjs/cmem/DateTimeDisplay/ElapsedDateTimeDisplay.js.map +1 -1
- package/dist/cjs/cmem/react-flow/ReactFlow/ReactFlow.js +29 -3
- package/dist/cjs/cmem/react-flow/ReactFlow/ReactFlow.js.map +1 -1
- package/dist/cjs/components/Accordion/Accordion.js +14 -2
- package/dist/cjs/components/Accordion/Accordion.js.map +1 -1
- package/dist/cjs/components/Accordion/AccordionItem.js +10 -1
- package/dist/cjs/components/Accordion/AccordionItem.js.map +1 -1
- package/dist/cjs/components/Application/ApplicationContainer.js +5 -2
- package/dist/cjs/components/Application/ApplicationContainer.js.map +1 -1
- package/dist/cjs/components/Application/helper.js +38 -1
- package/dist/cjs/components/Application/helper.js.map +1 -1
- package/dist/cjs/components/TextField/TextArea.js +1 -1
- package/dist/cjs/components/TextField/TextArea.js.map +1 -1
- package/dist/esm/cmem/DateTimeDisplay/ElapsedDateTimeDisplay.js +2 -1
- package/dist/esm/cmem/DateTimeDisplay/ElapsedDateTimeDisplay.js.map +1 -1
- package/dist/esm/cmem/react-flow/ReactFlow/ReactFlow.js +29 -3
- package/dist/esm/cmem/react-flow/ReactFlow/ReactFlow.js.map +1 -1
- package/dist/esm/components/Accordion/Accordion.js +14 -2
- package/dist/esm/components/Accordion/Accordion.js.map +1 -1
- package/dist/esm/components/Accordion/AccordionItem.js +10 -1
- package/dist/esm/components/Accordion/AccordionItem.js.map +1 -1
- package/dist/esm/components/Application/ApplicationContainer.js +5 -2
- package/dist/esm/components/Application/ApplicationContainer.js.map +1 -1
- package/dist/esm/components/Application/helper.js +61 -0
- package/dist/esm/components/Application/helper.js.map +1 -1
- package/dist/esm/components/TextField/TextArea.js +1 -1
- package/dist/esm/components/TextField/TextArea.js.map +1 -1
- package/dist/types/cmem/react-flow/ReactFlow/ReactFlow.d.ts +4 -0
- package/dist/types/components/Accordion/Accordion.d.ts +11 -1
- package/dist/types/components/Accordion/AccordionItem.d.ts +15 -1
- package/dist/types/components/Application/ApplicationContainer.d.ts +8 -2
- package/dist/types/components/Application/helper.d.ts +6 -0
- package/package.json +5 -2
- package/src/_shame.scss +0 -27
- package/src/cmem/DateTimeDisplay/ElapsedDateTimeDisplay.tsx +2 -1
- package/src/cmem/react-flow/ReactFlow/ReactFlow.tsx +40 -2
- package/src/cmem/react-flow/_canvas.scss +15 -0
- package/src/cmem/react-flow/_index.scss +1 -0
- package/src/components/Accordion/Accordion.tsx +28 -1
- package/src/components/Accordion/AccordionItem.tsx +23 -0
- package/src/components/Accordion/Stories/Accordion.stories.tsx +12 -4
- package/src/components/Accordion/Stories/AccordionItem.stories.tsx +11 -3
- package/src/components/Accordion/accordion.scss +103 -44
- package/src/components/Application/ApplicationContainer.tsx +19 -3
- package/src/components/Application/_dropzone.scss +36 -0
- package/src/components/Application/application.scss +1 -0
- package/src/components/Application/helper.ts +39 -0
- package/src/components/TextField/TextArea.tsx +1 -1
- package/src/components/TextField/stories/TextArea.stories.tsx +6 -1
- package/src/components/TextField/textfield.scss +22 -0
- package/src/configuration/_variables.scss +1 -0
- package/src/extensions/_index.scss +2 -0
- package/src/extensions/uppy/_fileupload.scss +47 -0
- package/src/index.scss +9 -0
|
@@ -62,7 +62,7 @@ export var TextArea = function (_a) {
|
|
|
62
62
|
textAreaElement.style.setProperty("padding-left", "calc(".concat(leftIconElementRect.width ? 2 : 1, " * ").concat(textAreaStyle.paddingLeft, " + ").concat((_l = leftIconElementRect.width) !== null && _l !== void 0 ? _l : 0, "px)"));
|
|
63
63
|
leftIconElement.addEventListener("click", function (_event) {
|
|
64
64
|
textAreaElement.focus();
|
|
65
|
-
});
|
|
65
|
+
});
|
|
66
66
|
}
|
|
67
67
|
if (rightElement && wrapperElement) {
|
|
68
68
|
var rightElementElement = wrapperElement.querySelector(".".concat(eccgui, "-textarea__options"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea.js","sourceRoot":"","sources":["../../../../src/components/TextField/TextArea.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACH,OAAO,IAAI,mBAAmB,EAG9B,QAAQ,IAAI,iBAAiB,GAEhC,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,WAAW,IAAI,iBAAiB,EAAe,MAAM,qBAAqB,CAAC;AACpF,OAAO,EAAE,WAAW,IAAI,MAAM,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAG/B,OAAO,EAAkC,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAgDxF,MAAM,CAAC,IAAM,QAAQ,GAAG,UAAC,EAYT;IAXZ,IAAA,iBAAc,EAAd,SAAS,mBAAG,EAAE,KAAA,EACd,uBAAuB,EAAvB,eAAe,mBAAG,KAAK,KAAA,EACvB,uBAAuB,EAAvB,eAAe,mBAAG,KAAK,KAAA,EACvB,uBAAuB,EAAvB,eAAe,mBAAG,KAAK,KAAA,EACvB,sBAAsB,EAAtB,cAAc,mBAAG,KAAK,KAAA,EACtB,YAAQ,EAAR,IAAI,mBAAG,CAAC,KAAA,EACR,yBAAyB,+BAAA,EACzB,QAAQ,cAAA,EACR,YAAY,kBAAA,EACZ,eAAe,qBAAA,EACZ,UAAU,cAXQ,4KAYxB,CADgB;IAEb,IAAM,gBAAgB,GAAG,KAAK,CAAC,WAAW,CACtC,UAAC,eAAoC;;QACjC,IAAI,eAAe,IAAI,OAAO,eAAe,KAAK,QAAQ,EAAE;YACxD,IAAI,aAAa,SAAqB,CAAC;YACvC,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,SAAS,EAAE;gBACpC,aAAa,GAAG,gB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AAI;YACN,CAAC,CAAC,CAAC,IAEP,2BAA2B,IAC/B,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,oBAAoB,IAChC,CACL,CAAC;IAEF,IAAM,KAA2D,eAAe,aAAf,eAAe,cAAf,eAAe,GAAI,EAAE,EAAnE,gBAAgB,eAAA,EAAK,oBAAoB,cAAtD,aAAwD,CAAwB,CAAC;IAEvF,OAAO,eAAe,IAAI,QAAQ,IAAI,YAAY,CAAC,CAAC,CAAC,CACjD,sCACI,SAAS,EAAE,UAAG,MAAM,uBAAoB,GAAG,CAAC,gBAAgB,CAAC,CAAC,CAAC,WAAI,gBAAgB,CAAE,CAAC,CAAC,CAAC,EAAE,CAAC,IACvF,oBAAoB;QAEvB,QAAQ;QACR,QAAQ,IAAI,CACT,6BAAK,SAAS,EAAE,UAAG,MAAM,oBAAiB,IACrC,OAAO,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,CAC5B,oBAAC,IAAI,IACD,IAAI,EAAE,QAAyB,EAC/B,SAAS,EAAE,mBAAmB,CAAC,IAAI,EACnC,MAAM,EAAE,UAAqC,GAC/C,CACL,CAAC,CAAC,CAAC,CACA,8BAAM,SAAS,EAAE,mBAAmB,CAAC,IAAI,IAAG,QAAQ,CAAQ,CAC/D,CACC,CACT;QACA,YAAY,IAAI,6BAAK,SAAS,EAAE,UAAG,MAAM,uBAAoB,IAAG,YAAY,CAAO,CAClF,CACT,CAAC,CAAC,CAAC,CACA,QAAQ,CACX,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -5,6 +5,10 @@ export interface ReactFlowProps extends ReactFlowOriginalProps {
|
|
|
5
5
|
* Load `ReactFlow` component with pre-configured values for `nodeTypes` and `edgeTypes`
|
|
6
6
|
*/
|
|
7
7
|
configuration?: "unspecified" | "graph" | "workflow" | "linking";
|
|
8
|
+
/**
|
|
9
|
+
* Types data transfers that can be dragged in and dropped on the canvas.
|
|
10
|
+
*/
|
|
11
|
+
dropzoneFor?: string[];
|
|
8
12
|
/** If defined the canvas scrolls on all drag operations (node, selection, edge connect)
|
|
9
13
|
* when the mouse pointer comes near the canvas borders or goes beyond them.
|
|
10
14
|
* The `id` property of the ReactFlow component must be set in order for this to work.
|
|
@@ -1,14 +1,24 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { AccordionProps as CarbonAccordionProps } from "carbon-components-react";
|
|
3
|
+
import { AccordionItemProps } from "./AccordionItem";
|
|
3
4
|
export interface AccordionProps extends Omit<CarbonAccordionProps, "className" | "size"> {
|
|
4
5
|
/**
|
|
5
6
|
* Additional CSS classes.
|
|
6
7
|
*/
|
|
7
8
|
className?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Defines how much whitespace is used on top and bottom inside the header and content of an accordion item.
|
|
11
|
+
*/
|
|
12
|
+
whitespaceSize?: AccordionItemProps["whitespaceSize"];
|
|
13
|
+
/**
|
|
14
|
+
* Defines how much space is used for the separation between an accordion item and the next one.
|
|
15
|
+
*/
|
|
16
|
+
separationSize?: AccordionItemProps["separationSize"];
|
|
8
17
|
/**
|
|
9
18
|
* How much space is used for the header of the each of the accordion items.
|
|
19
|
+
* @deprecated Use ẁhitespaceSize` on `Accordion` or `AccordionItem` instead.
|
|
10
20
|
*/
|
|
11
21
|
size?: "small" | "medium" | "large";
|
|
12
22
|
}
|
|
13
|
-
export declare const Accordion: ({ children, className, align, size, ...otherProps }: AccordionProps) => React.JSX.Element;
|
|
23
|
+
export declare const Accordion: ({ children, className, align, whitespaceSize, separationSize, size, ...otherProps }: AccordionProps) => React.JSX.Element;
|
|
14
24
|
export default Accordion;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { AccordionItemProps as CarbonAccordionItemProps } from "carbon-components-react";
|
|
3
|
+
declare type sizeOptions = "none" | "small" | "medium" | "large";
|
|
3
4
|
export interface AccordionItemProps extends Omit<CarbonAccordionItemProps, "title" | "iconDescription" | "renderExpando"> {
|
|
4
5
|
/**
|
|
5
6
|
* additional user class name
|
|
@@ -13,8 +14,21 @@ export interface AccordionItemProps extends Omit<CarbonAccordionItemProps, "titl
|
|
|
13
14
|
* use full available width for content
|
|
14
15
|
*/
|
|
15
16
|
fullWidth?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Defines how much whitespace is used on top and bottom inside the header and content of an accordion item.
|
|
19
|
+
* Seeting on `AccordionItem` overwrites the global setting on `Accordion`.
|
|
20
|
+
*/
|
|
21
|
+
whitespaceSize?: sizeOptions | {
|
|
22
|
+
header: sizeOptions;
|
|
23
|
+
content: sizeOptions;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Defines how much space is used for the separation between the accordion item and the next one.
|
|
27
|
+
*/
|
|
28
|
+
separationSize?: sizeOptions;
|
|
16
29
|
/**
|
|
17
30
|
* minimize white space and paddings
|
|
31
|
+
* @deprecated Use `whitespaceSize="none"` on `Accordion` or `AccordionItem` instead.
|
|
18
32
|
*/
|
|
19
33
|
condensed?: boolean;
|
|
20
34
|
/**
|
|
@@ -26,5 +40,5 @@ export interface AccordionItemProps extends Omit<CarbonAccordionItemProps, "titl
|
|
|
26
40
|
*/
|
|
27
41
|
elevated?: boolean;
|
|
28
42
|
}
|
|
29
|
-
export declare const AccordionItem: ({ children, label, className, fullWidth, elevated, condensed, noBorder, ...otherProps }: AccordionItemProps) => React.JSX.Element;
|
|
43
|
+
export declare const AccordionItem: ({ children, label, className, fullWidth, elevated, whitespaceSize, separationSize, condensed, noBorder, ...otherProps }: AccordionItemProps) => React.JSX.Element;
|
|
30
44
|
export default AccordionItem;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
export
|
|
3
|
-
|
|
2
|
+
export interface ApplicationContainerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* If set then the `element` is extended automatically by a `monitor-dropzone` data attribute.
|
|
5
|
+
* This need to match with a `dropzone-for` data attribute on available dropzones for dragged elements.
|
|
6
|
+
*/
|
|
7
|
+
monitorDropzonesFor?: string[];
|
|
8
|
+
}
|
|
9
|
+
export declare const ApplicationContainer: ({ children, className, monitorDropzonesFor, ...otherDivProps }: ApplicationContainerProps) => React.JSX.Element;
|
|
4
10
|
export default ApplicationContainer;
|
|
@@ -1 +1,7 @@
|
|
|
1
1
|
export declare const useApplicationHeaderOverModals: (elevate: boolean, className: string) => void;
|
|
2
|
+
/**
|
|
3
|
+
* Tracks drag operations over the application.
|
|
4
|
+
* Sets different data attributes to the body element.
|
|
5
|
+
* They can be used to apply styling rules.
|
|
6
|
+
*/
|
|
7
|
+
export declare const useDropzoneMonitor: (enabledTypes: string[]) => void;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eccenca/gui-elements",
|
|
3
3
|
"description": "GUI elements based on other libraries, usable in React application, written in Typescript.",
|
|
4
|
-
"version": "23.
|
|
4
|
+
"version": "23.8.0-rc.1",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://github.com/eccenca/gui-elements",
|
|
7
7
|
"bugs": "https://github.com/eccenca/gui-elements/issues",
|
|
@@ -166,7 +166,10 @@
|
|
|
166
166
|
"**/word-wrap": "^1.2.4",
|
|
167
167
|
"**/webpack-dev-middleware": "^6.1.2",
|
|
168
168
|
"**/braces": "^3.0.3",
|
|
169
|
-
"**/ws": "^8.17.1"
|
|
169
|
+
"**/ws": "^8.17.1",
|
|
170
|
+
"**/ejs": "^3.1.10",
|
|
171
|
+
"**/tar": "^6.2.1",
|
|
172
|
+
"**/express": "^4.19.2"
|
|
170
173
|
},
|
|
171
174
|
"husky": {
|
|
172
175
|
"hooks": {
|
package/src/_shame.scss
CHANGED
|
@@ -19,33 +19,6 @@
|
|
|
19
19
|
border: 0;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
.uppy-DragDrop-container {
|
|
23
|
-
color: inherit;
|
|
24
|
-
background-color: $data-table-zebra-color;
|
|
25
|
-
// TODO: create own file upload elements
|
|
26
|
-
|
|
27
|
-
border-width: 1px;
|
|
28
|
-
|
|
29
|
-
//border-style: dotted;
|
|
30
|
-
border-radius: 3px;
|
|
31
|
-
|
|
32
|
-
.uppy-DragDrop-inner {
|
|
33
|
-
padding: 1rem;
|
|
34
|
-
line-height: inherit;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.uppy-DragDrop-arrow {
|
|
38
|
-
width: 2rem;
|
|
39
|
-
height: 2rem;
|
|
40
|
-
margin-bottom: 0.5rem;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.uppy-DragDrop-label {
|
|
44
|
-
margin-bottom: 0.5rem;
|
|
45
|
-
font-size: inherit;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
22
|
/*
|
|
50
23
|
WORKAROUND: thinner scrollbars
|
|
51
24
|
*/
|
|
@@ -22,7 +22,8 @@ export interface ElapsedDateTimeDisplayProps extends TestableComponent {
|
|
|
22
22
|
|
|
23
23
|
const dateTimeToElapsedTimeInMs = (dateTime: string | number) => {
|
|
24
24
|
const absoluteMs = typeof dateTime === "number" ? dateTime : new Date(dateTime).getTime();
|
|
25
|
-
|
|
25
|
+
const elapsed = new Date().getTime() - absoluteMs;
|
|
26
|
+
return elapsed < 0 ? 0 : elapsed;
|
|
26
27
|
};
|
|
27
28
|
|
|
28
29
|
/**
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { default as ReactFlowOriginal, ReactFlowProps as ReactFlowOriginalProps } from "react-flow-renderer";
|
|
3
3
|
|
|
4
|
+
import { CLASSPREFIX as eccgui } from "../../../configuration/constants";
|
|
4
5
|
import { ReactFlowMarkers } from "../../../extensions/react-flow/markers/ReactFlowMarkers";
|
|
5
6
|
import { ReactFlowHotkeyContext } from "../extensions/ReactFlowHotkeyContext";
|
|
6
7
|
import { useReactFlowScrollOnDrag } from "../extensions/scrollOnDragHook";
|
|
@@ -16,6 +17,11 @@ export interface ReactFlowProps extends ReactFlowOriginalProps {
|
|
|
16
17
|
*/
|
|
17
18
|
configuration?: "unspecified" | "graph" | "workflow" | "linking";
|
|
18
19
|
|
|
20
|
+
/**
|
|
21
|
+
* Types data transfers that can be dragged in and dropped on the canvas.
|
|
22
|
+
*/
|
|
23
|
+
dropzoneFor?: string[];
|
|
24
|
+
|
|
19
25
|
/** If defined the canvas scrolls on all drag operations (node, selection, edge connect)
|
|
20
26
|
* when the mouse pointer comes near the canvas borders or goes beyond them.
|
|
21
27
|
* The `id` property of the ReactFlow component must be set in order for this to work.
|
|
@@ -37,7 +43,37 @@ export interface ReactFlowProps extends ReactFlowOriginalProps {
|
|
|
37
43
|
* Corporate Memory tools.
|
|
38
44
|
*/
|
|
39
45
|
export const ReactFlow = React.forwardRef<HTMLDivElement, ReactFlowProps>(
|
|
40
|
-
({ configuration = "unspecified", scrollOnDrag, children, ...originalProps },
|
|
46
|
+
({ configuration = "unspecified", scrollOnDrag, dropzoneFor, children, className, ...originalProps }, outerRef) => {
|
|
47
|
+
const innerRef = React.useRef<HTMLDivElement>(null);
|
|
48
|
+
React.useImperativeHandle(outerRef, () => innerRef.current!, []);
|
|
49
|
+
|
|
50
|
+
React.useEffect(() => {
|
|
51
|
+
const reactflowContainer = innerRef?.current;
|
|
52
|
+
|
|
53
|
+
if (reactflowContainer && dropzoneFor) {
|
|
54
|
+
const addDragover = (event: DragEvent) => {
|
|
55
|
+
reactflowContainer.classList.add(`${eccgui}-graphviz__canvas--draghover`);
|
|
56
|
+
event.preventDefault();
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
const removeDragover = (event: DragEvent) => {
|
|
60
|
+
if (reactflowContainer === event.target) {
|
|
61
|
+
reactflowContainer.classList.remove(`${eccgui}-graphviz__canvas--draghover`);
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
reactflowContainer.addEventListener("dragover", addDragover);
|
|
66
|
+
reactflowContainer.addEventListener("dragleave", removeDragover);
|
|
67
|
+
reactflowContainer.addEventListener("drop", removeDragover);
|
|
68
|
+
return () => {
|
|
69
|
+
reactflowContainer.removeEventListener("dragover", addDragover);
|
|
70
|
+
reactflowContainer.removeEventListener("dragleave", removeDragover);
|
|
71
|
+
reactflowContainer.removeEventListener("drop", removeDragover);
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
return;
|
|
75
|
+
}, [innerRef, dropzoneFor]);
|
|
76
|
+
|
|
41
77
|
/** If the hot keys should be disabled. By default, they are always disabled. */
|
|
42
78
|
const { hotKeysDisabled } = React.useContext(ReactFlowHotkeyContext);
|
|
43
79
|
|
|
@@ -57,11 +93,13 @@ export const ReactFlow = React.forwardRef<HTMLDivElement, ReactFlowProps>(
|
|
|
57
93
|
|
|
58
94
|
return (
|
|
59
95
|
<ReactFlowOriginal
|
|
60
|
-
ref={
|
|
96
|
+
ref={innerRef}
|
|
97
|
+
className={`${eccgui}-graphviz__canvas` + className ? ` ${className}` : ""}
|
|
61
98
|
nodeTypes={configReactFlow[configuration].nodeTypes}
|
|
62
99
|
edgeTypes={configReactFlow[configuration].edgeTypes}
|
|
63
100
|
{...originalProps}
|
|
64
101
|
{...scrollOnDragFunctions}
|
|
102
|
+
data-dropzone-for={dropzoneFor ? dropzoneFor.join(" ") : undefined}
|
|
65
103
|
selectionKeyCode={hotKeysDisabled ? null : (selectionKeyCode as any)}
|
|
66
104
|
deleteKeyCode={hotKeysDisabled ? null : (deleteKeyCode as any)}
|
|
67
105
|
multiSelectionKeyCode={hotKeysDisabled ? null : (multiSelectionKeyCode as any)}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
.eccgui-graphviz__canvas--draghover {
|
|
2
|
+
body[data-monitor-dropzone~="application/reactflow"] &[data-dropzone-for~="application/reactflow"],
|
|
3
|
+
body[data-monitor-dropzone~="Files"] &[data-dropzone-for~="Files"] {
|
|
4
|
+
background-color: rgba($eccgui-color-accent, $eccgui-opacity-ghostly);
|
|
5
|
+
box-shadow: 0 0 $eccgui-size-block-whitespace $eccgui-color-accent inset;
|
|
6
|
+
|
|
7
|
+
& > * {
|
|
8
|
+
opacity: $eccgui-opacity-narrow;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.react-flow__node {
|
|
12
|
+
pointer-events: none !important;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -3,13 +3,24 @@ import { Accordion as CarbonAccordion, AccordionProps as CarbonAccordionProps }
|
|
|
3
3
|
|
|
4
4
|
import { CLASSPREFIX as eccgui } from "../../configuration/constants";
|
|
5
5
|
|
|
6
|
+
import { AccordionItemProps } from "./AccordionItem";
|
|
7
|
+
|
|
6
8
|
export interface AccordionProps extends Omit<CarbonAccordionProps, "className" | "size"> {
|
|
7
9
|
/**
|
|
8
10
|
* Additional CSS classes.
|
|
9
11
|
*/
|
|
10
12
|
className?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Defines how much whitespace is used on top and bottom inside the header and content of an accordion item.
|
|
15
|
+
*/
|
|
16
|
+
whitespaceSize?: AccordionItemProps["whitespaceSize"];
|
|
17
|
+
/**
|
|
18
|
+
* Defines how much space is used for the separation between an accordion item and the next one.
|
|
19
|
+
*/
|
|
20
|
+
separationSize?: AccordionItemProps["separationSize"];
|
|
11
21
|
/**
|
|
12
22
|
* How much space is used for the header of the each of the accordion items.
|
|
23
|
+
* @deprecated Use ẁhitespaceSize` on `Accordion` or `AccordionItem` instead.
|
|
13
24
|
*/
|
|
14
25
|
size?: "small" | "medium" | "large";
|
|
15
26
|
}
|
|
@@ -24,12 +35,28 @@ export const Accordion = ({
|
|
|
24
35
|
children,
|
|
25
36
|
className = "",
|
|
26
37
|
align = "start",
|
|
38
|
+
whitespaceSize = "medium",
|
|
39
|
+
separationSize = "none",
|
|
27
40
|
size = "medium",
|
|
28
41
|
...otherProps
|
|
29
42
|
}: AccordionProps) => {
|
|
43
|
+
const headerWhitespaceSize = typeof whitespaceSize === "string" ? whitespaceSize : whitespaceSize.header;
|
|
44
|
+
const contentWhitespaceSize = typeof whitespaceSize === "string" ? whitespaceSize : whitespaceSize.content;
|
|
30
45
|
return (
|
|
31
46
|
<CarbonAccordion
|
|
32
|
-
className={
|
|
47
|
+
className={
|
|
48
|
+
`${eccgui}-accordion__container` +
|
|
49
|
+
(headerWhitespaceSize !== "medium"
|
|
50
|
+
? ` ${eccgui}-accordion__container--global-headerspace-${headerWhitespaceSize}`
|
|
51
|
+
: "") +
|
|
52
|
+
(contentWhitespaceSize !== "medium"
|
|
53
|
+
? ` ${eccgui}-accordion__container--global-contentspace-${contentWhitespaceSize}`
|
|
54
|
+
: "") +
|
|
55
|
+
(separationSize !== "none"
|
|
56
|
+
? ` ${eccgui}-accordion__container--global-separationspace-${separationSize}`
|
|
57
|
+
: "") +
|
|
58
|
+
(className ? ` ${className}` : "")
|
|
59
|
+
}
|
|
33
60
|
align={align}
|
|
34
61
|
size={carbonAccordionSizeMapping[size]}
|
|
35
62
|
{...otherProps}
|
|
@@ -6,6 +6,8 @@ import {
|
|
|
6
6
|
|
|
7
7
|
import { CLASSPREFIX as eccgui } from "../../configuration/constants";
|
|
8
8
|
|
|
9
|
+
type sizeOptions = "none" | "small" | "medium" | "large";
|
|
10
|
+
|
|
9
11
|
export interface AccordionItemProps
|
|
10
12
|
extends Omit<CarbonAccordionItemProps, "title" | "iconDescription" | "renderExpando"> {
|
|
11
13
|
/**
|
|
@@ -20,8 +22,18 @@ export interface AccordionItemProps
|
|
|
20
22
|
* use full available width for content
|
|
21
23
|
*/
|
|
22
24
|
fullWidth?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Defines how much whitespace is used on top and bottom inside the header and content of an accordion item.
|
|
27
|
+
* Seeting on `AccordionItem` overwrites the global setting on `Accordion`.
|
|
28
|
+
*/
|
|
29
|
+
whitespaceSize?: sizeOptions | { header: sizeOptions; content: sizeOptions };
|
|
30
|
+
/**
|
|
31
|
+
* Defines how much space is used for the separation between the accordion item and the next one.
|
|
32
|
+
*/
|
|
33
|
+
separationSize?: sizeOptions;
|
|
23
34
|
/**
|
|
24
35
|
* minimize white space and paddings
|
|
36
|
+
* @deprecated Use `whitespaceSize="none"` on `Accordion` or `AccordionItem` instead.
|
|
25
37
|
*/
|
|
26
38
|
condensed?: boolean;
|
|
27
39
|
/**
|
|
@@ -40,10 +52,14 @@ export const AccordionItem = ({
|
|
|
40
52
|
className = "",
|
|
41
53
|
fullWidth = false,
|
|
42
54
|
elevated = false,
|
|
55
|
+
whitespaceSize = "medium",
|
|
56
|
+
separationSize = "none",
|
|
43
57
|
condensed = false,
|
|
44
58
|
noBorder = false,
|
|
45
59
|
...otherProps
|
|
46
60
|
}: AccordionItemProps) => {
|
|
61
|
+
const headerWhitespaceSize = typeof whitespaceSize === "string" ? whitespaceSize : whitespaceSize.header;
|
|
62
|
+
const contentWhitespaceSize = typeof whitespaceSize === "string" ? whitespaceSize : whitespaceSize.content;
|
|
47
63
|
return (
|
|
48
64
|
<CarbonAccordionItem
|
|
49
65
|
className={
|
|
@@ -51,6 +67,13 @@ export const AccordionItem = ({
|
|
|
51
67
|
(className ? " " + className : "") +
|
|
52
68
|
(fullWidth ? ` ${eccgui}-accordion__item--fullwidth` : "") +
|
|
53
69
|
(elevated ? ` ${eccgui}-accordion__item--elevated` : "") +
|
|
70
|
+
(headerWhitespaceSize !== "medium"
|
|
71
|
+
? ` ${eccgui}-accordion__item--headerspace-${headerWhitespaceSize}`
|
|
72
|
+
: "") +
|
|
73
|
+
(contentWhitespaceSize !== "medium"
|
|
74
|
+
? ` ${eccgui}-accordion__item--contentspace-${contentWhitespaceSize}`
|
|
75
|
+
: "") +
|
|
76
|
+
(separationSize !== "none" ? ` ${eccgui}-accordion__item--separationspace-${separationSize}` : "") +
|
|
54
77
|
(condensed ? ` ${eccgui}-accordion__item--condensed` : "") +
|
|
55
78
|
(noBorder ? ` ${eccgui}-accordion__item--noborder` : "")
|
|
56
79
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { Meta, StoryFn } from "@storybook/react";
|
|
3
3
|
|
|
4
4
|
import { Accordion, AccordionItem } from "../../../../index";
|
|
5
5
|
import { Default as AccordionStoryItem } from "../Stories/AccordionItem.stories";
|
|
@@ -13,14 +13,22 @@ export default {
|
|
|
13
13
|
control: "none",
|
|
14
14
|
description: "Elements to include into the Accordion component",
|
|
15
15
|
},
|
|
16
|
+
whitespaceSize: {
|
|
17
|
+
control: "select",
|
|
18
|
+
options: ["none", "small", "medium", "large"],
|
|
19
|
+
},
|
|
20
|
+
separationSize: {
|
|
21
|
+
control: "select",
|
|
22
|
+
options: ["none", "small", "medium", "large"],
|
|
23
|
+
},
|
|
16
24
|
},
|
|
17
|
-
} as
|
|
25
|
+
} as Meta<typeof Accordion>;
|
|
18
26
|
|
|
19
|
-
const TemplateIcons:
|
|
27
|
+
const TemplateIcons: StoryFn<typeof Accordion> = (args) => <Accordion {...args} />;
|
|
20
28
|
export const Default = TemplateIcons.bind({});
|
|
21
29
|
Default.args = {
|
|
22
30
|
children: [
|
|
23
|
-
<AccordionItem {...AccordionStoryItem.args} label="Accordion item 1" />,
|
|
31
|
+
<AccordionItem {...AccordionStoryItem.args} label="Accordion item 1" fullWidth />,
|
|
24
32
|
<AccordionItem {...AccordionStoryItem.args} label="Accordion item 2 (elevated)" elevated />,
|
|
25
33
|
<AccordionItem {...AccordionStoryItem.args} label="Accordion item 3 (initially opened)" open />,
|
|
26
34
|
<AccordionItem {...AccordionStoryItem.args} label="Accordion item 4 (disabled)" disabled />,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { LoremIpsum } from "react-lorem-ipsum";
|
|
3
|
-
import {
|
|
3
|
+
import { Meta, StoryFn } from "@storybook/react";
|
|
4
4
|
|
|
5
5
|
import { Accordion, AccordionItem, HtmlContentBlock } from "../../../../index";
|
|
6
6
|
|
|
@@ -12,10 +12,18 @@ export default {
|
|
|
12
12
|
control: "none",
|
|
13
13
|
description: "content of accordion item",
|
|
14
14
|
},
|
|
15
|
+
whitespaceSize: {
|
|
16
|
+
control: "select",
|
|
17
|
+
options: ["none", "small", "medium", "large"],
|
|
18
|
+
},
|
|
19
|
+
separationSize: {
|
|
20
|
+
control: "select",
|
|
21
|
+
options: ["none", "small", "medium", "large"],
|
|
22
|
+
},
|
|
15
23
|
},
|
|
16
|
-
} as
|
|
24
|
+
} as Meta<typeof AccordionItem>;
|
|
17
25
|
|
|
18
|
-
const Template:
|
|
26
|
+
const Template: StoryFn<typeof AccordionItem> = (args) => (
|
|
19
27
|
<Accordion>
|
|
20
28
|
<AccordionItem {...args} />
|
|
21
29
|
</Accordion>
|