@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/markdown-editor.cjs
CHANGED
|
@@ -1072,13 +1072,14 @@ var init_Clipboard2 = __esm({
|
|
|
1072
1072
|
init_Clipboard();
|
|
1073
1073
|
}
|
|
1074
1074
|
});
|
|
1075
|
-
var DEFAULT_ICON, ClipboardButton;
|
|
1075
|
+
var DEFAULT_ICON, DEFAULT_ARIA_LABEL, ClipboardButton;
|
|
1076
1076
|
var init_ClipboardButton = __esm({
|
|
1077
1077
|
"src/blocks/ClipboardButton/ClipboardButton.tsx"() {
|
|
1078
1078
|
init_Button2();
|
|
1079
1079
|
init_Clipboard2();
|
|
1080
1080
|
init_icons();
|
|
1081
1081
|
DEFAULT_ICON = /* @__PURE__ */ jsxRuntime.jsx(icons_exports.Copy, {});
|
|
1082
|
+
DEFAULT_ARIA_LABEL = "Copy";
|
|
1082
1083
|
ClipboardButton = ({
|
|
1083
1084
|
// clipboard props
|
|
1084
1085
|
text,
|
|
@@ -1090,20 +1091,24 @@ var init_ClipboardButton = __esm({
|
|
|
1090
1091
|
variant = "outline",
|
|
1091
1092
|
children,
|
|
1092
1093
|
...rest
|
|
1093
|
-
}) =>
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1094
|
+
}) => {
|
|
1095
|
+
const defaultAriaLabel = typeof tooltip === "string" && tooltip.trim() ? tooltip : DEFAULT_ARIA_LABEL;
|
|
1096
|
+
const ariaLabel = rest["aria-label"] ?? (children == null ? defaultAriaLabel : void 0);
|
|
1097
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1098
|
+
Clipboard,
|
|
1099
|
+
{
|
|
1100
|
+
asChild: true,
|
|
1101
|
+
tooltip,
|
|
1102
|
+
tooltipPlacement,
|
|
1103
|
+
tooltipVariant,
|
|
1104
|
+
text,
|
|
1105
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(Button, { ...rest, "aria-label": ariaLabel, variant, disabled: !text, children: [
|
|
1106
|
+
icon,
|
|
1107
|
+
children
|
|
1108
|
+
] })
|
|
1109
|
+
}
|
|
1110
|
+
);
|
|
1111
|
+
};
|
|
1107
1112
|
}
|
|
1108
1113
|
});
|
|
1109
1114
|
|