@t3q-ui/design-system 1.61.2 → 1.61.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ <!-- release: v1.61.4 -->
4
+ ## 1.61.4 (2026-11-16)
5
+
6
+
7
+ ### Bug Fixes
8
+
9
+ * **cli:** :bug: doctor·setup 이 Preflight 를 뺀 분할 형태(tailwindcss/utilities)의 진입 CSS 도 Tailwind v4 로 인식 (82eda70)
10
+
11
+ <!-- release: v1.61.3 -->
12
+ ## 1.61.3 (2026-11-15)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * **button:** :bug: asChild 일 때도 자식 요소의 글자를 라벨 칸으로 감싼다 (6e4d433)
18
+
3
19
  <!-- release: v1.61.2 -->
4
20
  ## 1.61.2 (2026-11-11)
5
21
 
package/README.md CHANGED
@@ -25,7 +25,7 @@ npm 이면 `npm install --save-exact @t3q-ui/design-system` 뒤 `npx t3q-design
25
25
 
26
26
  | 파일 | 내용 |
27
27
  |---|---|
28
- | 진입 CSS (`@import 'tailwindcss'` 가 있는 파일) | TDS `styles.css` import(새로 넣을 때는 `fonts.css` 도 함께). 이미 `styles.css` 를 쓰는 레포엔 `fonts.css` 를 넣지 않습니다. 후보가 둘 이상이면 손대지 않고 붙여넣을 줄을 알려 줍니다 |
28
+ | 진입 CSS (`@import 'tailwindcss'` 가 있는 파일. Preflight 를 빼고 `tailwindcss/theme.css` · `tailwindcss/utilities.css` 로 나눠 쓰는 형태는 `utilities` 줄이 있는 파일) | TDS `styles.css` import(새로 넣을 때는 `fonts.css` 도 함께). 이미 `styles.css` 를 쓰는 레포엔 `fonts.css` 를 넣지 않습니다. 후보가 둘 이상이면 손대지 않고 붙여넣을 줄을 알려 줍니다 |
29
29
  | `AGENTS.md` | TDS UI 규칙 블록(`<!-- tds:start -->` … `<!-- tds:end -->`). 블록 밖은 건드리지 않습니다 |
30
30
  | `CLAUDE.md` | `@AGENTS.md` 한 줄 (없을 때만 추가) |
31
31
  | `.claude/skills/tds/` | `/tds` Skill — 새 화면을 만드는 절차 |
package/cli/lib.mjs CHANGED
@@ -189,12 +189,15 @@ const PRUNE = new Set([
189
189
  'coverage',
190
190
  'storybook-static',
191
191
  ])
192
- const TW4_RE = /^[ \t]*@import\s+["']tailwindcss["'][^\r\n]*$/m
192
+ const TW4_RE = /^[ \t]*@import\s+["']tailwindcss(?:\/utilities(?:\.css)?)?["'][^\r\n]*$/m
193
193
  const TW3_RE = /^[ \t]*@tailwind\s+base\b/m
194
194
  const HAS_STYLES_RE = /@import\s+["']@t3q-ui\/design-system\/styles\.css["']/
195
195
  const HAS_FONTS_RE = /@import\s+["']@t3q-ui\/design-system\/fonts\.css["']/
196
196
 
197
- /** cwd 아래 .css 를 훑어 { v4: [`@import 'tailwindcss'` 가 있는 파일], v3: [`@tailwind base` 가 있는 파일] } (cwd 기준 상대경로) */
197
+ /**
198
+ * cwd 아래 .css 를 훑어 { v4: [`@import 'tailwindcss'` 또는 Preflight 를 뺀 분할 형태의 `tailwindcss/utilities` 가 있는 파일],
199
+ * v3: [`@tailwind base` 가 있는 파일] } (cwd 기준 상대경로)
200
+ */
198
201
  export function findCss(cwd) {
199
202
  const v4 = []
200
203
  const v3 = []
@@ -225,7 +228,7 @@ export const hasStylesImport = (css) => HAS_STYLES_RE.test(css)
225
228
  export const hasFontsImport = (css) => HAS_FONTS_RE.test(css)
226
229
 
227
230
  /**
228
- * `@import 'tailwindcss'` 줄 바로 아래에 TDS import 를 끼운다.
231
+ * `@import 'tailwindcss'` 줄 바로 아래에 TDS import 를 끼운다. 분할 형태(theme.css + utilities.css)면 `tailwindcss/utilities` 줄 아래.
229
232
  * - styles.css 가 없으면 넣는다. 그 파일에 TDS import 가 하나도 없던 새 레포면 fonts.css 도 같이 넣는다.
230
233
  * - styles.css 가 이미 있으면 아무것도 안 넣는다 — 그 레포는 글꼴 로드 방식을 이미 정한 것이다 (dl-ui-v3: next/font).
231
234
  * 바꿀 게 없으면 원문 그대로, tailwind import 줄이 없으면 null.
@@ -1238,11 +1238,13 @@ var Button = React12__namespace.forwardRef(
1238
1238
  }, ref) => {
1239
1239
  const Comp = asChild ? reactSlot.Slot : "button";
1240
1240
  const resolvedWeightClass = buttonWeightVariants[weight ?? defaultButtonVariants.weight];
1241
+ const slotChild = asChild && React12__namespace.isValidElement(children) ? children : null;
1242
+ const labelSource = slotChild ? slotChild.props.children : children;
1241
1243
  const processedChildren = React12__namespace.useMemo(() => {
1242
1244
  const flatten = (nodes) => React12__namespace.Children.toArray(nodes).flatMap(
1243
1245
  (child) => React12__namespace.isValidElement(child) && child.type === React12__namespace.Fragment ? flatten(child.props.children) : [child]
1244
1246
  );
1245
- const childrenArray = flatten(children);
1247
+ const childrenArray = flatten(labelSource);
1246
1248
  const result = [];
1247
1249
  let textBuffer = [];
1248
1250
  const flushTextBuffer = () => {
@@ -1271,7 +1273,7 @@ var Button = React12__namespace.forwardRef(
1271
1273
  });
1272
1274
  flushTextBuffer();
1273
1275
  return /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex items-center justify-center shrink-0", children: result });
1274
- }, [children, resolvedWeightClass]);
1276
+ }, [labelSource, resolvedWeightClass]);
1275
1277
  return /* @__PURE__ */ jsxRuntime.jsxs(
1276
1278
  Comp,
1277
1279
  {
@@ -1287,7 +1289,7 @@ var Button = React12__namespace.forwardRef(
1287
1289
  size: "medium"
1288
1290
  }
1289
1291
  ) }),
1290
- /* @__PURE__ */ jsxRuntime.jsx(reactSlot.Slottable, { children: asChild ? children : processedChildren })
1292
+ /* @__PURE__ */ jsxRuntime.jsx(reactSlot.Slottable, { children: slotChild ? React12__namespace.cloneElement(slotChild, void 0, processedChildren) : asChild ? children : processedChildren })
1291
1293
  ]
1292
1294
  }
1293
1295
  );
@@ -4657,5 +4659,5 @@ exports.withNumberColumnWidth = withNumberColumnWidth;
4657
4659
  exports.withSortIconOffset = withSortIconOffset;
4658
4660
  exports.withTypeClasses = withTypeClasses;
4659
4661
  exports.withWidthFloor = withWidthFloor;
4660
- //# sourceMappingURL=chunk-BL6W75OG.cjs.map
4661
- //# sourceMappingURL=chunk-BL6W75OG.cjs.map
4662
+ //# sourceMappingURL=chunk-BTYTVCQG.cjs.map
4663
+ //# sourceMappingURL=chunk-BTYTVCQG.cjs.map