@turingpaper/ui 0.0.20 → 0.0.21
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/button.mjs +1 -1
- package/dist/checkbox.mjs +1 -1
- package/dist/components/dropdown-menu.d.ts +1 -0
- package/dist/dropdown-menu.mjs +5 -4
- package/dist/input-group.mjs +1 -1
- package/dist/provider.mjs +1 -1
- package/dist/radio-group.mjs +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/button.mjs
CHANGED
|
@@ -8,7 +8,7 @@ var a = i("inline-flex items-center justify-center gap-1.5 whitespace-nowrap rou
|
|
|
8
8
|
variants: {
|
|
9
9
|
variant: {
|
|
10
10
|
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
11
|
-
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive
|
|
11
|
+
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
|
12
12
|
outline: "border border-input bg-background hover:bg-muted hover:text-foreground",
|
|
13
13
|
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
14
14
|
ghost: "hover:bg-accent hover:text-accent-foreground",
|
package/dist/checkbox.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { Check as i } from "lucide-react";
|
|
|
6
6
|
//#region src/components/checkbox.tsx
|
|
7
7
|
var a = t.forwardRef(({ className: t, ...a }, o) => /* @__PURE__ */ n(r.Root, {
|
|
8
8
|
ref: o,
|
|
9
|
-
className: e("grid place-content-center peer h-4 w-4 shrink-0 rounded
|
|
9
|
+
className: e("grid place-content-center peer h-4 w-4 shrink-0 rounded border border-input focus-visible:outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground", t),
|
|
10
10
|
...a,
|
|
11
11
|
children: /* @__PURE__ */ n(r.Indicator, {
|
|
12
12
|
className: e("grid place-content-center text-current"),
|
|
@@ -13,6 +13,7 @@ declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<Dropd
|
|
|
13
13
|
declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
14
|
declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
15
15
|
inset?: boolean;
|
|
16
|
+
variant?: "default" | "destructive";
|
|
16
17
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
17
18
|
declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
18
19
|
declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
package/dist/dropdown-menu.mjs
CHANGED
|
@@ -24,10 +24,11 @@ var g = t.forwardRef(({ className: t, sideOffset: r = 4, ...a }, o) => /* @__PUR
|
|
|
24
24
|
...a
|
|
25
25
|
}) }));
|
|
26
26
|
g.displayName = i.Content.displayName;
|
|
27
|
-
var _ = t.forwardRef(({ className: t, inset: r,
|
|
28
|
-
ref:
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
var _ = t.forwardRef(({ className: t, inset: r, variant: a = "default", ...o }, s) => /* @__PURE__ */ n(i.Item, {
|
|
28
|
+
ref: s,
|
|
29
|
+
"data-variant": a,
|
|
30
|
+
className: e("relative flex cursor-default select-none items-center gap-2.5 rounded-lg px-2 py-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive", r && "pl-8", t),
|
|
31
|
+
...o
|
|
31
32
|
}));
|
|
32
33
|
_.displayName = i.Item.displayName;
|
|
33
34
|
var v = t.forwardRef(({ className: t, children: o, checked: s, ...c }, l) => /* @__PURE__ */ r(i.CheckboxItem, {
|
package/dist/input-group.mjs
CHANGED
|
@@ -10,7 +10,7 @@ function o({ className: t, ...n }) {
|
|
|
10
10
|
return /* @__PURE__ */ i("div", {
|
|
11
11
|
"data-slot": "input-group",
|
|
12
12
|
role: "group",
|
|
13
|
-
className: e("group/input-group relative flex h-9 w-full min-w-0 items-center rounded-xl border border-input bg-input/30 transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-data-[align=block-end]:rounded-2xl has-data-[align=block-start]:rounded-2xl has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-[3px] has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive
|
|
13
|
+
className: e("group/input-group relative flex h-9 w-full min-w-0 items-center rounded-xl border border-input bg-input/30 transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-data-[align=block-end]:rounded-2xl has-data-[align=block-start]:rounded-2xl has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-[3px] has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-[3px] has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[textarea]:rounded-xl has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5", t),
|
|
14
14
|
...n
|
|
15
15
|
});
|
|
16
16
|
}
|