@club-employes/utopia 4.387.0 → 4.389.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.
Files changed (46) hide show
  1. package/dist/components/atoms/InputText/InputText.d.ts +1 -1
  2. package/dist/components/atoms/ProgressBar/ProgressBar.d.ts +1 -2
  3. package/dist/components/layouts/AuthLayout/AuthLayout.d.ts +2 -2
  4. package/dist/components/molecules/ArticlePreview/ArticlePreview.d.ts +2 -2
  5. package/dist/components/molecules/CountryDropDown/CountryDropDown.d.ts +0 -1
  6. package/dist/components/molecules/DatePicker/DatePicker.d.ts +0 -1
  7. package/dist/components/molecules/DateRange/DateRange.d.ts +0 -1
  8. package/dist/components/molecules/DownloadList/DownloadList.d.ts +1 -1
  9. package/dist/components/molecules/DropDown/DropDown.d.ts +3 -4
  10. package/dist/components/molecules/EmptyState/EmptyState.d.ts +2 -2
  11. package/dist/components/molecules/FormGroup/FormGroup.d.ts +1 -1
  12. package/dist/components/molecules/GrantSelect/GrantSelect.d.ts +1 -1
  13. package/dist/components/molecules/InputPhone/InputPhone.d.ts +8 -11
  14. package/dist/components/molecules/LoadingBanner/LoadingBanner.d.ts +1 -1
  15. package/dist/components/molecules/MyUserGroups/MyUserGroups.d.ts +2 -2
  16. package/dist/components/molecules/PostalCodeInput/PostalCodeInput.d.ts +2 -3
  17. package/dist/components/molecules/RadioCard/RadioCard.d.ts +1 -1
  18. package/dist/components/molecules/RepeatableGroup/RepeatableGroup.d.ts +6 -6
  19. package/dist/components/molecules/Toast/Toast.d.ts +1 -1
  20. package/dist/components/organisms/BalanceCard/BalanceCard.d.ts +0 -1
  21. package/dist/components/organisms/BalanceCardGroup/BalanceCardGroup.d.ts +0 -1
  22. package/dist/components/organisms/CartPreview/CartPreview.d.ts +3 -3
  23. package/dist/components/organisms/CustomCriteriaSection/CustomCriteriaSection.d.ts +1 -1
  24. package/dist/components/organisms/DeliveryMethodSelector/DeliveryMethodSelector.d.ts +1 -1
  25. package/dist/components/organisms/DropFile/DropFile.d.ts +4 -4
  26. package/dist/components/organisms/ImageEditor/ImageEditor.d.ts +2 -2
  27. package/dist/components/organisms/InputSearch/InputSearch.d.ts +0 -1
  28. package/dist/components/organisms/MenuSection/MenuSection.d.ts +4 -4
  29. package/dist/components/organisms/MyEditor/editorLabels.d.ts +10 -9
  30. package/dist/components/organisms/ProductSummary/ProductSummary.d.ts +6 -6
  31. package/dist/components/organisms/Table/TableEmptyState.d.ts +1 -1
  32. package/dist/composables/useCurrencyFormat.d.ts +3 -2
  33. package/dist/composables/useDateFormatters.d.ts +4 -2
  34. package/dist/i18n/__tests__/ecommerceLayouts.spec.d.ts +1 -0
  35. package/dist/i18n/__tests__/editors.spec.d.ts +1 -0
  36. package/dist/i18n/__tests__/formComponents.spec.d.ts +1 -0
  37. package/dist/i18n/__tests__/formats.spec.d.ts +1 -0
  38. package/dist/i18n/__tests__/heavyOrganisms.spec.d.ts +1 -0
  39. package/dist/i18n/__tests__/stateNavComponents.spec.d.ts +1 -0
  40. package/dist/i18n/__tests__/tableDates.spec.d.ts +1 -0
  41. package/dist/i18n/messages/fr.d.ts +412 -0
  42. package/dist/i18n/types.d.ts +4 -3
  43. package/dist/i18n/useUtopiaI18n.d.ts +4 -3
  44. package/dist/index.js +16301 -15636
  45. package/dist/utopia.css +1 -1
  46. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ export {};
