@keboola/design 6.4.0 → 8.0.0
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/AGENTS.md +9 -10
- package/COMPONENT-API.md +162 -160
- package/README.md +3 -3
- package/dist/charts.cjs +22 -22
- package/dist/charts.cjs.map +1 -1
- package/dist/charts.d.cts +5 -5
- package/dist/charts.d.ts +5 -5
- package/dist/charts.js +22 -22
- package/dist/charts.js.map +1 -1
- package/dist/editors.cjs +594 -438
- package/dist/editors.cjs.map +1 -1
- package/dist/editors.d.cts +8 -4
- package/dist/editors.d.ts +8 -4
- package/dist/editors.js +595 -422
- package/dist/editors.js.map +1 -1
- package/dist/icons.cjs +23818 -45
- package/dist/icons.cjs.map +1 -1
- package/dist/icons.d.cts +12 -3
- package/dist/icons.d.ts +12 -3
- package/dist/icons.js +298 -40
- package/dist/icons.js.map +1 -1
- package/dist/index.cjs +11519 -11718
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +679 -1227
- package/dist/index.d.ts +679 -1227
- package/dist/index.js +10315 -10516
- package/dist/index.js.map +1 -1
- package/dist/markdown-editor.cjs +1015 -1134
- package/dist/markdown-editor.cjs.map +1 -1
- package/dist/markdown-editor.js +1016 -1134
- package/dist/markdown-editor.js.map +1 -1
- package/dist/mermaid.cjs +366 -452
- package/dist/mermaid.cjs.map +1 -1
- package/dist/mermaid.d.cts +5 -1
- package/dist/mermaid.d.ts +5 -1
- package/dist/mermaid.js +368 -435
- package/dist/mermaid.js.map +1 -1
- package/dist/rjsf.cjs +2540 -2419
- package/dist/rjsf.cjs.map +1 -1
- package/dist/rjsf.js +2541 -2419
- package/dist/rjsf.js.map +1 -1
- package/dist/styles.css +2 -5
- package/dist/testing.cjs +86 -82
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.js +86 -82
- package/dist/testing.js.map +1 -1
- package/package.json +30 -22
- package/src/styles.css +125 -105
- package/src/theme.css +264 -0
package/dist/editors.d.cts
CHANGED
|
@@ -6,13 +6,17 @@ import { SqlDialectName } from '@keboola/codemirror-lang-sql';
|
|
|
6
6
|
export { SqlDialectName } from '@keboola/codemirror-lang-sql';
|
|
7
7
|
import { M as MergeConflict, C as ChangeClassification } from './constants-D3gaMY-W.cjs';
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
declare const LANGUAGE_MODES: readonly ["application/json", "text/plain", "text/x-python", "text/x-sql", "text/x-mysql", "text/x-pgsql", "text/x-mssql", "text/x-sfsql", "text/x-plsql", "text/x-rsrc", "text/x-sh", "text/x-toml", "text/jsonnet", "text/x-dbt", "text/javascript", "text/typescript"];
|
|
10
|
+
type LANGUAGE_MODE = (typeof LANGUAGE_MODES)[number];
|
|
11
|
+
declare const isLanguageMode: (mode: string) => mode is LANGUAGE_MODE;
|
|
10
12
|
|
|
11
13
|
type Props$2 = {
|
|
12
14
|
value: string;
|
|
13
15
|
previousValue?: string;
|
|
14
16
|
mode?: LANGUAGE_MODE;
|
|
15
17
|
placeholder?: string;
|
|
18
|
+
/** Names the editable region for screen readers — the editor has no visible label of its own. */
|
|
19
|
+
ariaLabel?: string;
|
|
16
20
|
readOnly?: boolean;
|
|
17
21
|
autocompletions?: string[];
|
|
18
22
|
extraKeys?: Record<string, () => void>;
|
|
@@ -31,10 +35,10 @@ type Props$2 = {
|
|
|
31
35
|
readOnly: true;
|
|
32
36
|
onChange?: never;
|
|
33
37
|
} | {
|
|
34
|
-
readOnly?:
|
|
38
|
+
readOnly?: boolean;
|
|
35
39
|
onChange: (value: string) => void;
|
|
36
40
|
});
|
|
37
|
-
declare const CodeEditor: ({ value, previousValue, onChange, mode, placeholder, readOnly, autocompletions, extraKeys, withToggleCommentHint, withAutofocus, withLineNumbers, withLineWrapping, withCollapseUnchanged, withCopyButton, completeAny, help, helpPostfix, renderAdditionalButtons, className, }: Props$2) => react_jsx_runtime.JSX.Element;
|
|
41
|
+
declare const CodeEditor: ({ value, previousValue, onChange, mode, placeholder, ariaLabel, readOnly, autocompletions, extraKeys, withToggleCommentHint, withAutofocus, withLineNumbers, withLineWrapping, withCollapseUnchanged, withCopyButton, completeAny, help, helpPostfix, renderAdditionalButtons, className, }: Props$2) => react_jsx_runtime.JSX.Element;
|
|
38
42
|
|
|
39
43
|
type HighlightedLines = {
|
|
40
44
|
from: number;
|
|
@@ -108,4 +112,4 @@ type Props = {
|
|
|
108
112
|
};
|
|
109
113
|
declare const MergeEditor: ({ mergeValue, handleMergeChange, leftText, rightText, leftConflicts, rightConflicts, leftHighlightedLines, rightHighlightedLines, leftClassification, rightClassification, mergeHighlightedLines, mergeClassification, acceptLeft, acceptRight, dismissLeft, dismissRight, leftHeader, middleHeader, middleHeaderClassName, middleClassName, rightHeader, className, leftDeleted, rightDeleted, }: Props) => react_jsx_runtime.JSX.Element;
|
|
110
114
|
|
|
111
|
-
export { CodeEditor, MergeEditor, SqlEditor };
|
|
115
|
+
export { CodeEditor, type LANGUAGE_MODE, LANGUAGE_MODES, MergeEditor, SqlEditor, isLanguageMode };
|
package/dist/editors.d.ts
CHANGED
|
@@ -6,13 +6,17 @@ import { SqlDialectName } from '@keboola/codemirror-lang-sql';
|
|
|
6
6
|
export { SqlDialectName } from '@keboola/codemirror-lang-sql';
|
|
7
7
|
import { M as MergeConflict, C as ChangeClassification } from './constants-D3gaMY-W.js';
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
declare const LANGUAGE_MODES: readonly ["application/json", "text/plain", "text/x-python", "text/x-sql", "text/x-mysql", "text/x-pgsql", "text/x-mssql", "text/x-sfsql", "text/x-plsql", "text/x-rsrc", "text/x-sh", "text/x-toml", "text/jsonnet", "text/x-dbt", "text/javascript", "text/typescript"];
|
|
10
|
+
type LANGUAGE_MODE = (typeof LANGUAGE_MODES)[number];
|
|
11
|
+
declare const isLanguageMode: (mode: string) => mode is LANGUAGE_MODE;
|
|
10
12
|
|
|
11
13
|
type Props$2 = {
|
|
12
14
|
value: string;
|
|
13
15
|
previousValue?: string;
|
|
14
16
|
mode?: LANGUAGE_MODE;
|
|
15
17
|
placeholder?: string;
|
|
18
|
+
/** Names the editable region for screen readers — the editor has no visible label of its own. */
|
|
19
|
+
ariaLabel?: string;
|
|
16
20
|
readOnly?: boolean;
|
|
17
21
|
autocompletions?: string[];
|
|
18
22
|
extraKeys?: Record<string, () => void>;
|
|
@@ -31,10 +35,10 @@ type Props$2 = {
|
|
|
31
35
|
readOnly: true;
|
|
32
36
|
onChange?: never;
|
|
33
37
|
} | {
|
|
34
|
-
readOnly?:
|
|
38
|
+
readOnly?: boolean;
|
|
35
39
|
onChange: (value: string) => void;
|
|
36
40
|
});
|
|
37
|
-
declare const CodeEditor: ({ value, previousValue, onChange, mode, placeholder, readOnly, autocompletions, extraKeys, withToggleCommentHint, withAutofocus, withLineNumbers, withLineWrapping, withCollapseUnchanged, withCopyButton, completeAny, help, helpPostfix, renderAdditionalButtons, className, }: Props$2) => react_jsx_runtime.JSX.Element;
|
|
41
|
+
declare const CodeEditor: ({ value, previousValue, onChange, mode, placeholder, ariaLabel, readOnly, autocompletions, extraKeys, withToggleCommentHint, withAutofocus, withLineNumbers, withLineWrapping, withCollapseUnchanged, withCopyButton, completeAny, help, helpPostfix, renderAdditionalButtons, className, }: Props$2) => react_jsx_runtime.JSX.Element;
|
|
38
42
|
|
|
39
43
|
type HighlightedLines = {
|
|
40
44
|
from: number;
|
|
@@ -108,4 +112,4 @@ type Props = {
|
|
|
108
112
|
};
|
|
109
113
|
declare const MergeEditor: ({ mergeValue, handleMergeChange, leftText, rightText, leftConflicts, rightConflicts, leftHighlightedLines, rightHighlightedLines, leftClassification, rightClassification, mergeHighlightedLines, mergeClassification, acceptLeft, acceptRight, dismissLeft, dismissRight, leftHeader, middleHeader, middleHeaderClassName, middleClassName, rightHeader, className, leftDeleted, rightDeleted, }: Props) => react_jsx_runtime.JSX.Element;
|
|
110
114
|
|
|
111
|
-
export { CodeEditor, MergeEditor, SqlEditor };
|
|
115
|
+
export { CodeEditor, type LANGUAGE_MODE, LANGUAGE_MODES, MergeEditor, SqlEditor, isLanguageMode };
|