lecom-ui 4.8.0 → 4.8.1

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.
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { cn } from '../../lib/utils.js';
3
3
  import { cva } from 'class-variance-authority';
4
+ import { Spin } from '../Spin/Spin.js';
4
5
  import { CustomButton } from './CustomButton.js';
5
6
 
6
7
  const buttonVariants = cva(
@@ -129,6 +130,7 @@ const Button = React.forwardRef(
129
130
  customStyles,
130
131
  isActive,
131
132
  children,
133
+ isLoaging,
132
134
  ...props
133
135
  }, ref) => {
134
136
  if (customStyles) {
@@ -143,7 +145,8 @@ const Button = React.forwardRef(
143
145
  ref,
144
146
  ...props
145
147
  },
146
- children
148
+ children,
149
+ isLoaging && /* @__PURE__ */ React.createElement(Spin, null)
147
150
  );
148
151
  }
149
152
  const Comp = "button";
@@ -157,7 +160,8 @@ const Button = React.forwardRef(
157
160
  ref,
158
161
  ...props
159
162
  },
160
- children
163
+ children,
164
+ isLoaging && /* @__PURE__ */ React.createElement(Spin, null)
161
165
  );
162
166
  }
163
167
  );
@@ -64,7 +64,8 @@ function buildColumns({
64
64
  {
65
65
  variant: "body-large-500",
66
66
  textColor: "text-grey-950",
67
- className: "truncate"
67
+ className: "truncate",
68
+ title: externalColumn.title
68
69
  },
69
70
  externalColumn.title
70
71
  ) : title,
@@ -94,7 +95,15 @@ function buildColumns({
94
95
  }
95
96
  return externalColumn.render;
96
97
  }
97
- return /* @__PURE__ */ React.createElement(Typography, { variant: "body-large-400", textColor: "text-grey-800" }, row.getValue(externalColumn.key));
98
+ return /* @__PURE__ */ React.createElement(
99
+ Typography,
100
+ {
101
+ variant: "body-large-400",
102
+ textColor: "text-grey-800",
103
+ title: row.getValue(externalColumn.key)
104
+ },
105
+ row.getValue(externalColumn.key)
106
+ );
98
107
  },
99
108
  meta: {
100
109
  width: externalColumn.width,
package/dist/index.d.ts CHANGED
@@ -58,6 +58,7 @@ interface CustomStyles$1 {
58
58
  interface ButtonProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, 'color'>, VariantProps<typeof buttonVariants> {
59
59
  customStyles?: CustomStyles$1;
60
60
  isActive?: boolean;
61
+ isLoaging?: boolean;
61
62
  }
62
63
  declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
63
64
 
@@ -559,9 +560,9 @@ interface HeaderProps extends React$1.HTMLAttributes<HTMLElement>, VariantProps<
559
560
  }
560
561
 
561
562
  declare const inputVariants: (props?: ({
562
- variant?: "default" | "filled" | "borderless" | null | undefined;
563
- size?: "default" | "small" | "large" | null | undefined;
564
- radius?: "default" | "small" | "large" | null | undefined;
563
+ variant?: "filled" | "default" | "borderless" | null | undefined;
564
+ size?: "small" | "large" | "default" | null | undefined;
565
+ radius?: "small" | "large" | "default" | null | undefined;
565
566
  } & class_variance_authority_types.ClassProp) | undefined) => string;
566
567
  interface InputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'size' | 'sufix' | 'prefix'>, VariantProps<typeof inputVariants> {
567
568
  sufix?: React$1.ReactNode;
@@ -722,7 +723,7 @@ declare const TooltipTrigger: React$1.ForwardRefExoticComponent<TooltipPrimitive
722
723
  declare const TooltipArrow: React$1.ForwardRefExoticComponent<TooltipPrimitive.TooltipArrowProps & React$1.RefAttributes<SVGSVGElement>>;
723
724
  declare const TooltipPortal: React$1.FC<TooltipPrimitive.TooltipPortalProps>;
724
725
  declare const tooltipContentVariants: (props?: ({
725
- color?: "black" | "white" | null | undefined;
726
+ color?: "white" | "black" | null | undefined;
726
727
  arrow?: boolean | null | undefined;
727
728
  } & class_variance_authority_types.ClassProp) | undefined) => string;
728
729
  interface TooltipContentProps extends React$1.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>, VariantProps<typeof tooltipContentVariants> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lecom-ui",
3
- "version": "4.8.0",
3
+ "version": "4.8.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",