@neo4j-ndl/react 4.14.4 → 4.14.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.
- package/lib/cjs/ai/preview/Preview.js +5 -0
- package/lib/cjs/ai/preview/Preview.js.map +1 -1
- package/lib/cjs/ai/preview/stories/index.js +9 -1
- package/lib/cjs/ai/preview/stories/index.js.map +1 -1
- package/lib/cjs/ai/preview/stories/preview-simple-with-content.story.js +34 -0
- package/lib/cjs/ai/preview/stories/preview-simple-with-content.story.js.map +1 -0
- package/lib/cjs/ai/preview/stories/preview-simple.story.js +33 -0
- package/lib/cjs/ai/preview/stories/preview-simple.story.js.map +1 -0
- package/lib/cjs/ai/prompt/Prompt.js +4 -14
- package/lib/cjs/ai/prompt/Prompt.js.map +1 -1
- package/lib/cjs/ai/prompt/stories/index.js +5 -1
- package/lib/cjs/ai/prompt/stories/index.js.map +1 -1
- package/lib/cjs/ai/prompt/stories/prompt-advanced.story.js +1 -1
- package/lib/cjs/ai/prompt/stories/prompt-advanced.story.js.map +1 -1
- package/lib/cjs/ai/prompt/stories/prompt-header.story.js +39 -0
- package/lib/cjs/ai/prompt/stories/prompt-header.story.js.map +1 -0
- package/lib/cjs/ai/response/Response.js +23 -22
- package/lib/cjs/ai/response/Response.js.map +1 -1
- package/lib/cjs/ai/response/stories/response-all-components.story.js +2 -0
- package/lib/cjs/ai/response/stories/response-all-components.story.js.map +1 -1
- package/lib/cjs/date-picker/DatePicker.js +12 -7
- package/lib/cjs/date-picker/DatePicker.js.map +1 -1
- package/lib/cjs/date-picker/stories/date-picker-clearable.story.js +47 -0
- package/lib/cjs/date-picker/stories/date-picker-clearable.story.js.map +1 -0
- package/lib/cjs/date-picker/stories/index.js +5 -1
- package/lib/cjs/date-picker/stories/index.js.map +1 -1
- package/lib/esm/ai/preview/Preview.js +5 -0
- package/lib/esm/ai/preview/Preview.js.map +1 -1
- package/lib/esm/ai/preview/stories/index.js +6 -0
- package/lib/esm/ai/preview/stories/index.js.map +1 -1
- package/lib/esm/ai/preview/stories/preview-simple-with-content.story.js +32 -0
- package/lib/esm/ai/preview/stories/preview-simple-with-content.story.js.map +1 -0
- package/lib/esm/ai/preview/stories/preview-simple.story.js +31 -0
- package/lib/esm/ai/preview/stories/preview-simple.story.js.map +1 -0
- package/lib/esm/ai/prompt/Prompt.js +6 -16
- package/lib/esm/ai/prompt/Prompt.js.map +1 -1
- package/lib/esm/ai/prompt/stories/index.js +3 -0
- package/lib/esm/ai/prompt/stories/index.js.map +1 -1
- package/lib/esm/ai/prompt/stories/prompt-advanced.story.js +1 -1
- package/lib/esm/ai/prompt/stories/prompt-advanced.story.js.map +1 -1
- package/lib/esm/ai/prompt/stories/prompt-header.story.js +37 -0
- package/lib/esm/ai/prompt/stories/prompt-header.story.js.map +1 -0
- package/lib/esm/ai/response/Response.js +23 -22
- package/lib/esm/ai/response/Response.js.map +1 -1
- package/lib/esm/ai/response/stories/response-all-components.story.js +2 -0
- package/lib/esm/ai/response/stories/response-all-components.story.js.map +1 -1
- package/lib/esm/date-picker/DatePicker.js +12 -7
- package/lib/esm/date-picker/DatePicker.js.map +1 -1
- package/lib/esm/date-picker/stories/date-picker-clearable.story.js +43 -0
- package/lib/esm/date-picker/stories/date-picker-clearable.story.js.map +1 -0
- package/lib/esm/date-picker/stories/index.js +3 -0
- package/lib/esm/date-picker/stories/index.js.map +1 -1
- package/lib/types/ai/preview/Preview.d.ts +4 -0
- package/lib/types/ai/preview/Preview.d.ts.map +1 -1
- package/lib/types/ai/preview/stories/index.d.ts +4 -0
- package/lib/types/ai/preview/stories/index.d.ts.map +1 -1
- package/lib/types/ai/preview/stories/preview-simple-with-content.story.d.ts +24 -0
- package/lib/types/ai/preview/stories/preview-simple-with-content.story.d.ts.map +1 -0
- package/lib/types/ai/preview/stories/preview-simple.story.d.ts +24 -0
- package/lib/types/ai/preview/stories/preview-simple.story.d.ts.map +1 -0
- package/lib/types/ai/prompt/Prompt.d.ts +6 -2
- package/lib/types/ai/prompt/Prompt.d.ts.map +1 -1
- package/lib/types/ai/prompt/stories/index.d.ts +2 -0
- package/lib/types/ai/prompt/stories/index.d.ts.map +1 -1
- package/lib/types/ai/prompt/stories/prompt-advanced.story.d.ts.map +1 -1
- package/lib/types/{_common/component-docs-page.d.ts → ai/prompt/stories/prompt-header.story.d.ts} +4 -3
- package/lib/types/ai/prompt/stories/prompt-header.story.d.ts.map +1 -0
- package/lib/types/ai/response/Response.d.ts.map +1 -1
- package/lib/types/ai/response/stories/response-all-components.story.d.ts.map +1 -1
- package/lib/types/date-picker/DatePicker.d.ts +6 -1
- package/lib/types/date-picker/DatePicker.d.ts.map +1 -1
- package/lib/types/date-picker/stories/date-picker-clearable.story.d.ts +24 -0
- package/lib/types/date-picker/stories/date-picker-clearable.story.d.ts.map +1 -0
- package/lib/types/date-picker/stories/index.d.ts +2 -0
- package/lib/types/date-picker/stories/index.d.ts.map +1 -1
- package/package.json +3 -2
- package/lib/cjs/_common/component-docs-page.js +0 -72
- package/lib/cjs/_common/component-docs-page.js.map +0 -1
- package/lib/esm/_common/component-docs-page.js +0 -69
- package/lib/esm/_common/component-docs-page.js.map +0 -1
- package/lib/types/_common/component-docs-page.d.ts.map +0 -1
|
@@ -55,9 +55,13 @@ type PreviewCodeProps = {
|
|
|
55
55
|
/** The theme of the code block */
|
|
56
56
|
theme?: 'ndl-code-dark' | 'ndl-code-light';
|
|
57
57
|
};
|
|
58
|
+
type PreviewContentProps = {
|
|
59
|
+
children?: React.ReactNode;
|
|
60
|
+
};
|
|
58
61
|
export declare const Preview: (({ children, ref, style, className, htmlAttributes, ...restProps }: CommonProps<"div", PreviewProps>) => import("react/jsx-runtime").JSX.Element) & {
|
|
59
62
|
Code: ({ code, language, label, isLoading, headerActions, theme, ref, style, className, htmlAttributes, ...restProps }: CommonProps<"div", PreviewCodeProps>) => import("react/jsx-runtime").JSX.Element;
|
|
60
63
|
Confirmation: ({ children, actions, isFooter, status, confirmedActionText, rejectedActionText, ref, style, className, htmlAttributes, ...restProps }: CommonProps<"div", PreviewConfirmationProps>) => import("react/jsx-runtime").JSX.Element;
|
|
64
|
+
Content: ({ children, ref, style, className, htmlAttributes, ...restProps }: CommonProps<"div", PreviewContentProps>) => import("react/jsx-runtime").JSX.Element;
|
|
61
65
|
Header: ({ children, actions, ref, style, className, htmlAttributes, ...restProps }: CommonProps<"div", PreviewHeaderProps>) => import("react/jsx-runtime").JSX.Element;
|
|
62
66
|
};
|
|
63
67
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Preview.d.ts","sourceRoot":"","sources":["../../../../src/ai/preview/Preview.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAEL,KAAK,SAAS,EAKf,MAAM,kBAAkB,CAAC;AAM1B,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AASvD,KAAK,YAAY,GAAG;IAClB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AA4BF,KAAK,kBAAkB,GAAG;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAkCF,KAAK,wBAAwB,GAAG;IAC9B,iDAAiD;IACjD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,iHAAiH;IACjH,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,mDAAmD;IACnD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qCAAqC;IACrC,MAAM,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,CAAC;IAC9C,mDAAmD;IACnD,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,kDAAkD;IAClD,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC;AA2DF,KAAK,gBAAgB,GAAG;IACtB,kCAAkC;IAClC,IA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E,MAAM,CAAC;CAC7B,CAAC;AA2DF,KAAK,gBAAgB,GAAG;IACtB,kCAAkC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,wEAAwE;IACxE,QAAQ,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,CAAC,UAAU,CAAC,CAAC;IAC7D,0CAA0C;IAC1C,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACzB,wCAAwC;IACxC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,0FAA0F;IAC1F,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,kCAAkC;IAClC,KAAK,CAAC,EAAE,eAAe,GAAG,gBAAgB,CAAC;CAC5C,CAAC;AAoHF,KAAK,mBAAmB,GAAG;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAuBF,eAAO,MAAM,OAAO,uEArRjB,WAAW,CAAC,KAAK,EAAE,YAAY,CAAC;4HAsJhC,WAAW,CAAC,KAAK,EAAE,gBAAgB,CAAC;0JAxEpC,WAAW,CAAC,KAAK,EAAE,wBAAwB,CAAC;iFAyL5C,WAAW,CAAC,KAAK,EAAE,mBAAmB,CAAC;yFA5OvC,WAAW,CAAC,KAAK,EAAE,kBAAkB,CAAC;CA+PvC,CAAC"}
|
|
@@ -25,6 +25,8 @@ export { default as PreviewCodeLoading } from './preview-code-loading.story';
|
|
|
25
25
|
export { default as PreviewCodeRead } from './preview-code-read.story';
|
|
26
26
|
export { default as PreviewCodeWrite } from './preview-code-write.story';
|
|
27
27
|
export { default as PreviewCodeLanguages } from './preview-code-languages.story';
|
|
28
|
+
export { default as PreviewSimple } from './preview-simple.story';
|
|
29
|
+
export { default as PreviewSimpleWithContent } from './preview-simple-with-content.story';
|
|
28
30
|
export declare const PreviewDataGridSrc: string;
|
|
29
31
|
export declare const PreviewConfirmationStandaloneSrc: string;
|
|
30
32
|
export declare const PreviewCodeConfirmationSrc: string;
|
|
@@ -32,4 +34,6 @@ export declare const PreviewCodeLoadingSrc: string;
|
|
|
32
34
|
export declare const PreviewCodeReadSrc: string;
|
|
33
35
|
export declare const PreviewCodeWriteSrc: string;
|
|
34
36
|
export declare const PreviewCodeLanguagesSrc: string;
|
|
37
|
+
export declare const PreviewSimpleSrc: string;
|
|
38
|
+
export declare const PreviewSimpleWithContentSrc: string;
|
|
35
39
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/ai/preview/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,6BAA6B,EAAE,MAAM,yCAAyC,CAAC;AACnG,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AACvF,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/ai/preview/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,6BAA6B,EAAE,MAAM,yCAAyC,CAAC;AACnG,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AACvF,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACjF,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAa1F,eAAO,MAAM,kBAAkB,QAA6C,CAAC;AAC7E,eAAO,MAAM,gCAAgC,QAE5C,CAAC;AACF,eAAO,MAAM,0BAA0B,QAEtC,CAAC;AACF,eAAO,MAAM,qBAAqB,QAEjC,CAAC;AACF,eAAO,MAAM,kBAAkB,QAA6C,CAAC;AAC7E,eAAO,MAAM,mBAAmB,QAA8C,CAAC;AAC/E,eAAO,MAAM,uBAAuB,QAEnC,CAAC;AACF,eAAO,MAAM,gBAAgB,QAA2C,CAAC;AACzE,eAAO,MAAM,2BAA2B,QAEvC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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;
|
|
24
|
+
//# sourceMappingURL=preview-simple-with-content.story.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preview-simple-with-content.story.d.ts","sourceRoot":"","sources":["../../../../../src/ai/preview/stories/preview-simple-with-content.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAOjD,QAAA,MAAM,SAAS,+CAwCd,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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;
|
|
24
|
+
//# sourceMappingURL=preview-simple.story.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preview-simple.story.d.ts","sourceRoot":"","sources":["../../../../../src/ai/preview/stories/preview-simple.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAMjD,QAAA,MAAM,SAAS,+CAmCd,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -36,10 +36,14 @@ type PromptProps = {
|
|
|
36
36
|
onSubmitPrompt?: (e: React.KeyboardEvent<HTMLTextAreaElement> | React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
37
37
|
/** Callback function called when the cancel button is clicked */
|
|
38
38
|
onCancelPrompt?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
39
|
+
/** Content to display above the input card, e.g. a status message while a prompt is running */
|
|
40
|
+
headerContent?: React.ReactNode;
|
|
39
41
|
/** Content to display above the textarea */
|
|
40
42
|
topContent?: React.ReactNode;
|
|
41
|
-
/** Content to display below the textarea */
|
|
43
|
+
/** Content to display below the textarea, on the leading side */
|
|
42
44
|
bottomContent?: React.ReactNode;
|
|
45
|
+
/** Content to display below the textarea, on the trailing side next to the submit button */
|
|
46
|
+
bottomTrailingContent?: React.ReactNode;
|
|
43
47
|
/** Disclaimer to display below the component */
|
|
44
48
|
disclaimer?: React.ReactNode;
|
|
45
49
|
/** Props for the textarea element */
|
|
@@ -63,7 +67,7 @@ type ContextTagProps = {
|
|
|
63
67
|
children?: string;
|
|
64
68
|
onClose: () => void;
|
|
65
69
|
};
|
|
66
|
-
declare const Prompt: (({ value, onChange, maxRows, isDisabled, isRunningPrompt, onSubmitPrompt, onCancelPrompt, isSubmitDisabled, topContent, bottomContent, disclaimer, className, style, htmlAttributes, ref, textareaProps, ...restProps }: CommonProps<"div", PromptProps>) => import("react/jsx-runtime").JSX.Element) & {
|
|
70
|
+
declare const Prompt: (({ value, onChange, maxRows, isDisabled, isRunningPrompt, onSubmitPrompt, onCancelPrompt, isSubmitDisabled, headerContent, topContent, bottomContent, bottomTrailingContent, disclaimer, className, style, htmlAttributes, ref, textareaProps, ...restProps }: CommonProps<"div", PromptProps>) => import("react/jsx-runtime").JSX.Element) & {
|
|
67
71
|
ContextTag: ({ children, onClose }: ContextTagProps) => import("react/jsx-runtime").JSX.Element;
|
|
68
72
|
Select: ({ value, options, onChange }: AgentSelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
69
73
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Prompt.d.ts","sourceRoot":"","sources":["../../../../src/ai/prompt/Prompt.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;
|
|
1
|
+
{"version":3,"file":"Prompt.d.ts","sourceRoot":"","sources":["../../../../src/ai/prompt/Prompt.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAkBH,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEvE,KAAK,WAAW,GAAG;IACjB,sBAAsB;IACtB,KAAK,CAAC,EAAE,KAAK,CAAC,wBAAwB,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC;IAC5D,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAC;IAC/D,wDAAwD;IACxD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uCAAuC;IACvC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,4CAA4C;IAC5C,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,2EAA2E;IAC3E,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,iEAAiE;IACjE,cAAc,CAAC,EAAE,CACf,CAAC,EACG,KAAK,CAAC,aAAa,CAAC,mBAAmB,CAAC,GACx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O,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -23,9 +23,11 @@ export { default as PromptAdvanced } from './prompt-advanced.story';
|
|
|
23
23
|
export { default as PromptLoading } from './prompt-loading.story';
|
|
24
24
|
export { default as PromptContext } from './prompt-context.story';
|
|
25
25
|
export { default as PromptDisabled } from './prompt-disabled.story';
|
|
26
|
+
export { default as PromptHeader } from './prompt-header.story';
|
|
26
27
|
export declare const PromptDefaultSrc: string;
|
|
27
28
|
export declare const PromptAdvancedSrc: string;
|
|
28
29
|
export declare const PromptLoadingSrc: string;
|
|
29
30
|
export declare const PromptContextSrc: string;
|
|
30
31
|
export declare const PromptDisabledSrc: string;
|
|
32
|
+
export declare const PromptHeaderSrc: string;
|
|
31
33
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/ai/prompt/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/ai/prompt/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAUhE,eAAO,MAAM,gBAAgB,QAA2C,CAAC;AACzE,eAAO,MAAM,iBAAiB,QAA4C,CAAC;AAC3E,eAAO,MAAM,gBAAgB,QAA2C,CAAC;AACzE,eAAO,MAAM,gBAAgB,QAA2C,CAAC;AACzE,eAAO,MAAM,iBAAiB,QAA4C,CAAC;AAC3E,eAAO,MAAM,eAAe,QAA0C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt-advanced.story.d.ts","sourceRoot":"","sources":["../../../../../src/ai/prompt/stories/prompt-advanced.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAOjD,QAAA,MAAM,SAAS,+
|
|
1
|
+
{"version":3,"file":"prompt-advanced.story.d.ts","sourceRoot":"","sources":["../../../../../src/ai/prompt/stories/prompt-advanced.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAOjD,QAAA,MAAM,SAAS,+CAmFd,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
package/lib/types/{_common/component-docs-page.d.ts → ai/prompt/stories/prompt-header.story.d.ts}
RENAMED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
* You should have received a copy of the GNU General Public License
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
22
|
+
declare const Component: () => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export default Component;
|
|
24
|
+
//# sourceMappingURL=prompt-header.story.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompt-header.story.d.ts","sourceRoot":"","sources":["../../../../../src/ai/prompt/stories/prompt-header.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAOjD,QAAA,MAAM,SAAS,+CAuCd,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Response.d.ts","sourceRoot":"","sources":["../../../../src/ai/response/Response.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;
|
|
1
|
+
{"version":3,"file":"Response.d.ts","sourceRoot":"","sources":["../../../../src/ai/response/Response.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAMH,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExC,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAIvD,KAAK,aAAa,GAAG;IACnB,+BAA+B;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,wCAAwC;IACxC,WAAW,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,CAAC,aAAa,CAAC,CAAC;CACtE,CAAC;AAEF;;;;;GAKG;AACH,QAAA,MAAM,QAAQ,uHAST,WAAW,CAAC,KAAK,EAAE,aAAa,CAAC,6CA+QrC,CAAC;AAIF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"response-all-components.story.d.ts","sourceRoot":"","sources":["../../../../../src/ai/response/stories/response-all-components.story.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"response-all-components.story.d.ts","sourceRoot":"","sources":["../../../../../src/ai/response/stories/response-all-components.story.tsx"],"names":[],"mappings":"AA+NA,eAAO,MAAM,SAAS,+CAMrB,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -29,6 +29,11 @@ interface DatePickerProps {
|
|
|
29
29
|
textInputProps?: React.ComponentProps<typeof TextInput>;
|
|
30
30
|
/** Whether the date picker is disabled. */
|
|
31
31
|
isDisabled?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Whether to show the clear button.
|
|
34
|
+
* @default false
|
|
35
|
+
*/
|
|
36
|
+
isClearable?: boolean;
|
|
32
37
|
/** Props for the embedded `TimePicker` component. */
|
|
33
38
|
timePickerProps?: TimePickerProps;
|
|
34
39
|
/** Props for the embedded `TimeZonePicker` component. */
|
|
@@ -40,6 +45,6 @@ interface DatePickerProps {
|
|
|
40
45
|
*/
|
|
41
46
|
htmlAttributes?: HtmlAttributes<'div'>;
|
|
42
47
|
}
|
|
43
|
-
export declare const DatePicker: ({ reactDatePickerProps, textInputProps, timePickerProps, timeZonePickerProps, isDisabled, ref, className, style, htmlAttributes, ...restProps }: CommonProps<"div", DatePickerProps>) => import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
export declare const DatePicker: ({ reactDatePickerProps, textInputProps, timePickerProps, timeZonePickerProps, isDisabled, isClearable, ref, className, style, htmlAttributes, ...restProps }: CommonProps<"div", DatePickerProps>) => import("react/jsx-runtime").JSX.Element;
|
|
44
49
|
export {};
|
|
45
50
|
//# sourceMappingURL=DatePicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../src/date-picker/DatePicker.tsx"],"names":[],"mappings":"AA0BA,OAAO,eAEN,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAUpE,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAA0B,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../src/date-picker/DatePicker.tsx"],"names":[],"mappings":"AA0BA,OAAO,eAEN,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAUpE,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAA0B,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAyEpD,UAAU,eAAe;IACvB,oDAAoD;IACpD,cAAc,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,CAAC;IACxD,2CAA2C;IAC3C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,qDAAqD;IACrD,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,yDAAyD;IACzD,mBAAmB,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,CAAC;IAClE,kEAAkE;IAClE,oBAAoB,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,CAAC;IACnE;;OAEG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC;CACxC;AAED,eAAO,MAAM,UAAU,GAAI,8JAYxB,WAAW,CAAC,KAAK,EAAE,eAAe,CAAC,4CAkUrC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
export declare const Component: () => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export default Component;
|
|
24
|
+
//# sourceMappingURL=date-picker-clearable.story.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-picker-clearable.story.d.ts","sourceRoot":"","sources":["../../../../src/date-picker/stories/date-picker-clearable.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAKjD,eAAO,MAAM,SAAS,+CA0BrB,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
export { default as DatePickerDefault } from './date-picker-default.story';
|
|
22
|
+
export { default as DatePickerClearable } from './date-picker-clearable.story';
|
|
22
23
|
export { default as DatePickerStartsOnMonday } from './date-picker-starts-on-monday.story';
|
|
23
24
|
export { default as DatePickerMinMaxDate } from './date-picker-min-max-date.story';
|
|
24
25
|
export { default as DatePickerOpensToDate } from './date-picker-opens-to-date.story';
|
|
@@ -32,6 +33,7 @@ export { default as DatePickerFull } from './date-picker-full.story';
|
|
|
32
33
|
export { default as DatePickerPortaled } from './date-picker-portaled.story';
|
|
33
34
|
export { default as DatePickerRange } from './date-picker-range.story';
|
|
34
35
|
export declare const DatePickerDefaultSource: string;
|
|
36
|
+
export declare const DatePickerClearableSource: string;
|
|
35
37
|
export declare const DatePickerStartsOnMondaySource: string;
|
|
36
38
|
export declare const DatePickerMinMaxDateSource: string;
|
|
37
39
|
export declare const DatePickerOpensToDateSource: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/date-picker/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACnF,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AACrF,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,EAAE,OAAO,IAAI,8BAA8B,EAAE,MAAM,6CAA6C,CAAC;AACxG,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"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8BAA8B,QAE1C,CAAC;AACF,eAAO,MAAM,8BAA8B,QAE1C,CAAC;AACF,eAAO,MAAM,4BAA4B,QAExC,CAAC;AACF,eAAO,MAAM,oCAAoC,QAEhD,CAAC;AACF,eAAO,MAAM,wBAAwB,QAEpC,CAAC;AACF,eAAO,MAAM,wBAAwB,QAEpC,CAAC;AACF,eAAO,MAAM,oBAAoB,QAEhC,CAAC;AACF,eAAO,MAAM,wBAAwB,QAEpC,CAAC;AACF,eAAO,MAAM,qBAAqB,QAEjC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neo4j-ndl/react",
|
|
3
|
-
"version": "4.14.
|
|
3
|
+
"version": "4.14.6",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"description": "React implementation of Neo4j Design System",
|
|
6
6
|
"keywords": [
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
"@playwright/test": "1.60.0",
|
|
56
56
|
"@storybook/addon-docs": "10.2.19",
|
|
57
57
|
"@storybook/react-vite": "10.2.19",
|
|
58
|
+
"storybook": "10.2.19",
|
|
58
59
|
"@svgr/cli": "6.5.1",
|
|
59
60
|
"@tanstack/react-virtual": "3.13.23",
|
|
60
61
|
"@testing-library/jest-dom": "6.9.1",
|
|
@@ -87,7 +88,7 @@
|
|
|
87
88
|
"@tanstack/react-table": "8.21.3",
|
|
88
89
|
"react": ">=19.0.0",
|
|
89
90
|
"react-dom": ">=19.0.0",
|
|
90
|
-
"@neo4j-ndl/base": "^4.14.
|
|
91
|
+
"@neo4j-ndl/base": "^4.14.2"
|
|
91
92
|
},
|
|
92
93
|
"dependencies": {
|
|
93
94
|
"@dnd-kit/core": "6.3.1",
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createComponentDocsPage = createComponentDocsPage;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
/**
|
|
6
|
-
*
|
|
7
|
-
* Copyright (c) "Neo4j"
|
|
8
|
-
* Neo4j Sweden AB [http://neo4j.com]
|
|
9
|
-
*
|
|
10
|
-
* This file is part of Neo4j.
|
|
11
|
-
*
|
|
12
|
-
* Neo4j is free software: you can redistribute it and/or modify
|
|
13
|
-
* it under the terms of the GNU General Public License as published by
|
|
14
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
15
|
-
* (at your option) any later version.
|
|
16
|
-
*
|
|
17
|
-
* This program is distributed in the hope that it will be useful,
|
|
18
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
19
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
20
|
-
* GNU General Public License for more details.
|
|
21
|
-
*
|
|
22
|
-
* You should have received a copy of the GNU General Public License
|
|
23
|
-
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
24
|
-
*/
|
|
25
|
-
const blocks_1 = require("@storybook/addon-docs/blocks");
|
|
26
|
-
const react_1 = require("react");
|
|
27
|
-
const text_link_1 = require("../text-link");
|
|
28
|
-
const typography_1 = require("../typography");
|
|
29
|
-
/**
|
|
30
|
-
* Creates a Storybook docs page that combines a component's README (props)
|
|
31
|
-
* and optional ACCESSIBILITY.md into a single page with a navigation index.
|
|
32
|
-
*
|
|
33
|
-
* Requires the `autodocs` tag on the component meta to create a Docs entry in the sidebar
|
|
34
|
-
* (the global preview config disables autodocs with `!autodocs`).
|
|
35
|
-
*
|
|
36
|
-
* Usage in a *.stories.tsx file:
|
|
37
|
-
* ```ts
|
|
38
|
-
* import ReadmeContent from '../README.md?raw';
|
|
39
|
-
* import AccessibilityContent from '../ACCESSIBILITY.md?raw';
|
|
40
|
-
* import { createComponentDocsPage } from '../../_common/component-docs-page';
|
|
41
|
-
*
|
|
42
|
-
* const meta: Meta = {
|
|
43
|
-
* // ...
|
|
44
|
-
* tags: ['docsPage', 'autodocs'],
|
|
45
|
-
* parameters: {
|
|
46
|
-
* docs: {
|
|
47
|
-
* page: createComponentDocsPage(ReadmeContent, AccessibilityContent),
|
|
48
|
-
* },
|
|
49
|
-
* },
|
|
50
|
-
* };
|
|
51
|
-
* ```
|
|
52
|
-
*/
|
|
53
|
-
function stripMarkdownComments(content) {
|
|
54
|
-
return content.replace(/^\[\/\/\]: #.*\n*/gm, '');
|
|
55
|
-
}
|
|
56
|
-
function createComponentDocsPage(readme, accessibility) {
|
|
57
|
-
const cleaned = stripMarkdownComments(readme);
|
|
58
|
-
const cleanedA11y = accessibility
|
|
59
|
-
? stripMarkdownComments(accessibility).replace(/^## /gm, '### ')
|
|
60
|
-
: null;
|
|
61
|
-
return function ComponentDocsPage() {
|
|
62
|
-
const scrollTo = (0, react_1.useCallback)((e, id) => {
|
|
63
|
-
var _a;
|
|
64
|
-
e.preventDefault();
|
|
65
|
-
(_a = document.getElementById(id)) === null || _a === void 0 ? void 0 : _a.scrollIntoView({ behavior: 'smooth' });
|
|
66
|
-
}, []);
|
|
67
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [cleanedA11y && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(typography_1.Typography, { as: "h1", variant: "title-1", children: "Docs" }), (0, jsx_runtime_1.jsxs)("nav", { className: "n-flex n-flex-col n-gap-token-2 n-mb-2", children: [(0, jsx_runtime_1.jsx)(text_link_1.TextLink, { href: "#props", htmlAttributes: { onClick: (e) => scrollTo(e, 'props') }, children: "Props" }), (0, jsx_runtime_1.jsx)(text_link_1.TextLink, { href: "#accessibility", htmlAttributes: {
|
|
68
|
-
onClick: (e) => scrollTo(e, 'accessibility'),
|
|
69
|
-
}, children: "Accessibility" })] })] })), (0, jsx_runtime_1.jsx)(blocks_1.Markdown, { children: cleaned }), cleanedA11y && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(blocks_1.Markdown, { children: `## Accessibility\n\n${cleanedA11y}` }) }))] }));
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
//# sourceMappingURL=component-docs-page.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"component-docs-page.js","sourceRoot":"","sources":["../../../src/_common/component-docs-page.tsx"],"names":[],"mappings":";;AAuDA,0DAoDC;;AA3GD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,yDAAwD;AACxD,iCAAqD;AAErD,4CAAwC;AACxC,8CAA2C;AAE3C;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,SAAS,qBAAqB,CAAC,OAAe;IAC5C,OAAO,OAAO,CAAC,OAAO,CAAC,qBAAqB,EAAE,EAAE,CAAC,CAAC;AACpD,CAAC;AAED,SAAgB,uBAAuB,CACrC,MAAc,EACd,aAAsB;IAEtB,MAAM,OAAO,GAAG,qBAAqB,CAAC,MAAM,CAAC,CAAC;IAC9C,MAAM,WAAW,GAAG,aAAa;QAC/B,CAAC,CAAC,qBAAqB,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,MAAM,CAAC;QAChE,CAAC,CAAC,IAAI,CAAC;IAET,OAAO,SAAS,iBAAiB;QAC/B,MAAM,QAAQ,GAAG,IAAA,mBAAW,EAC1B,CAAC,CAAgC,EAAE,EAAU,EAAE,EAAE;;YAC/C,CAAC,CAAC,cAAc,EAAE,CAAC;YACnB,MAAA,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC,0CAAE,cAAc,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,CAAC;QACtE,CAAC,EACD,EAAE,CACH,CAAC;QAEF,OAAO,CACL,6DACG,WAAW,IAAI,CACd,6DACE,uBAAC,uBAAU,IAAC,EAAE,EAAC,IAAI,EAAC,OAAO,EAAC,SAAS,qBAExB,EACb,iCAAK,SAAS,EAAC,wCAAwC,aACrD,uBAAC,oBAAQ,IACP,IAAI,EAAC,QAAQ,EACb,cAAc,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,sBAG/C,EACX,uBAAC,oBAAQ,IACP,IAAI,EAAC,gBAAgB,EACrB,cAAc,EAAE;wCACd,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,eAAe,CAAC;qCAC7C,8BAGQ,IACP,IACL,CACJ,EACD,uBAAC,iBAAQ,cAAE,OAAO,GAAY,EAC7B,WAAW,IAAI,CACd,2DACE,uBAAC,iBAAQ,cAAE,uBAAuB,WAAW,EAAE,GAAY,GAC1D,CACJ,IACA,CACJ,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\nimport { Markdown } from '@storybook/addon-docs/blocks';\nimport { type MouseEvent, useCallback } from 'react';\n\nimport { TextLink } from '../text-link';\nimport { Typography } from '../typography';\n\n/**\n * Creates a Storybook docs page that combines a component's README (props)\n * and optional ACCESSIBILITY.md into a single page with a navigation index.\n *\n * Requires the `autodocs` tag on the component meta to create a Docs entry in the sidebar\n * (the global preview config disables autodocs with `!autodocs`).\n *\n * Usage in a *.stories.tsx file:\n * ```ts\n * import ReadmeContent from '../README.md?raw';\n * import AccessibilityContent from '../ACCESSIBILITY.md?raw';\n * import { createComponentDocsPage } from '../../_common/component-docs-page';\n *\n * const meta: Meta = {\n * // ...\n * tags: ['docsPage', 'autodocs'],\n * parameters: {\n * docs: {\n * page: createComponentDocsPage(ReadmeContent, AccessibilityContent),\n * },\n * },\n * };\n * ```\n */\n\nfunction stripMarkdownComments(content: string): string {\n return content.replace(/^\\[\\/\\/\\]: #.*\\n*/gm, '');\n}\n\nexport function createComponentDocsPage(\n readme: string,\n accessibility?: string,\n) {\n const cleaned = stripMarkdownComments(readme);\n const cleanedA11y = accessibility\n ? stripMarkdownComments(accessibility).replace(/^## /gm, '### ')\n : null;\n\n return function ComponentDocsPage() {\n const scrollTo = useCallback(\n (e: MouseEvent<HTMLAnchorElement>, id: string) => {\n e.preventDefault();\n document.getElementById(id)?.scrollIntoView({ behavior: 'smooth' });\n },\n [],\n );\n\n return (\n <>\n {cleanedA11y && (\n <>\n <Typography as=\"h1\" variant=\"title-1\">\n Docs\n </Typography>\n <nav className=\"n-flex n-flex-col n-gap-token-2 n-mb-2\">\n <TextLink\n href=\"#props\"\n htmlAttributes={{ onClick: (e) => scrollTo(e, 'props') }}\n >\n Props\n </TextLink>\n <TextLink\n href=\"#accessibility\"\n htmlAttributes={{\n onClick: (e) => scrollTo(e, 'accessibility'),\n }}\n >\n Accessibility\n </TextLink>\n </nav>\n </>\n )}\n <Markdown>{cleaned}</Markdown>\n {cleanedA11y && (\n <>\n <Markdown>{`## Accessibility\\n\\n${cleanedA11y}`}</Markdown>\n </>\n )}\n </>\n );\n };\n}\n"]}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } 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 { Markdown } from '@storybook/addon-docs/blocks';
|
|
23
|
-
import { useCallback } from 'react';
|
|
24
|
-
import { TextLink } from '../text-link';
|
|
25
|
-
import { Typography } from '../typography';
|
|
26
|
-
/**
|
|
27
|
-
* Creates a Storybook docs page that combines a component's README (props)
|
|
28
|
-
* and optional ACCESSIBILITY.md into a single page with a navigation index.
|
|
29
|
-
*
|
|
30
|
-
* Requires the `autodocs` tag on the component meta to create a Docs entry in the sidebar
|
|
31
|
-
* (the global preview config disables autodocs with `!autodocs`).
|
|
32
|
-
*
|
|
33
|
-
* Usage in a *.stories.tsx file:
|
|
34
|
-
* ```ts
|
|
35
|
-
* import ReadmeContent from '../README.md?raw';
|
|
36
|
-
* import AccessibilityContent from '../ACCESSIBILITY.md?raw';
|
|
37
|
-
* import { createComponentDocsPage } from '../../_common/component-docs-page';
|
|
38
|
-
*
|
|
39
|
-
* const meta: Meta = {
|
|
40
|
-
* // ...
|
|
41
|
-
* tags: ['docsPage', 'autodocs'],
|
|
42
|
-
* parameters: {
|
|
43
|
-
* docs: {
|
|
44
|
-
* page: createComponentDocsPage(ReadmeContent, AccessibilityContent),
|
|
45
|
-
* },
|
|
46
|
-
* },
|
|
47
|
-
* };
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
|
-
function stripMarkdownComments(content) {
|
|
51
|
-
return content.replace(/^\[\/\/\]: #.*\n*/gm, '');
|
|
52
|
-
}
|
|
53
|
-
export function createComponentDocsPage(readme, accessibility) {
|
|
54
|
-
const cleaned = stripMarkdownComments(readme);
|
|
55
|
-
const cleanedA11y = accessibility
|
|
56
|
-
? stripMarkdownComments(accessibility).replace(/^## /gm, '### ')
|
|
57
|
-
: null;
|
|
58
|
-
return function ComponentDocsPage() {
|
|
59
|
-
const scrollTo = useCallback((e, id) => {
|
|
60
|
-
var _a;
|
|
61
|
-
e.preventDefault();
|
|
62
|
-
(_a = document.getElementById(id)) === null || _a === void 0 ? void 0 : _a.scrollIntoView({ behavior: 'smooth' });
|
|
63
|
-
}, []);
|
|
64
|
-
return (_jsxs(_Fragment, { children: [cleanedA11y && (_jsxs(_Fragment, { children: [_jsx(Typography, { as: "h1", variant: "title-1", children: "Docs" }), _jsxs("nav", { className: "n-flex n-flex-col n-gap-token-2 n-mb-2", children: [_jsx(TextLink, { href: "#props", htmlAttributes: { onClick: (e) => scrollTo(e, 'props') }, children: "Props" }), _jsx(TextLink, { href: "#accessibility", htmlAttributes: {
|
|
65
|
-
onClick: (e) => scrollTo(e, 'accessibility'),
|
|
66
|
-
}, children: "Accessibility" })] })] })), _jsx(Markdown, { children: cleaned }), cleanedA11y && (_jsx(_Fragment, { children: _jsx(Markdown, { children: `## Accessibility\n\n${cleanedA11y}` }) }))] }));
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
//# sourceMappingURL=component-docs-page.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"component-docs-page.js","sourceRoot":"","sources":["../../../src/_common/component-docs-page.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAmB,WAAW,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C;;;;;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4BACE,KAAC,QAAQ,cAAE,uBAAuB,WAAW,EAAE,GAAY,GAC1D,CACJ,IACA,CACJ,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\nimport { Markdown } from '@storybook/addon-docs/blocks';\nimport { type MouseEvent, useCallback } from 'react';\n\nimport { TextLink } from '../text-link';\nimport { Typography } from '../typography';\n\n/**\n * Creates a Storybook docs page that combines a component's README (props)\n * and optional ACCESSIBILITY.md into a single page with a navigation index.\n *\n * Requires the `autodocs` tag on the component meta to create a Docs entry in the sidebar\n * (the global preview config disables autodocs with `!autodocs`).\n *\n * Usage in a *.stories.tsx file:\n * ```ts\n * import ReadmeContent from '../README.md?raw';\n * import AccessibilityContent from '../ACCESSIBILITY.md?raw';\n * import { createComponentDocsPage } from '../../_common/component-docs-page';\n *\n * const meta: Meta = {\n * // ...\n * tags: ['docsPage', 'autodocs'],\n * parameters: {\n * docs: {\n * page: createComponentDocsPage(ReadmeContent, AccessibilityContent),\n * },\n * },\n * };\n * ```\n */\n\nfunction stripMarkdownComments(content: string): string {\n return content.replace(/^\\[\\/\\/\\]: #.*\\n*/gm, '');\n}\n\nexport function createComponentDocsPage(\n readme: string,\n accessibility?: string,\n) {\n const cleaned = stripMarkdownComments(readme);\n const cleanedA11y = accessibility\n ? stripMarkdownComments(accessibility).replace(/^## /gm, '### ')\n : null;\n\n return function ComponentDocsPage() {\n const scrollTo = useCallback(\n (e: MouseEvent<HTMLAnchorElement>, id: string) => {\n e.preventDefault();\n document.getElementById(id)?.scrollIntoView({ behavior: 'smooth' });\n },\n [],\n );\n\n return (\n <>\n {cleanedA11y && (\n <>\n <Typography as=\"h1\" variant=\"title-1\">\n Docs\n </Typography>\n <nav className=\"n-flex n-flex-col n-gap-token-2 n-mb-2\">\n <TextLink\n href=\"#props\"\n htmlAttributes={{ onClick: (e) => scrollTo(e, 'props') }}\n >\n Props\n </TextLink>\n <TextLink\n href=\"#accessibility\"\n htmlAttributes={{\n onClick: (e) => scrollTo(e, 'accessibility'),\n }}\n >\n Accessibility\n </TextLink>\n </nav>\n </>\n )}\n <Markdown>{cleaned}</Markdown>\n {cleanedA11y && (\n <>\n <Markdown>{`## Accessibility\\n\\n${cleanedA11y}`}</Markdown>\n </>\n )}\n </>\n );\n };\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"component-docs-page.d.ts","sourceRoot":"","sources":["../../../src/_common/component-docs-page.tsx"],"names":[],"mappings":"AAuDA,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,MAAM,EACd,aAAa,CAAC,EAAE,MAAM,iDAkDvB"}
|