@soyfri/shared-library 1.1.12 → 1.1.13

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 (185) hide show
  1. package/cjs/components/timeline/Timeline.cjs +2 -0
  2. package/cjs/components/timeline/Timeline.cjs.map +1 -0
  3. package/cjs/components/timeline/TimelineItem.cjs +2 -0
  4. package/cjs/components/timeline/TimelineItem.cjs.map +1 -0
  5. package/cjs/components/timeline.cjs +2 -0
  6. package/cjs/components/timeline.cjs.map +1 -0
  7. package/cjs/node_modules/@mui/lab/esm/Timeline/Timeline.cjs +2 -0
  8. package/cjs/node_modules/@mui/lab/esm/Timeline/Timeline.cjs.map +1 -0
  9. package/cjs/node_modules/@mui/lab/esm/Timeline/TimelineContext.cjs +2 -0
  10. package/cjs/node_modules/@mui/lab/esm/Timeline/TimelineContext.cjs.map +1 -0
  11. package/cjs/node_modules/@mui/lab/esm/Timeline/timelineClasses.cjs +2 -0
  12. package/cjs/node_modules/@mui/lab/esm/Timeline/timelineClasses.cjs.map +1 -0
  13. package/cjs/node_modules/@mui/lab/esm/TimelineConnector/TimelineConnector.cjs +2 -0
  14. package/cjs/node_modules/@mui/lab/esm/TimelineConnector/TimelineConnector.cjs.map +1 -0
  15. package/cjs/node_modules/@mui/lab/esm/TimelineConnector/timelineConnectorClasses.cjs +2 -0
  16. package/cjs/node_modules/@mui/lab/esm/TimelineConnector/timelineConnectorClasses.cjs.map +1 -0
  17. package/cjs/node_modules/@mui/lab/esm/TimelineContent/TimelineContent.cjs +2 -0
  18. package/cjs/node_modules/@mui/lab/esm/TimelineContent/TimelineContent.cjs.map +1 -0
  19. package/cjs/node_modules/@mui/lab/esm/TimelineContent/timelineContentClasses.cjs +2 -0
  20. package/cjs/node_modules/@mui/lab/esm/TimelineContent/timelineContentClasses.cjs.map +1 -0
  21. package/cjs/node_modules/@mui/lab/esm/TimelineDot/TimelineDot.cjs +2 -0
  22. package/cjs/node_modules/@mui/lab/esm/TimelineDot/TimelineDot.cjs.map +1 -0
  23. package/cjs/node_modules/@mui/lab/esm/TimelineDot/timelineDotClasses.cjs +2 -0
  24. package/cjs/node_modules/@mui/lab/esm/TimelineDot/timelineDotClasses.cjs.map +1 -0
  25. package/cjs/node_modules/@mui/lab/esm/TimelineItem/TimelineItem.cjs +2 -0
  26. package/cjs/node_modules/@mui/lab/esm/TimelineItem/TimelineItem.cjs.map +1 -0
  27. package/cjs/node_modules/@mui/lab/esm/TimelineItem/timelineItemClasses.cjs +2 -0
  28. package/cjs/node_modules/@mui/lab/esm/TimelineItem/timelineItemClasses.cjs.map +1 -0
  29. package/cjs/node_modules/@mui/lab/esm/TimelineOppositeContent/timelineOppositeContentClasses.cjs +2 -0
  30. package/cjs/node_modules/@mui/lab/esm/TimelineOppositeContent/timelineOppositeContentClasses.cjs.map +1 -0
  31. package/cjs/node_modules/@mui/lab/esm/TimelineSeparator/TimelineSeparator.cjs +2 -0
  32. package/cjs/node_modules/@mui/lab/esm/TimelineSeparator/TimelineSeparator.cjs.map +1 -0
  33. package/cjs/node_modules/@mui/lab/esm/TimelineSeparator/timelineSeparatorClasses.cjs +2 -0
  34. package/cjs/node_modules/@mui/lab/esm/TimelineSeparator/timelineSeparatorClasses.cjs.map +1 -0
  35. package/cjs/node_modules/@mui/lab/esm/internal/convertTimelinePositionToClass.cjs +2 -0
  36. package/cjs/node_modules/@mui/lab/esm/internal/convertTimelinePositionToClass.cjs.map +1 -0
  37. package/cjs/node_modules/@mui/material/esm/Alert/Alert.cjs +1 -1
  38. package/cjs/node_modules/@mui/material/esm/Alert/Alert.cjs.map +1 -1
  39. package/cjs/node_modules/@mui/material/esm/Backdrop/Backdrop.cjs +1 -1
  40. package/cjs/node_modules/@mui/material/esm/Backdrop/Backdrop.cjs.map +1 -1
  41. package/cjs/node_modules/@mui/material/esm/Button/Button.cjs +1 -1
  42. package/cjs/node_modules/@mui/material/esm/Button/Button.cjs.map +1 -1
  43. package/cjs/node_modules/@mui/material/esm/Chip/Chip.cjs +1 -1
  44. package/cjs/node_modules/@mui/material/esm/Chip/Chip.cjs.map +1 -1
  45. package/cjs/node_modules/@mui/material/esm/Divider/Divider.cjs +1 -1
  46. package/cjs/node_modules/@mui/material/esm/Divider/Divider.cjs.map +1 -1
  47. package/cjs/node_modules/@mui/material/esm/FilledInput/FilledInput.cjs +1 -1
  48. package/cjs/node_modules/@mui/material/esm/FilledInput/FilledInput.cjs.map +1 -1
  49. package/cjs/node_modules/@mui/material/esm/IconButton/IconButton.cjs +1 -1
  50. package/cjs/node_modules/@mui/material/esm/IconButton/IconButton.cjs.map +1 -1
  51. package/cjs/node_modules/@mui/material/esm/Input/Input.cjs +1 -1
  52. package/cjs/node_modules/@mui/material/esm/Input/Input.cjs.map +1 -1
  53. package/cjs/node_modules/@mui/material/esm/MenuItem/MenuItem.cjs +1 -1
  54. package/cjs/node_modules/@mui/material/esm/MenuItem/MenuItem.cjs.map +1 -1
  55. package/cjs/node_modules/@mui/material/esm/NativeSelect/NativeSelectInput.cjs +1 -1
  56. package/cjs/node_modules/@mui/material/esm/NativeSelect/NativeSelectInput.cjs.map +1 -1
  57. package/cjs/node_modules/@mui/material/esm/OutlinedInput/NotchedOutline.cjs +1 -1
  58. package/cjs/node_modules/@mui/material/esm/OutlinedInput/NotchedOutline.cjs.map +1 -1
  59. package/cjs/node_modules/@mui/material/esm/OutlinedInput/OutlinedInput.cjs +1 -1
  60. package/cjs/node_modules/@mui/material/esm/OutlinedInput/OutlinedInput.cjs.map +1 -1
  61. package/cjs/node_modules/@mui/material/esm/Paper/Paper.cjs +1 -1
  62. package/cjs/node_modules/@mui/material/esm/Select/SelectInput.cjs +1 -1
  63. package/cjs/node_modules/@mui/material/esm/Select/SelectInput.cjs.map +1 -1
  64. package/cjs/node_modules/@mui/material/esm/styles/createColorScheme.cjs +1 -1
  65. package/cjs/node_modules/@mui/material/esm/styles/createColorScheme.cjs.map +1 -1
  66. package/cjs/node_modules/@mui/material/esm/styles/createPalette.cjs +1 -1
  67. package/cjs/node_modules/@mui/material/esm/styles/createPalette.cjs.map +1 -1
  68. package/cjs/node_modules/@mui/material/esm/styles/createThemeNoVars.cjs +1 -1
  69. package/cjs/node_modules/@mui/material/esm/styles/createThemeNoVars.cjs.map +1 -1
  70. package/cjs/node_modules/@mui/material/esm/styles/createThemeWithVars.cjs +1 -1
  71. package/cjs/node_modules/@mui/material/esm/styles/createThemeWithVars.cjs.map +1 -1
  72. package/cjs/node_modules/@mui/material/esm/styles/shouldSkipGeneratingVar.cjs +1 -1
  73. package/cjs/node_modules/@mui/material/esm/styles/shouldSkipGeneratingVar.cjs.map +1 -1
  74. package/cjs/node_modules/@mui/styled-engine/esm/index.cjs +1 -1
  75. package/cjs/node_modules/@mui/styled-engine/esm/index.cjs.map +1 -1
  76. package/cjs/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.cjs +1 -1
  77. package/cjs/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.cjs.map +1 -1
  78. package/cjs/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.cjs +1 -1
  79. package/cjs/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.cjs.map +1 -1
  80. package/cjs/node_modules/@mui/system/esm/colorManipulator/colorManipulator.cjs +1 -1
  81. package/cjs/node_modules/@mui/system/esm/colorManipulator/colorManipulator.cjs.map +1 -1
  82. package/cjs/node_modules/@mui/system/esm/createStyled/createStyled.cjs +1 -1
  83. package/cjs/node_modules/@mui/system/esm/createStyled/createStyled.cjs.map +1 -1
  84. package/cjs/node_modules/@mui/system/esm/cssVars/prepareCssVars.cjs +1 -1
  85. package/cjs/node_modules/@mui/system/esm/cssVars/prepareCssVars.cjs.map +1 -1
  86. package/cjs/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.cjs +1 -1
  87. package/cjs/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.cjs.map +1 -1
  88. package/cjs/node_modules/@mui/utils/esm/resolveProps/resolveProps.cjs +1 -1
  89. package/cjs/node_modules/@mui/utils/esm/resolveProps/resolveProps.cjs.map +1 -1
  90. package/components/timeline/index.ts +1 -0
  91. package/esm/components/timeline/Timeline.d.ts +8 -0
  92. package/esm/components/timeline/Timeline.definition.d.ts +1 -0
  93. package/esm/components/timeline/Timeline.js +2 -0
  94. package/esm/components/timeline/Timeline.js.map +1 -0
  95. package/esm/components/timeline/Timeline.stories.d.ts +6 -0
  96. package/esm/components/timeline/TimelineItem.d.ts +7 -0
  97. package/esm/components/timeline/TimelineItem.js +2 -0
  98. package/esm/components/timeline/TimelineItem.js.map +1 -0
  99. package/esm/components/timeline/index.d.ts +2 -0
  100. package/esm/components/timeline.js +2 -0
  101. package/esm/components/timeline.js.map +1 -0
  102. package/esm/node_modules/@mui/lab/esm/Timeline/Timeline.js +2 -0
  103. package/esm/node_modules/@mui/lab/esm/Timeline/Timeline.js.map +1 -0
  104. package/esm/node_modules/@mui/lab/esm/Timeline/TimelineContext.js +2 -0
  105. package/esm/node_modules/@mui/lab/esm/Timeline/TimelineContext.js.map +1 -0
  106. package/esm/node_modules/@mui/lab/esm/Timeline/timelineClasses.js +2 -0
  107. package/esm/node_modules/@mui/lab/esm/Timeline/timelineClasses.js.map +1 -0
  108. package/esm/node_modules/@mui/lab/esm/TimelineConnector/TimelineConnector.js +2 -0
  109. package/esm/node_modules/@mui/lab/esm/TimelineConnector/TimelineConnector.js.map +1 -0
  110. package/esm/node_modules/@mui/lab/esm/TimelineConnector/timelineConnectorClasses.js +2 -0
  111. package/esm/node_modules/@mui/lab/esm/TimelineConnector/timelineConnectorClasses.js.map +1 -0
  112. package/esm/node_modules/@mui/lab/esm/TimelineContent/TimelineContent.js +2 -0
  113. package/esm/node_modules/@mui/lab/esm/TimelineContent/TimelineContent.js.map +1 -0
  114. package/esm/node_modules/@mui/lab/esm/TimelineContent/timelineContentClasses.js +2 -0
  115. package/esm/node_modules/@mui/lab/esm/TimelineContent/timelineContentClasses.js.map +1 -0
  116. package/esm/node_modules/@mui/lab/esm/TimelineDot/TimelineDot.js +2 -0
  117. package/esm/node_modules/@mui/lab/esm/TimelineDot/TimelineDot.js.map +1 -0
  118. package/esm/node_modules/@mui/lab/esm/TimelineDot/timelineDotClasses.js +2 -0
  119. package/esm/node_modules/@mui/lab/esm/TimelineDot/timelineDotClasses.js.map +1 -0
  120. package/esm/node_modules/@mui/lab/esm/TimelineItem/TimelineItem.js +2 -0
  121. package/esm/node_modules/@mui/lab/esm/TimelineItem/TimelineItem.js.map +1 -0
  122. package/esm/node_modules/@mui/lab/esm/TimelineItem/timelineItemClasses.js +2 -0
  123. package/esm/node_modules/@mui/lab/esm/TimelineItem/timelineItemClasses.js.map +1 -0
  124. package/esm/node_modules/@mui/lab/esm/TimelineOppositeContent/timelineOppositeContentClasses.js +2 -0
  125. package/esm/node_modules/@mui/lab/esm/TimelineOppositeContent/timelineOppositeContentClasses.js.map +1 -0
  126. package/esm/node_modules/@mui/lab/esm/TimelineSeparator/TimelineSeparator.js +2 -0
  127. package/esm/node_modules/@mui/lab/esm/TimelineSeparator/TimelineSeparator.js.map +1 -0
  128. package/esm/node_modules/@mui/lab/esm/TimelineSeparator/timelineSeparatorClasses.js +2 -0
  129. package/esm/node_modules/@mui/lab/esm/TimelineSeparator/timelineSeparatorClasses.js.map +1 -0
  130. package/esm/node_modules/@mui/lab/esm/internal/convertTimelinePositionToClass.js +2 -0
  131. package/esm/node_modules/@mui/lab/esm/internal/convertTimelinePositionToClass.js.map +1 -0
  132. package/esm/node_modules/@mui/material/esm/Alert/Alert.js +1 -1
  133. package/esm/node_modules/@mui/material/esm/Alert/Alert.js.map +1 -1
  134. package/esm/node_modules/@mui/material/esm/Backdrop/Backdrop.js +1 -1
  135. package/esm/node_modules/@mui/material/esm/Backdrop/Backdrop.js.map +1 -1
  136. package/esm/node_modules/@mui/material/esm/Button/Button.js +1 -1
  137. package/esm/node_modules/@mui/material/esm/Button/Button.js.map +1 -1
  138. package/esm/node_modules/@mui/material/esm/Chip/Chip.js +1 -1
  139. package/esm/node_modules/@mui/material/esm/Chip/Chip.js.map +1 -1
  140. package/esm/node_modules/@mui/material/esm/Divider/Divider.js +1 -1
  141. package/esm/node_modules/@mui/material/esm/Divider/Divider.js.map +1 -1
  142. package/esm/node_modules/@mui/material/esm/FilledInput/FilledInput.js +1 -1
  143. package/esm/node_modules/@mui/material/esm/FilledInput/FilledInput.js.map +1 -1
  144. package/esm/node_modules/@mui/material/esm/IconButton/IconButton.js +1 -1
  145. package/esm/node_modules/@mui/material/esm/IconButton/IconButton.js.map +1 -1
  146. package/esm/node_modules/@mui/material/esm/Input/Input.js +1 -1
  147. package/esm/node_modules/@mui/material/esm/Input/Input.js.map +1 -1
  148. package/esm/node_modules/@mui/material/esm/MenuItem/MenuItem.js +1 -1
  149. package/esm/node_modules/@mui/material/esm/MenuItem/MenuItem.js.map +1 -1
  150. package/esm/node_modules/@mui/material/esm/NativeSelect/NativeSelectInput.js +1 -1
  151. package/esm/node_modules/@mui/material/esm/NativeSelect/NativeSelectInput.js.map +1 -1
  152. package/esm/node_modules/@mui/material/esm/OutlinedInput/NotchedOutline.js +1 -1
  153. package/esm/node_modules/@mui/material/esm/OutlinedInput/NotchedOutline.js.map +1 -1
  154. package/esm/node_modules/@mui/material/esm/OutlinedInput/OutlinedInput.js +1 -1
  155. package/esm/node_modules/@mui/material/esm/OutlinedInput/OutlinedInput.js.map +1 -1
  156. package/esm/node_modules/@mui/material/esm/Paper/Paper.js +1 -1
  157. package/esm/node_modules/@mui/material/esm/Select/SelectInput.js +1 -1
  158. package/esm/node_modules/@mui/material/esm/Select/SelectInput.js.map +1 -1
  159. package/esm/node_modules/@mui/material/esm/styles/createColorScheme.js +1 -1
  160. package/esm/node_modules/@mui/material/esm/styles/createColorScheme.js.map +1 -1
  161. package/esm/node_modules/@mui/material/esm/styles/createPalette.js +1 -1
  162. package/esm/node_modules/@mui/material/esm/styles/createPalette.js.map +1 -1
  163. package/esm/node_modules/@mui/material/esm/styles/createThemeNoVars.js +1 -1
  164. package/esm/node_modules/@mui/material/esm/styles/createThemeNoVars.js.map +1 -1
  165. package/esm/node_modules/@mui/material/esm/styles/createThemeWithVars.js +1 -1
  166. package/esm/node_modules/@mui/material/esm/styles/createThemeWithVars.js.map +1 -1
  167. package/esm/node_modules/@mui/material/esm/styles/shouldSkipGeneratingVar.js +1 -1
  168. package/esm/node_modules/@mui/material/esm/styles/shouldSkipGeneratingVar.js.map +1 -1
  169. package/esm/node_modules/@mui/styled-engine/esm/index.js +1 -1
  170. package/esm/node_modules/@mui/styled-engine/esm/index.js.map +1 -1
  171. package/esm/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.js +1 -1
  172. package/esm/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.js.map +1 -1
  173. package/esm/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js +1 -1
  174. package/esm/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js.map +1 -1
  175. package/esm/node_modules/@mui/system/esm/colorManipulator/colorManipulator.js +1 -1
  176. package/esm/node_modules/@mui/system/esm/colorManipulator/colorManipulator.js.map +1 -1
  177. package/esm/node_modules/@mui/system/esm/createStyled/createStyled.js +1 -1
  178. package/esm/node_modules/@mui/system/esm/createStyled/createStyled.js.map +1 -1
  179. package/esm/node_modules/@mui/system/esm/cssVars/prepareCssVars.js +1 -1
  180. package/esm/node_modules/@mui/system/esm/cssVars/prepareCssVars.js.map +1 -1
  181. package/esm/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js +1 -1
  182. package/esm/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js.map +1 -1
  183. package/esm/node_modules/@mui/utils/esm/resolveProps/resolveProps.js +1 -1
  184. package/esm/node_modules/@mui/utils/esm/resolveProps/resolveProps.js.map +1 -1
  185. package/package.json +7 -1
