@tensor_1/react 2.49.0 → 2.49.1
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/components/Dialogs.js +5 -5
- package/dist/index.cjs +5 -5
- package/package.json +1 -1
|
@@ -89,9 +89,9 @@ const ConfirmDialog = forwardRef(function ConfirmDialog2({
|
|
|
89
89
|
role: "alertdialog",
|
|
90
90
|
"aria-describedby": hasBody ? bodyId : void 0,
|
|
91
91
|
footer: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
92
|
-
tertiaryLabel != null && onTertiary && /* @__PURE__ */ jsx(Button, { type: "button", className: "uix-confirm__tertiary", onClick: () => void onTertiary(), disabled: pending, children: tertiaryLabel }),
|
|
93
|
-
/* @__PURE__ */ jsx(Button, { ref: cancelRef, type: "button", onClick: onCancel, disabled: pending, children: cancelLabel }),
|
|
94
|
-
/* @__PURE__ */ jsx(Button, { ref: confirmRef, type: "button", variant: destructive ? "danger" : "primary", loading: pending, ...confirm, children: confirmLabel })
|
|
92
|
+
tertiaryLabel != null && onTertiary && /* @__PURE__ */ jsx(Button, { type: "button", wrap: true, className: "uix-confirm__tertiary", onClick: () => void onTertiary(), disabled: pending, children: tertiaryLabel }),
|
|
93
|
+
/* @__PURE__ */ jsx(Button, { ref: cancelRef, type: "button", wrap: true, onClick: onCancel, disabled: pending, children: cancelLabel }),
|
|
94
|
+
/* @__PURE__ */ jsx(Button, { ref: confirmRef, type: "button", wrap: true, variant: destructive ? "danger" : "primary", loading: pending, ...confirm, children: confirmLabel })
|
|
95
95
|
] }),
|
|
96
96
|
children: /* @__PURE__ */ jsxs("div", { className: "uix-confirm", children: [
|
|
97
97
|
hasBody && /* @__PURE__ */ jsxs("div", { id: bodyId, className: "uix-confirm__body", children: [
|
|
@@ -360,8 +360,8 @@ function PromptDialog({
|
|
|
360
360
|
) : /* @__PURE__ */ jsx(Input, { ...field, onChange: (event) => setValue(event.currentTarget.value) }),
|
|
361
361
|
error != null && /* @__PURE__ */ jsx("div", { id: errorId, className: "uix-field__error", role: "alert", children: error }),
|
|
362
362
|
/* @__PURE__ */ jsxs("div", { className: "uix-dialog__footer uix-prompt__actions", children: [
|
|
363
|
-
/* @__PURE__ */ jsx(Button, { type: "button", onClick: onCancel, disabled: pending, children: cancelLabel }),
|
|
364
|
-
/* @__PURE__ */ jsx(Button, { type: "submit", variant: destructive ? "danger" : "primary", loading: pending, children: submitLabel })
|
|
363
|
+
/* @__PURE__ */ jsx(Button, { type: "button", wrap: true, onClick: onCancel, disabled: pending, children: cancelLabel }),
|
|
364
|
+
/* @__PURE__ */ jsx(Button, { type: "submit", wrap: true, variant: destructive ? "danger" : "primary", loading: pending, children: submitLabel })
|
|
365
365
|
] })
|
|
366
366
|
] })
|
|
367
367
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -6678,9 +6678,9 @@ var ConfirmDialog = (0, import_react42.forwardRef)(function ConfirmDialog2({
|
|
|
6678
6678
|
role: "alertdialog",
|
|
6679
6679
|
"aria-describedby": hasBody ? bodyId : void 0,
|
|
6680
6680
|
footer: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_jsx_runtime33.Fragment, { children: [
|
|
6681
|
-
tertiaryLabel != null && onTertiary && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Button, { type: "button", className: "uix-confirm__tertiary", onClick: () => void onTertiary(), disabled: pending, children: tertiaryLabel }),
|
|
6682
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Button, { ref: cancelRef, type: "button", onClick: onCancel, disabled: pending, children: cancelLabel }),
|
|
6683
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Button, { ref: confirmRef, type: "button", variant: destructive ? "danger" : "primary", loading: pending, ...confirm, children: confirmLabel })
|
|
6681
|
+
tertiaryLabel != null && onTertiary && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Button, { type: "button", wrap: true, className: "uix-confirm__tertiary", onClick: () => void onTertiary(), disabled: pending, children: tertiaryLabel }),
|
|
6682
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Button, { ref: cancelRef, type: "button", wrap: true, onClick: onCancel, disabled: pending, children: cancelLabel }),
|
|
6683
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Button, { ref: confirmRef, type: "button", wrap: true, variant: destructive ? "danger" : "primary", loading: pending, ...confirm, children: confirmLabel })
|
|
6684
6684
|
] }),
|
|
6685
6685
|
children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "uix-confirm", children: [
|
|
6686
6686
|
hasBody && /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { id: bodyId, className: "uix-confirm__body", children: [
|
|
@@ -6949,8 +6949,8 @@ function PromptDialog({
|
|
|
6949
6949
|
) : /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Input, { ...field, onChange: (event) => setValue(event.currentTarget.value) }),
|
|
6950
6950
|
error != null && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { id: errorId, className: "uix-field__error", role: "alert", children: error }),
|
|
6951
6951
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "uix-dialog__footer uix-prompt__actions", children: [
|
|
6952
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Button, { type: "button", onClick: onCancel, disabled: pending, children: cancelLabel }),
|
|
6953
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Button, { type: "submit", variant: destructive ? "danger" : "primary", loading: pending, children: submitLabel })
|
|
6952
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Button, { type: "button", wrap: true, onClick: onCancel, disabled: pending, children: cancelLabel }),
|
|
6953
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Button, { type: "submit", wrap: true, variant: destructive ? "danger" : "primary", loading: pending, children: submitLabel })
|
|
6954
6954
|
] })
|
|
6955
6955
|
] })
|
|
6956
6956
|
}
|