@neo4j-ndl/react 3.9.4 → 3.9.6

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 (80) hide show
  1. package/lib/cjs/graph-label/stories/graph-label-color.story.js +2 -1
  2. package/lib/cjs/graph-label/stories/graph-label-color.story.js.map +1 -1
  3. package/lib/cjs/progress-bar/stories/index.js +40 -0
  4. package/lib/cjs/progress-bar/stories/index.js.map +1 -0
  5. package/lib/cjs/progress-bar/stories/progress-bar-default.story.js +30 -0
  6. package/lib/cjs/progress-bar/stories/progress-bar-default.story.js.map +1 -0
  7. package/lib/cjs/progress-bar/stories/progress-bar-heading.story.js +30 -0
  8. package/lib/cjs/progress-bar/stories/progress-bar-heading.story.js.map +1 -0
  9. package/lib/cjs/progress-bar/stories/progress-bar-sizes.story.js +30 -0
  10. package/lib/cjs/progress-bar/stories/progress-bar-sizes.story.js.map +1 -0
  11. package/lib/cjs/progress-bar/stories/progress-bar.stories.js +80 -0
  12. package/lib/cjs/progress-bar/stories/progress-bar.stories.js.map +1 -0
  13. package/lib/cjs/spotlight/stories/index.js +59 -0
  14. package/lib/cjs/spotlight/stories/index.js.map +1 -0
  15. package/lib/cjs/spotlight/stories/spotlight-fixed-positioning.story.js +48 -0
  16. package/lib/cjs/spotlight/stories/spotlight-fixed-positioning.story.js.map +1 -0
  17. package/lib/cjs/spotlight/stories/spotlight-in-dialog.story.js +49 -0
  18. package/lib/cjs/spotlight/stories/spotlight-in-dialog.story.js.map +1 -0
  19. package/lib/cjs/spotlight/stories/spotlight-in-side-nav.story.js +53 -0
  20. package/lib/cjs/spotlight/stories/spotlight-in-side-nav.story.js.map +1 -0
  21. package/lib/cjs/spotlight/stories/spotlight-tour.story.js +46 -0
  22. package/lib/cjs/spotlight/stories/spotlight-tour.story.js.map +1 -0
  23. package/lib/cjs/spotlight/stories/spotlight-with-icon.story.js +49 -0
  24. package/lib/cjs/spotlight/stories/spotlight-with-icon.story.js.map +1 -0
  25. package/lib/cjs/spotlight/stories/spotlight-with-image.story.js +48 -0
  26. package/lib/cjs/spotlight/stories/spotlight-with-image.story.js.map +1 -0
  27. package/lib/cjs/spotlight/stories/spotlight-with-label.story.js +48 -0
  28. package/lib/cjs/spotlight/stories/spotlight-with-label.story.js.map +1 -0
  29. package/lib/cjs/spotlight/stories/spotlight-with-pointer.story.js +48 -0
  30. package/lib/cjs/spotlight/stories/spotlight-with-pointer.story.js.map +1 -0
  31. package/lib/cjs/spotlight/stories/spotlight.stories.js +163 -0
  32. package/lib/cjs/spotlight/stories/spotlight.stories.js.map +1 -0
  33. package/lib/esm/graph-label/stories/graph-label-color.story.js +2 -1
  34. package/lib/esm/graph-label/stories/graph-label-color.story.js.map +1 -1
  35. package/lib/esm/progress-bar/stories/index.js +31 -0
  36. package/lib/esm/progress-bar/stories/index.js.map +1 -0
  37. package/lib/esm/progress-bar/stories/progress-bar-default.story.js +28 -0
  38. package/lib/esm/progress-bar/stories/progress-bar-default.story.js.map +1 -0
  39. package/lib/esm/progress-bar/stories/progress-bar-heading.story.js +28 -0
  40. package/lib/esm/progress-bar/stories/progress-bar-heading.story.js.map +1 -0
  41. package/lib/esm/progress-bar/stories/progress-bar-sizes.story.js +28 -0
  42. package/lib/esm/progress-bar/stories/progress-bar-sizes.story.js.map +1 -0
  43. package/lib/esm/progress-bar/stories/progress-bar.stories.js +77 -0
  44. package/lib/esm/progress-bar/stories/progress-bar.stories.js.map +1 -0
  45. package/lib/esm/spotlight/stories/index.js +45 -0
  46. package/lib/esm/spotlight/stories/index.js.map +1 -0
  47. package/lib/esm/spotlight/stories/spotlight-fixed-positioning.story.js +46 -0
  48. package/lib/esm/spotlight/stories/spotlight-fixed-positioning.story.js.map +1 -0
  49. package/lib/esm/spotlight/stories/spotlight-in-dialog.story.js +47 -0
  50. package/lib/esm/spotlight/stories/spotlight-in-dialog.story.js.map +1 -0
  51. package/lib/esm/spotlight/stories/spotlight-in-side-nav.story.js +51 -0
  52. package/lib/esm/spotlight/stories/spotlight-in-side-nav.story.js.map +1 -0
  53. package/lib/esm/spotlight/stories/spotlight-tour.story.js +44 -0
  54. package/lib/esm/spotlight/stories/spotlight-tour.story.js.map +1 -0
  55. package/lib/esm/spotlight/stories/spotlight-with-icon.story.js +47 -0
  56. package/lib/esm/spotlight/stories/spotlight-with-icon.story.js.map +1 -0
  57. package/lib/esm/spotlight/stories/spotlight-with-image.story.js +46 -0
  58. package/lib/esm/spotlight/stories/spotlight-with-image.story.js.map +1 -0
  59. package/lib/esm/spotlight/stories/spotlight-with-label.story.js +46 -0
  60. package/lib/esm/spotlight/stories/spotlight-with-label.story.js.map +1 -0
  61. package/lib/esm/spotlight/stories/spotlight-with-pointer.story.js +46 -0
  62. package/lib/esm/spotlight/stories/spotlight-with-pointer.story.js.map +1 -0
  63. package/lib/esm/spotlight/stories/spotlight.stories.js +157 -0
  64. package/lib/esm/spotlight/stories/spotlight.stories.js.map +1 -0
  65. package/lib/types/progress-bar/stories/index.d.ts +26 -0
  66. package/lib/types/progress-bar/stories/progress-bar-default.story.d.ts +23 -0
  67. package/lib/types/progress-bar/stories/progress-bar-heading.story.d.ts +23 -0
  68. package/lib/types/progress-bar/stories/progress-bar-sizes.story.d.ts +23 -0
  69. package/lib/types/progress-bar/stories/progress-bar.stories.d.ts +28 -0
  70. package/lib/types/spotlight/stories/index.d.ts +36 -0
  71. package/lib/types/spotlight/stories/spotlight-fixed-positioning.story.d.ts +27 -0
  72. package/lib/types/spotlight/stories/spotlight-in-dialog.story.d.ts +27 -0
  73. package/lib/types/spotlight/stories/spotlight-in-side-nav.story.d.ts +27 -0
  74. package/lib/types/spotlight/stories/spotlight-tour.story.d.ts +23 -0
  75. package/lib/types/spotlight/stories/spotlight-with-icon.story.d.ts +27 -0
  76. package/lib/types/spotlight/stories/spotlight-with-image.story.d.ts +27 -0
  77. package/lib/types/spotlight/stories/spotlight-with-label.story.d.ts +27 -0
  78. package/lib/types/spotlight/stories/spotlight-with-pointer.story.d.ts +27 -0
  79. package/lib/types/spotlight/stories/spotlight.stories.d.ts +36 -0
  80. package/package.json +5 -5
