@neo4j-ndl/react 3.6.1 → 3.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/lib/cjs/_common/export-stories-utils.js +33 -0
  2. package/lib/cjs/_common/export-stories-utils.js.map +1 -0
  3. package/lib/cjs/color-picker/ColorPicker.js +213 -0
  4. package/lib/cjs/color-picker/ColorPicker.js.map +1 -0
  5. package/lib/cjs/color-picker/stories/color-picker-custom-swatches.story.js +61 -0
  6. package/lib/cjs/color-picker/stories/color-picker-custom-swatches.story.js.map +1 -0
  7. package/lib/cjs/color-picker/stories/color-picker-full.story.js +36 -0
  8. package/lib/cjs/color-picker/stories/color-picker-full.story.js.map +1 -0
  9. package/lib/cjs/color-picker/stories/color-picker-without-eye-dropper.story.js +36 -0
  10. package/lib/cjs/color-picker/stories/color-picker-without-eye-dropper.story.js.map +1 -0
  11. package/lib/cjs/color-picker/stories/color-picker.stories.js +78 -0
  12. package/lib/cjs/color-picker/stories/color-picker.stories.js.map +1 -0
  13. package/lib/cjs/color-picker/stories/index.js +40 -0
  14. package/lib/cjs/color-picker/stories/index.js.map +1 -0
  15. package/lib/cjs/context-menu/ContextMenu.js +51 -51
  16. package/lib/cjs/context-menu/ContextMenu.js.map +1 -1
  17. package/lib/esm/_common/export-stories-utils.js +29 -0
  18. package/lib/esm/_common/export-stories-utils.js.map +1 -0
  19. package/lib/esm/color-picker/ColorPicker.js +207 -0
  20. package/lib/esm/color-picker/ColorPicker.js.map +1 -0
  21. package/lib/esm/color-picker/stories/color-picker-custom-swatches.story.js +59 -0
  22. package/lib/esm/color-picker/stories/color-picker-custom-swatches.story.js.map +1 -0
  23. package/lib/esm/color-picker/stories/color-picker-full.story.js +34 -0
  24. package/lib/esm/color-picker/stories/color-picker-full.story.js.map +1 -0
  25. package/lib/esm/color-picker/stories/color-picker-without-eye-dropper.story.js +34 -0
  26. package/lib/esm/color-picker/stories/color-picker-without-eye-dropper.story.js.map +1 -0
  27. package/lib/esm/color-picker/stories/color-picker.stories.js +75 -0
  28. package/lib/esm/color-picker/stories/color-picker.stories.js.map +1 -0
  29. package/lib/esm/color-picker/stories/index.js +31 -0
  30. package/lib/esm/color-picker/stories/index.js.map +1 -0
  31. package/lib/esm/context-menu/ContextMenu.js +51 -51
  32. package/lib/esm/context-menu/ContextMenu.js.map +1 -1
  33. package/lib/types/_common/export-stories-utils.d.ts +26 -0
  34. package/lib/types/color-picker/ColorPicker.d.ts +36 -0
  35. package/lib/types/color-picker/stories/color-picker-custom-swatches.story.d.ts +22 -0
  36. package/lib/types/color-picker/stories/color-picker-full.story.d.ts +22 -0
  37. package/lib/types/color-picker/stories/color-picker-without-eye-dropper.story.d.ts +22 -0
  38. package/lib/types/color-picker/stories/color-picker.stories.d.ts +47 -0
  39. package/lib/types/color-picker/stories/index.d.ts +26 -0
  40. package/lib/types/context-menu/ContextMenu.d.ts +2 -2
  41. package/package.json +4 -2
