@soyfri/shared-library 1.1.12 → 1.1.14

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 (234) hide show
  1. package/cjs/components/DatePicker/DatePicker.cjs +1 -1
  2. package/cjs/components/DateTimePicker/DateTimePicker.cjs +1 -1
  3. package/cjs/components/Flyout/Flyout.cjs +2 -0
  4. package/cjs/components/Flyout/Flyout.cjs.map +1 -0
  5. package/cjs/components/Flyout.cjs +2 -0
  6. package/cjs/components/Flyout.cjs.map +1 -0
  7. package/cjs/components/Input/Input.cjs +1 -1
  8. package/cjs/components/InputGroup/InputGroup.cjs +2 -0
  9. package/cjs/components/InputGroup/InputGroup.cjs.map +1 -0
  10. package/cjs/components/InputGroup.cjs +2 -0
  11. package/cjs/components/InputGroup.cjs.map +1 -0
  12. package/cjs/components/Select/Select.cjs +1 -1
  13. package/cjs/components/Table/Table.cjs +1 -1
  14. package/cjs/components/timeline/Timeline.cjs +2 -0
  15. package/cjs/components/timeline/Timeline.cjs.map +1 -0
  16. package/cjs/components/timeline/TimelineItem.cjs +2 -0
  17. package/cjs/components/timeline/TimelineItem.cjs.map +1 -0
  18. package/cjs/components/timeline.cjs +2 -0
  19. package/cjs/components/timeline.cjs.map +1 -0
  20. package/cjs/node_modules/@mui/icons-material/esm/Check.cjs +2 -0
  21. package/cjs/node_modules/@mui/icons-material/esm/Check.cjs.map +1 -0
  22. package/cjs/node_modules/@mui/icons-material/esm/Close.cjs +2 -0
  23. package/cjs/node_modules/@mui/icons-material/esm/Close.cjs.map +1 -0
  24. package/cjs/node_modules/@mui/lab/esm/Timeline/Timeline.cjs +2 -0
  25. package/cjs/node_modules/@mui/lab/esm/Timeline/Timeline.cjs.map +1 -0
  26. package/cjs/node_modules/@mui/lab/esm/Timeline/TimelineContext.cjs +2 -0
  27. package/cjs/node_modules/@mui/lab/esm/Timeline/TimelineContext.cjs.map +1 -0
  28. package/cjs/node_modules/@mui/lab/esm/Timeline/timelineClasses.cjs +2 -0
  29. package/cjs/node_modules/@mui/lab/esm/Timeline/timelineClasses.cjs.map +1 -0
  30. package/cjs/node_modules/@mui/lab/esm/TimelineConnector/TimelineConnector.cjs +2 -0
  31. package/cjs/node_modules/@mui/lab/esm/TimelineConnector/TimelineConnector.cjs.map +1 -0
  32. package/cjs/node_modules/@mui/lab/esm/TimelineConnector/timelineConnectorClasses.cjs +2 -0
  33. package/cjs/node_modules/@mui/lab/esm/TimelineConnector/timelineConnectorClasses.cjs.map +1 -0
  34. package/cjs/node_modules/@mui/lab/esm/TimelineContent/TimelineContent.cjs +2 -0
  35. package/cjs/node_modules/@mui/lab/esm/TimelineContent/TimelineContent.cjs.map +1 -0
  36. package/cjs/node_modules/@mui/lab/esm/TimelineContent/timelineContentClasses.cjs +2 -0
  37. package/cjs/node_modules/@mui/lab/esm/TimelineContent/timelineContentClasses.cjs.map +1 -0
  38. package/cjs/node_modules/@mui/lab/esm/TimelineDot/TimelineDot.cjs +2 -0
  39. package/cjs/node_modules/@mui/lab/esm/TimelineDot/TimelineDot.cjs.map +1 -0
  40. package/cjs/node_modules/@mui/lab/esm/TimelineDot/timelineDotClasses.cjs +2 -0
  41. package/cjs/node_modules/@mui/lab/esm/TimelineDot/timelineDotClasses.cjs.map +1 -0
  42. package/cjs/node_modules/@mui/lab/esm/TimelineItem/TimelineItem.cjs +2 -0
  43. package/cjs/node_modules/@mui/lab/esm/TimelineItem/TimelineItem.cjs.map +1 -0
  44. package/cjs/node_modules/@mui/lab/esm/TimelineItem/timelineItemClasses.cjs +2 -0
  45. package/cjs/node_modules/@mui/lab/esm/TimelineItem/timelineItemClasses.cjs.map +1 -0
  46. package/cjs/node_modules/@mui/lab/esm/TimelineOppositeContent/timelineOppositeContentClasses.cjs +2 -0
  47. package/cjs/node_modules/@mui/lab/esm/TimelineOppositeContent/timelineOppositeContentClasses.cjs.map +1 -0
  48. package/cjs/node_modules/@mui/lab/esm/TimelineSeparator/TimelineSeparator.cjs +2 -0
  49. package/cjs/node_modules/@mui/lab/esm/TimelineSeparator/TimelineSeparator.cjs.map +1 -0
  50. package/cjs/node_modules/@mui/lab/esm/TimelineSeparator/timelineSeparatorClasses.cjs +2 -0
  51. package/cjs/node_modules/@mui/lab/esm/TimelineSeparator/timelineSeparatorClasses.cjs.map +1 -0
  52. package/cjs/node_modules/@mui/lab/esm/internal/convertTimelinePositionToClass.cjs +2 -0
  53. package/cjs/node_modules/@mui/lab/esm/internal/convertTimelinePositionToClass.cjs.map +1 -0
  54. package/cjs/node_modules/@mui/material/esm/Alert/Alert.cjs +1 -1
  55. package/cjs/node_modules/@mui/material/esm/Alert/Alert.cjs.map +1 -1
  56. package/cjs/node_modules/@mui/material/esm/Backdrop/Backdrop.cjs +1 -1
  57. package/cjs/node_modules/@mui/material/esm/Backdrop/Backdrop.cjs.map +1 -1
  58. package/cjs/node_modules/@mui/material/esm/Button/Button.cjs +1 -1
  59. package/cjs/node_modules/@mui/material/esm/Button/Button.cjs.map +1 -1
  60. package/cjs/node_modules/@mui/material/esm/Chip/Chip.cjs +1 -1
  61. package/cjs/node_modules/@mui/material/esm/Chip/Chip.cjs.map +1 -1
  62. package/cjs/node_modules/@mui/material/esm/Divider/Divider.cjs +1 -1
  63. package/cjs/node_modules/@mui/material/esm/Divider/Divider.cjs.map +1 -1
  64. package/cjs/node_modules/@mui/material/esm/FilledInput/FilledInput.cjs +1 -1
  65. package/cjs/node_modules/@mui/material/esm/FilledInput/FilledInput.cjs.map +1 -1
  66. package/cjs/node_modules/@mui/material/esm/IconButton/IconButton.cjs +1 -1
  67. package/cjs/node_modules/@mui/material/esm/IconButton/IconButton.cjs.map +1 -1
  68. package/cjs/node_modules/@mui/material/esm/Input/Input.cjs +1 -1
  69. package/cjs/node_modules/@mui/material/esm/Input/Input.cjs.map +1 -1
  70. package/cjs/node_modules/@mui/material/esm/MenuItem/MenuItem.cjs +1 -1
  71. package/cjs/node_modules/@mui/material/esm/MenuItem/MenuItem.cjs.map +1 -1
  72. package/cjs/node_modules/@mui/material/esm/NativeSelect/NativeSelectInput.cjs +1 -1
  73. package/cjs/node_modules/@mui/material/esm/NativeSelect/NativeSelectInput.cjs.map +1 -1
  74. package/cjs/node_modules/@mui/material/esm/OutlinedInput/NotchedOutline.cjs +1 -1
  75. package/cjs/node_modules/@mui/material/esm/OutlinedInput/NotchedOutline.cjs.map +1 -1
  76. package/cjs/node_modules/@mui/material/esm/OutlinedInput/OutlinedInput.cjs +1 -1
  77. package/cjs/node_modules/@mui/material/esm/OutlinedInput/OutlinedInput.cjs.map +1 -1
  78. package/cjs/node_modules/@mui/material/esm/Paper/Paper.cjs +1 -1
  79. package/cjs/node_modules/@mui/material/esm/Select/SelectInput.cjs +1 -1
  80. package/cjs/node_modules/@mui/material/esm/Select/SelectInput.cjs.map +1 -1
  81. package/cjs/node_modules/@mui/material/esm/styles/createColorScheme.cjs +1 -1
  82. package/cjs/node_modules/@mui/material/esm/styles/createColorScheme.cjs.map +1 -1
  83. package/cjs/node_modules/@mui/material/esm/styles/createPalette.cjs +1 -1
  84. package/cjs/node_modules/@mui/material/esm/styles/createPalette.cjs.map +1 -1
  85. package/cjs/node_modules/@mui/material/esm/styles/createThemeNoVars.cjs +1 -1
  86. package/cjs/node_modules/@mui/material/esm/styles/createThemeNoVars.cjs.map +1 -1
  87. package/cjs/node_modules/@mui/material/esm/styles/createThemeWithVars.cjs +1 -1
  88. package/cjs/node_modules/@mui/material/esm/styles/createThemeWithVars.cjs.map +1 -1
  89. package/cjs/node_modules/@mui/material/esm/styles/shouldSkipGeneratingVar.cjs +1 -1
  90. package/cjs/node_modules/@mui/material/esm/styles/shouldSkipGeneratingVar.cjs.map +1 -1
  91. package/cjs/node_modules/@mui/styled-engine/esm/index.cjs +1 -1
  92. package/cjs/node_modules/@mui/styled-engine/esm/index.cjs.map +1 -1
  93. package/cjs/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.cjs +1 -1
  94. package/cjs/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.cjs.map +1 -1
  95. package/cjs/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.cjs +1 -1
  96. package/cjs/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.cjs.map +1 -1
  97. package/cjs/node_modules/@mui/system/esm/colorManipulator/colorManipulator.cjs +1 -1
  98. package/cjs/node_modules/@mui/system/esm/colorManipulator/colorManipulator.cjs.map +1 -1
  99. package/cjs/node_modules/@mui/system/esm/createStyled/createStyled.cjs +1 -1
  100. package/cjs/node_modules/@mui/system/esm/createStyled/createStyled.cjs.map +1 -1
  101. package/cjs/node_modules/@mui/system/esm/cssVars/prepareCssVars.cjs +1 -1
  102. package/cjs/node_modules/@mui/system/esm/cssVars/prepareCssVars.cjs.map +1 -1
  103. package/cjs/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.cjs +1 -1
  104. package/cjs/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.cjs.map +1 -1
  105. package/cjs/node_modules/@mui/system/esm/styled/styled.cjs +2 -0
  106. package/cjs/node_modules/@mui/system/esm/styled/styled.cjs.map +1 -0
  107. package/cjs/node_modules/@mui/utils/esm/resolveProps/resolveProps.cjs +1 -1
  108. package/cjs/node_modules/@mui/utils/esm/resolveProps/resolveProps.cjs.map +1 -1
  109. package/components/Flyout/index.ts +1 -0
  110. package/components/InputGroup/index.ts +1 -0
  111. package/components/timeline/index.ts +1 -0
  112. package/esm/components/DatePicker/DatePicker.js +1 -1
  113. package/esm/components/DateTimePicker/DateTimePicker.d.ts +1 -0
  114. package/esm/components/DateTimePicker/DateTimePicker.js +1 -1
  115. package/esm/components/Flyout/Flyout.d.ts +13 -0
  116. package/esm/components/Flyout/Flyout.js +2 -0
  117. package/esm/components/Flyout/Flyout.js.map +1 -0
  118. package/esm/components/Flyout/Flyout.stories.d.ts +12 -0
  119. package/esm/components/Flyout/index.d.ts +1 -0
  120. package/esm/components/Flyout.js +2 -0
  121. package/esm/components/Flyout.js.map +1 -0
  122. package/esm/components/Input/Input.d.ts +0 -7
  123. package/esm/components/Input/Input.js +1 -1
  124. package/esm/components/Input/Input.stories.d.ts +1 -0
  125. package/esm/components/InputGroup/InputGroup.d.ts +6 -0
  126. package/esm/components/InputGroup/InputGroup.js +2 -0
  127. package/esm/components/InputGroup/InputGroup.js.map +1 -0
  128. package/esm/components/InputGroup/InputGroup.stories.d.ts +8 -0
  129. package/esm/components/InputGroup/index.d.ts +1 -0
  130. package/esm/components/InputGroup.js +2 -0
  131. package/esm/components/InputGroup.js.map +1 -0
  132. package/esm/components/Select/Select.js +1 -1
  133. package/esm/components/Table/Table.js +1 -1
  134. package/esm/components/timeline/Timeline.d.ts +11 -0
  135. package/esm/components/timeline/Timeline.definition.d.ts +1 -0
  136. package/esm/components/timeline/Timeline.js +2 -0
  137. package/esm/components/timeline/Timeline.js.map +1 -0
  138. package/esm/components/timeline/Timeline.stories.d.ts +6 -0
  139. package/esm/components/timeline/TimelineItem.d.ts +7 -0
  140. package/esm/components/timeline/TimelineItem.js +2 -0
  141. package/esm/components/timeline/TimelineItem.js.map +1 -0
  142. package/esm/components/timeline/index.d.ts +2 -0
  143. package/esm/components/timeline.js +2 -0
  144. package/esm/components/timeline.js.map +1 -0
  145. package/esm/node_modules/@mui/icons-material/esm/Check.js +2 -0
  146. package/esm/node_modules/@mui/icons-material/esm/Check.js.map +1 -0
  147. package/esm/node_modules/@mui/icons-material/esm/Close.js +2 -0
  148. package/esm/node_modules/@mui/icons-material/esm/Close.js.map +1 -0
  149. package/esm/node_modules/@mui/lab/esm/Timeline/Timeline.js +2 -0
  150. package/esm/node_modules/@mui/lab/esm/Timeline/Timeline.js.map +1 -0
  151. package/esm/node_modules/@mui/lab/esm/Timeline/TimelineContext.js +2 -0
  152. package/esm/node_modules/@mui/lab/esm/Timeline/TimelineContext.js.map +1 -0
  153. package/esm/node_modules/@mui/lab/esm/Timeline/timelineClasses.js +2 -0
  154. package/esm/node_modules/@mui/lab/esm/Timeline/timelineClasses.js.map +1 -0
  155. package/esm/node_modules/@mui/lab/esm/TimelineConnector/TimelineConnector.js +2 -0
  156. package/esm/node_modules/@mui/lab/esm/TimelineConnector/TimelineConnector.js.map +1 -0
  157. package/esm/node_modules/@mui/lab/esm/TimelineConnector/timelineConnectorClasses.js +2 -0
  158. package/esm/node_modules/@mui/lab/esm/TimelineConnector/timelineConnectorClasses.js.map +1 -0
  159. package/esm/node_modules/@mui/lab/esm/TimelineContent/TimelineContent.js +2 -0
  160. package/esm/node_modules/@mui/lab/esm/TimelineContent/TimelineContent.js.map +1 -0
  161. package/esm/node_modules/@mui/lab/esm/TimelineContent/timelineContentClasses.js +2 -0
  162. package/esm/node_modules/@mui/lab/esm/TimelineContent/timelineContentClasses.js.map +1 -0
  163. package/esm/node_modules/@mui/lab/esm/TimelineDot/TimelineDot.js +2 -0
  164. package/esm/node_modules/@mui/lab/esm/TimelineDot/TimelineDot.js.map +1 -0
  165. package/esm/node_modules/@mui/lab/esm/TimelineDot/timelineDotClasses.js +2 -0
  166. package/esm/node_modules/@mui/lab/esm/TimelineDot/timelineDotClasses.js.map +1 -0
  167. package/esm/node_modules/@mui/lab/esm/TimelineItem/TimelineItem.js +2 -0
  168. package/esm/node_modules/@mui/lab/esm/TimelineItem/TimelineItem.js.map +1 -0
  169. package/esm/node_modules/@mui/lab/esm/TimelineItem/timelineItemClasses.js +2 -0
  170. package/esm/node_modules/@mui/lab/esm/TimelineItem/timelineItemClasses.js.map +1 -0
  171. package/esm/node_modules/@mui/lab/esm/TimelineOppositeContent/timelineOppositeContentClasses.js +2 -0
  172. package/esm/node_modules/@mui/lab/esm/TimelineOppositeContent/timelineOppositeContentClasses.js.map +1 -0
  173. package/esm/node_modules/@mui/lab/esm/TimelineSeparator/TimelineSeparator.js +2 -0
  174. package/esm/node_modules/@mui/lab/esm/TimelineSeparator/TimelineSeparator.js.map +1 -0
  175. package/esm/node_modules/@mui/lab/esm/TimelineSeparator/timelineSeparatorClasses.js +2 -0
  176. package/esm/node_modules/@mui/lab/esm/TimelineSeparator/timelineSeparatorClasses.js.map +1 -0
  177. package/esm/node_modules/@mui/lab/esm/internal/convertTimelinePositionToClass.js +2 -0
  178. package/esm/node_modules/@mui/lab/esm/internal/convertTimelinePositionToClass.js.map +1 -0
  179. package/esm/node_modules/@mui/material/esm/Alert/Alert.js +1 -1
  180. package/esm/node_modules/@mui/material/esm/Alert/Alert.js.map +1 -1
  181. package/esm/node_modules/@mui/material/esm/Backdrop/Backdrop.js +1 -1
  182. package/esm/node_modules/@mui/material/esm/Backdrop/Backdrop.js.map +1 -1
  183. package/esm/node_modules/@mui/material/esm/Button/Button.js +1 -1
  184. package/esm/node_modules/@mui/material/esm/Button/Button.js.map +1 -1
  185. package/esm/node_modules/@mui/material/esm/Chip/Chip.js +1 -1
  186. package/esm/node_modules/@mui/material/esm/Chip/Chip.js.map +1 -1
  187. package/esm/node_modules/@mui/material/esm/Divider/Divider.js +1 -1
  188. package/esm/node_modules/@mui/material/esm/Divider/Divider.js.map +1 -1
  189. package/esm/node_modules/@mui/material/esm/FilledInput/FilledInput.js +1 -1
  190. package/esm/node_modules/@mui/material/esm/FilledInput/FilledInput.js.map +1 -1
  191. package/esm/node_modules/@mui/material/esm/IconButton/IconButton.js +1 -1
  192. package/esm/node_modules/@mui/material/esm/IconButton/IconButton.js.map +1 -1
  193. package/esm/node_modules/@mui/material/esm/Input/Input.js +1 -1
  194. package/esm/node_modules/@mui/material/esm/Input/Input.js.map +1 -1
  195. package/esm/node_modules/@mui/material/esm/MenuItem/MenuItem.js +1 -1
  196. package/esm/node_modules/@mui/material/esm/MenuItem/MenuItem.js.map +1 -1
  197. package/esm/node_modules/@mui/material/esm/NativeSelect/NativeSelectInput.js +1 -1
  198. package/esm/node_modules/@mui/material/esm/NativeSelect/NativeSelectInput.js.map +1 -1
  199. package/esm/node_modules/@mui/material/esm/OutlinedInput/NotchedOutline.js +1 -1
  200. package/esm/node_modules/@mui/material/esm/OutlinedInput/NotchedOutline.js.map +1 -1
  201. package/esm/node_modules/@mui/material/esm/OutlinedInput/OutlinedInput.js +1 -1
  202. package/esm/node_modules/@mui/material/esm/OutlinedInput/OutlinedInput.js.map +1 -1
  203. package/esm/node_modules/@mui/material/esm/Paper/Paper.js +1 -1
  204. package/esm/node_modules/@mui/material/esm/Select/SelectInput.js +1 -1
  205. package/esm/node_modules/@mui/material/esm/Select/SelectInput.js.map +1 -1
  206. package/esm/node_modules/@mui/material/esm/styles/createColorScheme.js +1 -1
  207. package/esm/node_modules/@mui/material/esm/styles/createColorScheme.js.map +1 -1
  208. package/esm/node_modules/@mui/material/esm/styles/createPalette.js +1 -1
  209. package/esm/node_modules/@mui/material/esm/styles/createPalette.js.map +1 -1
  210. package/esm/node_modules/@mui/material/esm/styles/createThemeNoVars.js +1 -1
  211. package/esm/node_modules/@mui/material/esm/styles/createThemeNoVars.js.map +1 -1
  212. package/esm/node_modules/@mui/material/esm/styles/createThemeWithVars.js +1 -1
  213. package/esm/node_modules/@mui/material/esm/styles/createThemeWithVars.js.map +1 -1
  214. package/esm/node_modules/@mui/material/esm/styles/shouldSkipGeneratingVar.js +1 -1
  215. package/esm/node_modules/@mui/material/esm/styles/shouldSkipGeneratingVar.js.map +1 -1
  216. package/esm/node_modules/@mui/styled-engine/esm/index.js +1 -1
  217. package/esm/node_modules/@mui/styled-engine/esm/index.js.map +1 -1
  218. package/esm/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.js +1 -1
  219. package/esm/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.js.map +1 -1
  220. package/esm/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js +1 -1
  221. package/esm/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js.map +1 -1
  222. package/esm/node_modules/@mui/system/esm/colorManipulator/colorManipulator.js +1 -1
  223. package/esm/node_modules/@mui/system/esm/colorManipulator/colorManipulator.js.map +1 -1
  224. package/esm/node_modules/@mui/system/esm/createStyled/createStyled.js +1 -1
  225. package/esm/node_modules/@mui/system/esm/createStyled/createStyled.js.map +1 -1
  226. package/esm/node_modules/@mui/system/esm/cssVars/prepareCssVars.js +1 -1
  227. package/esm/node_modules/@mui/system/esm/cssVars/prepareCssVars.js.map +1 -1
  228. package/esm/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js +1 -1
  229. package/esm/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js.map +1 -1
  230. package/esm/node_modules/@mui/system/esm/styled/styled.js +2 -0
  231. package/esm/node_modules/@mui/system/esm/styled/styled.js.map +1 -0
  232. package/esm/node_modules/@mui/utils/esm/resolveProps/resolveProps.js +1 -1
  233. package/esm/node_modules/@mui/utils/esm/resolveProps/resolveProps.js.map +1 -1
  234. package/package.json +17 -1
