@carto/meridian-ds 1.2.1-0 → 1.3.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 (63) hide show
  1. package/CHANGELOG.md +8 -2
  2. package/dist/{Alert-FLV5jJYV.cjs → Alert-C0xmyi3Z.cjs} +1 -1
  3. package/dist/{Alert-DDz3-_16.js → Alert-DbN79ENW.js} +1 -1
  4. package/dist/{MenuItem-BTaTqbU8.js → MenuItem-B3IDLBB1.js} +1 -1
  5. package/dist/{MenuItem-CxZTr9gk.cjs → MenuItem-DUV2TC2p.cjs} +1 -1
  6. package/dist/{TablePaginationActions-GazQOp5y.js → TablePaginationActions-BmvmVQd9.js} +183 -149
  7. package/dist/TablePaginationActions-Bv-6vZ7z.cjs +9 -0
  8. package/dist/components/index.cjs +5 -5
  9. package/dist/components/index.js +4004 -3263
  10. package/dist/custom-icons/index.cjs +1 -1
  11. package/dist/custom-icons/index.js +519 -415
  12. package/dist/theme/index.cjs +1 -1
  13. package/dist/theme/index.js +21 -19
  14. package/dist/types/components/atoms/IconButton.d.ts.map +1 -1
  15. package/dist/types/components/molecules/Snackbar.d.ts +11 -0
  16. package/dist/types/components/molecules/Snackbar.d.ts.map +1 -0
  17. package/dist/types/components/molecules/index.d.ts +2 -0
  18. package/dist/types/components/molecules/index.d.ts.map +1 -1
  19. package/dist/types/components/organisms/Dialog/Dialog.d.ts +4 -0
  20. package/dist/types/components/organisms/Dialog/Dialog.d.ts.map +1 -0
  21. package/dist/types/components/organisms/Dialog/DialogAlert.d.ts +4 -0
  22. package/dist/types/components/organisms/Dialog/DialogAlert.d.ts.map +1 -0
  23. package/dist/types/components/organisms/Dialog/DialogConfirmation.d.ts +4 -0
  24. package/dist/types/components/organisms/Dialog/DialogConfirmation.d.ts.map +1 -0
  25. package/dist/types/components/organisms/Dialog/DialogContent.d.ts +7 -0
  26. package/dist/types/components/organisms/Dialog/DialogContent.d.ts.map +1 -0
  27. package/dist/types/components/organisms/Dialog/DialogFooter.d.ts +7 -0
  28. package/dist/types/components/organisms/Dialog/DialogFooter.d.ts.map +1 -0
  29. package/dist/types/components/organisms/Dialog/DialogHeader.d.ts +4 -0
  30. package/dist/types/components/organisms/Dialog/DialogHeader.d.ts.map +1 -0
  31. package/dist/types/components/organisms/Dialog/DialogPaper.d.ts +32 -0
  32. package/dist/types/components/organisms/Dialog/DialogPaper.d.ts.map +1 -0
  33. package/dist/types/components/organisms/Dialog/DialogStepper.d.ts +3 -0
  34. package/dist/types/components/organisms/Dialog/DialogStepper.d.ts.map +1 -0
  35. package/dist/types/components/organisms/Dialog/index.d.ts +9 -0
  36. package/dist/types/components/organisms/Dialog/index.d.ts.map +1 -0
  37. package/dist/types/components/organisms/Dialog/types.d.ts +69 -0
  38. package/dist/types/components/organisms/Dialog/types.d.ts.map +1 -0
  39. package/dist/types/components/organisms/index.d.ts +2 -0
  40. package/dist/types/components/organisms/index.d.ts.map +1 -1
  41. package/dist/types/custom-icons/Comments.d.ts +4 -0
  42. package/dist/types/custom-icons/Comments.d.ts.map +1 -0
  43. package/dist/types/custom-icons/Rain.d.ts.map +1 -1
  44. package/dist/types/custom-icons/SelectDestination.d.ts +4 -0
  45. package/dist/types/custom-icons/SelectDestination.d.ts.map +1 -0
  46. package/dist/types/custom-icons/index.d.ts +3 -0
  47. package/dist/types/custom-icons/index.d.ts.map +1 -1
  48. package/dist/types/localization/en.d.ts +11 -0
  49. package/dist/types/localization/en.d.ts.map +1 -1
  50. package/dist/types/localization/es.d.ts +11 -0
  51. package/dist/types/localization/es.d.ts.map +1 -1
  52. package/dist/types/localization/id.d.ts +11 -0
  53. package/dist/types/localization/id.d.ts.map +1 -1
  54. package/dist/types/localization/index.d.ts +33 -0
  55. package/dist/types/localization/index.d.ts.map +1 -1
  56. package/dist/types/theme/theme-constants.d.ts +1 -0
  57. package/dist/types/theme/theme-constants.d.ts.map +1 -1
  58. package/dist/types/theme/types.d.ts +5 -0
  59. package/dist/types/theme/types.d.ts.map +1 -1
  60. package/dist/widgets/index.cjs +1 -1
  61. package/dist/widgets/index.js +2 -2
  62. package/package.json +2 -3
  63. package/dist/TablePaginationActions-DyJEKn3l.cjs +0 -9
