@ceed/cds 0.0.186 → 0.0.187-cjs.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (259) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +33 -0
  2. package/dist/_virtual/bind-all.js +5 -0
  3. package/dist/_virtual/bind.js +5 -0
  4. package/dist/_virtual/colorManipulator.js +7 -0
  5. package/dist/_virtual/colorManipulator2.js +5 -0
  6. package/dist/_virtual/createStyled.js +9 -0
  7. package/dist/_virtual/createStyled2.js +5 -0
  8. package/dist/_virtual/extends.js +5 -0
  9. package/dist/_virtual/index.js +7 -0
  10. package/dist/_virtual/index10.js +8 -0
  11. package/dist/_virtual/index11.js +12 -0
  12. package/dist/_virtual/index12.js +12 -0
  13. package/dist/_virtual/index2.js +5 -0
  14. package/dist/_virtual/index3.js +9 -0
  15. package/dist/_virtual/index4.js +5 -0
  16. package/dist/_virtual/index5.js +8 -0
  17. package/dist/_virtual/index6.js +8 -0
  18. package/dist/_virtual/index7.js +12 -0
  19. package/dist/_virtual/index8.js +8 -0
  20. package/dist/_virtual/index9.js +8 -0
  21. package/dist/_virtual/interopRequireDefault.js +5 -0
  22. package/dist/_virtual/objectWithoutPropertiesLoose.js +5 -0
  23. package/dist/components/Accordions/Accordions.js +48 -0
  24. package/dist/components/Autocomplete/Autocomplete.js +198 -0
  25. package/dist/components/Autocomplete/index.js +10 -0
  26. package/dist/components/Avatar/Avatar.js +47 -0
  27. package/dist/components/Box/Box.js +10 -0
  28. package/dist/components/Box/index.js +10 -0
  29. package/dist/components/Breadcrumbs/Breadcrumbs.js +49 -0
  30. package/dist/components/Button/Button.js +22 -0
  31. package/dist/components/Button/index.js +10 -0
  32. package/dist/components/Calendar/Calendar.js +335 -0
  33. package/dist/components/Calendar/hooks/use-calendar-props.js +76 -0
  34. package/dist/components/Calendar/hooks/use-calendar.js +249 -0
  35. package/dist/components/Calendar/index.js +10 -0
  36. package/dist/components/Calendar/utils/index.js +84 -0
  37. package/dist/components/Card/Card.js +26 -0
  38. package/dist/components/Checkbox/Checkbox.js +21 -0
  39. package/dist/components/Checkbox/index.js +10 -0
  40. package/dist/components/Chip/Chip.js +10 -0
  41. package/dist/components/Chip/index.js +10 -0
  42. package/dist/components/Container/Container.js +51 -0
  43. package/dist/components/CurrencyInput/CurrencyInput.js +93 -0
  44. package/dist/components/CurrencyInput/hooks/use-currency-setting.js +169 -0
  45. package/dist/components/CurrencyInput/index.js +10 -0
  46. package/dist/components/DataTable/DataTable.js +570 -0
  47. package/dist/components/DatePicker/DatePicker.js +212 -0
  48. package/dist/components/DatePicker/index.js +10 -0
  49. package/dist/components/DateRangePicker/DateRangePicker.js +215 -0
  50. package/dist/components/DialogActions/DialogActions.js +16 -0
  51. package/dist/components/DialogActions/index.js +10 -0
  52. package/dist/components/DialogContent/DialogContent.js +13 -0
  53. package/dist/components/DialogContent/index.js +10 -0
  54. package/dist/components/DialogFrame/DialogFrame.js +33 -0
  55. package/dist/components/DialogTitle/DialogTitle.js +13 -0
  56. package/dist/components/DialogTitle/index.js +10 -0
  57. package/dist/components/Divider/Divider.js +21 -0
  58. package/dist/components/Drawer/Drawer.js +42 -0
  59. package/dist/components/Dropdown/Dropdown.js +10 -0
  60. package/dist/components/Dropdown/index.js +10 -0
  61. package/dist/components/FormControl/FormControl.js +17 -0
  62. package/dist/components/FormControl/index.js +10 -0
  63. package/dist/components/FormHelperText/FormHelperText.js +10 -0
  64. package/dist/components/FormHelperText/index.js +10 -0
  65. package/dist/components/FormLabel/FormLabel.js +10 -0
  66. package/dist/components/FormLabel/index.js +10 -0
  67. package/dist/components/IconButton/IconButton.js +22 -0
  68. package/dist/components/IconButton/index.js +10 -0
  69. package/dist/components/Input/Input.js +62 -0
  70. package/dist/components/Input/index.js +10 -0
  71. package/dist/components/InsetDrawer/InsetDrawer.js +32 -0
  72. package/dist/components/Markdown/Markdown.d.ts +6 -22
  73. package/dist/components/Markdown/Markdown.js +86 -0
  74. package/dist/components/Menu/Menu.js +46 -0
  75. package/dist/components/Menu/index.js +11 -0
  76. package/dist/components/MenuButton/MenuButton.d.ts +1 -1
  77. package/dist/components/MenuButton/MenuButton.js +28 -0
  78. package/dist/components/Modal/Modal.js +49 -0
  79. package/dist/components/MonthPicker/MonthPicker.js +164 -0
  80. package/dist/components/MonthRangePicker/MonthRangePicker.js +174 -0
  81. package/dist/components/NavigationGroup/NavigationGroup.js +44 -0
  82. package/dist/components/NavigationItem/NavigationItem.js +47 -0
  83. package/dist/components/Navigator/Navigator.js +32 -0
  84. package/dist/components/Pagination/Pagination.js +119 -0
  85. package/dist/components/Pagination/index.js +10 -0
  86. package/dist/components/PercentageInput/PercentageInput.js +87 -0
  87. package/dist/components/Radio/Radio.js +14 -0
  88. package/dist/components/RadioList/RadioList.js +20 -0
  89. package/dist/components/Select/Select.js +59 -0
  90. package/dist/components/Select/index.js +11 -0
  91. package/dist/components/Sheet/Sheet.js +10 -0
  92. package/dist/components/Sheet/index.js +10 -0
  93. package/dist/components/Stack/index.js +16 -0
  94. package/dist/components/Stepper/Stepper.js +70 -0
  95. package/dist/components/Switch/Switch.js +48 -0
  96. package/dist/components/Table/Table.js +68 -0
  97. package/dist/components/Tabs/Tabs.js +22 -0
  98. package/dist/components/Textarea/Textarea.d.ts +3 -17
  99. package/dist/components/Textarea/Textarea.js +33 -0
  100. package/dist/components/Textarea/index.js +10 -0
  101. package/dist/components/ThemeProvider/ThemeProvider.js +250 -0
  102. package/dist/components/Tooltip/Tooltip.js +21 -0
  103. package/dist/components/Tooltip/index.js +10 -0
  104. package/dist/components/Typography/Typography.js +21 -0
  105. package/dist/components/Typography/index.js +10 -0
  106. package/dist/components/Uploader/Uploader.d.ts +1 -1
  107. package/dist/components/Uploader/Uploader.js +366 -0
  108. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/adapter/element-adapter-native-data-key.js +10 -0
  109. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/adapter/external-adapter.js +251 -0
  110. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/honey-pot-fix/get-element-from-point-without-honey-pot.js +21 -0
  111. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/honey-pot-fix/honey-pot-data-attribute.js +7 -0
  112. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/honey-pot-fix/is-honey-pot-element.js +9 -0
  113. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/ledger/dispatch-consumer-event.js +130 -0
  114. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/ledger/lifecycle-manager.js +342 -0
  115. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/ledger/usage-ledger.js +35 -0
  116. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/make-adapter/make-adapter.js +62 -0
  117. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/make-adapter/make-drop-target.js +314 -0
  118. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/make-adapter/make-monitor.js +98 -0
  119. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/public-utils/combine.js +15 -0
  120. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/public-utils/external/file.js +26 -0
  121. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/public-utils/once.js +20 -0
  122. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/public-utils/prevent-unhandled.js +104 -0
  123. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/add-attribute.js +12 -0
  124. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/android.js +5 -0
  125. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/changing-window/count-events-for-safari.js +126 -0
  126. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/changing-window/is-entering-window.js +57 -0
  127. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/changing-window/is-from-another-window.js +20 -0
  128. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/changing-window/is-leaving-window.js +57 -0
  129. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/detect-broken-drag.js +51 -0
  130. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/get-input.js +18 -0
  131. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/is-firefox.js +17 -0
  132. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/is-safari.js +20 -0
  133. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/media-types/text-media-type.js +10 -0
  134. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/arrayLikeToArray.js +9 -0
  135. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/arrayWithHoles.js +7 -0
  136. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/arrayWithoutHoles.js +9 -0
  137. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/defineProperty.js +20 -0
  138. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/iterableToArray.js +7 -0
  139. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/iterableToArrayLimit.js +28 -0
  140. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/nonIterableRest.js +7 -0
  141. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/nonIterableSpread.js +7 -0
  142. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/slicedToArray.js +12 -0
  143. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/toConsumableArray.js +12 -0
  144. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/toPrimitive.js +16 -0
  145. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/toPropertyKey.js +11 -0
  146. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/typeof.js +13 -0
  147. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +14 -0
  148. package/dist/external/@babel/runtime/helpers/esm/extends.js +18 -0
  149. package/dist/external/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +16 -0
  150. package/dist/external/@babel/runtime/helpers/extends.js +30 -0
  151. package/dist/external/@babel/runtime/helpers/interopRequireDefault.js +21 -0
  152. package/dist/external/@babel/runtime/helpers/objectWithoutPropertiesLoose.js +28 -0
  153. package/dist/external/@emotion/cache/dist/emotion-cache.esm.js +655 -0
  154. package/dist/external/@emotion/memoize/dist/emotion-memoize.esm.js +11 -0
  155. package/dist/external/@emotion/sheet/dist/emotion-sheet.esm.js +156 -0
  156. package/dist/external/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +18 -0
  157. package/dist/external/@mui/icons-material/esm/ArrowUpwardRounded.js +10 -0
  158. package/dist/external/@mui/icons-material/esm/CalendarToday.js +10 -0
  159. package/dist/external/@mui/icons-material/esm/Check.js +10 -0
  160. package/dist/external/@mui/icons-material/esm/ChevronLeft.js +10 -0
  161. package/dist/external/@mui/icons-material/esm/ChevronRight.js +10 -0
  162. package/dist/external/@mui/icons-material/esm/ClearRounded.js +10 -0
  163. package/dist/external/@mui/icons-material/esm/Close.js +10 -0
  164. package/dist/external/@mui/icons-material/esm/CloudUploadRounded.js +10 -0
  165. package/dist/external/@mui/icons-material/esm/ExpandMore.js +10 -0
  166. package/dist/external/@mui/icons-material/esm/Info.js +10 -0
  167. package/dist/external/@mui/icons-material/esm/UploadFileRounded.js +10 -0
  168. package/dist/external/@mui/material/SvgIcon/SvgIcon.js +207 -0
  169. package/dist/external/@mui/material/SvgIcon/svgIconClasses.js +11 -0
  170. package/dist/external/@mui/material/colors/blue.js +20 -0
  171. package/dist/external/@mui/material/colors/common.js +8 -0
  172. package/dist/external/@mui/material/colors/green.js +20 -0
  173. package/dist/external/@mui/material/colors/grey.js +20 -0
  174. package/dist/external/@mui/material/colors/lightBlue.js +20 -0
  175. package/dist/external/@mui/material/colors/orange.js +20 -0
  176. package/dist/external/@mui/material/colors/purple.js +20 -0
  177. package/dist/external/@mui/material/colors/red.js +20 -0
  178. package/dist/external/@mui/material/styles/createMixins.js +21 -0
  179. package/dist/external/@mui/material/styles/createPalette.js +314 -0
  180. package/dist/external/@mui/material/styles/createTheme.js +84 -0
  181. package/dist/external/@mui/material/styles/createTransitions.js +97 -0
  182. package/dist/external/@mui/material/styles/createTypography.js +95 -0
  183. package/dist/external/@mui/material/styles/defaultTheme.js +7 -0
  184. package/dist/external/@mui/material/styles/identifier.js +5 -0
  185. package/dist/external/@mui/material/styles/rootShouldForwardProp.js +7 -0
  186. package/dist/external/@mui/material/styles/shadows.js +13 -0
  187. package/dist/external/@mui/material/styles/slotShouldForwardProp.js +8 -0
  188. package/dist/external/@mui/material/styles/styled.js +17 -0
  189. package/dist/external/@mui/material/styles/useThemeProps.js +19 -0
  190. package/dist/external/@mui/material/styles/zIndex.js +16 -0
  191. package/dist/external/@mui/material/utils/capitalize.js +7 -0
  192. package/dist/external/@mui/material/utils/createSvgIcon.js +45 -0
  193. package/dist/external/@mui/styled-engine/GlobalStyles/GlobalStyles.js +26 -0
  194. package/dist/external/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider.js +39 -0
  195. package/dist/external/@mui/styled-engine/index.js +57 -0
  196. package/dist/external/@mui/system/colorManipulator.js +387 -0
  197. package/dist/external/@mui/system/createStyled.js +272 -0
  198. package/dist/external/@mui/system/esm/borders.js +66 -0
  199. package/dist/external/@mui/system/esm/breakpoints.js +71 -0
  200. package/dist/external/@mui/system/esm/compose.js +28 -0
  201. package/dist/external/@mui/system/esm/createTheme/applyStyles.js +78 -0
  202. package/dist/external/@mui/system/esm/createTheme/createBreakpoints.js +84 -0
  203. package/dist/external/@mui/system/esm/createTheme/createSpacing.js +36 -0
  204. package/dist/external/@mui/system/esm/createTheme/createTheme.js +47 -0
  205. package/dist/external/@mui/system/esm/createTheme/index.js +13 -0
  206. package/dist/external/@mui/system/esm/createTheme/shape.js +7 -0
  207. package/dist/external/@mui/system/esm/cssGrid.js +99 -0
  208. package/dist/external/@mui/system/esm/memoize.js +13 -0
  209. package/dist/external/@mui/system/esm/merge.js +14 -0
  210. package/dist/external/@mui/system/esm/palette.js +33 -0
  211. package/dist/external/@mui/system/esm/responsivePropType.js +7 -0
  212. package/dist/external/@mui/system/esm/sizing.js +76 -0
  213. package/dist/external/@mui/system/esm/spacing.js +153 -0
  214. package/dist/external/@mui/system/esm/style.js +83 -0
  215. package/dist/external/@mui/system/esm/styleFunctionSx/defaultSxConfig.js +295 -0
  216. package/dist/external/@mui/system/esm/styleFunctionSx/extendSxProp.js +53 -0
  217. package/dist/external/@mui/system/esm/styleFunctionSx/index.js +14 -0
  218. package/dist/external/@mui/system/esm/styleFunctionSx/styleFunctionSx.js +134 -0
  219. package/dist/external/@mui/system/esm/useTheme.js +14 -0
  220. package/dist/external/@mui/system/esm/useThemeProps/getThemeProps.js +17 -0
  221. package/dist/external/@mui/system/esm/useThemeProps/useThemeProps.js +24 -0
  222. package/dist/external/@mui/system/esm/useThemeWithoutDefault.js +33 -0
  223. package/dist/external/@mui/utils/ClassNameGenerator/ClassNameGenerator.js +20 -0
  224. package/dist/external/@mui/utils/capitalize/capitalize.js +16 -0
  225. package/dist/external/@mui/utils/capitalize/index.js +7 -0
  226. package/dist/external/@mui/utils/clamp/clamp.js +7 -0
  227. package/dist/external/@mui/utils/clamp/index.js +7 -0
  228. package/dist/external/@mui/utils/composeClasses/composeClasses.js +25 -0
  229. package/dist/external/@mui/utils/deepmerge/deepmerge.js +49 -0
  230. package/dist/external/@mui/utils/deepmerge/index.js +10 -0
  231. package/dist/external/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js +23 -0
  232. package/dist/external/@mui/utils/formatMuiErrorMessage/index.js +7 -0
  233. package/dist/external/@mui/utils/generateUtilityClass/generateUtilityClass.js +27 -0
  234. package/dist/external/@mui/utils/generateUtilityClasses/generateUtilityClasses.js +13 -0
  235. package/dist/external/@mui/utils/getDisplayName/getDisplayName.js +54 -0
  236. package/dist/external/@mui/utils/getDisplayName/index.js +10 -0
  237. package/dist/external/@mui/utils/resolveProps/resolveProps.js +39 -0
  238. package/dist/external/bind-event-listener/dist/bind-all.js +56 -0
  239. package/dist/external/bind-event-listener/dist/bind.js +23 -0
  240. package/dist/external/bind-event-listener/dist/index.js +23 -0
  241. package/dist/external/clsx/dist/clsx.js +8 -0
  242. package/dist/external/object-assign/index.js +101 -0
  243. package/dist/external/prop-types/checkPropTypes.js +117 -0
  244. package/dist/external/prop-types/factoryWithThrowingShims.js +76 -0
  245. package/dist/external/prop-types/factoryWithTypeCheckers.js +627 -0
  246. package/dist/external/prop-types/index.js +35 -0
  247. package/dist/external/prop-types/lib/ReactPropTypesSecret.js +23 -0
  248. package/dist/external/prop-types/lib/has.js +13 -0
  249. package/dist/external/raf-schd/dist/raf-schd.esm.js +36 -0
  250. package/dist/external/stylis/src/Enum.js +22 -0
  251. package/dist/external/stylis/src/Middleware.js +35 -0
  252. package/dist/external/stylis/src/Parser.js +199 -0
  253. package/dist/external/stylis/src/Serializer.js +41 -0
  254. package/dist/external/stylis/src/Tokenizer.js +241 -0
  255. package/dist/external/stylis/src/Utility.js +132 -0
  256. package/dist/hooks/use-controlled-state/index.js +25 -0
  257. package/dist/index.js +521 -2
  258. package/dist/libs/rehype-accent/index.js +41 -0
  259. package/package.json +8 -5
