@payfit/unity-components 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/adapters/standardSchemaAdapter.d.ts +7 -0
- package/dist/esm/adapters/standardSchemaAdapter.js +20 -0
- package/dist/esm/adapters/zodAdapter.d.ts +13 -0
- package/dist/esm/adapters/zodAdapter.js +74 -0
- package/dist/esm/components/action-bar/ActionBar.js +62 -64
- package/dist/esm/components/actionable/Actionable.d.ts +50 -3
- package/dist/esm/components/actionable/Actionable.js +49 -39
- package/dist/esm/components/app-menu/parts/AppMenuFooter.js +63 -63
- package/dist/esm/components/autocomplete/parts/AutocompleteClearButton.js +5 -5
- package/dist/esm/components/bottom-sheet/parts/BottomSheetDragIndicator.js +30 -31
- package/dist/esm/components/checkbox-field/CheckboxField.d.ts +2 -2
- package/dist/esm/components/checkbox-field/CheckboxField.js +18 -17
- package/dist/esm/components/checkbox-group-field/CheckboxGroupField.d.ts +2 -2
- package/dist/esm/components/checkbox-group-field/CheckboxGroupField.js +4 -1
- package/dist/esm/components/code/Code.d.ts +37 -0
- package/dist/esm/components/code/Code.js +39 -0
- package/dist/esm/components/code/copyToClipboard.d.ts +1 -0
- package/dist/esm/components/code/copyToClipboard.js +10 -0
- package/dist/esm/components/collapsible/Collapsible.d.ts +1 -1
- package/dist/esm/components/collapsible/Collapsible.js +14 -13
- package/dist/esm/components/collapsible/parts/CollapsibleTitle.js +7 -7
- package/dist/esm/components/data-table/DataTable.d.ts +76 -10
- package/dist/esm/components/data-table/DataTable.js +81 -78
- package/dist/esm/components/data-table/parts/ColumnSortHeader.js +13 -13
- package/dist/esm/components/data-table/parts/DataTableBulkActions.js +20 -20
- package/dist/esm/components/date-calendar/DateCalendar.js +52 -52
- package/dist/esm/components/date-calendar/parts/DateSegmentSelect.js +30 -33
- package/dist/esm/components/date-picker/DatePicker.js +64 -64
- package/dist/esm/components/date-picker/parts/DateInput.js +33 -33
- package/dist/esm/components/date-picker-field/DatePickerField.d.ts +2 -2
- package/dist/esm/components/dialog/parts/DialogActions/DialogButton.js +12 -12
- package/dist/esm/components/error-state/ErrorState.d.ts +196 -0
- package/dist/esm/components/error-state/ErrorState.js +153 -0
- package/dist/esm/components/error-state/initConfig.d.ts +16 -0
- package/dist/esm/components/error-state/initConfig.js +149 -0
- package/dist/esm/components/error-state/parts/Collapsible.d.ts +59 -0
- package/dist/esm/components/error-state/parts/Collapsible.js +67 -0
- package/dist/esm/components/form/Form.d.ts +15 -9
- package/dist/esm/components/form/Form.js +53 -50
- package/dist/esm/components/form-field/FormField.js +24 -23
- package/dist/esm/components/form-field/utils/isFieldRequired.d.ts +4 -4
- package/dist/esm/components/form-field/utils/isFieldRequired.js +5 -20
- package/dist/esm/components/funnel-layout/FunnelLayout.d.ts +1 -1
- package/dist/esm/components/funnel-layout/FunnelLayout.js +61 -110
- package/dist/esm/components/funnel-layout/parts/FunnelPage.js +8 -9
- package/dist/esm/components/funnel-layout/parts/FunnelPageActions.js +24 -24
- package/dist/esm/components/funnel-layout/parts/FunnelPageFooter.js +6 -7
- package/dist/esm/components/funnel-layout/parts/FunnelPageHeader.d.ts +2 -2
- package/dist/esm/components/funnel-layout/parts/FunnelSidebar.d.ts +2 -2
- package/dist/esm/components/funnel-layout/parts/FunnelSidebar.js +9 -10
- package/dist/esm/components/funnel-layout/parts/FunnelTopBar.js +0 -1
- package/dist/esm/components/input/Input.js +28 -28
- package/dist/esm/components/label/Label.js +19 -19
- package/dist/esm/components/multi-select/MultiSelect.js +94 -94
- package/dist/esm/components/multi-select/hooks/use-multiselection-state.js +32 -32
- package/dist/esm/components/multi-select/parts/MultiSelectButton.js +38 -38
- package/dist/esm/components/multi-select/parts/MultiSelectPopover.js +16 -16
- package/dist/esm/components/multi-select-field/MultiSelectField.d.ts +2 -2
- package/dist/esm/components/multi-select-field/MultiSelectField.js +53 -53
- package/dist/esm/components/nav/parts/NavGroup.js +21 -21
- package/dist/esm/components/number-field/NumberField.d.ts +3 -3
- package/dist/esm/components/number-input/NumberInput.js +58 -58
- package/dist/esm/components/pagination/Pagination.js +97 -101
- package/dist/esm/components/pagination/parts/PaginationJumpDialog.js +39 -40
- package/dist/esm/components/popover/parts/PopoverHeader.js +8 -8
- package/dist/esm/components/radio-button-group/parts/RadioButton.js +11 -11
- package/dist/esm/components/select-field/SelectField.d.ts +2 -2
- package/dist/esm/components/select-field/SelectField.js +4 -1
- package/dist/esm/components/selectable-button-group/SelectableButtonGroup.js +22 -23
- package/dist/esm/components/selectable-button-group-field/SelectableButtonGroupField.d.ts +2 -2
- package/dist/esm/components/side-panel/parts/SidePanelDragIndicator.js +30 -31
- package/dist/esm/components/skip-links/SkipLinks.js +50 -43
- package/dist/esm/components/table/Table.js +79 -76
- package/dist/esm/components/table/parts/TableBody.js +6 -6
- package/dist/esm/components/table/parts/TableCell.js +25 -25
- package/dist/esm/components/table/parts/TableColumnHeader.js +38 -38
- package/dist/esm/components/table/parts/TablePagination.js +61 -59
- package/dist/esm/components/table/parts/TableRow.js +16 -16
- package/dist/esm/components/tabs/parts/TabList.js +50 -54
- package/dist/esm/components/task-menu/parts/Content.js +24 -24
- package/dist/esm/components/task-menu/parts/Header.js +24 -24
- package/dist/esm/components/task-menu/parts/SubTask.js +74 -74
- package/dist/esm/components/task-menu/parts/Task.js +69 -69
- package/dist/esm/components/task-menu/parts/TaskGroup.js +45 -45
- package/dist/esm/components/text-area/TextArea.js +30 -31
- package/dist/esm/components/text-field/TextField.d.ts +2 -2
- package/dist/esm/components/toggle-switch-field/ToggleSwitchField.d.ts +2 -2
- package/dist/esm/components/toggle-switch-field/ToggleSwitchField.js +4 -1
- package/dist/esm/components/toggle-switch-group/ToggleSwitchGroup.js +74 -74
- package/dist/esm/components/toggle-switch-group-field/ToggleSwitchGroupField.d.ts +2 -2
- package/dist/esm/components/toggle-switch-group-field/ToggleSwitchGroupField.js +36 -32
- package/dist/esm/hooks/use-form.d.ts +5 -5
- package/dist/esm/hooks/use-form.types.d.ts +2 -2
- package/dist/esm/hooks/use-resizable.js +13 -14
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +22 -19
- package/dist/esm/types/schema.d.ts +8 -0
- package/dist/esm/utils/createSchemaAdapter.d.ts +7 -0
- package/dist/esm/utils/createSchemaAdapter.js +13 -0
- package/dist/esm/utils/platform.js +2 -3
- package/i18n/en-GB.json +16 -0
- package/i18n/es-ES.json +16 -0
- package/i18n/fr-FR.json +16 -0
- package/package.json +25 -19
package/dist/esm/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import { Autocomplete as M } from "./components/autocomplete/Autocomplete.js";
|
|
|
14
14
|
import { AutocompleteItem as y, autocompleteItem as H } from "./components/autocomplete/parts/AutocompleteItem.js";
|
|
15
15
|
import { AutocompleteItemGroup as D, autocompleteItemGroup as L } from "./components/autocomplete/parts/AutocompleteItemGroup.js";
|
|
16
16
|
import { Avatar as w } from "./components/avatar/Avatar.js";
|
|
17
|
-
import { AvatarFallback as
|
|
17
|
+
import { AvatarFallback as N } from "./components/avatar/parts/AvatarFallback.js";
|
|
18
18
|
import { AvatarImage as Q } from "./components/avatar/parts/AvatarImage.js";
|
|
19
19
|
import { AvatarPair as _ } from "./components/avatar/parts/AvatarPair.js";
|
|
20
20
|
import { getInitials as q } from "./components/avatar/utils.js";
|
|
@@ -37,7 +37,7 @@ import { CollapsibleTitle as Mo } from "./components/collapsible/parts/Collapsib
|
|
|
37
37
|
import { DataTable as yo } from "./components/data-table/DataTable.js";
|
|
38
38
|
import { DataTableRoot as Ro, dataTableRoot as Do } from "./components/data-table/parts/DataTableRoot.js";
|
|
39
39
|
import { DataTableBulkActions as vo } from "./components/data-table/parts/DataTableBulkActions.js";
|
|
40
|
-
import { DateCalendar as
|
|
40
|
+
import { DateCalendar as Eo } from "./components/date-calendar/DateCalendar.js";
|
|
41
41
|
import { DatePickerField as Oo } from "./components/date-picker-field/DatePickerField.js";
|
|
42
42
|
import { DatePicker as Uo } from "./components/date-picker/DatePicker.js";
|
|
43
43
|
import { DefinitionTooltip as jo } from "./components/definition-tooltip/DefinitionTooltip.js";
|
|
@@ -60,7 +60,7 @@ import { FormLabel as he } from "./components/form-field/parts/FormLabel.js";
|
|
|
60
60
|
import { Form as Me } from "./components/form/Form.js";
|
|
61
61
|
import { FullPageLoader as ye, fullPageLoader as He } from "./components/full-page-loader/FullPageLoader.js";
|
|
62
62
|
import { FunnelLayout as De, funnelLayout as Le } from "./components/funnel-layout/FunnelLayout.js";
|
|
63
|
-
import { FunnelBody as we, funnelBody as
|
|
63
|
+
import { FunnelBody as we, funnelBody as Ee } from "./components/funnel-layout/parts/FunnelBody.js";
|
|
64
64
|
import { FunnelPage as Oe, funnelPage as Qe } from "./components/funnel-layout/parts/FunnelPage.js";
|
|
65
65
|
import { FunnelPageAction as _e } from "./components/funnel-layout/parts/FunnelPageAction.js";
|
|
66
66
|
import { FunnelPageActions as qe, funnelPageActions as ze } from "./components/funnel-layout/parts/FunnelPageActions.js";
|
|
@@ -83,7 +83,7 @@ import { MenuHeader as Ir } from "./components/menu/parts/MenuHeader.js";
|
|
|
83
83
|
import { MenuItem as Hr } from "./components/menu/parts/MenuItem.js";
|
|
84
84
|
import { MenuSeparator as Dr } from "./components/menu/parts/MenuSeparator.js";
|
|
85
85
|
import { MenuTrigger as vr } from "./components/menu/parts/MenuTrigger.js";
|
|
86
|
-
import { MultiSelectField as
|
|
86
|
+
import { MultiSelectField as Er } from "./components/multi-select-field/MultiSelectField.js";
|
|
87
87
|
import { MultiSelect as Or } from "./components/multi-select/MultiSelect.js";
|
|
88
88
|
import { MultiSelectOptGroup as Ur } from "./components/multi-select/parts/MultiSelectOptGroup.js";
|
|
89
89
|
import { MultiSelectOption as jr } from "./components/multi-select/parts/MultiSelectOption.js";
|
|
@@ -106,7 +106,7 @@ import { RadioButtonGroup as Gt } from "./components/radio-button-group/RadioBut
|
|
|
106
106
|
import { RadioButton as It, radioButton as yt } from "./components/radio-button-group/parts/RadioButton.js";
|
|
107
107
|
import { RadioButtonHelper as Rt } from "./components/radio-button-group/parts/RadioButtonHelper.js";
|
|
108
108
|
import { Search as Lt, search as vt } from "./components/search/Search.js";
|
|
109
|
-
import { SegmentedButtonGroup as
|
|
109
|
+
import { SegmentedButtonGroup as Et } from "./components/segmented-button-group/SegmentedButtonGroup.js";
|
|
110
110
|
import { ToggleButton as Ot } from "./components/segmented-button-group/parts/ToggleButton.js";
|
|
111
111
|
import { SelectableButtonGroupField as Ut } from "./components/selectable-button-group-field/SelectableButtonGroupField.js";
|
|
112
112
|
import { SelectableButtonGroup as jt, selectableButtonGroup as qt } from "./components/selectable-button-group/SelectableButtonGroup.js";
|
|
@@ -129,7 +129,7 @@ import { SidePanelFooter as kp, sidePanelFooter as hp } from "./components/side-
|
|
|
129
129
|
import { SidePanelHeader as Mp, sidePanelHeader as Ip } from "./components/side-panel/parts/SidePanelHeader.js";
|
|
130
130
|
import { SkipLink as Hp, SkipLinks as Rp } from "./components/skip-links/SkipLinks.js";
|
|
131
131
|
import { Spinner as Lp } from "./components/spinner/Spinner.js";
|
|
132
|
-
import { Table as wp, TableRoot as
|
|
132
|
+
import { Table as wp, TableRoot as Ep } from "./components/table/Table.js";
|
|
133
133
|
import { TableBody as Op, tableBody as Qp } from "./components/table/parts/TableBody.js";
|
|
134
134
|
import { TableCell as _p, tableCell as jp } from "./components/table/parts/TableCell.js";
|
|
135
135
|
import { TableColumnHeader as zp, tableColumnHeader as Jp } from "./components/table/parts/TableColumnHeader.js";
|
|
@@ -149,7 +149,7 @@ import { TextArea as Im, textArea as ym } from "./components/text-area/TextArea.
|
|
|
149
149
|
import { TextField as Rm } from "./components/text-field/TextField.js";
|
|
150
150
|
import { Text as Lm } from "./components/text/Text.js";
|
|
151
151
|
import { text as wm } from "./components/text/Text.variants.js";
|
|
152
|
-
import { TOAST_CONFIG as
|
|
152
|
+
import { TOAST_CONFIG as Nm, ToastManager as Om } from "./components/toast/ToastManager.js";
|
|
153
153
|
import { toast as Um } from "./components/toast/toast.js";
|
|
154
154
|
import { ToggleSwitchField as jm } from "./components/toggle-switch-field/ToggleSwitchField.js";
|
|
155
155
|
import { ToggleSwitchGroupField as zm } from "./components/toggle-switch-group-field/ToggleSwitchGroupField.js";
|
|
@@ -163,8 +163,9 @@ import { RouterProvider as xa, useRouter as fa } from "./providers/router/Router
|
|
|
163
163
|
import { ActionBar as na, actionBar as ia } from "./components/action-bar/ActionBar.js";
|
|
164
164
|
import { ActionBarAction as da } from "./components/action-bar/parts/ActionBarAction.js";
|
|
165
165
|
import { ActionBarRoot as ca, actionBarRoot as ga } from "./components/action-bar/parts/ActionBarRoot.js";
|
|
166
|
-
import {
|
|
167
|
-
import {
|
|
166
|
+
import { ErrorState as Ta, errorState as Fa } from "./components/error-state/ErrorState.js";
|
|
167
|
+
import { DialogTrigger as Ba, DialogTrigger as Pa } from "react-aria-components";
|
|
168
|
+
import { useAsyncList as Aa } from "react-stately";
|
|
168
169
|
export {
|
|
169
170
|
na as ActionBar,
|
|
170
171
|
da as ActionBarAction,
|
|
@@ -186,7 +187,7 @@ export {
|
|
|
186
187
|
y as AutocompleteItem,
|
|
187
188
|
D as AutocompleteItemGroup,
|
|
188
189
|
w as Avatar,
|
|
189
|
-
|
|
190
|
+
N as AvatarFallback,
|
|
190
191
|
Q as AvatarImage,
|
|
191
192
|
_ as AvatarPair,
|
|
192
193
|
J as Badge,
|
|
@@ -208,7 +209,7 @@ export {
|
|
|
208
209
|
yo as DataTable,
|
|
209
210
|
vo as DataTableBulkActions,
|
|
210
211
|
Ro as DataTableRoot,
|
|
211
|
-
|
|
212
|
+
Eo as DateCalendar,
|
|
212
213
|
Uo as DatePicker,
|
|
213
214
|
Oo as DatePickerField,
|
|
214
215
|
jo as DefinitionTooltip,
|
|
@@ -217,7 +218,8 @@ export {
|
|
|
217
218
|
Xo as DialogButton,
|
|
218
219
|
Zo as DialogContent,
|
|
219
220
|
oe as DialogTitle,
|
|
220
|
-
|
|
221
|
+
Ba as DialogTrigger,
|
|
222
|
+
Ta as ErrorState,
|
|
221
223
|
me as FieldGroup,
|
|
222
224
|
re as Fieldset,
|
|
223
225
|
xe as Flex,
|
|
@@ -254,7 +256,7 @@ export {
|
|
|
254
256
|
Dr as MenuSeparator,
|
|
255
257
|
vr as MenuTrigger,
|
|
256
258
|
Or as MultiSelect,
|
|
257
|
-
|
|
259
|
+
Er as MultiSelectField,
|
|
258
260
|
Ur as MultiSelectOptGroup,
|
|
259
261
|
jr as MultiSelectOption,
|
|
260
262
|
zr as Nav,
|
|
@@ -270,7 +272,7 @@ export {
|
|
|
270
272
|
St as PayFitBrandPreprod,
|
|
271
273
|
Ft as Pill,
|
|
272
274
|
Bt as Popover,
|
|
273
|
-
|
|
275
|
+
Pa as PopoverTrigger,
|
|
274
276
|
Ct as ProgressBar,
|
|
275
277
|
It as RadioButton,
|
|
276
278
|
Gt as RadioButtonGroup,
|
|
@@ -278,7 +280,7 @@ export {
|
|
|
278
280
|
Rt as RadioButtonHelper,
|
|
279
281
|
xa as RouterProvider,
|
|
280
282
|
Lt as Search,
|
|
281
|
-
|
|
283
|
+
Et as SegmentedButtonGroup,
|
|
282
284
|
lp as Select,
|
|
283
285
|
ip as SelectButton,
|
|
284
286
|
xp as SelectField,
|
|
@@ -304,7 +306,7 @@ export {
|
|
|
304
306
|
fe as Stack,
|
|
305
307
|
be as StackItem,
|
|
306
308
|
Bm as SubTask,
|
|
307
|
-
|
|
309
|
+
Nm as TOAST_CONFIG,
|
|
308
310
|
um as Tab,
|
|
309
311
|
bm as TabList,
|
|
310
312
|
gm as TabPanel,
|
|
@@ -319,7 +321,7 @@ export {
|
|
|
319
321
|
Zp as TableEmptyStateText,
|
|
320
322
|
em as TableHeader,
|
|
321
323
|
pm as TablePagination,
|
|
322
|
-
|
|
324
|
+
Ep as TableRoot,
|
|
323
325
|
xm as TableRow,
|
|
324
326
|
nm as Tabs,
|
|
325
327
|
Am as Task,
|
|
@@ -346,11 +348,12 @@ export {
|
|
|
346
348
|
To as checkboxGroup,
|
|
347
349
|
Do as dataTableRoot,
|
|
348
350
|
Jo as dialog,
|
|
351
|
+
Fa as errorState,
|
|
349
352
|
te as fieldset,
|
|
350
353
|
ne as flex,
|
|
351
354
|
ie as flexItem,
|
|
352
355
|
He as fullPageLoader,
|
|
353
|
-
|
|
356
|
+
Ee as funnelBody,
|
|
354
357
|
Le as funnelLayout,
|
|
355
358
|
Qe as funnelPage,
|
|
356
359
|
ze as funnelPageActions,
|
|
@@ -392,7 +395,7 @@ export {
|
|
|
392
395
|
Ym as toggleSwitch,
|
|
393
396
|
Vm as toggleSwitchGroup,
|
|
394
397
|
s as useAppMenuContext,
|
|
395
|
-
|
|
398
|
+
Aa as useAsyncList,
|
|
396
399
|
ea as useBreakpointListener,
|
|
397
400
|
ma as useMediaQuery,
|
|
398
401
|
fa as useRouter,
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { StandardSchema } from '../types/schema.js';
|
|
2
|
+
/**
|
|
3
|
+
* Creates the appropriate schema adapter based on the schema type
|
|
4
|
+
* @param schema - The schema object (Zod, Standard Schema, or null)
|
|
5
|
+
* @returns The appropriate schema adapter or null
|
|
6
|
+
*/
|
|
7
|
+
export declare function createSchemaAdapter(schema: any): StandardSchema | null;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { StandardSchemaAdapter as n } from "../adapters/standardSchemaAdapter.js";
|
|
2
|
+
import { ZodV4SchemaAdapter as f, ZodV3SchemaAdapter as e } from "../adapters/zodAdapter.js";
|
|
3
|
+
function i(r) {
|
|
4
|
+
if (!r) return null;
|
|
5
|
+
if (r._def && typeof r._def == "object") {
|
|
6
|
+
const t = "def" in r;
|
|
7
|
+
return t ? new f(r) : t ? new e(r) : new e(r);
|
|
8
|
+
}
|
|
9
|
+
return r["~validate"] && typeof r["~validate"] == "function" ? new n(r) : null;
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
i as createSchemaAdapter
|
|
13
|
+
};
|
package/i18n/en-GB.json
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
+
"unity:command:code:icon:title": "Copy to clipboard",
|
|
2
3
|
"unity:component:common:clear:title": "Clear",
|
|
3
4
|
"unity:component:common:close:label": "Close",
|
|
4
5
|
"unity:component:common:loading:label": "Loading...",
|
|
5
6
|
"unity:component:common:previous": "Previous",
|
|
6
7
|
"unity:component:common:next": "Next",
|
|
8
|
+
"unity:component:common:customer-support:url": "https://support.payfit.com/en/inbox/",
|
|
7
9
|
"unity:component:action-bar:toolbar-label": "Bulk actions toolbar",
|
|
8
10
|
"unity:component:action-bar:selection-count-text": "{selectionCount, plural, =0 {no items} one {{selectionCount} item} other {{selectionCount} items}} selected",
|
|
9
11
|
"unity:component:action-bar:key-shortcuts-text": "Use {keyShortcuts} to focus the action bar",
|
|
@@ -17,6 +19,20 @@
|
|
|
17
19
|
"unity:component:autocomplete:placeholder": "Search",
|
|
18
20
|
"unity:component:autocomplete:panel:empty:label": "No results found",
|
|
19
21
|
"unity:component:autocomplete:panel:loading:label": "Loading results",
|
|
22
|
+
"unity:component:error-state:404:main-description": "This item may have been moved or deleted.<br></br>You can try searching for it manually or start again from your dashboard.",
|
|
23
|
+
"unity:component:error-state:404-alternative:main-description": "The page or document you’re looking for may have been moved or deleted.",
|
|
24
|
+
"unity:component:error-state:404:main-title": "Sorry, we couldn’t find what you’re looking for",
|
|
25
|
+
"unity:component:error-state:404-alternative:main-title": "Oops, we couldn't find this item",
|
|
26
|
+
"unity:component:error-state:button:label": "Go to dashboard",
|
|
27
|
+
"unity:component:error-state:detail-description": "Here's the technical error detail.<br></br><br></br>If the problem continues, you can send it to <Link>our customer support</Link> so we can help unblock you:",
|
|
28
|
+
"unity:component:error-state:known:main-description": "Please refresh the page or check your connection.<br></br>We’ve been notified of the issue and are working to resolve it as quickly as possible.",
|
|
29
|
+
"unity:component:error-state:common:main-title": "Something went wrong",
|
|
30
|
+
"unity:component:error-state:common:icon:alt": "Something went wrong",
|
|
31
|
+
"unity:component:error-state:common:illustration:alt": "Something went wrong",
|
|
32
|
+
"unity:component:error-state:common:main-description-component": "Please refresh the page or try signing in again. We’ve been notified of the issue and are working to resolve it as quickly as possible.",
|
|
33
|
+
"unity:component:error-state:collapsible:title": "Show details",
|
|
34
|
+
"unity:component:error-state:unknown:back-link:label": "Go back to previous page",
|
|
35
|
+
"unity:component:error-state:unknown:main-description": "Please refresh the page or try signing in again.<br></br>We’ve been notified of the issue and are working to resolve it as quickly as possible.<br></br>If the problem continues, please contact <Link>our customer support</Link>.",
|
|
20
36
|
"unity:component:form-field:date-picker:calendar-button": "Open calendar",
|
|
21
37
|
"unity:component:form-field:date-picker:segment-select:month:label": "Change current month",
|
|
22
38
|
"unity:component:form-field:date-picker:segment-select:month:description": "Press Enter or Space to change month, then use up and down arrows to select a month",
|
package/i18n/es-ES.json
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
+
"unity:command:code:icon:title": "Copiar al portapapeles",
|
|
2
3
|
"unity:component:common:clear:title": "Borrar",
|
|
3
4
|
"unity:component:common:close:label": "Cerrar",
|
|
4
5
|
"unity:component:common:loading:label": "Cargando...",
|
|
5
6
|
"unity:component:common:previous": "Anterior",
|
|
6
7
|
"unity:component:common:next": "Siguiente",
|
|
8
|
+
"unity:component:common:customer-support:url": "https://support.payfit.com/es/inbox/",
|
|
7
9
|
"unity:component:action-bar:toolbar-label": "Barra de acciones en lote",
|
|
8
10
|
"unity:component:action-bar:selection-count-text": "{selectionCount, plural, =0 {ningún elemento seleccionado} one {{selectionCount} elemento seleccionado} other {{selectionCount} elementos seleccionados}}",
|
|
9
11
|
"unity:component:action-bar:key-shortcuts-text": "Use {keyShortcuts} para enfocar la barra de acciones",
|
|
@@ -17,6 +19,20 @@
|
|
|
17
19
|
"unity:component:autocomplete:placeholder": "Buscar",
|
|
18
20
|
"unity:component:autocomplete:panel:empty:label": "No se encontraron resultados",
|
|
19
21
|
"unity:component:autocomplete:panel:loading:label": "Cargando resultados",
|
|
22
|
+
"unity:component:error-state:404:main-description": "Este artículo puede haber sido movido o eliminado.<br></br>Puede intentar buscarlo manualmente o comenzar de nuevo desde su tablero.",
|
|
23
|
+
"unity:component:error-state:404-alternative:main-description": "La página o documento que está buscando puede haber sido movido o eliminado.",
|
|
24
|
+
"unity:component:error-state:404:main-title": "Lo sentimos, no pudimos encontrar lo que estabas buscando",
|
|
25
|
+
"unity:component:error-state:404-alternative:main-title": "¡Ups, no pudimos encontrar este artículo",
|
|
26
|
+
"unity:component:error-state:button:label": "Ir al tablero de mando",
|
|
27
|
+
"unity:component:error-state:detail-description": "Aquí está el detalle técnico del error.<br></br><br></br>Si el problema persiste, puede enviarnos un mensaje a <Link>nuestro servicio de atención al cliente</Link> para que podamos ayudarle a desbloquearlo:",
|
|
28
|
+
"unity:component:error-state:known:main-description": "Actualice la página o compruebe su conexión.<br></br>Hemos sido notificados del problema y estamos trabajando para resolverlo lo antes posible.",
|
|
29
|
+
"unity:component:error-state:common:main-title": "Se produjo un error",
|
|
30
|
+
"unity:component:error-state:common:illustration:alt": "Se produjo un error",
|
|
31
|
+
"unity:component:error-state:common:icon:alt": "Se produjo un error",
|
|
32
|
+
"unity:component:error-state:common:main-description-component": "Actualice la página o pruebe a iniciar sesión de nuevo. Hemos sido notificados del problema y estamos trabajando para resolverlo lo antes posible.",
|
|
33
|
+
"unity:component:error-state:collapsible:title": "Mostrar detalles",
|
|
34
|
+
"unity:component:error-state:unknown:back-link:label": "Volver a la página anterior",
|
|
35
|
+
"unity:component:error-state:unknown:main-description": "Actualice la página o pruebe a iniciar sesión de nuevo.<br></br>Hemos sido notificados del problema y estamos trabajando para resolverlo lo antes posible.<br></br>Si el problema persiste, póngase en contacto con <Link>nuestro soporte al cliente</Link>.",
|
|
20
36
|
"unity:component:form-field:date-picker:calendar-button": "Abrir el calendario",
|
|
21
37
|
"unity:component:form-field:date-picker:segment-select:month:label": "Cambiar mes actual",
|
|
22
38
|
"unity:component:form-field:date-picker:segment-select:month:description": "Presione Enter o Espacio para cambiar el mes, luego use las flechas para seleccionar un mes",
|
package/i18n/fr-FR.json
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
+
"unity:command:code:icon:title": "Copier dans le presse-papiers",
|
|
2
3
|
"unity:component:common:clear:title": "Effacer",
|
|
3
4
|
"unity:component:common:close:label": "Fermer",
|
|
4
5
|
"unity:component:common:loading:label": "Chargement...",
|
|
5
6
|
"unity:component:common:previous": "Précédent",
|
|
6
7
|
"unity:component:common:next": "Suivant",
|
|
8
|
+
"unity:component:common:customer-support:url": "https://support.payfit.com/fr/inbox/",
|
|
7
9
|
"unity:component:action-bar:toolbar-label": "barre d'outils d'actions groupées",
|
|
8
10
|
"unity:component:action-bar:selection-count-text": "{selectionCount, plural, =0 {aucun élément sélectionné} one {{selectionCount} élément sélectionné} other {{selectionCount} éléments sélectionnés}}",
|
|
9
11
|
"unity:component:action-bar:key-shortcuts-text": "Appuyez sur {keyShortcuts} pour accéder à la barre d'actions",
|
|
@@ -17,6 +19,20 @@
|
|
|
17
19
|
"unity:component:autocomplete:placeholder": "Rechercher",
|
|
18
20
|
"unity:component:autocomplete:panel:empty:label": "Aucun résultat",
|
|
19
21
|
"unity:component:autocomplete:panel:loading:label": "Chargement des résultats",
|
|
22
|
+
"unity:component:error-state:404:main-description": "Cet article a peut-être été déplacé ou supprimé.<br></br>Vous pouvez essayer de le rechercher manuellement ou recommencer à partir de votre tableau de bord.",
|
|
23
|
+
"unity:component:error-state:404-alternative:main-description": "La page ou le document que vous recherchez peut avoir été déplacé ou supprimé.",
|
|
24
|
+
"unity:component:error-state:404:main-title": "Désolé, nous n'avons pas trouvé ce que vous recherchez",
|
|
25
|
+
"unity:component:error-state:404-alternative:main-title": "Oups, nous n'avons pas pu trouver cet article",
|
|
26
|
+
"unity:component:error-state:button:label": "Aller au tableau de bord",
|
|
27
|
+
"unity:component:error-state:detail-description": "Voici les détails techniques de l'erreur.<br></br> <br></br>Si le problème persiste, vous pouvez nous envoyer un message à <Link>notre service client</Link> pour nous aider à résoudre le problème :",
|
|
28
|
+
"unity:component:error-state:known:main-description": "Actualisez la page ou vérifiez votre connexion.<br></br>Nous avons été notifié de l'incident et nous travaillons à résoudre le problème le plus rapidement possible.",
|
|
29
|
+
"unity:component:error-state:common:main-title": "Une erreur est survenue",
|
|
30
|
+
"unity:component:error-state:common:illustration:alt": "Une erreur est survenue",
|
|
31
|
+
"unity:component:error-state:common:icon:alt": "Une erreur est survenue",
|
|
32
|
+
"unity:component:error-state:common:main-description-component": "Actualisez la page ou essayez de vous connecter à nouveau. Nous avons été notifié de l'incident et nous travaillons à résoudre le problème le plus rapidement possible.",
|
|
33
|
+
"unity:component:error-state:collapsible:title": "Afficher les détails",
|
|
34
|
+
"unity:component:error-state:unknown:back-link:label": "Retour à la page précédente",
|
|
35
|
+
"unity:component:error-state:unknown:main-description": "Actualisez la page ou essayez de vous connecter à nouveau.<br></br>Nous avons été notifié de l'incident et nous travaillons à résoudre le problème le plus rapidement possible.<br></br>Si le problème persiste, veuillez contacter <Link>notre service client</Link>.",
|
|
20
36
|
"unity:component:form-field:date-picker:calendar-button": "Ouvrez le calendrier",
|
|
21
37
|
"unity:component:form-field:date-picker:segment-select:month:label": "Changer le mois actuel",
|
|
22
38
|
"unity:component:form-field:date-picker:segment-select:month:description": "Appuyez sur Entrée ou Espace pour changer de mois, puis utilisez les flèches pour sélectionner un mois",
|
package/package.json
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@payfit/unity-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"module": "./dist/esm/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
|
+
"storybook": {
|
|
8
|
+
"url": "https://unity-components.payfit.io/"
|
|
9
|
+
},
|
|
7
10
|
"exports": {
|
|
8
11
|
".": {
|
|
9
12
|
"import": {
|
|
@@ -39,36 +42,39 @@
|
|
|
39
42
|
"@hookform/devtools": "4.4.0",
|
|
40
43
|
"@hookform/resolvers": "5.2.1",
|
|
41
44
|
"@internationalized/date": "3.9.0",
|
|
45
|
+
"@payfit/unity-illustrations": "1.2.0",
|
|
42
46
|
"@radix-ui/react-avatar": "1.1.10",
|
|
43
47
|
"@radix-ui/react-slot": "1.2.3",
|
|
44
48
|
"@react-aria/interactions": "3.25.5",
|
|
45
49
|
"@react-aria/utils": "3.30.1",
|
|
46
50
|
"@react-types/shared": "3.26.0",
|
|
51
|
+
"@standard-schema/spec": "1.0.0",
|
|
47
52
|
"@use-gesture/react": "10.3.1",
|
|
48
53
|
"prettier": "3.1.0",
|
|
49
54
|
"react": "18.3.1",
|
|
50
|
-
"react-aria": "3.43.
|
|
51
|
-
"react-aria-components": "1.12.
|
|
55
|
+
"react-aria": "3.43.2",
|
|
56
|
+
"react-aria-components": "1.12.2",
|
|
52
57
|
"react-dom": "18.3.1",
|
|
53
58
|
"react-hook-form": "7.62.0",
|
|
54
59
|
"react-hot-toast": "2.5.1",
|
|
55
60
|
"react-hotkeys-hook": "5.1.0",
|
|
56
61
|
"react-intl": "7.1.3",
|
|
57
62
|
"react-stately": "3.41.0",
|
|
58
|
-
"storybook": "9.1.
|
|
63
|
+
"storybook": "9.1.7",
|
|
64
|
+
"tailwind-variants": "2.1.0",
|
|
59
65
|
"usehooks-ts": "3.1.0",
|
|
60
|
-
"zod": "
|
|
66
|
+
"zod": "4.1.9"
|
|
61
67
|
},
|
|
62
68
|
"peerDependencies": {
|
|
63
69
|
"@hookform/devtools": "4.4.0",
|
|
64
|
-
"@payfit/unity-icons": "1.
|
|
65
|
-
"@payfit/unity-themes": "1.
|
|
70
|
+
"@payfit/unity-icons": "1.2.0",
|
|
71
|
+
"@payfit/unity-themes": "1.2.0",
|
|
66
72
|
"@storybook/react-vite": "^9.1.2",
|
|
67
73
|
"@tanstack/react-table": "8.21.3",
|
|
68
74
|
"history": "4.10.1",
|
|
69
75
|
"react-hook-form": "^7",
|
|
70
76
|
"react-router-dom": "5.3.4",
|
|
71
|
-
"zod": "3
|
|
77
|
+
"zod": "^3 || ^4"
|
|
72
78
|
},
|
|
73
79
|
"devDependencies": {
|
|
74
80
|
"@hookform/devtools": "4.4.0",
|
|
@@ -77,21 +83,21 @@
|
|
|
77
83
|
"@payfit/hr-app-eslint": "0.0.0-use.local",
|
|
78
84
|
"@payfit/hr-apps-tsconfigs": "0.0.0-use.local",
|
|
79
85
|
"@payfit/storybook-addon-console-errors": "0.0.0-use.local",
|
|
80
|
-
"@payfit/unity-icons": "1.
|
|
81
|
-
"@payfit/unity-illustrations": "1.
|
|
82
|
-
"@payfit/unity-themes": "1.
|
|
86
|
+
"@payfit/unity-icons": "1.2.0",
|
|
87
|
+
"@payfit/unity-illustrations": "1.2.0",
|
|
88
|
+
"@payfit/unity-themes": "1.2.0",
|
|
83
89
|
"@payfit/vite-configs": "0.0.0-use.local",
|
|
84
|
-
"@storybook/addon-a11y": "9.1.
|
|
85
|
-
"@storybook/addon-docs": "9.1.
|
|
86
|
-
"@storybook/addon-links": "9.1.
|
|
87
|
-
"@storybook/addon-vitest": "9.1.
|
|
88
|
-
"@storybook/react-vite": "9.1.
|
|
90
|
+
"@storybook/addon-a11y": "9.1.7",
|
|
91
|
+
"@storybook/addon-docs": "9.1.7",
|
|
92
|
+
"@storybook/addon-links": "9.1.7",
|
|
93
|
+
"@storybook/addon-vitest": "9.1.7",
|
|
94
|
+
"@storybook/react-vite": "9.1.7",
|
|
89
95
|
"@testing-library/dom": "10.4.0",
|
|
90
96
|
"@testing-library/react": "16.2.0",
|
|
91
97
|
"@types/react": "18.3.18",
|
|
92
98
|
"@types/react-dom": "18.3.5",
|
|
93
99
|
"@types/react-router-dom": "5.3.3",
|
|
94
|
-
"@vitejs/plugin-react": "
|
|
100
|
+
"@vitejs/plugin-react": "5.0.3",
|
|
95
101
|
"@vitest/browser": "3.2.4",
|
|
96
102
|
"eslint-plugin-storybook": "9.1.2",
|
|
97
103
|
"glob": "11.0.1",
|
|
@@ -101,13 +107,13 @@
|
|
|
101
107
|
"prettier": "3.1.0",
|
|
102
108
|
"react-docgen-typescript": "2.2.2",
|
|
103
109
|
"react-hot-toast": "2.5.1",
|
|
104
|
-
"storybook": "9.1.
|
|
110
|
+
"storybook": "9.1.7",
|
|
105
111
|
"storybook-addon-pseudo-states": "9.1.2",
|
|
106
112
|
"storybook-addon-tag-badges": "^2.0.1",
|
|
107
113
|
"storybook-mock-date-decorator": "3.0.0",
|
|
108
114
|
"tailwindcss": "4.1.11",
|
|
109
115
|
"typescript": "5.9.2",
|
|
110
|
-
"vite": "
|
|
116
|
+
"vite": "7.1.6",
|
|
111
117
|
"vite-plugin-node-polyfills": "0.23.0",
|
|
112
118
|
"vitest": "3.2.4"
|
|
113
119
|
},
|