sellmate-design-system-react 2.1.1 → 2.1.2
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/SConfirmModal/SConfirmModal.cjs +9 -5
- package/dist/components/SConfirmModal/SConfirmModal.cjs.map +1 -1
- package/dist/components/SConfirmModal/SConfirmModal.d.ts +2 -2
- package/dist/components/SConfirmModal/SConfirmModal.js +9 -5
- package/dist/components/SConfirmModal/SConfirmModal.js.map +1 -1
- package/dist/components/SModal/SModal.cjs +9 -5
- package/dist/components/SModal/SModal.cjs.map +1 -1
- package/dist/components/SModal/SModal.js +9 -5
- package/dist/components/SModal/SModal.js.map +1 -1
- package/dist/index.cjs +9 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4873,7 +4873,8 @@ function SConfirmModal({
|
|
|
4873
4873
|
const mainStyle = MAIN_BUTTON_STYLE[mainButtonName ?? DEFAULT_MAIN_BUTTON[type]];
|
|
4874
4874
|
const tagNode = tagSlot ?? (tagLabel ? /* @__PURE__ */ jsx(STag, { shape: tagShape, size: tagSize, color: tagColor, label: tagLabel }) : null);
|
|
4875
4875
|
const optionNode = optionSlot ?? (slotLabel ? /* @__PURE__ */ jsx("span", { children: slotLabel }) : null);
|
|
4876
|
-
const
|
|
4876
|
+
const hasContentBox = tagNode != null || optionNode != null;
|
|
4877
|
+
const hasBody = topMessage.length > 0 || bottomMessage.length > 0 || hasContentBox;
|
|
4877
4878
|
return /* @__PURE__ */ jsx(
|
|
4878
4879
|
SModalContainer,
|
|
4879
4880
|
{
|
|
@@ -4908,8 +4909,12 @@ function SConfirmModal({
|
|
|
4908
4909
|
},
|
|
4909
4910
|
i
|
|
4910
4911
|
)) }),
|
|
4911
|
-
|
|
4912
|
-
|
|
4912
|
+
hasContentBox && // content-box: 흰 박스 + 1px 테두리 + 패딩 + 14/700 (원본 sd-confirm-modal__content-box)
|
|
4913
|
+
// tag 왼쪽, slotLabel/optionSlot 이 그 오른쪽에 gap 8 로 나란히 놓인다
|
|
4914
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-center gap-[8px] rounded-[8px] border border-solid border-[color:var(--color-grey-30)] bg-white px-[16px] py-[12px] text-[14px] font-bold leading-[22px] w-full", children: [
|
|
4915
|
+
tagNode,
|
|
4916
|
+
optionNode
|
|
4917
|
+
] }),
|
|
4913
4918
|
bottomMessage.length > 0 && /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-[2px]", children: bottomMessage.map((m, i) => /* @__PURE__ */ jsx(
|
|
4914
4919
|
"p",
|
|
4915
4920
|
{
|
|
@@ -4917,8 +4922,7 @@ function SConfirmModal({
|
|
|
4917
4922
|
dangerouslySetInnerHTML: { __html: sanitizeInlineHtml(m) }
|
|
4918
4923
|
},
|
|
4919
4924
|
i
|
|
4920
|
-
)) })
|
|
4921
|
-
optionNode != null && optionNode
|
|
4925
|
+
)) })
|
|
4922
4926
|
] })
|
|
4923
4927
|
] }),
|
|
4924
4928
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-shrink-0 gap-[8px]", children: [
|