sellmate-design-system-react 9.0.0-beta.97 → 9.0.0-beta.99
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/AGENTS.md +5 -0
- package/dist/components/SButton/README.md +3 -2
- package/dist/components/SButton/SButton.d.ts +13 -2
- package/dist/components/SButton/button.config.d.ts +3 -1
- package/dist/index.cjs +31 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +31 -3
- package/dist/index.js.map +1 -1
- package/dist/llms-full.txt +8 -2
- package/dist/llms.txt +5 -0
- package/dist/styles.css +6 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4124,7 +4124,7 @@ var SBadge = /* @__PURE__ */ forwardRef(function SBadge2({ color = "blue", class
|
|
|
4124
4124
|
|
|
4125
4125
|
// src/components/SButton/button.config.ts
|
|
4126
4126
|
var BUTTON_COLORS = ["primary", "secondary", "neutral", "danger"];
|
|
4127
|
-
var BUTTON_SIZES = ["xs", "sm", "md", "lg"];
|
|
4127
|
+
var BUTTON_SIZES = ["xxs", "xs", "sm", "md", "lg"];
|
|
4128
4128
|
var V = (path) => `var(--cmp-button-${path})`;
|
|
4129
4129
|
function buttonPreset(color, outline) {
|
|
4130
4130
|
switch (color) {
|
|
@@ -4175,6 +4175,25 @@ function buttonPreset(color, outline) {
|
|
|
4175
4175
|
}
|
|
4176
4176
|
}
|
|
4177
4177
|
var BUTTON_SIZE_CONFIG = {
|
|
4178
|
+
/**
|
|
4179
|
+
* 본문 텍스트 사이에 끼워 서는 버튼 — 높이가 본문 줄 높이(12px/20px)와 같아 줄이 벌어지지 않는다.
|
|
4180
|
+
* 버튼 xxs 컴포넌트 토큰(--cmp-button-xxs-*)이 아직 없어 공용 토큰으로 둔다. 디자인팀이 내면 바꾼다.
|
|
4181
|
+
*/
|
|
4182
|
+
xxs: {
|
|
4183
|
+
height: "var(--spacing-sd-20)",
|
|
4184
|
+
paddingX: "var(--spacing-sd-6)",
|
|
4185
|
+
gap: "var(--spacing-sd-4)",
|
|
4186
|
+
iconSize: "var(--cmp-button-xs-icon)",
|
|
4187
|
+
iconOnlyWidth: "var(--spacing-sd-20)",
|
|
4188
|
+
fontSize: 11,
|
|
4189
|
+
fontWeight: 500,
|
|
4190
|
+
radius: "var(--cmp-button-radius-sm)",
|
|
4191
|
+
// 번호 하나·짧은 낱말이 그대로 서야 해서 최소 폭을 두지 않는다
|
|
4192
|
+
minWidth: 0,
|
|
4193
|
+
// 11px 글자의 글꼴 상자(13px)가 안쪽 높이(18px)에 반 픽셀 자리로 놓이고, Pretendard 는 위가 넓어
|
|
4194
|
+
// 한글이 0.8px 위로 쏠린다. 라벨에 위 여백 1px 을 줘 0.5px 내린다 — 글자 크기·높이를 바꾸면 다시 잰다
|
|
4195
|
+
labelOffsetTop: "1px"
|
|
4196
|
+
},
|
|
4178
4197
|
xs: {
|
|
4179
4198
|
height: "var(--cmp-button-xs-height)",
|
|
4180
4199
|
paddingX: "var(--cmp-button-xs-paddingX)",
|
|
@@ -4232,6 +4251,7 @@ var SButton = /* @__PURE__ */ forwardRef(function SButton2({
|
|
|
4232
4251
|
icon,
|
|
4233
4252
|
rightIcon,
|
|
4234
4253
|
label,
|
|
4254
|
+
pill = false,
|
|
4235
4255
|
className,
|
|
4236
4256
|
style,
|
|
4237
4257
|
type = "button",
|
|
@@ -4262,7 +4282,8 @@ var SButton = /* @__PURE__ */ forwardRef(function SButton2({
|
|
|
4262
4282
|
"minHeight": s.height,
|
|
4263
4283
|
"minWidth": iconOnly ? s.iconOnlyWidth : hasLabel ? s.minWidth : void 0,
|
|
4264
4284
|
"padding": iconOnly ? 0 : `0 ${s.paddingX}`,
|
|
4265
|
-
|
|
4285
|
+
// 버튼 전용 pill 반경 토큰이 아직 없어 공용 반경을 쓴다
|
|
4286
|
+
"borderRadius": pill ? "var(--radius-full)" : s.radius,
|
|
4266
4287
|
"gap": s.gap,
|
|
4267
4288
|
"fontSize": s.fontSize,
|
|
4268
4289
|
"fontWeight": s.fontWeight,
|
|
@@ -4287,7 +4308,14 @@ var SButton = /* @__PURE__ */ forwardRef(function SButton2({
|
|
|
4287
4308
|
...props,
|
|
4288
4309
|
children: [
|
|
4289
4310
|
iconNode,
|
|
4290
|
-
hasLabel && /* @__PURE__ */ jsx(
|
|
4311
|
+
hasLabel && /* @__PURE__ */ jsx(
|
|
4312
|
+
"span",
|
|
4313
|
+
{
|
|
4314
|
+
className: "inline-flex items-center justify-center",
|
|
4315
|
+
style: s.labelOffsetTop ? { paddingTop: s.labelOffsetTop } : void 0,
|
|
4316
|
+
children: label
|
|
4317
|
+
}
|
|
4318
|
+
),
|
|
4291
4319
|
rightIconNode
|
|
4292
4320
|
]
|
|
4293
4321
|
}
|