@hitachivantara/uikit-react-lab 5.41.21 → 5.42.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/dist/cjs/Flow/Node/Node.cjs +1 -1
- package/dist/cjs/Flow/Sidebar/SidebarGroup/SidebarGroup.cjs +1 -1
- package/dist/cjs/Wizard/WizardContainer/WizardContainer.cjs +1 -0
- package/dist/cjs/Wizard/WizardContainer/WizardContainer.styles.cjs +1 -5
- package/dist/cjs/Wizard/WizardTitle/WizardTitle.cjs +16 -13
- package/dist/cjs/Wizard/WizardTitle/WizardTitle.styles.cjs +15 -22
- package/dist/esm/Flow/Node/Node.js +2 -2
- package/dist/esm/Flow/Node/Node.js.map +1 -1
- package/dist/esm/Flow/Sidebar/SidebarGroup/SidebarGroup.js +2 -2
- package/dist/esm/Flow/Sidebar/SidebarGroup/SidebarGroup.js.map +1 -1
- package/dist/esm/Wizard/WizardContainer/WizardContainer.js +1 -0
- package/dist/esm/Wizard/WizardContainer/WizardContainer.js.map +1 -1
- package/dist/esm/Wizard/WizardContainer/WizardContainer.styles.js +1 -5
- package/dist/esm/Wizard/WizardContainer/WizardContainer.styles.js.map +1 -1
- package/dist/esm/Wizard/WizardTitle/WizardTitle.js +17 -14
- package/dist/esm/Wizard/WizardTitle/WizardTitle.js.map +1 -1
- package/dist/esm/Wizard/WizardTitle/WizardTitle.styles.js +15 -22
- package/dist/esm/Wizard/WizardTitle/WizardTitle.styles.js.map +1 -1
- package/dist/types/index.d.ts +7 -3
- package/package.json +3 -3
|
@@ -72,7 +72,7 @@ const HvFlowNode = ({
|
|
|
72
72
|
onClick: () => setShowParams((p) => !p),
|
|
73
73
|
"aria-label": showParams ? labels?.collapseLabel : labels?.expandLabel,
|
|
74
74
|
...expandParamsButtonProps,
|
|
75
|
-
children:
|
|
75
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(uikitReactIcons.DropDownXS, { rotate: showParams, color: "base_dark" })
|
|
76
76
|
}
|
|
77
77
|
)
|
|
78
78
|
] }),
|
|
@@ -43,7 +43,7 @@ const HvFlowSidebarGroup = ({
|
|
|
43
43
|
onClick: handleClick,
|
|
44
44
|
"aria-expanded": opened,
|
|
45
45
|
...expandButtonProps,
|
|
46
|
-
children:
|
|
46
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(uikitReactIcons.DropDownXS, { rotate: opened })
|
|
47
47
|
}
|
|
48
48
|
)
|
|
49
49
|
] }),
|
|
@@ -24,7 +24,7 @@ const HvWizardTitle = ({
|
|
|
24
24
|
customStep = {}
|
|
25
25
|
}) => {
|
|
26
26
|
const { context, setSummary, tab, setTab } = react.useContext(WizardContext.default);
|
|
27
|
-
const { classes } = WizardTitle_styles.useClasses(classesProp);
|
|
27
|
+
const { classes, cx } = WizardTitle_styles.useClasses(classesProp);
|
|
28
28
|
const [steps, setSteps] = react.useState([]);
|
|
29
29
|
react.useEffect(() => {
|
|
30
30
|
return () => {
|
|
@@ -46,15 +46,17 @@ const HvWizardTitle = ({
|
|
|
46
46
|
);
|
|
47
47
|
setSteps(updatedSteps);
|
|
48
48
|
}, [context, tab, setTab]);
|
|
49
|
-
return /* @__PURE__ */ jsxRuntime.
|
|
49
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
50
50
|
uikitReactCore.HvDialogTitle,
|
|
51
51
|
{
|
|
52
|
-
className:
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
52
|
+
className: cx(
|
|
53
|
+
classes.root,
|
|
54
|
+
classes.headerContainer,
|
|
55
|
+
classes.messageContainer,
|
|
56
|
+
classes.titleContainer
|
|
57
|
+
),
|
|
58
|
+
children: [
|
|
59
|
+
title && /* @__PURE__ */ jsxRuntime.jsx(uikitReactCore.HvTypography, { variant: "title3", component: "div", children: title }),
|
|
58
60
|
!!steps.length && /* @__PURE__ */ jsxRuntime.jsx(
|
|
59
61
|
StepNavigation.HvStepNavigation,
|
|
60
62
|
{
|
|
@@ -76,16 +78,17 @@ const HvWizardTitle = ({
|
|
|
76
78
|
uikitReactCore.HvButton,
|
|
77
79
|
{
|
|
78
80
|
variant: "secondarySubtle",
|
|
79
|
-
className:
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
className: cx(
|
|
82
|
+
classes.summaryButton,
|
|
83
|
+
classes.buttonWidth,
|
|
84
|
+
classes.rootSummaryButton
|
|
85
|
+
),
|
|
83
86
|
onClick: toggleSummary,
|
|
84
87
|
startIcon: /* @__PURE__ */ jsxRuntime.jsx(uikitReactIcons.Report, {}),
|
|
85
88
|
children: `${labels.summary ?? "Summary"}`
|
|
86
89
|
}
|
|
87
90
|
)
|
|
88
|
-
]
|
|
91
|
+
]
|
|
89
92
|
}
|
|
90
93
|
);
|
|
91
94
|
};
|
|
@@ -3,32 +3,25 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const uikitReactCore = require("@hitachivantara/uikit-react-core");
|
|
4
4
|
const uikitStyles = require("@hitachivantara/uikit-styles");
|
|
5
5
|
const { staticClasses, useClasses } = uikitReactCore.createClasses("HvWizardTitle", {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
width: "100%"
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
titleContainer: {
|
|
12
|
-
display: "flex",
|
|
13
|
-
alignItems: "center",
|
|
6
|
+
root: {
|
|
7
|
+
backgroundColor: uikitStyles.theme.colors.atmo2,
|
|
14
8
|
justifyContent: "space-between",
|
|
15
|
-
|
|
16
|
-
width: "100%"
|
|
17
|
-
},
|
|
18
|
-
buttonWidth: {
|
|
19
|
-
width: 120
|
|
9
|
+
paddingRight: uikitStyles.theme.space.sm
|
|
20
10
|
},
|
|
21
|
-
|
|
11
|
+
/** @deprecated use `classes.root` */
|
|
12
|
+
headerContainer: {},
|
|
13
|
+
/** @deprecated use `classes.root` */
|
|
14
|
+
messageContainer: {},
|
|
15
|
+
/** @deprecated use `classes.root` */
|
|
16
|
+
titleContainer: {},
|
|
17
|
+
summaryButton: {
|
|
18
|
+
width: 120,
|
|
22
19
|
paddingRight: 18
|
|
23
20
|
},
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
fontWeight: "bold",
|
|
29
|
-
letterSpacing: 0
|
|
30
|
-
}
|
|
31
|
-
},
|
|
21
|
+
/** @deprecated use `classes.summaryButton` */
|
|
22
|
+
buttonWidth: {},
|
|
23
|
+
/** @deprecated use `classes.summaryButton` */
|
|
24
|
+
rootSummaryButton: {},
|
|
32
25
|
stepContainer: {
|
|
33
26
|
margin: "auto"
|
|
34
27
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from "react";
|
|
3
3
|
import { useLabels, theme, HvTooltip, HvButton, HvTypography, HvInlineEditor, HvActionsGeneric } from "@hitachivantara/uikit-react-core";
|
|
4
|
-
import { Info,
|
|
4
|
+
import { Info, DropDownXS } from "@hitachivantara/uikit-react-icons";
|
|
5
5
|
import { HvFlowBaseNode } from "./BaseNode.js";
|
|
6
6
|
import { useClasses } from "./Node.styles.js";
|
|
7
7
|
import { staticClasses } from "./Node.styles.js";
|
|
@@ -71,7 +71,7 @@ const HvFlowNode = ({
|
|
|
71
71
|
onClick: () => setShowParams((p) => !p),
|
|
72
72
|
"aria-label": showParams ? labels?.collapseLabel : labels?.expandLabel,
|
|
73
73
|
...expandParamsButtonProps,
|
|
74
|
-
children:
|
|
74
|
+
children: /* @__PURE__ */ jsx(DropDownXS, { rotate: showParams, color: "base_dark" })
|
|
75
75
|
}
|
|
76
76
|
)
|
|
77
77
|
] }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Node.js","sources":["../../../../src/Flow/Node/Node.tsx"],"sourcesContent":["import { useState } from \"react\";\nimport {\n ExtractNames,\n HvActionsGeneric,\n HvActionsGenericProps,\n HvButton,\n HvButtonProps,\n HvInlineEditor,\n HvTooltip,\n HvTypography,\n theme,\n useLabels,\n} from \"@hitachivantara/uikit-react-core\";\nimport {
|
|
1
|
+
{"version":3,"file":"Node.js","sources":["../../../../src/Flow/Node/Node.tsx"],"sourcesContent":["import { useState } from \"react\";\nimport {\n ExtractNames,\n HvActionsGeneric,\n HvActionsGenericProps,\n HvButton,\n HvButtonProps,\n HvInlineEditor,\n HvTooltip,\n HvTypography,\n theme,\n useLabels,\n} from \"@hitachivantara/uikit-react-core\";\nimport { DropDownXS, Info } from \"@hitachivantara/uikit-react-icons\";\n\nimport { useFlowContext, useFlowNode, useFlowNodeUtils } from \"../hooks\";\nimport { HvFlowNodeParam } from \"../types\";\nimport { HvFlowBaseNode, HvFlowBaseNodeProps } from \"./BaseNode\";\nimport { staticClasses, useClasses } from \"./Node.styles\";\nimport { ParamRenderer } from \"./Parameters\";\n\nexport { staticClasses as flowNodeClasses };\n\nexport type HvFlowNodeClasses = ExtractNames<typeof useClasses>;\n\nconst DEFAULT_LABELS = {\n collapseLabel: \"Collapse\",\n expandLabel: \"Expand\",\n};\n\nexport interface HvFlowNodeProps<T = any> extends HvFlowBaseNodeProps<T> {\n /** Node description. */\n description?: string;\n /** Node actions. */\n actions?: HvActionsGenericProps[\"actions\"];\n /**\n * Node action callback.\n *\n * @deprecated Use `onAction` instead.\n * */\n actionCallback?: HvActionsGenericProps[\"actionsCallback\"]; // TODO - remove in v6\n /** Node action callback. */\n onAction?: HvActionsGenericProps[\"onAction\"];\n /** Whether the actions should be all icon buttons when visible. @default true */\n actionsIconOnly?: HvActionsGenericProps[\"iconOnly\"];\n /** Node maximum number of actions visible. */\n maxVisibleActions?: HvActionsGenericProps[\"maxVisibleActions\"];\n /** Node subtitle - this is typically the node \"name\" */\n subtitle?: string;\n /** Node group ID */\n groupId?: string;\n /** Node expanded */\n expanded?: boolean;\n /** Node parameters */\n params?: HvFlowNodeParam[];\n /** Props to be passed to the expand parameters button. */\n expandParamsButtonProps?: HvButtonProps;\n /** Labels used on the node. */\n labels?: HvFlowBaseNodeProps[\"labels\"] & Partial<typeof DEFAULT_LABELS>;\n /** A Jss Object used to override or extend the styles applied to the component. */\n classes?: HvFlowNodeClasses;\n /** Remove the ability to customize the label of the Node */\n disableInlineEdit?: boolean;\n}\n\nexport const HvFlowNode = ({\n id,\n type,\n headerItems,\n actions,\n actionCallback, // TODO - remove in v6\n onAction,\n maxVisibleActions = 1,\n expanded = false,\n actionsIconOnly = true,\n params,\n classes: classesProp,\n labels: labelsProps,\n children,\n expandParamsButtonProps,\n disableInlineEdit,\n title: titleProp,\n subtitle: subtitleProp,\n description,\n groupId,\n color: colorProp,\n icon: iconProp,\n ...props\n}: HvFlowNodeProps<unknown>) => {\n const { classes } = useClasses(classesProp);\n const [showParams, setShowParams] = useState(expanded);\n const { nodeGroups, defaultActions } = useFlowContext();\n const labels = useLabels(DEFAULT_LABELS, labelsProps);\n const node = useFlowNode();\n const { setNodeData } = useFlowNodeUtils();\n\n const inlineEditorWidth =\n actions === undefined ||\n (Array.isArray(actions) && actions.length === 0) ||\n maxVisibleActions === 0\n ? \"100%\"\n : `calc(200px - calc(${maxVisibleActions} * 32px + ${theme.spacing(2)}))`;\n\n const nodeGroup = (groupId && nodeGroups && nodeGroups[groupId]) || undefined;\n\n const title = titleProp || nodeGroup?.label;\n const icon = iconProp || nodeGroup?.icon;\n const color = colorProp || nodeGroup?.color;\n const subtitle = subtitleProp || node?.data.nodeLabel;\n\n const hasParams = !!(params && params.length > 0);\n\n return (\n <HvFlowBaseNode\n id={id}\n type={type}\n title={title}\n icon={icon}\n color={color}\n nodeActions={defaultActions}\n classes={classes}\n headerItems={\n <>\n {headerItems}\n {description && (\n <HvTooltip title={description}>\n <Info color=\"base_dark\" />\n </HvTooltip>\n )}\n {hasParams && (\n <HvButton\n icon\n overrideIconColors={false}\n onClick={() => setShowParams((p) => !p)}\n aria-label={\n showParams ? labels?.collapseLabel : labels?.expandLabel\n }\n {...expandParamsButtonProps}\n >\n <DropDownXS rotate={showParams} color=\"base_dark\" />\n </HvButton>\n )}\n </>\n }\n labels={labels as HvFlowNodeProps[\"labels\"]}\n {...props}\n >\n {(subtitle || actions) && (\n <div className={classes.subtitleContainer}>\n {subtitle &&\n (disableInlineEdit ? (\n <HvTypography className={classes.subtitle}>\n {subtitle}\n </HvTypography>\n ) : (\n <HvInlineEditor\n defaultValue={subtitle}\n showIcon\n style={{ width: inlineEditorWidth }}\n classes={{\n root: classes.inlineEditRoot,\n button: classes.inlineEditButton,\n }}\n onBlur={(evt, value) =>\n setNodeData((prev) => ({ ...prev, nodeLabel: value }))\n }\n />\n ))}\n {actions && (\n <HvActionsGeneric\n className={classes.actions}\n classes={{ button: classes.actionsButton }}\n actions={actions}\n actionsCallback={actionCallback}\n onAction={onAction}\n maxVisibleActions={maxVisibleActions}\n iconOnly={actionsIconOnly}\n />\n )}\n </div>\n )}\n {children}\n {showParams && params && (\n <div className={classes.paramsContainer}>\n <ParamRenderer params={params} data={node?.data} />\n </div>\n )}\n </HvFlowBaseNode>\n );\n};\n"],"names":[],"mappings":"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"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo, useCallback } from "react";
|
|
3
3
|
import { HvTypography, HvButton } from "@hitachivantara/uikit-react-core";
|
|
4
|
-
import {
|
|
4
|
+
import { DropDownXS } from "@hitachivantara/uikit-react-icons";
|
|
5
5
|
import { getColor } from "@hitachivantara/uikit-styles";
|
|
6
6
|
import { useClasses } from "./SidebarGroup.styles.js";
|
|
7
7
|
import { staticClasses } from "./SidebarGroup.styles.js";
|
|
@@ -42,7 +42,7 @@ const HvFlowSidebarGroup = ({
|
|
|
42
42
|
onClick: handleClick,
|
|
43
43
|
"aria-expanded": opened,
|
|
44
44
|
...expandButtonProps,
|
|
45
|
-
children:
|
|
45
|
+
children: /* @__PURE__ */ jsx(DropDownXS, { rotate: opened })
|
|
46
46
|
}
|
|
47
47
|
)
|
|
48
48
|
] }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarGroup.js","sources":["../../../../../src/Flow/Sidebar/SidebarGroup/SidebarGroup.tsx"],"sourcesContent":["import { useCallback, useMemo } from \"react\";\nimport {\n ExtractNames,\n HvButton,\n HvButtonProps,\n HvTypography,\n} from \"@hitachivantara/uikit-react-core\";\nimport {
|
|
1
|
+
{"version":3,"file":"SidebarGroup.js","sources":["../../../../../src/Flow/Sidebar/SidebarGroup/SidebarGroup.tsx"],"sourcesContent":["import { useCallback, useMemo } from \"react\";\nimport {\n ExtractNames,\n HvButton,\n HvButtonProps,\n HvTypography,\n} from \"@hitachivantara/uikit-react-core\";\nimport { DropDownXS } from \"@hitachivantara/uikit-react-icons\";\nimport { getColor } from \"@hitachivantara/uikit-styles\";\n\nimport { useFlowContext } from \"../../hooks\";\nimport { HvFlowNodeGroup } from \"../../types\";\nimport { staticClasses, useClasses } from \"./SidebarGroup.styles\";\nimport {\n HvFlowDraggableSidebarGroupItem,\n HvFlowDraggableSidebarGroupItemProps,\n} from \"./SidebarGroupItem\";\n\nexport { staticClasses as flowSidebarGroupClasses };\n\nexport type HvFlowSidebarGroupClasses = ExtractNames<typeof useClasses>;\n\nexport interface HvFlowSidebarGroupProps extends HvFlowNodeGroup {\n /** Group id. */\n id: string;\n /** A Jss Object used to override or extend the styles applied to the component. */\n classes?: HvFlowSidebarGroupClasses;\n /** Expand button props. */\n expandButtonProps?: HvButtonProps;\n /** Item group props. */\n itemProps?: Partial<HvFlowDraggableSidebarGroupItemProps>;\n}\n\nexport const HvFlowSidebarGroup = ({\n id,\n label,\n items = [],\n color,\n description,\n icon,\n expandButtonProps,\n classes: classesProp,\n itemProps,\n}: HvFlowSidebarGroupProps) => {\n const { classes, cx, css } = useClasses(classesProp);\n\n const { expandedNodeGroups, setExpandedNodeGroups } = useFlowContext();\n\n const opened = useMemo(\n () => !!expandedNodeGroups?.find((group) => group === id),\n [expandedNodeGroups, id],\n );\n\n const handleClick = useCallback(() => {\n setExpandedNodeGroups?.((prev) =>\n opened ? prev.filter((group) => id !== group) : [...prev, id],\n );\n }, [id, opened, setExpandedNodeGroups]);\n\n return (\n <li className={cx(css({ borderColor: getColor(color) }), classes.root)}>\n <div className={classes.titleContainer}>\n <div className={classes.labelContainer}>\n <div className={classes.icon} role=\"presentation\">\n {icon}\n </div>\n <HvTypography component=\"p\" variant=\"title4\">\n {Object.keys(items).length > 1\n ? `${label} (${Object.keys(items).length})`\n : label}\n </HvTypography>\n </div>\n <HvButton\n icon\n onClick={handleClick}\n aria-expanded={opened}\n {...expandButtonProps}\n >\n <DropDownXS rotate={opened} />\n </HvButton>\n </div>\n {description && (\n <div className={classes.descriptionContainer}>\n <HvTypography>{description}</HvTypography>\n </div>\n )}\n {opened && (\n <div className={classes.itemsContainer}>\n {Object.entries(items).map(([itemId, item]) => (\n <HvFlowDraggableSidebarGroupItem\n key={itemId}\n {...itemProps}\n {...item}\n />\n ))}\n </div>\n )}\n </li>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;AAiCO,MAAM,qBAAqB,CAAC;AAAA,EACjC;AAAA,EACA;AAAA,EACA,QAAQ,CAAC;AAAA,EACT;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,SAAS;AAAA,EACT;AACF,MAA+B;AAC7B,QAAM,EAAE,SAAS,IAAI,IAAI,IAAI,WAAW,WAAW;AAEnD,QAAM,EAAE,oBAAoB,sBAAsB,IAAI,eAAe;AAErE,QAAM,SAAS;AAAA,IACb,MAAM,CAAC,CAAC,oBAAoB,KAAK,CAAC,UAAU,UAAU,EAAE;AAAA,IACxD,CAAC,oBAAoB,EAAE;AAAA,EACzB;AAEM,QAAA,cAAc,YAAY,MAAM;AACpC;AAAA,MAAwB,CAAC,SACvB,SAAS,KAAK,OAAO,CAAC,UAAU,OAAO,KAAK,IAAI,CAAC,GAAG,MAAM,EAAE;AAAA,IAC9D;AAAA,EACC,GAAA,CAAC,IAAI,QAAQ,qBAAqB,CAAC;AAEtC,SACG,qBAAA,MAAA,EAAG,WAAW,GAAG,IAAI,EAAE,aAAa,SAAS,KAAK,EAAE,CAAC,GAAG,QAAQ,IAAI,GACnE,UAAA;AAAA,IAAC,qBAAA,OAAA,EAAI,WAAW,QAAQ,gBACtB,UAAA;AAAA,MAAC,qBAAA,OAAA,EAAI,WAAW,QAAQ,gBACtB,UAAA;AAAA,QAAA,oBAAC,SAAI,WAAW,QAAQ,MAAM,MAAK,gBAChC,UACH,MAAA;AAAA,QACA,oBAAC,gBAAa,WAAU,KAAI,SAAQ,UACjC,UAAA,OAAO,KAAK,KAAK,EAAE,SAAS,IACzB,GAAG,KAAK,KAAK,OAAO,KAAK,KAAK,EAAE,MAAM,MACtC,MACN,CAAA;AAAA,MAAA,GACF;AAAA,MACA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,MAAI;AAAA,UACJ,SAAS;AAAA,UACT,iBAAe;AAAA,UACd,GAAG;AAAA,UAEJ,UAAA,oBAAC,YAAW,EAAA,QAAQ,OAAQ,CAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IAC9B,GACF;AAAA,IACC,mCACE,OAAI,EAAA,WAAW,QAAQ,sBACtB,UAAA,oBAAC,cAAc,EAAA,UAAA,YAAA,CAAY,EAC7B,CAAA;AAAA,IAED,UACC,oBAAC,OAAI,EAAA,WAAW,QAAQ,gBACrB,UAAA,OAAO,QAAQ,KAAK,EAAE,IAAI,CAAC,CAAC,QAAQ,IAAI,MACvC;AAAA,MAAC;AAAA,MAAA;AAAA,QAEE,GAAG;AAAA,QACH,GAAG;AAAA,MAAA;AAAA,MAFC;AAAA,IAAA,CAIR,EACH,CAAA;AAAA,EAAA,GAEJ;AAEJ;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WizardContainer.js","sources":["../../../../src/Wizard/WizardContainer/WizardContainer.tsx"],"sourcesContent":["import {\n ExtractNames,\n HvBaseProps,\n HvDialog,\n HvDialogProps,\n useDefaultProps,\n} from \"@hitachivantara/uikit-react-core\";\n\nimport { staticClasses, useClasses } from \"./WizardContainer.styles\";\n\nexport { staticClasses as wizardContainerClasses };\n\nexport type HvWizardContainerClasses = ExtractNames<typeof useClasses>;\n\nexport interface HvWizardContainerProps\n extends Omit<HvBaseProps, \"onClose\">,\n Pick<HvDialogProps, \"maxWidth\" | \"fullWidth\"> {\n /** Current state of the Wizard. */\n open: boolean;\n /** Function executed on close. */\n handleClose: HvDialogProps[\"onClose\"];\n /** A Jss Object used to override or extend the styles applied to the empty state Wizard. */\n classes?: HvWizardContainerClasses;\n}\n\nexport const HvWizardContainer = (props: HvWizardContainerProps) => {\n const {\n classes: classesProp,\n children,\n handleClose,\n ...others\n } = useDefaultProps(\"HvWizardContainer\", props);\n const { classes } = useClasses(classesProp);\n\n return (\n <HvDialog\n classes={{\n root: classes.root,\n closeButton: classes.closeButton,\n paper: classes.paper,\n }}\n onClose={handleClose}\n maxWidth=\"lg\"\n {...others}\n >\n {children}\n </HvDialog>\n );\n};\n"],"names":[],"mappings":";;;;AAyBa,MAAA,oBAAoB,CAAC,UAAkC;AAC5D,QAAA;AAAA,IACJ,SAAS;AAAA,IACT;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EAAA,IACD,gBAAgB,qBAAqB,KAAK;AAC9C,QAAM,EAAE,QAAA,IAAY,WAAW,WAAW;AAGxC,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,SAAS;AAAA,QACP,MAAM,QAAQ;AAAA,QACd,aAAa,QAAQ;AAAA,QACrB,OAAO,QAAQ;AAAA,MACjB;AAAA,MACA,SAAS;AAAA,MACT,UAAS;AAAA,MACR,GAAG;AAAA,MAEH;AAAA,IAAA;AAAA,EACH;AAEJ;"}
|
|
1
|
+
{"version":3,"file":"WizardContainer.js","sources":["../../../../src/Wizard/WizardContainer/WizardContainer.tsx"],"sourcesContent":["import {\n ExtractNames,\n HvBaseProps,\n HvDialog,\n HvDialogProps,\n useDefaultProps,\n} from \"@hitachivantara/uikit-react-core\";\n\nimport { staticClasses, useClasses } from \"./WizardContainer.styles\";\n\nexport { staticClasses as wizardContainerClasses };\n\nexport type HvWizardContainerClasses = ExtractNames<typeof useClasses>;\n\nexport interface HvWizardContainerProps\n extends Omit<HvBaseProps, \"onClose\">,\n Pick<HvDialogProps, \"maxWidth\" | \"fullWidth\"> {\n /** Current state of the Wizard. */\n open: boolean;\n /** Function executed on close. */\n handleClose: HvDialogProps[\"onClose\"];\n /** A Jss Object used to override or extend the styles applied to the empty state Wizard. */\n classes?: HvWizardContainerClasses;\n}\n\nexport const HvWizardContainer = (props: HvWizardContainerProps) => {\n const {\n classes: classesProp,\n children,\n handleClose,\n ...others\n } = useDefaultProps(\"HvWizardContainer\", props);\n const { classes } = useClasses(classesProp);\n\n return (\n <HvDialog\n classes={{\n root: classes.root,\n closeButton: classes.closeButton,\n paper: classes.paper,\n }}\n onClose={handleClose}\n fullWidth\n maxWidth=\"lg\"\n {...others}\n >\n {children}\n </HvDialog>\n );\n};\n"],"names":[],"mappings":";;;;AAyBa,MAAA,oBAAoB,CAAC,UAAkC;AAC5D,QAAA;AAAA,IACJ,SAAS;AAAA,IACT;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EAAA,IACD,gBAAgB,qBAAqB,KAAK;AAC9C,QAAM,EAAE,QAAA,IAAY,WAAW,WAAW;AAGxC,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,SAAS;AAAA,QACP,MAAM,QAAQ;AAAA,QACd,aAAa,QAAQ;AAAA,QACrB,OAAO,QAAQ;AAAA,MACjB;AAAA,MACA,SAAS;AAAA,MACT,WAAS;AAAA,MACT,UAAS;AAAA,MACR,GAAG;AAAA,MAEH;AAAA,IAAA;AAAA,EACH;AAEJ;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WizardContainer.styles.js","sources":["../../../../src/Wizard/WizardContainer/WizardContainer.styles.tsx"],"sourcesContent":["import { createClasses } from \"@hitachivantara/uikit-react-core\";\n\nexport const { staticClasses, useClasses } = createClasses(\n \"HvWizardContainer\",\n {\n root: {},\n paper: {
|
|
1
|
+
{"version":3,"file":"WizardContainer.styles.js","sources":["../../../../src/Wizard/WizardContainer/WizardContainer.styles.tsx"],"sourcesContent":["import { createClasses } from \"@hitachivantara/uikit-react-core\";\n\nexport const { staticClasses, useClasses } = createClasses(\n \"HvWizardContainer\",\n {\n root: {},\n paper: {},\n closeButton: {\n display: \"none\",\n },\n },\n);\n"],"names":[],"mappings":";AAEa,MAAA,EAAE,eAAe,WAAA,IAAe;AAAA,EAC3C;AAAA,EACA;AAAA,IACE,MAAM,CAAC;AAAA,IACP,OAAO,CAAC;AAAA,IACR,aAAa;AAAA,MACX,SAAS;AAAA,IAAA;AAAA,EACX;AAEJ;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useContext, useState, useEffect } from "react";
|
|
3
3
|
import { HvDialogTitle, HvTypography, HvButton } from "@hitachivantara/uikit-react-core";
|
|
4
4
|
import { Report } from "@hitachivantara/uikit-react-icons";
|
|
@@ -23,7 +23,7 @@ const HvWizardTitle = ({
|
|
|
23
23
|
customStep = {}
|
|
24
24
|
}) => {
|
|
25
25
|
const { context, setSummary, tab, setTab } = useContext(HvWizardContext);
|
|
26
|
-
const { classes } = useClasses(classesProp);
|
|
26
|
+
const { classes, cx } = useClasses(classesProp);
|
|
27
27
|
const [steps, setSteps] = useState([]);
|
|
28
28
|
useEffect(() => {
|
|
29
29
|
return () => {
|
|
@@ -45,15 +45,17 @@ const HvWizardTitle = ({
|
|
|
45
45
|
);
|
|
46
46
|
setSteps(updatedSteps);
|
|
47
47
|
}, [context, tab, setTab]);
|
|
48
|
-
return /* @__PURE__ */
|
|
48
|
+
return /* @__PURE__ */ jsxs(
|
|
49
49
|
HvDialogTitle,
|
|
50
50
|
{
|
|
51
|
-
className:
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
51
|
+
className: cx(
|
|
52
|
+
classes.root,
|
|
53
|
+
classes.headerContainer,
|
|
54
|
+
classes.messageContainer,
|
|
55
|
+
classes.titleContainer
|
|
56
|
+
),
|
|
57
|
+
children: [
|
|
58
|
+
title && /* @__PURE__ */ jsx(HvTypography, { variant: "title3", component: "div", children: title }),
|
|
57
59
|
!!steps.length && /* @__PURE__ */ jsx(
|
|
58
60
|
HvStepNavigation,
|
|
59
61
|
{
|
|
@@ -75,16 +77,17 @@ const HvWizardTitle = ({
|
|
|
75
77
|
HvButton,
|
|
76
78
|
{
|
|
77
79
|
variant: "secondarySubtle",
|
|
78
|
-
className:
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
className: cx(
|
|
81
|
+
classes.summaryButton,
|
|
82
|
+
classes.buttonWidth,
|
|
83
|
+
classes.rootSummaryButton
|
|
84
|
+
),
|
|
82
85
|
onClick: toggleSummary,
|
|
83
86
|
startIcon: /* @__PURE__ */ jsx(Report, {}),
|
|
84
87
|
children: `${labels.summary ?? "Summary"}`
|
|
85
88
|
}
|
|
86
89
|
)
|
|
87
|
-
]
|
|
90
|
+
]
|
|
88
91
|
}
|
|
89
92
|
);
|
|
90
93
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WizardTitle.js","sources":["../../../../src/Wizard/WizardTitle/WizardTitle.tsx"],"sourcesContent":["import { useContext, useEffect, useState } from \"react\";\nimport {\n ExtractNames,\n HvBaseProps,\n HvButton,\n HvDialogTitle,\n HvTypography,\n} from \"@hitachivantara/uikit-react-core\";\nimport { Report } from \"@hitachivantara/uikit-react-icons\";\n\nimport { HvStepNavigation, HvStepNavigationProps } from \"../../StepNavigation\";\nimport { HvStepProps } from \"../../StepNavigation/DefaultNavigation\";\nimport { HvWizardContext, HvWizardTab } from \"../WizardContext\";\nimport { staticClasses, useClasses } from \"./WizardTitle.styles\";\n\nexport { staticClasses as wizardTitleClasses };\n\nexport type HvWizardTitleClasses = ExtractNames<typeof useClasses>;\n\nexport interface HvWizardTitleProps extends HvBaseProps {\n /** Title for the wizard. */\n title?: string;\n /** Shows the summary button. */\n hasSummary?: boolean;\n /** An object containing all the labels for the wizard header. */\n labels?: {\n /** Summary button label. */\n summary?: string;\n };\n /** Custom object to define type, size and width of the StepNavigation component */\n customStep?: Pick<HvStepNavigationProps, \"type\" | \"stepSize\" | \"width\">;\n /** A Jss Object used to override or extend the styles applied to the empty state Wizard. */\n classes?: HvWizardTitleClasses;\n}\n\nconst switchTabState = (\n state: HvWizardTab | undefined,\n currentTab: number,\n index: number,\n) => {\n if (state?.loading) return \"Pending\";\n if (index === currentTab) return \"Current\";\n if (state?.valid) return \"Completed\";\n if (state?.disabled) return \"Disabled\";\n if (state?.valid === null) return \"Enabled\";\n if (state?.touched && state?.valid === false) return \"Failed\";\n return \"Enabled\";\n};\n\nexport const HvWizardTitle = ({\n title,\n hasSummary = false,\n labels = {},\n classes: classesProp,\n customStep = {},\n}: HvWizardTitleProps) => {\n const { context, setSummary, tab, setTab } = useContext(HvWizardContext);\n\n const { classes } = useClasses(classesProp);\n\n const [steps, setSteps] = useState<HvStepProps[]>([]);\n\n useEffect(() => {\n return () => {\n setSummary(false);\n };\n }, [setSummary]);\n\n const toggleSummary = () => {\n setSummary((prevValue) => !prevValue);\n };\n\n useEffect(() => {\n const contextArray = Object.entries(context);\n\n if (!contextArray.length) return;\n\n const updatedSteps = contextArray.map<HvStepProps>(\n ([, childState], index) => ({\n title: childState?.[\"data-title\"] ?? childState?.name ?? `${index + 1}`,\n state: switchTabState(childState, tab, index),\n onClick: () => setTab(index),\n }),\n );\n\n setSteps(updatedSteps);\n }, [context, tab, setTab]);\n\n return (\n <HvDialogTitle\n className={classes.
|
|
1
|
+
{"version":3,"file":"WizardTitle.js","sources":["../../../../src/Wizard/WizardTitle/WizardTitle.tsx"],"sourcesContent":["import { useContext, useEffect, useState } from \"react\";\nimport {\n ExtractNames,\n HvBaseProps,\n HvButton,\n HvDialogTitle,\n HvTypography,\n} from \"@hitachivantara/uikit-react-core\";\nimport { Report } from \"@hitachivantara/uikit-react-icons\";\n\nimport { HvStepNavigation, HvStepNavigationProps } from \"../../StepNavigation\";\nimport { HvStepProps } from \"../../StepNavigation/DefaultNavigation\";\nimport { HvWizardContext, HvWizardTab } from \"../WizardContext\";\nimport { staticClasses, useClasses } from \"./WizardTitle.styles\";\n\nexport { staticClasses as wizardTitleClasses };\n\nexport type HvWizardTitleClasses = ExtractNames<typeof useClasses>;\n\nexport interface HvWizardTitleProps extends HvBaseProps {\n /** Title for the wizard. */\n title?: string;\n /** Shows the summary button. */\n hasSummary?: boolean;\n /** An object containing all the labels for the wizard header. */\n labels?: {\n /** Summary button label. */\n summary?: string;\n };\n /** Custom object to define type, size and width of the StepNavigation component */\n customStep?: Pick<HvStepNavigationProps, \"type\" | \"stepSize\" | \"width\">;\n /** A Jss Object used to override or extend the styles applied to the empty state Wizard. */\n classes?: HvWizardTitleClasses;\n}\n\nconst switchTabState = (\n state: HvWizardTab | undefined,\n currentTab: number,\n index: number,\n) => {\n if (state?.loading) return \"Pending\";\n if (index === currentTab) return \"Current\";\n if (state?.valid) return \"Completed\";\n if (state?.disabled) return \"Disabled\";\n if (state?.valid === null) return \"Enabled\";\n if (state?.touched && state?.valid === false) return \"Failed\";\n return \"Enabled\";\n};\n\nexport const HvWizardTitle = ({\n title,\n hasSummary = false,\n labels = {},\n classes: classesProp,\n customStep = {},\n}: HvWizardTitleProps) => {\n const { context, setSummary, tab, setTab } = useContext(HvWizardContext);\n\n const { classes, cx } = useClasses(classesProp);\n\n const [steps, setSteps] = useState<HvStepProps[]>([]);\n\n useEffect(() => {\n return () => {\n setSummary(false);\n };\n }, [setSummary]);\n\n const toggleSummary = () => {\n setSummary((prevValue) => !prevValue);\n };\n\n useEffect(() => {\n const contextArray = Object.entries(context);\n\n if (!contextArray.length) return;\n\n const updatedSteps = contextArray.map<HvStepProps>(\n ([, childState], index) => ({\n title: childState?.[\"data-title\"] ?? childState?.name ?? `${index + 1}`,\n state: switchTabState(childState, tab, index),\n onClick: () => setTab(index),\n }),\n );\n\n setSteps(updatedSteps);\n }, [context, tab, setTab]);\n\n return (\n <HvDialogTitle\n className={cx(\n classes.root,\n classes.headerContainer,\n classes.messageContainer,\n classes.titleContainer,\n )}\n >\n {title && (\n <HvTypography variant=\"title3\" component=\"div\">\n {title}\n </HvTypography>\n )}\n {!!steps.length && (\n <HvStepNavigation\n className={classes.stepContainer}\n steps={steps}\n type=\"Default\"\n stepSize=\"xs\"\n width={{\n xs: 200,\n sm: 350,\n md: 600,\n lg: 800,\n xl: 1000,\n }}\n {...customStep}\n />\n )}\n {hasSummary && (\n <HvButton\n variant=\"secondarySubtle\"\n className={cx(\n classes.summaryButton,\n classes.buttonWidth,\n classes.rootSummaryButton,\n )}\n onClick={toggleSummary}\n startIcon={<Report />}\n >\n {`${labels.summary ?? \"Summary\"}`}\n </HvButton>\n )}\n </HvDialogTitle>\n );\n};\n"],"names":[],"mappings":";;;;;;;;AAmCA,MAAM,iBAAiB,CACrB,OACA,YACA,UACG;AACC,MAAA,OAAO,QAAgB,QAAA;AACvB,MAAA,UAAU,WAAmB,QAAA;AAC7B,MAAA,OAAO,MAAc,QAAA;AACrB,MAAA,OAAO,SAAiB,QAAA;AACxB,MAAA,OAAO,UAAU,KAAa,QAAA;AAClC,MAAI,OAAO,WAAW,OAAO,UAAU,MAAc,QAAA;AAC9C,SAAA;AACT;AAEO,MAAM,gBAAgB,CAAC;AAAA,EAC5B;AAAA,EACA,aAAa;AAAA,EACb,SAAS,CAAC;AAAA,EACV,SAAS;AAAA,EACT,aAAa,CAAA;AACf,MAA0B;AACxB,QAAM,EAAE,SAAS,YAAY,KAAK,OAAO,IAAI,WAAW,eAAe;AAEvE,QAAM,EAAE,SAAS,OAAO,WAAW,WAAW;AAE9C,QAAM,CAAC,OAAO,QAAQ,IAAI,SAAwB,CAAA,CAAE;AAEpD,YAAU,MAAM;AACd,WAAO,MAAM;AACX,iBAAW,KAAK;AAAA,IAClB;AAAA,EAAA,GACC,CAAC,UAAU,CAAC;AAEf,QAAM,gBAAgB,MAAM;AACf,eAAA,CAAC,cAAc,CAAC,SAAS;AAAA,EACtC;AAEA,YAAU,MAAM;AACR,UAAA,eAAe,OAAO,QAAQ,OAAO;AAEvC,QAAA,CAAC,aAAa,OAAQ;AAE1B,UAAM,eAAe,aAAa;AAAA,MAChC,CAAC,CAAG,EAAA,UAAU,GAAG,WAAW;AAAA,QAC1B,OAAO,aAAa,YAAY,KAAK,YAAY,QAAQ,GAAG,QAAQ,CAAC;AAAA,QACrE,OAAO,eAAe,YAAY,KAAK,KAAK;AAAA,QAC5C,SAAS,MAAM,OAAO,KAAK;AAAA,MAC7B;AAAA,IACF;AAEA,aAAS,YAAY;AAAA,EACpB,GAAA,CAAC,SAAS,KAAK,MAAM,CAAC;AAGvB,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW;AAAA,QACT,QAAQ;AAAA,QACR,QAAQ;AAAA,QACR,QAAQ;AAAA,QACR,QAAQ;AAAA,MACV;AAAA,MAEC,UAAA;AAAA,QAAA,6BACE,cAAa,EAAA,SAAQ,UAAS,WAAU,OACtC,UACH,OAAA;AAAA,QAED,CAAC,CAAC,MAAM,UACP;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAW,QAAQ;AAAA,YACnB;AAAA,YACA,MAAK;AAAA,YACL,UAAS;AAAA,YACT,OAAO;AAAA,cACL,IAAI;AAAA,cACJ,IAAI;AAAA,cACJ,IAAI;AAAA,cACJ,IAAI;AAAA,cACJ,IAAI;AAAA,YACN;AAAA,YACC,GAAG;AAAA,UAAA;AAAA,QACN;AAAA,QAED,cACC;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,SAAQ;AAAA,YACR,WAAW;AAAA,cACT,QAAQ;AAAA,cACR,QAAQ;AAAA,cACR,QAAQ;AAAA,YACV;AAAA,YACA,SAAS;AAAA,YACT,+BAAY,QAAO,EAAA;AAAA,YAElB,UAAA,GAAG,OAAO,WAAW,SAAS;AAAA,UAAA;AAAA,QAAA;AAAA,MACjC;AAAA,IAAA;AAAA,EAEJ;AAEJ;"}
|
|
@@ -1,32 +1,25 @@
|
|
|
1
1
|
import { createClasses } from "@hitachivantara/uikit-react-core";
|
|
2
2
|
import { theme } from "@hitachivantara/uikit-styles";
|
|
3
3
|
const { staticClasses, useClasses } = createClasses("HvWizardTitle", {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
width: "100%"
|
|
7
|
-
}
|
|
8
|
-
},
|
|
9
|
-
titleContainer: {
|
|
10
|
-
display: "flex",
|
|
11
|
-
alignItems: "center",
|
|
4
|
+
root: {
|
|
5
|
+
backgroundColor: theme.colors.atmo2,
|
|
12
6
|
justifyContent: "space-between",
|
|
13
|
-
|
|
14
|
-
width: "100%"
|
|
15
|
-
},
|
|
16
|
-
buttonWidth: {
|
|
17
|
-
width: 120
|
|
7
|
+
paddingRight: theme.space.sm
|
|
18
8
|
},
|
|
19
|
-
|
|
9
|
+
/** @deprecated use `classes.root` */
|
|
10
|
+
headerContainer: {},
|
|
11
|
+
/** @deprecated use `classes.root` */
|
|
12
|
+
messageContainer: {},
|
|
13
|
+
/** @deprecated use `classes.root` */
|
|
14
|
+
titleContainer: {},
|
|
15
|
+
summaryButton: {
|
|
16
|
+
width: 120,
|
|
20
17
|
paddingRight: 18
|
|
21
18
|
},
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
fontWeight: "bold",
|
|
27
|
-
letterSpacing: 0
|
|
28
|
-
}
|
|
29
|
-
},
|
|
19
|
+
/** @deprecated use `classes.summaryButton` */
|
|
20
|
+
buttonWidth: {},
|
|
21
|
+
/** @deprecated use `classes.summaryButton` */
|
|
22
|
+
rootSummaryButton: {},
|
|
30
23
|
stepContainer: {
|
|
31
24
|
margin: "auto"
|
|
32
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WizardTitle.styles.js","sources":["../../../../src/Wizard/WizardTitle/WizardTitle.styles.tsx"],"sourcesContent":["import { createClasses } from \"@hitachivantara/uikit-react-core\";\nimport { theme } from \"@hitachivantara/uikit-styles\";\n\nexport const { staticClasses, useClasses } = createClasses(\"HvWizardTitle\", {\n
|
|
1
|
+
{"version":3,"file":"WizardTitle.styles.js","sources":["../../../../src/Wizard/WizardTitle/WizardTitle.styles.tsx"],"sourcesContent":["import { createClasses } from \"@hitachivantara/uikit-react-core\";\nimport { theme } from \"@hitachivantara/uikit-styles\";\n\nexport const { staticClasses, useClasses } = createClasses(\"HvWizardTitle\", {\n root: {\n backgroundColor: theme.colors.atmo2,\n justifyContent: \"space-between\",\n paddingRight: theme.space.sm,\n },\n /** @deprecated use `classes.root` */\n headerContainer: {},\n /** @deprecated use `classes.root` */\n messageContainer: {},\n /** @deprecated use `classes.root` */\n titleContainer: {},\n summaryButton: {\n width: 120,\n paddingRight: 18,\n },\n /** @deprecated use `classes.summaryButton` */\n buttonWidth: {},\n /** @deprecated use `classes.summaryButton` */\n rootSummaryButton: {},\n stepContainer: {\n margin: \"auto\",\n },\n});\n"],"names":[],"mappings":";;AAGO,MAAM,EAAE,eAAe,eAAe,cAAc,iBAAiB;AAAA,EAC1E,MAAM;AAAA,IACJ,iBAAiB,MAAM,OAAO;AAAA,IAC9B,gBAAgB;AAAA,IAChB,cAAc,MAAM,MAAM;AAAA,EAC5B;AAAA;AAAA,EAEA,iBAAiB,CAAC;AAAA;AAAA,EAElB,kBAAkB,CAAC;AAAA;AAAA,EAEnB,gBAAgB,CAAC;AAAA,EACjB,eAAe;AAAA,IACb,OAAO;AAAA,IACP,cAAc;AAAA,EAChB;AAAA;AAAA,EAEA,aAAa,CAAC;AAAA;AAAA,EAEd,mBAAmB,CAAC;AAAA,EACpB,eAAe;AAAA,IACb,QAAQ;AAAA,EAAA;AAEZ,CAAC;"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -971,13 +971,15 @@ declare const useClasses_13: (classesProp?: Partial<Record<"actionsContainer" |
|
|
|
971
971
|
readonly cx: (...args: any) => string;
|
|
972
972
|
};
|
|
973
973
|
|
|
974
|
-
declare const useClasses_14: (classesProp?: Partial<Record<"titleContainer" | "messageContainer" | "headerContainer" | "buttonWidth" | "rootSummaryButton" | "stepContainer", string>>, addStatic?: boolean) => {
|
|
974
|
+
declare const useClasses_14: (classesProp?: Partial<Record<"root" | "titleContainer" | "messageContainer" | "headerContainer" | "buttonWidth" | "summaryButton" | "rootSummaryButton" | "stepContainer", string>>, addStatic?: boolean) => {
|
|
975
975
|
readonly classes: {
|
|
976
|
+
root: string;
|
|
977
|
+
headerContainer: string;
|
|
976
978
|
messageContainer: string;
|
|
977
979
|
titleContainer: string;
|
|
980
|
+
summaryButton: string;
|
|
978
981
|
buttonWidth: string;
|
|
979
982
|
rootSummaryButton: string;
|
|
980
|
-
headerContainer: string;
|
|
981
983
|
stepContainer: string;
|
|
982
984
|
};
|
|
983
985
|
readonly css: any;
|
|
@@ -1512,11 +1514,13 @@ export declare const wizardContentClasses: {
|
|
|
1512
1514
|
};
|
|
1513
1515
|
|
|
1514
1516
|
export declare const wizardTitleClasses: {
|
|
1517
|
+
root: string;
|
|
1518
|
+
headerContainer: string;
|
|
1515
1519
|
messageContainer: string;
|
|
1516
1520
|
titleContainer: string;
|
|
1521
|
+
summaryButton: string;
|
|
1517
1522
|
buttonWidth: string;
|
|
1518
1523
|
rootSummaryButton: string;
|
|
1519
|
-
headerContainer: string;
|
|
1520
1524
|
stepContainer: string;
|
|
1521
1525
|
};
|
|
1522
1526
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hitachivantara/uikit-react-lab",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.42.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "Hitachi Vantara UI Kit Team",
|
|
6
6
|
"description": "Contributed React components for the NEXT UI Kit.",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@dnd-kit/core": "^6.1.0",
|
|
34
34
|
"@dnd-kit/modifiers": "^6.0.1",
|
|
35
35
|
"@emotion/css": "^11.11.0",
|
|
36
|
-
"@hitachivantara/uikit-react-core": "^5.
|
|
36
|
+
"@hitachivantara/uikit-react-core": "^5.85.1",
|
|
37
37
|
"@hitachivantara/uikit-react-icons": "^5.13.4",
|
|
38
38
|
"@hitachivantara/uikit-react-utils": "^0.2.21",
|
|
39
39
|
"@hitachivantara/uikit-styles": "^5.40.6",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"access": "public",
|
|
53
53
|
"directory": "package"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "5f88165eed760a4fbbbedd2fe9d59d709c6d7a9f",
|
|
56
56
|
"exports": {
|
|
57
57
|
".": {
|
|
58
58
|
"types": "./dist/types/index.d.ts",
|