@hitachivantara/uikit-react-lab 5.46.13 → 6.0.0-next.2

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 (134) hide show
  1. package/dist/{esm/Flow → Flow}/Background/Background.js +1 -1
  2. package/dist/{esm/Flow → Flow}/Empty/Empty.styles.js +1 -1
  3. package/dist/{esm/Flow → Flow}/Node/Node.js +0 -3
  4. package/dist/{esm/Flow → Flow}/Sidebar/Sidebar.js +1 -1
  5. package/dist/{esm/StepNavigation → StepNavigation}/DefaultNavigation/DefaultNavigation.js +1 -3
  6. package/dist/{esm/StepNavigation → StepNavigation}/SimpleNavigation/SimpleNavigation.js +1 -3
  7. package/dist/{esm/StepNavigation → StepNavigation}/StepNavigation.js +2 -7
  8. package/dist/{esm/Wizard → Wizard}/WizardTitle/WizardTitle.js +31 -47
  9. package/dist/{esm/Wizard → Wizard}/WizardTitle/WizardTitle.styles.js +0 -10
  10. package/dist/{types/index.d.ts → index.d.ts} +12 -28
  11. package/package.json +14 -14
  12. package/dist/cjs/Blade/Blade.cjs +0 -174
  13. package/dist/cjs/Blade/Blade.styles.cjs +0 -71
  14. package/dist/cjs/Blades/Blades.cjs +0 -104
  15. package/dist/cjs/Blades/Blades.styles.cjs +0 -11
  16. package/dist/cjs/Dashboard/Dashboard.cjs +0 -63
  17. package/dist/cjs/Dashboard/Dashboard.styles.cjs +0 -196
  18. package/dist/cjs/Flow/Background/Background.cjs +0 -19
  19. package/dist/cjs/Flow/Controls/Controls.cjs +0 -96
  20. package/dist/cjs/Flow/DroppableFlow.cjs +0 -204
  21. package/dist/cjs/Flow/Empty/Empty.cjs +0 -12
  22. package/dist/cjs/Flow/Empty/Empty.styles.cjs +0 -16
  23. package/dist/cjs/Flow/Flow.cjs +0 -33
  24. package/dist/cjs/Flow/Flow.styles.cjs +0 -19
  25. package/dist/cjs/Flow/FlowContext/FlowContext.cjs +0 -25
  26. package/dist/cjs/Flow/FlowContext/NodeMetaContext.cjs +0 -43
  27. package/dist/cjs/Flow/Minimap/Minimap.cjs +0 -30
  28. package/dist/cjs/Flow/Minimap/Minimap.styles.cjs +0 -10
  29. package/dist/cjs/Flow/Node/BaseNode.cjs +0 -192
  30. package/dist/cjs/Flow/Node/BaseNode.styles.cjs +0 -135
  31. package/dist/cjs/Flow/Node/Node.cjs +0 -115
  32. package/dist/cjs/Flow/Node/Node.styles.cjs +0 -42
  33. package/dist/cjs/Flow/Node/Parameters/ParamRenderer.cjs +0 -19
  34. package/dist/cjs/Flow/Node/Parameters/Select.cjs +0 -41
  35. package/dist/cjs/Flow/Node/Parameters/Slider.cjs +0 -33
  36. package/dist/cjs/Flow/Node/Parameters/Text.cjs +0 -19
  37. package/dist/cjs/Flow/Node/utils.cjs +0 -54
  38. package/dist/cjs/Flow/Sidebar/Sidebar.cjs +0 -141
  39. package/dist/cjs/Flow/Sidebar/Sidebar.styles.cjs +0 -24
  40. package/dist/cjs/Flow/Sidebar/SidebarGroup/SidebarGroup.cjs +0 -62
  41. package/dist/cjs/Flow/Sidebar/SidebarGroup/SidebarGroup.styles.cjs +0 -34
  42. package/dist/cjs/Flow/Sidebar/SidebarGroup/SidebarGroupItem/DraggableSidebarGroupItem.cjs +0 -51
  43. package/dist/cjs/Flow/Sidebar/SidebarGroup/SidebarGroupItem/SidebarGroupItem.cjs +0 -35
  44. package/dist/cjs/Flow/Sidebar/SidebarGroup/SidebarGroupItem/SidebarGroupItem.styles.cjs +0 -23
  45. package/dist/cjs/Flow/base.cjs +0 -411
  46. package/dist/cjs/Flow/hooks/useFlowContext.cjs +0 -6
  47. package/dist/cjs/Flow/hooks/useFlowInstance.cjs +0 -7
  48. package/dist/cjs/Flow/hooks/useFlowNode.cjs +0 -134
  49. package/dist/cjs/Flow/hooks/useFlowNodeMeta.cjs +0 -10
  50. package/dist/cjs/Flow/hooks/useNode.cjs +0 -159
  51. package/dist/cjs/Flow/hooks/useNodeId.cjs +0 -8
  52. package/dist/cjs/Flow/nodes/DashboardNode.cjs +0 -88
  53. package/dist/cjs/Flow/nodes/DashboardNode.styles.cjs +0 -16
  54. package/dist/cjs/Flow/nodes/StickyNode.cjs +0 -441
  55. package/dist/cjs/StepNavigation/DefaultNavigation/DefaultNavigation.cjs +0 -56
  56. package/dist/cjs/StepNavigation/DefaultNavigation/Step/Step.cjs +0 -78
  57. package/dist/cjs/StepNavigation/DefaultNavigation/Step/Step.styles.cjs +0 -35
  58. package/dist/cjs/StepNavigation/DefaultNavigation/utils.cjs +0 -34
  59. package/dist/cjs/StepNavigation/SimpleNavigation/Dot/Dot.cjs +0 -43
  60. package/dist/cjs/StepNavigation/SimpleNavigation/Dot/Dot.styles.cjs +0 -18
  61. package/dist/cjs/StepNavigation/SimpleNavigation/SimpleNavigation.cjs +0 -52
  62. package/dist/cjs/StepNavigation/SimpleNavigation/utils.cjs +0 -13
  63. package/dist/cjs/StepNavigation/StepNavigation.cjs +0 -188
  64. package/dist/cjs/StepNavigation/StepNavigation.styles.cjs +0 -34
  65. package/dist/cjs/StepNavigation/utils.cjs +0 -8
  66. package/dist/cjs/Wizard/Wizard.cjs +0 -108
  67. package/dist/cjs/Wizard/Wizard.styles.cjs +0 -8
  68. package/dist/cjs/Wizard/WizardActions/WizardActions.cjs +0 -132
  69. package/dist/cjs/Wizard/WizardActions/WizardActions.styles.cjs +0 -22
  70. package/dist/cjs/Wizard/WizardContainer/WizardContainer.cjs +0 -31
  71. package/dist/cjs/Wizard/WizardContainer/WizardContainer.styles.cjs +0 -15
  72. package/dist/cjs/Wizard/WizardContent/WizardContent.cjs +0 -121
  73. package/dist/cjs/Wizard/WizardContent/WizardContent.styles.cjs +0 -38
  74. package/dist/cjs/Wizard/WizardContext/WizardContext.cjs +0 -15
  75. package/dist/cjs/Wizard/WizardTitle/WizardTitle.cjs +0 -97
  76. package/dist/cjs/Wizard/WizardTitle/WizardTitle.styles.cjs +0 -27
  77. package/dist/cjs/index.cjs +0 -93
  78. /package/dist/{esm/Blade → Blade}/Blade.js +0 -0
  79. /package/dist/{esm/Blade → Blade}/Blade.styles.js +0 -0
  80. /package/dist/{esm/Blades → Blades}/Blades.js +0 -0
  81. /package/dist/{esm/Blades → Blades}/Blades.styles.js +0 -0
  82. /package/dist/{esm/Dashboard → Dashboard}/Dashboard.js +0 -0
  83. /package/dist/{esm/Dashboard → Dashboard}/Dashboard.styles.js +0 -0
  84. /package/dist/{esm/Flow → Flow}/Controls/Controls.js +0 -0
  85. /package/dist/{esm/Flow → Flow}/DroppableFlow.js +0 -0
  86. /package/dist/{esm/Flow → Flow}/Empty/Empty.js +0 -0
  87. /package/dist/{esm/Flow → Flow}/Flow.js +0 -0
  88. /package/dist/{esm/Flow → Flow}/Flow.styles.js +0 -0
  89. /package/dist/{esm/Flow → Flow}/FlowContext/FlowContext.js +0 -0
  90. /package/dist/{esm/Flow → Flow}/FlowContext/NodeMetaContext.js +0 -0
  91. /package/dist/{esm/Flow → Flow}/Minimap/Minimap.js +0 -0
  92. /package/dist/{esm/Flow → Flow}/Minimap/Minimap.styles.js +0 -0
  93. /package/dist/{esm/Flow → Flow}/Node/BaseNode.js +0 -0
  94. /package/dist/{esm/Flow → Flow}/Node/BaseNode.styles.js +0 -0
  95. /package/dist/{esm/Flow → Flow}/Node/Node.styles.js +0 -0
  96. /package/dist/{esm/Flow → Flow}/Node/Parameters/ParamRenderer.js +0 -0
  97. /package/dist/{esm/Flow → Flow}/Node/Parameters/Select.js +0 -0
  98. /package/dist/{esm/Flow → Flow}/Node/Parameters/Slider.js +0 -0
  99. /package/dist/{esm/Flow → Flow}/Node/Parameters/Text.js +0 -0
  100. /package/dist/{esm/Flow → Flow}/Node/utils.js +0 -0
  101. /package/dist/{esm/Flow → Flow}/Sidebar/Sidebar.styles.js +0 -0
  102. /package/dist/{esm/Flow → Flow}/Sidebar/SidebarGroup/SidebarGroup.js +0 -0
  103. /package/dist/{esm/Flow → Flow}/Sidebar/SidebarGroup/SidebarGroup.styles.js +0 -0
  104. /package/dist/{esm/Flow → Flow}/Sidebar/SidebarGroup/SidebarGroupItem/DraggableSidebarGroupItem.js +0 -0
  105. /package/dist/{esm/Flow → Flow}/Sidebar/SidebarGroup/SidebarGroupItem/SidebarGroupItem.js +0 -0
  106. /package/dist/{esm/Flow → Flow}/Sidebar/SidebarGroup/SidebarGroupItem/SidebarGroupItem.styles.js +0 -0
  107. /package/dist/{esm/Flow → Flow}/base.js +0 -0
  108. /package/dist/{esm/Flow → Flow}/hooks/useFlowContext.js +0 -0
  109. /package/dist/{esm/Flow → Flow}/hooks/useFlowInstance.js +0 -0
  110. /package/dist/{esm/Flow → Flow}/hooks/useFlowNode.js +0 -0
  111. /package/dist/{esm/Flow → Flow}/hooks/useFlowNodeMeta.js +0 -0
  112. /package/dist/{esm/Flow → Flow}/hooks/useNode.js +0 -0
  113. /package/dist/{esm/Flow → Flow}/hooks/useNodeId.js +0 -0
  114. /package/dist/{esm/Flow → Flow}/nodes/DashboardNode.js +0 -0
  115. /package/dist/{esm/Flow → Flow}/nodes/DashboardNode.styles.js +0 -0
  116. /package/dist/{esm/Flow → Flow}/nodes/StickyNode.js +0 -0
  117. /package/dist/{esm/StepNavigation → StepNavigation}/DefaultNavigation/Step/Step.js +0 -0
  118. /package/dist/{esm/StepNavigation → StepNavigation}/DefaultNavigation/Step/Step.styles.js +0 -0
  119. /package/dist/{esm/StepNavigation → StepNavigation}/DefaultNavigation/utils.js +0 -0
  120. /package/dist/{esm/StepNavigation → StepNavigation}/SimpleNavigation/Dot/Dot.js +0 -0
  121. /package/dist/{esm/StepNavigation → StepNavigation}/SimpleNavigation/Dot/Dot.styles.js +0 -0
  122. /package/dist/{esm/StepNavigation → StepNavigation}/SimpleNavigation/utils.js +0 -0
  123. /package/dist/{esm/StepNavigation → StepNavigation}/StepNavigation.styles.js +0 -0
  124. /package/dist/{esm/StepNavigation → StepNavigation}/utils.js +0 -0
  125. /package/dist/{esm/Wizard → Wizard}/Wizard.js +0 -0
  126. /package/dist/{esm/Wizard → Wizard}/Wizard.styles.js +0 -0
  127. /package/dist/{esm/Wizard → Wizard}/WizardActions/WizardActions.js +0 -0
  128. /package/dist/{esm/Wizard → Wizard}/WizardActions/WizardActions.styles.js +0 -0
  129. /package/dist/{esm/Wizard → Wizard}/WizardContainer/WizardContainer.js +0 -0
  130. /package/dist/{esm/Wizard → Wizard}/WizardContainer/WizardContainer.styles.js +0 -0
  131. /package/dist/{esm/Wizard → Wizard}/WizardContent/WizardContent.js +0 -0
  132. /package/dist/{esm/Wizard → Wizard}/WizardContent/WizardContent.styles.js +0 -0
  133. /package/dist/{esm/Wizard → Wizard}/WizardContext/WizardContext.js +0 -0
  134. /package/dist/{esm/index.js → index.js} +0 -0
