myoperator-mcp 0.2.76 → 0.2.78
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 +198 -2
- 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";
|
|
@@ -3675,10 +3846,12 @@ export interface TableProps
|
|
|
3675
3846
|
VariantProps<typeof tableVariants> {
|
|
3676
3847
|
/** Remove outer border from the table */
|
|
3677
3848
|
withoutBorder?: boolean;
|
|
3849
|
+
/** Allow cell content to wrap to multiple lines. By default, content is kept on a single line with horizontal scroll. */
|
|
3850
|
+
wrapContent?: boolean;
|
|
3678
3851
|
}
|
|
3679
3852
|
|
|
3680
3853
|
const Table = React.forwardRef<HTMLTableElement, TableProps>(
|
|
3681
|
-
({ className, size, withoutBorder, ...props }, ref) => (
|
|
3854
|
+
({ className, size, withoutBorder, wrapContent, ...props }, ref) => (
|
|
3682
3855
|
<div
|
|
3683
3856
|
className={cn(
|
|
3684
3857
|
"relative w-full overflow-auto",
|
|
@@ -3687,7 +3860,11 @@ const Table = React.forwardRef<HTMLTableElement, TableProps>(
|
|
|
3687
3860
|
>
|
|
3688
3861
|
<table
|
|
3689
3862
|
ref={ref}
|
|
3690
|
-
className={cn(
|
|
3863
|
+
className={cn(
|
|
3864
|
+
tableVariants({ size }),
|
|
3865
|
+
!wrapContent && "[&_th]:whitespace-nowrap [&_td]:whitespace-nowrap",
|
|
3866
|
+
className
|
|
3867
|
+
)}
|
|
3691
3868
|
{...props}
|
|
3692
3869
|
/>
|
|
3693
3870
|
</div>
|
|
@@ -5674,6 +5851,25 @@ var componentMetadata = {
|
|
|
5674
5851
|
}
|
|
5675
5852
|
]
|
|
5676
5853
|
},
|
|
5854
|
+
"pagination": {
|
|
5855
|
+
"name": "Pagination",
|
|
5856
|
+
"description": "A pagination component.",
|
|
5857
|
+
"dependencies": [
|
|
5858
|
+
"class-variance-authority",
|
|
5859
|
+
"clsx",
|
|
5860
|
+
"tailwind-merge",
|
|
5861
|
+
"lucide-react"
|
|
5862
|
+
],
|
|
5863
|
+
"props": [],
|
|
5864
|
+
"variants": [],
|
|
5865
|
+
"examples": [
|
|
5866
|
+
{
|
|
5867
|
+
"title": "Basic Pagination",
|
|
5868
|
+
"code": "<Pagination>Content</Pagination>",
|
|
5869
|
+
"description": "Simple pagination usage"
|
|
5870
|
+
}
|
|
5871
|
+
]
|
|
5872
|
+
},
|
|
5677
5873
|
"readable-field": {
|
|
5678
5874
|
"name": "ReadableField",
|
|
5679
5875
|
"description": "A readable field component.",
|
package/package.json
CHANGED