@hitachivantara/uikit-react-lab 5.43.3 → 5.43.4

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.
@@ -125,18 +125,17 @@ const HvBlade = (props) => {
125
125
  const bladeRef = react.useRef(null);
126
126
  const [maxWidth, setMaxWidth] = react.useState(void 0);
127
127
  react.useEffect(() => {
128
- if (bladeRef.current) {
129
- const resizeObserver = new ResizeObserver((entries) => {
130
- setMaxWidth(entries[0].target.clientWidth);
131
- });
132
- resizeObserver.observe(
133
- // using the blade's container as reference max-width is more stable
134
- bladeRef.current.parentElement ?? bladeRef.current
135
- );
136
- return () => {
137
- resizeObserver.disconnect();
138
- };
139
- }
128
+ if (!bladeRef.current) return;
129
+ const resizeObserver = new ResizeObserver((entries) => {
130
+ setMaxWidth(entries[0].target.clientWidth);
131
+ });
132
+ resizeObserver.observe(
133
+ // using the blade's container as reference max-width is more stable
134
+ bladeRef.current.parentElement ?? bladeRef.current
135
+ );
136
+ return () => {
137
+ resizeObserver.disconnect();
138
+ };
140
139
  }, [isExpanded]);
141
140
  const { style: containerStyle, ...otherContainerProps } = containerProps || {};
142
141
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -5,8 +5,6 @@ const useNodeId = require("./useNodeId.cjs");
5
5
  function useFlowNodeMeta(id) {
6
6
  const nodeId = useNodeId.useNodeId(id);
7
7
  const { registry } = NodeMetaContext.useNodeMetaRegistry();
8
- if (nodeId) {
9
- return registry[nodeId];
10
- }
8
+ return registry[nodeId];
11
9
  }
12
10
  exports.useFlowNodeMeta = useFlowNodeMeta;
@@ -6,8 +6,8 @@ const uikitReactCore = require("@hitachivantara/uikit-react-core");
6
6
  const uikitStyles = require("@hitachivantara/uikit-styles");
7
7
  const StepNavigation_styles = require("./StepNavigation.styles.cjs");
8
8
  const utils = require("./utils.cjs");
9
- const DefaultNavigation = require("./DefaultNavigation/DefaultNavigation.cjs");
10
9
  const SimpleNavigation = require("./SimpleNavigation/SimpleNavigation.cjs");
10
+ const DefaultNavigation = require("./DefaultNavigation/DefaultNavigation.cjs");
11
11
  const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
12
12
  const styled__default = /* @__PURE__ */ _interopDefault(styled);
13
13
  const HvStepNavigation = ({
@@ -124,18 +124,17 @@ const HvBlade = (props) => {
124
124
  const bladeRef = useRef(null);
125
125
  const [maxWidth, setMaxWidth] = useState(void 0);
126
126
  useEffect(() => {
127
- if (bladeRef.current) {
128
- const resizeObserver = new ResizeObserver((entries) => {
129
- setMaxWidth(entries[0].target.clientWidth);
130
- });
131
- resizeObserver.observe(
132
- // using the blade's container as reference max-width is more stable
133
- bladeRef.current.parentElement ?? bladeRef.current
134
- );
135
- return () => {
136
- resizeObserver.disconnect();
137
- };
138
- }
127
+ if (!bladeRef.current) return;
128
+ const resizeObserver = new ResizeObserver((entries) => {
129
+ setMaxWidth(entries[0].target.clientWidth);
130
+ });
131
+ resizeObserver.observe(
132
+ // using the blade's container as reference max-width is more stable
133
+ bladeRef.current.parentElement ?? bladeRef.current
134
+ );
135
+ return () => {
136
+ resizeObserver.disconnect();
137
+ };
139
138
  }, [isExpanded]);
140
139
  const { style: containerStyle, ...otherContainerProps } = containerProps || {};
141
140
  return /* @__PURE__ */ jsxs(
@@ -1 +1 @@
1
- {"version":3,"file":"Blade.js","sources":["../../../src/Blade/Blade.tsx"],"sourcesContent":["import {\n HTMLAttributes,\n SyntheticEvent,\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState,\n} from \"react\";\nimport {\n ExtractNames,\n HvBaseProps,\n HvTypography,\n HvTypographyVariants,\n setId,\n useControlled,\n useDefaultProps,\n useUniqueId,\n} from \"@hitachivantara/uikit-react-core\";\n\nimport { staticClasses, useClasses } from \"./Blade.styles\";\n\nexport { staticClasses as bladeClasses };\n\nexport type HvBladeClasses = ExtractNames<typeof useClasses>;\n\nexport interface HvBladeProps\n extends HvBaseProps<HTMLDivElement, \"onChange\" | \"children\"> {\n /**\n * The content that will be rendered within the blade.\n */\n children: React.ReactNode;\n\n /**\n * The content of the blade's button.\n *\n * If a render function is provided, it will be called with the expanded state as an argument.\n */\n label?: React.ReactNode | ((expanded: boolean) => React.ReactNode);\n /**\n * Typography variant for the blade's button label.\n */\n labelVariant?: HvTypographyVariants;\n /**\n * Heading Level to apply to blade button.\n *\n * If 'undefined', the button will not have a header wrapper.\n */\n headingLevel?: 1 | 2 | 3 | 4 | 5 | 6;\n\n /**\n * Indicates whether the blade is expanded or not.\n *\n * When defined the expanded state becomes controlled.\n *\n * @default undefined\n */\n expanded?: boolean;\n /**\n * Specifies the initial expanded state of the blade when it is uncontrolled.\n */\n defaultExpanded?: boolean;\n\n /**\n * Callback function triggered when the blade's button is pressed.\n * It receives the event and the new expanded state as arguments.\n *\n * If the blade is uncontrolled, this new state will be effective.\n * If the blade is 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 {boolean} value The new value.\n */\n onChange?: (event: React.SyntheticEvent, value: boolean) => void;\n\n /**\n * Specifies whether the blade is disabled. If true, the blade cannot be interacted with.\n */\n disabled?: boolean;\n\n /**\n * If true, the blade will take up the maximum width of the container when expanded.\n */\n fullWidth?: boolean;\n\n /**\n * Props to be passed to the button that toggles the blade's expanded state.\n * This can be used to further customize the appearance or behavior of the blade's button,\n * e.g. to set the aria-label attribute.\n */\n buttonProps?: HTMLAttributes<HTMLDivElement>;\n /**\n * Props to be passed to the container div that holds the blade's children.\n * This can be used to further customize the appearance or behavior of the blade's content area.\n */\n containerProps?: HTMLAttributes<HTMLDivElement>;\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes?: HvBladeClasses;\n}\n\n/**\n * A blade is a design element that expands horizontally to reveal information, similar to an accordion.\n *\n * It is usually stacked horizontally with other blades and works best when used within a flex container.\n * The `HvBlades` component is recommended for this purpose, as it also provides better management of the\n * blades' expanded state.\n */\nexport const HvBlade = (props: HvBladeProps) => {\n const {\n id: idProp,\n className,\n classes: classesProp,\n expanded,\n defaultExpanded = false,\n label,\n labelVariant = \"label\",\n headingLevel,\n onChange,\n disabled = false,\n children,\n fullWidth,\n buttonProps,\n containerProps,\n ...others\n } = useDefaultProps(\"HvBlade\", props);\n\n const { classes, cx } = useClasses(classesProp);\n\n const [isExpanded, setIsExpanded] = useControlled(\n expanded,\n Boolean(defaultExpanded),\n );\n\n const handleAction = useCallback(\n (event: SyntheticEvent) => {\n if (!disabled) {\n onChange?.(event, !isExpanded);\n\n // This will only run if uncontrolled\n setIsExpanded(!isExpanded);\n\n return true;\n }\n return false;\n },\n [disabled, onChange, isExpanded, setIsExpanded],\n );\n\n const handleClick = useCallback(\n (event: SyntheticEvent) => {\n handleAction(event);\n event.preventDefault();\n event.stopPropagation();\n },\n [handleAction],\n );\n\n const handleKeyDown = useCallback(\n (event: React.KeyboardEvent<HTMLDivElement>) => {\n let isEventHandled = false;\n const { key } = event;\n\n if (\n event.altKey ||\n event.ctrlKey ||\n event.metaKey ||\n event.currentTarget !== event.target\n ) {\n return;\n }\n switch (key) {\n case \"Enter\":\n case \" \":\n isEventHandled = handleAction(event);\n break;\n default:\n return;\n }\n\n if (isEventHandled) {\n event.preventDefault();\n event.stopPropagation();\n }\n },\n [handleAction],\n );\n\n const id = useUniqueId(idProp);\n const bladeHeaderId = setId(id, \"button\");\n const bladeContainerId = setId(id, \"container\");\n const bladeHeader = useMemo(() => {\n const buttonLabel = typeof label === \"function\" ? label(isExpanded) : label;\n\n const bladeButton = (\n <HvTypography\n id={bladeHeaderId}\n component=\"div\"\n role=\"button\"\n className={cx(classes.button, {\n [classes.disabled]: disabled,\n [classes.textOnlyLabel]: typeof buttonLabel === \"string\",\n })}\n style={{ flexShrink: headingLevel === undefined ? 0 : undefined }}\n disabled={disabled}\n tabIndex={0}\n onKeyDown={handleKeyDown}\n onClick={handleClick}\n variant={labelVariant}\n aria-expanded={isExpanded}\n aria-controls={bladeContainerId}\n {...buttonProps}\n >\n {buttonLabel}\n </HvTypography>\n );\n return headingLevel === undefined ? (\n bladeButton\n ) : (\n <HvTypography\n component={`h${headingLevel}`}\n variant={labelVariant}\n className={classes.heading}\n style={{ flexShrink: 0 }}\n >\n {bladeButton}\n </HvTypography>\n );\n }, [\n bladeContainerId,\n bladeHeaderId,\n buttonProps,\n classes.button,\n classes.disabled,\n classes.heading,\n classes.textOnlyLabel,\n cx,\n disabled,\n handleClick,\n handleKeyDown,\n headingLevel,\n isExpanded,\n label,\n labelVariant,\n ]);\n\n const bladeRef = useRef<HTMLDivElement>(null);\n const [maxWidth, setMaxWidth] = useState<number | undefined>(undefined);\n useEffect(() => {\n if (bladeRef.current) {\n const resizeObserver = new ResizeObserver((entries) => {\n setMaxWidth(entries[0].target.clientWidth);\n });\n resizeObserver.observe(\n // using the blade's container as reference max-width is more stable\n bladeRef.current.parentElement ?? bladeRef.current,\n );\n return () => {\n resizeObserver.disconnect();\n };\n }\n }, [isExpanded]);\n\n const { style: containerStyle, ...otherContainerProps } =\n containerProps || {};\n\n return (\n <div\n ref={bladeRef}\n id={idProp}\n className={cx(classes.root, className, {\n [classes.fullWidth]: fullWidth,\n [classes.expanded]: isExpanded,\n })}\n {...others}\n >\n {bladeHeader}\n <div\n id={bladeContainerId}\n role=\"region\"\n aria-labelledby={bladeHeaderId}\n className={classes.container}\n hidden={!isExpanded}\n style={{\n ...containerStyle,\n maxWidth: isExpanded ? maxWidth : 0,\n }}\n {...otherContainerProps}\n >\n {children}\n </div>\n </div>\n );\n};\n"],"names":[],"mappings":";;;;;AA6Ga,MAAA,UAAU,CAAC,UAAwB;AACxC,QAAA;AAAA,IACJ,IAAI;AAAA,IACJ;AAAA,IACA,SAAS;AAAA,IACT;AAAA,IACA,kBAAkB;AAAA,IAClB;AAAA,IACA,eAAe;AAAA,IACf;AAAA,IACA;AAAA,IACA,WAAW;AAAA,IACX;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EAAA,IACD,gBAAgB,WAAW,KAAK;AAEpC,QAAM,EAAE,SA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A,IAAC;AAAA,IAAA;AAAA,MACC,KAAK;AAAA,MACL,IAAI;AAAA,MACJ,WAAW,GAAG,QAAQ,MAAM,WAAW;AAAA,QACrC,CAAC,QAAQ,SAAS,GAAG;AAAA,QACrB,CAAC,QAAQ,QAAQ,GAAG;AAAA,MAAA,CACrB;AAAA,MACA,GAAG;AAAA,MAEH,UAAA;AAAA,QAAA;AAAA,QACD;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,IAAI;AAAA,YACJ,MAAK;AAAA,YACL,mBAAiB;AAAA,YACjB,WAAW,QAAQ;AAAA,YACnB,QAAQ,CAAC;AAAA,YACT,OAAO;AAAA,cACL,GAAG;AAAA,cACH,UAAU,aAAa,WAAW;AAAA,YACpC;AAAA,YACC,GAAG;AAAA,YAEH;AAAA,UAAA;AAAA,QAAA;AAAA,MACH;AAAA,IAAA;AAAA,EACF;AAEJ;"}
1
+ {"version":3,"file":"Blade.js","sources":["../../../src/Blade/Blade.tsx"],"sourcesContent":["import {\n HTMLAttributes,\n SyntheticEvent,\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState,\n} from \"react\";\nimport {\n ExtractNames,\n HvBaseProps,\n HvTypography,\n HvTypographyVariants,\n setId,\n useControlled,\n useDefaultProps,\n useUniqueId,\n} from \"@hitachivantara/uikit-react-core\";\n\nimport { staticClasses, useClasses } from \"./Blade.styles\";\n\nexport { staticClasses as bladeClasses };\n\nexport type HvBladeClasses = ExtractNames<typeof useClasses>;\n\nexport interface HvBladeProps\n extends HvBaseProps<HTMLDivElement, \"onChange\" | \"children\"> {\n /**\n * The content that will be rendered within the blade.\n */\n children: React.ReactNode;\n\n /**\n * The content of the blade's button.\n *\n * If a render function is provided, it will be called with the expanded state as an argument.\n */\n label?: React.ReactNode | ((expanded: boolean) => React.ReactNode);\n /**\n * Typography variant for the blade's button label.\n */\n labelVariant?: HvTypographyVariants;\n /**\n * Heading Level to apply to blade button.\n *\n * If 'undefined', the button will not have a header wrapper.\n */\n headingLevel?: 1 | 2 | 3 | 4 | 5 | 6;\n\n /**\n * Indicates whether the blade is expanded or not.\n *\n * When defined the expanded state becomes controlled.\n *\n * @default undefined\n */\n expanded?: boolean;\n /**\n * Specifies the initial expanded state of the blade when it is uncontrolled.\n */\n defaultExpanded?: boolean;\n\n /**\n * Callback function triggered when the blade's button is pressed.\n * It receives the event and the new expanded state as arguments.\n *\n * If the blade is uncontrolled, this new state will be effective.\n * If the blade is 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 {boolean} value The new value.\n */\n onChange?: (event: React.SyntheticEvent, value: boolean) => void;\n\n /**\n * Specifies whether the blade is disabled. If true, the blade cannot be interacted with.\n */\n disabled?: boolean;\n\n /**\n * If true, the blade will take up the maximum width of the container when expanded.\n */\n fullWidth?: boolean;\n\n /**\n * Props to be passed to the button that toggles the blade's expanded state.\n * This can be used to further customize the appearance or behavior of the blade's button,\n * e.g. to set the aria-label attribute.\n */\n buttonProps?: HTMLAttributes<HTMLDivElement>;\n /**\n * Props to be passed to the container div that holds the blade's children.\n * This can be used to further customize the appearance or behavior of the blade's content area.\n */\n containerProps?: HTMLAttributes<HTMLDivElement>;\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes?: HvBladeClasses;\n}\n\n/**\n * A blade is a design element that expands horizontally to reveal information, similar to an accordion.\n *\n * It is usually stacked horizontally with other blades and works best when used within a flex container.\n * The `HvBlades` component is recommended for this purpose, as it also provides better management of the\n * blades' expanded state.\n */\nexport const HvBlade = (props: HvBladeProps) => {\n const {\n id: idProp,\n className,\n classes: classesProp,\n expanded,\n defaultExpanded = false,\n label,\n labelVariant = \"label\",\n headingLevel,\n onChange,\n disabled = false,\n children,\n fullWidth,\n buttonProps,\n containerProps,\n ...others\n } = useDefaultProps(\"HvBlade\", props);\n\n const { classes, cx } = useClasses(classesProp);\n\n const [isExpanded, setIsExpanded] = useControlled(\n expanded,\n Boolean(defaultExpanded),\n );\n\n const handleAction = useCallback(\n (event: SyntheticEvent) => {\n if (!disabled) {\n onChange?.(event, !isExpanded);\n\n // This will only run if uncontrolled\n setIsExpanded(!isExpanded);\n\n return true;\n }\n return false;\n },\n [disabled, onChange, isExpanded, setIsExpanded],\n );\n\n const handleClick = useCallback(\n (event: SyntheticEvent) => {\n handleAction(event);\n event.preventDefault();\n event.stopPropagation();\n },\n [handleAction],\n );\n\n const handleKeyDown = useCallback(\n (event: React.KeyboardEvent<HTMLDivElement>) => {\n let isEventHandled = false;\n const { key } = event;\n\n if (\n event.altKey ||\n event.ctrlKey ||\n event.metaKey ||\n event.currentTarget !== event.target\n ) {\n return;\n }\n switch (key) {\n case \"Enter\":\n case \" \":\n isEventHandled = handleAction(event);\n break;\n default:\n return;\n }\n\n if (isEventHandled) {\n event.preventDefault();\n event.stopPropagation();\n }\n },\n [handleAction],\n );\n\n const id = useUniqueId(idProp);\n const bladeHeaderId = setId(id, \"button\");\n const bladeContainerId = setId(id, \"container\");\n const bladeHeader = useMemo(() => {\n const buttonLabel = typeof label === \"function\" ? label(isExpanded) : label;\n\n const bladeButton = (\n <HvTypography\n id={bladeHeaderId}\n component=\"div\"\n role=\"button\"\n className={cx(classes.button, {\n [classes.disabled]: disabled,\n [classes.textOnlyLabel]: typeof buttonLabel === \"string\",\n })}\n style={{ flexShrink: headingLevel === undefined ? 0 : undefined }}\n disabled={disabled}\n tabIndex={0}\n onKeyDown={handleKeyDown}\n onClick={handleClick}\n variant={labelVariant}\n aria-expanded={isExpanded}\n aria-controls={bladeContainerId}\n {...buttonProps}\n >\n {buttonLabel}\n </HvTypography>\n );\n return headingLevel === undefined ? (\n bladeButton\n ) : (\n <HvTypography\n component={`h${headingLevel}`}\n variant={labelVariant}\n className={classes.heading}\n style={{ flexShrink: 0 }}\n >\n {bladeButton}\n </HvTypography>\n );\n }, [\n bladeContainerId,\n bladeHeaderId,\n buttonProps,\n classes.button,\n classes.disabled,\n classes.heading,\n classes.textOnlyLabel,\n cx,\n disabled,\n handleClick,\n handleKeyDown,\n headingLevel,\n isExpanded,\n label,\n labelVariant,\n ]);\n\n const bladeRef = useRef<HTMLDivElement>(null);\n const [maxWidth, setMaxWidth] = useState<number | undefined>(undefined);\n useEffect(() => {\n if (!bladeRef.current) return;\n const resizeObserver = new ResizeObserver((entries) => {\n setMaxWidth(entries[0].target.clientWidth);\n });\n resizeObserver.observe(\n // using the blade's container as reference max-width is more stable\n bladeRef.current.parentElement ?? bladeRef.current,\n );\n return () => {\n resizeObserver.disconnect();\n };\n }, [isExpanded]);\n\n const { style: containerStyle, ...otherContainerProps } =\n containerProps || {};\n\n return (\n <div\n ref={bladeRef}\n id={idProp}\n className={cx(classes.root, className, {\n [classes.fullWidth]: fullWidth,\n [classes.expanded]: isExpanded,\n })}\n {...others}\n >\n {bladeHeader}\n <div\n id={bladeContainerId}\n role=\"region\"\n aria-labelledby={bladeHeaderId}\n className={classes.container}\n hidden={!isExpanded}\n style={{\n ...containerStyle,\n maxWidth: isExpanded ? maxWidth : 0,\n }}\n {...otherContainerProps}\n >\n {children}\n </div>\n </div>\n );\n};\n"],"names":[],"mappings":";;;;;AA6Ga,MAAA,UAAU,CAAC,UAAwB;AACxC,QAAA;AAAA,IACJ,IAAI;AAAA,IACJ;AAAA,IACA,SAAS;AAAA,IACT;AAAA,IACA,kBAAkB;AAAA,IAClB;AAAA,IACA,eAAe;AAAA,IACf;AAAA,IACA;AAAA,IACA,WAAW;AAAA,IACX;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EAAA,IACD,gBAAgB,WAAW,KAAK;AAEpC,QAAM,EAAE,SAAS,OAAO,WAAW,WAAW;AAExC,QAAA,CAAC,YAAY,aAAa,IAAI;AAAA,IAClC;AAAA,IACA,QAAQ,eAAe;AAAA,EACzB;AAEA,QAAM,eAAe;AAAA,IACnB,CAAC,UAA0B;AACzB,UAAI,CAAC,UAAU;AACF,mBAAA,OAAO,CAAC,UAAU;AAG7B,sBAAc,CAAC,UAAU;AAElB,eAAA;AAAA,MAA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AAC;AAAA,UAAA;AAAA,YACC,IAAI;AAAA,YACJ,MAAK;AAAA,YACL,mBAAiB;AAAA,YACjB,WAAW,QAAQ;AAAA,YACnB,QAAQ,CAAC;AAAA,YACT,OAAO;AAAA,cACL,GAAG;AAAA,cACH,UAAU,aAAa,WAAW;AAAA,YACpC;AAAA,YACC,GAAG;AAAA,YAEH;AAAA,UAAA;AAAA,QAAA;AAAA,MACH;AAAA,IAAA;AAAA,EACF;AAEJ;"}
@@ -1,5 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { createContext, useContext, useRef, useCallback, useMemo } from "react";
2
+ import { useContext, createContext, useRef, useCallback, useMemo } from "react";
3
3
  const HvFlowNodeMetaContext = createContext(void 0);
4
4
  const HvFlowNodeMetaProvider = ({
5
5
  children
@@ -1,6 +1,6 @@
1
- import { jsxs, Fragment, jsx } from "react/jsx-runtime";
1
+ import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
2
  import { useState } from "react";
3
- import { useLabels, theme, HvTooltip, HvButton, HvTypography, HvInlineEditor, HvActionsGeneric } from "@hitachivantara/uikit-react-core";
3
+ import { useLabels, theme, HvTypography, HvInlineEditor, HvActionsGeneric, HvTooltip, HvButton } from "@hitachivantara/uikit-react-core";
4
4
  import { Info, DropDownXS } from "@hitachivantara/uikit-react-icons";
5
5
  import { HvFlowBaseNode } from "./BaseNode.js";
6
6
  import { useClasses } from "./Node.styles.js";
@@ -1 +1 @@
1
- {"version":3,"file":"DraggableSidebarGroupItem.js","sources":["../../../../../../src/Flow/Sidebar/SidebarGroup/SidebarGroupItem/DraggableSidebarGroupItem.tsx"],"sourcesContent":["import { useRef } from \"react\";\nimport { useDraggable } from \"@dnd-kit/core\";\nimport { useForkRef } from \"@mui/material/utils\";\nimport { useUniqueId } from \"@hitachivantara/uikit-react-core\";\n\nimport { HvFlowGroupItem } from \"../../../types\";\nimport {\n HvFlowSidebarGroupItem,\n HvFlowSidebarGroupItemProps,\n} from \"./SidebarGroupItem\";\n\nexport interface HvFlowDraggableSidebarGroupItemProps\n extends HvFlowSidebarGroupItemProps,\n HvFlowGroupItem {}\n\nexport const HvFlowDraggableSidebarGroupItem = ({\n id: idProp,\n label,\n nodeType,\n data,\n ...others\n}: HvFlowDraggableSidebarGroupItemProps) => {\n const itemRef = useRef<HTMLElement>(null);\n const id = useUniqueId(idProp);\n\n const { attributes, listeners, setNodeRef, isDragging, transform } =\n useDraggable({\n id,\n data: {\n hvFlow: {\n // Needed to know which item is being dragged and dropped\n type: nodeType,\n // Needed for the drag overlay: otherwise the item is cut by the drawer because of overflow\n label,\n // Item position: used to position the item when dropped\n x: itemRef.current?.getBoundingClientRect().x,\n y: itemRef.current?.getBoundingClientRect().y,\n // Data\n data,\n },\n },\n });\n\n const forkedRef = useForkRef(itemRef, setNodeRef);\n\n const style = transform\n ? {\n transform: `translate3d(${transform.x}px, ${transform.y}px, 0)`,\n }\n : undefined;\n\n return (\n <HvFlowSidebarGroupItem\n ref={forkedRef}\n style={style}\n label={label}\n isDragging={isDragging}\n {...listeners}\n {...attributes}\n {...others}\n />\n );\n};\n"],"names":[],"mappings":";;;;;;AAeO,MAAM,kCAAkC,CAAC;AAAA,EAC9C,IAAI;AAAA,EACJ;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAA4C;AACpC,QAAA,UAAU,OAAoB,IAAI;AAClC,QAAA,KAAK,YAAY,MAAM;AAE7B,QAAM,EAAE,YAAY,WAAW,YAAY,YAAY,cACrD,aAAa;AAAA,IACX;AAAA,IACA,MAAM;AAAA,MACJ,QAAQ;AAAA;AAAA,QAEN,MAAM;AAAA;AAAA,QAEN;AAAA;AAAA,QAEA,GAAG,QAAQ,SAAS,sBAAwB,EAAA;AAAA,QAC5C,GAAG,QAAQ,SAAS,sBAAwB,EAAA;AAAA;AAAA,QAE5C;AAAA,MAAA;AAAA,IACF;AAAA,EACF,CACD;AAEG,QAAA,YAAY,WAAW,SAAS,UAAU;AAEhD,QAAM,QAAQ,YACV;AAAA,IACE,WAAW,eAAe,UAAU,CAAC,OAAO,UAAU,CAAC;AAAA,EAEzD,IAAA;AAGF,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,KAAK;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,MACC,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,IAAA;AAAA,EACN;AAEJ;"}
1
+ {"version":3,"file":"DraggableSidebarGroupItem.js","sources":["../../../../../../src/Flow/Sidebar/SidebarGroup/SidebarGroupItem/DraggableSidebarGroupItem.tsx"],"sourcesContent":["import { useRef } from \"react\";\nimport { useDraggable } from \"@dnd-kit/core\";\nimport { useForkRef } from \"@mui/material/utils\";\nimport { useUniqueId } from \"@hitachivantara/uikit-react-core\";\n\nimport { HvFlowGroupItem } from \"../../../types\";\nimport {\n HvFlowSidebarGroupItem,\n HvFlowSidebarGroupItemProps,\n} from \"./SidebarGroupItem\";\n\nexport interface HvFlowDraggableSidebarGroupItemProps\n extends HvFlowSidebarGroupItemProps,\n HvFlowGroupItem {}\n\nexport const HvFlowDraggableSidebarGroupItem = ({\n id: idProp,\n label,\n nodeType,\n data,\n ...others\n}: HvFlowDraggableSidebarGroupItemProps) => {\n const itemRef = useRef<HTMLElement>(null);\n const id = useUniqueId(idProp);\n\n const { attributes, listeners, setNodeRef, isDragging, transform } =\n useDraggable({\n id,\n data: {\n hvFlow: {\n // Needed to know which item is being dragged and dropped\n type: nodeType,\n // Needed for the drag overlay: otherwise the item is cut by the drawer because of overflow\n label,\n // Item position: used to position the item when dropped\n x: itemRef.current?.getBoundingClientRect().x,\n y: itemRef.current?.getBoundingClientRect().y,\n // Data\n data,\n },\n },\n });\n\n const forkedRef = useForkRef(itemRef, setNodeRef);\n\n const style = transform\n ? {\n transform: `translate3d(${transform.x}px, ${transform.y}px, 0)`,\n }\n : undefined;\n\n return (\n <HvFlowSidebarGroupItem\n ref={forkedRef}\n style={style}\n label={label}\n isDragging={isDragging}\n {...listeners}\n {...attributes}\n {...others}\n />\n );\n};\n"],"names":[],"mappings":";;;;;;AAeO,MAAM,kCAAkC,CAAC;AAAA,EAC9C,IAAI;AAAA,EACJ;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAA4C;AACpC,QAAA,UAAU,OAAoB,IAAI;AAClC,QAAA,KAAK,YAAY,MAAM;AAE7B,QAAM,EAAE,YAAY,WAAW,YAAY,YAAY,cACrD,aAAa;AAAA,IACX;AAAA,IACA,MAAM;AAAA,MACJ,QAAQ;AAAA;AAAA,QAEN,MAAM;AAAA;AAAA,QAEN;AAAA;AAAA,QAEA,GAAG,QAAQ,SAAS,sBAAwB,EAAA;AAAA,QAC5C,GAAG,QAAQ,SAAS,sBAAwB,EAAA;AAAA;AAAA,QAE5C;AAAA,MAAA;AAAA,IACF;AAAA,EACF,CACD;AAEG,QAAA,YAAY,WAAW,SAAS,UAAU;AAEhD,QAAM,QAAQ,YACV;AAAA,IACE,WAAW,eAAe,UAAU,CAAC,OAAO,UAAU,CAAC;AAAA,EAAA,IAEzD;AAGF,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,KAAK;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,MACC,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,IAAA;AAAA,EACN;AAEJ;"}
@@ -3,9 +3,7 @@ import { useNodeId } from "./useNodeId.js";
3
3
  function useFlowNodeMeta(id) {
4
4
  const nodeId = useNodeId(id);
5
5
  const { registry } = useNodeMetaRegistry();
6
- if (nodeId) {
7
- return registry[nodeId];
8
- }
6
+ return registry[nodeId];
9
7
  }
10
8
  export {
11
9
  useFlowNodeMeta
@@ -1 +1 @@
1
- {"version":3,"file":"useFlowNodeMeta.js","sources":["../../../../src/Flow/hooks/useFlowNodeMeta.ts"],"sourcesContent":["import { useNodeMetaRegistry } from \"../FlowContext/NodeMetaContext\";\nimport { useNodeId } from \"./useNodeId\";\n\nexport function useFlowNodeMeta(id?: string) {\n const nodeId = useNodeId(id);\n const { registry } = useNodeMetaRegistry();\n\n if (nodeId) {\n return registry[nodeId];\n }\n}\n"],"names":[],"mappings":";;AAGO,SAAS,gBAAgB,IAAa;AACrC,QAAA,SAAS,UAAU,EAAE;AACrB,QAAA,EAAE,SAAS,IAAI,oBAAoB;AAEzC,MAAI,QAAQ;AACV,WAAO,SAAS,MAAM;AAAA,EAAA;AAE1B;"}
1
+ {"version":3,"file":"useFlowNodeMeta.js","sources":["../../../../src/Flow/hooks/useFlowNodeMeta.ts"],"sourcesContent":["import { useNodeMetaRegistry } from \"../FlowContext/NodeMetaContext\";\nimport { useNodeId } from \"./useNodeId\";\n\nexport function useFlowNodeMeta(id?: string) {\n const nodeId = useNodeId(id);\n const { registry } = useNodeMetaRegistry();\n\n return registry[nodeId!];\n}\n"],"names":[],"mappings":";;AAGO,SAAS,gBAAgB,IAAa;AACrC,QAAA,SAAS,UAAU,EAAE;AACrB,QAAA,EAAE,SAAS,IAAI,oBAAoB;AAEzC,SAAO,SAAS,MAAO;AACzB;"}
@@ -1,6 +1,6 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useTheme } from "@hitachivantara/uikit-react-core";
3
- import { getColor, stepSizes } from "./utils.js";
3
+ import { stepSizes, getColor } from "./utils.js";
4
4
  import { HvStep } from "./Step/Step.js";
5
5
  const HvDefaultNavigation = ({
6
6
  numSteps,
@@ -1,6 +1,6 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { HvButton, HvAvatar } from "@hitachivantara/uikit-react-core";
3
- import { HourGlass, Level3Bad, Level0Good } from "@hitachivantara/uikit-react-icons";
3
+ import { Level0Good, Level3Bad, HourGlass } from "@hitachivantara/uikit-react-icons";
4
4
  import { getColor, getSemantic } from "../utils.js";
5
5
  import { useClasses } from "./Step.styles.js";
6
6
  const iconSizeObject = {
@@ -1,6 +1,6 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useTheme } from "@hitachivantara/uikit-react-core";
3
- import { getColor, dotSizes } from "./utils.js";
3
+ import { dotSizes, getColor } from "./utils.js";
4
4
  import { HvDot } from "./Dot/Dot.js";
5
5
  const HvSimpleNavigation = ({
6
6
  numSteps,
@@ -1,12 +1,12 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import styled from "@emotion/styled";
3
- import { useTheme, useWidth, HvTooltip, HvTypography } from "@hitachivantara/uikit-react-core";
3
+ import { useTheme, useWidth, HvTypography, HvTooltip } from "@hitachivantara/uikit-react-core";
4
4
  import { theme } from "@hitachivantara/uikit-styles";
5
5
  import { useClasses } from "./StepNavigation.styles.js";
6
6
  import { staticClasses } from "./StepNavigation.styles.js";
7
7
  import { TITLE_WIDTH, TITLE_MARGIN, SEPARATOR_WIDTH } from "./utils.js";
8
- import { HvDefaultNavigation } from "./DefaultNavigation/DefaultNavigation.js";
9
8
  import { HvSimpleNavigation } from "./SimpleNavigation/SimpleNavigation.js";
9
+ import { HvDefaultNavigation } from "./DefaultNavigation/DefaultNavigation.js";
10
10
  const HvStepNavigation = ({
11
11
  className,
12
12
  classes: classesProp,
@@ -28,11 +28,12 @@ import { HvColorAny } from '@hitachivantara/uikit-styles';
28
28
  import { HvDialogProps } from '@hitachivantara/uikit-react-core';
29
29
  import { HvDrawerProps } from '@hitachivantara/uikit-react-core';
30
30
  import { HvEmptyStateProps } from '@hitachivantara/uikit-react-core';
31
+ import { HvFlowContextValue } from '../FlowContext';
32
+ import { HvFlowNodeMeta as HvFlowNodeMeta_2 } from '..';
31
33
  import { HvSize } from '@hitachivantara/uikit-react-core';
32
34
  import { HvSliderProps } from '@hitachivantara/uikit-react-core';
33
35
  import { HvTypographyVariants } from '@hitachivantara/uikit-react-core';
34
36
  import { JSX as JSX_2 } from 'react/jsx-runtime';
35
- import { JSXElementConstructor } from 'react';
36
37
  import { KeyboardEventHandler } from 'react';
37
38
  import { MiniMapProps } from 'reactflow';
38
39
  import { MouseEventHandler } from 'react';
@@ -42,7 +43,6 @@ import { NodeToolbarProps } from 'reactflow';
42
43
  import { PanelPosition } from 'reactflow';
43
44
  import { PointerEventHandler } from 'react';
44
45
  import { Position } from 'reactflow';
45
- import { ReactElement } from 'react';
46
46
  import { ReactEventHandler } from 'react';
47
47
  import { ReactFlowInstance } from 'reactflow';
48
48
  import { ReactFlowProps } from 'reactflow';
@@ -148,8 +148,8 @@ export declare const flowNodeClasses: {
148
148
  titleContainer: string;
149
149
  mandatory: string;
150
150
  footerContainer: string;
151
- handle: string;
152
151
  inputContainer: string;
152
+ handle: string;
153
153
  headerContainer: string;
154
154
  inputsTitleContainer: string;
155
155
  outputsTitleContainer: string;
@@ -337,11 +337,10 @@ export declare const hvDashboardNodeClasses: {
337
337
  title: string;
338
338
  titleContainer: string;
339
339
  mandatory: string;
340
- subtitle: string;
341
340
  actions: string;
342
341
  footerContainer: string;
343
- handle: string;
344
342
  inputContainer: string;
343
+ handle: string;
345
344
  headerContainer: string;
346
345
  inputsTitleContainer: string;
347
346
  outputsTitleContainer: string;
@@ -352,6 +351,7 @@ export declare const hvDashboardNodeClasses: {
352
351
  outputGroupContainer: string;
353
352
  outputContainer: string;
354
353
  handleConnected: string;
354
+ subtitle: string;
355
355
  subtitleContainer: string;
356
356
  inlineEditRoot: string;
357
357
  inlineEditButton: string;
@@ -456,17 +456,6 @@ export declare type HvFlowBuiltInActions = Omit<HvFlowNodeAction, "id" | "callba
456
456
 
457
457
  export declare type HvFlowClasses = ExtractNames<typeof useClasses_4>;
458
458
 
459
- declare interface HvFlowContextValue<NodeGroups extends keyof any = string> {
460
- /** Flow nodes groups. */
461
- nodeGroups?: HvFlowNodeGroups<NodeGroups>;
462
- /** Flow nodes groups expanded on sidebar. */
463
- expandedNodeGroups?: string[];
464
- /** Flow default actions. */
465
- defaultActions?: HvFlowNodeAction[];
466
- /** Function to set `expandedNodeGroups`. */
467
- setExpandedNodeGroups?: Dispatch<SetStateAction<string[]>>;
468
- }
469
-
470
459
  export declare const HvFlowControls: ({ onZoomIn: onZoomInProp, onZoomOut: onZoomOutProp, onFitView: onFitViewProp, labels: labelsProps, hideInteractive, hideFitView, hideZoom, position, orientation, onInteractiveChange, fitViewOptions, children, ...others }: HvFlowControlsProps) => JSX_2.Element;
471
460
 
472
461
  export declare type HvFlowControlsPosition = PanelPosition;
@@ -1044,7 +1033,7 @@ declare const useClasses_6: (classesProp?: Partial<Record<"titleContainer" | "de
1044
1033
  readonly cx: (...args: any) => string;
1045
1034
  };
1046
1035
 
1047
- declare const useClasses_7: (classesProp?: Partial<Record<"root" | "title" | "titleContainer" | "mandatory" | "footerContainer" | "handle" | "inputContainer" | "headerContainer" | "inputsTitleContainer" | "outputsTitleContainer" | "contentContainer" | "inputsContainer" | "outputsContainer" | "inputGroupContainer" | "outputGroupContainer" | "outputContainer" | "handleConnected", string>>, addStatic?: boolean) => {
1036
+ declare const useClasses_7: (classesProp?: Partial<Record<"root" | "title" | "titleContainer" | "mandatory" | "footerContainer" | "inputContainer" | "handle" | "headerContainer" | "inputsTitleContainer" | "outputsTitleContainer" | "contentContainer" | "inputsContainer" | "outputsContainer" | "inputGroupContainer" | "outputGroupContainer" | "outputContainer" | "handleConnected", string>>, addStatic?: boolean) => {
1048
1037
  readonly classes: {
1049
1038
  root: string;
1050
1039
  headerContainer: string;
@@ -1068,15 +1057,15 @@ declare const useClasses_7: (classesProp?: Partial<Record<"root" | "title" | "ti
1068
1057
  readonly cx: (...args: any) => string;
1069
1058
  };
1070
1059
 
1071
- declare const useClasses_8: (classesProp?: Partial<Record<"root" | "title" | "titleContainer" | "mandatory" | "subtitle" | "actions" | "footerContainer" | "handle" | "inputContainer" | "headerContainer" | "inputsTitleContainer" | "outputsTitleContainer" | "contentContainer" | "inputsContainer" | "outputsContainer" | "inputGroupContainer" | "outputGroupContainer" | "outputContainer" | "handleConnected" | "subtitleContainer" | "inlineEditRoot" | "inlineEditButton" | "actionsButton" | "paramsContainer", string>>, addStatic?: boolean) => {
1060
+ declare const useClasses_8: (classesProp?: Partial<Record<"root" | "title" | "titleContainer" | "mandatory" | "actions" | "footerContainer" | "inputContainer" | "handle" | "headerContainer" | "inputsTitleContainer" | "outputsTitleContainer" | "contentContainer" | "inputsContainer" | "outputsContainer" | "inputGroupContainer" | "outputGroupContainer" | "outputContainer" | "handleConnected" | "subtitle" | "subtitleContainer" | "inlineEditRoot" | "inlineEditButton" | "actionsButton" | "paramsContainer", string>>, addStatic?: boolean) => {
1072
1061
  readonly classes: {
1073
1062
  root: string;
1074
1063
  title: string;
1075
1064
  titleContainer: string;
1076
1065
  mandatory: string;
1077
1066
  footerContainer: string;
1078
- handle: string;
1079
1067
  inputContainer: string;
1068
+ handle: string;
1080
1069
  headerContainer: string;
1081
1070
  inputsTitleContainer: string;
1082
1071
  outputsTitleContainer: string;
@@ -1099,17 +1088,16 @@ declare const useClasses_8: (classesProp?: Partial<Record<"root" | "title" | "ti
1099
1088
  readonly cx: (...args: any) => string;
1100
1089
  };
1101
1090
 
1102
- declare const useClasses_9: (classesProp?: Partial<Record<"root" | "title" | "titleContainer" | "mandatory" | "subtitle" | "actions" | "empty" | "footerContainer" | "handle" | "inputContainer" | "headerContainer" | "inputsTitleContainer" | "outputsTitleContainer" | "contentContainer" | "inputsContainer" | "outputsContainer" | "inputGroupContainer" | "outputGroupContainer" | "outputContainer" | "handleConnected" | "subtitleContainer" | "inlineEditRoot" | "inlineEditButton" | "actionsButton" | "paramsContainer", string>>, addStatic?: boolean) => {
1091
+ declare const useClasses_9: (classesProp?: Partial<Record<"root" | "title" | "titleContainer" | "mandatory" | "empty" | "actions" | "footerContainer" | "inputContainer" | "handle" | "headerContainer" | "inputsTitleContainer" | "outputsTitleContainer" | "contentContainer" | "inputsContainer" | "outputsContainer" | "inputGroupContainer" | "outputGroupContainer" | "outputContainer" | "handleConnected" | "subtitle" | "subtitleContainer" | "inlineEditRoot" | "inlineEditButton" | "actionsButton" | "paramsContainer", string>>, addStatic?: boolean) => {
1103
1092
  readonly classes: {
1104
1093
  root: string;
1105
1094
  title: string;
1106
1095
  titleContainer: string;
1107
1096
  mandatory: string;
1108
- subtitle: string;
1109
1097
  actions: string;
1110
1098
  footerContainer: string;
1111
- handle: string;
1112
1099
  inputContainer: string;
1100
+ handle: string;
1113
1101
  headerContainer: string;
1114
1102
  inputsTitleContainer: string;
1115
1103
  outputsTitleContainer: string;
@@ -1120,6 +1108,7 @@ declare const useClasses_9: (classesProp?: Partial<Record<"root" | "title" | "ti
1120
1108
  outputGroupContainer: string;
1121
1109
  outputContainer: string;
1122
1110
  handleConnected: string;
1111
+ subtitle: string;
1123
1112
  subtitleContainer: string;
1124
1113
  inlineEditRoot: string;
1125
1114
  inlineEditButton: string;
@@ -1150,7 +1139,7 @@ export declare function useFlowNodeInputEdges(id?: string): Edge[];
1150
1139
 
1151
1140
  export declare function useFlowNodeIntersections<NodeData = any>(id?: string): Node_2<NodeData>[];
1152
1141
 
1153
- export declare function useFlowNodeMeta(id?: string): HvFlowNodeMeta | undefined;
1142
+ export declare function useFlowNodeMeta(id?: string): HvFlowNodeMeta_2;
1154
1143
 
1155
1144
  /** Gives the output edges connected from the node */
1156
1145
  export declare function useFlowNodeOutputEdges(id?: string): Edge[];
@@ -1170,24 +1159,24 @@ export declare function useFlowOutputNodes<T = any>(id?: string): Node_2<T>[];
1170
1159
  export declare function useHvNode(props: HvUseNodeParams): {
1171
1160
  id: string;
1172
1161
  title: string | undefined;
1173
- icon: string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined;
1162
+ icon: ReactNode;
1174
1163
  color: string | undefined;
1175
1164
  iconColor: string | undefined;
1176
1165
  subtitle: any;
1177
1166
  inputs: (HvFlowNodeInput | HvFlowNodeOutput | {
1178
1167
  inputs: HvFlowNodeInput[];
1179
- label: ReactNode;
1168
+ label: React.ReactNode;
1180
1169
  } | {
1181
1170
  outputs: HvFlowNodeOutput[];
1182
- label: ReactNode;
1171
+ label: React.ReactNode;
1183
1172
  })[] | undefined;
1184
1173
  inputEdges: Edge[];
1185
1174
  outputs: (HvFlowNodeInput | HvFlowNodeOutput | {
1186
1175
  inputs: HvFlowNodeInput[];
1187
- label: ReactNode;
1176
+ label: React.ReactNode;
1188
1177
  } | {
1189
1178
  outputs: HvFlowNodeOutput[];
1190
- label: ReactNode;
1179
+ label: React.ReactNode;
1191
1180
  })[] | undefined;
1192
1181
  outputEdges: Edge[];
1193
1182
  node: Node_2 | undefined;
@@ -1200,14 +1189,14 @@ export declare function useHvNode(props: HvUseNodeParams): {
1200
1189
  suppressContentEditableWarning?: boolean | undefined;
1201
1190
  suppressHydrationWarning?: boolean | undefined;
1202
1191
  accessKey?: string | undefined;
1203
- autoCapitalize?: (string & {}) | "none" | "off" | "on" | "sentences" | "words" | "characters" | undefined;
1192
+ autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
1204
1193
  autoFocus?: boolean | undefined;
1205
1194
  className?: string | undefined;
1206
- contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
1195
+ contentEditable?: (boolean | "false" | "true") | "inherit" | "plaintext-only" | undefined;
1207
1196
  contextMenu?: string | undefined;
1208
1197
  dir?: string | undefined;
1209
1198
  draggable?: (boolean | "false" | "true") | undefined;
1210
- enterKeyHint?: "next" | "search" | "enter" | "done" | "go" | "previous" | "send" | undefined;
1199
+ enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
1211
1200
  hidden?: boolean | undefined;
1212
1201
  id?: string | undefined;
1213
1202
  lang?: string | undefined;
@@ -1217,7 +1206,7 @@ export declare function useHvNode(props: HvUseNodeParams): {
1217
1206
  style?: CSSProperties | undefined;
1218
1207
  tabIndex?: number | undefined;
1219
1208
  title?: string | undefined;
1220
- translate?: "no" | "yes" | undefined;
1209
+ translate?: "yes" | "no" | undefined;
1221
1210
  radioGroup?: string | undefined;
1222
1211
  role?: AriaRole | undefined;
1223
1212
  about?: string | undefined;
@@ -1241,33 +1230,33 @@ export declare function useHvNode(props: HvUseNodeParams): {
1241
1230
  itemRef?: string | undefined;
1242
1231
  results?: number | undefined;
1243
1232
  security?: string | undefined;
1244
- unselectable?: "off" | "on" | undefined;
1245
- inputMode?: "none" | "text" | "search" | "email" | "tel" | "url" | "numeric" | "decimal" | undefined;
1233
+ unselectable?: "on" | "off" | undefined;
1234
+ inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
1246
1235
  is?: string | undefined;
1247
- children?: ReactNode;
1236
+ children?: ReactNode | Iterable<ReactNode>;
1248
1237
  "aria-activedescendant"?: string | undefined;
1249
1238
  "aria-atomic"?: (boolean | "false" | "true") | undefined;
1250
- "aria-autocomplete"?: "none" | "list" | "both" | "inline" | undefined;
1239
+ "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
1251
1240
  "aria-braillelabel"?: string | undefined;
1252
1241
  "aria-brailleroledescription"?: string | undefined;
1253
1242
  "aria-busy"?: (boolean | "false" | "true") | undefined;
1254
- "aria-checked"?: boolean | "mixed" | "false" | "true" | undefined;
1243
+ "aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
1255
1244
  "aria-colcount"?: number | undefined;
1256
1245
  "aria-colindex"?: number | undefined;
1257
1246
  "aria-colindextext"?: string | undefined;
1258
1247
  "aria-colspan"?: number | undefined;
1259
1248
  "aria-controls"?: string | undefined;
1260
- "aria-current"?: boolean | "page" | "step" | "false" | "true" | "time" | "date" | "location" | undefined;
1249
+ "aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
1261
1250
  "aria-describedby"?: string | undefined;
1262
1251
  "aria-description"?: string | undefined;
1263
1252
  "aria-details"?: string | undefined;
1264
1253
  "aria-disabled"?: (boolean | "false" | "true") | undefined;
1265
- "aria-dropeffect"?: "none" | "link" | "copy" | "move" | "popup" | "execute" | undefined;
1254
+ "aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
1266
1255
  "aria-errormessage"?: string | undefined;
1267
1256
  "aria-expanded"?: (boolean | "false" | "true") | undefined;
1268
1257
  "aria-flowto"?: string | undefined;
1269
1258
  "aria-grabbed"?: (boolean | "false" | "true") | undefined;
1270
- "aria-haspopup"?: boolean | "grid" | "listbox" | "menu" | "false" | "true" | "dialog" | "tree" | undefined;
1259
+ "aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
1271
1260
  "aria-hidden"?: (boolean | "false" | "true") | undefined;
1272
1261
  "aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
1273
1262
  "aria-keyshortcuts"?: string | undefined;
@@ -1278,13 +1267,13 @@ export declare function useHvNode(props: HvUseNodeParams): {
1278
1267
  "aria-modal"?: (boolean | "false" | "true") | undefined;
1279
1268
  "aria-multiline"?: (boolean | "false" | "true") | undefined;
1280
1269
  "aria-multiselectable"?: (boolean | "false" | "true") | undefined;
1281
- "aria-orientation"?: "vertical" | "horizontal" | undefined;
1270
+ "aria-orientation"?: "horizontal" | "vertical" | undefined;
1282
1271
  "aria-owns"?: string | undefined;
1283
1272
  "aria-placeholder"?: string | undefined;
1284
1273
  "aria-posinset"?: number | undefined;
1285
- "aria-pressed"?: boolean | "mixed" | "false" | "true" | undefined;
1274
+ "aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
1286
1275
  "aria-readonly"?: (boolean | "false" | "true") | undefined;
1287
- "aria-relevant"?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
1276
+ "aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
1288
1277
  "aria-required"?: (boolean | "false" | "true") | undefined;
1289
1278
  "aria-roledescription"?: string | undefined;
1290
1279
  "aria-rowcount"?: number | undefined;
@@ -1461,16 +1450,16 @@ export declare function useHvNode(props: HvUseNodeParams): {
1461
1450
  onAnimationIterationCapture?: AnimationEventHandler<HTMLDivElement> | undefined;
1462
1451
  onTransitionEnd?: TransitionEventHandler<HTMLDivElement> | undefined;
1463
1452
  onTransitionEndCapture?: TransitionEventHandler<HTMLDivElement> | undefined;
1464
- nodeId?: string | string[] | undefined;
1453
+ nodeId?: string | string[];
1465
1454
  isVisible: boolean;
1466
- position?: Position | undefined;
1455
+ position?: Position;
1467
1456
  offset: number;
1468
- align?: Align | undefined;
1457
+ align?: Align;
1469
1458
  };
1470
1459
  toggleShowActions: () => void;
1471
1460
  handleDefaultAction: (action: HvFlowNodeAction) => void;
1472
1461
  setNodeData: (setNewData: (newData?: any) => any) => void;
1473
- setNodeParent: (node?: Node_2<any> | undefined, extent?: CoordinateExtent | "parent" | undefined) => void;
1462
+ setNodeParent: (node?: Node_2<any>, extent?: "parent" | CoordinateExtent) => void;
1474
1463
  };
1475
1464
 
1476
1465
  export declare function useNodeMetaRegistry(): {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hitachivantara/uikit-react-lab",
3
- "version": "5.43.3",
3
+ "version": "5.43.4",
4
4
  "private": false,
5
5
  "author": "Hitachi Vantara UI Kit Team",
6
6
  "description": "Contributed React components for the NEXT UI Kit.",
@@ -33,11 +33,11 @@
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.87.3",
37
- "@hitachivantara/uikit-react-icons": "^5.13.7",
38
- "@hitachivantara/uikit-react-utils": "^0.2.24",
39
- "@hitachivantara/uikit-styles": "^5.41.2",
40
- "@mui/base": "^5.0.0-beta.40",
36
+ "@hitachivantara/uikit-react-core": "^5.88.0",
37
+ "@hitachivantara/uikit-react-icons": "^5.13.8",
38
+ "@hitachivantara/uikit-react-utils": "^0.2.25",
39
+ "@hitachivantara/uikit-styles": "^5.41.3",
40
+ "@mui/base": "5.0.0-beta.68",
41
41
  "@types/react-grid-layout": "^1.3.5",
42
42
  "react-grid-layout": "^1.4.4",
43
43
  "reactflow": "^11.10.1",
@@ -52,7 +52,7 @@
52
52
  "access": "public",
53
53
  "directory": "package"
54
54
  },
55
- "gitHead": "377a575378d89280711a5d5c27d45511d4276ebe",
55
+ "gitHead": "16c8c47610601f54711ae92dc4e0db946e3caac4",
56
56
  "exports": {
57
57
  ".": {
58
58
  "types": "./dist/types/index.d.ts",