sellmate-design-system-react 0.1.7 → 0.1.9
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 +11 -3
- package/dist/components/SActionModal/SActionModal.cjs.map +1 -1
- package/dist/components/SActionModal/SActionModal.js +11 -3
- package/dist/components/SActionModal/SActionModal.js.map +1 -1
- package/dist/components/SBarcodeInput/SBarcodeInput.cjs +226 -209
- package/dist/components/SBarcodeInput/SBarcodeInput.cjs.map +1 -1
- package/dist/components/SBarcodeInput/SBarcodeInput.js +226 -209
- package/dist/components/SBarcodeInput/SBarcodeInput.js.map +1 -1
- package/dist/components/SCalendar/SCalendar.cjs +9 -1
- package/dist/components/SCalendar/SCalendar.cjs.map +1 -1
- package/dist/components/SCalendar/SCalendar.js +9 -1
- package/dist/components/SCalendar/SCalendar.js.map +1 -1
- package/dist/components/SChip/SChip.cjs +9 -1
- package/dist/components/SChip/SChip.cjs.map +1 -1
- package/dist/components/SChip/SChip.d.ts +1 -1
- package/dist/components/SChip/SChip.js +9 -1
- package/dist/components/SChip/SChip.js.map +1 -1
- package/dist/components/SChipInput/SChipInput.cjs +260 -235
- package/dist/components/SChipInput/SChipInput.cjs.map +1 -1
- package/dist/components/SChipInput/SChipInput.js +259 -235
- package/dist/components/SChipInput/SChipInput.js.map +1 -1
- package/dist/components/SCircleProgress/SCircleProgress.cjs +56 -58
- package/dist/components/SCircleProgress/SCircleProgress.cjs.map +1 -1
- package/dist/components/SCircleProgress/SCircleProgress.js +56 -58
- package/dist/components/SCircleProgress/SCircleProgress.js.map +1 -1
- package/dist/components/SConfirmModal/SConfirmModal.cjs +9 -1
- package/dist/components/SConfirmModal/SConfirmModal.cjs.map +1 -1
- package/dist/components/SConfirmModal/SConfirmModal.js +9 -1
- package/dist/components/SConfirmModal/SConfirmModal.js.map +1 -1
- package/dist/components/SDatePicker/SDatePicker.cjs +247 -221
- package/dist/components/SDatePicker/SDatePicker.cjs.map +1 -1
- package/dist/components/SDatePicker/SDatePicker.js +247 -221
- package/dist/components/SDatePicker/SDatePicker.js.map +1 -1
- package/dist/components/SDateRangePicker/SDateRangePicker.cjs +308 -256
- package/dist/components/SDateRangePicker/SDateRangePicker.cjs.map +1 -1
- package/dist/components/SDateRangePicker/SDateRangePicker.js +308 -256
- package/dist/components/SDateRangePicker/SDateRangePicker.js.map +1 -1
- package/dist/components/SDropdownButton/SDropdownButton.cjs +51 -4
- package/dist/components/SDropdownButton/SDropdownButton.cjs.map +1 -1
- package/dist/components/SDropdownButton/SDropdownButton.js +52 -5
- package/dist/components/SDropdownButton/SDropdownButton.js.map +1 -1
- package/dist/components/SField/SField.cjs +226 -21
- package/dist/components/SField/SField.cjs.map +1 -1
- package/dist/components/SField/SField.d.ts +11 -0
- package/dist/components/SField/SField.js +226 -21
- package/dist/components/SField/SField.js.map +1 -1
- package/dist/components/SFilePicker/SFilePicker.cjs +306 -278
- package/dist/components/SFilePicker/SFilePicker.cjs.map +1 -1
- package/dist/components/SFilePicker/SFilePicker.d.ts +4 -2
- package/dist/components/SFilePicker/SFilePicker.js +306 -278
- package/dist/components/SFilePicker/SFilePicker.js.map +1 -1
- package/dist/components/SGhostButton/SGhostButton.cjs +8 -0
- package/dist/components/SGhostButton/SGhostButton.cjs.map +1 -1
- package/dist/components/SGhostButton/SGhostButton.js +8 -0
- package/dist/components/SGhostButton/SGhostButton.js.map +1 -1
- package/dist/components/SGuide/SGuide.cjs +12 -1
- package/dist/components/SGuide/SGuide.cjs.map +1 -1
- package/dist/components/SGuide/SGuide.js +12 -1
- package/dist/components/SGuide/SGuide.js.map +1 -1
- package/dist/components/SInput/SInput.cjs +226 -209
- package/dist/components/SInput/SInput.cjs.map +1 -1
- package/dist/components/SInput/SInput.js +226 -209
- package/dist/components/SInput/SInput.js.map +1 -1
- package/dist/components/SKeyValueTable/SKeyValueTable.cjs +640 -453
- package/dist/components/SKeyValueTable/SKeyValueTable.cjs.map +1 -1
- package/dist/components/SKeyValueTable/SKeyValueTable.d.ts +3 -1
- package/dist/components/SKeyValueTable/SKeyValueTable.js +640 -453
- package/dist/components/SKeyValueTable/SKeyValueTable.js.map +1 -1
- package/dist/components/SLoadingContainer/SLoadingContainer.cjs +64 -58
- package/dist/components/SLoadingContainer/SLoadingContainer.cjs.map +1 -1
- package/dist/components/SLoadingContainer/SLoadingContainer.js +64 -58
- package/dist/components/SLoadingContainer/SLoadingContainer.js.map +1 -1
- package/dist/components/SLoadingContainer/loading.cjs +64 -58
- package/dist/components/SLoadingContainer/loading.cjs.map +1 -1
- package/dist/components/SLoadingContainer/loading.js +64 -58
- package/dist/components/SLoadingContainer/loading.js.map +1 -1
- package/dist/components/SLoadingModal/SLoadingModal.cjs +68 -61
- package/dist/components/SLoadingModal/SLoadingModal.cjs.map +1 -1
- package/dist/components/SLoadingModal/SLoadingModal.js +68 -61
- package/dist/components/SLoadingModal/SLoadingModal.js.map +1 -1
- package/dist/components/SModalContainer/SModalContainer.cjs +9 -1
- package/dist/components/SModalContainer/SModalContainer.cjs.map +1 -1
- package/dist/components/SModalContainer/SModalContainer.js +9 -1
- package/dist/components/SModalContainer/SModalContainer.js.map +1 -1
- package/dist/components/SNumberInput/SNumberInput.cjs +334 -50
- package/dist/components/SNumberInput/SNumberInput.cjs.map +1 -1
- package/dist/components/SNumberInput/SNumberInput.d.ts +2 -0
- package/dist/components/SNumberInput/SNumberInput.js +334 -50
- package/dist/components/SNumberInput/SNumberInput.js.map +1 -1
- package/dist/components/SPagination/SPagination.cjs +1 -1
- package/dist/components/SPagination/SPagination.cjs.map +1 -1
- package/dist/components/SPagination/SPagination.js +1 -1
- package/dist/components/SPagination/SPagination.js.map +1 -1
- package/dist/components/SPopover/SPopover.cjs +20 -3
- package/dist/components/SPopover/SPopover.cjs.map +1 -1
- package/dist/components/SPopover/SPopover.js +20 -4
- package/dist/components/SPopover/SPopover.js.map +1 -1
- package/dist/components/SPopup/SPopup.cjs +2 -2
- package/dist/components/SPopup/SPopup.cjs.map +1 -1
- package/dist/components/SPopup/SPopup.js +2 -2
- package/dist/components/SPopup/SPopup.js.map +1 -1
- package/dist/components/SPortal/SPortal.cjs +8 -0
- package/dist/components/SPortal/SPortal.cjs.map +1 -1
- package/dist/components/SPortal/SPortal.js +8 -0
- package/dist/components/SPortal/SPortal.js.map +1 -1
- package/dist/components/SSelect/SSelect.cjs +76 -32
- package/dist/components/SSelect/SSelect.cjs.map +1 -1
- package/dist/components/SSelect/SSelect.js +76 -32
- package/dist/components/SSelect/SSelect.js.map +1 -1
- package/dist/components/STable/STable.cjs +133 -91
- package/dist/components/STable/STable.cjs.map +1 -1
- package/dist/components/STable/STable.js +133 -91
- package/dist/components/STable/STable.js.map +1 -1
- package/dist/components/STextLink/STextLink.cjs +137 -3
- package/dist/components/STextLink/STextLink.cjs.map +1 -1
- package/dist/components/STextLink/STextLink.d.ts +1 -1
- package/dist/components/STextLink/STextLink.js +118 -4
- package/dist/components/STextLink/STextLink.js.map +1 -1
- package/dist/components/STextarea/STextarea.cjs +226 -21
- package/dist/components/STextarea/STextarea.cjs.map +1 -1
- package/dist/components/STextarea/STextarea.js +226 -21
- package/dist/components/STextarea/STextarea.js.map +1 -1
- package/dist/components/SToast/SToast.cjs +8 -0
- package/dist/components/SToast/SToast.cjs.map +1 -1
- package/dist/components/SToast/SToast.js +8 -0
- package/dist/components/SToast/SToast.js.map +1 -1
- package/dist/components/SToast/SToastContainer.cjs +11 -3
- package/dist/components/SToast/SToastContainer.cjs.map +1 -1
- package/dist/components/SToast/SToastContainer.js +11 -3
- package/dist/components/SToast/SToastContainer.js.map +1 -1
- package/dist/components/STooltip/STooltip.cjs +217 -14
- package/dist/components/STooltip/STooltip.cjs.map +1 -1
- package/dist/components/STooltip/STooltip.js +217 -14
- package/dist/components/STooltip/STooltip.js.map +1 -1
- package/dist/index.cjs +532 -300
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +531 -300
- package/dist/index.js.map +1 -1
- package/dist/lib/floating-anim.cjs +8 -0
- package/dist/lib/floating-anim.cjs.map +1 -1
- package/dist/lib/floating-anim.d.ts +5 -1
- package/dist/lib/floating-anim.js +8 -0
- package/dist/lib/floating-anim.js.map +1 -1
- package/dist/styles.css +175 -66
- package/dist/theme.css +49 -22
- package/package.json +1 -1
|
@@ -25,12 +25,20 @@ function usePortalContainer() {
|
|
|
25
25
|
// src/lib/floating-anim.ts
|
|
26
26
|
var FLOATING_SLIDE_ANIM = [
|
|
27
27
|
"data-[state=open]:data-[side=top]:animate-floating-in-top",
|
|
28
|
+
"data-[state=delayed-open]:data-[side=top]:animate-floating-in-top",
|
|
29
|
+
"data-[state=instant-open]:data-[side=top]:animate-floating-in-top",
|
|
28
30
|
"data-[state=closed]:data-[side=top]:animate-floating-out-top",
|
|
29
31
|
"data-[state=open]:data-[side=bottom]:animate-floating-in-bottom",
|
|
32
|
+
"data-[state=delayed-open]:data-[side=bottom]:animate-floating-in-bottom",
|
|
33
|
+
"data-[state=instant-open]:data-[side=bottom]:animate-floating-in-bottom",
|
|
30
34
|
"data-[state=closed]:data-[side=bottom]:animate-floating-out-bottom",
|
|
31
35
|
"data-[state=open]:data-[side=left]:animate-floating-in-left",
|
|
36
|
+
"data-[state=delayed-open]:data-[side=left]:animate-floating-in-left",
|
|
37
|
+
"data-[state=instant-open]:data-[side=left]:animate-floating-in-left",
|
|
32
38
|
"data-[state=closed]:data-[side=left]:animate-floating-out-left",
|
|
33
39
|
"data-[state=open]:data-[side=right]:animate-floating-in-right",
|
|
40
|
+
"data-[state=delayed-open]:data-[side=right]:animate-floating-in-right",
|
|
41
|
+
"data-[state=instant-open]:data-[side=right]:animate-floating-in-right",
|
|
34
42
|
"data-[state=closed]:data-[side=right]:animate-floating-out-right"
|
|
35
43
|
].join(" ");
|
|
36
44
|
|
|
@@ -3124,7 +3132,7 @@ function SModalContainer({
|
|
|
3124
3132
|
]
|
|
3125
3133
|
}
|
|
3126
3134
|
) }),
|
|
3127
|
-
/* @__PURE__ */ jsx("div", { ref: setPortalContainer, className: "fixed left-0 top-0 z-[1001]" })
|
|
3135
|
+
/* @__PURE__ */ jsx("div", { ref: setPortalContainer, className: "pointer-events-auto fixed left-0 top-0 z-[1001]" })
|
|
3128
3136
|
] }) });
|
|
3129
3137
|
}
|
|
3130
3138
|
var VIEWBOX = 80;
|
|
@@ -3132,11 +3140,11 @@ var RADIUS = 34;
|
|
|
3132
3140
|
var STROKE = 12;
|
|
3133
3141
|
var CIRCUMFERENCE = 2 * Math.PI * RADIUS;
|
|
3134
3142
|
var COLOR_MAP = {
|
|
3135
|
-
primary: { arc: "var(--cmp-
|
|
3143
|
+
primary: { arc: "var(--cmp-progress-active-color)", track: "var(--cmp-progress-color-track)" },
|
|
3136
3144
|
// inverse: 어두운 배경용 — arc 흰색, track 은 흰색 40%(회색 링)
|
|
3137
3145
|
inverse: { arc: "var(--color-white)", track: "rgba(255,255,255,0.4)" },
|
|
3138
|
-
error: { arc: "var(--color-red-75)", track: "var(--cmp-
|
|
3139
|
-
complete: { arc: "#01BB4B", track: "var(--cmp-
|
|
3146
|
+
error: { arc: "var(--color-red-75)", track: "var(--cmp-progress-color-track)" },
|
|
3147
|
+
complete: { arc: "#01BB4B", track: "var(--cmp-progress-color-track)" }
|
|
3140
3148
|
};
|
|
3141
3149
|
var clamp = (v) => Number.isFinite(v) ? Math.max(0, Math.min(100, v)) : 0;
|
|
3142
3150
|
var SCircleProgress = forwardRef(
|
|
@@ -3150,65 +3158,63 @@ var SCircleProgress = forwardRef(
|
|
|
3150
3158
|
"div",
|
|
3151
3159
|
{
|
|
3152
3160
|
ref,
|
|
3153
|
-
className: cn(
|
|
3161
|
+
className: cn(
|
|
3162
|
+
"inline-flex flex-col items-center gap-[var(--cmp-progress-circular-gap)]",
|
|
3163
|
+
className
|
|
3164
|
+
),
|
|
3154
3165
|
style,
|
|
3155
3166
|
children: [
|
|
3156
|
-
/* @__PURE__ */ jsxs(
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
{
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3167
|
+
/* @__PURE__ */ jsxs(
|
|
3168
|
+
"svg",
|
|
3169
|
+
{
|
|
3170
|
+
viewBox: `0 0 ${VIEWBOX} ${VIEWBOX}`,
|
|
3171
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3172
|
+
className: cn("h-[80px] w-[80px]", indeterminate && "origin-center animate-circle-spin"),
|
|
3173
|
+
children: [
|
|
3174
|
+
/* @__PURE__ */ jsx(
|
|
3175
|
+
"circle",
|
|
3176
|
+
{
|
|
3177
|
+
cx: c,
|
|
3178
|
+
cy: c,
|
|
3179
|
+
r: RADIUS,
|
|
3180
|
+
fill: "none",
|
|
3181
|
+
strokeWidth: STROKE,
|
|
3182
|
+
style: { stroke: colors.track }
|
|
3183
|
+
}
|
|
3165
3184
|
),
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
cy: c,
|
|
3183
|
-
r: RADIUS,
|
|
3184
|
-
fill: "none",
|
|
3185
|
-
strokeWidth: STROKE,
|
|
3186
|
-
strokeLinecap: "round",
|
|
3187
|
-
className: cn(
|
|
3188
|
-
"origin-center",
|
|
3189
|
-
indeterminate ? "animate-circle-arc" : "-rotate-90 transition-[stroke-dasharray] duration-[400ms] ease-linear"
|
|
3190
|
-
),
|
|
3191
|
-
style: {
|
|
3192
|
-
stroke: colors.arc,
|
|
3193
|
-
...indeterminate ? {} : { strokeDasharray: `${filled} ${CIRCUMFERENCE}`, strokeDashoffset: 0 }
|
|
3194
|
-
}
|
|
3185
|
+
/* @__PURE__ */ jsx(
|
|
3186
|
+
"circle",
|
|
3187
|
+
{
|
|
3188
|
+
cx: c,
|
|
3189
|
+
cy: c,
|
|
3190
|
+
r: RADIUS,
|
|
3191
|
+
fill: "none",
|
|
3192
|
+
strokeWidth: STROKE,
|
|
3193
|
+
strokeLinecap: "round",
|
|
3194
|
+
className: cn(
|
|
3195
|
+
"origin-center",
|
|
3196
|
+
indeterminate ? "animate-circle-arc" : "-rotate-90 transition-[stroke-dasharray] duration-[400ms] ease-linear"
|
|
3197
|
+
),
|
|
3198
|
+
style: {
|
|
3199
|
+
stroke: colors.arc,
|
|
3200
|
+
...indeterminate ? {} : { strokeDasharray: `${filled} ${CIRCUMFERENCE}`, strokeDashoffset: 0 }
|
|
3195
3201
|
}
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3202
|
+
}
|
|
3203
|
+
)
|
|
3204
|
+
]
|
|
3205
|
+
}
|
|
3206
|
+
),
|
|
3207
|
+
!indeterminate && /* @__PURE__ */ jsxs(
|
|
3208
|
+
"span",
|
|
3209
|
+
{
|
|
3210
|
+
className: "text-center text-[16px] font-bold leading-[26px]",
|
|
3211
|
+
style: { color: percentColor },
|
|
3212
|
+
children: [
|
|
3213
|
+
Math.round(v),
|
|
3214
|
+
"%"
|
|
3215
|
+
]
|
|
3216
|
+
}
|
|
3217
|
+
),
|
|
3212
3218
|
label && /* @__PURE__ */ jsx("span", { className: "text-center text-[12px] font-normal leading-[20px] text-[color:var(--cmp-progress-color-label)]", children: label })
|
|
3213
3219
|
]
|
|
3214
3220
|
}
|
|
@@ -3382,7 +3388,7 @@ var SButton = forwardRef(function SButton2({
|
|
|
3382
3388
|
);
|
|
3383
3389
|
});
|
|
3384
3390
|
var DEFAULT_MESSAGE = {
|
|
3385
|
-
loading: "",
|
|
3391
|
+
loading: "\uC791\uC5C5 \uC9C4\uD589\uC911...",
|
|
3386
3392
|
error: "\uC791\uC5C5\uC5D0 \uC2E4\uD328\uD558\uC600\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694."
|
|
3387
3393
|
};
|
|
3388
3394
|
var DEFAULT_BUTTON_LABEL = {
|
|
@@ -3404,6 +3410,7 @@ function SLoadingModal({
|
|
|
3404
3410
|
}) {
|
|
3405
3411
|
const resolvedMessage = message ?? DEFAULT_MESSAGE[state];
|
|
3406
3412
|
const lines = Array.isArray(resolvedMessage) ? resolvedMessage : resolvedMessage ? [resolvedMessage] : [];
|
|
3413
|
+
const showButton = useButton || state === "error";
|
|
3407
3414
|
return /* @__PURE__ */ jsx(
|
|
3408
3415
|
SModalContainer,
|
|
3409
3416
|
{
|
|
@@ -3423,7 +3430,7 @@ function SLoadingModal({
|
|
|
3423
3430
|
},
|
|
3424
3431
|
i
|
|
3425
3432
|
)) }),
|
|
3426
|
-
|
|
3433
|
+
showButton && /* @__PURE__ */ jsx(
|
|
3427
3434
|
SButton,
|
|
3428
3435
|
{
|
|
3429
3436
|
color: "neutral",
|