package/CHANGELOG.md CHANGED
@@ -1,9 +1,15 @@
1
1
  # CHANGELOG
2
2
 
3
- - New IconButton component [#108](https://github.com/CartoDB/meridian-ds/pull/108)
4
-
5
3
  ## 1.0
6
4
 
5
+ ### 1.3.0
6
+
7
+ - New Snackbar component [#114](https://github.com/CartoDB/meridian-ds/pull/114)
8
+ - New Dialog component [#113](https://github.com/CartoDB/meridian-ds/pull/113)
9
+ - New IconButton component [#108](https://github.com/CartoDB/meridian-ds/pull/108)
10
+ - Update contributing documentation [#107](https://github.com/CartoDB/meridian-ds/pull/107)
11
+ - Custom Icons Update [#111](https://github.com/CartoDB/meridian-ds/pull/111)
12
+
7
13
  ### 1.2.0
8
14
 
9
15
  - UI fixes in MenuItem & MultipleSelectField & Typography components [#102](https://github.com/CartoDB/meridian-ds/pull/102)
@@ -1,4 +1,4 @@
1
- "use strict";const o=require("react/jsx-runtime"),c=require("./TablePaginationActions-DyJEKn3l.cjs"),l=require("@mui/material"),g=require("react"),T=l.styled(l.Alert,{shouldForwardProp:r=>!["isNeutral","content","hasCloseButton","hasAction","hasTitle","isSticky"].includes(r)})(({isNeutral:r,content:n,hasCloseButton:a,hasAction:e,hasTitle:t,isSticky:s,theme:i})=>({columnGap:i.spacing(1),minHeight:i.spacing(6),...e&&{display:"grid",gridTemplateAreas:n==="inline"||a?'"icon message actions"':`
1
+ "use strict";const o=require("react/jsx-runtime"),c=require("./TablePaginationActions-Bv-6vZ7z.cjs"),l=require("@mui/material"),g=require("react"),T=l.styled(l.Alert,{shouldForwardProp:r=>!["isNeutral","content","hasCloseButton","hasAction","hasTitle","isSticky"].includes(r)})(({isNeutral:r,content:n,hasCloseButton:a,hasAction:e,hasTitle:t,isSticky:s,theme:i})=>({columnGap:i.spacing(1),minHeight:i.spacing(6),...e&&{display:"grid",gridTemplateAreas:n==="inline"||a?'"icon message actions"':`
2
2
  "icon message"
3
3
  "icon actions"
4
4
  `,gridTemplateColumns:a?`${c.ICON_SIZE_MEDIUM} 1fr ${i.spacing(3)}`:`${c.ICON_SIZE_MEDIUM}`},...r&&{backgroundColor:i.palette.default.background,color:i.palette.text.primary},...s&&{borderRadius:0},".MuiAlert-message":{flex:1,paddingTop:t?i.spacing(.25):i.spacing(.5),"& a":{color:i.palette.primary.main,textDecoration:"none","&:hover":{textDecoration:"underline"}},...e&&{gridArea:"message"},...r&&{"& :not(.MuiAlertTitle-root)":{color:i.palette.text.secondary},a:{color:`${i.palette.primary.main} !important`}}},".MuiAlert-icon":{height:t?i.spacing(2.5):i.spacing(3),marginRight:0,...e&&{gridArea:"icon"},...r&&{color:i.palette.text.primary}},".MuiAlert-action":{alignItems:n==="inline"&&!a?"center":"flex-start",margin:n==="block"&&!a?i.spacing(1.5,0,.5):0,marginLeft:n==="inline"||a?"auto":0,padding:0,...e&&{gridArea:"actions"},".MuiIconButton-root svg path":{fill:a?i.palette.text.secondary:void 0}}}));function v({title:r,action:n,severity:a="neutral",content:e="inline",variant:t="standard",children:s,onClose:i,open:p,isSticky:u,...A},x){const[f,y]=g.useState(p??!0),m=i?I=>{i(I),y(!1)}:void 0,d=a==="neutral",M=p??f;return o.jsx(l.Fade,{in:M,appear:!1,children:o.jsxs(T,{ref:x,severity:d?"info":a,isNeutral:d,content:e,action:n,onClose:m,hasCloseButton:!!i,hasAction:!!n,hasTitle:!!r,isSticky:u,variant:t,...A,children:[r&&o.jsx(l.AlertTitle,{children:r}),o.jsx(c.Typography,{variant:"caption",color:"inherit",component:"div",children:s})]})})}const b=g.forwardRef(v);exports.Alert=b;
@@ -1,5 +1,5 @@
1
1
  import { jsx as l, jsxs as x } from "react/jsx-runtime";
2
- import { b as c, T } from "./TablePaginationActions-GazQOp5y.js";
2
+ import { b as c, T } from "./TablePaginationActions-BmvmVQd9.js";
3
3
  import { styled as M, Alert as v, Fade as b, AlertTitle as I } from "@mui/material";
4
4
  import { forwardRef as $, useState as k } from "react";
5
5
  const S = M(v, {
@@ -1,6 +1,6 @@
1
1
  import * as p from "react";
2
2
  import { jsx as C, jsxs as Se } from "react/jsx-runtime";
3
- import { P as a, _ as E } from "./TablePaginationActions-GazQOp5y.js";
3
+ import { P as a, _ as E } from "./TablePaginationActions-BmvmVQd9.js";
4
4
  import { useThemeProps as pe, styled as B, alpha as Le } from "@mui/material/styles";
5
5
  import pt from "@mui/material/MenuItem";
6
6
  import ht from "@mui/material/MenuList";
@@ -1,4 +1,4 @@
1
- "use strict";const Gt=require("react"),y=require("react/jsx-runtime"),s=require("./TablePaginationActions-DyJEKn3l.cjs"),I=require("@mui/material/styles"),yt=require("@mui/material/MenuItem"),bt=require("@mui/material/MenuList"),Ze=require("@mui/material/IconButton"),Tt=require("@mui/material/Typography"),ve=require("@mui/material/utils"),rt=require("@mui/material");function Yt(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const f=Yt(Gt);function ne(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.includes(o))continue;n[o]=e[o]}return n}function xt(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=xt(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Q(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=xt(e))&&(o&&(o+=" "),o+=t);return o}const qt=f.createContext();process.env.NODE_ENV!=="production"&&(s.PropTypes.node,s.PropTypes.bool);const Ke=()=>{const e=f.useContext(qt);return e??!1};function Zt(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Xe=typeof window<"u"?f.useLayoutEffect:f.useEffect;let st=0;function Kt(e){const[t,n]=f.useState(e),o=e||t;return f.useEffect(()=>{t==null&&(st+=1,n(`mui-${st}`))},[t]),o}const Xt={...f},it=Xt.useId;function vt(e){if(it!==void 0){const t=it();return e??t}return Kt(e)}function _e({controlled:e,default:t,name:n,state:o="value"}){const{current:r}=f.useRef(e!==void 0),[i,a]=f.useState(t),u=r?e:i;if(process.env.NODE_ENV!=="production"){f.useEffect(()=>{r!==(e!==void 0)&&console.error([`MUI: A component is changing the ${r?"":"un"}controlled ${o} state of ${n} to be ${r?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
1
+ "use strict";const Gt=require("react"),y=require("react/jsx-runtime"),s=require("./TablePaginationActions-Bv-6vZ7z.cjs"),I=require("@mui/material/styles"),yt=require("@mui/material/MenuItem"),bt=require("@mui/material/MenuList"),Ze=require("@mui/material/IconButton"),Tt=require("@mui/material/Typography"),ve=require("@mui/material/utils"),rt=require("@mui/material");function Yt(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const f=Yt(Gt);function ne(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.includes(o))continue;n[o]=e[o]}return n}function xt(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=xt(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Q(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=xt(e))&&(o&&(o+=" "),o+=t);return o}const qt=f.createContext();process.env.NODE_ENV!=="production"&&(s.PropTypes.node,s.PropTypes.bool);const Ke=()=>{const e=f.useContext(qt);return e??!1};function Zt(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Xe=typeof window<"u"?f.useLayoutEffect:f.useEffect;let st=0;function Kt(e){const[t,n]=f.useState(e),o=e||t;return f.useEffect(()=>{t==null&&(st+=1,n(`mui-${st}`))},[t]),o}const Xt={...f},it=Xt.useId;function vt(e){if(it!==void 0){const t=it();return e??t}return Kt(e)}function _e({controlled:e,default:t,name:n,state:o="value"}){const{current:r}=f.useRef(e!==void 0),[i,a]=f.useState(t),u=r?e:i;if(process.env.NODE_ENV!=="production"){f.useEffect(()=>{r!==(e!==void 0)&&console.error([`MUI: A component is changing the ${r?"":"un"}controlled ${o} state of ${n} to be ${r?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
2
2
  `))},[o,n,e]);const{current:c}=f.useRef(t);f.useEffect(()=>{!r&&!Object.is(c,t)&&console.error([`MUI: A component is changing the default ${o} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
3
3
  `))},[JSON.stringify(t)])}const l=f.useCallback(c=>{r||a(c)},[]);return[u,l]}function te(e){const t=f.useRef(e);return Xe(()=>{t.current=e}),f.useRef((...n)=>(0,t.current)(...n)).current}function Fe(...e){return f.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Zt(n,t)})},e)}function ge(e,t,n=void 0){const o={};for(const r in e){const i=e[r];let a="",u=!0;for(let l=0;l<i.length;l+=1){const c=i[l];c&&(a+=(u===!0?"":" ")+t(c),u=!1,n&&n[c]&&(a+=" "+n[c]))}o[r]=a}return o}const at=e=>e,Qt=()=>{let e=at;return{configure(t){e=t},generate(t){return e(t)},reset(){e=at}}},Jt=Qt(),en={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function ue(e,t,n="Mui"){const o=en[t];return o?`${n}-${o}`:`${Jt.generate(e)}-${t}`}function ye(e,t,n="Mui"){const o={};return t.forEach(r=>{o[r]=ue(e,r,n)}),o}function tn(e){return typeof e=="string"}function nn(e,t,n){return e===void 0||tn(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function on(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(o=>o.match(/^on[A-Z]/)&&typeof e[o]=="function"&&!t.includes(o)).forEach(o=>{n[o]=e[o]}),n}function lt(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function rn(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:r,className:i}=e;if(!t){const g=Q(n==null?void 0:n.className,i,r==null?void 0:r.className,o==null?void 0:o.className),d={...n==null?void 0:n.style,...r==null?void 0:r.style,...o==null?void 0:o.style},T={...n,...r,...o};return g.length>0&&(T.className=g),Object.keys(d).length>0&&(T.style=d),{props:T,internalRef:void 0}}const a=on({...r,...o}),u=lt(o),l=lt(r),c=t(a),m=Q(c==null?void 0:c.className,n==null?void 0:n.className,i,r==null?void 0:r.className,o==null?void 0:o.className),p={...c==null?void 0:c.style,...n==null?void 0:n.style,...r==null?void 0:r.style,...o==null?void 0:o.style},b={...c,...n,...l,...u};return m.length>0&&(b.className=m),Object.keys(p).length>0&&(b.style=p),{props:b,internalRef:c.ref}}function wt(e,t,n){return typeof e=="function"?e(t,n):e}function De(e){var p;const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:r=!1,...i}=e,a=r?{}:wt(n,o),{props:u,internalRef:l}=rn({...i,externalSlotProps:a}),c=Fe(l,a==null?void 0:a.ref,(p=e.additionalProps)==null?void 0:p.ref);return nn(t,{...u,ref:c},o)}const sn=["localeText"],je=f.createContext(null);process.env.NODE_ENV!=="production"&&(je.displayName="MuiPickersAdapterContext");const St=function(t){const{localeText:n}=t,o=ne(t,sn),{utils:r,localeText:i}=f.useContext(je)??{utils:void 0,localeText:void 0},a=I.useThemeProps({props:o,name:"MuiLocalizationProvider"}),{children:u,dateAdapter:l,dateFormats:c,dateLibInstance:m,adapterLocale:p,localeText:b}=a,g=f.useMemo(()=>s._extends({},b,i,n),[b,i,n]),d=f.useMemo(()=>{if(!l)return r||null;const E=new l({locale:p,formats:c,instance:m});if(!E.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(`
4
4
  `));return E},[l,p,c,m,r]),T=f.useMemo(()=>d?{minDate:d.date("1900-01-01T00:00:00.000"),maxDate:d.date("2099-12-31T00:00:00.000")}:null,[d]),C=f.useMemo(()=>({utils:d,defaultDates:T,localeText:g}),[T,d,g]);return y.jsx(je.Provider,{value:C,children:u})};process.env.NODE_ENV!=="production"&&(St.propTypes={adapterLocale:s.PropTypes.any,children:s.PropTypes.node,dateAdapter:s.PropTypes.func,dateFormats:s.PropTypes.shape({dayOfMonth:s.PropTypes.string,dayOfMonthFull:s.PropTypes.string,fullDate:s.PropTypes.string,fullTime:s.PropTypes.string,fullTime12h:s.PropTypes.string,fullTime24h:s.PropTypes.string,hours12h:s.PropTypes.string,hours24h:s.PropTypes.string,keyboardDate:s.PropTypes.string,keyboardDateTime:s.PropTypes.string,keyboardDateTime12h:s.PropTypes.string,keyboardDateTime24h:s.PropTypes.string,meridiem:s.PropTypes.string,minutes:s.PropTypes.string,month:s.PropTypes.string,monthShort:s.PropTypes.string,normalDate:s.PropTypes.string,normalDateWithWeekday:s.PropTypes.string,seconds:s.PropTypes.string,shortDate:s.PropTypes.string,weekday:s.PropTypes.string,weekdayShort:s.PropTypes.string,year:s.PropTypes.string}),dateLibInstance:s.PropTypes.any,localeText:s.PropTypes.object});const an=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:s._extends({},e)}}}}),ln=e=>{const{utils:t,formatKey:n,contextTranslation:o,propsTranslation:r}=e;return i=>{const a=i!==null&&t.isValid(i)?t.format(i,n):null;return(r??o)(i,t,a)}},Dt={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n,o)=>`Select ${e}. ${!o&&(t===null||!n.isValid(t))?"No time selected":`Selected time is ${o??n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t,n)=>n||e!==null&&t.isValid(e)?`Choose date, selected date is ${n??t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t,n)=>n||e!==null&&t.isValid(e)?`Choose time, selected time is ${n??t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},cn=Dt;an(Dt);const Be=()=>{const e=f.useContext(je);if(e===null)throw new Error(["MUI X: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(`