sellmate-design-system-react 2.1.0 → 2.1.1
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 +93 -4
- package/dist/components/SConfirmModal/SConfirmModal.cjs.map +1 -1
- package/dist/components/SConfirmModal/SConfirmModal.d.ts +2 -1
- package/dist/components/SConfirmModal/SConfirmModal.js +93 -4
- 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 +93 -4
- package/dist/components/SModal/SModal.cjs.map +1 -1
- package/dist/components/SModal/SModal.js +93 -4
- 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 +67 -39
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +67 -39
- 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.cjs
CHANGED
|
@@ -2946,7 +2946,7 @@ var SExpansionItem = react.forwardRef(
|
|
|
2946
2946
|
{
|
|
2947
2947
|
ref,
|
|
2948
2948
|
className: cn(
|
|
2949
|
-
"group/expansion-item overflow-hidden bg-[var(--cmp-
|
|
2949
|
+
"group/expansion-item overflow-hidden bg-[var(--cmp-listExpansionItem-title-bg-default)]",
|
|
2950
2950
|
// TODO: expansionItem/bordered/radius 및 border intent 토큰 생성 후 고정값을 토큰으로 교체한다.
|
|
2951
2951
|
bordered && "rounded-[8px] border border-[#E1E1E1] hover:border-[#AAAAAA] [&:has(>button:hover)]:border-[#AAAAAA]",
|
|
2952
2952
|
bordered && isExpanded && "!border-[#93C4FF]",
|
|
@@ -2968,14 +2968,14 @@ var SExpansionItem = react.forwardRef(
|
|
|
2968
2968
|
onToggle?.(next, event);
|
|
2969
2969
|
},
|
|
2970
2970
|
className: cn(
|
|
2971
|
-
"flex w-full items-center justify-between border-0 text-left text-[14px] font-bold leading-[24px] text-[var(--cmp-
|
|
2972
|
-
isExpanded && "border-b border-(--cmp-
|
|
2973
|
-
!isExpanded && "hover:bg-(--cmp-
|
|
2974
|
-
dense ? "min-h-8 py-(--cmp-
|
|
2975
|
-
"gap-(--cmp-
|
|
2976
|
-
"pr-(--cmp-
|
|
2977
|
-
depth === 2 ? "pl-[calc(var(--cmp-
|
|
2978
|
-
isExpanded && "bg-(--cmp-
|
|
2971
|
+
"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",
|
|
2972
|
+
isExpanded && "border-b border-(--cmp-listExpansionItem-title-border)",
|
|
2973
|
+
!isExpanded && "hover:bg-(--cmp-listExpansionItem-title-bg-hover)",
|
|
2974
|
+
dense ? "min-h-8 py-(--cmp-listExpansionItem-title-paddingY-dense)" : "min-h-10 py-(--cmp-listExpansionItem-title-paddingY-normal)",
|
|
2975
|
+
"gap-(--cmp-listExpansionItem-title-gap)",
|
|
2976
|
+
"pr-(--cmp-listExpansionItem-title-paddingX)",
|
|
2977
|
+
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)",
|
|
2978
|
+
isExpanded && "bg-(--cmp-listExpansionItem-title-bg-expanded) text-(--cmp-listExpansionItem-title-text-expanded)"
|
|
2979
2979
|
),
|
|
2980
2980
|
children: [
|
|
2981
2981
|
!leading && /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -3000,7 +3000,7 @@ var SExpansionItem = react.forwardRef(
|
|
|
3000
3000
|
id,
|
|
3001
3001
|
"aria-hidden": !isExpanded,
|
|
3002
3002
|
className: cn(
|
|
3003
|
-
"grid overflow-hidden bg-[var(--cmp-
|
|
3003
|
+
"grid overflow-hidden bg-[var(--cmp-listExpansionItem-body-bg)] transition-[grid-template-rows] duration-200 ease-out motion-reduce:transition-none",
|
|
3004
3004
|
isExpanded ? "grid-rows-[1fr]" : "grid-rows-[0fr]"
|
|
3005
3005
|
),
|
|
3006
3006
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -3008,7 +3008,7 @@ var SExpansionItem = react.forwardRef(
|
|
|
3008
3008
|
{
|
|
3009
3009
|
className: cn(
|
|
3010
3010
|
"min-h-0 overflow-hidden",
|
|
3011
|
-
bodyPadding && isExpanded && "p-(--cmp-
|
|
3011
|
+
bodyPadding && isExpanded && "p-(--cmp-listExpansionItem-body-padding)"
|
|
3012
3012
|
),
|
|
3013
3013
|
children
|
|
3014
3014
|
}
|
|
@@ -4839,11 +4839,17 @@ function SModalContainer({
|
|
|
4839
4839
|
/* @__PURE__ */ jsxRuntime.jsx(InsideModalProvider, { value: true, children: /* @__PURE__ */ jsxRuntime.jsx(PortalContainerProvider, { value: portalContainer, children }) })
|
|
4840
4840
|
]
|
|
4841
4841
|
}
|
|
4842
|
+
),
|
|
4843
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4844
|
+
"div",
|
|
4845
|
+
{
|
|
4846
|
+
ref: setPortalContainer,
|
|
4847
|
+
className: "pointer-events-auto fixed left-0 top-0 z-[1001]"
|
|
4848
|
+
}
|
|
4842
4849
|
)
|
|
4843
4850
|
]
|
|
4844
4851
|
}
|
|
4845
|
-
) })
|
|
4846
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { ref: setPortalContainer, className: "pointer-events-auto fixed left-0 top-0 z-[1001]" })
|
|
4852
|
+
) })
|
|
4847
4853
|
] }) });
|
|
4848
4854
|
}
|
|
4849
4855
|
var TYPE_ICON = {
|
|
@@ -4922,10 +4928,24 @@ function SConfirmModal({
|
|
|
4922
4928
|
)
|
|
4923
4929
|
] }),
|
|
4924
4930
|
hasBody && /* @__PURE__ */ jsxRuntime.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: [
|
|
4925
|
-
topMessage.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-[2px]", children: topMessage.map((m, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4931
|
+
topMessage.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-[2px]", children: topMessage.map((m, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4932
|
+
"p",
|
|
4933
|
+
{
|
|
4934
|
+
className: "m-0",
|
|
4935
|
+
dangerouslySetInnerHTML: { __html: sanitizeInlineHtml(m) }
|
|
4936
|
+
},
|
|
4937
|
+
i
|
|
4938
|
+
)) }),
|
|
4926
4939
|
tagNode != null && // tag 위치 content-box: 흰 박스 + 1px 테두리 + 패딩 + 14/700 (원본 sd-confirm-modal__content-box)
|
|
4927
4940
|
/* @__PURE__ */ jsxRuntime.jsx("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: tagNode }),
|
|
4928
|
-
bottomMessage.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-[2px]", children: bottomMessage.map((m, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4941
|
+
bottomMessage.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-[2px]", children: bottomMessage.map((m, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4942
|
+
"p",
|
|
4943
|
+
{
|
|
4944
|
+
className: "m-0",
|
|
4945
|
+
dangerouslySetInnerHTML: { __html: sanitizeInlineHtml(m) }
|
|
4946
|
+
},
|
|
4947
|
+
i
|
|
4948
|
+
)) }),
|
|
4929
4949
|
optionNode != null && optionNode
|
|
4930
4950
|
] })
|
|
4931
4951
|
] }),
|
|
@@ -6269,7 +6289,7 @@ var STEPPER_LAYOUT = {
|
|
|
6269
6289
|
itemGap: V2("item-gap"),
|
|
6270
6290
|
dashWidth: V2("dash-width"),
|
|
6271
6291
|
sequenceRadius: V2("sequence-radius"),
|
|
6272
|
-
sequenceBorderWidth: V2("sequence-border-
|
|
6292
|
+
sequenceBorderWidth: V2("sequence-border-width"),
|
|
6273
6293
|
sequenceIcon: V2("sequence-icon")
|
|
6274
6294
|
};
|
|
6275
6295
|
var STEPPER_COLORS = {
|
|
@@ -6793,7 +6813,7 @@ var SSelect = react.forwardRef(function SSelect2({
|
|
|
6793
6813
|
);
|
|
6794
6814
|
onValueChange(multi ? mapped : mapped[0] ?? (emitValue ? "" : null));
|
|
6795
6815
|
};
|
|
6796
|
-
const commitOpen = (next) => {
|
|
6816
|
+
const commitOpen = (next, valueForRules) => {
|
|
6797
6817
|
setOpen(next);
|
|
6798
6818
|
onOpenChange?.(next);
|
|
6799
6819
|
if (next) {
|
|
@@ -6802,7 +6822,8 @@ var SSelect = react.forwardRef(function SSelect2({
|
|
|
6802
6822
|
setPendingOpen(false);
|
|
6803
6823
|
setSearch("");
|
|
6804
6824
|
if (rules && rules.length > 0) {
|
|
6805
|
-
|
|
6825
|
+
const current = valueForRules ?? selectedRef.current;
|
|
6826
|
+
setRuleError(runRules(multi ? current : current[0] ?? "", rules));
|
|
6806
6827
|
}
|
|
6807
6828
|
}
|
|
6808
6829
|
};
|
|
@@ -6886,7 +6907,7 @@ var SSelect = react.forwardRef(function SSelect2({
|
|
|
6886
6907
|
return;
|
|
6887
6908
|
}
|
|
6888
6909
|
emit2([nextValue]);
|
|
6889
|
-
commitOpen(false);
|
|
6910
|
+
commitOpen(false, [nextValue]);
|
|
6890
6911
|
};
|
|
6891
6912
|
const handleSelectAll = () => {
|
|
6892
6913
|
emit2(allSelected ? [] : allValues);
|
|
@@ -7126,7 +7147,7 @@ var SSelect = react.forwardRef(function SSelect2({
|
|
|
7126
7147
|
if (index >= 0) setFocusedIndex(index);
|
|
7127
7148
|
}
|
|
7128
7149
|
}
|
|
7129
|
-
) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-[12px] py-[12px] text-left text-[12px] leading-[20px] text-[color:var(--cmp-
|
|
7150
|
+
) : /* @__PURE__ */ jsxRuntime.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." })
|
|
7130
7151
|
]
|
|
7131
7152
|
}
|
|
7132
7153
|
)
|
|
@@ -7154,10 +7175,10 @@ function ItemList({
|
|
|
7154
7175
|
const selectedSet = react.useMemo(() => new Set(selected), [selected]);
|
|
7155
7176
|
const itemBase = cn(
|
|
7156
7177
|
"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",
|
|
7157
|
-
"text-[color:var(--cmp-
|
|
7158
|
-
"disabled:cursor-not-allowed disabled:text-[color:var(--cmp-
|
|
7178
|
+
"text-[color:var(--cmp-listBoxItem-content-default)]",
|
|
7179
|
+
"disabled:cursor-not-allowed disabled:text-[color:var(--cmp-listBoxItem-content-disabled)]"
|
|
7159
7180
|
);
|
|
7160
|
-
const activeClass = "hover:bg-[var(--cmp-
|
|
7181
|
+
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)]";
|
|
7161
7182
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { role: "listbox", "aria-multiselectable": multi || void 0, children: [
|
|
7162
7183
|
showSelectAll && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7163
7184
|
"button",
|
|
@@ -7167,7 +7188,7 @@ function ItemList({
|
|
|
7167
7188
|
"data-select-active": focusedValue === "__select_all__" ? "true" : void 0,
|
|
7168
7189
|
className: cn(
|
|
7169
7190
|
itemBase,
|
|
7170
|
-
focusedValue === "__select_all__" && "bg-[var(--cmp-
|
|
7191
|
+
focusedValue === "__select_all__" && "bg-[var(--cmp-listBoxItem-bg-hover)] text-[color:var(--cmp-listBoxItem-content-hover)]"
|
|
7171
7192
|
),
|
|
7172
7193
|
style: { paddingTop: 4, paddingBottom: 4, paddingRight: 12, paddingLeft: 12 },
|
|
7173
7194
|
onMouseEnter: () => onHoverValue("__select_all__"),
|
|
@@ -7184,7 +7205,7 @@ function ItemList({
|
|
|
7184
7205
|
const rowKey = `${o.value}-${idx}`;
|
|
7185
7206
|
if (o.isGroup) {
|
|
7186
7207
|
const isDepth1 = o.depth === 1;
|
|
7187
|
-
const groupTone = isDepth1 ? "border-t border-solid border-[color:var(--cmp-
|
|
7208
|
+
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";
|
|
7188
7209
|
if (multi) {
|
|
7189
7210
|
const leafValues = groupLeafValues.get(idx) ?? [];
|
|
7190
7211
|
const total = leafValues.length;
|
|
@@ -7202,12 +7223,12 @@ function ItemList({
|
|
|
7202
7223
|
"data-select-focused": groupFocused ? "true" : void 0,
|
|
7203
7224
|
"data-select-active": groupFocused ? "true" : void 0,
|
|
7204
7225
|
className: cn(
|
|
7205
|
-
"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-
|
|
7226
|
+
"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)]",
|
|
7206
7227
|
groupTone,
|
|
7207
|
-
groupDisabled ? "cursor-not-allowed text-[color:var(--cmp-
|
|
7208
|
-
groupDisabled && isDepth1 && "bg-[var(--cmp-
|
|
7228
|
+
groupDisabled ? "cursor-not-allowed text-[color:var(--cmp-listBoxItem-content-disabled)]" : "cursor-pointer",
|
|
7229
|
+
groupDisabled && isDepth1 && "bg-[var(--cmp-listBoxItem-depth1-bg-disabled)]",
|
|
7209
7230
|
// 포커스 하이라이트는 depth 배경보다 뒤에 둬 tailwind-merge 로 이기게 한다.
|
|
7210
|
-
groupFocused && !groupDisabled && "bg-[var(--cmp-
|
|
7231
|
+
groupFocused && !groupDisabled && "bg-[var(--cmp-listBoxItem-bg-hover)] text-[color:var(--cmp-listBoxItem-content-hover)]"
|
|
7211
7232
|
),
|
|
7212
7233
|
style: { paddingLeft: padLeft },
|
|
7213
7234
|
onMouseEnter: () => onHoverValue(`__group_${idx}__`),
|
|
@@ -7227,7 +7248,7 @@ function ItemList({
|
|
|
7227
7248
|
{
|
|
7228
7249
|
className: cn(
|
|
7229
7250
|
"shrink-0 font-medium",
|
|
7230
|
-
groupFocused ? "text-white" : "text-[color:var(--cmp-
|
|
7251
|
+
groupFocused ? "text-white" : "text-[color:var(--cmp-listBoxItem-content-disabled)]"
|
|
7231
7252
|
),
|
|
7232
7253
|
children: [
|
|
7233
7254
|
"(",
|
|
@@ -7247,12 +7268,12 @@ function ItemList({
|
|
|
7247
7268
|
"div",
|
|
7248
7269
|
{
|
|
7249
7270
|
className: cn(
|
|
7250
|
-
"select-none py-[4px] pr-[12px] text-[12px] leading-[20px] text-[color:var(--cmp-
|
|
7271
|
+
"select-none py-[4px] pr-[12px] text-[12px] leading-[20px] text-[color:var(--cmp-listBoxItem-content-default)]",
|
|
7251
7272
|
groupTone,
|
|
7252
7273
|
// 하위가 전부 비활성이면(select.config 에서 bubble-up) 어미 그룹도 비활성 처리:
|
|
7253
7274
|
// 텍스트는 회색(#888), depth1 그룹은 파란 배경 대신 회색(#EEE)으로 (depth2 는 #F6F6F6 유지)
|
|
7254
|
-
o.disabled && "cursor-not-allowed text-[color:var(--cmp-
|
|
7255
|
-
o.disabled && isDepth1 && "bg-[var(--cmp-
|
|
7275
|
+
o.disabled && "cursor-not-allowed text-[color:var(--cmp-listBoxItem-content-disabled)]",
|
|
7276
|
+
o.disabled && isDepth1 && "bg-[var(--cmp-listBoxItem-depth1-bg-disabled)]"
|
|
7256
7277
|
),
|
|
7257
7278
|
style: { paddingLeft: padLeft },
|
|
7258
7279
|
children: o.label
|
|
@@ -7272,8 +7293,8 @@ function ItemList({
|
|
|
7272
7293
|
"data-select-active": focusedValue === o.value ? "true" : void 0,
|
|
7273
7294
|
className: cn(
|
|
7274
7295
|
itemBase,
|
|
7275
|
-
isSelected && !multi && "font-bold text-[color:var(--cmp-
|
|
7276
|
-
focusedValue === o.value && "bg-[var(--cmp-
|
|
7296
|
+
isSelected && !multi && "font-bold text-[color:var(--cmp-listBoxItem-content-selected)]",
|
|
7297
|
+
focusedValue === o.value && "bg-[var(--cmp-listBoxItem-bg-hover)] text-[color:var(--cmp-listBoxItem-content-hover)]",
|
|
7277
7298
|
// 비활성 항목은 hover/focus 스타일 대상에서 제외한다.
|
|
7278
7299
|
// (:hover 는 disabled 버튼에도 매칭되므로 클래스 자체를 붙이지 않아야 한다)
|
|
7279
7300
|
!o.disabled && activeClass
|
|
@@ -10893,7 +10914,7 @@ var SChipInput = react.forwardRef(function SChipInput2({
|
|
|
10893
10914
|
"aria-selected": selected || active,
|
|
10894
10915
|
className: cn(
|
|
10895
10916
|
"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",
|
|
10896
|
-
selected ? "cursor-default overflow-visible font-bold text-(--cmp-
|
|
10917
|
+
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)"
|
|
10897
10918
|
),
|
|
10898
10919
|
onMouseDown: (e) => {
|
|
10899
10920
|
e.preventDefault();
|
|
@@ -10901,7 +10922,14 @@ var SChipInput = react.forwardRef(function SChipInput2({
|
|
|
10901
10922
|
},
|
|
10902
10923
|
children: [
|
|
10903
10924
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-1", children: item }),
|
|
10904
|
-
selected && /* @__PURE__ */ jsxRuntime.jsx(
|
|
10925
|
+
selected && /* @__PURE__ */ jsxRuntime.jsx(
|
|
10926
|
+
SIcon,
|
|
10927
|
+
{
|
|
10928
|
+
name: "check",
|
|
10929
|
+
size: 12,
|
|
10930
|
+
color: "var(--cmp-listBoxItem-content-selected)"
|
|
10931
|
+
}
|
|
10932
|
+
)
|
|
10905
10933
|
]
|
|
10906
10934
|
},
|
|
10907
10935
|
item
|
|
@@ -11191,7 +11219,7 @@ function TimeSelector({
|
|
|
11191
11219
|
setInputDraft({});
|
|
11192
11220
|
};
|
|
11193
11221
|
const inputStyle = {
|
|
11194
|
-
width: "var(--cmp-timepicker-selector-input-width)",
|
|
11222
|
+
width: "var(--cmp-timepicker-selector-time-input-width)",
|
|
11195
11223
|
height: "var(--cmp-textinput-sm-height)",
|
|
11196
11224
|
borderRadius: "var(--cmp-textinput-sm-radius)",
|
|
11197
11225
|
border: "var(--cmp-textinput-borderWidth) solid var(--cmp-textinput-border-default)",
|
|
@@ -11632,7 +11660,7 @@ function RangeTimeSelector({
|
|
|
11632
11660
|
setInputDraft({});
|
|
11633
11661
|
};
|
|
11634
11662
|
const inputStyle = {
|
|
11635
|
-
width: "var(--cmp-timepicker-selector-input-width)",
|
|
11663
|
+
width: "var(--cmp-timepicker-selector-time-input-width)",
|
|
11636
11664
|
height: "var(--cmp-textinput-sm-height)",
|
|
11637
11665
|
borderRadius: "var(--cmp-textinput-sm-radius)",
|
|
11638
11666
|
border: "var(--cmp-textinput-borderWidth) solid var(--cmp-textinput-border-default)",
|