sellmate-design-system-react 2.1.0 → 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/SActionModal/SActionModal.cjs +8 -2
- package/dist/components/SActionModal/SActionModal.cjs.map +1 -1
- package/dist/components/SActionModal/SActionModal.d.ts +11 -2
- package/dist/components/SActionModal/SActionModal.js +8 -2
- package/dist/components/SActionModal/SActionModal.js.map +1 -1
- package/dist/components/SChipInput/SChipInput.cjs +9 -2
- package/dist/components/SChipInput/SChipInput.cjs.map +1 -1
- package/dist/components/SChipInput/SChipInput.js +9 -2
- package/dist/components/SChipInput/SChipInput.js.map +1 -1
- package/dist/components/SConfirmModal/SConfirmModal.cjs +101 -8
- package/dist/components/SConfirmModal/SConfirmModal.cjs.map +1 -1
- package/dist/components/SConfirmModal/SConfirmModal.d.ts +4 -3
- package/dist/components/SConfirmModal/SConfirmModal.js +101 -8
- package/dist/components/SConfirmModal/SConfirmModal.js.map +1 -1
- package/dist/components/SExpansionItem/SExpansionItem.cjs +11 -11
- package/dist/components/SExpansionItem/SExpansionItem.cjs.map +1 -1
- package/dist/components/SExpansionItem/SExpansionItem.js +11 -11
- package/dist/components/SExpansionItem/SExpansionItem.js.map +1 -1
- package/dist/components/SKeyValueTable/SKeyValueTable.cjs +20 -19
- package/dist/components/SKeyValueTable/SKeyValueTable.cjs.map +1 -1
- package/dist/components/SKeyValueTable/SKeyValueTable.d.ts +57 -4
- package/dist/components/SKeyValueTable/SKeyValueTable.js +20 -19
- package/dist/components/SKeyValueTable/SKeyValueTable.js.map +1 -1
- package/dist/components/SLoadingModal/SLoadingModal.cjs +8 -2
- package/dist/components/SLoadingModal/SLoadingModal.cjs.map +1 -1
- package/dist/components/SLoadingModal/SLoadingModal.js +8 -2
- package/dist/components/SLoadingModal/SLoadingModal.js.map +1 -1
- package/dist/components/SModal/SModal.cjs +101 -8
- package/dist/components/SModal/SModal.cjs.map +1 -1
- package/dist/components/SModal/SModal.js +101 -8
- package/dist/components/SModal/SModal.js.map +1 -1
- package/dist/components/SModalContainer/SModalContainer.cjs +8 -2
- package/dist/components/SModalContainer/SModalContainer.cjs.map +1 -1
- package/dist/components/SModalContainer/SModalContainer.js +8 -2
- package/dist/components/SModalContainer/SModalContainer.js.map +1 -1
- package/dist/components/SSelect/SSelect.cjs +20 -19
- package/dist/components/SSelect/SSelect.cjs.map +1 -1
- package/dist/components/SSelect/SSelect.js +20 -19
- package/dist/components/SSelect/SSelect.js.map +1 -1
- package/dist/components/SStepper/SStepper.cjs +1 -1
- package/dist/components/SStepper/SStepper.cjs.map +1 -1
- package/dist/components/SStepper/SStepper.js +1 -1
- package/dist/components/SStepper/SStepper.js.map +1 -1
- package/dist/components/STable/STable.cjs +20 -19
- package/dist/components/STable/STable.cjs.map +1 -1
- package/dist/components/STable/STable.js +20 -19
- package/dist/components/STable/STable.js.map +1 -1
- package/dist/components/STimePicker/STimePicker.cjs +1 -1
- package/dist/components/STimePicker/STimePicker.cjs.map +1 -1
- package/dist/components/STimePicker/STimePicker.js +1 -1
- package/dist/components/STimePicker/STimePicker.js.map +1 -1
- package/dist/components/STimeRangePicker/STimeRangePicker.cjs +1 -1
- package/dist/components/STimeRangePicker/STimeRangePicker.cjs.map +1 -1
- package/dist/components/STimeRangePicker/STimeRangePicker.js +1 -1
- package/dist/components/STimeRangePicker/STimeRangePicker.js.map +1 -1
- package/dist/index.cjs +75 -43
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +75 -43
- package/dist/index.js.map +1 -1
- package/dist/styles.css +303 -195
- package/dist/theme.css +229 -121
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2918,7 +2918,7 @@ var SExpansionItem = forwardRef(
|
|
|
2918
2918
|
{
|
|
2919
2919
|
ref,
|
|
2920
2920
|
className: cn(
|
|
2921
|
-
"group/expansion-item overflow-hidden bg-[var(--cmp-
|
|
2921
|
+
"group/expansion-item overflow-hidden bg-[var(--cmp-listExpansionItem-title-bg-default)]",
|
|
2922
2922
|
// TODO: expansionItem/bordered/radius 및 border intent 토큰 생성 후 고정값을 토큰으로 교체한다.
|
|
2923
2923
|
bordered && "rounded-[8px] border border-[#E1E1E1] hover:border-[#AAAAAA] [&:has(>button:hover)]:border-[#AAAAAA]",
|
|
2924
2924
|
bordered && isExpanded && "!border-[#93C4FF]",
|
|
@@ -2940,14 +2940,14 @@ var SExpansionItem = forwardRef(
|
|
|
2940
2940
|
onToggle?.(next, event);
|
|
2941
2941
|
},
|
|
2942
2942
|
className: cn(
|
|
2943
|
-
"flex w-full items-center justify-between border-0 text-left text-[14px] font-bold leading-[24px] text-[var(--cmp-
|
|
2944
|
-
isExpanded && "border-b border-(--cmp-
|
|
2945
|
-
!isExpanded && "hover:bg-(--cmp-
|
|
2946
|
-
dense ? "min-h-8 py-(--cmp-
|
|
2947
|
-
"gap-(--cmp-
|
|
2948
|
-
"pr-(--cmp-
|
|
2949
|
-
depth === 2 ? "pl-[calc(var(--cmp-
|
|
2950
|
-
isExpanded && "bg-(--cmp-
|
|
2943
|
+
"flex w-full items-center justify-between border-0 text-left text-[14px] font-bold leading-[24px] text-[var(--cmp-listExpansionItem-title-text-default)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-[var(--sys-color-border-accent)] disabled:cursor-not-allowed disabled:text-[var(--sys-color-disabled-text)] cursor-pointer",
|
|
2944
|
+
isExpanded && "border-b border-(--cmp-listExpansionItem-title-border)",
|
|
2945
|
+
!isExpanded && "hover:bg-(--cmp-listExpansionItem-title-bg-hover)",
|
|
2946
|
+
dense ? "min-h-8 py-(--cmp-listExpansionItem-title-paddingY-dense)" : "min-h-10 py-(--cmp-listExpansionItem-title-paddingY-normal)",
|
|
2947
|
+
"gap-(--cmp-listExpansionItem-title-gap)",
|
|
2948
|
+
"pr-(--cmp-listExpansionItem-title-paddingX)",
|
|
2949
|
+
depth === 2 ? "pl-[calc(var(--cmp-listExpansionItem-title-paddingX)+32px)]" : depth === 3 ? "pl-[calc(var(--cmp-listExpansionItem-title-paddingX)+64px)]" : "pl-(--cmp-listExpansionItem-title-paddingX)",
|
|
2950
|
+
isExpanded && "bg-(--cmp-listExpansionItem-title-bg-expanded) text-(--cmp-listExpansionItem-title-text-expanded)"
|
|
2951
2951
|
),
|
|
2952
2952
|
children: [
|
|
2953
2953
|
!leading && /* @__PURE__ */ jsx(
|
|
@@ -2972,7 +2972,7 @@ var SExpansionItem = forwardRef(
|
|
|
2972
2972
|
id,
|
|
2973
2973
|
"aria-hidden": !isExpanded,
|
|
2974
2974
|
className: cn(
|
|
2975
|
-
"grid overflow-hidden bg-[var(--cmp-
|
|
2975
|
+
"grid overflow-hidden bg-[var(--cmp-listExpansionItem-body-bg)] transition-[grid-template-rows] duration-200 ease-out motion-reduce:transition-none",
|
|
2976
2976
|
isExpanded ? "grid-rows-[1fr]" : "grid-rows-[0fr]"
|
|
2977
2977
|
),
|
|
2978
2978
|
children: /* @__PURE__ */ jsx(
|
|
@@ -2980,7 +2980,7 @@ var SExpansionItem = forwardRef(
|
|
|
2980
2980
|
{
|
|
2981
2981
|
className: cn(
|
|
2982
2982
|
"min-h-0 overflow-hidden",
|
|
2983
|
-
bodyPadding && isExpanded && "p-(--cmp-
|
|
2983
|
+
bodyPadding && isExpanded && "p-(--cmp-listExpansionItem-body-padding)"
|
|
2984
2984
|
),
|
|
2985
2985
|
children
|
|
2986
2986
|
}
|
|
@@ -4811,11 +4811,17 @@ function SModalContainer({
|
|
|
4811
4811
|
/* @__PURE__ */ jsx(InsideModalProvider, { value: true, children: /* @__PURE__ */ jsx(PortalContainerProvider, { value: portalContainer, children }) })
|
|
4812
4812
|
]
|
|
4813
4813
|
}
|
|
4814
|
+
),
|
|
4815
|
+
/* @__PURE__ */ jsx(
|
|
4816
|
+
"div",
|
|
4817
|
+
{
|
|
4818
|
+
ref: setPortalContainer,
|
|
4819
|
+
className: "pointer-events-auto fixed left-0 top-0 z-[1001]"
|
|
4820
|
+
}
|
|
4814
4821
|
)
|
|
4815
4822
|
]
|
|
4816
4823
|
}
|
|
4817
|
-
) })
|
|
4818
|
-
/* @__PURE__ */ jsx("div", { ref: setPortalContainer, className: "pointer-events-auto fixed left-0 top-0 z-[1001]" })
|
|
4824
|
+
) })
|
|
4819
4825
|
] }) });
|
|
4820
4826
|
}
|
|
4821
4827
|
var TYPE_ICON = {
|
|
@@ -4867,7 +4873,8 @@ function SConfirmModal({
|
|
|
4867
4873
|
const mainStyle = MAIN_BUTTON_STYLE[mainButtonName ?? DEFAULT_MAIN_BUTTON[type]];
|
|
4868
4874
|
const tagNode = tagSlot ?? (tagLabel ? /* @__PURE__ */ jsx(STag, { shape: tagShape, size: tagSize, color: tagColor, label: tagLabel }) : null);
|
|
4869
4875
|
const optionNode = optionSlot ?? (slotLabel ? /* @__PURE__ */ jsx("span", { children: slotLabel }) : null);
|
|
4870
|
-
const
|
|
4876
|
+
const hasContentBox = tagNode != null || optionNode != null;
|
|
4877
|
+
const hasBody = topMessage.length > 0 || bottomMessage.length > 0 || hasContentBox;
|
|
4871
4878
|
return /* @__PURE__ */ jsx(
|
|
4872
4879
|
SModalContainer,
|
|
4873
4880
|
{
|
|
@@ -4894,11 +4901,28 @@ function SConfirmModal({
|
|
|
4894
4901
|
)
|
|
4895
4902
|
] }),
|
|
4896
4903
|
hasBody && /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-[20px] text-center text-[12px] font-normal leading-[20px] text-[color:var(--cmp-modal-confirm-message-color)] w-full", children: [
|
|
4897
|
-
topMessage.length > 0 && /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-[2px]", children: topMessage.map((m, i) => /* @__PURE__ */ jsx(
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4904
|
+
topMessage.length > 0 && /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-[2px]", children: topMessage.map((m, i) => /* @__PURE__ */ jsx(
|
|
4905
|
+
"p",
|
|
4906
|
+
{
|
|
4907
|
+
className: "m-0",
|
|
4908
|
+
dangerouslySetInnerHTML: { __html: sanitizeInlineHtml(m) }
|
|
4909
|
+
},
|
|
4910
|
+
i
|
|
4911
|
+
)) }),
|
|
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
|
+
] }),
|
|
4918
|
+
bottomMessage.length > 0 && /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-[2px]", children: bottomMessage.map((m, i) => /* @__PURE__ */ jsx(
|
|
4919
|
+
"p",
|
|
4920
|
+
{
|
|
4921
|
+
className: "m-0",
|
|
4922
|
+
dangerouslySetInnerHTML: { __html: sanitizeInlineHtml(m) }
|
|
4923
|
+
},
|
|
4924
|
+
i
|
|
4925
|
+
)) })
|
|
4902
4926
|
] })
|
|
4903
4927
|
] }),
|
|
4904
4928
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-shrink-0 gap-[8px]", children: [
|
|
@@ -6241,7 +6265,7 @@ var STEPPER_LAYOUT = {
|
|
|
6241
6265
|
itemGap: V2("item-gap"),
|
|
6242
6266
|
dashWidth: V2("dash-width"),
|
|
6243
6267
|
sequenceRadius: V2("sequence-radius"),
|
|
6244
|
-
sequenceBorderWidth: V2("sequence-border-
|
|
6268
|
+
sequenceBorderWidth: V2("sequence-border-width"),
|
|
6245
6269
|
sequenceIcon: V2("sequence-icon")
|
|
6246
6270
|
};
|
|
6247
6271
|
var STEPPER_COLORS = {
|
|
@@ -6765,7 +6789,7 @@ var SSelect = forwardRef(function SSelect2({
|
|
|
6765
6789
|
);
|
|
6766
6790
|
onValueChange(multi ? mapped : mapped[0] ?? (emitValue ? "" : null));
|
|
6767
6791
|
};
|
|
6768
|
-
const commitOpen = (next) => {
|
|
6792
|
+
const commitOpen = (next, valueForRules) => {
|
|
6769
6793
|
setOpen(next);
|
|
6770
6794
|
onOpenChange?.(next);
|
|
6771
6795
|
if (next) {
|
|
@@ -6774,7 +6798,8 @@ var SSelect = forwardRef(function SSelect2({
|
|
|
6774
6798
|
setPendingOpen(false);
|
|
6775
6799
|
setSearch("");
|
|
6776
6800
|
if (rules && rules.length > 0) {
|
|
6777
|
-
|
|
6801
|
+
const current = valueForRules ?? selectedRef.current;
|
|
6802
|
+
setRuleError(runRules(multi ? current : current[0] ?? "", rules));
|
|
6778
6803
|
}
|
|
6779
6804
|
}
|
|
6780
6805
|
};
|
|
@@ -6858,7 +6883,7 @@ var SSelect = forwardRef(function SSelect2({
|
|
|
6858
6883
|
return;
|
|
6859
6884
|
}
|
|
6860
6885
|
emit2([nextValue]);
|
|
6861
|
-
commitOpen(false);
|
|
6886
|
+
commitOpen(false, [nextValue]);
|
|
6862
6887
|
};
|
|
6863
6888
|
const handleSelectAll = () => {
|
|
6864
6889
|
emit2(allSelected ? [] : allValues);
|
|
@@ -7098,7 +7123,7 @@ var SSelect = forwardRef(function SSelect2({
|
|
|
7098
7123
|
if (index >= 0) setFocusedIndex(index);
|
|
7099
7124
|
}
|
|
7100
7125
|
}
|
|
7101
|
-
) : /* @__PURE__ */ jsx("div", { className: "px-[12px] py-[12px] text-left text-[12px] leading-[20px] text-[color:var(--cmp-
|
|
7126
|
+
) : /* @__PURE__ */ jsx("div", { className: "px-[12px] py-[12px] text-left text-[12px] leading-[20px] text-[color:var(--cmp-listBoxItem-content-disabled)]", children: "\uD45C\uC2DC\uD560 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4." })
|
|
7102
7127
|
]
|
|
7103
7128
|
}
|
|
7104
7129
|
)
|
|
@@ -7126,10 +7151,10 @@ function ItemList({
|
|
|
7126
7151
|
const selectedSet = useMemo(() => new Set(selected), [selected]);
|
|
7127
7152
|
const itemBase = cn(
|
|
7128
7153
|
"group/select-item flex w-full cursor-pointer select-none items-center gap-[8px] border-none bg-transparent text-left text-[12px] leading-[20px] outline-none",
|
|
7129
|
-
"text-[color:var(--cmp-
|
|
7130
|
-
"disabled:cursor-not-allowed disabled:text-[color:var(--cmp-
|
|
7154
|
+
"text-[color:var(--cmp-listBoxItem-content-default)]",
|
|
7155
|
+
"disabled:cursor-not-allowed disabled:text-[color:var(--cmp-listBoxItem-content-disabled)]"
|
|
7131
7156
|
);
|
|
7132
|
-
const activeClass = "hover:bg-[var(--cmp-
|
|
7157
|
+
const activeClass = "hover:bg-[var(--cmp-listBoxItem-bg-hover)] hover:text-[color:var(--cmp-listBoxItem-content-hover)] focus-visible:bg-[var(--cmp-listBoxItem-bg-hover)] focus-visible:text-[color:var(--cmp-listBoxItem-content-hover)]";
|
|
7133
7158
|
return /* @__PURE__ */ jsxs("div", { role: "listbox", "aria-multiselectable": multi || void 0, children: [
|
|
7134
7159
|
showSelectAll && /* @__PURE__ */ jsxs(
|
|
7135
7160
|
"button",
|
|
@@ -7139,7 +7164,7 @@ function ItemList({
|
|
|
7139
7164
|
"data-select-active": focusedValue === "__select_all__" ? "true" : void 0,
|
|
7140
7165
|
className: cn(
|
|
7141
7166
|
itemBase,
|
|
7142
|
-
focusedValue === "__select_all__" && "bg-[var(--cmp-
|
|
7167
|
+
focusedValue === "__select_all__" && "bg-[var(--cmp-listBoxItem-bg-hover)] text-[color:var(--cmp-listBoxItem-content-hover)]"
|
|
7143
7168
|
),
|
|
7144
7169
|
style: { paddingTop: 4, paddingBottom: 4, paddingRight: 12, paddingLeft: 12 },
|
|
7145
7170
|
onMouseEnter: () => onHoverValue("__select_all__"),
|
|
@@ -7156,7 +7181,7 @@ function ItemList({
|
|
|
7156
7181
|
const rowKey = `${o.value}-${idx}`;
|
|
7157
7182
|
if (o.isGroup) {
|
|
7158
7183
|
const isDepth1 = o.depth === 1;
|
|
7159
|
-
const groupTone = isDepth1 ? "border-t border-solid border-[color:var(--cmp-
|
|
7184
|
+
const groupTone = isDepth1 ? "border-t border-solid border-[color:var(--cmp-listBoxItem-depth1-border-color)] bg-[var(--cmp-listBoxItem-depth1-bg-default)] font-bold" : "bg-[var(--cmp-listBoxItem-depth2-middle-bg)] font-medium";
|
|
7160
7185
|
if (multi) {
|
|
7161
7186
|
const leafValues = groupLeafValues.get(idx) ?? [];
|
|
7162
7187
|
const total = leafValues.length;
|
|
@@ -7174,12 +7199,12 @@ function ItemList({
|
|
|
7174
7199
|
"data-select-focused": groupFocused ? "true" : void 0,
|
|
7175
7200
|
"data-select-active": groupFocused ? "true" : void 0,
|
|
7176
7201
|
className: cn(
|
|
7177
|
-
"flex w-full select-none items-center gap-[8px] border-none py-[4px] pr-[12px] text-left text-[12px] leading-[20px] text-[color:var(--cmp-
|
|
7202
|
+
"flex w-full select-none items-center gap-[8px] border-none py-[4px] pr-[12px] text-left text-[12px] leading-[20px] text-[color:var(--cmp-listBoxItem-content-default)]",
|
|
7178
7203
|
groupTone,
|
|
7179
|
-
groupDisabled ? "cursor-not-allowed text-[color:var(--cmp-
|
|
7180
|
-
groupDisabled && isDepth1 && "bg-[var(--cmp-
|
|
7204
|
+
groupDisabled ? "cursor-not-allowed text-[color:var(--cmp-listBoxItem-content-disabled)]" : "cursor-pointer",
|
|
7205
|
+
groupDisabled && isDepth1 && "bg-[var(--cmp-listBoxItem-depth1-bg-disabled)]",
|
|
7181
7206
|
// 포커스 하이라이트는 depth 배경보다 뒤에 둬 tailwind-merge 로 이기게 한다.
|
|
7182
|
-
groupFocused && !groupDisabled && "bg-[var(--cmp-
|
|
7207
|
+
groupFocused && !groupDisabled && "bg-[var(--cmp-listBoxItem-bg-hover)] text-[color:var(--cmp-listBoxItem-content-hover)]"
|
|
7183
7208
|
),
|
|
7184
7209
|
style: { paddingLeft: padLeft },
|
|
7185
7210
|
onMouseEnter: () => onHoverValue(`__group_${idx}__`),
|
|
@@ -7199,7 +7224,7 @@ function ItemList({
|
|
|
7199
7224
|
{
|
|
7200
7225
|
className: cn(
|
|
7201
7226
|
"shrink-0 font-medium",
|
|
7202
|
-
groupFocused ? "text-white" : "text-[color:var(--cmp-
|
|
7227
|
+
groupFocused ? "text-white" : "text-[color:var(--cmp-listBoxItem-content-disabled)]"
|
|
7203
7228
|
),
|
|
7204
7229
|
children: [
|
|
7205
7230
|
"(",
|
|
@@ -7219,12 +7244,12 @@ function ItemList({
|
|
|
7219
7244
|
"div",
|
|
7220
7245
|
{
|
|
7221
7246
|
className: cn(
|
|
7222
|
-
"select-none py-[4px] pr-[12px] text-[12px] leading-[20px] text-[color:var(--cmp-
|
|
7247
|
+
"select-none py-[4px] pr-[12px] text-[12px] leading-[20px] text-[color:var(--cmp-listBoxItem-content-default)]",
|
|
7223
7248
|
groupTone,
|
|
7224
7249
|
// 하위가 전부 비활성이면(select.config 에서 bubble-up) 어미 그룹도 비활성 처리:
|
|
7225
7250
|
// 텍스트는 회색(#888), depth1 그룹은 파란 배경 대신 회색(#EEE)으로 (depth2 는 #F6F6F6 유지)
|
|
7226
|
-
o.disabled && "cursor-not-allowed text-[color:var(--cmp-
|
|
7227
|
-
o.disabled && isDepth1 && "bg-[var(--cmp-
|
|
7251
|
+
o.disabled && "cursor-not-allowed text-[color:var(--cmp-listBoxItem-content-disabled)]",
|
|
7252
|
+
o.disabled && isDepth1 && "bg-[var(--cmp-listBoxItem-depth1-bg-disabled)]"
|
|
7228
7253
|
),
|
|
7229
7254
|
style: { paddingLeft: padLeft },
|
|
7230
7255
|
children: o.label
|
|
@@ -7244,8 +7269,8 @@ function ItemList({
|
|
|
7244
7269
|
"data-select-active": focusedValue === o.value ? "true" : void 0,
|
|
7245
7270
|
className: cn(
|
|
7246
7271
|
itemBase,
|
|
7247
|
-
isSelected && !multi && "font-bold text-[color:var(--cmp-
|
|
7248
|
-
focusedValue === o.value && "bg-[var(--cmp-
|
|
7272
|
+
isSelected && !multi && "font-bold text-[color:var(--cmp-listBoxItem-content-selected)]",
|
|
7273
|
+
focusedValue === o.value && "bg-[var(--cmp-listBoxItem-bg-hover)] text-[color:var(--cmp-listBoxItem-content-hover)]",
|
|
7249
7274
|
// 비활성 항목은 hover/focus 스타일 대상에서 제외한다.
|
|
7250
7275
|
// (:hover 는 disabled 버튼에도 매칭되므로 클래스 자체를 붙이지 않아야 한다)
|
|
7251
7276
|
!o.disabled && activeClass
|
|
@@ -10865,7 +10890,7 @@ var SChipInput = forwardRef(function SChipInput2({
|
|
|
10865
10890
|
"aria-selected": selected || active,
|
|
10866
10891
|
className: cn(
|
|
10867
10892
|
"s-chip-input__suggestion-item flex shrink-0 cursor-pointer items-center gap-8 overflow-hidden text-ellipsis whitespace-nowrap px-12 py-4 text-12 leading-20",
|
|
10868
|
-
selected ? "cursor-default overflow-visible font-bold text-(--cmp-
|
|
10893
|
+
selected ? "cursor-default overflow-visible font-bold text-(--cmp-listBoxItem-content-selected)" : active ? "bg-(--cmp-listBoxItem-bg-hover) font-medium text-(--cmp-listBoxItem-content-hover)" : "text-(--cmp-listBoxItem-content-default)"
|
|
10869
10894
|
),
|
|
10870
10895
|
onMouseDown: (e) => {
|
|
10871
10896
|
e.preventDefault();
|
|
@@ -10873,7 +10898,14 @@ var SChipInput = forwardRef(function SChipInput2({
|
|
|
10873
10898
|
},
|
|
10874
10899
|
children: [
|
|
10875
10900
|
/* @__PURE__ */ jsx("span", { className: "flex-1", children: item }),
|
|
10876
|
-
selected && /* @__PURE__ */ jsx(
|
|
10901
|
+
selected && /* @__PURE__ */ jsx(
|
|
10902
|
+
SIcon,
|
|
10903
|
+
{
|
|
10904
|
+
name: "check",
|
|
10905
|
+
size: 12,
|
|
10906
|
+
color: "var(--cmp-listBoxItem-content-selected)"
|
|
10907
|
+
}
|
|
10908
|
+
)
|
|
10877
10909
|
]
|
|
10878
10910
|
},
|
|
10879
10911
|
item
|
|
@@ -11163,7 +11195,7 @@ function TimeSelector({
|
|
|
11163
11195
|
setInputDraft({});
|
|
11164
11196
|
};
|
|
11165
11197
|
const inputStyle = {
|
|
11166
|
-
width: "var(--cmp-timepicker-selector-input-width)",
|
|
11198
|
+
width: "var(--cmp-timepicker-selector-time-input-width)",
|
|
11167
11199
|
height: "var(--cmp-textinput-sm-height)",
|
|
11168
11200
|
borderRadius: "var(--cmp-textinput-sm-radius)",
|
|
11169
11201
|
border: "var(--cmp-textinput-borderWidth) solid var(--cmp-textinput-border-default)",
|
|
@@ -11604,7 +11636,7 @@ function RangeTimeSelector({
|
|
|
11604
11636
|
setInputDraft({});
|
|
11605
11637
|
};
|
|
11606
11638
|
const inputStyle = {
|
|
11607
|
-
width: "var(--cmp-timepicker-selector-input-width)",
|
|
11639
|
+
width: "var(--cmp-timepicker-selector-time-input-width)",
|
|
11608
11640
|
height: "var(--cmp-textinput-sm-height)",
|
|
11609
11641
|
borderRadius: "var(--cmp-textinput-sm-radius)",
|
|
11610
11642
|
border: "var(--cmp-textinput-borderWidth) solid var(--cmp-textinput-border-default)",
|