@ceed/cds 0.0.187-treeshaking.1 → 0.0.187

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 (335) hide show
  1. package/dist/components/Accordions/index.d.ts +2 -2
  2. package/dist/components/Autocomplete/index.d.ts +2 -2
  3. package/dist/components/Avatar/index.d.ts +2 -2
  4. package/dist/components/Box/index.d.ts +2 -2
  5. package/dist/components/Breadcrumbs/index.d.ts +2 -2
  6. package/dist/components/Button/index.d.ts +2 -2
  7. package/dist/components/Calendar/Calendar.d.ts +1 -1
  8. package/dist/components/Calendar/hooks/use-calendar-props.d.ts +3 -3
  9. package/dist/components/Calendar/hooks/use-calendar.d.ts +1 -1
  10. package/dist/components/Calendar/index.d.ts +2 -2
  11. package/dist/components/Card/index.d.ts +2 -2
  12. package/dist/components/Checkbox/index.d.ts +2 -2
  13. package/dist/components/Chip/index.d.ts +2 -2
  14. package/dist/components/Container/index.d.ts +2 -2
  15. package/dist/components/CurrencyInput/index.d.ts +2 -2
  16. package/dist/components/DataTable/DataTable.d.ts +1 -1
  17. package/dist/components/DataTable/index.d.ts +2 -2
  18. package/dist/components/DataTable/types.d.ts +7 -7
  19. package/dist/components/DatePicker/DatePicker.d.ts +1 -1
  20. package/dist/components/DatePicker/index.d.ts +2 -2
  21. package/dist/components/DateRangePicker/DateRangePicker.d.ts +1 -1
  22. package/dist/components/DateRangePicker/index.d.ts +2 -2
  23. package/dist/components/DialogActions/index.d.ts +2 -2
  24. package/dist/components/DialogContent/index.d.ts +2 -2
  25. package/dist/components/DialogFrame/DialogFrame.d.ts +1 -1
  26. package/dist/components/DialogFrame/index.d.ts +2 -2
  27. package/dist/components/DialogTitle/index.d.ts +2 -2
  28. package/dist/components/Divider/index.d.ts +2 -2
  29. package/dist/components/Drawer/index.d.ts +2 -2
  30. package/dist/components/Dropdown/index.d.ts +2 -2
  31. package/dist/components/FormControl/index.d.ts +2 -2
  32. package/dist/components/FormHelperText/index.d.ts +2 -2
  33. package/dist/components/FormLabel/index.d.ts +2 -2
  34. package/dist/components/Grid/index.d.ts +2 -2
  35. package/dist/components/IconButton/index.d.ts +2 -2
  36. package/dist/components/Input/Input.d.ts +1 -1
  37. package/dist/components/Input/index.d.ts +2 -2
  38. package/dist/components/InsetDrawer/index.d.ts +2 -2
  39. package/dist/components/Markdown/Markdown.d.ts +22 -6
  40. package/dist/components/Markdown/index.d.ts +2 -2
  41. package/dist/components/Menu/index.d.ts +2 -2
  42. package/dist/components/MenuButton/MenuButton.d.ts +1 -1
  43. package/dist/components/Modal/Modal.d.ts +4 -4
  44. package/dist/components/Modal/index.d.ts +2 -2
  45. package/dist/components/MonthPicker/MonthPicker.d.ts +1 -1
  46. package/dist/components/MonthPicker/index.d.ts +2 -2
  47. package/dist/components/MonthRangePicker/MonthRangePicker.d.ts +1 -1
  48. package/dist/components/MonthRangePicker/index.d.ts +2 -2
  49. package/dist/components/NavigationGroup/index.d.ts +2 -2
  50. package/dist/components/NavigationItem/index.d.ts +2 -2
  51. package/dist/components/Navigator/index.d.ts +2 -2
  52. package/dist/components/Pagination/Pagination.d.ts +2 -2
  53. package/dist/components/Pagination/index.d.ts +2 -2
  54. package/dist/components/PercentageInput/index.d.ts +2 -2
  55. package/dist/components/Radio/index.d.ts +2 -2
  56. package/dist/components/RadioList/RadioList.d.ts +1 -1
  57. package/dist/components/RadioList/index.d.ts +2 -2
  58. package/dist/components/Select/Select.d.ts +1 -1
  59. package/dist/components/Select/index.d.ts +2 -2
  60. package/dist/components/Sheet/index.d.ts +2 -2
  61. package/dist/components/Stack/index.d.ts +2 -2
  62. package/dist/components/Stepper/index.d.ts +2 -2
  63. package/dist/components/Switch/index.d.ts +2 -2
  64. package/dist/components/Table/index.d.ts +2 -2
  65. package/dist/components/Tabs/index.d.ts +2 -2
  66. package/dist/components/Textarea/Textarea.d.ts +17 -3
  67. package/dist/components/Textarea/index.d.ts +2 -2
  68. package/dist/components/ThemeProvider/ThemeProvider.d.ts +7 -7
  69. package/dist/components/ThemeProvider/index.d.ts +2 -2
  70. package/dist/components/Tooltip/index.d.ts +2 -2
  71. package/dist/components/Typography/index.d.ts +2 -2
  72. package/dist/components/Uploader/Uploader.d.ts +3 -4
  73. package/dist/components/Uploader/index.d.ts +2 -2
  74. package/dist/components/index.d.ts +53 -53
  75. package/dist/index.d.ts +1 -1
  76. package/dist/index.js +2 -52
  77. package/framer/index.js +30 -30
  78. package/package.json +4 -8
  79. package/dist/_virtual/_commonjsHelpers.js +0 -30
  80. package/dist/_virtual/bind-all.js +0 -3
  81. package/dist/_virtual/bind.js +0 -3
  82. package/dist/_virtual/colorManipulator.js +0 -5
  83. package/dist/_virtual/colorManipulator2.js +0 -3
  84. package/dist/_virtual/createStyled.js +0 -7
  85. package/dist/_virtual/createStyled2.js +0 -3
  86. package/dist/_virtual/extends.js +0 -3
  87. package/dist/_virtual/index.js +0 -5
  88. package/dist/_virtual/index10.js +0 -6
  89. package/dist/_virtual/index11.js +0 -6
  90. package/dist/_virtual/index12.js +0 -6
  91. package/dist/_virtual/index2.js +0 -3
  92. package/dist/_virtual/index3.js +0 -7
  93. package/dist/_virtual/index4.js +0 -3
  94. package/dist/_virtual/index5.js +0 -6
  95. package/dist/_virtual/index6.js +0 -6
  96. package/dist/_virtual/index7.js +0 -6
  97. package/dist/_virtual/index8.js +0 -6
  98. package/dist/_virtual/index9.js +0 -6
  99. package/dist/_virtual/interopRequireDefault.js +0 -3
  100. package/dist/_virtual/objectWithoutPropertiesLoose.js +0 -3
  101. package/dist/components/Accordions/Accordions.js +0 -43
  102. package/dist/components/Autocomplete/Autocomplete.js +0 -196
  103. package/dist/components/Autocomplete/index.js +0 -5
  104. package/dist/components/Avatar/Avatar.js +0 -42
  105. package/dist/components/Box/Box.js +0 -8
  106. package/dist/components/Box/index.js +0 -5
  107. package/dist/components/Breadcrumbs/Breadcrumbs.js +0 -47
  108. package/dist/components/Button/Button.js +0 -20
  109. package/dist/components/Button/index.js +0 -5
  110. package/dist/components/Calendar/Calendar.js +0 -333
  111. package/dist/components/Calendar/hooks/use-calendar-props.js +0 -74
  112. package/dist/components/Calendar/hooks/use-calendar.js +0 -247
  113. package/dist/components/Calendar/index.js +0 -5
  114. package/dist/components/Calendar/utils/index.js +0 -74
  115. package/dist/components/Card/Card.js +0 -20
  116. package/dist/components/Checkbox/Checkbox.js +0 -19
  117. package/dist/components/Checkbox/index.js +0 -5
  118. package/dist/components/Chip/Chip.js +0 -8
  119. package/dist/components/Chip/index.js +0 -5
  120. package/dist/components/Container/Container.js +0 -49
  121. package/dist/components/CurrencyInput/CurrencyInput.js +0 -91
  122. package/dist/components/CurrencyInput/hooks/use-currency-setting.js +0 -167
  123. package/dist/components/CurrencyInput/index.js +0 -5
  124. package/dist/components/DataTable/DataTable.js +0 -568
  125. package/dist/components/DatePicker/DatePicker.js +0 -210
  126. package/dist/components/DatePicker/index.js +0 -5
  127. package/dist/components/DateRangePicker/DateRangePicker.js +0 -213
  128. package/dist/components/DialogActions/DialogActions.js +0 -14
  129. package/dist/components/DialogActions/index.js +0 -5
  130. package/dist/components/DialogContent/DialogContent.js +0 -11
  131. package/dist/components/DialogContent/index.js +0 -5
  132. package/dist/components/DialogFrame/DialogFrame.js +0 -31
  133. package/dist/components/DialogTitle/DialogTitle.js +0 -11
  134. package/dist/components/DialogTitle/index.js +0 -5
  135. package/dist/components/Divider/Divider.js +0 -19
  136. package/dist/components/Drawer/Drawer.js +0 -40
  137. package/dist/components/Dropdown/Dropdown.js +0 -8
  138. package/dist/components/Dropdown/index.js +0 -5
  139. package/dist/components/FormControl/FormControl.js +0 -15
  140. package/dist/components/FormControl/index.js +0 -5
  141. package/dist/components/FormHelperText/FormHelperText.js +0 -8
  142. package/dist/components/FormHelperText/index.js +0 -5
  143. package/dist/components/FormLabel/FormLabel.js +0 -8
  144. package/dist/components/FormLabel/index.js +0 -5
  145. package/dist/components/IconButton/IconButton.js +0 -20
  146. package/dist/components/IconButton/index.js +0 -5
  147. package/dist/components/Input/Input.js +0 -60
  148. package/dist/components/Input/index.js +0 -5
  149. package/dist/components/InsetDrawer/InsetDrawer.js +0 -30
  150. package/dist/components/Markdown/Markdown.js +0 -36
  151. package/dist/components/Menu/Menu.js +0 -43
  152. package/dist/components/Menu/index.js +0 -6
  153. package/dist/components/MenuButton/MenuButton.js +0 -26
  154. package/dist/components/Modal/Modal.js +0 -43
  155. package/dist/components/MonthPicker/MonthPicker.js +0 -162
  156. package/dist/components/MonthRangePicker/MonthRangePicker.js +0 -172
  157. package/dist/components/NavigationGroup/NavigationGroup.js +0 -42
  158. package/dist/components/NavigationItem/NavigationItem.js +0 -45
  159. package/dist/components/Navigator/Navigator.js +0 -30
  160. package/dist/components/Pagination/Pagination.js +0 -117
  161. package/dist/components/Pagination/index.js +0 -5
  162. package/dist/components/PercentageInput/PercentageInput.js +0 -85
  163. package/dist/components/Radio/Radio.js +0 -11
  164. package/dist/components/RadioList/RadioList.js +0 -18
  165. package/dist/components/Select/Select.js +0 -56
  166. package/dist/components/Select/index.js +0 -6
  167. package/dist/components/Sheet/Sheet.js +0 -8
  168. package/dist/components/Sheet/index.js +0 -5
  169. package/dist/components/Stack/index.js +0 -2
  170. package/dist/components/Stepper/Stepper.js +0 -66
  171. package/dist/components/Switch/Switch.js +0 -46
  172. package/dist/components/Table/Table.js +0 -64
  173. package/dist/components/Tabs/Tabs.js +0 -17
  174. package/dist/components/Textarea/Textarea.js +0 -31
  175. package/dist/components/Textarea/index.js +0 -5
  176. package/dist/components/ThemeProvider/ThemeProvider.js +0 -240
  177. package/dist/components/Tooltip/Tooltip.js +0 -19
  178. package/dist/components/Tooltip/index.js +0 -5
  179. package/dist/components/Typography/Typography.js +0 -19
  180. package/dist/components/Typography/index.js +0 -5
  181. package/dist/components/Uploader/Uploader.js +0 -402
  182. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/adapter/element-adapter-native-data-key.js +0 -8
  183. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/adapter/external-adapter.js +0 -245
  184. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/combine.js +0 -1
  185. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/external/adapter.js +0 -1
  186. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/external/file.js +0 -1
  187. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/prevent-unhandled.js +0 -1
  188. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/honey-pot-fix/get-element-from-point-without-honey-pot.js +0 -19
  189. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/honey-pot-fix/honey-pot-data-attribute.js +0 -5
  190. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/honey-pot-fix/is-honey-pot-element.js +0 -7
  191. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/ledger/dispatch-consumer-event.js +0 -128
  192. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/ledger/lifecycle-manager.js +0 -340
  193. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/ledger/usage-ledger.js +0 -33
  194. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/make-adapter/make-adapter.js +0 -60
  195. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/make-adapter/make-drop-target.js +0 -312
  196. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/make-adapter/make-monitor.js +0 -96
  197. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/public-utils/combine.js +0 -13
  198. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/public-utils/external/file.js +0 -23
  199. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/public-utils/once.js +0 -18
  200. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/public-utils/prevent-unhandled.js +0 -102
  201. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/add-attribute.js +0 -10
  202. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/android.js +0 -3
  203. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/changing-window/count-events-for-safari.js +0 -123
  204. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/changing-window/is-entering-window.js +0 -55
  205. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/changing-window/is-from-another-window.js +0 -18
  206. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/changing-window/is-leaving-window.js +0 -55
  207. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/detect-broken-drag.js +0 -49
  208. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/get-input.js +0 -16
  209. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/is-firefox.js +0 -15
  210. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/is-safari.js +0 -18
  211. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/media-types/text-media-type.js +0 -8
  212. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -7
  213. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -5
  214. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/arrayWithoutHoles.js +0 -7
  215. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/defineProperty.js +0 -18
  216. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/iterableToArray.js +0 -5
  217. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/iterableToArrayLimit.js +0 -26
  218. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/nonIterableRest.js +0 -5
  219. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/nonIterableSpread.js +0 -5
  220. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/slicedToArray.js +0 -10
  221. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/toConsumableArray.js +0 -10
  222. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/toPrimitive.js +0 -14
  223. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/toPropertyKey.js +0 -9
  224. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/typeof.js +0 -11
  225. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -12
  226. package/dist/external/@babel/runtime/helpers/esm/extends.js +0 -16
  227. package/dist/external/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -14
  228. package/dist/external/@babel/runtime/helpers/extends.js +0 -28
  229. package/dist/external/@babel/runtime/helpers/interopRequireDefault.js +0 -19
  230. package/dist/external/@babel/runtime/helpers/objectWithoutPropertiesLoose.js +0 -26
  231. package/dist/external/@emotion/cache/dist/emotion-cache.esm.js +0 -653
  232. package/dist/external/@emotion/memoize/dist/emotion-memoize.esm.js +0 -9
  233. package/dist/external/@emotion/sheet/dist/emotion-sheet.esm.js +0 -154
  234. package/dist/external/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +0 -16
  235. package/dist/external/@mui/icons-material/esm/ArrowUpwardRounded.js +0 -8
  236. package/dist/external/@mui/icons-material/esm/CalendarToday.js +0 -8
  237. package/dist/external/@mui/icons-material/esm/Check.js +0 -8
  238. package/dist/external/@mui/icons-material/esm/ChevronLeft.js +0 -8
  239. package/dist/external/@mui/icons-material/esm/ChevronRight.js +0 -8
  240. package/dist/external/@mui/icons-material/esm/ClearRounded.js +0 -8
  241. package/dist/external/@mui/icons-material/esm/Close.js +0 -8
  242. package/dist/external/@mui/icons-material/esm/CloudUploadRounded.js +0 -8
  243. package/dist/external/@mui/icons-material/esm/ExpandMore.js +0 -8
  244. package/dist/external/@mui/icons-material/esm/Info.js +0 -8
  245. package/dist/external/@mui/icons-material/esm/UploadFileRounded.js +0 -8
  246. package/dist/external/@mui/material/SvgIcon/SvgIcon.js +0 -186
  247. package/dist/external/@mui/material/SvgIcon/svgIconClasses.js +0 -9
  248. package/dist/external/@mui/material/colors/blue.js +0 -18
  249. package/dist/external/@mui/material/colors/common.js +0 -6
  250. package/dist/external/@mui/material/colors/green.js +0 -18
  251. package/dist/external/@mui/material/colors/grey.js +0 -18
  252. package/dist/external/@mui/material/colors/lightBlue.js +0 -18
  253. package/dist/external/@mui/material/colors/orange.js +0 -18
  254. package/dist/external/@mui/material/colors/purple.js +0 -18
  255. package/dist/external/@mui/material/colors/red.js +0 -18
  256. package/dist/external/@mui/material/styles/createMixins.js +0 -19
  257. package/dist/external/@mui/material/styles/createPalette.js +0 -308
  258. package/dist/external/@mui/material/styles/createTheme.js +0 -82
  259. package/dist/external/@mui/material/styles/createTransitions.js +0 -91
  260. package/dist/external/@mui/material/styles/createTypography.js +0 -93
  261. package/dist/external/@mui/material/styles/defaultTheme.js +0 -5
  262. package/dist/external/@mui/material/styles/identifier.js +0 -3
  263. package/dist/external/@mui/material/styles/rootShouldForwardProp.js +0 -5
  264. package/dist/external/@mui/material/styles/shadows.js +0 -11
  265. package/dist/external/@mui/material/styles/slotShouldForwardProp.js +0 -6
  266. package/dist/external/@mui/material/styles/styled.js +0 -12
  267. package/dist/external/@mui/material/styles/useThemeProps.js +0 -17
  268. package/dist/external/@mui/material/styles/zIndex.js +0 -14
  269. package/dist/external/@mui/material/utils/capitalize.js +0 -5
  270. package/dist/external/@mui/material/utils/createSvgIcon.js +0 -24
  271. package/dist/external/@mui/styled-engine/GlobalStyles/GlobalStyles.js +0 -24
  272. package/dist/external/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider.js +0 -37
  273. package/dist/external/@mui/styled-engine/index.js +0 -38
  274. package/dist/external/@mui/system/colorManipulator.js +0 -385
  275. package/dist/external/@mui/system/createStyled.js +0 -270
  276. package/dist/external/@mui/system/esm/borders.js +0 -51
  277. package/dist/external/@mui/system/esm/breakpoints.js +0 -66
  278. package/dist/external/@mui/system/esm/compose.js +0 -26
  279. package/dist/external/@mui/system/esm/createTheme/applyStyles.js +0 -76
  280. package/dist/external/@mui/system/esm/createTheme/createBreakpoints.js +0 -82
  281. package/dist/external/@mui/system/esm/createTheme/createSpacing.js +0 -34
  282. package/dist/external/@mui/system/esm/createTheme/createTheme.js +0 -45
  283. package/dist/external/@mui/system/esm/createTheme/index.js +0 -3
  284. package/dist/external/@mui/system/esm/createTheme/shape.js +0 -5
  285. package/dist/external/@mui/system/esm/cssGrid.js +0 -86
  286. package/dist/external/@mui/system/esm/memoize.js +0 -11
  287. package/dist/external/@mui/system/esm/merge.js +0 -12
  288. package/dist/external/@mui/system/esm/palette.js +0 -28
  289. package/dist/external/@mui/system/esm/responsivePropType.js +0 -5
  290. package/dist/external/@mui/system/esm/sizing.js +0 -67
  291. package/dist/external/@mui/system/esm/spacing.js +0 -144
  292. package/dist/external/@mui/system/esm/style.js +0 -77
  293. package/dist/external/@mui/system/esm/styleFunctionSx/defaultSxConfig.js +0 -293
  294. package/dist/external/@mui/system/esm/styleFunctionSx/extendSxProp.js +0 -51
  295. package/dist/external/@mui/system/esm/styleFunctionSx/index.js +0 -3
  296. package/dist/external/@mui/system/esm/styleFunctionSx/styleFunctionSx.js +0 -129
  297. package/dist/external/@mui/system/esm/useTheme.js +0 -9
  298. package/dist/external/@mui/system/esm/useThemeProps/getThemeProps.js +0 -15
  299. package/dist/external/@mui/system/esm/useThemeProps/useThemeProps.js +0 -22
  300. package/dist/external/@mui/system/esm/useThemeWithoutDefault.js +0 -12
  301. package/dist/external/@mui/utils/ClassNameGenerator/ClassNameGenerator.js +0 -18
  302. package/dist/external/@mui/utils/capitalize/capitalize.js +0 -14
  303. package/dist/external/@mui/utils/capitalize/index.js +0 -1
  304. package/dist/external/@mui/utils/clamp/clamp.js +0 -5
  305. package/dist/external/@mui/utils/clamp/index.js +0 -1
  306. package/dist/external/@mui/utils/composeClasses/composeClasses.js +0 -23
  307. package/dist/external/@mui/utils/deepmerge/deepmerge.js +0 -44
  308. package/dist/external/@mui/utils/deepmerge/index.js +0 -1
  309. package/dist/external/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js +0 -21
  310. package/dist/external/@mui/utils/formatMuiErrorMessage/index.js +0 -1
  311. package/dist/external/@mui/utils/generateUtilityClass/generateUtilityClass.js +0 -22
  312. package/dist/external/@mui/utils/generateUtilityClasses/generateUtilityClasses.js +0 -11
  313. package/dist/external/@mui/utils/getDisplayName/getDisplayName.js +0 -49
  314. package/dist/external/@mui/utils/getDisplayName/index.js +0 -1
  315. package/dist/external/@mui/utils/resolveProps/resolveProps.js +0 -37
  316. package/dist/external/bind-event-listener/dist/bind-all.js +0 -54
  317. package/dist/external/bind-event-listener/dist/bind.js +0 -21
  318. package/dist/external/bind-event-listener/dist/index.js +0 -21
  319. package/dist/external/clsx/dist/clsx.js +0 -3
  320. package/dist/external/object-assign/index.js +0 -99
  321. package/dist/external/prop-types/checkPropTypes.js +0 -115
  322. package/dist/external/prop-types/factoryWithThrowingShims.js +0 -74
  323. package/dist/external/prop-types/factoryWithTypeCheckers.js +0 -625
  324. package/dist/external/prop-types/index.js +0 -33
  325. package/dist/external/prop-types/lib/ReactPropTypesSecret.js +0 -21
  326. package/dist/external/prop-types/lib/has.js +0 -11
  327. package/dist/external/raf-schd/dist/raf-schd.esm.js +0 -34
  328. package/dist/external/stylis/src/Enum.js +0 -12
  329. package/dist/external/stylis/src/Middleware.js +0 -32
  330. package/dist/external/stylis/src/Parser.js +0 -193
  331. package/dist/external/stylis/src/Serializer.js +0 -38
  332. package/dist/external/stylis/src/Tokenizer.js +0 -223
  333. package/dist/external/stylis/src/Utility.js +0 -117
  334. package/dist/hooks/use-controlled-state/index.js +0 -23
  335. package/dist/libs/rehype-accent/index.js +0 -39
