@vertesia/ui 0.57.0 → 0.59.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertesia/ui",
3
- "version": "0.57.0",
3
+ "version": "0.59.0",
4
4
  "description": "Vertesia UI components and and hooks",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -47,9 +47,9 @@
47
47
  "react-day-picker": "^8.10.1",
48
48
  "react-dom": "^19.1.0",
49
49
  "tailwind-merge": "^3.3.0",
50
- "@vertesia/client": "0.57.0",
51
- "@vertesia/common": "0.57.0",
52
- "@vertesia/json": "0.57.0"
50
+ "@vertesia/common": "0.59.0",
51
+ "@vertesia/json": "0.59.0",
52
+ "@vertesia/client": "0.59.0"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@eslint/js": "^9.27.0",
@@ -1,6 +1,5 @@
1
1
  import { Listbox, ListboxButton, ListboxOption, ListboxOptions } from "@headlessui/react";
2
- import { X } from "lucide-react";
3
- import { Check, ChevronsUpDownIcon } from "lucide-react";
2
+ import { X, Check, ChevronsUpDownIcon } from "lucide-react";
4
3
  import clsx from "clsx";
5
4
  import { ComponentType, KeyboardEvent, ReactNode, SyntheticEvent, useState, useEffect, useRef } from "react";
6
5
  import { Button } from "./Button";
@@ -15,14 +15,14 @@ const buttonVariants = cva(
15
15
  destructive:
16
16
  "bg-destructive dark:bg-destructive/10 text-destructive ring-1 ring-inset ring-destructive-muted/50 dark:ring-destructive-muted/50 shadow-xs hover:bg-destructive/50",
17
17
  outline:
18
- "border border-input bg-background shadow-xs hover:bg-muted dark:hover:text-secondary",
18
+ "border border-input bg-background shadow-xs hover:bg-muted ring-inset",
19
19
  secondary:
20
- "bg-secondary text-primary shadow-xs hover:bg-muted hover:text-primary",
21
- ghost: "hover:bg-muted/50 dark:hover:bg-muted/20",
22
- link: "text-white underline-offset-4 hover:underline",
20
+ "bg-secondary-background text-secondary hover:bg-secondary-background/80 ring-inset",
21
+ ghost: "hover:bg-muted/50 dark:hover:bg-muted/20 ring-inset",
22
+ link: "text-white underline-offset-4 hover:underline ring-inset",
23
23
  primary:
24
- "bg-primary text-white shadow-xs hover:bg-primary/90",
25
- soft: "bg-primary/5 dark:bg-primary/10 text-primary shadow-xs hover:bg-primary/10 dark:hover:bg-primary/20",
24
+ "bg-primary text-white shadow-xs hover:bg-primary/90 ring-inset",
25
+ soft: "bg-primary/5 dark:bg-primary/10 text-primary shadow-xs hover:bg-primary/10 dark:hover:bg-primary/20 ring-inset",
26
26
  unstyled:
27
27
  ""
28
28
  },
@@ -17,7 +17,7 @@ const variants = cva(
17
17
  xl: "rounded-md py-2.5 text-lg",
18
18
  },
19
19
  variant: {
20
- default: "flex w-full rounded-md border border-input bg-background py-2 ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
20
+ default: "flex w-full rounded-md border border-input bg-background py-2 ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 ring-inset focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
21
21
  unstyled: "block m-0 p-0 w-full border-0 focus:outline-hidden focus:ring-0 bg-transparent",
22
22
  noPadding: "block rounded-md border-0 bg-background shadow-2xs ring-1 ring-inset ring-ring placeholder:text-muted-foreground focus:ring-2 focus:ring-inset focus:ring-ring ring-offset-background",
23
23
  legacy: "py-1.5 block rounded-md border-0 bg-background shadow-2xs ring-1 ring-inset ring-ring placeholder:text-muted-foreground focus:ring-2 focus:ring-inset focus:ring-ring ring-offset-background",