@hitachivantara/uikit-react-lab 5.37.1 → 5.37.3

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.
Files changed (52) hide show
  1. package/dist/cjs/Dashboard/Dashboard.cjs +3 -6
  2. package/dist/cjs/Flow/DroppableFlow.cjs +4 -8
  3. package/dist/cjs/Flow/Node/BaseNode.cjs +2 -4
  4. package/dist/cjs/Flow/Node/Parameters/ParamRenderer.cjs +1 -2
  5. package/dist/cjs/Flow/Node/Parameters/Select.cjs +1 -2
  6. package/dist/cjs/Flow/Node/Parameters/Slider.cjs +1 -2
  7. package/dist/cjs/Flow/Node/Parameters/Text.cjs +1 -2
  8. package/dist/cjs/Flow/Sidebar/Sidebar.cjs +1 -2
  9. package/dist/cjs/Flow/hooks/useFlowNode.cjs +1 -2
  10. package/dist/cjs/Flow/hooks/useNode.cjs +1 -2
  11. package/dist/cjs/StepNavigation/DefaultNavigation/Step/Step.cjs +20 -17
  12. package/dist/cjs/StepNavigation/StepNavigation.cjs +3 -4
  13. package/dist/cjs/Wizard/WizardActions/WizardActions.cjs +1 -2
  14. package/dist/cjs/Wizard/WizardContent/WizardContent.cjs +26 -21
  15. package/dist/cjs/Wizard/WizardTitle/WizardTitle.cjs +6 -12
  16. package/dist/esm/Dashboard/Dashboard.js +3 -6
  17. package/dist/esm/Dashboard/Dashboard.js.map +1 -1
  18. package/dist/esm/Flow/DroppableFlow.js +4 -8
  19. package/dist/esm/Flow/DroppableFlow.js.map +1 -1
  20. package/dist/esm/Flow/Node/BaseNode.js +2 -4
  21. package/dist/esm/Flow/Node/BaseNode.js.map +1 -1
  22. package/dist/esm/Flow/Node/Parameters/ParamRenderer.js +1 -2
  23. package/dist/esm/Flow/Node/Parameters/ParamRenderer.js.map +1 -1
  24. package/dist/esm/Flow/Node/Parameters/Select.js +1 -2
  25. package/dist/esm/Flow/Node/Parameters/Select.js.map +1 -1
  26. package/dist/esm/Flow/Node/Parameters/Slider.js +1 -2
  27. package/dist/esm/Flow/Node/Parameters/Slider.js.map +1 -1
  28. package/dist/esm/Flow/Node/Parameters/Text.js +1 -2
  29. package/dist/esm/Flow/Node/Parameters/Text.js.map +1 -1
  30. package/dist/esm/Flow/Sidebar/Sidebar.js +1 -2
  31. package/dist/esm/Flow/Sidebar/Sidebar.js.map +1 -1
  32. package/dist/esm/Flow/hooks/useFlowNode.js +1 -2
  33. package/dist/esm/Flow/hooks/useFlowNode.js.map +1 -1
  34. package/dist/esm/Flow/hooks/useNode.js +1 -2
  35. package/dist/esm/Flow/hooks/useNode.js.map +1 -1
  36. package/dist/esm/StepNavigation/DefaultNavigation/DefaultNavigation.js.map +1 -1
  37. package/dist/esm/StepNavigation/DefaultNavigation/Step/Step.js +20 -17
  38. package/dist/esm/StepNavigation/DefaultNavigation/Step/Step.js.map +1 -1
  39. package/dist/esm/StepNavigation/SimpleNavigation/SimpleNavigation.js.map +1 -1
  40. package/dist/esm/StepNavigation/StepNavigation.js +4 -5
  41. package/dist/esm/StepNavigation/StepNavigation.js.map +1 -1
  42. package/dist/esm/Wizard/Wizard.js.map +1 -1
  43. package/dist/esm/Wizard/WizardActions/WizardActions.js +1 -2
  44. package/dist/esm/Wizard/WizardActions/WizardActions.js.map +1 -1
  45. package/dist/esm/Wizard/WizardContainer/WizardContainer.js.map +1 -1
  46. package/dist/esm/Wizard/WizardContent/WizardContent.js +26 -21
  47. package/dist/esm/Wizard/WizardContent/WizardContent.js.map +1 -1
  48. package/dist/esm/Wizard/WizardContext/WizardContext.js.map +1 -1
  49. package/dist/esm/Wizard/WizardTitle/WizardTitle.js +6 -12
  50. package/dist/esm/Wizard/WizardTitle/WizardTitle.js.map +1 -1
  51. package/dist/types/index.d.ts +35 -38
  52. package/package.json +4 -4
