carbon-react 156.0.2 → 156.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.
Files changed (45) hide show
  1. package/esm/components/dialog/dialog.component.d.ts +40 -23
  2. package/esm/components/dialog/dialog.component.js +1 -1
  3. package/esm/components/dialog/dialog.style.d.ts +17 -8
  4. package/esm/components/dialog/dialog.style.js +1 -1
  5. package/esm/components/dialog-full-screen/dialog-full-screen.component.d.ts +3 -59
  6. package/esm/components/dialog-full-screen/dialog-full-screen.component.js +1 -1
  7. package/esm/components/dialog-full-screen/index.d.ts +0 -1
  8. package/esm/components/vertical-menu/responsive-vertical-menu/responsive-vertical-menu.component.js +1 -1
  9. package/esm/components/vertical-menu/responsive-vertical-menu/responsive-vertical-menu.style.d.ts +3 -0
  10. package/esm/components/vertical-menu/responsive-vertical-menu/responsive-vertical-menu.style.js +1 -1
  11. package/esm/index.d.ts +0 -2
  12. package/esm/index.js +1 -1
  13. package/esm/locales/de-de.js +1 -1
  14. package/esm/locales/en-gb.js +1 -1
  15. package/esm/locales/es-es.js +1 -1
  16. package/esm/locales/fr-ca.js +1 -1
  17. package/esm/locales/fr-fr.js +1 -1
  18. package/esm/locales/locale.d.ts +1 -5
  19. package/lib/components/dialog/dialog.component.d.ts +40 -23
  20. package/lib/components/dialog/dialog.component.js +1 -1
  21. package/lib/components/dialog/dialog.style.d.ts +17 -8
  22. package/lib/components/dialog/dialog.style.js +1 -1
  23. package/lib/components/dialog-full-screen/dialog-full-screen.component.d.ts +3 -59
  24. package/lib/components/dialog-full-screen/dialog-full-screen.component.js +1 -1
  25. package/lib/components/dialog-full-screen/index.d.ts +0 -1
  26. package/lib/components/vertical-menu/responsive-vertical-menu/responsive-vertical-menu.component.js +1 -1
  27. package/lib/components/vertical-menu/responsive-vertical-menu/responsive-vertical-menu.style.d.ts +3 -0
  28. package/lib/components/vertical-menu/responsive-vertical-menu/responsive-vertical-menu.style.js +1 -1
  29. package/lib/index.d.ts +0 -2
  30. package/lib/index.js +1 -1
  31. package/lib/locales/de-de.js +1 -1
  32. package/lib/locales/en-gb.js +1 -1
  33. package/lib/locales/es-es.js +1 -1
  34. package/lib/locales/fr-ca.js +1 -1
  35. package/lib/locales/fr-fr.js +1 -1
  36. package/lib/locales/locale.d.ts +1 -5
  37. package/package.json +1 -1
  38. package/esm/components/dialog-full-screen/content.style.d.ts +0 -6
  39. package/esm/components/dialog-full-screen/content.style.js +0 -1
  40. package/esm/components/dialog-full-screen/dialog-full-screen.style.d.ts +0 -6
  41. package/esm/components/dialog-full-screen/dialog-full-screen.style.js +0 -1
  42. package/lib/components/dialog-full-screen/content.style.d.ts +0 -6
  43. package/lib/components/dialog-full-screen/content.style.js +0 -1
  44. package/lib/components/dialog-full-screen/dialog-full-screen.style.d.ts +0 -6
  45. package/lib/components/dialog-full-screen/dialog-full-screen.style.js +0 -1
@@ -1,7 +1,7 @@
1
1
  import React, { RefObject } from "react";
2
+ import { DialogSizes } from "./dialog.config";
2
3
  import { ModalProps } from "../modal";
3
4
  import { TagProps } from "../../__internal__/utils/helpers/tags";
4
- import { DialogSizes } from "./dialog.config";
5
5
  type PaddingValues = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
6
6
  export interface ContentPaddingInterface {
7
7
  p?: PaddingValues;
@@ -9,12 +9,6 @@ export interface ContentPaddingInterface {
9
9
  px?: PaddingValues;
10
10
  }
11
11
  export interface DialogProps extends ModalProps, TagProps {
12
- /**
13
- * @private
14
- * @ignore
15
- * @internal
16
- * Sets className for component. INTERNAL USE ONLY. */
17
- className?: string;
18
12
  /** Prop to specify the aria-describedby property of the Dialog component */
19
13
  "aria-describedby"?: string;
20
14
  /**
@@ -28,18 +22,49 @@ export interface DialogProps extends ModalProps, TagProps {
28
22
  * or the component is labelled by an internal element other than the title.
29
23
  */
30
24
  "aria-labelledby"?: string;
31
- disableAutoFocus?: boolean;
32
- disableFocusTrap?: boolean;
33
25
  /**
34
26
  * Function to replace focus trap
35
27
  * @ignore
36
28
  * @private
37
29
  */
38
30
  bespokeFocusTrap?: (ev: KeyboardEvent, firstElement?: HTMLElement, lastElement?: HTMLElement) => void;
39
- /** Optional reference to an element meant to be focused on open */
40
- focusFirstElement?: RefObject<HTMLElement> | HTMLElement | null;
31
+ /** Child elements */
32
+ children?: React.ReactNode;
33
+ /**
34
+ * @private
35
+ * @ignore
36
+ * @internal
37
+ * Sets className for component. INTERNAL USE ONLY. */
38
+ className?: string;
39
+ /** Data tag prop bag for close Button */
40
+ closeButtonDataProps?: Pick<TagProps, "data-role" | "data-element">;
41
+ /** Padding to be set on the Dialog content */
42
+ contentPadding?: ContentPaddingInterface;
43
+ /** Reference to the scrollable content element */
44
+ contentRef?: React.ForwardedRef<HTMLDivElement>;
45
+ /** @private @internal @ignore */
46
+ "data-component"?: string;
47
+ disableAutoFocus?: boolean;
48
+ /** @deprecated Determines if the Dialog can be closed */
49
+ disableClose?: boolean;
50
+ /**
51
+ * [Legacy] Flag to remove padding from content.
52
+ * @deprecated Use `contentPadding` instead.
53
+ */
54
+ disableContentPadding?: boolean;
55
+ disableFocusTrap?: boolean;
56
+ /** an optional array of refs to containers whose content should also be reachable by tabbing from the dialog */
57
+ focusableContainers?: RefObject<HTMLElement>[];
41
58
  /** Optional selector to identify the focusable elements, if not provided a default selector is used */
42
59
  focusableSelectors?: string;
60
+ /** Optional reference to an element meant to be focused on open */
61
+ focusFirstElement?: RefObject<HTMLElement> | HTMLElement | null;
62
+ /** Whether the dialog is full-screen */
63
+ fullscreen?: boolean;
64
+ /** Change the background color of the content to grey */
65
+ greyBackground?: boolean;
66
+ /** Container for components to be displayed in the header */
67
+ headerChildren?: React.ReactNode;
43
68
  /** Allows developers to specify a specific height for the dialog. */
44
69
  height?: string;
45
70
  /** Adds Help tooltip to Header */
@@ -47,26 +72,18 @@ export interface DialogProps extends ModalProps, TagProps {
47
72
  highlightVariant?: string;
48
73
  /** A custom close event handler */
49
74
  onCancel?: (ev: React.KeyboardEvent<HTMLElement> | KeyboardEvent | React.MouseEvent<HTMLButtonElement>) => void;
75
+ /** @deprecated For legacy styling when used with Pages component. Do not use this unless using Pages within a full-screen Dialog */
76
+ pagesStyling?: boolean;
77
+ /** The ARIA role to be applied to the Dialog container */
78
+ role?: string;
50
79
  /** Determines if the close icon is shown */
51
80
  showCloseIcon?: boolean;
52
- /** Data tag prop bag for close Button */
53
- closeButtonDataProps?: Pick<TagProps, "data-role" | "data-element">;
54
81
  /** Size of dialog, default size is 750px */
55
82
  size?: DialogSizes;
56
83
  /** Subtitle displayed at top of dialog. Its consumers' responsibility to set a suitable accessible name/description for the Dialog if they pass a node to subtitle prop. */
57
84
  subtitle?: React.ReactNode;
58
85
  /** Title displayed at top of dialog. Its consumers' responsibility to set a suitable accessible name/description for the Dialog if they pass a node to title prop. */
59
86
  title?: React.ReactNode;
60
- /** The ARIA role to be applied to the Dialog container */
61
- role?: string;
62
- /** Padding to be set on the Dialog content */
63
- contentPadding?: ContentPaddingInterface;
64
- /** Change the background color of the content to grey */
65
- greyBackground?: boolean;
66
- /** an optional array of refs to containers whose content should also be reachable by tabbing from the dialog */
67
- focusableContainers?: RefObject<HTMLElement>[];
68
- /** @private @internal @ignore */
69
- "data-component"?: string;
70
87
  }
71
88
  export type DialogHandle = {
72
89
  /** Programmatically focus on root container of Dialog. */
@@ -1 +1 @@
1
- import{jsx as e,jsxs as o}from"react/jsx-runtime";import{forwardRef as t,useRef as r,useImperativeHandle as a}from"react";import l from"../../__internal__/utils/helpers/guid/index.js";import n from"../modal/modal.component.js";import{Heading as i}from"../heading/heading.component.js";import s from"../../__internal__/utils/helpers/tags/tags.js";import{DialogPositioner as c,StyledDialog as d,StyledDialogContent as u,StyledDialogTitle as p}from"./dialog.style.js";import b from"../../__internal__/focus-trap/focus-trap.component.js";import f from"../icon-button/icon-button.component.js";import m from"../icon/icon.component.js";import g from"../../hooks/__internal__/useLocale/useLocale.js";import h from"../../hooks/__internal__/useModalAria/useModalAria.js";function y(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}function O(e){for(var o=1;o<arguments.length;o++){var t=null!=arguments[o]?arguments[o]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),r.forEach((function(o){y(e,o,t[o])}))}return e}function j(e,o){return o=null!=o?o:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):function(e){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);o.push.apply(o,t)}return o}(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})),e}const _=t(((t,y)=>{var{className:_,"data-component":v="dialog","data-element":P="dialog","data-role":C,children:w,open:k,height:F,size:S="medium",title:x,disableEscKey:E,subtitle:I,disableAutoFocus:D=!1,focusFirstElement:M,focusableSelectors:A,onCancel:B,showCloseIcon:z=!0,bespokeFocusTrap:K,disableClose:L,help:N,highlightVariant:T="default",role:V="dialog",contentPadding:R={},greyBackground:U=!1,focusableContainers:$,topModalOverride:H,closeButtonDataProps:W,restoreFocusOnClose:Y=!0,"aria-labelledby":q,"aria-describedby":G,"aria-label":J}=t,Q=function(e,o){if(null==e)return{};var t,r,a=function(e,o){if(null==e)return{};var t,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)t=l[r],o.indexOf(t)>=0||(a[t]=e[t]);return a}(e,o);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)t=l[r],o.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}(t,["className","data-component","data-element","data-role","children","open","height","size","title","disableEscKey","subtitle","disableAutoFocus","focusFirstElement","focusableSelectors","onCancel","showCloseIcon","bespokeFocusTrap","disableClose","help","highlightVariant","role","contentPadding","greyBackground","focusableContainers","topModalOverride","closeButtonDataProps","restoreFocusOnClose","aria-labelledby","aria-describedby","aria-label"]);const X=g(),Z=r(null),ee=r(null),{current:oe}=r(l()),{current:te}=r(l()),re=h(Z);a(y,(()=>({focus(){var e;null===(e=Z.current)||void 0===e||e.focus()}})),[]);const ae=z&&B&&e(f,j(O({"aria-label":X.dialog.ariaLabels.close(),onClick:B,disabled:L},s("close",O({"data-element":"close"},W))),{children:e(m,{type:"close"})})),le=x&&e(p,{showCloseIcon:z,hasSubtitle:!!I,ref:ee,children:"string"==typeof x?e(i,{"data-element":"dialog-title",title:x,titleId:oe,subheader:I,subtitleId:te,divider:!1,help:N}):x});let ne=F;F&&F.match(/px$/)&&(ne=F.replace("px",""));const ie={size:S,dialogHeight:ne,"aria-labelledby":x&&"string"==typeof x?oe:q,"aria-describedby":I&&"string"==typeof I?te:G,"aria-label":J};return e(n,j(O({open:k,onCancel:B,disableEscKey:E,disableClose:L,className:_?`${_} carbon-dialog`:"carbon-dialog",topModalOverride:H,restoreFocusOnClose:Y},Q),{children:e(b,{autoFocus:!D,focusFirstElement:M,bespokeTrap:K,focusableSelectors:A,wrapperRef:Z,isOpen:k,additionalWrapperRefs:$,children:e(c,{children:o(d,j(O(j(O({"data-component":v,"data-element":P,"data-role":C,"aria-modal":!!re||void 0,ref:Z},ie),{highlightVariant:T,role:V,tabIndex:-1}),R),{backgroundColor:U?"var(--colorsUtilityMajor025)":"var(--colorsUtilityYang100)",children:[le,ae,e(u,j(O({},R),{"data-role":"dialog-content",tabIndex:-1,children:w}))]}))})})}))}));export{_ as Dialog,_ as default};
1
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import{forwardRef as o,useRef as r,useImperativeHandle as l}from"react";import{DialogPositioner as n,StyledDialog as a,StyledDialogContent as i,StyledDialogTitle as s}from"./dialog.style.js";import{Heading as c}from"../heading/heading.component.js";import d from"../icon/icon.component.js";import p from"../icon-button/icon-button.component.js";import u from"../modal/modal.component.js";import b from"../../__internal__/focus-trap/focus-trap.component.js";import f from"../../__internal__/full-screen-heading/full-screen-heading.component.js";import g from"../../__internal__/utils/helpers/guid/index.js";import m from"../../__internal__/utils/helpers/tags/tags.js";import h from"../../__internal__/utils/logger/index.js";import y from"../../hooks/__internal__/useLocale/useLocale.js";import O from"../../hooks/__internal__/useModalAria/useModalAria.js";function j(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function _(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{},r=Object.keys(o);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(o).filter((function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})))),r.forEach((function(t){j(e,t,o[t])}))}return e}function C(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t.push.apply(t,o)}return t}(Object(t)).forEach((function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(t,o))})),e}let v=!1,P=!1;const w=o(((o,j)=>{var{className:w,"data-component":S="dialog","data-element":k="dialog","data-role":F,children:x,open:I,height:E,size:D="medium",title:M,disableEscKey:B,subtitle:T,disableAutoFocus:A=!1,focusFirstElement:R,focusableSelectors:z,onCancel:K,showCloseIcon:L=!0,bespokeFocusTrap:N,disableClose:V,help:H,highlightVariant:U="default",role:$="dialog",contentPadding:W,greyBackground:Y=!1,focusableContainers:q,topModalOverride:G,closeButtonDataProps:J,restoreFocusOnClose:Q=!0,"aria-labelledby":X,"aria-describedby":Z,"aria-label":ee,pagesStyling:te,headerChildren:oe,disableContentPadding:re,contentRef:le,fullscreen:ne=!1}=o,ae=function(e,t){if(null==e)return{};var o,r,l=function(e,t){if(null==e)return{};var o,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)o=n[r],t.indexOf(o)>=0||(l[o]=e[o]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)o=n[r],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(l[o]=e[o])}return l}(o,["className","data-component","data-element","data-role","children","open","height","size","title","disableEscKey","subtitle","disableAutoFocus","focusFirstElement","focusableSelectors","onCancel","showCloseIcon","bespokeFocusTrap","disableClose","help","highlightVariant","role","contentPadding","greyBackground","focusableContainers","topModalOverride","closeButtonDataProps","restoreFocusOnClose","aria-labelledby","aria-describedby","aria-label","pagesStyling","headerChildren","disableContentPadding","contentRef","fullscreen"]);const ie=y(),se=r(null),ce=r(null),de=r(null),{current:pe}=r(g()),{current:ue}=r(g()),be=O(se);!v&&V&&(v=!0,h.deprecate("The disableClose prop in Dialog is deprecated and will soon be removed.")),!P&&te&&(P=!0,h.deprecate("The pagesStyling prop in Dialog is deprecated and will soon be removed.")),l(j,(()=>({focus(){var e;null===(e=se.current)||void 0===e||e.focus()}})),[]);const fe=L&&K&&e(p,C(_({"aria-label":ie.dialog.ariaLabels.close(),disabled:V,onClick:K},m("close",_({"data-element":"close"},J))),{children:e(d,{type:"close"})}));let ge=E;E&&E.match(/px$/)&&(ge=E.replace("px",""));const me={"aria-describedby":T&&"string"==typeof T?ue:Z,"aria-label":ee,"aria-labelledby":M&&"string"==typeof M?pe:X};return e(u,C(_({className:w?`${w} carbon-dialog`:"carbon-dialog",disableClose:V,disableEscKey:B,onCancel:K,open:I,restoreFocusOnClose:Q,topModalOverride:G},m("dialog",ae),ae),{children:e(b,{additionalWrapperRefs:q,autoFocus:!A,bespokeTrap:N,focusableSelectors:z,focusFirstElement:R,isOpen:I,wrapperRef:se,children:e(n,{fullscreen:ne,children:t(a,C(_(C(_({"aria-modal":!("dialog"!==$||!be)||void 0},me),{backgroundColor:Y?"var(--colorsUtilityMajor025)":"var(--colorsUtilityYang100)","data-component":S,"data-element":k,"data-role":F,dialogHeight:ge,fullscreen:ne,highlightVariant:U,pagesStyling:te,ref:se,role:$,size:D,tabIndex:-1}),W),{children:[M||oe?ne?t(f,{hasContent:!!M,hasCloseButton:L,ref:ce,children:["string"==typeof M?e(c,{"data-element":"dialog-title",title:M,titleId:pe,subheader:T,subtitleId:ue,divider:!1,help:H}):M,oe]}):e(s,{hasSubtitle:!!T,ref:de,showCloseIcon:L,children:"string"==typeof M?e(c,{"data-element":"dialog-title",divider:!1,help:H,subheader:T,subtitleId:ue,title:M,titleId:pe}):M}):null,fe,e(i,C(_({},W),{"data-role":"dialog-content",disableContentPadding:re,fullscreen:ne,hasHeader:void 0!==M,tabIndex:-1,ref:le,children:x}))]}))})})}))}));export{w as Dialog,w as default};
@@ -1,18 +1,27 @@
1
1
  import { ContentPaddingInterface, DialogProps } from "./dialog.component";
