@keboola/design 6.3.0 → 6.5.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 +2 -3
- package/COMPONENT-API.md +164 -156
- package/README.md +2 -2
- package/dist/editors.cjs +32 -10
- package/dist/editors.cjs.map +1 -1
- package/dist/editors.js +32 -10
- package/dist/editors.js.map +1 -1
- package/dist/icons.cjs +25 -0
- package/dist/icons.cjs.map +1 -1
- package/dist/icons.d.cts +3 -1
- package/dist/icons.d.ts +3 -1
- package/dist/icons.js +25 -1
- package/dist/icons.js.map +1 -1
- package/dist/index.cjs +6086 -6126
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +511 -1061
- package/dist/index.d.ts +511 -1061
- package/dist/index.js +6101 -6143
- package/dist/index.js.map +1 -1
- package/dist/markdown-editor.cjs +268 -243
- package/dist/markdown-editor.cjs.map +1 -1
- package/dist/markdown-editor.js +268 -243
- package/dist/markdown-editor.js.map +1 -1
- package/dist/mermaid.cjs +89 -34
- package/dist/mermaid.cjs.map +1 -1
- package/dist/mermaid.js +89 -34
- package/dist/mermaid.js.map +1 -1
- package/dist/rjsf.cjs +1478 -1494
- package/dist/rjsf.cjs.map +1 -1
- package/dist/rjsf.js +1479 -1495
- package/dist/rjsf.js.map +1 -1
- package/dist/styles.css +2 -2
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.js.map +1 -1
- package/package.json +10 -9
package/dist/editors.js
CHANGED
|
@@ -241,6 +241,7 @@ var Tooltip = ({
|
|
|
241
241
|
placement = "right",
|
|
242
242
|
forceHide = false,
|
|
243
243
|
forceShow = false,
|
|
244
|
+
delayDuration,
|
|
244
245
|
// trigger props
|
|
245
246
|
triggerAsChild = false
|
|
246
247
|
}) => {
|
|
@@ -260,6 +261,7 @@ var Tooltip = ({
|
|
|
260
261
|
{
|
|
261
262
|
open: !!tooltip && (open || forceShow) && !forceHide,
|
|
262
263
|
onOpenChange: setOpen,
|
|
264
|
+
delayDuration,
|
|
263
265
|
disableHoverableContent: isActionVariant,
|
|
264
266
|
children: [
|
|
265
267
|
/* @__PURE__ */ jsx(
|
|
@@ -311,7 +313,8 @@ var HelpBlock = ({ children, className, state = "default", ...rest }) => {
|
|
|
311
313
|
var icons_exports = {};
|
|
312
314
|
__export(icons_exports, {
|
|
313
315
|
Google: () => Google,
|
|
314
|
-
Keboola: () => Keboola
|
|
316
|
+
Keboola: () => Keboola,
|
|
317
|
+
Microsoft: () => Microsoft
|
|
315
318
|
});
|
|
316
319
|
__reExport(icons_exports, lucide_react_star);
|
|
317
320
|
var Google = forwardRef(
|
|
@@ -370,6 +373,7 @@ var Keboola = forwardRef(
|
|
|
370
373
|
width: size,
|
|
371
374
|
height: size,
|
|
372
375
|
viewBox: "0 0 300 512",
|
|
376
|
+
overflow: "visible",
|
|
373
377
|
fill: color,
|
|
374
378
|
className: cn("lucide", className),
|
|
375
379
|
...rest,
|
|
@@ -381,6 +385,29 @@ var Keboola = forwardRef(
|
|
|
381
385
|
)
|
|
382
386
|
);
|
|
383
387
|
Keboola.displayName = "Keboola";
|
|
388
|
+
var Microsoft = forwardRef(
|
|
389
|
+
({ size = 24, className, children, ...rest }, ref) => /* @__PURE__ */ jsxs(
|
|
390
|
+
"svg",
|
|
391
|
+
{
|
|
392
|
+
ref,
|
|
393
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
394
|
+
width: size,
|
|
395
|
+
height: size,
|
|
396
|
+
viewBox: "0 0 21 21",
|
|
397
|
+
fill: "none",
|
|
398
|
+
className: cn("lucide", className),
|
|
399
|
+
...rest,
|
|
400
|
+
children: [
|
|
401
|
+
/* @__PURE__ */ jsx("rect", { x: "0", y: "0", width: "10", height: "10", fill: "#F25022" }),
|
|
402
|
+
/* @__PURE__ */ jsx("rect", { x: "11", y: "0", width: "10", height: "10", fill: "#7FBA00" }),
|
|
403
|
+
/* @__PURE__ */ jsx("rect", { x: "0", y: "11", width: "10", height: "10", fill: "#00A4EF" }),
|
|
404
|
+
/* @__PURE__ */ jsx("rect", { x: "11", y: "11", width: "10", height: "10", fill: "#FFB900" }),
|
|
405
|
+
children
|
|
406
|
+
]
|
|
407
|
+
}
|
|
408
|
+
)
|
|
409
|
+
);
|
|
410
|
+
Microsoft.displayName = "Microsoft";
|
|
384
411
|
var variants = cva(
|
|
385
412
|
[
|
|
386
413
|
"tailwindcss-preflight",
|
|
@@ -911,14 +938,9 @@ var getLanguageMode = (mode) => {
|
|
|
911
938
|
return json();
|
|
912
939
|
}
|
|
913
940
|
};
|
|
941
|
+
var shouldLintJson = (mode, readOnly) => mode === "application/json" && !readOnly;
|
|
914
942
|
var KbdSeparator = ({ className, ...props }) => /* @__PURE__ */ jsx("span", { ...props, className: cn("tw-text-xs tw-text-muted-foreground", className) });
|
|
915
|
-
var KbdGroup = ({
|
|
916
|
-
ref,
|
|
917
|
-
className,
|
|
918
|
-
children,
|
|
919
|
-
separator,
|
|
920
|
-
...props
|
|
921
|
-
}) => {
|
|
943
|
+
var KbdGroup = ({ ref, className, children, separator, ...props }) => {
|
|
922
944
|
return /* @__PURE__ */ jsx(
|
|
923
945
|
"kbd",
|
|
924
946
|
{
|
|
@@ -1009,7 +1031,7 @@ var CodeEditor = ({
|
|
|
1009
1031
|
const commonExtensions = useMemo(() => {
|
|
1010
1032
|
return [
|
|
1011
1033
|
getLanguageMode(mode),
|
|
1012
|
-
mode
|
|
1034
|
+
shouldLintJson(mode, readOnly) && linter(jsonParseLinter()),
|
|
1013
1035
|
withLineWrapping ? EditorView.lineWrapping : [],
|
|
1014
1036
|
EditorState.languageData.of(() => [
|
|
1015
1037
|
{ autocomplete: completeAny ? completeAnyWord : autocompletions }
|
|
@@ -1027,7 +1049,7 @@ var CodeEditor = ({
|
|
|
1027
1049
|
autocompletion({ activateOnTyping: completeAny }),
|
|
1028
1050
|
baseTheme
|
|
1029
1051
|
].filter(Boolean);
|
|
1030
|
-
}, [autocompletions, completeAny, extraKeys, mode, withLineWrapping, baseTheme]);
|
|
1052
|
+
}, [autocompletions, completeAny, extraKeys, mode, readOnly, withLineWrapping, baseTheme]);
|
|
1031
1053
|
const extensions = useMemo(() => {
|
|
1032
1054
|
return [
|
|
1033
1055
|
...commonExtensions,
|