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.cjs
CHANGED
|
@@ -4885,6 +4885,7 @@ var cssLen = (v) => v === void 0 || v === "" || v === 0 ? void 0 : typeof v ===
|
|
|
4885
4885
|
var SField = /* @__PURE__ */ react.forwardRef(function SField2({
|
|
4886
4886
|
name,
|
|
4887
4887
|
label = "",
|
|
4888
|
+
subLabel = "",
|
|
4888
4889
|
icon,
|
|
4889
4890
|
iconColor,
|
|
4890
4891
|
labelTooltip = "",
|
|
@@ -5006,6 +5007,16 @@ var SField = /* @__PURE__ */ react.forwardRef(function SField2({
|
|
|
5006
5007
|
}
|
|
5007
5008
|
),
|
|
5008
5009
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "min-w-0 overflow-hidden text-ellipsis whitespace-nowrap", children: label }),
|
|
5010
|
+
subLabel !== "" && // field 라벨 토큰이 아니라 기본 타이포 토큰을 쓴다 — 보조 라벨은 굵기·색이 라벨과
|
|
5011
|
+
// 따로 가므로 field 토큰에 묶지 않는다. 크기도 size 와 무관하게 body/sm 고정.
|
|
5012
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5013
|
+
"span",
|
|
5014
|
+
{
|
|
5015
|
+
className: "typo-body-sm-medium shrink-0 whitespace-nowrap text-(--sys-color-fg-secondary)",
|
|
5016
|
+
style: { marginLeft: s.labelGap },
|
|
5017
|
+
children: subLabel
|
|
5018
|
+
}
|
|
5019
|
+
),
|
|
5009
5020
|
(labelTooltip !== "" || labelTooltipProps) && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 flex items-center", style: { marginLeft: s.labelGap }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5010
5021
|
STooltip2,
|
|
5011
5022
|
{
|
|
@@ -5122,6 +5133,7 @@ var STextarea = /* @__PURE__ */ react.forwardRef(function STextarea2({
|
|
|
5122
5133
|
textareaStyle,
|
|
5123
5134
|
label,
|
|
5124
5135
|
labelPosition,
|
|
5136
|
+
subLabel,
|
|
5125
5137
|
labelWidth,
|
|
5126
5138
|
icon,
|
|
5127
5139
|
iconColor,
|
|
@@ -5182,6 +5194,7 @@ var STextarea = /* @__PURE__ */ react.forwardRef(function STextarea2({
|
|
|
5182
5194
|
{
|
|
5183
5195
|
label,
|
|
5184
5196
|
labelPosition,
|
|
5197
|
+
subLabel,
|
|
5185
5198
|
labelWidth,
|
|
5186
5199
|
icon,
|
|
5187
5200
|
iconColor,
|
|
@@ -15547,6 +15560,7 @@ var SSelectImpl = /* @__PURE__ */ react.forwardRef(function SSelect({
|
|
|
15547
15560
|
searchDebounce = DEFAULT_SEARCH_DEBOUNCE,
|
|
15548
15561
|
label,
|
|
15549
15562
|
labelPosition,
|
|
15563
|
+
subLabel,
|
|
15550
15564
|
labelWidth,
|
|
15551
15565
|
icon,
|
|
15552
15566
|
iconColor,
|
|
@@ -16005,6 +16019,7 @@ var SSelectImpl = /* @__PURE__ */ react.forwardRef(function SSelect({
|
|
|
16005
16019
|
{
|
|
16006
16020
|
label,
|
|
16007
16021
|
labelPosition,
|
|
16022
|
+
subLabel,
|
|
16008
16023
|
labelWidth,
|
|
16009
16024
|
icon,
|
|
16010
16025
|
iconColor,
|
|
@@ -17736,6 +17751,7 @@ var SInput = /* @__PURE__ */ react.forwardRef(function SInput2({
|
|
|
17736
17751
|
inputStyle,
|
|
17737
17752
|
label,
|
|
17738
17753
|
labelPosition,
|
|
17754
|
+
subLabel,
|
|
17739
17755
|
labelWidth,
|
|
17740
17756
|
labelTooltip,
|
|
17741
17757
|
labelTooltipProps,
|
|
@@ -17780,6 +17796,7 @@ var SInput = /* @__PURE__ */ react.forwardRef(function SInput2({
|
|
|
17780
17796
|
{
|
|
17781
17797
|
label,
|
|
17782
17798
|
labelPosition,
|
|
17799
|
+
subLabel,
|
|
17783
17800
|
labelWidth,
|
|
17784
17801
|
labelTooltip,
|
|
17785
17802
|
labelTooltipProps,
|
|
@@ -17971,6 +17988,7 @@ var SNumberInput = /* @__PURE__ */ react.forwardRef(function SNumberInput2({
|
|
|
17971
17988
|
hovered,
|
|
17972
17989
|
label,
|
|
17973
17990
|
labelPosition,
|
|
17991
|
+
subLabel,
|
|
17974
17992
|
labelWidth,
|
|
17975
17993
|
icon,
|
|
17976
17994
|
iconColor,
|
|
@@ -18141,6 +18159,7 @@ var SNumberInput = /* @__PURE__ */ react.forwardRef(function SNumberInput2({
|
|
|
18141
18159
|
{
|
|
18142
18160
|
label,
|
|
18143
18161
|
labelPosition,
|
|
18162
|
+
subLabel,
|
|
18144
18163
|
labelWidth,
|
|
18145
18164
|
icon,
|
|
18146
18165
|
iconColor,
|
|
@@ -18860,6 +18879,7 @@ function SDatePicker({
|
|
|
18860
18879
|
status,
|
|
18861
18880
|
label,
|
|
18862
18881
|
labelPosition,
|
|
18882
|
+
subLabel,
|
|
18863
18883
|
labelWidth,
|
|
18864
18884
|
icon,
|
|
18865
18885
|
iconColor,
|
|
@@ -18933,6 +18953,7 @@ function SDatePicker({
|
|
|
18933
18953
|
{
|
|
18934
18954
|
label,
|
|
18935
18955
|
labelPosition,
|
|
18956
|
+
subLabel,
|
|
18936
18957
|
labelWidth,
|
|
18937
18958
|
icon,
|
|
18938
18959
|
iconColor,
|
|
@@ -19396,6 +19417,7 @@ function SDateRangePicker({
|
|
|
19396
19417
|
status,
|
|
19397
19418
|
label,
|
|
19398
19419
|
labelPosition,
|
|
19420
|
+
subLabel,
|
|
19399
19421
|
labelWidth,
|
|
19400
19422
|
icon,
|
|
19401
19423
|
iconColor,
|
|
@@ -19469,6 +19491,7 @@ function SDateRangePicker({
|
|
|
19469
19491
|
{
|
|
19470
19492
|
label,
|
|
19471
19493
|
labelPosition,
|
|
19494
|
+
subLabel,
|
|
19472
19495
|
labelWidth,
|
|
19473
19496
|
icon,
|
|
19474
19497
|
iconColor,
|
|
@@ -19774,6 +19797,7 @@ function SFilePicker({
|
|
|
19774
19797
|
size = "sm",
|
|
19775
19798
|
label,
|
|
19776
19799
|
labelPosition,
|
|
19800
|
+
subLabel,
|
|
19777
19801
|
labelWidth,
|
|
19778
19802
|
icon,
|
|
19779
19803
|
iconColor,
|
|
@@ -19959,6 +19983,7 @@ function SFilePicker({
|
|
|
19959
19983
|
borderless: inline,
|
|
19960
19984
|
label,
|
|
19961
19985
|
labelPosition,
|
|
19986
|
+
subLabel,
|
|
19962
19987
|
labelWidth,
|
|
19963
19988
|
icon,
|
|
19964
19989
|
iconColor,
|
|
@@ -22430,11 +22455,13 @@ function SRadioButton({
|
|
|
22430
22455
|
size = "sm",
|
|
22431
22456
|
disabled = false,
|
|
22432
22457
|
name,
|
|
22458
|
+
showTooltip = false,
|
|
22433
22459
|
onValueChange,
|
|
22434
22460
|
className,
|
|
22435
22461
|
style
|
|
22436
22462
|
}) {
|
|
22437
22463
|
const s = SIZE_CONFIG2[size];
|
|
22464
|
+
const [hoveredValue, setHoveredValue] = react.useState(null);
|
|
22438
22465
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
22439
22466
|
"div",
|
|
22440
22467
|
{
|
|
@@ -22447,7 +22474,8 @@ function SRadioButton({
|
|
|
22447
22474
|
const od = disabled || o.disabled;
|
|
22448
22475
|
const first = i === 0;
|
|
22449
22476
|
const last = i === options.length - 1;
|
|
22450
|
-
|
|
22477
|
+
const tooltip = showTooltip && o.tooltip ? o.tooltip : void 0;
|
|
22478
|
+
const button = /* @__PURE__ */ jsxRuntime.jsx(
|
|
22451
22479
|
"button",
|
|
22452
22480
|
{
|
|
22453
22481
|
type: "button",
|
|
@@ -22456,6 +22484,10 @@ function SRadioButton({
|
|
|
22456
22484
|
"aria-checked": selected,
|
|
22457
22485
|
disabled: od,
|
|
22458
22486
|
onClick: () => !od && !selected && onValueChange?.(o.value),
|
|
22487
|
+
onMouseEnter: tooltip ? () => setHoveredValue(o.value) : void 0,
|
|
22488
|
+
onMouseLeave: tooltip ? () => setHoveredValue(null) : void 0,
|
|
22489
|
+
onFocus: tooltip ? () => setHoveredValue(o.value) : void 0,
|
|
22490
|
+
onBlur: tooltip ? () => setHoveredValue(null) : void 0,
|
|
22459
22491
|
className: cn(
|
|
22460
22492
|
"relative box-border grow inline-flex items-center justify-center whitespace-nowrap border border-solid font-medium transition-colors",
|
|
22461
22493
|
first ? "" : "-ml-px",
|
|
@@ -22482,6 +22514,17 @@ function SRadioButton({
|
|
|
22482
22514
|
},
|
|
22483
22515
|
o.value
|
|
22484
22516
|
);
|
|
22517
|
+
return tooltip ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
22518
|
+
STooltip2,
|
|
22519
|
+
{
|
|
22520
|
+
trigger: "none",
|
|
22521
|
+
open: hoveredValue === o.value,
|
|
22522
|
+
tooltipType: "accent",
|
|
22523
|
+
message: [tooltip],
|
|
22524
|
+
children: button
|
|
22525
|
+
},
|
|
22526
|
+
o.value
|
|
22527
|
+
) : button;
|
|
22485
22528
|
})
|
|
22486
22529
|
}
|
|
22487
22530
|
);
|
|
@@ -24477,6 +24520,7 @@ var SEditor = /* @__PURE__ */ react.forwardRef(function SEditor2({
|
|
|
24477
24520
|
onBlur,
|
|
24478
24521
|
label,
|
|
24479
24522
|
labelPosition,
|
|
24523
|
+
subLabel,
|
|
24480
24524
|
labelWidth,
|
|
24481
24525
|
icon,
|
|
24482
24526
|
iconColor,
|
|
@@ -24566,6 +24610,7 @@ var SEditor = /* @__PURE__ */ react.forwardRef(function SEditor2({
|
|
|
24566
24610
|
name,
|
|
24567
24611
|
label,
|
|
24568
24612
|
labelPosition,
|
|
24613
|
+
subLabel,
|
|
24569
24614
|
labelWidth,
|
|
24570
24615
|
icon,
|
|
24571
24616
|
iconColor,
|
|
@@ -26539,6 +26584,7 @@ var SChipInput = /* @__PURE__ */ react.forwardRef(function SChipInput2({
|
|
|
26539
26584
|
dropdownMinWidth = 200,
|
|
26540
26585
|
label,
|
|
26541
26586
|
labelPosition,
|
|
26587
|
+
subLabel,
|
|
26542
26588
|
labelWidth,
|
|
26543
26589
|
hint,
|
|
26544
26590
|
errorMessage,
|
|
@@ -26680,6 +26726,7 @@ var SChipInput = /* @__PURE__ */ react.forwardRef(function SChipInput2({
|
|
|
26680
26726
|
{
|
|
26681
26727
|
label,
|
|
26682
26728
|
labelPosition,
|
|
26729
|
+
subLabel,
|
|
26683
26730
|
labelWidth,
|
|
26684
26731
|
labelHeight: `calc(var(--cmp-chipInput-${size}-minHeight) + 2px)`,
|
|
26685
26732
|
icon,
|
|
@@ -26999,6 +27046,7 @@ var SBarcodeInput = /* @__PURE__ */ react.forwardRef(
|
|
|
26999
27046
|
inputStyle,
|
|
27000
27047
|
label,
|
|
27001
27048
|
labelPosition,
|
|
27049
|
+
subLabel,
|
|
27002
27050
|
labelWidth,
|
|
27003
27051
|
icon,
|
|
27004
27052
|
iconColor,
|
|
@@ -27036,6 +27084,7 @@ var SBarcodeInput = /* @__PURE__ */ react.forwardRef(
|
|
|
27036
27084
|
{
|
|
27037
27085
|
label,
|
|
27038
27086
|
labelPosition,
|
|
27087
|
+
subLabel,
|
|
27039
27088
|
labelWidth,
|
|
27040
27089
|
icon,
|
|
27041
27090
|
iconColor,
|
|
@@ -27406,6 +27455,7 @@ function STimePicker({
|
|
|
27406
27455
|
status,
|
|
27407
27456
|
label,
|
|
27408
27457
|
labelPosition,
|
|
27458
|
+
subLabel,
|
|
27409
27459
|
labelWidth,
|
|
27410
27460
|
icon,
|
|
27411
27461
|
iconColor,
|
|
@@ -27461,6 +27511,7 @@ function STimePicker({
|
|
|
27461
27511
|
{
|
|
27462
27512
|
label,
|
|
27463
27513
|
labelPosition,
|
|
27514
|
+
subLabel,
|
|
27464
27515
|
labelWidth,
|
|
27465
27516
|
icon,
|
|
27466
27517
|
iconColor,
|
|
@@ -27874,6 +27925,7 @@ function STimeRangePicker({
|
|
|
27874
27925
|
status,
|
|
27875
27926
|
label,
|
|
27876
27927
|
labelPosition,
|
|
27928
|
+
subLabel,
|
|
27877
27929
|
labelWidth,
|
|
27878
27930
|
icon,
|
|
27879
27931
|
iconColor,
|
|
@@ -27931,6 +27983,7 @@ function STimeRangePicker({
|
|
|
27931
27983
|
{
|
|
27932
27984
|
label,
|
|
27933
27985
|
labelPosition,
|
|
27986
|
+
subLabel,
|
|
27934
27987
|
labelWidth,
|
|
27935
27988
|
icon,
|
|
27936
27989
|
iconColor,
|