iryx-ui 0.4.0 → 0.5.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/README.md +88 -7
- package/dist/component-names.d.ts +1 -1
- package/dist/components/App.vue.d.ts +1 -1
- package/dist/components/Combobox.vue.d.ts +112 -0
- package/dist/components/DropdownMenu.vue.d.ts +1 -1
- package/dist/components/Select.vue.d.ts +13 -2
- package/dist/components/index.d.ts +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +49 -47
- package/dist/nuxt.d.ts +1 -1
- package/dist/packages/iryx-ui/src/component-names.js +1 -1
- package/dist/packages/iryx-ui/src/components/Combobox.js +5 -0
- package/dist/packages/iryx-ui/src/components/Combobox.vue_vue_type_script_setup_true_lang.js +284 -0
- package/dist/packages/iryx-ui/src/components/Select.vue_vue_type_script_setup_true_lang.js +72 -27
- package/dist/packages/iryx-ui/src/components/index.js +48 -46
- package/dist/packages/iryx-ui/src/theme/alert.js +2 -2
- package/dist/packages/iryx-ui/src/theme/button.js +2 -2
- package/dist/packages/iryx-ui/src/theme/card.js +1 -1
- package/dist/packages/iryx-ui/src/theme/checkbox.js +1 -1
- package/dist/packages/iryx-ui/src/theme/combobox.js +29 -0
- package/dist/packages/iryx-ui/src/theme/dialog.js +2 -2
- package/dist/packages/iryx-ui/src/theme/dropdown-menu.js +4 -4
- package/dist/packages/iryx-ui/src/theme/input.js +1 -1
- package/dist/packages/iryx-ui/src/theme/number-input.js +1 -1
- package/dist/packages/iryx-ui/src/theme/pagination.js +1 -1
- package/dist/packages/iryx-ui/src/theme/presets.js +0 -42
- package/dist/packages/iryx-ui/src/theme/radio-group.js +1 -1
- package/dist/packages/iryx-ui/src/theme/select.js +5 -3
- package/dist/packages/iryx-ui/src/theme/skeleton.js +1 -1
- package/dist/packages/iryx-ui/src/theme/stepper.js +1 -1
- package/dist/packages/iryx-ui/src/theme/switch.js +1 -1
- package/dist/packages/iryx-ui/src/theme/tabs.js +3 -3
- package/dist/packages/iryx-ui/src/theme/toast.js +3 -3
- package/dist/packages/iryx-ui/src/theme/tooltip.js +1 -1
- package/dist/plugin.d.ts +1 -1
- package/dist/theme/button.d.ts +2 -2
- package/dist/theme/combobox.d.ts +101 -0
- package/dist/theme/index.d.ts +1 -0
- package/dist/theme/input.d.ts +5 -5
- package/dist/theme/presets.d.ts +0 -42
- package/dist/theme/select.d.ts +6 -0
- package/package.json +1 -1
- package/theme.css +14 -0
|
@@ -4,7 +4,7 @@ var t = e({
|
|
|
4
4
|
slots: {
|
|
5
5
|
root: "flex items-center gap-2",
|
|
6
6
|
list: "flex items-center gap-1",
|
|
7
|
-
item: "inline-flex items-center justify-center rounded-
|
|
7
|
+
item: "inline-flex items-center justify-center rounded-xl border border-transparent text-sm font-medium transition-[color,background-color,border-color,box-shadow] outline-none focus-visible:ring-2 focus-visible:ring-primary/50 disabled:pointer-events-none disabled:opacity-50 [&_svg]:size-4",
|
|
8
8
|
active: "bg-linear-to-b from-primary-from to-primary-to text-primary-foreground hover:brightness-110",
|
|
9
9
|
inactive: "text-foreground hover:bg-accent hover:text-accent-foreground",
|
|
10
10
|
ellipsis: "inline-flex items-center justify-center text-sm text-muted-foreground"
|
|
@@ -46,20 +46,6 @@ var e = {
|
|
|
46
46
|
primaryTo: "oklch(0.54 0.24 293)"
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
|
-
emerald: {
|
|
50
|
-
light: {
|
|
51
|
-
primary: "oklch(0.596 0.145 163)",
|
|
52
|
-
primaryForeground: "oklch(0.985 0.005 248)",
|
|
53
|
-
primaryFrom: "oklch(0.596 0.145 163)",
|
|
54
|
-
primaryTo: "oklch(0.52 0.155 163)"
|
|
55
|
-
},
|
|
56
|
-
dark: {
|
|
57
|
-
primary: "oklch(0.7 0.15 162)",
|
|
58
|
-
primaryForeground: "oklch(0.17 0.04 165)",
|
|
59
|
-
primaryFrom: "oklch(0.7 0.15 162)",
|
|
60
|
-
primaryTo: "oklch(0.62 0.16 162)"
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
49
|
rose: {
|
|
64
50
|
light: {
|
|
65
51
|
primary: "oklch(0.586 0.222 17)",
|
|
@@ -73,34 +59,6 @@ var e = {
|
|
|
73
59
|
primaryFrom: "oklch(0.65 0.22 16)",
|
|
74
60
|
primaryTo: "oklch(0.57 0.235 16)"
|
|
75
61
|
}
|
|
76
|
-
},
|
|
77
|
-
amber: {
|
|
78
|
-
light: {
|
|
79
|
-
primary: "oklch(0.666 0.157 58)",
|
|
80
|
-
primaryForeground: "oklch(0.16 0.03 80)",
|
|
81
|
-
primaryFrom: "oklch(0.666 0.157 58)",
|
|
82
|
-
primaryTo: "oklch(0.59 0.165 56)"
|
|
83
|
-
},
|
|
84
|
-
dark: {
|
|
85
|
-
primary: "oklch(0.77 0.16 70)",
|
|
86
|
-
primaryForeground: "oklch(0.18 0.04 75)",
|
|
87
|
-
primaryFrom: "oklch(0.77 0.16 70)",
|
|
88
|
-
primaryTo: "oklch(0.7 0.17 68)"
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
sky: {
|
|
92
|
-
light: {
|
|
93
|
-
primary: "oklch(0.588 0.13 242)",
|
|
94
|
-
primaryForeground: "oklch(0.985 0.005 248)",
|
|
95
|
-
primaryFrom: "oklch(0.588 0.13 242)",
|
|
96
|
-
primaryTo: "oklch(0.51 0.14 242)"
|
|
97
|
-
},
|
|
98
|
-
dark: {
|
|
99
|
-
primary: "oklch(0.685 0.14 237)",
|
|
100
|
-
primaryForeground: "oklch(0.15 0.04 240)",
|
|
101
|
-
primaryFrom: "oklch(0.685 0.14 237)",
|
|
102
|
-
primaryTo: "oklch(0.6 0.15 237)"
|
|
103
|
-
}
|
|
104
62
|
}
|
|
105
63
|
}, n = "iryx-ui-theme";
|
|
106
64
|
function r(t) {
|
|
@@ -4,7 +4,7 @@ var t = e({
|
|
|
4
4
|
slots: {
|
|
5
5
|
root: "grid gap-2",
|
|
6
6
|
wrapper: "flex items-start gap-2.5",
|
|
7
|
-
item: "aspect-square shrink-0 cursor-pointer rounded-full border border-border bg-background transition-colors outline-none focus
|
|
7
|
+
item: "aspect-square shrink-0 cursor-pointer rounded-full border border-border bg-background transition-colors outline-none focus:ring-2 focus:ring-primary/50 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-primary",
|
|
8
8
|
indicator: "flex size-full items-center justify-center after:block after:rounded-full after:bg-primary",
|
|
9
9
|
content: "grid gap-1",
|
|
10
10
|
label: "text-sm leading-5 text-foreground select-none",
|
|
@@ -4,10 +4,12 @@ import { tv as t } from "tailwind-variants";
|
|
|
4
4
|
var n = t({
|
|
5
5
|
slots: {
|
|
6
6
|
trigger: `flex items-center justify-between gap-2 ${e} cursor-pointer data-[placeholder]:text-muted-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&_svg]:opacity-60`,
|
|
7
|
-
content: "z-50 min-w-32 overflow-hidden rounded-
|
|
7
|
+
content: "z-50 min-w-32 overflow-hidden rounded-xl border border-border bg-background text-foreground shadow-md",
|
|
8
8
|
viewport: "p-1",
|
|
9
|
-
item: "relative flex cursor-pointer items-center rounded-
|
|
10
|
-
itemIndicator: "absolute left-2 flex items-center justify-center text-primary [&_svg]:size-4"
|
|
9
|
+
item: "relative flex cursor-pointer items-center rounded-lg py-1.5 pr-2 pl-8 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground",
|
|
10
|
+
itemIndicator: "absolute left-2 flex items-center justify-center text-primary [&_svg]:size-4",
|
|
11
|
+
group: "not-first:mt-1",
|
|
12
|
+
groupLabel: "px-2 py-1.5 text-xs font-medium text-muted-foreground"
|
|
11
13
|
},
|
|
12
14
|
variants: { size: {
|
|
13
15
|
sm: { trigger: "h-8 px-2.5 text-sm" },
|
|
@@ -4,7 +4,7 @@ var t = e({
|
|
|
4
4
|
slots: {
|
|
5
5
|
root: "flex w-full",
|
|
6
6
|
item: "group relative flex flex-1 items-center gap-3",
|
|
7
|
-
trigger: "flex items-center gap-3 rounded-
|
|
7
|
+
trigger: "flex items-center gap-3 rounded-xl text-left outline-none focus-visible:ring-2 focus-visible:ring-primary/50 disabled:pointer-events-none disabled:opacity-50",
|
|
8
8
|
indicator: "flex size-8 shrink-0 items-center justify-center rounded-full border border-border bg-linear-to-b text-sm font-medium transition-[color,border-color] group-data-[state=active]:border-primary group-data-[state=active]:from-primary-from group-data-[state=active]:to-primary-to group-data-[state=active]:text-primary-foreground group-data-[state=completed]:border-primary group-data-[state=completed]:from-primary-from group-data-[state=completed]:to-primary-to group-data-[state=completed]:text-primary-foreground [&_svg]:size-4",
|
|
9
9
|
content: "flex flex-col gap-0.5",
|
|
10
10
|
title: "text-sm font-medium text-foreground",
|
|
@@ -2,7 +2,7 @@ import { tv as e } from "tailwind-variants";
|
|
|
2
2
|
//#region src/theme/switch.ts
|
|
3
3
|
var t = e({ slots: {
|
|
4
4
|
wrapper: "flex items-start gap-2.5",
|
|
5
|
-
root: "inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full transition-colors
|
|
5
|
+
root: "inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full transition-colors outline-none focus:ring-2 focus:ring-primary/50 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-muted",
|
|
6
6
|
thumb: "pointer-events-none block size-4 rounded-full bg-background shadow-sm transition-transform data-[state=checked]:translate-x-4.5 data-[state=unchecked]:translate-x-0.5",
|
|
7
7
|
content: "grid gap-1",
|
|
8
8
|
label: "text-sm leading-5 font-medium text-foreground select-none",
|
|
@@ -11,9 +11,9 @@ var t = e({
|
|
|
11
11
|
variants: {
|
|
12
12
|
variant: {
|
|
13
13
|
solid: {
|
|
14
|
-
list: "rounded-
|
|
15
|
-
indicator: "top-1 h-[calc(100%---spacing(2))] rounded-
|
|
16
|
-
trigger: "rounded-
|
|
14
|
+
list: "rounded-xl bg-muted p-1",
|
|
15
|
+
indicator: "top-1 h-[calc(100%---spacing(2))] rounded-lg bg-background shadow-sm",
|
|
16
|
+
trigger: "rounded-lg px-3 py-1.5 text-muted-foreground data-[state=active]:text-foreground"
|
|
17
17
|
},
|
|
18
18
|
line: {
|
|
19
19
|
list: "gap-4 border-b border-border",
|
|
@@ -3,13 +3,13 @@ import { tv as e } from "tailwind-variants";
|
|
|
3
3
|
var t = e({
|
|
4
4
|
slots: {
|
|
5
5
|
viewport: "fixed z-50 flex max-h-screen w-full flex-col gap-2 p-4 outline-none sm:max-w-sm",
|
|
6
|
-
root: "flex items-start gap-3 rounded-
|
|
6
|
+
root: "flex items-start gap-3 rounded-xl border p-4 shadow-lg data-[state=closed]:animate-fade-out data-[state=open]:animate-toast-in",
|
|
7
7
|
icon: "mt-0.5 shrink-0 [&_svg]:size-5",
|
|
8
8
|
content: "min-w-0 flex-1",
|
|
9
9
|
title: "text-sm font-medium",
|
|
10
10
|
description: "text-sm opacity-90",
|
|
11
|
-
action: "shrink-0 self-center rounded-
|
|
12
|
-
close: "-m-1 shrink-0 self-start rounded-
|
|
11
|
+
action: "shrink-0 self-center rounded-lg px-2 py-1 text-sm font-medium underline-offset-4 transition-colors outline-none hover:underline focus-visible:ring-2 focus-visible:ring-current/50",
|
|
12
|
+
close: "-m-1 shrink-0 self-start rounded-lg p-1 opacity-70 transition-opacity outline-none hover:opacity-100 focus-visible:ring-2 focus-visible:ring-current/50 [&_svg]:size-4"
|
|
13
13
|
},
|
|
14
14
|
variants: {
|
|
15
15
|
variant: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { tv as e } from "tailwind-variants";
|
|
2
2
|
//#region src/theme/tooltip.ts
|
|
3
3
|
var t = e({ slots: {
|
|
4
|
-
content: "z-50 max-w-xs rounded-
|
|
4
|
+
content: "z-50 max-w-xs rounded-lg bg-foreground px-2.5 py-1.5 text-xs text-background shadow-md data-[state=closed]:animate-fade-out data-[state=delayed-open]:animate-fade-in",
|
|
5
5
|
arrow: "fill-foreground"
|
|
6
6
|
} });
|
|
7
7
|
//#endregion
|
package/dist/plugin.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export interface IryxUiPluginOptions extends Partial<IryxUiConfig> {
|
|
|
7
7
|
prefix?: string;
|
|
8
8
|
/** Startup appearance. A preference the user already stored wins over this. */
|
|
9
9
|
appearance?: Appearance;
|
|
10
|
-
/** Color theme: a preset name (`'
|
|
10
|
+
/** Color theme: a preset name (`'violet'`, `'rose'`) or a custom theme. */
|
|
11
11
|
theme?: Theme | ThemePresetName;
|
|
12
12
|
}
|
|
13
13
|
/**
|
package/dist/theme/button.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export declare const buttonTheme: import("tailwind-variants").TVReturnType<{
|
|
|
20
20
|
block: {
|
|
21
21
|
true: string;
|
|
22
22
|
};
|
|
23
|
-
}, undefined, "inline-flex shrink-0 items-center justify-center gap-2 rounded-
|
|
23
|
+
}, undefined, "inline-flex shrink-0 items-center justify-center gap-2 rounded-xl border border-transparent font-medium transition-[color,background-color,border-color,box-shadow,opacity,filter,translate] outline-none focus-visible:ring-2 focus-visible:ring-primary/50 active:translate-y-px disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", {
|
|
24
24
|
variant: {
|
|
25
25
|
solid: string;
|
|
26
26
|
outline: string;
|
|
@@ -64,5 +64,5 @@ export declare const buttonTheme: import("tailwind-variants").TVReturnType<{
|
|
|
64
64
|
block: {
|
|
65
65
|
true: string;
|
|
66
66
|
};
|
|
67
|
-
}, undefined, "inline-flex shrink-0 items-center justify-center gap-2 rounded-
|
|
67
|
+
}, undefined, "inline-flex shrink-0 items-center justify-center gap-2 rounded-xl border border-transparent font-medium transition-[color,background-color,border-color,box-shadow,opacity,filter,translate] outline-none focus-visible:ring-2 focus-visible:ring-primary/50 active:translate-y-px disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", unknown, unknown, undefined>>;
|
|
68
68
|
export type ButtonVariants = Parameters<typeof buttonTheme>[0];
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
export declare const comboboxTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
size: {
|
|
3
|
+
sm: {
|
|
4
|
+
anchor: string;
|
|
5
|
+
};
|
|
6
|
+
md: {
|
|
7
|
+
anchor: string;
|
|
8
|
+
};
|
|
9
|
+
lg: {
|
|
10
|
+
anchor: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
invalid: {
|
|
14
|
+
true: {
|
|
15
|
+
anchor: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
disabled: {
|
|
19
|
+
true: {
|
|
20
|
+
anchor: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
}, {
|
|
24
|
+
anchor: string;
|
|
25
|
+
input: string;
|
|
26
|
+
trigger: string;
|
|
27
|
+
content: string;
|
|
28
|
+
viewport: string;
|
|
29
|
+
item: string;
|
|
30
|
+
itemIndicator: string;
|
|
31
|
+
empty: string;
|
|
32
|
+
group: string;
|
|
33
|
+
groupLabel: string;
|
|
34
|
+
}, undefined, {
|
|
35
|
+
size: {
|
|
36
|
+
sm: {
|
|
37
|
+
anchor: string;
|
|
38
|
+
};
|
|
39
|
+
md: {
|
|
40
|
+
anchor: string;
|
|
41
|
+
};
|
|
42
|
+
lg: {
|
|
43
|
+
anchor: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
invalid: {
|
|
47
|
+
true: {
|
|
48
|
+
anchor: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
disabled: {
|
|
52
|
+
true: {
|
|
53
|
+
anchor: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
}, {
|
|
57
|
+
anchor: string;
|
|
58
|
+
input: string;
|
|
59
|
+
trigger: string;
|
|
60
|
+
content: string;
|
|
61
|
+
viewport: string;
|
|
62
|
+
item: string;
|
|
63
|
+
itemIndicator: string;
|
|
64
|
+
empty: string;
|
|
65
|
+
group: string;
|
|
66
|
+
groupLabel: string;
|
|
67
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
68
|
+
size: {
|
|
69
|
+
sm: {
|
|
70
|
+
anchor: string;
|
|
71
|
+
};
|
|
72
|
+
md: {
|
|
73
|
+
anchor: string;
|
|
74
|
+
};
|
|
75
|
+
lg: {
|
|
76
|
+
anchor: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
invalid: {
|
|
80
|
+
true: {
|
|
81
|
+
anchor: string;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
disabled: {
|
|
85
|
+
true: {
|
|
86
|
+
anchor: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
}, {
|
|
90
|
+
anchor: string;
|
|
91
|
+
input: string;
|
|
92
|
+
trigger: string;
|
|
93
|
+
content: string;
|
|
94
|
+
viewport: string;
|
|
95
|
+
item: string;
|
|
96
|
+
itemIndicator: string;
|
|
97
|
+
empty: string;
|
|
98
|
+
group: string;
|
|
99
|
+
groupLabel: string;
|
|
100
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
101
|
+
export type ComboboxSlots = keyof ReturnType<typeof comboboxTheme>;
|
package/dist/theme/index.d.ts
CHANGED
package/dist/theme/input.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Shared field chrome for Input, Textarea and the Select trigger. */
|
|
2
|
-
export declare const fieldBase = "w-full rounded-
|
|
2
|
+
export declare const fieldBase = "w-full rounded-xl border border-border bg-input text-foreground transition-colors outline-none placeholder:text-muted-foreground focus-visible:ring-2 focus-visible:ring-primary/50 disabled:cursor-not-allowed disabled:opacity-50";
|
|
3
3
|
export declare const inputTheme: import("tailwind-variants").TVReturnType<{
|
|
4
4
|
size: {
|
|
5
5
|
sm: string;
|
|
@@ -9,7 +9,7 @@ export declare const inputTheme: import("tailwind-variants").TVReturnType<{
|
|
|
9
9
|
invalid: {
|
|
10
10
|
true: string;
|
|
11
11
|
};
|
|
12
|
-
}, undefined, "flex w-full rounded-
|
|
12
|
+
}, undefined, "flex w-full rounded-xl border border-border bg-input text-foreground transition-colors outline-none placeholder:text-muted-foreground focus-visible:ring-2 focus-visible:ring-primary/50 disabled:cursor-not-allowed disabled:opacity-50", {
|
|
13
13
|
size: {
|
|
14
14
|
sm: string;
|
|
15
15
|
md: string;
|
|
@@ -27,7 +27,7 @@ export declare const inputTheme: import("tailwind-variants").TVReturnType<{
|
|
|
27
27
|
invalid: {
|
|
28
28
|
true: string;
|
|
29
29
|
};
|
|
30
|
-
}, undefined, "flex w-full rounded-
|
|
30
|
+
}, undefined, "flex w-full rounded-xl border border-border bg-input text-foreground transition-colors outline-none placeholder:text-muted-foreground focus-visible:ring-2 focus-visible:ring-primary/50 disabled:cursor-not-allowed disabled:opacity-50", unknown, unknown, undefined>>;
|
|
31
31
|
export declare const textareaTheme: import("tailwind-variants").TVReturnType<{
|
|
32
32
|
size: {
|
|
33
33
|
sm: string;
|
|
@@ -37,7 +37,7 @@ export declare const textareaTheme: import("tailwind-variants").TVReturnType<{
|
|
|
37
37
|
invalid: {
|
|
38
38
|
true: string;
|
|
39
39
|
};
|
|
40
|
-
}, undefined, "block resize-y w-full rounded-
|
|
40
|
+
}, undefined, "block resize-y w-full rounded-xl border border-border bg-input text-foreground transition-colors outline-none placeholder:text-muted-foreground focus-visible:ring-2 focus-visible:ring-primary/50 disabled:cursor-not-allowed disabled:opacity-50", {
|
|
41
41
|
size: {
|
|
42
42
|
sm: string;
|
|
43
43
|
md: string;
|
|
@@ -55,6 +55,6 @@ export declare const textareaTheme: import("tailwind-variants").TVReturnType<{
|
|
|
55
55
|
invalid: {
|
|
56
56
|
true: string;
|
|
57
57
|
};
|
|
58
|
-
}, undefined, "block resize-y w-full rounded-
|
|
58
|
+
}, undefined, "block resize-y w-full rounded-xl border border-border bg-input text-foreground transition-colors outline-none placeholder:text-muted-foreground focus-visible:ring-2 focus-visible:ring-primary/50 disabled:cursor-not-allowed disabled:opacity-50", unknown, unknown, undefined>>;
|
|
59
59
|
export type InputVariants = Parameters<typeof inputTheme>[0];
|
|
60
60
|
export type TextareaVariants = Parameters<typeof textareaTheme>[0];
|
package/dist/theme/presets.d.ts
CHANGED
|
@@ -58,20 +58,6 @@ export declare const themes: {
|
|
|
58
58
|
primaryTo: string;
|
|
59
59
|
};
|
|
60
60
|
};
|
|
61
|
-
emerald: {
|
|
62
|
-
light: {
|
|
63
|
-
primary: string;
|
|
64
|
-
primaryForeground: string;
|
|
65
|
-
primaryFrom: string;
|
|
66
|
-
primaryTo: string;
|
|
67
|
-
};
|
|
68
|
-
dark: {
|
|
69
|
-
primary: string;
|
|
70
|
-
primaryForeground: string;
|
|
71
|
-
primaryFrom: string;
|
|
72
|
-
primaryTo: string;
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
61
|
rose: {
|
|
76
62
|
light: {
|
|
77
63
|
primary: string;
|
|
@@ -86,34 +72,6 @@ export declare const themes: {
|
|
|
86
72
|
primaryTo: string;
|
|
87
73
|
};
|
|
88
74
|
};
|
|
89
|
-
amber: {
|
|
90
|
-
light: {
|
|
91
|
-
primary: string;
|
|
92
|
-
primaryForeground: string;
|
|
93
|
-
primaryFrom: string;
|
|
94
|
-
primaryTo: string;
|
|
95
|
-
};
|
|
96
|
-
dark: {
|
|
97
|
-
primary: string;
|
|
98
|
-
primaryForeground: string;
|
|
99
|
-
primaryFrom: string;
|
|
100
|
-
primaryTo: string;
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
sky: {
|
|
104
|
-
light: {
|
|
105
|
-
primary: string;
|
|
106
|
-
primaryForeground: string;
|
|
107
|
-
primaryFrom: string;
|
|
108
|
-
primaryTo: string;
|
|
109
|
-
};
|
|
110
|
-
dark: {
|
|
111
|
-
primary: string;
|
|
112
|
-
primaryForeground: string;
|
|
113
|
-
primaryFrom: string;
|
|
114
|
-
primaryTo: string;
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
75
|
};
|
|
118
76
|
export type ThemePresetName = keyof typeof themes;
|
|
119
77
|
/**
|
package/dist/theme/select.d.ts
CHANGED
|
@@ -16,6 +16,8 @@ export declare const selectTheme: import("tailwind-variants").TVReturnType<{
|
|
|
16
16
|
viewport: string;
|
|
17
17
|
item: string;
|
|
18
18
|
itemIndicator: string;
|
|
19
|
+
group: string;
|
|
20
|
+
groupLabel: string;
|
|
19
21
|
}, undefined, {
|
|
20
22
|
size: {
|
|
21
23
|
sm: {
|
|
@@ -34,6 +36,8 @@ export declare const selectTheme: import("tailwind-variants").TVReturnType<{
|
|
|
34
36
|
viewport: string;
|
|
35
37
|
item: string;
|
|
36
38
|
itemIndicator: string;
|
|
39
|
+
group: string;
|
|
40
|
+
groupLabel: string;
|
|
37
41
|
}, import("tailwind-variants").TVReturnType<{
|
|
38
42
|
size: {
|
|
39
43
|
sm: {
|
|
@@ -52,5 +56,7 @@ export declare const selectTheme: import("tailwind-variants").TVReturnType<{
|
|
|
52
56
|
viewport: string;
|
|
53
57
|
item: string;
|
|
54
58
|
itemIndicator: string;
|
|
59
|
+
group: string;
|
|
60
|
+
groupLabel: string;
|
|
55
61
|
}, undefined, unknown, unknown, undefined>>;
|
|
56
62
|
export type SelectSlots = keyof ReturnType<typeof selectTheme>;
|
package/package.json
CHANGED
package/theme.css
CHANGED
|
@@ -27,6 +27,17 @@
|
|
|
27
27
|
--iryx-muted: oklch(0.97 0 0);
|
|
28
28
|
--iryx-muted-foreground: oklch(0.556 0 0);
|
|
29
29
|
--iryx-border: oklch(0.922 0 0);
|
|
30
|
+
/*
|
|
31
|
+
* Fill for controls that read as recessed — the fields and the outline
|
|
32
|
+
* button. Its own token rather than `--iryx-muted`, since how raised a
|
|
33
|
+
* control looks is a separate decision from how a muted surface reads.
|
|
34
|
+
*
|
|
35
|
+
* Flat in light and raised in dark, which is where the lift is legible;
|
|
36
|
+
* shadcn does the same with `bg-transparent dark:bg-input/30`. Expressed as
|
|
37
|
+
* two token values rather than a `dark:` variant, so components never carry
|
|
38
|
+
* mode-specific classes.
|
|
39
|
+
*/
|
|
40
|
+
--iryx-input: oklch(1 0 0);
|
|
30
41
|
/* Brand primary — kept as a violet gradient. */
|
|
31
42
|
--iryx-primary: oklch(0.59 0.2 277.19);
|
|
32
43
|
--iryx-primary-foreground: oklch(0.985 0.005 248);
|
|
@@ -68,6 +79,8 @@
|
|
|
68
79
|
--iryx-muted: oklch(0.269 0 0);
|
|
69
80
|
--iryx-muted-foreground: oklch(0.708 0 0);
|
|
70
81
|
--iryx-border: oklch(1 0 0 / 10%);
|
|
82
|
+
/* Lifted just off the background — `--iryx-muted` reads as a panel here. */
|
|
83
|
+
--iryx-input: oklch(0.205 0 0);
|
|
71
84
|
/* Brand primary — kept as a violet gradient. */
|
|
72
85
|
--iryx-primary: oklch(0.62 0.22 293);
|
|
73
86
|
--iryx-primary-foreground: oklch(0.985 0.005 248);
|
|
@@ -108,6 +121,7 @@
|
|
|
108
121
|
--color-muted: var(--iryx-muted);
|
|
109
122
|
--color-muted-foreground: var(--iryx-muted-foreground);
|
|
110
123
|
--color-border: var(--iryx-border);
|
|
124
|
+
--color-input: var(--iryx-input);
|
|
111
125
|
--color-success: var(--iryx-success);
|
|
112
126
|
--color-success-foreground: var(--iryx-success-foreground);
|
|
113
127
|
--color-success-muted: var(--iryx-success-muted);
|