@keboola/design 6.4.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/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(
@@ -371,6 +373,7 @@ var Keboola = forwardRef(
371
373
  width: size,
372
374
  height: size,
373
375
  viewBox: "0 0 300 512",
376
+ overflow: "visible",
374
377
  fill: color,
375
378
  className: cn("lucide", className),
376
379
  ...rest,
@@ -935,14 +938,9 @@ var getLanguageMode = (mode) => {
935
938
  return json();
936
939
  }
937
940
  };
941
+ var shouldLintJson = (mode, readOnly) => mode === "application/json" && !readOnly;
938
942
  var KbdSeparator = ({ className, ...props }) => /* @__PURE__ */ jsx("span", { ...props, className: cn("tw-text-xs tw-text-muted-foreground", className) });
939
- var KbdGroup = ({
940
- ref,
941
- className,
942
- children,
943
- separator,
944
- ...props
945
- }) => {
943
+ var KbdGroup = ({ ref, className, children, separator, ...props }) => {
946
944
  return /* @__PURE__ */ jsx(
947
945
  "kbd",
948
946
  {
@@ -1033,7 +1031,7 @@ var CodeEditor = ({
1033
1031
  const commonExtensions = useMemo(() => {
1034
1032
  return [
1035
1033
  getLanguageMode(mode),
1036
- mode === "application/json" && linter(jsonParseLinter()),
1034
+ shouldLintJson(mode, readOnly) && linter(jsonParseLinter()),
1037
1035
  withLineWrapping ? EditorView.lineWrapping : [],
1038
1036
  EditorState.languageData.of(() => [
1039
1037
  { autocomplete: completeAny ? completeAnyWord : autocompletions }
@@ -1051,7 +1049,7 @@ var CodeEditor = ({
1051
1049
  autocompletion({ activateOnTyping: completeAny }),
1052
1050
  baseTheme
1053
1051
  ].filter(Boolean);
1054
- }, [autocompletions, completeAny, extraKeys, mode, withLineWrapping, baseTheme]);
1052
+ }, [autocompletions, completeAny, extraKeys, mode, readOnly, withLineWrapping, baseTheme]);
1055
1053
  const extensions = useMemo(() => {
1056
1054
  return [
1057
1055
  ...commonExtensions,