@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/rjsf.js
CHANGED
|
@@ -793,6 +793,7 @@ var Clipboard = ({
|
|
|
793
793
|
] });
|
|
794
794
|
};
|
|
795
795
|
var DEFAULT_ICON = /* @__PURE__ */ jsx(icons_exports.Copy, {});
|
|
796
|
+
var DEFAULT_ARIA_LABEL = "Copy";
|
|
796
797
|
var ClipboardButton = ({
|
|
797
798
|
// clipboard props
|
|
798
799
|
text,
|
|
@@ -804,20 +805,24 @@ var ClipboardButton = ({
|
|
|
804
805
|
variant = "outline",
|
|
805
806
|
children,
|
|
806
807
|
...rest
|
|
807
|
-
}) =>
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
808
|
+
}) => {
|
|
809
|
+
const defaultAriaLabel = typeof tooltip === "string" && tooltip.trim() ? tooltip : DEFAULT_ARIA_LABEL;
|
|
810
|
+
const ariaLabel = rest["aria-label"] ?? (children == null ? defaultAriaLabel : void 0);
|
|
811
|
+
return /* @__PURE__ */ jsx(
|
|
812
|
+
Clipboard,
|
|
813
|
+
{
|
|
814
|
+
asChild: true,
|
|
815
|
+
tooltip,
|
|
816
|
+
tooltipPlacement,
|
|
817
|
+
tooltipVariant,
|
|
818
|
+
text,
|
|
819
|
+
children: /* @__PURE__ */ jsxs(Button, { ...rest, "aria-label": ariaLabel, variant, disabled: !text, children: [
|
|
820
|
+
icon,
|
|
821
|
+
children
|
|
822
|
+
] })
|
|
823
|
+
}
|
|
824
|
+
);
|
|
825
|
+
};
|
|
821
826
|
var ButtonToolbar = ({ value, children }) => {
|
|
822
827
|
if (!value && !children) return null;
|
|
823
828
|
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: [
|