@@ -0,0 +1,295 @@
1
+ 'use strict';
2
+
3
+ var spacing = require('../spacing.js');
4
+ var borders = require('../borders.js');
5
+ var cssGrid = require('../cssGrid.js');
6
+ var palette = require('../palette.js');
7
+ var sizing = require('../sizing.js');
8
+
9
+ const defaultSxConfig = {
10
+ // borders
11
+ border: {
12
+ themeKey: 'borders',
13
+ transform: borders.borderTransform
14
+ },
15
+ borderTop: {
16
+ themeKey: 'borders',
17
+ transform: borders.borderTransform
18
+ },
19
+ borderRight: {
20
+ themeKey: 'borders',
21
+ transform: borders.borderTransform
22
+ },
23
+ borderBottom: {
24
+ themeKey: 'borders',
25
+ transform: borders.borderTransform
26
+ },
27
+ borderLeft: {
28
+ themeKey: 'borders',
29
+ transform: borders.borderTransform
30
+ },
31
+ borderColor: {
32
+ themeKey: 'palette'
33
+ },
34
+ borderTopColor: {
35
+ themeKey: 'palette'
36
+ },
37
+ borderRightColor: {
38
+ themeKey: 'palette'
39
+ },
40
+ borderBottomColor: {
41
+ themeKey: 'palette'
42
+ },
43
+ borderLeftColor: {
44
+ themeKey: 'palette'
45
+ },
46
+ outline: {
47
+ themeKey: 'borders',
48
+ transform: borders.borderTransform
49
+ },
50
+ outlineColor: {
51
+ themeKey: 'palette'
52
+ },
53
+ borderRadius: {
54
+ themeKey: 'shape.borderRadius',
55
+ style: borders.borderRadius
56
+ },
57
+ // palette
58
+ color: {
59
+ themeKey: 'palette',
60
+ transform: palette.paletteTransform
61
+ },
62
+ bgcolor: {
63
+ themeKey: 'palette',
64
+ cssProperty: 'backgroundColor',
65
+ transform: palette.paletteTransform
66
+ },
67
+ backgroundColor: {
68
+ themeKey: 'palette',
69
+ transform: palette.paletteTransform
70
+ },
71
+ // spacing
72
+ p: {
73
+ style: spacing.padding
74
+ },
75
+ pt: {
76
+ style: spacing.padding
77
+ },
78
+ pr: {
79
+ style: spacing.padding
80
+ },
81
+ pb: {
82
+ style: spacing.padding
83
+ },
84
+ pl: {
85
+ style: spacing.padding
86
+ },
87
+ px: {
88
+ style: spacing.padding
89
+ },
90
+ py: {
91
+ style: spacing.padding
92
+ },
93
+ padding: {
94
+ style: spacing.padding
95
+ },
96
+ paddingTop: {
97
+ style: spacing.padding
98
+ },
99
+ paddingRight: {
100
+ style: spacing.padding
101
+ },
102
+ paddingBottom: {
103
+ style: spacing.padding
104
+ },
105
+ paddingLeft: {
106
+ style: spacing.padding
107
+ },
108
+ paddingX: {
109
+ style: spacing.padding
110
+ },
111
+ paddingY: {
112
+ style: spacing.padding
113
+ },
114
+ paddingInline: {
115
+ style: spacing.padding
116
+ },
117
+ paddingInlineStart: {
118
+ style: spacing.padding
119
+ },
120
+ paddingInlineEnd: {
121
+ style: spacing.padding
122
+ },
123
+ paddingBlock: {
124
+ style: spacing.padding
125
+ },
126
+ paddingBlockStart: {
127
+ style: spacing.padding
128
+ },
129
+ paddingBlockEnd: {
130
+ style: spacing.padding
131
+ },
132
+ m: {
133
+ style: spacing.margin
134
+ },
135
+ mt: {
136
+ style: spacing.margin
137
+ },
138
+ mr: {
139
+ style: spacing.margin
140
+ },
141
+ mb: {
142
+ style: spacing.margin
143
+ },
144
+ ml: {
145
+ style: spacing.margin
146
+ },
147
+ mx: {
148
+ style: spacing.margin
149
+ },
150
+ my: {
151
+ style: spacing.margin
152
+ },
153
+ margin: {
154
+ style: spacing.margin
155
+ },
156
+ marginTop: {
157
+ style: spacing.margin
158
+ },
159
+ marginRight: {
160
+ style: spacing.margin
161
+ },
162
+ marginBottom: {
163
+ style: spacing.margin
164
+ },
165
+ marginLeft: {
166
+ style: spacing.margin
167
+ },
168
+ marginX: {
169
+ style: spacing.margin
170
+ },
171
+ marginY: {
172
+ style: spacing.margin
173
+ },
174
+ marginInline: {
175
+ style: spacing.margin
176
+ },
177
+ marginInlineStart: {
178
+ style: spacing.margin
179
+ },
180
+ marginInlineEnd: {
181
+ style: spacing.margin
182
+ },
183
+ marginBlock: {
184
+ style: spacing.margin
185
+ },
186
+ marginBlockStart: {
187
+ style: spacing.margin
188
+ },
189
+ marginBlockEnd: {
190
+ style: spacing.margin
191
+ },
192
+ // display
193
+ displayPrint: {
194
+ cssProperty: false,
195
+ transform: value => ({
196
+ '@media print': {
197
+ display: value
198
+ }
199
+ })
200
+ },
201
+ display: {},
202
+ overflow: {},
203
+ textOverflow: {},
204
+ visibility: {},
205
+ whiteSpace: {},
206
+ // flexbox
207
+ flexBasis: {},
208
+ flexDirection: {},
209
+ flexWrap: {},
210
+ justifyContent: {},
211
+ alignItems: {},
212
+ alignContent: {},
213
+ order: {},
214
+ flex: {},
215
+ flexGrow: {},
216
+ flexShrink: {},
217
+ alignSelf: {},
218
+ justifyItems: {},
219
+ justifySelf: {},
220
+ // grid
221
+ gap: {
222
+ style: cssGrid.gap
223
+ },
224
+ rowGap: {
225
+ style: cssGrid.rowGap
226
+ },
227
+ columnGap: {
228
+ style: cssGrid.columnGap
229
+ },
230
+ gridColumn: {},
231
+ gridRow: {},
232
+ gridAutoFlow: {},
233
+ gridAutoColumns: {},
234
+ gridAutoRows: {},
235
+ gridTemplateColumns: {},
236
+ gridTemplateRows: {},
237
+ gridTemplateAreas: {},
238
+ gridArea: {},
239
+ // positions
240
+ position: {},
241
+ zIndex: {
242
+ themeKey: 'zIndex'
243
+ },
244
+ top: {},
245
+ right: {},
246
+ bottom: {},
247
+ left: {},
248
+ // shadows
249
+ boxShadow: {
250
+ themeKey: 'shadows'
251
+ },
252
+ // sizing
253
+ width: {
254
+ transform: sizing.sizingTransform
255
+ },
256
+ maxWidth: {
257
+ style: sizing.maxWidth
258
+ },
259
+ minWidth: {
260
+ transform: sizing.sizingTransform
261
+ },
262
+ height: {
263
+ transform: sizing.sizingTransform
264
+ },
265
+ maxHeight: {
266
+ transform: sizing.sizingTransform
267
+ },
268
+ minHeight: {
269
+ transform: sizing.sizingTransform
270
+ },
271
+ boxSizing: {},
272
+ // typography
273
+ fontFamily: {
274
+ themeKey: 'typography'
275
+ },
276
+ fontSize: {
277
+ themeKey: 'typography'
278
+ },
279
+ fontStyle: {
280
+ themeKey: 'typography'
281
+ },
282
+ fontWeight: {
283
+ themeKey: 'typography'
284
+ },
285
+ letterSpacing: {},
286
+ textTransform: {},
287
+ lineHeight: {},
288
+ textAlign: {},
289
+ typography: {
290
+ cssProperty: false,
291
+ themeKey: 'typography'
292
+ }
293
+ };
294
+
295
+ module.exports = defaultSxConfig;
@@ -0,0 +1,53 @@
1
+ 'use strict';
2
+
3
+ var _extends = require('../../../../@babel/runtime/helpers/esm/extends.js');
4
+ var objectWithoutPropertiesLoose = require('../../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js');
5
+ var defaultSxConfig = require('./defaultSxConfig.js');
6
+ var deepmerge = require('../../../utils/deepmerge/deepmerge.js');
7
+
8
+ const _excluded = ["sx"];
9
+ const splitProps = props => {
10
+ var _props$theme$unstable, _props$theme;
11
+ const result = {
12
+ systemProps: {},
13
+ otherProps: {}
14
+ };
15
+ const config = (_props$theme$unstable = props == null || (_props$theme = props.theme) == null ? undefined : _props$theme.unstable_sxConfig) != null ? _props$theme$unstable : defaultSxConfig;
16
+ Object.keys(props).forEach(prop => {
17
+ if (config[prop]) {
18
+ result.systemProps[prop] = props[prop];
19
+ } else {
20
+ result.otherProps[prop] = props[prop];
21
+ }
22
+ });
23
+ return result;
24
+ };
25
+ function extendSxProp(props) {
26
+ const {
27
+ sx: inSx
28
+ } = props,
29
+ other = objectWithoutPropertiesLoose(props, _excluded);
30
+ const {
31
+ systemProps,
32
+ otherProps
33
+ } = splitProps(other);
34
+ let finalSx;
35
+ if (Array.isArray(inSx)) {
36
+ finalSx = [systemProps, ...inSx];
37
+ } else if (typeof inSx === 'function') {
38
+ finalSx = (...args) => {
39
+ const result = inSx(...args);
40
+ if (!deepmerge.isPlainObject(result)) {
41
+ return systemProps;
42
+ }
43
+ return _extends({}, systemProps, result);
44
+ };
45
+ } else {
46
+ finalSx = _extends({}, systemProps, inSx);
47
+ }
48
+ return _extends({}, otherProps, {
49
+ sx: finalSx
50
+ });
51
+ }
52
+
53
+ module.exports = extendSxProp;
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var styleFunctionSx = require('./styleFunctionSx.js');
6
+ var extendSxProp = require('./extendSxProp.js');
7
+ var defaultSxConfig = require('./defaultSxConfig.js');
8
+
9
+
10
+
11
+ exports.default = styleFunctionSx.default;
12
+ exports.unstable_createStyleFunctionSx = styleFunctionSx.unstable_createStyleFunctionSx;
13
+ exports.extendSxProp = extendSxProp;
14
+ exports.unstable_defaultSxConfig = defaultSxConfig;
@@ -0,0 +1,134 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var merge = require('../merge.js');
6
+ var style = require('../style.js');
7
+ var breakpoints = require('../breakpoints.js');
8
+ var defaultSxConfig = require('./defaultSxConfig.js');
9
+ var capitalize = require('../../../utils/capitalize/capitalize.js');
10
+
11
+ function objectsHaveSameKeys(...objects) {
12
+ const allKeys = objects.reduce((keys, object) => keys.concat(Object.keys(object)), []);
13
+ const union = new Set(allKeys);
14
+ return objects.every(object => union.size === Object.keys(object).length);
15
+ }
16
+ function callIfFn(maybeFn, arg) {
17
+ return typeof maybeFn === 'function' ? maybeFn(arg) : maybeFn;
18
+ }
19
+
20
+ // eslint-disable-next-line @typescript-eslint/naming-convention
21
+ function unstable_createStyleFunctionSx() {
22
+ function getThemeValue(prop, val, theme, config) {
23
+ const props = {
24
+ [prop]: val,
25
+ theme
26
+ };
27
+ const options = config[prop];
28
+ if (!options) {
29
+ return {
30
+ [prop]: val
31
+ };
32
+ }
33
+ const {
34
+ cssProperty = prop,
35
+ themeKey,
36
+ transform,
37
+ style: style$1
38
+ } = options;
39
+ if (val == null) {
40
+ return null;
41
+ }
42
+
43
+ // TODO v6: remove, see https://github.com/mui/material-ui/pull/38123
44
+ if (themeKey === 'typography' && val === 'inherit') {
45
+ return {
46
+ [prop]: val
47
+ };
48
+ }
49
+ const themeMapping = style.getPath(theme, themeKey) || {};
50
+ if (style$1) {
51
+ return style$1(props);
52
+ }
53
+ const styleFromPropValue = propValueFinal => {
54
+ let value = style.getStyleValue(themeMapping, transform, propValueFinal);
55
+ if (propValueFinal === value && typeof propValueFinal === 'string') {
56
+ // Haven't found value
57
+ value = style.getStyleValue(themeMapping, transform, `${prop}${propValueFinal === 'default' ? '' : capitalize(propValueFinal)}`, propValueFinal);
58
+ }
59
+ if (cssProperty === false) {
60
+ return value;
61
+ }
62
+ return {
63
+ [cssProperty]: value
64
+ };
65
+ };
66
+ return breakpoints.handleBreakpoints(props, val, styleFromPropValue);
67
+ }
68
+ function styleFunctionSx(props) {
69
+ var _theme$unstable_sxCon;
70
+ const {
71
+ sx,
72
+ theme = {}
73
+ } = props || {};
74
+ if (!sx) {
75
+ return null; // Emotion & styled-components will neglect null
76
+ }
77
+ const config = (_theme$unstable_sxCon = theme.unstable_sxConfig) != null ? _theme$unstable_sxCon : defaultSxConfig;
78
+
79
+ /*
80
+ * Receive `sxInput` as object or callback
81
+ * and then recursively check keys & values to create media query object styles.
82
+ * (the result will be used in `styled`)
83
+ */
84
+ function traverse(sxInput) {
85
+ let sxObject = sxInput;
86
+ if (typeof sxInput === 'function') {
87
+ sxObject = sxInput(theme);
88
+ } else if (typeof sxInput !== 'object') {
89
+ // value
90
+ return sxInput;
91
+ }
92
+ if (!sxObject) {
93
+ return null;
94
+ }
95
+ const emptyBreakpoints = breakpoints.createEmptyBreakpointObject(theme.breakpoints);
96
+ const breakpointsKeys = Object.keys(emptyBreakpoints);
97
+ let css = emptyBreakpoints;
98
+ Object.keys(sxObject).forEach(styleKey => {
99
+ const value = callIfFn(sxObject[styleKey], theme);
100
+ if (value !== null && value !== undefined) {
101
+ if (typeof value === 'object') {
102
+ if (config[styleKey]) {
103
+ css = merge(css, getThemeValue(styleKey, value, theme, config));
104
+ } else {
105
+ const breakpointsValues = breakpoints.handleBreakpoints({
106
+ theme
107
+ }, value, x => ({
108
+ [styleKey]: x
109
+ }));
110
+ if (objectsHaveSameKeys(breakpointsValues, value)) {
111
+ css[styleKey] = styleFunctionSx({
112
+ sx: value,
113
+ theme
114
+ });
115
+ } else {
116
+ css = merge(css, breakpointsValues);
117
+ }
118
+ }
119
+ } else {
120
+ css = merge(css, getThemeValue(styleKey, value, theme, config));
121
+ }
122
+ }
123
+ });
124
+ return breakpoints.removeUnusedBreakpoints(breakpointsKeys, css);
125
+ }
126
+ return Array.isArray(sx) ? sx.map(traverse) : traverse(sx);
127
+ }
128
+ return styleFunctionSx;
129
+ }
130
+ const styleFunctionSx = unstable_createStyleFunctionSx();
131
+ styleFunctionSx.filterProps = ['sx'];
132
+
133
+ exports.default = styleFunctionSx;
134
+ exports.unstable_createStyleFunctionSx = unstable_createStyleFunctionSx;
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var useThemeWithoutDefault = require('./useThemeWithoutDefault.js');
6
+ var createTheme = require('./createTheme/createTheme.js');
7
+
8
+ const systemDefaultTheme = createTheme();
9
+ function useTheme(defaultTheme = systemDefaultTheme) {
10
+ return useThemeWithoutDefault(defaultTheme);
11
+ }
12
+
13
+ exports.default = useTheme;
14
+ exports.systemDefaultTheme = systemDefaultTheme;
@@ -0,0 +1,17 @@
1
+ 'use strict';
2
+
3
+ var resolveProps = require('../../../utils/resolveProps/resolveProps.js');
4
+
5
+ function getThemeProps(params) {
6
+ const {
7
+ theme,
8
+ name,
9
+ props
10
+ } = params;
11
+ if (!theme || !theme.components || !theme.components[name] || !theme.components[name].defaultProps) {
12
+ return props;
13
+ }
14
+ return resolveProps(theme.components[name].defaultProps, props);
15
+ }
16
+
17
+ module.exports = getThemeProps;
@@ -0,0 +1,24 @@
1
+ 'use strict';
2
+
3
+ var getThemeProps = require('./getThemeProps.js');
4
+ var useTheme = require('../useTheme.js');
5
+
6
+ function useThemeProps({
7
+ props,
8
+ name,
9
+ defaultTheme,
10
+ themeId
11
+ }) {
12
+ let theme = useTheme.default(defaultTheme);
13
+ if (themeId) {
14
+ theme = theme[themeId] || theme;
15
+ }
16
+ const mergedProps = getThemeProps({
17
+ theme,
18
+ name,
19
+ props
20
+ });
21
+ return mergedProps;
22
+ }
23
+
24
+ module.exports = useThemeProps;
@@ -0,0 +1,33 @@
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+ var react = require('@emotion/react');
5
+
6
+ function _interopNamespaceDefault(e) {
7
+ var n = Object.create(null);
8
+ if (e) {
9
+ Object.keys(e).forEach(function (k) {
10
+ if (k !== 'default') {
11
+ var d = Object.getOwnPropertyDescriptor(e, k);
12
+ Object.defineProperty(n, k, d.get ? d : {
13
+ enumerable: true,
14
+ get: function () { return e[k]; }
15
+ });
16
+ }
17
+ });
18
+ }
19
+ n.default = e;
20
+ return Object.freeze(n);
21
+ }
22
+
23
+ var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
24
+
25
+ function isObjectEmpty(obj) {
26
+ return Object.keys(obj).length === 0;
27
+ }
28
+ function useTheme(defaultTheme = null) {
29
+ const contextTheme = React__namespace.useContext(react.ThemeContext);
30
+ return !contextTheme || isObjectEmpty(contextTheme) ? defaultTheme : contextTheme;
31
+ }
32
+
33
+ module.exports = useTheme;
@@ -0,0 +1,20 @@
1
+ 'use strict';
2
+
3
+ const defaultGenerator = componentName => componentName;
4
+ const createClassNameGenerator = () => {
5
+ let generate = defaultGenerator;
6
+ return {
7
+ configure(generator) {
8
+ generate = generator;
9
+ },
10
+ generate(componentName) {
11
+ return generate(componentName);
12
+ },
13
+ reset() {
14
+ generate = defaultGenerator;
15
+ }
16
+ };
17
+ };
18
+ const ClassNameGenerator = createClassNameGenerator();
19
+
20
+ module.exports = ClassNameGenerator;
@@ -0,0 +1,16 @@
1
+ 'use strict';
2
+
3
+ var formatMuiErrorMessage = require('../formatMuiErrorMessage/formatMuiErrorMessage.js');
4
+
5
+ // It should to be noted that this function isn't equivalent to `text-transform: capitalize`.
6
+ //
7
+ // A strict capitalization should uppercase the first letter of each word in the sentence.
8
+ // We only handle the first word.
9
+ function capitalize(string) {
10
+ if (typeof string !== 'string') {
11
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: \`capitalize(string)\` expects a string argument.` : formatMuiErrorMessage(7));
12
+ }
13
+ return string.charAt(0).toUpperCase() + string.slice(1);
14
+ }
15
+
16
+ module.exports = capitalize;
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ var capitalize = require('./capitalize.js');
4
+
5
+
6
+
7
+ module.exports = capitalize;
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ function clamp(val, min = Number.MIN_SAFE_INTEGER, max = Number.MAX_SAFE_INTEGER) {
4
+ return Math.max(min, Math.min(val, max));
5
+ }
6
+
7
+ module.exports = clamp;
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ var clamp = require('./clamp.js');
4
+
5
+
6
+
7
+ module.exports = clamp;
@@ -0,0 +1,25 @@
1
+ 'use strict';
2
+
3
+ function composeClasses(slots, getUtilityClass, classes = undefined) {
4
+ const output = {};
5
+ Object.keys(slots).forEach(
6
+ // `Object.keys(slots)` can't be wider than `T` because we infer `T` from `slots`.
7
+ // @ts-expect-error https://github.com/microsoft/TypeScript/pull/12253#issuecomment-263132208
8
+ slot => {
9
+ output[slot] = slots[slot].reduce((acc, key) => {
10
+ if (key) {
11
+ const utilityClass = getUtilityClass(key);
12
+ if (utilityClass !== '') {
13
+ acc.push(utilityClass);
14
+ }
15
+ if (classes && classes[key]) {
16
+ acc.push(classes[key]);
17
+ }
18
+ }
19
+ return acc;
20
+ }, []).join(' ');
21
+ });
22
+ return output;
23
+ }
24
+
25
+ module.exports = composeClasses;