sellmate-design-system-react 9.0.0-beta.73 → 9.0.0-beta.74
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/SBarcodeInput/README.md +1 -0
- package/dist/components/SBarcodeInput/SBarcodeInput.d.ts +7 -0
- package/dist/components/SChipInput/README.md +1 -0
- package/dist/components/SChipInput/SChipInput.d.ts +7 -0
- package/dist/components/SDatePicker/README.md +1 -0
- package/dist/components/SDatePicker/SDatePicker.d.ts +8 -1
- package/dist/components/SDateRangePicker/README.md +1 -0
- package/dist/components/SDateRangePicker/SDateRangePicker.d.ts +8 -1
- package/dist/components/SEditor/README.md +1 -0
- package/dist/components/SEditor/SEditor.d.ts +7 -0
- package/dist/components/SField/README.md +1 -0
- package/dist/components/SField/SField.d.ts +7 -0
- package/dist/components/SFilePicker/README.md +1 -0
- package/dist/components/SFilePicker/SFilePicker.d.ts +8 -1
- package/dist/components/SInput/README.md +1 -0
- package/dist/components/SInput/SInput.d.ts +4 -0
- package/dist/components/SNumberInput/README.md +1 -0
- package/dist/components/SNumberInput/SNumberInput.d.ts +7 -0
- package/dist/components/SRadioButton/README.md +8 -0
- package/dist/components/SRadioButton/SRadioButton.d.ts +8 -1
- package/dist/components/SSelect/README.md +1 -0
- package/dist/components/SSelect/SSelect.d.ts +7 -0
- package/dist/components/STextarea/README.md +1 -0
- package/dist/components/STextarea/STextarea.d.ts +7 -0
- package/dist/components/STimePicker/README.md +1 -0
- package/dist/components/STimePicker/STimePicker.d.ts +8 -1
- package/dist/components/STimeRangePicker/README.md +1 -0
- package/dist/components/STimeRangePicker/STimeRangePicker.d.ts +8 -1
- package/dist/index.cjs +54 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +54 -1
- package/dist/index.js.map +1 -1
- package/dist/llms-full.txt +20 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4857,6 +4857,7 @@ var cssLen = (v) => v === void 0 || v === "" || v === 0 ? void 0 : typeof v ===
|
|
|
4857
4857
|
var SField = /* @__PURE__ */ forwardRef(function SField2({
|
|
4858
4858
|
name,
|
|
4859
4859
|
label = "",
|
|
4860
|
+
subLabel = "",
|
|
4860
4861
|
icon,
|
|
4861
4862
|
iconColor,
|
|
4862
4863
|
labelTooltip = "",
|
|
@@ -4978,6 +4979,16 @@ var SField = /* @__PURE__ */ forwardRef(function SField2({
|
|
|
4978
4979
|
}
|
|
4979
4980
|
),
|
|
4980
4981
|
/* @__PURE__ */ jsx("span", { className: "min-w-0 overflow-hidden text-ellipsis whitespace-nowrap", children: label }),
|
|
4982
|
+
subLabel !== "" && // field 라벨 토큰이 아니라 기본 타이포 토큰을 쓴다 — 보조 라벨은 굵기·색이 라벨과
|
|
4983
|
+
// 따로 가므로 field 토큰에 묶지 않는다. 크기도 size 와 무관하게 body/sm 고정.
|
|
4984
|
+
/* @__PURE__ */ jsx(
|
|
4985
|
+
"span",
|
|
4986
|
+
{
|
|
4987
|
+
className: "typo-body-sm-medium shrink-0 whitespace-nowrap text-(--sys-color-fg-secondary)",
|
|
4988
|
+
style: { marginLeft: s.labelGap },
|
|
4989
|
+
children: subLabel
|
|
4990
|
+
}
|
|
4991
|
+
),
|
|
4981
4992
|
(labelTooltip !== "" || labelTooltipProps) && /* @__PURE__ */ jsx("span", { className: "shrink-0 flex items-center", style: { marginLeft: s.labelGap }, children: /* @__PURE__ */ jsx(
|
|
4982
4993
|
STooltip2,
|
|
4983
4994
|
{
|
|
@@ -5094,6 +5105,7 @@ var STextarea = /* @__PURE__ */ forwardRef(function STextarea2({
|
|
|
5094
5105
|
textareaStyle,
|
|
5095
5106
|
label,
|
|
5096
5107
|
labelPosition,
|
|
5108
|
+
subLabel,
|
|
5097
5109
|
labelWidth,
|
|
5098
5110
|
icon,
|
|
5099
5111
|
iconColor,
|
|
@@ -5154,6 +5166,7 @@ var STextarea = /* @__PURE__ */ forwardRef(function STextarea2({
|
|
|
5154
5166
|
{
|
|
5155
5167
|
label,
|
|
5156
5168
|
labelPosition,
|
|
5169
|
+
subLabel,
|
|
5157
5170
|
labelWidth,
|
|
5158
5171
|
icon,
|
|
5159
5172
|
iconColor,
|
|
@@ -15519,6 +15532,7 @@ var SSelectImpl = /* @__PURE__ */ forwardRef(function SSelect({
|
|
|
15519
15532
|
searchDebounce = DEFAULT_SEARCH_DEBOUNCE,
|
|
15520
15533
|
label,
|
|
15521
15534
|
labelPosition,
|
|
15535
|
+
subLabel,
|
|
15522
15536
|
labelWidth,
|
|
15523
15537
|
icon,
|
|
15524
15538
|
iconColor,
|
|
@@ -15977,6 +15991,7 @@ var SSelectImpl = /* @__PURE__ */ forwardRef(function SSelect({
|
|
|
15977
15991
|
{
|
|
15978
15992
|
label,
|
|
15979
15993
|
labelPosition,
|
|
15994
|
+
subLabel,
|
|
15980
15995
|
labelWidth,
|
|
15981
15996
|
icon,
|
|
15982
15997
|
iconColor,
|
|
@@ -17708,6 +17723,7 @@ var SInput = /* @__PURE__ */ forwardRef(function SInput2({
|
|
|
17708
17723
|
inputStyle,
|
|
17709
17724
|
label,
|
|
17710
17725
|
labelPosition,
|
|
17726
|
+
subLabel,
|
|
17711
17727
|
labelWidth,
|
|
17712
17728
|
labelTooltip,
|
|
17713
17729
|
labelTooltipProps,
|
|
@@ -17752,6 +17768,7 @@ var SInput = /* @__PURE__ */ forwardRef(function SInput2({
|
|
|
17752
17768
|
{
|
|
17753
17769
|
label,
|
|
17754
17770
|
labelPosition,
|
|
17771
|
+
subLabel,
|
|
17755
17772
|
labelWidth,
|
|
17756
17773
|
labelTooltip,
|
|
17757
17774
|
labelTooltipProps,
|
|
@@ -17943,6 +17960,7 @@ var SNumberInput = /* @__PURE__ */ forwardRef(function SNumberInput2({
|
|
|
17943
17960
|
hovered,
|
|
17944
17961
|
label,
|
|
17945
17962
|
labelPosition,
|
|
17963
|
+
subLabel,
|
|
17946
17964
|
labelWidth,
|
|
17947
17965
|
icon,
|
|
17948
17966
|
iconColor,
|
|
@@ -18113,6 +18131,7 @@ var SNumberInput = /* @__PURE__ */ forwardRef(function SNumberInput2({
|
|
|
18113
18131
|
{
|
|
18114
18132
|
label,
|
|
18115
18133
|
labelPosition,
|
|
18134
|
+
subLabel,
|
|
18116
18135
|
labelWidth,
|
|
18117
18136
|
icon,
|
|
18118
18137
|
iconColor,
|
|
@@ -18832,6 +18851,7 @@ function SDatePicker({
|
|
|
18832
18851
|
status,
|
|
18833
18852
|
label,
|
|
18834
18853
|
labelPosition,
|
|
18854
|
+
subLabel,
|
|
18835
18855
|
labelWidth,
|
|
18836
18856
|
icon,
|
|
18837
18857
|
iconColor,
|
|
@@ -18905,6 +18925,7 @@ function SDatePicker({
|
|
|
18905
18925
|
{
|
|
18906
18926
|
label,
|
|
18907
18927
|
labelPosition,
|
|
18928
|
+
subLabel,
|
|
18908
18929
|
labelWidth,
|
|
18909
18930
|
icon,
|
|
18910
18931
|
iconColor,
|
|
@@ -19368,6 +19389,7 @@ function SDateRangePicker({
|
|
|
19368
19389
|
status,
|
|
19369
19390
|
label,
|
|
19370
19391
|
labelPosition,
|
|
19392
|
+
subLabel,
|
|
19371
19393
|
labelWidth,
|
|
19372
19394
|
icon,
|
|
19373
19395
|
iconColor,
|
|
@@ -19441,6 +19463,7 @@ function SDateRangePicker({
|
|
|
19441
19463
|
{
|
|
19442
19464
|
label,
|
|
19443
19465
|
labelPosition,
|
|
19466
|
+
subLabel,
|
|
19444
19467
|
labelWidth,
|
|
19445
19468
|
icon,
|
|
19446
19469
|
iconColor,
|
|
@@ -19746,6 +19769,7 @@ function SFilePicker({
|
|
|
19746
19769
|
size = "sm",
|
|
19747
19770
|
label,
|
|
19748
19771
|
labelPosition,
|
|
19772
|
+
subLabel,
|
|
19749
19773
|
labelWidth,
|
|
19750
19774
|
icon,
|
|
19751
19775
|
iconColor,
|
|
@@ -19931,6 +19955,7 @@ function SFilePicker({
|
|
|
19931
19955
|
borderless: inline,
|
|
19932
19956
|
label,
|
|
19933
19957
|
labelPosition,
|
|
19958
|
+
subLabel,
|
|
19934
19959
|
labelWidth,
|
|
19935
19960
|
icon,
|
|
19936
19961
|
iconColor,
|
|
@@ -22402,11 +22427,13 @@ function SRadioButton({
|
|
|
22402
22427
|
size = "sm",
|
|
22403
22428
|
disabled = false,
|
|
22404
22429
|
name,
|
|
22430
|
+
showTooltip = false,
|
|
22405
22431
|
onValueChange,
|
|
22406
22432
|
className,
|
|
22407
22433
|
style
|
|
22408
22434
|
}) {
|
|
22409
22435
|
const s = SIZE_CONFIG2[size];
|
|
22436
|
+
const [hoveredValue, setHoveredValue] = useState(null);
|
|
22410
22437
|
return /* @__PURE__ */ jsx(
|
|
22411
22438
|
"div",
|
|
22412
22439
|
{
|
|
@@ -22419,7 +22446,8 @@ function SRadioButton({
|
|
|
22419
22446
|
const od = disabled || o.disabled;
|
|
22420
22447
|
const first = i === 0;
|
|
22421
22448
|
const last = i === options.length - 1;
|
|
22422
|
-
|
|
22449
|
+
const tooltip = showTooltip && o.tooltip ? o.tooltip : void 0;
|
|
22450
|
+
const button = /* @__PURE__ */ jsx(
|
|
22423
22451
|
"button",
|
|
22424
22452
|
{
|
|
22425
22453
|
type: "button",
|
|
@@ -22428,6 +22456,10 @@ function SRadioButton({
|
|
|
22428
22456
|
"aria-checked": selected,
|
|
22429
22457
|
disabled: od,
|
|
22430
22458
|
onClick: () => !od && !selected && onValueChange?.(o.value),
|
|
22459
|
+
onMouseEnter: tooltip ? () => setHoveredValue(o.value) : void 0,
|
|
22460
|
+
onMouseLeave: tooltip ? () => setHoveredValue(null) : void 0,
|
|
22461
|
+
onFocus: tooltip ? () => setHoveredValue(o.value) : void 0,
|
|
22462
|
+
onBlur: tooltip ? () => setHoveredValue(null) : void 0,
|
|
22431
22463
|
className: cn(
|
|
22432
22464
|
"relative box-border grow inline-flex items-center justify-center whitespace-nowrap border border-solid font-medium transition-colors",
|
|
22433
22465
|
first ? "" : "-ml-px",
|
|
@@ -22454,6 +22486,17 @@ function SRadioButton({
|
|
|
22454
22486
|
},
|
|
22455
22487
|
o.value
|
|
22456
22488
|
);
|
|
22489
|
+
return tooltip ? /* @__PURE__ */ jsx(
|
|
22490
|
+
STooltip2,
|
|
22491
|
+
{
|
|
22492
|
+
trigger: "none",
|
|
22493
|
+
open: hoveredValue === o.value,
|
|
22494
|
+
tooltipType: "accent",
|
|
22495
|
+
message: [tooltip],
|
|
22496
|
+
children: button
|
|
22497
|
+
},
|
|
22498
|
+
o.value
|
|
22499
|
+
) : button;
|
|
22457
22500
|
})
|
|
22458
22501
|
}
|
|
22459
22502
|
);
|
|
@@ -24449,6 +24492,7 @@ var SEditor = /* @__PURE__ */ forwardRef(function SEditor2({
|
|
|
24449
24492
|
onBlur,
|
|
24450
24493
|
label,
|
|
24451
24494
|
labelPosition,
|
|
24495
|
+
subLabel,
|
|
24452
24496
|
labelWidth,
|
|
24453
24497
|
icon,
|
|
24454
24498
|
iconColor,
|
|
@@ -24538,6 +24582,7 @@ var SEditor = /* @__PURE__ */ forwardRef(function SEditor2({
|
|
|
24538
24582
|
name,
|
|
24539
24583
|
label,
|
|
24540
24584
|
labelPosition,
|
|
24585
|
+
subLabel,
|
|
24541
24586
|
labelWidth,
|
|
24542
24587
|
icon,
|
|
24543
24588
|
iconColor,
|
|
@@ -26511,6 +26556,7 @@ var SChipInput = /* @__PURE__ */ forwardRef(function SChipInput2({
|
|
|
26511
26556
|
dropdownMinWidth = 200,
|
|
26512
26557
|
label,
|
|
26513
26558
|
labelPosition,
|
|
26559
|
+
subLabel,
|
|
26514
26560
|
labelWidth,
|
|
26515
26561
|
hint,
|
|
26516
26562
|
errorMessage,
|
|
@@ -26652,6 +26698,7 @@ var SChipInput = /* @__PURE__ */ forwardRef(function SChipInput2({
|
|
|
26652
26698
|
{
|
|
26653
26699
|
label,
|
|
26654
26700
|
labelPosition,
|
|
26701
|
+
subLabel,
|
|
26655
26702
|
labelWidth,
|
|
26656
26703
|
labelHeight: `calc(var(--cmp-chipInput-${size}-minHeight) + 2px)`,
|
|
26657
26704
|
icon,
|
|
@@ -26971,6 +27018,7 @@ var SBarcodeInput = /* @__PURE__ */ forwardRef(
|
|
|
26971
27018
|
inputStyle,
|
|
26972
27019
|
label,
|
|
26973
27020
|
labelPosition,
|
|
27021
|
+
subLabel,
|
|
26974
27022
|
labelWidth,
|
|
26975
27023
|
icon,
|
|
26976
27024
|
iconColor,
|
|
@@ -27008,6 +27056,7 @@ var SBarcodeInput = /* @__PURE__ */ forwardRef(
|
|
|
27008
27056
|
{
|
|
27009
27057
|
label,
|
|
27010
27058
|
labelPosition,
|
|
27059
|
+
subLabel,
|
|
27011
27060
|
labelWidth,
|
|
27012
27061
|
icon,
|
|
27013
27062
|
iconColor,
|
|
@@ -27378,6 +27427,7 @@ function STimePicker({
|
|
|
27378
27427
|
status,
|
|
27379
27428
|
label,
|
|
27380
27429
|
labelPosition,
|
|
27430
|
+
subLabel,
|
|
27381
27431
|
labelWidth,
|
|
27382
27432
|
icon,
|
|
27383
27433
|
iconColor,
|
|
@@ -27433,6 +27483,7 @@ function STimePicker({
|
|
|
27433
27483
|
{
|
|
27434
27484
|
label,
|
|
27435
27485
|
labelPosition,
|
|
27486
|
+
subLabel,
|
|
27436
27487
|
labelWidth,
|
|
27437
27488
|
icon,
|
|
27438
27489
|
iconColor,
|
|
@@ -27846,6 +27897,7 @@ function STimeRangePicker({
|
|
|
27846
27897
|
status,
|
|
27847
27898
|
label,
|
|
27848
27899
|
labelPosition,
|
|
27900
|
+
subLabel,
|
|
27849
27901
|
labelWidth,
|
|
27850
27902
|
icon,
|
|
27851
27903
|
iconColor,
|
|
@@ -27903,6 +27955,7 @@ function STimeRangePicker({
|
|
|
27903
27955
|
{
|
|
27904
27956
|
label,
|
|
27905
27957
|
labelPosition,
|
|
27958
|
+
subLabel,
|
|
27906
27959
|
labelWidth,
|
|
27907
27960
|
icon,
|
|
27908
27961
|
iconColor,
|