@@ -1 +1 @@
1
- {"version":3,"file":"WizardContent.js","sources":["../../../../src/Wizard/WizardContent/WizardContent.tsx"],"sourcesContent":["import React, {\n useCallback,\n useContext,\n useEffect,\n useRef,\n useState,\n} from \"react\";\nimport { useElementSize } from \"usehooks-ts\";\nimport {\n ExtractNames,\n HvBaseProps,\n HvDialogContent,\n HvLoadingContainer,\n} from \"@hitachivantara/uikit-react-core\";\n\nimport { HvWizardContext, HvWizardTabs } from \"../WizardContext\";\nimport { staticClasses, useClasses } from \"./WizardContent.styles\";\n\nexport { staticClasses as wizardContentClasses };\n\nexport type HvWizardContentClasses = ExtractNames<typeof useClasses>;\n\nexport interface HvWizardContentProps extends HvBaseProps {\n /** Forces minimum height to the component. */\n fixedHeight?: boolean;\n /** Whether the loading animation is shown. */\n loading?: boolean;\n /** The content of the summary. */\n summaryContent?: React.ReactNode;\n /** A Jss Object used to override or extend the styles applied to the empty state Wizard. */\n classes?: HvWizardContentClasses;\n}\n\ntype ChildElement = React.ReactElement<HvWizardTabs>;\n\nconst DRAWER_PERCENTAGE = 0.3;\nconst DRAWER_MIN_WIDTH = 280;\n\nexport const HvWizardContent = ({\n classes: classesProp,\n fixedHeight = false,\n loading = false,\n children,\n summaryContent,\n}: HvWizardContentProps) => {\n const { classes, cx } = useClasses(classesProp);\n\n const { context, setContext, summary, tab } = useContext(HvWizardContext);\n\n const arrayChildren = React.Children.toArray(children) as ChildElement[];\n\n const initialContext = arrayChildren.reduce((acc, child, index) => {\n const invalid =\n \"mustValidate\" in child.props && child.props.mustValidate === true\n ? false\n : null;\n const valid = invalid ?? (index === 0 || null);\n acc[index] = { ...child.props, form: {}, valid, touched: index === 0 };\n return acc;\n }, {});\n\n const summaryRef = useRef<HTMLElement>();\n const resizedRef = useRef({ height: 0, width: 0 });\n const [containerRef, sizes] = useElementSize();\n\n const [summaryHeight, setSummaryHeight] = useState(0);\n const [summaryWidth, setSummaryWidth] = useState(0);\n const [summaryLeft, setSummaryLeft] = useState(0);\n\n const updateSummaryMeasures = useCallback((newSizes) => {\n const modalWidth = newSizes.width;\n const drawerWidth = modalWidth * DRAWER_PERCENTAGE;\n setSummaryHeight(newSizes.height);\n setSummaryWidth(Math.max(drawerWidth, DRAWER_MIN_WIDTH));\n setSummaryLeft(modalWidth - Math.max(drawerWidth, DRAWER_MIN_WIDTH));\n\n resizedRef.current = {\n height: newSizes.height,\n width: newSizes.width,\n };\n }, []);\n\n useEffect(() => {\n const pageHeight = summaryRef.current?.getBoundingClientRect?.()?.height;\n if (\n (summary && sizes.height !== resizedRef.current.height) ||\n sizes.width !== resizedRef.current.width\n ) {\n updateSummaryMeasures(sizes);\n }\n\n if (pageHeight && sizes.height !== pageHeight) {\n updateSummaryMeasures({\n width: sizes.width,\n height: pageHeight,\n });\n }\n }, [tab, sizes, summary, updateSummaryMeasures]);\n\n useEffect(() => {\n setContext(initialContext);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n useEffect(() => {\n if (tab && !context[tab]?.touched) {\n setContext((oldContext) =>\n Object.entries(oldContext).reduce((acc, [key, childState]) => {\n acc[key] =\n +key <= tab\n ? {\n ...childState,\n touched: true,\n valid: childState?.valid ?? true,\n }\n : childState;\n return acc;\n }, {}),\n );\n }\n }, [tab, context, setContext]);\n\n const translateX = summaryWidth ? summaryWidth + 10 : 450;\n\n return (\n <div\n className={classes.summaryRef}\n ref={(el) => {\n containerRef(el);\n if (el) {\n summaryRef.current = el;\n }\n }}\n >\n {summary !== null && (\n <div className={classes.summarySticky}>\n <div\n className={classes.summaryContainer}\n style={{\n left: summaryLeft,\n width: summaryWidth,\n height: summaryHeight,\n transform: `translate(${summary ? 0 : translateX}px, 0)`,\n }}\n >\n {summaryContent}\n </div>\n </div>\n )}\n <HvLoadingContainer hidden={!loading}>\n <HvDialogContent\n className={cx(classes.contentContainer, {\n [classes.fixedHeight]: fixedHeight,\n })}\n indentContent\n >\n {React.Children.map(arrayChildren, (child, index) => {\n if (index === tab) {\n return React.cloneElement(child as React.ReactElement, {\n tab,\n });\n }\n return null;\n })}\n </HvDialogContent>\n </HvLoadingContainer>\n </div>\n );\n};\n"],"names":[],"mappings":";;;;;;;AAmCA,MAAM,oBAAoB;AAC1B,MAAM,mBAAm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L;AAAA,QAED,oBAAA,oBAAA,EAAmB,QAAQ,CAAC,SAC3B,UAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAW,GAAG,QAAQ,kBAAkB;AAAA,cACtC,CAAC,QAAQ,WAAW,GAAG;AAAA,YAAA,CACxB;AAAA,YACD,eAAa;AAAA,YAEZ,gBAAM,SAAS,IAAI,eAAe,CAAC,OAAO,UAAU;AACnD,kBAAI,UAAU,KAAK;AACV,uBAAA,MAAM,aAAa,OAA6B;AAAA,kBACrD;AAAA,gBAAA,CACD;AAAA,cACH;AACO,qBAAA;AAAA,YAAA,CACR;AAAA,UAAA;AAAA,QAAA,GAEL;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN;"}
1
+ {"version":3,"file":"WizardContent.js","sources":["../../../../src/Wizard/WizardContent/WizardContent.tsx"],"sourcesContent":["import React, {\n useCallback,\n useContext,\n useEffect,\n useRef,\n useState,\n} from \"react\";\nimport { useElementSize } from \"usehooks-ts\";\nimport {\n ExtractNames,\n HvBaseProps,\n HvDialogContent,\n HvLoadingContainer,\n} from \"@hitachivantara/uikit-react-core\";\n\nimport { HvWizardContext, HvWizardTabs } from \"../WizardContext\";\nimport { staticClasses, useClasses } from \"./WizardContent.styles\";\n\nexport { staticClasses as wizardContentClasses };\n\nexport type HvWizardContentClasses = ExtractNames<typeof useClasses>;\n\nexport interface HvWizardContentProps extends HvBaseProps {\n /** Forces minimum height to the component. */\n fixedHeight?: boolean;\n /** Whether the loading animation is shown. */\n loading?: boolean;\n /** The content of the summary. */\n summaryContent?: React.ReactNode;\n /** A Jss Object used to override or extend the styles applied to the empty state Wizard. */\n classes?: HvWizardContentClasses;\n}\n\ntype ChildElement = React.ReactElement<HvWizardTabs>;\n\nconst DRAWER_PERCENTAGE = 0.3;\nconst DRAWER_MIN_WIDTH = 280;\n\nexport const HvWizardContent = ({\n classes: classesProp,\n fixedHeight = false,\n loading = false,\n children,\n summaryContent,\n}: HvWizardContentProps) => {\n const { classes, cx } = useClasses(classesProp);\n\n const { context, setContext, summary, tab } = useContext(HvWizardContext);\n\n const arrayChildren = React.Children.toArray(children) as ChildElement[];\n\n const initialContext = arrayChildren.reduce<HvWizardTabs>(\n (acc, child, index) => {\n const invalid =\n \"mustValidate\" in child.props && child.props.mustValidate === true\n ? false\n : null;\n const valid = invalid ?? (index === 0 || null);\n acc[index] = { ...child.props, form: {}, valid, touched: index === 0 };\n return acc;\n },\n {},\n );\n\n const summaryRef = useRef<HTMLElement>();\n const resizedRef = useRef({ height: 0, width: 0 });\n const [containerRef, sizes] = useElementSize();\n\n const [summaryHeight, setSummaryHeight] = useState(0);\n const [summaryWidth, setSummaryWidth] = useState(0);\n const [summaryLeft, setSummaryLeft] = useState(0);\n\n const updateSummaryMeasures = useCallback(({ height = 0, width = 0 }) => {\n const drawerWidth = width * DRAWER_PERCENTAGE;\n setSummaryHeight(height);\n setSummaryWidth(Math.max(drawerWidth, DRAWER_MIN_WIDTH));\n setSummaryLeft(width - Math.max(drawerWidth, DRAWER_MIN_WIDTH));\n\n resizedRef.current = {\n height,\n width,\n };\n }, []);\n\n useEffect(() => {\n const pageHeight = summaryRef.current?.getBoundingClientRect?.()?.height;\n if (\n (summary && sizes.height !== resizedRef.current.height) ||\n sizes.width !== resizedRef.current.width\n ) {\n updateSummaryMeasures(sizes);\n }\n\n if (pageHeight && sizes.height !== pageHeight) {\n updateSummaryMeasures({\n width: sizes.width,\n height: pageHeight,\n });\n }\n }, [tab, sizes, summary, updateSummaryMeasures]);\n\n useEffect(() => {\n setContext(initialContext);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n useEffect(() => {\n if (tab && !context[tab]?.touched) {\n setContext((oldContext) =>\n Object.entries(oldContext).reduce<HvWizardTabs>(\n (acc, [key, childState]) => {\n acc[Number(key)] =\n +key <= tab\n ? {\n ...childState,\n touched: true,\n valid: childState?.valid ?? true,\n }\n : childState;\n return acc;\n },\n {},\n ),\n );\n }\n }, [tab, context, setContext]);\n\n const translateX = summaryWidth ? summaryWidth + 10 : 450;\n\n return (\n <div\n className={classes.summaryRef}\n ref={(el) => {\n containerRef(el);\n if (el) {\n summaryRef.current = el;\n }\n }}\n >\n {summary !== null && (\n <div className={classes.summarySticky}>\n <div\n className={classes.summaryContainer}\n style={{\n left: summaryLeft,\n width: summaryWidth,\n height: summaryHeight,\n transform: `translate(${summary ? 0 : translateX}px, 0)`,\n }}\n >\n {summaryContent}\n </div>\n </div>\n )}\n <HvLoadingContainer hidden={!loading}>\n <HvDialogContent\n className={cx(classes.contentContainer, {\n [classes.fixedHeight]: fixedHeight,\n })}\n indentContent\n >\n {React.Children.map(arrayChildren, (child, index) => {\n if (index === tab) {\n return React.cloneElement(child as React.ReactElement, {\n tab,\n });\n }\n return null;\n })}\n </HvDialogContent>\n </HvLoadingContainer>\n </div>\n );\n};\n"],"names":[],"mappings":";;;;;;;AAmCA,MAAM,oBAAoB;AAC1B,MAAM,mBAAmB;AAElB,MAAM,kBAAkB,CAAC;AAAA,EAC9B,SAAS;AAAA,EACT,cAAc;AAAA,EACd,UAAU;AAAA,EACV;AAAA,EACA;AACF,MAA4B;AAC1B,QAAM,EAAE,SAAS,GAAG,IAAI,WAAW,WAAW;AAE9C,QAAM,EAAE,SAAS,YAAY,SAAS,QAAQ,WAAW,eAAe;AAExE,QAAM,gBAAgB,MAAM,SAAS,QAAQ,QAAQ;AAErD,QAAM,iBAAiB,cAAc;AAAA,IACnC,CAAC,KAAK,OAAO,UAAU;AACf,YAAA,UACJ,kBAAkB,MAAM,SAAS,MAAM,MAAM,iBAAiB,OAC1D,QACA;AACA,YAAA,QAAQ,YAAY,UAAU,KAAK;AACzC,UAAI,KAAK,IAAI,EAAE,GAAG,MAAM,OAAO,MAAM,CAAA,GAAI,OAAO,SAAS,UAAU,EAAE;AAC9D,aAAA;AAAA,IACT;AAAA,IACA,CAAC;AAAA,EAAA;AAGH,QAAM,aAAa;AACnB,QAAM,aAAa,OAAO,EAAE,QAAQ,GAAG,OAAO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ACT;AAAA,UACA,CAAC;AAAA,QACH;AAAA,MAAA;AAAA,IAEJ;AAAA,EACC,GAAA,CAAC,KAAK,SAAS,UAAU,CAAC;AAEvB,QAAA,aAAa,eAAe,eAAe,KAAK;AAGpD,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW,QAAQ;AAAA,MACnB,KAAK,CAAC,OAAO;AACX,qBAAa,EAAE;AACf,YAAI,IAAI;AACN,qBAAW,UAAU;AAAA,QACvB;AAAA,MACF;AAAA,MAEC,UAAA;AAAA,QAAA,YAAY,QACX,oBAAC,OAAI,EAAA,WAAW,QAAQ,eACtB,UAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAW,QAAQ;AAAA,YACnB,OAAO;AAAA,cACL,MAAM;AAAA,cACN,OAAO;AAAA,cACP,QAAQ;AAAA,cACR,WAAW,aAAa,UAAU,IAAI,UAAU;AAAA,YAClD;AAAA,YAEC,UAAA;AAAA,UAAA;AAAA,QAAA,GAEL;AAAA,QAED,oBAAA,oBAAA,EAAmB,QAAQ,CAAC,SAC3B,UAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAW,GAAG,QAAQ,kBAAkB;AAAA,cACtC,CAAC,QAAQ,WAAW,GAAG;AAAA,YAAA,CACxB;AAAA,YACD,eAAa;AAAA,YAEZ,gBAAM,SAAS,IAAI,eAAe,CAAC,OAAO,UAAU;AACnD,kBAAI,UAAU,KAAK;AACV,uBAAA,MAAM,aAAa,OAA6B;AAAA,kBACrD;AAAA,gBAAA,CACD;AAAA,cACH;AACO,qBAAA;AAAA,YAAA,CACR;AAAA,UAAA;AAAA,QAAA,GAEL;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN;"}
@@ -1 +1 @@
1
- {"version":3,"file":"WizardContext.js","sources":["../../../../src/Wizard/WizardContext/WizardContext.tsx"],"sourcesContent":["import { createContext, Dispatch, SetStateAction } from \"react\";\n\nexport type HvWizardTab = {\n name?: string;\n valid?: boolean;\n mustValidate?: boolean;\n touched?: boolean;\n form?: any;\n children?: React.ReactNode;\n disabled?: boolean;\n loading?: boolean;\n [other: string]: any;\n};\n\nexport type HvWizardTabs = {\n [tab in number]?: HvWizardTab;\n};\n\ntype HvWizardContextProp = {\n context: HvWizardTabs;\n setContext: React.Dispatch<React.SetStateAction<HvWizardTabs>>;\n summary: boolean;\n setSummary: React.Dispatch<React.SetStateAction<boolean>>;\n tab: number;\n setTab: Dispatch<SetStateAction<number>>;\n};\n\nconst HvWizardContext = createContext<HvWizardContextProp>({\n context: {},\n setContext: () => {},\n summary: false,\n setSummary: () => {},\n tab: 0,\n setTab: () => {},\n});\n\nexport default HvWizardContext;\n"],"names":[],"mappings":";AA2BA,MAAM,kBAAkB,cAAmC;AAAA,EACzD,SAAS,CAAC;AAAA,EACV,YAAY,MAAM;AAAA,EAAC;AAAA,EACnB,SAAS;AAAA,EACT,YAAY,MAAM;AAAA,EAAC;AAAA,EACnB,KAAK;AAAA,EACL,QAAQ,MAAM;AAAA,EAAC;AACjB,CAAC;AAED,MAAA,oBAAe;"}
1
+ {"version":3,"file":"WizardContext.js","sources":["../../../../src/Wizard/WizardContext/WizardContext.tsx"],"sourcesContent":["import { createContext, Dispatch, SetStateAction } from \"react\";\n\nexport type HvWizardTab = {\n name?: string;\n valid?: boolean | null;\n mustValidate?: boolean;\n touched?: boolean;\n form?: any;\n children?: React.ReactNode;\n disabled?: boolean;\n loading?: boolean;\n [other: string]: any;\n};\n\nexport type HvWizardTabs = {\n [tab in number]?: HvWizardTab;\n};\n\ntype HvWizardContextProp = {\n context: HvWizardTabs;\n setContext: React.Dispatch<React.SetStateAction<HvWizardTabs>>;\n summary: boolean;\n setSummary: React.Dispatch<React.SetStateAction<boolean>>;\n tab: number;\n setTab: Dispatch<SetStateAction<number>>;\n};\n\nconst HvWizardContext = createContext<HvWizardContextProp>({\n context: {},\n setContext: () => {},\n summary: false,\n setSummary: () => {},\n tab: 0,\n setTab: () => {},\n});\n\nexport default HvWizardContext;\n"],"names":[],"mappings":";AA2BA,MAAM,kBAAkB,cAAmC;AAAA,EACzD,SAAS,CAAC;AAAA,EACV,YAAY,MAAM;AAAA,EAAC;AAAA,EACnB,SAAS;AAAA,EACT,YAAY,MAAM;AAAA,EAAC;AAAA,EACnB,KAAK;AAAA,EACL,QAAQ,MAAM;AAAA,EAAC;AACjB,CAAC;AAED,MAAA,oBAAe;"}
@@ -7,18 +7,12 @@ import { staticClasses } from "./WizardTitle.styles.js";
7
7
  import HvWizardContext from "../WizardContext/WizardContext.js";
