{"version":3,"file":"createOdysseyMuiTheme.cjs","names":["_styles","require","_useContrastMode","_components","_mixins","_palette","_shape","_spacing","_typography","createOdysseyMuiTheme","contrastMode","defaultContrast","odysseyTokens","shadowDomElement","shadowRootElement","createTheme","components","getComponents","mixins","palette","shape","spacing","typography","exports"],"sources":["../../../src/theme/createOdysseyMuiTheme.ts"],"sourcesContent":["/*!\n * Copyright (c) 2023-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { createTheme } from \"@mui/material/styles\";\nimport * as Tokens from \"@okta/odyssey-design-tokens\";\n\nimport { type ContrastMode, defaultContrast } from \"../useContrastMode.js\";\nimport { getComponents } from \"./components.js\";\nimport { mixins } from \"./mixins.js\";\nimport { palette } from \"./palette.js\";\nimport { shape } from \"./shape.js\";\nimport { spacing } from \"./spacing.js\";\nimport \"./components.types.js\";\nimport \"./mixins.types.js\";\nimport \"./palette.types.js\";\nimport \"./typography.types.js\";\nimport { typography } from \"./typography.js\";\n\nexport type DesignTokens = typeof Tokens;\nexport type DesignTokensOverride = Partial<typeof Tokens>;\n\nexport const createOdysseyMuiTheme = ({\n  contrastMode = defaultContrast,\n  odysseyTokens,\n  shadowDomElement,\n  shadowRootElement,\n}: {\n  contrastMode?: ContrastMode;\n  odysseyTokens: DesignTokens;\n  /** @deprecated Use `shadowRootElement` */\n  shadowDomElement?: HTMLElement;\n  shadowRootElement?: HTMLElement;\n}) =>\n  createTheme({\n    components: getComponents({\n      contrastMode,\n      odysseyTokens,\n      shadowRootElement: shadowRootElement || shadowDomElement,\n    }),\n    mixins: mixins({ odysseyTokens }),\n    palette: palette({ odysseyTokens }),\n    shape: shape({ odysseyTokens }),\n    spacing: spacing({ odysseyTokens }),\n    typography: typography({ odysseyTokens }),\n  });\n"],"mappings":";;;;;;AAYA,IAAAA,OAAA,GAAAC,OAAA;AAGA,IAAAC,gBAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,QAAA,GAAAN,OAAA;AACAA,OAAA;AACAA,OAAA;AACAA,OAAA;AACAA,OAAA;AACA,IAAAO,WAAA,GAAAP,OAAA;AAzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAoBO,MAAMQ,qBAAqB,GAAGA,CAAC;EACpCC,YAAY,GAAGC,gCAAe;EAC9BC,aAAa;EACbC,gBAAgB;EAChBC;AAOF,CAAC,KACC,IAAAC,mBAAW,EAAC;EACVC,UAAU,EAAE,IAAAC,yBAAa,EAAC;IACxBP,YAAY;IACZE,aAAa;IACbE,iBAAiB,EAAEA,iBAAiB,IAAID;EAC1C,CAAC,CAAC;EACFK,MAAM,EAAE,IAAAA,cAAM,EAAC;IAAEN;EAAc,CAAC,CAAC;EACjCO,OAAO,EAAE,IAAAA,gBAAO,EAAC;IAAEP;EAAc,CAAC,CAAC;EACnCQ,KAAK,EAAE,IAAAA,YAAK,EAAC;IAAER;EAAc,CAAC,CAAC;EAC/BS,OAAO,EAAE,IAAAA,gBAAO,EAAC;IAAET;EAAc,CAAC,CAAC;EACnCU,UAAU,EAAE,IAAAA,sBAAU,EAAC;IAAEV;EAAc,CAAC;AAC1C,CAAC,CAAC;AAACW,OAAA,CAAAd,qBAAA,GAAAA,qBAAA","ignoreList":[]}