@t3q-ui/design-system 1.61.1 → 1.61.3

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.3 -->
4
+ ## 1.61.3 (2026-11-15)
5
+
6
+
7
+ ### Bug Fixes
8
+
9
+ * **button:** :bug: asChild 일 때도 자식 요소의 글자를 라벨 칸으로 감싼다 (6e4d433)
10
+
11
+ <!-- release: v1.61.2 -->
12
+ ## 1.61.2 (2026-11-11)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * **agGridTable:** :bug: 선택 열 체크박스·라디오·포커스 링이 말줄임 overflow 에 잘리던 문제 (2ecd37b)
18
+
3
19
  <!-- release: v1.61.1 -->
4
20
  ## 1.61.1 (2026-11-10)
5
21
 
@@ -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