@@ -1 +1 @@
1
- {"version":3,"file":"createStyled.js","sources":["../../../../../../../node_modules/@mui/system/esm/createStyled/createStyled.js"],"sourcesContent":["import styledEngineStyled, { internal_mutateStyles as mutateStyles } from '@mui/styled-engine';\nimport { isPlainObject } from '@mui/utils/deepmerge';\nimport capitalize from '@mui/utils/capitalize';\nimport getDisplayName from '@mui/utils/getDisplayName';\nimport createTheme from \"../createTheme/index.js\";\nimport styleFunctionSx from \"../styleFunctionSx/index.js\";\nimport preprocessStyles from \"../preprocessStyles.js\";\n\n/* eslint-disable no-underscore-dangle */\n/* eslint-disable no-labels */\n/* eslint-disable no-lone-blocks */\n\nexport const systemDefaultTheme = createTheme();\n\n// Update /system/styled/#api in case if this changes\nexport function shouldForwardProp(prop) {\n return prop !== 'ownerState' && prop !== 'theme' && prop !== 'sx' && prop !== 'as';\n}\nfunction defaultOverridesResolver(slot) {\n if (!slot) {\n return null;\n }\n return (_props, styles) => styles[slot];\n}\nfunction attachTheme(props, themeId, defaultTheme) {\n props.theme = isObjectEmpty(props.theme) ? defaultTheme : props.theme[themeId] || props.theme;\n}\nfunction processStyle(props, style) {\n /*\n * Style types:\n * - null/undefined\n * - string\n * - CSS style object: { [cssKey]: [cssValue], variants }\n * - Processed style object: { style, variants, isProcessed: true }\n * - Array of any of the above\n */\n\n const resolvedStyle = typeof style === 'function' ? style(props) : style;\n if (Array.isArray(resolvedStyle)) {\n return resolvedStyle.flatMap(subStyle => processStyle(props, subStyle));\n }\n if (Array.isArray(resolvedStyle?.variants)) {\n let rootStyle;\n if (resolvedStyle.isProcessed) {\n rootStyle = resolvedStyle.style;\n } else {\n const {\n variants,\n ...otherStyles\n } = resolvedStyle;\n rootStyle = otherStyles;\n }\n return processStyleVariants(props, resolvedStyle.variants, [rootStyle]);\n }\n if (resolvedStyle?.isProcessed) {\n return resolvedStyle.style;\n }\n return resolvedStyle;\n}\nfunction processStyleVariants(props, variants, results = []) {\n let mergedState; // We might not need it, initialized lazily\n\n variantLoop: for (let i = 0; i < variants.length; i += 1) {\n const variant = variants[i];\n if (typeof variant.props === 'function') {\n mergedState ??= {\n ...props,\n ...props.ownerState,\n ownerState: props.ownerState\n };\n if (!variant.props(mergedState)) {\n continue;\n }\n } else {\n for (const key in variant.props) {\n if (props[key] !== variant.props[key] && props.ownerState?.[key] !== variant.props[key]) {\n continue variantLoop;\n }\n }\n }\n if (typeof variant.style === 'function') {\n mergedState ??= {\n ...props,\n ...props.ownerState,\n ownerState: props.ownerState\n };\n results.push(variant.style(mergedState));\n } else {\n results.push(variant.style);\n }\n }\n return results;\n}\nexport default function createStyled(input = {}) {\n const {\n themeId,\n defaultTheme = systemDefaultTheme,\n rootShouldForwardProp = shouldForwardProp,\n slotShouldForwardProp = shouldForwardProp\n } = input;\n function styleAttachTheme(props) {\n attachTheme(props, themeId, defaultTheme);\n }\n const styled = (tag, inputOptions = {}) => {\n // If `tag` is already a styled component, filter out the `sx` style function\n // to prevent unnecessary styles generated by the composite components.\n mutateStyles(tag, styles => styles.filter(style => style !== styleFunctionSx));\n const {\n name: componentName,\n slot: componentSlot,\n skipVariantsResolver: inputSkipVariantsResolver,\n skipSx: inputSkipSx,\n // TODO v6: remove `lowercaseFirstLetter()` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n overridesResolver = defaultOverridesResolver(lowercaseFirstLetter(componentSlot)),\n ...options\n } = inputOptions;\n\n // if skipVariantsResolver option is defined, take the value, otherwise, true for root and false for other slots.\n const skipVariantsResolver = inputSkipVariantsResolver !== undefined ? inputSkipVariantsResolver :\n // TODO v6: remove `Root` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n componentSlot && componentSlot !== 'Root' && componentSlot !== 'root' || false;\n const skipSx = inputSkipSx || false;\n let shouldForwardPropOption = shouldForwardProp;\n\n // TODO v6: remove `Root` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n if (componentSlot === 'Root' || componentSlot === 'root') {\n shouldForwardPropOption = rootShouldForwardProp;\n } else if (componentSlot) {\n // any other slot specified\n shouldForwardPropOption = slotShouldForwardProp;\n } else if (isStringTag(tag)) {\n // for string (html) tag, preserve the behavior in emotion & styled-components.\n shouldForwardPropOption = undefined;\n }\n const defaultStyledResolver = styledEngineStyled(tag, {\n shouldForwardProp: shouldForwardPropOption,\n label: generateStyledLabel(componentName, componentSlot),\n ...options\n });\n const transformStyle = style => {\n // - On the server Emotion doesn't use React.forwardRef for creating components, so the created\n // component stays as a function. This condition makes sure that we do not interpolate functions\n // which are basically components used as a selectors.\n // - `style` could be a styled component from a babel plugin for component selectors, This condition\n // makes sure that we do not interpolate them.\n if (style.__emotion_real === style) {\n return style;\n }\n if (typeof style === 'function') {\n return function styleFunctionProcessor(props) {\n return processStyle(props, style);\n };\n }\n if (isPlainObject(style)) {\n const serialized = preprocessStyles(style);\n if (!serialized.variants) {\n return serialized.style;\n }\n return function styleObjectProcessor(props) {\n return processStyle(props, serialized);\n };\n }\n return style;\n };\n const muiStyledResolver = (...expressionsInput) => {\n const expressionsHead = [];\n const expressionsBody = expressionsInput.map(transformStyle);\n const expressionsTail = [];\n\n // Preprocess `props` to set the scoped theme value.\n // This must run before any other expression.\n expressionsHead.push(styleAttachTheme);\n if (componentName && overridesResolver) {\n expressionsTail.push(function styleThemeOverrides(props) {\n const theme = props.theme;\n const styleOverrides = theme.components?.[componentName]?.styleOverrides;\n if (!styleOverrides) {\n return null;\n }\n const resolvedStyleOverrides = {};\n\n // TODO: v7 remove iteration and use `resolveStyleArg(styleOverrides[slot])` directly\n // eslint-disable-next-line guard-for-in\n for (const slotKey in styleOverrides) {\n resolvedStyleOverrides[slotKey] = processStyle(props, styleOverrides[slotKey]);\n }\n return overridesResolver(props, resolvedStyleOverrides);\n });\n }\n if (componentName && !skipVariantsResolver) {\n expressionsTail.push(function styleThemeVariants(props) {\n const theme = props.theme;\n const themeVariants = theme?.components?.[componentName]?.variants;\n if (!themeVariants) {\n return null;\n }\n return processStyleVariants(props, themeVariants);\n });\n }\n if (!skipSx) {\n expressionsTail.push(styleFunctionSx);\n }\n\n // This function can be called as a tagged template, so the first argument would contain\n // CSS `string[]` values.\n if (Array.isArray(expressionsBody[0])) {\n const inputStrings = expressionsBody.shift();\n\n // We need to add placeholders in the tagged template for the custom functions we have\n // possibly added (attachTheme, overrides, variants, and sx).\n const placeholdersHead = new Array(expressionsHead.length).fill('');\n const placeholdersTail = new Array(expressionsTail.length).fill('');\n let outputStrings;\n // prettier-ignore\n {\n outputStrings = [...placeholdersHead, ...inputStrings, ...placeholdersTail];\n outputStrings.raw = [...placeholdersHead, ...inputStrings.raw, ...placeholdersTail];\n }\n\n // The only case where we put something before `attachTheme`\n expressionsHead.unshift(outputStrings);\n }\n const expressions = [...expressionsHead, ...expressionsBody, ...expressionsTail];\n const Component = defaultStyledResolver(...expressions);\n if (tag.muiName) {\n Component.muiName = tag.muiName;\n }\n if (process.env.NODE_ENV !== 'production') {\n Component.displayName = generateDisplayName(componentName, componentSlot, tag);\n }\n return Component;\n };\n if (defaultStyledResolver.withConfig) {\n muiStyledResolver.withConfig = defaultStyledResolver.withConfig;\n }\n return muiStyledResolver;\n };\n return styled;\n}\nfunction generateDisplayName(componentName, componentSlot, tag) {\n if (componentName) {\n return `${componentName}${capitalize(componentSlot || '')}`;\n }\n return `Styled(${getDisplayName(tag)})`;\n}\nfunction generateStyledLabel(componentName, componentSlot) {\n let label;\n if (process.env.NODE_ENV !== 'production') {\n if (componentName) {\n // TODO v6: remove `lowercaseFirstLetter()` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n label = `${componentName}-${lowercaseFirstLetter(componentSlot || 'Root')}`;\n }\n }\n return label;\n}\nfunction isObjectEmpty(object) {\n // eslint-disable-next-line\n for (const _ in object) {\n return false;\n }\n return true;\n}\n\n// https://github.com/emotion-js/emotion/blob/26ded6109fcd8ca9875cc2ce4564fee678a3f3c5/packages/styled/src/utils.js#L40\nfunction isStringTag(tag) {\n return typeof tag === 'string' &&\n // 96 is one less than the char code\n // for \"a\" so this is checking that\n // it's a lowercase character\n tag.charCodeAt(0) > 96;\n}\nfunction lowercaseFirstLetter(string) {\n if (!string) {\n return string;\n }\n return string.charAt(0).toLowerCase() + string.slice(1);\n}"],"names":["systemDefaultTheme","createTheme","shouldForwardProp","prop","defaultOverridesResolver","slot","_props","styles","processStyle","props","style","resolvedStyle","Array","isArray","flatMap","subStyle","variants","rootStyle","isProcessed","otherStyles","processStyleVariants","results","mergedState","variantLoop","i","length","variant","ownerState","key","push","createStyled","input","themeId","defaultTheme","rootShouldForwardProp","slotShouldForwardProp","styleAttachTheme","theme","object","_","isObjectEmpty","attachTheme","tag","inputOptions","mutateStyles","filter","styleFunctionSx","name","componentName","componentSlot","skipVariantsResolver","inputSkipVariantsResolver","skipSx","inputSkipSx","overridesResolver","lowercaseFirstLetter","options","undefined","shouldForwardPropOption","charCodeAt","isStringTag","defaultStyledResolver","styledEngineStyled","label","generateStyledLabel","transformStyle","__emotion_real","isPlainObject","serialized","preprocessStyles","muiStyledResolver","expressionsInput","expressionsHead","expressionsBody","map","expressionsTail","styleOverrides","components","resolvedStyleOverrides","slotKey","themeVariants","inputStrings","shift","placeholdersHead","fill","placeholdersTail","outputStrings","raw","unshift","expressions","Component","muiName","process","env","NODE_ENV","displayName","capitalize","getDisplayName","generateDisplayName","withConfig","string","charAt","toLowerCase","slice"],"mappings":"+ZAYY,MAACA,EAAqBC,IAG3B,SAASC,EAAkBC,GAChC,MAAgB,eAATA,GAAkC,UAATA,GAA6B,OAATA,GAA0B,OAATA,CACvE,CACA,SAASC,EAAyBC,GAChC,OAAKA,EAGE,CAACC,EAAQC,IAAWA,EAAOF,GAFzB,IAGX,CAIA,SAASG,EAAaC,EAAOC,GAU3B,MAAMC,EAAiC,mBAAVD,EAAuBA,EAAMD,GAASC,EACnE,GAAIE,MAAMC,QAAQF,GAChB,OAAOA,EAAcG,SAAQC,GAAYP,EAAaC,EAAOM,KAE/D,GAAIH,MAAMC,QAAQF,GAAeK,UAAW,CAC1C,IAAIC,EACJ,GAAIN,EAAcO,YAChBD,EAAYN,EAAcD,UACrB,CACL,MAAMM,SACJA,KACGG,GACDR,EACJM,EAAYE,CAClB,CAC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ourcesContent":["import styledEngineStyled, { internal_mutateStyles as mutateStyles, internal_serializeStyles as serializeStyles } from '@mui/styled-engine';\nimport { isPlainObject } from '@mui/utils/deepmerge';\nimport capitalize from '@mui/utils/capitalize';\nimport getDisplayName from '@mui/utils/getDisplayName';\nimport createTheme from \"../createTheme/index.js\";\nimport styleFunctionSx from \"../styleFunctionSx/index.js\";\nimport preprocessStyles from \"../preprocessStyles.js\";\n\n/* eslint-disable no-underscore-dangle */\n/* eslint-disable no-labels */\n/* eslint-disable no-lone-blocks */\n\nexport const systemDefaultTheme = createTheme();\n\n// Update /system/styled/#api in case if this changes\nexport function shouldForwardProp(prop) {\n return prop !== 'ownerState' && prop !== 'theme' && prop !== 'sx' && prop !== 'as';\n}\nfunction shallowLayer(serialized, layerName) {\n if (layerName && serialized && typeof serialized === 'object' && serialized.styles && !serialized.styles.startsWith('@layer') // only add the layer if it is not already there.\n ) {\n serialized.styles = `@layer ${layerName}{${String(serialized.styles)}}`;\n }\n return serialized;\n}\nfunction defaultOverridesResolver(slot) {\n if (!slot) {\n return null;\n }\n return (_props, styles) => styles[slot];\n}\nfunction attachTheme(props, themeId, defaultTheme) {\n props.theme = isObjectEmpty(props.theme) ? defaultTheme : props.theme[themeId] || props.theme;\n}\nfunction processStyle(props, style, layerName) {\n /*\n * Style types:\n * - null/undefined\n * - string\n * - CSS style object: { [cssKey]: [cssValue], variants }\n * - Processed style object: { style, variants, isProcessed: true }\n * - Array of any of the above\n */\n\n const resolvedStyle = typeof style === 'function' ? style(props) : style;\n if (Array.isArray(resolvedStyle)) {\n return resolvedStyle.flatMap(subStyle => processStyle(props, subStyle, layerName));\n }\n if (Array.isArray(resolvedStyle?.variants)) {\n let rootStyle;\n if (resolvedStyle.isProcessed) {\n rootStyle = layerName ? shallowLayer(resolvedStyle.style, layerName) : resolvedStyle.style;\n } else {\n const {\n variants,\n ...otherStyles\n } = resolvedStyle;\n rootStyle = layerName ? shallowLayer(serializeStyles(otherStyles), layerName) : otherStyles;\n }\n return processStyleVariants(props, resolvedStyle.variants, [rootStyle], layerName);\n }\n if (resolvedStyle?.isProcessed) {\n return layerName ? shallowLayer(serializeStyles(resolvedStyle.style), layerName) : resolvedStyle.style;\n }\n return layerName ? shallowLayer(serializeStyles(resolvedStyle), layerName) : resolvedStyle;\n}\nfunction processStyleVariants(props, variants, results = [], layerName = undefined) {\n let mergedState; // We might not need it, initialized lazily\n\n variantLoop: for (let i = 0; i < variants.length; i += 1) {\n const variant = variants[i];\n if (typeof variant.props === 'function') {\n mergedState ??= {\n ...props,\n ...props.ownerState,\n ownerState: props.ownerState\n };\n if (!variant.props(mergedState)) {\n continue;\n }\n } else {\n for (const key in variant.props) {\n if (props[key] !== variant.props[key] && props.ownerState?.[key] !== variant.props[key]) {\n continue variantLoop;\n }\n }\n }\n if (typeof variant.style === 'function') {\n mergedState ??= {\n ...props,\n ...props.ownerState,\n ownerState: props.ownerState\n };\n results.push(layerName ? shallowLayer(serializeStyles(variant.style(mergedState)), layerName) : variant.style(mergedState));\n } else {\n results.push(layerName ? shallowLayer(serializeStyles(variant.style), layerName) : variant.style);\n }\n }\n return results;\n}\nexport default function createStyled(input = {}) {\n const {\n themeId,\n defaultTheme = systemDefaultTheme,\n rootShouldForwardProp = shouldForwardProp,\n slotShouldForwardProp = shouldForwardProp\n } = input;\n function styleAttachTheme(props) {\n attachTheme(props, themeId, defaultTheme);\n }\n const styled = (tag, inputOptions = {}) => {\n // If `tag` is already a styled component, filter out the `sx` style function\n // to prevent unnecessary styles generated by the composite components.\n mutateStyles(tag, styles => styles.filter(style => style !== styleFunctionSx));\n const {\n name: componentName,\n slot: componentSlot,\n skipVariantsResolver: inputSkipVariantsResolver,\n skipSx: inputSkipSx,\n // TODO v6: remove `lowercaseFirstLetter()` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n overridesResolver = defaultOverridesResolver(lowercaseFirstLetter(componentSlot)),\n ...options\n } = inputOptions;\n const layerName = componentName && componentName.startsWith('Mui') || !!componentSlot ? 'components' : 'custom';\n\n // if skipVariantsResolver option is defined, take the value, otherwise, true for root and false for other slots.\n const skipVariantsResolver = inputSkipVariantsResolver !== undefined ? inputSkipVariantsResolver :\n // TODO v6: remove `Root` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n componentSlot && componentSlot !== 'Root' && componentSlot !== 'root' || false;\n const skipSx = inputSkipSx || false;\n let shouldForwardPropOption = shouldForwardProp;\n\n // TODO v6: remove `Root` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n if (componentSlot === 'Root' || componentSlot === 'root') {\n shouldForwardPropOption = rootShouldForwardProp;\n } else if (componentSlot) {\n // any other slot specified\n shouldForwardPropOption = slotShouldForwardProp;\n } else if (isStringTag(tag)) {\n // for string (html) tag, preserve the behavior in emotion & styled-components.\n shouldForwardPropOption = undefined;\n }\n const defaultStyledResolver = styledEngineStyled(tag, {\n shouldForwardProp: shouldForwardPropOption,\n label: generateStyledLabel(componentName, componentSlot),\n ...options\n });\n const transformStyle = style => {\n // - On the server Emotion doesn't use React.forwardRef for creating components, so the created\n // component stays as a function. This condition makes sure that we do not interpolate functions\n // which are basically components used as a selectors.\n // - `style` could be a styled component from a babel plugin for component selectors, This condition\n // makes sure that we do not interpolate them.\n if (style.__emotion_real === style) {\n return style;\n }\n if (typeof style === 'function') {\n return function styleFunctionProcessor(props) {\n return processStyle(props, style, props.theme.modularCssLayers ? layerName : undefined);\n };\n }\n if (isPlainObject(style)) {\n const serialized = preprocessStyles(style);\n return function styleObjectProcessor(props) {\n if (!serialized.variants) {\n return props.theme.modularCssLayers ? shallowLayer(serialized.style, layerName) : serialized.style;\n }\n return processStyle(props, serialized, props.theme.modularCssLayers ? layerName : undefined);\n };\n }\n return style;\n };\n const muiStyledResolver = (...expressionsInput) => {\n const expressionsHead = [];\n const expressionsBody = expressionsInput.map(transformStyle);\n const expressionsTail = [];\n\n // Preprocess `props` to set the scoped theme value.\n // This must run before any other expression.\n expressionsHead.push(styleAttachTheme);\n if (componentName && overridesResolver) {\n expressionsTail.push(function styleThemeOverrides(props) {\n const theme = props.theme;\n const styleOverrides = theme.components?.[componentName]?.styleOverrides;\n if (!styleOverrides) {\n return null;\n }\n const resolvedStyleOverrides = {};\n\n // TODO: v7 remove iteration and use `resolveStyleArg(styleOverrides[slot])` directly\n // eslint-disable-next-line guard-for-in\n for (const slotKey in styleOverrides) {\n resolvedStyleOverrides[slotKey] = processStyle(props, styleOverrides[slotKey], props.theme.modularCssLayers ? 'theme' : undefined);\n }\n return overridesResolver(props, resolvedStyleOverrides);\n });\n }\n if (componentName && !skipVariantsResolver) {\n expressionsTail.push(function styleThemeVariants(props) {\n const theme = props.theme;\n const themeVariants = theme?.components?.[componentName]?.variants;\n if (!themeVariants) {\n return null;\n }\n return processStyleVariants(props, themeVariants, [], props.theme.modularCssLayers ? 'theme' : undefined);\n });\n }\n if (!skipSx) {\n expressionsTail.push(styleFunctionSx);\n }\n\n // This function can be called as a tagged template, so the first argument would contain\n // CSS `string[]` values.\n if (Array.isArray(expressionsBody[0])) {\n const inputStrings = expressionsBody.shift();\n\n // We need to add placeholders in the tagged template for the custom functions we have\n // possibly added (attachTheme, overrides, variants, and sx).\n const placeholdersHead = new Array(expressionsHead.length).fill('');\n const placeholdersTail = new Array(expressionsTail.length).fill('');\n let outputStrings;\n // prettier-ignore\n {\n outputStrings = [...placeholdersHead, ...inputStrings, ...placeholdersTail];\n outputStrings.raw = [...placeholdersHead, ...inputStrings.raw, ...placeholdersTail];\n }\n\n // The only case where we put something before `attachTheme`\n expressionsHead.unshift(outputStrings);\n }\n const expressions = [...expressionsHead, ...expressionsBody, ...expressionsTail];\n const Component = defaultStyledResolver(...expressions);\n if (tag.muiName) {\n Component.muiName = tag.muiName;\n }\n if (process.env.NODE_ENV !== 'production') {\n Component.displayName = generateDisplayName(componentName, componentSlot, tag);\n }\n return Component;\n };\n if (defaultStyledResolver.withConfig) {\n muiStyledResolver.withConfig = defaultStyledResolver.withConfig;\n }\n return muiStyledResolver;\n };\n return styled;\n}\nfunction generateDisplayName(componentName, componentSlot, tag) {\n if (componentName) {\n return `${componentName}${capitalize(componentSlot || '')}`;\n }\n return `Styled(${getDisplayName(tag)})`;\n}\nfunction generateStyledLabel(componentName, componentSlot) {\n let label;\n if (process.env.NODE_ENV !== 'production') {\n if (componentName) {\n // TODO v6: remove `lowercaseFirstLetter()` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n label = `${componentName}-${lowercaseFirstLetter(componentSlot || 'Root')}`;\n }\n }\n return label;\n}\nfunction isObjectEmpty(object) {\n // eslint-disable-next-line\n for (const _ in object) {\n return false;\n }\n return true;\n}\n\n// https://github.com/emotion-js/emotion/blob/26ded6109fcd8ca9875cc2ce4564fee678a3f3c5/packages/styled/src/utils.js#L40\nfunction isStringTag(tag) {\n return typeof tag === 'string' &&\n // 96 is one less than the char code\n // for \"a\" so this is checking that\n // it's a lowercase character\n tag.charCodeAt(0) > 96;\n}\nfunction lowercaseFirstLetter(string) {\n if (!string) {\n return string;\n }\n return string.charAt(0).toLowerCase() + string.slice(1);\n}"],"names":["systemDefaultTheme","createTheme","shouldForwardProp","prop","shallowLayer","serialized","layerName","styles","startsWith","String","defaultOverridesResolver","slot","_props","processStyle","props","style","resolvedStyle","Array","isArray","flatMap","subStyle","variants","rootStyle","isProcessed","otherStyles","serializeStyles","processStyleVariants","results","undefined","mergedState","variantLoop","i","length","variant","ownerState","key","push","createStyled","input","themeId","defaultTheme","rootShouldForwardProp","slotShouldForwardProp","styleAttachTheme","theme","object","_","isObjectEmpty","attachTheme","tag","inputOptions","mutateStyles","filter","styleFunctionSx","name","componentName","componentSlot","skipVariantsResolver","inputSkipVariantsResolver","skipSx","inputSkipSx","overridesResolver","lowercaseFirstLetter","options","shouldForwardPropOption","charCodeAt","isStringTag","defaultStyledResolver","styledEngineStyled","label","generateStyledLabel","transformStyle","__emotion_real","modularCssLayers","isPlainObject","preprocessStyles","muiStyledResolver","expressionsInput","expressionsHead","expressionsBody","map","expressionsTail","styleOverrides","components","resolvedStyleOverrides","slotKey","themeVariants","inputStrings","shift","placeholdersHead","fill","placeholdersTail","outputStrings","raw","unshift","expressions","Component","muiName","process","env","NODE_ENV","displayName","capitalize","getDisplayName","generateDisplayName","withConfig","string","charAt","toLowerCase","slice"],"mappings":"6bAYY,MAACA,EAAqBC,IAG3B,SAASC,EAAkBC,GAChC,MAAgB,eAATA,GAAkC,UAATA,GAA6B,OAATA,GAA0B,OAATA,CACvE,CACA,SAASC,EAAaC,EAAYC,GAKhC,OAJIA,GAAaD,GAAoC,iBAAfA,GAA2BA,EAAWE,SAAWF,EAAWE,OAAOC,WAAW,YAElHH,EAAWE,OAAS,UAAUD,KAAaG,OAAOJ,EAAWE,YAExDF,CACT,CACA,SAASK,EAAyBC,GAChC,OAAKA,EAGE,CAACC,EAAQL,IAAWA,EAAOI,GAFzB,IAGX,CAIA,SAASE,EAAaC,EAAOC,EAAOT,GAUlC,MAAMU,EAAiC,mBAAVD,EAAuBA,EAAMD,GAASC,EACnE,GAAIE,MAAMC,QAAQF,GAChB,OAAOA,EAAcG,SAAQC,GAAYP,EAAaC,EAAOM,EAAUd,KAEzE,GAAIW,MAAMC,QAAQF,GAAeK,UAAW,CAC1C,IAAIC,EACJ,GAAIN,EAAcO,YAChBD,EAAYhB,EAAYF,EAAaY,EAAcD,MAAOT,GAAaU,EAAcD,UAChF,CACL,MAAMM,SACJA,KACGG,GACDR,EACJM,EAAYhB,EAAYF,EAAaqB,EAAgBD,GAAclB,GAAakB,CACtF,CACI,OAAOE,EAAqBZ,EAAOE,EAAcK,SAAU,CAACC,GAAYhB,EAC5E,CACE,OAAIU,GAAeO,YACVjB,EAAYF,EAAaqB,EAAgBT,EAAcD,OAAQT,GAAaU,EAAcD,MAE5FT,EAAYF,EAAaqB,EAAgBT,GAAgBV,GAAaU,CAC/E,CACA,SAASU,EAAqBZ,EAAOO,EAAUM,EAAU,GAAIrB,OAAYsB,GACvE,IAAIC,EAEJC,EAAa,IAAK,IAAIC,E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iBO,EAAqBN,GAAiB,WAG/Da,CACT,CAiBA,SAASP,EAAqB4C,GAC5B,OAAKA,EAGEA,EAAOC,OAAO,GAAGC,cAAgBF,EAAOG,MAAM,GAF5CH,CAGX","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- import e from"./cssVarsParser.js";import t from"../../../utils/esm/deepmerge/deepmerge.js";function s(s,r={}){const{getSelector:o=v,disableCssColorScheme:c,colorSchemeSelector:a}=r,{colorSchemes:l={},components:n,defaultColorScheme:i="light",...f}=s,{vars:m,css:h,varsWithDefaults:u}=e(f,r);let d=u;const S={},{[i]:p,...g}=l;if(Object.entries(g||{}).forEach((([s,o])=>{const{vars:c,css:a,varsWithDefaults:l}=e(o,r);d=t(d,l),S[s]={css:a,vars:c}})),p){const{css:s,vars:o,varsWithDefaults:c}=e(p,r);d=t(d,c),S[i]={css:s,vars:o}}function v(e,t){let r=a;if("class"===a&&(r=".%s"),"data"===a&&(r="[data-%s]"),a?.startsWith("data-")&&!a.includes("%s")&&(r=`[${a}="%s"]`),e){if("media"===r){if(s.defaultColorScheme===e)return":root";const r=l[e]?.palette?.mode||e;return{[`@media (prefers-color-scheme: ${r})`]:{":root":t}}}if(r)return s.defaultColorScheme===e?`:root, ${r.replace("%s",String(e))}`:r.replace("%s",String(e))}return":root"}return{vars:d,generateThemeVars:()=>{let e={...m};return Object.entries(S).forEach((([,{vars:s}])=>{e=t(e,s)})),e},generateStyleSheets:()=>{const e=[],t=s.defaultColorScheme||"light";function r(t,s){Object.keys(s).length&&e.push("string"==typeof t?{[t]:{...s}}:t)}r(o(void 0,{...h}),h);const{[t]:a,...n}=S;if(a){const{css:e}=a,s=l[t]?.palette?.mode,n=!c&&s?{colorScheme:s,...e}:{...e};r(o(t,{...n}),n)}return Object.entries(n).forEach((([e,{css:t}])=>{const s=l[e]?.palette?.mode,a=!c&&s?{colorScheme:s,...t}:{...t};r(o(e,{...a}),a)})),e}}}export{s as default};
1
+ import e from"./cssVarsParser.js";import t from"../../../utils/esm/deepmerge/deepmerge.js";function s(s,r={}){const{getSelector:o=_,disableCssColorScheme:a,colorSchemeSelector:c,enableContrastVars:l}=r,{colorSchemes:n={},components:i,defaultColorScheme:h="light",...f}=s,{vars:m,css:u,varsWithDefaults:d}=e(f,r);let p=d;const S={},{[h]:v,...g}=n;if(Object.entries(g||{}).forEach((([s,o])=>{const{vars:a,css:c,varsWithDefaults:l}=e(o,r);p=t(p,l),S[s]={css:c,vars:a}})),v){const{css:s,vars:o,varsWithDefaults:a}=e(v,r);p=t(p,a),S[h]={css:s,vars:o}}function _(e,t){let r=c;if("class"===c&&(r=".%s"),"data"===c&&(r="[data-%s]"),c?.startsWith("data-")&&!c.includes("%s")&&(r=`[${c}="%s"]`),e){if("media"===r){if(s.defaultColorScheme===e)return":root";const r=n[e]?.palette?.mode||e;return{[`@media (prefers-color-scheme: ${r})`]:{":root":t}}}if(r)return s.defaultColorScheme===e?`:root, ${r.replace("%s",String(e))}`:r.replace("%s",String(e))}return":root"}return{vars:p,generateThemeVars:()=>{let e={...m};return Object.entries(S).forEach((([,{vars:s}])=>{e=t(e,s)})),e},generateStyleSheets:()=>{const e=[],t=s.defaultColorScheme||"light";function r(t,s){Object.keys(s).length&&e.push("string"==typeof t?{[t]:{...s}}:t)}r(o(void 0,{...u}),u);const{[t]:c,...i}=S;if(c){const{css:e}=c,s=n[t]?.palette?.mode,l=!a&&s?{colorScheme:s,...e}:{...e};r(o(t,{...l}),l)}return Object.entries(i).forEach((([e,{css:t}])=>{const s=n[e]?.palette?.mode,c=!a&&s?{colorScheme:s,...t}:{...t};r(o(e,{...c}),c)})),l&&e.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),e}}}export{s as default};
2
2
  //# sourceMappingURL=prepareCssVars.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"prepareCssVars.js","sources":["../../../../../../../node_modules/@mui/system/esm/cssVars/prepareCssVars.js"],"sourcesContent":["import deepmerge from '@mui/utils/deepmerge';\nimport cssVarsParser from \"./cssVarsParser.js\";\nfunction prepareCssVars(theme, parserConfig = {}) {\n const {\n getSelector = defaultGetSelector,\n disableCssColorScheme,\n colorSchemeSelector: selector\n } = parserConfig;\n // @ts-ignore - ignore components do not exist\n const {\n colorSchemes = {},\n components,\n defaultColorScheme = 'light',\n ...otherTheme\n } = theme;\n const {\n vars: rootVars,\n css: rootCss,\n varsWithDefaults: rootVarsWithDefaults\n } = cssVarsParser(otherTheme, parserConfig);\n let themeVars = rootVarsWithDefaults;\n const colorSchemesMap = {};\n const {\n [defaultColorScheme]: defaultScheme,\n ...otherColorSchemes\n } = colorSchemes;\n Object.entries(otherColorSchemes || {}).forEach(([key, scheme]) => {\n const {\n vars,\n css,\n varsWithDefaults\n } = cssVarsParser(scheme, parserConfig);\n themeVars = deepmerge(themeVars, varsWithDefaults);\n colorSchemesMap[key] = {\n css,\n vars\n };\n });\n if (defaultScheme) {\n // default color scheme vars should be merged last to set as default\n const {\n css,\n vars,\n varsWithDefaults\n } = cssVarsParser(defaultScheme, parserConfig);\n themeVars = deepmerge(themeVars, varsWithDefaults);\n colorSchemesMap[defaultColorScheme] = {\n css,\n vars\n };\n }\n function defaultGetSelector(colorScheme, cssObject) {\n let rule = selector;\n if (selector === 'class') {\n rule = '.%s';\n }\n if (selector === 'data') {\n rule = '[data-%s]';\n }\n if (selector?.startsWith('data-') && !selector.includes('%s')) {\n // 'data-joy-color-scheme' -> '[data-joy-color-scheme=\"%s\"]'\n rule = `[${selector}=\"%s\"]`;\n }\n if (colorScheme) {\n if (rule === 'media') {\n if (theme.defaultColorScheme === colorScheme) {\n return ':root';\n }\n const mode = colorSchemes[colorScheme]?.palette?.mode || colorScheme;\n return {\n [`@media (prefers-color-scheme: ${mode})`]: {\n ':root': cssObject\n }\n };\n }\n if (rule) {\n if (theme.defaultColorScheme === colorScheme) {\n return `:root, ${rule.replace('%s', String(colorScheme))}`;\n }\n return rule.replace('%s', String(colorScheme));\n }\n }\n return ':root';\n }\n const generateThemeVars = () => {\n let vars = {\n ...rootVars\n };\n Object.entries(colorSchemesMap).forEach(([, {\n vars: schemeVars\n }]) => {\n vars = deepmerge(vars, schemeVars);\n });\n return vars;\n };\n const generateStyleSheets = () => {\n const stylesheets = [];\n const colorScheme = theme.defaultColorScheme || 'light';\n function insertStyleSheet(key, css) {\n if (Object.keys(css).length) {\n stylesheets.push(typeof key === 'string' ? {\n [key]: {\n ...css\n }\n } : key);\n }\n }\n insertStyleSheet(getSelector(undefined, {\n ...rootCss\n }), rootCss);\n const {\n [colorScheme]: defaultSchemeVal,\n ...other\n } = colorSchemesMap;\n if (defaultSchemeVal) {\n // default color scheme has to come before other color schemes\n const {\n css\n } = defaultSchemeVal;\n const cssColorSheme = colorSchemes[colorScheme]?.palette?.mode;\n const finalCss = !disableCssColorScheme && cssColorSheme ? {\n colorScheme: cssColorSheme,\n ...css\n } : {\n ...css\n };\n insertStyleSheet(getSelector(colorScheme, {\n ...finalCss\n }), finalCss);\n }\n Object.entries(other).forEach(([key, {\n css\n }]) => {\n const cssColorSheme = colorSchemes[key]?.palette?.mode;\n const finalCss = !disableCssColorScheme && cssColorSheme ? {\n colorScheme: cssColorSheme,\n ...css\n } : {\n ...css\n };\n insertStyleSheet(getSelector(key, {\n ...finalCss\n }), finalCss);\n });\n return stylesheets;\n };\n return {\n vars: themeVars,\n generateThemeVars,\n generateStyleSheets\n };\n}\nexport default prepareCssVars;"],"names":["prepareCssVars","theme","parserConfig","getSelector","defaultGetSelector","disableCssColorScheme","colorSchemeSelector","selector","colorSchemes","components","defaultColorScheme","otherTheme","vars","rootVars","css","rootCss","varsWithDefaults","rootVarsWithDefaults","cssVarsParser","themeVars","colorSchemesMap","defaultScheme","otherColorSchemes","Object","entries","forEach","key","scheme","deepmerge","colorScheme","cssObject","rule","startsWith","includes","mode","palette","replace","String","generateThemeVars","schemeVars","generateStyleSheets","stylesheets","insertStyleSheet","keys","length","push","undefined","defaultSchemeVal","other","cssColorSheme","finalCss"],"mappings":"2FAEA,SAASA,EAAeC,EAAOC,EAAe,IAC5C,MAAMC,YACJA,EAAcC,EAAkBC,sBAChCA,EACAC,oBAAqBC,GACnBL,GAEEM,aACJA,EAAe,CAAE,EAAAC,WACjBA,EAAUC,mBACVA,EAAqB,WAClBC,GACDV,GAEFW,KAAMC,EACNC,IAAKC,EACLC,iBAAkBC,GAChBC,EAAcP,EAAYT,GAC9B,IAAIiB,EAAYF,EAChB,MAAMG,EAAkB,CAAE,GAExBV,CAACA,GAAqBW,KACnBC,GACDd,EAaJ,GAZAe,OAAOC,QAAQF,GAAqB,CAAE,GAAEG,SAAQ,EAAEC,EAAKC,MACrD,MAAMf,KACJA,EAAIE,IACJA,EAAGE,iBACHA,GACEE,EAAcS,EAAQzB,GAC1BiB,EAAYS,EAAUT,EAAWH,GACjCI,EAAgBM,GAAO,CACrBZ,MACAF,WAGAS,EAAe,CAEjB,MAAMP,IACJA,EAAGF,KACHA,EAAII,iBACJA,GACEE,EAAcG,EAAenB,GACjCiB,EAAYS,EAAUT,EAAWH,GACjCI,EAAgBV,GAAsB,CACpCI,MACAF,OAEN,CACE,SAASR,EAAmByB,EAAaC,GACvC,IAAIC,EAAOxB,EAWX,GAViB,UAAbA,IACFwB,EAAO,OAEQ,SAAbxB,IACFwB,EAAO,aAELxB,GAAUyB,WAAW,WAAazB,EAAS0B,SAAS,QAEtDF,EAAO,IAAIxB,WAETsB,EAAa,CACf,GAAa,UAATE,EAAkB,CACpB,GAAI9B,EAAMS,qBAAuBmB,EAC/B,MAAO,QAET,MAAMK,EAAO1B,EAAaqB,IAAcM,SAASD,MAAQL,EACzD,MAAO,CACL,CAAC,iCAAiCK,MAAU,CAC1C,QAASJ,GAGrB,CACM,GAAIC,EACF,OAAI9B,EAAMS,qBAAuBmB,EACxB,UAAUE,EAAKK,QAAQ,KAAMC,OAAOR,MAEtCE,EAAKK,QAAQ,KAAMC,OAAOR,GAEzC,CACI,MAAO,OACX,CA+DE,MAAO,CACLjB,KAAMO,EACNmB,kBAhEwB,KACxB,IAAI1B,EAAO,IACNC,GAOL,OALAU,OAAOC,QAAQJ,GAAiBK,SAAQ,EAAI,EAC1Cb,KAAM2B,OAEN3B,EAAOgB,EAAUhB,EAAM2B,MAElB3B,GAwDP4B,oBAtD0B,KAC1B,MAAMC,EAAc,GACdZ,EAAc5B,EAAMS,oBAAsB,QAChD,SAASgC,EAAiBhB,EAAKZ,GACzBS,OAAOoB,KAAK7B,GAAK8B,QACnBH,EAAYI,KAAoB,iBAARnB,EAAmB,CACzCA,CAACA,GAAM,IACFZ,IAEHY,EAEZ,CACIgB,EAAiBvC,OAAY2C,EAAW,IACnC/B,IACDA,GACJ,MACEc,CAACA,GAAckB,KACZC,GACD5B,EACJ,GAAI2B,EAAkB,CAEpB,MAAMjC,IACJA,GACEiC,EACEE,EAAgBzC,EAAaqB,IAAcM,SAASD,KACpDgB,GAAY7C,GAAyB4C,EAAgB,CACzDpB,YAAaoB,KACVnC,GACD,IACCA,GAEL4B,EAAiBvC,EAAY0B,EAAa,IACrCqB,IACDA,EACV,CAeI,OAdA3B,OAAOC,QAAQwB,GAAOvB,SAAQ,EAAEC,GAC9BZ,WAEA,MAAMmC,EAAgBzC,EAAakB,IAAMS,SAASD,KAC5CgB,GAAY7C,GAAyB4C,EAAgB,CACzDpB,YAAaoB,KACVnC,GACD,IACCA,GAEL4B,EAAiBvC,EAAYuB,EAAK,IAC7BwB,IACDA,MAECT,GAOX","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"prepareCssVars.js","sources":["../../../../../../../node_modules/@mui/system/esm/cssVars/prepareCssVars.js"],"sourcesContent":["import deepmerge from '@mui/utils/deepmerge';\nimport cssVarsParser from \"./cssVarsParser.js\";\nfunction prepareCssVars(theme, parserConfig = {}) {\n const {\n getSelector = defaultGetSelector,\n disableCssColorScheme,\n colorSchemeSelector: selector,\n enableContrastVars\n } = parserConfig;\n // @ts-ignore - ignore components do not exist\n const {\n colorSchemes = {},\n components,\n defaultColorScheme = 'light',\n ...otherTheme\n } = theme;\n const {\n vars: rootVars,\n css: rootCss,\n varsWithDefaults: rootVarsWithDefaults\n } = cssVarsParser(otherTheme, parserConfig);\n let themeVars = rootVarsWithDefaults;\n const colorSchemesMap = {};\n const {\n [defaultColorScheme]: defaultScheme,\n ...otherColorSchemes\n } = colorSchemes;\n Object.entries(otherColorSchemes || {}).forEach(([key, scheme]) => {\n const {\n vars,\n css,\n varsWithDefaults\n } = cssVarsParser(scheme, parserConfig);\n themeVars = deepmerge(themeVars, varsWithDefaults);\n colorSchemesMap[key] = {\n css,\n vars\n };\n });\n if (defaultScheme) {\n // default color scheme vars should be merged last to set as default\n const {\n css,\n vars,\n varsWithDefaults\n } = cssVarsParser(defaultScheme, parserConfig);\n themeVars = deepmerge(themeVars, varsWithDefaults);\n colorSchemesMap[defaultColorScheme] = {\n css,\n vars\n };\n }\n function defaultGetSelector(colorScheme, cssObject) {\n let rule = selector;\n if (selector === 'class') {\n rule = '.%s';\n }\n if (selector === 'data') {\n rule = '[data-%s]';\n }\n if (selector?.startsWith('data-') && !selector.includes('%s')) {\n // 'data-joy-color-scheme' -> '[data-joy-color-scheme=\"%s\"]'\n rule = `[${selector}=\"%s\"]`;\n }\n if (colorScheme) {\n if (rule === 'media') {\n if (theme.defaultColorScheme === colorScheme) {\n return ':root';\n }\n const mode = colorSchemes[colorScheme]?.palette?.mode || colorScheme;\n return {\n [`@media (prefers-color-scheme: ${mode})`]: {\n ':root': cssObject\n }\n };\n }\n if (rule) {\n if (theme.defaultColorScheme === colorScheme) {\n return `:root, ${rule.replace('%s', String(colorScheme))}`;\n }\n return rule.replace('%s', String(colorScheme));\n }\n }\n return ':root';\n }\n const generateThemeVars = () => {\n let vars = {\n ...rootVars\n };\n Object.entries(colorSchemesMap).forEach(([, {\n vars: schemeVars\n }]) => {\n vars = deepmerge(vars, schemeVars);\n });\n return vars;\n };\n const generateStyleSheets = () => {\n const stylesheets = [];\n const colorScheme = theme.defaultColorScheme || 'light';\n function insertStyleSheet(key, css) {\n if (Object.keys(css).length) {\n stylesheets.push(typeof key === 'string' ? {\n [key]: {\n ...css\n }\n } : key);\n }\n }\n insertStyleSheet(getSelector(undefined, {\n ...rootCss\n }), rootCss);\n const {\n [colorScheme]: defaultSchemeVal,\n ...other\n } = colorSchemesMap;\n if (defaultSchemeVal) {\n // default color scheme has to come before other color schemes\n const {\n css\n } = defaultSchemeVal;\n const cssColorSheme = colorSchemes[colorScheme]?.palette?.mode;\n const finalCss = !disableCssColorScheme && cssColorSheme ? {\n colorScheme: cssColorSheme,\n ...css\n } : {\n ...css\n };\n insertStyleSheet(getSelector(colorScheme, {\n ...finalCss\n }), finalCss);\n }\n Object.entries(other).forEach(([key, {\n css\n }]) => {\n const cssColorSheme = colorSchemes[key]?.palette?.mode;\n const finalCss = !disableCssColorScheme && cssColorSheme ? {\n colorScheme: cssColorSheme,\n ...css\n } : {\n ...css\n };\n insertStyleSheet(getSelector(key, {\n ...finalCss\n }), finalCss);\n });\n if (enableContrastVars) {\n stylesheets.push({\n ':root': {\n // use double underscore to indicate that these are private variables\n '--__l-threshold': '0.7',\n '--__l': 'clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)',\n '--__a': 'clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)' // 0.87 is the default alpha value for black text.\n }\n });\n }\n return stylesheets;\n };\n return {\n vars: themeVars,\n generateThemeVars,\n generateStyleSheets\n };\n}\nexport default prepareCssVars;"],"names":["prepareCssVars","theme","parserConfig","getSelector","defaultGetSelector","disableCssColorScheme","colorSchemeSelector","selector","enableContrastVars","colorSchemes","components","defaultColorScheme","otherTheme","vars","rootVars","css","rootCss","varsWithDefaults","rootVarsWithDefaults","cssVarsParser","themeVars","colorSchemesMap","defaultScheme","otherColorSchemes","Object","entries","forEach","key","scheme","deepmerge","colorScheme","cssObject","rule","startsWith","includes","mode","palette","replace","String","generateThemeVars","schemeVars","generateStyleSheets","stylesheets","insertStyleSheet","keys","length","push","undefined","defaultSchemeVal","other","cssColorSheme","finalCss"],"mappings":"2FAEA,SAASA,EAAeC,EAAOC,EAAe,IAC5C,MAAMC,YACJA,EAAcC,EAAkBC,sBAChCA,EACAC,oBAAqBC,EAAQC,mBAC7BA,GACEN,GAEEO,aACJA,EAAe,CAAE,EAAAC,WACjBA,EAAUC,mBACVA,EAAqB,WAClBC,GACDX,GAEFY,KAAMC,EACNC,IAAKC,EACLC,iBAAkBC,GAChBC,EAAcP,EAAYV,GAC9B,IAAIkB,EAAYF,EAChB,MAAMG,EAAkB,CAAE,GAExBV,CAACA,GAAqBW,KACnBC,GACDd,EAaJ,GAZAe,OAAOC,QAAQF,GAAqB,CAAE,GAAEG,SAAQ,EAAEC,EAAKC,MACrD,MAAMf,KACJA,EAAIE,IACJA,EAAGE,iBACHA,GACEE,EAAcS,EAAQ1B,GAC1BkB,EAAYS,EAAUT,EAAWH,GACjCI,EAAgBM,GAAO,CACrBZ,MACAF,WAGAS,EAAe,CAEjB,MAAMP,IACJA,EAAGF,KACHA,EAAII,iBACJA,GACEE,EAAcG,EAAepB,GACjCkB,EAAYS,EAAUT,EAAWH,GACjCI,EAAgBV,GAAsB,CACpCI,MACAF,OAEN,CACE,SAAST,EAAmB0B,EAAaC,GACvC,IAAIC,EAAOzB,EAWX,GAViB,UAAbA,IACFyB,EAAO,OAEQ,SAAbzB,IACFyB,EAAO,aAELzB,GAAU0B,WAAW,WAAa1B,EAAS2B,SAAS,QAEtDF,EAAO,IAAIzB,WAETuB,EAAa,CACf,GAAa,UAATE,EAAkB,CACpB,GAAI/B,EAAMU,qBAAuBmB,EAC/B,MAAO,QAET,MAAMK,EAAO1B,EAAaqB,IAAcM,SAASD,MAAQL,EACzD,MAAO,CACL,CAAC,iCAAiCK,MAAU,CAC1C,QAASJ,GAGrB,CACM,GAAIC,EACF,OAAI/B,EAAMU,qBAAuBmB,EACxB,UAAUE,EAAKK,QAAQ,KAAMC,OAAOR,MAEtCE,EAAKK,QAAQ,KAAMC,OAAOR,GAEzC,CACI,MAAO,OACX,CAyEE,MAAO,CACLjB,KAAMO,EACNmB,kBA1EwB,KACxB,IAAI1B,EAAO,IACNC,GAOL,OALAU,OAAOC,QAAQJ,GAAiBK,SAAQ,EAAI,EAC1Cb,KAAM2B,OAEN3B,EAAOgB,EAAUhB,EAAM2B,MAElB3B,GAkEP4B,oBAhE0B,KAC1B,MAAMC,EAAc,GACdZ,EAAc7B,EAAMU,oBAAsB,QAChD,SAASgC,EAAiBhB,EAAKZ,GACzBS,OAAOoB,KAAK7B,GAAK8B,QACnBH,EAAYI,KAAoB,iBAARnB,EAAmB,CACzCA,CAACA,GAAM,IACFZ,IAEHY,EAEZ,CACIgB,EAAiBxC,OAAY4C,EAAW,IACnC/B,IACDA,GACJ,MACEc,CAACA,GAAckB,KACZC,GACD5B,EACJ,GAAI2B,EAAkB,CAEpB,MAAMjC,IACJA,GACEiC,EACEE,EAAgBzC,EAAaqB,IAAcM,SAASD,KACpDgB,GAAY9C,GAAyB6C,EAAgB,CACzDpB,YAAaoB,KACVnC,GACD,IACCA,GAEL4B,EAAiBxC,EAAY2B,EAAa,IACrCqB,IACDA,EACV,CAyBI,OAxBA3B,OAAOC,QAAQwB,GAAOvB,SAAQ,EAAEC,GAC9BZ,WAEA,MAAMmC,EAAgBzC,EAAakB,IAAMS,SAASD,KAC5CgB,GAAY9C,GAAyB6C,EAAgB,CACzDpB,YAAaoB,KACVnC,GACD,IACCA,GAEL4B,EAAiBxC,EAAYwB,EAAK,IAC7BwB,IACDA,MAEF3C,GACFkC,EAAYI,KAAK,CACf,QAAS,CAEP,kBAAmB,MACnB,QAAS,0DACT,QAAS,gEAIRJ,GAOX","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- import e from"./defaultSxConfig.js";import{createEmptyBreakpointObject as t,handleBreakpoints as r,removeUnusedBreakpoints as n}from"../breakpoints/breakpoints.js";import o from"../merge/merge.js";import{sortContainerQueries as s}from"../cssContainerQueries/cssContainerQueries.js";import{getPath as i,getStyleValue as f}from"../style/style.js";import u from"../../../utils/esm/capitalize/capitalize.js";function c(){function c(e,t,n,o){const s={[e]:t,theme:n},c=o[e];if(!c)return{[e]:t};const{cssProperty:l=e,themeKey:a,transform:m,style:p}=c;if(null==t)return null;if("typography"===a&&"inherit"===t)return{[e]:t};const y=i(n,a)||{};if(p)return p(s);return r(s,t,(t=>{let r=f(y,m,t);return t===r&&"string"==typeof t&&(r=f(y,m,`${e}${"default"===t?"":u(t)}`,t)),!1===l?r:{[l]:r}}))}return function i(f){const{sx:u,theme:l={}}=f||{};if(!u)return null;const a=l.unstable_sxConfig??e;function m(e){let f=e;if("function"==typeof e)f=e(l);else if("object"!=typeof e)return e;if(!f)return null;const u=t(l.breakpoints),m=Object.keys(u);let p=u;return Object.keys(f).forEach((e=>{const t=(n=f[e],s=l,"function"==typeof n?n(s):n);var n,s;if(null!=t)if("object"==typeof t)if(a[e])p=o(p,c(e,t,l,a));else{const n=r({theme:l},t,(t=>({[e]:t})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(n,t)?p=o(p,n):p[e]=i({sx:t,theme:l})}else p=o(p,c(e,t,l,a))})),s(l,n(m,p))}return Array.isArray(u)?u.map(m):m(u)}}const l=c();l.filterProps=["sx"];export{l as default,c as unstable_createStyleFunctionSx};
