@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 +16 -0
- package/dist/{chunk-BL6W75OG.cjs → chunk-BTYTVCQG.cjs} +7 -5
- package/dist/chunk-BTYTVCQG.cjs.map +1 -0
- package/dist/{chunk-BGQ5WONC.js → chunk-LBGSVYNB.js} +7 -5
- package/dist/chunk-LBGSVYNB.js.map +1 -0
- package/dist/index.cjs +463 -463
- package/dist/index.css +3 -0
- package/dist/index.css.map +1 -1
- package/dist/index.js +2 -2
- package/dist/patterns/index.cjs +69 -69
- package/dist/patterns/index.css +3 -0
- package/dist/patterns/index.css.map +1 -1
- package/dist/patterns/index.js +1 -1
- package/dist/styles.css +8 -0
- package/package.json +4 -1
- package/dist/chunk-BGQ5WONC.js.map +0 -1
- package/dist/chunk-BL6W75OG.cjs.map +0 -1
|
@@ -1207,11 +1207,13 @@ var Button = React12.forwardRef(
|
|
|
1207
1207
|
}, ref) => {
|
|
1208
1208
|
const Comp = asChild ? Slot : "button";
|
|
1209
1209
|
const resolvedWeightClass = buttonWeightVariants[weight ?? defaultButtonVariants.weight];
|
|
1210
|
+
const slotChild = asChild && React12.isValidElement(children) ? children : null;
|
|
1211
|
+
const labelSource = slotChild ? slotChild.props.children : children;
|
|
1210
1212
|
const processedChildren = React12.useMemo(() => {
|
|
1211
1213
|
const flatten = (nodes) => React12.Children.toArray(nodes).flatMap(
|
|
1212
1214
|
(child) => React12.isValidElement(child) && child.type === React12.Fragment ? flatten(child.props.children) : [child]
|
|
1213
1215
|
);
|
|
1214
|
-
const childrenArray = flatten(
|
|
1216
|
+
const childrenArray = flatten(labelSource);
|
|
1215
1217
|
const result = [];
|
|
1216
1218
|
let textBuffer = [];
|
|
1217
1219
|
const flushTextBuffer = () => {
|
|
@@ -1240,7 +1242,7 @@ var Button = React12.forwardRef(
|
|
|
1240
1242
|
});
|
|
1241
1243
|
flushTextBuffer();
|
|
1242
1244
|
return /* @__PURE__ */ jsx("span", { className: "flex items-center justify-center shrink-0", children: result });
|
|
1243
|
-
}, [
|
|
1245
|
+
}, [labelSource, resolvedWeightClass]);
|
|
1244
1246
|
return /* @__PURE__ */ jsxs(
|
|
1245
1247
|
Comp,
|
|
1246
1248
|
{
|
|
@@ -1256,7 +1258,7 @@ var Button = React12.forwardRef(
|
|
|
1256
1258
|
size: "medium"
|
|
1257
1259
|
}
|
|
1258
1260
|
) }),
|
|
1259
|
-
/* @__PURE__ */ jsx(Slottable, { children: asChild ? children : processedChildren })
|
|
1261
|
+
/* @__PURE__ */ jsx(Slottable, { children: slotChild ? React12.cloneElement(slotChild, void 0, processedChildren) : asChild ? children : processedChildren })
|
|
1260
1262
|
]
|
|
1261
1263
|
}
|
|
1262
1264
|
);
|
|
@@ -4499,5 +4501,5 @@ function TwoLineCellRenderer(params) {
|
|
|
4499
4501
|
}
|
|
4500
4502
|
|
|
4501
4503
|
export { AG_GRID_LOCALE_KR, AgGridContext, AgGridTable, Alert, AlertActions, AlertDescription, AlertTitle, BADGE_OUTLINE_ACCENT, BALANCED_FILL_MIN_WIDTH, Badge, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardThumbnail, CardTitle, Checkbox, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuPortal, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyBoxIllustration, Form, FormControl, FormDescription, FormField, FormFooter, FormHeader, FormItem, FormLabel, FormMessage, FormSection, FormSectionLevelContext, FormValidMessage, HeaderCheckboxRenderer, IconButton, LucideIcon, NUMBER_COLUMN_CLASS, NUMBER_COLUMN_WIDTH, PageHeader, PageHeaderProvider, Pagination, PaginationContent, PaginationFirst, PaginationItem, PaginationLast, PaginationLink, PaginationNext, PaginationPrevious, PaginationWrapper, Panel, RowCheckboxRenderer, SORT_ICON_OFFSET_CLASS, Separator, Skeleton, SortIcon, Spinner, Stack, Table, TableBody, TableCell, TableHead, TableHeader, TablePagination, TableRow, TableSkeleton, Tabs, TabsContent, TabsList, TabsTrigger, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TwoLineCellRenderer, alignFromClassName, badgeVariants, buttonVariants, cn, estimateHeaderTextWidth, fitColumnsToContent, getPaginationRange, getSortedColumnState, growColumnIds, sanitizeUserText, useFormControlContext, useFormField, usePageHeader, useRestoreFocusToOpener, withBalancedFill, withExplicitSortIcons, withFlexFill, withHeaderMinWidth, withNumberColumnWidth, withSortIconOffset, withTypeClasses, withWidthFloor };
|
|
4502
|
-
//# sourceMappingURL=chunk-
|
|
4503
|
-
//# sourceMappingURL=chunk-
|
|
4504
|
+
//# sourceMappingURL=chunk-LBGSVYNB.js.map
|
|
4505
|
+
//# sourceMappingURL=chunk-LBGSVYNB.js.map
|