carbon-react 136.0.3 → 137.0.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.
@@ -0,0 +1,207 @@
1
+ import frFRDateLocale from "date-fns/locale/fr";
2
+ const isSingular = count => (typeof count === "string" ? parseInt(count) : count) === 1;
3
+ const frFR = {
4
+ locale: () => "fr-FR",
5
+ actions: {
6
+ edit: () => "Modifier",
7
+ delete: () => "Supprimer"
8
+ },
9
+ actionPopover: {
10
+ ariaLabel: () => "actions"
11
+ },
12
+ advancedColorPicker: {
13
+ ariaLabel: () => "Changer de couleur",
14
+ currentColorDescriptionTerm: () => "Couleur actuelle attribuée :",
15
+ currentColorAssigned: currentColor => currentColor
16
+ },
17
+ batchSelection: {
18
+ selected: count => `${count} sélectionné(s)`
19
+ },
20
+ breadcrumbs: {
21
+ ariaLabel: () => "Chemin de navigation"
22
+ },
23
+ confirm: {
24
+ no: () => "Non",
25
+ yes: () => "Oui"
26
+ },
27
+ characterCount: {
28
+ tooManyCharacters: (count, formattedCount) => count === 1 ? `il y a ${formattedCount} caractère de trop` : `${formattedCount} caractères de trop`,
29
+ charactersLeft: (count, formattedCount) => count === 1 ? `${formattedCount} caractère restant` : `${formattedCount} caractères restants`,
30
+ visuallyHiddenHint: formattedCount => `vous pouvez saisir jusqu'à ${formattedCount} caractères.`
31
+ },
32
+ date: {
33
+ dateFnsLocale: () => frFRDateLocale,
34
+ ariaLabels: {
35
+ previousMonthButton: () => "Mois précédent",
36
+ nextMonthButton: () => "Mois suivant"
37
+ }
38
+ },
39
+ dialog: {
40
+ ariaLabels: {
41
+ close: () => "Fermer"
42
+ }
43
+ },
44
+ dialogFullScreen: {
45
+ ariaLabels: {
46
+ close: () => "Fermer"
47
+ }
48
+ },
49
+ dismissibleBox: {
50
+ ariaLabels: {
51
+ close: () => "Fermer"
52
+ }
53
+ },
54
+ errors: {
55
+ messages: {
56
+ formSummary: /* istanbul ignore next */
57
+ (errors, warnings, type) => {
58
+ const errorPlural = isSingular(errors) ? "erreur" : "erreurs";
59
+ const warningPlural = isSingular(warnings) ? "avertissement" : "avertissements";
60
+ if (errors && warnings && type === "warning") {
61
+ return ["et", `${warnings} ${warningPlural}`];
62
+ }
63
+ if (errors) {
64
+ return ["Il y a", `${errors} ${errorPlural}`];
65
+ }
66
+ if (warnings) {
67
+ return ["Il y a", `${warnings} ${warningPlural}`];
68
+ }
69
+ return null;
70
+ }
71
+ }
72
+ },
73
+ fileInput: {
74
+ dragAndDrop: () => "ou glisser et déposer votre fichier",
75
+ selectFile: () => "Sélectionnez le fichier",
76
+ fileUploadStatus: () => "Statut du téléchargement de fichiers",
77
+ actions: {
78
+ cancel: () => "Annuler le téléchargement",
79
+ clear: () => "Effacer",
80
+ delete: () => "Supprimer le fichier"
81
+ }
82
+ },
83
+ heading: {
84
+ backLinkAriaLabel: () => "Retour"
85
+ },
86
+ link: {
87
+ skipLinkLabel: () => "Passer au contenu principal"
88
+ },
89
+ loader: {
90
+ loading: () => "Téléhargement"
91
+ },
92
+ loaderSpinner: {
93
+ loading: () => "Téléhargement..."
94
+ },
95
+ menuFullscreen: {
96
+ ariaLabels: {
97
+ closeButton: () => "Fermer"
98
+ }
99
+ },
100
+ message: {
101
+ closeButtonAriaLabel: () => "Fermer"
102
+ },
103
+ numeralDate: {
104
+ validation: {
105
+ day: (month, daysInMonth) => {
106
+ if (month && daysInMonth) {
107
+ return `Le jour du ${month} doit être un nombre compris entre 1- ${daysInMonth}`;
108
+ }
109
+ return "Le jour doit être un nombre compris entre 1 et 31 jours.";
110
+ },
111
+ month: () => "Le mois doit être un nombre compris entre 1 et 12.",
112
+ year: () => "L'année doit être un nombre compris entre 1800 et 2200."
113
+ },
114
+ labels: {
115
+ day: () => "Jour",
116
+ month: () => "Mois",
117
+ year: () => "Année"
118
+ }
119
+ },
120
+ pager: {
121
+ show: () => "Afficher",
122
+ records: (count, showNumber = true) => {
123
+ const noun = isSingular(count) ? "élément" : "éléments";
124
+ return showNumber ? `${count} ${noun}` : noun;
125
+ },
126
+ first: () => "Première",
127
+ last: () => "Dernière",
128
+ next: () => "Suivante",
129
+ previous: () => "Précédente",
130
+ pageX: () => "Page",
131
+ ofY: count => `de ${count}`
132
+ },
133
+ password: {
134
+ ariaLiveShownMessage: () => "Votre mot de passe s'affiche. Assurez-vous d'être dans un environnement sûr puis survolez la zone avec votre souris et vous pourrez écouter le mot de passe.",
135
+ ariaLiveHiddenMessage: () => "Votre mot de passe est actuellement caché."
136
+ },
137
+ progressTracker: {
138
+ of: () => "de"
139
+ },
140
+ pod: {
141
+ undo: () => "Annuler"
142
+ },
143
+ search: {
144
+ searchButtonText: () => "Rechercher"
145
+ },
146
+ select: {
147
+ actionButtonText: () => "Ajouter un nouvel élément",
148
+ placeholder: () => "Sélectionner...",
149
+ noResultsForTerm: term => `Aucun résultat pour ${term}`
150
+ },
151
+ sidebar: {
152
+ ariaLabels: {
153
+ close: () => "Fermer"
154
+ }
155
+ },
156
+ sort: {
157
+ accessibleName: (sortContent, sortType) => `Trier tous les contenus ${sortContent && `de type ${sortContent}`}${sortType ? ` par ordre ${sortType === "ascending" ? "croissant" : "décroissant"}.` : " par ordre croissant ou décroissant."}`
158
+ },
159
+ splitButton: {
160
+ ariaLabel: () => "Afficher plus"
161
+ },
162
+ stepFlow: {
163
+ stepLabel: (currentStep, totalSteps) => `Étape ${currentStep} de ${totalSteps}`,
164
+ screenReaderOnlyTitle: (title, currentStep, totalSteps, category) => `${category ? `${category}.` : ""} ${title}. Étape ${currentStep} de ${totalSteps}.`,
165
+ closeIconAriaLabel: () => "Fermer"
166
+ },
167
+ switch: {
168
+ on: () => "Oui",
169
+ off: () => "Désactiver"
170
+ },
171
+ textEditor: {
172
+ tooltipMessages: {
173
+ bold: () => "Gras",
174
+ italic: () => "Italique",
175
+ bulletList: () => "Liste à puces",
176
+ numberList: () => "Liste numérotée"
177
+ },
178
+ ariaLabels: {
179
+ bold: () => "gras",
180
+ italic: () => "italique",
181
+ bulletList: () => "liste à puces",
182
+ numberList: () => "liste numérotée"
183
+ }
184
+ },
185
+ tileSelect: {
186
+ deselect: () => "Désélectionner"
187
+ },
188
+ time: {
189
+ amText: () => "AM",
190
+ pmText: () => "PM",
191
+ hoursLabelText: () => "h",
192
+ minutesLabelText: () => "min",
193
+ hoursAriaLabelText: () => "Heures",
194
+ minutesAriaLabelText: () => "Minutes"
195
+ },
196
+ toast: {
197
+ ariaLabels: {
198
+ close: () => "Fermer"
199
+ }
200
+ },
201
+ verticalMenuFullScreen: {
202
+ ariaLabels: {
203
+ close: () => "Fermer"
204
+ }
205
+ }
206
+ };
207
+ export default frFR;
@@ -1,2 +1,8 @@
1
1
  export type { default } from "./locale";
