@payfit/unity-components 2.67.24 → 2.67.26

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.
@@ -37,6 +37,11 @@ type UnityButtonProps = AriaButtonProps & ButtonBase & {
37
37
  * @default undefined
38
38
  */
39
39
  truncateLabelLength?: number;
40
+ /**
41
+ * Controls the button's density. Compact mode reduces its height and horizontal padding for space-constrained interfaces.
42
+ * @default 'default'
43
+ */
44
+ mode?: ButtonBase['mode'];
40
45
  };
41
46
  type UnionButtonProps = (UnityButtonProps & {
42
47
  variant: 'primary';
@@ -16,12 +16,13 @@ var f = (n, r) => n ? /* @__PURE__ */ l(t, {
16
16
  color: "inherit",
17
17
  role: "presentation",
18
18
  "data-unity-icon": "prefix"
19
- }) : null, p = a(({ variant: t, children: a, color: p = "primary", size: m = "default", isDisabled: h = !1, isLoading: g = !1, prefixIcon: _, suffixIcon: v, truncateLabelLength: y, ...b }, x) => {
20
- let { theme: S } = s(), C = o(() => {
19
+ }) : null, p = a(({ variant: t, children: a, color: p = "primary", size: m = "default", isDisabled: h = !1, isLoading: g = !1, prefixIcon: _, suffixIcon: v, truncateLabelLength: y, mode: b = "default", ...x }, S) => {
20
+ let { theme: C } = s(), w = o(() => {
21
21
  let e = {
22
22
  size: m,
23
23
  isDisabled: h,
24
- isLoading: g
24
+ isLoading: g,
25
+ mode: b
25
26
  };
26
27
  switch (t) {
27
28
  case "primary": return c(n({
@@ -29,7 +30,7 @@ var f = (n, r) => n ? /* @__PURE__ */ l(t, {
29
30
  color: p
30
31
  }));
31
32
  case "secondary":
32
- if (S === "rebrand") {
33
+ if (C === "rebrand") {
33
34
  let t = p === "inverted" ? "inverted.low" : "neutral";
34
35
  return c(n({
35
36
  ...e,
@@ -55,17 +56,18 @@ var f = (n, r) => n ? /* @__PURE__ */ l(t, {
55
56
  m,
56
57
  h,
57
58
  g,
58
- S
59
- ]), w = { ...g && { "data-loading": g } }, T = h || g;
59
+ b,
60
+ C
61
+ ]), T = { ...g && { "data-loading": g } }, E = h || g;
60
62
  return /* @__PURE__ */ l(d, {
61
63
  "data-dd-privacy": "allow",
62
- ...b,
63
- ref: x,
64
- isDisabled: T,
65
- "aria-disabled": T ? !0 : void 0,
64
+ ...x,
65
+ ref: S,
66
+ isDisabled: E,
67
+ "aria-disabled": E ? !0 : void 0,
66
68
  isPending: g,
67
- className: C,
68
- ...w,
69
+ className: w,
70
+ ...T,
69
71
  children: /* @__PURE__ */ u("span", {
70
72
  className: "uy:inline-flex uy:gap-50 uy:items-center",
71
73
  children: [
@@ -12,6 +12,10 @@ declare const buttonBase: import('tailwind-variants').TVReturnType<{
12
12
  default: "uy:w-auto uy:grow-0 uy:basis-auto";
13
13
  full: "uy:grow-1 uy:w-full uy:basis-full";
14
14
  };
15
+ mode: {
16
+ default: string[];
17
+ compact: string[];
18
+ };
15
19
  }, undefined, string[], {
16
20
  isDisabled: {
17
21
  true: "uy:disabled:cursor-not-allowed";
@@ -25,6 +29,10 @@ declare const buttonBase: import('tailwind-variants').TVReturnType<{
25
29
  default: "uy:w-auto uy:grow-0 uy:basis-auto";
26
30
  full: "uy:grow-1 uy:w-full uy:basis-full";
27
31
  };
32
+ mode: {
33
+ default: string[];
34
+ compact: string[];
35
+ };
28
36
  }, undefined, import('tailwind-variants').TVReturnTypeLike<{
29
37
  isDisabled: {
30
38
  true: "uy:disabled:cursor-not-allowed";
@@ -38,6 +46,10 @@ declare const buttonBase: import('tailwind-variants').TVReturnType<{
38
46
  default: "uy:w-auto uy:grow-0 uy:basis-auto";
39
47
  full: "uy:grow-1 uy:w-full uy:basis-full";
40
48
  };
49
+ mode: {
50
+ default: string[];
51
+ compact: string[];
52
+ };
41
53
  }, undefined>>;
42
54
  export declare const buttonFilled: import('tailwind-variants').TVReturnType<{
43
55
  color: {
@@ -69,6 +81,10 @@ export declare const buttonFilled: import('tailwind-variants').TVReturnType<{
69
81
  default: "uy:w-auto uy:grow-0 uy:basis-auto";
70
82
  full: "uy:grow-1 uy:w-full uy:basis-full";
71
83
  };
84
+ mode: {
85
+ default: string[];
86
+ compact: string[];
87
+ };
72
88
  }, undefined, import('tailwind-variants').TVReturnType<{
73
89
  isDisabled: {
74
90
  true: "uy:disabled:cursor-not-allowed";
@@ -82,6 +98,10 @@ export declare const buttonFilled: import('tailwind-variants').TVReturnType<{
82
98
  default: "uy:w-auto uy:grow-0 uy:basis-auto";
83
99
  full: "uy:grow-1 uy:w-full uy:basis-full";
84
100
  };
101
+ mode: {
102
+ default: string[];
103
+ compact: string[];
104
+ };
85
105
  }, undefined, string[], {
86
106
  isDisabled: {
87
107
  true: "uy:disabled:cursor-not-allowed";
@@ -95,6 +115,10 @@ export declare const buttonFilled: import('tailwind-variants').TVReturnType<{
95
115
  default: "uy:w-auto uy:grow-0 uy:basis-auto";
96
116
  full: "uy:grow-1 uy:w-full uy:basis-full";
97
117
  };
118
+ mode: {
119
+ default: string[];
120
+ compact: string[];
121
+ };
98
122
  }, undefined, import('tailwind-variants').TVReturnTypeLike<{
99
123
  isDisabled: {
100
124
  true: "uy:disabled:cursor-not-allowed";
@@ -108,6 +132,10 @@ export declare const buttonFilled: import('tailwind-variants').TVReturnType<{
108
132
  default: "uy:w-auto uy:grow-0 uy:basis-auto";
109
133
  full: "uy:grow-1 uy:w-full uy:basis-full";
110
134
  };
135
+ mode: {
136
+ default: string[];
137
+ compact: string[];
138
+ };
111
139
  }, undefined>>>;
112
140
  export declare const buttonOutlined: import('tailwind-variants').TVReturnType<{
113
141
  color: {
@@ -134,6 +162,10 @@ export declare const buttonOutlined: import('tailwind-variants').TVReturnType<{
134
162
  default: "uy:w-auto uy:grow-0 uy:basis-auto";
135
163
  full: "uy:grow-1 uy:w-full uy:basis-full";
136
164
  };
165
+ mode: {
166
+ default: string[];
167
+ compact: string[];
168
+ };
137
169
  }, undefined, import('tailwind-variants').TVReturnType<{
138
170
  isDisabled: {
139
171
  true: "uy:disabled:cursor-not-allowed";
@@ -147,6 +179,10 @@ export declare const buttonOutlined: import('tailwind-variants').TVReturnType<{
147
179
  default: "uy:w-auto uy:grow-0 uy:basis-auto";
148
180
  full: "uy:grow-1 uy:w-full uy:basis-full";
149
181
  };
182
+ mode: {
183
+ default: string[];
184
+ compact: string[];
185
+ };
150
186
  }, undefined, string[], {
151
187
  isDisabled: {
152
188
  true: "uy:disabled:cursor-not-allowed";
@@ -160,6 +196,10 @@ export declare const buttonOutlined: import('tailwind-variants').TVReturnType<{
160
196
  default: "uy:w-auto uy:grow-0 uy:basis-auto";
161
197
  full: "uy:grow-1 uy:w-full uy:basis-full";
162
198
  };
199
+ mode: {
200
+ default: string[];
201
+ compact: string[];
202
+ };
163
203
  }, undefined, import('tailwind-variants').TVReturnTypeLike<{
164
204
  isDisabled: {
165
205
  true: "uy:disabled:cursor-not-allowed";
@@ -173,6 +213,10 @@ export declare const buttonOutlined: import('tailwind-variants').TVReturnType<{
173
213
  default: "uy:w-auto uy:grow-0 uy:basis-auto";
174
214
  full: "uy:grow-1 uy:w-full uy:basis-full";
175
215
  };
216
+ mode: {
217
+ default: string[];
218
+ compact: string[];
219
+ };
176
220
  }, undefined>>>;
177
221
  export declare const buttonGhost: import('tailwind-variants').TVReturnType<{
178
222
  color: {
@@ -204,6 +248,10 @@ export declare const buttonGhost: import('tailwind-variants').TVReturnType<{
204
248
  default: "uy:w-auto uy:grow-0 uy:basis-auto";
205
249
  full: "uy:grow-1 uy:w-full uy:basis-full";
206
250
  };
251
+ mode: {
252
+ default: string[];
253
+ compact: string[];
254
+ };
207
255
  }, undefined, import('tailwind-variants').TVReturnType<{
208
256
  isDisabled: {
209
257
  true: "uy:disabled:cursor-not-allowed";
@@ -217,6 +265,10 @@ export declare const buttonGhost: import('tailwind-variants').TVReturnType<{
217
265
  default: "uy:w-auto uy:grow-0 uy:basis-auto";
218
266
  full: "uy:grow-1 uy:w-full uy:basis-full";
219
267
  };
268
+ mode: {
269
+ default: string[];
270
+ compact: string[];
271
+ };
220
272
  }, undefined, string[], {
221
273
  isDisabled: {
222
274
  true: "uy:disabled:cursor-not-allowed";
@@ -230,6 +282,10 @@ export declare const buttonGhost: import('tailwind-variants').TVReturnType<{
230
282
  default: "uy:w-auto uy:grow-0 uy:basis-auto";
231
283
  full: "uy:grow-1 uy:w-full uy:basis-full";
232
284
  };
285
+ mode: {
286
+ default: string[];
287
+ compact: string[];
288
+ };
233
289
  }, undefined, import('tailwind-variants').TVReturnTypeLike<{
234
290
  isDisabled: {
235
291
  true: "uy:disabled:cursor-not-allowed";
@@ -243,6 +299,10 @@ export declare const buttonGhost: import('tailwind-variants').TVReturnType<{
243
299
  default: "uy:w-auto uy:grow-0 uy:basis-auto";
244
300
  full: "uy:grow-1 uy:w-full uy:basis-full";
245
301
  };
302
+ mode: {
303
+ default: string[];
304
+ compact: string[];
305
+ };
246
306
  }, undefined>>>;
247
307
  export type ButtonBase = VariantProps<typeof buttonBase>;
248
308
  export type ButtonFilled = VariantProps<typeof buttonFilled>;
@@ -3,10 +3,7 @@ import { uyTv as e } from "@payfit/unity-themes";
3
3
  var t = e({
4
4
  base: [
5
5
  "uy:group",
6
- "uy:cursor-pointer uy:rounded-100 uy:sm:rounded-75 uy:py-125 uy:sm:py-100 uy:sm:h-500 uy:inline-flex uy:items-center uy:justify-center uy:whitespace-nowrap uy:typography-action uy:transition-colors",
7
- "uy:has-data-[unity-icon=\"prefix\"]:pl-100 uy:has-data-[unity-icon=\"prefix\"]:pr-200",
8
- "uy:has-data-[unity-icon=\"suffix\"]:pl-200 uy:has-data-[unity-icon=\"suffix\"]:pr-100",
9
- "uy:px-200 uy:has-data-[unity-icon=\"prefix\"]:has-data-[unity-icon=\"suffix\"]:px-100",
6
+ "uy:cursor-pointer uy:rounded-100 uy:sm:rounded-75 uy:inline-flex uy:items-center uy:justify-center uy:whitespace-nowrap uy:typography-action uy:transition-colors",
10
7
  "uy:enabled:data-[focus-visible=\"true\"]:outline-2 uy:enabled:data-[focus-visible=\"true\"]:outline-solid uy:enabled:data-[focus-visible=\"true\"]:outline-offset-2 uy:enabled:data-[focus-visible=\"true\"]:outline-utility-focus-ring"
11
8
  ],
12
9
  variants: {
@@ -21,12 +18,27 @@ var t = e({
21
18
  size: {
22
19
  default: "uy:w-auto uy:grow-0 uy:basis-auto",
23
20
  full: "uy:grow-1 uy:w-full uy:basis-full"
21
+ },
22
+ mode: {
23
+ default: [
24
+ "uy:py-125 uy:sm:py-100 uy:sm:h-500 uy:px-200",
25
+ "uy:has-data-[unity-icon=\"prefix\"]:pl-100 uy:has-data-[unity-icon=\"prefix\"]:pr-200",
26
+ "uy:has-data-[unity-icon=\"suffix\"]:pl-200 uy:has-data-[unity-icon=\"suffix\"]:pr-100",
27
+ "uy:has-data-[unity-icon=\"prefix\"]:has-data-[unity-icon=\"suffix\"]:px-100"
28
+ ],
29
+ compact: [
30
+ "uy:h-400 uy:py-50 uy:px-125",
31
+ "uy:has-data-[unity-icon=\"prefix\"]:pl-50 uy:has-data-[unity-icon=\"prefix\"]:pr-125",
32
+ "uy:has-data-[unity-icon=\"suffix\"]:pl-125 uy:has-data-[unity-icon=\"suffix\"]:pr-50",
33
+ "uy:has-data-[unity-icon=\"prefix\"]:has-data-[unity-icon=\"suffix\"]:px-50"
34
+ ]
24
35
  }
25
36
  },
26
37
  defaultVariants: {
27
38
  isDisabled: !1,
28
39
  isLoading: !1,
29
- size: "default"
40
+ size: "default",
41
+ mode: "default"
30
42
  }
31
43
  }), n = e({
32
44
  extend: t,
@@ -45,6 +45,10 @@ export declare const linkButtonFilled: import('tailwind-variants').TVReturnType<
45
45
  default: "uy:w-auto uy:grow-0 uy:basis-auto";
46
46
  full: "uy:grow-1 uy:w-full uy:basis-full";
47
47
  };
48
+ mode: {
49
+ default: string[];
50
+ compact: string[];
51
+ };
48
52
  }, undefined, import('tailwind-variants').TVReturnType<{
49
53
  color: {
50
54
  primary: string[];
@@ -75,6 +79,10 @@ export declare const linkButtonFilled: import('tailwind-variants').TVReturnType<
75
79
  default: "uy:w-auto uy:grow-0 uy:basis-auto";
76
80
  full: "uy:grow-1 uy:w-full uy:basis-full";
77
81
  };
82
+ mode: {
83
+ default: string[];
84
+ compact: string[];
85
+ };
78
86
  }, undefined, import('tailwind-variants').TVReturnType<{
79
87
  isDisabled: {
80
88
  true: "uy:disabled:cursor-not-allowed";
@@ -88,6 +96,10 @@ export declare const linkButtonFilled: import('tailwind-variants').TVReturnType<
88
96
  default: "uy:w-auto uy:grow-0 uy:basis-auto";
89
97
  full: "uy:grow-1 uy:w-full uy:basis-full";
90
98
  };
99
+ mode: {
100
+ default: string[];
101
+ compact: string[];
102
+ };
91
103
  }, undefined, string[], {
92
104
  isDisabled: {
93
105
  true: "uy:disabled:cursor-not-allowed";
@@ -101,6 +113,10 @@ export declare const linkButtonFilled: import('tailwind-variants').TVReturnType<
101
113
  default: "uy:w-auto uy:grow-0 uy:basis-auto";
102
114
  full: "uy:grow-1 uy:w-full uy:basis-full";
103
115
  };
116
+ mode: {
117
+ default: string[];
118
+ compact: string[];
119
+ };
104
120
  }, undefined, import('tailwind-variants').TVReturnTypeLike<{
105
121
  isDisabled: {
106
122
  true: "uy:disabled:cursor-not-allowed";
@@ -114,6 +130,10 @@ export declare const linkButtonFilled: import('tailwind-variants').TVReturnType<
114
130
  default: "uy:w-auto uy:grow-0 uy:basis-auto";
115
131
  full: "uy:grow-1 uy:w-full uy:basis-full";
116
132
  };
133
+ mode: {
134
+ default: string[];
135
+ compact: string[];
136
+ };
117
137
  }, undefined>>>>;
118
138
  export declare const linkButtonOutlined: import('tailwind-variants').TVReturnType<{
119
139
  color: {
@@ -153,6 +173,10 @@ export declare const linkButtonOutlined: import('tailwind-variants').TVReturnTyp
153
173
  default: "uy:w-auto uy:grow-0 uy:basis-auto";
154
174
  full: "uy:grow-1 uy:w-full uy:basis-full";
155
175
  };
176
+ mode: {
177
+ default: string[];
178
+ compact: string[];
179
+ };
156
180
  }, undefined, import('tailwind-variants').TVReturnType<{
157
181
  color: {
158
182
  primary: string[];
@@ -178,6 +202,10 @@ export declare const linkButtonOutlined: import('tailwind-variants').TVReturnTyp
178
202
  default: "uy:w-auto uy:grow-0 uy:basis-auto";
179
203
  full: "uy:grow-1 uy:w-full uy:basis-full";
180
204
  };
205
+ mode: {
206
+ default: string[];
207
+ compact: string[];
208
+ };
181
209
  }, undefined, import('tailwind-variants').TVReturnType<{
182
210
  isDisabled: {
183
211
  true: "uy:disabled:cursor-not-allowed";
@@ -191,6 +219,10 @@ export declare const linkButtonOutlined: import('tailwind-variants').TVReturnTyp
191
219
  default: "uy:w-auto uy:grow-0 uy:basis-auto";
192
220
  full: "uy:grow-1 uy:w-full uy:basis-full";
193
221
  };
222
+ mode: {
223
+ default: string[];
224
+ compact: string[];
225
+ };
194
226
  }, undefined, string[], {
195
227
  isDisabled: {
196
228
  true: "uy:disabled:cursor-not-allowed";
@@ -204,6 +236,10 @@ export declare const linkButtonOutlined: import('tailwind-variants').TVReturnTyp
204
236
  default: "uy:w-auto uy:grow-0 uy:basis-auto";
205
237
  full: "uy:grow-1 uy:w-full uy:basis-full";
206
238
  };
239
+ mode: {
240
+ default: string[];
241
+ compact: string[];
242
+ };
207
243
  }, undefined, import('tailwind-variants').TVReturnTypeLike<{
208
244
  isDisabled: {
209
245
  true: "uy:disabled:cursor-not-allowed";
@@ -217,6 +253,10 @@ export declare const linkButtonOutlined: import('tailwind-variants').TVReturnTyp
217
253
  default: "uy:w-auto uy:grow-0 uy:basis-auto";
218
254
  full: "uy:grow-1 uy:w-full uy:basis-full";
219
255
  };
256
+ mode: {
257
+ default: string[];
258
+ compact: string[];
259
+ };
220
260
  }, undefined>>>>;
221
261
  export declare const linkButtonGhost: import('tailwind-variants').TVReturnType<{
222
262
  color: {
@@ -265,6 +305,10 @@ export declare const linkButtonGhost: import('tailwind-variants').TVReturnType<{
265
305
  default: "uy:w-auto uy:grow-0 uy:basis-auto";
266
306
  full: "uy:grow-1 uy:w-full uy:basis-full";
267
307
  };
308
+ mode: {
309
+ default: string[];
310
+ compact: string[];
311
+ };
268
312
  }, undefined, import('tailwind-variants').TVReturnType<{
269
313
  color: {
270
314
  primary: string[];
@@ -295,6 +339,10 @@ export declare const linkButtonGhost: import('tailwind-variants').TVReturnType<{
295
339
  default: "uy:w-auto uy:grow-0 uy:basis-auto";
296
340
  full: "uy:grow-1 uy:w-full uy:basis-full";
297
341
  };
342
+ mode: {
343
+ default: string[];
344
+ compact: string[];
345
+ };
298
346
  }, undefined, import('tailwind-variants').TVReturnType<{
299
347
  isDisabled: {
300
348
  true: "uy:disabled:cursor-not-allowed";
@@ -308,6 +356,10 @@ export declare const linkButtonGhost: import('tailwind-variants').TVReturnType<{
308
356
  default: "uy:w-auto uy:grow-0 uy:basis-auto";
309
357
  full: "uy:grow-1 uy:w-full uy:basis-full";
310
358
  };
359
+ mode: {
360
+ default: string[];
361
+ compact: string[];
362
+ };
311
363
  }, undefined, string[], {
312
364
  isDisabled: {
313
365
  true: "uy:disabled:cursor-not-allowed";
@@ -321,6 +373,10 @@ export declare const linkButtonGhost: import('tailwind-variants').TVReturnType<{
321
373
  default: "uy:w-auto uy:grow-0 uy:basis-auto";
322
374
  full: "uy:grow-1 uy:w-full uy:basis-full";
323
375
  };
376
+ mode: {
377
+ default: string[];
378
+ compact: string[];
379
+ };
324
380
  }, undefined, import('tailwind-variants').TVReturnTypeLike<{
325
381
  isDisabled: {
326
382
  true: "uy:disabled:cursor-not-allowed";
@@ -334,4 +390,8 @@ export declare const linkButtonGhost: import('tailwind-variants').TVReturnType<{
334
390
  default: "uy:w-auto uy:grow-0 uy:basis-auto";
335
391
  full: "uy:grow-1 uy:w-full uy:basis-full";
336
392
  };
393
+ mode: {
394
+ default: string[];
395
+ compact: string[];
396
+ };
337
397
  }, undefined>>>>;
@@ -34,6 +34,11 @@ type UnityLinkButtonProps = Omit<AriaLinkProps, 'style' | 'className'> & ButtonB
34
34
  * Truncate the label to a specific number of characters.
35
35
  */
36
36
  truncateLabelLength?: number;
37
+ /**
38
+ * Controls the link button's density. Compact mode reduces its height and horizontal padding for space-constrained interfaces.
39
+ * @default 'default'
40
+ */
41
+ mode?: ButtonBase['mode'];
37
42
  /**
38
43
  * Whether the link navigates to an external page. If true, the link will open in a new tab.
39
44
  * @default false
@@ -17,12 +17,13 @@ var p = (n, r) => n ? /* @__PURE__ */ u(t, {
17
17
  color: "inherit",
18
18
  role: "presentation",
19
19
  "data-unity-icon": "prefix"
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 ?? n(o), { theme: E } = c(), D = s(() => {
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, mode: S = "default", isExternal: C, ...w }, T) => {
21
+ let E = C ?? n(o), { theme: D } = c(), O = s(() => {
22
22
  let e = {
23
23
  size: g,
24
24
  isDisabled: _,
25
- isLoading: v
25
+ isLoading: v,
26
+ mode: S
26
27
  }, n;
27
28
  switch (t) {
28
29
  case "primary":
@@ -32,7 +33,7 @@ var p = (n, r) => n ? /* @__PURE__ */ u(t, {
32
33
  });
33
34
  break;
34
35
  case "secondary":
35
- if (E === "rebrand") {
36
+ if (D === "rebrand") {
36
37
  let t = h === "inverted" ? "inverted.low" : "neutral";
37
38
  n = r({
38
39
  ...e,
@@ -56,25 +57,26 @@ var p = (n, r) => n ? /* @__PURE__ */ u(t, {
56
57
  });
57
58
  break;
58
59
  }
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
+ return l(n, "uy:no-underline", _ || v ? `${t === "primary" || t === "secondary" && D === "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
61
  }, [
61
62
  t,
62
63
  h,
63
64
  g,
64
65
  _,
65
66
  v,
66
- E
67
- ]), O = { ...v && { "data-loading": v } };
67
+ S,
68
+ D
69
+ ]), k = { ...v && { "data-loading": v } };
68
70
  return /* @__PURE__ */ u(f, {
69
71
  "data-dd-privacy": "allow",
70
- ...C,
72
+ ...w,
71
73
  href: o,
72
- ref: w,
74
+ ref: T,
73
75
  isDisabled: _ || v,
74
- className: D,
75
- target: T ? "_blank" : C.target,
76
- rel: T && !C.rel ? "noopener noreferrer" : C.rel,
77
- ...O,
76
+ className: O,
77
+ target: E ? "_blank" : w.target,
78
+ rel: E && !w.rel ? "noopener noreferrer" : w.rel,
79
+ ...k,
78
80
  children: /* @__PURE__ */ d("span", {
79
81
  className: "uy:inline-flex uy:gap-50 uy:items-center",
80
82
  children: [
@@ -6,7 +6,45 @@ export interface TabsProps extends Omit<AriaTabsProps, 'isDisabled' | 'orientati
6
6
  scrollable?: boolean;
7
7
  }
8
8
  /**
9
- * Tabs allow users to explore and switch between different views.
9
+ * Use these tabs when switching between sections without changing the URL.
10
+ *
11
+ * When each tab represents a navigable page and its selection must be
12
+ * shareable, bookmarkable, or preserved by browser history, use the
13
+ * [TanStack Router Tabs integration](?path=/docs/library-integrations-reference-tanstack-router-tabs--docs)
14
+ * instead.
15
+ * @example Static API
16
+ * ```tsx
17
+ * <Tabs defaultSelectedKey="profile">
18
+ * <TabList aria-label="Account">
19
+ * <RawTab id="profile">Profile</RawTab>
20
+ * <RawTab id="settings">Settings</RawTab>
21
+ * </TabList>
22
+ * <TabPanels>
23
+ * <TabPanel id="profile">
24
+ * <Profile />
25
+ * </TabPanel>
26
+ * <TabPanel id="settings">
27
+ * <Settings />
28
+ * </TabPanel>
29
+ * </TabPanels>
30
+ * </Tabs>
31
+ * ```
32
+ * @example Dynamic API
33
+ * ```tsx
34
+ * const tabs = [
35
+ * { id: 'profile', title: 'Profile', content: <Profile /> },
36
+ * { id: 'settings', title: 'Settings', content: <Settings /> },
37
+ * ]
38
+ *
39
+ * <Tabs>
40
+ * <TabList aria-label="Account" items={tabs}>
41
+ * {item => <RawTab>{item.title}</RawTab>}
42
+ * </TabList>
43
+ * <TabPanels items={tabs}>
44
+ * {item => <TabPanel>{item.content}</TabPanel>}
45
+ * </TabPanels>
46
+ * </Tabs>
47
+ * ```
10
48
  */
11
49
  declare const Tabs: import('react').ForwardRefExoticComponent<TabsProps & import('react').RefAttributes<HTMLDivElement>>;
12
50
  export { Tabs };
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { TabProps as AriaTabProps, Key } from 'react-aria-components/Tabs';
3
3
  export interface TabProps extends Omit<AriaTabProps, 'isDisabled' | 'className' | 'style' | 'download' | 'ping' | 'routerOptions' | 'id'> {
4
- id: Key | undefined;
4
+ id?: Key;
5
5
  suffix?: ReactNode;
6
6
  }
7
7
  declare const RawTab: import('react').ForwardRefExoticComponent<TabProps & {
@@ -1,4 +1,10 @@
1
- declare const TabList: import('react').ForwardRefExoticComponent<object & {
2
- children?: import('react').ReactNode | undefined;
3
- } & import('react').RefAttributes<HTMLDivElement>>;
1
+ import { ForwardedRef } from 'react';
2
+ import { TabListProps as AriaTabListProps } from 'react-aria-components/Tabs';
3
+ export type TabListProps<T extends object> = Omit<AriaTabListProps<T>, 'className' | 'style'>;
4
+ type TabListComponent = (<T extends object>(props: TabListProps<T> & {
5
+ ref?: ForwardedRef<HTMLDivElement>;
6
+ }) => JSX.Element) & {
7
+ displayName?: string;
8
+ };
9
+ declare const TabList: TabListComponent;
4
10
  export { TabList };
@@ -6,76 +6,78 @@ import { jsx as s, jsxs as c } from "react/jsx-runtime";
6
6
  import { useResizeObserver as l } from "usehooks-ts";
7
7
  import { TabList as u } from "react-aria-components/Tabs";
8
8
  //#region src/components/tabs/parts/TabList.tsx
9
- var d = r(({ children: r }, d) => {
10
- let f = a(null), [p, m] = o(!1), [h, g] = o(!1), { variant: _, scrollable: v } = e(), { tabList: y, scroller: b } = t({
11
- variant: _,
12
- scrollable: v
13
- }), x = i(() => {
14
- if (!f.current) return;
15
- let { scrollLeft: e, scrollWidth: t, clientWidth: n } = f.current;
16
- m(e > 0), g(e + n < t);
9
+ var d = r(function({ children: r, ...d }, f) {
10
+ let p = a(null), [m, h] = o(!1), [g, _] = o(!1), { variant: v, scrollable: y } = e(), { tabList: b, scroller: x } = t({
11
+ variant: v,
12
+ scrollable: y
13
+ }), S = i(() => {
14
+ if (!p.current) return;
15
+ let { scrollLeft: e, scrollWidth: t, clientWidth: n } = p.current;
16
+ h(e > 0), _(e + n < t);
17
17
  }, []);
18
18
  l({
19
- ref: f,
20
- onResize: x
19
+ ref: p,
20
+ onResize: S
21
21
  });
22
- let S = (e) => {
23
- x();
24
- }, C = () => {
25
- let e = f.current?.querySelectorAll("[role=tab]");
26
- if (!f.current || !e) return 0;
27
- let { scrollLeft: t } = f.current, n = Array.from(e);
22
+ let C = () => {
23
+ S();
24
+ }, w = () => {
25
+ let e = p.current?.querySelectorAll("[role=tab]");
26
+ if (!p.current || !e) return 0;
27
+ let { scrollLeft: t } = p.current, n = Array.from(e);
28
28
  for (let e = n.length - 1; e >= 0; e--) {
29
29
  let r = n[e];
30
30
  if (r.offsetLeft < t) return -r.offsetWidth;
31
31
  }
32
32
  return 0;
33
- }, w = () => {
34
- let e = f.current?.querySelectorAll("[role=tab]");
35
- if (!f.current || !e) return 0;
36
- let { scrollLeft: t, clientWidth: n } = f.current, r = Array.from(e), i = t + n;
33
+ }, T = () => {
34
+ let e = p.current?.querySelectorAll("[role=tab]");
35
+ if (!p.current || !e) return 0;
36
+ let { scrollLeft: t, clientWidth: n } = p.current, r = Array.from(e), i = t + n;
37
37
  for (let e = 0; e < r.length - 1; e++) {
38
38
  let t = r[e], n = t.offsetLeft + t.offsetWidth;
39
39
  if (n > i || n < i) return t.offsetWidth;
40
40
  }
41
41
  return 0;
42
42
  };
43
- return v ? /* @__PURE__ */ c("div", {
43
+ return y ? /* @__PURE__ */ c("div", {
44
44
  className: "uy:relative",
45
45
  children: [
46
- p && /* @__PURE__ */ s(n, {
46
+ m && /* @__PURE__ */ s(n, {
47
47
  direction: "left",
48
48
  onPress: () => {
49
- f.current?.scrollBy({
49
+ p.current?.scrollBy({
50
50
  behavior: "smooth",
51
- left: C()
51
+ left: w()
52
52
  });
53
53
  }
54
54
  }),
55
55
  /* @__PURE__ */ s("div", {
56
- ref: f,
56
+ ref: p,
57
57
  "data-testid": "scrollable-tab-list",
58
- className: b(),
59
- onScroll: S,
58
+ className: x(),
59
+ onScroll: C,
60
60
  children: /* @__PURE__ */ s(u, {
61
- ref: d,
62
- className: y(),
61
+ ...d,
62
+ ref: f,
63
+ className: b(),
63
64
  children: r
64
65
  })
65
66
  }),
66
- h && /* @__PURE__ */ s(n, {
67
+ g && /* @__PURE__ */ s(n, {
67
68
  direction: "right",
68
69
  onPress: () => {
69
- f.current?.scrollBy({
70
+ p.current?.scrollBy({
70
71
  behavior: "smooth",
71
- left: w()
72
+ left: T()
72
73
  });
73
74
  }
74
75
  })
75
76
  ]
76
77
  }) : /* @__PURE__ */ s(u, {
77
- ref: d,
78
- className: y(),
78
+ ...d,
79
+ ref: f,
80
+ className: b(),
79
81
  children: r
80
82
  });
81
83
  });
@@ -1,6 +1,6 @@
1
1
  import { TabPanelProps as AriaTabPanelProps, Key } from 'react-aria-components/Tabs';
2
2
  export interface TabPanelProps extends Omit<AriaTabPanelProps, 'classname' | 'style' | 'id'> {
3
- id: Key | undefined;
3
+ id?: Key;
4
4
  }
5
5
  declare const TabPanel: import('react').ForwardRefExoticComponent<TabPanelProps & import('react').RefAttributes<HTMLDivElement>>;
6
6
  export { TabPanel };
@@ -0,0 +1,11 @@
1
+ import { ForwardedRef } from 'react';
2
+ import { TabPanelsProps as AriaTabPanelsProps } from 'react-aria-components/Tabs';
3
+ export type TabPanelsProps<T extends object> = Omit<AriaTabPanelsProps<T>, 'className' | 'style'>;
4
+ type TabPanelsComponent = (<T extends object>(props: TabPanelsProps<T> & {
5
+ ref?: ForwardedRef<HTMLDivElement>;
6
+ }) => JSX.Element) & {
7
+ displayName?: string;
8
+ };
9
+ /** Groups tab panels and supports static or dynamic collections. */
10
+ declare const TabPanels: TabPanelsComponent;
11
+ export { TabPanels };
@@ -0,0 +1,13 @@
1
+ import { forwardRef as e } from "react";
2
+ import { jsx as t } from "react/jsx-runtime";
3
+ import { TabPanels as n } from "react-aria-components/Tabs";
4
+ //#region src/components/tabs/parts/TabPanels.tsx
5
+ var r = e(function(e, r) {
6
+ return /* @__PURE__ */ t(n, {
7
+ ...e,
8
+ ref: r
9
+ });
10
+ });
11
+ r.displayName = "TabPanels";
12
+ //#endregion
13
+ export { r as TabPanels };
@@ -197,6 +197,7 @@ export * from './components/tabs/Tabs.js';
197
197
  export * from './components/tabs/parts/RawTab.js';
198
198
  export * from './components/tabs/parts/TabList.js';
199
199
  export * from './components/tabs/parts/TabPanel.js';
200
+ export * from './components/tabs/parts/TabPanels.js';
200
201
  export * from './components/task-menu/TaskMenu.js';
201
202
  export * from './components/task-menu/parts/RawSubTask.js';
202
203
  export * from './components/task-menu/parts/RawTask.js';
package/dist/esm/index.js CHANGED
@@ -206,43 +206,44 @@ import { Tabs as xi } from "./components/tabs/Tabs.js";
206
206
  import { RawTab as Si } from "./components/tabs/parts/RawTab.js";
207
207
  import { TabList as Ci } from "./components/tabs/parts/TabList.js";
208
208
  import { TabPanel as wi } from "./components/tabs/parts/TabPanel.js";
209
- import { TaskMenu as Ti, taskMenu as Ei } from "./components/task-menu/TaskMenu.js";
210
- import { RawSubTask as Di, rawSubTask as Oi } from "./components/task-menu/parts/RawSubTask.js";
211
- import { RawTask as ki, rawTask as Ai } from "./components/task-menu/parts/RawTask.js";
212
- import { TaskGroup as ji } from "./components/task-menu/parts/TaskGroup.js";
213
- import { TextArea as Mi, textArea as Ni } from "./components/text-area/TextArea.js";
214
- import { Timeline as Pi } from "./components/timeline/Timeline.js";
215
- import { TimelineStep as Fi } from "./components/timeline/parts/TimelineStep.js";
216
- import { TimelineStepHeader as Ii } from "./components/timeline/parts/TimelineStepHeader.js";
217
- import { TimelineStepDescription as Li } from "./components/timeline/parts/TimelineStepDescription.js";
218
- import { TOAST_CONFIG as Ri, ToastManager as zi } from "./components/toast/ToastManager.js";
219
- import { toast as Bi } from "./components/toast/toast.js";
220
- import { ToggleSwitchGroup as Vi, toggleSwitchGroup as Hi } from "./components/toggle-switch-group/ToggleSwitchGroup.js";
221
- import { ToggleSwitch as Ui, toggleSwitch as Wi } from "./components/toggle-switch/ToggleSwitch.js";
222
- import { useAsyncList as Gi } from "./hooks/use-async-list.js";
223
- import { FormHelperText as Ki } from "./components/form-field/parts/FormHelperText.js";
224
- import { RawFormContextualLink as qi } from "./components/form-field/parts/RawFormContextualLink.js";
225
- import { FormField as Ji } from "./components/form-field/FormField.js";
226
- import { useUnityForm as Yi } from "./hooks/use-form.js";
227
- import { FormControl as Xi } from "./components/form-field/parts/FormControl.js";
228
- import { FormFeedbackText as Zi } from "./components/form-field/parts/FormFeedbackText.js";
229
- import { CheckboxField as Qi } from "./components/checkbox-field/CheckboxField.js";
230
- import { CheckboxGroupField as $i } from "./components/checkbox-group-field/CheckboxGroupField.js";
231
- import { FormLabel as ea } from "./components/form-field/parts/FormLabel.js";
232
- import { DatePickerField as ta } from "./components/date-picker-field/DatePickerField.js";
233
- import { MultiSelectField as na } from "./components/multi-select-field/MultiSelectField.js";
234
- import { NumberField as ra, numberField as ia } from "./components/number-field/NumberField.js";
235
- import { RadioButtonGroupField as aa } from "./components/radio-button-group-field/RadioButtonGroupField.js";
236
- import { SelectableButtonGroupField as oa } from "./components/selectable-button-group-field/SelectableButtonGroupField.js";
237
- import { SelectableCardCheckboxGroupField as sa } from "./components/selectable-card-checkbox-group-field/SelectableCardCheckboxGroupField.js";
238
- import { SelectableCardRadioGroupField as ca } from "./components/selectable-card-radio-group-field/SelectableCardRadioGroupField.js";
239
- import { SelectField as la } from "./components/select-field/SelectField.js";
240
- import { TextField as ua } from "./components/text-field/TextField.js";
241
- import { ToggleSwitchField as da } from "./components/toggle-switch-field/ToggleSwitchField.js";
242
- import { ToggleSwitchGroupField as fa } from "./components/toggle-switch-group-field/ToggleSwitchGroupField.js";
243
- import { useFieldContext as pa, useFormContext as ma } from "./hooks/tanstack-form-context.js";
244
- import { useTanstackUnityForm as ha, withFieldGroup as ga, withForm as _a } from "./hooks/use-tanstack-form.js";
245
- import { tanstackFormDefaultValues as va } from "./hooks/tanstack-form-default-values.js";
246
- import { useFieldA11yContext as ya } from "./components/form-field/TanstackFormField.context.js";
247
- import { fieldRevalidateLogic as ba } from "./utils/field-revalidate-logic.js";
248
- export { y as ActionBar, u as ActionBarAction, d as ActionBarButton, m as ActionBarIconButton, b as ActionBarRoot, e as Actionable, w as Alert, T as AlertActions, O as AlertContent, k as AlertTitle, A as Anchor, j as AppLayout, I as AppMenu, N as AppMenuContext, P as AppMenuContextProvider, G as AppMenuFooter, Y as AppMenuHeader, X as AppMenuNavContent, W as AppProfileMenuButton, M as AppTopBar, Z as Autocomplete, Q as AutocompleteItem, ee as AutocompleteItemGroup, B as Avatar, H as AvatarFallback, se as AvatarGroup, oe as AvatarGroupCount, ie as AvatarIcon, U as AvatarImage, ae as AvatarPair, ne as AvatarWithTooltip, K as BRAND_ASSETS, we as BREADCRUMB_ITEM_MAX_WIDTH, z as Badge, ce as BadgeDot, le as BottomSheet, de as BottomSheetContent, pe as BottomSheetFooter, he as BottomSheetHeader, ve as Breadcrumb, _e as Breadcrumbs, l as Button, Ie as Card, ze as CardContent, Re as CardTitle, Oe as Carousel, Me as CarouselContent, Ae as CarouselHeader, Ee as CarouselNav, Pe as CarouselSlide, Ue as Checkbox, Qi as CheckboxField, Ve as CheckboxGroup, $i as CheckboxGroupField, We as CheckboxStandalone, S as CircularIconButton, Ge as Collapsible, Ke as CollapsibleContent, Je as CollapsibleGroup, qe as CollapsibleTitle, n as DESKTOP_BREAKPOINTS, xt as DataTable, wt as DataTableBulkActions, St as DataTableRoot, Tt as DateCalendar, Et as DatePicker, ta as DatePickerField, Dt as DateRangeCalendar, Ot as DateRangePicker, At as DefinitionItem, kt as DefinitionList, jt as DefinitionTooltip, Pt as Dialog, Mt as DialogActions, Nt as DialogButton, Lt as DialogContent, Rt as DialogTitle, Ft as DialogTrigger, ct as EmptyState, lt as EmptyStateActions, ut as EmptyStateContent, Kt as EmptyStateGetStarted, Jt as EmptyStateGoodJob, dt as EmptyStateIcon, Xt as EmptyStateNoSearchResults, Yt as EmptyStateUpgradeRequired, Zt as EmptyStateUseDesktop, qt as EmptyStateWaitingForData, $t as ErrorState, rn as FieldGroup, tn as Fieldset, an as Filter, fn as FilterAdapters, on as FilterControls, sn as FilterLabels, pn as FilterToolbar, _n as Flex, yn as FlexItem, un as FloatingActionBar, xn as Form, Xi as FormControl, Zi as FormFeedbackText, Ji as FormField, Ki as FormHelperText, ea as FormLabel, Sn as FullPageLoader, Ln as FunnelBackButton, On as FunnelBody, En as FunnelLayout, An as FunnelPage, Mn as FunnelPageAction, Nn as FunnelPageActions, Fn as FunnelPageContent, Rn as FunnelPageFooter, Bn as FunnelPageHeader, Hn as FunnelSidebar, Wn as FunnelTopBar, Jn as Grid, Yn as GridItem, s as Icon, p as IconButton, Xn as Input, re as InteractiveAvatar, Be as Label, Qn as ListView, rr as ListViewItemLabel, ir as ListViewItemText, tr as ListViewSection, r as MOBILE_BREAKPOINTS, h as Menu, g as MenuContent, R as MenuHeader, ar as MenuSection, L as MenuSeparator, _ as MenuTrigger, or as MultiSelect, na as MultiSelectField, sr as MultiSelectOptGroup, cr as MultiSelectOption, lr as Nav, fr as NavGroup, _r as NavigationCardDescription, mr as NavigationCardGroup, gr as NavigationCardLabel, ye as NoopRouterProvider, ra as NumberField, vr as NumberInput, br as Page, Sr as PageHeader, wr as PageHeading, Tr as Pagination, Dr as PaginationContent, Pr as PaginationEllipsis, kr as PaginationItem, q as PayFitBrand, J as PayFitBrandPreprod, Lr as PhoneNumberInput, Rr as Pill, zr as Popover, Br as PopoverTrigger, Vr as ProgressBar, Ht as PromoDialog, zt as PromoDialogActions, Gt as PromoDialogContent, Bt as PromoDialogHero, Wt as PromoDialogSubtitle, Vt as PromoDialogTitle, Gr as RadioButton, Hr as RadioButtonGroup, aa as RadioButtonGroupField, Ur as RadioButtonHelper, Wr as RadioIndicator, Te as RawBreadcrumbLink, qi as RawFormContextualLink, Se as RawLink, Zn as RawLinkButton, $n as RawListViewItem, v as RawMenuItem, ur as RawNavItem, pr as RawNavigationCard, Ar as RawPaginationLink, Nr as RawPaginationNext, Mr as RawPaginationPrevious, Di as RawSubTask, Si as RawTab, ki as RawTask, be as RouterProvider, Xe as Search, Jr as SegmentedButtonGroup, $e as Select, Qe as SelectButton, la as SelectField, Ye as SelectOption, ii as SelectOptionGroup, ai as SelectOptionHelper, Qr as SelectableButton, Xr as SelectableButtonGroup, oa as SelectableButtonGroupField, ti as SelectableCardCheckbox, ei as SelectableCardCheckboxGroup, sa as SelectableCardCheckboxGroupField, ri as SelectableCardRadio, ni as SelectableCardRadioGroup, ca as SelectableCardRadioGroupField, oi as SidePanel, ci as SidePanelContent, ui as SidePanelFooter, fi as SidePanelHeader, qr as Skeleton, wn as SkipLink, Tn as SkipLinks, c as Spinner, vn as Stack, bn as StackItem, hi as Step, mi as Stepper, Ri as TOAST_CONFIG, Ci as TabList, wi as TabPanel, nt as Table, it as TableBody, _i as TableCell, ot as TableColumnHeader, ft as TableEmptyState, pt as TableEmptyStateError, mt as TableEmptyStateLoading, ht as TableEmptyStateNoData, gt as TableEmptyStateText, yt as TableHeader, _t as TableNoSearchResults, et as TablePagination, rt as TableRoot, yi as TableRow, xi as Tabs, ji as TaskGroup, Ti as TaskMenu, D as Text, Mi as TextArea, ua as TextField, Pi as Timeline, Fi as TimelineStep, Li as TimelineStepDescription, Ii as TimelineStepHeader, zi as ToastManager, Yr as ToggleButton, Ui as ToggleSwitch, da as ToggleSwitchField, Vi as ToggleSwitchGroup, fa as ToggleSwitchGroupField, f as Tooltip, x as actionBarRoot, $ as autocompleteItem, te as autocompleteItemGroup, ue as bottomSheet, fe as bottomSheetContent, me as bottomSheetFooter, ge as bottomSheetHeader, Le as card, ke as carousel, Ne as carouselContent, je as carouselHeader, De as carouselNav, Fe as carouselSlide, He as checkboxGroup, C as circularIconButton, Ct as dataTableRoot, It as dialog, en as errorState, ba as fieldRevalidateLogic, nn as fieldset, cn as filterContainer, ln as filterDismissButton, mn as filterToolbar, hn as flex, gn as flexItem, dn as floatingActionBar, Cn as fullPageLoader, kn as funnelBody, Dn as funnelLayout, jn as funnelPage, Pn as funnelPageActions, In as funnelPageContent, zn as funnelPageFooter, Vn as funnelPageHeader, Un as funnelSidebar, Gn as funnelTopBar, V as getInitials, Kn as grid, qn as gridItem, i as isDesktopBreakpoint, a as isMobileBreakpoint, Ce as link, er as listViewItem, nr as listViewSection, dr as navItemBase, hr as navigationCardGroup, ia as numberField, yr as numberInput, xr as page, Cr as pageHeader, Er as pagination, Or as paginationContent, jr as paginationLink, Ut as promoDialog, Kr as radioButton, Oi as rawSubTask, Ai as rawTask, Ze as search, $r as selectableButton, Zr as selectableButtonGroup, si as sidePanel, li as sidePanelContent, di as sidePanelFooter, pi as sidePanelHeader, at as tableBody, vi as tableCell, st as tableColumnHeader, vt as tableEmptyState, bt as tableHeader, tt as tablePagination, bi as tableRow, va as tanstackFormDefaultValues, Ei as taskMenu, E as text, Ni as textArea, Bi as toast, Wi as toggleSwitch, Hi as toggleSwitchGroup, F as useAppMenuContext, Gi as useAsyncList, o as useBreakpointListener, Qt as useContainerQueryLevel, ya as useFieldA11yContext, pa as useFieldContext, ma as useFormContext, t as useMediaQuery, Ir as usePaginationState, Fr as usePaginationWindow, xe as useRouter, gi as useStepper, ha as useTanstackUnityForm, Yi as useUnityForm, ga as withFieldGroup, _a as withForm };
209
+ import { TabPanels as Ti } from "./components/tabs/parts/TabPanels.js";
210
+ import { TaskMenu as Ei, taskMenu as Di } from "./components/task-menu/TaskMenu.js";
211
+ import { RawSubTask as Oi, rawSubTask as ki } from "./components/task-menu/parts/RawSubTask.js";
212
+ import { RawTask as Ai, rawTask as ji } from "./components/task-menu/parts/RawTask.js";
213
+ import { TaskGroup as Mi } from "./components/task-menu/parts/TaskGroup.js";
214
+ import { TextArea as Ni, textArea as Pi } from "./components/text-area/TextArea.js";
215
+ import { Timeline as Fi } from "./components/timeline/Timeline.js";
216
+ import { TimelineStep as Ii } from "./components/timeline/parts/TimelineStep.js";
217
+ import { TimelineStepHeader as Li } from "./components/timeline/parts/TimelineStepHeader.js";
218
+ import { TimelineStepDescription as Ri } from "./components/timeline/parts/TimelineStepDescription.js";
219
+ import { TOAST_CONFIG as zi, ToastManager as Bi } from "./components/toast/ToastManager.js";
220
+ import { toast as Vi } from "./components/toast/toast.js";
221
+ import { ToggleSwitchGroup as Hi, toggleSwitchGroup as Ui } from "./components/toggle-switch-group/ToggleSwitchGroup.js";
222
+ import { ToggleSwitch as Wi, toggleSwitch as Gi } from "./components/toggle-switch/ToggleSwitch.js";
223
+ import { useAsyncList as Ki } from "./hooks/use-async-list.js";
224
+ import { FormHelperText as qi } from "./components/form-field/parts/FormHelperText.js";
225
+ import { RawFormContextualLink as Ji } from "./components/form-field/parts/RawFormContextualLink.js";
226
+ import { FormField as Yi } from "./components/form-field/FormField.js";
227
+ import { useUnityForm as Xi } from "./hooks/use-form.js";
228
+ import { FormControl as Zi } from "./components/form-field/parts/FormControl.js";
229
+ import { FormFeedbackText as Qi } from "./components/form-field/parts/FormFeedbackText.js";
230
+ import { CheckboxField as $i } from "./components/checkbox-field/CheckboxField.js";
231
+ import { CheckboxGroupField as ea } from "./components/checkbox-group-field/CheckboxGroupField.js";
232
+ import { FormLabel as ta } from "./components/form-field/parts/FormLabel.js";
233
+ import { DatePickerField as na } from "./components/date-picker-field/DatePickerField.js";
234
+ import { MultiSelectField as ra } from "./components/multi-select-field/MultiSelectField.js";
235
+ import { NumberField as ia, numberField as aa } from "./components/number-field/NumberField.js";
236
+ import { RadioButtonGroupField as oa } from "./components/radio-button-group-field/RadioButtonGroupField.js";
237
+ import { SelectableButtonGroupField as sa } from "./components/selectable-button-group-field/SelectableButtonGroupField.js";
238
+ import { SelectableCardCheckboxGroupField as ca } from "./components/selectable-card-checkbox-group-field/SelectableCardCheckboxGroupField.js";
239
+ import { SelectableCardRadioGroupField as la } from "./components/selectable-card-radio-group-field/SelectableCardRadioGroupField.js";
240
+ import { SelectField as ua } from "./components/select-field/SelectField.js";
241
+ import { TextField as da } from "./components/text-field/TextField.js";
242
+ import { ToggleSwitchField as fa } from "./components/toggle-switch-field/ToggleSwitchField.js";
243
+ import { ToggleSwitchGroupField as pa } from "./components/toggle-switch-group-field/ToggleSwitchGroupField.js";
244
+ import { useFieldContext as ma, useFormContext as ha } from "./hooks/tanstack-form-context.js";
245
+ import { useTanstackUnityForm as ga, withFieldGroup as _a, withForm as va } from "./hooks/use-tanstack-form.js";
246
+ import { tanstackFormDefaultValues as ya } from "./hooks/tanstack-form-default-values.js";
247
+ import { useFieldA11yContext as ba } from "./components/form-field/TanstackFormField.context.js";
248
+ import { fieldRevalidateLogic as xa } from "./utils/field-revalidate-logic.js";
249
+ export { y as ActionBar, u as ActionBarAction, d as ActionBarButton, m as ActionBarIconButton, b as ActionBarRoot, e as Actionable, w as Alert, T as AlertActions, O as AlertContent, k as AlertTitle, A as Anchor, j as AppLayout, I as AppMenu, N as AppMenuContext, P as AppMenuContextProvider, G as AppMenuFooter, Y as AppMenuHeader, X as AppMenuNavContent, W as AppProfileMenuButton, M as AppTopBar, Z as Autocomplete, Q as AutocompleteItem, ee as AutocompleteItemGroup, B as Avatar, H as AvatarFallback, se as AvatarGroup, oe as AvatarGroupCount, ie as AvatarIcon, U as AvatarImage, ae as AvatarPair, ne as AvatarWithTooltip, K as BRAND_ASSETS, we as BREADCRUMB_ITEM_MAX_WIDTH, z as Badge, ce as BadgeDot, le as BottomSheet, de as BottomSheetContent, pe as BottomSheetFooter, he as BottomSheetHeader, ve as Breadcrumb, _e as Breadcrumbs, l as Button, Ie as Card, ze as CardContent, Re as CardTitle, Oe as Carousel, Me as CarouselContent, Ae as CarouselHeader, Ee as CarouselNav, Pe as CarouselSlide, Ue as Checkbox, $i as CheckboxField, Ve as CheckboxGroup, ea as CheckboxGroupField, We as CheckboxStandalone, S as CircularIconButton, Ge as Collapsible, Ke as CollapsibleContent, Je as CollapsibleGroup, qe as CollapsibleTitle, n as DESKTOP_BREAKPOINTS, xt as DataTable, wt as DataTableBulkActions, St as DataTableRoot, Tt as DateCalendar, Et as DatePicker, na as DatePickerField, Dt as DateRangeCalendar, Ot as DateRangePicker, At as DefinitionItem, kt as DefinitionList, jt as DefinitionTooltip, Pt as Dialog, Mt as DialogActions, Nt as DialogButton, Lt as DialogContent, Rt as DialogTitle, Ft as DialogTrigger, ct as EmptyState, lt as EmptyStateActions, ut as EmptyStateContent, Kt as EmptyStateGetStarted, Jt as EmptyStateGoodJob, dt as EmptyStateIcon, Xt as EmptyStateNoSearchResults, Yt as EmptyStateUpgradeRequired, Zt as EmptyStateUseDesktop, qt as EmptyStateWaitingForData, $t as ErrorState, rn as FieldGroup, tn as Fieldset, an as Filter, fn as FilterAdapters, on as FilterControls, sn as FilterLabels, pn as FilterToolbar, _n as Flex, yn as FlexItem, un as FloatingActionBar, xn as Form, Zi as FormControl, Qi as FormFeedbackText, Yi as FormField, qi as FormHelperText, ta as FormLabel, Sn as FullPageLoader, Ln as FunnelBackButton, On as FunnelBody, En as FunnelLayout, An as FunnelPage, Mn as FunnelPageAction, Nn as FunnelPageActions, Fn as FunnelPageContent, Rn as FunnelPageFooter, Bn as FunnelPageHeader, Hn as FunnelSidebar, Wn as FunnelTopBar, Jn as Grid, Yn as GridItem, s as Icon, p as IconButton, Xn as Input, re as InteractiveAvatar, Be as Label, Qn as ListView, rr as ListViewItemLabel, ir as ListViewItemText, tr as ListViewSection, r as MOBILE_BREAKPOINTS, h as Menu, g as MenuContent, R as MenuHeader, ar as MenuSection, L as MenuSeparator, _ as MenuTrigger, or as MultiSelect, ra as MultiSelectField, sr as MultiSelectOptGroup, cr as MultiSelectOption, lr as Nav, fr as NavGroup, _r as NavigationCardDescription, mr as NavigationCardGroup, gr as NavigationCardLabel, ye as NoopRouterProvider, ia as NumberField, vr as NumberInput, br as Page, Sr as PageHeader, wr as PageHeading, Tr as Pagination, Dr as PaginationContent, Pr as PaginationEllipsis, kr as PaginationItem, q as PayFitBrand, J as PayFitBrandPreprod, Lr as PhoneNumberInput, Rr as Pill, zr as Popover, Br as PopoverTrigger, Vr as ProgressBar, Ht as PromoDialog, zt as PromoDialogActions, Gt as PromoDialogContent, Bt as PromoDialogHero, Wt as PromoDialogSubtitle, Vt as PromoDialogTitle, Gr as RadioButton, Hr as RadioButtonGroup, oa as RadioButtonGroupField, Ur as RadioButtonHelper, Wr as RadioIndicator, Te as RawBreadcrumbLink, Ji as RawFormContextualLink, Se as RawLink, Zn as RawLinkButton, $n as RawListViewItem, v as RawMenuItem, ur as RawNavItem, pr as RawNavigationCard, Ar as RawPaginationLink, Nr as RawPaginationNext, Mr as RawPaginationPrevious, Oi as RawSubTask, Si as RawTab, Ai as RawTask, be as RouterProvider, Xe as Search, Jr as SegmentedButtonGroup, $e as Select, Qe as SelectButton, ua as SelectField, Ye as SelectOption, ii as SelectOptionGroup, ai as SelectOptionHelper, Qr as SelectableButton, Xr as SelectableButtonGroup, sa as SelectableButtonGroupField, ti as SelectableCardCheckbox, ei as SelectableCardCheckboxGroup, ca as SelectableCardCheckboxGroupField, ri as SelectableCardRadio, ni as SelectableCardRadioGroup, la as SelectableCardRadioGroupField, oi as SidePanel, ci as SidePanelContent, ui as SidePanelFooter, fi as SidePanelHeader, qr as Skeleton, wn as SkipLink, Tn as SkipLinks, c as Spinner, vn as Stack, bn as StackItem, hi as Step, mi as Stepper, zi as TOAST_CONFIG, Ci as TabList, wi as TabPanel, Ti as TabPanels, nt as Table, it as TableBody, _i as TableCell, ot as TableColumnHeader, ft as TableEmptyState, pt as TableEmptyStateError, mt as TableEmptyStateLoading, ht as TableEmptyStateNoData, gt as TableEmptyStateText, yt as TableHeader, _t as TableNoSearchResults, et as TablePagination, rt as TableRoot, yi as TableRow, xi as Tabs, Mi as TaskGroup, Ei as TaskMenu, D as Text, Ni as TextArea, da as TextField, Fi as Timeline, Ii as TimelineStep, Ri as TimelineStepDescription, Li as TimelineStepHeader, Bi as ToastManager, Yr as ToggleButton, Wi as ToggleSwitch, fa as ToggleSwitchField, Hi as ToggleSwitchGroup, pa as ToggleSwitchGroupField, f as Tooltip, x as actionBarRoot, $ as autocompleteItem, te as autocompleteItemGroup, ue as bottomSheet, fe as bottomSheetContent, me as bottomSheetFooter, ge as bottomSheetHeader, Le as card, ke as carousel, Ne as carouselContent, je as carouselHeader, De as carouselNav, Fe as carouselSlide, He as checkboxGroup, C as circularIconButton, Ct as dataTableRoot, It as dialog, en as errorState, xa as fieldRevalidateLogic, nn as fieldset, cn as filterContainer, ln as filterDismissButton, mn as filterToolbar, hn as flex, gn as flexItem, dn as floatingActionBar, Cn as fullPageLoader, kn as funnelBody, Dn as funnelLayout, jn as funnelPage, Pn as funnelPageActions, In as funnelPageContent, zn as funnelPageFooter, Vn as funnelPageHeader, Un as funnelSidebar, Gn as funnelTopBar, V as getInitials, Kn as grid, qn as gridItem, i as isDesktopBreakpoint, a as isMobileBreakpoint, Ce as link, er as listViewItem, nr as listViewSection, dr as navItemBase, hr as navigationCardGroup, aa as numberField, yr as numberInput, xr as page, Cr as pageHeader, Er as pagination, Or as paginationContent, jr as paginationLink, Ut as promoDialog, Kr as radioButton, ki as rawSubTask, ji as rawTask, Ze as search, $r as selectableButton, Zr as selectableButtonGroup, si as sidePanel, li as sidePanelContent, di as sidePanelFooter, pi as sidePanelHeader, at as tableBody, vi as tableCell, st as tableColumnHeader, vt as tableEmptyState, bt as tableHeader, tt as tablePagination, bi as tableRow, ya as tanstackFormDefaultValues, Di as taskMenu, E as text, Pi as textArea, Vi as toast, Gi as toggleSwitch, Ui as toggleSwitchGroup, F as useAppMenuContext, Ki as useAsyncList, o as useBreakpointListener, Qt as useContainerQueryLevel, ba as useFieldA11yContext, ma as useFieldContext, ha as useFormContext, t as useMediaQuery, Ir as usePaginationState, Fr as usePaginationWindow, xe as useRouter, gi as useStepper, ga as useTanstackUnityForm, Xi as useUnityForm, _a as withFieldGroup, va as withForm };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@payfit/unity-components",
3
- "version": "2.67.24",
3
+ "version": "2.67.26",
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.1",
97
97
  "usehooks-ts": "3.1.1",
98
98
  "zod": "4.5.4",
99
- "@payfit/unity-illustrations": "2.67.24"
99
+ "@payfit/unity-illustrations": "2.67.26"
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.67.24",
112
- "@payfit/unity-themes": "2.67.24"
111
+ "@payfit/unity-icons": "2.67.26",
112
+ "@payfit/unity-themes": "2.67.26"
113
113
  },
114
114
  "devDependencies": {
115
115
  "@figma/code-connect": "1.5.3",
@@ -155,15 +155,15 @@
155
155
  "vite": "8.1.4",
156
156
  "vite-plugin-node-polyfills": "0.28.0",
157
157
  "vitest": "4.1.11",
158
- "@payfit/hr-app-eslint": "0.0.0-use.local",
159
- "@payfit/hr-apps-tsconfigs": "0.0.0-use.local",
160
- "@payfit/storybook-config": "0.0.0-use.local",
161
158
  "@payfit/storybook-addon-console-errors": "0.0.0-use.local",
162
- "@payfit/unity-illustrations": "2.67.24",
163
- "@payfit/unity-themes": "2.67.24",
164
159
  "@payfit/storybook-addon-datadog-rum": "0.0.0-use.local",
160
+ "@payfit/hr-apps-tsconfigs": "0.0.0-use.local",
161
+ "@payfit/storybook-config": "0.0.0-use.local",
162
+ "@payfit/unity-illustrations": "2.67.26",
163
+ "@payfit/unity-icons": "2.67.26",
164
+ "@payfit/unity-themes": "2.67.26",
165
165
  "@payfit/vite-configs": "0.0.0-use.local",
166
- "@payfit/unity-icons": "2.67.24"
166
+ "@payfit/hr-app-eslint": "0.0.0-use.local"
167
167
  },
168
168
  "peerDependenciesMeta": {
169
169
  "@hookform/devtools": {