@keboola/design 6.0.0 → 6.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.
- package/COMPONENT-API.md +4 -2
- package/dist/editors.cjs +19 -14
- package/dist/editors.cjs.map +1 -1
- package/dist/editors.js +19 -14
- package/dist/editors.js.map +1 -1
- package/dist/index.cjs +290 -36
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +111 -6
- package/dist/index.d.ts +111 -6
- package/dist/index.js +289 -36
- package/dist/index.js.map +1 -1
- package/dist/markdown-editor.cjs +20 -15
- package/dist/markdown-editor.cjs.map +1 -1
- package/dist/markdown-editor.js +20 -15
- package/dist/markdown-editor.js.map +1 -1
- package/dist/mermaid.cjs +19 -14
- package/dist/mermaid.cjs.map +1 -1
- package/dist/mermaid.js +19 -14
- package/dist/mermaid.js.map +1 -1
- package/dist/rjsf.cjs +19 -14
- package/dist/rjsf.cjs.map +1 -1
- package/dist/rjsf.js +19 -14
- package/dist/rjsf.js.map +1 -1
- package/dist/styles.css +2 -2
- package/package.json +2 -2
- package/src/styles.css +6 -5
package/dist/editors.js
CHANGED
|
@@ -724,6 +724,7 @@ var Clipboard = ({
|
|
|
724
724
|
] });
|
|
725
725
|
};
|
|
726
726
|
var DEFAULT_ICON = /* @__PURE__ */ jsx(icons_exports.Copy, {});
|
|
727
|
+
var DEFAULT_ARIA_LABEL = "Copy";
|
|
727
728
|
var ClipboardButton = ({
|
|
728
729
|
// clipboard props
|
|
729
730
|
text,
|
|
@@ -735,20 +736,24 @@ var ClipboardButton = ({
|
|
|
735
736
|
variant = "outline",
|
|
736
737
|
children,
|
|
737
738
|
...rest
|
|
738
|
-
}) =>
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
739
|
+
}) => {
|
|
740
|
+
const defaultAriaLabel = typeof tooltip === "string" && tooltip.trim() ? tooltip : DEFAULT_ARIA_LABEL;
|
|
741
|
+
const ariaLabel = rest["aria-label"] ?? (children == null ? defaultAriaLabel : void 0);
|
|
742
|
+
return /* @__PURE__ */ jsx(
|
|
743
|
+
Clipboard,
|
|
744
|
+
{
|
|
745
|
+
asChild: true,
|
|
746
|
+
tooltip,
|
|
747
|
+
tooltipPlacement,
|
|
748
|
+
tooltipVariant,
|
|
749
|
+
text,
|
|
750
|
+
children: /* @__PURE__ */ jsxs(Button, { ...rest, "aria-label": ariaLabel, variant, disabled: !text, children: [
|
|
751
|
+
icon,
|
|
752
|
+
children
|
|
753
|
+
] })
|
|
754
|
+
}
|
|
755
|
+
);
|
|
756
|
+
};
|
|
752
757
|
var ButtonToolbar = ({ value, children }) => {
|
|
753
758
|
if (!value && !children) return null;
|
|
754
759
|
return /* @__PURE__ */ jsxs("div", { className: "tw-pointer-events-auto tw-ml-auto tw-mr-4 tw-flex tw-w-fit tw-gap-1 tw-overflow-visible tw-rounded-lg tw-border tw-border-solid tw-border-border !tw-bg-background tw-p-[3px] tw-shadow", children: [
|