@scripso-homepad/ui 0.4.27 → 0.4.28
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/web/index.cjs +14 -7
- package/dist/web/index.cjs.map +1 -1
- package/dist/web/index.d.cts +3 -1
- package/dist/web/index.d.ts +3 -1
- package/dist/web/index.js +14 -7
- package/dist/web/index.js.map +1 -1
- package/package.json +1 -1
- package/src/web/components/ConfirmModal.tsx +5 -2
- package/src/web/components/Modal.tsx +11 -5
package/dist/web/index.cjs
CHANGED
|
@@ -31129,6 +31129,8 @@ function Modal({
|
|
|
31129
31129
|
subtitle,
|
|
31130
31130
|
icon,
|
|
31131
31131
|
iconContainerClassName,
|
|
31132
|
+
titleClassName,
|
|
31133
|
+
subtitleClassName,
|
|
31132
31134
|
children,
|
|
31133
31135
|
cancelText,
|
|
31134
31136
|
confirmText,
|
|
@@ -31165,9 +31167,8 @@ function Modal({
|
|
|
31165
31167
|
return null;
|
|
31166
31168
|
}
|
|
31167
31169
|
const sharedButtonClassName = cn(
|
|
31168
|
-
"btn h-13 w-full justify-center!",
|
|
31169
|
-
|
|
31170
|
-
footerLayout !== "split" && buttonClassName
|
|
31170
|
+
"btn h-13 w-full! min-w-0! justify-center!",
|
|
31171
|
+
buttonClassName
|
|
31171
31172
|
);
|
|
31172
31173
|
const modal = /* @__PURE__ */ jsxRuntime.jsx(
|
|
31173
31174
|
"div",
|
|
@@ -31210,7 +31211,7 @@ function Modal({
|
|
|
31210
31211
|
"h2",
|
|
31211
31212
|
{
|
|
31212
31213
|
id: "homepad-modal-title",
|
|
31213
|
-
className: "typography-title-sm tracking-normal text-black",
|
|
31214
|
+
className: cn("typography-title-sm tracking-normal text-black", titleClassName),
|
|
31214
31215
|
children: title
|
|
31215
31216
|
}
|
|
31216
31217
|
),
|
|
@@ -31218,7 +31219,10 @@ function Modal({
|
|
|
31218
31219
|
"p",
|
|
31219
31220
|
{
|
|
31220
31221
|
id: "homepad-modal-subtitle",
|
|
31221
|
-
className:
|
|
31222
|
+
className: cn(
|
|
31223
|
+
"typography-caption tracking-normal text-storm-gray-400",
|
|
31224
|
+
subtitleClassName
|
|
31225
|
+
),
|
|
31222
31226
|
children: subtitle
|
|
31223
31227
|
}
|
|
31224
31228
|
) : null
|
|
@@ -31713,7 +31717,10 @@ function ConfirmModal({
|
|
|
31713
31717
|
if (!open) {
|
|
31714
31718
|
return null;
|
|
31715
31719
|
}
|
|
31716
|
-
const sharedButtonClassName = cn(
|
|
31720
|
+
const sharedButtonClassName = cn(
|
|
31721
|
+
"btn h-10! w-full! min-w-0! justify-center!",
|
|
31722
|
+
buttonClassName
|
|
31723
|
+
);
|
|
31717
31724
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
31718
31725
|
"div",
|
|
31719
31726
|
{
|
|
@@ -31754,7 +31761,7 @@ function ConfirmModal({
|
|
|
31754
31761
|
}
|
|
31755
31762
|
)
|
|
31756
31763
|
] }),
|
|
31757
|
-
/* @__PURE__ */ jsxRuntime.jsxs("footer", { className: "
|
|
31764
|
+
/* @__PURE__ */ jsxRuntime.jsxs("footer", { className: "grid w-full grid-cols-2 gap-4", children: [
|
|
31758
31765
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
31759
31766
|
Button,
|
|
31760
31767
|
{
|