sellmate-design-system-react 9.0.0-beta.98 → 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/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)",
@@ -4289,7 +4308,14 @@ var SButton = /* @__PURE__ */ forwardRef(function SButton2({
4289
4308
  ...props,
4290
4309
  children: [
4291
4310
  iconNode,
4292
- hasLabel && /* @__PURE__ */ jsx("span", { className: "inline-flex items-center justify-center", children: label }),
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
+ ),
4293
4319
  rightIconNode
4294
4320
  ]
4295
4321
  }