1
+ import e from"./defaultSxConfig.js";import{createEmptyBreakpointObject as t,handleBreakpoints as r,removeUnusedBreakpoints as n}from"../breakpoints/breakpoints.js";import s from"../merge/merge.js";import{sortContainerQueries as o}from"../cssContainerQueries/cssContainerQueries.js";import{getPath as i,getStyleValue as f}from"../style/style.js";import u from"../../../utils/esm/capitalize/capitalize.js";function c(){function c(e,t,n,s){const o={[e]:t,theme:n},c=s[e];if(!c)return{[e]:t};const{cssProperty:l=e,themeKey:a,transform:m,style:p}=c;if(null==t)return null;if("typography"===a&&"inherit"===t)return{[e]:t};const y=i(n,a)||{};if(p)return p(o);return r(o,t,(t=>{let r=f(y,m,t);return t===r&&"string"==typeof t&&(r=f(y,m,`${e}${"default"===t?"":u(t)}`,t)),!1===l?r:{[l]:r}}))}return function i(f){const{sx:u,theme:l={},nested:a}=f||{};if(!u)return null;const m=l.unstable_sxConfig??e;function p(e){let f=e;if("function"==typeof e)f=e(l);else if("object"!=typeof e)return e;if(!f)return null;const u=t(l.breakpoints),p=Object.keys(u);let y=u;return Object.keys(f).forEach((e=>{const t=(n=f[e],o=l,"function"==typeof n?n(o):n);var n,o;if(null!=t)if("object"==typeof t)if(m[e])y=s(y,c(e,t,l,m));else{const n=r({theme:l},t,(t=>({[e]:t})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(n,t)?y=s(y,n):y[e]=i({sx:t,theme:l,nested:!0})}else y=s(y,c(e,t,l,m))})),!a&&l.modularCssLayers?{"@layer sx":o(l,n(p,y))}:o(l,n(p,y))}return Array.isArray(u)?u.map(p):p(u)}}const l=c();l.filterProps=["sx"];export{l as default,c as unstable_createStyleFunctionSx};
2
2
  //# sourceMappingURL=styleFunctionSx.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styleFunctionSx.js","sources":["../../../../../../../node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js"],"sourcesContent":["import capitalize from '@mui/utils/capitalize';\nimport merge from \"../merge/index.js\";\nimport { getPath, getStyleValue as getValue } from \"../style/index.js\";\nimport { handleBreakpoints, createEmptyBreakpointObject, removeUnusedBreakpoints } from \"../breakpoints/index.js\";\nimport { sortContainerQueries } from \"../cssContainerQueries/index.js\";\nimport defaultSxConfig from \"./defaultSxConfig.js\";\nfunction objectsHaveSameKeys(...objects) {\n const allKeys = objects.reduce((keys, object) => keys.concat(Object.keys(object)), []);\n const union = new Set(allKeys);\n return objects.every(object => union.size === Object.keys(object).length);\n}\nfunction callIfFn(maybeFn, arg) {\n return typeof maybeFn === 'function' ? maybeFn(arg) : maybeFn;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function unstable_createStyleFunctionSx() {\n function getThemeValue(prop, val, theme, config) {\n const props = {\n [prop]: val,\n theme\n };\n const options = config[prop];\n if (!options) {\n return {\n [prop]: val\n };\n }\n const {\n cssProperty = prop,\n themeKey,\n transform,\n style\n } = options;\n if (val == null) {\n return null;\n }\n\n // TODO v6: remove, see https://github.com/mui/material-ui/pull/38123\n if (themeKey === 'typography' && val === 'inherit') {\n return {\n [prop]: val\n };\n }\n const themeMapping = getPath(theme, themeKey) || {};\n if (style) {\n return style(props);\n }\n const styleFromPropValue = propValueFinal => {\n let value = getValue(themeMapping, transform, propValueFinal);\n if (propValueFinal === value && typeof propValueFinal === 'string') {\n // Haven't found value\n value = getValue(themeMapping, transform, `${prop}${propValueFinal === 'default' ? '' : capitalize(propValueFinal)}`, propValueFinal);\n }\n if (cssProperty === false) {\n return value;\n }\n return {\n [cssProperty]: value\n };\n };\n return handleBreakpoints(props, val, styleFromPropValue);\n }\n function styleFunctionSx(props) {\n const {\n sx,\n theme = {}\n } = props || {};\n if (!sx) {\n return null; // Emotion & styled-components will neglect null\n }\n const config = theme.unstable_sxConfig ?? defaultSxConfig;\n\n /*\n * Receive `sxInput` as object or callback\n * and then recursively check keys & values to create media query object styles.\n * (the result will be used in `styled`)\n */\n function traverse(sxInput) {\n let sxObject = sxInput;\n if (typeof sxInput === 'function') {\n sxObject = sxInput(theme);\n } else if (typeof sxInput !== 'object') {\n // value\n return sxInput;\n }\n if (!sxObject) {\n return null;\n }\n const emptyBreakpoints = createEmptyBreakpointObject(theme.breakpoints);\n const breakpointsKeys = Object.keys(emptyBreakpoints);\n let css = emptyBreakpoints;\n Object.keys(sxObject).forEach(styleKey => {\n const value = callIfFn(sxObject[styleKey], theme);\n if (value !== null && value !== undefined) {\n if (typeof value === 'object') {\n if (config[styleKey]) {\n css = merge(css, getThemeValue(styleKey, value, theme, config));\n } else {\n const breakpointsValues = handleBreakpoints({\n theme\n }, value, x => ({\n [styleKey]: x\n }));\n if (objectsHaveSameKeys(breakpointsValues, value)) {\n css[styleKey] = styleFunctionSx({\n sx: value,\n theme\n });\n } else {\n css = merge(css, breakpointsValues);\n }\n }\n } else {\n css = merge(css, getThemeValue(styleKey, value, theme, config));\n }\n }\n });\n return sortContainerQueries(theme, removeUnusedBreakpoints(breakpointsKeys, css));\n }\n return Array.isArray(sx) ? sx.map(traverse) : traverse(sx);\n }\n return styleFunctionSx;\n}\nconst styleFunctionSx = unstable_createStyleFunctionSx();\nstyleFunctionSx.filterProps = ['sx'];\nexport default styleFunctionSx;"],"names":["unstable_createStyleFunctionSx","getThemeValue","prop","val","theme","config","props","options","cssProperty","themeKey","transform","style","themeMapping","getPath","handleBreakpoints","propValueFinal","value","getValue","capitalize","styleFunctionSx","sx","unstable_sxConfig","defaultSxConfig","traverse","sxInput","sxObject","emptyBreakpoints","createEmptyBreakpointObject","breakpoints","breakpointsKeys","Object","keys","css","forEach","styleKey","maybeFn","arg","merge","breakpointsValues","x","objects","allKeys","reduce","object","concat","union","Set","every","size","length","objectsHaveSameKeys","sortContainerQueries","removeUnusedBreakpoints","Array","isArray","map","filterProps"],"mappings":"oZAgBO,SAASA,IACd,SAASC,EAAcC,EAAMC,EAAKC,EAAOC,GACvC,MAAMC,EAAQ,CACZJ,CAACA,GAAOC,EACRC,SAEIG,EAAUF,EAAOH,GACvB,IAAKK,EACH,MAAO,CACLL,CAACA,GAAOC,GAGZ,MAAMK,YACJA,EAAcN,EAAIO,SAClBA,EAAQC,UACRA,EAASC,MACTA,GACEJ,EACJ,GAAW,MAAPJ,EACF,OAAO,KAIT,GAAiB,eAAbM,GAAqC,YAARN,EAC/B,MAAO,CACLD,CAACA,GAAOC,GAGZ,MAAMS,EAAeC,EAAQT,EAAOK,IAAa,CAAE,EACnD,GAAIE,EACF,OAAOA,EAAML,GAef,OAAOQ,EAAkBR,EAAOH,GAbL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AAMK,EAAML,EAAKM,GALjBN,EAAIE,GAAYf,EAAgB,CAC9BC,GAAIJ,EACJZ,SAKlB,MAEY4B,EAAMK,EAAML,EAAK/B,EAAciC,EAAUlB,EAAOZ,EAAOC,OAItD8C,EAAqB/C,EAAOgD,EAAwBvB,EAAiBG,GAClF,CACI,OAAOqB,MAAMC,QAAQlC,GAAMA,EAAGmC,IAAIhC,GAAYA,EAASH,EAC3D,CAEA,CACK,MAACD,EAAkBnB,IACxBmB,EAAgBqC,YAAc,CAAC","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"styleFunctionSx.js","sources":["../../../../../../../node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js"],"sourcesContent":["import capitalize from '@mui/utils/capitalize';\nimport merge from \"../merge/index.js\";\nimport { getPath, getStyleValue as getValue } from \"../style/index.js\";\nimport { handleBreakpoints, createEmptyBreakpointObject, removeUnusedBreakpoints } from \"../breakpoints/index.js\";\nimport { sortContainerQueries } from \"../cssContainerQueries/index.js\";\nimport defaultSxConfig from \"./defaultSxConfig.js\";\nfunction objectsHaveSameKeys(...objects) {\n const allKeys = objects.reduce((keys, object) => keys.concat(Object.keys(object)), []);\n const union = new Set(allKeys);\n return objects.every(object => union.size === Object.keys(object).length);\n}\nfunction callIfFn(maybeFn, arg) {\n return typeof maybeFn === 'function' ? maybeFn(arg) : maybeFn;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function unstable_createStyleFunctionSx() {\n function getThemeValue(prop, val, theme, config) {\n const props = {\n [prop]: val,\n theme\n };\n const options = config[prop];\n if (!options) {\n return {\n [prop]: val\n };\n }\n const {\n cssProperty = prop,\n themeKey,\n transform,\n style\n } = options;\n if (val == null) {\n return null;\n }\n\n // TODO v6: remove, see https://github.com/mui/material-ui/pull/38123\n if (themeKey === 'typography' && val === 'inherit') {\n return {\n [prop]: val\n };\n }\n const themeMapping = getPath(theme, themeKey) || {};\n if (style) {\n return style(props);\n }\n const styleFromPropValue = propValueFinal => {\n let value = getValue(themeMapping, transform, propValueFinal);\n if (propValueFinal === value && typeof propValueFinal === 'string') {\n // Haven't found value\n value = getValue(themeMapping, transform, `${prop}${propValueFinal === 'default' ? '' : capitalize(propValueFinal)}`, propValueFinal);\n }\n if (cssProperty === false) {\n return value;\n }\n return {\n [cssProperty]: value\n };\n };\n return handleBreakpoints(props, val, styleFromPropValue);\n }\n function styleFunctionSx(props) {\n const {\n sx,\n theme = {},\n nested\n } = props || {};\n if (!sx) {\n return null; // Emotion & styled-components will neglect null\n }\n const config = theme.unstable_sxConfig ?? defaultSxConfig;\n\n /*\n * Receive `sxInput` as object or callback\n * and then recursively check keys & values to create media query object styles.\n * (the result will be used in `styled`)\n */\n function traverse(sxInput) {\n let sxObject = sxInput;\n if (typeof sxInput === 'function') {\n sxObject = sxInput(theme);\n } else if (typeof sxInput !== 'object') {\n // value\n return sxInput;\n }\n if (!sxObject) {\n return null;\n }\n const emptyBreakpoints = createEmptyBreakpointObject(theme.breakpoints);\n const breakpointsKeys = Object.keys(emptyBreakpoints);\n let css = emptyBreakpoints;\n Object.keys(sxObject).forEach(styleKey => {\n const value = callIfFn(sxObject[styleKey], theme);\n if (value !== null && value !== undefined) {\n if (typeof value === 'object') {\n if (config[styleKey]) {\n css = merge(css, getThemeValue(styleKey, value, theme, config));\n } else {\n const breakpointsValues = handleBreakpoints({\n theme\n }, value, x => ({\n [styleKey]: x\n }));\n if (objectsHaveSameKeys(breakpointsValues, value)) {\n css[styleKey] = styleFunctionSx({\n sx: value,\n theme,\n nested: true\n });\n } else {\n css = merge(css, breakpointsValues);\n }\n }\n } else {\n css = merge(css, getThemeValue(styleKey, value, theme, config));\n }\n }\n });\n if (!nested && theme.modularCssLayers) {\n return {\n '@layer sx': sortContainerQueries(theme, removeUnusedBreakpoints(breakpointsKeys, css))\n };\n }\n return sortContainerQueries(theme, removeUnusedBreakpoints(breakpointsKeys, css));\n }\n return Array.isArray(sx) ? sx.map(traverse) : traverse(sx);\n }\n return styleFunctionSx;\n}\nconst styleFunctionSx = unstable_createStyleFunctionSx();\nstyleFunctionSx.filterProps = ['sx'];\nexport default styleFunctionSx;"],"names":["unstable_createStyleFunctionSx","getThemeValue","prop","val","theme","config","props","options","cssProperty","themeKey","transform","style","themeMapping","getPath","handleBreakpoints","propValueFinal","value","getValue","capitalize","styleFunctionSx","sx","nested","unstable_sxConfig","defaultSxConfig","traverse","sxInput","sxObject","emptyBreakpoints","createEmptyBreakpointObject","breakpoints","breakpointsKeys","Object","keys","css","forEach","styleKey","maybeFn","arg","merge","breakpointsValues","x","objects","allKeys","reduce","object","concat","union","Set","every","size","length","objectsHaveSameKeys","modularCssLayers","sortContainerQueries","removeUnusedBreakpoints","Array","isArray","map","filterProps"],"mappings":"oZAgBO,SAASA,IACd,SAASC,EAAcC,EAAMC,EAAKC,EAAOC,GACvC,MAAMC,EAAQ,CACZJ,CAACA,GAAOC,EACRC,SAEIG,EAAUF,EAAOH,GACvB,IAAKK,EACH,MAAO,CACLL,CAACA,GAAOC,GAGZ,MAAMK,YACJA,EAAcN,EAAIO,SAClBA,EAAQC,UACRA,EAASC,MACTA,GACEJ,EACJ,GAAW,MAAPJ,EACF,OAAO,KAIT,GAAiB,eAAbM,GAAqC,YAARN,EAC/B,MAAO,CACLD,CAACA,GAAOC,GAGZ,MAAMS,EAAeC,EAAQT,EAAOK,IAAa,CAAE,EACnD,GAAIE,EACF,OAAOA,EAAML,GAef,OAAOQ,EAAkBR,EAAOH,GAbLY,IACzB,IAAIC,EAAQC,EAASL,EAAcF,EAAWK,GAK9C,OAJIA,IAAmBC,GAAmC,iBAAnBD,IAErCC,EAAQC,EAASL,EAAcF,EAAW,GAAGR,IAA0B,YAAnBa,EAA+B,GAAKG,EAAWH,KAAmBA,KAEpG,IAAhBP,EACKQ,EAEF,CACLR,CAACA,GAAcQ,KAIvB,CAmEE,OAlEA,SAASG,EAAgBb,GACvB,MAAMc,GACJA,EAAEhB,MACFA,EAAQ,CAAE,EAAAiB,OACVA,GACEf,G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QAAQpC,GAAMA,EAAGqC,IAAIjC,GAAYA,EAASJ,EAC3D,CAEA,CACK,MAACD,EAAkBnB,IACxBmB,EAAgBuC,YAAc,CAAC","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- function o(t,s){const e={...s};for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const c=n;if("components"===c||"slots"===c)e[c]={...t[c],...e[c]};else if("componentsProps"===c||"slotProps"===c){const n=t[c],r=s[c];if(r)if(n){e[c]={...r};for(const t in n)if(Object.prototype.hasOwnProperty.call(n,t)){const s=t;e[c][s]=o(n[s],r[s])}}else e[c]=r;else e[c]=n||{}}else void 0===e[c]&&(e[c]=t[c])}return e}export{o as default};
1
+ import{clsx as s}from"../../../../clsx/dist/clsx.js";function e(t,o,l=!1){const c={...o};for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const a=n;if("components"===a||"slots"===a)c[a]={...t[a],...c[a]};else if("componentsProps"===a||"slotProps"===a){const s=t[a],n=o[a];if(n)if(s){c[a]={...n};for(const t in s)if(Object.prototype.hasOwnProperty.call(s,t)){const o=t;c[a][o]=e(s[o],n[o],l)}}else c[a]=n;else c[a]=s||{}}else"className"===a&&l&&o.className?c.className=s(t?.className,o?.className):"style"===a&&l&&o.style?c.style={...t?.style,...o?.style}:void 0===c[a]&&(c[a]=t[a])}return c}export{e as default};
2
2
  //# sourceMappingURL=resolveProps.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"resolveProps.js","sources":["../../../../../../../node_modules/@mui/utils/esm/resolveProps/resolveProps.js"],"sourcesContent":["/**\n * Add keys, values of `defaultProps` that does not exist in `props`\n * @param defaultProps\n * @param props\n * @returns resolved props\n */\nexport default function resolveProps(defaultProps, props) {\n const output = {\n ...props\n };\n for (const key in defaultProps) {\n if (Object.prototype.hasOwnProperty.call(defaultProps, key)) {\n const propName = key;\n if (propName === 'components' || propName === 'slots') {\n output[propName] = {\n ...defaultProps[propName],\n ...output[propName]\n };\n } else if (propName === 'componentsProps' || propName === 'slotProps') {\n const defaultSlotProps = defaultProps[propName];\n const slotProps = props[propName];\n if (!slotProps) {\n output[propName] = defaultSlotProps || {};\n } else if (!defaultSlotProps) {\n output[propName] = slotProps;\n } else {\n output[propName] = {\n ...slotProps\n };\n for (const slotKey in defaultSlotProps) {\n if (Object.prototype.hasOwnProperty.call(defaultSlotProps, slotKey)) {\n const slotPropName = slotKey;\n output[propName][slotPropName] = resolveProps(defaultSlotProps[slotPropName], slotProps[slotPropName]);\n }\n }\n }\n } else if (output[propName] === undefined) {\n output[propName] = defaultProps[propName];\n }\n }\n }\n return output;\n}"],"names":["resolveProps","defaultProps","props","output","key","Object","prototype","hasOwnProperty","call","propName","defaultSlotProps","slotProps","slotKey","slotPropName","undefined"],"mappings":"AAMe,SAASA,EAAaC,EAAcC,GACjD,MAAMC,EAAS,IACVD,GAEL,IAAK,MAAME,KAAOH,EAChB,GAAII,OAAOC,UAAUC,eAAeC,KAAKP,EAAcG,GAAM,CAC3D,MAAMK,EAAWL,EACjB,GAAiB,eAAbK,GAA0C,UAAbA,EAC/BN,EAAOM,GAAY,IACdR,EAAaQ,MACbN,EAAOM,SAEP,GAAiB,oBAAbA,GAA+C,cAAbA,EAA0B,CACrE,MAAMC,EAAmBT,EAAaQ,GAChCE,EAAYT,EAAMO,GACxB,GAAKE,EAEE,GAAKD,EAEL,CACLP,EAAOM,GAAY,IACdE,GAEL,IAAK,MAAMC,KAAWF,EACpB,GAAIL,OAAOC,UAAUC,eAAeC,KAAKE,EAAkBE,GAAU,CACnE,MAAMC,EAAeD,EACrBT,EAAOM,GAAUI,GAAgBb,EAAaU,EAAiBG,GAAeF,EAAUE,GACtG,CAEA,MAXUV,EAAOM,GAAYE,OAFnBR,EAAOM,GAAYC,GAAoB,CAAE,CAc5C,WAA+BI,IAArBX,EAAOM,KAChBN,EAAOM,GAAYR,EAAaQ,GAExC,CAEE,OAAON,CACT","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"resolveProps.js","sources":["../../../../../../../node_modules/@mui/utils/esm/resolveProps/resolveProps.js"],"sourcesContent":["import clsx from 'clsx';\n\n/**\n * Add keys, values of `defaultProps` that does not exist in `props`\n * @param defaultProps\n * @param props\n * @param mergeClassNameAndStyle If `true`, merges `className` and `style` props instead of overriding them.\n * When `false` (default), props override defaultProps. When `true`, `className` values are concatenated\n * and `style` objects are merged with props taking precedence.\n * @returns resolved props\n */\nexport default function resolveProps(defaultProps, props, mergeClassNameAndStyle = false) {\n const output = {\n ...props\n };\n for (const key in defaultProps) {\n if (Object.prototype.hasOwnProperty.call(defaultProps, key)) {\n const propName = key;\n if (propName === 'components' || propName === 'slots') {\n output[propName] = {\n ...defaultProps[propName],\n ...output[propName]\n };\n } else if (propName === 'componentsProps' || propName === 'slotProps') {\n const defaultSlotProps = defaultProps[propName];\n const slotProps = props[propName];\n if (!slotProps) {\n output[propName] = defaultSlotProps || {};\n } else if (!defaultSlotProps) {\n output[propName] = slotProps;\n } else {\n output[propName] = {\n ...slotProps\n };\n for (const slotKey in defaultSlotProps) {\n if (Object.prototype.hasOwnProperty.call(defaultSlotProps, slotKey)) {\n const slotPropName = slotKey;\n output[propName][slotPropName] = resolveProps(defaultSlotProps[slotPropName], slotProps[slotPropName], mergeClassNameAndStyle);\n }\n }\n }\n } else if (propName === 'className' && mergeClassNameAndStyle && props.className) {\n output.className = clsx(defaultProps?.className, props?.className);\n } else if (propName === 'style' && mergeClassNameAndStyle && props.style) {\n output.style = {\n ...defaultProps?.style,\n ...props?.style\n };\n } else if (output[propName] === undefined) {\n output[propName] = defaultProps[propName];\n }\n }\n }\n return output;\n}"],"names":["resolveProps","defaultProps","props","mergeClassNameAndStyle","output","key","Object","prototype","hasOwnProperty","call","propName","defaultSlotProps","slotProps","slotKey","slotPropName","className","clsx","style","undefined"],"mappings":"qDAWe,SAASA,EAAaC,EAAcC,EAAOC,GAAyB,GACjF,MAAMC,EAAS,IACVF,GAEL,IAAK,MAAMG,KAAOJ,EAChB,GAAIK,OAAOC,UAAUC,eAAeC,KAAKR,EAAcI,GAAM,CAC3D,MAAMK,EAAWL,EACjB,GAAiB,eAAbK,GAA0C,UAAbA,EAC/BN,EAAOM,GAAY,IACdT,EAAaS,MACbN,EAAOM,SAEP,GAAiB,oBAAbA,GAA+C,cAAbA,EAA0B,CACrE,MAAMC,EAAmBV,EAAaS,GAChCE,EAAYV,EAAMQ,GACxB,GAAKE,EAEE,GAAKD,EAEL,CACLP,EAAOM,GAAY,IACdE,GAEL,IAAK,MAAMC,KAAWF,EACpB,GAAIL,OAAOC,UAAUC,eAAeC,KAAKE,EAAkBE,GAAU,CACnE,MAAMC,EAAeD,EACrBT,EAAOM,GAAUI,GAAgBd,EAAaW,EAAiBG,GAAeF,EAAUE,GAAeX,EACrH,CAEA,MAXUC,EAAOM,GAAYE,OAFnBR,EAAOM,GAAYC,GAAoB,CAAE,CAc5C,KAAuB,cAAbD,GAA4BP,GAA0BD,EAAMa,UACrEX,EAAOW,UAAYC,EAAKf,GAAcc,UAAWb,GAAOa,WAClC,UAAbL,GAAwBP,GAA0BD,EAAMe,MACjEb,EAAOa,MAAQ,IACVhB,GAAcgB,SACdf,GAAOe,YAEkBC,IAArBd,EAAOM,KAChBN,EAAOM,GAAYT,EAAaS,GAExC,CAEE,OAAON,CACT","x_google_ignoreList":[0]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soyfri/shared-library",
3
- "version": "1.1.12",
3
+ "version": "1.1.13",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -12,6 +12,7 @@
12
12
  "@emotion/react": "^11.14.0",
13
13
  "@emotion/styled": "^11.14.0",
14
14
  "@mui/icons-material": "^7.1.0",
15
+ "@mui/lab": "^7.0.0-beta.16",
15
16
  "@mui/material": "^7.1.2",
16
17
  "@mui/x-date-pickers": "^8.5.3",
17
18
  "@mui/x-date-pickers-pro": "^8.5.3",
@@ -33,6 +34,11 @@
33
34
  "types": "./esm/index.d.ts"
34
35
  },
35
36
  "./package.json": "./package.json",
37
+ "./components/timeline": {
38
+ "import": "./esm/components/timeline.js",
39
+ "require": "./cjs/components/timeline.cjs",
40
+ "types": "./esm/components/timeline/timeline.d.ts"
41
+ },
36
42
  "./components/Table": {
37
43
  "import": "./esm/components/Table.js",
38
44
  "require": "./cjs/components/Table.cjs",