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.cjs
CHANGED
|
@@ -4901,7 +4901,8 @@ function SConfirmModal({
|
|
|
4901
4901
|
const mainStyle = MAIN_BUTTON_STYLE[mainButtonName ?? DEFAULT_MAIN_BUTTON[type]];
|
|
4902
4902
|
const tagNode = tagSlot ?? (tagLabel ? /* @__PURE__ */ jsxRuntime.jsx(STag, { shape: tagShape, size: tagSize, color: tagColor, label: tagLabel }) : null);
|
|
4903
4903
|
const optionNode = optionSlot ?? (slotLabel ? /* @__PURE__ */ jsxRuntime.jsx("span", { children: slotLabel }) : null);
|
|
4904
|
-
const
|
|
4904
|
+
const hasContentBox = tagNode != null || optionNode != null;
|
|
4905
|
+
const hasBody = topMessage.length > 0 || bottomMessage.length > 0 || hasContentBox;
|
|
4905
4906
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4906
4907
|
SModalContainer,
|
|
4907
4908
|
{
|
|
@@ -4936,8 +4937,12 @@ function SConfirmModal({
|
|
|
4936
4937
|
},
|
|
4937
4938
|
i
|
|
4938
4939
|
)) }),
|
|
4939
|
-
|
|
4940
|
-
|
|
4940
|
+
hasContentBox && // content-box: 흰 박스 + 1px 테두리 + 패딩 + 14/700 (원본 sd-confirm-modal__content-box)
|
|
4941
|
+
// tag 왼쪽, slotLabel/optionSlot 이 그 오른쪽에 gap 8 로 나란히 놓인다
|
|
4942
|
+
/* @__PURE__ */ jsxRuntime.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: [
|
|
4943
|
+
tagNode,
|
|
4944
|
+
optionNode
|
|
4945
|
+
] }),
|
|
4941
4946
|
bottomMessage.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-[2px]", children: bottomMessage.map((m, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4942
4947
|
"p",
|
|
4943
4948
|
{
|
|
@@ -4945,8 +4950,7 @@ function SConfirmModal({
|
|
|
4945
4950
|
dangerouslySetInnerHTML: { __html: sanitizeInlineHtml(m) }
|
|
4946
4951
|
},
|
|
4947
4952
|
i
|
|
4948
|
-
)) })
|
|
4949
|
-
optionNode != null && optionNode
|
|
4953
|
+
)) })
|
|
4950
4954
|
] })
|
|
4951
4955
|
] }),
|
|
4952
4956
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-shrink-0 gap-[8px]", children: [
|