8
8
  import { HvStepNavigation } from "../../StepNavigation/StepNavigation.js";
9
9
  const switchTabState = (state, currentTab, index) => {
10
- if (state.loading)
11
- return "Pending";
12
- if (index === currentTab)
13
- return "Current";
14
- if (state.valid)
15
- return "Completed";
16
- if (state.disabled)
17
- return "Disabled";
18
- if (state.valid === null)
19
- return "Enabled";
20
- if (state.touched && state.valid === false)
21
- return "Failed";
10
+ if (state?.loading) return "Pending";
11
+ if (index === currentTab) return "Current";
12
+ if (state?.valid) return "Completed";
13
+ if (state?.disabled) return "Disabled";
14
+ if (state?.valid === null) return "Enabled";
15
+ if (state?.touched && state?.valid === false) return "Failed";
22
16
  return "Enabled";
23
17
  };
24
18
  const HvWizardTitle = ({
@@ -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 } 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 = (state, currentTab, index) => {\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) {\n const updatedSteps: HvStepProps[] = contextArray.map(\n ([, childState], index) => {\n return {\n title: childState?.name ?? `${index + 1}`,\n state: switchTabState(childState, tab, index),\n onClick: () => setTab(index),\n };\n },\n );\n\n setSteps(updatedSteps);\n }\n }, [context, tab, setTab]);\n\n return (\n <HvDialogTitle\n className={classes.headerContainer}\n classes={{\n messageContainer: classes.messageContainer,\n }}\n >\n <div className={classes.titleContainer}>\n {title && (\n <HvTypography variant=\"title3\" component=\"h3\">\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={classes.buttonWidth}\n classes={{\n root: classes.rootSummaryButton,\n }}\n onClick={toggleSummary}\n startIcon={<Report />}\n >\n {`${labels.summary ?? \"Summary\"}`}\n </HvButton>\n )}\n </div>\n </HvDialogTitle>\n );\n};\n"],"names":[],"mappings":";;;;;;;;AAmCA,MAAM,iBAAiB,CAAC,OAAO,YAAY,UAAU;AACnD,MAAI,MAAM;AAAgB,WAAA;AAC1B,MAAI,UAAU;AAAmB,WAAA;AACjC,MAAI,MAAM;AAAc,WAAA;AACxB,MAAI,MAAM;AAAiB,WAAA;AAC3B,MAAI,MAAM,UAAU;AAAa,WAAA;AAC7B,MAAA,MAAM,WAAW,MAAM,UAAU;AAAc,WAAA;AAC5C,SAAA;AACT;AAEO,MAAM,gBAAgB,CAAC;AAAA,EAC5B;AAAA,EACA,aAAa;AAAA,EACb,SAAS,CAAC;AAAA,EACV,SAAS;AAAA,EACT,aAAa,CAAC;AAChB,MAA0B;AACxB,QAAM,EAAE,SAAS,YAAY,KAAK,WAAW,WAAW,eAAe;AAEvE,QAAM,EAAE,QAAA,IAAY,WAAW,WAAW;AAE1C,QAAM,CAAC,OAAO,QAAQ,IAAI,SAAwB,CAAE,CAAA;AAEpD,YAAU,MAAM;AACd,WAAO,MAAM;AACX,iBAAW,KAAK;AAAA,IAAA;AAAA,EAClB,GACC,CAAC,UAAU,CAAC;AAEf,QAAM,gBAAgB,MAAM;AACf,eAAA,CAAC,cAAc,CAAC,SAAS;AAAA,EAAA;AAGtC,YAAU,MAAM;AACR,UAAA,eAAe,OAAO,QAAQ,OAAO;AAE3C,QAAI,aAAa,QAAQ;AACvB,YAAM,eAA8B,aAAa;AAAA,QAC/C,CAAC,CAAG,EAAA,UAAU,GAAG,UAAU;AAClB,iBAAA;AAAA,YACL,OAAO,YAAY,QAAQ,GAAG,QAAQ,CAAC;AAAA,YACvC,OAAO,eAAe,YAAY,KAAK,KAAK;AAAA,YAC5C,SAAS,MAAM,OAAO,KAAK;AAAA,UAAA;AAAA,QAE/B;AAAA,MAAA;AAGF,eAAS,YAAY;AAAA,IACvB;AAAA,EACC,GAAA,CAAC,SAAS,KAAK,MAAM,CAAC;AAGvB,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW,QAAQ;AAAA,MACnB,SAAS;AAAA,QACP,kBAAkB,QAAQ;AAAA,MAC5B;AAAA,MAEA,UAAC,qBAAA,OAAA,EAAI,WAAW,QAAQ,gBACrB,UAAA;AAAA,QAAA,6BACE,cAAa,EAAA,SAAQ,UAAS,WAAU,MACtC,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,QAAQ;AAAA,YACnB,SAAS;AAAA,cACP,MAAM,QAAQ;AAAA,YAChB;AAAA,YACA,SAAS;AAAA,YACT,+BAAY,QAAO,EAAA;AAAA,YAElB,UAAA,GAAG,OAAO,WAAW,SAAS;AAAA,UAAA;AAAA,QACjC;AAAA,MAAA,GAEJ;AAAA,IAAA;AAAA,EAAA;AAGN;"}
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) {\n const updatedSteps: HvStepProps[] = contextArray.map(\n ([, childState], index) => {\n return {\n title: childState?.name ?? `${index + 1}`,\n state: switchTabState(childState, tab, index),\n onClick: () => setTab(index),\n };\n },\n );\n\n setSteps(updatedSteps);\n }\n }, [context, tab, setTab]);\n\n return (\n <HvDialogTitle\n className={classes.headerContainer}\n classes={{\n messageContainer: classes.messageContainer,\n }}\n >\n <div className={classes.titleContainer}>\n {title && (\n <HvTypography variant=\"title3\" component=\"h3\">\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={classes.buttonWidth}\n classes={{\n root: classes.rootSummaryButton,\n }}\n onClick={toggleSummary}\n startIcon={<Report />}\n >\n {`${labels.summary ?? \"Summary\"}`}\n </HvButton>\n )}\n </div>\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,CAAC;AAChB,MAA0B;AACxB,QAAM,EAAE,SAAS,YAAY,KAAK,WAAW,WAAW,eAAe;AAEvE,QAAM,EAAE,QAAA,IAAY,WAAW,WAAW;AAE1C,QAAM,CAAC,OAAO,QAAQ,IAAI,SAAwB,CAAE,CAAA;AAEpD,YAAU,MAAM;AACd,WAAO,MAAM;AACX,iBAAW,KAAK;AAAA,IAAA;AAAA,EAClB,GACC,CAAC,UAAU,CAAC;AAEf,QAAM,gBAAgB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AAA;AAAA,QACjC;AAAA,MAAA,GAEJ;AAAA,IAAA;AAAA,EAAA;AAGN;"}
@@ -33,10 +33,8 @@ import { HvSize } from '@hitachivantara/uikit-react-core';
33
33
  import { HvSliderProps } from '@hitachivantara/uikit-react-core';
34
34
  import { HvTypographyVariants } from '@hitachivantara/uikit-react-core';
35
35
  import { JSX as JSX_2 } from 'react/jsx-runtime';
36
- import { JSXElementConstructor } from 'react';
37
36
  import { KeyboardEventHandler } from 'react';
38
37
  import { MiniMapProps } from 'reactflow';
39
- import { ModalProps } from '@mui/material/Modal';
40
38
  import { MouseEventHandler } from 'react';
41
39
  import { Node as Node_2 } from 'reactflow';
42
40
  import { NodeProps } from 'reactflow';
@@ -44,7 +42,6 @@ import { NodeToolbarProps } from 'reactflow';
44
42
  import { PanelPosition } from 'reactflow';
45
43
  import { PointerEventHandler } from 'react';
46
44
  import { Position } from 'reactflow';
47
- import { ReactElement } from 'react';
48
45
  import { ReactEventHandler } from 'react';
49
46
  import { ReactFlowInstance } from 'reactflow';
50
47
  import { ReactFlowProps } from 'reactflow';
@@ -172,8 +169,8 @@ export declare const flowNodeClasses: {
172
169
  };
173
170
 
174
171
  export declare const flowSidebarClasses: {
175
- description: "HvFlowSidebar-description";
176
172
  titleContainer: "HvFlowSidebar-titleContainer";
173
+ description: "HvFlowSidebar-description";
177
174
  contentContainer: "HvFlowSidebar-contentContainer";
178
175
  drawerPaper: "HvFlowSidebar-drawerPaper";
179
176
  searchRoot: "HvFlowSidebar-searchRoot";
@@ -770,7 +767,7 @@ export declare type HvWizardActionsClasses = ExtractNames<typeof useClasses_13>;
770
767
 
771
768
  export declare interface HvWizardActionsProps extends HvBaseProps {
772
769
  /** Function to handle the cancel button. */
773
- handleClose: (event: React.SyntheticEvent, reason?: "escapeKeyDown" | "backdropClick") => void;
770
+ handleClose: (event: React.MouseEvent<HTMLButtonElement>) => void;
774
771
  /** Function to handle the submit button. Also sends the current context state. */
775
772
  handleSubmit: (context: any) => void;
776
773
  /** An object containing all the labels for the wizard actions component. */
@@ -808,7 +805,7 @@ export declare interface HvWizardContainerProps extends Omit<HvBaseProps, "onClo
808
805
  /** Current state of the Wizard. */
809
806
  open: boolean;
810
807
  /** Function executed on close. */
811
- handleClose: (event: React.SyntheticEvent, reason?: "escapeKeyDown" | "backdropClick") => void;
808
+ handleClose: HvDialogProps["onClose"];
812
809
  /** A Jss Object used to override or extend the styles applied to the empty state Wizard. */
813
810
  classes?: HvWizardContainerClasses;
814
811
  }
@@ -843,7 +840,7 @@ export declare interface HvWizardProps extends HvBaseProps, Pick<HvDialogProps,
843
840
  /** Current state of the Wizard. */
844
841
  open: boolean;
845
842
  /** Function executed on close. */
846
- onClose: ModalProps["onClose"];
843
+ onClose: (event: React.MouseEvent<HTMLButtonElement> | {}, reason?: "escapeKeyDown" | "backdropClick") => void;
847
844
  /** Function executed on submit. */
848
845
  handleSubmit: (context: HvWizardTabs) => void;
849
846
  /** Title for the wizard. */
@@ -868,7 +865,7 @@ export declare interface HvWizardProps extends HvBaseProps, Pick<HvDialogProps,
868
865
 
869
866
  export declare type HvWizardTab = {
870
867
  name?: string;
871
- valid?: boolean;
868
+ valid?: boolean | null;
872
869
  mustValidate?: boolean;
873
870
  touched?: boolean;
874
871
  form?: any;
@@ -1076,10 +1073,10 @@ declare const useClasses_5: (classesProp?: Partial<Record<"root", string>>, addS
1076
1073
  cx: (...args: any) => string;
1077
1074
  };
1078
1075
 
1079
- declare const useClasses_6: (classesProp?: Partial<Record<"description" | "titleContainer" | "contentContainer" | "drawerPaper" | "searchRoot" | "groupsContainer", string>>, addStatic?: boolean) => {
1076
+ declare const useClasses_6: (classesProp?: Partial<Record<"titleContainer" | "description" | "contentContainer" | "drawerPaper" | "searchRoot" | "groupsContainer", string>>, addStatic?: boolean) => {
1080
1077
  classes: {
1081
- description: string;
1082
1078
  titleContainer: string;
1079
+ description: string;
1083
1080
  contentContainer: string;
1084
1081
  drawerPaper: string;
1085
1082
  searchRoot: string;
@@ -1191,7 +1188,7 @@ declare const useClasses_9: (classesProp?: Partial<Record<"root" | "title" | "ti
1191
1188
  export declare const useFlowContext: () => HvFlowContextValue<string>;
1192
1189
 
1193
1190
  /** Retrieves the nodes connected to the inputs of the node */
1194
- export declare function useFlowInputNodes<T = any>(id?: string): Node_2<T, string | undefined>[];
1191
+ export declare function useFlowInputNodes<T = any>(id?: string): Node_2<T>[];
1195
1192
 
1196
1193
  /** Retrieves the React Flow instance */
1197
1194
  export declare function useFlowInstance<NodeData = any, EdgeData = any>(): HvFlowInstance<NodeData, EdgeData>;
@@ -1200,18 +1197,18 @@ export declare function useFlowInstance<NodeData = any, EdgeData = any>(): HvFlo
1200
1197
  export declare function useFlowNode<T extends Node_2 = Node_2>(id?: string): T | undefined;
1201
1198
 
1202
1199
  /** Offers both input and output edges of the node */
1203
- export declare function useFlowNodeEdges(id?: string): Edge<any>[];
1200
+ export declare function useFlowNodeEdges(id?: string): Edge[];
1204
1201
 
1205
1202
  /** Provides the input edges connected to the node */
1206
- export declare function useFlowNodeInputEdges(id?: string): Edge<any>[];
1203
+ export declare function useFlowNodeInputEdges(id?: string): Edge[];
1207
1204
 
1208
1205
  export declare function useFlowNodeMeta(id?: string): HvFlowNodeMeta | undefined;
1209
1206
 
1210
1207
  /** Gives the output edges connected from the node */
1211
- export declare function useFlowNodeOutputEdges(id?: string): Edge<any>[];
1208
+ export declare function useFlowNodeOutputEdges(id?: string): Edge[];
1212
1209
 
1213
1210
  /** Gets the parent nodes of a specified node (nodes that have an output connected to one of the inputs of the node) */
1214
- export declare function useFlowNodeParents(id?: string): Node_2<any, string | undefined>[];
1211
+ export declare function useFlowNodeParents(id?: string): Node_2[];
1215
1212
 
1216
1213
  /** Utilities to manipulate a node in the flow */
1217
1214
  export declare function useFlowNodeUtils<NodeData = any>(id?: string): {
@@ -1219,32 +1216,32 @@ export declare function useFlowNodeUtils<NodeData = any>(id?: string): {
1219
1216
  };
1220
1217
 
1221
1218
  /** Retrieves the nodes connected to the outputs of the node */
1222
- export declare function useFlowOutputNodes<T = any>(id?: string): Node_2<T, string | undefined>[];
1219
+ export declare function useFlowOutputNodes<T = any>(id?: string): Node_2<T>[];
1223
1220
 
1224
1221
  export declare function useHvNode(props: HvUseNodeParams): {
1225
1222
  id: string;
1226
1223
  title: string | undefined;
1227
- icon: string | number | boolean | Iterable<ReactNode> | ReactElement<unknown, string | JSXElementConstructor<any>> | null | undefined;
1224
+ icon: ReactNode;
1228
1225
  color: string | undefined;
1229
1226
  iconColor: string | undefined;
1230
1227
  subtitle: any;
1231
1228
  inputs: (HvFlowNodeInput | HvFlowNodeOutput | {
1232
1229
  inputs: HvFlowNodeInput[];
1233
- label: ReactNode;
1230
+ label: React.ReactNode;
1234
1231
  } | {
1235
1232
  outputs: HvFlowNodeOutput[];
1236
- label: ReactNode;
1233
+ label: React.ReactNode;
1237
1234
  })[] | undefined;
1238
- inputEdges: Edge<any>[];
1235
+ inputEdges: Edge[];
1239
1236
  outputs: (HvFlowNodeInput | HvFlowNodeOutput | {
1240
1237
  inputs: HvFlowNodeInput[];
1241
- label: ReactNode;
1238
+ label: React.ReactNode;
1242
1239
  } | {
1243
1240
  outputs: HvFlowNodeOutput[];
1244
- label: ReactNode;
1241
+ label: React.ReactNode;
1245
1242
  })[] | undefined;
1246
- outputEdges: Edge<any>[];
1247
- node: Node_2<any, string | undefined> | undefined;
1243
+ outputEdges: Edge[];
1244
+ node: Node_2 | undefined;
1248
1245
  nodeActions: HvFlowNodeAction[];
1249
1246
  showActions: boolean;
1250
1247
  getNodeToolbarProps: () => {
@@ -1255,7 +1252,7 @@ export declare function useHvNode(props: HvUseNodeParams): {
1255
1252
  accessKey?: string | undefined;
1256
1253
  autoFocus?: boolean | undefined;
1257
1254
  className?: string | undefined;
1258
- contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
1255
+ contentEditable?: (boolean | "false" | "true") | "inherit" | "plaintext-only" | undefined;
1259
1256
  contextMenu?: string | undefined;
1260
1257
  dir?: string | undefined;
1261
1258
  draggable?: (boolean | "false" | "true") | undefined;
@@ -1268,7 +1265,7 @@ export declare function useHvNode(props: HvUseNodeParams): {
1268
1265
  style?: CSSProperties | undefined;
1269
1266
  tabIndex?: number | undefined;
1270
1267
  title?: string | undefined;
1271
- translate?: "no" | "yes" | undefined;
1268
+ translate?: "yes" | "no" | undefined;
1272
1269
  radioGroup?: string | undefined;
1273
1270
  role?: AriaRole | undefined;
1274
1271
  about?: string | undefined;
@@ -1294,32 +1291,32 @@ export declare function useHvNode(props: HvUseNodeParams): {
1294
1291
  results?: number | undefined;
1295
1292
  security?: string | undefined;
1296
1293
  unselectable?: "on" | "off" | undefined;
1297
- inputMode?: "search" | "none" | "text" | "email" | "tel" | "url" | "numeric" | "decimal" | undefined;
1294
+ inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
1298
1295
  is?: string | undefined;
1299
1296
  children?: ReactNode;
1300
1297
  "aria-activedescendant"?: string | undefined;
1301
1298
  "aria-atomic"?: (boolean | "false" | "true") | undefined;
1302
- "aria-autocomplete"?: "none" | "list" | "both" | "inline" | undefined;
1299
+ "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
1303
1300
  "aria-braillelabel"?: string | undefined;
1304
1301
  "aria-brailleroledescription"?: string | undefined;
1305
1302
  "aria-busy"?: (boolean | "false" | "true") | undefined;
1306
- "aria-checked"?: boolean | "mixed" | "false" | "true" | undefined;
1303
+ "aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
1307
1304
  "aria-colcount"?: number | undefined;
1308
1305
  "aria-colindex"?: number | undefined;
1309
1306
  "aria-colindextext"?: string | undefined;
1310
1307
  "aria-colspan"?: number | undefined;
1311
1308
  "aria-controls"?: string | undefined;
1312
- "aria-current"?: boolean | "page" | "step" | "false" | "true" | "time" | "date" | "location" | undefined;
1309
+ "aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
1313
1310
  "aria-describedby"?: string | undefined;
1314
1311
  "aria-description"?: string | undefined;
1315
1312
  "aria-details"?: string | undefined;
1316
1313
  "aria-disabled"?: (boolean | "false" | "true") | undefined;
1317
- "aria-dropeffect"?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
1314
+ "aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
1318
1315
  "aria-errormessage"?: string | undefined;
1319
1316
  "aria-expanded"?: (boolean | "false" | "true") | undefined;
1320
1317
  "aria-flowto"?: string | undefined;
1321
1318
  "aria-grabbed"?: (boolean | "false" | "true") | undefined;
1322
- "aria-haspopup"?: boolean | "grid" | "menu" | "listbox" | "false" | "true" | "dialog" | "tree" | undefined;
1319
+ "aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
1323
1320
  "aria-hidden"?: (boolean | "false" | "true") | undefined;
1324
1321
  "aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
1325
1322
  "aria-keyshortcuts"?: string | undefined;
@@ -1330,13 +1327,13 @@ export declare function useHvNode(props: HvUseNodeParams): {
1330
1327
  "aria-modal"?: (boolean | "false" | "true") | undefined;
1331
1328
  "aria-multiline"?: (boolean | "false" | "true") | undefined;
1332
1329
  "aria-multiselectable"?: (boolean | "false" | "true") | undefined;
1333
- "aria-orientation"?: "vertical" | "horizontal" | undefined;
1330
+ "aria-orientation"?: "horizontal" | "vertical" | undefined;
1334
1331
  "aria-owns"?: string | undefined;
1335
1332
  "aria-placeholder"?: string | undefined;
1336
1333
  "aria-posinset"?: number | undefined;
1337
- "aria-pressed"?: boolean | "mixed" | "false" | "true" | undefined;
1334
+ "aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
1338
1335
  "aria-readonly"?: (boolean | "false" | "true") | undefined;
1339
- "aria-relevant"?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
1336
+ "aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
1340
1337
  "aria-required"?: (boolean | "false" | "true") | undefined;
1341
1338
  "aria-roledescription"?: string | undefined;
1342
1339
  "aria-rowcount"?: number | undefined;
@@ -1513,11 +1510,11 @@ export declare function useHvNode(props: HvUseNodeParams): {
1513
1510
  onAnimationIterationCapture?: AnimationEventHandler<HTMLDivElement> | undefined;
1514
1511
  onTransitionEnd?: TransitionEventHandler<HTMLDivElement> | undefined;
1515
1512
  onTransitionEndCapture?: TransitionEventHandler<HTMLDivElement> | undefined;
1516
- nodeId?: string | string[] | undefined;
1513
+ nodeId?: string | string[];
1517
1514
  isVisible: boolean;
1518
- position?: Position | undefined;
1515
+ position?: Position;
1519
1516
  offset: number;
1520
- align?: Align | undefined;
1517
+ align?: Align;
1521
1518
  };
1522
1519
  toggleShowActions: () => void;
1523
1520
  handleDefaultAction: (action: HvFlowNodeAction) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hitachivantara/uikit-react-lab",
3
- "version": "5.37.1",
3
+ "version": "5.37.3",
4
4
  "private": false,
5
5
  "author": "Hitachi Vantara UI Kit Team",
6
6
  "description": "Contributed React components for the NEXT UI Kit.",
@@ -33,8 +33,8 @@
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.66.11",
37
- "@hitachivantara/uikit-react-icons": "^5.10.3",
36
+ "@hitachivantara/uikit-react-core": "^5.66.13",
37
+ "@hitachivantara/uikit-react-icons": "^5.10.4",
38
38
  "@hitachivantara/uikit-styles": "^5.31.0",
39
39
  "@mui/base": "^5.0.0-beta.40",
40
40
  "@types/react-grid-layout": "^1.3.5",
@@ -51,7 +51,7 @@
51
51
  "access": "public",
52
52
  "directory": "package"
53
53
  },
54
- "gitHead": "3786c516514ce5870060b8ebb14199906aa85e58",
54
+ "gitHead": "783ab99a5fb41ad89f810e44fc15c1853a7f8381",
55
55
  "exports": {
56
56
  ".": {
57
57
  "require": "./dist/cjs/index.cjs",