@neo4j-ndl/react 3.3.14 → 3.3.16
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/accordion/stories/accordion-clean-items-expanded.story.js +34 -0
- package/lib/cjs/accordion/stories/accordion-clean-items-expanded.story.js.map +1 -0
- package/lib/cjs/accordion/stories/accordion-default-expanded.story.js +34 -0
- package/lib/cjs/accordion/stories/accordion-default-expanded.story.js.map +1 -0
- package/lib/cjs/accordion/stories/accordion-full.story.js +37 -0
- package/lib/cjs/accordion/stories/accordion-full.story.js.map +1 -0
- package/lib/cjs/accordion/stories/accordion-multiple-expanded.story.js +37 -0
- package/lib/cjs/accordion/stories/accordion-multiple-expanded.story.js.map +1 -0
- package/lib/cjs/accordion/stories/accordion-right-content.story.js +34 -0
- package/lib/cjs/accordion/stories/accordion-right-content.story.js.map +1 -0
- package/lib/cjs/accordion/stories/accordion-single-expanded.story.js +34 -0
- package/lib/cjs/accordion/stories/accordion-single-expanded.story.js.map +1 -0
- package/lib/cjs/accordion/stories/accordion.stories.js +144 -0
- package/lib/cjs/accordion/stories/accordion.stories.js.map +1 -0
- package/lib/cjs/accordion/stories/index.js +51 -0
- package/lib/cjs/accordion/stories/index.js.map +1 -0
- package/lib/cjs/wizard/Wizard.js +16 -8
- package/lib/cjs/wizard/Wizard.js.map +1 -1
- package/lib/esm/accordion/stories/accordion-clean-items-expanded.story.js +32 -0
- package/lib/esm/accordion/stories/accordion-clean-items-expanded.story.js.map +1 -0
- package/lib/esm/accordion/stories/accordion-default-expanded.story.js +32 -0
- package/lib/esm/accordion/stories/accordion-default-expanded.story.js.map +1 -0
- package/lib/esm/accordion/stories/accordion-full.story.js +35 -0
- package/lib/esm/accordion/stories/accordion-full.story.js.map +1 -0
- package/lib/esm/accordion/stories/accordion-multiple-expanded.story.js +35 -0
- package/lib/esm/accordion/stories/accordion-multiple-expanded.story.js.map +1 -0
- package/lib/esm/accordion/stories/accordion-right-content.story.js +32 -0
- package/lib/esm/accordion/stories/accordion-right-content.story.js.map +1 -0
- package/lib/esm/accordion/stories/accordion-single-expanded.story.js +32 -0
- package/lib/esm/accordion/stories/accordion-single-expanded.story.js.map +1 -0
- package/lib/esm/accordion/stories/accordion.stories.js +141 -0
- package/lib/esm/accordion/stories/accordion.stories.js.map +1 -0
- package/lib/esm/accordion/stories/index.js +39 -0
- package/lib/esm/accordion/stories/index.js.map +1 -0
- package/lib/esm/wizard/Wizard.js +16 -8
- package/lib/esm/wizard/Wizard.js.map +1 -1
- package/lib/types/accordion/stories/accordion-clean-items-expanded.story.d.ts +23 -0
- package/lib/types/accordion/stories/accordion-default-expanded.story.d.ts +23 -0
- package/lib/types/accordion/stories/accordion-full.story.d.ts +23 -0
- package/lib/types/accordion/stories/accordion-multiple-expanded.story.d.ts +23 -0
- package/lib/types/accordion/stories/accordion-right-content.story.d.ts +23 -0
- package/lib/types/accordion/stories/accordion-single-expanded.story.d.ts +23 -0
- package/lib/types/accordion/stories/accordion.stories.d.ts +68 -0
- package/lib/types/accordion/stories/index.d.ts +32 -0
- package/lib/types/wizard/Wizard.d.ts +14 -1
- package/package.json +3 -2
|
@@ -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,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,68 @@
|
|
|
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 StoryObj } from '@storybook/react';
|
|
22
|
+
declare const componentMeta: {
|
|
23
|
+
title: string;
|
|
24
|
+
component: (<T extends import("../Accordion").AccordionItemId, U extends React.ElementType = "div">(props: import("../../_common/types").PolymorphicPropsWithoutRef<U, import("../Accordion").AccordionProps<T>> & import("react").RefAttributes<unknown>) => import("react").ReactElement | null) & {
|
|
25
|
+
Item: {
|
|
26
|
+
<T extends import("../Accordion").AccordionItemId, U extends React.ElementType = "div">({ className, ...restProps }: import("../../_common/types").PolymorphicPropsWithoutRef<U, {
|
|
27
|
+
title: string;
|
|
28
|
+
className?: string | undefined;
|
|
29
|
+
children?: React.ReactNode;
|
|
30
|
+
htmlAttributes?: import("../../_common/types").HtmlAttributes<"div"> | undefined;
|
|
31
|
+
itemId: T;
|
|
32
|
+
arrowPosition?: import("../Accordion").AccordionArrowPosition | undefined;
|
|
33
|
+
isDisabled?: boolean | undefined;
|
|
34
|
+
onExpandedChange?: ((expanded: boolean) => void) | undefined;
|
|
35
|
+
}>): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
displayName: string;
|
|
37
|
+
};
|
|
38
|
+
CleanItem: {
|
|
39
|
+
<T extends import("../Accordion").AccordionItemId, U extends React.ElementType = "div">({ className, ...restProps }: import("../../_common/types").PolymorphicPropsWithoutRef<U, {
|
|
40
|
+
title: string;
|
|
41
|
+
className?: string | undefined;
|
|
42
|
+
children?: React.ReactNode;
|
|
43
|
+
htmlAttributes?: import("../../_common/types").HtmlAttributes<"div"> | undefined;
|
|
44
|
+
itemId: T;
|
|
45
|
+
arrowPosition?: import("../Accordion").AccordionArrowPosition | undefined;
|
|
46
|
+
isDisabled?: boolean | undefined;
|
|
47
|
+
onExpandedChange?: ((expanded: boolean) => void) | undefined;
|
|
48
|
+
titleTypographyVariant?: import("../../index").TypographyVariants | undefined;
|
|
49
|
+
rightContent?: React.ReactNode;
|
|
50
|
+
}>): import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
displayName: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
tags: string[];
|
|
55
|
+
parameters: {
|
|
56
|
+
controls: {
|
|
57
|
+
disable: boolean;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
export default componentMeta;
|
|
62
|
+
type Story = StoryObj<typeof componentMeta>;
|
|
63
|
+
export declare const CleanItems: Story;
|
|
64
|
+
export declare const Default: Story;
|
|
65
|
+
export declare const Full: Story;
|
|
66
|
+
export declare const MultipleExpanded: Story;
|
|
67
|
+
export declare const RightContent: Story;
|
|
68
|
+
export declare const SingleExpanded: Story;
|
|
@@ -0,0 +1,32 @@
|
|
|
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 AccordionCleanItems } from './accordion-clean-items-expanded.story';
|
|
22
|
+
export { default as AccordionDefault } from './accordion-default-expanded.story';
|
|
23
|
+
export { default as AccordionFull } from './accordion-full.story';
|
|
24
|
+
export { default as AccordionMultipleExpanded } from './accordion-multiple-expanded.story';
|
|
25
|
+
export { default as AccordionRightContent } from './accordion-right-content.story';
|
|
26
|
+
export { default as AccordionSingleExpanded } from './accordion-single-expanded.story';
|
|
27
|
+
export declare const AccordionCleanItemsSrc: string;
|
|
28
|
+
export declare const AccordionDefaultSrc: string;
|
|
29
|
+
export declare const AccordionFullSrc: string;
|
|
30
|
+
export declare const AccordionMultipleExpandedSrc: string;
|
|
31
|
+
export declare const AccordionRightContentSrc: string;
|
|
32
|
+
export declare const AccordionSingleExpandedSrc: string;
|
|
@@ -24,7 +24,7 @@ interface Step {
|
|
|
24
24
|
content: string | React.JSX.Element;
|
|
25
25
|
status?: 'default' | 'error';
|
|
26
26
|
}
|
|
27
|
-
|
|
27
|
+
interface BaseWizardProps {
|
|
28
28
|
orientation?: 'horizontal' | 'vertical';
|
|
29
29
|
size?: 'small' | 'large';
|
|
30
30
|
style?: React.CSSProperties;
|
|
@@ -32,6 +32,19 @@ export interface WizardProps {
|
|
|
32
32
|
activeStepIndex: number;
|
|
33
33
|
steps: Step[];
|
|
34
34
|
}
|
|
35
|
+
export type HorizontalWizardProps = BaseWizardProps & {
|
|
36
|
+
orientation: 'horizontal';
|
|
37
|
+
alignment?: 'middle';
|
|
38
|
+
};
|
|
39
|
+
export type VerticalWizardProps = BaseWizardProps & {
|
|
40
|
+
orientation: 'vertical';
|
|
41
|
+
alignment?: 'top' | 'middle';
|
|
42
|
+
};
|
|
43
|
+
export type NonOrientationWizardProps = BaseWizardProps & {
|
|
44
|
+
orientation: undefined;
|
|
45
|
+
alignment?: never;
|
|
46
|
+
};
|
|
47
|
+
export type WizardProps = HorizontalWizardProps | VerticalWizardProps | NonOrientationWizardProps;
|
|
35
48
|
export declare const Wizard: PolymorphicForwardRefExoticComponent<'div', WizardProps>;
|
|
36
49
|
export declare const WizardSmall: PolymorphicForwardRefExoticComponent<'div', Omit<WizardProps, 'size'>>;
|
|
37
50
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neo4j-ndl/react",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.16",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"description": "React implementation of Neo4j Design System",
|
|
6
6
|
"keywords": [
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
"@axe-core/playwright": "4.9.0",
|
|
44
44
|
"@playwright/experimental-ct-react": "1.45.0",
|
|
45
45
|
"@playwright/test": "1.45.0",
|
|
46
|
+
"@storybook/react": "8.5.7",
|
|
46
47
|
"@svgr/cli": "6.5.1",
|
|
47
48
|
"@types/react": "18.2.18",
|
|
48
49
|
"@types/react-datepicker": "6.2.0",
|
|
@@ -64,7 +65,7 @@
|
|
|
64
65
|
"@tanstack/react-table": "8.20.5",
|
|
65
66
|
"react": ">=16.8.0",
|
|
66
67
|
"react-dom": ">=16.8.0",
|
|
67
|
-
"@neo4j-ndl/base": "^3.3.
|
|
68
|
+
"@neo4j-ndl/base": "^3.3.8"
|
|
68
69
|
},
|
|
69
70
|
"dependencies": {
|
|
70
71
|
"@dnd-kit/core": "6.1.0",
|