@@ -1 +1 @@
1
- {"version":3,"file":"createStyled.cjs","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","generateStyledLabel","componentName","componentSlot","label","process","env","NODE_ENV","lowercaseFirstLetter","string","charAt","toLowerCase","slice","input","themeId","defaultTheme","rootShouldForwardProp","slotShouldForwardProp","styleAttachTheme","theme","object","_","isObjectEmpty","attachTheme","tag","inputOptions","mutateStyles","filter","styleFunctionSx","name","skipVariantsResolver","inputSkipVariantsResolver","skipSx","inputSkipSx","overridesResolver","options","undefined","shouldForwardPropOption","charCodeAt","isStringTag","defaultStyledResolver","styledEngineStyled","default","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","displayName","capitalize","getDisplayName","generateDisplayName","withConfig"],"mappings":"mbAYY,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,CACI,OAAOC,EAAqBX,EAAOE,EAAcK,SAAU,CAACC,GAChE,CACE,OAAIN,GAAeO,YACVP,EAAcD,MAEhBC,CACT,CACA,SAASS,EAAqBX,EAAOO,EAAUK,EAAU,IACvD,IAAIC,EAEJC,EAAa,IAAK,IAAIC,EAAI,EAAGA,EAAIR,EAASS,OAAQD,GAAK,EAAG,CACxD,MAAME,EAAUV,EAASQ,GACzB,GAA6B,mBAAlBE,EAAQjB,OAMjB,GALAa,IAAgB,IACXb,KACAA,EAAMkB,WACTA,WAAYlB,EAAMkB,aAEfD,EAAQjB,MAAMa,GACjB,cAGF,IAAK,MAAMM,KAAOF,EAAQjB,MACxB,GAAIA,EAAMmB,KAASF,EAAQjB,MAAMmB,IAAQnB,EAAMkB,aAAaC,KAASF,EAAQjB,MAAMmB,GACjF,SAASL,EAIc,mBAAlBG,EAAQhB,OACjBY,IAAgB,IACXb,KACAA,EAAMkB,WACTA,WAAYlB,EAAMkB,YAEpBN,EAAQQ,KAAKH,EAAQhB,MAAMY,KAE3BD,EAAQQ,KAAKH,EAAQhB,MAE3B,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,GAC1DC,EAAcC,IAAM,IAAIJ,KAAqBF,EAAaM,OAAQF,GAIpEb,EAAgBgB,QAAQF,EAChC,CACM,MAAMG,EAAc,IAAIjB,KAAoBC,KAAoBE,GAC1De,EAAY5B,KAAyB2B,GAO3C,OANI3C,EAAI6C,UACND,EAAUC,QAAU7C,EAAI6C,SAEG,eAAzBhE,QAAQC,IAAIC,WACd6D,EAAUE,YAWlB,SAA6BpE,EAAeC,EAAeqB,GACzD,GAAItB,EACF,MAAO,GAAGA,IAAgBqE,EAAWpE,GAAiB,MAExD,MAAO,UAAUqE,EAAehD,KAClC,CAhBgCiD,CAAoBvE,EAAeC,EAAeqB,IAErE4C,GAKT,OAHI5B,EAAsBkC,aACxB1B,EAAkB0B,WAAalC,EAAsBkC,YAEhD1B,EAGX","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"createStyled.cjs","sources":["../../../../../../../node_modules/@mui/system/esm/createStyled/createStyled.js"],"sourcesContent":["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","internal_serializeStyles","generateStyledLabel","componentName","componentSlot","label","process","env","NODE_ENV","lowercaseFirstLetter","string","charAt","toLowerCase","slice","input","themeId","defaultTheme","rootShouldForwardProp","slotShouldForwardProp","styleAttachTheme","theme","object","_","isObjectEmpty","attachTheme","tag","inputOptions","mutateStyles","filter","styleFunctionSx","name","skipVariantsResolver","inputSkipVariantsResolver","skipSx","inputSkipSx","overridesResolver","options","shouldForwardPropOption","charCodeAt","isStringTag","defaultStyledResolver","styledEngineStyled","default","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","displayName","capitalize","getDisplayName","generateDisplayName","withConfig"],"mappings":"mbAYY,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,MAAM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iBAAmB,aAAUrD,GAFtF,IAGnB,IAEWyC,GACHoB,EAAgBrD,KAAK6B,WAKnBhD,MAAMC,QAAQqE,EAAgB,IAAK,CACrC,MAAMQ,EAAeR,EAAgBS,QAI/BC,EAAmB,IAAIhF,MAAMqE,EAAgBtD,QAAQkE,KAAK,IAC1DC,EAAmB,IAAIlF,MAAMwE,EAAgBzD,QAAQkE,KAAK,IAChE,IAAIE,EAGFA,EAAgB,IAAIH,KAAqBF,KAAiBI,GAC1DC,EAAcC,IAAM,IAAIJ,KAAqBF,EAAaM,OAAQF,GAIpEb,EAAgBgB,QAAQF,EAChC,CACM,MAAMG,EAAc,IAAIjB,KAAoBC,KAAoBE,GAC1De,EAAY5B,KAAyB2B,GAO3C,OANI1C,EAAI4C,UACND,EAAUC,QAAU5C,EAAI4C,SAEG,eAAzB/D,QAAQC,IAAIC,WACd4D,EAAUE,YAWlB,SAA6BnE,EAAeC,EAAeqB,GACzD,GAAItB,EACF,MAAO,GAAGA,IAAgBoE,EAAWnE,GAAiB,MAExD,MAAO,UAAUoE,EAAe/C,KAClC,CAhBgCgD,CAAoBtE,EAAeC,EAAeqB,IAErE2C,GAKT,OAHI5B,EAAsBkC,aACxB1B,EAAkB0B,WAAalC,EAAsBkC,YAEhD1B,EAGX","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("./cssVarsParser.cjs"),t=require("../../../utils/esm/deepmerge/deepmerge.cjs");module.exports=function(s,r={}){const{getSelector:o=g,disableCssColorScheme:c,colorSchemeSelector:a}=r,{colorSchemes:l={},components:n,defaultColorScheme:i="light",...u}=s,{vars:f,css:d,varsWithDefaults:h}=e.default(u,r);let m=h;const S={},{[i]:p,...v}=l;if(Object.entries(v||{}).forEach((([s,o])=>{const{vars:c,css:a,varsWithDefaults:l}=e.default(o,r);m=t.default(m,l),S[s]={css:a,vars:c}})),p){const{css:s,vars:o,varsWithDefaults:c}=e.default(p,r);m=t.default(m,c),S[i]={css:s,vars:o}}function g(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:m,generateThemeVars:()=>{let e={...f};return Object.entries(S).forEach((([,{vars:s}])=>{e=t.default(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,{...d}),d);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}}};
1
+ "use strict";var e=require("./cssVarsParser.cjs"),t=require("../../../utils/esm/deepmerge/deepmerge.cjs");module.exports=function(s,r={}){const{getSelector:o=_,disableCssColorScheme:a,colorSchemeSelector:c,enableContrastVars:l}=r,{colorSchemes:n={},components:i,defaultColorScheme:u="light",...h}=s,{vars:f,css:d,varsWithDefaults:m}=e.default(h,r);let p=m;const S={},{[u]:v,...g}=n;if(Object.entries(g||{}).forEach((([s,o])=>{const{vars:a,css:c,varsWithDefaults:l}=e.default(o,r);p=t.default(p,l),S[s]={css:c,vars:a}})),v){const{css:s,vars:o,varsWithDefaults:a}=e.default(v,r);p=t.default(p,a),S[u]={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={...f};return Object.entries(S).forEach((([,{vars:s}])=>{e=t.default(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,{...d}),d);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}}};
2
2
  //# sourceMappingURL=prepareCssVars.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"prepareCssVars.cjs","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":["theme","parserConfig","getSelector","defaultGetSelector","disableCssColorScheme","colorSchemeSelector","selector","colorSchemes","components","defaultColorScheme","otherTheme","vars","rootVars","css","rootCss","varsWithDefaults","rootVarsWithDefaults","cssVarsParser","default","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":"yHAEA,SAAwBA,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,EAAaC,QAACR,EAAYT,GAC9B,IAAIkB,EAAYH,EAChB,MAAMI,EAAkB,CAAE,GAExBX,CAACA,GAAqBY,KACnBC,GACDf,EAaJ,GAZAgB,OAAOC,QAAQF,GAAqB,CAAE,GAAEG,SAAQ,EAAEC,EAAKC,MACrD,MAAMhB,KACJA,EAAIE,IACJA,EAAGE,iBACHA,GACEE,EAAaC,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A,GAAckB,KACZC,GACD5B,EACJ,GAAI2B,EAAkB,CAEpB,MAAMlC,IACJA,GACEkC,EACEE,EAAgB1C,EAAasB,IAAcM,SAASD,KACpDgB,GAAY9C,GAAyB6C,EAAgB,CACzDpB,YAAaoB,KACVpC,GACD,IACCA,GAEL6B,EAAiBxC,EAAY2B,EAAa,IACrCqB,IACDA,EACV,CAeI,OAdA3B,OAAOC,QAAQwB,GAAOvB,SAAQ,EAAEC,GAC9Bb,WAEA,MAAMoC,EAAgB1C,EAAamB,IAAMS,SAASD,KAC5CgB,GAAY9C,GAAyB6C,EAAgB,CACzDpB,YAAaoB,KACVpC,GACD,IACCA,GAEL6B,EAAiBxC,EAAYwB,EAAK,IAC7BwB,IACDA,MAECT,GAOX","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"prepareCssVars.cjs","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":["theme","parserConfig","getSelector","defaultGetSelector","disableCssColorScheme","colorSchemeSelector","selector","enableContrastVars","colorSchemes","components","defaultColorScheme","otherTheme","vars","rootVars","css","rootCss","varsWithDefaults","rootVarsWithDefaults","cssVarsParser","default","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":"yHAEA,SAAwBA,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,EAAaC,QAACR,EAAYV,GAC9B,IAAImB,EAAYH,EAChB,MAAMI,EAAkB,CAAE,GAExBX,CAACA,GAAqBY,KACnBC,GACDf,EAaJ,GAZAgB,OAAOC,QAAQF,GAAqB,CAAE,GAAEG,SAAQ,EAAEC,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a,EAEZ,CACIgB,EAAiBzC,OAAY6C,EAAW,IACnChC,IACDA,GACJ,MACEe,CAACA,GAAckB,KACZC,GACD5B,EACJ,GAAI2B,EAAkB,CAEpB,MAAMlC,IACJA,GACEkC,EACEE,EAAgB1C,EAAasB,IAAcM,SAASD,KACpDgB,GAAY/C,GAAyB8C,EAAgB,CACzDpB,YAAaoB,KACVpC,GACD,IACCA,GAEL6B,EAAiBzC,EAAY4B,EAAa,IACrCqB,IACDA,EACV,CAyBI,OAxBA3B,OAAOC,QAAQwB,GAAOvB,SAAQ,EAAEC,GAC9Bb,WAEA,MAAMoC,EAAgB1C,EAAamB,IAAMS,SAASD,KAC5CgB,GAAY/C,GAAyB8C,EAAgB,CACzDpB,YAAaoB,KACVpC,GACD,IACCA,GAEL6B,EAAiBzC,EAAYyB,EAAK,IAC7BwB,IACDA,MAEF5C,GACFmC,EAAYI,KAAK,CACf,QAAS,CAEP,kBAAmB,MACnB,QAAS,0DACT,QAAS,gEAIRJ,GAOX","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./defaultSxConfig.cjs"),t=require("../breakpoints/breakpoints.cjs"),r=require("../merge/merge.cjs"),n=require("../cssContainerQueries/cssContainerQueries.cjs"),s=require("../style/style.cjs"),i=require("../../../utils/esm/capitalize/capitalize.cjs");function o(){function o(e,r,n,o){const u={[e]:r,theme:n},c=o[e];if(!c)return{[e]:r};const{cssProperty:l=e,themeKey:a,transform:f,style:p}=c;if(null==r)return null;if("typography"===a&&"inherit"===r)return{[e]:r};const y=s.getPath(n,a)||{};if(p)return p(u);return t.handleBreakpoints(u,r,(t=>{let r=s.getStyleValue(y,f,t);return t===r&&"string"==typeof t&&(r=s.getStyleValue(y,f,`${e}${"default"===t?"":i(t)}`,t)),!1===l?r:{[l]:r}}))}return function s(i){const{sx:u,theme:c={}}=i||{};if(!u)return null;const l=c.unstable_sxConfig??e;function a(e){let i=e;if("function"==typeof e)i=e(c);else if("object"!=typeof e)return e;if(!i)return null;const u=t.createEmptyBreakpointObject(c.breakpoints),a=Object.keys(u);let f=u;return Object.keys(i).forEach((e=>{const n=(u=i[e],a=c,"function"==typeof u?u(a):u);var u,a;if(null!=n)if("object"==typeof n)if(l[e])f=r(f,o(e,n,c,l));else{const i=t.handleBreakpoints({theme:c},n,(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))}(i,n)?f=r(f,i):f[e]=s({sx:n,theme:c})}else f=r(f,o(e,n,c,l))})),n.sortContainerQueries(c,t.removeUnusedBreakpoints(a,f))}return Array.isArray(u)?u.map(a):a(u)}}const u=o();u.filterProps=["sx"],exports.default=u,exports.unstable_createStyleFunctionSx=o;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./defaultSxConfig.cjs"),t=require("../breakpoints/breakpoints.cjs"),r=require("../merge/merge.cjs"),n=require("../cssContainerQueries/cssContainerQueries.cjs"),s=require("../style/style.cjs"),i=require("../../../utils/esm/capitalize/capitalize.cjs");function o(){function o(e,r,n,o){const u={[e]:r,theme:n},c=o[e];if(!c)return{[e]:r};const{cssProperty:a=e,themeKey:l,transform:f,style:y}=c;if(null==r)return null;if("typography"===l&&"inherit"===r)return{[e]:r};const p=s.getPath(n,l)||{};if(y)return y(u);return t.handleBreakpoints(u,r,(t=>{let r=s.getStyleValue(p,f,t);return t===r&&"string"==typeof t&&(r=s.getStyleValue(p,f,`${e}${"default"===t?"":i(t)}`,t)),!1===a?r:{[a]:r}}))}return function s(i){const{sx:u,theme:c={},nested:a}=i||{};if(!u)return null;const l=c.unstable_sxConfig??e;function f(e){let i=e;if("function"==typeof e)i=e(c);else if("object"!=typeof e)return e;if(!i)return null;const u=t.createEmptyBreakpointObject(c.breakpoints),f=Object.keys(u);let y=u;return Object.keys(i).forEach((e=>{const n=(u=i[e],a=c,"function"==typeof u?u(a):u);var u,a;if(null!=n)if("object"==typeof n)if(l[e])y=r(y,o(e,n,c,l));else{const i=t.handleBreakpoints({theme:c},n,(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))}(i,n)?y=r(y,i):y[e]=s({sx:n,theme:c,nested:!0})}else y=r(y,o(e,n,c,l))})),!a&&c.modularCssLayers?{"@layer sx":n.sortContainerQueries(c,t.removeUnusedBreakpoints(f,y))}:n.sortContainerQueries(c,t.removeUnusedBreakpoints(f,y))}return Array.isArray(u)?u.map(f):f(u)}}const u=o();u.filterProps=["sx"],exports.default=u,exports.unstable_createStyleFunctionSx=o;
2
2
  //# sourceMappingURL=styleFunctionSx.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"styleFunctionSx.cjs","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","getStyleValue","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":"6UAgBO,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,EACAC,MAAAA,GACEJ,EACJ,GAAW,MAAPJ,EACF,OAAO,KAIT,GAAiB,eAAbM,GAAqC,YAARN,EAC/B,MAAO,CACLD,CAACA,GAAOC,GAGZ,MAAMS,EAAeC,EAAOA,QAACT,EAAOK,IAAa,CAAE,EACnD,GAAIE,EACF,OAAOA,EAAML,GAef,OAAOQ,oBAAkBR,EAAOH,GAbLY,IACzB,IAAIC,EAAQC,EAAQC,cAACN,EAAcF,EAAWK,GAK9C,OAJIA,IAAmBC,GAAmC,iBAAnBD,IAErCC,EAAQC,EAAAA,cAASL,EAAcF,EAAW,GAAGR,IAA0B,YAAnBa,EAA+B,GAAKI,EAAWJ,KAAmBA,KAEpG,IAAhBP,EACKQ,EAEF,CACLR,CAACA,GAAcQ,KAIvB,CA4DE,OA3DA,SAASI,EAAgBd,GACvB,MAAM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,IAAIhC,GAAYA,EAASH,EAC3D,CAEA,CACK,MAACD,EAAkBpB,IACxBoB,EAAgBqC,YAAc,CAAC","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"styleFunctionSx.cjs","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","getStyleValue","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":"6UAgBO,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,EACAC,MAAAA,GACEJ,EACJ,GAAW,MAAPJ,EACF,OAAO,KAIT,GAAiB,eAAbM,GAAqC,YAARN,EAC/B,MAAO,CACLD,CAACA,GAAOC,GAGZ,MAAMS,EAAeC,EAAOA,QAACT,EAAOK,IAAa,CAAE,EACnD,GAAIE,EACF,OAAOA,EAAML,GAef,OAAOQ,oBAAkBR,EAAOH,GAbLY,IACzB,IAAIC,EAAQC,EAAQC,cAACN,EAAcF,EAAWK,GAK9C,OAJIA,IAAmBC,GAAmC,iBAAnBD,IAErCC,EAAQC,EAAAA,cAASL,EAAcF,EAAW,GAAGR,IAA0B,YAAnBa,EAA+B,GAAKI,EAAWJ,KAAmBA,KAEpG,IAAhBP,EACKQ,EAEF,CACLR,CAACA,GAAcQ,KAIvB,CAmEE,OAlEA,SAASI,EAAgBd,GACvB,MAAMe,GACJA,EAAEjB,MACFA,EAAQ,CAAE,EAAAkB,OACVA,GACEhB,GAAS,CAAE,EACf,IAAKe,EACH,OAAO,KAET,MAAMhB,EAASD,EAAMmB,mBAAqBC,EAO1C,SAASC,EAASC,GAChB,IAAIC,EAAWD,EACf,GAAuB,mBAAZA,EACTC,EAAWD,EAAQtB,QACd,GAAuB,iBAAZsB,EAEhB,OAAOA,EAET,IAAK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
+ "use strict";const e=require("../createStyled/createStyled.cjs").default();module.exports=e;
2
+ //# sourceMappingURL=styled.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styled.cjs","sources":["../../../../../../../node_modules/@mui/system/esm/styled/styled.js"],"sourcesContent":["import createStyled from \"../createStyled/index.js\";\nconst styled = createStyled();\nexport default styled;"],"names":["styled","default"],"mappings":"aACK,MAACA,8CAAqBC","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";module.exports=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};
1
+ "use strict";var s=require("../../../../clsx/dist/clsx.cjs");module.exports=function e(t,o,l=!1){const c={...o};for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const r=n;if("components"===r||"slots"===r)c[r]={...t[r],...c[r]};else if("componentsProps"===r||"slotProps"===r){const s=t[r],n=o[r];if(n)if(s){c[r]={...n};for(const t in s)if(Object.prototype.hasOwnProperty.call(s,t)){const o=t;c[r][o]=e(s[o],n[o],l)}}else c[r]=n;else c[r]=s||{}}else"className"===r&&l&&o.className?c.className=s.clsx(t?.className,o?.className):"style"===r&&l&&o.style?c.style={...t?.style,...o?.style}:void 0===c[r]&&(c[r]=t[r])}return c};
2
2
  //# sourceMappingURL=resolveProps.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"resolveProps.cjs","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":"4BAMe,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.cjs","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":"4EAWe,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,EAAIA,KAACf,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]}
@@ -0,0 +1 @@
1
+ export * from '../../esm/components/Flyout';
@@ -0,0 +1 @@
1
+ export * from '../../esm/components/InputGroup';
@@ -0,0 +1 @@
1
+ export * from '../../esm/components/timeline';
@@ -1,2 +1,2 @@
1
- import{__rest as e}from"../../_virtual/_tslib.js";import{j as a}from"../../_virtual/jsx-runtime.js";import t,{useMemo as r}from"react";import{LocalizationProvider as s}from"../../node_modules/@mui/x-date-pickers/esm/LocalizationProvider/LocalizationProvider.js";import{AdapterDayjs as i}from"../../node_modules/@mui/x-date-pickers/esm/AdapterDayjs/AdapterDayjs.js";import{DatePicker as o}from"../../node_modules/@mui/x-date-pickers/esm/DatePicker/DatePicker.js";const l=l=>{var d,n,{label:m,selectedDate:u,onDateChange:c,minDate:p,maxDate:D,disabled:x,readOnly:j,slotProps:v}=l,b=e(l,["label","selectedDate","onDateChange","minDate","maxDate","disabled","readOnly","slotProps"]);const[f,h]=t.useState(null),g=r((()=>{switch(f){case"minDate":case"maxDate":return"Fecha fuera del rango permitido";case"invalidDate":return"Formato de fecha inválido";case"disableFuture":return"No se permiten fechas futuras";case"disablePast":return"No se permiten fechas pasadas";default:return""}}),[f]);return a.jsx(s,{dateAdapter:i,children:a.jsx(o,Object.assign({label:m,value:u,onChange:c,minDate:p,maxDate:D,onError:e=>h(e),disabled:x,readOnly:j,slotProps:Object.assign(Object.assign({},v),{textField:Object.assign(Object.assign({},null==v?void 0:v.textField),{helperText:g||(null===(d=null==v?void 0:v.textField)||void 0===d?void 0:d.helperText),error:!!g||(null===(n=null==v?void 0:v.textField)||void 0===n?void 0:n.error)})})},b))})};export{l as DatePicker,l as default};
1
+ import{__rest as e}from"../../_virtual/_tslib.js";import{j as t}from"../../_virtual/jsx-runtime.js";import a,{useMemo as i}from"react";import{TextField as r,Box as s}from"@mui/material";import o from"../../node_modules/@mui/system/esm/styled/styled.js";import{LocalizationProvider as n}from"../../node_modules/@mui/x-date-pickers/esm/LocalizationProvider/LocalizationProvider.js";import{AdapterDayjs as l}from"../../node_modules/@mui/x-date-pickers/esm/AdapterDayjs/AdapterDayjs.js";import{DatePicker as d}from"../../node_modules/@mui/x-date-pickers/esm/DatePicker/DatePicker.js";const p=o(r)((({theme:e})=>({"& .MuiInputBase-root":{maxHeight:"34px",padding:"8px 10px",borderRadius:"10px",display:"flex",alignItems:"center",fontSize:"14px"},"& .MuiInputBase-input":{padding:"0 !important",height:"18px",display:"flex",alignItems:"center",marginTop:"-4px"},"& .MuiInputLabel-root":{top:"50%",transform:"translate(14px, -50%)","&.MuiInputLabel-shrink":{transform:"translate(1px, -200%) scale(0.75)",fontSize:"16px !important","> legend":{display:"none"}}},"& .MuiOutlinedInput-notchedOutline":{border:"0.7px solid",borderColor:"#e0e0e0"}}))),u=r=>{var o,u,m,{label:c,selectedDate:x,onDateChange:f,minDate:g,maxDate:b,disabled:h,readOnly:j,slotProps:v}=r,D=e(r,["label","selectedDate","onDateChange","minDate","maxDate","disabled","readOnly","slotProps"]);const[y,I]=a.useState(null),P=i((()=>{switch(y){case"minDate":case"maxDate":return"Fecha fuera del rango permitido";case"invalidDate":return"Formato de fecha inválido";case"disableFuture":return"No se permiten fechas futuras";case"disablePast":return"No se permiten fechas pasadas";default:return""}}),[y]);return t.jsx(n,{dateAdapter:l,children:t.jsx(s,{sx:{width:"100%",display:"grid",marginBottom:"10px",marginTop:"10px"},children:t.jsx(d,Object.assign({label:c,value:x,onChange:f,minDate:g,maxDate:b,onError:e=>I(e),disabled:h,readOnly:j,className:"date-picker-custom",sx:{"& .MuiPickersInputBase-root, .MuiPickersOutlinedInput-root":{maxHeight:"28px",borderRadius:"10px"},"& .MuiInputLabel-root":{top:"50%",transform:"translate(14px, -50%)","&.MuiInputLabel-shrink":{transform:"translate(1px, -200%) scale(0.75)",fontSize:"16px !important","> legend":{display:"none"}}},"& .MuiPickersInputBase-root > fieldset > legend":{display:"none"}},slotProps:Object.assign(Object.assign({},v),{textField:Object.assign(Object.assign({},null==v?void 0:v.textField),{helperText:P||(null===(o=null==v?void 0:v.textField)||void 0===o?void 0:o.helperText),error:!!P||(null===(u=null==v?void 0:v.textField)||void 0===u?void 0:u.error),InputProps:Object.assign(Object.assign({},null===(m=null==v?void 0:v.textField)||void 0===m?void 0:m.InputProps),{inputComponent:p})})})},D))})})};export{u as DatePicker,u as default};
2
2
  //# sourceMappingURL=DatePicker.js.map
@@ -15,6 +15,7 @@ export interface DateTimePickerProps {
15
15
  acceptButtonText?: string;
16
16
  minutesStep?: number;
17
17
  minTime?: Dayjs;
18
+ customClass?: string;
18
19
  }
19
20
  /**
20
21
  * Custom Material UI DateTimePicker component.
@@ -1,2 +1,2 @@
1
- import{__rest as e}from"../../_virtual/_tslib.js";import{j as t}from"../../_virtual/jsx-runtime.js";import a from"react";import{LocalizationProvider as i}from"../../node_modules/@mui/x-date-pickers/esm/LocalizationProvider/LocalizationProvider.js";import{AdapterDayjs as s}from"../../node_modules/@mui/x-date-pickers/esm/AdapterDayjs/AdapterDayjs.js";import{DateTimePicker as r}from"../../node_modules/@mui/x-date-pickers/esm/DateTimePicker/DateTimePicker.js";const o=o=>{var n,l,{label:m,selectedDateTime:d,onDateTimeChange:u,minDateTime:c,maxDateTime:p,disabled:T,readOnly:x,inputFormat:D,slotProps:b,clearButtonText:j,cancelButtonText:v,acceptButtonText:f,minutesStep:h,minTime:g}=o,B=e(o,["label","selectedDateTime","onDateTimeChange","minDateTime","maxDateTime","disabled","readOnly","inputFormat","slotProps","clearButtonText","cancelButtonText","acceptButtonText","minutesStep","minTime"]);const[O,P]=a.useState(null),F=a.useMemo((()=>{switch(O){case"minDate":case"maxDate":case"invalidDate":return"Formato de fecha/hora inválido";case"disableFuture":return"No se permiten fechas/horas futuras";case"disablePast":return"No se permiten fechas/horas pasadas";default:return""}}),[O]),k=a.useMemo((()=>{const e={};return j&&(e.clearButtonLabel=j),v&&(e.cancelButtonLabel=v),f&&(e.okButtonLabel=f),e}),[j,v,f]);return t.jsx(i,{dateAdapter:s,children:t.jsx(r,Object.assign({label:m,value:d,onChange:u,minDateTime:c,maxDateTime:p,minutesStep:h,disabled:T,readOnly:x,minTime:g,format:D||"DD/MM/YYYY HH:mm",slotProps:Object.assign(Object.assign({},b),{textField:Object.assign(Object.assign({fullWidth:!0},null==b?void 0:b.textField),{helperText:F||(null===(n=null==b?void 0:b.textField)||void 0===n?void 0:n.helperText),error:!!F||(null===(l=null==b?void 0:b.textField)||void 0===l?void 0:l.error)})}),localeText:Object.assign({},k)},B))})};export{o as DateTimePicker,o as default};
1
+ import{__rest as e}from"../../_virtual/_tslib.js";import{j as t}from"../../_virtual/jsx-runtime.js";import a,{useMemo as i}from"react";import{TextField as s,Box as n}from"@mui/material";import o from"../../node_modules/@mui/system/esm/styled/styled.js";import{LocalizationProvider as r}from"../../node_modules/@mui/x-date-pickers/esm/LocalizationProvider/LocalizationProvider.js";import{AdapterDayjs as l}from"../../node_modules/@mui/x-date-pickers/esm/AdapterDayjs/AdapterDayjs.js";import{DateTimePicker as m}from"../../node_modules/@mui/x-date-pickers/esm/DateTimePicker/DateTimePicker.js";const d=o(s)((({theme:e})=>({"& .MuiInputBase-root":{maxHeight:"34px",padding:"8px 10px",borderRadius:"10px",display:"flex",alignItems:"center",fontSize:"14px"},"& .MuiInputBase-input":{padding:"0 !important",height:"18px",display:"flex",alignItems:"center",marginTop:"-4px"},"& .MuiInputLabel-root":{top:"50%",transform:"translate(14px, -50%)","&.MuiInputLabel-shrink":{transform:"translate(1px, -200%) scale(0.75)",fontSize:"16px !important","> legend":{display:"none"}}},"& .MuiOutlinedInput-notchedOutline":{border:"0.7px solid",borderColor:"#e0e0e0"}}))),p=s=>{var o,p,u,{label:c,selectedDateTime:x,onDateTimeChange:b,minDateTime:T,maxDateTime:f,disabled:g,readOnly:h,customClass:j="",inputFormat:D,slotProps:v,clearButtonText:y,cancelButtonText:B,acceptButtonText:I,minutesStep:O,minTime:P}=s,k=e(s,["label","selectedDateTime","onDateTimeChange","minDateTime","maxDateTime","disabled","readOnly","customClass","inputFormat","slotProps","clearButtonText","cancelButtonText","acceptButtonText","minutesStep","minTime"]);const[M,F]=a.useState(null),L=i((()=>{switch(M){case"minDate":case"maxDate":case"invalidDate":return"Formato de fecha/hora inválido";case"disableFuture":return"No se permiten fechas/horas futuras";case"disablePast":return"No se permiten fechas/horas pasadas";default:return""}}),[M]),C=i((()=>{const e={};return y&&(e.clearButtonLabel=y),B&&(e.cancelButtonLabel=B),I&&(e.okButtonLabel=I),e}),[y,B,I]);return t.jsx(r,{dateAdapter:l,children:t.jsx(n,{sx:{width:"100%",display:"grid",marginBottom:"10px",marginTop:"10px"},children:t.jsx(m,Object.assign({className:j,label:c,value:x,onChange:b,minDateTime:T,maxDateTime:f,minutesStep:O,disabled:g,readOnly:h,minTime:P,format:D||"DD/MM/YYYY HH:mm",sx:{"& .MuiPickersInputBase-root, .MuiPickersOutlinedInput-root":{maxHeight:"28px",borderRadius:"10px"},"& .MuiInputLabel-root":{top:"50%",transform:"translate(14px, -50%)","&.MuiInputLabel-shrink":{transform:"translate(1px, -200%) scale(0.75)",fontSize:"16px !important","> legend":{display:"none"}}},"& .MuiPickersInputBase-root > fieldset > legend":{display:"none"}},slotProps:Object.assign(Object.assign({},v),{textField:Object.assign(Object.assign({},null==v?void 0:v.textField),{helperText:L||(null===(o=null==v?void 0:v.textField)||void 0===o?void 0:o.helperText),error:!!L||(null===(p=null==v?void 0:v.textField)||void 0===p?void 0:p.error),InputProps:Object.assign(Object.assign({},null===(u=null==v?void 0:v.textField)||void 0===u?void 0:u.InputProps),{inputComponent:d})})}),localeText:Object.assign({},C)},k))})})};export{p as DateTimePicker,p as default};
2
2
  //# sourceMappingURL=DateTimePicker.js.map
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ type FlyoutSize = 'small' | 'medium' | 'large';
3
+ export interface FlyoutProps {
4
+ open: boolean;
5
+ onClose: () => void;
6
+ title?: string;
7
+ anchor?: 'left' | 'top' | 'right' | 'bottom';
8
+ children: React.ReactNode;
9
+ size?: FlyoutSize;
10
+ height?: string | number;
11
+ }
12
+ declare const Flyout: React.FC<FlyoutProps>;
13
+ export default Flyout;
@@ -0,0 +1,2 @@
1
+ import{j as e}from"../../_virtual/jsx-runtime.js";import{useMemo as t}from"react";import{Drawer as r,Box as o,Typography as s,IconButton as i,Divider as n}from"@mui/material";import a from"../../node_modules/@mui/icons-material/esm/Close.js";const l=({open:l,onClose:c,title:d,anchor:m="right",children:h,size:u="medium",height:x="auto"})=>{const p=(e=>{switch(e){case"small":return Math.round(345);case"medium":default:return Math.round(517.5);case"large":return Math.round(690)}})(u),f=t((()=>"left"===m||"right"===m?{width:p}:{height:x,width:"100%"}),[m,p,x]);return e.jsx(r,{anchor:m,open:l,onClose:c,disableEscapeKeyDown:!1,ModalProps:{keepMounted:!0},children:e.jsxs(o,{sx:Object.assign(Object.assign({},f),{display:"flex",flexDirection:"column",p:2,backgroundColor:e=>e.palette.background.paper,color:e=>e.palette.text.primary,height:"100%"}),role:"presentation",children:[e.jsxs(o,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2,flexShrink:0},children:[d&&e.jsx(s,{variant:"h6",component:"div",sx:{fontWeight:"bold"},children:d}),e.jsx(i,{onClick:c,sx:{ml:"auto"},children:e.jsx(a,{})})]}),e.jsx(n,{sx:{mb:2}})," ",e.jsx(o,{sx:{flexGrow:1,overflowY:"auto"},children:h})]})})};export{l as default};
2
+ //# sourceMappingURL=Flyout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Flyout.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Flyout from './Flyout';
3
+ declare const meta: Meta<typeof Flyout>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Flyout>;
6
+ export declare const Default: Story;
7
+ export declare const SmallLeft: Story;
8
+ export declare const LargeRight: Story;
9
+ export declare const TopAnchor: Story;
10
+ export declare const BottomAnchor: Story;
11
+ export declare const NoTitle: Story;
12
+ export declare const CustomContent: Story;
@@ -0,0 +1 @@
1
+ export { default as Flyout } from './Flyout';
@@ -0,0 +1,2 @@
1
+ export{default as Flyout}from"./Flyout/Flyout.js";
2
+ //# sourceMappingURL=Flyout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Flyout.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -11,12 +11,5 @@ export interface InputProps extends Omit<TextFieldProps, 'value' | 'onChange' |
11
11
  disabled?: boolean;
12
12
  readOnly?: boolean;
13
13
  }
14
- /**
15
- * Componente Input personalizado de Material UI.
16
- * Un wrapper para TextField que simplifica el manejo de diferentes tipos de input
17
- * y proporciona una interfaz consistente para el valor y el evento onChange.
18
- * Permite control explícito sobre el rango de números, asegurando que se puedan
19
- * ingresar números negativos por defecto si no se especifica un 'min'.
20
- */
21
14
  export declare const Input: React.FC<InputProps>;
22
15
  export default Input;
@@ -1,2 +1,2 @@
1
- import{__rest as t}from"../../_virtual/_tslib.js";import{j as a}from"../../_virtual/jsx-runtime.js";import{TextField as e}from"@mui/material";const i=i=>{var{value:n,onChange:r,type:s="text",variant:o="outlined",min:m,max:u,inputProps:l}=i,p=t(i,["value","onChange","type","variant","min","max","inputProps"]);const v=Object.assign({},l);return"number"===s&&(v.min=void 0!==m?m:Number.NEGATIVE_INFINITY,void 0!==u&&(v.max=u)),a.jsx(e,Object.assign({fullWidth:!0,value:n,onChange:t=>{const a=t.target.value;let e;if("number"===s)if(""===a||"-"===a)e=a;else{const t=parseFloat(a);e=isNaN(t)?a:t}else e=a;r(e)},type:s,variant:o,inputProps:v},p))};export{i as Input,i as default};
1
+ import{__rest as e}from"../../_virtual/_tslib.js";import{j as t}from"../../_virtual/jsx-runtime.js";import{TextField as i,Box as n}from"@mui/material";import a from"../../node_modules/@mui/system/esm/styled/styled.js";const r=a(i)((({theme:e})=>({"& .MuiInputBase-root":{maxHeight:"34px",padding:"8px 10px",borderRadius:"10px",display:"flex",alignItems:"center",fontSize:"14px","& input::placeholder":{color:"inherit",opacity:1}},"& .MuiInputBase-input":{padding:"0 !important",height:"18px",display:"flex",alignItems:"center",marginTop:"-4px"},"& .MuiInputLabel-root":{top:"50%",transform:"translate(14px, -50%)","&.MuiInputLabel-shrink":{transform:"translate(1px, -200%) scale(0.75)",fontSize:"16px !important","> legend":{display:"none"}}},"& .MuiInputBase-root > fieldset > legend":{display:"none"},"& .MuiOutlinedInput-notchedOutline":{border:"0.7px solid",borderColor:"#e0e0e0"}}))),o=i=>{var{value:a,onChange:o,type:p="text",variant:s="outlined",min:l,max:u,inputProps:m}=i,d=e(i,["value","onChange","type","variant","min","max","inputProps"]);const x=Object.assign({},m);return"number"===p&&(x.min=void 0!==l?l:Number.NEGATIVE_INFINITY,void 0!==u&&(x.max=u)),t.jsx(n,{sx:{width:"100%",display:"grid",marginBottom:"10px",marginTop:"10px"},children:t.jsx(r,Object.assign({fullWidth:!0,value:a,onChange:e=>{const t=e.target.value;let i;if("number"===p)if(""===t||"-"===t)i=t;else{const e=parseFloat(t);i=isNaN(e)?t:e}else i=t;o(i)},type:p,variant:s,inputProps:x},d))})};export{o as Input,o as default};
2
2
  //# sourceMappingURL=Input.js.map
@@ -14,3 +14,4 @@ export declare const ReadOnlyInput: Story;
14
14
  export declare const InputVariants: Story;
15
15
  export declare const InputSizes: Story;
16
16
  export declare const FullWidthInput: Story;
17
+ export declare const StandardVariant: Story;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ interface InputGroupProps {
3
+ children: React.ReactNode;
4
+ }
5
+ declare const InputGroup: React.FC<InputGroupProps>;
6
+ export default InputGroup;
@@ -0,0 +1,2 @@
1
+ import{j as t}from"../../_virtual/jsx-runtime.js";import{Children as e,isValidElement as o,cloneElement as i}from"react";import{Box as r,TextField as n,Select as p}from"@mui/material";import{Input as u}from"../Input/Input.js";import{Select as s}from"../Select/Select.js";import{DatePicker as d}from"../DatePicker/DatePicker.js";import{DatePicker as a}from"../../node_modules/@mui/x-date-pickers/esm/DatePicker/DatePicker.js";const l=({children:l})=>{const m=e.toArray(l),c=m.map(((e,l)=>{if(o(e)){const o=e.props,c=e.type,x=c===n||c===u||c===p||c===s||c===a||c===d?i(e,Object.assign(Object.assign({},o),{className:"InputGroupChild",sx:Object.assign(Object.assign({},o.sx),{"& .MuiOutlinedInput-notchedOutline":{border:"none !important"},"& .MuiInputBase-root .MuiButtonBase-root":{borderRight:"none"},"& .MuiOutlinedInput-notchedOutline > legend":{display:"none"}," .InputGroupChild > MuiOutlinedInput-notchedOutline":{border:"none !important"},".MuiOutlinedInput-notchedOutline, > .MuiOutlinedInput-notchedOutline":{border:"none !important"}})})):e;return t.jsx(r,{sx:{flexGrow:1,display:"flex",alignItems:"center",minWidth:0,borderRight:l<m.length-1?"1px solid #ccc":"none"},children:x},l)}return e}));return t.jsx(r,{sx:{width:"100%",display:"grid",marginBottom:"10px",marginTop:"10px"},children:t.jsx(r,{className:"InputGroupChild",sx:{display:"flex",justifyContent:"space-between",height:"32px",border:"1px solid #ccc",borderRadius:"10px",padding:"8px 0px",marginTop:"-5px",marginBottom:"20px","& .MuiInputBase-root, & .MuiButtonBase-root, & .MuiChip-root":{borderRadius:0},"& > div:first-of-type .MuiInputBase-root, & > div:first-of-type .MuiButtonBase-root, & > div:first-of-type .MuiChip-root":{borderTopLeftRadius:"10px",borderBottomLeftRadius:"10px"},"& > div:last-of-type .MuiInputBase-root, & > div:last-of-type .MuiButtonBase-root, & > div:last-of-type .MuiChip-root":{borderTopRightRadius:"10px",borderBottomRightRadius:"10px",border:"none !important"},"& .InputGroupChild":{width:"100%"},"& > div:first-of-type .MuiInputBase-root > .MuiOutlinedInput-notchedOutline":{border:"none !important"}},children:c})})};export{l as default};
2
+ //# sourceMappingURL=InputGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InputGroup.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import InputGroup from './InputGroup';
3
+ declare const meta: Meta<typeof InputGroup>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof InputGroup>;
6
+ export declare const BasicInputGroup: Story;
7
+ export declare const CombinedInputGroup: Story;
8
+ export declare const DatePickerInputGroup: Story;
@@ -0,0 +1 @@
1
+ export { default as InputGroup } from './InputGroup';
@@ -0,0 +1,2 @@
1
+ export{default as InputGroup}from"./InputGroup/InputGroup.js";
2
+ //# sourceMappingURL=InputGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InputGroup.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- import{j as e}from"../../_virtual/jsx-runtime.js";import l,{useMemo as n,isValidElement as r,useState as a,useRef as t,useEffect as i}from"react";import{ListSubheader as s,TextField as o,MenuItem as u,Box as d,CircularProgress as c,Typography as p,FormControl as h,InputLabel as m,Select as f,OutlinedInput as x,Chip as g,Avatar as j}from"@mui/material";import b from"../../node_modules/@mui/icons-material/esm/Clear.js";function v(e){return null}function y({label:v,options:y=[],value:C,defaultValue:_,onChange:k,size:w="medium",multiple:O=!1,filterable:P=!1,placeholder:z,children:W,maxHeight:E=300,maxWidth:S,maxChipsToShow:T=3,renderChipLabel:V,chipVariant:I="outlined",loadOptions:L,loadingMessage:M="Cargando opciones...",noOptionsMessage:N="No hay opciones",debounceTimeout:A=300}){const D=n((()=>{var e;if(1===l.Children.count(W)){const n=l.Children.only(W);if(r(n)&&"Option"===(null===(e=n.type)||void 0===e?void 0:e.displayName))return n.props.children}return null}),[W]),[H,B]=a(""),[F,K]=a([]),[R,$]=a(!1),q=t(null),G=t(null),J="function"==typeof L,Q=J?F:y;i((()=>{J&&(q.current&&clearTimeout(q.current),H?($(!0),q.current=window.setTimeout((()=>{L(H).then((e=>{K(e)})).finally((()=>{$(!1),G.current&&G.current.focus()}))}),A)):(K([]),$(!1),G.current&&G.current.focus()))}),[H,J,L,A]);const U=n((()=>J?Q:P&&H?Q.filter((e=>e.label.toLowerCase().includes(H.toLowerCase()))):Q),[H,P,Q,J]),X=n((()=>{const e={};return U.forEach((l=>{const n=l.group||"__default";e[n]||(e[n]=[]),e[n].push(l)})),e}),[U]),Y=n((()=>{const l=[];return(P||J)&&l.push(e.jsx(s,{sx:{px:2,pt:1,pb:1,backgroundColor:"background.paper",zIndex:1,position:"sticky",top:0},children:e.jsx(o,{inputRef:G,placeholder:"Buscar...",variant:"standard",size:"small",fullWidth:!0,value:H,onChange:e=>B(e.target.value),inputProps:{autoFocus:!0},onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation()})},"search-header")),R?l.push(e.jsx(u,{disabled:!0,children:e.jsxs(d,{sx:{display:"flex",alignItems:"center",gap:1},children:[e.jsx(c,{size:20}),e.jsx(p,{children:M})]})},"loading-message")):0===Object.keys(X).length||1===Object.keys(X).length&&X.__default&&0===X.__default.length?l.push(e.jsx(u,{disabled:!0,children:e.jsx(p,{children:N})},"no-options-message")):Object.entries(X).forEach((([n,r])=>{"__default"!==n&&l.push(e.jsx(s,{disableSticky:!0,children:n},n)),r.forEach((n=>{l.push(e.jsx(u,{value:n.value,disabled:n.disabled,children:D?D(n):n.label},n.value))}))})),l}),[X,D,P,J,H,R,M,N]);return e.jsxs(h,{fullWidth:!0,size:w,children:[v&&e.jsx(m,{children:v}),e.jsx(f,{label:v,value:null!=C?C:O?[]:"",defaultValue:_,multiple:O,onChange:e=>{k(e.target.value)},renderValue:l=>{var n;if(!l||Array.isArray(l)&&0===l.length)return e.jsx(p,{sx:{color:"text.disabled"},children:z||""});if(!O){const e=Q.find((e=>e.value===l));return V&&e?V(e):null!==(n=null==e?void 0:e.label)&&void 0!==n?n:String(l)}const r=l,a=r.slice(0,T),t=r.length-T;return e.jsxs(d,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:[a.map((l=>{const n=Q.find((e=>e.value===l));if(!n)return null;return e.jsx(g,{variant:I,color:"primary",label:V?V(n):n.label,avatar:n.img?e.jsx(j,{src:n.img}):void 0,onDelete:()=>(e=>{const l=C.filter((l=>l!==e));k(l)})(l),deleteIcon:e.jsx(b,{})},l)})),t>0&&e.jsx(g,{label:`+${t} más`,variant:I})]})},displayEmpty:!0,input:e.jsx(x,{label:v}),MenuProps:{PaperProps:{style:{maxHeight:E,maxWidth:S}}},children:Y})]})}v.displayName="Option";export{v as Option,y as Select,y as default};
1
+ import{j as e}from"../../_virtual/jsx-runtime.js";import t,{useMemo as n,isValidElement as i,useState as l,useRef as r,useEffect as a}from"react";import{Select as o,InputLabel as s,OutlinedInput as u,ListSubheader as d,TextField as p,MenuItem as c,Box as x,CircularProgress as h,Typography as m,ListItemIcon as g,FormControl as f,Chip as b,Avatar as j}from"@mui/material";import y from"../../node_modules/@mui/icons-material/esm/Clear.js";import v from"../../node_modules/@mui/icons-material/esm/Check.js";import C from"../../node_modules/@mui/system/esm/styled/styled.js";function I(e){return null}I.displayName="Option";const M=C(o)((({theme:e})=>({"& .MuiInputBase-root":{maxHeight:"4px",padding:"8px 10px",borderRadius:"10px",display:"flex",alignItems:"center",fontSize:"14px"},"& .MuiSelect-select":{padding:"0 !important",height:"28px !important",display:"flex",alignItems:"center",marginLeft:"8px"},"& .MuiOutlinedInput-notchedOutline":{border:"0.7px solid",borderColor:"#e0e0e0",borderRadius:"10px"},"& .MuiSelect-icon":{top:"50%",transform:"translateY(-50%)"},"& .MuiOutlinedInput-notchedOutline > legend":{display:"none"}}))),O=C(s)((({theme:e})=>({"&.MuiInputLabel-root":{top:"50%",transform:"translate(14px, -50%)"},"&.MuiInputLabel-shrink":{transform:"translate(1px, -200%) scale(0.75)",fontSize:"16px","> legend":{display:"none"}},"&.MuiInputLabel-animated":{"&.MuiInputLabel-shrink":{display:"block"}}}))),k=C(u)((({theme:e})=>({"& .MuiInputBase-root":{maxHeight:"34px",padding:"8px 10px",borderRadius:"10px",display:"flex",alignItems:"center",fontSize:"14px"," & > .MuiAvatar-img":{width:"14px",height:"14px"}},"& .MuiInputBase-input":{padding:"0 !important",height:"18px",display:"flex",alignItems:"center"},"& .MuiOutlinedInput-notchedOutline":{border:"0.7px solid",borderColor:"#e0e0e0"}})));function _({label:o,options:s=[],value:u,defaultValue:C,onChange:I,size:_="medium",multiple:S=!1,filterable:w=!1,placeholder:z,children:L,maxHeight:T=300,maxWidth:P,maxChipsToShow:W=3,renderChipLabel:B,chipVariant:A="outlined",loadOptions:E,loadingMessage:H="Cargando opciones...",noOptionsMessage:R="No hay opciones",debounceTimeout:V=300}){const N=n((()=>{var e;if(1===t.Children.count(L)){const n=t.Children.only(L);if(i(n)&&"Option"===(null===(e=n.type)||void 0===e?void 0:e.displayName))return n.props.children}return null}),[L]),[D,F]=l(""),[G,K]=l([]),[Y,$]=l(!1),q=r(null),J=r(null),Q="function"==typeof E,U=Q?G:s;a((()=>{Q&&(q.current&&clearTimeout(q.current),D?($(!0),q.current=window.setTimeout((()=>{E(D).then((e=>{K(e)})).finally((()=>{$(!1),J.current&&J.current.focus()}))}),V)):(K([]),$(!1),J.current&&J.current.focus()))}),[D,Q,E,V]);const X=n((()=>Q?U:w&&D?U.filter((e=>e.label.toLowerCase().includes(D.toLowerCase()))):U),[D,w,U,Q]),Z=n((()=>{const e={};return X.forEach((t=>{const n=t.group||"__default";e[n]||(e[n]=[]),e[n].push(t)})),e}),[X]),ee=n((()=>{const t=[];return(w||Q)&&t.push(e.jsx(d,{sx:{px:2,pt:1,pb:1,backgroundColor:"background.paper",zIndex:1,position:"sticky",top:0},children:e.jsx(p,{inputRef:J,placeholder:"Buscar...",variant:"standard",size:"small",fullWidth:!0,value:D,onChange:e=>F(e.target.value),inputProps:{autoFocus:!0},onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation()})},"search-header")),Y?t.push(e.jsx(c,{disabled:!0,children:e.jsxs(x,{sx:{display:"flex",alignItems:"center",gap:1},children:[e.jsx(h,{size:20}),e.jsx(m,{children:H})]})},"loading-message")):0===Object.keys(Z).length||1===Object.keys(Z).length&&Z.__default&&0===Z.__default.length?t.push(e.jsx(c,{disabled:!0,children:e.jsx(m,{children:R})},"no-options-message")):Object.entries(Z).forEach((([n,i])=>{"__default"!==n&&t.push(e.jsx(d,{disableSticky:!0,children:n},n)),i.forEach((n=>{const i=S?null==u?void 0:u.includes(n.value):u===n.value;t.push(e.jsxs(c,{value:n.value,disabled:n.disabled,selected:i,children:[e.jsx(g,{sx:{minWidth:32},children:i&&e.jsx(v,{sx:{color:"green"}})}),N?N(n):n.label]},n.value))}))})),t}),[Z,N,w,Q,D,Y,H,R,S,u]),te=o&&!z;return e.jsxs(f,{fullWidth:!0,size:_,children:[te&&e.jsx(O,{children:o}),e.jsx(x,{sx:{width:"100%",display:"grid",marginBottom:"10px",marginTop:"10px"},children:e.jsx(M,{label:o,value:null!=u?u:S?[]:"",defaultValue:C,multiple:S,onChange:e=>{I(e.target.value)},renderValue:t=>{var n;if(!t||Array.isArray(t)&&0===t.length)return e.jsx(m,{sx:{color:"text.disabled"},children:z||""});if(!S){const e=U.find((e=>e.value===t));return B&&e?B(e):null!==(n=null==e?void 0:e.label)&&void 0!==n?n:String(t)}const i=t,l=i.slice(0,W),r=i.length-W;return e.jsxs(x,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:[l.map((t=>{const n=U.find((e=>e.value===t));if(!n)return null;return e.jsx(b,{variant:A,color:"primary",label:B?B(n):n.label,avatar:n.img?e.jsx(j,{sx:{"& > .MuiAvatar-root, .MuiChip-avatar":{backgroundColor:"red"}},src:n.img}):void 0,onDelete:()=>(e=>{const t=u.filter((t=>t!==e));I(t)})(t),deleteIcon:e.jsx(y,{sx:{fontSize:"12px !important"}}),sx:{height:"27px",marginTop:"1px"}},t)})),r>0&&e.jsx(b,{sx:{height:"27px",marginTop:"0px"},label:`+${r} más`,variant:A})]})},displayEmpty:!0,input:e.jsx(k,{label:o}),sx:{"& .InputGroupChild > .MuiOutlinedInput-notchedOutline":{border:"none !important"}},MenuProps:{PaperProps:{style:{maxHeight:T,maxWidth:P}}},children:ee})})]})}export{I as Option,_ as Select,_ as default};
2
2
  //# sourceMappingURL=Select.js.map
@@ -1,2 +1,2 @@
1
- import{j as e}from"../../_virtual/jsx-runtime.js";import r,{Children as t,isValidElement as o,useState as l,useEffect as s}from"react";import{TableContainer as i,Paper as a,Table as n,TableHead as c,TableRow as d,TableCell as m,Checkbox as x,Typography as p,TableBody as h,Box as u,Select as f,MenuItem as j,IconButton as g,Button as b,Snackbar as y}from"@mui/material";import v from"../../node_modules/@mui/icons-material/esm/DownloadOutlined.js";import w from"../../node_modules/@mui/icons-material/esm/FirstPage.js";import C from"../../node_modules/@mui/icons-material/esm/LastPage.js";import k from"../../node_modules/@mui/icons-material/esm/KeyboardArrowLeft.js";import S from"../../node_modules/@mui/icons-material/esm/KeyboardArrowRight.js";import{exportToCSV as z,exportToExcel as E}from"./exportsUtils.js";import P from"../../node_modules/@mui/material/esm/Alert/Alert.js";const I=r.forwardRef((function(r,t){return e.jsx(P,Object.assign({elevation:6,ref:t,variant:"filled"},r))}));function M({data:r,children:P,currentPage:M,pageSize:A,totalPages:N,previousPage:_,nextPage:O,pageSizeSelectorValue:R=10,onPageChange:W,onPageSizeChange:F,visiblePageNumbers:T=5,enableCSVExport:V=!1,csvExportFileName:q="data.csv",csvExportButtonText:B="Exportar CSV",csvExportColumns:D,enableExcelExport:K=!1,excelExportFileName:L="data.xlsx",excelExportButtonText:G="Exportar Excel",excelExportColumns:H,enableRowSelection:U=!1,rowIdentifier:$,onSelectionChange:J}){const Q=t.toArray(P).filter((e=>o(e)&&"Column"===e.type.displayName)),[X,Y]=l(!1),[Z,ee]=l(""),[re,te]=l("info"),[oe,le]=l([]);s((()=>{le([])}),[r,M,A]),s((()=>{null==J||J(oe)}),[oe,J]);const se=(e,r)=>{"clickaway"!==r&&Y(!1)},ie="function"==typeof W&&"number"==typeof M,[ae,ne]=l(1),[ce,de]=l(R),me=ie?M:ae,xe=ie?A:ce,pe=ie?r:r.slice((me-1)*xe,me*xe),he=ie?N:Math.ceil(r.length/xe),ue=e=>{e<1||e>he||(ie?null==W||W(e):ne(e))},fe=(()=>{const e=[],r=he,t=me,o=Math.floor(T/2);let l=Math.max(1,t-o),s=Math.min(r,t+o);s-l+1<T&&(1===l?s=Math.min(r,l+T-1):s===r&&(l=Math.max(1,r-T+1)));for(let r=l;r<=s;r++)e.push(r);return e})(),je=e=>!!$&&oe.some((r=>r[$]===e[$])),ge=pe.filter(je).length,be=pe.length>0&&ge===pe.length,ye=ge>0&&ge<pe.length;return e.jsxs(i,{component:a,sx:{borderRadius:2,overflow:"auto"},children:[e.jsxs(n,{sx:{minWidth:650},"aria-label":"custom table",children:[e.jsx(c,{sx:{backgroundColor:e=>e.palette.grey[100]},children:e.jsxs(d,{children:[U&&e.jsxs(m,{padding:"checkbox",sx:{width:"50px"},children:[" ",e.jsx(x,{color:"primary",indeterminate:ye,checked:be,onChange:e=>{if($)if(e.target.checked){const e=[...oe];pe.forEach((r=>{const t=r[$];e.some((e=>e[$]===t))||e.push(r)})),le(e)}else{const e=oe.filter((e=>!pe.some((r=>r[$]===e[$]))));le(e)}else console.warn("`rowIdentifier` prop is required for row selection.")},inputProps:{"aria-label":"select all desserts"}})]}),Q.map(((r,t)=>e.jsx(m,{sx:{fontWeight:"bold",color:e=>e.palette.text.secondary,width:r.props.width||"auto",whiteSpace:"nowrap"},children:e.jsx(p,{variant:"subtitle2",fontWeight:"bold",children:r.props.name})},t)))]})}),e.jsxs(h,{children:[pe.map(((r,t)=>{const o=U&&je(r);return e.jsxs(d,{sx:{"&:last-child td, &:last-child th":{border:0},"&:hover":{backgroundColor:e=>e.palette.action.hover}},selected:o,children:[U&&e.jsxs(m,{padding:"checkbox",sx:{width:"50px"},children:[" ",e.jsx(x,{color:"primary",checked:o,onClick:e=>((e,r)=>{if(!$)return void console.warn("`rowIdentifier` prop is required for row selection.");const t=r[$],o=oe.findIndex((e=>e[$]===t));let l=[];-1===o?l=l.concat(oe,r):0===o?l=l.concat(oe.slice(1)):o===oe.length-1?l=l.concat(oe.slice(0,-1)):o>0&&(l=l.concat(oe.slice(0,o),oe.slice(o+1))),le(l)})(0,r),inputProps:{"aria-labelledby":`table-checkbox-${t}`}})]}),Q.map(((t,o)=>{const{field:l,children:s}=t.props;let i;return i=Array.isArray(l)?l.reduce(((e,t)=>(e[t]=r[t],e)),{}):{[l]:r[l]},e.jsx(m,{sx:{width:t.props.width||"auto",whiteSpace:"nowrap"},children:s(i)},o)}))]},t)})),0===pe.length&&e.jsx(d,{children:e.jsx(m,{colSpan:Q.length+(U?1:0),sx:{textAlign:"center",py:4},children:e.jsx(p,{variant:"body2",color:"text.secondary",children:"No hay datos disponibles para mostrar."})})})]})]}),(he>0||V||K||U&&oe.length>0)&&e.jsxs(u,{display:"flex",justifyContent:"space-between",alignItems:"center",p:2,children:[he>0&&e.jsx(f,{size:"small",value:xe,onChange:e=>{return r=Number(e.target.value),void(ie?(null==F||F(r),null==W||W(1)):(de(r),ne(1)));var r},children:[1,2,3,5,10,20,50,100].map((r=>e.jsxs(j,{value:r,children:["Mostrar ",r]},r)))}),he>0&&e.jsxs(u,{display:"flex",alignItems:"center",gap:.5,sx:{flexGrow:1,justifyContent:"center"},children:[e.jsx(g,{onClick:()=>ue(1),disabled:me<=1,size:"small",color:"primary",children:e.jsx(w,{fontSize:"small"})}),e.jsx(g,{onClick:()=>ue(me-1),disabled:me<=1,size:"small",color:"primary",children:e.jsx(k,{fontSize:"small"})}),fe.map((r=>e.jsx(b,{onClick:()=>ue(r),variant:me===r?"contained":"text",size:"small",sx:{minWidth:"32px",height:"32px"},children:r},r))),e.jsx(g,{onClick:()=>ue(me+1),disabled:me>=he,size:"small",color:"primary",children:e.jsx(S,{fontSize:"small"})}),e.jsx(g,{onClick:()=>ue(he),disabled:me>=he,size:"small",color:"primary",children:e.jsx(C,{fontSize:"small"})})]}),U&&oe.length>0&&e.jsxs(p,{variant:"subtitle2",sx:{mr:2},children:[oe.length," seleccionados"]}),(V||K)&&e.jsxs(u,{display:"flex",alignItems:"center",gap:1,children:[V&&e.jsx(b,{variant:"text",color:"primary",onClick:()=>z({data:r,columns:Q,fileName:q,exportColumns:D,setSnackbarOpen:Y,setSnackbarMessage:ee,setSnackbarSeverity:te}),size:"small",startIcon:e.jsx(v,{}),children:B}),K&&e.jsx(b,{variant:"text",color:"primary",onClick:()=>E({data:r,columns:Q,fileName:L,exportColumns:H,setSnackbarOpen:Y,setSnackbarMessage:ee,setSnackbarSeverity:te}),size:"small",startIcon:e.jsx(v,{}),children:G})]})]}),e.jsx(y,{open:X,autoHideDuration:3e3,onClose:se,anchorOrigin:{vertical:"bottom",horizontal:"center"},children:e.jsx(I,{onClose:se,severity:re,sx:{width:"100%"},children:Z})})]})}export{M as Table,M as default};
1
+ import{j as e}from"../../_virtual/jsx-runtime.js";import r,{Children as t,isValidElement as s,useState as o,useEffect as l}from"react";import{TableContainer as i,Table as n,TableHead as a,TableRow as c,TableCell as d,Checkbox as m,Typography as x,TableBody as p,Box as h,Select as u,MenuItem as f,IconButton as j,Button as g,Snackbar as b}from"@mui/material";import y from"../../node_modules/@mui/icons-material/esm/DownloadOutlined.js";import w from"../../node_modules/@mui/icons-material/esm/FirstPage.js";import C from"../../node_modules/@mui/icons-material/esm/LastPage.js";import v from"../../node_modules/@mui/icons-material/esm/KeyboardArrowLeft.js";import S from"../../node_modules/@mui/icons-material/esm/KeyboardArrowRight.js";import{exportToCSV as k,exportToExcel as z}from"./exportsUtils.js";import E from"../../node_modules/@mui/material/esm/Alert/Alert.js";const P=r.forwardRef((function(r,t){return e.jsx(E,Object.assign({elevation:6,ref:t,variant:"filled"},r))}));function F({data:r,children:E,currentPage:F,pageSize:I,totalPages:M,previousPage:A,nextPage:N,pageSizeSelectorValue:_=10,onPageChange:O,onPageSizeChange:R,visiblePageNumbers:T=5,enableCSVExport:V=!1,csvExportFileName:q="data.csv",csvExportButtonText:B="Exportar CSV",csvExportColumns:D,enableExcelExport:K=!1,excelExportFileName:L="data.xlsx",excelExportButtonText:W="Exportar Excel",excelExportColumns:G,enableRowSelection:H=!1,rowIdentifier:U,onSelectionChange:$}){const J=t.toArray(E).filter((e=>s(e)&&"Column"===e.type.displayName)),[Q,X]=o(!1),[Y,Z]=o(""),[ee,re]=o("info"),[te,se]=o([]);l((()=>{se([])}),[r,F,I]),l((()=>{null==$||$(te)}),[te,$]);const oe=(e,r)=>{"clickaway"!==r&&X(!1)},le="function"==typeof O&&"number"==typeof F,[ie,ne]=o(1),[ae,ce]=o(_),de=le?F:ie,me=le?I:ae,xe=le?r:r.slice((de-1)*me,de*me),pe=le?M:Math.ceil(r.length/me),he=e=>{e<1||e>pe||(le?null==O||O(e):ne(e))},ue=(()=>{const e=[],r=pe,t=de,s=Math.floor(T/2);let o=Math.max(1,t-s),l=Math.min(r,t+s);l-o+1<T&&(1===o?l=Math.min(r,o+T-1):l===r&&(o=Math.max(1,r-T+1)));for(let r=o;r<=l;r++)e.push(r);return e})(),fe=e=>!!U&&te.some((r=>r[U]===e[U])),je=xe.filter(fe).length,ge=xe.length>0&&je===xe.length,be=je>0&&je<xe.length;return e.jsxs(i,{children:[e.jsxs(n,{sx:{minWidth:650},"aria-label":"custom table",children:[e.jsx(a,{sx:{backgroundColor:"#fff"},children:e.jsxs(c,{children:[H&&e.jsxs(d,{padding:"checkbox",sx:{width:"50px"},children:[" ",e.jsx(m,{color:"primary",indeterminate:be,checked:ge,onChange:e=>{if(U)if(e.target.checked){const e=[...te];xe.forEach((r=>{const t=r[U];e.some((e=>e[U]===t))||e.push(r)})),se(e)}else{const e=te.filter((e=>!xe.some((r=>r[U]===e[U]))));se(e)}else console.warn("`rowIdentifier` prop is required for row selection.")},inputProps:{"aria-label":"select all desserts"}})]}),J.map(((r,t)=>e.jsx(d,{sx:{fontSize:"12px",color:e=>e.palette.text.secondary,width:r.props.width||"auto",whiteSpace:"nowrap"},children:e.jsx(x,{sx:{fontSize:"12px"},children:r.props.name})},t)))]})}),e.jsxs(p,{sx:{borderRadius:"10px",overflow:"hidden"},children:[xe.map(((r,t)=>{const s=H&&fe(r);return e.jsxs(c,{sx:{backgroundColor:"#F8F8F8","&:last-child td, &:last-child th":{border:0},"&:hover":{backgroundColor:e=>"#FFF"}},selected:s,children:[H&&e.jsxs(d,{padding:"checkbox",sx:{width:"50px"},children:[" ",e.jsx(m,{color:"primary",checked:s,onClick:e=>((e,r)=>{if(!U)return void console.warn("`rowIdentifier` prop is required for row selection.");const t=r[U],s=te.findIndex((e=>e[U]===t));let o=[];-1===s?o=o.concat(te,r):0===s?o=o.concat(te.slice(1)):s===te.length-1?o=o.concat(te.slice(0,-1)):s>0&&(o=o.concat(te.slice(0,s),te.slice(s+1))),se(o)})(0,r),inputProps:{"aria-labelledby":`table-checkbox-${t}`}})]}),J.map(((t,s)=>{const{field:o,children:l}=t.props;let i;return i=Array.isArray(o)?o.reduce(((e,t)=>(e[t]=r[t],e)),{}):{[o]:r[o]},e.jsx(d,{sx:{fontSize:"14px",width:t.props.width||"auto",whiteSpace:"nowrap"},children:l(i)},s)}))]},t)})),0===xe.length&&e.jsx(c,{children:e.jsx(d,{colSpan:J.length+(H?1:0),sx:{textAlign:"center",py:4},children:e.jsx(x,{variant:"body2",color:"text.secondary",children:"No hay datos disponibles para mostrar."})})})]})]}),(pe>0||V||K||H&&te.length>0)&&e.jsxs(h,{display:"flex",justifyContent:"space-between",alignItems:"center",p:2,children:[pe>0&&e.jsx(u,{size:"small",value:me,onChange:e=>{return r=Number(e.target.value),void(le?(null==R||R(r),null==O||O(1)):(ce(r),ne(1)));var r},children:[1,2,3,5,10,20,50,100].map((r=>e.jsxs(f,{value:r,children:["Mostrar ",r]},r)))}),pe>0&&e.jsxs(h,{display:"flex",alignItems:"center",gap:.5,sx:{flexGrow:1,justifyContent:"center"},children:[e.jsx(j,{onClick:()=>he(1),disabled:de<=1,size:"small",color:"primary",children:e.jsx(w,{fontSize:"small"})}),e.jsx(j,{onClick:()=>he(de-1),disabled:de<=1,size:"small",color:"primary",children:e.jsx(v,{fontSize:"small"})}),ue.map((r=>e.jsx(g,{onClick:()=>he(r),variant:de===r?"contained":"text",size:"small",sx:{minWidth:"32px",height:"32px"},children:r},r))),e.jsx(j,{onClick:()=>he(de+1),disabled:de>=pe,size:"small",color:"primary",children:e.jsx(S,{fontSize:"small"})}),e.jsx(j,{onClick:()=>he(pe),disabled:de>=pe,size:"small",color:"primary",children:e.jsx(C,{fontSize:"small"})})]}),H&&te.length>0&&e.jsxs(x,{variant:"subtitle2",sx:{mr:2},children:[te.length," seleccionados"]}),(V||K)&&e.jsxs(h,{display:"flex",alignItems:"center",gap:1,children:[V&&e.jsx(g,{variant:"text",color:"primary",onClick:()=>k({data:r,columns:J,fileName:q,exportColumns:D,setSnackbarOpen:X,setSnackbarMessage:Z,setSnackbarSeverity:re}),size:"small",startIcon:e.jsx(y,{}),children:B}),K&&e.jsx(g,{variant:"text",color:"primary",onClick:()=>z({data:r,columns:J,fileName:L,exportColumns:G,setSnackbarOpen:X,setSnackbarMessage:Z,setSnackbarSeverity:re}),size:"small",startIcon:e.jsx(y,{}),children:W})]})]}),e.jsx(b,{open:Q,autoHideDuration:3e3,onClose:oe,anchorOrigin:{vertical:"bottom",horizontal:"center"},children:e.jsx(P,{onClose:oe,severity:ee,sx:{width:"100%"},children:Y})})]})}export{F as Table,F as default};
2
2
  //# sourceMappingURL=Table.js.map
@@ -0,0 +1,11 @@
1
+ import * as React from "react";
2
+ import { TimelineItemProps as MuiTimelineItemProps } from "@mui/lab/TimelineItem";
3
+ interface TimelineItemProps extends MuiTimelineItemProps {
4
+ connectorColor?: string;
5
+ }
6
+ interface TimelineProps {
7
+ children: React.ReactElement<TimelineItemProps>[];
8
+ position?: "left" | "right" | "center";
9
+ }
10
+ export declare const Timeline: React.FC<TimelineProps>;
11
+ export default Timeline;
@@ -0,0 +1 @@
1
+ export declare const DefaultTimelineDefinition: string;
@@ -0,0 +1,2 @@
1
+ import{j as e}from"../../_virtual/jsx-runtime.js";import*as o from"react";import i from"../../node_modules/@mui/lab/esm/Timeline/Timeline.js";import n from"../../node_modules/@mui/lab/esm/TimelineContent/timelineContentClasses.js";import t from"../../node_modules/@mui/lab/esm/TimelineItem/timelineItemClasses.js";const l=e=>"right"===e?{[`& .${n.root}`]:{flex:.2}}:"left"===e?{[`& .${t.root}:before`]:{flex:0,padding:0}}:{},m=({children:n,position:t="center"})=>{const m=o.Children.count(n);return e.jsx(i,{sx:l(t),children:o.Children.map(n,((e,i)=>o.isValidElement(e)?o.cloneElement(e,{connectorColor:i<m-1?e.props.connectorColor:void 0}):null))})};export{m as Timeline,m as default};
2
+ //# sourceMappingURL=Timeline.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Timeline.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import { Timeline } from "./Timeline";
3
+ declare const meta: Meta<typeof Timeline>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Timeline>;
6
+ export declare const Default: Story;
@@ -0,0 +1,7 @@
1
+ export interface TimelineItemProps {
2
+ dotColor?: 'primary' | 'secondary' | 'grey' | 'inherit' | 'success' | 'error' | 'info' | 'warning';
3
+ connectorColor?: string;
4
+ children: React.ReactNode;
5
+ }
6
+ export declare const TimelineItem: React.FC<TimelineItemProps>;
7
+ export default TimelineItem;
@@ -0,0 +1,2 @@
1
+ import{j as e}from"../../_virtual/jsx-runtime.js";import o from"../../node_modules/@mui/lab/esm/TimelineItem/TimelineItem.js";import m from"../../node_modules/@mui/lab/esm/TimelineSeparator/TimelineSeparator.js";import i from"../../node_modules/@mui/lab/esm/TimelineDot/TimelineDot.js";import n from"../../node_modules/@mui/lab/esm/TimelineConnector/TimelineConnector.js";import l from"../../node_modules/@mui/lab/esm/TimelineContent/TimelineContent.js";const r=({dotColor:r,connectorColor:s,children:t})=>e.jsxs(o,{children:[e.jsxs(m,{children:[e.jsx(i,{color:r}),s&&e.jsx(n,{sx:{bgcolor:s}})]}),e.jsx(l,{children:t})]});export{r as TimelineItem,r as default};
2
+ //# sourceMappingURL=TimelineItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TimelineItem.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export { default as Timeline } from './Timeline';
2
+ export { default as TimelineItem } from './TimelineItem';