sellmate-design-system-react 3.4.0 → 3.5.0

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.
@@ -36,7 +36,7 @@ SModal.confirm({
36
36
  .onCancel(() => {});
37
37
  ```
38
38
 
39
- **옵션 (`SConfirmOptions`)** — 선언형 `SConfirmModalProps` 에서 제어 흐름 props(`open`/`onOpenChange`/`onOk`/`onCancel`/`onClose`)를 제외한 전부. 주요 키: `type`, `modalTitle`, `topMessage`/`bottomMessage`, `mainButtonLabel`/`mainButtonName`, `subButtonLabel`, `tagSlot`/`optionSlot`, `persistent`.
39
+ **옵션 (`SConfirmOptions`)** — 선언형 `SConfirmModalProps` 에서 제어 흐름 props(`open`/`onOpenChange`/`onOk`/`onCancel`/`onClose`)를 제외한 전부. 주요 키: `type`, `modalTitle`, `topMessage`/`bottomMessage`, `mainButtonLabel`/`mainButtonName`, `subButtonLabel`, `tagSlot`/`optionSlot`/`contentSlot`, `persistent`.
40
40
 
41
41
  ---
42
42
 
@@ -3452,6 +3452,7 @@ function SConfirmModal({
3452
3452
  slotLabel,
3453
3453
  tagSlot,
3454
3454
  optionSlot,
3455
+ contentSlot,
3455
3456
  mainButtonLabel = "\uD655\uC778",
3456
3457
  mainButtonName,
3457
3458
  subButtonLabel,
@@ -3464,7 +3465,7 @@ function SConfirmModal({
3464
3465
  const tagNode = tagSlot ?? (tagLabel ? /* @__PURE__ */ jsxRuntime.jsx(STag, { shape: tagShape, size: tagSize, color: tagColor, label: tagLabel }) : null);
3465
3466
  const optionNode = optionSlot ?? (slotLabel ? /* @__PURE__ */ jsxRuntime.jsx("span", { children: slotLabel }) : null);
3466
3467
  const hasContentBox = tagNode != null || optionNode != null;
3467
- const hasBody = topMessage.length > 0 || bottomMessage.length > 0 || hasContentBox;
3468
+ const hasBody = topMessage.length > 0 || bottomMessage.length > 0 || hasContentBox || contentSlot != null;
3468
3469
  return /* @__PURE__ */ jsxRuntime.jsx(
3469
3470
  SModalContainer,
3470
3471
  {
@@ -3505,6 +3506,7 @@ function SConfirmModal({
3505
3506
  tagNode,
3506
3507
  optionNode
3507
3508
  ] }),
3509
+ contentSlot != null && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full", children: contentSlot }),
3508
3510
  bottomMessage.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-[2px]", children: bottomMessage.map((m, i) => /* @__PURE__ */ jsxRuntime.jsx(
3509
3511
  "p",
3510
3512
  {