@@ -0,0 +1,34 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ import { useState } from 'react';
23
+ import { ColorPicker } from '../ColorPicker';
24
+ const Component = () => {
25
+ const [color, setColor] = useState({
26
+ a: 1,
27
+ b: 0,
28
+ g: 0,
29
+ r: 0,
30
+ });
31
+ return (_jsx("div", { className: "n-w-60", children: _jsx(ColorPicker, { color: color, onChange: (newColor) => setColor(newColor.rgb) }) }));
32
+ };
33
+ export default Component;
34
+ //# sourceMappingURL=color-picker-full.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"color-picker-full.story.js","sourceRoot":"","sources":["../../../../src/color-picker/stories/color-picker-full.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC;QACjC,CAAC,EAAE,CAAC;QACJ,CAAC,EAAE,CAAC;QACJ,CAAC,EAAE,CAAC;QACJ,CAAC,EAAE,CAAC;KACL,CAAC,CAAC;IAEH,OAAO,CACL,cAAK,SAAS,EAAC,QAAQ,YACrB,KAAC,WAAW,IACV,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,GAC9C,GACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,34 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ import { useState } from 'react';
23
+ import { ColorPicker } from '../ColorPicker';
24
+ const Component = () => {
25
+ const [color, setColor] = useState({
26
+ a: 1,
27
+ b: 0,
28
+ g: 0,
29
+ r: 0,
30
+ });
31
+ return (_jsx("div", { className: "n-w-60", children: _jsx(ColorPicker, { color: color, onChange: (newColor) => setColor(newColor.rgb), shouldShowEyeDropper: false }) }));
32
+ };
33
+ export default Component;
34
+ //# sourceMappingURL=color-picker-without-eye-dropper.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"color-picker-without-eye-dropper.story.js","sourceRoot":"","sources":["../../../../src/color-picker/stories/color-picker-without-eye-dropper.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC;QACjC,CAAC,EAAE,CAAC;QACJ,CAAC,EAAE,CAAC;QACJ,CAAC,EAAE,CAAC;QACJ,CAAC,EAAE,CAAC;KACL,CAAC,CAAC;IAEH,OAAO,CACL,cAAK,SAAS,EAAC,QAAQ,YACrB,KAAC,WAAW,IACV,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,EAC9C,oBAAoB,EAAE,KAAK,GAC3B,GACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,75 @@
1
+ /**
2
+ *
3
+ * Copyright (c) "Neo4j"
4
+ * Neo4j Sweden AB [http://neo4j.com]
5
+ *
6
+ * This file is part of Neo4j.
7
+ *
8
+ * Neo4j is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
+ */
21
+
22
+ import { ColorPicker } from '../ColorPicker';
23
+ import { ColorPickerCustomSwatches, ColorPickerCustomSwatchesSource, ColorPickerFull, ColorPickerFullSource, ColorPickerWithoutEyeDropper, ColorPickerWithoutEyeDropperSource, } from '.';
24
+ const componentMeta = {
25
+ component: ColorPicker,
26
+ parameters: {
27
+ controls: { disable: true },
28
+ },
29
+ tags: ['docsPage'],
30
+ title: 'Components/ColorPicker',
31
+ };
32
+ export default componentMeta;
33
+ export const Full = {
34
+ // @ts-expect-error The args from the full story are not actually used but we get a type issue here
35
+ args: {},
36
+ parameters: {
37
+ docs: {
38
+ source: {
39
+ code: ColorPickerFullSource,
40
+ language: 'tsx',
41
+ type: 'code',
42
+ },
43
+ },
44
+ },
45
+ render: ColorPickerFull,
46
+ };
47
+ export const WithoutEyeDropper = {
48
+ // @ts-expect-error The args from the full story are not actually used but we get a type issue here
49
+ args: {},
50
+ parameters: {
51
+ docs: {
52
+ source: {
53
+ code: ColorPickerWithoutEyeDropperSource,
54
+ language: 'tsx',
55
+ type: 'code',
56
+ },
57
+ },
58
+ },
59
+ render: ColorPickerWithoutEyeDropper,
60
+ };
61
+ export const CustomSwatches = {
62
+ // @ts-expect-error The args from the full story are not actually used but we get a type issue here
63
+ args: {},
64
+ parameters: {
65
+ docs: {
66
+ source: {
67
+ code: ColorPickerCustomSwatchesSource,
68
+ language: 'tsx',
69
+ type: 'code',
70
+ },
71
+ },
72
+ },
73
+ render: ColorPickerCustomSwatches,
74
+ };
75
+ //# sourceMappingURL=color-picker.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"color-picker.stories.js","sourceRoot":"","sources":["../../../../src/color-picker/stories/color-picker.stories.tsx"],"names":[],"mappings":"AAsBA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EACL,yBAAyB,EACzB,+BAA+B,EAC/B,eAAe,EACf,qBAAqB,EACrB,4BAA4B,EAC5B,kCAAkC,GACnC,MAAM,GAAG,CAAC;AAEX,MAAM,aAAa,GAAG;IACpB,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE;QACV,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;KAC5B;IACD,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,KAAK,EAAE,wBAAwB;CACG,CAAC;AAErC,eAAe,aAAa,CAAC;AAG7B,MAAM,CAAC,MAAM,IAAI,GAAU;IACzB,mGAAmG;IACnG,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,qBAAqB;gBAC3B,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,eAAe;CACxB,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAU;IACtC,mGAAmG;IACnG,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,kCAAkC;gBACxC,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,4BAA4B;CACrC,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAU;IACnC,mGAAmG;IACnG,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,+BAA+B;gBACrC,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,yBAAyB;CAClC,CAAC"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ *
3
+ * Copyright (c) "Neo4j"
4
+ * Neo4j Sweden AB [http://neo4j.com]
5
+ *
6
+ * This file is part of Neo4j.
7
+ *
8
+ * Neo4j is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
+ */
21
+ export { default as ColorPickerFull } from './color-picker-full.story';
22
+ export { default as ColorPickerWithoutEyeDropper } from './color-picker-without-eye-dropper.story';
23
+ export { default as ColorPickerCustomSwatches } from './color-picker-custom-swatches.story';
24
+ import { removeLicenseHeader } from '@neo4j-ndl/react/_common/export-stories-utils';
25
+ import ColorPickerCustomSwatchesSourceRaw from './color-picker-custom-swatches.story.tsx?raw';
26
+ import ColorPickerFullSourceRaw from './color-picker-full.story.tsx?raw';
27
+ import ColorPickerWithoutEyeDropperSourceRaw from './color-picker-without-eye-dropper.story.tsx?raw';
28
+ export const ColorPickerFullSource = removeLicenseHeader(ColorPickerFullSourceRaw);
29
+ export const ColorPickerWithoutEyeDropperSource = removeLicenseHeader(ColorPickerWithoutEyeDropperSourceRaw);
30
+ export const ColorPickerCustomSwatchesSource = removeLicenseHeader(ColorPickerCustomSwatchesSourceRaw);
31
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/color-picker/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AACnG,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AAE5F,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAC;AAEpF,OAAO,kCAAkC,MAAM,8CAA8C,CAAC;AAC9F,OAAO,wBAAwB,MAAM,mCAAmC,CAAC;AACzE,OAAO,qCAAqC,MAAM,kDAAkD,CAAC;AAErG,MAAM,CAAC,MAAM,qBAAqB,GAAG,mBAAmB,CACtD,wBAAwB,CACzB,CAAC;AACF,MAAM,CAAC,MAAM,kCAAkC,GAAG,mBAAmB,CACnE,qCAAqC,CACtC,CAAC;AACF,MAAM,CAAC,MAAM,+BAA+B,GAAG,mBAAmB,CAChE,kCAAkC,CACnC,CAAC"}
@@ -29,13 +29,13 @@ import { ChevronRightIconOutline, XMarkIconOutline } from '../icons';
29
29
  import { placementTranslation } from '../popover';
30
30
  import { useNeedleTheme } from '../theme';
31
31
  const MenuContext = createContext({
32
- getItemProps: () => ({}),
33
32
  activeIndex: null,
33
+ getItemProps: () => ({}),
34
+ isOpen: false,
34
35
  // eslint-disable-next-line @typescript-eslint/no-empty-function
35
36
  setActiveIndex: () => { },
36
37
  // eslint-disable-next-line @typescript-eslint/no-empty-function
37
38
  setHasFocusInside: () => { },
38
- isOpen: false,
39
39
  });
40
40
  const MenuComponent = forwardRef(function MenuComponent({ children, isOpen: controlledOpen, onClose, isRoot, anchorRef, as, className, placement, minWidth, title, isDisabled, description, icon, isPortaled = true, portalTarget, htmlAttributes, }, forwardedRef) {
41
41
  const [isOpen, setIsOpen] = useState(false);
@@ -55,12 +55,24 @@ const MenuComponent = forwardRef(function MenuComponent({ children, isOpen: cont
55
55
  }
56
56
  setIsOpen(controlledOpen);
57
57
  }, [controlledOpen]);
58
- const Component = as || 'div';
58
+ const Component = as !== null && as !== void 0 ? as : 'div';
59
59
  const isNested = parentId !== null;
60
60
  const defaultPlacement = isNested ? 'right-start' : 'bottom-start';
61
61
  const { floatingStyles, refs, context } = useFloating({
62
+ elements: {
63
+ reference: anchorRef === null || anchorRef === void 0 ? void 0 : anchorRef.current,
64
+ },
65
+ middleware: [
66
+ offset({
67
+ alignmentAxis: isNested ? -4 : 0,
68
+ mainAxis: isNested ? 0 : 4,
69
+ }),
70
+ flip({
71
+ fallbackPlacements: ['left-start', 'right-start'],
72
+ }),
73
+ shift(),
74
+ ],
62
75
  nodeId,
63
- open: isOpen,
64
76
  onOpenChange: (open, event) => {
65
77
  if (controlledOpen === undefined) {
66
78
  setIsOpen(open);
@@ -74,44 +86,32 @@ const MenuComponent = forwardRef(function MenuComponent({ children, isOpen: cont
74
86
  }
75
87
  }
76
88
  },
89
+ open: isOpen,
77
90
  placement: placement ? placementTranslation[placement] : defaultPlacement,
78
- elements: {
79
- reference: anchorRef === null || anchorRef === void 0 ? void 0 : anchorRef.current,
80
- },
81
- middleware: [
82
- offset({
83
- mainAxis: isNested ? 0 : 4,
84
- alignmentAxis: isNested ? -4 : 0,
85
- }),
86
- flip({
87
- fallbackPlacements: ['left-start', 'right-start'],
88
- }),
89
- shift(),
90
- ],
91
91
  whileElementsMounted: autoUpdate,
92
92
  });
93
93
  const hover = useHover(context, {
94
- enabled: isNested,
95
94
  delay: { open: 75 },
95
+ enabled: isNested,
96
96
  handleClose: safePolygon({ blockPointerEvents: true }),
97
97
  });
98
98
  const click = useClick(context, {
99
99
  event: 'mousedown',
100
- toggle: !isNested,
101
100
  ignoreMouse: isNested,
101
+ toggle: !isNested,
102
102
  });
103
103
  const role = useRole(context, { role: 'menu' });
104
104
  const dismiss = useDismiss(context, { bubbles: true });
105
105
  const listNavigation = useListNavigation(context, {
106
- listRef: elementsRef,
107
106
  activeIndex,
107
+ listRef: elementsRef,
108
108
  nested: isNested,
109
109
  onNavigate: setActiveIndex,
110
110
  });
111
111
  const typeahead = useTypeahead(context, {
112
+ activeIndex,
112
113
  listRef: labelsRef,
113
114
  onMatch: isOpen ? setActiveIndex : undefined,
114
- activeIndex,
115
115
  });
116
116
  const { getReferenceProps, getFloatingProps, getItemProps } = useInteractions([hover, click, role, dismiss, listNavigation, typeahead]);
117
117
  // Event emitter allows you to communicate across tree components.
@@ -124,7 +124,7 @@ const MenuComponent = forwardRef(function MenuComponent({ children, isOpen: cont
124
124
  if (controlledOpen === undefined) {
125
125
  setIsOpen(false);
126
126
  }
127
- onClose === null || onClose === void 0 ? void 0 : onClose(undefined, { type: 'itemClick', id: data === null || data === void 0 ? void 0 : data.id });
127
+ onClose === null || onClose === void 0 ? void 0 : onClose(undefined, { id: data === null || data === void 0 ? void 0 : data.id, type: 'itemClick' });
128
128
  }
129
129
  function onSubMenuOpen(event) {
130
130
  if (event.nodeId !== nodeId && event.parentId === parentId) {
@@ -143,16 +143,16 @@ const MenuComponent = forwardRef(function MenuComponent({ children, isOpen: cont
143
143
  }, [tree, nodeId, parentId, onClose, controlledOpen]);
144
144
  useEffect(() => {
145
145
  if (isOpen && tree) {
146
- tree.events.emit('menuopen', { parentId, nodeId });
146
+ tree.events.emit('menuopen', { nodeId, parentId });
147
147
  }
148
148
  }, [tree, isOpen, nodeId, parentId]);
149
149
  const menuClasses = classNames('ndl-menu', themeClassName, className);
150
150
  const ref = useMergeRefs([refs.setReference, item.ref, forwardedRef]);
151
- return (_jsxs(FloatingNode, { id: nodeId, children: [!isRoot && (_jsx(NestedMenuItem, { ref: ref, className: isNested ? 'MenuItem' : 'RootMenu', isDisabled: isDisabled, htmlAttributes: Object.assign(Object.assign({ tabIndex: !isNested
151
+ return (_jsxs(FloatingNode, { id: nodeId, children: [isRoot !== true && (_jsx(NestedMenuItem, { ref: ref, className: isNested ? 'MenuItem' : 'RootMenu', isDisabled: isDisabled, htmlAttributes: Object.assign(Object.assign({ 'data-focus-inside': hasFocusInside ? '' : undefined, 'data-nested': isNested ? '' : undefined, 'data-open': isOpen ? '' : undefined, role: isNested ? 'menuitem' : undefined, tabIndex: !isNested
152
152
  ? undefined
153
153
  : parent.activeIndex === item.index
154
154
  ? 0
155
- : -1, role: isNested ? 'menuitem' : undefined, 'data-open': isOpen ? '' : undefined, 'data-nested': isNested ? '' : undefined, 'data-focus-inside': hasFocusInside ? '' : undefined }, htmlAttributes), getReferenceProps(parent.getItemProps({
155
+ : -1 }, htmlAttributes), getReferenceProps(parent.getItemProps({
156
156
  onFocus(event) {
157
157
  var _a;
158
158
  (_a = htmlAttributes === null || htmlAttributes === void 0 ? void 0 : htmlAttributes.onFocus) === null || _a === void 0 ? void 0 : _a.call(htmlAttributes, event);
@@ -161,23 +161,23 @@ const MenuComponent = forwardRef(function MenuComponent({ children, isOpen: cont
161
161
  },
162
162
  }))), title: title, description: description, icon: icon })), _jsx(MenuContext.Provider, { value: {
163
163
  activeIndex,
164
- setActiveIndex,
165
164
  getItemProps,
165
+ isOpen: isDisabled === true ? false : isOpen,
166
+ setActiveIndex,
166
167
  setHasFocusInside,
167
- isOpen: isDisabled ? false : isOpen,
168
- }, children: _jsx(FloatingList, { elementsRef: elementsRef, labelsRef: labelsRef, children: isOpen && (_jsx(ConditionalWrap, { shouldWrap: isPortaled, wrap: (wrapChildren) => (_jsx(FloatingPortal, { root: portalTarget, children: wrapChildren })), children: _jsx(FloatingFocusManager, { context: context, modal: false, initialFocus: isNested ? -1 : 0, returnFocus: !isNested, closeOnFocusOut: true, guards: true, children: _jsx(Component, Object.assign({ ref: refs.setFloating, className: menuClasses, style: Object.assign({ minWidth: minWidth ? `${minWidth}px` : undefined }, floatingStyles) }, getFloatingProps(), { children: children })) }) })) }) })] }));
168
+ }, children: _jsx(FloatingList, { elementsRef: elementsRef, labelsRef: labelsRef, children: isOpen && (_jsx(ConditionalWrap, { shouldWrap: isPortaled, wrap: (wrapChildren) => (_jsx(FloatingPortal, { root: portalTarget, children: wrapChildren })), children: _jsx(FloatingFocusManager, { context: context, modal: false, initialFocus: isNested ? -1 : 0, returnFocus: !isNested, closeOnFocusOut: true, guards: true, children: _jsx(Component, Object.assign({ ref: refs.setFloating, className: menuClasses, style: Object.assign({ minWidth: minWidth !== undefined ? `${minWidth}px` : undefined }, floatingStyles) }, getFloatingProps(), { children: children })) }) })) }) })] }));
169
169
  });
170
170
  const MenuItem = forwardRef(function MenuItem({ title, className, style, icon, description, isDisabled, as, onClick, onFocus, htmlAttributes, id, }, forwardedRef) {
171
171
  const menu = useContext(MenuContext);
172
172
  const itemLabel = typeof title === 'string' ? title : undefined;
173
- const item = useListItem({ label: isDisabled ? null : itemLabel });
173
+ const item = useListItem({ label: isDisabled === true ? null : itemLabel });
174
174
  const tree = useFloatingTree();
175
175
  const isActive = item.index === menu.activeIndex;
176
176
  const classes = classNames(`ndl-menu-item`, className, {
177
177
  'ndl-disabled': isDisabled,
178
178
  });
179
179
  const ref = useMergeRefs([item.ref, forwardedRef]);
180
- const Component = as || 'button';
180
+ const Component = as !== null && as !== void 0 ? as : 'button';
181
181
  return (_jsx(_Fragment, { children: _jsx(Component, Object.assign({ className: classes, ref: ref, type: "button", role: "menuitem", tabIndex: isActive ? 0 : -1, disabled: isDisabled }, htmlAttributes, menu.getItemProps({
182
182
  onClick(event) {
183
183
  onClick === null || onClick === void 0 ? void 0 : onClick(event);
@@ -188,15 +188,15 @@ const MenuItem = forwardRef(function MenuItem({ title, className, style, icon, d
188
188
  menu.setHasFocusInside(true);
189
189
  },
190
190
  style: style,
191
- }), { children: _jsxs("div", { className: "n-flex n-flex-row n-gap-token-4", children: [icon && _jsx("div", { className: "ndl-menu-item-icon", children: icon }), _jsxs("div", { className: "n-flex n-flex-col n-gap-token-2 n-w-full", children: [_jsx("div", { className: "ndl-menu-item-title", children: title }), description && (_jsx("div", { className: "ndl-menu-item-description", children: description }))] })] }) })) }));
191
+ }), { children: _jsxs("div", { className: "ndl-menu-item-inner", children: [Boolean(icon) && _jsx("div", { className: "ndl-menu-item-icon", children: icon }), _jsxs("div", { className: "ndl-menu-item-title-wrapper", children: [_jsx("div", { className: "ndl-menu-item-title", children: title }), Boolean(description) && (_jsx("div", { className: "ndl-menu-item-description", children: description }))] })] }) })) }));
192
192
  });
193
193
  const NestedMenuItem = forwardRef(function MenuItem({ title, isDisabled, className, description, icon, as, onFocus, onClick, htmlAttributes, }, forwardedRef) {
194
194
  const menu = useContext(MenuContext);
195
195
  const itemLabel = typeof title === 'string' ? title : undefined;
196
- const item = useListItem({ label: isDisabled ? null : itemLabel });
196
+ const item = useListItem({ label: isDisabled === true ? null : itemLabel });
197
197
  const tree = useFloatingTree();
198
198
  const isActive = item.index === menu.activeIndex;
199
- const Component = as || 'button';
199
+ const Component = as !== null && as !== void 0 ? as : 'button';
200
200
  const ref = useMergeRefs([item.ref, forwardedRef]);
201
201
  const classes = classNames(`ndl-menu-item`, className, {
202
202
  'ndl-disabled': isDisabled,
@@ -210,7 +210,7 @@ const NestedMenuItem = forwardRef(function MenuItem({ title, isDisabled, classNa
210
210
  onFocus === null || onFocus === void 0 ? void 0 : onFocus(event);
211
211
  menu.setHasFocusInside(true);
212
212
  },
213
- }), { children: _jsxs("div", { className: "n-flex n-flex-row n-gap-token-4 n-w-full", children: [icon && _jsx("div", { className: "ndl-menu-item-icon", children: icon }), _jsxs("div", { className: "n-flex n-flex-col n-gap-token-2 n-w-full", children: [_jsxs("div", { className: "n-flex n-flex-row n-items-center n-w-full", children: [_jsx("div", { className: "ndl-menu-item-title", children: title }), _jsx("span", { className: "n-text-palette-neutral-text-weak", children: _jsx(ChevronRightIconOutline, { className: "n-size-token-6" }) })] }), description && (_jsx("div", { className: "ndl-menu-item-description", children: description }))] })] }) })));
213
+ }), { children: _jsxs("div", { className: "ndl-menu-item-inner", children: [Boolean(icon) && _jsx("div", { className: "ndl-menu-item-icon", children: icon }), _jsxs("div", { className: "ndl-menu-item-title-wrapper", children: [_jsx("div", { className: "ndl-menu-item-title", children: title }), Boolean(description) && (_jsx("div", { className: "ndl-menu-item-description", children: description }))] }), _jsx("span", { className: "ndl-menu-item-chevron", children: _jsx(ChevronRightIconOutline, {}) })] }) })));
214
214
  });
215
215
  const MenuWrapper = forwardRef(function Menu(props, ref) {
216
216
  const parentId = useFloatingParentNodeId();
@@ -221,7 +221,7 @@ const MenuWrapper = forwardRef(function Menu(props, ref) {
221
221
  });
222
222
  const MenuItems = React.forwardRef(function MenuItems({ as, children, className, htmlAttributes, style, }, ref) {
223
223
  const classes = classNames('ndl-menu-items', className);
224
- const Component = as || 'div';
224
+ const Component = as !== null && as !== void 0 ? as : 'div';
225
225
  return (_jsx(Component, Object.assign({ className: classes, style: style, ref: ref }, htmlAttributes, { children: children })));
226
226
  });
227
227
  const MenuDivider = forwardRef(function MenuDivider(props, ref) {
@@ -229,31 +229,31 @@ const MenuDivider = forwardRef(function MenuDivider(props, ref) {
229
229
  });
230
230
  const MenuSubheader = (props) => (_jsx("div", { className: "ndl-menu-subheader", children: _jsx("div", { className: "ndl-menu-subheader-title", children: props.title }) }));
231
231
  const MenuHeader = forwardRef(function MenuHeader({ as, title, description, className, htmlAttributes, }, forwardedRef) {
232
- const Component = as || 'div';
232
+ const Component = as !== null && as !== void 0 ? as : 'div';
233
233
  const menu = useContext(MenuContext);
234
234
  const item = useListItem({ label: null });
235
235
  const tree = useFloatingTree();
236
236
  const ref = useMergeRefs([item.ref, forwardedRef]);
237
- const classes = classNames('ndl-menu-header n-flex n-flex-col', className);
238
- return (_jsxs(Component, { className: classes, children: [_jsxs("div", { className: "n-flex n-justify-between n-items-center", children: [_jsx("div", { className: "ndl-menu-header-title", children: title }), _jsx(IconButton, { ariaLabel: "Close", isClean: true, htmlAttributes: Object.assign(Object.assign(Object.assign({}, htmlAttributes), { tabIndex: 0 }), menu.getItemProps({
239
- onClick(event) {
240
- var _a;
241
- (_a = htmlAttributes === null || htmlAttributes === void 0 ? void 0 : htmlAttributes.onClick) === null || _a === void 0 ? void 0 : _a.call(htmlAttributes, event);
242
- tree === null || tree === void 0 ? void 0 : tree.events.emit('click');
243
- },
244
- onFocus(event) {
245
- var _a;
246
- (_a = htmlAttributes === null || htmlAttributes === void 0 ? void 0 : htmlAttributes.onFocus) === null || _a === void 0 ? void 0 : _a.call(htmlAttributes, event);
247
- menu.setHasFocusInside(true);
248
- },
249
- })), ref: ref, children: _jsx(XMarkIconOutline, {}) })] }), description && (_jsx("div", { className: "ndl-menu-header-description", children: description }))] }));
237
+ const classes = classNames('ndl-menu-header', className);
238
+ return (_jsxs(Component, { className: classes, children: [_jsxs("div", { className: "n-flex n-flex-col", children: [_jsx("div", { className: "ndl-menu-header-title", children: title }), Boolean(description) && (_jsx("div", { className: "ndl-menu-header-description", children: description }))] }), _jsx(IconButton, { className: "ndl-menu-header-close-button", ariaLabel: "Close", isClean: true, htmlAttributes: Object.assign(Object.assign(Object.assign({}, htmlAttributes), { tabIndex: 0 }), menu.getItemProps({
239
+ onClick(event) {
240
+ var _a;
241
+ (_a = htmlAttributes === null || htmlAttributes === void 0 ? void 0 : htmlAttributes.onClick) === null || _a === void 0 ? void 0 : _a.call(htmlAttributes, event);
242
+ tree === null || tree === void 0 ? void 0 : tree.events.emit('click');
243
+ },
244
+ onFocus(event) {
245
+ var _a;
246
+ (_a = htmlAttributes === null || htmlAttributes === void 0 ? void 0 : htmlAttributes.onFocus) === null || _a === void 0 ? void 0 : _a.call(htmlAttributes, event);
247
+ menu.setHasFocusInside(true);
248
+ },
249
+ })), ref: ref, children: _jsx(XMarkIconOutline, {}) })] }));
250
250
  });
251
251
  const Menu = Object.assign(MenuWrapper, {
252
+ Divider: MenuDivider,
253
+ Header: MenuHeader,
252
254
  Item: MenuItem,
253
255
  Items: MenuItems,
254
- Divider: MenuDivider,
255
256
  Subheader: MenuSubheader,
256
- Header: MenuHeader,
257
257
  });
258
258
  export { Menu };
259
259
  //# sourceMappingURL=ContextMenu.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ContextMenu.js","sourceRoot":"","sources":["../../../src/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AI,EAAE,QAAQ;IACd,KAAK,EAAE,SAAS;IAChB,SAAS,EAAE,aAAa;CACzB,CAAC,CAAC;AACH,OAAO,EAAE,IAAI,EAAE,CAAC"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ *
3
+ * Copyright (c) "Neo4j"
4
+ * Neo4j Sweden AB [http://neo4j.com]
5
+ *
6
+ * This file is part of Neo4j.
7
+ *
8
+ * Neo4j is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
+ */
21
+ /**
22
+ * Removes license header comments from source code
23
+ * @param source Raw source code string
24
+ * @returns Source code with license header removed
25
+ */
26
+ export declare const removeLicenseHeader: (source: string) => string;
@@ -0,0 +1,36 @@
1
+ /**
2
+ *
3
+ * Copyright (c) "Neo4j"
4
+ * Neo4j Sweden AB [http://neo4j.com]
5
+ *
6
+ * This file is part of Neo4j.
7
+ *
8
+ * Neo4j is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
+ */
21
+ import 'eyedropper-polyfill';
22
+ import { type HexColor, type HsvaColor, type RgbaColor } from '@uiw/react-color';
23
+ type ColorPickerProps = {
24
+ color: HsvaColor | RgbaColor | HexColor;
25
+ swatches?: (HsvaColor | RgbaColor | HexColor)[];
26
+ shouldShowEyeDropper?: boolean;
27
+ onChange: (newColor: {
28
+ hex: HexColor;
29
+ rgb: RgbaColor;
30
+ hsva: HsvaColor;
31
+ }) => void;
32
+ className?: string;
33
+ style?: React.CSSProperties;
34
+ };
35
+ export declare const ColorPicker: import("react").ForwardRefExoticComponent<ColorPickerProps & import("react").RefAttributes<HTMLDivElement>>;
36
+ export {};
@@ -0,0 +1,22 @@
1
+ /**
2
+ *
3
+ * Copyright (c) "Neo4j"
4
+ * Neo4j Sweden AB [http://neo4j.com]
5
+ *
6
+ * This file is part of Neo4j.
7
+ *
8
+ * Neo4j is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
+ */
21
+ declare const Component: () => import("react/jsx-runtime").JSX.Element;
22
+ export default Component;
@@ -0,0 +1,22 @@
1
+ /**
2
+ *
3
+ * Copyright (c) "Neo4j"
4
+ * Neo4j Sweden AB [http://neo4j.com]
5
+ *
6
+ * This file is part of Neo4j.
7
+ *
8
+ * Neo4j is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
+ */
21
+ declare const Component: () => import("react/jsx-runtime").JSX.Element;
22
+ export default Component;
@@ -0,0 +1,22 @@
1
+ /**
2
+ *
3
+ * Copyright (c) "Neo4j"
4
+ * Neo4j Sweden AB [http://neo4j.com]
5
+ *
6
+ * This file is part of Neo4j.
7
+ *
8
+ * Neo4j is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
+ */
21
+ declare const Component: () => import("react/jsx-runtime").JSX.Element;
22
+ export default Component;