@hitachivantara/uikit-react-lab 5.22.2 → 5.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Blade/Blade.cjs +169 -0
- package/dist/cjs/Blade/Blade.cjs.map +1 -0
- package/dist/cjs/Blade/Blade.styles.cjs +72 -0
- package/dist/cjs/Blade/Blade.styles.cjs.map +1 -0
- package/dist/cjs/Blades/Blades.cjs +105 -0
- package/dist/cjs/Blades/Blades.cjs.map +1 -0
- package/dist/cjs/Blades/Blades.styles.cjs +12 -0
- package/dist/cjs/Blades/Blades.styles.cjs.map +1 -0
- package/dist/cjs/index.cjs +8 -0
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/Blade/Blade.js +168 -0
- package/dist/esm/Blade/Blade.js.map +1 -0
- package/dist/esm/Blade/Blade.styles.js +72 -0
- package/dist/esm/Blade/Blade.styles.js.map +1 -0
- package/dist/esm/Blades/Blades.js +106 -0
- package/dist/esm/Blades/Blades.js.map +1 -0
- package/dist/esm/Blades/Blades.styles.js +12 -0
- package/dist/esm/Blades/Blades.styles.js.map +1 -0
- package/dist/esm/index.js +32 -24
- package/dist/esm/index.js.map +1 -1
- package/dist/types/index.d.ts +243 -59
- package/package.json +4 -4
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { createClasses, outlineStyles } from "@hitachivantara/uikit-react-core";
|
|
2
|
+
import { theme } from "@hitachivantara/uikit-styles";
|
|
3
|
+
const { staticClasses, useClasses } = createClasses("HvBlade", {
|
|
4
|
+
root: {
|
|
5
|
+
position: "relative",
|
|
6
|
+
display: "flex",
|
|
7
|
+
minWidth: 72,
|
|
8
|
+
"& + $root": {
|
|
9
|
+
marginLeft: theme.spacing("sm")
|
|
10
|
+
},
|
|
11
|
+
transition: "flex-grow 600ms linear",
|
|
12
|
+
zIndex: 0,
|
|
13
|
+
color: theme.colors.secondary,
|
|
14
|
+
backgroundColor: theme.colors.atmo1,
|
|
15
|
+
borderRadius: theme.radii.round,
|
|
16
|
+
border: `1px solid ${theme.colors.atmo4}`
|
|
17
|
+
},
|
|
18
|
+
expanded: {},
|
|
19
|
+
fullWidth: {
|
|
20
|
+
flexGrow: 0,
|
|
21
|
+
"&$expanded": {
|
|
22
|
+
flexGrow: 1
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
heading: {},
|
|
26
|
+
button: {
|
|
27
|
+
height: "100%",
|
|
28
|
+
minWidth: 70,
|
|
29
|
+
"&[disabled], &:active": {
|
|
30
|
+
outline: "none"
|
|
31
|
+
},
|
|
32
|
+
"&:focus": {
|
|
33
|
+
outline: "none",
|
|
34
|
+
background: theme.colors.containerBackgroundHover
|
|
35
|
+
},
|
|
36
|
+
"&:hover": {
|
|
37
|
+
background: theme.colors.containerBackgroundHover
|
|
38
|
+
},
|
|
39
|
+
"&:focus-visible": {
|
|
40
|
+
...outlineStyles,
|
|
41
|
+
zIndex: 1
|
|
42
|
+
},
|
|
43
|
+
cursor: "pointer"
|
|
44
|
+
},
|
|
45
|
+
textOnlyLabel: {
|
|
46
|
+
padding: theme.spacing("xs", "sm")
|
|
47
|
+
},
|
|
48
|
+
container: {
|
|
49
|
+
display: "inline-block",
|
|
50
|
+
height: "100%",
|
|
51
|
+
width: "100%",
|
|
52
|
+
minWidth: 0,
|
|
53
|
+
overflowX: "hidden",
|
|
54
|
+
maxWidth: 0,
|
|
55
|
+
transition: "max-width 600ms linear"
|
|
56
|
+
},
|
|
57
|
+
disabled: {
|
|
58
|
+
cursor: "not-allowed",
|
|
59
|
+
color: theme.colors.secondary_60,
|
|
60
|
+
"&:focus": {
|
|
61
|
+
background: "none"
|
|
62
|
+
},
|
|
63
|
+
"&:hover": {
|
|
64
|
+
background: "none"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
export {
|
|
69
|
+
staticClasses,
|
|
70
|
+
useClasses
|
|
71
|
+
};
|
|
72
|
+
//# sourceMappingURL=Blade.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Blade.styles.js","sources":["../../../src/Blade/Blade.styles.tsx"],"sourcesContent":["import { createClasses, outlineStyles } from \"@hitachivantara/uikit-react-core\";\nimport { theme } from \"@hitachivantara/uikit-styles\";\n\nexport const { staticClasses, useClasses } = createClasses(\"HvBlade\", {\n root: {\n position: \"relative\",\n\n display: \"flex\",\n minWidth: 72,\n\n \"& + $root\": {\n marginLeft: theme.spacing(\"sm\"),\n },\n\n transition: \"flex-grow 600ms linear\",\n\n zIndex: 0,\n\n color: theme.colors.secondary,\n backgroundColor: theme.colors.atmo1,\n borderRadius: theme.radii.round,\n border: `1px solid ${theme.colors.atmo4}`,\n },\n expanded: {},\n\n fullWidth: {\n flexGrow: 0,\n\n \"&$expanded\": {\n flexGrow: 1,\n },\n },\n\n heading: {},\n\n button: {\n height: \"100%\",\n minWidth: 70,\n\n \"&[disabled], &:active\": {\n outline: \"none\",\n },\n\n \"&:focus\": {\n outline: \"none\",\n background: theme.colors.containerBackgroundHover,\n },\n\n \"&:hover\": {\n background: theme.colors.containerBackgroundHover,\n },\n\n \"&:focus-visible\": {\n ...outlineStyles,\n zIndex: 1,\n },\n\n cursor: \"pointer\",\n },\n textOnlyLabel: {\n padding: theme.spacing(\"xs\", \"sm\"),\n },\n\n container: {\n display: \"inline-block\",\n height: \"100%\",\n width: \"100%\",\n\n minWidth: 0,\n\n overflowX: \"hidden\",\n\n maxWidth: 0,\n transition: \"max-width 600ms linear\",\n },\n\n disabled: {\n cursor: \"not-allowed\",\n color: theme.colors.secondary_60,\n\n \"&:focus\": {\n background: \"none\",\n },\n\n \"&:hover\": {\n background: \"none\",\n },\n },\n});\n"],"names":[],"mappings":";;AAGO,MAAM,EAAE,eAAe,eAAe,cAAc,WAAW;AAAA,EACpE,MAAM;AAAA,IACJ,UAAU;AAAA,IAEV,SAAS;AAAA,IACT,UAAU;AAAA,IAEV,aAAa;AAAA,MACX,YAAY,MAAM,QAAQ,IAAI;AAAA,IAChC;AAAA,IAEA,YAAY;AAAA,IAEZ,QAAQ;AAAA,IAER,OAAO,MAAM,OAAO;AAAA,IACpB,iBAAiB,MAAM,OAAO;AAAA,IAC9B,cAAc,MAAM,MAAM;AAAA,IAC1B,QAAQ,aAAa,MAAM,OAAO,KAAK;AAAA,EACzC;AAAA,EACA,UAAU,CAAC;AAAA,EAEX,WAAW;AAAA,IACT,UAAU;AAAA,IAEV,cAAc;AAAA,MACZ,UAAU;AAAA,IACZ;AAAA,EACF;AAAA,EAEA,SAAS,CAAC;AAAA,EAEV,QAAQ;AAAA,IACN,QAAQ;AAAA,IACR,UAAU;AAAA,IAEV,yBAAyB;AAAA,MACvB,SAAS;AAAA,IACX;AAAA,IAEA,WAAW;AAAA,MACT,SAAS;AAAA,MACT,YAAY,MAAM,OAAO;AAAA,IAC3B;AAAA,IAEA,WAAW;AAAA,MACT,YAAY,MAAM,OAAO;AAAA,IAC3B;AAAA,IAEA,mBAAmB;AAAA,MACjB,GAAG;AAAA,MACH,QAAQ;AAAA,IACV;AAAA,IAEA,QAAQ;AAAA,EACV;AAAA,EACA,eAAe;AAAA,IACb,SAAS,MAAM,QAAQ,MAAM,IAAI;AAAA,EACnC;AAAA,EAEA,WAAW;AAAA,IACT,SAAS;AAAA,IACT,QAAQ;AAAA,IACR,OAAO;AAAA,IAEP,UAAU;AAAA,IAEV,WAAW;AAAA,IAEX,UAAU;AAAA,IACV,YAAY;AAAA,EACd;AAAA,EAEA,UAAU;AAAA,IACR,QAAQ;AAAA,IACR,OAAO,MAAM,OAAO;AAAA,IAEpB,WAAW;AAAA,MACT,YAAY;AAAA,IACd;AAAA,IAEA,WAAW;AAAA,MACT,YAAY;AAAA,IACd;AAAA,EACF;AACF,CAAC;"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { jsx } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useCallback, useMemo, Children, cloneElement } from "react";
|
|
3
|
+
import { useDefaultProps, useControlled } from "@hitachivantara/uikit-react-core";
|
|
4
|
+
import { useClasses } from "./Blades.styles.js";
|
|
5
|
+
import { staticClasses } from "./Blades.styles.js";
|
|
6
|
+
function getExpandedBlades(defaultExpanded, children, atMostOneExpanded, atLeastOneExpanded) {
|
|
7
|
+
const childrenArray = Children.toArray(children);
|
|
8
|
+
const expandedBlades = defaultExpanded ?? childrenArray.map((child, i) => {
|
|
9
|
+
const childIsControlled = child?.props?.expanded !== void 0;
|
|
10
|
+
const childIsExpanded = childIsControlled ? child?.props?.expanded : child?.props?.defaultExpanded;
|
|
11
|
+
return childIsExpanded ? i : void 0;
|
|
12
|
+
}).filter((v) => v !== void 0);
|
|
13
|
+
const numberOfExpandedBlades = expandedBlades.length;
|
|
14
|
+
if (atLeastOneExpanded && numberOfExpandedBlades === 0 && childrenArray.length > 0) {
|
|
15
|
+
return [0];
|
|
16
|
+
}
|
|
17
|
+
if (atMostOneExpanded && numberOfExpandedBlades > 1) {
|
|
18
|
+
return [expandedBlades[0]];
|
|
19
|
+
}
|
|
20
|
+
return expandedBlades;
|
|
21
|
+
}
|
|
22
|
+
const HvBlades = (props) => {
|
|
23
|
+
const {
|
|
24
|
+
id,
|
|
25
|
+
className,
|
|
26
|
+
classes: classesProp,
|
|
27
|
+
children,
|
|
28
|
+
expanded: expandedProp,
|
|
29
|
+
defaultExpanded,
|
|
30
|
+
atMostOneExpanded = false,
|
|
31
|
+
atLeastOneExpanded = false,
|
|
32
|
+
fullWidthBlades = false,
|
|
33
|
+
onChange,
|
|
34
|
+
...others
|
|
35
|
+
} = useDefaultProps("HvBlades", props);
|
|
36
|
+
const { classes, cx } = useClasses(classesProp);
|
|
37
|
+
const [expanded, setExpanded] = useControlled(
|
|
38
|
+
expandedProp,
|
|
39
|
+
() => getExpandedBlades(
|
|
40
|
+
defaultExpanded,
|
|
41
|
+
children,
|
|
42
|
+
atMostOneExpanded,
|
|
43
|
+
atLeastOneExpanded
|
|
44
|
+
)
|
|
45
|
+
);
|
|
46
|
+
const onChildChangeInterceptor = useCallback(
|
|
47
|
+
(index, childOnChange, event, isExpanded) => {
|
|
48
|
+
const newValue = [];
|
|
49
|
+
if (atMostOneExpanded) {
|
|
50
|
+
if (isExpanded) {
|
|
51
|
+
newValue.push(index);
|
|
52
|
+
}
|
|
53
|
+
} else {
|
|
54
|
+
newValue.push(...expanded);
|
|
55
|
+
if (isExpanded) {
|
|
56
|
+
newValue.push(index);
|
|
57
|
+
} else {
|
|
58
|
+
newValue.splice(newValue.indexOf(index), 1);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
if (atLeastOneExpanded && newValue.length === 0) {
|
|
62
|
+
newValue.push(index);
|
|
63
|
+
}
|
|
64
|
+
childOnChange?.(event, isExpanded);
|
|
65
|
+
onChange?.(event, newValue);
|
|
66
|
+
setExpanded(newValue);
|
|
67
|
+
},
|
|
68
|
+
[onChange, expanded, setExpanded, atMostOneExpanded, atLeastOneExpanded]
|
|
69
|
+
);
|
|
70
|
+
const modifiedChildren = useMemo(() => {
|
|
71
|
+
return Children.map(children, (child, i) => {
|
|
72
|
+
const childIsExpanded = expanded.includes(i);
|
|
73
|
+
return cloneElement(child, {
|
|
74
|
+
expanded: childIsExpanded,
|
|
75
|
+
fullWidth: child?.props?.fullWidth ?? fullWidthBlades,
|
|
76
|
+
buttonProps: {
|
|
77
|
+
...child?.props?.buttonProps,
|
|
78
|
+
"aria-disabled": (
|
|
79
|
+
// If the accordion panel associated with an accordion header is visible,
|
|
80
|
+
// and if the accordion does not permit the panel to be collapsed, the header
|
|
81
|
+
// button element has aria-disabled set to true.
|
|
82
|
+
child?.props?.disabled || childIsExpanded && atMostOneExpanded && expanded.length === 1 ? true : void 0
|
|
83
|
+
)
|
|
84
|
+
},
|
|
85
|
+
onChange: (event, isExpanded) => onChildChangeInterceptor(
|
|
86
|
+
i,
|
|
87
|
+
child?.props?.onChange,
|
|
88
|
+
event,
|
|
89
|
+
isExpanded
|
|
90
|
+
)
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
}, [
|
|
94
|
+
children,
|
|
95
|
+
expanded,
|
|
96
|
+
fullWidthBlades,
|
|
97
|
+
atMostOneExpanded,
|
|
98
|
+
onChildChangeInterceptor
|
|
99
|
+
]);
|
|
100
|
+
return /* @__PURE__ */ jsx("div", { id, className: cx(classes.root, className), ...others, children: modifiedChildren });
|
|
101
|
+
};
|
|
102
|
+
export {
|
|
103
|
+
HvBlades,
|
|
104
|
+
staticClasses as bladesClasses
|
|
105
|
+
};
|
|
106
|
+
//# sourceMappingURL=Blades.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Blades.js","sources":["../../../src/Blades/Blades.tsx"],"sourcesContent":["import React, {\n SyntheticEvent,\n useCallback,\n useMemo,\n Children,\n cloneElement,\n} from \"react\";\n\nimport {\n ExtractNames,\n HvBaseProps,\n useDefaultProps,\n useControlled,\n} from \"@hitachivantara/uikit-react-core\";\n\nimport { staticClasses, useClasses } from \"./Blades.styles\";\n\nexport { staticClasses as bladesClasses };\n\nexport type HvBladesClasses = ExtractNames<typeof useClasses>;\n\nexport interface HvBladesProps\n extends HvBaseProps<HTMLDivElement, \"onChange\" | \"children\"> {\n /**\n * Array of indices representing the expanded state of each blade.\n *\n * When defined, the expanded state of the blades becomes controlled.\n */\n expanded?: number[];\n /**\n * Initial expanded state of the blades when in an uncontrolled state.\n *\n * It's an array of indices representing the blades that should be initially expanded.\n */\n defaultExpanded?: number[];\n\n /**\n * If true, ensures that only one blade can be expanded at a time.\n */\n atMostOneExpanded?: boolean;\n /**\n * If true, ensures that at least one blade is always expanded.\n */\n atLeastOneExpanded?: boolean;\n\n /**\n * If true, the blades will take up the full width of the container by default.\n */\n fullWidthBlades?: boolean;\n\n /**\n * Callback function triggered when the expanded state of any blade changes.\n * It receives the event and the new array of expanded indices as arguments.\n *\n * If uncontrolled, this new state will be effective.\n * If controlled, it is up to the parent component to manage this state.\n *\n * @param {SyntheticEvent} event The event source of the callback.\n * @param {number[]} value Array of indices of the blades that are expanded.\n */\n onChange?: (event: SyntheticEvent, value: number[]) => void;\n\n /**\n * The blades to be rendered within the group.\n * Must be instances of `HvBlade`, otherwise the behavior is undefined and will most likely break.\n */\n children: React.ReactNode;\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes?: HvBladesClasses;\n}\n\nfunction getExpandedBlades(\n defaultExpanded: number[] | undefined,\n children: React.ReactNode,\n atMostOneExpanded: boolean,\n atLeastOneExpanded: boolean\n) {\n const childrenArray = Children.toArray(children);\n const expandedBlades =\n defaultExpanded ??\n childrenArray\n .map((child: any, i: number) => {\n const childIsControlled = child?.props?.expanded !== undefined;\n const childIsExpanded = childIsControlled\n ? child?.props?.expanded\n : child?.props?.defaultExpanded;\n\n return childIsExpanded ? i : undefined;\n })\n .filter((v) => v !== undefined);\n\n const numberOfExpandedBlades = expandedBlades.length;\n if (\n atLeastOneExpanded &&\n numberOfExpandedBlades === 0 &&\n childrenArray.length > 0\n ) {\n return [0];\n }\n if (atMostOneExpanded && numberOfExpandedBlades > 1) {\n return [expandedBlades[0]];\n }\n\n return expandedBlades;\n}\n\n/**\n * `HvBlades` is a component that groups multiple `HvBlade` components.\n *\n * It allows for better control over the expanded state of blades, suitable for both\n * controlled and uncontrolled scenarios.\n */\nexport const HvBlades = (props: HvBladesProps) => {\n const {\n id,\n className,\n classes: classesProp,\n children,\n expanded: expandedProp,\n defaultExpanded,\n atMostOneExpanded = false,\n atLeastOneExpanded = false,\n fullWidthBlades = false,\n onChange,\n ...others\n } = useDefaultProps(\"HvBlades\", props);\n\n const { classes, cx } = useClasses(classesProp);\n\n const [expanded, setExpanded] = useControlled(expandedProp, () =>\n getExpandedBlades(\n defaultExpanded,\n children,\n atMostOneExpanded,\n atLeastOneExpanded\n )\n );\n\n const onChildChangeInterceptor = useCallback(\n (\n index: number,\n childOnChange: (event: SyntheticEvent, isExpanded: boolean) => void,\n event: SyntheticEvent,\n isExpanded: boolean\n ) => {\n const newValue: number[] = [];\n if (atMostOneExpanded) {\n if (isExpanded) {\n newValue.push(index);\n }\n } else {\n newValue.push(...expanded);\n if (isExpanded) {\n newValue.push(index);\n } else {\n newValue.splice(newValue.indexOf(index), 1);\n }\n }\n\n if (atLeastOneExpanded && newValue.length === 0) {\n newValue.push(index);\n }\n\n childOnChange?.(event, isExpanded);\n\n onChange?.(event, newValue);\n\n // This will only run if uncontrolled\n setExpanded(newValue);\n },\n [onChange, expanded, setExpanded, atMostOneExpanded, atLeastOneExpanded]\n );\n\n const modifiedChildren = useMemo(() => {\n return Children.map(children, (child: any, i: number) => {\n const childIsExpanded = expanded.includes(i);\n\n return cloneElement(child, {\n expanded: childIsExpanded,\n fullWidth: child?.props?.fullWidth ?? fullWidthBlades,\n buttonProps: {\n ...child?.props?.buttonProps,\n \"aria-disabled\":\n // If the accordion panel associated with an accordion header is visible,\n // and if the accordion does not permit the panel to be collapsed, the header\n // button element has aria-disabled set to true.\n child?.props?.disabled ||\n (childIsExpanded && atMostOneExpanded && expanded.length === 1)\n ? true\n : undefined,\n },\n onChange: (\n event: React.ChangeEvent<HTMLInputElement>,\n isExpanded: boolean\n ) =>\n onChildChangeInterceptor(\n i,\n child?.props?.onChange,\n event,\n isExpanded\n ),\n });\n });\n }, [\n children,\n expanded,\n fullWidthBlades,\n atMostOneExpanded,\n onChildChangeInterceptor,\n ]);\n\n return (\n <div id={id} className={cx(classes.root, className)} {...others}>\n {modifiedChildren}\n </div>\n );\n};\n"],"names":[],"mappings":";;;;;AAyEA,SAAS,kBACP,iBACA,UACA,mBACA,oBACA;AACM,QAAA,gBAAgB,SAAS,QAAQ,QAAQ;AAC/C,QAAM,iBACJ,mBACA,cACG,IAAI,CAAC,OAAY,MAAc;AACxB,UAAA,oBAAoB,OAAO,OAAO,aAAa;AACrD,UAAM,kBAAkB,oBACpB,OAAO,OAAO,WACd,OAAO,OAAO;AAElB,WAAO,kBAAkB,IAAI;AAAA,EAAA,CAC9B,EACA,OAAO,CAAC,MAAM,MAAM,MAAS;AAElC,QAAM,yBAAyB,eAAe;AAC9C,MACE,sBACA,2BAA2B,KAC3B,cAAc,SAAS,GACvB;AACA,WAAO,CAAC,CAAC;AAAA,EACX;AACI,MAAA,qBAAqB,yBAAyB,GAAG;AAC5C,WAAA,CAAC,eAAe,CAAC,CAAC;AAAA,EAC3B;AAEO,SAAA;AACT;AAQa,MAAA,WAAW,CAAC,UAAyB;AAC1C,QAAA;AAAA,IACJ;AAAA,IACA;AAAA,IACA,SAAS;AAAA,IACT;AAAA,IACA,UAAU;AAAA,IACV;AAAA,IACA,oBAAoB;AAAA,IACpB,qBAAqB;AAAA,IACrB,kBAAkB;AAAA,IAClB;AAAA,IACA,GAAG;AAAA,EAAA,IACD,gBAAgB,YAAY,KAAK;AAErC,QAAM,EAAE,SAAS,GAAG,IAAI,WAAW,WAAW;AAExC,QAAA,CAAC,UAAU,WAAW,IAAI;AAAA,IAAc;AAAA,IAAc,MAC1D;AAAA,MACE;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,EAAA;AAGF,QAAM,2BAA2B;AAAA,IAC/B,CACE,OACA,eACA,OACA,eACG;AACH,YAAM,WAAqB,CAAA;AAC3B,UAAI,mBAAmB;AACrB,YAAI,YAAY;AACd,mBAAS,KAAK,KAAK;AAAA,QACrB;AAAA,MAAA,OACK;AACI,iBAAA,KAAK,GAAG,QAAQ;AACzB,YAAI,YAAY;AACd,mBAAS,KAAK,KAAK;AAAA,QAAA,OACd;AACL,mBAAS,OAAO,SAAS,QAAQ,KAAK,GAAG,CAAC;AAAA,QAC5C;AAAA,MACF;AAEI,UAAA,sBAAsB,SAAS,WAAW,GAAG;AAC/C,iBAAS,KAAK,KAAK;AAAA,MACrB;AAEA,sBAAgB,OAAO,UAAU;AAEjC,iBAAW,OAAO,QAAQ;AAG1B,kBAAY,QAAQ;AAAA,IACtB;AAAA,IACA,CAAC,UAAU,UAAU,aAAa,mBAAmB,kBAAkB;AAAA,EAAA;AAGnE,QAAA,mBAAmB,QAAQ,MAAM;AACrC,WAAO,SAAS,IAAI,UAAU,CAAC,OAAY,MAAc;AACjD,YAAA,kBAAkB,SAAS,SAAS,CAAC;AAE3C,aAAO,aAAa,OAAO;AAAA,QACzB,UAAU;AAAA,QACV,WAAW,OAAO,OAAO,aAAa;AAAA,QACtC,aAAa;AAAA,UACX,GAAG,OAAO,OAAO;AAAA,UACjB;AAAA;AAAA;AAAA;AAAA,YAIE,OAAO,OAAO,YACb,mBAAmB,qBAAqB,SAAS,WAAW,IACzD,OACA;AAAA;AAAA,QACR;AAAA,QACA,UAAU,CACR,OACA,eAEA;AAAA,UACE;AAAA,UACA,OAAO,OAAO;AAAA,UACd;AAAA,UACA;AAAA,QACF;AAAA,MAAA,CACH;AAAA,IAAA,CACF;AAAA,EAAA,GACA;AAAA,IACD;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA,CACD;AAGC,SAAA,oBAAC,OAAI,EAAA,IAAQ,WAAW,GAAG,QAAQ,MAAM,SAAS,GAAI,GAAG,QACtD,UACH,iBAAA,CAAA;AAEJ;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createClasses } from "@hitachivantara/uikit-react-core";
|
|
2
|
+
const { staticClasses, useClasses } = createClasses("HvBlades", {
|
|
3
|
+
root: {
|
|
4
|
+
position: "relative",
|
|
5
|
+
display: "flex"
|
|
6
|
+
}
|
|
7
|
+
});
|
|
8
|
+
export {
|
|
9
|
+
staticClasses,
|
|
10
|
+
useClasses
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=Blades.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Blades.styles.js","sources":["../../../src/Blades/Blades.styles.tsx"],"sourcesContent":["import { createClasses } from \"@hitachivantara/uikit-react-core\";\n\nexport const { staticClasses, useClasses } = createClasses(\"HvBlades\", {\n root: {\n position: \"relative\",\n\n display: \"flex\",\n },\n});\n"],"names":[],"mappings":";AAEO,MAAM,EAAE,eAAe,eAAe,cAAc,YAAY;AAAA,EACrE,MAAM;AAAA,IACJ,UAAU;AAAA,IAEV,SAAS;AAAA,EACX;AACF,CAAC;"}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,36 +1,42 @@
|
|
|
1
|
-
import { staticClasses } from "./
|
|
1
|
+
import { staticClasses } from "./Blade/Blade.styles.js";
|
|
2
|
+
import { HvBlade } from "./Blade/Blade.js";
|
|
3
|
+
import { staticClasses as staticClasses2 } from "./Blades/Blades.styles.js";
|
|
4
|
+
import { HvBlades } from "./Blades/Blades.js";
|
|
5
|
+
import { staticClasses as staticClasses3 } from "./Dashboard/Dashboard.styles.js";
|
|
2
6
|
import { HvDashboard } from "./Dashboard/Dashboard.js";
|
|
3
|
-
import { staticClasses as
|
|
7
|
+
import { staticClasses as staticClasses4 } from "./Flow/Flow.styles.js";
|
|
4
8
|
import { HvFlowBackground } from "./Flow/Background/Background.js";
|
|
5
9
|
import { HvFlowControls } from "./Flow/Controls/Controls.js";
|
|
6
|
-
import { staticClasses as
|
|
10
|
+
import { staticClasses as staticClasses5 } from "./Flow/Minimap/Minimap.styles.js";
|
|
7
11
|
import { HvFlowMinimap } from "./Flow/Minimap/Minimap.js";
|
|
8
|
-
import { staticClasses as
|
|
12
|
+
import { staticClasses as staticClasses6 } from "./Flow/Sidebar/Sidebar.styles.js";
|
|
9
13
|
import { HvFlowSidebar } from "./Flow/Sidebar/Sidebar.js";
|
|
10
14
|
import { HvFlowEmpty } from "./Flow/Empty/Empty.js";
|
|
11
15
|
import { HvFlow } from "./Flow/Flow.js";
|
|
12
|
-
import { staticClasses as
|
|
16
|
+
import { staticClasses as staticClasses7 } from "./Flow/Node/BaseNode.styles.js";
|
|
13
17
|
import { HvFlowBaseNode } from "./Flow/Node/BaseNode.js";
|
|
14
|
-
import { staticClasses as
|
|
18
|
+
import { staticClasses as staticClasses8 } from "./Flow/Node/Node.styles.js";
|
|
15
19
|
import { HvFlowNode } from "./Flow/Node/Node.js";
|
|
16
20
|
import { HvDashboardNode, hvDashboardNodeClasses } from "./Flow/nodes/DashboardNode.js";
|
|
17
21
|
import { useFlowInputNodes, useFlowNode, useFlowNodeEdges, useFlowNodeInputEdges, useFlowNodeOutputEdges, useFlowNodeParents, useFlowOutputNodes } from "./Flow/hooks/useFlowNode.js";
|
|
18
22
|
import { useFlowContext } from "./Flow/hooks/useFlowContext.js";
|
|
19
23
|
import { useFlowNodeMeta } from "./Flow/hooks/useFlowNodeMeta.js";
|
|
20
|
-
import { staticClasses as
|
|
24
|
+
import { staticClasses as staticClasses9 } from "./StepNavigation/StepNavigation.styles.js";
|
|
21
25
|
import { HvStepNavigation } from "./StepNavigation/StepNavigation.js";
|
|
22
|
-
import { staticClasses as
|
|
26
|
+
import { staticClasses as staticClasses10 } from "./Wizard/Wizard.styles.js";
|
|
23
27
|
import { HvWizard } from "./Wizard/Wizard.js";
|
|
24
|
-
import { staticClasses as
|
|
28
|
+
import { staticClasses as staticClasses11 } from "./Wizard/WizardActions/WizardActions.styles.js";
|
|
25
29
|
import { HvWizardActions } from "./Wizard/WizardActions/WizardActions.js";
|
|
26
|
-
import { staticClasses as
|
|
30
|
+
import { staticClasses as staticClasses12 } from "./Wizard/WizardContainer/WizardContainer.styles.js";
|
|
27
31
|
import { HvWizardContainer } from "./Wizard/WizardContainer/WizardContainer.js";
|
|
28
|
-
import { staticClasses as
|
|
32
|
+
import { staticClasses as staticClasses13 } from "./Wizard/WizardContent/WizardContent.styles.js";
|
|
29
33
|
import { HvWizardContent } from "./Wizard/WizardContent/WizardContent.js";
|
|
30
34
|
import { default as default2 } from "./Wizard/WizardContext/WizardContext.js";
|
|
31
|
-
import { staticClasses as
|
|
35
|
+
import { staticClasses as staticClasses14 } from "./Wizard/WizardTitle/WizardTitle.styles.js";
|
|
32
36
|
import { HvWizardTitle } from "./Wizard/WizardTitle/WizardTitle.js";
|
|
33
37
|
export {
|
|
38
|
+
HvBlade,
|
|
39
|
+
HvBlades,
|
|
34
40
|
HvDashboard,
|
|
35
41
|
HvDashboardNode,
|
|
36
42
|
HvFlow,
|
|
@@ -48,14 +54,16 @@ export {
|
|
|
48
54
|
HvWizardContent,
|
|
49
55
|
default2 as HvWizardContext,
|
|
50
56
|
HvWizardTitle,
|
|
51
|
-
staticClasses as
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
+
staticClasses as bladeClasses,
|
|
58
|
+
staticClasses2 as bladesClasses,
|
|
59
|
+
staticClasses3 as dashboardClasses,
|
|
60
|
+
staticClasses7 as flowBaseNodeClasses,
|
|
61
|
+
staticClasses4 as flowClasses,
|
|
62
|
+
staticClasses5 as flowMinimapClasses,
|
|
63
|
+
staticClasses8 as flowNodeClasses,
|
|
64
|
+
staticClasses6 as flowSidebarClasses,
|
|
57
65
|
hvDashboardNodeClasses,
|
|
58
|
-
|
|
66
|
+
staticClasses9 as stepNavigationClasses,
|
|
59
67
|
useFlowContext,
|
|
60
68
|
useFlowInputNodes,
|
|
61
69
|
useFlowNode,
|
|
@@ -65,10 +73,10 @@ export {
|
|
|
65
73
|
useFlowNodeOutputEdges,
|
|
66
74
|
useFlowNodeParents,
|
|
67
75
|
useFlowOutputNodes,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
76
|
+
staticClasses11 as wizardActionsClasses,
|
|
77
|
+
staticClasses10 as wizardClasses,
|
|
78
|
+
staticClasses12 as wizardContainerClasses,
|
|
79
|
+
staticClasses13 as wizardContentClasses,
|
|
80
|
+
staticClasses14 as wizardTitleClasses
|
|
73
81
|
};
|
|
74
82
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|