sellmate-design-system-react 9.0.0-beta.69 → 9.0.0-beta.70
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/AGENTS.md +3 -1
- package/dist/components/SActionModal/README.md +1 -0
- package/dist/components/SActionModal/SActionModal.d.ts +9 -1
- package/dist/index.cjs +16 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +16 -3
- package/dist/index.js.map +1 -1
- package/dist/llms-full.txt +4 -1
- package/dist/llms.txt +3 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10197,7 +10197,7 @@ function SModalContainer({
|
|
|
10197
10197
|
"div",
|
|
10198
10198
|
{
|
|
10199
10199
|
className: cn(
|
|
10200
|
-
"relative flex max-h-[calc(100dvh-48px)] max-w-[calc(100dvw-48px)] flex-col overflow-hidden rounded-[var(--cmp-modal-radius)] bg-[var(--cmp-modal-bg)] shadow-normal-md",
|
|
10200
|
+
"relative isolate flex max-h-[calc(100dvh-48px)] max-w-[calc(100dvw-48px)] flex-col overflow-hidden rounded-[var(--cmp-modal-radius)] bg-[var(--cmp-modal-bg)] shadow-normal-md",
|
|
10201
10201
|
shaking && "animate-modal-shake",
|
|
10202
10202
|
className
|
|
10203
10203
|
),
|
|
@@ -10448,10 +10448,16 @@ function SActionModal({
|
|
|
10448
10448
|
description,
|
|
10449
10449
|
button,
|
|
10450
10450
|
footerLeft,
|
|
10451
|
+
showClose = true,
|
|
10451
10452
|
width,
|
|
10452
10453
|
height,
|
|
10453
10454
|
children
|
|
10454
10455
|
}) {
|
|
10456
|
+
if (!showClose && !button && !footerLeft && typeof console !== "undefined") {
|
|
10457
|
+
console.warn(
|
|
10458
|
+
"[SActionModal] showClose={false} \uC778\uB370 button\xB7footerLeft \uAC00 \uBAA8\uB450 \uC5C6\uC2B5\uB2C8\uB2E4. \uC0AC\uC6A9\uC790\uAC00 \uBAA8\uB2EC\uC744 \uB2EB\uC744 \uBC29\uBC95\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."
|
|
10459
|
+
);
|
|
10460
|
+
}
|
|
10455
10461
|
return /* @__PURE__ */ jsx(
|
|
10456
10462
|
SModalContainer,
|
|
10457
10463
|
{
|
|
@@ -10460,12 +10466,19 @@ function SActionModal({
|
|
|
10460
10466
|
onClose,
|
|
10461
10467
|
persistent,
|
|
10462
10468
|
ariaTitle: modalTitle,
|
|
10463
|
-
showClose
|
|
10469
|
+
showClose,
|
|
10464
10470
|
width,
|
|
10465
10471
|
height,
|
|
10466
10472
|
className: "w-fit min-w-[min(480px,calc(100dvw-48px))] min-h-[min(320px,calc(100dvh-48px))]",
|
|
10467
10473
|
children: /* @__PURE__ */ jsxs("div", { className: "flex min-h-0 flex-auto flex-col", children: [
|
|
10468
|
-
/* @__PURE__ */ jsx(
|
|
10474
|
+
/* @__PURE__ */ jsx(
|
|
10475
|
+
SOverlayHeader,
|
|
10476
|
+
{
|
|
10477
|
+
title: modalTitle,
|
|
10478
|
+
description,
|
|
10479
|
+
reserveCloseSpace: showClose
|
|
10480
|
+
}
|
|
10481
|
+
),
|
|
10469
10482
|
/* @__PURE__ */ jsx("div", { className: "min-h-0 flex-1 overflow-auto px-[var(--cmp-modal-action-body-paddingX)] pb-[var(--cmp-modal-action-body-paddingBottom)]", children }),
|
|
10470
10483
|
(button || footerLeft) && /* @__PURE__ */ jsx(SFooter, { bg: "grey", left: footerLeft, button })
|
|
10471
10484
|
] })
|