react-better-html 1.1.170 → 1.1.171
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/index.d.mts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +15 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -602,6 +602,11 @@ type FormProps = {
|
|
|
602
602
|
/** @default false */
|
|
603
603
|
submitButtonIsDisabled?: boolean;
|
|
604
604
|
cancelButtonText?: string;
|
|
605
|
+
cancelButtonLoaderName?: LoaderName | AnyOtherString;
|
|
606
|
+
cancelButtonIsLoading?: boolean;
|
|
607
|
+
cancelButtonId?: string;
|
|
608
|
+
/** @default false */
|
|
609
|
+
cancelButtonIsDisabled?: boolean;
|
|
605
610
|
/** @default "right" */
|
|
606
611
|
actionButtonsLocation?: "left" | "center" | "right";
|
|
607
612
|
gap?: React.CSSProperties["gap"];
|
package/dist/index.d.ts
CHANGED
|
@@ -602,6 +602,11 @@ type FormProps = {
|
|
|
602
602
|
/** @default false */
|
|
603
603
|
submitButtonIsDisabled?: boolean;
|
|
604
604
|
cancelButtonText?: string;
|
|
605
|
+
cancelButtonLoaderName?: LoaderName | AnyOtherString;
|
|
606
|
+
cancelButtonIsLoading?: boolean;
|
|
607
|
+
cancelButtonId?: string;
|
|
608
|
+
/** @default false */
|
|
609
|
+
cancelButtonIsDisabled?: boolean;
|
|
605
610
|
/** @default "right" */
|
|
606
611
|
actionButtonsLocation?: "left" | "center" | "right";
|
|
607
612
|
gap?: React.CSSProperties["gap"];
|
package/dist/index.js
CHANGED
|
@@ -7534,6 +7534,10 @@ var FormComponent = (0, import_react22.forwardRef)(function Form({
|
|
|
7534
7534
|
submitButtonId,
|
|
7535
7535
|
submitButtonIsDisabled,
|
|
7536
7536
|
cancelButtonText,
|
|
7537
|
+
cancelButtonLoaderName,
|
|
7538
|
+
cancelButtonIsLoading,
|
|
7539
|
+
cancelButtonId,
|
|
7540
|
+
cancelButtonIsDisabled,
|
|
7537
7541
|
actionButtonsLocation = "right",
|
|
7538
7542
|
gap,
|
|
7539
7543
|
isDestructive,
|
|
@@ -7567,7 +7571,17 @@ var FormComponent = (0, import_react22.forwardRef)(function Form({
|
|
|
7567
7571
|
marginTop: theme2.styles.space,
|
|
7568
7572
|
children: [
|
|
7569
7573
|
renderActionButtons,
|
|
7570
|
-
onClickCancel && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
7574
|
+
onClickCancel && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
7575
|
+
Button_default.secondary,
|
|
7576
|
+
{
|
|
7577
|
+
text: cancelButtonText ?? "Cancel",
|
|
7578
|
+
isLoading: cancelButtonIsLoading,
|
|
7579
|
+
loaderName: cancelButtonLoaderName,
|
|
7580
|
+
disabled: cancelButtonIsDisabled,
|
|
7581
|
+
id: cancelButtonId,
|
|
7582
|
+
onClick: onClickCancel
|
|
7583
|
+
}
|
|
7584
|
+
),
|
|
7571
7585
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
7572
7586
|
SubmitButtonTag,
|
|
7573
7587
|
{
|