lecom-ui 2.6.5 → 2.6.6

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.
@@ -66,20 +66,26 @@ const PaginationEllipsis = ({
66
66
  className,
67
67
  disabled,
68
68
  isActive,
69
+ asChild,
69
70
  onClick
70
- }) => /* @__PURE__ */ React.createElement(
71
- Button,
72
- {
73
- disabled,
74
- iconButton: true,
75
- variant: "ghost",
76
- color: "grey",
77
- size: "small",
78
- onClick,
79
- className: cn(isActive && "bg-white", className)
80
- },
81
- /* @__PURE__ */ React.createElement(MoreHorizontal, { size: 20 })
82
- );
71
+ }) => {
72
+ if (asChild) {
73
+ return /* @__PURE__ */ React.createElement(MoreHorizontal, { size: 20 });
74
+ }
75
+ return /* @__PURE__ */ React.createElement(
76
+ Button,
77
+ {
78
+ disabled,
79
+ iconButton: true,
80
+ variant: "ghost",
81
+ color: "grey",
82
+ size: "small",
83
+ onClick,
84
+ className: cn(isActive && "bg-white", className)
85
+ },
86
+ /* @__PURE__ */ React.createElement(MoreHorizontal, { size: 20 })
87
+ );
88
+ };
83
89
  PaginationEllipsis.displayName = "PaginationEllipsis";
84
90
  const PaginationIndex = ({
85
91
  className,
package/dist/index.d.ts CHANGED
@@ -500,6 +500,7 @@ type PaginationButtonProps = {
500
500
  className?: string;
501
501
  disabled?: boolean;
502
502
  isActive?: boolean;
503
+ asChild?: boolean;
503
504
  onClick?: () => void;
504
505
  };
505
506
  interface PaginationIndexProps extends PaginationButtonProps {
@@ -520,7 +521,7 @@ declare const PaginationNext: {
520
521
  displayName: string;
521
522
  };
522
523
  declare const PaginationEllipsis: {
523
- ({ className, disabled, isActive, onClick, }: PaginationButtonProps): React.JSX.Element;
524
+ ({ className, disabled, isActive, asChild, onClick, }: PaginationButtonProps): React.JSX.Element;
524
525
  displayName: string;
525
526
  };
526
527
  declare const PaginationIndex: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lecom-ui",
3
- "version": "2.6.5",
3
+ "version": "2.6.6",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",