@herca/r-kit 0.0.68 → 0.0.69
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/clients.cjs +36 -3
- package/dist/clients.cjs.map +1 -1
- package/dist/clients.d.cts +8 -4
- package/dist/clients.d.ts +8 -4
- package/dist/clients.js +35 -3
- package/dist/clients.js.map +1 -1
- package/package.json +1 -1
package/dist/clients.cjs
CHANGED
|
@@ -78,6 +78,7 @@ __export(clients_exports, {
|
|
|
78
78
|
RadioVariants: () => RadioVariants,
|
|
79
79
|
Select: () => Select,
|
|
80
80
|
Sheet: () => Sheet,
|
|
81
|
+
SheetBody: () => SheetBody,
|
|
81
82
|
SheetClose: () => SheetClose,
|
|
82
83
|
SheetContent: () => SheetContent,
|
|
83
84
|
SheetDescription: () => SheetDescription,
|
|
@@ -11275,6 +11276,13 @@ var Icon_default = Icon;
|
|
|
11275
11276
|
var React395 = require("react");
|
|
11276
11277
|
var SheetPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
11277
11278
|
var import_jsx_runtime403 = require("react/jsx-runtime");
|
|
11279
|
+
var sheetSizeClasses = {
|
|
11280
|
+
sm: "w-1/4 sm:max-w-sm",
|
|
11281
|
+
md: "w-1/3 sm:max-w-md",
|
|
11282
|
+
lg: "w-1/2 sm:max-w-lg",
|
|
11283
|
+
xl: "w-2/3 sm:max-w-xl",
|
|
11284
|
+
full: "w-full"
|
|
11285
|
+
};
|
|
11278
11286
|
function Sheet({ ...props }) {
|
|
11279
11287
|
return /* @__PURE__ */ (0, import_jsx_runtime403.jsx)(SheetPrimitive.Root, { "data-slot": "sheet", ...props });
|
|
11280
11288
|
}
|
|
@@ -11313,6 +11321,7 @@ function SheetContent({
|
|
|
11313
11321
|
className,
|
|
11314
11322
|
children,
|
|
11315
11323
|
side = "right",
|
|
11324
|
+
size = "md",
|
|
11316
11325
|
...props
|
|
11317
11326
|
}) {
|
|
11318
11327
|
return /* @__PURE__ */ (0, import_jsx_runtime403.jsxs)(SheetPortal, { children: [
|
|
@@ -11322,9 +11331,19 @@ function SheetContent({
|
|
|
11322
11331
|
{
|
|
11323
11332
|
"data-slot": "sheet-content",
|
|
11324
11333
|
className: cn(
|
|
11325
|
-
"
|
|
11326
|
-
|
|
11327
|
-
|
|
11334
|
+
"fixed z-50 flex flex-col gap-4 border-gray-200 bg-white shadow-lg transition ease-in-out",
|
|
11335
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
11336
|
+
"data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
11337
|
+
side === "right" && cn(
|
|
11338
|
+
"inset-y-0 right-0 h-full border-l",
|
|
11339
|
+
"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right",
|
|
11340
|
+
sheetSizeClasses[size]
|
|
11341
|
+
),
|
|
11342
|
+
side === "left" && cn(
|
|
11343
|
+
"inset-y-0 left-0 h-full border-r",
|
|
11344
|
+
"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left",
|
|
11345
|
+
sheetSizeClasses[size]
|
|
11346
|
+
),
|
|
11328
11347
|
side === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
|
|
11329
11348
|
side === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",
|
|
11330
11349
|
className
|
|
@@ -11381,6 +11400,19 @@ function SheetDescription({
|
|
|
11381
11400
|
}
|
|
11382
11401
|
);
|
|
11383
11402
|
}
|
|
11403
|
+
function SheetBody({
|
|
11404
|
+
className,
|
|
11405
|
+
...props
|
|
11406
|
+
}) {
|
|
11407
|
+
return /* @__PURE__ */ (0, import_jsx_runtime403.jsx)(
|
|
11408
|
+
SheetPrimitive.Description,
|
|
11409
|
+
{
|
|
11410
|
+
"data-slot": "sheet-description",
|
|
11411
|
+
className: cn("flex flex-col gap-1.5 p-4", className),
|
|
11412
|
+
...props
|
|
11413
|
+
}
|
|
11414
|
+
);
|
|
11415
|
+
}
|
|
11384
11416
|
|
|
11385
11417
|
// src/components/sidebar/contex.ts
|
|
11386
11418
|
var import_react393 = __toESM(require("react"), 1);
|
|
@@ -36553,6 +36585,7 @@ var Radio = ({ label, description, className, size: sizeProp, ...props }) => {
|
|
|
36553
36585
|
RadioVariants,
|
|
36554
36586
|
Select,
|
|
36555
36587
|
Sheet,
|
|
36588
|
+
SheetBody,
|
|
36556
36589
|
SheetClose,
|
|
36557
36590
|
SheetContent,
|
|
36558
36591
|
SheetDescription,
|