carbon-react 156.2.1 → 156.3.1
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/esm/components/box/box.component.d.ts +1 -1
- package/esm/components/form/form.style.js +1 -1
- package/esm/components/select/option-group-header/option-group-header.component.d.ts +2 -2
- package/esm/components/select/option-row/option-row.component.d.ts +2 -2
- package/esm/locales/fr-fr.js +1 -1
- package/lib/components/box/box.component.d.ts +1 -1
- package/lib/components/form/form.style.js +1 -1
- package/lib/components/select/option-group-header/option-group-header.component.d.ts +2 -2
- package/lib/components/select/option-row/option-row.component.d.ts +2 -2
- package/lib/locales/fr-fr.js +1 -1
- package/package.json +4 -7
- package/esm/components/text-editor/__internal__/plugins/CharacterCounter/__test__/character-counter.component.d.ts +0 -10
- package/lib/components/text-editor/__internal__/plugins/CharacterCounter/__test__/character-counter.component.d.ts +0 -10
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { SpaceProps, LayoutProps, FlexboxProps, PositionProps, GridProps } from "styled-system";
|
|
3
3
|
import * as DesignTokens from "@sage/design-tokens/js/base/common";
|
|
4
|
-
import { Gap } from "style/utils/box-gap";
|
|
4
|
+
import { type Gap } from "../../style/utils/box-gap";
|
|
5
5
|
import { TagProps } from "../../__internal__/utils/helpers/tags";
|
|
6
6
|
export type OverflowWrap = "break-word" | "anywhere";
|
|
7
7
|
export type ScrollVariant = "light" | "dark";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t,{css as
|
|
1
|
+
import t,{css as i}from"styled-components";import{padding as o,space as e}from"styled-system";import l from"../../__internal__/form-field/form-field.style.js";import s from"../../style/themes/apply-base-theme.js";import r from"../inline-inputs/inline-inputs.style.js";import n from"../select/select.style.js";import{StyledSelectMultiSelect as m}from"../select/multi-select/multi-select.style.js";import a from"../switch/switch.style.js";const d=t.div.withConfig({displayName:"form.style__StyledFormContent",componentId:"sc-24b70795-0"})(["height:100%;"," ",""],(({stickyFooter:t,isInModal:o})=>t&&o&&i(["flex-grow:1;min-height:0;overflow-y:auto;"])),(({fieldSpacing:t})=>t&&i(["--fieldSpacing:",";","{margin-top:var(--spacing000);}"," ",","," ",","," ",","," ","{margin-bottom:var(--spacing000);}"],t,l,r,l,r,n,r,m,a,l))),p=t.div.attrs(s).withConfig({displayName:"form.style__StyledFormFooter",componentId:"sc-24b70795-1"})([""," "," "," ",""],(({hasFooterChildren:t})=>!t&&i(["align-items:center;display:flex;flex-wrap:wrap;gap:var(--sizing200);"])),(({buttonAlignment:t})=>"right"===t&&i(["justify-content:flex-end;"])),(({stickyFooter:t,stickyFooterVariant:o,fullWidthButtons:e})=>i([""," "," ",""],!t&&i(["margin-top:48px;"]),t&&i(["background-color:",";box-shadow:var(--boxShadow150);box-sizing:border-box;"," padding:16px 32px;width:100%;z-index:1000;position:sticky;bottom:0;"],"light"===o?"var(--colorsUtilityYang100)":"var(--colorsUtilityMajor025)","grey"===o&&"border-top: 1px solid var(--colorsUtilityMajor050);"),e&&i(["flex-direction:column;align-items:stretch;"]))),o),f=t.form.attrs(s).withConfig({displayName:"form.style__StyledForm",componentId:"sc-24b70795-2"})([""," "," ",""],e,(({height:t})=>t&&i(["height:",";"],t)),(({stickyFooter:t,isInModal:o})=>t&&i(["display:flex;flex-direction:column;position:relative;",""],o&&i(["flex-grow:1;min-height:0;height:100%;"])))),g=t.div.withConfig({displayName:"form.style__StyledRightButtons",componentId:"sc-24b70795-3"})(["display:flex;gap:var(--sizing200);",""],(({buttonAlignment:t})=>"left"===t&&"flex-grow: 1;")),c=t.div.withConfig({displayName:"form.style__StyledLeftButtons",componentId:"sc-24b70795-4"})(["display:flex;justify-content:flex-end;gap:var(--sizing200);",""],(({buttonAlignment:t})=>"right"===t&&"flex-grow: 1;"));export{f as StyledForm,d as StyledFormContent,p as StyledFormFooter,c as StyledLeftButtons,g as StyledRightButtons};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { CSSProperties } from "styled-components";
|
|
3
|
-
import { TagProps } from "__internal__/utils/helpers/tags";
|
|
2
|
+
import { type CSSProperties } from "styled-components";
|
|
3
|
+
import { type TagProps } from "../../../__internal__/utils/helpers/tags";
|
|
4
4
|
import { IconProps } from "../../icon";
|
|
5
5
|
export interface OptionGroupHeaderProps extends TagProps {
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { CSSProperties } from "styled-components";
|
|
3
|
-
import { TagProps } from "__internal__/utils/helpers/tags";
|
|
2
|
+
import { type CSSProperties } from "styled-components";
|
|
3
|
+
import { type TagProps } from "../../../__internal__/utils/helpers/tags";
|
|
4
4
|
export interface OptionRowProps extends TagProps {
|
|
5
5
|
/** The option's visible text, displayed within <Textbox> of <Select> */
|
|
6
6
|
text: string;
|
package/esm/locales/fr-fr.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{fr as e}from"date-fns/locale/fr";const r=e=>1===("string"==typeof e?parseInt(e):e),a={locale:()=>"fr-FR",actions:{edit:()=>"Modifier",delete:()=>"Supprimer"},actionPopover:{ariaLabel:()=>"actions"},advancedColorPicker:{ariaLabel:()=>"Changer de couleur",currentColorDescriptionTerm:()=>"Couleur actuelle attribuée :",currentColorAssigned:e=>e},batchSelection:{selected:e=>`${e} sélectionné(s)`},breadcrumbs:{ariaLabel:()=>"Chemin de navigation"},confirm:{no:()=>"Non",yes:()=>"Oui"},characterCount:{tooManyCharacters:(e,r)=>1===e?`il y a ${r} caractère de trop`:`${r} caractères de trop`,charactersLeft:(e,r)=>1===e?`${r} caractère restant`:`${r} caractères restants`,visuallyHiddenHint:e=>`vous pouvez saisir jusqu'à ${e} caractères.`},date:{dateFnsLocale:()=>e,ariaLabels:{previousMonthButton:()=>"Mois précédent",nextMonthButton:()=>"Mois suivant"}},dialog:{ariaLabels:{close:()=>"Fermer"}},dismissibleBox:{ariaLabels:{close:()=>"Fermer"}},errors:{messages:{formSummary:(e,a,t)=>{const n=r(e)?"erreur":"erreurs",o=r(a)?"avertissement":"avertissements";return e&&a&&"warning"===t?["et",`${a} ${o}`]:e?["Il y a",`${e} ${n}`]:a?["Il y a",`${a} ${o}`]:null}}},fileInput:{dragAndDrop:()=>"ou glisser et déposer votre fichier",selectFile:()=>"Sélectionnez le fichier",fileUploadStatus:()=>"Statut du téléchargement de fichiers",actions:{cancel:()=>"Annuler le téléchargement",clear:()=>"Effacer",delete:()=>"Supprimer le fichier"}},heading:{backLinkAriaLabel:()=>"Retour"},link:{skipLinkLabel:()=>"Passer au contenu principal"},loader:{loading:()=>"Chargement en cours"},loaderSpinner:{loading:()=>"Chargement en cours..."},loaderStar:{loading:()=>"Chargement en cours..."},menuFullscreen:{ariaLabels:{closeButton:()=>"Fermer"}},message:{closeButtonAriaLabel:()=>"Fermer",error:()=>"Erreur",info:()=>"Information",success:()=>"Action réussie",warning:()=>"Avertissement",neutral:()=>"Information",ai:()=>"Information générée par IA"},numeralDate:{validation:{day:(e,r)=>e&&r?`Le jour du ${e} doit être un nombre compris entre 1- ${r}`:"Le jour doit être un nombre compris entre 1 et 31 jours.",month:()=>"Le mois doit être un nombre compris entre 1 et 12.",year:()=>"L'année doit être un nombre compris entre 1800 et 2200."},labels:{day:()=>"Jour",month:()=>"Mois",year:()=>"Année"}},pager:{show:()=>"Afficher",records:(e,a=!0)=>{const t=r(e)?"élément":"éléments";return a?`${e} ${t}`:t},first:()=>"Première",last:()=>"Dernière",next:()=>"Suivante",previous:()=>"Précédente",pageX:()=>"Page",ofY:e=>`de ${e}`},password:{buttonLabelHide:()=>"Masquer",buttonLabelShow:()=>"Afficher",ariaLabelHide:()=>"Masquer le mot de passe",ariaLabelShow:()=>"Afficher le mot de passe",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.",ariaLiveHiddenMessage:()=>"Votre mot de passe est actuellement caché."},progressTracker:{of:()=>"de"},pod:{undo:()=>"Annuler"},textEditor:{boldAria:()=>"Gras",cancelButton:()=>"Annuler",cancelButtonAria:()=>"Annuler",characterCounter:e=>`${"number"==typeof e?e.toString():e} caractères restants`,characterLimit:e=>`Vous avez dépassé de ${e} caractères la limite autorisée`,contentEditorAria:()=>"Éditeur de texte enrichi",italicAria:()=>"Italique",orderedListAria:()=>"Liste ordonnée",saveButton:()=>"Enregistrer",saveButtonAria:()=>"Enregistrer",toolbarAriaLabel:()=>"Mise en forme",unorderedListAria:()=>"Liste non ordonnée"},search:{searchButtonText:()=>"Rechercher"},select:{actionButtonText:()=>"Ajouter un nouvel élément",placeholder:()=>"Sélectionner...",noResultsForTerm:e=>`Aucun résultat pour ${e}`},sidebar:{ariaLabels:{close:()=>"Fermer"}},sort:{accessibleName:(e,r)=>`Trier tous les contenus ${e&&`de type ${e}`}${r?` par ordre ${"ascending"===r?"croissant":"décroissant"}.`:" par ordre croissant ou décroissant."}`},splitButton:{ariaLabel:()=>"Afficher plus"},stepFlow:{stepLabel:(e,r)=>`Étape ${e} de ${r}`,screenReaderOnlyTitle:(e,r,a,t)=>`${t?`${t}.`:""} ${e}. Étape ${r} de ${a}.`,closeIconAriaLabel:()=>"Fermer"},switch:{on:()=>"Oui",off:()=>"
|
|
1
|
+
import{fr as e}from"date-fns/locale/fr";const r=e=>1===("string"==typeof e?parseInt(e):e),a={locale:()=>"fr-FR",actions:{edit:()=>"Modifier",delete:()=>"Supprimer"},actionPopover:{ariaLabel:()=>"actions"},advancedColorPicker:{ariaLabel:()=>"Changer de couleur",currentColorDescriptionTerm:()=>"Couleur actuelle attribuée :",currentColorAssigned:e=>e},batchSelection:{selected:e=>`${e} sélectionné(s)`},breadcrumbs:{ariaLabel:()=>"Chemin de navigation"},confirm:{no:()=>"Non",yes:()=>"Oui"},characterCount:{tooManyCharacters:(e,r)=>1===e?`il y a ${r} caractère de trop`:`${r} caractères de trop`,charactersLeft:(e,r)=>1===e?`${r} caractère restant`:`${r} caractères restants`,visuallyHiddenHint:e=>`vous pouvez saisir jusqu'à ${e} caractères.`},date:{dateFnsLocale:()=>e,ariaLabels:{previousMonthButton:()=>"Mois précédent",nextMonthButton:()=>"Mois suivant"}},dialog:{ariaLabels:{close:()=>"Fermer"}},dismissibleBox:{ariaLabels:{close:()=>"Fermer"}},errors:{messages:{formSummary:(e,a,t)=>{const n=r(e)?"erreur":"erreurs",o=r(a)?"avertissement":"avertissements";return e&&a&&"warning"===t?["et",`${a} ${o}`]:e?["Il y a",`${e} ${n}`]:a?["Il y a",`${a} ${o}`]:null}}},fileInput:{dragAndDrop:()=>"ou glisser et déposer votre fichier",selectFile:()=>"Sélectionnez le fichier",fileUploadStatus:()=>"Statut du téléchargement de fichiers",actions:{cancel:()=>"Annuler le téléchargement",clear:()=>"Effacer",delete:()=>"Supprimer le fichier"}},heading:{backLinkAriaLabel:()=>"Retour"},link:{skipLinkLabel:()=>"Passer au contenu principal"},loader:{loading:()=>"Chargement en cours"},loaderSpinner:{loading:()=>"Chargement en cours..."},loaderStar:{loading:()=>"Chargement en cours..."},menuFullscreen:{ariaLabels:{closeButton:()=>"Fermer"}},message:{closeButtonAriaLabel:()=>"Fermer",error:()=>"Erreur",info:()=>"Information",success:()=>"Action réussie",warning:()=>"Avertissement",neutral:()=>"Information",ai:()=>"Information générée par IA"},numeralDate:{validation:{day:(e,r)=>e&&r?`Le jour du ${e} doit être un nombre compris entre 1- ${r}`:"Le jour doit être un nombre compris entre 1 et 31 jours.",month:()=>"Le mois doit être un nombre compris entre 1 et 12.",year:()=>"L'année doit être un nombre compris entre 1800 et 2200."},labels:{day:()=>"Jour",month:()=>"Mois",year:()=>"Année"}},pager:{show:()=>"Afficher",records:(e,a=!0)=>{const t=r(e)?"élément":"éléments";return a?`${e} ${t}`:t},first:()=>"Première",last:()=>"Dernière",next:()=>"Suivante",previous:()=>"Précédente",pageX:()=>"Page",ofY:e=>`de ${e}`},password:{buttonLabelHide:()=>"Masquer",buttonLabelShow:()=>"Afficher",ariaLabelHide:()=>"Masquer le mot de passe",ariaLabelShow:()=>"Afficher le mot de passe",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.",ariaLiveHiddenMessage:()=>"Votre mot de passe est actuellement caché."},progressTracker:{of:()=>"de"},pod:{undo:()=>"Annuler"},textEditor:{boldAria:()=>"Gras",cancelButton:()=>"Annuler",cancelButtonAria:()=>"Annuler",characterCounter:e=>`${"number"==typeof e?e.toString():e} caractères restants`,characterLimit:e=>`Vous avez dépassé de ${e} caractères la limite autorisée`,contentEditorAria:()=>"Éditeur de texte enrichi",italicAria:()=>"Italique",orderedListAria:()=>"Liste ordonnée",saveButton:()=>"Enregistrer",saveButtonAria:()=>"Enregistrer",toolbarAriaLabel:()=>"Mise en forme",unorderedListAria:()=>"Liste non ordonnée"},search:{searchButtonText:()=>"Rechercher"},select:{actionButtonText:()=>"Ajouter un nouvel élément",placeholder:()=>"Sélectionner...",noResultsForTerm:e=>`Aucun résultat pour ${e}`},sidebar:{ariaLabels:{close:()=>"Fermer"}},sort:{accessibleName:(e,r)=>`Trier tous les contenus ${e&&`de type ${e}`}${r?` par ordre ${"ascending"===r?"croissant":"décroissant"}.`:" par ordre croissant ou décroissant."}`},splitButton:{ariaLabel:()=>"Afficher plus"},stepFlow:{stepLabel:(e,r)=>`Étape ${e} de ${r}`,screenReaderOnlyTitle:(e,r,a,t)=>`${t?`${t}.`:""} ${e}. Étape ${r} de ${a}.`,closeIconAriaLabel:()=>"Fermer"},switch:{on:()=>"Oui",off:()=>"Non"},tileSelect:{deselect:()=>"Désélectionner"},time:{amText:()=>"AM",pmText:()=>"PM",hoursLabelText:()=>"h",minutesLabelText:()=>"min",hoursAriaLabelText:()=>"Heures",minutesAriaLabelText:()=>"Minutes"},toast:{ariaLabels:{close:()=>"Fermer"},error:()=>"",info:()=>"",success:()=>"",warning:()=>"",neutral:()=>"",notification:()=>""},verticalMenuFullScreen:{ariaLabels:{close:()=>"Fermer"}}};export{a as default};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { SpaceProps, LayoutProps, FlexboxProps, PositionProps, GridProps } from "styled-system";
|
|
3
3
|
import * as DesignTokens from "@sage/design-tokens/js/base/common";
|
|
4
|
-
import { Gap } from "style/utils/box-gap";
|
|
4
|
+
import { type Gap } from "../../style/utils/box-gap";
|
|
5
5
|
import { TagProps } from "../../__internal__/utils/helpers/tags";
|
|
6
6
|
export type OverflowWrap = "break-word" | "anywhere";
|
|
7
7
|
export type ScrollVariant = "light" | "dark";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var t=require("styled-components"),e=require("styled-system"),i=require("../../__internal__/form-field/form-field.style.js"),s=require("../../style/themes/apply-base-theme.js"),o=require("../inline-inputs/inline-inputs.style.js"),l=require("../select/select.style.js"),r=require("../select/multi-select/multi-select.style.js"),n=require("../switch/switch.style.js");function a(t){return t&&t.__esModule?t:{default:t}}var d=a(t);const c=d.default.div.withConfig({displayName:"form.style__StyledFormContent",componentId:"sc-
|
|
1
|
+
"use strict";var t=require("styled-components"),e=require("styled-system"),i=require("../../__internal__/form-field/form-field.style.js"),s=require("../../style/themes/apply-base-theme.js"),o=require("../inline-inputs/inline-inputs.style.js"),l=require("../select/select.style.js"),r=require("../select/multi-select/multi-select.style.js"),n=require("../switch/switch.style.js");function a(t){return t&&t.__esModule?t:{default:t}}var d=a(t);const c=d.default.div.withConfig({displayName:"form.style__StyledFormContent",componentId:"sc-24b70795-0"})(["height:100%;"," ",""],(({stickyFooter:e,isInModal:i})=>e&&i&&t.css(["flex-grow:1;min-height:0;overflow-y:auto;"])),(({fieldSpacing:e})=>e&&t.css(["--fieldSpacing:",";","{margin-top:var(--spacing000);}"," ",","," ",","," ",","," ","{margin-bottom:var(--spacing000);}"],e,i.default,o.default,i.default,o.default,l.default,o.default,r.StyledSelectMultiSelect,n.default,i.default))),f=d.default.div.attrs(s.default).withConfig({displayName:"form.style__StyledFormFooter",componentId:"sc-24b70795-1"})([""," "," "," ",""],(({hasFooterChildren:e})=>!e&&t.css(["align-items:center;display:flex;flex-wrap:wrap;gap:var(--sizing200);"])),(({buttonAlignment:e})=>"right"===e&&t.css(["justify-content:flex-end;"])),(({stickyFooter:e,stickyFooterVariant:i,fullWidthButtons:s})=>t.css([""," "," ",""],!e&&t.css(["margin-top:48px;"]),e&&t.css(["background-color:",";box-shadow:var(--boxShadow150);box-sizing:border-box;"," padding:16px 32px;width:100%;z-index:1000;position:sticky;bottom:0;"],"light"===i?"var(--colorsUtilityYang100)":"var(--colorsUtilityMajor025)","grey"===i&&"border-top: 1px solid var(--colorsUtilityMajor050);"),s&&t.css(["flex-direction:column;align-items:stretch;"]))),e.padding),u=d.default.form.attrs(s.default).withConfig({displayName:"form.style__StyledForm",componentId:"sc-24b70795-2"})([""," "," ",""],e.space,(({height:e})=>e&&t.css(["height:",";"],e)),(({stickyFooter:e,isInModal:i})=>e&&t.css(["display:flex;flex-direction:column;position:relative;",""],i&&t.css(["flex-grow:1;min-height:0;height:100%;"])))),y=d.default.div.withConfig({displayName:"form.style__StyledRightButtons",componentId:"sc-24b70795-3"})(["display:flex;gap:var(--sizing200);",""],(({buttonAlignment:t})=>"left"===t&&"flex-grow: 1;")),p=d.default.div.withConfig({displayName:"form.style__StyledLeftButtons",componentId:"sc-24b70795-4"})(["display:flex;justify-content:flex-end;gap:var(--sizing200);",""],(({buttonAlignment:t})=>"right"===t&&"flex-grow: 1;"));exports.StyledForm=u,exports.StyledFormContent=c,exports.StyledFormFooter=f,exports.StyledLeftButtons=p,exports.StyledRightButtons=y;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { CSSProperties } from "styled-components";
|
|
3
|
-
import { TagProps } from "__internal__/utils/helpers/tags";
|
|
2
|
+
import { type CSSProperties } from "styled-components";
|
|
3
|
+
import { type TagProps } from "../../../__internal__/utils/helpers/tags";
|
|
4
4
|
import { IconProps } from "../../icon";
|
|
5
5
|
export interface OptionGroupHeaderProps extends TagProps {
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { CSSProperties } from "styled-components";
|
|
3
|
-
import { TagProps } from "__internal__/utils/helpers/tags";
|
|
2
|
+
import { type CSSProperties } from "styled-components";
|
|
3
|
+
import { type TagProps } from "../../../__internal__/utils/helpers/tags";
|
|
4
4
|
export interface OptionRowProps extends TagProps {
|
|
5
5
|
/** The option's visible text, displayed within <Textbox> of <Select> */
|
|
6
6
|
text: string;
|
package/lib/locales/fr-fr.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("date-fns/locale/fr");const r=e=>1===("string"==typeof e?parseInt(e):e),t={locale:()=>"fr-FR",actions:{edit:()=>"Modifier",delete:()=>"Supprimer"},actionPopover:{ariaLabel:()=>"actions"},advancedColorPicker:{ariaLabel:()=>"Changer de couleur",currentColorDescriptionTerm:()=>"Couleur actuelle attribuée :",currentColorAssigned:e=>e},batchSelection:{selected:e=>`${e} sélectionné(s)`},breadcrumbs:{ariaLabel:()=>"Chemin de navigation"},confirm:{no:()=>"Non",yes:()=>"Oui"},characterCount:{tooManyCharacters:(e,r)=>1===e?`il y a ${r} caractère de trop`:`${r} caractères de trop`,charactersLeft:(e,r)=>1===e?`${r} caractère restant`:`${r} caractères restants`,visuallyHiddenHint:e=>`vous pouvez saisir jusqu'à ${e} caractères.`},date:{dateFnsLocale:()=>e.fr,ariaLabels:{previousMonthButton:()=>"Mois précédent",nextMonthButton:()=>"Mois suivant"}},dialog:{ariaLabels:{close:()=>"Fermer"}},dismissibleBox:{ariaLabels:{close:()=>"Fermer"}},errors:{messages:{formSummary:(e,t,a)=>{const n=r(e)?"erreur":"erreurs",
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("date-fns/locale/fr");const r=e=>1===("string"==typeof e?parseInt(e):e),t={locale:()=>"fr-FR",actions:{edit:()=>"Modifier",delete:()=>"Supprimer"},actionPopover:{ariaLabel:()=>"actions"},advancedColorPicker:{ariaLabel:()=>"Changer de couleur",currentColorDescriptionTerm:()=>"Couleur actuelle attribuée :",currentColorAssigned:e=>e},batchSelection:{selected:e=>`${e} sélectionné(s)`},breadcrumbs:{ariaLabel:()=>"Chemin de navigation"},confirm:{no:()=>"Non",yes:()=>"Oui"},characterCount:{tooManyCharacters:(e,r)=>1===e?`il y a ${r} caractère de trop`:`${r} caractères de trop`,charactersLeft:(e,r)=>1===e?`${r} caractère restant`:`${r} caractères restants`,visuallyHiddenHint:e=>`vous pouvez saisir jusqu'à ${e} caractères.`},date:{dateFnsLocale:()=>e.fr,ariaLabels:{previousMonthButton:()=>"Mois précédent",nextMonthButton:()=>"Mois suivant"}},dialog:{ariaLabels:{close:()=>"Fermer"}},dismissibleBox:{ariaLabels:{close:()=>"Fermer"}},errors:{messages:{formSummary:(e,t,a)=>{const n=r(e)?"erreur":"erreurs",o=r(t)?"avertissement":"avertissements";return e&&t&&"warning"===a?["et",`${t} ${o}`]:e?["Il y a",`${e} ${n}`]:t?["Il y a",`${t} ${o}`]:null}}},fileInput:{dragAndDrop:()=>"ou glisser et déposer votre fichier",selectFile:()=>"Sélectionnez le fichier",fileUploadStatus:()=>"Statut du téléchargement de fichiers",actions:{cancel:()=>"Annuler le téléchargement",clear:()=>"Effacer",delete:()=>"Supprimer le fichier"}},heading:{backLinkAriaLabel:()=>"Retour"},link:{skipLinkLabel:()=>"Passer au contenu principal"},loader:{loading:()=>"Chargement en cours"},loaderSpinner:{loading:()=>"Chargement en cours..."},loaderStar:{loading:()=>"Chargement en cours..."},menuFullscreen:{ariaLabels:{closeButton:()=>"Fermer"}},message:{closeButtonAriaLabel:()=>"Fermer",error:()=>"Erreur",info:()=>"Information",success:()=>"Action réussie",warning:()=>"Avertissement",neutral:()=>"Information",ai:()=>"Information générée par IA"},numeralDate:{validation:{day:(e,r)=>e&&r?`Le jour du ${e} doit être un nombre compris entre 1- ${r}`:"Le jour doit être un nombre compris entre 1 et 31 jours.",month:()=>"Le mois doit être un nombre compris entre 1 et 12.",year:()=>"L'année doit être un nombre compris entre 1800 et 2200."},labels:{day:()=>"Jour",month:()=>"Mois",year:()=>"Année"}},pager:{show:()=>"Afficher",records:(e,t=!0)=>{const a=r(e)?"élément":"éléments";return t?`${e} ${a}`:a},first:()=>"Première",last:()=>"Dernière",next:()=>"Suivante",previous:()=>"Précédente",pageX:()=>"Page",ofY:e=>`de ${e}`},password:{buttonLabelHide:()=>"Masquer",buttonLabelShow:()=>"Afficher",ariaLabelHide:()=>"Masquer le mot de passe",ariaLabelShow:()=>"Afficher le mot de passe",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.",ariaLiveHiddenMessage:()=>"Votre mot de passe est actuellement caché."},progressTracker:{of:()=>"de"},pod:{undo:()=>"Annuler"},textEditor:{boldAria:()=>"Gras",cancelButton:()=>"Annuler",cancelButtonAria:()=>"Annuler",characterCounter:e=>`${"number"==typeof e?e.toString():e} caractères restants`,characterLimit:e=>`Vous avez dépassé de ${e} caractères la limite autorisée`,contentEditorAria:()=>"Éditeur de texte enrichi",italicAria:()=>"Italique",orderedListAria:()=>"Liste ordonnée",saveButton:()=>"Enregistrer",saveButtonAria:()=>"Enregistrer",toolbarAriaLabel:()=>"Mise en forme",unorderedListAria:()=>"Liste non ordonnée"},search:{searchButtonText:()=>"Rechercher"},select:{actionButtonText:()=>"Ajouter un nouvel élément",placeholder:()=>"Sélectionner...",noResultsForTerm:e=>`Aucun résultat pour ${e}`},sidebar:{ariaLabels:{close:()=>"Fermer"}},sort:{accessibleName:(e,r)=>`Trier tous les contenus ${e&&`de type ${e}`}${r?` par ordre ${"ascending"===r?"croissant":"décroissant"}.`:" par ordre croissant ou décroissant."}`},splitButton:{ariaLabel:()=>"Afficher plus"},stepFlow:{stepLabel:(e,r)=>`Étape ${e} de ${r}`,screenReaderOnlyTitle:(e,r,t,a)=>`${a?`${a}.`:""} ${e}. Étape ${r} de ${t}.`,closeIconAriaLabel:()=>"Fermer"},switch:{on:()=>"Oui",off:()=>"Non"},tileSelect:{deselect:()=>"Désélectionner"},time:{amText:()=>"AM",pmText:()=>"PM",hoursLabelText:()=>"h",minutesLabelText:()=>"min",hoursAriaLabelText:()=>"Heures",minutesAriaLabelText:()=>"Minutes"},toast:{ariaLabels:{close:()=>"Fermer"},error:()=>"",info:()=>"",success:()=>"",warning:()=>"",neutral:()=>"",notification:()=>""},verticalMenuFullScreen:{ariaLabels:{close:()=>"Fermer"}}};exports.default=t;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "carbon-react",
|
|
3
|
-
"version": "156.
|
|
3
|
+
"version": "156.3.1",
|
|
4
4
|
"description": "A library of reusable React components for easily building user interfaces.",
|
|
5
5
|
"files": [
|
|
6
6
|
"lib",
|
|
@@ -22,11 +22,9 @@
|
|
|
22
22
|
"clean-lib": "rimraf ./lib && rimraf ./esm",
|
|
23
23
|
"commit": "git-cz",
|
|
24
24
|
"generate-metadata": "node ./scripts/generate_metadata/index.mjs",
|
|
25
|
-
"type-check
|
|
26
|
-
"type-check:
|
|
27
|
-
"
|
|
28
|
-
"type-check:watch": "concurrently --names 'src,playwright' -c 'cyan,yellow' 'npm run type-check:carbon -- --watch' 'npm run type-check:playwright -- --watch'",
|
|
29
|
-
"build:types": "tsc -p tsconfig-build.json --emitDeclarationOnly --outDir ./lib && tsc -p tsconfig-build.json --emitDeclarationOnly --outDir ./esm",
|
|
25
|
+
"type-check": "tsc --noEmit",
|
|
26
|
+
"type-check:watch": "tsc --noEmit --watch",
|
|
27
|
+
"build:types": "tsc -p tsconfig-build.json --outDir ./lib && tsc -p tsconfig-build.json --outDir ./esm",
|
|
30
28
|
"prepare": "husky install",
|
|
31
29
|
"test:ct": "playwright test -c playwright-ct.config.ts",
|
|
32
30
|
"test:ct:ui": "playwright test --ui -c playwright-ct.config.ts",
|
|
@@ -127,7 +125,6 @@
|
|
|
127
125
|
"browserslist": "^4.22.1",
|
|
128
126
|
"chromatic": "^6.17.4",
|
|
129
127
|
"commitizen": "^4.3.0",
|
|
130
|
-
"concurrently": "^8.2.2",
|
|
131
128
|
"conventional-changelog-conventionalcommits": "^8.0.0",
|
|
132
129
|
"core-js": "^3.33.3",
|
|
133
130
|
"css-loader": "^6.8.1",
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { LexicalEditor } from "lexical";
|
|
3
|
-
export interface CharacterCounterPluginProps {
|
|
4
|
-
/** The maximum number of characters to allow before showing the warning */
|
|
5
|
-
maxChars: number;
|
|
6
|
-
/** The Lexical editor instance */
|
|
7
|
-
editor: LexicalEditor;
|
|
8
|
-
}
|
|
9
|
-
declare const CharacterCounterPlugin: ({ maxChars, editor, }: CharacterCounterPluginProps) => React.JSX.Element;
|
|
10
|
-
export default CharacterCounterPlugin;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { LexicalEditor } from "lexical";
|
|
3
|
-
export interface CharacterCounterPluginProps {
|
|
4
|
-
/** The maximum number of characters to allow before showing the warning */
|
|
5
|
-
maxChars: number;
|
|
6
|
-
/** The Lexical editor instance */
|
|
7
|
-
editor: LexicalEditor;
|
|
8
|
-
}
|
|
9
|
-
declare const CharacterCounterPlugin: ({ maxChars, editor, }: CharacterCounterPluginProps) => React.JSX.Element;
|
|
10
|
-
export default CharacterCounterPlugin;
|