myoperator-mcp 0.2.76 → 0.2.77
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 +190 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2611,6 +2611,177 @@ const PageHeader = React.forwardRef<HTMLDivElement, PageHeaderProps>(
|
|
|
2611
2611
|
PageHeader.displayName = "PageHeader";
|
|
2612
2612
|
|
|
2613
2613
|
export { PageHeader, pageHeaderVariants };
|
|
2614
|
+
`,
|
|
2615
|
+
"pagination": `import * as React from "react";
|
|
2616
|
+
import {
|
|
2617
|
+
ChevronLeftIcon,
|
|
2618
|
+
ChevronRightIcon,
|
|
2619
|
+
MoreHorizontalIcon,
|
|
2620
|
+
} from "lucide-react";
|
|
2621
|
+
|
|
2622
|
+
import { cn } from "@/lib/utils";
|
|
2623
|
+
import { buttonVariants, type ButtonProps } from "./button";
|
|
2624
|
+
|
|
2625
|
+
export interface PaginationProps extends React.ComponentProps<"nav"> {
|
|
2626
|
+
/** Additional CSS classes for the nav wrapper */
|
|
2627
|
+
className?: string;
|
|
2628
|
+
}
|
|
2629
|
+
|
|
2630
|
+
function Pagination({ className, ...props }: PaginationProps) {
|
|
2631
|
+
return (
|
|
2632
|
+
<nav
|
|
2633
|
+
role="navigation"
|
|
2634
|
+
aria-label="pagination"
|
|
2635
|
+
data-slot="pagination"
|
|
2636
|
+
className={cn("mx-auto flex w-full justify-center", className)}
|
|
2637
|
+
{...props}
|
|
2638
|
+
/>
|
|
2639
|
+
);
|
|
2640
|
+
}
|
|
2641
|
+
Pagination.displayName = "Pagination";
|
|
2642
|
+
|
|
2643
|
+
export interface PaginationContentProps extends React.ComponentProps<"ul"> {
|
|
2644
|
+
/** Additional CSS classes for the list container */
|
|
2645
|
+
className?: string;
|
|
2646
|
+
}
|
|
2647
|
+
|
|
2648
|
+
function PaginationContent({
|
|
2649
|
+
className,
|
|
2650
|
+
...props
|
|
2651
|
+
}: PaginationContentProps) {
|
|
2652
|
+
return (
|
|
2653
|
+
<ul
|
|
2654
|
+
data-slot="pagination-content"
|
|
2655
|
+
className={cn("flex flex-row items-center gap-1", className)}
|
|
2656
|
+
{...props}
|
|
2657
|
+
/>
|
|
2658
|
+
);
|
|
2659
|
+
}
|
|
2660
|
+
PaginationContent.displayName = "PaginationContent";
|
|
2661
|
+
|
|
2662
|
+
export interface PaginationItemProps extends React.ComponentProps<"li"> {
|
|
2663
|
+
/** Additional CSS classes for the list item */
|
|
2664
|
+
className?: string;
|
|
2665
|
+
}
|
|
2666
|
+
|
|
2667
|
+
function PaginationItem({ ...props }: PaginationItemProps) {
|
|
2668
|
+
return <li data-slot="pagination-item" {...props} />;
|
|
2669
|
+
}
|
|
2670
|
+
PaginationItem.displayName = "PaginationItem";
|
|
2671
|
+
|
|
2672
|
+
export interface PaginationLinkProps
|
|
2673
|
+
extends Pick<ButtonProps, "size">,
|
|
2674
|
+
React.ComponentProps<"a"> {
|
|
2675
|
+
/** Highlights the link as the current page */
|
|
2676
|
+
isActive?: boolean;
|
|
2677
|
+
/** Size of the link (uses Button size variants) */
|
|
2678
|
+
size?: ButtonProps["size"];
|
|
2679
|
+
/** Additional CSS classes */
|
|
2680
|
+
className?: string;
|
|
2681
|
+
}
|
|
2682
|
+
|
|
2683
|
+
function PaginationLink({
|
|
2684
|
+
className,
|
|
2685
|
+
isActive,
|
|
2686
|
+
size = "icon",
|
|
2687
|
+
...props
|
|
2688
|
+
}: PaginationLinkProps) {
|
|
2689
|
+
return (
|
|
2690
|
+
<a
|
|
2691
|
+
aria-current={isActive ? "page" : undefined}
|
|
2692
|
+
data-slot="pagination-link"
|
|
2693
|
+
data-active={isActive}
|
|
2694
|
+
className={cn(
|
|
2695
|
+
buttonVariants({
|
|
2696
|
+
variant: isActive ? "outline" : "ghost",
|
|
2697
|
+
size,
|
|
2698
|
+
}),
|
|
2699
|
+
className
|
|
2700
|
+
)}
|
|
2701
|
+
{...props}
|
|
2702
|
+
/>
|
|
2703
|
+
);
|
|
2704
|
+
}
|
|
2705
|
+
PaginationLink.displayName = "PaginationLink";
|
|
2706
|
+
|
|
2707
|
+
export interface PaginationPreviousProps extends PaginationLinkProps {
|
|
2708
|
+
/** Additional CSS classes */
|
|
2709
|
+
className?: string;
|
|
2710
|
+
}
|
|
2711
|
+
|
|
2712
|
+
function PaginationPrevious({
|
|
2713
|
+
className,
|
|
2714
|
+
...props
|
|
2715
|
+
}: PaginationPreviousProps) {
|
|
2716
|
+
return (
|
|
2717
|
+
<PaginationLink
|
|
2718
|
+
aria-label="Go to previous page"
|
|
2719
|
+
size="default"
|
|
2720
|
+
className={cn("gap-1 px-2.5 sm:pl-2.5", className)}
|
|
2721
|
+
{...props}
|
|
2722
|
+
>
|
|
2723
|
+
<ChevronLeftIcon />
|
|
2724
|
+
<span className="hidden sm:block">Previous</span>
|
|
2725
|
+
</PaginationLink>
|
|
2726
|
+
);
|
|
2727
|
+
}
|
|
2728
|
+
PaginationPrevious.displayName = "PaginationPrevious";
|
|
2729
|
+
|
|
2730
|
+
export interface PaginationNextProps extends PaginationLinkProps {
|
|
2731
|
+
/** Additional CSS classes */
|
|
2732
|
+
className?: string;
|
|
2733
|
+
}
|
|
2734
|
+
|
|
2735
|
+
function PaginationNext({
|
|
2736
|
+
className,
|
|
2737
|
+
...props
|
|
2738
|
+
}: PaginationNextProps) {
|
|
2739
|
+
return (
|
|
2740
|
+
<PaginationLink
|
|
2741
|
+
aria-label="Go to next page"
|
|
2742
|
+
size="default"
|
|
2743
|
+
className={cn("gap-1 px-2.5 sm:pr-2.5", className)}
|
|
2744
|
+
{...props}
|
|
2745
|
+
>
|
|
2746
|
+
<span className="hidden sm:block">Next</span>
|
|
2747
|
+
<ChevronRightIcon />
|
|
2748
|
+
</PaginationLink>
|
|
2749
|
+
);
|
|
2750
|
+
}
|
|
2751
|
+
PaginationNext.displayName = "PaginationNext";
|
|
2752
|
+
|
|
2753
|
+
export interface PaginationEllipsisProps extends React.ComponentProps<"span"> {
|
|
2754
|
+
/** Additional CSS classes */
|
|
2755
|
+
className?: string;
|
|
2756
|
+
}
|
|
2757
|
+
|
|
2758
|
+
function PaginationEllipsis({
|
|
2759
|
+
className,
|
|
2760
|
+
...props
|
|
2761
|
+
}: PaginationEllipsisProps) {
|
|
2762
|
+
return (
|
|
2763
|
+
<span
|
|
2764
|
+
aria-hidden
|
|
2765
|
+
data-slot="pagination-ellipsis"
|
|
2766
|
+
className={cn("flex size-9 items-center justify-center", className)}
|
|
2767
|
+
{...props}
|
|
2768
|
+
>
|
|
2769
|
+
<MoreHorizontalIcon className="size-4" />
|
|
2770
|
+
<span className="sr-only">More pages</span>
|
|
2771
|
+
</span>
|
|
2772
|
+
);
|
|
2773
|
+
}
|
|
2774
|
+
PaginationEllipsis.displayName = "PaginationEllipsis";
|
|
2775
|
+
|
|
2776
|
+
export {
|
|
2777
|
+
Pagination,
|
|
2778
|
+
PaginationContent,
|
|
2779
|
+
PaginationLink,
|
|
2780
|
+
PaginationItem,
|
|
2781
|
+
PaginationPrevious,
|
|
2782
|
+
PaginationNext,
|
|
2783
|
+
PaginationEllipsis,
|
|
2784
|
+
};
|
|
2614
2785
|
`,
|
|
2615
2786
|
"readable-field": `import * as React from "react";
|
|
2616
2787
|
import { Copy, Check, Eye, EyeOff } from "lucide-react";
|
|
@@ -5674,6 +5845,25 @@ var componentMetadata = {
|
|
|
5674
5845
|
}
|
|
5675
5846
|
]
|
|
5676
5847
|
},
|
|
5848
|
+
"pagination": {
|
|
5849
|
+
"name": "Pagination",
|
|
5850
|
+
"description": "A pagination component.",
|
|
5851
|
+
"dependencies": [
|
|
5852
|
+
"class-variance-authority",
|
|
5853
|
+
"clsx",
|
|
5854
|
+
"tailwind-merge",
|
|
5855
|
+
"lucide-react"
|
|
5856
|
+
],
|
|
5857
|
+
"props": [],
|
|
5858
|
+
"variants": [],
|
|
5859
|
+
"examples": [
|
|
5860
|
+
{
|
|
5861
|
+
"title": "Basic Pagination",
|
|
5862
|
+
"code": "<Pagination>Content</Pagination>",
|
|
5863
|
+
"description": "Simple pagination usage"
|
|
5864
|
+
}
|
|
5865
|
+
]
|
|
5866
|
+
},
|
|
5677
5867
|
"readable-field": {
|
|
5678
5868
|
"name": "ReadableField",
|
|
5679
5869
|
"description": "A readable field component.",
|
package/package.json
CHANGED