@@ -22,8 +22,407 @@ declare const _default: {
22
22
  clear: string;
23
23
  add: string;
24
24
  remove: string;
25
+ save: string;
25
26
  search: string;
26
27
  };
28
+ addressForm: {
29
+ validation: {
30
+ required: string;
31
+ pattern: string;
32
+ minlength: string;
33
+ maxlength: string;
34
+ invalidNumber: string;
35
+ min: string;
36
+ max: string;
37
+ step: string;
38
+ };
39
+ defaultSchema: {
40
+ siteName: string;
41
+ siteNamePlaceholder: string;
42
+ country: string;
43
+ countryPlaceholder: string;
44
+ address: string;
45
+ addressPlaceholder: string;
46
+ addressSupplement: string;
47
+ addressSupplementPlaceholder: string;
48
+ zipCode: string;
49
+ zipCodePlaceholder: string;
50
+ city: string;
51
+ cityPlaceholder: string;
52
+ };
53
+ };
54
+ articlePreview: {
55
+ backText: string;
56
+ publishedAtPrefix: string;
57
+ downloadsTitle: string;
58
+ };
59
+ copyCode: {
60
+ label: string;
61
+ copied: string;
62
+ };
63
+ authLayout: {
64
+ title: string;
65
+ subtitle: string;
66
+ tipsTitle: string;
67
+ tipsText: string;
68
+ orAtAddress: string;
69
+ toggleBottomsheet: string;
70
+ slideImageAlt: string;
71
+ };
72
+ balanceCard: {
73
+ campaignExpired: string;
74
+ expiresOn: string;
75
+ expiredOn: string;
76
+ };
77
+ balanceCardGroup: {
78
+ campaign: string;
79
+ campaigns: string;
80
+ showMore: string;
81
+ showLess: string;
82
+ };
83
+ budgetFilterCell: {
84
+ budgetLabel: string;
85
+ budgetMinLabel: string;
86
+ budgetMaxLabel: string;
87
+ clearLabel: string;
88
+ confirmLabel: string;
89
+ };
90
+ cartPreview: {
91
+ title: string;
92
+ buttonLabel: string;
93
+ emptyTitle: string;
94
+ emptyDescription: string;
95
+ toastLabel: string;
96
+ closeCart: string;
97
+ };
98
+ countryDropDown: {
99
+ placeholder: string;
100
+ };
101
+ customCriteriaSection: {
102
+ title: string;
103
+ emptyText: string;
104
+ dropdownPlaceholder: string;
105
+ addButtonLabel: string;
106
+ createLabel: string;
107
+ expectedValue: string;
108
+ removeCriterion: string;
109
+ };
110
+ customCriterionV: {
111
+ typeLabel: string;
112
+ typePlaceholder: string;
113
+ typeText: string;
114
+ typeNumberRange: string;
115
+ typeDateRange: string;
116
+ typeBoolean: string;
117
+ previewTitle: string;
118
+ expectedValue: string;
119
+ minValue: string;
120
+ maxValue: string;
121
+ startDate: string;
122
+ endDate: string;
123
+ yes: string;
124
+ no: string;
125
+ };
126
+ downloadList: {
127
+ download: string;
128
+ linkText: string;
129
+ };
130
+ dropFile: {
131
+ imageLabel: string;
132
+ csvLoadedLabel: string;
133
+ csvLabel: string;
134
+ fileLabel: string;
135
+ dropImageHere: string;
136
+ dropTypeHere: string;
137
+ dropCsvHere: string;
138
+ selectFile: string;
139
+ supportedFormats: string;
140
+ browse: string;
141
+ or: string;
142
+ recommended: string;
143
+ example: string;
144
+ maxSizeHint: string;
145
+ defaultFormatsHint: string;
146
+ counterTypeImage: string;
147
+ counterTypeCsv: string;
148
+ counterTypeFile: string;
149
+ uploaded: string;
150
+ replaceImage: string;
151
+ replace: string;
152
+ replaceFile: string;
153
+ addFile: string;
154
+ openFile: string;
155
+ fileLoaded: string;
156
+ recommendedCsv: string;
157
+ preview: string;
158
+ editFileName: string;
159
+ avatarAlt: string;
160
+ existingImageAlt: string;
161
+ theImage: string;
162
+ removeFile: string;
163
+ replaceFileAria: string;
164
+ validation: {
165
+ invalidType: string;
166
+ tooSmall: string;
167
+ tooLarge: string;
168
+ duplicate: string;
169
+ tooMany: string;
170
+ };
171
+ };
172
+ emptyState: {
173
+ title: string;
174
+ };
175
+ filterGroup: {
176
+ resetFiltersLabel: string;
177
+ };
178
+ grantUsersSelection: {
179
+ allUsers: string;
180
+ manualSelection: string;
181
+ groupTargeting: string;
182
+ selectAll: string;
183
+ searchUserPlaceholder: string;
184
+ searchGroupPlaceholder: string;
185
+ usersCount: string;
186
+ groupsCount: string;
187
+ noGroupFound: string;
188
+ };
189
+ iconPicker: {
190
+ noIconSelected: string;
191
+ clickToChoose: string;
192
+ editIcon: string;
193
+ removeIcon: string;
194
+ selectIcon: string;
195
+ modalTitle: string;
196
+ modalDescription: string;
197
+ searchPlaceholder: string;
198
+ chooseIcon: string;
199
+ };
200
+ feedbackState: {
201
+ title: string;
202
+ description: string;
203
+ actionLabel: string;
204
+ bigGearAlt: string;
205
+ smallGearAlt: string;
206
+ searchAlt: string;
207
+ };
208
+ datePicker: {
209
+ label: string;
210
+ formatDate: string;
211
+ clearDate: string;
212
+ chooseDateHour: string;
213
+ chooseDate: string;
214
+ };
215
+ dateRange: {
216
+ labelStart: string;
217
+ labelEnd: string;
218
+ placeholder: string;
219
+ placeholderSingle: string;
220
+ clear: string;
221
+ confirm: string;
222
+ };
223
+ dateRangeFilterCell: {
224
+ period: string;
225
+ from: string;
226
+ to: string;
227
+ };
228
+ dates: {
229
+ years: string;
230
+ weekDaysShort: string[];
231
+ months: string[];
232
+ };
233
+ defaultLayout: {
234
+ mainMenu: string;
235
+ mainNavigation: string;
236
+ expandMenu: string;
237
+ collapseMenu: string;
238
+ closeMenu: string;
239
+ openNavigationMenu: string;
240
+ expandSection: string;
241
+ collapseSection: string;
242
+ expandSubItems: string;
243
+ collapseSubItems: string;
244
+ };
245
+ deliveryMethodSelector: {
246
+ showMoreLabel: string;
247
+ };
248
+ dropDown: {
249
+ placeholder: string;
250
+ noResults: string;
251
+ loading: string;
252
+ selectAll: string;
253
+ selectedCount: string;
254
+ };
255
+ imageEditor: {
256
+ title: string;
257
+ cancel: string;
258
+ save: string;
259
+ };
260
+ inputPhone: {
261
+ selectCountry: string;
262
+ notSelected: string;
263
+ countryLabel: string;
264
+ exampleNumber: string;
265
+ invalidNumber: string;
266
+ searchPlaceholder: string;
267
+ noResultsText: string;
268
+ placeholder: string;
269
+ };
270
+ inputSearch: {
271
+ resultsFound: string;
272
+ placeholder: string;
273
+ };
274
+ menuSection: {
275
+ activeLabel: string;
276
+ settingsLabel: string;
277
+ deleteLabel: string;
278
+ toggleLabel: string;
279
+ itemsLabel: string;
280
+ addItemLabel: string;
281
+ emptyTitle: string;
282
+ };
283
+ modal: {
284
+ close: string;
285
+ enlarge: string;
286
+ shrink: string;
287
+ };
288
+ multiSelect: {
289
+ addOptionTooltip: string;
290
+ };
291
+ myEditor: {
292
+ blockParagraph: string;
293
+ blockHeading1: string;
294
+ blockHeading2: string;
295
+ blockHeading3: string;
296
+ blockHeading4: string;
297
+ blockHeading5: string;
298
+ blockHeading6: string;
299
+ blockPlaceholder: string;
300
+ tooltipLink: string;
301
+ tooltipOrderedList: string;
302
+ tooltipBulletList: string;
303
+ tooltipCodeBlock: string;
304
+ tooltipBlockquote: string;
305
+ tooltipItalic: string;
306
+ tooltipBold: string;
307
+ tooltipUnderline: string;
308
+ tooltipStrikethrough: string;
309
+ tooltipImage: string;
310
+ tooltipVideo: string;
311
+ tooltipTable: string;
312
+ tooltipDivider: string;
313
+ tooltipTextColor: string;
314
+ tooltipAlignLeft: string;
315
+ tooltipAlignCenter: string;
316
+ tooltipAlignRight: string;
317
+ tooltipAlignJustify: string;
318
+ tooltipTableAddRowBefore: string;
319
+ tooltipTableAddRowAfter: string;
320
+ tooltipTableDeleteRow: string;
321
+ tooltipTableAddColBefore: string;
322
+ tooltipTableAddColAfter: string;
323
+ tooltipTableDeleteCol: string;
324
+ tooltipTableToggleHeader: string;
325
+ tooltipTableDelete: string;
326
+ columnsPlaceholder: string;
327
+ columns2: string;
328
+ columns3: string;
329
+ columns4: string;
330
+ columnPlaceholder: string;
331
+ tooltipExpandable: string;
332
+ expandableTitlePlaceholder: string;
333
+ expandableContentPlaceholder: string;
334
+ expandableToggleAria: string;
335
+ linkPopoverEdit: string;
336
+ linkPopoverOpen: string;
337
+ linkPopoverRemove: string;
338
+ linkPopoverCopy: string;
339
+ linkModalTitle: string;
340
+ linkModalLabelText: string;
341
+ linkModalPlaceholderText: string;
342
+ linkModalLabelUrl: string;
343
+ linkModalPlaceholderUrl: string;
344
+ linkModalCancel: string;
345
+ linkModalApply: string;
346
+ imageTitleLabel: string;
347
+ imageTitlePlaceholder: string;
348
+ previewAria: string;
349
+ previewRenderTab: string;
350
+ imagePopoverEdit: string;
351
+ imagePopoverReplace: string;
352
+ imagePopoverCopy: string;
353
+ imagePopoverDraw: string;
354
+ imagePopoverDelete: string;
355
+ imageEditTitle: string;
356
+ imageEditClose: string;
357
+ imageEditLabel: string;
358
+ imageEditPlaceholder: string;
359
+ imageEditCancel: string;
360
+ imageEditApply: string;
361
+ imageModalTitle: string;
362
+ errorImageTooLarge: string;
363
+ errorVideoTooLarge: string;
364
+ imageEditorTitle: string;
365
+ imageEditorCancel: string;
366
+ imageEditorSave: string;
367
+ };
368
+ myUserGroups: {
369
+ peopleLabel: string;
370
+ criteriaLabel: string;
371
+ showMoreLabel: string;
372
+ showLessLabel: string;
373
+ noCriteria: string;
374
+ editGroup: string;
375
+ deleteGroup: string;
376
+ };
377
+ optionSelect: {
378
+ placeholder: string;
379
+ outOfStock: string;
380
+ };
381
+ pageNavigation: {
382
+ previous: string;
383
+ next: string;
384
+ pageOf: string;
385
+ goToPreviousPage: string;
386
+ goToNextPage: string;
387
+ goToPageLabel: string;
388
+ sizeLabel: string;
389
+ };
390
+ postalCodeInput: {
391
+ countryLabel: string;
392
+ label: string;
393
+ invalidPostalCodeMessage: string;
394
+ };
395
+ progressBar: {
396
+ value: string;
397
+ maximum: string;
398
+ };
399
+ productSummary: {
400
+ outOfStockChipLabel: string;
401
+ outOfStockOptionLabel: string;
402
+ outOfStockDescription: string;
403
+ shippingLabel: string;
404
+ seeMoreLabel: string;
405
+ seeLessLabel: string;
406
+ };
407
+ rangeFilterCell: {
408
+ title: string;
409
+ minLabel: string;
410
+ maxLabel: string;
411
+ clearLabel: string;
412
+ };
413
+ repeatableGroup: {
414
+ addLabel: string;
415
+ removeLabel: string;
416
+ groupLabel: string;
417
+ itemLabel: string;
418
+ itemNumber: string;
419
+ addNewItem: string;
420
+ itemAdded: string;
421
+ itemRemoved: string;
422
+ };
423
+ stepper: {
424
+ step: string;
425
+ };
27
426
  table: {
28
427
  goToPageLabel: string;
29
428
  sizeLabel: string;
@@ -61,5 +460,18 @@ declare const _default: {
61
460
  editModeLabelOn: string;
62
461
  editModeLabelOff: string;
63
462
  };
463
+ tableEmptyState: {
464
+ logoAlt: string;
465
+ };
466
+ tree: {
467
+ loading: string;
468
+ filterPlaceholder: string;
469
+ };
470
+ userSelection: {
471
+ selectAll: string;
472
+ searchPlaceholder: string;
473
+ totalCount: string;
474
+ noResults: string;
475
+ };
64
476
  };
