@pactor-app/ui 1.34.0 → 1.40.0
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/{chunk-U5EFJR5Z.js → chunk-F5JY3PBE.js} +1 -1
- package/dist/{chunk-RB7RCKAX.js → chunk-IBMIQXOM.js} +37 -37
- package/dist/{chunk-X54WOK3C.js → chunk-MGBEGZCH.js} +5244 -1670
- package/dist/{chunk-WYISCB4V.js → chunk-PRXLVTBS.js} +17 -10
- package/dist/{chunk-44DAGWXZ.js → chunk-PWXXEJ4J.js} +57 -26
- package/dist/{chunk-QQBAMERO.js → chunk-XRPL536L.js} +2 -2
- package/dist/components/index.cjs +5684 -2075
- package/dist/components/index.d.cts +764 -48
- package/dist/components/index.d.ts +764 -48
- package/dist/components/index.js +38 -4
- package/dist/index.cjs +5822 -2213
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +40 -6
- package/dist/interaction/index.cjs +1 -1
- package/dist/interaction/index.js +1 -1
- package/dist/layout/index.cjs +54 -25
- package/dist/layout/index.js +3 -3
- package/dist/ui/index.cjs +13 -6
- package/dist/ui/index.d.cts +8 -5
- package/dist/ui/index.d.ts +8 -5
- package/dist/ui/index.js +2 -2
- package/package.json +8 -7
- package/styles.css +223 -0
|
@@ -443,7 +443,7 @@ function ShadcnDrawerView({
|
|
|
443
443
|
"data-slot": "drawer-panel",
|
|
444
444
|
className: cn(entry.width !== void 0 && "sm:max-w-none"),
|
|
445
445
|
style: panelStyle,
|
|
446
|
-
overlayProps: {
|
|
446
|
+
overlayProps: { onPointerDown: onCancel },
|
|
447
447
|
children: [
|
|
448
448
|
/* @__PURE__ */ jsxs2(
|
|
449
449
|
DrawerHeader,
|
|
@@ -238,18 +238,31 @@ function CardFooter({ className, ...props }) {
|
|
|
238
238
|
);
|
|
239
239
|
}
|
|
240
240
|
|
|
241
|
+
// src/ui/skeleton.tsx
|
|
242
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
243
|
+
function Skeleton({ className, ...props }) {
|
|
244
|
+
return /* @__PURE__ */ jsx4(
|
|
245
|
+
"div",
|
|
246
|
+
{
|
|
247
|
+
"data-slot": "skeleton",
|
|
248
|
+
className: cn("animate-pulse rounded-md bg-muted", className),
|
|
249
|
+
...props
|
|
250
|
+
}
|
|
251
|
+
);
|
|
252
|
+
}
|
|
253
|
+
|
|
241
254
|
// src/ui/popover.tsx
|
|
242
255
|
import { Popover as PopoverPrimitive } from "@base-ui/react/popover";
|
|
243
|
-
import { jsx as
|
|
256
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
244
257
|
function Popover({
|
|
245
258
|
...props
|
|
246
259
|
}) {
|
|
247
|
-
return /* @__PURE__ */
|
|
260
|
+
return /* @__PURE__ */ jsx5(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
|
|
248
261
|
}
|
|
249
262
|
function PopoverTrigger({
|
|
250
263
|
...props
|
|
251
264
|
}) {
|
|
252
|
-
return /* @__PURE__ */
|
|
265
|
+
return /* @__PURE__ */ jsx5(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
|
|
253
266
|
}
|
|
254
267
|
function PopoverContent({
|
|
255
268
|
className,
|
|
@@ -259,7 +272,7 @@ function PopoverContent({
|
|
|
259
272
|
anchor,
|
|
260
273
|
...props
|
|
261
274
|
}) {
|
|
262
|
-
return /* @__PURE__ */
|
|
275
|
+
return /* @__PURE__ */ jsx5(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx5(
|
|
263
276
|
PopoverPrimitive.Positioner,
|
|
264
277
|
{
|
|
265
278
|
align,
|
|
@@ -267,7 +280,7 @@ function PopoverContent({
|
|
|
267
280
|
sideOffset,
|
|
268
281
|
anchor,
|
|
269
282
|
className: "isolate z-50",
|
|
270
|
-
children: /* @__PURE__ */
|
|
283
|
+
children: /* @__PURE__ */ jsx5(
|
|
271
284
|
PopoverPrimitive.Popup,
|
|
272
285
|
{
|
|
273
286
|
"data-slot": "popover-content",
|
|
@@ -283,9 +296,9 @@ function PopoverContent({
|
|
|
283
296
|
}
|
|
284
297
|
|
|
285
298
|
// src/ui/input.tsx
|
|
286
|
-
import { jsx as
|
|
299
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
287
300
|
function Input({ className, type, ...props }) {
|
|
288
|
-
return /* @__PURE__ */
|
|
301
|
+
return /* @__PURE__ */ jsx6(
|
|
289
302
|
"input",
|
|
290
303
|
{
|
|
291
304
|
type,
|
|
@@ -301,14 +314,14 @@ function Input({ className, type, ...props }) {
|
|
|
301
314
|
|
|
302
315
|
// src/ui/separator.tsx
|
|
303
316
|
import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";
|
|
304
|
-
import { jsx as
|
|
317
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
305
318
|
function Separator({
|
|
306
319
|
className,
|
|
307
320
|
orientation = "horizontal",
|
|
308
321
|
decorative: _decorative,
|
|
309
322
|
...props
|
|
310
323
|
}) {
|
|
311
|
-
return /* @__PURE__ */
|
|
324
|
+
return /* @__PURE__ */ jsx7(
|
|
312
325
|
SeparatorPrimitive,
|
|
313
326
|
{
|
|
314
327
|
"data-slot": "separator",
|
|
@@ -326,32 +339,32 @@ function Separator({
|
|
|
326
339
|
import { Dialog as DialogPrimitive } from "@base-ui/react/dialog";
|
|
327
340
|
import { XIcon } from "lucide-react";
|
|
328
341
|
import { cva } from "class-variance-authority";
|
|
329
|
-
import { jsx as
|
|
342
|
+
import { jsx as jsx8, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
330
343
|
function Sheet({
|
|
331
344
|
...props
|
|
332
345
|
}) {
|
|
333
|
-
return /* @__PURE__ */
|
|
346
|
+
return /* @__PURE__ */ jsx8(DialogPrimitive.Root, { "data-slot": "sheet", ...props });
|
|
334
347
|
}
|
|
335
348
|
function SheetTrigger({
|
|
336
349
|
...props
|
|
337
350
|
}) {
|
|
338
|
-
return /* @__PURE__ */
|
|
351
|
+
return /* @__PURE__ */ jsx8(DialogPrimitive.Trigger, { "data-slot": "sheet-trigger", ...props });
|
|
339
352
|
}
|
|
340
353
|
function SheetClose({
|
|
341
354
|
...props
|
|
342
355
|
}) {
|
|
343
|
-
return /* @__PURE__ */
|
|
356
|
+
return /* @__PURE__ */ jsx8(DialogPrimitive.Close, { "data-slot": "sheet-close", ...props });
|
|
344
357
|
}
|
|
345
358
|
function SheetPortal({
|
|
346
359
|
...props
|
|
347
360
|
}) {
|
|
348
|
-
return /* @__PURE__ */
|
|
361
|
+
return /* @__PURE__ */ jsx8(DialogPrimitive.Portal, { "data-slot": "sheet-portal", ...props });
|
|
349
362
|
}
|
|
350
363
|
function SheetOverlay({
|
|
351
364
|
className,
|
|
352
365
|
...props
|
|
353
366
|
}) {
|
|
354
|
-
return /* @__PURE__ */
|
|
367
|
+
return /* @__PURE__ */ jsx8(
|
|
355
368
|
DialogPrimitive.Backdrop,
|
|
356
369
|
{
|
|
357
370
|
"data-slot": "sheet-overlay",
|
|
@@ -386,7 +399,7 @@ function SheetContent({
|
|
|
386
399
|
...props
|
|
387
400
|
}) {
|
|
388
401
|
return /* @__PURE__ */ jsxs3(SheetPortal, { "data-slot": "sheet-portal", children: [
|
|
389
|
-
/* @__PURE__ */
|
|
402
|
+
/* @__PURE__ */ jsx8(SheetOverlay, {}),
|
|
390
403
|
/* @__PURE__ */ jsxs3(
|
|
391
404
|
DialogPrimitive.Popup,
|
|
392
405
|
{
|
|
@@ -399,7 +412,7 @@ function SheetContent({
|
|
|
399
412
|
DialogPrimitive.Close,
|
|
400
413
|
{
|
|
401
414
|
"data-slot": "sheet-close",
|
|
402
|
-
render: /* @__PURE__ */
|
|
415
|
+
render: /* @__PURE__ */ jsx8(
|
|
403
416
|
"button",
|
|
404
417
|
{
|
|
405
418
|
type: "button",
|
|
@@ -407,8 +420,8 @@ function SheetContent({
|
|
|
407
420
|
}
|
|
408
421
|
),
|
|
409
422
|
children: [
|
|
410
|
-
/* @__PURE__ */
|
|
411
|
-
/* @__PURE__ */
|
|
423
|
+
/* @__PURE__ */ jsx8(XIcon, {}),
|
|
424
|
+
/* @__PURE__ */ jsx8("span", { className: "sr-only", children: "Close" })
|
|
412
425
|
]
|
|
413
426
|
}
|
|
414
427
|
)
|
|
@@ -418,7 +431,7 @@ function SheetContent({
|
|
|
418
431
|
] });
|
|
419
432
|
}
|
|
420
433
|
function SheetHeader({ className, ...props }) {
|
|
421
|
-
return /* @__PURE__ */
|
|
434
|
+
return /* @__PURE__ */ jsx8(
|
|
422
435
|
"div",
|
|
423
436
|
{
|
|
424
437
|
"data-slot": "sheet-header",
|
|
@@ -428,7 +441,7 @@ function SheetHeader({ className, ...props }) {
|
|
|
428
441
|
);
|
|
429
442
|
}
|
|
430
443
|
function SheetFooter({ className, ...props }) {
|
|
431
|
-
return /* @__PURE__ */
|
|
444
|
+
return /* @__PURE__ */ jsx8(
|
|
432
445
|
"div",
|
|
433
446
|
{
|
|
434
447
|
"data-slot": "sheet-footer",
|
|
@@ -441,7 +454,7 @@ function SheetTitle({
|
|
|
441
454
|
className,
|
|
442
455
|
...props
|
|
443
456
|
}) {
|
|
444
|
-
return /* @__PURE__ */
|
|
457
|
+
return /* @__PURE__ */ jsx8(
|
|
445
458
|
DialogPrimitive.Title,
|
|
446
459
|
{
|
|
447
460
|
"data-slot": "sheet-title",
|
|
@@ -454,7 +467,7 @@ function SheetDescription({
|
|
|
454
467
|
className,
|
|
455
468
|
...props
|
|
456
469
|
}) {
|
|
457
|
-
return /* @__PURE__ */
|
|
470
|
+
return /* @__PURE__ */ jsx8(
|
|
458
471
|
DialogPrimitive.Description,
|
|
459
472
|
{
|
|
460
473
|
"data-slot": "sheet-description",
|
|
@@ -464,19 +477,6 @@ function SheetDescription({
|
|
|
464
477
|
);
|
|
465
478
|
}
|
|
466
479
|
|
|
467
|
-
// src/ui/skeleton.tsx
|
|
468
|
-
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
469
|
-
function Skeleton({ className, ...props }) {
|
|
470
|
-
return /* @__PURE__ */ jsx8(
|
|
471
|
-
"div",
|
|
472
|
-
{
|
|
473
|
-
"data-slot": "skeleton",
|
|
474
|
-
className: cn("animate-pulse rounded-md bg-muted", className),
|
|
475
|
-
...props
|
|
476
|
-
}
|
|
477
|
-
);
|
|
478
|
-
}
|
|
479
|
-
|
|
480
480
|
// src/ui/sidebar.tsx
|
|
481
481
|
import * as React from "react";
|
|
482
482
|
import { cva as cva2 } from "class-variance-authority";
|
|
@@ -1168,6 +1168,7 @@ export {
|
|
|
1168
1168
|
CardAction,
|
|
1169
1169
|
CardContent,
|
|
1170
1170
|
CardFooter,
|
|
1171
|
+
Skeleton,
|
|
1171
1172
|
Popover,
|
|
1172
1173
|
PopoverTrigger,
|
|
1173
1174
|
PopoverContent,
|
|
@@ -1184,7 +1185,6 @@ export {
|
|
|
1184
1185
|
SheetFooter,
|
|
1185
1186
|
SheetTitle,
|
|
1186
1187
|
SheetDescription,
|
|
1187
|
-
Skeleton,
|
|
1188
1188
|
useSidebar,
|
|
1189
1189
|
SidebarProvider,
|
|
1190
1190
|
SidebarRoot,
|