@payfit/unity-components 2.9.7 → 2.9.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/components/carousel/Carousel.context.d.ts +60 -0
- package/dist/esm/components/carousel/Carousel.context.js +14 -0
- package/dist/esm/components/carousel/Carousel.d.ts +72 -0
- package/dist/esm/components/carousel/Carousel.js +106 -0
- package/dist/esm/components/carousel/Carousel.options.d.ts +24 -0
- package/dist/esm/components/carousel/Carousel.options.js +64 -0
- package/dist/esm/components/carousel/hooks/useCarouselAccessibility.d.ts +21 -0
- package/dist/esm/components/carousel/hooks/useCarouselAccessibility.js +87 -0
- package/dist/esm/components/carousel/hooks/useCarouselState.d.ts +14 -0
- package/dist/esm/components/carousel/hooks/useCarouselState.js +62 -0
- package/dist/esm/components/carousel/parts/CarouselContent.d.ts +103 -0
- package/dist/esm/components/carousel/parts/CarouselContent.js +69 -0
- package/dist/esm/components/carousel/parts/CarouselHeader.d.ts +87 -0
- package/dist/esm/components/carousel/parts/CarouselHeader.js +58 -0
- package/dist/esm/components/carousel/parts/CarouselNav.d.ts +59 -0
- package/dist/esm/components/carousel/parts/CarouselNav.js +80 -0
- package/dist/esm/components/carousel/parts/CarouselSlide.d.ts +38 -0
- package/dist/esm/components/carousel/parts/CarouselSlide.js +35 -0
- package/dist/esm/components/carousel/types.d.ts +8 -0
- package/dist/esm/components/icon-button/IconButton.d.ts +1 -0
- package/dist/esm/hooks/use-responsive-value.d.ts +11 -0
- package/dist/esm/hooks/use-responsive-value.js +29 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.js +87 -72
- package/dist/esm/utils/field-revalidate-logic.d.ts +1 -1
- package/dist/esm/utils/field-revalidate-logic.js +10 -12
- package/i18n/en-GB.json +13 -0
- package/i18n/es-ES.json +13 -0
- package/i18n/fr-FR.json +13 -0
- package/package.json +13 -10
package/dist/esm/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Actionable as r } from "./components/actionable/Actionable.js";
|
|
2
2
|
import { ActionBar as p, actionBar as a } from "./components/action-bar/ActionBar.js";
|
|
3
3
|
import { ActionBarAction as x } from "./components/action-bar/parts/ActionBarAction.js";
|
|
4
|
-
import { ActionBarRoot as n, actionBarRoot as
|
|
4
|
+
import { ActionBarRoot as n, actionBarRoot as l } from "./components/action-bar/parts/ActionBarRoot.js";
|
|
5
5
|
import { Alert as u } from "./components/alert/Alert.js";
|
|
6
6
|
import { AlertActions as c } from "./components/alert/parts/AlertActions.js";
|
|
7
|
-
import { AlertContent as
|
|
7
|
+
import { AlertContent as s } from "./components/alert/parts/AlertContent.js";
|
|
8
8
|
import { AlertTitle as S } from "./components/alert/parts/AlertTitle.js";
|
|
9
|
-
import { Anchor as
|
|
9
|
+
import { Anchor as F } from "./components/anchor/Anchor.js";
|
|
10
10
|
import { AppLayout as P } from "./components/app-layout/AppLayout.js";
|
|
11
11
|
import { AppMenu as A } from "./components/app-menu/AppMenu.js";
|
|
12
12
|
import { AppMenuContext as R, AppMenuContextProvider as w, useAppMenuContext as G } from "./components/app-menu/parts/AppMenu.context.js";
|
|
@@ -25,10 +25,10 @@ import { getInitials as oo } from "./components/avatar/utils.js";
|
|
|
25
25
|
import { Badge as ro } from "./components/badge/Badge.js";
|
|
26
26
|
import { BottomSheet as po, bottomSheet as ao } from "./components/bottom-sheet/BottomSheet.js";
|
|
27
27
|
import { BottomSheetContent as xo, bottomSheetContent as fo } from "./components/bottom-sheet/parts/BottomSheetContent.js";
|
|
28
|
-
import { BottomSheetFooter as
|
|
28
|
+
import { BottomSheetFooter as lo, bottomSheetFooter as io } from "./components/bottom-sheet/parts/BottomSheetFooter.js";
|
|
29
29
|
import { BottomSheetHeader as co, bottomSheetHeader as go } from "./components/bottom-sheet/parts/BottomSheetHeader.js";
|
|
30
|
-
import { Breadcrumbs as
|
|
31
|
-
import { Breadcrumb as
|
|
30
|
+
import { Breadcrumbs as bo } from "./components/breadcrumbs/Breadcrumbs.js";
|
|
31
|
+
import { Breadcrumb as Co } from "./components/breadcrumbs/parts/Breadcrumb.js";
|
|
32
32
|
import { BREADCRUMB_CONTENT_MAX_LENGTH as To, RawBreadcrumbLink as Po } from "./components/breadcrumbs/parts/RawBreadcrumbLink.js";
|
|
33
33
|
import { Button as Ao } from "./components/button/Button.js";
|
|
34
34
|
import { Card as Ro, card as wo } from "./components/card/Card.js";
|
|
@@ -48,11 +48,11 @@ import { DatePicker as ee } from "./components/date-picker/DatePicker.js";
|
|
|
48
48
|
import { DefinitionTooltip as te } from "./components/definition-tooltip/DefinitionTooltip.js";
|
|
49
49
|
import { Dialog as ae, dialog as me } from "./components/dialog/Dialog.js";
|
|
50
50
|
import { DialogActions as fe } from "./components/dialog/parts/DialogActions.js";
|
|
51
|
-
import { DialogButton as
|
|
51
|
+
import { DialogButton as le } from "./components/dialog/parts/DialogActions/DialogButton.js";
|
|
52
52
|
import { DialogContent as ue } from "./components/dialog/parts/DialogContent.js";
|
|
53
53
|
import { DialogTitle as ce } from "./components/dialog/parts/DialogTitle.js";
|
|
54
|
-
import { PromoDialog as
|
|
55
|
-
import { PromoDialogHero as
|
|
54
|
+
import { PromoDialog as se, promoDialog as be } from "./components/promo-dialog/PromoDialog.js";
|
|
55
|
+
import { PromoDialogHero as Ce } from "./components/promo-dialog/parts/PromoDialogHero.js";
|
|
56
56
|
import { PromoDialogSubtitle as Te } from "./components/promo-dialog/parts/PromoDialogSubtitle.js";
|
|
57
57
|
import { PromoDialogContent as Be } from "./components/promo-dialog/parts/PromoDialogContent.js";
|
|
58
58
|
import { PromoDialogActions as ke } from "./components/promo-dialog/parts/PromoDialogActions.js";
|
|
@@ -71,10 +71,10 @@ import { ErrorState as ze, errorState as Ke } from "./components/error-state/Err
|
|
|
71
71
|
import { Fieldset as Ze, fieldset as $e } from "./components/fieldset/Fieldset.js";
|
|
72
72
|
import { FieldGroup as er } from "./components/fieldset/parts/FieldGroup.js";
|
|
73
73
|
import { Filter as tr, FilterControls as pr, FilterLabels as ar, filterContainer as mr, filterDismissButton as xr } from "./components/filter/Filter.js";
|
|
74
|
-
import { FilterToolbar as nr, filterToolbar as
|
|
74
|
+
import { FilterToolbar as nr, filterToolbar as lr } from "./components/filter-toolbar/FilterToolbar.js";
|
|
75
75
|
import { Flex as ur, Stack as dr } from "./components/flex/Flex.js";
|
|
76
|
-
import { flex as gr, flexItem as
|
|
77
|
-
import { FlexItem as Sr, StackItem as
|
|
76
|
+
import { flex as gr, flexItem as sr } from "./components/flex/Flex.variants.js";
|
|
77
|
+
import { FlexItem as Sr, StackItem as Cr } from "./components/flex/FlexItem.js";
|
|
78
78
|
import { Form as Tr } from "./components/form/Form.js";
|
|
79
79
|
import { FullPageLoader as Br, fullPageLoader as Ar } from "./components/full-page-loader/FullPageLoader.js";
|
|
80
80
|
import { FunnelLayout as Rr, funnelLayout as wr } from "./components/funnel-layout/FunnelLayout.js";
|
|
@@ -91,11 +91,11 @@ import { FunnelTopBar as ot, funnelTopBar as et } from "./components/funnel-layo
|
|
|
91
91
|
import { Grid as tt } from "./components/grid/Grid.js";
|
|
92
92
|
import { grid as at, gridItem as mt } from "./components/grid/Grid.variants.js";
|
|
93
93
|
import { GridItem as ft } from "./components/grid/GridItem.js";
|
|
94
|
-
import { IconButton as
|
|
94
|
+
import { IconButton as lt } from "./components/icon-button/IconButton.js";
|
|
95
95
|
import { CircularIconButton as ut, circularIconButton as dt } from "./components/icon-button/CircularIconButton.js";
|
|
96
96
|
import { Icon as gt } from "./components/icon/Icon.js";
|
|
97
|
-
import { Input as
|
|
98
|
-
import { Label as
|
|
97
|
+
import { Input as bt } from "./components/input/Input.js";
|
|
98
|
+
import { Label as Ct } from "./components/label/Label.js";
|
|
99
99
|
import { RawLink as Tt, link as Pt } from "./components/link/RawLink.js";
|
|
100
100
|
import { ListView as At } from "./components/list-view/ListView.js";
|
|
101
101
|
import { RawListViewItem as Rt, listViewItem as wt } from "./components/list-view/parts/RawListViewItem.js";
|
|
@@ -115,11 +115,11 @@ import { Nav as op } from "./components/nav/Nav.js";
|
|
|
115
115
|
import { NavGroup as rp } from "./components/nav/parts/NavGroup.js";
|
|
116
116
|
import { RawNavItem as pp, navItemBase as ap } from "./components/nav/parts/RawNavItem.js";
|
|
117
117
|
import { RawNavigationCard as xp } from "./components/navigation-card/NavigationCard.js";
|
|
118
|
-
import { NavigationCardGroup as np, navigationCardGroup as
|
|
118
|
+
import { NavigationCardGroup as np, navigationCardGroup as lp } from "./components/navigation-card/parts/NavigationCardGroup.js";
|
|
119
119
|
import { NavigationCardLabel as up } from "./components/navigation-card/parts/NavigationCardLabel.js";
|
|
120
120
|
import { NavigationCardDescription as cp } from "./components/navigation-card/parts/NavigationCardDescription.js";
|
|
121
|
-
import { NumberInput as
|
|
122
|
-
import { Page as
|
|
121
|
+
import { NumberInput as sp, numberInput as bp } from "./components/number-input/NumberInput.js";
|
|
122
|
+
import { Page as Cp, page as Fp } from "./components/page/Page.js";
|
|
123
123
|
import { PageHeader as Pp, pageHeader as Bp } from "./components/page/parts/PageHeader.js";
|
|
124
124
|
import { PageHeading as kp } from "./components/page/parts/PageHeading.js";
|
|
125
125
|
import { Pagination as wp, pagination as Gp } from "./components/pagination/Pagination.js";
|
|
@@ -139,11 +139,11 @@ import { Popover as ra } from "./components/popover/Popover.js";
|
|
|
139
139
|
import { ProgressBar as pa } from "./components/progress-bar/ProgressBar.js";
|
|
140
140
|
import { RadioButtonGroup as ma } from "./components/radio-button-group/RadioButtonGroup.js";
|
|
141
141
|
import { RadioButton as fa, radioButton as na } from "./components/radio-button-group/parts/RadioButton.js";
|
|
142
|
-
import { RadioButtonHelper as
|
|
142
|
+
import { RadioButtonHelper as ia } from "./components/radio-button-group/parts/RadioButtonHelper.js";
|
|
143
143
|
import { Search as da, search as ca } from "./components/search/Search.js";
|
|
144
|
-
import { SegmentedButtonGroup as
|
|
144
|
+
import { SegmentedButtonGroup as sa } from "./components/segmented-button-group/SegmentedButtonGroup.js";
|
|
145
145
|
import { ToggleButton as Sa } from "./components/segmented-button-group/parts/ToggleButton.js";
|
|
146
|
-
import { SelectableButtonGroup as
|
|
146
|
+
import { SelectableButtonGroup as Fa, selectableButtonGroup as Ta } from "./components/selectable-button-group/SelectableButtonGroup.js";
|
|
147
147
|
import { SelectableButton as Ba, selectableButton as Aa } from "./components/selectable-button-group/parts/SelectableButton.js";
|
|
148
148
|
import { SelectableCardCheckboxGroup as Ra } from "./components/selectable-card/selectable-card-checkbox-group/SelectableCardCheckboxGroup.js";
|
|
149
149
|
import { SelectableCardCheckbox as Ga } from "./components/selectable-card/selectable-card-checkbox-group/parts/SelectableCardCheckbox.js";
|
|
@@ -161,10 +161,10 @@ import { SidePanelHeader as $a, sidePanelHeader as om } from "./components/side-
|
|
|
161
161
|
import { SkipLink as rm, SkipLinks as tm } from "./components/skip-links/SkipLinks.js";
|
|
162
162
|
import { Spinner as am } from "./components/spinner/Spinner.js";
|
|
163
163
|
import { Table as xm, TableRoot as fm } from "./components/table/Table.js";
|
|
164
|
-
import { TableBody as
|
|
164
|
+
import { TableBody as lm, tableBody as im } from "./components/table/parts/TableBody.js";
|
|
165
165
|
import { TableCell as dm, tableCell as cm } from "./components/table/parts/TableCell.js";
|
|
166
|
-
import { TableColumnHeader as
|
|
167
|
-
import { TableEmptyState as
|
|
166
|
+
import { TableColumnHeader as sm, tableColumnHeader as bm } from "./components/table/parts/TableColumnHeader.js";
|
|
167
|
+
import { TableEmptyState as Cm, TableEmptyStateError as Fm, TableEmptyStateLoading as Tm, TableEmptyStateNoData as Pm, TableEmptyStateText as Bm, tableEmptyState as Am } from "./components/table/parts/TableEmptyState.js";
|
|
168
168
|
import { TableHeader as Rm, tableHeader as wm } from "./components/table/parts/TableHeader.js";
|
|
169
169
|
import { TablePagination as ym, tablePagination as hm } from "./components/table/parts/TablePagination.js";
|
|
170
170
|
import { TableRow as Lm, tableRow as Dm } from "./components/table/parts/TableRow.js";
|
|
@@ -180,11 +180,11 @@ import { TextArea as ox, textArea as ex } from "./components/text-area/TextArea.
|
|
|
180
180
|
import { Text as tx } from "./components/text/Text.js";
|
|
181
181
|
import { text as ax } from "./components/text/Text.variants.js";
|
|
182
182
|
import { TOAST_CONFIG as xx, ToastManager as fx } from "./components/toast/ToastManager.js";
|
|
183
|
-
import { toast as
|
|
183
|
+
import { toast as lx } from "./components/toast/toast.js";
|
|
184
184
|
import { ToggleSwitchGroup as ux, toggleSwitchGroup as dx } from "./components/toggle-switch-group/ToggleSwitchGroup.js";
|
|
185
|
-
import { ToggleSwitch as gx, toggleSwitch as
|
|
185
|
+
import { ToggleSwitch as gx, toggleSwitch as sx } from "./components/toggle-switch/ToggleSwitch.js";
|
|
186
186
|
import { Tooltip as Sx } from "./components/tooltip/Tooltip.js";
|
|
187
|
-
import { useBreakpointListener as
|
|
187
|
+
import { useBreakpointListener as Fx } from "./hooks/use-breakpoint-listener.js";
|
|
188
188
|
import { useContainerQueryLevel as Px } from "./hooks/use-container-query-level.js";
|
|
189
189
|
import { useMediaQuery as Ax } from "./hooks/use-media-query.js";
|
|
190
190
|
import { useUnityForm as Rx } from "./hooks/use-form.js";
|
|
@@ -207,14 +207,19 @@ import { SelectField as af } from "./components/select-field/SelectField.js";
|
|
|
207
207
|
import { TextField as xf } from "./components/text-field/TextField.js";
|
|
208
208
|
import { ToggleSwitchField as nf } from "./components/toggle-switch-field/ToggleSwitchField.js";
|
|
209
209
|
import { ToggleSwitchGroupField as uf } from "./components/toggle-switch-group-field/ToggleSwitchGroupField.js";
|
|
210
|
-
import { useTanstackUnityForm as cf, withFieldGroup as gf, withForm as
|
|
211
|
-
import { useFieldContext as Sf, useFormContext as
|
|
210
|
+
import { useTanstackUnityForm as cf, withFieldGroup as gf, withForm as sf } from "./hooks/use-tanstack-form.js";
|
|
211
|
+
import { useFieldContext as Sf, useFormContext as Cf } from "./hooks/tanstack-form-context.js";
|
|
212
212
|
import { useFieldA11yContext as Tf } from "./components/form-field/TanstackFormField.context.js";
|
|
213
213
|
import { fieldRevalidateLogic as Bf } from "./utils/field-revalidate-logic.js";
|
|
214
214
|
import { NoopRouterProvider as kf, RouterProvider as Rf, useRouter as wf } from "./providers/router/RouterProvider.js";
|
|
215
|
-
import {
|
|
216
|
-
import {
|
|
217
|
-
import {
|
|
215
|
+
import { Carousel as yf, carousel as hf } from "./components/carousel/Carousel.js";
|
|
216
|
+
import { CarouselHeader as Lf, carouselHeader as Df } from "./components/carousel/parts/CarouselHeader.js";
|
|
217
|
+
import { CarouselNav as Mf, carouselNav as Ef } from "./components/carousel/parts/CarouselNav.js";
|
|
218
|
+
import { CarouselContent as Nf, carouselContent as Of } from "./components/carousel/parts/CarouselContent.js";
|
|
219
|
+
import { CarouselSlide as Uf, carouselSlide as _f } from "./components/carousel/parts/CarouselSlide.js";
|
|
220
|
+
import { DialogTrigger as Wf, DialogTrigger as qf } from "react-aria-components";
|
|
221
|
+
import { FilterAdapters as Xf } from "./components/filter-toolbar/utils/filter-adapters.js";
|
|
222
|
+
import { useAsyncList as zf } from "react-stately";
|
|
218
223
|
export {
|
|
219
224
|
p as ActionBar,
|
|
220
225
|
x as ActionBarAction,
|
|
@@ -222,9 +227,9 @@ export {
|
|
|
222
227
|
r as Actionable,
|
|
223
228
|
u as Alert,
|
|
224
229
|
c as AlertActions,
|
|
225
|
-
|
|
230
|
+
s as AlertContent,
|
|
226
231
|
S as AlertTitle,
|
|
227
|
-
|
|
232
|
+
F as Anchor,
|
|
228
233
|
P as AppLayout,
|
|
229
234
|
A as AppMenu,
|
|
230
235
|
R as AppMenuContext,
|
|
@@ -244,14 +249,19 @@ export {
|
|
|
244
249
|
ro as Badge,
|
|
245
250
|
po as BottomSheet,
|
|
246
251
|
xo as BottomSheetContent,
|
|
247
|
-
|
|
252
|
+
lo as BottomSheetFooter,
|
|
248
253
|
co as BottomSheetHeader,
|
|
249
|
-
|
|
250
|
-
|
|
254
|
+
Co as Breadcrumb,
|
|
255
|
+
bo as Breadcrumbs,
|
|
251
256
|
Ao as Button,
|
|
252
257
|
Ro as Card,
|
|
253
258
|
Io as CardContent,
|
|
254
259
|
yo as CardTitle,
|
|
260
|
+
yf as Carousel,
|
|
261
|
+
Nf as CarouselContent,
|
|
262
|
+
Lf as CarouselHeader,
|
|
263
|
+
Mf as CarouselNav,
|
|
264
|
+
Uf as CarouselSlide,
|
|
255
265
|
Eo as Checkbox,
|
|
256
266
|
Gx as CheckboxField,
|
|
257
267
|
Do as CheckboxGroup,
|
|
@@ -270,10 +280,10 @@ export {
|
|
|
270
280
|
te as DefinitionTooltip,
|
|
271
281
|
ae as Dialog,
|
|
272
282
|
fe as DialogActions,
|
|
273
|
-
|
|
283
|
+
le as DialogButton,
|
|
274
284
|
ue as DialogContent,
|
|
275
285
|
ce as DialogTitle,
|
|
276
|
-
|
|
286
|
+
Wf as DialogTrigger,
|
|
277
287
|
ye as EmptyState,
|
|
278
288
|
Me as EmptyStateActions,
|
|
279
289
|
De as EmptyStateContent,
|
|
@@ -288,7 +298,7 @@ export {
|
|
|
288
298
|
er as FieldGroup,
|
|
289
299
|
Ze as Fieldset,
|
|
290
300
|
tr as Filter,
|
|
291
|
-
|
|
301
|
+
Xf as FilterAdapters,
|
|
292
302
|
pr as FilterControls,
|
|
293
303
|
ar as FilterLabels,
|
|
294
304
|
nr as FilterToolbar,
|
|
@@ -315,9 +325,9 @@ export {
|
|
|
315
325
|
tt as Grid,
|
|
316
326
|
ft as GridItem,
|
|
317
327
|
gt as Icon,
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
328
|
+
lt as IconButton,
|
|
329
|
+
bt as Input,
|
|
330
|
+
Ct as Label,
|
|
321
331
|
At as ListView,
|
|
322
332
|
Lt as ListViewItemLabel,
|
|
323
333
|
vt as ListViewItemText,
|
|
@@ -338,8 +348,8 @@ export {
|
|
|
338
348
|
up as NavigationCardLabel,
|
|
339
349
|
kf as NoopRouterProvider,
|
|
340
350
|
jx as NumberField,
|
|
341
|
-
|
|
342
|
-
|
|
351
|
+
sp as NumberInput,
|
|
352
|
+
Cp as Page,
|
|
343
353
|
Pp as PageHeader,
|
|
344
354
|
kp as PageHeading,
|
|
345
355
|
wp as Pagination,
|
|
@@ -351,18 +361,18 @@ export {
|
|
|
351
361
|
Zp as PhoneNumberInput,
|
|
352
362
|
oa as Pill,
|
|
353
363
|
ra as Popover,
|
|
354
|
-
|
|
364
|
+
qf as PopoverTrigger,
|
|
355
365
|
pa as ProgressBar,
|
|
356
|
-
|
|
366
|
+
se as PromoDialog,
|
|
357
367
|
ke as PromoDialogActions,
|
|
358
368
|
Be as PromoDialogContent,
|
|
359
|
-
|
|
369
|
+
Ce as PromoDialogHero,
|
|
360
370
|
Te as PromoDialogSubtitle,
|
|
361
371
|
we as PromoDialogTitle,
|
|
362
372
|
fa as RadioButton,
|
|
363
373
|
ma as RadioButtonGroup,
|
|
364
374
|
Yx as RadioButtonGroupField,
|
|
365
|
-
|
|
375
|
+
ia as RadioButtonHelper,
|
|
366
376
|
Po as RawBreadcrumbLink,
|
|
367
377
|
Ex as RawFormContextualLink,
|
|
368
378
|
Tt as RawLink,
|
|
@@ -378,7 +388,7 @@ export {
|
|
|
378
388
|
zm as RawTask,
|
|
379
389
|
Rf as RouterProvider,
|
|
380
390
|
da as Search,
|
|
381
|
-
|
|
391
|
+
sa as SegmentedButtonGroup,
|
|
382
392
|
va as Select,
|
|
383
393
|
Ea as SelectButton,
|
|
384
394
|
af as SelectField,
|
|
@@ -386,7 +396,7 @@ export {
|
|
|
386
396
|
Va as SelectOptionGroup,
|
|
387
397
|
_a as SelectOptionHelper,
|
|
388
398
|
Ba as SelectableButton,
|
|
389
|
-
|
|
399
|
+
Fa as SelectableButtonGroup,
|
|
390
400
|
$x as SelectableButtonGroupField,
|
|
391
401
|
Ga as SelectableCardCheckbox,
|
|
392
402
|
Ra as SelectableCardCheckboxGroup,
|
|
@@ -402,16 +412,16 @@ export {
|
|
|
402
412
|
tm as SkipLinks,
|
|
403
413
|
am as Spinner,
|
|
404
414
|
dr as Stack,
|
|
405
|
-
|
|
415
|
+
Cr as StackItem,
|
|
406
416
|
xx as TOAST_CONFIG,
|
|
407
417
|
Om as TabList,
|
|
408
418
|
Um as TabPanel,
|
|
409
419
|
xm as Table,
|
|
410
|
-
|
|
420
|
+
lm as TableBody,
|
|
411
421
|
dm as TableCell,
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
422
|
+
sm as TableColumnHeader,
|
|
423
|
+
Cm as TableEmptyState,
|
|
424
|
+
Fm as TableEmptyStateError,
|
|
415
425
|
Tm as TableEmptyStateLoading,
|
|
416
426
|
Pm as TableEmptyStateNoData,
|
|
417
427
|
Bm as TableEmptyStateText,
|
|
@@ -433,14 +443,19 @@ export {
|
|
|
433
443
|
uf as ToggleSwitchGroupField,
|
|
434
444
|
Sx as Tooltip,
|
|
435
445
|
a as actionBar,
|
|
436
|
-
|
|
446
|
+
l as actionBarRoot,
|
|
437
447
|
O as autocompleteItem,
|
|
438
448
|
_ as autocompleteItemGroup,
|
|
439
449
|
ao as bottomSheet,
|
|
440
450
|
fo as bottomSheetContent,
|
|
441
|
-
|
|
451
|
+
io as bottomSheetFooter,
|
|
442
452
|
go as bottomSheetHeader,
|
|
443
453
|
wo as card,
|
|
454
|
+
hf as carousel,
|
|
455
|
+
Of as carouselContent,
|
|
456
|
+
Df as carouselHeader,
|
|
457
|
+
Ef as carouselNav,
|
|
458
|
+
_f as carouselSlide,
|
|
444
459
|
vo as checkboxGroup,
|
|
445
460
|
dt as circularIconButton,
|
|
446
461
|
zo as dataTableRoot,
|
|
@@ -450,9 +465,9 @@ export {
|
|
|
450
465
|
$e as fieldset,
|
|
451
466
|
mr as filterContainer,
|
|
452
467
|
xr as filterDismissButton,
|
|
453
|
-
|
|
468
|
+
lr as filterToolbar,
|
|
454
469
|
gr as flex,
|
|
455
|
-
|
|
470
|
+
sr as flexItem,
|
|
456
471
|
Ar as fullPageLoader,
|
|
457
472
|
hr as funnelBody,
|
|
458
473
|
wr as funnelLayout,
|
|
@@ -470,15 +485,15 @@ export {
|
|
|
470
485
|
wt as listViewItem,
|
|
471
486
|
ht as listViewSection,
|
|
472
487
|
ap as navItemBase,
|
|
473
|
-
|
|
488
|
+
lp as navigationCardGroup,
|
|
474
489
|
zx as numberField,
|
|
475
|
-
|
|
476
|
-
|
|
490
|
+
bp as numberInput,
|
|
491
|
+
Fp as page,
|
|
477
492
|
Bp as pageHeader,
|
|
478
493
|
Gp as pagination,
|
|
479
494
|
Ip as paginationContent,
|
|
480
495
|
Ep as paginationLink,
|
|
481
|
-
|
|
496
|
+
be as promoDialog,
|
|
482
497
|
na as radioButton,
|
|
483
498
|
Xm as rawSubTask,
|
|
484
499
|
Km as rawTask,
|
|
@@ -489,9 +504,9 @@ export {
|
|
|
489
504
|
ja as sidePanelContent,
|
|
490
505
|
Ya as sidePanelFooter,
|
|
491
506
|
om as sidePanelHeader,
|
|
492
|
-
|
|
507
|
+
im as tableBody,
|
|
493
508
|
cm as tableCell,
|
|
494
|
-
|
|
509
|
+
bm as tableColumnHeader,
|
|
495
510
|
Am as tableEmptyState,
|
|
496
511
|
wm as tableHeader,
|
|
497
512
|
hm as tablePagination,
|
|
@@ -499,16 +514,16 @@ export {
|
|
|
499
514
|
Wm as taskMenu,
|
|
500
515
|
ax as text,
|
|
501
516
|
ex as textArea,
|
|
502
|
-
|
|
503
|
-
|
|
517
|
+
lx as toast,
|
|
518
|
+
sx as toggleSwitch,
|
|
504
519
|
dx as toggleSwitchGroup,
|
|
505
520
|
G as useAppMenuContext,
|
|
506
|
-
|
|
507
|
-
|
|
521
|
+
zf as useAsyncList,
|
|
522
|
+
Fx as useBreakpointListener,
|
|
508
523
|
Px as useContainerQueryLevel,
|
|
509
524
|
Tf as useFieldA11yContext,
|
|
510
525
|
Sf as useFieldContext,
|
|
511
|
-
|
|
526
|
+
Cf as useFormContext,
|
|
512
527
|
Ax as useMediaQuery,
|
|
513
528
|
Jp as usePaginationState,
|
|
514
529
|
Wp as usePaginationWindow,
|
|
@@ -516,5 +531,5 @@ export {
|
|
|
516
531
|
cf as useTanstackUnityForm,
|
|
517
532
|
Rx as useUnityForm,
|
|
518
533
|
gf as withFieldGroup,
|
|
519
|
-
|
|
534
|
+
sf as withForm
|
|
520
535
|
};
|
|
@@ -51,5 +51,5 @@ export interface FieldRevalidateLogicProps {
|
|
|
51
51
|
* </form.AppField>
|
|
52
52
|
* ```
|
|
53
53
|
*/
|
|
54
|
-
export declare const fieldRevalidateLogic: (
|
|
54
|
+
export declare const fieldRevalidateLogic: (config: FieldRevalidateLogicProps) => ValidationLogicFn;
|
|
55
55
|
export {};
|
|
@@ -1,31 +1,29 @@
|
|
|
1
1
|
import { defaultValidationLogic as l } from "@tanstack/form-core";
|
|
2
|
-
const
|
|
2
|
+
const v = {
|
|
3
3
|
change: ["change", "blur", "submit"],
|
|
4
4
|
blur: ["blur", "submit"],
|
|
5
5
|
submit: ["submit"]
|
|
6
|
-
},
|
|
7
|
-
whenPristine:
|
|
8
|
-
|
|
9
|
-
}) => {
|
|
10
|
-
let n = !1;
|
|
6
|
+
}, b = (n) => {
|
|
7
|
+
const { whenPristine: s = "blur", whenDirty: d = "change" } = n;
|
|
8
|
+
let r = !1;
|
|
11
9
|
return (a) => {
|
|
12
10
|
if (Object.keys(a.validators ?? {}).length === 0)
|
|
13
11
|
return a.runValidation({ validators: [], form: a.form });
|
|
14
12
|
const e = a.event.async ? a.validators?.onDynamicAsync : a.validators?.onDynamic;
|
|
15
13
|
if (!e)
|
|
16
14
|
return l(a);
|
|
17
|
-
a.event.type === "blur" && (
|
|
15
|
+
a.event.type === "blur" && (r = !0);
|
|
18
16
|
const o = {
|
|
19
17
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- TanStack FormValidators properties are typed as `any`
|
|
20
18
|
fn: e,
|
|
21
19
|
cause: "dynamic"
|
|
22
|
-
}, u =
|
|
23
|
-
|
|
20
|
+
}, u = r ? d : s, t = [];
|
|
21
|
+
v[u].includes(a.event.type) && t.push(o);
|
|
24
22
|
let i = [];
|
|
25
23
|
return l({
|
|
26
24
|
...a,
|
|
27
|
-
runValidation: (
|
|
28
|
-
i =
|
|
25
|
+
runValidation: (m) => {
|
|
26
|
+
i = m.validators;
|
|
29
27
|
}
|
|
30
28
|
}), t.length === 0 ? a.runValidation({
|
|
31
29
|
validators: i,
|
|
@@ -37,5 +35,5 @@ const m = {
|
|
|
37
35
|
};
|
|
38
36
|
};
|
|
39
37
|
export {
|
|
40
|
-
|
|
38
|
+
b as fieldRevalidateLogic
|
|
41
39
|
};
|
package/i18n/en-GB.json
CHANGED
|
@@ -21,6 +21,19 @@
|
|
|
21
21
|
"unity:component:autocomplete:placeholder": "Search",
|
|
22
22
|
"unity:component:autocomplete:panel:empty:label": "No results found",
|
|
23
23
|
"unity:component:autocomplete:panel:loading:label": "Loading results",
|
|
24
|
+
"unity:component:carousel:header:actions:label": "{title} actions",
|
|
25
|
+
"unity:component:carousel:nav:next:label": "Go to next slide",
|
|
26
|
+
"unity:component:carousel:nav:previous:label": "Go to previous slide",
|
|
27
|
+
"unity:component:carousel:nav:toolbar-label": "Carousel navigation",
|
|
28
|
+
"unity:component:carousel:roledescription": "carousel",
|
|
29
|
+
"unity:component:carousel:slide:roledescription": "slide",
|
|
30
|
+
"unity:component:carousel:a11y:carousel:label": "Carousel",
|
|
31
|
+
"unity:component:carousel:a11y:slide:label:single": "Slide {slide} of {totalSlides}",
|
|
32
|
+
"unity:component:carousel:a11y:slide:label:group-single": "Slide {slide} of {totalSlides} (group {snap} of {totalSnaps})",
|
|
33
|
+
"unity:component:carousel:a11y:slide:label:group-multiple": "Slides {slide}-{lastSlide} of {totalSlides} (group {snap} of {totalSnaps})",
|
|
34
|
+
"unity:component:carousel:a11y:live-region:single": "Showing slide {slide} of {totalSlides}",
|
|
35
|
+
"unity:component:carousel:a11y:live-region:group-single": "Showing slide {slide} of {totalSlides} (group {snap} of {totalSnaps})",
|
|
36
|
+
"unity:component:carousel:a11y:live-region:group-multiple": "Showing slides {slide}-{lastSlide} of {totalSlides} (group {snap} of {totalSnaps})",
|
|
24
37
|
"unity:component:dialog:actions:label": "Dialog Actions",
|
|
25
38
|
"unity:component:empty-state:get-started:title": "Get started",
|
|
26
39
|
"unity:component:empty-state:get-started:button-label": "Create item",
|
package/i18n/es-ES.json
CHANGED
|
@@ -21,6 +21,19 @@
|
|
|
21
21
|
"unity:component:autocomplete:placeholder": "Buscar",
|
|
22
22
|
"unity:component:autocomplete:panel:empty:label": "No se encontraron resultados",
|
|
23
23
|
"unity:component:autocomplete:panel:loading:label": "Cargando resultados",
|
|
24
|
+
"unity:component:carousel:header:actions:label": "Acciones de {title}",
|
|
25
|
+
"unity:component:carousel:nav:next:label": "Ir a la diapositiva siguiente",
|
|
26
|
+
"unity:component:carousel:nav:previous:label": "Ir a la diapositiva anterior",
|
|
27
|
+
"unity:component:carousel:nav:toolbar-label": "Navegación del carrusel",
|
|
28
|
+
"unity:component:carousel:roledescription": "carrusel",
|
|
29
|
+
"unity:component:carousel:slide:roledescription": "diapositiva",
|
|
30
|
+
"unity:component:carousel:a11y:carousel:label": "Carrusel",
|
|
31
|
+
"unity:component:carousel:a11y:slide:label:single": "Diapositiva {slide} de {totalSlides}",
|
|
32
|
+
"unity:component:carousel:a11y:slide:label:group-single": "Diapositiva {slide} de {totalSlides} (grupo {snap} de {totalSnaps})",
|
|
33
|
+
"unity:component:carousel:a11y:slide:label:group-multiple": "Diapositivas {slide}-{lastSlide} de {totalSlides} (grupo {snap} de {totalSnaps})",
|
|
34
|
+
"unity:component:carousel:a11y:live-region:single": "Mostrando diapositiva {slide} de {totalSlides}",
|
|
35
|
+
"unity:component:carousel:a11y:live-region:group-single": "Mostrando diapositiva {slide} de {totalSlides} (grupo {snap} de {totalSnaps})",
|
|
36
|
+
"unity:component:carousel:a11y:live-region:group-multiple": "Mostrando diapositivas {slide}-{lastSlide} de {totalSlides} (grupo {snap} de {totalSnaps})",
|
|
24
37
|
"unity:component:dialog:actions:label": "Acciones del diálogo",
|
|
25
38
|
"unity:component:empty-state:get-started:title": "Empezar",
|
|
26
39
|
"unity:component:empty-state:get-started:button-label": "Crear elemento",
|
package/i18n/fr-FR.json
CHANGED
|
@@ -21,6 +21,19 @@
|
|
|
21
21
|
"unity:component:autocomplete:placeholder": "Rechercher",
|
|
22
22
|
"unity:component:autocomplete:panel:empty:label": "Aucun résultat",
|
|
23
23
|
"unity:component:autocomplete:panel:loading:label": "Chargement des résultats",
|
|
24
|
+
"unity:component:carousel:header:actions:label": "Actions {title}",
|
|
25
|
+
"unity:component:carousel:nav:next:label": "Diapositive suivante",
|
|
26
|
+
"unity:component:carousel:nav:previous:label": "Diapositive précédente",
|
|
27
|
+
"unity:component:carousel:nav:toolbar-label": "Navigation du carrousel",
|
|
28
|
+
"unity:component:carousel:roledescription": "carrousel",
|
|
29
|
+
"unity:component:carousel:slide:roledescription": "diapositive",
|
|
30
|
+
"unity:component:carousel:a11y:carousel:label": "Carrousel",
|
|
31
|
+
"unity:component:carousel:a11y:slide:label:single": "Diapositive {slide} sur {totalSlides}",
|
|
32
|
+
"unity:component:carousel:a11y:slide:label:group-single": "Diapositive {slide} sur {totalSlides} (groupe {snap} sur {totalSnaps})",
|
|
33
|
+
"unity:component:carousel:a11y:slide:label:group-multiple": "Diapositives {slide}-{lastSlide} sur {totalSlides} (groupe {snap} sur {totalSnaps})",
|
|
34
|
+
"unity:component:carousel:a11y:live-region:single": "Affichage de la diapositive {slide} sur {totalSlides}",
|
|
35
|
+
"unity:component:carousel:a11y:live-region:group-single": "Affichage de la diapositive {slide} sur {totalSlides} (groupe {snap} sur {totalSnaps})",
|
|
36
|
+
"unity:component:carousel:a11y:live-region:group-multiple": "Affichage des diapositives {slide}-{lastSlide} sur {totalSlides} (groupe {snap} sur {totalSnaps})",
|
|
24
37
|
"unity:component:dialog:actions:label": "Actions du dialogue",
|
|
25
38
|
"unity:component:empty-state:get-started:title": "Commencer",
|
|
26
39
|
"unity:component:empty-state:get-started:button-label": "Créer un élément",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@payfit/unity-components",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.9",
|
|
4
4
|
"module": "./dist/esm/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -42,17 +42,20 @@
|
|
|
42
42
|
"@hookform/devtools": "4.4.0",
|
|
43
43
|
"@hookform/resolvers": "5.2.1",
|
|
44
44
|
"@internationalized/date": "3.11.0",
|
|
45
|
-
"@payfit/unity-illustrations": "2.9.
|
|
45
|
+
"@payfit/unity-illustrations": "2.9.9",
|
|
46
46
|
"@radix-ui/react-avatar": "1.1.11",
|
|
47
47
|
"@radix-ui/react-slot": "1.2.4",
|
|
48
48
|
"@react-aria/interactions": "3.27.0",
|
|
49
49
|
"@react-aria/utils": "3.33.0",
|
|
50
50
|
"@react-types/shared": "3.26.0",
|
|
51
51
|
"@standard-schema/spec": "1.1.0",
|
|
52
|
-
"@tanstack/form-core": "1.28.
|
|
53
|
-
"@tanstack/react-form": "1.28.
|
|
52
|
+
"@tanstack/form-core": "1.28.3",
|
|
53
|
+
"@tanstack/react-form": "1.28.3",
|
|
54
54
|
"@tanstack/react-virtual": "3.13.18",
|
|
55
55
|
"@use-gesture/react": "10.3.1",
|
|
56
|
+
"embla-carousel": "9.0.0-rc01",
|
|
57
|
+
"embla-carousel-accessibility": "9.0.0-rc01",
|
|
58
|
+
"embla-carousel-react": "9.0.0-rc01",
|
|
56
59
|
"prettier": "3.1.0",
|
|
57
60
|
"react": "18.3.1",
|
|
58
61
|
"react-aria": "3.46.0",
|
|
@@ -71,8 +74,8 @@
|
|
|
71
74
|
},
|
|
72
75
|
"peerDependencies": {
|
|
73
76
|
"@hookform/devtools": "^4",
|
|
74
|
-
"@payfit/unity-icons": "2.9.
|
|
75
|
-
"@payfit/unity-themes": "2.9.
|
|
77
|
+
"@payfit/unity-icons": "2.9.9",
|
|
78
|
+
"@payfit/unity-themes": "2.9.9",
|
|
76
79
|
"@storybook/react-vite": "^10.2.2",
|
|
77
80
|
"@tanstack/react-query": "^5",
|
|
78
81
|
"@tanstack/react-router": "^1.131",
|
|
@@ -91,9 +94,9 @@
|
|
|
91
94
|
"@payfit/hr-apps-tsconfigs": "0.0.0-use.local",
|
|
92
95
|
"@payfit/storybook-addon-console-errors": "0.0.0-use.local",
|
|
93
96
|
"@payfit/storybook-config": "0.0.0-use.local",
|
|
94
|
-
"@payfit/unity-icons": "2.9.
|
|
95
|
-
"@payfit/unity-illustrations": "2.9.
|
|
96
|
-
"@payfit/unity-themes": "2.9.
|
|
97
|
+
"@payfit/unity-icons": "2.9.9",
|
|
98
|
+
"@payfit/unity-illustrations": "2.9.9",
|
|
99
|
+
"@payfit/unity-themes": "2.9.9",
|
|
97
100
|
"@payfit/vite-configs": "0.0.0-use.local",
|
|
98
101
|
"@storybook/addon-a11y": "10.2.10",
|
|
99
102
|
"@storybook/addon-docs": "10.2.10",
|
|
@@ -101,7 +104,7 @@
|
|
|
101
104
|
"@storybook/addon-vitest": "10.2.10",
|
|
102
105
|
"@storybook/react-vite": "10.2.10",
|
|
103
106
|
"@tanstack/react-devtools": "0.9.6",
|
|
104
|
-
"@tanstack/react-form-devtools": "0.2.
|
|
107
|
+
"@tanstack/react-form-devtools": "0.2.16",
|
|
105
108
|
"@tanstack/react-query": "5.90.21",
|
|
106
109
|
"@tanstack/react-router": "1.159.5",
|
|
107
110
|
"@tanstack/react-router-devtools": "1.159.5",
|