@moontra/moonui 2.0.5 → 2.0.7
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/index.js +98 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +92 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -5322,6 +5322,97 @@ var Label2 = t__namespace.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
5322
5322
|
}
|
|
5323
5323
|
));
|
|
5324
5324
|
Label2.displayName = LabelPrimitive__namespace.Root.displayName;
|
|
5325
|
+
var Pagination = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
5326
|
+
"nav",
|
|
5327
|
+
{
|
|
5328
|
+
role: "navigation",
|
|
5329
|
+
"aria-label": "pagination",
|
|
5330
|
+
className: cn("mx-auto flex w-full justify-center", className),
|
|
5331
|
+
...props
|
|
5332
|
+
}
|
|
5333
|
+
);
|
|
5334
|
+
Pagination.displayName = "Pagination";
|
|
5335
|
+
var PaginationContent = t__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
5336
|
+
"ul",
|
|
5337
|
+
{
|
|
5338
|
+
ref,
|
|
5339
|
+
className: cn("flex flex-row items-center gap-1", className),
|
|
5340
|
+
...props
|
|
5341
|
+
}
|
|
5342
|
+
));
|
|
5343
|
+
PaginationContent.displayName = "PaginationContent";
|
|
5344
|
+
var PaginationItem = t__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("li", { ref, className: cn("", className), ...props }));
|
|
5345
|
+
PaginationItem.displayName = "PaginationItem";
|
|
5346
|
+
var PaginationLink = ({
|
|
5347
|
+
className,
|
|
5348
|
+
isActive,
|
|
5349
|
+
size = "icon",
|
|
5350
|
+
...props
|
|
5351
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
5352
|
+
"a",
|
|
5353
|
+
{
|
|
5354
|
+
"aria-current": isActive ? "page" : void 0,
|
|
5355
|
+
className: cn(
|
|
5356
|
+
buttonVariants({
|
|
5357
|
+
variant: isActive ? "outline" : "ghost",
|
|
5358
|
+
size
|
|
5359
|
+
}),
|
|
5360
|
+
className
|
|
5361
|
+
),
|
|
5362
|
+
...props
|
|
5363
|
+
}
|
|
5364
|
+
);
|
|
5365
|
+
PaginationLink.displayName = "PaginationLink";
|
|
5366
|
+
var PaginationPrevious = ({
|
|
5367
|
+
className,
|
|
5368
|
+
...props
|
|
5369
|
+
}) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5370
|
+
PaginationLink,
|
|
5371
|
+
{
|
|
5372
|
+
"aria-label": "Go to previous page",
|
|
5373
|
+
size: "default",
|
|
5374
|
+
className: cn("gap-1 pl-2.5", className),
|
|
5375
|
+
...props,
|
|
5376
|
+
children: [
|
|
5377
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronLeft, { className: "h-4 w-4" }),
|
|
5378
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Previous" })
|
|
5379
|
+
]
|
|
5380
|
+
}
|
|
5381
|
+
);
|
|
5382
|
+
PaginationPrevious.displayName = "PaginationPrevious";
|
|
5383
|
+
var PaginationNext = ({
|
|
5384
|
+
className,
|
|
5385
|
+
...props
|
|
5386
|
+
}) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5387
|
+
PaginationLink,
|
|
5388
|
+
{
|
|
5389
|
+
"aria-label": "Go to next page",
|
|
5390
|
+
size: "default",
|
|
5391
|
+
className: cn("gap-1 pr-2.5", className),
|
|
5392
|
+
...props,
|
|
5393
|
+
children: [
|
|
5394
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Next" }),
|
|
5395
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { className: "h-4 w-4" })
|
|
5396
|
+
]
|
|
5397
|
+
}
|
|
5398
|
+
);
|
|
5399
|
+
PaginationNext.displayName = "PaginationNext";
|
|
5400
|
+
var PaginationEllipsis = ({
|
|
5401
|
+
className,
|
|
5402
|
+
...props
|
|
5403
|
+
}) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5404
|
+
"span",
|
|
5405
|
+
{
|
|
5406
|
+
"aria-hidden": true,
|
|
5407
|
+
className: cn("flex h-9 w-9 items-center justify-center", className),
|
|
5408
|
+
...props,
|
|
5409
|
+
children: [
|
|
5410
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.MoreHorizontal, { className: "h-4 w-4" }),
|
|
5411
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "More pages" })
|
|
5412
|
+
]
|
|
5413
|
+
}
|
|
5414
|
+
);
|
|
5415
|
+
PaginationEllipsis.displayName = "PaginationEllipsis";
|
|
5325
5416
|
var progressVariants = classVarianceAuthority.cva(
|
|
5326
5417
|
"relative overflow-hidden bg-muted",
|
|
5327
5418
|
{
|
|
@@ -7247,6 +7338,13 @@ exports.DropdownMenuTrigger = DropdownMenuTrigger;
|
|
|
7247
7338
|
exports.Input = Input;
|
|
7248
7339
|
exports.Label = Label2;
|
|
7249
7340
|
exports.MonthPicker = MonthPicker;
|
|
7341
|
+
exports.Pagination = Pagination;
|
|
7342
|
+
exports.PaginationContent = PaginationContent;
|
|
7343
|
+
exports.PaginationEllipsis = PaginationEllipsis;
|
|
7344
|
+
exports.PaginationItem = PaginationItem;
|
|
7345
|
+
exports.PaginationLink = PaginationLink;
|
|
7346
|
+
exports.PaginationNext = PaginationNext;
|
|
7347
|
+
exports.PaginationPrevious = PaginationPrevious;
|
|
7250
7348
|
exports.Popover = Popover;
|
|
7251
7349
|
exports.PopoverAnchor = PopoverAnchor;
|
|
7252
7350
|
exports.PopoverClose = PopoverClose;
|