2
+ type StyledDialogTitleProps = {
3
+ fullscreen?: boolean;
4
+ hasSubtitle?: boolean;
5
+ showCloseIcon?: boolean;
6
+ };
2
7
  declare const DialogPositioner: import("styled-components").StyledComponent<"div", any, {
3
8
  theme: object;
9
+ } & {
10
+ fullscreen?: boolean;
11
+ }, "theme">;
12
+ declare const StyledDialogContent: import("styled-components").StyledComponent<"div", any, {
13
+ theme: object;
14
+ } & ContentPaddingInterface & {
15
+ disableContentPadding?: boolean;
16
+ fullscreen?: boolean;
17
+ hasHeader?: boolean;
4
18
  }, "theme">;
5
19
  declare const StyledDialog: import("styled-components").StyledComponent<"div", any, Required<Pick<DialogProps, "size">> & {
6
- dialogHeight?: string;
7
20
  backgroundColor: string;
21
+ dialogHeight?: string;
22
+ fullscreen?: boolean;
8
23
  highlightVariant?: string;
24
+ pagesStyling?: boolean;
9
25
  } & ContentPaddingInterface, never>;
10
- type StyledDialogTitleProps = {
11
- showCloseIcon?: boolean;
12
- hasSubtitle?: boolean;
13
- };
14
26
  declare const StyledDialogTitle: import("styled-components").StyledComponent<"div", any, StyledDialogTitleProps, never>;
15
- declare const StyledDialogContent: import("styled-components").StyledComponent<"div", any, {
16
- theme: object;
17
- } & ContentPaddingInterface, "theme">;
18
27
  export { DialogPositioner, StyledDialog, StyledDialogTitle, StyledDialogContent, };
@@ -1 +1 @@
1
- import i,{css as o}from"styled-components";import{padding as e}from"styled-system";import t from"../../style/themes/apply-base-theme.js";import{StyledHeaderContent as a,StyledHeading as d,StyledHeadingTitle as r}from"../heading/heading.style.js";import n from"../icon-button/icon-button.style.js";import{StyledForm as l,StyledFormContent as s,StyledFormFooter as p}from"../form/form.style.js";const c={auto:"fit-content","extra-small":"300px",small:"380px","medium-small":"540px",medium:"750px","medium-large":"850px",large:"960px","extra-large":"1080px"},g=i.div.attrs(t).withConfig({displayName:"dialog.style__DialogPositioner",componentId:"sc-18988adc-0"})(["position:fixed;inset:0;display:flex;justify-content:center;align-items:center;z-index:",";"],(({theme:i})=>i.zIndex.modal)),m=i.div.withConfig({displayName:"dialog.style__StyledDialog",componentId:"sc-18988adc-1"})(["box-shadow:var(--boxShadow300);display:flex;flex-direction:column;position:relative;border-radius:var(--borderRadius200);",";&:focus{outline:none;}"," "," "," > ","{margin:0;position:absolute;right:33px;top:32px;z-index:1;&:hover{color:#255bc7;}}"],(({size:i})=>"maximise"===i?o(["height:calc(100% - var(--spacing400));width:calc(100% - var(--spacing400));@media screen and (min-width:960px){height:calc(100% - var(--spacing800));width:calc(100% - var(--spacing800));}"]):o(["max-height:90vh;max-width:",";width:100%;"],c[i])),(({highlightVariant:i})=>"ai"===i&&'\n &::before {\n content: "";\n position: absolute;\n top: -8px;\n height: 100px;\n width: 100%;\n z-index: -1;\n background: linear-gradient(90deg, #00D639 0%, #00D6DE 40%, #9D60FF 90%);\n border-radius: var(--borderRadius200) var(--borderRadius200) 0 0;\n }'),(({backgroundColor:i})=>o(["background-color:",";"],i)),(({dialogHeight:i})=>i&&o(["height:","px;"],i)),n),x=i.div.withConfig({displayName:"dialog.style__StyledDialogTitle",componentId:"sc-18988adc-2"})(["background-color:var(--colorsUtilityYang100);padding:23px 32px 0;border-bottom:1px solid #ccd6db;border-top-right-radius:var(--borderRadius200);border-top-left-radius:var(--borderRadius200);",";","{align-items:baseline;}","{margin-bottom:20px;","{color:var(--colorsUtilityYin090);display:block;overflow:hidden;text-overflow:ellipsis;padding:",";}}"],(({showCloseIcon:i})=>i&&"padding-right: 85px"),a,d,r,(({hasSubtitle:i})=>!i&&"4px 0px")),h=i.div.attrs(t).withConfig({displayName:"dialog.style__StyledDialogContent",componentId:"sc-18988adc-3"})(["box-sizing:border-box;display:block;overflow-y:auto;width:100%;flex-grow:1;padding:24px 32px 30px;"," &:has(",".sticky){display:flex;flex-direction:column;padding:0;",".sticky{","{padding:24px 32px 30px;","}","{border-bottom-right-radius:var(--borderRadius200);border-bottom-left-radius:var(--borderRadius200);}}}"],e,l,l,s,e,p);export{g as DialogPositioner,m as StyledDialog,h as StyledDialogContent,x as StyledDialogTitle};
1
+ import i,{css as e}from"styled-components";import{padding as d}from"styled-system";import o from"../../style/themes/apply-base-theme.js";import{StyledHeaderContent as t,StyledHeading as n,StyledHeadingTitle as r,StyledHeader as a}from"../heading/heading.style.js";import l from"../icon-button/icon-button.style.js";import{StyledForm as p,StyledFormContent as s,StyledFormFooter as g}from"../form/form.style.js";import c from"../../__internal__/full-screen-heading/full-screen-heading.style.js";const x={auto:"fit-content","extra-small":"300px",small:"380px","medium-small":"540px",medium:"750px","medium-large":"850px",large:"960px","extra-large":"1080px"},m=(i=!1)=>o=>i?e(["padding:0;"]):(i=>void 0!==i.padding||void 0!==i.p||void 0!==i.paddingTop||void 0!==i.pt||void 0!==i.paddingRight||void 0!==i.pr||void 0!==i.paddingBottom||void 0!==i.pb||void 0!==i.paddingLeft||void 0!==i.pl||void 0!==i.paddingX||void 0!==i.px||void 0!==i.paddingY||void 0!==i.py)(o)?e(["",""],d):e(["",""],e(["padding:0 16px;@media screen and (min-width:600px){padding:0 24px;}@media screen and (min-width:960px){padding:0 32px;}@media screen and (min-width:1260px){padding:0 40px;}"])),h=i.div.attrs(o).withConfig({displayName:"dialog.style__DialogPositioner",componentId:"sc-cd89bb32-0"})(["position:fixed;inset:0;display:flex;justify-content:center;align-items:center;z-index:",";",""],(({theme:i,fullscreen:e})=>e?i.zIndex.fullScreenModal:i.zIndex.modal),(({fullscreen:i})=>i&&e(["justify-content:stretch;align-items:stretch;"]))),b=i.div.attrs(o).withConfig({displayName:"dialog.style__StyledDialogContent",componentId:"sc-cd89bb32-1"})(["box-sizing:border-box;display:block;overflow-y:auto;width:100%;",""],(i=>{var{disableContentPadding:o,fullscreen:t,hasHeader:n}=i,r=function(i,e){if(null==i)return{};var d,o,t=function(i,e){if(null==i)return{};var d,o,t={},n=Object.keys(i);for(o=0;o<n.length;o++)d=n[o],e.indexOf(d)>=0||(t[d]=i[d]);return t}(i,e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(i);for(o=0;o<n.length;o++)d=n[o],e.indexOf(d)>=0||Object.prototype.propertyIsEnumerable.call(i,d)&&(t[d]=i[d])}return t}(i,["disableContentPadding","fullscreen","hasHeader"]);return t?e(["flex:1;"," &:has(",".sticky){display:flex;flex-direction:column;overflow-y:hidden;padding:0;",".sticky{","{","}}}",""],m(o)(r),p,p,s,m(o)(r),!n&&e(["padding-top:0;"])):e(["flex-grow:1;padding:",";"," &:has(",".sticky){display:flex;flex-direction:column;padding:0;",".sticky{","{padding:24px 32px 30px;","}","{border-bottom-right-radius:var(--borderRadius200);border-bottom-left-radius:var(--borderRadius200);}}}"],o?"0px":"24px 32px 30px",d,p,p,s,d,g)})),u=i.div.withConfig({displayName:"dialog.style__StyledDialog",componentId:"sc-cd89bb32-2"})(["display:flex;flex-direction:column;position:relative;&:focus{outline:none;}"," ","{align-items:baseline;}> ","{margin:0;position:absolute;z-index:1;","}",""],(({backgroundColor:i,dialogHeight:d,fullscreen:o,highlightVariant:t,size:n})=>o?e(["background-color:var(--colorsUtilityMajor025);height:100%;width:100%;"]):e(["box-shadow:var(--boxShadow300);border-radius:var(--borderRadius200);background-color:",";"," ",";",""],i,t&&"ai"===t&&e(['&::before{content:"";position:absolute;top:-8px;height:100px;width:100%;z-index:-1;background:linear-gradient( 90deg,#00d639 0%,#00d6de 40%,#9d60ff 90% );border-radius:var(--borderRadius200) var(--borderRadius200) 0 0;}']),"maximise"===n?e(["height:calc(100% - var(--spacing400));width:calc(100% - var(--spacing400));@media screen and (min-width:960px){height:calc(100% - var(--spacing800));width:calc(100% - var(--spacing800));}"]):e(["max-height:90vh;max-width:",";width:100%;"],x[n]),d&&e(["height:","px;"],d))),t,l,(({fullscreen:i})=>e(i?["right:40px;top:26px;"]:["right:33px;top:32px;&:hover{color:#255bc7;}"])),(({fullscreen:i,pagesStyling:d})=>function({fullscreen:i,pagesStyling:d}){return i&&d?e(["","{padding:0;}> ","{right:33px;top:32px;}","{padding:32px 32px 0;}","{width:auto;padding-top:4px;","{margin:0 0 0 3px;box-sizing:content-box;width:100%;}}"],b,l,c,n,a):""}({fullscreen:i,pagesStyling:d}))),f=i.div.withConfig({displayName:"dialog.style__StyledDialogTitle",componentId:"sc-cd89bb32-3"})(["",""],(({fullscreen:i,hasSubtitle:d,showCloseIcon:o})=>!i&&e(["background-color:var(--colorsUtilityYang100);padding:23px 32px 0;border-bottom:1px solid #ccd6db;border-top-right-radius:var(--borderRadius200);border-top-left-radius:var(--borderRadius200);",";","{align-items:baseline;}","{margin-bottom:20px;","{color:var(--colorsUtilityYin090);display:block;overflow:hidden;text-overflow:ellipsis;padding:",";}}"],o&&"padding-right: 85px",t,n,r,!d&&"4px 0px")));export{h as DialogPositioner,u as StyledDialog,b as StyledDialogContent,f as StyledDialogTitle};
@@ -1,60 +1,4 @@
1
- import React, { RefObject } from "react";
2
- import { ModalProps } from "../modal";
3
- import { TagProps } from "../../__internal__/utils/helpers/tags";
4
- export interface DialogFullScreenProps extends Omit<ModalProps, "disableClose"> {
5
- /** Prop to specify the aria-describedby property of the DialogFullscreen component */
6
- "aria-describedby"?: string;
7
- /**
8
- * Prop to specify the aria-label of the DialogFullscreen component.
9
- * To be used only when the title prop is not defined, and the component is not labelled by any internal element.
10
- */
11
- "aria-label"?: string;
12
- /**
13
- * Prop to specify the aria-labelledby property of the DialogFullscreen component
14
- * To be used when the title prop is a custom React Node,
15
- * or the component is labelled by an internal element other than the title.
16
- */
17
- "aria-labelledby"?: string;
18
- /** Child elements */
19
- children?: React.ReactNode;
20
- /** Reference to the scrollable content element */
21
- contentRef?: React.ForwardedRef<HTMLDivElement>;
22
- /** Disables auto focus functionality on child elements */
23
- disableAutoFocus?: boolean;
24
- /** remove padding from content */
25
- disableContentPadding?: boolean;
26
- /** Optional reference to an element meant to be focused on open */
27
- focusFirstElement?: RefObject<HTMLElement> | HTMLElement | null;
28
- /**
29
- * Function to replace focus trap
30
- * @ignore
31
- * @private
32
- */
33
- bespokeFocusTrap?: (ev: KeyboardEvent, firstElement?: HTMLElement, lastElement?: HTMLElement) => void;
34
- /** Container for components to be displayed in the header */
35
- headerChildren?: React.ReactNode;
36
- /** Adds Help tooltip to Header */
37
- help?: string;
38
- /** Determines if the close icon is shown */
39
- showCloseIcon?: boolean;
40
- /** Data tag prop bag for close Button */
41
- closeButtonDataProps?: Pick<TagProps, "data-role" | "data-element">;
42
- /** Subtitle displayed at top of dialog. Its consumers' responsibility to set a suitable accessible name/description for the Dialog if they pass a node to subtitle prop. */
43
- subtitle?: React.ReactNode;
44
- /** Title displayed at top of dialog */
45
- title?: React.ReactNode;
46
- /** The ARIA role to be applied to the DialogFullscreen container */
47
- role?: string;
48
- /** an optional array of refs to containers whose content should also be reachable by tabbing from the dialog */
49
- focusableContainers?: RefObject<HTMLElement>[];
50
- /** Optional selector to identify the focusable elements, if not provided a default selector is used */
51
- focusableSelectors?: string;
52
- /** A custom close event handler */
53
- onCancel?: (ev: React.KeyboardEvent<HTMLElement> | KeyboardEvent | React.MouseEvent<HTMLButtonElement>) => void;
54
- /** @deprecated Determines if the Dialog can be closed */
55
- disableClose?: boolean;
56
- /** @deprecated For legacy styling when used with Pages component. Do not use this unless using Pages within a DialogFullScreen */
57
- pagesStyling?: boolean;
58
- }
59
- export declare const DialogFullScreen: ({ "aria-describedby": ariaDescribedBy, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, disableAutoFocus, focusFirstElement, bespokeFocusTrap, open, children, title, subtitle, pagesStyling, headerChildren, showCloseIcon, disableContentPadding, disableEscKey, onCancel, contentRef, help, role, focusableContainers, focusableSelectors, topModalOverride, closeButtonDataProps, restoreFocusOnClose, ...rest }: DialogFullScreenProps) => React.JSX.Element;
1
+ import React from "react";
2
+ import { DialogProps } from "../dialog/dialog.component";
3
+ export declare const DialogFullScreen: ({ ...props }: DialogProps) => React.JSX.Element;
60
4
  export default DialogFullScreen;