@@ -0,0 +1,46 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } 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 '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
+ import { Button, Spotlight, SpotlightTarget, useNeedleTheme, useSpotlightContext, } from '@neo4j-ndl/react';
24
+ import { useEffect } from 'react';
25
+ const Component = (props) => {
26
+ const { themeClassName } = useNeedleTheme();
27
+ const { setIsOpen, setActiveSpotlight } = useSpotlightContext();
28
+ const targetId = `test-target-${themeClassName}`;
29
+ useEffect(() => {
30
+ if (props.isChromatic) {
31
+ setActiveSpotlight(targetId);
32
+ setIsOpen(true);
33
+ }
34
+ }, [setActiveSpotlight, setIsOpen, targetId, props.isChromatic]);
35
+ return (_jsxs("div", { className: "n-flex n-justify-center n-gap-token-10 n-h-[100px]", children: [_jsx(Button, { onClick: () => setActiveSpotlight(targetId), children: "Activate Spotlight" }), _jsx("div", { className: "n-left-[auto] n-top-[110px] n-fixed", children: _jsx(SpotlightTarget, { id: targetId, hasPulse: !props.isChromatic, borderRadius: 4, backgroundColor: "rgb(var(--theme-palette-neutral-bg-weak))", indicatorVariant: "border", indicatorPlacement: "middle-middle", children: _jsx(Button, { onClick: () => alert('Target button clicked'), children: "Target" }) }) }), _jsxs(Spotlight, { placement: "bottom-end-top-end", target: targetId, actions: [
36
+ {
37
+ label: 'Close',
38
+ onClick: () => {
39
+ setIsOpen(false);
40
+ setActiveSpotlight(null);
41
+ },
42
+ },
43
+ ], children: [_jsx(Spotlight.Header, { children: "This is a header" }), _jsx(Spotlight.Body, { children: "This is content" })] })] }));
44
+ };
45
+ export default Component;
46
+ //# sourceMappingURL=spotlight-fixed-positioning.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spotlight-fixed-positioning.story.js","sourceRoot":"","sources":["../../../../src/spotlight/stories/spotlight-fixed-positioning.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EACL,MAAM,EACN,SAAS,EACT,eAAe,EACf,cAAc,EACd,mBAAmB,GACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMlC,MAAM,SAAS,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC1C,MAAM,EAAE,cAAc,EAAE,GAAG,cAAc,EAAE,CAAC;IAC5C,MAAM,EAAE,SAAS,EAAE,kBAAkB,EAAE,GAAG,mBAAmB,EAAE,CAAC;IAEhE,MAAM,QAAQ,GAAG,eAAe,cAAc,EAAE,CAAC;IAEjD,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,KAAK,CAAC,WAAW,EAAE,CAAC;YACtB,kBAAkB,CAAC,QAAQ,CAAC,CAAC;YAC7B,SAAS,CAAC,IAAI,CAAC,CAAC;QAClB,CAAC;IACH,CAAC,EAAE,CAAC,kBAAkB,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;IAEjE,OAAO,CACL,eAAK,SAAS,EAAC,oDAAoD,aACjE,KAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,kBAAkB,CAAC,QAAQ,CAAC,mCAE1C,EACT,cAAK,SAAS,EAAC,qCAAqC,YAClD,KAAC,eAAe,IACd,EAAE,EAAE,QAAQ,EACZ,QAAQ,EAAE,CAAC,KAAK,CAAC,WAAW,EAC5B,YAAY,EAAE,CAAC,EACf,eAAe,EAAC,2CAA2C,EAC3D,gBAAgB,EAAC,QAAQ,EACzB,kBAAkB,EAAC,eAAe,YAElC,KAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,uBAAuB,CAAC,uBAAiB,GACtD,GACd,EACN,MAAC,SAAS,IACR,SAAS,EAAC,oBAAoB,EAC9B,MAAM,EAAE,QAAQ,EAChB,OAAO,EAAE;oBACP;wBACE,KAAK,EAAE,OAAO;wBACd,OAAO,EAAE,GAAG,EAAE;4BACZ,SAAS,CAAC,KAAK,CAAC,CAAC;4BACjB,kBAAkB,CAAC,IAAI,CAAC,CAAC;wBAC3B,CAAC;qBACF;iBACF,aAED,KAAC,SAAS,CAAC,MAAM,mCAAoC,EACrD,KAAC,SAAS,CAAC,IAAI,kCAAiC,IACtC,IACR,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,47 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } 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 '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
+ import { Button, Dialog, Spotlight, SpotlightTarget, Typography, useNeedleTheme, useSpotlightContext, } from '@neo4j-ndl/react';
24
+ import { useEffect, useState } from 'react';
25
+ const Component = (props) => {
26
+ const { themeClassName } = useNeedleTheme();
27
+ const { setIsOpen, setActiveSpotlight } = useSpotlightContext();
28
+ const [isModalOpen, setIsModalOpen] = useState(props.isChromatic);
29
+ const targetId = `test-target-${themeClassName}`;
30
+ useEffect(() => {
31
+ if (props.isChromatic && isModalOpen) {
32
+ setActiveSpotlight(targetId);
33
+ setIsOpen(true);
34
+ }
35
+ }, [isModalOpen, setActiveSpotlight, setIsOpen, targetId, props.isChromatic]);
36
+ return (_jsxs("div", { className: "n-flex n-justify-center n-gap-token-10", children: [_jsx(Button, { onClick: () => setIsModalOpen(true), children: "Open Modal" }), _jsxs(Dialog, { isOpen: isModalOpen, onClose: () => setIsModalOpen(false), "aria-label": "Dialog", modalProps: { className: themeClassName }, children: [_jsx(Dialog.Header, { children: "Using Spotlight inside a modal" }), _jsxs(Dialog.Description, { className: "n-flex n-flex-col n-gap-token-8", children: [_jsx(Typography, { variant: "body-medium", children: "Make sure to set hasAnchorPortal to true for both Spotlight and SpotlightTarget when the target is in a Dialog" }), _jsxs("div", { className: "n-flex n-justify-center n-gap-token-10", children: [_jsx(Button, { onClick: () => setActiveSpotlight(targetId), children: "Activate Spotlight" }), _jsx(SpotlightTarget, { id: targetId, hasPulse: !props.isChromatic, borderRadius: 4, backgroundColor: "rgb(var(--theme-palette-neutral-bg-weak))", indicatorVariant: "border", hasAnchorPortal: true, children: _jsx(Button, { onClick: () => alert('Target button clicked'), children: "Target" }) })] })] }), _jsxs(Spotlight, { placement: "bottom-end-top-end", hasAnchorPortal: true, target: targetId, actions: [
37
+ {
38
+ label: 'Close',
39
+ onClick: () => {
40
+ setIsOpen(false);
41
+ setActiveSpotlight(null);
42
+ },
43
+ },
44
+ ], children: [_jsx(Spotlight.Header, { children: "This is a header" }), _jsx(Spotlight.Body, { children: "This is content" })] })] })] }));
45
+ };
46
+ export default Component;
47
+ //# sourceMappingURL=spotlight-in-dialog.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spotlight-in-dialog.story.js","sourceRoot":"","sources":["../../../../src/spotlight/stories/spotlight-in-dialog.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EACL,MAAM,EACN,MAAM,EACN,SAAS,EACT,eAAe,EACf,UAAU,EACV,cAAc,EACd,mBAAmB,GACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAM5C,MAAM,SAAS,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC1C,MAAM,EAAE,cAAc,EAAE,GAAG,cAAc,EAAE,CAAC;IAC5C,MAAM,EAAE,SAAS,EAAE,kBAAkB,EAAE,GAAG,mBAAmB,EAAE,CAAC;IAEhE,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAU,KAAK,CAAC,WAAW,CAAC,CAAC;IAC3E,MAAM,QAAQ,GAAG,eAAe,cAAc,EAAE,CAAC;IAEjD,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,KAAK,CAAC,WAAW,IAAI,WAAW,EAAE,CAAC;YACrC,kBAAkB,CAAC,QAAQ,CAAC,CAAC;YAC7B,SAAS,CAAC,IAAI,CAAC,CAAC;QAClB,CAAC;IACH,CAAC,EAAE,CAAC,WAAW,EAAE,kBAAkB,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;IAE9E,OAAO,CACL,eAAK,SAAS,EAAC,wCAAwC,aACrD,KAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC,2BAAqB,EAChE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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 '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
+ import { Button, Spotlight, SpotlightTarget, useNeedleTheme, useSpotlightContext, } from '@neo4j-ndl/react';
24
+ import { SideNavigation } from '@neo4j-ndl/react/next';
25
+ import { useEffect, useState } from 'react';
26
+ const Component = (props) => {
27
+ const { themeClassName } = useNeedleTheme();
28
+ const { setActiveSpotlight, setIsOpen } = useSpotlightContext();
29
+ const [isSelected, setIsSelected] = useState('aura-db-instances');
30
+ const targetId = `test-target-${themeClassName}`;
31
+ const handleClick = (item) => {
32
+ setIsSelected(item);
33
+ };
34
+ useEffect(() => {
35
+ if (props.isChromatic) {
36
+ setActiveSpotlight(targetId);
37
+ setIsOpen(true);
38
+ }
39
+ }, [setActiveSpotlight, setIsOpen, targetId, props.isChromatic]);
40
+ return (_jsxs("div", { className: "n-h-[500px] n-flex", children: [_jsx(SideNavigation, { isExpanded: true, children: _jsxs(SideNavigation.List, { children: [_jsx(SideNavigation.CategoryHeader, { children: "AuraDB" }), _jsx(SideNavigation.NavItem, { as: "button", onClick: () => handleClick('aura-db-instances'), isSelected: isSelected === 'aura-db-instances', label: "Instances" }), _jsx(SideNavigation.NavItem, { as: "button", onClick: () => handleClick('aura-db-connect'), isSelected: isSelected === 'aura-db-connect', label: "Connect" }), _jsxs(SideNavigation.List, { children: [_jsx(SideNavigation.NavItem, { as: "button", onClick: () => handleClick('aura-db-python'), isSelected: isSelected === 'aura-db-python', label: "Python" }), _jsx(SpotlightTarget, { as: "li", id: targetId, hasPulse: !props.isChromatic, borderRadius: 4, backgroundColor: "rgb(var(--theme-palette-neutral-bg-weak))", indicatorVariant: "point", indicatorPlacement: "top-right", children: _jsx(SideNavigation.NavItem, { as: "button", onClick: () => handleClick('aura-db-javascript'), isSelected: isSelected === 'aura-db-javascript', label: "JavaScript" }) })] }), _jsx(SideNavigation.CategoryHeader, { children: "AuraDS" }), _jsxs(SideNavigation.List, { children: [_jsx(SideNavigation.NavItem, { as: "button", onClick: () => handleClick('aura-ds-instances'), isSelected: isSelected === 'aura-ds-instances', label: "Instances" }), _jsx(SideNavigation.NavItem, { as: "button", onClick: () => handleClick('aura-ds-getting-started'), isSelected: isSelected === 'aura-ds-getting-started', label: "Getting Started" })] })] }) }), _jsx("div", { className: "n-w-full n-h-full n-flex n-flex-col n-items-center n-justify-center n-rounded-md n-p-token-6", children: _jsx(Button, { onClick: () => setActiveSpotlight(targetId), children: "Activate Spotlight" }) }), _jsxs(Spotlight, { placement: "top-end-top-start", target: targetId, actions: [
41
+ {
42
+ label: 'Close',
43
+ onClick: () => {
44
+ setIsOpen(false);
45
+ setActiveSpotlight(null);
46
+ },
47
+ },
48
+ ], children: [_jsx(Spotlight.Header, { children: "This is a header" }), _jsx(Spotlight.Body, { children: "This is content" })] })] }));
49
+ };
50
+ export default Component;
51
+ //# sourceMappingURL=spotlight-in-side-nav.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spotlight-in-side-nav.story.js","sourceRoot":"","sources":["../../../../src/spotlight/stories/spotlight-in-side-nav.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EACL,MAAM,EACN,SAAS,EACT,eAAe,EACf,cAAc,EACd,mBAAmB,GACpB,MAAM,kBAAk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C,OAAO,EAAE,GAAG,EAAE,CAAC,kBAAkB,CAAC,QAAQ,CAAC,mCAE1C,GACL,EACN,MAAC,SAAS,IACR,SAAS,EAAC,mBAAmB,EAC7B,MAAM,EAAE,QAAQ,EAChB,OAAO,EAAE;oBACP;wBACE,KAAK,EAAE,OAAO;wBACd,OAAO,EAAE,GAAG,EAAE;4BACZ,SAAS,CAAC,KAAK,CAAC,CAAC;4BACjB,kBAAkB,CAAC,IAAI,CAAC,CAAC;wBAC3B,CAAC;qBACF;iBACF,aAED,KAAC,SAAS,CAAC,MAAM,mCAAoC,EACrD,KAAC,SAAS,CAAC,IAAI,kCAAiC,IACtC,IACR,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,44 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } 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 '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
+ import { Button, Spotlight, SpotlightTarget, SpotlightTour, useNeedleTheme, useSpotlightContext, } from '@neo4j-ndl/react';
24
+ import { FingerPrintIconOutline } from '@neo4j-ndl/react/icons';
25
+ const Component = () => {
26
+ const { themeClassName } = useNeedleTheme();
27
+ const { setActiveSpotlight } = useSpotlightContext();
28
+ return (_jsxs("div", { className: "n-flex n-justify-center n-gap-token-10", children: [_jsx(Button, { fill: "outlined", onClick: () => setActiveSpotlight(`test-target-1-${themeClassName}`), children: "Start tour" }), _jsx(SpotlightTarget, { id: `test-target-1-${themeClassName}`, hasPulse: true, borderRadius: 4, children: _jsx(Button, { onClick: () => alert('Target 1 clicked'), children: "Target 1" }) }), _jsx(SpotlightTarget, { id: `test-target-2-${themeClassName}`, hasPulse: true, borderRadius: 4, children: _jsx(Button, { onClick: () => alert('Target 2 clicked'), children: "Target 2" }) }), _jsx(SpotlightTarget, { id: `test-target-3-${themeClassName}`, hasPulse: true, borderRadius: 4, children: _jsx(Button, { onClick: () => alert('Target 3 clicked'), children: "Target 3" }) }), _jsx(SpotlightTour, { onAction: (target, action) => console.info(`Action ${action} was performed in spotlight ${target}`), spotlights: [
29
+ {
30
+ children: (_jsxs(_Fragment, { children: [_jsx(Spotlight.Label, { children: "NEW" }), _jsx(Spotlight.Header, { children: "This is a header" }), _jsx(Spotlight.Body, { children: "This is content" })] })),
31
+ target: `test-target-1-${themeClassName}`,
32
+ },
33
+ {
34
+ children: (_jsxs(_Fragment, { children: [_jsx(Spotlight.IconWrapper, { children: _jsx(FingerPrintIconOutline, {}) }), _jsx(Spotlight.Header, { children: "This is a header" }), _jsx(Spotlight.Body, { children: "This is content" })] })),
35
+ target: `test-target-2-${themeClassName}`,
36
+ },
37
+ {
38
+ children: (_jsxs(_Fragment, { children: [_jsx(Spotlight.Image, { src: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSIjY2NjIi8+PHRleHQgeD0iNTAlIiB5PSI1MCUiIGZvbnQtZmFtaWx5PSJBcmlhbCIgZm9udC1zaXplPSIxNCIgZmlsbD0iIzMzMyIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZHk9Ii4zZW0iPkV4YW1wbGUgSW1hZ2U8L3RleHQ+PC9zdmc+", alt: "example image" }), _jsx(Spotlight.Body, { children: "This is content" })] })),
39
+ target: `test-target-3-${themeClassName}`,
40
+ },
41
+ ] })] }));
42
+ };
43
+ export default Component;
44
+ //# sourceMappingURL=spotlight-tour.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spotlight-tour.story.js","sourceRoot":"","sources":["../../../../src/spotlight/stories/spotlight-tour.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EACL,MAAM,EACN,SAAS,EACT,eAAe,EACf,aAAa,EACb,cAAc,EACd,mBAAmB,GACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,EAAE,cAAc,EAAE,GAAG,cAAc,EAAE,CAAC;IAC5C,MAAM,EAAE,kBAAkB,EAAE,GAAG,mBAAmB,EAAE,CAAC;IAErD,OAAO,CACL,eAAK,SAAS,EAAC,wCAAwC,aACrD,KAAC,MAAM,IACL,IAAI,EAAC,UAAU,EACf,OAAO,EAAE,GAAG,EAAE,CAAC,kBAAkB,CAAC,iBAAiB,cAAc,EAAE,CAAC,2BAG7D,EACT,KAAC,eAAe,IACd,EAAE,EAAE,iBAAiB,cAAc,EAAE,EACrC,QAAQ,QACR,YAAY,EAAE,CAAC,YAEf,KAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,kBAAkB,CAAC,yBAAmB,GACnD,EAClB,KAAC,eAAe,IACd,EAAE,EAAE,iBAAiB,cAAc,EAAE,EACrC,QAAQ,QACR,YAAY,EAAE,CAAC,YAEf,KAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,kBAAkB,CAA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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 '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
+ import { Button, Spotlight, SpotlightTarget, useNeedleTheme, useSpotlightContext, } from '@neo4j-ndl/react';
24
+ import { FingerPrintIconOutline } from '@neo4j-ndl/react/icons';
25
+ import { useEffect } from 'react';
26
+ const Component = (props) => {
27
+ const { themeClassName } = useNeedleTheme();
28
+ const { setIsOpen, setActiveSpotlight } = useSpotlightContext();
29
+ const targetId = `test-target-${themeClassName}`;
30
+ useEffect(() => {
31
+ if (props.isChromatic) {
32
+ setActiveSpotlight(targetId);
33
+ setIsOpen(true);
34
+ }
35
+ }, [setActiveSpotlight, setIsOpen, targetId, props.isChromatic]);
36
+ return (_jsxs("div", { className: "n-flex n-justify-center n-gap-token-10", children: [_jsx(Button, { onClick: () => setActiveSpotlight(targetId), children: "Activate Spotlight" }), _jsx(SpotlightTarget, { id: targetId, hasPulse: !props.isChromatic, borderRadius: 4, backgroundColor: "rgb(var(--theme-palette-neutral-bg-weak))", indicatorVariant: "border", children: _jsx(Button, { onClick: () => alert('Target button clicked'), fill: "text", children: "Target" }) }), _jsxs(Spotlight, { placement: "bottom-end-top-end", target: targetId, actions: [
37
+ {
38
+ label: 'Close',
39
+ onClick: () => {
40
+ setIsOpen(false);
41
+ setActiveSpotlight(null);
42
+ },
43
+ },
44
+ ], children: [_jsx(Spotlight.IconWrapper, { children: _jsx(FingerPrintIconOutline, {}) }), _jsx(Spotlight.Header, { children: "This is a header" }), _jsx(Spotlight.Body, { children: "This is content" })] })] }));
45
+ };
46
+ export default Component;
47
+ //# sourceMappingURL=spotlight-with-icon.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spotlight-with-icon.story.js","sourceRoot":"","sources":["../../../../src/spotlight/stories/spotlight-with-icon.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EACL,MAAM,EACN,SAAS,EACT,eAAe,EACf,cAAc,EACd,mBAAmB,GACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMlC,MAAM,SAAS,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC1C,MAAM,EAAE,cAAc,EAAE,GAAG,cAAc,EAAE,CAAC;IAC5C,MAAM,EAAE,SAAS,EAAE,kBAAkB,EAAE,GAAG,mBAAmB,EAAE,CAAC;IAEhE,MAAM,QAAQ,GAAG,eAAe,cAAc,EAAE,CAAC;IAEjD,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,KAAK,CAAC,WAAW,EAAE,CAAC;YACtB,kBAAkB,CAAC,QAAQ,CAAC,CAAC;YAC7B,SAAS,CAAC,IAAI,CAAC,CAAC;QAClB,CAAC;IACH,CAAC,EAAE,CAAC,kBAAkB,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;IAEjE,OAAO,CACL,eAAK,SAAS,EAAC,wCAAwC,aACrD,KAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,kBAAkB,CAAC,QAAQ,CAAC,mCAE1C,EACT,KAAC,eAAe,IACd,EAAE,EAAE,QAAQ,EACZ,QAAQ,EAAE,CAAC,KAAK,CAAC,WAAW,EAC5B,YAAY,EAAE,CAAC,EACf,eAAe,EAAC,2CAA2C,EAC3D,gBAAgB,EAAC,QAAQ,YAEzB,KAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,uBAAuB,CAAC,EAAE,IAAI,EAAC,MAAM,uBAEzD,GACO,EAClB,MAAC,SAAS,IACR,SAAS,EAAC,oBAAoB,EAC9B,MAAM,EAAE,QAAQ,EAChB,OAAO,EAAE;oBACP;wBACE,KAAK,EAAE,OAAO;wBACd,OAAO,EAAE,GAAG,EAAE;4BACZ,SAAS,CAAC,KAAK,CAAC,CAAC;4BACjB,kBAAkB,CAAC,IAAI,CAAC,CAAC;wBAC3B,CAAC;qBACF;iBACF,aAED,KAAC,SAAS,CAAC,WAAW,cACpB,KAAC,sBAAsB,KAAG,GACJ,EACxB,KAAC,SAAS,CAAC,MAAM,mCAAoC,EACrD,KAAC,SAAS,CAAC,IAAI,kCAAiC,IACtC,IACR,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,46 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } 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 '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
+ import { Button, Spotlight, SpotlightTarget, useNeedleTheme, useSpotlightContext, } from '@neo4j-ndl/react';
24
+ import { useEffect } from 'react';
25
+ const Component = (props) => {
26
+ const { themeClassName } = useNeedleTheme();
27
+ const { setIsOpen, setActiveSpotlight } = useSpotlightContext();
28
+ const targetId = `test-target-${themeClassName}`;
29
+ useEffect(() => {
30
+ if (props.isChromatic) {
31
+ setActiveSpotlight(targetId);
32
+ setIsOpen(true);
33
+ }
34
+ }, [setActiveSpotlight, setIsOpen, targetId, props.isChromatic]);
35
+ return (_jsxs("div", { className: "n-flex n-justify-center n-gap-token-10", children: [_jsx(Button, { onClick: () => setActiveSpotlight(targetId), children: "Activate Spotlight" }), _jsx(SpotlightTarget, { id: targetId, hasPulse: !props.isChromatic, borderRadius: 4, backgroundColor: "rgb(var(--theme-palette-neutral-bg-weak))", children: _jsx(Button, { onClick: () => alert('Target button clicked'), fill: "text", children: "Target" }) }), _jsxs(Spotlight, { placement: "bottom-end-top-end", target: targetId, actions: [
36
+ {
37
+ label: 'Close',
38
+ onClick: () => {
39
+ setIsOpen(false);
40
+ setActiveSpotlight(null);
41
+ },
42
+ },
43
+ ], children: [_jsx(Spotlight.Image, { src: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSIjY2NjIi8+PHRleHQgeD0iNTAlIiB5PSI1MCUiIGZvbnQtZmFtaWx5PSJBcmlhbCIgZm9udC1zaXplPSIxNCIgZmlsbD0iIzMzMyIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZHk9Ii4zZW0iPkV4YW1wbGUgSW1hZ2U8L3RleHQ+PC9zdmc+", alt: "example image" }), _jsx(Spotlight.Header, { children: "This is a header" }), _jsx(Spotlight.Body, { children: "This is content" })] })] }));
44
+ };
45
+ export default Component;
46
+ //# sourceMappingURL=spotlight-with-image.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spotlight-with-image.story.js","sourceRoot":"","sources":["../../../../src/spotlight/stories/spotlight-with-image.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EACL,MAAM,EACN,SAAS,EACT,eAAe,EACf,cAAc,EACd,mBAAmB,GACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMlC,MAAM,SAAS,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC1C,MAAM,EAAE,cAAc,EAAE,GAAG,cAAc,EAAE,CAAC;IAC5C,MAAM,EAAE,SAAS,EAAE,kBAAkB,EAAE,GAAG,mBAAmB,EAAE,CAAC;IAEhE,MAAM,QAAQ,GAAG,eAAe,cAAc,EAAE,CAAC;IAEjD,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,KAAK,CAAC,WAAW,EAAE,CAAC;YACtB,kBAAkB,CAAC,QAAQ,CAAC,CAAC;YAC7B,SAAS,CAAC,IAAI,CAAC,CAAC;QAClB,CAAC;IACH,CAAC,EAAE,CAAC,kBAAkB,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;IAEjE,OAAO,CACL,eAAK,SAAS,EAAC,wCAAwC,aACrD,KAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,kBAAkB,CAAC,QAAQ,CAAC,mCAE1C,EACT,KAAC,eAAe,IACd,EAAE,EAAE,QAAQ,EACZ,QAAQ,EAAE,CAAC,KAAK,CAAC,WAAW,EAC5B,YAAY,EAAE,CAAC,EACf,eAAe,EAAC,2CAA2C,YAE3D,KAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,uBAAuB,CAAC,EAAE,IAAI,EAAC,MAAM,uBAEzD,GACO,EAClB,MAAC,SAAS,IACR,SAAS,EAAC,oBAAoB,EAC9B,MAAM,EAAE,QAAQ,EAChB,OAAO,EAAE;oBACP;wBACE,KAAK,EAAE,OAAO;wBACd,OAAO,EAAE,GAAG,EAAE;4BACZ,SAAS,CAAC,KAAK,CAAC,CAAC;4BACjB,kBAAkB,CAAC,IAAI,CAAC,CAAC;wBAC3B,CAAC;qBACF;iBACF,aAED,KAAC,SAAS,CAAC,KAAK,IACd,GAAG,EAAC,wVAAwV,EAC5V,GAAG,EAAC,eAAe,GACnB,EACF,KAAC,SAAS,CAAC,MAAM,mCAAoC,EACrD,KAAC,SAAS,CAAC,IAAI,kCAAiC,IACtC,IACR,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,46 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } 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 '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
+ import { Button, Spotlight, SpotlightTarget, useNeedleTheme, useSpotlightContext, } from '@neo4j-ndl/react';
24
+ import { useEffect } from 'react';
25
+ const Component = (props) => {
26
+ const { themeClassName } = useNeedleTheme();
27
+ const { setIsOpen, setActiveSpotlight } = useSpotlightContext();
28
+ const targetId = `test-target-${themeClassName}`;
29
+ useEffect(() => {
30
+ if (props.isChromatic) {
31
+ setActiveSpotlight(targetId);
32
+ setIsOpen(true);
33
+ }
34
+ }, [setActiveSpotlight, setIsOpen, targetId, props.isChromatic]);
35
+ return (_jsxs("div", { className: "n-flex n-justify-center n-gap-token-10", children: [_jsx(Button, { onClick: () => setActiveSpotlight(targetId), children: "Activate Spotlight" }), _jsx(SpotlightTarget, { id: targetId, hasPulse: !props.isChromatic, borderRadius: 4, backgroundColor: "rgb(var(--theme-palette-neutral-bg-weak))", indicatorVariant: "border", children: _jsx(Button, { onClick: () => alert('Target button clicked'), fill: "text", children: "Target" }) }), _jsxs(Spotlight, { placement: "bottom-end-top-end", target: targetId, actions: [
36
+ {
37
+ label: 'Close',
38
+ onClick: () => {
39
+ setIsOpen(false);
40
+ setActiveSpotlight(null);
41
+ },
42
+ },
43
+ ], children: [_jsx(Spotlight.Label, { children: "NEW" }), _jsx(Spotlight.Header, { children: "This is a header" }), _jsx(Spotlight.Body, { children: "This is content" })] })] }));
44
+ };
45
+ export default Component;
46
+ //# sourceMappingURL=spotlight-with-label.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spotlight-with-label.story.js","sourceRoot":"","sources":["../../../../src/spotlight/stories/spotlight-with-label.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EACL,MAAM,EACN,SAAS,EACT,eAAe,EACf,cAAc,EACd,mBAAmB,GACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMlC,MAAM,SAAS,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC1C,MAAM,EAAE,cAAc,EAAE,GAAG,cAAc,EAAE,CAAC;IAC5C,MAAM,EAAE,SAAS,EAAE,kBAAkB,EAAE,GAAG,mBAAmB,EAAE,CAAC;IAEhE,MAAM,QAAQ,GAAG,eAAe,cAAc,EAAE,CAAC;IAEjD,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,KAAK,CAA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
+ * 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 '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
+ import { Button, Spotlight, SpotlightTarget, useNeedleTheme, useSpotlightContext, } from '@neo4j-ndl/react';
24
+ import { useEffect } from 'react';
25
+ const Component = (props) => {
26
+ const { themeClassName } = useNeedleTheme();
27
+ const { setIsOpen, setActiveSpotlight } = useSpotlightContext();
28
+ const targetId = `test-target-${themeClassName}`;
29
+ useEffect(() => {
30
+ if (props.isChromatic) {
31
+ setActiveSpotlight(targetId);
32
+ setIsOpen(true);
33
+ }
34
+ }, [setActiveSpotlight, setIsOpen, targetId, props.isChromatic]);
35
+ return (_jsxs("div", { className: "n-flex n-justify-center n-gap-token-10", children: [_jsx(Button, { onClick: () => setActiveSpotlight(targetId), children: "Activate Spotlight" }), _jsx(SpotlightTarget, { id: targetId, hasPulse: !props.isChromatic, borderRadius: 4, backgroundColor: "rgb(var(--theme-palette-neutral-bg-weak))", indicatorVariant: "point", indicatorPlacement: "top-right", children: _jsx(Button, { onClick: () => alert('Target button clicked'), children: "Target" }) }), _jsxs(Spotlight, { placement: "bottom-end-top-end", target: targetId, actions: [
36
+ {
37
+ label: 'Close',
38
+ onClick: () => {
39
+ setIsOpen(false);
40
+ setActiveSpotlight(null);
41
+ },
42
+ },
43
+ ], children: [_jsx(Spotlight.Header, { children: "This is a header" }), _jsx(Spotlight.Body, { children: "This is content" })] })] }));
44
+ };
45
+ export default Component;
46
+ //# sourceMappingURL=spotlight-with-pointer.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spotlight-with-pointer.story.js","sourceRoot":"","sources":["../../../../src/spotlight/stories/spotlight-with-pointer.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EACL,MAAM,EACN,SAAS,EACT,eAAe,EACf,cAAc,EACd,mBAAmB,GACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMlC,MAAM,SAAS,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC1C,MAAM,EAAE,cAAc,EAAE,GAAG,cAAc,EAAE,CAAC;IAC5C,MAAM,EAAE,SAAS,EAAE,kBAAkB,EAAE,GAAG,mBAAmB,EAAE,CAAC;IAEhE,MAAM,QAAQ,GAAG,eAAe,cAAc,EAAE,CAAC;IAEjD,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,KAAK,CAAC,WAAW,EAAE,CAAC;YACtB,kBAAkB,CAAC,QAAQ,CAAC,CAAC;YAC7B,SAAS,CAAC,IAAI,CAAC,CAAC;QAClB,CAAC;IACH,CAAC,EAAE,CAAC,kBAAkB,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;IAEjE,OAAO,CACL,eAAK,SAAS,EAAC,wCAAwC,aACrD,KAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,kBAAkB,CAAC,QAAQ,CAAC,mCAE1C,EACT,KAAC,eAAe,IACd,EAAE,EAAE,QAAQ,EACZ,QAAQ,EAAE,CAAC,KAAK,CAAC,WAAW,EAC5B,YAAY,EAAE,CAAC,EACf,eAAe,EAAC,2CAA2C,EAC3D,gBAAgB,EAAC,OAAO,EACxB,kBAAkB,EAAC,WAAW,YAE9B,KAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,uBAAuB,CAAC,uBAAiB,GACtD,EAClB,MAAC,SAAS,IACR,SAAS,EAAC,oBAAoB,EAC9B,MAAM,EAAE,QAAQ,EAChB,OAAO,EAAE;oBACP;wBACE,KAAK,EAAE,OAAO;wBACd,OAAO,EAAE,GAAG,EAAE;4BACZ,SAAS,CAAC,KAAK,CAAC,CAAC;4BACjB,kBAAkB,CAAC,IAAI,CAAC,CAAC;wBAC3B,CAAC;qBACF;iBACF,aAED,KAAC,SAAS,CAAC,MAAM,mCAAoC,EACrD,KAAC,SAAS,CAAC,IAAI,kCAAiC,IACtC,IACR,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,157 @@
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 { jsx as _jsx } from "react/jsx-runtime";
23
+ import isChromatic from 'chromatic';
24
+ import { Spotlight, SpotlightProvider } from '../../index';
25
+ import { SpotlightFixedPositioning, SpotlightFixedPositioningSrc, SpotlightInDialog, SpotlightInDialogSrc, SpotlightInSideNav, SpotlightInSideNavSrc, SpotlightTour, SpotlightTourSrc, SpotlightWithIcon, SpotlightWithIconSrc, SpotlightWithImage, SpotlightWithImageSrc, SpotlightWithLabel, SpotlightWithLabelSrc, SpotlightWithPointer, SpotlightWithPointerSrc, } from './';
26
+ const componentMeta = {
27
+ component: Spotlight,
28
+ decorators: [
29
+ (StoryFn) => (_jsx(SpotlightProvider, { hasOverlay: true, children: _jsx(StoryFn, {}) })),
30
+ ],
31
+ id: 'components-spotlight',
32
+ parameters: {
33
+ controls: { disable: true },
34
+ },
35
+ tags: ['docsPage'],
36
+ title: 'Components/Spotlight',
37
+ };
38
+ export default componentMeta;
39
+ export const WithLabel = {
40
+ args: {
41
+ isChromatic: isChromatic(),
42
+ },
43
+ parameters: {
44
+ docs: {
45
+ source: {
46
+ code: SpotlightWithLabelSrc,
47
+ language: 'tsx',
48
+ type: 'code',
49
+ },
50
+ },
51
+ },
52
+ render: SpotlightWithLabel,
53
+ };
54
+ export const WithIcon = {
55
+ args: {
56
+ isChromatic: isChromatic(),
57
+ },
58
+ parameters: {
59
+ docs: {
60
+ source: {
61
+ code: SpotlightWithIconSrc,
62
+ language: 'tsx',
63
+ type: 'code',
64
+ },
65
+ },
66
+ },
67
+ render: SpotlightWithIcon,
68
+ };
69
+ export const WithImage = {
70
+ args: {
71
+ isChromatic: isChromatic(),
72
+ },
73
+ parameters: {
74
+ docs: {
75
+ source: {
76
+ code: SpotlightWithImageSrc,
77
+ language: 'tsx',
78
+ type: 'code',
79
+ },
80
+ },
81
+ },
82
+ render: SpotlightWithImage,
83
+ };
84
+ export const WithPointerIndicator = {
85
+ args: {
86
+ isChromatic: isChromatic(),
87
+ },
88
+ parameters: {
89
+ docs: {
90
+ source: {
91
+ code: SpotlightWithPointerSrc,
92
+ language: 'tsx',
93
+ type: 'code',
94
+ },
95
+ },
96
+ },
97
+ render: SpotlightWithPointer,
98
+ };
99
+ export const Tour = {
100
+ args: {},
101
+ parameters: {
102
+ docs: {
103
+ source: {
104
+ code: SpotlightTourSrc,
105
+ language: 'tsx',
106
+ type: 'code',
107
+ },
108
+ },
109
+ },
110
+ render: SpotlightTour,
111
+ };
112
+ export const InSideNav = {
113
+ args: {
114
+ isChromatic: isChromatic(),
115
+ },
116
+ parameters: {
117
+ docs: {
118
+ source: {
119
+ code: SpotlightInSideNavSrc,
120
+ language: 'tsx',
121
+ type: 'code',
122
+ },
123
+ },
124
+ },
125
+ render: SpotlightInSideNav,
126
+ };
127
+ export const TargetInDialog = {
128
+ args: {
129
+ isChromatic: isChromatic(),
130
+ },
131
+ parameters: {
132
+ docs: {
133
+ source: {
134
+ code: SpotlightInDialogSrc,
135
+ language: 'tsx',
136
+ type: 'code',
137
+ },
138
+ },
139
+ },
140
+ render: SpotlightInDialog,
141
+ };
142
+ export const FixedPositioning = {
143
+ args: {
144
+ isChromatic: isChromatic(),
145
+ },
146
+ parameters: {
147
+ docs: {
148
+ source: {
149
+ code: SpotlightFixedPositioningSrc,
150
+ language: 'tsx',
151
+ type: 'code',
152
+ },
153
+ },
154
+ },
155
+ render: SpotlightFixedPositioning,
156
+ };
157
+ //# sourceMappingURL=spotlight.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spotlight.stories.js","sourceRoot":"","sources":["../../../../src/spotlight/stories/spotlight.stories.tsx"],"names":[],"mappings":";AAqBA,OAAO,WAAW,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EACL,yBAAyB,EACzB,4BAA4B,EAC5B,iBAAiB,EACjB,oBAAoB,EACpB,kBAAkB,EAClB,qBAAqB,EACrB,aAAa,EACb,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACpB,kBAAkB,EAClB,qBAAqB,EACrB,kBAAkB,EAClB,qBAAqB,EACrB,oBAAoB,EACpB,uBAAuB,GACxB,MAAM,IAAI,CAAC;AAMZ,MAAM,aAAa,GAAyB;IAC1C,SAAS,EAAE,SAAS;IACpB,UAAU,EAAE;QACV,CAAC,OAAO,EAAE,EAAE,CAAC,CACX,KAAC,iBAAiB,IAAC,UAAU,kBAC3B,KAAC,OAAO,KAAG,GACO,CACrB;KACF;IACD,EAAE,EAAE,sBAAsB;IAC1B,UAAU,EAAE;QACV,QAAQ,EA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AC7B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAU;IACzB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,gBAAgB;gBACtB,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,aAAa;CACtB,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAU;IAC9B,IAAI,EAAE;QACJ,WAAW,EAAE,WAAW,EAAE;KAC3B;IACD,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,kBAAkB;CAC3B,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAU;IACnC,IAAI,EAAE;QACJ,WAAW,EAAE,WAAW,EAAE;KAC3B;IACD,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,oBAAoB;gBAC1B,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,iBAAiB;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAU;IACrC,IAAI,EAAE;QACJ,WAAW,EAAE,WAAW,EAAE;KAC3B;IACD,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,4BAA4B;gBAClC,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,yBAAyB;CAClC,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
+ export { default as ProgressBarHeading } from './progress-bar-heading.story';
22
+ export { default as ProgressBarDefault } from './progress-bar-default.story';
23
+ export { default as ProgressBarSizes } from './progress-bar-sizes.story';
24
+ export declare const ProgressBarDefaultSource: string;
25
+ export declare const ProgressBarHeadingSource: string;
26
+ export declare const ProgressBarSizesSource: string;