@payfit/unity-components 2.63.0 → 2.63.2
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.
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
export declare const linkButtonFilled: import('tailwind-variants').TVReturnType<{
|
|
2
|
+
color: {
|
|
3
|
+
primary: string[];
|
|
4
|
+
warning: string[];
|
|
5
|
+
danger: string[];
|
|
6
|
+
neutral: string[];
|
|
7
|
+
inverted: string[];
|
|
8
|
+
'inverted.low': string[];
|
|
9
|
+
};
|
|
10
|
+
isDisabled: {
|
|
11
|
+
readonly true: "";
|
|
12
|
+
readonly false: "";
|
|
13
|
+
};
|
|
14
|
+
isLoading: {
|
|
15
|
+
readonly true: "";
|
|
16
|
+
readonly false: "";
|
|
17
|
+
};
|
|
18
|
+
}, undefined, "uy:not-data-[disabled]:data-[focus-visible=\"true\"]:outline-2 uy:not-data-[disabled]:data-[focus-visible=\"true\"]:outline-solid uy:not-data-[disabled]:data-[focus-visible=\"true\"]:outline-offset-2 uy:not-data-[disabled]:data-[focus-visible=\"true\"]:outline-utility-focus-ring", {
|
|
19
|
+
color: {
|
|
20
|
+
primary: string[];
|
|
21
|
+
warning: string[];
|
|
22
|
+
danger: string[];
|
|
23
|
+
neutral: string[];
|
|
24
|
+
inverted: string[];
|
|
25
|
+
'inverted.low': string[];
|
|
26
|
+
};
|
|
27
|
+
isDisabled: {
|
|
28
|
+
true: "uy:disabled:bg-surface-neutral-disabled uy:disabled:text-content-neutral-disabled";
|
|
29
|
+
false: "";
|
|
30
|
+
};
|
|
31
|
+
isLoading: {
|
|
32
|
+
true: "uy:data-[loading]:bg-surface-neutral-disabled uy:data-[loading]:text-content-neutral-disabled";
|
|
33
|
+
false: "";
|
|
34
|
+
};
|
|
35
|
+
} & {
|
|
36
|
+
isDisabled: {
|
|
37
|
+
true: "uy:disabled:cursor-not-allowed";
|
|
38
|
+
false: "";
|
|
39
|
+
};
|
|
40
|
+
isLoading: {
|
|
41
|
+
true: "uy:data-[loading]:cursor-progress uy:data-[loading]:text-content-neutral-disabled";
|
|
42
|
+
false: "";
|
|
43
|
+
};
|
|
44
|
+
size: {
|
|
45
|
+
default: "uy:w-auto uy:grow-0 uy:basis-auto";
|
|
46
|
+
full: "uy:grow-1 uy:w-full uy:basis-full";
|
|
47
|
+
};
|
|
48
|
+
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
49
|
+
color: {
|
|
50
|
+
primary: string[];
|
|
51
|
+
warning: string[];
|
|
52
|
+
danger: string[];
|
|
53
|
+
neutral: string[];
|
|
54
|
+
inverted: string[];
|
|
55
|
+
'inverted.low': string[];
|
|
56
|
+
};
|
|
57
|
+
isDisabled: {
|
|
58
|
+
true: "uy:disabled:bg-surface-neutral-disabled uy:disabled:text-content-neutral-disabled";
|
|
59
|
+
false: "";
|
|
60
|
+
};
|
|
61
|
+
isLoading: {
|
|
62
|
+
true: "uy:data-[loading]:bg-surface-neutral-disabled uy:data-[loading]:text-content-neutral-disabled";
|
|
63
|
+
false: "";
|
|
64
|
+
};
|
|
65
|
+
}, undefined, undefined, {
|
|
66
|
+
isDisabled: {
|
|
67
|
+
true: "uy:disabled:cursor-not-allowed";
|
|
68
|
+
false: "";
|
|
69
|
+
};
|
|
70
|
+
isLoading: {
|
|
71
|
+
true: "uy:data-[loading]:cursor-progress uy:data-[loading]:text-content-neutral-disabled";
|
|
72
|
+
false: "";
|
|
73
|
+
};
|
|
74
|
+
size: {
|
|
75
|
+
default: "uy:w-auto uy:grow-0 uy:basis-auto";
|
|
76
|
+
full: "uy:grow-1 uy:w-full uy:basis-full";
|
|
77
|
+
};
|
|
78
|
+
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
79
|
+
isDisabled: {
|
|
80
|
+
true: "uy:disabled:cursor-not-allowed";
|
|
81
|
+
false: "";
|
|
82
|
+
};
|
|
83
|
+
isLoading: {
|
|
84
|
+
true: "uy:data-[loading]:cursor-progress uy:data-[loading]:text-content-neutral-disabled";
|
|
85
|
+
false: "";
|
|
86
|
+
};
|
|
87
|
+
size: {
|
|
88
|
+
default: "uy:w-auto uy:grow-0 uy:basis-auto";
|
|
89
|
+
full: "uy:grow-1 uy:w-full uy:basis-full";
|
|
90
|
+
};
|
|
91
|
+
}, undefined, string[], {
|
|
92
|
+
isDisabled: {
|
|
93
|
+
true: "uy:disabled:cursor-not-allowed";
|
|
94
|
+
false: "";
|
|
95
|
+
};
|
|
96
|
+
isLoading: {
|
|
97
|
+
true: "uy:data-[loading]:cursor-progress uy:data-[loading]:text-content-neutral-disabled";
|
|
98
|
+
false: "";
|
|
99
|
+
};
|
|
100
|
+
size: {
|
|
101
|
+
default: "uy:w-auto uy:grow-0 uy:basis-auto";
|
|
102
|
+
full: "uy:grow-1 uy:w-full uy:basis-full";
|
|
103
|
+
};
|
|
104
|
+
}, undefined, import('tailwind-variants').TVReturnTypeLike<{
|
|
105
|
+
isDisabled: {
|
|
106
|
+
true: "uy:disabled:cursor-not-allowed";
|
|
107
|
+
false: "";
|
|
108
|
+
};
|
|
109
|
+
isLoading: {
|
|
110
|
+
true: "uy:data-[loading]:cursor-progress uy:data-[loading]:text-content-neutral-disabled";
|
|
111
|
+
false: "";
|
|
112
|
+
};
|
|
113
|
+
size: {
|
|
114
|
+
default: "uy:w-auto uy:grow-0 uy:basis-auto";
|
|
115
|
+
full: "uy:grow-1 uy:w-full uy:basis-full";
|
|
116
|
+
};
|
|
117
|
+
}, undefined>>>>;
|
|
118
|
+
export declare const linkButtonOutlined: import('tailwind-variants').TVReturnType<{
|
|
119
|
+
color: {
|
|
120
|
+
primary: string[];
|
|
121
|
+
inverted: string[];
|
|
122
|
+
};
|
|
123
|
+
isDisabled: {
|
|
124
|
+
readonly true: "";
|
|
125
|
+
readonly false: "";
|
|
126
|
+
};
|
|
127
|
+
isLoading: {
|
|
128
|
+
readonly true: "";
|
|
129
|
+
readonly false: "";
|
|
130
|
+
};
|
|
131
|
+
}, undefined, "uy:not-data-[disabled]:data-[focus-visible=\"true\"]:outline-2 uy:not-data-[disabled]:data-[focus-visible=\"true\"]:outline-solid uy:not-data-[disabled]:data-[focus-visible=\"true\"]:outline-offset-2 uy:not-data-[disabled]:data-[focus-visible=\"true\"]:outline-utility-focus-ring", {
|
|
132
|
+
color: {
|
|
133
|
+
primary: string[];
|
|
134
|
+
inverted: string[];
|
|
135
|
+
};
|
|
136
|
+
isDisabled: {
|
|
137
|
+
true: "uy:disabled:text-content-neutral-disabled uy:disabled:border-border-neutral-disabled uy:data-[disabled]:border-border-neutral-disabled";
|
|
138
|
+
false: "";
|
|
139
|
+
};
|
|
140
|
+
isLoading: {
|
|
141
|
+
true: "uy:data-[loading]:text-content-neutral-disabled uy:data-[loading]:border-border-neutral-disabled";
|
|
142
|
+
};
|
|
143
|
+
} & {
|
|
144
|
+
isDisabled: {
|
|
145
|
+
true: "uy:disabled:cursor-not-allowed";
|
|
146
|
+
false: "";
|
|
147
|
+
};
|
|
148
|
+
isLoading: {
|
|
149
|
+
true: "uy:data-[loading]:cursor-progress uy:data-[loading]:text-content-neutral-disabled";
|
|
150
|
+
false: "";
|
|
151
|
+
};
|
|
152
|
+
size: {
|
|
153
|
+
default: "uy:w-auto uy:grow-0 uy:basis-auto";
|
|
154
|
+
full: "uy:grow-1 uy:w-full uy:basis-full";
|
|
155
|
+
};
|
|
156
|
+
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
157
|
+
color: {
|
|
158
|
+
primary: string[];
|
|
159
|
+
inverted: string[];
|
|
160
|
+
};
|
|
161
|
+
isDisabled: {
|
|
162
|
+
true: "uy:disabled:text-content-neutral-disabled uy:disabled:border-border-neutral-disabled uy:data-[disabled]:border-border-neutral-disabled";
|
|
163
|
+
false: "";
|
|
164
|
+
};
|
|
165
|
+
isLoading: {
|
|
166
|
+
true: "uy:data-[loading]:text-content-neutral-disabled uy:data-[loading]:border-border-neutral-disabled";
|
|
167
|
+
};
|
|
168
|
+
}, undefined, "uy:border uy:border-solid uy:bg-transparent", {
|
|
169
|
+
isDisabled: {
|
|
170
|
+
true: "uy:disabled:cursor-not-allowed";
|
|
171
|
+
false: "";
|
|
172
|
+
};
|
|
173
|
+
isLoading: {
|
|
174
|
+
true: "uy:data-[loading]:cursor-progress uy:data-[loading]:text-content-neutral-disabled";
|
|
175
|
+
false: "";
|
|
176
|
+
};
|
|
177
|
+
size: {
|
|
178
|
+
default: "uy:w-auto uy:grow-0 uy:basis-auto";
|
|
179
|
+
full: "uy:grow-1 uy:w-full uy:basis-full";
|
|
180
|
+
};
|
|
181
|
+
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
182
|
+
isDisabled: {
|
|
183
|
+
true: "uy:disabled:cursor-not-allowed";
|
|
184
|
+
false: "";
|
|
185
|
+
};
|
|
186
|
+
isLoading: {
|
|
187
|
+
true: "uy:data-[loading]:cursor-progress uy:data-[loading]:text-content-neutral-disabled";
|
|
188
|
+
false: "";
|
|
189
|
+
};
|
|
190
|
+
size: {
|
|
191
|
+
default: "uy:w-auto uy:grow-0 uy:basis-auto";
|
|
192
|
+
full: "uy:grow-1 uy:w-full uy:basis-full";
|
|
193
|
+
};
|
|
194
|
+
}, undefined, string[], {
|
|
195
|
+
isDisabled: {
|
|
196
|
+
true: "uy:disabled:cursor-not-allowed";
|
|
197
|
+
false: "";
|
|
198
|
+
};
|
|
199
|
+
isLoading: {
|
|
200
|
+
true: "uy:data-[loading]:cursor-progress uy:data-[loading]:text-content-neutral-disabled";
|
|
201
|
+
false: "";
|
|
202
|
+
};
|
|
203
|
+
size: {
|
|
204
|
+
default: "uy:w-auto uy:grow-0 uy:basis-auto";
|
|
205
|
+
full: "uy:grow-1 uy:w-full uy:basis-full";
|
|
206
|
+
};
|
|
207
|
+
}, undefined, import('tailwind-variants').TVReturnTypeLike<{
|
|
208
|
+
isDisabled: {
|
|
209
|
+
true: "uy:disabled:cursor-not-allowed";
|
|
210
|
+
false: "";
|
|
211
|
+
};
|
|
212
|
+
isLoading: {
|
|
213
|
+
true: "uy:data-[loading]:cursor-progress uy:data-[loading]:text-content-neutral-disabled";
|
|
214
|
+
false: "";
|
|
215
|
+
};
|
|
216
|
+
size: {
|
|
217
|
+
default: "uy:w-auto uy:grow-0 uy:basis-auto";
|
|
218
|
+
full: "uy:grow-1 uy:w-full uy:basis-full";
|
|
219
|
+
};
|
|
220
|
+
}, undefined>>>>;
|
|
221
|
+
export declare const linkButtonGhost: import('tailwind-variants').TVReturnType<{
|
|
222
|
+
color: {
|
|
223
|
+
primary: string[];
|
|
224
|
+
warning: string[];
|
|
225
|
+
danger: string[];
|
|
226
|
+
neutral: string[];
|
|
227
|
+
'neutral.lowest': string[];
|
|
228
|
+
inverted: string[];
|
|
229
|
+
};
|
|
230
|
+
isDisabled: {
|
|
231
|
+
readonly true: "";
|
|
232
|
+
readonly false: "";
|
|
233
|
+
};
|
|
234
|
+
isLoading: {
|
|
235
|
+
readonly true: "";
|
|
236
|
+
readonly false: "";
|
|
237
|
+
};
|
|
238
|
+
}, undefined, "uy:not-data-[disabled]:data-[focus-visible=\"true\"]:outline-2 uy:not-data-[disabled]:data-[focus-visible=\"true\"]:outline-solid uy:not-data-[disabled]:data-[focus-visible=\"true\"]:outline-offset-2 uy:not-data-[disabled]:data-[focus-visible=\"true\"]:outline-utility-focus-ring", {
|
|
239
|
+
color: {
|
|
240
|
+
primary: string[];
|
|
241
|
+
warning: string[];
|
|
242
|
+
danger: string[];
|
|
243
|
+
neutral: string[];
|
|
244
|
+
'neutral.lowest': string[];
|
|
245
|
+
inverted: string[];
|
|
246
|
+
};
|
|
247
|
+
isDisabled: {
|
|
248
|
+
true: "uy:disabled:text-content-neutral-disabled uy:disabled:bg-transparent";
|
|
249
|
+
false: "";
|
|
250
|
+
};
|
|
251
|
+
isLoading: {
|
|
252
|
+
true: "uy:data-[loading]:text-content-neutral-disabled uy:data-[loading]:bg-transparent";
|
|
253
|
+
false: "";
|
|
254
|
+
};
|
|
255
|
+
} & {
|
|
256
|
+
isDisabled: {
|
|
257
|
+
true: "uy:disabled:cursor-not-allowed";
|
|
258
|
+
false: "";
|
|
259
|
+
};
|
|
260
|
+
isLoading: {
|
|
261
|
+
true: "uy:data-[loading]:cursor-progress uy:data-[loading]:text-content-neutral-disabled";
|
|
262
|
+
false: "";
|
|
263
|
+
};
|
|
264
|
+
size: {
|
|
265
|
+
default: "uy:w-auto uy:grow-0 uy:basis-auto";
|
|
266
|
+
full: "uy:grow-1 uy:w-full uy:basis-full";
|
|
267
|
+
};
|
|
268
|
+
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
269
|
+
color: {
|
|
270
|
+
primary: string[];
|
|
271
|
+
warning: string[];
|
|
272
|
+
danger: string[];
|
|
273
|
+
neutral: string[];
|
|
274
|
+
'neutral.lowest': string[];
|
|
275
|
+
inverted: string[];
|
|
276
|
+
};
|
|
277
|
+
isDisabled: {
|
|
278
|
+
true: "uy:disabled:text-content-neutral-disabled uy:disabled:bg-transparent";
|
|
279
|
+
false: "";
|
|
280
|
+
};
|
|
281
|
+
isLoading: {
|
|
282
|
+
true: "uy:data-[loading]:text-content-neutral-disabled uy:data-[loading]:bg-transparent";
|
|
283
|
+
false: "";
|
|
284
|
+
};
|
|
285
|
+
}, undefined, undefined, {
|
|
286
|
+
isDisabled: {
|
|
287
|
+
true: "uy:disabled:cursor-not-allowed";
|
|
288
|
+
false: "";
|
|
289
|
+
};
|
|
290
|
+
isLoading: {
|
|
291
|
+
true: "uy:data-[loading]:cursor-progress uy:data-[loading]:text-content-neutral-disabled";
|
|
292
|
+
false: "";
|
|
293
|
+
};
|
|
294
|
+
size: {
|
|
295
|
+
default: "uy:w-auto uy:grow-0 uy:basis-auto";
|
|
296
|
+
full: "uy:grow-1 uy:w-full uy:basis-full";
|
|
297
|
+
};
|
|
298
|
+
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
299
|
+
isDisabled: {
|
|
300
|
+
true: "uy:disabled:cursor-not-allowed";
|
|
301
|
+
false: "";
|
|
302
|
+
};
|
|
303
|
+
isLoading: {
|
|
304
|
+
true: "uy:data-[loading]:cursor-progress uy:data-[loading]:text-content-neutral-disabled";
|
|
305
|
+
false: "";
|
|
306
|
+
};
|
|
307
|
+
size: {
|
|
308
|
+
default: "uy:w-auto uy:grow-0 uy:basis-auto";
|
|
309
|
+
full: "uy:grow-1 uy:w-full uy:basis-full";
|
|
310
|
+
};
|
|
311
|
+
}, undefined, string[], {
|
|
312
|
+
isDisabled: {
|
|
313
|
+
true: "uy:disabled:cursor-not-allowed";
|
|
314
|
+
false: "";
|
|
315
|
+
};
|
|
316
|
+
isLoading: {
|
|
317
|
+
true: "uy:data-[loading]:cursor-progress uy:data-[loading]:text-content-neutral-disabled";
|
|
318
|
+
false: "";
|
|
319
|
+
};
|
|
320
|
+
size: {
|
|
321
|
+
default: "uy:w-auto uy:grow-0 uy:basis-auto";
|
|
322
|
+
full: "uy:grow-1 uy:w-full uy:basis-full";
|
|
323
|
+
};
|
|
324
|
+
}, undefined, import('tailwind-variants').TVReturnTypeLike<{
|
|
325
|
+
isDisabled: {
|
|
326
|
+
true: "uy:disabled:cursor-not-allowed";
|
|
327
|
+
false: "";
|
|
328
|
+
};
|
|
329
|
+
isLoading: {
|
|
330
|
+
true: "uy:data-[loading]:cursor-progress uy:data-[loading]:text-content-neutral-disabled";
|
|
331
|
+
false: "";
|
|
332
|
+
};
|
|
333
|
+
size: {
|
|
334
|
+
default: "uy:w-auto uy:grow-0 uy:basis-auto";
|
|
335
|
+
full: "uy:grow-1 uy:w-full uy:basis-full";
|
|
336
|
+
};
|
|
337
|
+
}, undefined>>>>;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { buttonFilled as e, buttonGhost as t, buttonOutlined as n } from "../button/Button.variants.js";
|
|
2
|
+
import { uyTv as r } from "@payfit/unity-themes";
|
|
3
|
+
//#region src/components/link-button/LinkButton.variants.ts
|
|
4
|
+
var i = "uy:not-data-[disabled]:data-[focus-visible=\"true\"]:outline-2 uy:not-data-[disabled]:data-[focus-visible=\"true\"]:outline-solid uy:not-data-[disabled]:data-[focus-visible=\"true\"]:outline-offset-2 uy:not-data-[disabled]:data-[focus-visible=\"true\"]:outline-utility-focus-ring", a = {
|
|
5
|
+
isDisabled: {
|
|
6
|
+
true: "",
|
|
7
|
+
false: ""
|
|
8
|
+
},
|
|
9
|
+
isLoading: {
|
|
10
|
+
true: "",
|
|
11
|
+
false: ""
|
|
12
|
+
}
|
|
13
|
+
}, o = r({
|
|
14
|
+
extend: e,
|
|
15
|
+
base: i,
|
|
16
|
+
variants: {
|
|
17
|
+
...a,
|
|
18
|
+
color: {
|
|
19
|
+
primary: [
|
|
20
|
+
"uy:theme-legacy:not-data-[disabled]:data-[hovered=\"true\"]:bg-surface-primary-hover uy:theme-rebrand:not-data-[disabled]:data-[hovered=\"true\"]:bg-surface-neutral-highest-hover uy:not-data-[disabled]:data-[hovered=\"true\"]:text-content-inverted-hover",
|
|
21
|
+
"uy:theme-legacy:not-data-[disabled]:active:bg-surface-primary-active uy:theme-rebrand:not-data-[disabled]:active:bg-surface-neutral-highest-active uy:not-data-[disabled]:active:text-content-inverted-hover",
|
|
22
|
+
"uy:theme-legacy:not-data-[disabled]:data-[pressed=\"true\"]:bg-surface-primary-pressed uy:theme-rebrand:not-data-[disabled]:data-[pressed=\"true\"]:bg-surface-neutral-highest-pressed uy:not-data-[disabled]:data-[pressed=\"true\"]:text-content-inverted-pressed"
|
|
23
|
+
],
|
|
24
|
+
warning: [
|
|
25
|
+
"uy:not-data-[disabled]:data-[hovered=\"true\"]:bg-surface-warning-hover uy:not-data-[disabled]:data-[hovered=\"true\"]:text-content-neutral-hover",
|
|
26
|
+
"uy:not-data-[disabled]:active:bg-surface-warning-active uy:not-data-[disabled]:active:text-content-neutral-active",
|
|
27
|
+
"uy:not-data-[disabled]:data-[pressed=\"true\"]:bg-surface-warning-pressed uy:not-data-[disabled]:data-[pressed=\"true\"]:text-content-neutral-pressed"
|
|
28
|
+
],
|
|
29
|
+
danger: [
|
|
30
|
+
"uy:not-data-[disabled]:data-[hovered=\"true\"]:bg-surface-danger-hover uy:theme-legacy:not-data-[disabled]:data-[hovered=\"true\"]:text-content-inverted-hover",
|
|
31
|
+
"uy:not-data-[disabled]:active:bg-surface-danger-active uy:theme-legacy:not-data-[disabled]:active:text-content-inverted",
|
|
32
|
+
"uy:not-data-[disabled]:data-[pressed=\"true\"]:bg-surface-danger-pressed uy:theme-legacy:not-data-[disabled]:data-[pressed=\"true\"]:text-content-inverted"
|
|
33
|
+
],
|
|
34
|
+
neutral: [
|
|
35
|
+
"uy:not-data-[disabled]:data-[hovered=\"true\"]:bg-surface-neutral-low-hover uy:not-data-[disabled]:data-[hovered=\"true\"]:text-content-neutral-hover",
|
|
36
|
+
"uy:not-data-[disabled]:active:bg-surface-neutral-low-active uy:not-data-[disabled]:active:text-content-neutral-active",
|
|
37
|
+
"uy:not-data-[disabled]:data-[pressed=\"true\"]:bg-surface-neutral-low-pressed uy:not-data-[disabled]:data-[pressed=\"true\"]:text-content-neutral-pressed"
|
|
38
|
+
],
|
|
39
|
+
inverted: [
|
|
40
|
+
"uy:not-data-[disabled]:data-[hovered=\"true\"]:bg-surface-neutral-hover uy:not-data-[disabled]:data-[hovered=\"true\"]:text-content-neutral-hover",
|
|
41
|
+
"uy:not-data-[disabled]:active:bg-surface-neutral-active uy:not-data-[disabled]:active:text-content-neutral-active",
|
|
42
|
+
"uy:not-data-[disabled]:data-[pressed=\"true\"]:bg-surface-neutral-active uy:not-data-[disabled]:data-[pressed=\"true\"]:text-content-neutral-pressed",
|
|
43
|
+
"uy:not-data-[disabled]:data-[focus-visible]:outline-utility-inverted-focus-ring uy:not-data-[disabled]:data-[focus-visible]:text-content-neutral-focus uy:not-data-[disabled]:data-[focus-visible]:bg-surface-neutral-focus"
|
|
44
|
+
],
|
|
45
|
+
"inverted.low": [
|
|
46
|
+
"uy:not-data-[disabled]:data-[hovered=\"true\"]:bg-surface-inverted-low-hover uy:not-data-[disabled]:data-[hovered=\"true\"]:text-content-inverted-hover",
|
|
47
|
+
"uy:not-data-[disabled]:active:bg-surface-inverted-low-active uy:not-data-[disabled]:active:text-content-inverted-active",
|
|
48
|
+
"uy:not-data-[disabled]:data-[pressed=\"true\"]:bg-surface-inverted-low-pressed uy:not-data-[disabled]:data-[pressed=\"true\"]:text-content-inverted-pressed",
|
|
49
|
+
"uy:not-data-[disabled]:data-[focus-visible=\"true\"]:outline-utility-inverted-focus-ring uy:not-data-[disabled]:data-[focus-visible=\"true\"]:text-content-inverted-focus uy:not-data-[disabled]:data-[focus-visible=\"true\"]:bg-surface-inverted-low-focus"
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}), s = r({
|
|
54
|
+
extend: n,
|
|
55
|
+
base: i,
|
|
56
|
+
variants: {
|
|
57
|
+
...a,
|
|
58
|
+
color: {
|
|
59
|
+
primary: [
|
|
60
|
+
"uy:not-data-[disabled]:data-[hovered=\"true\"]:text-content-neutral-hover uy:not-data-[disabled]:data-[hovered=\"true\"]:border-border-neutral-high-hover",
|
|
61
|
+
"uy:theme-legacy:not-data-[disabled]:data-[pressed=\"true\"]:text-content-neutral-high-pressed uy:theme-legacy:not-data-[disabled]:data-[pressed=\"true\"]:border-border-neutral-high-pressed",
|
|
62
|
+
"uy:theme-rebrand:not-data-[disabled]:data-[pressed=\"true\"]:text-content-neutral-pressed uy:theme-rebrand:not-data-[disabled]:data-[pressed=\"true\"]:bg-surface-neutral-low-pressed uy:theme-rebrand:not-data-[disabled]:data-[pressed=\"true\"]:border-surface-neutral-low-pressed",
|
|
63
|
+
"uy:not-data-[disabled]:data-[focus-visible=\"true\"]:border-border-neutral-high-focus uy:not-data-[disabled]:data-[focus-visible=\"true\"]:text-content-neutral-focus"
|
|
64
|
+
],
|
|
65
|
+
inverted: [
|
|
66
|
+
"uy:theme-legacy:not-data-[disabled]:data-[pressed=\"true\"]:text-content-inverted-pressed uy:theme-legacy:not-data-[disabled]:data-[pressed=\"true\"]:border-border-inverted-pressed",
|
|
67
|
+
"uy:theme-rebrand:not-data-[disabled]:data-[pressed=\"true\"]:text-content-neutral-pressed uy:theme-rebrand:not-data-[disabled]:data-[pressed=\"true\"]:bg-surface-neutral-low-pressed uy:theme-rebrand:not-data-[disabled]:data-[pressed=\"true\"]:border-surface-neutral-low-pressed",
|
|
68
|
+
"uy:not-data-[disabled]:data-[focus-visible]:outline-utility-inverted-focus-ring"
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}), c = r({
|
|
73
|
+
extend: t,
|
|
74
|
+
base: i,
|
|
75
|
+
variants: {
|
|
76
|
+
...a,
|
|
77
|
+
color: {
|
|
78
|
+
primary: [
|
|
79
|
+
"uy:theme-legacy:not-data-[disabled]:data-[hovered=\"true\"]:bg-surface-primary-lowest-hover uy:theme-rebrand:not-data-[disabled]:data-[hovered=\"true\"]:bg-surface-neutral-hover uy:theme-legacy:not-data-[disabled]:data-[hovered=\"true\"]:text-content-primary-hover uy:theme-rebrand:not-data-[disabled]:data-[hovered=\"true\"]:text-content-neutral-hover",
|
|
80
|
+
"uy:theme-legacy:not-data-[disabled]:active:bg-surface-primary-lowest-active uy:theme-rebrand:not-data-[disabled]:active:bg-surface-neutral-active uy:theme-legacy:not-data-[disabled]:active:text-content-primary-active uy:theme-rebrand:not-data-[disabled]:active:text-content-neutral-active",
|
|
81
|
+
"uy:theme-legacy:not-data-[disabled]:data-[pressed=\"true\"]:bg-surface-primary-lowest-pressed uy:theme-rebrand:not-data-[disabled]:data-[pressed=\"true\"]:bg-surface-neutral-pressed uy:theme-legacy:not-data-[disabled]:data-[pressed=\"true\"]:text-content-primary-pressed uy:theme-rebrand:not-data-[disabled]:data-[pressed=\"true\"]:text-content-neutral-pressed",
|
|
82
|
+
"uy:not-data-[disabled]:data-[focus-visible]:bg-transparent uy:theme-rebrand:not-data-[disabled]:data-[focus-visible]:text-content-neutral-focus"
|
|
83
|
+
],
|
|
84
|
+
warning: [
|
|
85
|
+
"uy:not-data-[disabled]:data-[hovered=\"true\"]:bg-surface-warning-lowest-hover uy:not-data-[disabled]:data-[hovered=\"true\"]:text-content-warning-hover",
|
|
86
|
+
"uy:not-data-[disabled]:active:bg-surface-warning-lowest-active uy:not-data-[disabled]:active:text-content-warning-active",
|
|
87
|
+
"uy:not-data-[disabled]:data-[pressed=\"true\"]:bg-surface-warning-lowest-pressed uy:not-data-[disabled]:data-[pressed=\"true\"]:text-content-warning-pressed",
|
|
88
|
+
"uy:not-data-[disabled]:data-[focus-visible]:bg-transparent"
|
|
89
|
+
],
|
|
90
|
+
danger: [
|
|
91
|
+
"uy:not-data-[disabled]:data-[hovered=\"true\"]:bg-surface-danger-lowest-hover uy:not-data-[disabled]:data-[hovered=\"true\"]:text-content-danger-hover",
|
|
92
|
+
"uy:not-data-[disabled]:active:bg-surface-danger-lowest-active uy:not-data-[disabled]:active:text-content-danger-active",
|
|
93
|
+
"uy:not-data-[disabled]:data-[pressed=\"true\"]:bg-surface-danger-lowest-pressed uy:not-data-[disabled]:data-[pressed=\"true\"]:text-content-danger-pressed",
|
|
94
|
+
"uy:not-data-[disabled]:data-[focus-visible]:bg-transparent"
|
|
95
|
+
],
|
|
96
|
+
neutral: [
|
|
97
|
+
"uy:not-data-[disabled]:data-[hovered=\"true\"]:bg-surface-neutral-hover uy:not-data-[disabled]:data-[hovered=\"true\"]:text-content-neutral-hover",
|
|
98
|
+
"uy:not-data-[disabled]:active:bg-surface-neutral-active uy:not-data-[disabled]:active:text-content-neutral-active",
|
|
99
|
+
"uy:not-data-[disabled]:data-[pressed=\"true\"]:bg-surface-neutral-pressed uy:not-data-[disabled]:data-[pressed=\"true\"]:text-content-neutral-pressed",
|
|
100
|
+
"uy:not-data-[disabled]:data-[focus-visible]:bg-transparent"
|
|
101
|
+
],
|
|
102
|
+
"neutral.lowest": [
|
|
103
|
+
"uy:not-data-[disabled]:data-[hovered=\"true\"]:bg-surface-neutral-lowest-hover uy:not-data-[disabled]:data-[hovered=\"true\"]:text-content-neutral-hover",
|
|
104
|
+
"uy:not-data-[disabled]:active:bg-surface-neutral-lowest-active uy:not-data-[disabled]:active:text-content-neutral-active",
|
|
105
|
+
"uy:not-data-[disabled]:data-[pressed=\"true\"]:bg-surface-neutral-lowest-pressed uy:not-data-[disabled]:data-[pressed=\"true\"]:text-content-neutral-pressed",
|
|
106
|
+
"uy:not-data-[disabled]:data-[focus-visible]:bg-transparent"
|
|
107
|
+
],
|
|
108
|
+
inverted: [
|
|
109
|
+
"uy:not-data-[disabled]:data-[hovered=\"true\"]:bg-surface-inverted-hover uy:not-data-[disabled]:data-[hovered=\"true\"]:text-content-inverted-hover",
|
|
110
|
+
"uy:not-data-[disabled]:active:bg-surface-inverted-active uy:not-data-[disabled]:active:text-content-inverted-active",
|
|
111
|
+
"uy:not-data-[disabled]:data-[pressed=\"true\"]:bg-surface-inverted-pressed uy:not-data-[disabled]:data-[pressed=\"true\"]:text-content-inverted-pressed",
|
|
112
|
+
"uy:not-data-[disabled]:data-[focus-visible]:outline-utility-inverted-focus-ring uy:not-data-[disabled]:data-[focus-visible]:bg-transparent"
|
|
113
|
+
]
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
//#endregion
|
|
118
|
+
export { o as linkButtonFilled, c as linkButtonGhost, s as linkButtonOutlined };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Icon as e } from "../icon/Icon.js";
|
|
2
2
|
import { Spinner as t } from "../spinner/Spinner.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { isExternalUrl as n } from "../link/utils.js";
|
|
4
|
+
import { linkButtonFilled as r, linkButtonGhost as i, linkButtonOutlined as a } from "./LinkButton.variants.js";
|
|
5
5
|
import { forwardRef as o, useMemo as s } from "react";
|
|
6
6
|
import { useUnityTheme as c, uyMerge as l } from "@payfit/unity-themes";
|
|
7
7
|
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
@@ -18,45 +18,45 @@ var p = (n, r) => n ? /* @__PURE__ */ u(t, {
|
|
|
18
18
|
role: "presentation",
|
|
19
19
|
"data-unity-icon": "prefix"
|
|
20
20
|
}) : null, m = o(({ variant: t, href: o, children: m, color: h = "primary", size: g = "default", isDisabled: _ = !1, isLoading: v = !1, prefixIcon: y, suffixIcon: b, truncateLabelLength: x, isExternal: S, ...C }, w) => {
|
|
21
|
-
let T = S ??
|
|
21
|
+
let T = S ?? n(o), { theme: E } = c(), D = s(() => {
|
|
22
22
|
let e = {
|
|
23
23
|
size: g,
|
|
24
24
|
isDisabled: _,
|
|
25
25
|
isLoading: v
|
|
26
|
-
},
|
|
26
|
+
}, n;
|
|
27
27
|
switch (t) {
|
|
28
28
|
case "primary":
|
|
29
|
-
|
|
29
|
+
n = r({
|
|
30
30
|
...e,
|
|
31
31
|
color: h
|
|
32
|
-
})
|
|
32
|
+
});
|
|
33
33
|
break;
|
|
34
34
|
case "secondary":
|
|
35
35
|
if (E === "rebrand") {
|
|
36
36
|
let t = h === "inverted" ? "inverted.low" : "neutral";
|
|
37
|
-
|
|
37
|
+
n = r({
|
|
38
38
|
...e,
|
|
39
39
|
color: t
|
|
40
|
-
})
|
|
41
|
-
} else
|
|
40
|
+
});
|
|
41
|
+
} else n = a({
|
|
42
42
|
...e,
|
|
43
43
|
color: h
|
|
44
|
-
})
|
|
44
|
+
});
|
|
45
45
|
break;
|
|
46
46
|
case "ghost":
|
|
47
|
-
|
|
47
|
+
n = i({
|
|
48
48
|
...e,
|
|
49
49
|
color: h
|
|
50
|
-
})
|
|
50
|
+
});
|
|
51
51
|
break;
|
|
52
52
|
case "outlined":
|
|
53
|
-
|
|
53
|
+
n = a({
|
|
54
54
|
...e,
|
|
55
55
|
color: h
|
|
56
|
-
})
|
|
56
|
+
});
|
|
57
57
|
break;
|
|
58
58
|
}
|
|
59
|
-
return l(
|
|
59
|
+
return l(n, "uy:no-underline", _ || v ? `${t === "primary" || t === "secondary" && E === "rebrand" ? "uy:data-[disabled]:bg-surface-neutral-disabled" : "uy:data-[disabled]:bg-transparent"} uy:data-[disabled]:text-content-neutral-disabled uy:data-[disabled]:cursor-not-allowed` : "", v ? "uy:data-[disabled]:cursor-progress" : "");
|
|
60
60
|
}, [
|
|
61
61
|
t,
|
|
62
62
|
h,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@payfit/unity-components",
|
|
3
|
-
"version": "2.63.
|
|
3
|
+
"version": "2.63.2",
|
|
4
4
|
"module": "./dist/esm/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"tailwind-variants": "3.3.0",
|
|
97
97
|
"usehooks-ts": "3.1.1",
|
|
98
98
|
"zod": "4.4.3",
|
|
99
|
-
"@payfit/unity-illustrations": "2.63.
|
|
99
|
+
"@payfit/unity-illustrations": "2.63.2"
|
|
100
100
|
},
|
|
101
101
|
"peerDependencies": {
|
|
102
102
|
"@hookform/devtools": "^4",
|
|
@@ -108,8 +108,8 @@
|
|
|
108
108
|
"react-hook-form": "^7",
|
|
109
109
|
"react-router-dom": "^5",
|
|
110
110
|
"zod": "^3 || ^4",
|
|
111
|
-
"@payfit/unity-icons": "2.63.
|
|
112
|
-
"@payfit/unity-themes": "2.63.
|
|
111
|
+
"@payfit/unity-icons": "2.63.2",
|
|
112
|
+
"@payfit/unity-themes": "2.63.2"
|
|
113
113
|
},
|
|
114
114
|
"devDependencies": {
|
|
115
115
|
"@figma/code-connect": "1.5.1",
|
|
@@ -128,8 +128,8 @@
|
|
|
128
128
|
"@tanstack/react-devtools": "0.10.9",
|
|
129
129
|
"@tanstack/react-form-devtools": "0.2.32",
|
|
130
130
|
"@tanstack/react-query": "5.101.4",
|
|
131
|
-
"@tanstack/react-router": "1.170.
|
|
132
|
-
"@tanstack/react-router-devtools": "1.167.
|
|
131
|
+
"@tanstack/react-router": "1.170.19",
|
|
132
|
+
"@tanstack/react-router-devtools": "1.167.1",
|
|
133
133
|
"@testing-library/dom": "10.4.1",
|
|
134
134
|
"@testing-library/react": "16.3.2",
|
|
135
135
|
"@types/react": "18.3.18",
|
|
@@ -157,11 +157,11 @@
|
|
|
157
157
|
"vitest": "4.1.10",
|
|
158
158
|
"@payfit/hr-app-eslint": "0.0.0-use.local",
|
|
159
159
|
"@payfit/hr-apps-tsconfigs": "0.0.0-use.local",
|
|
160
|
-
"@payfit/unity-icons": "2.63.0",
|
|
161
|
-
"@payfit/storybook-config": "0.0.0-use.local",
|
|
162
160
|
"@payfit/storybook-addon-console-errors": "0.0.0-use.local",
|
|
163
|
-
"@payfit/
|
|
164
|
-
"@payfit/unity-
|
|
161
|
+
"@payfit/storybook-config": "0.0.0-use.local",
|
|
162
|
+
"@payfit/unity-icons": "2.63.2",
|
|
163
|
+
"@payfit/unity-illustrations": "2.63.2",
|
|
164
|
+
"@payfit/unity-themes": "2.63.2",
|
|
165
165
|
"@payfit/vite-configs": "0.0.0-use.local"
|
|
166
166
|
},
|
|
167
167
|
"peerDependenciesMeta": {
|