@danske/sapphire-react-lab 0.87.4 → 0.87.6
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/build/cjs/index.js +20 -12
- package/build/cjs/index.js.map +1 -1
- package/build/esm/AlertDialog/src/AlertDialog.js +14 -12
- package/build/esm/AlertDialog/src/AlertDialog.js.map +1 -1
- package/build/esm/FeedbackMessage/src/FeedbackMessage.js +1 -1
- package/build/esm/FeedbackMessage/src/FeedbackMessage.js.map +1 -1
- package/build/esm/FileDropzone/src/FileTrigger.js +6 -0
- package/build/esm/FileDropzone/src/FileTrigger.js.map +1 -1
- package/package.json +5 -5
package/build/cjs/index.js
CHANGED
|
@@ -2074,7 +2074,7 @@ const FeedbackMessage = (_a) => {
|
|
|
2074
2074
|
}), /* @__PURE__ */ React__default["default"].createElement("div", {
|
|
2075
2075
|
className: styles__default$5["default"]["sapphire-feedback-message__content"]
|
|
2076
2076
|
}, typeof heading === "string" ? /* @__PURE__ */ React__default["default"].createElement(sapphireReact.Heading, {
|
|
2077
|
-
level:
|
|
2077
|
+
level: 6
|
|
2078
2078
|
}, heading) : heading, /* @__PURE__ */ React__default["default"].createElement("section", {
|
|
2079
2079
|
className: styles__default$5["default"]["sapphire-feedback-message__body"]
|
|
2080
2080
|
}, body)), actions);
|
|
@@ -2943,7 +2943,13 @@ var __objRest$6 = (source, exclude) => {
|
|
|
2943
2943
|
return target;
|
|
2944
2944
|
};
|
|
2945
2945
|
const HiddenFileInput = React__default["default"].forwardRef(function InputWrapper(props, ref) {
|
|
2946
|
+
const { onChange } = props;
|
|
2947
|
+
const onFileInputChange = (inputElement) => {
|
|
2948
|
+
onChange == null ? void 0 : onChange(inputElement);
|
|
2949
|
+
inputElement.target.value = "";
|
|
2950
|
+
};
|
|
2946
2951
|
return /* @__PURE__ */ React__default["default"].createElement("input", __spreadProps$7(__spreadValues$8({}, props), {
|
|
2952
|
+
onChange: onFileInputChange,
|
|
2947
2953
|
ref,
|
|
2948
2954
|
type: "file",
|
|
2949
2955
|
style: { display: "none" }
|
|
@@ -3197,20 +3203,22 @@ const AlertDialog = React__default["default"].forwardRef(function AlertDialog2(p
|
|
|
3197
3203
|
role: "alertdialog",
|
|
3198
3204
|
type: "active",
|
|
3199
3205
|
size: "extra-small",
|
|
3200
|
-
header:
|
|
3206
|
+
header: null,
|
|
3207
|
+
footer: null,
|
|
3201
3208
|
content: /* @__PURE__ */ React__default["default"].createElement(sapphireReact.Dialog.Content, null, /* @__PURE__ */ React__default["default"].createElement(FeedbackMessage, {
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
}),
|
|
3209
|
+
marginTop: sapphireReact.tokens.size.spacing60,
|
|
3210
|
+
heading: /* @__PURE__ */ React__default["default"].createElement(sapphireReact.DialogTitle, null, (titleProps) => /* @__PURE__ */ React__default["default"].createElement(sapphireReact.Heading, __spreadValues$6({
|
|
3211
|
+
level: 6
|
|
3212
|
+
}, titleProps), heading)),
|
|
3206
3213
|
variant,
|
|
3207
3214
|
icon,
|
|
3208
|
-
body
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3215
|
+
body,
|
|
3216
|
+
actions: /* @__PURE__ */ React__default["default"].createElement(sapphireReact.ButtonGroup, {
|
|
3217
|
+
width: "100%",
|
|
3218
|
+
stretch: "autoVertical",
|
|
3219
|
+
orientation: actionsOrientation
|
|
3220
|
+
}, actions)
|
|
3221
|
+
}))
|
|
3214
3222
|
}, rest));
|
|
3215
3223
|
});
|
|
3216
3224
|
|