@keboola/design 9.0.0 → 10.1.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 (84) hide show
  1. package/AGENTS.md +117 -40
  2. package/COMPONENT-API.md +31 -9
  3. package/README.md +3 -3
  4. package/dist/MermaidDiagram-EOKJHQQV.js +10 -0
  5. package/dist/MermaidDiagram-EOKJHQQV.js.map +1 -0
  6. package/dist/charts.d.ts +31 -2
  7. package/dist/charts.js +6 -9
  8. package/dist/charts.js.map +1 -1
  9. package/dist/chunk-63NSN2VL.js +274 -0
  10. package/dist/chunk-63NSN2VL.js.map +1 -0
  11. package/dist/{rjsf.cjs → chunk-6FPEI4EM.js} +1560 -5712
  12. package/dist/chunk-6FPEI4EM.js.map +1 -0
  13. package/dist/chunk-7PUUHEJQ.js +1313 -0
  14. package/dist/chunk-7PUUHEJQ.js.map +1 -0
  15. package/dist/chunk-BOHNXTMM.js +606 -0
  16. package/dist/chunk-BOHNXTMM.js.map +1 -0
  17. package/dist/{testing.cjs → chunk-C3L3TBBT.js} +33 -164
  18. package/dist/chunk-C3L3TBBT.js.map +1 -0
  19. package/dist/chunk-CTCFYWJC.js +407 -0
  20. package/dist/chunk-CTCFYWJC.js.map +1 -0
  21. package/dist/chunk-ESBL3IPF.js +23 -0
  22. package/dist/chunk-ESBL3IPF.js.map +1 -0
  23. package/dist/chunk-IJTHFNNJ.js +261 -0
  24. package/dist/chunk-IJTHFNNJ.js.map +1 -0
  25. package/dist/chunk-JP7PNHLH.js +40 -0
  26. package/dist/chunk-JP7PNHLH.js.map +1 -0
  27. package/dist/chunk-KPNAW5MU.js +229 -0
  28. package/dist/chunk-KPNAW5MU.js.map +1 -0
  29. package/dist/chunk-L37JJ6MR.js +152 -0
  30. package/dist/chunk-L37JJ6MR.js.map +1 -0
  31. package/dist/chunk-Q7NWXLCT.js +90 -0
  32. package/dist/chunk-Q7NWXLCT.js.map +1 -0
  33. package/dist/chunk-SYIEF644.js +1016 -0
  34. package/dist/chunk-SYIEF644.js.map +1 -0
  35. package/dist/chunk-VMFSRV5H.js +16 -0
  36. package/dist/chunk-VMFSRV5H.js.map +1 -0
  37. package/dist/chunk-VPPM7UUQ.js +47 -0
  38. package/dist/chunk-VPPM7UUQ.js.map +1 -0
  39. package/dist/chunk-XV3UUOYF.js +845 -0
  40. package/dist/chunk-XV3UUOYF.js.map +1 -0
  41. package/dist/editors.d.ts +53 -5
  42. package/dist/editors.js +85 -2097
  43. package/dist/editors.js.map +1 -1
  44. package/dist/icons.d.ts +29 -8
  45. package/dist/icons.js +2 -361
  46. package/dist/icons.js.map +1 -1
  47. package/dist/index.d.ts +735 -426
  48. package/dist/index.js +5029 -13796
  49. package/dist/index.js.map +1 -1
  50. package/dist/markdown-editor.js +41 -3426
  51. package/dist/markdown-editor.js.map +1 -1
  52. package/dist/mermaid.js +8 -1129
  53. package/dist/mermaid.js.map +1 -1
  54. package/dist/rjsf.js +97 -9240
  55. package/dist/rjsf.js.map +1 -1
  56. package/dist/styles.css +1 -1
  57. package/dist/testing.js +5 -357
  58. package/dist/testing.js.map +1 -1
  59. package/package.json +29 -74
  60. package/src/styles.css +60 -3
  61. package/src/theme.css +1 -0
  62. package/dist/charts.cjs +0 -268
  63. package/dist/charts.cjs.map +0 -1
  64. package/dist/charts.d.cts +0 -181
  65. package/dist/constants-D3gaMY-W.d.cts +0 -39
  66. package/dist/editors.cjs +0 -2456
  67. package/dist/editors.cjs.map +0 -1
  68. package/dist/editors.d.cts +0 -141
  69. package/dist/icons.cjs +0 -23888
  70. package/dist/icons.cjs.map +0 -1
  71. package/dist/icons.d.cts +0 -20
  72. package/dist/index.cjs +0 -24817
  73. package/dist/index.cjs.map +0 -1
  74. package/dist/index.d.cts +0 -10413
  75. package/dist/markdown-editor.cjs +0 -4636
  76. package/dist/markdown-editor.cjs.map +0 -1
  77. package/dist/markdown-editor.d.cts +0 -75
  78. package/dist/mermaid.cjs +0 -1138
  79. package/dist/mermaid.cjs.map +0 -1
  80. package/dist/mermaid.d.cts +0 -15
  81. package/dist/rjsf.cjs.map +0 -1
  82. package/dist/rjsf.d.cts +0 -55
  83. package/dist/testing.cjs.map +0 -1
  84. package/dist/testing.d.cts +0 -25