@@ -1 +1 @@
1
- import{jsx as e,jsxs as o}from"react/jsx-runtime";import{useRef as r}from"react";import t from"../../__internal__/utils/helpers/guid/index.js";import n from"../modal/modal.component.js";import{Heading as l}from"../heading/heading.component.js";import a from"../../__internal__/full-screen-heading/full-screen-heading.component.js";import i from"./dialog-full-screen.style.js";import s from"./content.style.js";import c from"../../__internal__/focus-trap/focus-trap.component.js";import d from"../icon-button/icon-button.component.js";import p from"../icon/icon.component.js";import u from"../../hooks/__internal__/useLocale/useLocale.js";import b from"../../hooks/__internal__/useModalAria/useModalAria.js";import f from"../../__internal__/utils/helpers/tags/tags.js";import m from"../../__internal__/utils/logger/index.js";function g(e,o,r){return o in e?Object.defineProperty(e,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[o]=r,e}function y(e){for(var o=1;o<arguments.length;o++){var r=null!=arguments[o]?arguments[o]:{},t=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),t.forEach((function(o){g(e,o,r[o])}))}return e}function h(e,o){return o=null!=o?o:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):function(e){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);o.push.apply(o,r)}return o}(Object(o)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))})),e}let O=!1,j=!1;const _=g=>{var{"aria-describedby":_,"aria-label":C,"aria-labelledby":v,disableAutoFocus:P=!1,focusFirstElement:w,bespokeFocusTrap:S,open:F,children:k,title:E,subtitle:D,pagesStyling:x,headerChildren:I,showCloseIcon:M=!0,disableContentPadding:T,disableEscKey:A,onCancel:R,contentRef:B,help:K,role:L="dialog",focusableContainers:H,focusableSelectors:W,topModalOverride:q,closeButtonDataProps:z,restoreFocusOnClose:G=!0}=g,J=function(e,o){if(null==e)return{};var r,t,n=function(e,o){if(null==e)return{};var r,t,n={},l=Object.keys(e);for(t=0;t<l.length;t++)r=l[t],o.indexOf(r)>=0||(n[r]=e[r]);return n}(e,o);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(t=0;t<l.length;t++)r=l[t],o.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}(g,["aria-describedby","aria-label","aria-labelledby","disableAutoFocus","focusFirstElement","bespokeFocusTrap","open","children","title","subtitle","pagesStyling","headerChildren","showCloseIcon","disableContentPadding","disableEscKey","onCancel","contentRef","help","role","focusableContainers","focusableSelectors","topModalOverride","closeButtonDataProps","restoreFocusOnClose"]);const N=u(),Q=r(null),U=r(null),{current:V}=r(t()),{current:X}=r(t()),Y=b(Q);!O&&(null==J?void 0:J.disableClose)&&(O=!0,m.deprecate("The disableClose prop in DialogFullScreen is deprecated and will soon be removed.")),!j&&x&&(j=!0,m.deprecate("The pagesStyling prop in DialogFullScreen is deprecated and will soon be removed."));const Z={"aria-labelledby":E&&"string"==typeof E?V:v,"aria-describedby":D&&"string"==typeof D?X:_,"aria-label":C};return e(n,h(y({open:F,onCancel:R,disableEscKey:A,topModalOverride:q,restoreFocusOnClose:G},f("dialog-full-screen",J)),{children:e(c,{autoFocus:!P,focusFirstElement:w,bespokeTrap:S,wrapperRef:Q,isOpen:F,additionalWrapperRefs:H,focusableSelectors:W,children:o(i,h(y({"aria-modal":!("dialog"!==L||!Y)||void 0},Z),{ref:Q,"data-element":"dialog-full-screen",pagesStyling:x,role:L,children:[E||I?o(a,{hasContent:!!E,hasCloseButton:M,ref:U,children:["string"==typeof E?e(l,{"data-element":"dialog-title",title:E,titleId:V,subheader:D,subtitleId:X,divider:!1,help:K}):E,I]}):null,M&&R?e(d,h(y({"aria-label":N.dialogFullScreen.ariaLabels.close(),onClick:R},f("close",y({"data-element":"close"},z))),{children:e(p,{type:"close"})})):null,e(s,{hasHeader:void 0!==E,"data-element":"content","data-role":"dialog-full-screen-content",ref:B,disableContentPadding:T,children:k})]}))})}))};export{_ as DialogFullScreen,_ as default};
1
+ import{jsx as e}from"react/jsx-runtime";import"react";import r from"../../__internal__/utils/logger/index.js";import{Dialog as t}from"../dialog/dialog.component.js";function n(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(){return o=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},o.apply(this,arguments)}let l=!1;const i=i=>{var a=o({},function(e){if(null==e)throw new TypeError("Cannot destructure "+e);return e}(i));return l||(l=!0,r.deprecate("`DialogFullscreen` has been deprecated and will soon be removed. Use `Dialog` with the `fullscreen` prop instead.")),e(t,function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},o=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),o.forEach((function(r){n(e,r,t[r])}))}return e}({fullscreen:!0},a))};export{i as DialogFullScreen,i as default};
@@ -1,2 +1 @@
1
1
  export { default } from "./dialog-full-screen.component";
