@keboola/design 6.5.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.
Files changed (49) hide show
  1. package/AGENTS.md +7 -7
  2. package/COMPONENT-API.md +3 -9
  3. package/README.md +1 -1
  4. package/dist/charts.cjs +22 -22
  5. package/dist/charts.cjs.map +1 -1
  6. package/dist/charts.d.cts +5 -5
  7. package/dist/charts.d.ts +5 -5
  8. package/dist/charts.js +22 -22
  9. package/dist/charts.js.map +1 -1
  10. package/dist/editors.cjs +590 -432
  11. package/dist/editors.cjs.map +1 -1
  12. package/dist/editors.d.cts +8 -4
  13. package/dist/editors.d.ts +8 -4
  14. package/dist/editors.js +591 -416
  15. package/dist/editors.js.map +1 -1
  16. package/dist/icons.cjs +23817 -45
  17. package/dist/icons.cjs.map +1 -1
  18. package/dist/icons.d.cts +12 -3
  19. package/dist/icons.d.ts +12 -3
  20. package/dist/icons.js +297 -40
  21. package/dist/icons.js.map +1 -1
  22. package/dist/index.cjs +4702 -4755
  23. package/dist/index.cjs.map +1 -1
  24. package/dist/index.d.cts +183 -169
  25. package/dist/index.d.ts +183 -169
  26. package/dist/index.js +4700 -4754
  27. package/dist/index.js.map +1 -1
  28. package/dist/markdown-editor.cjs +817 -923
  29. package/dist/markdown-editor.cjs.map +1 -1
  30. package/dist/markdown-editor.js +818 -923
  31. package/dist/markdown-editor.js.map +1 -1
  32. package/dist/mermaid.cjs +308 -425
  33. package/dist/mermaid.cjs.map +1 -1
  34. package/dist/mermaid.d.cts +5 -1
  35. package/dist/mermaid.d.ts +5 -1
  36. package/dist/mermaid.js +310 -408
  37. package/dist/mermaid.js.map +1 -1
  38. package/dist/rjsf.cjs +1398 -1225
  39. package/dist/rjsf.cjs.map +1 -1
  40. package/dist/rjsf.js +1399 -1225
  41. package/dist/rjsf.js.map +1 -1
  42. package/dist/styles.css +2 -5
  43. package/dist/testing.cjs +86 -82
  44. package/dist/testing.cjs.map +1 -1
  45. package/dist/testing.js +86 -82
  46. package/dist/testing.js.map +1 -1
  47. package/package.json +26 -19
  48. package/src/styles.css +125 -105
  49. package/src/theme.css +264 -0
@@ -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
- type LANGUAGE_MODE = 'application/json' | 'text/x-python' | 'text/x-sql' | 'text/x-sfsql' | 'text/x-plsql' | 'text/x-rsrc' | 'text/x-sh' | 'text/javascript' | 'text/typescript';
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?: false;
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
- type LANGUAGE_MODE = 'application/json' | 'text/x-python' | 'text/x-sql' | 'text/x-sfsql' | 'text/x-plsql' | 'text/x-rsrc' | 'text/x-sh' | 'text/javascript' | 'text/typescript';
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?: false;
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 };