@neo4j-ndl/react 3.9.4 → 3.9.5
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.
- package/lib/cjs/spotlight/stories/index.js +59 -0
- package/lib/cjs/spotlight/stories/index.js.map +1 -0
- package/lib/cjs/spotlight/stories/spotlight-fixed-positioning.story.js +48 -0
- package/lib/cjs/spotlight/stories/spotlight-fixed-positioning.story.js.map +1 -0
- package/lib/cjs/spotlight/stories/spotlight-in-dialog.story.js +49 -0
- package/lib/cjs/spotlight/stories/spotlight-in-dialog.story.js.map +1 -0
- package/lib/cjs/spotlight/stories/spotlight-in-side-nav.story.js +53 -0
- package/lib/cjs/spotlight/stories/spotlight-in-side-nav.story.js.map +1 -0
- package/lib/cjs/spotlight/stories/spotlight-tour.story.js +46 -0
- package/lib/cjs/spotlight/stories/spotlight-tour.story.js.map +1 -0
- package/lib/cjs/spotlight/stories/spotlight-with-icon.story.js +49 -0
- package/lib/cjs/spotlight/stories/spotlight-with-icon.story.js.map +1 -0
- package/lib/cjs/spotlight/stories/spotlight-with-image.story.js +48 -0
- package/lib/cjs/spotlight/stories/spotlight-with-image.story.js.map +1 -0
- package/lib/cjs/spotlight/stories/spotlight-with-label.story.js +48 -0
- package/lib/cjs/spotlight/stories/spotlight-with-label.story.js.map +1 -0
- package/lib/cjs/spotlight/stories/spotlight-with-pointer.story.js +48 -0
- package/lib/cjs/spotlight/stories/spotlight-with-pointer.story.js.map +1 -0
- package/lib/cjs/spotlight/stories/spotlight.stories.js +163 -0
- package/lib/cjs/spotlight/stories/spotlight.stories.js.map +1 -0
- package/lib/esm/spotlight/stories/index.js +45 -0
- package/lib/esm/spotlight/stories/index.js.map +1 -0
- package/lib/esm/spotlight/stories/spotlight-fixed-positioning.story.js +46 -0
- package/lib/esm/spotlight/stories/spotlight-fixed-positioning.story.js.map +1 -0
- package/lib/esm/spotlight/stories/spotlight-in-dialog.story.js +47 -0
- package/lib/esm/spotlight/stories/spotlight-in-dialog.story.js.map +1 -0
- package/lib/esm/spotlight/stories/spotlight-in-side-nav.story.js +51 -0
- package/lib/esm/spotlight/stories/spotlight-in-side-nav.story.js.map +1 -0
- package/lib/esm/spotlight/stories/spotlight-tour.story.js +44 -0
- package/lib/esm/spotlight/stories/spotlight-tour.story.js.map +1 -0
- package/lib/esm/spotlight/stories/spotlight-with-icon.story.js +47 -0
- package/lib/esm/spotlight/stories/spotlight-with-icon.story.js.map +1 -0
- package/lib/esm/spotlight/stories/spotlight-with-image.story.js +46 -0
- package/lib/esm/spotlight/stories/spotlight-with-image.story.js.map +1 -0
- package/lib/esm/spotlight/stories/spotlight-with-label.story.js +46 -0
- package/lib/esm/spotlight/stories/spotlight-with-label.story.js.map +1 -0
- package/lib/esm/spotlight/stories/spotlight-with-pointer.story.js +46 -0
- package/lib/esm/spotlight/stories/spotlight-with-pointer.story.js.map +1 -0
- package/lib/esm/spotlight/stories/spotlight.stories.js +157 -0
- package/lib/esm/spotlight/stories/spotlight.stories.js.map +1 -0
- package/lib/types/spotlight/stories/index.d.ts +36 -0
- package/lib/types/spotlight/stories/spotlight-fixed-positioning.story.d.ts +27 -0
- package/lib/types/spotlight/stories/spotlight-in-dialog.story.d.ts +27 -0
- package/lib/types/spotlight/stories/spotlight-in-side-nav.story.d.ts +27 -0
- package/lib/types/spotlight/stories/spotlight-tour.story.d.ts +23 -0
- package/lib/types/spotlight/stories/spotlight-with-icon.story.d.ts +27 -0
- package/lib/types/spotlight/stories/spotlight-with-image.story.d.ts +27 -0
- package/lib/types/spotlight/stories/spotlight-with-label.story.d.ts +27 -0
- package/lib/types/spotlight/stories/spotlight-with-pointer.story.d.ts +27 -0
- package/lib/types/spotlight/stories/spotlight.stories.d.ts +36 -0
- package/package.json +2 -2
|
@@ -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: "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,kBA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AAE;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,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
|
+
export { default as SpotlightWithLabel } from './spotlight-with-label.story';
|
|
22
|
+
export { default as SpotlightWithIcon } from './spotlight-with-icon.story';
|
|
23
|
+
export { default as SpotlightWithImage } from './spotlight-with-image.story';
|
|
24
|
+
export { default as SpotlightWithPointer } from './spotlight-with-pointer.story';
|
|
25
|
+
export { default as SpotlightTour } from './spotlight-tour.story';
|
|
26
|
+
export { default as SpotlightInSideNav } from './spotlight-in-side-nav.story';
|
|
27
|
+
export { default as SpotlightInDialog } from './spotlight-in-dialog.story';
|
|
28
|
+
export { default as SpotlightFixedPositioning } from './spotlight-fixed-positioning.story';
|
|
29
|
+
export declare const SpotlightWithLabelSrc: string;
|
|
30
|
+
export declare const SpotlightWithIconSrc: string;
|
|
31
|
+
export declare const SpotlightWithImageSrc: string;
|
|
32
|
+
export declare const SpotlightWithPointerSrc: string;
|
|
33
|
+
export declare const SpotlightTourSrc: string;
|
|
34
|
+
export declare const SpotlightInSideNavSrc: string;
|
|
35
|
+
export declare const SpotlightInDialogSrc: string;
|
|
36
|
+
export declare const SpotlightFixedPositioningSrc: string;
|
|
@@ -0,0 +1,27 @@
|
|
|
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 '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
22
|
+
import { Spotlight } from '@neo4j-ndl/react';
|
|
23
|
+
interface ComponentProps extends React.ComponentProps<typeof Spotlight> {
|
|
24
|
+
isChromatic: boolean;
|
|
25
|
+
}
|
|
26
|
+
declare const Component: (props: ComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export default Component;
|
|
@@ -0,0 +1,27 @@
|
|
|
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 '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
22
|
+
import { Spotlight } from '@neo4j-ndl/react';
|
|
23
|
+
interface ComponentProps extends React.ComponentProps<typeof Spotlight> {
|
|
24
|
+
isChromatic: boolean;
|
|
25
|
+
}
|
|
26
|
+
declare const Component: (props: ComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export default Component;
|
|
@@ -0,0 +1,27 @@
|
|
|
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 '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
22
|
+
import { Spotlight } from '@neo4j-ndl/react';
|
|
23
|
+
interface ComponentProps extends React.ComponentProps<typeof Spotlight> {
|
|
24
|
+
isChromatic: boolean;
|
|
25
|
+
}
|
|
26
|
+
declare const Component: (props: ComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export default Component;
|
|
@@ -0,0 +1,23 @@
|
|
|
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 '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
22
|
+
declare const Component: () => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export default Component;
|
|
@@ -0,0 +1,27 @@
|
|
|
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 '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
22
|
+
import { Spotlight } from '@neo4j-ndl/react';
|
|
23
|
+
interface ComponentProps extends React.ComponentProps<typeof Spotlight> {
|
|
24
|
+
isChromatic: boolean;
|
|
25
|
+
}
|
|
26
|
+
declare const Component: (props: ComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export default Component;
|
|
@@ -0,0 +1,27 @@
|
|
|
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 '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
22
|
+
import { Spotlight } from '@neo4j-ndl/react';
|
|
23
|
+
interface ComponentProps extends React.ComponentProps<typeof Spotlight> {
|
|
24
|
+
isChromatic: boolean;
|
|
25
|
+
}
|
|
26
|
+
declare const Component: (props: ComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export default Component;
|
|
@@ -0,0 +1,27 @@
|
|
|
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 '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
22
|
+
import { Spotlight } from '@neo4j-ndl/react';
|
|
23
|
+
interface ComponentProps extends React.ComponentProps<typeof Spotlight> {
|
|
24
|
+
isChromatic: boolean;
|
|
25
|
+
}
|
|
26
|
+
declare const Component: (props: ComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export default Component;
|
|
@@ -0,0 +1,27 @@
|
|
|
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 '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
22
|
+
import { Spotlight } from '@neo4j-ndl/react';
|
|
23
|
+
interface ComponentProps extends React.ComponentProps<typeof Spotlight> {
|
|
24
|
+
isChromatic: boolean;
|
|
25
|
+
}
|
|
26
|
+
declare const Component: (props: ComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export default Component;
|
|
@@ -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 { type Meta, type StoryObj } from '@storybook/react-vite';
|
|
22
|
+
import { Spotlight } from '../../index';
|
|
23
|
+
type ComponentProps = React.ComponentProps<typeof Spotlight> & {
|
|
24
|
+
isChromatic: boolean;
|
|
25
|
+
};
|
|
26
|
+
declare const componentMeta: Meta<ComponentProps>;
|
|
27
|
+
export default componentMeta;
|
|
28
|
+
type Story = StoryObj<typeof componentMeta>;
|
|
29
|
+
export declare const WithLabel: Story;
|
|
30
|
+
export declare const WithIcon: Story;
|
|
31
|
+
export declare const WithImage: Story;
|
|
32
|
+
export declare const WithPointerIndicator: Story;
|
|
33
|
+
export declare const Tour: Story;
|
|
34
|
+
export declare const InSideNav: Story;
|
|
35
|
+
export declare const TargetInDialog: Story;
|
|
36
|
+
export declare const FixedPositioning: Story;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neo4j-ndl/react",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.5",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"description": "React implementation of Neo4j Design System",
|
|
6
6
|
"keywords": [
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"@tanstack/react-table": "8.20.5",
|
|
83
83
|
"react": ">=16.8.0",
|
|
84
84
|
"react-dom": ">=16.8.0",
|
|
85
|
-
"@neo4j-ndl/base": "^3.7.
|
|
85
|
+
"@neo4j-ndl/base": "^3.7.23"
|
|
86
86
|
},
|
|
87
87
|
"dependencies": {
|
|
88
88
|
"@dnd-kit/core": "6.1.0",
|