@neo4j-ndl/react 3.9.2 → 3.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/next/side-navigation/stories/side-nav-default.story.js +1 -1
- package/lib/cjs/next/side-navigation/stories/side-nav-default.story.js.map +1 -1
- package/lib/cjs/select/stories/index.js +80 -0
- package/lib/cjs/select/stories/index.js.map +1 -0
- package/lib/cjs/select/stories/select-async.story.js +52 -0
- package/lib/cjs/select/stories/select-async.story.js.map +1 -0
- package/lib/cjs/select/stories/select-clean.story.js +40 -0
- package/lib/cjs/select/stories/select-clean.story.js.map +1 -0
- package/lib/cjs/select/stories/select-controlled.story.js +45 -0
- package/lib/cjs/select/stories/select-controlled.story.js.map +1 -0
- package/lib/cjs/select/stories/select-creatable.story.js +41 -0
- package/lib/cjs/select/stories/select-creatable.story.js.map +1 -0
- package/lib/cjs/select/stories/select-custom-label.story.js +42 -0
- package/lib/cjs/select/stories/select-custom-label.story.js.map +1 -0
- package/lib/cjs/select/stories/select-default.story.js +40 -0
- package/lib/cjs/select/stories/select-default.story.js.map +1 -0
- package/lib/cjs/select/stories/select-disabled.story.js +41 -0
- package/lib/cjs/select/stories/select-disabled.story.js.map +1 -0
- package/lib/cjs/select/stories/select-empty.story.js +34 -0
- package/lib/cjs/select/stories/select-empty.story.js.map +1 -0
- package/lib/cjs/select/stories/select-error-state.story.js +40 -0
- package/lib/cjs/select/stories/select-error-state.story.js.map +1 -0
- package/lib/cjs/select/stories/select-inside-modal.story.js +44 -0
- package/lib/cjs/select/stories/select-inside-modal.story.js.map +1 -0
- package/lib/cjs/select/stories/select-menu-positionings.story.js +47 -0
- package/lib/cjs/select/stories/select-menu-positionings.story.js.map +1 -0
- package/lib/cjs/select/stories/select-multi.story.js +43 -0
- package/lib/cjs/select/stories/select-multi.story.js.map +1 -0
- package/lib/cjs/select/stories/select-sizes.story.js +46 -0
- package/lib/cjs/select/stories/select-sizes.story.js.map +1 -0
- package/lib/cjs/select/stories/select.stories.js +226 -0
- package/lib/cjs/select/stories/select.stories.js.map +1 -0
- package/lib/cjs/tooltip/stories/index.js +68 -0
- package/lib/cjs/tooltip/stories/index.js.map +1 -0
- package/lib/cjs/tooltip/stories/tooltip-controlled.story.js +32 -0
- package/lib/cjs/tooltip/stories/tooltip-controlled.story.js.map +1 -0
- package/lib/cjs/tooltip/stories/tooltip-default.story.js +30 -0
- package/lib/cjs/tooltip/stories/tooltip-default.story.js.map +1 -0
- package/lib/cjs/tooltip/stories/tooltip-disabled.story.js +30 -0
- package/lib/cjs/tooltip/stories/tooltip-disabled.story.js.map +1 -0
- package/lib/cjs/tooltip/stories/tooltip-hover-delay.story.js +30 -0
- package/lib/cjs/tooltip/stories/tooltip-hover-delay.story.js.map +1 -0
- package/lib/cjs/tooltip/stories/tooltip-in-dialog.story.js +30 -0
- package/lib/cjs/tooltip/stories/tooltip-in-dialog.story.js.map +1 -0
- package/lib/cjs/tooltip/stories/tooltip-initial-open.story.js +30 -0
- package/lib/cjs/tooltip/stories/tooltip-initial-open.story.js.map +1 -0
- package/lib/cjs/tooltip/stories/tooltip-placements.story.js +40 -0
- package/lib/cjs/tooltip/stories/tooltip-placements.story.js.map +1 -0
- package/lib/cjs/tooltip/stories/tooltip-rich-pass-through.story.js +30 -0
- package/lib/cjs/tooltip/stories/tooltip-rich-pass-through.story.js.map +1 -0
- package/lib/cjs/tooltip/stories/tooltip-rich.story.js +30 -0
- package/lib/cjs/tooltip/stories/tooltip-rich.story.js.map +1 -0
- package/lib/cjs/tooltip/stories/tooltip-trigger-button-wrapper.story.js +30 -0
- package/lib/cjs/tooltip/stories/tooltip-trigger-button-wrapper.story.js.map +1 -0
- package/lib/cjs/tooltip/stories/tooltip.stories.js +176 -0
- package/lib/cjs/tooltip/stories/tooltip.stories.js.map +1 -0
- package/lib/cjs/wizard/stories/index.js +48 -0
- package/lib/cjs/wizard/stories/index.js.map +1 -0
- package/lib/cjs/wizard/stories/wizard-error-state.story.js +35 -0
- package/lib/cjs/wizard/stories/wizard-error-state.story.js.map +1 -0
- package/lib/cjs/wizard/stories/wizard-horizontal-small.story.js +35 -0
- package/lib/cjs/wizard/stories/wizard-horizontal-small.story.js.map +1 -0
- package/lib/cjs/wizard/stories/wizard-horizontal.story.js +35 -0
- package/lib/cjs/wizard/stories/wizard-horizontal.story.js.map +1 -0
- package/lib/cjs/wizard/stories/wizard-vertical-small.story.js +35 -0
- package/lib/cjs/wizard/stories/wizard-vertical-small.story.js.map +1 -0
- package/lib/cjs/wizard/stories/wizard-vertical.story.js +35 -0
- package/lib/cjs/wizard/stories/wizard-vertical.story.js.map +1 -0
- package/lib/cjs/wizard/stories/wizard.stories.js +99 -0
- package/lib/cjs/wizard/stories/wizard.stories.js.map +1 -0
- package/lib/esm/next/side-navigation/stories/side-nav-default.story.js +1 -1
- package/lib/esm/next/side-navigation/stories/side-nav-default.story.js.map +1 -1
- package/lib/esm/select/stories/index.js +61 -0
- package/lib/esm/select/stories/index.js.map +1 -0
- package/lib/esm/select/stories/select-async.story.js +50 -0
- package/lib/esm/select/stories/select-async.story.js.map +1 -0
- package/lib/esm/select/stories/select-clean.story.js +38 -0
- package/lib/esm/select/stories/select-clean.story.js.map +1 -0
- package/lib/esm/select/stories/select-controlled.story.js +43 -0
- package/lib/esm/select/stories/select-controlled.story.js.map +1 -0
- package/lib/esm/select/stories/select-creatable.story.js +39 -0
- package/lib/esm/select/stories/select-creatable.story.js.map +1 -0
- package/lib/esm/select/stories/select-custom-label.story.js +40 -0
- package/lib/esm/select/stories/select-custom-label.story.js.map +1 -0
- package/lib/esm/select/stories/select-default.story.js +38 -0
- package/lib/esm/select/stories/select-default.story.js.map +1 -0
- package/lib/esm/select/stories/select-disabled.story.js +39 -0
- package/lib/esm/select/stories/select-disabled.story.js.map +1 -0
- package/lib/esm/select/stories/select-empty.story.js +32 -0
- package/lib/esm/select/stories/select-empty.story.js.map +1 -0
- package/lib/esm/select/stories/select-error-state.story.js +38 -0
- package/lib/esm/select/stories/select-error-state.story.js.map +1 -0
- package/lib/esm/select/stories/select-inside-modal.story.js +42 -0
- package/lib/esm/select/stories/select-inside-modal.story.js.map +1 -0
- package/lib/esm/select/stories/select-menu-positionings.story.js +45 -0
- package/lib/esm/select/stories/select-menu-positionings.story.js.map +1 -0
- package/lib/esm/select/stories/select-multi.story.js +41 -0
- package/lib/esm/select/stories/select-multi.story.js.map +1 -0
- package/lib/esm/select/stories/select-sizes.story.js +44 -0
- package/lib/esm/select/stories/select-sizes.story.js.map +1 -0
- package/lib/esm/select/stories/select.stories.js +220 -0
- package/lib/esm/select/stories/select.stories.js.map +1 -0
- package/lib/esm/tooltip/stories/index.js +52 -0
- package/lib/esm/tooltip/stories/index.js.map +1 -0
- package/lib/esm/tooltip/stories/tooltip-controlled.story.js +30 -0
- package/lib/esm/tooltip/stories/tooltip-controlled.story.js.map +1 -0
- package/lib/esm/tooltip/stories/tooltip-default.story.js +28 -0
- package/lib/esm/tooltip/stories/tooltip-default.story.js.map +1 -0
- package/lib/esm/tooltip/stories/tooltip-disabled.story.js +28 -0
- package/lib/esm/tooltip/stories/tooltip-disabled.story.js.map +1 -0
- package/lib/esm/tooltip/stories/tooltip-hover-delay.story.js +28 -0
- package/lib/esm/tooltip/stories/tooltip-hover-delay.story.js.map +1 -0
- package/lib/esm/tooltip/stories/tooltip-in-dialog.story.js +28 -0
- package/lib/esm/tooltip/stories/tooltip-in-dialog.story.js.map +1 -0
- package/lib/esm/tooltip/stories/tooltip-initial-open.story.js +28 -0
- package/lib/esm/tooltip/stories/tooltip-initial-open.story.js.map +1 -0
- package/lib/esm/tooltip/stories/tooltip-placements.story.js +38 -0
- package/lib/esm/tooltip/stories/tooltip-placements.story.js.map +1 -0
- package/lib/esm/tooltip/stories/tooltip-rich-pass-through.story.js +28 -0
- package/lib/esm/tooltip/stories/tooltip-rich-pass-through.story.js.map +1 -0
- package/lib/esm/tooltip/stories/tooltip-rich.story.js +28 -0
- package/lib/esm/tooltip/stories/tooltip-rich.story.js.map +1 -0
- package/lib/esm/tooltip/stories/tooltip-trigger-button-wrapper.story.js +28 -0
- package/lib/esm/tooltip/stories/tooltip-trigger-button-wrapper.story.js.map +1 -0
- package/lib/esm/tooltip/stories/tooltip.stories.js +170 -0
- package/lib/esm/tooltip/stories/tooltip.stories.js.map +1 -0
- package/lib/esm/wizard/stories/index.js +37 -0
- package/lib/esm/wizard/stories/index.js.map +1 -0
- package/lib/esm/wizard/stories/wizard-error-state.story.js +33 -0
- package/lib/esm/wizard/stories/wizard-error-state.story.js.map +1 -0
- package/lib/esm/wizard/stories/wizard-horizontal-small.story.js +33 -0
- package/lib/esm/wizard/stories/wizard-horizontal-small.story.js.map +1 -0
- package/lib/esm/wizard/stories/wizard-horizontal.story.js +33 -0
- package/lib/esm/wizard/stories/wizard-horizontal.story.js.map +1 -0
- package/lib/esm/wizard/stories/wizard-vertical-small.story.js +33 -0
- package/lib/esm/wizard/stories/wizard-vertical-small.story.js.map +1 -0
- package/lib/esm/wizard/stories/wizard-vertical.story.js +33 -0
- package/lib/esm/wizard/stories/wizard-vertical.story.js.map +1 -0
- package/lib/esm/wizard/stories/wizard.stories.js +96 -0
- package/lib/esm/wizard/stories/wizard.stories.js.map +1 -0
- package/lib/types/select/stories/index.d.ts +46 -0
- package/lib/types/select/stories/select-async.story.d.ts +24 -0
- package/lib/types/select/stories/select-clean.story.d.ts +24 -0
- package/lib/types/select/stories/select-controlled.story.d.ts +23 -0
- package/lib/types/select/stories/select-creatable.story.d.ts +24 -0
- package/lib/types/select/stories/select-custom-label.story.d.ts +24 -0
- package/lib/types/select/stories/select-default.story.d.ts +24 -0
- package/lib/types/select/stories/select-disabled.story.d.ts +24 -0
- package/lib/types/select/stories/select-empty.story.d.ts +24 -0
- package/lib/types/select/stories/select-error-state.story.d.ts +24 -0
- package/lib/types/select/stories/select-inside-modal.story.d.ts +24 -0
- package/lib/types/select/stories/select-menu-positionings.story.d.ts +24 -0
- package/lib/types/select/stories/select-multi.story.d.ts +24 -0
- package/lib/types/select/stories/select-sizes.story.d.ts +24 -0
- package/lib/types/select/stories/select.stories.d.ts +38 -0
- package/lib/types/tooltip/stories/index.d.ts +40 -0
- package/lib/types/tooltip/stories/tooltip-controlled.story.d.ts +23 -0
- package/lib/types/tooltip/stories/tooltip-default.story.d.ts +23 -0
- package/lib/types/tooltip/stories/tooltip-disabled.story.d.ts +23 -0
- package/lib/types/tooltip/stories/tooltip-hover-delay.story.d.ts +23 -0
- package/lib/types/tooltip/stories/tooltip-in-dialog.story.d.ts +23 -0
- package/lib/types/tooltip/stories/tooltip-initial-open.story.d.ts +23 -0
- package/lib/types/tooltip/stories/tooltip-placements.story.d.ts +23 -0
- package/lib/types/tooltip/stories/tooltip-rich-pass-through.story.d.ts +23 -0
- package/lib/types/tooltip/stories/tooltip-rich.story.d.ts +23 -0
- package/lib/types/tooltip/stories/tooltip-trigger-button-wrapper.story.d.ts +23 -0
- package/lib/types/tooltip/stories/tooltip.stories.d.ts +35 -0
- package/lib/types/wizard/stories/index.d.ts +30 -0
- package/lib/types/wizard/stories/wizard-error-state.story.d.ts +23 -0
- package/lib/types/wizard/stories/wizard-horizontal-small.story.d.ts +23 -0
- package/lib/types/wizard/stories/wizard-horizontal.story.d.ts +23 -0
- package/lib/types/wizard/stories/wizard-vertical-small.story.d.ts +23 -0
- package/lib/types/wizard/stories/wizard-vertical.story.d.ts +23 -0
- package/lib/types/wizard/stories/wizard.stories.d.ts +30 -0
- package/package.json +3 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip-in-dialog.story.js","sourceRoot":"","sources":["../../../../src/tooltip/stories/tooltip-in-dialog.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE/D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,MAAC,MAAM,IAAC,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,aACzC,KAAC,MAAM,CAAC,MAAM,yBAAuB,EACrC,KAAC,MAAM,CAAC,OAAO,cACb,MAAC,OAAO,IAAC,IAAI,EAAC,QAAQ,EAAC,UAAU,EAAE,KAAK,aACtC,KAAC,OAAO,CAAC,OAAO,cACd,KAAC,UAAU,IAAC,OAAO,EAAC,aAAa,0BAAuB,GACxC,EAClB,KAAC,OAAO,CAAC,OAAO,0CAA0C,IAClD,GACK,IACV,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
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 { Tooltip } from '@neo4j-ndl/react';
|
|
24
|
+
const Component = () => {
|
|
25
|
+
return (_jsxs(Tooltip, { type: "simple", isInitialOpen: true, children: [_jsx(Tooltip.Trigger, { children: "Hover me!" }), _jsx(Tooltip.Content, { children: "This is a tooltip!" })] }));
|
|
26
|
+
};
|
|
27
|
+
export default Component;
|
|
28
|
+
//# sourceMappingURL=tooltip-initial-open.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip-initial-open.story.js","sourceRoot":"","sources":["../../../../src/tooltip/stories/tooltip-initial-open.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,MAAC,OAAO,IAAC,IAAI,EAAC,QAAQ,EAAC,aAAa,EAAE,IAAI,aACxC,KAAC,OAAO,CAAC,OAAO,4BAA4B,EAC5C,KAAC,OAAO,CAAC,OAAO,qCAAqC,IAC7C,CACX,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
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, Tooltip } from '@neo4j-ndl/react';
|
|
24
|
+
const Component = () => {
|
|
25
|
+
const placements = [
|
|
26
|
+
{ placement: 'top', label: 'Top' },
|
|
27
|
+
{ placement: 'bottom', label: 'Bottom' },
|
|
28
|
+
{ placement: 'left', label: 'Left' },
|
|
29
|
+
{ placement: 'right', label: 'Right' },
|
|
30
|
+
{ placement: 'top-start', label: 'Top Start' },
|
|
31
|
+
{ placement: 'top-end', label: 'Top End' },
|
|
32
|
+
{ placement: 'bottom-start', label: 'Bottom Start' },
|
|
33
|
+
{ placement: 'bottom-end', label: 'Bottom End' },
|
|
34
|
+
];
|
|
35
|
+
return (_jsx("div", { className: "n-grid n-grid-cols-4 n-gap-token-6 n-p-token-6 n-place-items-center", children: placements.map(({ placement, label }) => (_jsxs(Tooltip, { type: "simple", placement: placement, children: [_jsx(Tooltip.Trigger, { hasButtonWrapper: true, children: _jsx(Button, { size: "small", children: label }) }), _jsxs(Tooltip.Content, { children: ["Tooltip on ", label.toLowerCase()] })] }, placement))) }));
|
|
36
|
+
};
|
|
37
|
+
export default Component;
|
|
38
|
+
//# sourceMappingURL=tooltip-placements.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip-placements.story.js","sourceRoot":"","sources":["../../../../src/tooltip/stories/tooltip-placements.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEnD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,UAAU,GAAG;QACjB,EAAE,SAAS,EAAE,KAAc,EAAE,KAAK,EAAE,KAAK,EAAE;QAC3C,EAAE,SAAS,EAAE,QAAiB,EAAE,KAAK,EAAE,QAAQ,EAAE;QACjD,EAAE,SAAS,EAAE,MAAe,EAAE,KAAK,EAAE,MAAM,EAAE;QAC7C,EAAE,SAAS,EAAE,OAAgB,EAAE,KAAK,EAAE,OAAO,EAAE;QAC/C,EAAE,SAAS,EAAE,WAAoB,EAAE,KAAK,EAAE,WAAW,EAAE;QACvD,EAAE,SAAS,EAAE,SAAkB,EAAE,KAAK,EAAE,SAAS,EAAE;QACnD,EAAE,SAAS,EAAE,cAAuB,EAAE,KAAK,EAAE,cAAc,EAAE;QAC7D,EAAE,SAAS,EAAE,YAAqB,EAAE,KAAK,EAAE,YAAY,EAAE;KAC1D,CAAC;IAEF,OAAO,CACL,cAAK,SAAS,EAAC,qEAAqE,YACjF,UAAU,CAAC,GAAG,CAAC,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CACxC,MAAC,OAAO,IAAiB,IAAI,EAAC,QAAQ,EAAC,SAAS,EAAE,SAAS,aACzD,KAAC,OAAO,CAAC,OAAO,IAAC,gBAAgB,kBAC/B,KAAC,MAAM,IAAC,IAAI,EAAC,OAAO,YAAE,KAAK,GAAU,GACrB,EAClB,MAAC,OAAO,CAAC,OAAO,8BAAa,KAAK,CAAC,WAAW,EAAE,IAAmB,KAJvD,SAAS,CAKb,CACX,CAAC,GACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
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, Tooltip } from '@neo4j-ndl/react';
|
|
24
|
+
const Component = () => {
|
|
25
|
+
return (_jsxs(Tooltip, { type: "rich", children: [_jsx(Tooltip.Trigger, { hasButtonWrapper: true, children: _jsx(Button, { children: "Click me!" }) }), _jsxs(Tooltip.Content, { children: [_jsx(Tooltip.Header, { passThroughProps: { style: { color: 'red' } }, children: "Header" }), _jsx(Tooltip.Body, { passThroughProps: { style: { color: 'green' } }, children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do" }), _jsx(Tooltip.Actions, { children: _jsx(Tooltip.Action, { onClick: () => alert('Custom action'), children: "Action" }) })] })] }));
|
|
26
|
+
};
|
|
27
|
+
export default Component;
|
|
28
|
+
//# sourceMappingURL=tooltip-rich-pass-through.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip-rich-pass-through.story.js","sourceRoot":"","sources":["../../../../src/tooltip/stories/tooltip-rich-pass-through.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEnD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,MAAC,OAAO,IAAC,IAAI,EAAC,MAAM,aAClB,KAAC,OAAO,CAAC,OAAO,IAAC,gBAAgB,kBAC/B,KAAC,MAAM,4BAAmB,GACV,EAClB,MAAC,OAAO,CAAC,OAAO,eACd,KAAC,OAAO,CAAC,MAAM,IAAC,gBAAgB,EAAE,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,uBAE5C,EACjB,KAAC,OAAO,CAAC,IAAI,IAAC,gBAAgB,EAAE,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,gFAE9C,EACf,KAAC,OAAO,CAAC,OAAO,cACd,KAAC,OAAO,CAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,eAAe,CAAC,uBAEpC,GACD,IACF,IACV,CACX,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
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, Tooltip } from '@neo4j-ndl/react';
|
|
24
|
+
const Component = () => {
|
|
25
|
+
return (_jsxs(Tooltip, { type: "rich", children: [_jsx(Tooltip.Trigger, { hasButtonWrapper: true, children: _jsx(Button, { children: "Click me!" }) }), _jsxs(Tooltip.Content, { children: [_jsx(Tooltip.Header, { children: "Header" }), _jsx(Tooltip.Body, { children: "This rich tooltip demonstrates all the available subcomponents: Header, Body, and Actions." }), _jsxs(Tooltip.Actions, { children: [_jsx(Tooltip.Action, { onClick: () => alert('Primary action'), children: "Primary Action" }), _jsx(Tooltip.Action, { onClick: () => alert('Secondary action'), children: "Secondary Action" })] })] })] }));
|
|
26
|
+
};
|
|
27
|
+
export default Component;
|
|
28
|
+
//# sourceMappingURL=tooltip-rich.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip-rich.story.js","sourceRoot":"","sources":["../../../../src/tooltip/stories/tooltip-rich.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEnD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,MAAC,OAAO,IAAC,IAAI,EAAC,MAAM,aAClB,KAAC,OAAO,CAAC,OAAO,IAAC,gBAAgB,kBAC/B,KAAC,MAAM,4BAAmB,GACV,EAClB,MAAC,OAAO,CAAC,OAAO,eACd,KAAC,OAAO,CAAC,MAAM,yBAAwB,EACvC,KAAC,OAAO,CAAC,IAAI,6GAGE,EACf,MAAC,OAAO,CAAC,OAAO,eACd,KAAC,OAAO,CAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,gBAAgB,CAAC,+BAErC,EACjB,KAAC,OAAO,CAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,kBAAkB,CAAC,iCAEvC,IACD,IACF,IACV,CACX,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
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, Tooltip } from '@neo4j-ndl/react';
|
|
24
|
+
const Component = () => {
|
|
25
|
+
return (_jsxs(Tooltip, { type: "simple", children: [_jsx(Tooltip.Trigger, { hasButtonWrapper: true, children: _jsx(Button, { children: "Click me!" }) }), _jsx(Tooltip.Content, { children: "This is a tooltip!" })] }));
|
|
26
|
+
};
|
|
27
|
+
export default Component;
|
|
28
|
+
//# sourceMappingURL=tooltip-trigger-button-wrapper.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip-trigger-button-wrapper.story.js","sourceRoot":"","sources":["../../../../src/tooltip/stories/tooltip-trigger-button-wrapper.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEnD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,MAAC,OAAO,IAAC,IAAI,EAAC,QAAQ,aACpB,KAAC,OAAO,CAAC,OAAO,IAAC,gBAAgB,kBAC/B,KAAC,MAAM,4BAAmB,GACV,EAClB,KAAC,OAAO,CAAC,OAAO,qCAAqC,IAC7C,CACX,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,170 @@
|
|
|
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/isChromatic';
|
|
24
|
+
import { Tooltip } from '../../index';
|
|
25
|
+
import { TooltipControlled, TooltipControlledSource, TooltipDefault, TooltipDefaultSource, TooltipDisabled, TooltipDisabledSource, TooltipHoverDelay, TooltipHoverDelaySource, TooltipInDialog, TooltipInDialogSource, TooltipInitialOpen, TooltipInitialOpenSource, TooltipPlacements, TooltipPlacementsSource, TooltipRich, TooltipRichPassThrough, TooltipRichPassThroughSource, TooltipRichSource, TooltipTriggerButtonWrapper, TooltipTriggerButtonWrapperSource, } from '.';
|
|
26
|
+
const componentMeta = {
|
|
27
|
+
title: 'Components/Tooltip',
|
|
28
|
+
id: 'components-tooltip',
|
|
29
|
+
component: Tooltip,
|
|
30
|
+
tags: ['docsPage'],
|
|
31
|
+
parameters: {
|
|
32
|
+
controls: { disable: true },
|
|
33
|
+
chromatic: { delay: 1000 },
|
|
34
|
+
},
|
|
35
|
+
decorators: [
|
|
36
|
+
(Story) => (_jsx("div", { className: "n-flex n-justify-center ", children: _jsx(Story, {}) })),
|
|
37
|
+
],
|
|
38
|
+
};
|
|
39
|
+
export default componentMeta;
|
|
40
|
+
export const Default = {
|
|
41
|
+
args: { isOpen: isChromatic() },
|
|
42
|
+
render: TooltipDefault,
|
|
43
|
+
parameters: {
|
|
44
|
+
docs: {
|
|
45
|
+
source: {
|
|
46
|
+
language: 'tsx',
|
|
47
|
+
type: 'code',
|
|
48
|
+
code: TooltipDefaultSource,
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
export const Disabled = {
|
|
54
|
+
args: {},
|
|
55
|
+
render: TooltipDisabled,
|
|
56
|
+
parameters: {
|
|
57
|
+
docs: {
|
|
58
|
+
source: {
|
|
59
|
+
language: 'tsx',
|
|
60
|
+
type: 'code',
|
|
61
|
+
code: TooltipDisabledSource,
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
export const InitialOpen = {
|
|
67
|
+
args: {},
|
|
68
|
+
render: TooltipInitialOpen,
|
|
69
|
+
parameters: {
|
|
70
|
+
docs: {
|
|
71
|
+
source: {
|
|
72
|
+
language: 'tsx',
|
|
73
|
+
type: 'code',
|
|
74
|
+
code: TooltipInitialOpenSource,
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
};
|
|
79
|
+
export const HoverDelay = {
|
|
80
|
+
args: {},
|
|
81
|
+
render: TooltipHoverDelay,
|
|
82
|
+
parameters: {
|
|
83
|
+
docs: {
|
|
84
|
+
source: {
|
|
85
|
+
language: 'tsx',
|
|
86
|
+
type: 'code',
|
|
87
|
+
code: TooltipHoverDelaySource,
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
};
|
|
92
|
+
export const TriggerButtonWrapper = {
|
|
93
|
+
args: {},
|
|
94
|
+
render: TooltipTriggerButtonWrapper,
|
|
95
|
+
parameters: {
|
|
96
|
+
docs: {
|
|
97
|
+
source: {
|
|
98
|
+
language: 'tsx',
|
|
99
|
+
type: 'code',
|
|
100
|
+
code: TooltipTriggerButtonWrapperSource,
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
};
|
|
105
|
+
export const Controlled = {
|
|
106
|
+
args: { isOpen: isChromatic() },
|
|
107
|
+
render: TooltipControlled,
|
|
108
|
+
parameters: {
|
|
109
|
+
docs: {
|
|
110
|
+
source: {
|
|
111
|
+
language: 'tsx',
|
|
112
|
+
type: 'code',
|
|
113
|
+
code: TooltipControlledSource,
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
};
|
|
118
|
+
export const Placements = {
|
|
119
|
+
args: {},
|
|
120
|
+
render: TooltipPlacements,
|
|
121
|
+
parameters: {
|
|
122
|
+
docs: {
|
|
123
|
+
source: {
|
|
124
|
+
language: 'tsx',
|
|
125
|
+
type: 'code',
|
|
126
|
+
code: TooltipPlacementsSource,
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
};
|
|
131
|
+
export const InDialog = {
|
|
132
|
+
args: { isOpen: isChromatic() },
|
|
133
|
+
render: TooltipInDialog,
|
|
134
|
+
parameters: {
|
|
135
|
+
docs: {
|
|
136
|
+
source: {
|
|
137
|
+
language: 'tsx',
|
|
138
|
+
type: 'code',
|
|
139
|
+
code: TooltipInDialogSource,
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
};
|
|
144
|
+
export const Rich = {
|
|
145
|
+
args: {},
|
|
146
|
+
render: TooltipRich,
|
|
147
|
+
parameters: {
|
|
148
|
+
docs: {
|
|
149
|
+
source: {
|
|
150
|
+
language: 'tsx',
|
|
151
|
+
type: 'code',
|
|
152
|
+
code: TooltipRichSource,
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
},
|
|
156
|
+
};
|
|
157
|
+
export const RichPassThrough = {
|
|
158
|
+
args: {},
|
|
159
|
+
render: TooltipRichPassThrough,
|
|
160
|
+
parameters: {
|
|
161
|
+
docs: {
|
|
162
|
+
source: {
|
|
163
|
+
language: 'tsx',
|
|
164
|
+
type: 'code',
|
|
165
|
+
code: TooltipRichPassThroughSource,
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
};
|
|
170
|
+
//# sourceMappingURL=tooltip.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip.stories.js","sourceRoot":"","sources":["../../../../src/tooltip/stories/tooltip.stories.tsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,37 @@
|
|
|
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 WizardHorizontal } from './wizard-horizontal.story';
|
|
22
|
+
export { default as WizardVertical } from './wizard-vertical.story';
|
|
23
|
+
export { default as WizardHorizontalSmall } from './wizard-horizontal-small.story';
|
|
24
|
+
export { default as WizardVerticalSmall } from './wizard-vertical-small.story';
|
|
25
|
+
export { default as WizardErrorState } from './wizard-error-state.story';
|
|
26
|
+
import { removeLicenseHeader } from '@neo4j-ndl/react/_common/export-stories-utils';
|
|
27
|
+
import WizardErrorStateSourceRaw from './wizard-error-state.story?raw';
|
|
28
|
+
import WizardHorizontalSourceRaw from './wizard-horizontal.story?raw';
|
|
29
|
+
import WizardHorizontalSmallSourceRaw from './wizard-horizontal-small.story?raw';
|
|
30
|
+
import WizardVerticalSourceRaw from './wizard-vertical.story?raw';
|
|
31
|
+
import WizardVerticalSmallSourceRaw from './wizard-vertical-small.story?raw';
|
|
32
|
+
export const WizardHorizontalSource = removeLicenseHeader(WizardHorizontalSourceRaw);
|
|
33
|
+
export const WizardVerticalSource = removeLicenseHeader(WizardVerticalSourceRaw);
|
|
34
|
+
export const WizardHorizontalSmallSource = removeLicenseHeader(WizardHorizontalSmallSourceRaw);
|
|
35
|
+
export const WizardVerticalSmallSource = removeLicenseHeader(WizardVerticalSmallSourceRaw);
|
|
36
|
+
export const WizardErrorStateSource = removeLicenseHeader(WizardErrorStateSourceRaw);
|
|
37
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/wizard/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACnF,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAEzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAC;AAEpF,OAAO,yBAAyB,MAAM,gCAAgC,CAAC;AACvE,OAAO,yBAAyB,MAAM,+BAA+B,CAAC;AACtE,OAAO,8BAA8B,MAAM,qCAAqC,CAAC;AACjF,OAAO,uBAAuB,MAAM,6BAA6B,CAAC;AAClE,OAAO,4BAA4B,MAAM,mCAAmC,CAAC;AAE7E,MAAM,CAAC,MAAM,sBAAsB,GAAG,mBAAmB,CACvD,yBAAyB,CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,mBAAmB,CACrD,uBAAuB,CACxB,CAAC;AAEF,MAAM,CAAC,MAAM,2BAA2B,GAAG,mBAAmB,CAC5D,8BAA8B,CAC/B,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAG,mBAAmB,CAC1D,4BAA4B,CAC7B,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG,mBAAmB,CACvD,yBAAyB,CAC1B,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
23
|
+
import { Wizard } from '@neo4j-ndl/react';
|
|
24
|
+
const Component = () => {
|
|
25
|
+
return (_jsx(Wizard, { orientation: "horizontal", activeStepIndex: 1, steps: [
|
|
26
|
+
{ content: 'Step 1' },
|
|
27
|
+
{ content: 'Step 2', status: 'error' },
|
|
28
|
+
{ content: 'Step 3' },
|
|
29
|
+
{ content: 'Step 4' },
|
|
30
|
+
] }));
|
|
31
|
+
};
|
|
32
|
+
export default Component;
|
|
33
|
+
//# sourceMappingURL=wizard-error-state.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wizard-error-state.story.js","sourceRoot":"","sources":["../../../../src/wizard/stories/wizard-error-state.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,KAAC,MAAM,IACL,WAAW,EAAC,YAAY,EACxB,eAAe,EAAE,CAAC,EAClB,KAAK,EAAE;YACL,EAAE,OAAO,EAAE,QAAQ,EAAE;YACrB,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE;YACtC,EAAE,OAAO,EAAE,QAAQ,EAAE;YACrB,EAAE,OAAO,EAAE,QAAQ,EAAE;SACtB,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
23
|
+
import { Wizard } from '@neo4j-ndl/react';
|
|
24
|
+
const Component = () => {
|
|
25
|
+
return (_jsx(Wizard, { orientation: "horizontal", size: "small", alignment: "middle", activeStepIndex: 1, steps: [
|
|
26
|
+
{ content: 'Step 1' },
|
|
27
|
+
{ content: 'Step 2' },
|
|
28
|
+
{ content: 'Step 3' },
|
|
29
|
+
{ content: 'Step 4' },
|
|
30
|
+
] }));
|
|
31
|
+
};
|
|
32
|
+
export default Component;
|
|
33
|
+
//# sourceMappingURL=wizard-horizontal-small.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wizard-horizontal-small.story.js","sourceRoot":"","sources":["../../../../src/wizard/stories/wizard-horizontal-small.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,KAAC,MAAM,IACL,WAAW,EAAC,YAAY,EACxB,IAAI,EAAC,OAAO,EACZ,SAAS,EAAC,QAAQ,EAClB,eAAe,EAAE,CAAC,EAClB,KAAK,EAAE;YACL,EAAE,OAAO,EAAE,QAAQ,EAAE;YACrB,EAAE,OAAO,EAAE,QAAQ,EAAE;YACrB,EAAE,OAAO,EAAE,QAAQ,EAAE;YACrB,EAAE,OAAO,EAAE,QAAQ,EAAE;SACtB,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
23
|
+
import { Wizard } from '@neo4j-ndl/react';
|
|
24
|
+
const Component = () => {
|
|
25
|
+
return (_jsx(Wizard, { orientation: "horizontal", alignment: "middle", activeStepIndex: 1, steps: [
|
|
26
|
+
{ content: 'Step 1' },
|
|
27
|
+
{ content: 'Step 2' },
|
|
28
|
+
{ content: 'Step 3' },
|
|
29
|
+
{ content: 'Step 4' },
|
|
30
|
+
] }));
|
|
31
|
+
};
|
|
32
|
+
export default Component;
|
|
33
|
+
//# sourceMappingURL=wizard-horizontal.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wizard-horizontal.story.js","sourceRoot":"","sources":["../../../../src/wizard/stories/wizard-horizontal.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,KAAC,MAAM,IACL,WAAW,EAAC,YAAY,EACxB,SAAS,EAAC,QAAQ,EAClB,eAAe,EAAE,CAAC,EAClB,KAAK,EAAE;YACL,EAAE,OAAO,EAAE,QAAQ,EAAE;YACrB,EAAE,OAAO,EAAE,QAAQ,EAAE;YACrB,EAAE,OAAO,EAAE,QAAQ,EAAE;YACrB,EAAE,OAAO,EAAE,QAAQ,EAAE;SACtB,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
23
|
+
import { Wizard } from '@neo4j-ndl/react';
|
|
24
|
+
const Component = () => {
|
|
25
|
+
return (_jsx(Wizard, { orientation: "vertical", size: "small", alignment: "middle", activeStepIndex: 1, steps: [
|
|
26
|
+
{ content: 'Step 1' },
|
|
27
|
+
{ content: 'Step 2' },
|
|
28
|
+
{ content: 'Step 3' },
|
|
29
|
+
{ content: 'Step 4' },
|
|
30
|
+
] }));
|
|
31
|
+
};
|
|
32
|
+
export default Component;
|
|
33
|
+
//# sourceMappingURL=wizard-vertical-small.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wizard-vertical-small.story.js","sourceRoot":"","sources":["../../../../src/wizard/stories/wizard-vertical-small.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,KAAC,MAAM,IACL,WAAW,EAAC,UAAU,EACtB,IAAI,EAAC,OAAO,EACZ,SAAS,EAAC,QAAQ,EAClB,eAAe,EAAE,CAAC,EAClB,KAAK,EAAE;YACL,EAAE,OAAO,EAAE,QAAQ,EAAE;YACrB,EAAE,OAAO,EAAE,QAAQ,EAAE;YACrB,EAAE,OAAO,EAAE,QAAQ,EAAE;YACrB,EAAE,OAAO,EAAE,QAAQ,EAAE;SACtB,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
23
|
+
import { Wizard } from '@neo4j-ndl/react';
|
|
24
|
+
const Component = () => {
|
|
25
|
+
return (_jsx(Wizard, { orientation: "vertical", alignment: "middle", activeStepIndex: 1, steps: [
|
|
26
|
+
{ content: 'Step 1' },
|
|
27
|
+
{ content: 'Step 2' },
|
|
28
|
+
{ content: 'Step 3' },
|
|
29
|
+
{ content: 'Step 4' },
|
|
30
|
+
] }));
|
|
31
|
+
};
|
|
32
|
+
export default Component;
|
|
33
|
+
//# sourceMappingURL=wizard-vertical.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wizard-vertical.story.js","sourceRoot":"","sources":["../../../../src/wizard/stories/wizard-vertical.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,KAAC,MAAM,IACL,WAAW,EAAC,UAAU,EACtB,SAAS,EAAC,QAAQ,EAClB,eAAe,EAAE,CAAC,EAClB,KAAK,EAAE;YACL,EAAE,OAAO,EAAE,QAAQ,EAAE;YACrB,EAAE,OAAO,EAAE,QAAQ,EAAE;YACrB,EAAE,OAAO,EAAE,QAAQ,EAAE;YACrB,EAAE,OAAO,EAAE,QAAQ,EAAE;SACtB,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|