2
- export { default as EnGb } from "./en-gb";
2
+ export { default as enGB } from "./en-gb";
3
+ export { default as deDE } from "./de-de";
4
+ export { default as enCA } from "./en-ca";
5
+ export { default as enUS } from "./en-us";
6
+ export { default as esES } from "./es-es";
7
+ export { default as frCA } from "./fr-ca";
8
+ export { default as frFR } from "./fr-fr";
@@ -1 +1,7 @@
1
- export { default as EnGb } from "./en-gb";
1
+ export { default as enGB } from "./en-gb";
2
+ export { default as deDE } from "./de-de";
3
+ export { default as enCA } from "./en-ca";
4
+ export { default as enUS } from "./en-us";
5
+ export { default as esES } from "./es-es";
6
+ export { default as frCA } from "./fr-ca";
7
+ export { default as frFR } from "./fr-fr";
@@ -32,7 +32,6 @@ const StyledEditorContainer = exports.StyledEditorContainer = _styledComponents.
32
32
  div.DraftEditor-root {
33
33
  min-height: inherit;
34
34
  height: 100%;
35
- min-width: 290px;
36
35
  margin: 4px;
37
36
  }
38
37
 
@@ -40,7 +39,6 @@ const StyledEditorContainer = exports.StyledEditorContainer = _styledComponents.
40
39
  div.public-DraftEditor-content {
41
40
  min-height: inherit;
42
41
  height: 100%;
43
- min-width: 290px;
44
42
  background-color: var(--colorsUtilityYang100);
45
43
  line-height: ${lineHeight}px;
46
44
 
@@ -0,0 +1,3 @@
1
+ import Locale from "./locale";
2
+ declare const deDE: Partial<Locale>;
3
+ export default deDE;
@@ -0,0 +1,213 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _de = _interopRequireDefault(require("date-fns/locale/de"));
8
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
+ const isSingular = count => (typeof count === "string" ? parseInt(count) : count) === 1;
10
+ const deDE = {
11
+ locale: () => "de-DE",
12
+ actions: {
13
+ edit: () => "Bearbeiten",
14
+ delete: () => "Löschen"
15
+ },
16
+ actionPopover: {
17
+ ariaLabel: () => "Aktionen"
18
+ },
19
+ advancedColorPicker: {
20
+ ariaLabel: () => "Farbe ändern",
21
+ currentColorDescriptionTerm: () => "Aktuell zugewiesene Farbe:",
22
+ currentColorAssigned: currentColor => currentColor
23
+ },
24
+ batchSelection: {
25
+ selected: count => `${count} ausgewählt`
26
+ },
27
+ breadcrumbs: {
28
+ ariaLabel: () => "Breadcrumbs"
29
+ },
30
+ confirm: {
31
+ no: () => "Nein",
32
+ yes: () => "Ja"
33
+ },
34
+ characterCount: {
35
+ tooManyCharacters: formattedCount => `${formattedCount} Zeichen zu viel`,
36
+ charactersLeft: formattedCount => `${formattedCount} Zeichen übrig`,
37
+ visuallyHiddenHint: formattedCount => `Sie können bis zu ${formattedCount} Zeichen eingeben.`
38
+ },
39
+ date: {
40
+ dateFnsLocale: () => _de.default,
41
+ ariaLabels: {
42
+ previousMonthButton: () => "Vorheriger Monat",
43
+ nextMonthButton: () => "Nächster Monat"
44
+ }
45
+ },
46
+ dialog: {
47
+ ariaLabels: {
48
+ close: () => "Schließen"
49
+ }
50
+ },
51
+ dialogFullScreen: {
52
+ ariaLabels: {
53
+ close: () => "Schließen"
54
+ }
55
+ },
56
+ dismissibleBox: {
57
+ ariaLabels: {
58
+ close: () => "Schließen"
59
+ }
60
+ },
61
+ errors: {
62
+ messages: {
63
+ formSummary: /* istanbul ignore next */
64
+ (errors, warnings, type) => {
65
+ const warningPlural = isSingular(warnings) ? "Warnung" : "Warnungen";
66
+ if (errors && warnings && type === "warning") {
67
+ return ["und", `${warnings} ${warningPlural}`];
68
+ }
69
+ if (errors) {
70
+ return ["Es gibt", `${errors} Fehler`];
71
+ }
72
+ if (warnings) {
73
+ return ["Es gibt", `${warnings} ${warningPlural}`];
74
+ }
75
+ return null;
76
+ }
77
+ }
78
+ },
79
+ fileInput: {
80
+ dragAndDrop: () => "oder per Drag & Drop ablegen",
81
+ selectFile: () => "Datei auswählen",
82
+ fileUploadStatus: () => "Status",
83
+ actions: {
84
+ cancel: () => "Upload abbrechen",
85
+ clear: () => "Löschen",
86
+ delete: () => "Datei löschen"
87
+ }
88
+ },
89
+ heading: {
90
+ backLinkAriaLabel: () => "Zurück"
91
+ },
92
+ link: {
93
+ skipLinkLabel: () => "Zum Hauptinhalt springen"
94
+ },
95
+ loader: {
96
+ loading: () => "Laden"
97
+ },
98
+ loaderSpinner: {
99
+ loading: () => "Laden..."
100
+ },
101
+ menuFullscreen: {
102
+ ariaLabels: {
103
+ closeButton: () => "Schließen"
104
+ }
105
+ },
106
+ message: {
107
+ closeButtonAriaLabel: () => "Schließen"
108
+ },
109
+ numeralDate: {
110
+ validation: {
111
+ day: (month, daysInMonth) => {
112
+ if (month && daysInMonth) {
113
+ return `Tag in ${month} muss eine Zahl von 1- ${daysInMonth} sein`;
114
+ }
115
+ return "Der Tag muss eine Zahl zwischen 1 und 31 sein.";
116
+ },
117
+ month: () => "Der Monat muss eine Zahl zwischen 1 und 12 sein.",
118
+ year: () => "Das Jahr muss eine Zahl zwischen 1000 und 2200 sein."
119
+ },
120
+ labels: {
121
+ day: () => "Tag",
122
+ month: () => "Monat",
123
+ year: () => "Jahr"
124
+ }
125
+ },
126
+ pager: {
127
+ show: () => "Anzeigen",
128
+ records: (count, showNumber = true) => {
129
+ const noun = isSingular(count) ? "Element" : "Elemente";
130
+ return showNumber ? `${count} ${noun}` : noun;
131
+ },
132
+ first: () => "Erste",
133
+ last: () => "Letzte",
134
+ next: () => "Weiter",
135
+ previous: () => "Vorherige",
136
+ pageX: () => "Seite",
137
+ ofY: count => `von ${count}`
138
+ },
139
+ password: {
140
+ ariaLiveShownMessage: () => "Ihr Passwort wurde angezeigt. Bewegen Sie den Cursor über das Passwort, um es sich vorlesen zu lassen, wenn dies sicher ist.",
141
+ ariaLiveHiddenMessage: () => "Ihr Passwort ist derzeit ausgeblendet."
142
+ },
143
+ progressTracker: {
144
+ of: () => "von"
145
+ },
146
+ pod: {
147
+ undo: () => "Rückgängig"
148
+ },
149
+ search: {
150
+ searchButtonText: () => "Suchen"
151
+ },
152
+ select: {
153
+ actionButtonText: () => "Neues Element hinzufügen",
154
+ placeholder: () => "Bitte auswählen...",
155
+ noResultsForTerm: term => `Es wurden keine Ergebnisse für ${term} gefunden.`
156
+ },
157
+ sidebar: {
158
+ ariaLabels: {
159
+ close: () => "Schließen"
160
+ }
161
+ },
162
+ sort: {
163
+ accessibleName: (sortContent, sortType) => `Alle ${sortContent || "inhalte"}${sortType ? ` in der Reihenfolge ${sortType === "ascending" ? "aufsteigend" : "absteigend"} sortieren.` : " in der Reihenfolge aufsteigend oder absteigend sortieren."}`
164
+ },
165
+ splitButton: {
166
+ ariaLabel: () => "Mehr anzeigen"
167
+ },
168
+ stepFlow: {
169
+ stepLabel: (currentStep, totalSteps) => `Schritt ${currentStep} von ${totalSteps}`,
170
+ screenReaderOnlyTitle: (title, currentStep, totalSteps, category) => `${category ? `${category}.` : ""} ${title}. Schritt ${currentStep} von ${totalSteps}.`,
171
+ closeIconAriaLabel: () => "Schließen"
172
+ },
173
+ switch: {
174
+ on: () => "EIN",
175
+ off: () => "AUS"
176
+ },
177
+ textEditor: {
178
+ tooltipMessages: {
179
+ bold: () => "Fett",
180
+ italic: () => "Kursiv",
181
+ bulletList: () => "Aufzählung mit Punkten",
182
+ numberList: () => "Nummerierte Liste"
183
+ },
184
+ ariaLabels: {
185
+ bold: () => "fett",
186
+ italic: () => "kursiv",
187
+ bulletList: () => "Aufzählung mit Punkten",
188
+ numberList: () => "Nummerierte Liste"
189
+ }
190
+ },
191
+ tileSelect: {
192
+ deselect: () => "Auswahl aufheben"
193
+ },
194
+ time: {
195
+ amText: () => "AM",
196
+ pmText: () => "PM",
197
+ hoursLabelText: () => "h",
198
+ minutesLabelText: () => "min",
199
+ hoursAriaLabelText: () => "Stunden",
200
+ minutesAriaLabelText: () => "Minuten"
201
+ },
202
+ toast: {
203
+ ariaLabels: {
204
+ close: () => "Schließen"
205
+ }
206
+ },
207
+ verticalMenuFullScreen: {
208
+ ariaLabels: {
209
+ close: () => "Schließen"
210
+ }
211
+ }
212
+ };
213
+ var _default = exports.default = deDE;
@@ -0,0 +1,3 @@
1
+ import Locale from "./locale";
2
+ declare const enCA: Partial<Locale>;
3
+ export default enCA;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _enCA = _interopRequireDefault(require("date-fns/locale/en-CA"));
8
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
+ const enCA = {
10
+ locale: () => "en-CA",
11
+ date: {
12
+ dateFnsLocale: () => _enCA.default,
13
+ ariaLabels: {
14
+ previousMonthButton: () => "Previous month",
15
+ nextMonthButton: () => "Next month"
16
+ }
17
+ }
18
+ };
19
+ var _default = exports.default = enCA;
@@ -0,0 +1,3 @@
1
+ import Locale from "./locale";
2
+ declare const enUS: Partial<Locale>;
3
+ export default enUS;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _enUS = _interopRequireDefault(require("date-fns/locale/en-US"));
8
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
+ const enUS = {
10
+ locale: () => "en-US",
11
+ date: {
12
+ dateFnsLocale: () => _enUS.default,
13
+ ariaLabels: {
14
+ previousMonthButton: () => "Previous month",
15
+ nextMonthButton: () => "Next month"
16
+ }
17
+ }
18
+ };
19
+ var _default = exports.default = enUS;
@@ -0,0 +1,3 @@
1
+ import Locale from "./locale";
2
+ declare const esES: Partial<Locale>;
3
+ export default esES;