@@ -1,62 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("react/jsx-runtime");
4
- const react = require("react");
5
- const uikitReactCore = require("@hitachivantara/uikit-react-core");
6
- const uikitReactIcons = require("@hitachivantara/uikit-react-icons");
7
- const uikitStyles = require("@hitachivantara/uikit-styles");
8
- const SidebarGroup_styles = require("./SidebarGroup.styles.cjs");
9
- const useFlowContext = require("../../hooks/useFlowContext.cjs");
10
- const DraggableSidebarGroupItem = require("./SidebarGroupItem/DraggableSidebarGroupItem.cjs");
11
- const HvFlowSidebarGroup = ({
12
- id,
13
- label,
14
- items = [],
15
- color,
16
- description,
17
- icon,
18
- expandButtonProps,
19
- classes: classesProp,
20
- itemProps
21
- }) => {
22
- const { classes, cx, css } = SidebarGroup_styles.useClasses(classesProp);
23
- const { expandedNodeGroups, setExpandedNodeGroups } = useFlowContext.useFlowContext();
24
- const opened = react.useMemo(
25
- () => !!expandedNodeGroups?.find((group) => group === id),
26
- [expandedNodeGroups, id]
27
- );
28
- const handleClick = react.useCallback(() => {
29
- setExpandedNodeGroups?.(
30
- (prev) => opened ? prev.filter((group) => id !== group) : [...prev, id]
31
- );
32
- }, [id, opened, setExpandedNodeGroups]);
33
- return /* @__PURE__ */ jsxRuntime.jsxs("li", { className: cx(css({ borderColor: uikitStyles.getColor(color) }), classes.root), children: [
34
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: classes.titleContainer, children: [
35
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: classes.labelContainer, children: [
36
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: classes.icon, role: "presentation", children: icon }),
37
- /* @__PURE__ */ jsxRuntime.jsx(uikitReactCore.HvTypography, { component: "p", variant: "title4", children: Object.keys(items).length > 1 ? `${label} (${Object.keys(items).length})` : label })
38
- ] }),
39
- /* @__PURE__ */ jsxRuntime.jsx(
40
- uikitReactCore.HvButton,
41
- {
42
- icon: true,
43
- onClick: handleClick,
44
- "aria-expanded": opened,
45
- ...expandButtonProps,
46
- children: /* @__PURE__ */ jsxRuntime.jsx(uikitReactIcons.DropDownXS, { rotate: opened })
47
- }
48
- )
49
- ] }),
50
- description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: classes.descriptionContainer, children: /* @__PURE__ */ jsxRuntime.jsx(uikitReactCore.HvTypography, { children: description }) }),
51
- opened && /* @__PURE__ */ jsxRuntime.jsx("div", { className: classes.itemsContainer, children: Object.entries(items).map(([itemId, item]) => /* @__PURE__ */ jsxRuntime.jsx(
52
- DraggableSidebarGroupItem.HvFlowDraggableSidebarGroupItem,
53
- {
54
- ...itemProps,
55
- ...item
56
- },
57
- itemId
58
- )) })
59
- ] });
60
- };
61
- exports.flowSidebarGroupClasses = SidebarGroup_styles.staticClasses;
62
- exports.HvFlowSidebarGroup = HvFlowSidebarGroup;
@@ -1,34 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const uikitReactCore = require("@hitachivantara/uikit-react-core");
4
- const { staticClasses, useClasses } = uikitReactCore.createClasses(
5
- "HvFlowSidebarGroup",
6
- {
7
- root: {
8
- padding: uikitReactCore.theme.space.sm,
9
- borderRadius: uikitReactCore.theme.radii.round,
10
- borderWidth: "1px",
11
- borderTopWidth: "3px"
12
- },
13
- titleContainer: {
14
- display: "flex",
15
- justifyContent: "space-between"
16
- },
17
- labelContainer: {
18
- display: "flex",
19
- alignItems: "center"
20
- },
21
- icon: { paddingRight: uikitReactCore.theme.space.xs },
22
- descriptionContainer: {
23
- padding: `${uikitReactCore.theme.space.xs} 0 ${uikitReactCore.theme.space.sm} calc(32px + ${uikitReactCore.theme.space.xs})`
24
- },
25
- itemsContainer: {
26
- display: "flex",
27
- flexDirection: "column",
28
- gap: uikitReactCore.theme.space.xs,
29
- paddingLeft: uikitReactCore.theme.space.sm
30
- }
31
- }
32
- );
33
- exports.staticClasses = staticClasses;
34
- exports.useClasses = useClasses;
@@ -1,51 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("react/jsx-runtime");
4
- const react = require("react");
5
- const core = require("@dnd-kit/core");
6
- const utils = require("@mui/material/utils");
7
- const uikitReactCore = require("@hitachivantara/uikit-react-core");
8
- const SidebarGroupItem = require("./SidebarGroupItem.cjs");
9
- const HvFlowDraggableSidebarGroupItem = ({
10
- id: idProp,
11
- label,
12
- nodeType,
13
- data,
14
- ...others
15
- }) => {
16
- const itemRef = react.useRef(null);
17
- const id = uikitReactCore.useUniqueId(idProp);
18
- const { attributes, listeners, setNodeRef, isDragging, transform } = core.useDraggable({
19
- id,
20
- data: {
21
- hvFlow: {
22
- // Needed to know which item is being dragged and dropped
23
- type: nodeType,
24
- // Needed for the drag overlay: otherwise the item is cut by the drawer because of overflow
25
- label,
26
- // Item position: used to position the item when dropped
27
- x: itemRef.current?.getBoundingClientRect().x,
28
- y: itemRef.current?.getBoundingClientRect().y,
29
- // Data
30
- data
31
- }
32
- }
33
- });
34
- const forkedRef = utils.useForkRef(itemRef, setNodeRef);
35
- const style = transform ? {
36
- transform: `translate3d(${transform.x}px, ${transform.y}px, 0)`
37
- } : void 0;
38
- return /* @__PURE__ */ jsxRuntime.jsx(
39
- SidebarGroupItem.HvFlowSidebarGroupItem,
40
- {
41
- ref: forkedRef,
42
- style,
43
- label,
44
- isDragging,
45
- ...listeners,
46
- ...attributes,
47
- ...others
48
- }
49
- );
50
- };
51
- exports.HvFlowDraggableSidebarGroupItem = HvFlowDraggableSidebarGroupItem;
@@ -1,35 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("react/jsx-runtime");
4
- const react = require("react");
5
- const uikitReactCore = require("@hitachivantara/uikit-react-core");
6
- const uikitReactIcons = require("@hitachivantara/uikit-react-icons");
7
- const SidebarGroupItem_styles = require("./SidebarGroupItem.styles.cjs");
8
- const HvFlowSidebarGroupItem = react.forwardRef(function HvFlowSidebarGroupItem2(props, ref) {
9
- const {
10
- label,
11
- isDragging,
12
- classes: classesProp,
13
- className,
14
- ...others
15
- } = props;
16
- const { classes, cx } = SidebarGroupItem_styles.useClasses(classesProp);
17
- return /* @__PURE__ */ jsxRuntime.jsxs(
18
- "div",
19
- {
20
- ref,
21
- className: cx(
22
- classes.root,
23
- { [classes.dragging]: isDragging },
24
- className
25
- ),
26
- ...others,
27
- children: [
28
- /* @__PURE__ */ jsxRuntime.jsx(uikitReactCore.HvTypography, { children: label }),
29
- /* @__PURE__ */ jsxRuntime.jsx(uikitReactIcons.Drag, {})
30
- ]
31
- }
32
- );
33
- });
34
- exports.flowSidebarGroupItemClasses = SidebarGroupItem_styles.staticClasses;
35
- exports.HvFlowSidebarGroupItem = HvFlowSidebarGroupItem;
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const uikitReactCore = require("@hitachivantara/uikit-react-core");
4
- const { staticClasses, useClasses } = uikitReactCore.createClasses(
5
- "HvFlowSidebarGroupItem",
6
- {
7
- root: {
8
- display: "flex",
9
- alignItems: "center",
10
- justifyContent: "space-between",
11
- border: `1px solid ${uikitReactCore.theme.colors.border}`,
12
- padding: uikitReactCore.theme.spacing(0, 0, 0, "sm"),
13
- cursor: "pointer",
14
- boxShadow: `0 1px 0 ${uikitReactCore.theme.colors.shad1}`,
15
- "&:focus-visible": {
16
- ...uikitReactCore.outlineStyles
17
- }
18
- },
19
- dragging: { borderColor: uikitReactCore.theme.colors.primaryStrong }
20
- }
21
- );
22
- exports.staticClasses = staticClasses;
23
- exports.useClasses = useClasses;
@@ -1,411 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const react = require("@emotion/react");
4
- const uikitReactCore = require("@hitachivantara/uikit-react-core");
5
- const flowStyles = react.css`
6
- /* this gets exported as style.css and can be used for the default theming */
7
- /* these are the necessary styles for React Flow, they get used by base.css and style.css */
8
- .react-flow__container {
9
- position: absolute;
10
- width: 100%;
11
- height: 100%;
12
- top: 0;
13
- left: 0;
14
- }
15
- .react-flow__pane {
16
- z-index: 1;
17
- cursor: -webkit-grab;
18
- cursor: grab;
19
- }
20
- .react-flow__pane.selection {
21
- cursor: pointer;
22
- }
23
- .react-flow__pane.dragging {
24
- cursor: -webkit-grabbing;
25
- cursor: grabbing;
26
- }
27
- .react-flow__viewport {
28
- transform-origin: 0 0;
29
- z-index: 2;
30
- pointer-events: none;
31
- }
32
- .react-flow__renderer {
33
- z-index: 4;
34
- }
35
- .react-flow__selection {
36
- z-index: 6;
37
- }
38
- .react-flow__nodesselection-rect:focus,
39
- .react-flow__nodesselection-rect:focus-visible {
40
- outline: none;
41
- }
42
- .react-flow .react-flow__edges {
43
- pointer-events: none;
44
- overflow: visible;
45
- }
46
- .react-flow__edge-path,
47
- .react-flow__connection-path {
48
- stroke: ${uikitReactCore.theme.colors.text};
49
- stroke-width: 1;
50
- fill: none;
51
- }
52
- .react-flow__edge {
53
- pointer-events: visibleStroke;
54
- cursor: pointer;
55
- }
56
- .react-flow__edge.animated path {
57
- stroke-dasharray: 5;
58
- -webkit-animation: dashdraw 0.5s linear infinite;
59
- animation: dashdraw 0.5s linear infinite;
60
- }
61
- .react-flow__edge.animated path.react-flow__edge-interaction {
62
- stroke-dasharray: none;
63
- -webkit-animation: none;
64
- animation: none;
65
- }
66
- .react-flow__edge.inactive {
67
- pointer-events: none;
68
- }
69
- .react-flow__edge.selected,
70
- .react-flow__edge:focus,
71
- .react-flow__edge:focus-visible {
72
- outline: none;
73
- }
74
- .react-flow__edge.selected .react-flow__edge-path,
75
- .react-flow__edge:focus .react-flow__edge-path,
76
- .react-flow__edge:focus-visible .react-flow__edge-path {
77
- stroke: #555;
78
- }
79
- .react-flow__edge-textwrapper {
80
- pointer-events: all;
81
- }
82
- .react-flow__edge-textbg {
83
- fill: white;
84
- }
85
- .react-flow__edge .react-flow__edge-text {
86
- pointer-events: none;
87
- -webkit-user-select: none;
88
- -moz-user-select: none;
89
- user-select: none;
90
- }
91
- .react-flow__connection {
92
- pointer-events: none;
93
- }
94
- .react-flow__connection .animated {
95
- stroke-dasharray: 5;
96
- -webkit-animation: dashdraw 0.5s linear infinite;
97
- animation: dashdraw 0.5s linear infinite;
98
- }
99
- .react-flow__connectionline {
100
- z-index: 1001;
101
- }
102
- .react-flow__nodes {
103
- pointer-events: none;
104
- transform-origin: 0 0;
105
- }
106
- .react-flow__node {
107
- position: absolute;
108
- -webkit-user-select: none;
109
- -moz-user-select: none;
110
- user-select: none;
111
- pointer-events: all;
112
- transform-origin: 0 0;
113
- box-sizing: border-box;
114
- cursor: -webkit-grab;
115
- cursor: grab;
116
- }
117
- .react-flow__node.dragging {
118
- cursor: -webkit-grabbing;
119
- cursor: grabbing;
120
- }
121
- .react-flow__nodesselection {
122
- z-index: 3;
123
- transform-origin: left top;
124
- pointer-events: none;
125
- }
126
- .react-flow__nodesselection-rect {
127
- position: absolute;
128
- pointer-events: all;
129
- cursor: -webkit-grab;
130
- cursor: grab;
131
- }
132
- .react-flow__handle {
133
- position: absolute;
134
- pointer-events: none;
135
- min-width: 5px;
136
- min-height: 5px;
137
- width: 6px;
138
- height: 6px;
139
- background: #1a192b;
140
- border: 1px solid white;
141
- border-radius: 100%;
142
- }
143
- .react-flow__handle.connectionindicator {
144
- pointer-events: all;
145
- cursor: crosshair;
146
- }
147
- .react-flow__handle-bottom {
148
- top: auto;
149
- left: 50%;
150
- bottom: -4px;
151
- transform: translate(-50%, 0);
152
- }
153
- .react-flow__handle-top {
154
- left: 50%;
155
- top: -4px;
156
- transform: translate(-50%, 0);
157
- }
158
- .react-flow__handle-left {
159
- top: 50%;
160
- left: -4px;
161
- transform: translate(0, -50%);
162
- }
163
- .react-flow__handle-right {
164
- right: -4px;
165
- top: 50%;
166
- transform: translate(0, -50%);
167
- }
168
- .react-flow__edgeupdater {
169
- cursor: move;
170
- pointer-events: all;
171
- }
172
- .react-flow__panel {
173
- position: absolute;
174
- z-index: 5;
175
- margin: 15px;
176
- }
177
- .react-flow__panel.top {
178
- top: 0;
179
- }
180
- .react-flow__panel.bottom {
181
- bottom: 0;
182
- }
183
- .react-flow__panel.left {
184
- left: 0;
185
- }
186
- .react-flow__panel.right {
187
- right: 0;
188
- }
189
- .react-flow__panel.center {
190
- left: 50%;
191
- transform: translateX(-50%);
192
- }
193
- .react-flow__attribution {
194
- font-size: 10px;
195
- background: rgba(255, 255, 255, 0.5);
196
- padding: 2px 3px;
197
- margin: 0;
198
- }
199
- .react-flow__attribution a {
200
- text-decoration: none;
201
- color: #999;
202
- }
203
- @-webkit-keyframes dashdraw {
204
- from {
205
- stroke-dashoffset: 10;
206
- }
207
- }
208
- @keyframes dashdraw {
209
- from {
210
- stroke-dashoffset: 10;
211
- }
212
- }
213
- .react-flow__edgelabel-renderer {
214
- position: absolute;
215
- width: 100%;
216
- height: 100%;
217
- pointer-events: none;
218
- -webkit-user-select: none;
219
- -moz-user-select: none;
220
- user-select: none;
221
- }
222
- .react-flow__edge.updating .react-flow__edge-path {
223
- stroke: #777;
224
- }
225
- .react-flow__edge-text {
226
- font-size: 10px;
227
- }
228
- .react-flow__node.selectable:focus,
229
- .react-flow__node.selectable:focus-visible {
230
- outline: none;
231
- }
232
- .react-flow__node-default,
233
- .react-flow__node-input,
234
- .react-flow__node-output {
235
- padding: ${uikitReactCore.theme.space.sm};
236
- border-radius: ${uikitReactCore.theme.radii.round};
237
- width: 150px;
238
- color: ${uikitReactCore.theme.colors.text};
239
- text-align: center;
240
- border: 1px solid ${uikitReactCore.theme.colors.negative};
241
- background-color: ${uikitReactCore.theme.colors.negativeDimmed};
242
- }
243
- .react-flow__node-group {
244
- color: ${uikitReactCore.theme.colors.text};
245
- text-align: center;
246
- }
247
- .react-flow__node-default::before {
248
- content: "Unknown node type";
249
- display: block;
250
- }
251
- .react-flow__node-default.selectable:hover,
252
- .react-flow__node-input.selectable:hover,
253
- .react-flow__node-output.selectable:hover,
254
- .react-flow__node-group.selectable:hover {
255
- }
256
- .react-flow__node-default.selectable.selected,
257
- .react-flow__node-default.selectable:focus,
258
- .react-flow__node-default.selectable:focus-visible,
259
- .react-flow__node-input.selectable.selected,
260
- .react-flow__node-input.selectable:focus,
261
- .react-flow__node-input.selectable:focus-visible,
262
- .react-flow__node-output.selectable.selected,
263
- .react-flow__node-output.selectable:focus,
264
- .react-flow__node-output.selectable:focus-visible,
265
- .react-flow__node-group.selectable.selected,
266
- .react-flow__node-group.selectable:focus,
267
- .react-flow__node-group.selectable:focus-visible {
268
- }
269
- .react-flow__node-group {
270
- background-color: rgba(240, 240, 240, 0.25);
271
- }
272
- .react-flow__nodesselection-rect,
273
- .react-flow__selection {
274
- background: rgba(0, 89, 220, 0.08);
275
- }
276
- .react-flow__nodesselection-rect:focus,
277
- .react-flow__nodesselection-rect:focus-visible,
278
- .react-flow__selection:focus,
279
- .react-flow__selection:focus-visible {
280
- outline: none;
281
- }
282
- .react-flow__controls {
283
- box-shadow: ${uikitReactCore.theme.colors.shadow};
284
- }
285
- .react-flow__controls-button {
286
- border: none;
287
- background: #fefefe;
288
- border-bottom: 1px solid #eee;
289
- box-sizing: content-box;
290
- display: flex;
291
- justify-content: center;
292
- align-items: center;
293
- width: 16px;
294
- height: 16px;
295
- cursor: pointer;
296
- -webkit-user-select: none;
297
- -moz-user-select: none;
298
- user-select: none;
299
- padding: 5px;
300
- }
301
- .react-flow__controls-button:hover {
302
- background: #f4f4f4;
303
- }
304
- .react-flow__controls-button svg {
305
- width: 100%;
306
- max-width: 12px;
307
- max-height: 12px;
308
- }
309
- .react-flow__controls-button:disabled {
310
- pointer-events: none;
311
- }
312
- .react-flow__controls-button:disabled svg {
313
- fill-opacity: 0.4;
314
- }
315
- .react-flow__minimap {
316
- background-color: #fff;
317
- }
318
- .react-flow__resize-control {
319
- position: absolute;
320
- }
321
- .react-flow__resize-control.left,
322
- .react-flow__resize-control.right {
323
- cursor: ew-resize;
324
- }
325
- .react-flow__resize-control.top,
326
- .react-flow__resize-control.bottom {
327
- cursor: ns-resize;
328
- }
329
- .react-flow__resize-control.top.left,
330
- .react-flow__resize-control.bottom.right {
331
- cursor: nwse-resize;
332
- }
333
- .react-flow__resize-control.bottom.left,
334
- .react-flow__resize-control.top.right {
335
- cursor: nesw-resize;
336
- }
337
- /* handle styles */
338
- .react-flow__resize-control.handle {
339
- width: 4px;
340
- height: 4px;
341
- border: 1px solid #fff;
342
- border-radius: 1px;
343
- background-color: ${uikitReactCore.theme.colors.primary};
344
- transform: translate(-50%, -50%);
345
- }
346
- .react-flow__resize-control.handle.left {
347
- left: 0;
348
- top: 50%;
349
- }
350
- .react-flow__resize-control.handle.right {
351
- left: 100%;
352
- top: 50%;
353
- }
354
- .react-flow__resize-control.handle.top {
355
- left: 50%;
356
- top: 0;
357
- }
358
- .react-flow__resize-control.handle.bottom {
359
- left: 50%;
360
- top: 100%;
361
- }
362
- .react-flow__resize-control.handle.top.left {
363
- left: 0;
364
- }
365
- .react-flow__resize-control.handle.bottom.left {
366
- left: 0;
367
- }
368
- .react-flow__resize-control.handle.top.right {
369
- left: 100%;
370
- }
371
- .react-flow__resize-control.handle.bottom.right {
372
- left: 100%;
373
- }
374
- /* line styles */
375
- .react-flow__resize-control.line {
376
- border-color: ${uikitReactCore.theme.colors.primaryStrong};
377
- border-width: 0;
378
- border-style: dashed;
379
- }
380
- .react-flow__resize-control.line.left,
381
- .react-flow__resize-control.line.right {
382
- width: 1px;
383
- transform: translate(-50%, 0);
384
- top: 0;
385
- height: 100%;
386
- }
387
- .react-flow__resize-control.line.left {
388
- left: 0;
389
- border-left-width: 1px;
390
- }
391
- .react-flow__resize-control.line.right {
392
- left: 100%;
393
- border-right-width: 1px;
394
- }
395
- .react-flow__resize-control.line.top,
396
- .react-flow__resize-control.line.bottom {
397
- height: 1px;
398
- transform: translate(0, -50%);
399
- left: 0;
400
- width: 100%;
401
- }
402
- .react-flow__resize-control.line.top {
403
- top: 0;
404
- border-top-width: 1px;
405
- }
406
- .react-flow__resize-control.line.bottom {
407
- border-bottom-width: 1px;
408
- top: 100%;
409
- }
410
- `;
411
- exports.flowStyles = flowStyles;
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const react = require("react");
4
- const FlowContext = require("../FlowContext/FlowContext.cjs");
5
- const useFlowContext = () => react.useContext(FlowContext.HvFlowContext);
6
- exports.useFlowContext = useFlowContext;
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const reactflow = require("reactflow");
4
- function useFlowInstance() {
5
- return reactflow.useReactFlow();
6
- }
7
- exports.useFlowInstance = useFlowInstance;