65
477
  export default _default;
@@ -12,10 +12,11 @@ export type UtopiaMessagesTree = typeof frMessages;
12
12
  export type UtopiaComponentKey = keyof UtopiaMessagesTree;
13
13
  /**
14
14
  * Version partielle récursive de l'arbre : shape des dictionnaires de
15
- * surcharge (`en.ts`). Les feuilles restent des `string`.
15
+ * surcharge (`en.ts`). Les feuilles sont des `string` ou des `string[]`
16
+ * (listes ordonnées : mois, jours de la semaine…).
16
17
  */
17
18
  export type DeepPartialMessages<T> = {
18
- [K in keyof T]?: T[K] extends string ? string : DeepPartialMessages<T[K]>;
19
+ [K in keyof T]?: T[K] extends string ? string : T[K] extends readonly string[] ? readonly string[] : DeepPartialMessages<T[K]>;
19
20
  };
20
21
  export type UtopiaMessagesOverride = DeepPartialMessages<UtopiaMessagesTree>;
21
22
  /**
@@ -23,5 +24,5 @@ export type UtopiaMessagesOverride = DeepPartialMessages<UtopiaMessagesTree>;
23
24
  * messages d'un composant — utilisé par le `t()` de `useUtopiaI18n`.
24
25
  */
25
26
  export type MessagePath<T> = T extends string ? never : {
26
- [K in keyof T & string]: T[K] extends string ? K : `${K}.${MessagePath<T[K]>}`;
27
+ [K in keyof T & string]: T[K] extends string ? K : T[K] extends readonly string[] ? never : `${K}.${MessagePath<T[K]>}`;
27
28
  }[keyof T & string];
@@ -10,12 +10,13 @@ export declare function normalizeUtopiaLocale(value: unknown): UtopiaLocale;
10
10
  */
11
11
  export declare function useEffectiveLocale(language?: MaybeRefOrGetter<string | undefined>): ComputedRef<UtopiaLocale>;
12
12
  type MessagesNode = {
13
- [key: string]: string | MessagesNode;
13
+ [key: string]: string | readonly string[] | MessagesNode;
14
14
  };
15
15
  /**
16
16
  * Fusionne une surcharge partielle dans l'arbre de base, feuille à feuille.
17
- * Une feuille absente (ou d'un autre type) de la surcharge garde la valeur
18
- * de base — c'est le fallback en→fr : jamais de clé brute affichée.
17
+ * Une feuille (`string` ou `string[]`) absente ou d'un autre type dans la
18
+ * surcharge garde la valeur de base — c'est le fallback en→fr : jamais de clé
19
+ * brute affichée.
19
20
  */
20
21
  export declare function mergeMessagesDeep<T extends MessagesNode>(base: T, override: unknown): T;
21
22
  export interface UseUtopiaI18nReturn<K extends UtopiaComponentKey> {