2
- export type { DialogFullScreenProps } from "./dialog-full-screen.component";
@@ -1 +1 @@
1
- import{jsx as e,jsxs as r,Fragment as t}from"react/jsx-runtime";import n,{useState as o,useCallback as i,useLayoutEffect as c,useRef as s,useEffect as l}from"react";import{ResponsiveVerticalMenuProvider as u,useResponsiveVerticalMenu as a}from"./responsive-vertical-menu.context.js";import{StyledButton as p,StyledCloseButton as d,StyledResponsiveMenu as m,StyledGlobalVerticalMenuWrapper as v}from"./responsive-vertical-menu.style.js";import{Box as h}from"../../box/box.component.js";import f from"../../modal/modal.component.js";import y from"../../../hooks/__internal__/useIsAboveBreakpoint/useIsAboveBreakpoint.js";import b from"../../../hooks/useMediaQuery/useMediaQuery.js";import w from"../../../__internal__/utils/helpers/tags/tags.js";import{DepthProvider as g}from"./__internal__/depth.context.js";import{MenuFocusProvider as O}from"./__internal__/focus.context.js";import j from"../../../hooks/__internal__/useLocale/useLocale.js";function x(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},n=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),n.forEach((function(r){x(e,r,t[r])}))}return e}function k(e,r){return r=null!=r?r:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):function(e){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r.push.apply(r,t)}return r}(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})),e}function E(e,r){if(null==e)return{};var t,n,o=function(e,r){if(null==e)return{};var t,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)t=i[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)t=i[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}const L=u=>{var g,O,{children:x,height:L,responsiveBreakpoint:P=700,width:M,launcherButtonDataProps:B}=u,T=E(u,["children","height","responsiveBreakpoint","width","launcherButtonDataProps"]);const C=j(),{active:R,activeMenuItem:S,buttonRef:D,containerRef:I,menuRef:z,responsiveMode:A,top:$,setActive:q,setActiveMenuItem:Q,setReducedMotion:V,setResponsiveMode:G,setLeft:F,setTop:H}=a(),[J,K]=o(0),N=y(P),[U,W]=o("100%"),X=!b("screen and (prefers-reduced-motion: no-preference)"),{current:Y}=z,{current:Z}=D,ee=i((()=>{if(R&&A){const e=Y||document.querySelector("[id='responsive-vertical-menu-primary']");e&&W(`${e.getBoundingClientRect().width}px`)}F(S&&Y?`${Y.getBoundingClientRect().right}px`:"auto"),H(S&&Z?`${Z.getBoundingClientRect().bottom}px`:"auto")}),[R,Y,A,S,Z]),re=i((e=>{I.current&&!I.current.contains(e.target)&&q(!1)}),[I]),te=i((()=>{q((e=>!e)),Q(null)}),[R,q,Q]);c((()=>(ee(),window.addEventListener("resize",ee),()=>{var e;null===(e=window)||void 0===e||e.removeEventListener("resize",ee)})),[R,ee,Y,A]);const ne=s(!1),oe=s(null);l((()=>{const e=()=>{ne.current=!0,null!==oe.current&&clearTimeout(oe.current),oe.current=window.setTimeout((()=>{ne.current=!1}),100)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e),null!==oe.current&&clearTimeout(oe.current)}}),[]),l((()=>{const e=({relatedTarget:e,target:r})=>{I.current&&(I.current.contains(e)||null===e&&r!==D.current&&setTimeout((()=>{S||ne.current||q(!1)}),10))},r=e=>{"Escape"===e.key&&(e.preventDefault(),q(!1))},t=I.current;return R&&!A&&(document.addEventListener("keydown",r),window.addEventListener("click",re),null==t||t.addEventListener("focusout",e)),()=>{document.removeEventListener("keydown",r),window.removeEventListener("click",re),null==t||t.removeEventListener("focusout",e)}}),[R,S,D,I,re,A]),l((()=>{null==V||V(X),null==G||G(!N)}),[N,X,V,G]);const ie=i((e=>{if(!e)return 0;if(n.isValidElement(e))return 1+ie(e.props.children);const r=n.Children.toArray(e);return r.length?r.reduce(((e,r)=>n.isValidElement(r)?e+1+ie(r.props.children):e),0):0}),[]);return l((()=>{const e=J,r=ie(x);e!==r&&(K(r),Q(null))}),[J,x,ie,Q]),r("div",{ref:I,children:[e(p,_({active:R,"aria-controls":"responsive-vertical-menu-primary","aria-expanded":R,"aria-label":null===(g=C.verticalMenu.ariaLabels)||void 0===g?void 0:g.responsiveMenuLauncher(),buttonType:"tertiary",iconType:"squares_nine",id:"responsive-vertical-menu-launcher",onClick:te,ref:D},w("responsive-vertical-menu-launcher",_({"data-role":"responsive-vertical-menu-launcher"},B)))),A?e(f,{open:R,children:r(h,{position:"fixed",top:0,width:U,children:[e(h,{boxSizing:"border-box",display:"flex",justifyContent:"flex-end",width:"100%",backgroundColor:"var(--colorsGray850)",p:1,children:e(d,{"aria-label":null===(O=C.verticalMenu.ariaLabels)||void 0===O?void 0:O.responsiveMenuCloseButton(),"data-component":"responsive-vertical-menu-close","data-role":"responsive-vertical-menu-close",iconType:"close",size:"small",buttonType:"tertiary",onClick:()=>{q(!1),Q(null)}})}),e(m,{height:L,id:"responsive-vertical-menu-primary",menu:"primary",reduceMotion:X,ref:z,responsive:!0,tabIndex:-1,top:"48px",width:M,children:x})]})}):e(v,k(_({},T,w("responsive-vertical-menu",T)),{children:R&&e(t,{children:e(m,{childOpen:!!S,"data-component":"responsive-vertical-menu-primary","data-role":"responsive-vertical-menu-primary",height:L||"100%",id:"responsive-vertical-menu-primary",menu:"primary",reduceMotion:X,ref:z,responsive:!1,tabIndex:-1,top:$,width:M,children:x})})}))]})},P=r=>{var{children:t,width:n,height:o}=r,i=E(r,["children","width","height"]);return e(g,{children:e(O,{children:e(u,{width:n,height:o,children:e(L,k(_({width:n,height:o},i),{children:t}))})})})};export{P as ResponsiveVerticalMenu,P as default};
1
+ import{jsx as e,jsxs as r,Fragment as n}from"react/jsx-runtime";import t,{useState as i,useRef as o,useCallback as a,useLayoutEffect as l,useEffect as c}from"react";import{DepthProvider as s}from"./__internal__/depth.context.js";import{MenuFocusProvider as u}from"./__internal__/focus.context.js";import{ResponsiveVerticalMenuProvider as p,useResponsiveVerticalMenu as d}from"./responsive-vertical-menu.context.js";import{StyledButton as v,ModalContainer as m,StyledCloseButton as h,StyledResponsiveMenu as f,StyledGlobalVerticalMenuWrapper as b}from"./responsive-vertical-menu.style.js";import{Box as y}from"../../box/box.component.js";import g from"../../modal/modal.component.js";import w from"../../../hooks/__internal__/useIsAboveBreakpoint/useIsAboveBreakpoint.js";import O from"../../../hooks/useMediaQuery/useMediaQuery.js";import j from"../../../hooks/__internal__/useLocale/useLocale.js";import _ from"../../../__internal__/focus-trap/focus-trap.component.js";import x from"../../../__internal__/utils/helpers/tags/tags.js";function L(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function k(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{},t=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),t.forEach((function(r){L(e,r,n[r])}))}return e}function M(e,r){return r=null!=r?r:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):function(e){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r}(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})),e}function E(e,r){if(null==e)return{};var n,t,i=function(e,r){if(null==e)return{};var n,t,i={},o=Object.keys(e);for(t=0;t<o.length;t++)n=o[t],r.indexOf(n)>=0||(i[n]=e[n]);return i}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(t=0;t<o.length;t++)n=o[t],r.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}const P=s=>{var u,{children:p,height:L,responsiveBreakpoint:P=700,width:B,launcherButtonDataProps:T}=s,C=E(s,["children","height","responsiveBreakpoint","width","launcherButtonDataProps"]);const R=j(),{active:I,activeMenuItem:S,buttonRef:D,containerRef:z,menuRef:A,responsiveMode:$,top:q,setActive:Q,setActiveMenuItem:V,setReducedMotion:G,setResponsiveMode:F,setLeft:H,setTop:J}=d(),[K,N]=i(0),U=w(P),[W,X]=i("100%"),Y=!O("screen and (prefers-reduced-motion: no-preference)"),Z=o(null),{current:ee}=A,{current:re}=D,ne=a((()=>{if(I&&$){const e=ee||document.querySelector("[id='responsive-vertical-menu-primary']");e&&X(`${e.getBoundingClientRect().width}px`)}H(S&&ee?`${ee.getBoundingClientRect().right}px`:"auto"),J(S&&re?`${re.getBoundingClientRect().bottom}px`:"auto")}),[I,ee,$,S,re]),te=a((e=>{z.current&&!z.current.contains(e.target)&&Q(!1)}),[z]),ie=a((()=>{Q((e=>!e)),V(null)}),[I,Q,V]);l((()=>(ne(),window.addEventListener("resize",ne),()=>{var e;null===(e=window)||void 0===e||e.removeEventListener("resize",ne)})),[I,ne,ee,$]);const oe=o(!1),ae=o(null);c((()=>{const e=()=>{oe.current=!0,null!==ae.current&&clearTimeout(ae.current),ae.current=window.setTimeout((()=>{oe.current=!1}),100)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e),null!==ae.current&&clearTimeout(ae.current)}}),[]),c((()=>{const e=({relatedTarget:e,target:r})=>{z.current&&(z.current.contains(e)||(null===e&&r!==D.current||e!==D.current)&&setTimeout((()=>{S||oe.current||Q(!1)}),10))},r=e=>{"Escape"===e.key&&(e.preventDefault(),Q(!1))},n=z.current;return I&&!$&&(document.addEventListener("keydown",r),window.addEventListener("click",te),null==n||n.addEventListener("focusout",e)),()=>{document.removeEventListener("keydown",r),window.removeEventListener("click",te),null==n||n.removeEventListener("focusout",e)}}),[I,S,D,z,te,$]),c((()=>{null==G||G(Y),null==F||F(!U)}),[U,Y,G,F]);const le=a((e=>{if(!e)return 0;if(t.isValidElement(e))return 1+le(e.props.children);const r=t.Children.toArray(e);return r.length?r.reduce(((e,r)=>t.isValidElement(r)?e+1+le(r.props.children):e),0):0}),[]);return c((()=>{const e=K,r=le(p);e!==r&&(N(r),V(null))}),[K,p,le,V]),r("div",{ref:z,children:[e(v,k({active:I,buttonType:"tertiary",iconType:"squares_nine",id:"responsive-vertical-menu-launcher",onClick:ie,ref:D},x("responsive-vertical-menu-launcher",k({"data-role":"responsive-vertical-menu-launcher"},T)),(()=>{var e,r;return $?{"aria-expanded":void 0,"aria-haspopup":"dialog","aria-controls":"responsive-vertical-menu-dialog","aria-label":null===(r=R.verticalMenu.ariaLabels)||void 0===r?void 0:r.responsiveMenuLauncher()}:{"aria-expanded":I,"aria-haspopup":"menu","aria-controls":"responsive-vertical-menu-primary","aria-label":null===(e=R.verticalMenu.ariaLabels)||void 0===e?void 0:e.responsiveMenuLauncher()}})())),$?e(g,{open:I,children:e(_,{wrapperRef:Z,isOpen:I,children:r(m,M(k({ref:Z,width:W,tabIndex:-1,id:"responsive-vertical-menu-dialog"},(()=>{var e;return{role:"dialog","aria-modal":!0,"aria-label":null===(e=R.verticalMenu.ariaLabels)||void 0===e?void 0:e.responsiveMenuAria()}})()),{children:[e(y,{boxSizing:"border-box",display:"flex",justifyContent:"flex-end",width:"100%",backgroundColor:"var(--colorsGray850)",p:1,children:e(h,{"aria-label":null===(u=R.verticalMenu.ariaLabels)||void 0===u?void 0:u.responsiveMenuCloseButton(),"data-component":"responsive-vertical-menu-close","data-role":"responsive-vertical-menu-close",iconType:"close",size:"small",buttonType:"tertiary",onClick:()=>{Q(!1),V(null)}})}),e(f,{height:L,id:"responsive-vertical-menu-primary",menu:"primary",reduceMotion:Y,ref:A,responsive:!0,tabIndex:-1,top:"48px",width:B,children:p})]}))})}):e(b,M(k({},C,x("responsive-vertical-menu",C)),{children:I&&e(n,{children:e(f,{childOpen:!!S,"data-component":"responsive-vertical-menu-primary","data-role":"responsive-vertical-menu-primary",height:L||"100%",id:"responsive-vertical-menu-primary",menu:"primary",reduceMotion:Y,ref:A,responsive:!1,tabIndex:-1,top:q,width:B,children:p})})}))]})},B=r=>{var{children:n,width:t,height:i}=r,o=E(r,["children","width","height"]);return e(s,{children:e(u,{children:e(p,{width:t,height:i,children:e(P,M(k({width:t,height:i},o),{children:n}))})})})};export{B as ResponsiveVerticalMenu,B as default};
@@ -12,6 +12,9 @@ interface StyledResponsiveMenuProps {
12
12
  interface StyledButtonProps {
13
13
  active?: boolean;
14
14
  }
15
+ export declare const ModalContainer: import("styled-components").StyledComponent<"div", any, {
16
+ width: string;
17
+ }, never>;
15
18
  export declare const StyledButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../../button").ButtonProps & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement>>, any, StyledButtonProps, never>;
16
19
  export declare const StyledCloseButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../../button").ButtonProps & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement>>, any, {}, never>;
17
20
  export declare const StyledGlobalVerticalMenuWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1 +1 @@
1
- import o,{css as i}from"styled-components";import t from"../../button/button.component.js";import e from"../../../style/utils/add-focus-styling.js";const n=o(t).withConfig({displayName:"responsive-vertical-menu.style__StyledButton",componentId:"sc-6194750b-0"})(["border-radius:0;background-color:var( ",' );[data-component="icon"]{color:var(--colorsUtilityYang100);}&:focus{appearance:none;-webkit-appearance:none;-webkit-box-shadow:',";box-shadow:",";border:1px solid black;outline:transparent 3px solid;}"],(({active:o})=>o?"--colorsActionMinorGray700":"--colorsUtilityYin100"),e(!0),e(!0)),r=o(t).withConfig({displayName:"responsive-vertical-menu.style__StyledCloseButton",componentId:"sc-6194750b-1"})(['border-radius:0;[data-component="icon"]{color:var(--colorsUtilityYang100);}']),a=o.div.withConfig({displayName:"responsive-vertical-menu.style__StyledGlobalVerticalMenuWrapper",componentId:"sc-6194750b-2"})(["background-color:black;color:white;display:flex;flex-direction:row;position:absolute;width:fit-content;"]),l=o.ul.withConfig({displayName:"responsive-vertical-menu.style__StyledResponsiveMenu",componentId:"sc-6194750b-3"})(["margin:0;padding:0;align-items:center;background-color:var(--colorsUtilityYin100);box-sizing:border-box;display:flex;flex-direction:column;height:",";justify-content:flex-start;overflow-y:auto;padding-bottom:var(--spacing100);",";padding-top:var(--spacing100);position:fixed;top:",";width:",";max-width:375px;z-index:1000;border-right:",";& > :last-child{margin-bottom:40px;}"," ",""],(({height:o})=>o||"100%"),(({responsive:o})=>!o&&i(["padding-left:var(--spacing200);padding-right:var(--spacing200);"])),(({top:o})=>o),(({width:o})=>o||"100%"),(({childOpen:o,menu:i})=>"secondary"===i||!o&&"primary"===i?"2px solid var(--colorsGray850)":"1px solid var(--colorsGray850)"),(({childOpen:o})=>o&&i(["padding-right:calc(var(--spacing200) + 1px);"])),(({height:o,left:t,menu:e})=>"secondary"===e&&i(["left:",";min-height:",";"],t,o)));export{n as StyledButton,r as StyledCloseButton,a as StyledGlobalVerticalMenuWrapper,l as StyledResponsiveMenu};
1
+ import o,{css as i}from"styled-components";import t from"../../button/button.component.js";import e from"../../../style/utils/add-focus-styling.js";const n=o.div.withConfig({displayName:"responsive-vertical-menu.style__ModalContainer",componentId:"sc-4cf14d7a-0"})(["position:fixed;top:0;",""],(({width:o})=>i(["width:",";"],o))),a=o(t).withConfig({displayName:"responsive-vertical-menu.style__StyledButton",componentId:"sc-4cf14d7a-1"})(["border-radius:0;background-color:var( ",' );[data-component="icon"]{color:var(--colorsUtilityYang100);}&:focus{appearance:none;-webkit-appearance:none;-webkit-box-shadow:',";box-shadow:",";border:1px solid black;outline:transparent 3px solid;}"],(({active:o})=>o?"--colorsActionMinorGray700":"--colorsUtilityYin100"),e(!0),e(!0)),r=o(t).withConfig({displayName:"responsive-vertical-menu.style__StyledCloseButton",componentId:"sc-4cf14d7a-2"})(['border-radius:0;[data-component="icon"]{color:var(--colorsUtilityYang100);}']),s=o.div.withConfig({displayName:"responsive-vertical-menu.style__StyledGlobalVerticalMenuWrapper",componentId:"sc-4cf14d7a-3"})(["background-color:black;color:white;display:flex;flex-direction:row;position:absolute;width:fit-content;"]),d=o.ul.withConfig({displayName:"responsive-vertical-menu.style__StyledResponsiveMenu",componentId:"sc-4cf14d7a-4"})(["margin:0;padding:0;align-items:center;background-color:var(--colorsUtilityYin100);box-sizing:border-box;display:flex;flex-direction:column;height:",";justify-content:flex-start;overflow-y:auto;padding-bottom:var(--spacing100);",";padding-top:var(--spacing100);position:fixed;top:",";width:",";max-width:375px;z-index:1000;border-right:",";& > :last-child{margin-bottom:40px;}"," ",""],(({height:o})=>o||"100%"),(({responsive:o})=>!o&&i(["padding-left:var(--spacing200);padding-right:var(--spacing200);"])),(({top:o})=>o),(({width:o})=>o||"100%"),(({childOpen:o,menu:i})=>"secondary"===i||!o&&"primary"===i?"2px solid var(--colorsGray850)":"1px solid var(--colorsGray850)"),(({childOpen:o})=>o&&i(["padding-right:calc(var(--spacing200) + 1px);"])),(({height:o,left:t,menu:e})=>"secondary"===e&&i(["left:",";min-height:",";"],t,o)));export{n as ModalContainer,a as StyledButton,r as StyledCloseButton,s as StyledGlobalVerticalMenuWrapper,d as StyledResponsiveMenu};
package/esm/index.d.ts CHANGED
@@ -48,8 +48,6 @@ export { default as Detail } from "./components/detail";
48
48
  export type { DetailProps } from "./components/detail";
49
49
  export { default as Dialog } from "./components/dialog";
50
50
  export type { DialogProps, DialogHandle, DialogSizes, } from "./components/dialog";
51
- export { default as DialogFullScreen } from "./components/dialog-full-screen";
52
- export type { DialogFullScreenProps } from "./components/dialog-full-screen";
53
51
  export { default as DismissibleBox } from "./components/dismissible-box";
54
52
  export type { DismissibleBoxProps } from "./components/dismissible-box";
55
53
  export { DraggableContainer, DraggableItem } from "./components/draggable";
package/esm/index.js CHANGED
@@ -1 +1 @@
1
- export{Accordion}from"./components/accordion/accordion.component.js";export{AccordionGroup}from"./components/accordion/accordion-group/accordion-group.component.js";export{ActionPopover}from"./components/action-popover/action-popover.component.js";export{default as ActionPopoverMenu}from"./components/action-popover/action-popover-menu/action-popover-menu.component.js";export{ActionPopoverItem}from"./components/action-popover/action-popover-item/action-popover-item.component.js";export{ActionPopoverMenuButton}from"./components/action-popover/action-popover-menu-button/action-popover-menu-button.component.js";import"./components/action-popover/action-popover-divider/action-popover-divider.component.js";export{AdaptiveSidebar}from"./components/adaptive-sidebar/adaptive-sidebar.component.js";export{AdvancedColorPicker}from"./components/advanced-color-picker/advanced-color-picker.component.js";export{Alert}from"./components/alert/alert.component.js";export{default as AnchorNavigation}from"./components/anchor-navigation/anchor-navigation.component.js";export{default as AnchorNavigationItem}from"./components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.component.js";export{default as AnchorSectionDivider}from"./components/anchor-navigation/anchor-section-divider.component.js";export{Badge}from"./components/badge/badge.component.js";export{BatchSelection}from"./components/batch-selection/batch-selection.component.js";export{Box}from"./components/box/box.component.js";export{Breadcrumbs}from"./components/breadcrumbs/breadcrumbs.component.js";export{default as Crumb}from"./components/breadcrumbs/crumb/crumb.component.js";export{ButtonBar}from"./components/button-bar/button-bar.component.js";export{ButtonMinor}from"./components/button-minor/button-minor.component.js";export{ButtonToggle}from"./components/button-toggle/button-toggle.component.js";export{default as ButtonToggleGroup}from"./components/button-toggle/button-toggle-group/button-toggle-group.component.js";export{default as Button}from"./components/button/button.component.js";export{CarbonProvider}from"./components/carbon-provider/carbon-provider.component.js";export{default as Card}from"./components/card/card.component.js";export{default as CardColumn}from"./components/card/card-column/card-column.component.js";export{default as CardFooter}from"./components/card/card-footer/card-footer.component.js";export{default as CardRow}from"./components/card/card-row/card-row.component.js";export{CheckboxGroup}from"./components/checkbox/checkbox-group/checkbox-group.component.js";export{Checkbox}from"./components/checkbox/checkbox.component.js";export{Confirm}from"./components/confirm/confirm.component.js";export{Content}from"./components/content/content.component.js";export{DateRange}from"./components/date-range/date-range.component.js";export{DateInput}from"./components/date/date.component.js";export{Decimal}from"./components/decimal/decimal.component.js";export{default as Dl}from"./components/definition-list/dl.component.js";export{default as Dt}from"./components/definition-list/dt/dt.component.js";export{default as Dd}from"./components/definition-list/dd/dd.component.js";export{Detail}from"./components/detail/detail.component.js";export{Dialog}from"./components/dialog/dialog.component.js";export{DialogFullScreen}from"./components/dialog-full-screen/dialog-full-screen.component.js";export{DismissibleBox}from"./components/dismissible-box/dismissible-box.component.js";export{default as DraggableContainer}from"./components/draggable/draggable-container.component.js";export{default as DraggableItem}from"./components/draggable/draggable-item/draggable-item.component.js";export{Drawer}from"./components/drawer/drawer.component.js";export{DuellingPicklist}from"./components/duelling-picklist/duelling-picklist.component.js";export{default as PicklistDivider}from"./components/duelling-picklist/picklist-divider/picklist-divider.component.js";export{PicklistItem}from"./components/duelling-picklist/picklist-item/picklist-item.component.js";export{Picklist}from"./components/duelling-picklist/picklist/picklist.component.js";export{PicklistPlaceholder}from"./components/duelling-picklist/picklist-placeholder/picklist-placeholder.component.js";export{PicklistGroup}from"./components/duelling-picklist/picklist-group/picklist-group.component.js";export{Fieldset}from"./components/fieldset/fieldset.component.js";export{FileInput}from"./components/file-input/file-input.component.js";export{FlatTable}from"./components/flat-table/flat-table.component.js";export{FlatTableHead}from"./components/flat-table/flat-table-head/flat-table-head.component.js";export{FlatTableHeader}from"./components/flat-table/flat-table-header/flat-table-header.component.js";export{FlatTableBody}from"./components/flat-table/flat-table-body/flat-table-body.component.js";export{FlatTableRow}from"./components/flat-table/flat-table-row/flat-table-row.component.js";export{FlatTableRowHeader}from"./components/flat-table/flat-table-row-header/flat-table-row-header.component.js";export{FlatTableCell}from"./components/flat-table/flat-table-cell/flat-table-cell.component.js";export{FlatTableCheckbox}from"./components/flat-table/flat-table-checkbox/flat-table-checkbox.component.js";export{FlatTableBodyDraggable}from"./components/flat-table/flat-table-body-draggable/flat-table-body-draggable.component.js";export{Sort}from"./components/flat-table/sort/sort.component.js";export{Form}from"./components/form/form.component.js";export{default as RequiredFieldsIndicator}from"./components/form/required-fields-indicator/required-fields-indicator.component.js";export{default as GlobalHeader}from"./components/global-header/global-header.component.js";export{GridContainer}from"./components/grid/grid-container/grid-container.component.js";export{GridItem}from"./components/grid/grid-item/grid-item.component.js";export{GroupedCharacter}from"./components/grouped-character/grouped-character.component.js";export{Heading}from"./components/heading/heading.component.js";export{Help}from"./components/help/help.component.js";export{Hr}from"./components/hr/hr.component.js";export{I18nProvider}from"./components/i18n-provider/i18n-provider.component.js";export{default as IconButton}from"./components/icon-button/icon-button.component.js";export{default as Icon}from"./components/icon/icon.component.js";export{Image}from"./components/image/image.component.js";export{default as InlineInputs}from"./components/inline-inputs/inline-inputs.component.js";export{LinkPreview}from"./components/link-preview/link-preview.component.js";export{Link}from"./components/link/link.component.js";export{Loader}from"./components/loader/loader.component.js";export{LoaderBar}from"./components/loader-bar/loader-bar.component.js";export{LoaderSpinner}from"./components/loader-spinner/loader-spinner.component.js";export{default as LoaderStar}from"./components/loader-star/loader-star.component.js";export{Menu}from"./components/menu/menu.component.js";export{MenuItem}from"./components/menu/menu-item/menu-item.component.js";export{default as MenuDivider}from"./components/menu/menu-divider/menu-divider.component.js";export{default as MenuSegmentTitle}from"./components/menu/menu-segment-title/menu-segment-title.component.js";export{MenuFullscreen}from"./components/menu/menu-full-screen/menu-full-screen.component.js";export{ScrollableBlock}from"./components/menu/scrollable-block/scrollable-block.component.js";export{Message}from"./components/message/message.component.js";export{default as Modal}from"./components/modal/modal.component.js";export{MultiActionButton}from"./components/multi-action-button/multi-action-button.component.js";export{NavigationBar}from"./components/navigation-bar/navigation-bar.component.js";export{Note}from"./components/note/note.component.js";export{Number}from"./components/number/number.component.js";export{NumeralDate}from"./components/numeral-date/numeral-date.component.js";export{Pager}from"./components/pager/pager.component.js";export{default as Pages}from"./components/pages/pages.component.js";export{default as Page}from"./components/pages/page/page.component.js";export{Password}from"./components/password/password.component.js";export{Pill}from"./components/pill/pill.component.js";export{default as Pod}from"./components/pod/pod.component.js";export{PopoverContainer}from"./components/popover-container/popover-container.component.js";export{Portal}from"./components/portal/portal.js";export{Portrait}from"./components/portrait/portrait.component.js";export{Preview}from"./components/preview/preview.component.js";export{Profile}from"./components/profile/profile.component.js";export{default as ProgressTracker}from"./components/progress-tracker/progress-tracker.component.js";export{default as RadioButton}from"./components/radio-button/radio-button.component.js";export{RadioButtonGroup}from"./components/radio-button/radio-button-group/radio-button-group.component.js";export{Search}from"./components/search/search.component.js";export{default as Option}from"./components/select/option/option.component.js";export{default as OptionRow}from"./components/select/option-row/option-row.component.js";export{default as OptionGroupHeader}from"./components/select/option-group-header/option-group-header.component.js";export{SimpleSelect as Select}from"./components/select/simple-select/simple-select.component.js";export{FilterableSelect}from"./components/select/filterable-select/filterable-select.component.js";export{MultiSelect}from"./components/select/multi-select/multi-select.component.js";export{SettingsRow}from"./components/settings-row/settings-row.component.js";export{Sidebar}from"./components/sidebar/sidebar.component.js";export{SimpleColorPicker}from"./components/simple-color-picker/simple-color-picker.component.js";export{SimpleColor}from"./components/simple-color-picker/simple-color/simple-color.component.js";export{SplitButton}from"./components/split-button/split-button.component.js";export{StepFlowTitle}from"./components/step-flow/step-flow-title/step-flow-title.component.js";export{StepFlow}from"./components/step-flow/step-flow.component.js";export{StepSequence}from"./components/step-sequence/step-sequence.component.js";export{StepSequenceItem}from"./components/step-sequence/step-sequence-item/step-sequence-item.component.js";export{Switch}from"./components/switch/switch.component.js";export{Tabs}from"./components/tabs/tabs.component.js";export{TextEditor}from"./components/text-editor/text-editor.component.js";export{createEmpty,createFromHTML}from"./components/text-editor/utils.js";export{Textarea}from"./components/textarea/textarea.component.js";export{Textbox}from"./components/textbox/textbox.component.js";export{default as TileSelect}from"./components/tile-select/tile-select.component.js";export{TileSelectGroup}from"./components/tile-select/tile-select-group/tile-select-group.component.js";export{Tile}from"./components/tile/tile.component.js";export{default as TileContent}from"./components/tile/tile-content/tile-content.component.js";export{TileFooter}from"./components/tile/tile-footer/tile-footer.component.js";export{TileHeader}from"./components/tile/tile-header/tile-header.component.js";export{FlexTileContainer}from"./components/tile/flex-tile-container/flex-tile-container.component.js";export{FlexTileCell}from"./components/tile/flex-tile-cell/flex-tile-cell.component.js";export{FlexTileDivider}from"./components/tile/flex-tile-divider/flex-tile-divider.component.js";export{default as Time}from"./components/time/time.component.js";export{Toast}from"./components/toast/toast.component.js";export{Tooltip}from"./components/tooltip/tooltip.component.js";export{Typography}from"./components/typography/typography.component.js";export{List,ListItem}from"./components/typography/list.component.js";export{VerticalDivider}from"./components/vertical-divider/vertical-divider.component.js";export{VerticalMenu}from"./components/vertical-menu/vertical-menu.component.js";export{VerticalMenuItem}from"./components/vertical-menu/vertical-menu-item/vertical-menu-item.component.js";export{VerticalMenuFullScreen}from"./components/vertical-menu/vertical-menu-full-screen/vertical-menu-full-screen.component.js";export{VerticalMenuTrigger}from"./components/vertical-menu/vertical-menu-trigger/vertical-menu-trigger.component.js";import"react/jsx-runtime";import"react";import"./components/vertical-menu/responsive-vertical-menu/responsive-vertical-menu.style.js";export{default as useMediaQuery}from"./hooks/useMediaQuery/useMediaQuery.js";import"./__internal__/i18n-context/index.js";import"./components/vertical-menu/responsive-vertical-menu/responsive-vertical-menu-item/responsive-vertical-menu-item.style.js";import"./components/vertical-menu/responsive-vertical-menu/responsive-vertical-menu-divider/responsive-vertical-menu-divider.style.js";import"./style/utils/filter-styled-system-padding-props.js";export{default as useCharacterCount}from"./hooks/useCharacterCount/useCharacterCount.js";export{default as GlobalStyle}from"./style/global-style.js";export{MenuItemDivider as ActionPopoverDivider}from"./components/action-popover/action-popover.style.js";export{Tab}from"./components/tabs/tab/tab.component.js";
1
+ export{Accordion}from"./components/accordion/accordion.component.js";export{AccordionGroup}from"./components/accordion/accordion-group/accordion-group.component.js";export{ActionPopover}from"./components/action-popover/action-popover.component.js";export{default as ActionPopoverMenu}from"./components/action-popover/action-popover-menu/action-popover-menu.component.js";export{ActionPopoverItem}from"./components/action-popover/action-popover-item/action-popover-item.component.js";export{ActionPopoverMenuButton}from"./components/action-popover/action-popover-menu-button/action-popover-menu-button.component.js";import"./components/action-popover/action-popover-divider/action-popover-divider.component.js";export{AdaptiveSidebar}from"./components/adaptive-sidebar/adaptive-sidebar.component.js";export{AdvancedColorPicker}from"./components/advanced-color-picker/advanced-color-picker.component.js";export{Alert}from"./components/alert/alert.component.js";export{default as AnchorNavigation}from"./components/anchor-navigation/anchor-navigation.component.js";export{default as AnchorNavigationItem}from"./components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.component.js";export{default as AnchorSectionDivider}from"./components/anchor-navigation/anchor-section-divider.component.js";export{Badge}from"./components/badge/badge.component.js";export{BatchSelection}from"./components/batch-selection/batch-selection.component.js";export{Box}from"./components/box/box.component.js";export{Breadcrumbs}from"./components/breadcrumbs/breadcrumbs.component.js";export{default as Crumb}from"./components/breadcrumbs/crumb/crumb.component.js";export{ButtonBar}from"./components/button-bar/button-bar.component.js";export{ButtonMinor}from"./components/button-minor/button-minor.component.js";export{ButtonToggle}from"./components/button-toggle/button-toggle.component.js";export{default as ButtonToggleGroup}from"./components/button-toggle/button-toggle-group/button-toggle-group.component.js";export{default as Button}from"./components/button/button.component.js";export{CarbonProvider}from"./components/carbon-provider/carbon-provider.component.js";export{default as Card}from"./components/card/card.component.js";export{default as CardColumn}from"./components/card/card-column/card-column.component.js";export{default as CardFooter}from"./components/card/card-footer/card-footer.component.js";export{default as CardRow}from"./components/card/card-row/card-row.component.js";export{CheckboxGroup}from"./components/checkbox/checkbox-group/checkbox-group.component.js";export{Checkbox}from"./components/checkbox/checkbox.component.js";export{Confirm}from"./components/confirm/confirm.component.js";export{Content}from"./components/content/content.component.js";export{DateRange}from"./components/date-range/date-range.component.js";export{DateInput}from"./components/date/date.component.js";export{Decimal}from"./components/decimal/decimal.component.js";export{default as Dl}from"./components/definition-list/dl.component.js";export{default as Dt}from"./components/definition-list/dt/dt.component.js";export{default as Dd}from"./components/definition-list/dd/dd.component.js";export{Detail}from"./components/detail/detail.component.js";export{Dialog}from"./components/dialog/dialog.component.js";export{DismissibleBox}from"./components/dismissible-box/dismissible-box.component.js";export{default as DraggableContainer}from"./components/draggable/draggable-container.component.js";export{default as DraggableItem}from"./components/draggable/draggable-item/draggable-item.component.js";export{Drawer}from"./components/drawer/drawer.component.js";export{DuellingPicklist}from"./components/duelling-picklist/duelling-picklist.component.js";export{default as PicklistDivider}from"./components/duelling-picklist/picklist-divider/picklist-divider.component.js";export{PicklistItem}from"./components/duelling-picklist/picklist-item/picklist-item.component.js";export{Picklist}from"./components/duelling-picklist/picklist/picklist.component.js";export{PicklistPlaceholder}from"./components/duelling-picklist/picklist-placeholder/picklist-placeholder.component.js";export{PicklistGroup}from"./components/duelling-picklist/picklist-group/picklist-group.component.js";export{Fieldset}from"./components/fieldset/fieldset.component.js";export{FileInput}from"./components/file-input/file-input.component.js";export{FlatTable}from"./components/flat-table/flat-table.component.js";export{FlatTableHead}from"./components/flat-table/flat-table-head/flat-table-head.component.js";export{FlatTableHeader}from"./components/flat-table/flat-table-header/flat-table-header.component.js";export{FlatTableBody}from"./components/flat-table/flat-table-body/flat-table-body.component.js";export{FlatTableRow}from"./components/flat-table/flat-table-row/flat-table-row.component.js";export{FlatTableRowHeader}from"./components/flat-table/flat-table-row-header/flat-table-row-header.component.js";export{FlatTableCell}from"./components/flat-table/flat-table-cell/flat-table-cell.component.js";export{FlatTableCheckbox}from"./components/flat-table/flat-table-checkbox/flat-table-checkbox.component.js";export{FlatTableBodyDraggable}from"./components/flat-table/flat-table-body-draggable/flat-table-body-draggable.component.js";export{Sort}from"./components/flat-table/sort/sort.component.js";export{Form}from"./components/form/form.component.js";export{default as RequiredFieldsIndicator}from"./components/form/required-fields-indicator/required-fields-indicator.component.js";export{default as GlobalHeader}from"./components/global-header/global-header.component.js";export{GridContainer}from"./components/grid/grid-container/grid-container.component.js";export{GridItem}from"./components/grid/grid-item/grid-item.component.js";export{GroupedCharacter}from"./components/grouped-character/grouped-character.component.js";export{Heading}from"./components/heading/heading.component.js";export{Help}from"./components/help/help.component.js";export{Hr}from"./components/hr/hr.component.js";export{I18nProvider}from"./components/i18n-provider/i18n-provider.component.js";export{default as IconButton}from"./components/icon-button/icon-button.component.js";export{default as Icon}from"./components/icon/icon.component.js";export{Image}from"./components/image/image.component.js";export{default as InlineInputs}from"./components/inline-inputs/inline-inputs.component.js";export{LinkPreview}from"./components/link-preview/link-preview.component.js";export{Link}from"./components/link/link.component.js";export{Loader}from"./components/loader/loader.component.js";export{LoaderBar}from"./components/loader-bar/loader-bar.component.js";export{LoaderSpinner}from"./components/loader-spinner/loader-spinner.component.js";export{default as LoaderStar}from"./components/loader-star/loader-star.component.js";export{Menu}from"./components/menu/menu.component.js";export{MenuItem}from"./components/menu/menu-item/menu-item.component.js";export{default as MenuDivider}from"./components/menu/menu-divider/menu-divider.component.js";export{default as MenuSegmentTitle}from"./components/menu/menu-segment-title/menu-segment-title.component.js";export{MenuFullscreen}from"./components/menu/menu-full-screen/menu-full-screen.component.js";export{ScrollableBlock}from"./components/menu/scrollable-block/scrollable-block.component.js";export{Message}from"./components/message/message.component.js";export{default as Modal}from"./components/modal/modal.component.js";export{MultiActionButton}from"./components/multi-action-button/multi-action-button.component.js";export{NavigationBar}from"./components/navigation-bar/navigation-bar.component.js";export{Note}from"./components/note/note.component.js";export{Number}from"./components/number/number.component.js";export{NumeralDate}from"./components/numeral-date/numeral-date.component.js";export{Pager}from"./components/pager/pager.component.js";export{default as Pages}from"./components/pages/pages.component.js";export{default as Page}from"./components/pages/page/page.component.js";export{Password}from"./components/password/password.component.js";export{Pill}from"./components/pill/pill.component.js";export{default as Pod}from"./components/pod/pod.component.js";export{PopoverContainer}from"./components/popover-container/popover-container.component.js";export{Portal}from"./components/portal/portal.js";export{Portrait}from"./components/portrait/portrait.component.js";export{Preview}from"./components/preview/preview.component.js";export{Profile}from"./components/profile/profile.component.js";export{default as ProgressTracker}from"./components/progress-tracker/progress-tracker.component.js";export{default as RadioButton}from"./components/radio-button/radio-button.component.js";export{RadioButtonGroup}from"./components/radio-button/radio-button-group/radio-button-group.component.js";export{Search}from"./components/search/search.component.js";export{default as Option}from"./components/select/option/option.component.js";export{default as OptionRow}from"./components/select/option-row/option-row.component.js";export{default as OptionGroupHeader}from"./components/select/option-group-header/option-group-header.component.js";export{SimpleSelect as Select}from"./components/select/simple-select/simple-select.component.js";export{FilterableSelect}from"./components/select/filterable-select/filterable-select.component.js";export{MultiSelect}from"./components/select/multi-select/multi-select.component.js";export{SettingsRow}from"./components/settings-row/settings-row.component.js";export{Sidebar}from"./components/sidebar/sidebar.component.js";export{SimpleColorPicker}from"./components/simple-color-picker/simple-color-picker.component.js";export{SimpleColor}from"./components/simple-color-picker/simple-color/simple-color.component.js";export{SplitButton}from"./components/split-button/split-button.component.js";export{StepFlowTitle}from"./components/step-flow/step-flow-title/step-flow-title.component.js";export{StepFlow}from"./components/step-flow/step-flow.component.js";export{StepSequence}from"./components/step-sequence/step-sequence.component.js";export{StepSequenceItem}from"./components/step-sequence/step-sequence-item/step-sequence-item.component.js";export{Switch}from"./components/switch/switch.component.js";export{Tabs}from"./components/tabs/tabs.component.js";export{TextEditor}from"./components/text-editor/text-editor.component.js";export{createEmpty,createFromHTML}from"./components/text-editor/utils.js";export{Textarea}from"./components/textarea/textarea.component.js";export{Textbox}from"./components/textbox/textbox.component.js";export{default as TileSelect}from"./components/tile-select/tile-select.component.js";export{TileSelectGroup}from"./components/tile-select/tile-select-group/tile-select-group.component.js";export{Tile}from"./components/tile/tile.component.js";export{default as TileContent}from"./components/tile/tile-content/tile-content.component.js";export{TileFooter}from"./components/tile/tile-footer/tile-footer.component.js";export{TileHeader}from"./components/tile/tile-header/tile-header.component.js";export{FlexTileContainer}from"./components/tile/flex-tile-container/flex-tile-container.component.js";export{FlexTileCell}from"./components/tile/flex-tile-cell/flex-tile-cell.component.js";export{FlexTileDivider}from"./components/tile/flex-tile-divider/flex-tile-divider.component.js";export{default as Time}from"./components/time/time.component.js";export{Toast}from"./components/toast/toast.component.js";export{Tooltip}from"./components/tooltip/tooltip.component.js";export{Typography}from"./components/typography/typography.component.js";export{List,ListItem}from"./components/typography/list.component.js";export{VerticalDivider}from"./components/vertical-divider/vertical-divider.component.js";export{VerticalMenu}from"./components/vertical-menu/vertical-menu.component.js";export{VerticalMenuItem}from"./components/vertical-menu/vertical-menu-item/vertical-menu-item.component.js";export{VerticalMenuFullScreen}from"./components/vertical-menu/vertical-menu-full-screen/vertical-menu-full-screen.component.js";export{VerticalMenuTrigger}from"./components/vertical-menu/vertical-menu-trigger/vertical-menu-trigger.component.js";import"react/jsx-runtime";import"react";import"./components/vertical-menu/responsive-vertical-menu/responsive-vertical-menu.style.js";export{default as useMediaQuery}from"./hooks/useMediaQuery/useMediaQuery.js";import"./__internal__/i18n-context/index.js";import"./components/modal/__internal__/modal.context.js";import"./components/carbon-provider/__internal__/top-modal.context.js";import"./components/vertical-menu/responsive-vertical-menu/responsive-vertical-menu-item/responsive-vertical-menu-item.style.js";import"./components/vertical-menu/responsive-vertical-menu/responsive-vertical-menu-divider/responsive-vertical-menu-divider.style.js";import"./style/utils/filter-styled-system-padding-props.js";export{default as useCharacterCount}from"./hooks/useCharacterCount/useCharacterCount.js";export{default as GlobalStyle}from"./style/global-style.js";export{MenuItemDivider as ActionPopoverDivider}from"./components/action-popover/action-popover.style.js";export{Tab}from"./components/tabs/tab/tab.component.js";
@@ -1 +1 @@
1
- import{de as e}from"date-fns/locale/de";const n=e=>1===("string"==typeof e?parseInt(e):e),a={locale:()=>"de-DE",actions:{edit:()=>"Bearbeiten",delete:()=>"Löschen"},actionPopover:{ariaLabel:()=>"Aktionen"},advancedColorPicker:{ariaLabel:()=>"Farbe ändern",currentColorDescriptionTerm:()=>"Aktuell zugewiesene Farbe:",currentColorAssigned:e=>e},batchSelection:{selected:e=>`${e} ausgewählt`},breadcrumbs:{ariaLabel:()=>"Breadcrumbs"},confirm:{no:()=>"Nein",yes:()=>"Ja"},characterCount:{tooManyCharacters:e=>`${e} Zeichen zu viel`,charactersLeft:e=>`${e} Zeichen übrig`,visuallyHiddenHint:e=>`Sie können bis zu ${e} Zeichen eingeben.`},date:{dateFnsLocale:()=>e,ariaLabels:{previousMonthButton:()=>"Vorheriger Monat",nextMonthButton:()=>"Nächster Monat"}},dialog:{ariaLabels:{close:()=>"Schließen"}},dialogFullScreen:{ariaLabels:{close:()=>"Schließen"}},dismissibleBox:{ariaLabels:{close:()=>"Schließen"}},errors:{messages:{formSummary:(e,a,r)=>{const i=n(a)?"Warnung":"Warnungen";return e&&a&&"warning"===r?["und",`${a} ${i}`]:e?["Es gibt",`${e} Fehler`]:a?["Es gibt",`${a} ${i}`]:null}}},fileInput:{dragAndDrop:()=>"oder per Drag & Drop ablegen",selectFile:()=>"Datei auswählen",fileUploadStatus:()=>"Status",actions:{cancel:()=>"Upload abbrechen",clear:()=>"Löschen",delete:()=>"Datei löschen"}},heading:{backLinkAriaLabel:()=>"Zurück"},link:{skipLinkLabel:()=>"Zum Hauptinhalt springen"},loader:{loading:()=>"Laden"},loaderSpinner:{loading:()=>"Laden..."},loaderStar:{loading:()=>"Laden..."},menuFullscreen:{ariaLabels:{closeButton:()=>"Schließen"}},message:{closeButtonAriaLabel:()=>"Schließen",error:()=>"Fehler",info:()=>"Informationen",success:()=>"Erfolg",warning:()=>"Warnung",neutral:()=>"Informationen",ai:()=>"Von KI generierte Informationen"},numeralDate:{validation:{day:(e,n)=>e&&n?`Tag in ${e} muss eine Zahl von 1- ${n} sein`:"Der Tag muss eine Zahl zwischen 1 und 31 sein.",month:()=>"Der Monat muss eine Zahl zwischen 1 und 12 sein.",year:()=>"Das Jahr muss eine Zahl zwischen 1000 und 2200 sein."},labels:{day:()=>"Tag",month:()=>"Monat",year:()=>"Jahr"}},pager:{show:()=>"Anzeigen",records:(e,a=!0)=>{const r=n(e)?"Element":"Elemente";return a?`${e} ${r}`:r},first:()=>"Erste",last:()=>"Letzte",next:()=>"Weiter",previous:()=>"Vorherige",pageX:()=>"Seite",ofY:e=>`von ${e}`},password:{buttonLabelHide:()=>"Ausblenden",buttonLabelShow:()=>"Anzeigen",ariaLabelHide:()=>"Passwort ausblenden",ariaLabelShow:()=>"Passwort anzeigen",ariaLiveShownMessage:()=>"Ihr Passwort wurde angezeigt. Bewegen Sie den Cursor über das Passwort, um es sich vorlesen zu lassen, wenn dies sicher ist.",ariaLiveHiddenMessage:()=>"Ihr Passwort ist derzeit ausgeblendet."},progressTracker:{of:()=>"von"},pod:{undo:()=>"Rückgängig"},textEditor:{boldAria:()=>"Fett",cancelButton:()=>"Abbrechen",cancelButtonAria:()=>"Abbrechen",characterCounter:e=>`Noch ${"number"==typeof e?e.toString():e} Zeichen`,characterLimit:e=>`Sie sind ${e} Zeichen über dem Zeichenlimit`,contentEditorAria:()=>"Editor für Rich-Text-Inhalte",italicAria:()=>"Kursiv",orderedListAria:()=>"Sortierte Liste",saveButton:()=>"Speichern",saveButtonAria:()=>"Speichern",toolbarAriaLabel:()=>"Formatierung",unorderedListAria:()=>"Unsortierte Liste"},search:{searchButtonText:()=>"Suchen"},select:{actionButtonText:()=>"Neues Element hinzufügen",placeholder:()=>"Bitte auswählen...",noResultsForTerm:e=>`Es wurden keine Ergebnisse für ${e} gefunden.`},sidebar:{ariaLabels:{close:()=>"Schließen"}},sort:{accessibleName:(e,n)=>`Alle ${e||"inhalte"}${n?` in der Reihenfolge ${"ascending"===n?"aufsteigend":"absteigend"} sortieren.`:" in der Reihenfolge aufsteigend oder absteigend sortieren."}`},splitButton:{ariaLabel:()=>"Mehr anzeigen"},stepFlow:{stepLabel:(e,n)=>`Schritt ${e} von ${n}`,screenReaderOnlyTitle:(e,n,a,r)=>`${r?`${r}.`:""} ${e}. Schritt ${n} von ${a}.`,closeIconAriaLabel:()=>"Schließen"},switch:{on:()=>"EIN",off:()=>"AUS"},tileSelect:{deselect:()=>"Auswahl aufheben"},time:{amText:()=>"AM",pmText:()=>"PM",hoursLabelText:()=>"h",minutesLabelText:()=>"min",hoursAriaLabelText:()=>"Stunden",minutesAriaLabelText:()=>"Minuten"},toast:{ariaLabels:{close:()=>"Schließen"},error:()=>"",info:()=>"",success:()=>"",warning:()=>"",neutral:()=>"",notification:()=>""},verticalMenuFullScreen:{ariaLabels:{close:()=>"Schließen"}}};export{a as default};
1
+ import{de as e}from"date-fns/locale/de";const n=e=>1===("string"==typeof e?parseInt(e):e),a={locale:()=>"de-DE",actions:{edit:()=>"Bearbeiten",delete:()=>"Löschen"},actionPopover:{ariaLabel:()=>"Aktionen"},advancedColorPicker:{ariaLabel:()=>"Farbe ändern",currentColorDescriptionTerm:()=>"Aktuell zugewiesene Farbe:",currentColorAssigned:e=>e},batchSelection:{selected:e=>`${e} ausgewählt`},breadcrumbs:{ariaLabel:()=>"Breadcrumbs"},confirm:{no:()=>"Nein",yes:()=>"Ja"},characterCount:{tooManyCharacters:e=>`${e} Zeichen zu viel`,charactersLeft:e=>`${e} Zeichen übrig`,visuallyHiddenHint:e=>`Sie können bis zu ${e} Zeichen eingeben.`},date:{dateFnsLocale:()=>e,ariaLabels:{previousMonthButton:()=>"Vorheriger Monat",nextMonthButton:()=>"Nächster Monat"}},dialog:{ariaLabels:{close:()=>"Schließen"}},dismissibleBox:{ariaLabels:{close:()=>"Schließen"}},errors:{messages:{formSummary:(e,a,r)=>{const i=n(a)?"Warnung":"Warnungen";return e&&a&&"warning"===r?["und",`${a} ${i}`]:e?["Es gibt",`${e} Fehler`]:a?["Es gibt",`${a} ${i}`]:null}}},fileInput:{dragAndDrop:()=>"oder per Drag & Drop ablegen",selectFile:()=>"Datei auswählen",fileUploadStatus:()=>"Status",actions:{cancel:()=>"Upload abbrechen",clear:()=>"Löschen",delete:()=>"Datei löschen"}},heading:{backLinkAriaLabel:()=>"Zurück"},link:{skipLinkLabel:()=>"Zum Hauptinhalt springen"},loader:{loading:()=>"Laden"},loaderSpinner:{loading:()=>"Laden..."},loaderStar:{loading:()=>"Laden..."},menuFullscreen:{ariaLabels:{closeButton:()=>"Schließen"}},message:{closeButtonAriaLabel:()=>"Schließen",error:()=>"Fehler",info:()=>"Informationen",success:()=>"Erfolg",warning:()=>"Warnung",neutral:()=>"Informationen",ai:()=>"Von KI generierte Informationen"},numeralDate:{validation:{day:(e,n)=>e&&n?`Tag in ${e} muss eine Zahl von 1- ${n} sein`:"Der Tag muss eine Zahl zwischen 1 und 31 sein.",month:()=>"Der Monat muss eine Zahl zwischen 1 und 12 sein.",year:()=>"Das Jahr muss eine Zahl zwischen 1000 und 2200 sein."},labels:{day:()=>"Tag",month:()=>"Monat",year:()=>"Jahr"}},pager:{show:()=>"Anzeigen",records:(e,a=!0)=>{const r=n(e)?"Element":"Elemente";return a?`${e} ${r}`:r},first:()=>"Erste",last:()=>"Letzte",next:()=>"Weiter",previous:()=>"Vorherige",pageX:()=>"Seite",ofY:e=>`von ${e}`},password:{buttonLabelHide:()=>"Ausblenden",buttonLabelShow:()=>"Anzeigen",ariaLabelHide:()=>"Passwort ausblenden",ariaLabelShow:()=>"Passwort anzeigen",ariaLiveShownMessage:()=>"Ihr Passwort wurde angezeigt. Bewegen Sie den Cursor über das Passwort, um es sich vorlesen zu lassen, wenn dies sicher ist.",ariaLiveHiddenMessage:()=>"Ihr Passwort ist derzeit ausgeblendet."},progressTracker:{of:()=>"von"},pod:{undo:()=>"Rückgängig"},textEditor:{boldAria:()=>"Fett",cancelButton:()=>"Abbrechen",cancelButtonAria:()=>"Abbrechen",characterCounter:e=>`Noch ${"number"==typeof e?e.toString():e} Zeichen`,characterLimit:e=>`Sie sind ${e} Zeichen über dem Zeichenlimit`,contentEditorAria:()=>"Editor für Rich-Text-Inhalte",italicAria:()=>"Kursiv",orderedListAria:()=>"Sortierte Liste",saveButton:()=>"Speichern",saveButtonAria:()=>"Speichern",toolbarAriaLabel:()=>"Formatierung",unorderedListAria:()=>"Unsortierte Liste"},search:{searchButtonText:()=>"Suchen"},select:{actionButtonText:()=>"Neues Element hinzufügen",placeholder:()=>"Bitte auswählen...",noResultsForTerm:e=>`Es wurden keine Ergebnisse für ${e} gefunden.`},sidebar:{ariaLabels:{close:()=>"Schließen"}},sort:{accessibleName:(e,n)=>`Alle ${e||"inhalte"}${n?` in der Reihenfolge ${"ascending"===n?"aufsteigend":"absteigend"} sortieren.`:" in der Reihenfolge aufsteigend oder absteigend sortieren."}`},splitButton:{ariaLabel:()=>"Mehr anzeigen"},stepFlow:{stepLabel:(e,n)=>`Schritt ${e} von ${n}`,screenReaderOnlyTitle:(e,n,a,r)=>`${r?`${r}.`:""} ${e}. Schritt ${n} von ${a}.`,closeIconAriaLabel:()=>"Schließen"},switch:{on:()=>"EIN",off:()=>"AUS"},tileSelect:{deselect:()=>"Auswahl aufheben"},time:{amText:()=>"AM",pmText:()=>"PM",hoursLabelText:()=>"h",minutesLabelText:()=>"min",hoursAriaLabelText:()=>"Stunden",minutesAriaLabelText:()=>"Minuten"},toast:{ariaLabels:{close:()=>"Schließen"},error:()=>"",info:()=>"",success:()=>"",warning:()=>"",neutral:()=>"",notification:()=>""},verticalMenuFullScreen:{ariaLabels:{close:()=>"Schließen"}}};export{a as default};
@@ -1 +1 @@
1
- import{enGB as e}from"date-fns/locale/en-GB";const a=e=>1===("string"==typeof e?parseInt(e):e),r={locale:()=>"en-GB",actions:{edit:()=>"Edit",delete:()=>"Delete"},actionPopover:{ariaLabel:()=>"actions"},advancedColorPicker:{ariaLabel:()=>"Change colour",currentColorDescriptionTerm:()=>"Current colour assigned: ",currentColorAssigned:e=>e},batchSelection:{selected:e=>`${e} selected`},breadcrumbs:{ariaLabel:()=>"breadcrumbs"},confirm:{no:()=>"No",yes:()=>"Yes"},characterCount:{tooManyCharacters:(e,a)=>1===e?`${a} character too many`:`${a} characters too many`,charactersLeft:(e,a)=>1===e?`${a} character left`:`${a} characters left`,visuallyHiddenHint:e=>`You can enter up to ${e} characters`},date:{dateFnsLocale:()=>e,ariaLabels:{previousMonthButton:()=>"Previous month",nextMonthButton:()=>"Next month"},dateFormatOverride:void 0},dialog:{ariaLabels:{close:()=>"Close"}},dialogFullScreen:{ariaLabels:{close:()=>"Close"}},dismissibleBox:{ariaLabels:{close:()=>"Close"}},errors:{messages:{formSummary:(e,r,o)=>{const t=a(e)?"error":"errors",n=a(r)?"warning":"warnings",i=a(e)?"is":"are",s=a(r)?"is":"are";return e&&r&&"warning"===o?["and",`${r} ${n}`]:e?[`There ${i}`,`${e} ${t}`]:r?[`There ${s}`,`${r} ${n}`]:null}}},fileInput:{dragAndDrop:()=>"or drag and drop your file",selectFile:()=>"Select file",fileUploadStatus:()=>"File upload status",actions:{cancel:()=>"Cancel upload",clear:()=>"Clear",delete:()=>"Delete file"}},heading:{backLinkAriaLabel:()=>"Back"},link:{skipLinkLabel:()=>"Skip to main content"},loader:{loading:()=>"Loading"},loaderSpinner:{loading:()=>"Loading..."},loaderStar:{loading:()=>"Loading..."},menuFullscreen:{ariaLabels:{closeButton:()=>"Close"}},message:{closeButtonAriaLabel:()=>"Close",error:()=>"Error",info:()=>"Information",success:()=>"Success",warning:()=>"Warning",neutral:()=>"Information",ai:()=>"AI Information"},numeralDate:{validation:{day:(e,a)=>e&&a?`Day in ${e} should be a number within 1-${a}.`:"Day should be a number within a 1-31 range.",month:()=>"Month should be a number within a 1-12 range.",year:()=>"Year should be a number within a 1800-2200 range."},labels:{day:()=>"Day",month:()=>"Month",year:()=>"Year"}},pager:{show:()=>"Show",records:(e,r=!0)=>{const o=a(e)?"item":"items";return r?`${e} ${o}`:o},first:()=>"First",last:()=>"Last",next:()=>"Next",previous:()=>"Previous",pageX:()=>"Page",ofY:e=>`of ${e}`},password:{buttonLabelHide:()=>"Hide",buttonLabelShow:()=>"Show",ariaLabelHide:()=>"Hide password",ariaLabelShow:()=>"Show password",ariaLiveShownMessage:()=>"Your password has been shown. Focus on the password input to have it read to you, if it is safe to do so.",ariaLiveHiddenMessage:()=>"Your password is currently hidden."},progressTracker:{of:()=>"of"},pod:{undo:()=>"Undo"},textEditor:{boldAria:()=>"Bold",cancelButton:()=>"Cancel",cancelButtonAria:()=>"Cancel",characterCounter:e=>`${"number"==typeof e?e.toString():e} characters remaining`,characterLimit:e=>`You are ${e} character(s) over the character limit`,contentEditorAria:()=>"Rich text content editor",italicAria:()=>"Italic",orderedListAria:()=>"Ordered list",saveButton:()=>"Save",saveButtonAria:()=>"Save",toolbarAriaLabel:()=>"Formatting",unorderedListAria:()=>"Unordered list"},search:{searchButtonText:()=>"Search"},select:{actionButtonText:()=>"Add New Item",placeholder:()=>"Please Select...",noResultsForTerm:e=>`No results for "${e}"`},sidebar:{ariaLabels:{close:()=>"Close"}},sort:{accessibleName:(e,a)=>`Sort all ${e||"contents"}${a?` in an ${a} order.`:" in an ascending or descending order."}`},splitButton:{ariaLabel:()=>"Show more"},stepFlow:{stepLabel:(e,a)=>`Step ${e} of ${a}`,screenReaderOnlyTitle:(e,a,r,o)=>`${o?`${o}.`:""} ${e}. Step ${a} of ${r}.`,closeIconAriaLabel:()=>"Close"},switch:{on:()=>"ON",off:()=>"OFF"},tileSelect:{deselect:()=>"Deselect"},time:{amText:()=>"AM",pmText:()=>"PM",hoursLabelText:()=>"Hrs.",minutesLabelText:()=>"Mins.",hoursAriaLabelText:()=>"Hours",minutesAriaLabelText:()=>"Minutes"},toast:{ariaLabels:{close:()=>"Close"},error:()=>"Error",info:()=>"Information",success:()=>"Success",warning:()=>"Warning",neutral:()=>"Information",notification:()=>"Notification"},verticalMenu:{ariaLabels:{responsiveMenuLauncher:()=>"Product menu",responsiveMenuCloseButton:()=>"Close product menu"}},verticalMenuFullScreen:{ariaLabels:{close:()=>"Close"}}};export{r as default};
1
+ import{enGB as e}from"date-fns/locale/en-GB";const a=e=>1===("string"==typeof e?parseInt(e):e),r={locale:()=>"en-GB",actions:{edit:()=>"Edit",delete:()=>"Delete"},actionPopover:{ariaLabel:()=>"actions"},advancedColorPicker:{ariaLabel:()=>"Change colour",currentColorDescriptionTerm:()=>"Current colour assigned: ",currentColorAssigned:e=>e},batchSelection:{selected:e=>`${e} selected`},breadcrumbs:{ariaLabel:()=>"breadcrumbs"},confirm:{no:()=>"No",yes:()=>"Yes"},characterCount:{tooManyCharacters:(e,a)=>1===e?`${a} character too many`:`${a} characters too many`,charactersLeft:(e,a)=>1===e?`${a} character left`:`${a} characters left`,visuallyHiddenHint:e=>`You can enter up to ${e} characters`},date:{dateFnsLocale:()=>e,ariaLabels:{previousMonthButton:()=>"Previous month",nextMonthButton:()=>"Next month"},dateFormatOverride:void 0},dialog:{ariaLabels:{close:()=>"Close"}},dismissibleBox:{ariaLabels:{close:()=>"Close"}},errors:{messages:{formSummary:(e,r,o)=>{const t=a(e)?"error":"errors",n=a(r)?"warning":"warnings",i=a(e)?"is":"are",s=a(r)?"is":"are";return e&&r&&"warning"===o?["and",`${r} ${n}`]:e?[`There ${i}`,`${e} ${t}`]:r?[`There ${s}`,`${r} ${n}`]:null}}},fileInput:{dragAndDrop:()=>"or drag and drop your file",selectFile:()=>"Select file",fileUploadStatus:()=>"File upload status",actions:{cancel:()=>"Cancel upload",clear:()=>"Clear",delete:()=>"Delete file"}},heading:{backLinkAriaLabel:()=>"Back"},link:{skipLinkLabel:()=>"Skip to main content"},loader:{loading:()=>"Loading"},loaderSpinner:{loading:()=>"Loading..."},loaderStar:{loading:()=>"Loading..."},menuFullscreen:{ariaLabels:{closeButton:()=>"Close"}},message:{closeButtonAriaLabel:()=>"Close",error:()=>"Error",info:()=>"Information",success:()=>"Success",warning:()=>"Warning",neutral:()=>"Information",ai:()=>"AI Information"},numeralDate:{validation:{day:(e,a)=>e&&a?`Day in ${e} should be a number within 1-${a}.`:"Day should be a number within a 1-31 range.",month:()=>"Month should be a number within a 1-12 range.",year:()=>"Year should be a number within a 1800-2200 range."},labels:{day:()=>"Day",month:()=>"Month",year:()=>"Year"}},pager:{show:()=>"Show",records:(e,r=!0)=>{const o=a(e)?"item":"items";return r?`${e} ${o}`:o},first:()=>"First",last:()=>"Last",next:()=>"Next",previous:()=>"Previous",pageX:()=>"Page",ofY:e=>`of ${e}`},password:{buttonLabelHide:()=>"Hide",buttonLabelShow:()=>"Show",ariaLabelHide:()=>"Hide password",ariaLabelShow:()=>"Show password",ariaLiveShownMessage:()=>"Your password has been shown. Focus on the password input to have it read to you, if it is safe to do so.",ariaLiveHiddenMessage:()=>"Your password is currently hidden."},progressTracker:{of:()=>"of"},pod:{undo:()=>"Undo"},textEditor:{boldAria:()=>"Bold",cancelButton:()=>"Cancel",cancelButtonAria:()=>"Cancel",characterCounter:e=>`${"number"==typeof e?e.toString():e} characters remaining`,characterLimit:e=>`You are ${e} character(s) over the character limit`,contentEditorAria:()=>"Rich text content editor",italicAria:()=>"Italic",orderedListAria:()=>"Ordered list",saveButton:()=>"Save",saveButtonAria:()=>"Save",toolbarAriaLabel:()=>"Formatting",unorderedListAria:()=>"Unordered list"},search:{searchButtonText:()=>"Search"},select:{actionButtonText:()=>"Add New Item",placeholder:()=>"Please Select...",noResultsForTerm:e=>`No results for "${e}"`},sidebar:{ariaLabels:{close:()=>"Close"}},sort:{accessibleName:(e,a)=>`Sort all ${e||"contents"}${a?` in an ${a} order.`:" in an ascending or descending order."}`},splitButton:{ariaLabel:()=>"Show more"},stepFlow:{stepLabel:(e,a)=>`Step ${e} of ${a}`,screenReaderOnlyTitle:(e,a,r,o)=>`${o?`${o}.`:""} ${e}. Step ${a} of ${r}.`,closeIconAriaLabel:()=>"Close"},switch:{on:()=>"ON",off:()=>"OFF"},tileSelect:{deselect:()=>"Deselect"},time:{amText:()=>"AM",pmText:()=>"PM",hoursLabelText:()=>"Hrs.",minutesLabelText:()=>"Mins.",hoursAriaLabelText:()=>"Hours",minutesAriaLabelText:()=>"Minutes"},toast:{ariaLabels:{close:()=>"Close"},error:()=>"Error",info:()=>"Information",success:()=>"Success",warning:()=>"Warning",neutral:()=>"Information",notification:()=>"Notification"},verticalMenu:{ariaLabels:{responsiveMenuLauncher:()=>"Product menu launcher",responsiveMenuCloseButton:()=>"Close product menu",responsiveMenuAria:()=>"Product menu"}},verticalMenuFullScreen:{ariaLabels:{close:()=>"Close"}}};export{r as default};
@@ -1 +1 @@
1
- import{es as e}from"date-fns/locale/es";const a=e=>1===("string"==typeof e?parseInt(e):e),r={locale:()=>"es-ES",actions:{edit:()=>"Editar",delete:()=>"Eliminar"},actionPopover:{ariaLabel:()=>"acciones"},advancedColorPicker:{ariaLabel:()=>"Cambiar color",currentColorDescriptionTerm:()=>"Color aplicado:",currentColorAssigned:e=>e},batchSelection:{selected:e=>`Registros seleccionados: ${e}`},breadcrumbs:{ariaLabel:()=>"ruta de navegación"},confirm:{no:()=>"No",yes:()=>"Sí"},characterCount:{tooManyCharacters:(e,a)=>1===e?`Hay ${a} carácter de más.`:`Hay ${a} caracteres de más.`,charactersLeft:(e,a)=>1===e?`Queda ${a} carácter.`:`Quedan ${a} caracteres.`,visuallyHiddenHint:e=>`Puedes introducir hasta ${e} caracteres.`},date:{dateFnsLocale:()=>e,ariaLabels:{previousMonthButton:()=>"Mes anterior",nextMonthButton:()=>"Mes siguiente"}},dialog:{ariaLabels:{close:()=>"Cerrar"}},dialogFullScreen:{ariaLabels:{close:()=>"Cerrar"}},dismissibleBox:{ariaLabels:{close:()=>"Cerrar"}},errors:{messages:{formSummary:(e,r,o)=>{const n=a(e)?"error":"errores",t=a(r)?"aviso":"avisos";return e&&r&&"warning"===o?["y",`${r} ${t}`]:e?["Hay",`${e} ${n}`]:r?["Hay",`${r} ${t}`]:null}}},fileInput:{dragAndDrop:()=>"También los puedes arrastrar hasta aquí.",selectFile:()=>"Selecciona un archivo",fileUploadStatus:()=>"Estado de subida de ficheros",actions:{cancel:()=>"Cancelar subida",clear:()=>"Borrar",delete:()=>"Eliminar"}},heading:{backLinkAriaLabel:()=>"Volver"},link:{skipLinkLabel:()=>"Ir al contenido principal"},loader:{loading:()=>"Cargando..."},loaderSpinner:{loading:()=>"Cargando..."},loaderStar:{loading:()=>"Cargando..."},menuFullscreen:{ariaLabels:{closeButton:()=>"Cerrar"}},message:{closeButtonAriaLabel:()=>"Cerrar",error:()=>"Error",info:()=>"Información",success:()=>"Acción realizada",warning:()=>"Aviso",neutral:()=>"Información",ai:()=>"Información generada por IA"},numeralDate:{validation:{day:(e,a)=>e&&a?`El día del mes ${e} debe ser un número comprendido entre 1 y ${a}.`:"El día debe ser un número comprendido entre 1 y 31.",month:()=>"El mes debe ser un número comprendido entre 1 y 12.",year:()=>"El año debe ser un número comprendido entre 1800 y 2200."},labels:{day:()=>"Día",month:()=>"Mes",year:()=>"Año"}},pager:{show:()=>"Mostrar",records:(e,r=!0)=>{const o=a(e)?"elemento":"elementos";return r?`${e} ${o}`:o},first:()=>"Primera",last:()=>"Última",next:()=>"Siguiente",previous:()=>"Anterior",pageX:()=>"Página",ofY:e=>`de ${e}`},password:{buttonLabelHide:()=>"Ocultar",buttonLabelShow:()=>"Mostrar",ariaLabelHide:()=>"Ocultar contraseña",ariaLabelShow:()=>"Mostrar contraseña",ariaLiveShownMessage:()=>"Tu contraseña se muestra en pantalla. Si estás en un entorno seguro, coloca el cursor sobre ella para que se te lea en voz alta.",ariaLiveHiddenMessage:()=>"La contraseña está oculta."},progressTracker:{of:()=>"de"},pod:{undo:()=>"Deshacer"},textEditor:{boldAria:()=>"Negrita",cancelButton:()=>"Cancelar",cancelButtonAria:()=>"Cancelar",characterCounter:e=>`Quedan ${"number"==typeof e?e.toString():e} caracteres`,characterLimit:e=>`El límite de ${e} caracteres se ha superado.`,contentEditorAria:()=>"Editor de contenidos de texto enriquecido",italicAria:()=>"Cursiva",orderedListAria:()=>"Lista ordenada",saveButton:()=>"Guardar",saveButtonAria:()=>"Guardar",toolbarAriaLabel:()=>"Formato",unorderedListAria:()=>"Lista no ordenada"},search:{searchButtonText:()=>"Buscar"},select:{actionButtonText:()=>"Añadir elemento",placeholder:()=>"Seleccionar...",noResultsForTerm:e=>`No hay resultados para ${e}.`},sidebar:{ariaLabels:{close:()=>"Cerrar"}},sort:{accessibleName:(e,a)=>`Ordenar todos los contenidos ${e&&`de tipo ${e}`}${a?` según orden ${"ascending"===a?"ascendente":"descendente"}.`:" según orden ascendente o descendente."}`},splitButton:{ariaLabel:()=>"Mostrar más"},stepFlow:{stepLabel:(e,a)=>`Paso ${e} de ${a}`,screenReaderOnlyTitle:(e,a,r,o)=>`${o?`${o}.`:""} ${e}. Paso ${a} de ${r}.`,closeIconAriaLabel:()=>"Cerrar"},switch:{on:()=>"SÍ",off:()=>"NO"},tileSelect:{deselect:()=>"Deseleccionar"},time:{amText:()=>"a. m.",pmText:()=>"p. m.",hoursLabelText:()=>"h",minutesLabelText:()=>"min",hoursAriaLabelText:()=>"Horas",minutesAriaLabelText:()=>"Minutos"},toast:{ariaLabels:{close:()=>"Cerrar"},error:()=>"",info:()=>"",success:()=>"",warning:()=>"",neutral:()=>"",notification:()=>""},verticalMenuFullScreen:{ariaLabels:{close:()=>"Cerrar"}}};export{r as default};
1
+ import{es as e}from"date-fns/locale/es";const a=e=>1===("string"==typeof e?parseInt(e):e),r={locale:()=>"es-ES",actions:{edit:()=>"Editar",delete:()=>"Eliminar"},actionPopover:{ariaLabel:()=>"acciones"},advancedColorPicker:{ariaLabel:()=>"Cambiar color",currentColorDescriptionTerm:()=>"Color aplicado:",currentColorAssigned:e=>e},batchSelection:{selected:e=>`Registros seleccionados: ${e}`},breadcrumbs:{ariaLabel:()=>"ruta de navegación"},confirm:{no:()=>"No",yes:()=>"Sí"},characterCount:{tooManyCharacters:(e,a)=>1===e?`Hay ${a} carácter de más.`:`Hay ${a} caracteres de más.`,charactersLeft:(e,a)=>1===e?`Queda ${a} carácter.`:`Quedan ${a} caracteres.`,visuallyHiddenHint:e=>`Puedes introducir hasta ${e} caracteres.`},date:{dateFnsLocale:()=>e,ariaLabels:{previousMonthButton:()=>"Mes anterior",nextMonthButton:()=>"Mes siguiente"}},dialog:{ariaLabels:{close:()=>"Cerrar"}},dismissibleBox:{ariaLabels:{close:()=>"Cerrar"}},errors:{messages:{formSummary:(e,r,o)=>{const t=a(e)?"error":"errores",n=a(r)?"aviso":"avisos";return e&&r&&"warning"===o?["y",`${r} ${n}`]:e?["Hay",`${e} ${t}`]:r?["Hay",`${r} ${n}`]:null}}},fileInput:{dragAndDrop:()=>"También los puedes arrastrar hasta aquí.",selectFile:()=>"Selecciona un archivo",fileUploadStatus:()=>"Estado de subida de ficheros",actions:{cancel:()=>"Cancelar subida",clear:()=>"Borrar",delete:()=>"Eliminar"}},heading:{backLinkAriaLabel:()=>"Volver"},link:{skipLinkLabel:()=>"Ir al contenido principal"},loader:{loading:()=>"Cargando..."},loaderSpinner:{loading:()=>"Cargando..."},loaderStar:{loading:()=>"Cargando..."},menuFullscreen:{ariaLabels:{closeButton:()=>"Cerrar"}},message:{closeButtonAriaLabel:()=>"Cerrar",error:()=>"Error",info:()=>"Información",success:()=>"Acción realizada",warning:()=>"Aviso",neutral:()=>"Información",ai:()=>"Información generada por IA"},numeralDate:{validation:{day:(e,a)=>e&&a?`El día del mes ${e} debe ser un número comprendido entre 1 y ${a}.`:"El día debe ser un número comprendido entre 1 y 31.",month:()=>"El mes debe ser un número comprendido entre 1 y 12.",year:()=>"El año debe ser un número comprendido entre 1800 y 2200."},labels:{day:()=>"Día",month:()=>"Mes",year:()=>"Año"}},pager:{show:()=>"Mostrar",records:(e,r=!0)=>{const o=a(e)?"elemento":"elementos";return r?`${e} ${o}`:o},first:()=>"Primera",last:()=>"Última",next:()=>"Siguiente",previous:()=>"Anterior",pageX:()=>"Página",ofY:e=>`de ${e}`},password:{buttonLabelHide:()=>"Ocultar",buttonLabelShow:()=>"Mostrar",ariaLabelHide:()=>"Ocultar contraseña",ariaLabelShow:()=>"Mostrar contraseña",ariaLiveShownMessage:()=>"Tu contraseña se muestra en pantalla. Si estás en un entorno seguro, coloca el cursor sobre ella para que se te lea en voz alta.",ariaLiveHiddenMessage:()=>"La contraseña está oculta."},progressTracker:{of:()=>"de"},pod:{undo:()=>"Deshacer"},textEditor:{boldAria:()=>"Negrita",cancelButton:()=>"Cancelar",cancelButtonAria:()=>"Cancelar",characterCounter:e=>`Quedan ${"number"==typeof e?e.toString():e} caracteres`,characterLimit:e=>`El límite de ${e} caracteres se ha superado.`,contentEditorAria:()=>"Editor de contenidos de texto enriquecido",italicAria:()=>"Cursiva",orderedListAria:()=>"Lista ordenada",saveButton:()=>"Guardar",saveButtonAria:()=>"Guardar",toolbarAriaLabel:()=>"Formato",unorderedListAria:()=>"Lista no ordenada"},search:{searchButtonText:()=>"Buscar"},select:{actionButtonText:()=>"Añadir elemento",placeholder:()=>"Seleccionar...",noResultsForTerm:e=>`No hay resultados para ${e}.`},sidebar:{ariaLabels:{close:()=>"Cerrar"}},sort:{accessibleName:(e,a)=>`Ordenar todos los contenidos ${e&&`de tipo ${e}`}${a?` según orden ${"ascending"===a?"ascendente":"descendente"}.`:" según orden ascendente o descendente."}`},splitButton:{ariaLabel:()=>"Mostrar más"},stepFlow:{stepLabel:(e,a)=>`Paso ${e} de ${a}`,screenReaderOnlyTitle:(e,a,r,o)=>`${o?`${o}.`:""} ${e}. Paso ${a} de ${r}.`,closeIconAriaLabel:()=>"Cerrar"},switch:{on:()=>"SÍ",off:()=>"NO"},tileSelect:{deselect:()=>"Deseleccionar"},time:{amText:()=>"a. m.",pmText:()=>"p. m.",hoursLabelText:()=>"h",minutesLabelText:()=>"min",hoursAriaLabelText:()=>"Horas",minutesAriaLabelText:()=>"Minutos"},toast:{ariaLabels:{close:()=>"Cerrar"},error:()=>"",info:()=>"",success:()=>"",warning:()=>"",neutral:()=>"",notification:()=>""},verticalMenuFullScreen:{ariaLabels:{close:()=>"Cerrar"}}};export{r as default};
@@ -1 +1 @@
1
- import{frCA as e}from"date-fns/locale/fr-CA";const r=e=>1===("string"==typeof e?parseInt(e):e),a={locale:()=>"fr-CA",actions:{edit:()=>"Modifier",delete:()=>"Supprimer"},actionPopover:{ariaLabel:()=>"actions"},advancedColorPicker:{ariaLabel:()=>"Changer de couleur",currentColorDescriptionTerm:()=>"Couleur actuellement attribuée :",currentColorAssigned:e=>e},batchSelection:{selected:e=>`${e} sélectionné(s)`},breadcrumbs:{ariaLabel:()=>"chemins de navigation"},confirm:{no:()=>"Non",yes:()=>"Oui"},characterCount:{tooManyCharacters:(e,r)=>1===e?`${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"}},dialogFullScreen:{ariaLabels:{close:()=>"Fermer"}},dismissibleBox:{ariaLabels:{close:()=>"Fermer"}},errors:{messages:{formSummary:(e,a,t)=>{const s=r(e)?"erreur":"erreurs",o=r(a)?"avertissement":"avertissements";return e&&a&&"warning"===t?["et",`${a} ${o}`]:e?["Il y a",`${e} ${s}`]:a?["Il y a",`${a} ${o}`]:null}}},fileInput:{dragAndDrop:()=>"ou glissez et déposez-le ici.",selectFile:()=>"Sélectionnez le fichier",fileUploadStatus:()=>"État du téléversement des fichiers",actions:{cancel:()=>"Annuler le téléversement",clear:()=>"Effacer",delete:()=>"Supprimer le fichier"}},heading:{backLinkAriaLabel:()=>"Retour"},link:{skipLinkLabel:()=>"Passer au contenu principal"},loader:{loading:()=>"Chargement"},loaderSpinner:{loading:()=>"Chargement..."},loaderStar:{loading:()=>"Chargement..."},menuFullscreen:{ariaLabels:{closeButton:()=>"Fermer"}},message:{closeButtonAriaLabel:()=>"Fermer",error:()=>"Erreur",info:()=>"Information",success:()=>"Opération réussie",warning:()=>"Avertissement",neutral:()=>"Information",ai:()=>"Information générée par l'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 a été affiché. Si vous pouvez le faire en toute sécurité, focalisez sur la zone de saisie du mot de passe pour qu’il vous soit lu.",ariaLiveHiddenMessage:()=>"Votre mot de passe est actuellement masqué."},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:()=>"Chercher"},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:()=>"Hres",minutesLabelText:()=>"Mins.",hoursAriaLabelText:()=>"Heures",minutesAriaLabelText:()=>"Minutes"},toast:{ariaLabels:{close:()=>"Fermer"},error:()=>"",info:()=>"",success:()=>"",warning:()=>"",neutral:()=>"",notification:()=>""},verticalMenuFullScreen:{ariaLabels:{close:()=>"Fermer"}}};export{a as default};
1
+ import{frCA as e}from"date-fns/locale/fr-CA";const r=e=>1===("string"==typeof e?parseInt(e):e),a={locale:()=>"fr-CA",actions:{edit:()=>"Modifier",delete:()=>"Supprimer"},actionPopover:{ariaLabel:()=>"actions"},advancedColorPicker:{ariaLabel:()=>"Changer de couleur",currentColorDescriptionTerm:()=>"Couleur actuellement attribuée :",currentColorAssigned:e=>e},batchSelection:{selected:e=>`${e} sélectionné(s)`},breadcrumbs:{ariaLabel:()=>"chemins de navigation"},confirm:{no:()=>"Non",yes:()=>"Oui"},characterCount:{tooManyCharacters:(e,r)=>1===e?`${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 s=r(e)?"erreur":"erreurs",n=r(a)?"avertissement":"avertissements";return e&&a&&"warning"===t?["et",`${a} ${n}`]:e?["Il y a",`${e} ${s}`]:a?["Il y a",`${a} ${n}`]:null}}},fileInput:{dragAndDrop:()=>"ou glissez et déposez-le ici.",selectFile:()=>"Sélectionnez le fichier",fileUploadStatus:()=>"État du téléversement des fichiers",actions:{cancel:()=>"Annuler le téléversement",clear:()=>"Effacer",delete:()=>"Supprimer le fichier"}},heading:{backLinkAriaLabel:()=>"Retour"},link:{skipLinkLabel:()=>"Passer au contenu principal"},loader:{loading:()=>"Chargement"},loaderSpinner:{loading:()=>"Chargement..."},loaderStar:{loading:()=>"Chargement..."},menuFullscreen:{ariaLabels:{closeButton:()=>"Fermer"}},message:{closeButtonAriaLabel:()=>"Fermer",error:()=>"Erreur",info:()=>"Information",success:()=>"Opération réussie",warning:()=>"Avertissement",neutral:()=>"Information",ai:()=>"Information générée par l'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 a été affiché. Si vous pouvez le faire en toute sécurité, focalisez sur la zone de saisie du mot de passe pour qu’il vous soit lu.",ariaLiveHiddenMessage:()=>"Votre mot de passe est actuellement masqué."},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:()=>"Chercher"},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:()=>"Hres",minutesLabelText:()=>"Mins.",hoursAriaLabelText:()=>"Heures",minutesAriaLabelText:()=>"Minutes"},toast:{ariaLabels:{close:()=>"Fermer"},error:()=>"",info:()=>"",success:()=>"",warning:()=>"",neutral:()=>"",notification:()=>""},verticalMenuFullScreen:{ariaLabels:{close:()=>"Fermer"}}};export{a as default};