@@ -1,75 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ReactNode } from 'react';
3
-
4
- type MarkdownEditorProps = {
5
- /** Markdown string (controlled) */
6
- value: string;
7
- onChange?: (markdown: string) => void;
8
- /**
9
- * Renders content but never accepts input. Use for permanent view-only contexts
10
- * (e.g. a current user lacks edit permission). Toolbar is hidden.
11
- */
12
- readOnly?: boolean;
13
- /**
14
- * Temporarily blocks input but signals intent to re-enable
15
- * (e.g. while a save is in flight). Functionally identical to `readOnly` today.
16
- */
17
- disabled?: boolean;
18
- placeholder?: string;
19
- autoFocus?: boolean;
20
- /** Invoked on Cmd/Ctrl+Enter — typically used to commit a form. */
21
- onSave?: () => void;
22
- /**
23
- * Invoked on Escape in inline-edit mode (`singleLine || saveOnBlur`). Per the
24
- * inline-editable-text pattern spec, Esc reverts the in-progress edit — callers
25
- * reset `value` to the last-committed state inside this handler.
26
- */
27
- onCancel?: () => void;
28
- /**
29
- * Async image upload. Resolved URL is embedded as the image src
30
- * (`![alt](url)` in the underlying markdown).
31
- */
32
- onImageUpload?: (file: File) => Promise<{
33
- url: string;
34
- }>;
35
- className?: string;
36
- imageRenderer?: (props: {
37
- src: string;
38
- alt: string;
39
- }) => ReactNode;
40
- showToolbar?: boolean;
41
- /**
42
- * Strips the prose typography wrapper, removes the min-height, and tightens padding so
43
- * the editor visually blends with surrounding text. Use for inline / Linear-style edit
44
- * affordances inside headings, list rows, or table cells. Pair with `className` to set
45
- * the caller's typography.
46
- */
47
- compact?: boolean;
48
- /**
49
- * Calls `onSave` when focus leaves the editor (and is not moved into the toolbar).
50
- * `onChange` already keeps the caller's value in sync — `onSave` is the "commit" signal.
51
- */
52
- saveOnBlur?: boolean;
53
- /**
54
- * Disables block-level markdown (lists, headings, code blocks, HR) and makes a plain
55
- * Enter press trigger `onSave` and blur the editor. Shift+Enter still inserts a soft
56
- * line break. Use for editable titles.
57
- */
58
- singleLine?: boolean;
59
- /**
60
- * Clamps content to 2 lines (truncating with an ellipsis) in the display (not-focused)
61
- * state; focus expands the editor to full height (no clamp). `line-clamp` is self-gating,
62
- * so short/empty content renders fully with no truncation. Per the inline-editable-text
63
- * pattern spec for description-style slots.
64
- */
65
- clampDisplay?: boolean;
66
- /**
67
- * Minimum visible height in lines. `1` renders as a single line that grows with
68
- * content (Linear/Slack/GitHub-PR-comment pattern); `0` removes the floor entirely.
69
- * Omit to keep the default ~4-line floor. Ignored in `compact` mode (which has no floor).
70
- */
71
- minRows?: number;
72
- };
73
- declare const MarkdownEditor: ({ value, onChange, readOnly, placeholder, autoFocus, disabled, onSave, onCancel, onImageUpload, className, imageRenderer, showToolbar, compact, saveOnBlur, singleLine, clampDisplay, minRows, }: MarkdownEditorProps) => react_jsx_runtime.JSX.Element;
74
-
75
- export { MarkdownEditor, type MarkdownEditorProps };