lecom-ui 5.0.0 → 5.0.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.
@@ -22,6 +22,9 @@ const MultiSelect = React.forwardRef(
22
22
  const { t } = useTranslation();
23
23
  const [selectedValues, setSelectedValues] = React.useState(defaultValue);
24
24
  const [isPopoverOpen, setIsPopoverOpen] = React.useState(false);
25
+ React.useEffect(() => {
26
+ setSelectedValues(defaultValue);
27
+ }, [defaultValue]);
25
28
  const handleInputKeyDown = (event) => {
26
29
  if (event.key === "Enter") {
27
30
  setIsPopoverOpen(true);
package/dist/index.d.ts CHANGED
@@ -609,9 +609,9 @@ interface HeaderProps extends React$1.HTMLAttributes<HTMLElement>, VariantProps<
609
609
  }
610
610
 
611
611
  declare const inputVariants: (props?: ({
612
- variant?: "filled" | "default" | "borderless" | null | undefined;
613
- size?: "small" | "large" | "default" | null | undefined;
614
- radius?: "small" | "large" | "default" | "full" | null | undefined;
612
+ variant?: "default" | "filled" | "borderless" | null | undefined;
613
+ size?: "default" | "small" | "large" | null | undefined;
614
+ radius?: "default" | "small" | "large" | "full" | null | undefined;
615
615
  } & class_variance_authority_types.ClassProp) | undefined) => string;
616
616
  interface InputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'size' | 'sufix' | 'prefix'>, VariantProps<typeof inputVariants> {
617
617
  sufix?: React$1.ReactNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lecom-ui",
3
- "version": "5.0.0",
3
+ "version": "5.0.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
@@ -29,7 +29,7 @@
29
29
  "@radix-ui/react-dialog": "^1.1.11",
30
30
  "@radix-ui/react-dropdown-menu": "^2.1.4",
31
31
  "@radix-ui/react-label": "^2.1.4",
32
- "@radix-ui/react-popover": "^1.1.4",
32
+ "@radix-ui/react-popover": "^1.1.11",
33
33
  "@radix-ui/react-radio-group": "^1.2.2",
34
34
  "@radix-ui/react-scroll-area": "^1.2.2",
35
35
  "@radix-ui/react-select": "^2.2.2",