@@ -1,308 +0,0 @@
1
- import _extends from '../../../@babel/runtime/helpers/esm/extends.js';
2
- import _objectWithoutPropertiesLoose from '../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js';
3
- import { c as colorManipulatorExports } from '../../../../_virtual/colorManipulator.js';
4
- import common from '../colors/common.js';
5
- import grey from '../colors/grey.js';
6
- import purple from '../colors/purple.js';
7
- import red from '../colors/red.js';
8
- import orange from '../colors/orange.js';
9
- import blue from '../colors/blue.js';
10
- import lightBlue from '../colors/lightBlue.js';
11
- import green from '../colors/green.js';
12
- import deepmerge from '../../utils/deepmerge/deepmerge.js';
13
- import formatMuiErrorMessage from '../../utils/formatMuiErrorMessage/formatMuiErrorMessage.js';
14
-
15
- const _excluded = ["mode", "contrastThreshold", "tonalOffset"];
16
- const light = {
17
- // The colors used to style the text.
18
- text: {
19
- // The most important text.
20
- primary: 'rgba(0, 0, 0, 0.87)',
21
- // Secondary text.
22
- secondary: 'rgba(0, 0, 0, 0.6)',
23
- // Disabled text have even lower visual prominence.
24
- disabled: 'rgba(0, 0, 0, 0.38)'
25
- },
26
- // The color used to divide different elements.
27
- divider: 'rgba(0, 0, 0, 0.12)',
28
- // The background colors used to style the surfaces.
29
- // Consistency between these values is important.
30
- background: {
31
- paper: common.white,
32
- default: common.white
33
- },
34
- // The colors used to style the action elements.
35
- action: {
36
- // The color of an active action like an icon button.
37
- active: 'rgba(0, 0, 0, 0.54)',
38
- // The color of an hovered action.
39
- hover: 'rgba(0, 0, 0, 0.04)',
40
- hoverOpacity: 0.04,
41
- // The color of a selected action.
42
- selected: 'rgba(0, 0, 0, 0.08)',
43
- selectedOpacity: 0.08,
44
- // The color of a disabled action.
45
- disabled: 'rgba(0, 0, 0, 0.26)',
46
- // The background color of a disabled action.
47
- disabledBackground: 'rgba(0, 0, 0, 0.12)',
48
- disabledOpacity: 0.38,
49
- focus: 'rgba(0, 0, 0, 0.12)',
50
- focusOpacity: 0.12,
51
- activatedOpacity: 0.12
52
- }
53
- };
54
- const dark = {
55
- text: {
56
- primary: common.white,
57
- secondary: 'rgba(255, 255, 255, 0.7)',
58
- disabled: 'rgba(255, 255, 255, 0.5)',
59
- icon: 'rgba(255, 255, 255, 0.5)'
60
- },
61
- divider: 'rgba(255, 255, 255, 0.12)',
62
- background: {
63
- paper: '#121212',
64
- default: '#121212'
65
- },
66
- action: {
67
- active: common.white,
68
- hover: 'rgba(255, 255, 255, 0.08)',
69
- hoverOpacity: 0.08,
70
- selected: 'rgba(255, 255, 255, 0.16)',
71
- selectedOpacity: 0.16,
72
- disabled: 'rgba(255, 255, 255, 0.3)',
73
- disabledBackground: 'rgba(255, 255, 255, 0.12)',
74
- disabledOpacity: 0.38,
75
- focus: 'rgba(255, 255, 255, 0.12)',
76
- focusOpacity: 0.12,
77
- activatedOpacity: 0.24
78
- }
79
- };
80
- function addLightOrDark(intent, direction, shade, tonalOffset) {
81
- const tonalOffsetLight = tonalOffset.light || tonalOffset;
82
- const tonalOffsetDark = tonalOffset.dark || tonalOffset * 1.5;
83
- if (!intent[direction]) {
84
- if (intent.hasOwnProperty(shade)) {
85
- intent[direction] = intent[shade];
86
- } else if (direction === 'light') {
87
- intent.light = colorManipulatorExports.lighten(intent.main, tonalOffsetLight);
88
- } else if (direction === 'dark') {
89
- intent.dark = colorManipulatorExports.darken(intent.main, tonalOffsetDark);
90
- }
91
- }
92
- }
93
- function getDefaultPrimary(mode = 'light') {
94
- if (mode === 'dark') {
95
- return {
96
- main: blue[200],
97
- light: blue[50],
98
- dark: blue[400]
99
- };
100
- }
101
- return {
102
- main: blue[700],
103
- light: blue[400],
104
- dark: blue[800]
105
- };
106
- }
107
- function getDefaultSecondary(mode = 'light') {
108
- if (mode === 'dark') {
109
- return {
110
- main: purple[200],
111
- light: purple[50],
112
- dark: purple[400]
113
- };
114
- }
115
- return {
116
- main: purple[500],
117
- light: purple[300],
118
- dark: purple[700]
119
- };
120
- }
121
- function getDefaultError(mode = 'light') {
122
- if (mode === 'dark') {
123
- return {
124
- main: red[500],
125
- light: red[300],
126
- dark: red[700]
127
- };
128
- }
129
- return {
130
- main: red[700],
131
- light: red[400],
132
- dark: red[800]
133
- };
134
- }
135
- function getDefaultInfo(mode = 'light') {
136
- if (mode === 'dark') {
137
- return {
138
- main: lightBlue[400],
139
- light: lightBlue[300],
140
- dark: lightBlue[700]
141
- };
142
- }
143
- return {
144
- main: lightBlue[700],
145
- light: lightBlue[500],
146
- dark: lightBlue[900]
147
- };
148
- }
149
- function getDefaultSuccess(mode = 'light') {
150
- if (mode === 'dark') {
151
- return {
152
- main: green[400],
153
- light: green[300],
154
- dark: green[700]
155
- };
156
- }
157
- return {
158
- main: green[800],
159
- light: green[500],
160
- dark: green[900]
161
- };
162
- }
163
- function getDefaultWarning(mode = 'light') {
164
- if (mode === 'dark') {
165
- return {
166
- main: orange[400],
167
- light: orange[300],
168
- dark: orange[700]
169
- };
170
- }
171
- return {
172
- main: '#ed6c02',
173
- // closest to orange[800] that pass 3:1.
174
- light: orange[500],
175
- dark: orange[900]
176
- };
177
- }
178
- function createPalette(palette) {
179
- const {
180
- mode = 'light',
181
- contrastThreshold = 3,
182
- tonalOffset = 0.2
183
- } = palette,
184
- other = _objectWithoutPropertiesLoose(palette, _excluded);
185
- const primary = palette.primary || getDefaultPrimary(mode);
186
- const secondary = palette.secondary || getDefaultSecondary(mode);
187
- const error = palette.error || getDefaultError(mode);
188
- const info = palette.info || getDefaultInfo(mode);
189
- const success = palette.success || getDefaultSuccess(mode);
190
- const warning = palette.warning || getDefaultWarning(mode);
191
-
192
- // Use the same logic as
193
- // Bootstrap: https://github.com/twbs/bootstrap/blob/1d6e3710dd447de1a200f29e8fa521f8a0908f70/scss/_functions.scss#L59
194
- // and material-components-web https://github.com/material-components/material-components-web/blob/ac46b8863c4dab9fc22c4c662dc6bd1b65dd652f/packages/mdc-theme/_functions.scss#L54
195
- function getContrastText(background) {
196
- const contrastText = colorManipulatorExports.getContrastRatio(background, dark.text.primary) >= contrastThreshold ? dark.text.primary : light.text.primary;
197
- if (process.env.NODE_ENV !== 'production') {
198
- const contrast = colorManipulatorExports.getContrastRatio(background, contrastText);
199
- if (contrast < 3) {
200
- console.error([`MUI: The contrast ratio of ${contrast}:1 for ${contrastText} on ${background}`, 'falls below the WCAG recommended absolute minimum contrast ratio of 3:1.', 'https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast'].join('\n'));
201
- }
202
- }
203
- return contrastText;
204
- }
205
- const augmentColor = ({
206
- color,
207
- name,
208
- mainShade = 500,
209
- lightShade = 300,
210
- darkShade = 700
211
- }) => {
212
- color = _extends({}, color);
213
- if (!color.main && color[mainShade]) {
214
- color.main = color[mainShade];
215
- }
216
- if (!color.hasOwnProperty('main')) {
217
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${name ? ` (${name})` : ''} provided to augmentColor(color) is invalid.
218
- The color object needs to have a \`main\` property or a \`${mainShade}\` property.` : formatMuiErrorMessage(11, name ? ` (${name})` : '', mainShade));
219
- }
220
- if (typeof color.main !== 'string') {
221
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${name ? ` (${name})` : ''} provided to augmentColor(color) is invalid.
222
- \`color.main\` should be a string, but \`${JSON.stringify(color.main)}\` was provided instead.
223
-
224
- Did you intend to use one of the following approaches?
225
-
226
- import { green } from "@mui/material/colors";
227
-
228
- const theme1 = createTheme({ palette: {
229
- primary: green,
230
- } });
231
-
232
- const theme2 = createTheme({ palette: {
233
- primary: { main: green[500] },
234
- } });` : formatMuiErrorMessage(12, name ? ` (${name})` : '', JSON.stringify(color.main)));
235
- }
236
- addLightOrDark(color, 'light', lightShade, tonalOffset);
237
- addLightOrDark(color, 'dark', darkShade, tonalOffset);
238
- if (!color.contrastText) {
239
- color.contrastText = getContrastText(color.main);
240
- }
241
- return color;
242
- };
243
- const modes = {
244
- dark,
245
- light
246
- };
247
- if (process.env.NODE_ENV !== 'production') {
248
- if (!modes[mode]) {
249
- console.error(`MUI: The palette mode \`${mode}\` is not supported.`);
250
- }
251
- }
252
- const paletteOutput = deepmerge(_extends({
253
- // A collection of common colors.
254
- common: _extends({}, common),
255
- // prevent mutable object.
256
- // The palette mode, can be light or dark.
257
- mode,
258
- // The colors used to represent primary interface elements for a user.
259
- primary: augmentColor({
260
- color: primary,
261
- name: 'primary'
262
- }),
263
- // The colors used to represent secondary interface elements for a user.
264
- secondary: augmentColor({
265
- color: secondary,
266
- name: 'secondary',
267
- mainShade: 'A400',
268
- lightShade: 'A200',
269
- darkShade: 'A700'
270
- }),
271
- // The colors used to represent interface elements that the user should be made aware of.
272
- error: augmentColor({
273
- color: error,
274
- name: 'error'
275
- }),
276
- // The colors used to represent potentially dangerous actions or important messages.
277
- warning: augmentColor({
278
- color: warning,
279
- name: 'warning'
280
- }),
281
- // The colors used to present information to the user that is neutral and not necessarily important.
282
- info: augmentColor({
283
- color: info,
284
- name: 'info'
285
- }),
286
- // The colors used to indicate the successful completion of an action that user triggered.
287
- success: augmentColor({
288
- color: success,
289
- name: 'success'
290
- }),
291
- // The grey colors.
292
- grey,
293
- // Used by `getContrastText()` to maximize the contrast between
294
- // the background and the text.
295
- contrastThreshold,
296
- // Takes a background color and returns the text color that maximizes the contrast.
297
- getContrastText,
298
- // Generate a rich color object.
299
- augmentColor,
300
- // Used by the functions below to shift a color's luminance by approximately
301
- // two indexes within its tonal palette.
302
- // E.g., shift from Red 500 to Red 300 or Red 700.
303
- tonalOffset
304
- }, modes[mode]), other);
305
- return paletteOutput;
306
- }
307
-
308
- export { dark, createPalette as default, light };
@@ -1,82 +0,0 @@
1
- import _extends from '../../../@babel/runtime/helpers/esm/extends.js';
2
- import _objectWithoutPropertiesLoose from '../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js';
3
- import createMixins from './createMixins.js';
4
- import createPalette from './createPalette.js';
5
- import createTypography from './createTypography.js';
6
- import shadows from './shadows.js';
7
- import createTransitions from './createTransitions.js';
8
- import zIndex from './zIndex.js';
9
- import formatMuiErrorMessage from '../../utils/formatMuiErrorMessage/formatMuiErrorMessage.js';
10
- import createTheme$1 from '../../system/esm/createTheme/createTheme.js';
11
- import deepmerge from '../../utils/deepmerge/deepmerge.js';
12
- import defaultSxConfig from '../../system/esm/styleFunctionSx/defaultSxConfig.js';
13
- import styleFunctionSx from '../../system/esm/styleFunctionSx/styleFunctionSx.js';
14
- import generateUtilityClass from '../../utils/generateUtilityClass/generateUtilityClass.js';
15
-
16
- const _excluded = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
17
- function createTheme(options = {}, ...args) {
18
- const {
19
- mixins: mixinsInput = {},
20
- palette: paletteInput = {},
21
- transitions: transitionsInput = {},
22
- typography: typographyInput = {}
23
- } = options,
24
- other = _objectWithoutPropertiesLoose(options, _excluded);
25
- if (options.vars) {
26
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: \`vars\` is a private field used for CSS variables support.
27
- Please use another name.` : formatMuiErrorMessage(18));
28
- }
29
- const palette = createPalette(paletteInput);
30
- const systemTheme = createTheme$1(options);
31
- let muiTheme = deepmerge(systemTheme, {
32
- mixins: createMixins(systemTheme.breakpoints, mixinsInput),
33
- palette,
34
- // Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
35
- shadows: shadows.slice(),
36
- typography: createTypography(palette, typographyInput),
37
- transitions: createTransitions(transitionsInput),
38
- zIndex: _extends({}, zIndex)
39
- });
40
- muiTheme = deepmerge(muiTheme, other);
41
- muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);
42
- if (process.env.NODE_ENV !== 'production') {
43
- // TODO v6: Refactor to use globalStateClassesMapping from @mui/utils once `readOnly` state class is used in Rating component.
44
- const stateClasses = ['active', 'checked', 'completed', 'disabled', 'error', 'expanded', 'focused', 'focusVisible', 'required', 'selected'];
45
- const traverse = (node, component) => {
46
- let key;
47
-
48
- // eslint-disable-next-line guard-for-in, no-restricted-syntax
49
- for (key in node) {
50
- const child = node[key];
51
- if (stateClasses.indexOf(key) !== -1 && Object.keys(child).length > 0) {
52
- if (process.env.NODE_ENV !== 'production') {
53
- const stateClass = generateUtilityClass('', key);
54
- console.error([`MUI: The \`${component}\` component increases ` + `the CSS specificity of the \`${key}\` internal state.`, 'You can not override it like this: ', JSON.stringify(node, null, 2), '', `Instead, you need to use the '&.${stateClass}' syntax:`, JSON.stringify({
55
- root: {
56
- [`&.${stateClass}`]: child
57
- }
58
- }, null, 2), '', 'https://mui.com/r/state-classes-guide'].join('\n'));
59
- }
60
- // Remove the style to prevent global conflicts.
61
- node[key] = {};
62
- }
63
- }
64
- };
65
- Object.keys(muiTheme.components).forEach(component => {
66
- const styleOverrides = muiTheme.components[component].styleOverrides;
67
- if (styleOverrides && component.indexOf('Mui') === 0) {
68
- traverse(styleOverrides, component);
69
- }
70
- });
71
- }
72
- muiTheme.unstable_sxConfig = _extends({}, defaultSxConfig, other == null ? undefined : other.unstable_sxConfig);
73
- muiTheme.unstable_sx = function sx(props) {
74
- return styleFunctionSx({
75
- sx: props,
76
- theme: this
77
- });
78
- };
79
- return muiTheme;
80
- }
81
-
82
- export { createTheme as default };
@@ -1,91 +0,0 @@
1
- import _objectWithoutPropertiesLoose from '../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js';
2
- import _extends from '../../../@babel/runtime/helpers/esm/extends.js';
3
-
4
- const _excluded = ["duration", "easing", "delay"];
5
- // Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves
6
- // to learn the context in which each easing should be used.
7
- const easing = {
8
- // This is the most common easing curve.
9
- easeInOut: 'cubic-bezier(0.4, 0, 0.2, 1)',
10
- // Objects enter the screen at full velocity from off-screen and
11
- // slowly decelerate to a resting point.
12
- easeOut: 'cubic-bezier(0.0, 0, 0.2, 1)',
13
- // Objects leave the screen at full velocity. They do not decelerate when off-screen.
14
- easeIn: 'cubic-bezier(0.4, 0, 1, 1)',
15
- // The sharp curve is used by objects that may return to the screen at any time.
16
- sharp: 'cubic-bezier(0.4, 0, 0.6, 1)'
17
- };
18
-
19
- // Follow https://m2.material.io/guidelines/motion/duration-easing.html#duration-easing-common-durations
20
- // to learn when use what timing
21
- const duration = {
22
- shortest: 150,
23
- shorter: 200,
24
- short: 250,
25
- // most basic recommended timing
26
- standard: 300,
27
- // this is to be used in complex animations
28
- complex: 375,
29
- // recommended when something is entering screen
30
- enteringScreen: 225,
31
- // recommended when something is leaving screen
32
- leavingScreen: 195
33
- };
34
- function formatMs(milliseconds) {
35
- return `${Math.round(milliseconds)}ms`;
36
- }
37
- function getAutoHeightDuration(height) {
38
- if (!height) {
39
- return 0;
40
- }
41
- const constant = height / 36;
42
-
43
- // https://www.wolframalpha.com/input/?i=(4+%2B+15+*+(x+%2F+36+)+**+0.25+%2B+(x+%2F+36)+%2F+5)+*+10
44
- return Math.round((4 + 15 * constant ** 0.25 + constant / 5) * 10);
45
- }
46
- function createTransitions(inputTransitions) {
47
- const mergedEasing = _extends({}, easing, inputTransitions.easing);
48
- const mergedDuration = _extends({}, duration, inputTransitions.duration);
49
- const create = (props = ['all'], options = {}) => {
50
- const {
51
- duration: durationOption = mergedDuration.standard,
52
- easing: easingOption = mergedEasing.easeInOut,
53
- delay = 0
54
- } = options,
55
- other = _objectWithoutPropertiesLoose(options, _excluded);
56
- if (process.env.NODE_ENV !== 'production') {
57
- const isString = value => typeof value === 'string';
58
- // IE11 support, replace with Number.isNaN
59
- // eslint-disable-next-line no-restricted-globals
60
- const isNumber = value => !isNaN(parseFloat(value));
61
- if (!isString(props) && !Array.isArray(props)) {
62
- console.error('MUI: Argument "props" must be a string or Array.');
63
- }
64
- if (!isNumber(durationOption) && !isString(durationOption)) {
65
- console.error(`MUI: Argument "duration" must be a number or a string but found ${durationOption}.`);
66
- }
67
- if (!isString(easingOption)) {
68
- console.error('MUI: Argument "easing" must be a string.');
69
- }
70
- if (!isNumber(delay) && !isString(delay)) {
71
- console.error('MUI: Argument "delay" must be a number or a string.');
72
- }
73
- if (typeof options !== 'object') {
74
- console.error(['MUI: Secong argument of transition.create must be an object.', "Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join('\n'));
75
- }
76
- if (Object.keys(other).length !== 0) {
77
- console.error(`MUI: Unrecognized argument(s) [${Object.keys(other).join(',')}].`);
78
- }
79
- }
80
- return (Array.isArray(props) ? props : [props]).map(animatedProp => `${animatedProp} ${typeof durationOption === 'string' ? durationOption : formatMs(durationOption)} ${easingOption} ${typeof delay === 'string' ? delay : formatMs(delay)}`).join(',');
81
- };
82
- return _extends({
83
- getAutoHeightDuration,
84
- create
85
- }, inputTransitions, {
86
- easing: mergedEasing,
87
- duration: mergedDuration
88
- });
89
- }
90
-
91
- export { createTransitions as default, duration, easing };
@@ -1,93 +0,0 @@
1
- import _extends from '../../../@babel/runtime/helpers/esm/extends.js';
2
- import _objectWithoutPropertiesLoose from '../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js';
3
- import deepmerge from '../../utils/deepmerge/deepmerge.js';
4
-
5
- const _excluded = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
6
- function round(value) {
7
- return Math.round(value * 1e5) / 1e5;
8
- }
9
- const caseAllCaps = {
10
- textTransform: 'uppercase'
11
- };
12
- const defaultFontFamily = '"Roboto", "Helvetica", "Arial", sans-serif';
13
-
14
- /**
15
- * @see @link{https://m2.material.io/design/typography/the-type-system.html}
16
- * @see @link{https://m2.material.io/design/typography/understanding-typography.html}
17
- */
18
- function createTypography(palette, typography) {
19
- const _ref = typeof typography === 'function' ? typography(palette) : typography,
20
- {
21
- fontFamily = defaultFontFamily,
22
- // The default font size of the Material Specification.
23
- fontSize = 14,
24
- // px
25
- fontWeightLight = 300,
26
- fontWeightRegular = 400,
27
- fontWeightMedium = 500,
28
- fontWeightBold = 700,
29
- // Tell MUI what's the font-size on the html element.
30
- // 16px is the default font-size used by browsers.
31
- htmlFontSize = 16,
32
- // Apply the CSS properties to all the variants.
33
- allVariants,
34
- pxToRem: pxToRem2
35
- } = _ref,
36
- other = _objectWithoutPropertiesLoose(_ref, _excluded);
37
- if (process.env.NODE_ENV !== 'production') {
38
- if (typeof fontSize !== 'number') {
39
- console.error('MUI: `fontSize` is required to be a number.');
40
- }
41
- if (typeof htmlFontSize !== 'number') {
42
- console.error('MUI: `htmlFontSize` is required to be a number.');
43
- }
44
- }
45
- const coef = fontSize / 14;
46
- const pxToRem = pxToRem2 || (size => `${size / htmlFontSize * coef}rem`);
47
- const buildVariant = (fontWeight, size, lineHeight, letterSpacing, casing) => _extends({
48
- fontFamily,
49
- fontWeight,
50
- fontSize: pxToRem(size),
51
- // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
52
- lineHeight
53
- }, fontFamily === defaultFontFamily ? {
54
- letterSpacing: `${round(letterSpacing / size)}em`
55
- } : {}, casing, allVariants);
56
- const variants = {
57
- h1: buildVariant(fontWeightLight, 96, 1.167, -1.5),
58
- h2: buildVariant(fontWeightLight, 60, 1.2, -0.5),
59
- h3: buildVariant(fontWeightRegular, 48, 1.167, 0),
60
- h4: buildVariant(fontWeightRegular, 34, 1.235, 0.25),
61
- h5: buildVariant(fontWeightRegular, 24, 1.334, 0),
62
- h6: buildVariant(fontWeightMedium, 20, 1.6, 0.15),
63
- subtitle1: buildVariant(fontWeightRegular, 16, 1.75, 0.15),
64
- subtitle2: buildVariant(fontWeightMedium, 14, 1.57, 0.1),
65
- body1: buildVariant(fontWeightRegular, 16, 1.5, 0.15),
66
- body2: buildVariant(fontWeightRegular, 14, 1.43, 0.15),
67
- button: buildVariant(fontWeightMedium, 14, 1.75, 0.4, caseAllCaps),
68
- caption: buildVariant(fontWeightRegular, 12, 1.66, 0.4),
69
- overline: buildVariant(fontWeightRegular, 12, 2.66, 1, caseAllCaps),
70
- // TODO v6: Remove handling of 'inherit' variant from the theme as it is already handled in Material UI's Typography component. Also, remember to remove the associated types.
71
- inherit: {
72
- fontFamily: 'inherit',
73
- fontWeight: 'inherit',
74
- fontSize: 'inherit',
75
- lineHeight: 'inherit',
76
- letterSpacing: 'inherit'
77
- }
78
- };
79
- return deepmerge(_extends({
80
- htmlFontSize,
81
- pxToRem,
82
- fontFamily,
83
- fontSize,
84
- fontWeightLight,
85
- fontWeightRegular,
86
- fontWeightMedium,
87
- fontWeightBold
88
- }, variants), other, {
89
- clone: false // No need to clone deep
90
- });
91
- }
92
-
93
- export { createTypography as default };
@@ -1,5 +0,0 @@
1
- import createTheme from './createTheme.js';
2
-
3
- const defaultTheme = createTheme();
4
-
5
- export { defaultTheme as default };
@@ -1,3 +0,0 @@
1
- var THEME_ID = '$$material';
2
-
3
- export { THEME_ID as default };
@@ -1,5 +0,0 @@
1
- import slotShouldForwardProp from './slotShouldForwardProp.js';
2
-
3
- const rootShouldForwardProp = prop => slotShouldForwardProp(prop) && prop !== 'classes';
4
-
5
- export { rootShouldForwardProp as default };
@@ -1,11 +0,0 @@
1
- const shadowKeyUmbraOpacity = 0.2;
2
- const shadowKeyPenumbraOpacity = 0.14;
3
- const shadowAmbientShadowOpacity = 0.12;
4
- function createShadow(...px) {
5
- return [`${px[0]}px ${px[1]}px ${px[2]}px ${px[3]}px rgba(0,0,0,${shadowKeyUmbraOpacity})`, `${px[4]}px ${px[5]}px ${px[6]}px ${px[7]}px rgba(0,0,0,${shadowKeyPenumbraOpacity})`, `${px[8]}px ${px[9]}px ${px[10]}px ${px[11]}px rgba(0,0,0,${shadowAmbientShadowOpacity})`].join(',');
6
- }
7
-
8
- // Values from https://github.com/material-components/material-components-web/blob/be8747f94574669cb5e7add1a7c54fa41a89cec7/packages/mdc-elevation/_variables.scss
9
- const shadows = ['none', createShadow(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), createShadow(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), createShadow(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), createShadow(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), createShadow(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), createShadow(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), createShadow(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), createShadow(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), createShadow(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), createShadow(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), createShadow(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), createShadow(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), createShadow(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), createShadow(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), createShadow(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), createShadow(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), createShadow(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), createShadow(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), createShadow(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), createShadow(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), createShadow(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), createShadow(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), createShadow(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), createShadow(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)];
10
-
11
- export { shadows as default };
@@ -1,6 +0,0 @@
1
- // copied from @mui/system/createStyled
2
- function slotShouldForwardProp(prop) {
3
- return prop !== 'ownerState' && prop !== 'theme' && prop !== 'sx' && prop !== 'as';
4
- }
5
-
6
- export { slotShouldForwardProp as default };
@@ -1,12 +0,0 @@
1
- import createStyled from '../../../../_virtual/createStyled.js';
2
- import defaultTheme from './defaultTheme.js';
3
- import THEME_ID from './identifier.js';
4
- import rootShouldForwardProp from './rootShouldForwardProp.js';
5
-
6
- const styled = createStyled({
7
- themeId: THEME_ID,
8
- defaultTheme,
9
- rootShouldForwardProp
10
- });
11
-
12
- export { styled as default, rootShouldForwardProp };
@@ -1,17 +0,0 @@
1
- import defaultTheme from './defaultTheme.js';
2
- import THEME_ID from './identifier.js';
3
- import useThemeProps$1 from '../../system/esm/useThemeProps/useThemeProps.js';
4
-
5
- function useThemeProps({
6
- props,
7
- name
8
- }) {
9
- return useThemeProps$1({
10
- props,
11
- name,
12
- defaultTheme,
13
- themeId: THEME_ID
14
- });
15
- }
16
-
17
- export { useThemeProps as default };
@@ -1,14 +0,0 @@
1
- // We need to centralize the zIndex definitions as they work
2
- // like global values in the browser.
3
- const zIndex = {
4
- mobileStepper: 1000,
5
- fab: 1050,
6
- speedDial: 1050,
7
- appBar: 1100,
8
- drawer: 1200,
9
- modal: 1300,
10
- snackbar: 1400,
11
- tooltip: 1500
12
- };
13
-
14
- export { zIndex as default };
@@ -1,5 +0,0 @@
1
- import capitalize from '../../utils/capitalize/capitalize.js';
2
-
3
-
4
-
5
- export { capitalize as default };