@@ -20,15 +20,17 @@ export type ButtonAppearance =
2020 | "danger"
2121 | "success"
2222 | "information"
23+ | "discovery"
2324
2425type ButtonVariantProps = VariantProps < typeof buttonVariants >
2526const buttonVariants = cva (
26- "focus-visible:outline-selected-bold relative box-border flex shrink-0 cursor-pointer items-center justify-center gap-1 rounded-sm border-2 border-transparent px-2 py-1 outline-none outline-2 outline-offset-4 focus-visible:outline-solid" ,
27+ "focus-visible:outline-selected-bold relative box-border flex transition-colors duration-200 shrink-0 cursor-pointer items-center justify-center gap-1 rounded-sm border-2 border-transparent px-2 py-1 outline-none outline-2 outline-offset-4 focus-visible:outline-solid" ,
2728 {
2829 variants : {
2930 appearance : {
3031 // those entries are undefined, they just establish the variant for the compoundVariants
31- default : undefined ,
32+ default :
33+ "bg-neutral hover:bg-neutral-hovered active:bg-neutral-pressed text-text" ,
3234 primary : undefined ,
3335
3436 subtle : undefined ,
@@ -41,12 +43,13 @@ const buttonVariants = cva(
4143 success : undefined ,
4244
4345 information : undefined ,
46+ discovery : undefined ,
4447 } ,
4548 disabled : {
4649 true : "disabled:bg-disabled disabled:text-disabled-text disabled:cursor-not-allowed" ,
4750 } ,
4851 selected : {
49- true : "bg-selected active:bg-selected hover:bg -selected text-selected-text-inverse cursor-pointer" ,
52+ true : "bg-selected hover:bg-selected-bold active:bg-selected-pressed text-selected-text-inverse hover:text -selected-text active: text-selected-text-inverse cursor-pointer" ,
5053 } ,
5154 inverted : {
5255 true : undefined ,
@@ -61,13 +64,21 @@ const buttonVariants = cva(
6164 disabled : true ,
6265 className : "disabled:border-border disabled:bg-transparent" ,
6366 } ,
64- {
67+ /* {
6568 inverted: false,
6669 appearance: "default",
6770 disabled: false,
6871 className:
6972 "bg-neutral hover:bg-neutral-hovered active:bg-neutral-pressed text-text",
70- } ,
73+ },*/
74+ /*{
75+ inverted: false,
76+ appearance: "default",
77+ disabled: false,
78+ selected: true,
79+ className:
80+ "bg-selected active:bg-selected hover:bg-selected text-selected-text-inverse cursor-pointer",
81+ },*/
7182 {
7283 inverted : false ,
7384 appearance : "primary" ,
@@ -124,6 +135,13 @@ const buttonVariants = cva(
124135 className :
125136 "bg-information-bold hover:bg-information-bold-hovered active:bg-information-bold-pressed text-text-inverse" ,
126137 } ,
138+ {
139+ inverted : false ,
140+ appearance : "discovery" ,
141+ disabled : false ,
142+ className :
143+ "bg-discovery-bold hover:bg-discovery-bold-hovered active:bg-discovery-bold-pressed text-text-inverse" ,
144+ } ,
127145 {
128146 inverted : true ,
129147 appearance : "default" ,
@@ -170,6 +188,14 @@ const buttonVariants = cva(
170188 "border-information-bold text-information-text border-solid" ,
171189 ) ,
172190 } ,
191+ {
192+ inverted : true ,
193+ appearance : "discovery" ,
194+ className : cx (
195+ "bg-discovery hover:bg-discovery-hovered active:bg-discovery-pressed" ,
196+ "border-discovery-bold text-discovery-text border-solid" ,
197+ ) ,
198+ } ,
173199 ] ,
174200 defaultVariants : {
175201 appearance : "default" ,
@@ -317,6 +343,7 @@ const loadingSpinnerClassNames = cva(null, {
317343 danger : "border-t-text-inverse border-2" ,
318344 success : "border-t-text-inverse border-2" ,
319345 information : "border-t-text-inverse border-2" ,
346+ discovery : "border-t-text-inverse border-2" ,
320347 } ,
321348 loading : {
322349 false : "opacity-0" ,
0 commit comments