@ceed/cds 0.0.187-treeshaking.2 → 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 -53
  77. package/framer/index.js +30 -30
  78. package/package.json +4 -8
  79. package/dist/_virtual/_commonjsHelpers.js +0 -31
  80. package/dist/_virtual/bind-all.js +0 -4
  81. package/dist/_virtual/bind.js +0 -4
  82. package/dist/_virtual/colorManipulator.js +0 -6
  83. package/dist/_virtual/colorManipulator2.js +0 -4
  84. package/dist/_virtual/createStyled.js +0 -8
  85. package/dist/_virtual/createStyled2.js +0 -4
  86. package/dist/_virtual/extends.js +0 -4
  87. package/dist/_virtual/index.js +0 -6
  88. package/dist/_virtual/index10.js +0 -7
  89. package/dist/_virtual/index11.js +0 -7
  90. package/dist/_virtual/index12.js +0 -7
  91. package/dist/_virtual/index2.js +0 -4
  92. package/dist/_virtual/index3.js +0 -8
  93. package/dist/_virtual/index4.js +0 -4
  94. package/dist/_virtual/index5.js +0 -7
  95. package/dist/_virtual/index6.js +0 -7
  96. package/dist/_virtual/index7.js +0 -7
  97. package/dist/_virtual/index8.js +0 -7
  98. package/dist/_virtual/index9.js +0 -7
  99. package/dist/_virtual/interopRequireDefault.js +0 -4
  100. package/dist/_virtual/objectWithoutPropertiesLoose.js +0 -4
  101. package/dist/components/Accordions/Accordions.js +0 -44
  102. package/dist/components/Autocomplete/Autocomplete.js +0 -197
  103. package/dist/components/Autocomplete/index.js +0 -6
  104. package/dist/components/Avatar/Avatar.js +0 -43
  105. package/dist/components/Box/Box.js +0 -9
  106. package/dist/components/Box/index.js +0 -6
  107. package/dist/components/Breadcrumbs/Breadcrumbs.js +0 -48
  108. package/dist/components/Button/Button.js +0 -21
  109. package/dist/components/Button/index.js +0 -6
  110. package/dist/components/Calendar/Calendar.js +0 -334
  111. package/dist/components/Calendar/hooks/use-calendar-props.js +0 -75
  112. package/dist/components/Calendar/hooks/use-calendar.js +0 -248
  113. package/dist/components/Calendar/index.js +0 -6
  114. package/dist/components/Calendar/utils/index.js +0 -75
  115. package/dist/components/Card/Card.js +0 -21
  116. package/dist/components/Checkbox/Checkbox.js +0 -20
  117. package/dist/components/Checkbox/index.js +0 -6
  118. package/dist/components/Chip/Chip.js +0 -9
  119. package/dist/components/Chip/index.js +0 -6
  120. package/dist/components/Container/Container.js +0 -50
  121. package/dist/components/CurrencyInput/CurrencyInput.js +0 -92
  122. package/dist/components/CurrencyInput/hooks/use-currency-setting.js +0 -168
  123. package/dist/components/CurrencyInput/index.js +0 -6
  124. package/dist/components/DataTable/DataTable.js +0 -569
  125. package/dist/components/DatePicker/DatePicker.js +0 -211
  126. package/dist/components/DatePicker/index.js +0 -6
  127. package/dist/components/DateRangePicker/DateRangePicker.js +0 -214
  128. package/dist/components/DialogActions/DialogActions.js +0 -15
  129. package/dist/components/DialogActions/index.js +0 -6
  130. package/dist/components/DialogContent/DialogContent.js +0 -12
  131. package/dist/components/DialogContent/index.js +0 -6
  132. package/dist/components/DialogFrame/DialogFrame.js +0 -32
  133. package/dist/components/DialogTitle/DialogTitle.js +0 -12
  134. package/dist/components/DialogTitle/index.js +0 -6
  135. package/dist/components/Divider/Divider.js +0 -20
  136. package/dist/components/Drawer/Drawer.js +0 -41
  137. package/dist/components/Dropdown/Dropdown.js +0 -9
  138. package/dist/components/Dropdown/index.js +0 -6
  139. package/dist/components/FormControl/FormControl.js +0 -16
  140. package/dist/components/FormControl/index.js +0 -6
  141. package/dist/components/FormHelperText/FormHelperText.js +0 -9
  142. package/dist/components/FormHelperText/index.js +0 -6
  143. package/dist/components/FormLabel/FormLabel.js +0 -9
  144. package/dist/components/FormLabel/index.js +0 -6
  145. package/dist/components/IconButton/IconButton.js +0 -21
  146. package/dist/components/IconButton/index.js +0 -6
  147. package/dist/components/Input/Input.js +0 -61
  148. package/dist/components/Input/index.js +0 -6
  149. package/dist/components/InsetDrawer/InsetDrawer.js +0 -31
  150. package/dist/components/Markdown/Markdown.js +0 -37
  151. package/dist/components/Menu/Menu.js +0 -44
  152. package/dist/components/Menu/index.js +0 -7
  153. package/dist/components/MenuButton/MenuButton.js +0 -27
  154. package/dist/components/Modal/Modal.js +0 -44
  155. package/dist/components/MonthPicker/MonthPicker.js +0 -163
  156. package/dist/components/MonthRangePicker/MonthRangePicker.js +0 -173
  157. package/dist/components/NavigationGroup/NavigationGroup.js +0 -43
  158. package/dist/components/NavigationItem/NavigationItem.js +0 -46
  159. package/dist/components/Navigator/Navigator.js +0 -31
  160. package/dist/components/Pagination/Pagination.js +0 -118
  161. package/dist/components/Pagination/index.js +0 -6
  162. package/dist/components/PercentageInput/PercentageInput.js +0 -86
  163. package/dist/components/Radio/Radio.js +0 -12
  164. package/dist/components/RadioList/RadioList.js +0 -19
  165. package/dist/components/Select/Select.js +0 -57
  166. package/dist/components/Select/index.js +0 -7
  167. package/dist/components/Sheet/Sheet.js +0 -9
  168. package/dist/components/Sheet/index.js +0 -6
  169. package/dist/components/Stack/index.js +0 -3
  170. package/dist/components/Stepper/Stepper.js +0 -67
  171. package/dist/components/Switch/Switch.js +0 -47
  172. package/dist/components/Table/Table.js +0 -65
  173. package/dist/components/Tabs/Tabs.js +0 -18
  174. package/dist/components/Textarea/Textarea.js +0 -32
  175. package/dist/components/Textarea/index.js +0 -6
  176. package/dist/components/ThemeProvider/ThemeProvider.js +0 -241
  177. package/dist/components/Tooltip/Tooltip.js +0 -20
  178. package/dist/components/Tooltip/index.js +0 -6
  179. package/dist/components/Typography/Typography.js +0 -20
  180. package/dist/components/Typography/index.js +0 -6
  181. package/dist/components/Uploader/Uploader.js +0 -403
  182. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/adapter/element-adapter-native-data-key.js +0 -9
  183. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/adapter/external-adapter.js +0 -246
  184. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/combine.js +0 -2
  185. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/external/adapter.js +0 -2
  186. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/external/file.js +0 -2
  187. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/prevent-unhandled.js +0 -2
  188. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/honey-pot-fix/get-element-from-point-without-honey-pot.js +0 -20
  189. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/honey-pot-fix/honey-pot-data-attribute.js +0 -6
  190. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/honey-pot-fix/is-honey-pot-element.js +0 -8
  191. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/ledger/dispatch-consumer-event.js +0 -129
  192. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/ledger/lifecycle-manager.js +0 -341
  193. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/ledger/usage-ledger.js +0 -34
  194. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/make-adapter/make-adapter.js +0 -61
  195. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/make-adapter/make-drop-target.js +0 -313
  196. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/make-adapter/make-monitor.js +0 -97
  197. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/public-utils/combine.js +0 -14
  198. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/public-utils/external/file.js +0 -24
  199. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/public-utils/once.js +0 -19
  200. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/public-utils/prevent-unhandled.js +0 -103
  201. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/add-attribute.js +0 -11
  202. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/android.js +0 -4
  203. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/changing-window/count-events-for-safari.js +0 -124
  204. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/changing-window/is-entering-window.js +0 -56
  205. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/changing-window/is-from-another-window.js +0 -19
  206. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/changing-window/is-leaving-window.js +0 -56
  207. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/detect-broken-drag.js +0 -50
  208. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/get-input.js +0 -17
  209. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/is-firefox.js +0 -16
  210. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/is-safari.js +0 -19
  211. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/media-types/text-media-type.js +0 -9
  212. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -8
  213. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -6
  214. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/arrayWithoutHoles.js +0 -8
  215. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/defineProperty.js +0 -19
  216. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/iterableToArray.js +0 -6
  217. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/iterableToArrayLimit.js +0 -27
  218. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/nonIterableRest.js +0 -6
  219. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/nonIterableSpread.js +0 -6
  220. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/slicedToArray.js +0 -11
  221. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/toConsumableArray.js +0 -11
  222. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/toPrimitive.js +0 -15
  223. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/toPropertyKey.js +0 -10
  224. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/typeof.js +0 -12
  225. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -13
  226. package/dist/external/@babel/runtime/helpers/esm/extends.js +0 -17
  227. package/dist/external/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -15
  228. package/dist/external/@babel/runtime/helpers/extends.js +0 -29
  229. package/dist/external/@babel/runtime/helpers/interopRequireDefault.js +0 -20
  230. package/dist/external/@babel/runtime/helpers/objectWithoutPropertiesLoose.js +0 -27
  231. package/dist/external/@emotion/cache/dist/emotion-cache.esm.js +0 -654
  232. package/dist/external/@emotion/memoize/dist/emotion-memoize.esm.js +0 -10
  233. package/dist/external/@emotion/sheet/dist/emotion-sheet.esm.js +0 -155
  234. package/dist/external/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +0 -17
  235. package/dist/external/@mui/icons-material/esm/ArrowUpwardRounded.js +0 -9
  236. package/dist/external/@mui/icons-material/esm/CalendarToday.js +0 -9
  237. package/dist/external/@mui/icons-material/esm/Check.js +0 -9
  238. package/dist/external/@mui/icons-material/esm/ChevronLeft.js +0 -9
  239. package/dist/external/@mui/icons-material/esm/ChevronRight.js +0 -9
  240. package/dist/external/@mui/icons-material/esm/ClearRounded.js +0 -9
  241. package/dist/external/@mui/icons-material/esm/Close.js +0 -9
  242. package/dist/external/@mui/icons-material/esm/CloudUploadRounded.js +0 -9
  243. package/dist/external/@mui/icons-material/esm/ExpandMore.js +0 -9
  244. package/dist/external/@mui/icons-material/esm/Info.js +0 -9
  245. package/dist/external/@mui/icons-material/esm/UploadFileRounded.js +0 -9
  246. package/dist/external/@mui/material/SvgIcon/SvgIcon.js +0 -187
  247. package/dist/external/@mui/material/SvgIcon/svgIconClasses.js +0 -10
  248. package/dist/external/@mui/material/colors/blue.js +0 -19
  249. package/dist/external/@mui/material/colors/common.js +0 -7
  250. package/dist/external/@mui/material/colors/green.js +0 -19
  251. package/dist/external/@mui/material/colors/grey.js +0 -19
  252. package/dist/external/@mui/material/colors/lightBlue.js +0 -19
  253. package/dist/external/@mui/material/colors/orange.js +0 -19
  254. package/dist/external/@mui/material/colors/purple.js +0 -19
  255. package/dist/external/@mui/material/colors/red.js +0 -19
  256. package/dist/external/@mui/material/styles/createMixins.js +0 -20
  257. package/dist/external/@mui/material/styles/createPalette.js +0 -309
  258. package/dist/external/@mui/material/styles/createTheme.js +0 -83
  259. package/dist/external/@mui/material/styles/createTransitions.js +0 -92
  260. package/dist/external/@mui/material/styles/createTypography.js +0 -94
  261. package/dist/external/@mui/material/styles/defaultTheme.js +0 -6
  262. package/dist/external/@mui/material/styles/identifier.js +0 -4
  263. package/dist/external/@mui/material/styles/rootShouldForwardProp.js +0 -6
  264. package/dist/external/@mui/material/styles/shadows.js +0 -12
  265. package/dist/external/@mui/material/styles/slotShouldForwardProp.js +0 -7
  266. package/dist/external/@mui/material/styles/styled.js +0 -13
  267. package/dist/external/@mui/material/styles/useThemeProps.js +0 -18
  268. package/dist/external/@mui/material/styles/zIndex.js +0 -15
  269. package/dist/external/@mui/material/utils/capitalize.js +0 -6
  270. package/dist/external/@mui/material/utils/createSvgIcon.js +0 -25
  271. package/dist/external/@mui/styled-engine/GlobalStyles/GlobalStyles.js +0 -25
  272. package/dist/external/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider.js +0 -38
  273. package/dist/external/@mui/styled-engine/index.js +0 -39
  274. package/dist/external/@mui/system/colorManipulator.js +0 -386
  275. package/dist/external/@mui/system/createStyled.js +0 -271
  276. package/dist/external/@mui/system/esm/borders.js +0 -52
  277. package/dist/external/@mui/system/esm/breakpoints.js +0 -67
  278. package/dist/external/@mui/system/esm/compose.js +0 -27
  279. package/dist/external/@mui/system/esm/createTheme/applyStyles.js +0 -77
  280. package/dist/external/@mui/system/esm/createTheme/createBreakpoints.js +0 -83
  281. package/dist/external/@mui/system/esm/createTheme/createSpacing.js +0 -35
  282. package/dist/external/@mui/system/esm/createTheme/createTheme.js +0 -46
  283. package/dist/external/@mui/system/esm/createTheme/index.js +0 -4
  284. package/dist/external/@mui/system/esm/createTheme/shape.js +0 -6
  285. package/dist/external/@mui/system/esm/cssGrid.js +0 -87
  286. package/dist/external/@mui/system/esm/memoize.js +0 -12
  287. package/dist/external/@mui/system/esm/merge.js +0 -13
  288. package/dist/external/@mui/system/esm/palette.js +0 -29
  289. package/dist/external/@mui/system/esm/responsivePropType.js +0 -6
  290. package/dist/external/@mui/system/esm/sizing.js +0 -68
  291. package/dist/external/@mui/system/esm/spacing.js +0 -145
  292. package/dist/external/@mui/system/esm/style.js +0 -78
  293. package/dist/external/@mui/system/esm/styleFunctionSx/defaultSxConfig.js +0 -294
  294. package/dist/external/@mui/system/esm/styleFunctionSx/extendSxProp.js +0 -52
  295. package/dist/external/@mui/system/esm/styleFunctionSx/index.js +0 -4
  296. package/dist/external/@mui/system/esm/styleFunctionSx/styleFunctionSx.js +0 -130
  297. package/dist/external/@mui/system/esm/useTheme.js +0 -10
  298. package/dist/external/@mui/system/esm/useThemeProps/getThemeProps.js +0 -16
  299. package/dist/external/@mui/system/esm/useThemeProps/useThemeProps.js +0 -23
  300. package/dist/external/@mui/system/esm/useThemeWithoutDefault.js +0 -13
  301. package/dist/external/@mui/utils/ClassNameGenerator/ClassNameGenerator.js +0 -19
  302. package/dist/external/@mui/utils/capitalize/capitalize.js +0 -15
  303. package/dist/external/@mui/utils/capitalize/index.js +0 -2
  304. package/dist/external/@mui/utils/clamp/clamp.js +0 -6
  305. package/dist/external/@mui/utils/clamp/index.js +0 -2
  306. package/dist/external/@mui/utils/composeClasses/composeClasses.js +0 -24
  307. package/dist/external/@mui/utils/deepmerge/deepmerge.js +0 -45
  308. package/dist/external/@mui/utils/deepmerge/index.js +0 -2
  309. package/dist/external/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js +0 -22
  310. package/dist/external/@mui/utils/formatMuiErrorMessage/index.js +0 -2
  311. package/dist/external/@mui/utils/generateUtilityClass/generateUtilityClass.js +0 -23
  312. package/dist/external/@mui/utils/generateUtilityClasses/generateUtilityClasses.js +0 -12
  313. package/dist/external/@mui/utils/getDisplayName/getDisplayName.js +0 -50
  314. package/dist/external/@mui/utils/getDisplayName/index.js +0 -2
  315. package/dist/external/@mui/utils/resolveProps/resolveProps.js +0 -38
  316. package/dist/external/bind-event-listener/dist/bind-all.js +0 -55
  317. package/dist/external/bind-event-listener/dist/bind.js +0 -22
  318. package/dist/external/bind-event-listener/dist/index.js +0 -22
  319. package/dist/external/clsx/dist/clsx.js +0 -4
  320. package/dist/external/object-assign/index.js +0 -100
  321. package/dist/external/prop-types/checkPropTypes.js +0 -116
  322. package/dist/external/prop-types/factoryWithThrowingShims.js +0 -75
  323. package/dist/external/prop-types/factoryWithTypeCheckers.js +0 -626
  324. package/dist/external/prop-types/index.js +0 -34
  325. package/dist/external/prop-types/lib/ReactPropTypesSecret.js +0 -22
  326. package/dist/external/prop-types/lib/has.js +0 -12
  327. package/dist/external/raf-schd/dist/raf-schd.esm.js +0 -35
  328. package/dist/external/stylis/src/Enum.js +0 -13
  329. package/dist/external/stylis/src/Middleware.js +0 -33
  330. package/dist/external/stylis/src/Parser.js +0 -194
  331. package/dist/external/stylis/src/Serializer.js +0 -39
  332. package/dist/external/stylis/src/Tokenizer.js +0 -224
  333. package/dist/external/stylis/src/Utility.js +0 -118
  334. package/dist/hooks/use-controlled-state/index.js +0 -24
  335. package/dist/libs/rehype-accent/index.js +0 -40
@@ -1,27 +0,0 @@
1
- 'use client';
2
- import { __module as objectWithoutPropertiesLoose } from '../../../../_virtual/objectWithoutPropertiesLoose.js';
3
-
4
- var hasRequiredObjectWithoutPropertiesLoose;
5
-
6
- function requireObjectWithoutPropertiesLoose () {
7
- if (hasRequiredObjectWithoutPropertiesLoose) return objectWithoutPropertiesLoose.exports;
8
- hasRequiredObjectWithoutPropertiesLoose = 1;
9
- (function (module) {
10
- function _objectWithoutPropertiesLoose(source, excluded) {
11
- if (source == null) return {};
12
- var target = {};
13
- var sourceKeys = Object.keys(source);
14
- var key, i;
15
- for (i = 0; i < sourceKeys.length; i++) {
16
- key = sourceKeys[i];
17
- if (excluded.indexOf(key) >= 0) continue;
18
- target[key] = source[key];
19
- }
20
- return target;
21
- }
22
- module.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports["default"] = module.exports;
23
- } (objectWithoutPropertiesLoose));
24
- return objectWithoutPropertiesLoose.exports;
25
- }
26
-
27
- export { requireObjectWithoutPropertiesLoose as __require };
@@ -1,654 +0,0 @@
1
- 'use client';
2
- import { StyleSheet } from '../../sheet/dist/emotion-sheet.esm.js';
3
- import weakMemoize from '../../weak-memoize/dist/emotion-weak-memoize.esm.js';
4
- import memoize from '../../memoize/dist/emotion-memoize.esm.js';
5
- import { stringify, serialize } from '../../../stylis/src/Serializer.js';
6
- import { COMMENT, RULESET, KEYFRAMES, DECLARATION, WEBKIT, MS, MOZ } from '../../../stylis/src/Enum.js';
7
- import { rulesheet, middleware } from '../../../stylis/src/Middleware.js';
8
- import { compile } from '../../../stylis/src/Parser.js';
9
- import { combine, replace, hash, charat, strlen, indexof, match, from } from '../../../stylis/src/Utility.js';
10
- import { copy, dealloc, alloc, next, token, peek, delimit, slice, position } from '../../../stylis/src/Tokenizer.js';
11
-
12
- var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {
13
- var previous = 0;
14
- var character = 0;
15
-
16
- while (true) {
17
- previous = character;
18
- character = peek(); // &\f
19
-
20
- if (previous === 38 && character === 12) {
21
- points[index] = 1;
22
- }
23
-
24
- if (token(character)) {
25
- break;
26
- }
27
-
28
- next();
29
- }
30
-
31
- return slice(begin, position);
32
- };
33
-
34
- var toRules = function toRules(parsed, points) {
35
- // pretend we've started with a comma
36
- var index = -1;
37
- var character = 44;
38
-
39
- do {
40
- switch (token(character)) {
41
- case 0:
42
- // &\f
43
- if (character === 38 && peek() === 12) {
44
- // this is not 100% correct, we don't account for literal sequences here - like for example quoted strings
45
- // stylis inserts \f after & to know when & where it should replace this sequence with the context selector
46
- // and when it should just concatenate the outer and inner selectors
47
- // it's very unlikely for this sequence to actually appear in a different context, so we just leverage this fact here
48
- points[index] = 1;
49
- }
50
-
51
- parsed[index] += identifierWithPointTracking(position - 1, points, index);
52
- break;
53
-
54
- case 2:
55
- parsed[index] += delimit(character);
56
- break;
57
-
58
- case 4:
59
- // comma
60
- if (character === 44) {
61
- // colon
62
- parsed[++index] = peek() === 58 ? '&\f' : '';
63
- points[index] = parsed[index].length;
64
- break;
65
- }
66
-
67
- // fallthrough
68
-
69
- default:
70
- parsed[index] += from(character);
71
- }
72
- } while (character = next());
73
-
74
- return parsed;
75
- };
76
-
77
- var getRules = function getRules(value, points) {
78
- return dealloc(toRules(alloc(value), points));
79
- }; // WeakSet would be more appropriate, but only WeakMap is supported in IE11
80
-
81
-
82
- var fixedElements = /* #__PURE__ */new WeakMap();
83
- var compat = function compat(element) {
84
- if (element.type !== 'rule' || !element.parent || // positive .length indicates that this rule contains pseudo
85
- // negative .length indicates that this rule has been already prefixed
86
- element.length < 1) {
87
- return;
88
- }
89
-
90
- var value = element.value,
91
- parent = element.parent;
92
- var isImplicitRule = element.column === parent.column && element.line === parent.line;
93
-
94
- while (parent.type !== 'rule') {
95
- parent = parent.parent;
96
- if (!parent) return;
97
- } // short-circuit for the simplest case
98
-
99
-
100
- if (element.props.length === 1 && value.charCodeAt(0) !== 58
101
- /* colon */
102
- && !fixedElements.get(parent)) {
103
- return;
104
- } // if this is an implicitly inserted rule (the one eagerly inserted at the each new nested level)
105
- // then the props has already been manipulated beforehand as they that array is shared between it and its "rule parent"
106
-
107
-
108
- if (isImplicitRule) {
109
- return;
110
- }
111
-
112
- fixedElements.set(element, true);
113
- var points = [];
114
- var rules = getRules(value, points);
115
- var parentRules = parent.props;
116
-
117
- for (var i = 0, k = 0; i < rules.length; i++) {
118
- for (var j = 0; j < parentRules.length; j++, k++) {
119
- element.props[k] = points[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i];
120
- }
121
- }
122
- };
123
- var removeLabel = function removeLabel(element) {
124
- if (element.type === 'decl') {
125
- var value = element.value;
126
-
127
- if ( // charcode for l
128
- value.charCodeAt(0) === 108 && // charcode for b
129
- value.charCodeAt(2) === 98) {
130
- // this ignores label
131
- element["return"] = '';
132
- element.value = '';
133
- }
134
- }
135
- };
136
- var ignoreFlag = 'emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason';
137
-
138
- var isIgnoringComment = function isIgnoringComment(element) {
139
- return element.type === 'comm' && element.children.indexOf(ignoreFlag) > -1;
140
- };
141
-
142
- var createUnsafeSelectorsAlarm = function createUnsafeSelectorsAlarm(cache) {
143
- return function (element, index, children) {
144
- if (element.type !== 'rule' || cache.compat) return;
145
- var unsafePseudoClasses = element.value.match(/(:first|:nth|:nth-last)-child/g);
146
-
147
- if (unsafePseudoClasses) {
148
- var isNested = !!element.parent; // in nested rules comments become children of the "auto-inserted" rule and that's always the `element.parent`
149
- //
150
- // considering this input:
151
- // .a {
152
- // .b /* comm */ {}
153
- // color: hotpink;
154
- // }
155
- // we get output corresponding to this:
156
- // .a {
157
- // & {
158
- // /* comm */
159
- // color: hotpink;
160
- // }
161
- // .b {}
162
- // }
163
-
164
- var commentContainer = isNested ? element.parent.children : // global rule at the root level
165
- children;
166
-
167
- for (var i = commentContainer.length - 1; i >= 0; i--) {
168
- var node = commentContainer[i];
169
-
170
- if (node.line < element.line) {
171
- break;
172
- } // it is quite weird but comments are *usually* put at `column: element.column - 1`
173
- // so we seek *from the end* for the node that is earlier than the rule's `element` and check that
174
- // this will also match inputs like this:
175
- // .a {
176
- // /* comm */
177
- // .b {}
178
- // }
179
- //
180
- // but that is fine
181
- //
182
- // it would be the easiest to change the placement of the comment to be the first child of the rule:
183
- // .a {
184
- // .b { /* comm */ }
185
- // }
186
- // with such inputs we wouldn't have to search for the comment at all
187
- // TODO: consider changing this comment placement in the next major version
188
-
189
-
190
- if (node.column < element.column) {
191
- if (isIgnoringComment(node)) {
192
- return;
193
- }
194
-
195
- break;
196
- }
197
- }
198
-
199
- unsafePseudoClasses.forEach(function (unsafePseudoClass) {
200
- console.error("The pseudo class \"" + unsafePseudoClass + "\" is potentially unsafe when doing server-side rendering. Try changing it to \"" + unsafePseudoClass.split('-child')[0] + "-of-type\".");
201
- });
202
- }
203
- };
204
- };
205
-
206
- var isImportRule = function isImportRule(element) {
207
- return element.type.charCodeAt(1) === 105 && element.type.charCodeAt(0) === 64;
208
- };
209
-
210
- var isPrependedWithRegularRules = function isPrependedWithRegularRules(index, children) {
211
- for (var i = index - 1; i >= 0; i--) {
212
- if (!isImportRule(children[i])) {
213
- return true;
214
- }
215
- }
216
-
217
- return false;
218
- }; // use this to remove incorrect elements from further processing
219
- // so they don't get handed to the `sheet` (or anything else)
220
- // as that could potentially lead to additional logs which in turn could be overhelming to the user
221
-
222
-
223
- var nullifyElement = function nullifyElement(element) {
224
- element.type = '';
225
- element.value = '';
226
- element["return"] = '';
227
- element.children = '';
228
- element.props = '';
229
- };
230
-
231
- var incorrectImportAlarm = function incorrectImportAlarm(element, index, children) {
232
- if (!isImportRule(element)) {
233
- return;
234
- }
235
-
236
- if (element.parent) {
237
- console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles.");
238
- nullifyElement(element);
239
- } else if (isPrependedWithRegularRules(index, children)) {
240
- console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules.");
241
- nullifyElement(element);
242
- }
243
- };
244
-
245
- /* eslint-disable no-fallthrough */
246
-
247
- function prefix(value, length) {
248
- switch (hash(value, length)) {
249
- // color-adjust
250
- case 5103:
251
- return WEBKIT + 'print-' + value + value;
252
- // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
253
-
254
- case 5737:
255
- case 4201:
256
- case 3177:
257
- case 3433:
258
- case 1641:
259
- case 4457:
260
- case 2921: // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
261
-
262
- case 5572:
263
- case 6356:
264
- case 5844:
265
- case 3191:
266
- case 6645:
267
- case 3005: // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
268
-
269
- case 6391:
270
- case 5879:
271
- case 5623:
272
- case 6135:
273
- case 4599:
274
- case 4855: // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
275
-
276
- case 4215:
277
- case 6389:
278
- case 5109:
279
- case 5365:
280
- case 5621:
281
- case 3829:
282
- return WEBKIT + value + value;
283
- // appearance, user-select, transform, hyphens, text-size-adjust
284
-
285
- case 5349:
286
- case 4246:
287
- case 4810:
288
- case 6968:
289
- case 2756:
290
- return WEBKIT + value + MOZ + value + MS + value + value;
291
- // flex, flex-direction
292
-
293
- case 6828:
294
- case 4268:
295
- return WEBKIT + value + MS + value + value;
296
- // order
297
-
298
- case 6165:
299
- return WEBKIT + value + MS + 'flex-' + value + value;
300
- // align-items
301
-
302
- case 5187:
303
- return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value;
304
- // align-self
305
-
306
- case 5443:
307
- return WEBKIT + value + MS + 'flex-item-' + replace(value, /flex-|-self/, '') + value;
308
- // align-content
309
-
310
- case 4675:
311
- return WEBKIT + value + MS + 'flex-line-pack' + replace(value, /align-content|flex-|-self/, '') + value;
312
- // flex-shrink
313
-
314
- case 5548:
315
- return WEBKIT + value + MS + replace(value, 'shrink', 'negative') + value;
316
- // flex-basis
317
-
318
- case 5292:
319
- return WEBKIT + value + MS + replace(value, 'basis', 'preferred-size') + value;
320
- // flex-grow
321
-
322
- case 6060:
323
- return WEBKIT + 'box-' + replace(value, '-grow', '') + WEBKIT + value + MS + replace(value, 'grow', 'positive') + value;
324
- // transition
325
-
326
- case 4554:
327
- return WEBKIT + replace(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value;
328
- // cursor
329
-
330
- case 6187:
331
- return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value;
332
- // background, background-image
333
-
334
- case 5495:
335
- case 3959:
336
- return replace(value, /(image-set\([^]*)/, WEBKIT + '$1' + '$`$1');
337
- // justify-content
338
-
339
- case 4968:
340
- return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value;
341
- // (margin|padding)-inline-(start|end)
342
-
343
- case 4095:
344
- case 3583:
345
- case 4068:
346
- case 2532:
347
- return replace(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value;
348
- // (min|max)?(width|height|inline-size|block-size)
349
-
350
- case 8116:
351
- case 7059:
352
- case 5753:
353
- case 5535:
354
- case 5445:
355
- case 5701:
356
- case 4933:
357
- case 4677:
358
- case 5533:
359
- case 5789:
360
- case 5021:
361
- case 4765:
362
- // stretch, max-content, min-content, fill-available
363
- if (strlen(value) - 1 - length > 6) switch (charat(value, length + 1)) {
364
- // (m)ax-content, (m)in-content
365
- case 109:
366
- // -
367
- if (charat(value, length + 4) !== 45) break;
368
- // (f)ill-available, (f)it-content
369
-
370
- case 102:
371
- return replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
372
- // (s)tretch
373
-
374
- case 115:
375
- return ~indexof(value, 'stretch') ? prefix(replace(value, 'stretch', 'fill-available'), length) + value : value;
376
- }
377
- break;
378
- // position: sticky
379
-
380
- case 4949:
381
- // (s)ticky?
382
- if (charat(value, length + 1) !== 115) break;
383
- // display: (flex|inline-flex)
384
-
385
- case 6444:
386
- switch (charat(value, strlen(value) - 3 - (~indexof(value, '!important') && 10))) {
387
- // stic(k)y
388
- case 107:
389
- return replace(value, ':', ':' + WEBKIT) + value;
390
- // (inline-)?fl(e)x
391
-
392
- case 101:
393
- return replace(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value;
394
- }
395
-
396
- break;
397
- // writing-mode
398
-
399
- case 5936:
400
- switch (charat(value, length + 11)) {
401
- // vertical-l(r)
402
- case 114:
403
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
404
- // vertical-r(l)
405
-
406
- case 108:
407
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
408
- // horizontal(-)tb
409
-
410
- case 45:
411
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
412
- }
413
-
414
- return WEBKIT + value + MS + value + value;
415
- }
416
-
417
- return value;
418
- }
419
-
420
- var prefixer = function prefixer(element, index, children, callback) {
421
- if (element.length > -1) if (!element["return"]) switch (element.type) {
422
- case DECLARATION:
423
- element["return"] = prefix(element.value, element.length);
424
- break;
425
-
426
- case KEYFRAMES:
427
- return serialize([copy(element, {
428
- value: replace(element.value, '@', '@' + WEBKIT)
429
- })], callback);
430
-
431
- case RULESET:
432
- if (element.length) return combine(element.props, function (value) {
433
- switch (match(value, /(::plac\w+|:read-\w+)/)) {
434
- // :read-(only|write)
435
- case ':read-only':
436
- case ':read-write':
437
- return serialize([copy(element, {
438
- props: [replace(value, /:(read-\w+)/, ':' + MOZ + '$1')]
439
- })], callback);
440
- // :placeholder
441
-
442
- case '::placeholder':
443
- return serialize([copy(element, {
444
- props: [replace(value, /:(plac\w+)/, ':' + WEBKIT + 'input-$1')]
445
- }), copy(element, {
446
- props: [replace(value, /:(plac\w+)/, ':' + MOZ + '$1')]
447
- }), copy(element, {
448
- props: [replace(value, /:(plac\w+)/, MS + 'input-$1')]
449
- })], callback);
450
- }
451
-
452
- return '';
453
- });
454
- }
455
- };
456
-
457
- var isBrowser = typeof document !== 'undefined';
458
- var getServerStylisCache = isBrowser ? undefined : weakMemoize(function () {
459
- return memoize(function () {
460
- var cache = {};
461
- return function (name) {
462
- return cache[name];
463
- };
464
- });
465
- });
466
- var defaultStylisPlugins = [prefixer];
467
-
468
- var createCache = function createCache(options) {
469
- var key = options.key;
470
-
471
- if (process.env.NODE_ENV !== 'production' && !key) {
472
- throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\n" + "If multiple caches share the same key they might \"fight\" for each other's style elements.");
473
- }
474
-
475
- if (isBrowser && key === 'css') {
476
- var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])"); // get SSRed styles out of the way of React's hydration
477
- // document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)
478
- // note this very very intentionally targets all style elements regardless of the key to ensure
479
- // that creating a cache works inside of render of a React component
480
-
481
- Array.prototype.forEach.call(ssrStyles, function (node) {
482
- // we want to only move elements which have a space in the data-emotion attribute value
483
- // because that indicates that it is an Emotion 11 server-side rendered style elements
484
- // while we will already ignore Emotion 11 client-side inserted styles because of the :not([data-s]) part in the selector
485
- // Emotion 10 client-side inserted styles did not have data-s (but importantly did not have a space in their data-emotion attributes)
486
- // so checking for the space ensures that loading Emotion 11 after Emotion 10 has inserted some styles
487
- // will not result in the Emotion 10 styles being destroyed
488
- var dataEmotionAttribute = node.getAttribute('data-emotion');
489
-
490
- if (dataEmotionAttribute.indexOf(' ') === -1) {
491
- return;
492
- }
493
- document.head.appendChild(node);
494
- node.setAttribute('data-s', '');
495
- });
496
- }
497
-
498
- var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
499
-
500
- if (process.env.NODE_ENV !== 'production') {
501
- // $FlowFixMe
502
- if (/[^a-z-]/.test(key)) {
503
- throw new Error("Emotion key must only contain lower case alphabetical characters and - but \"" + key + "\" was passed");
504
- }
505
- }
506
-
507
- var inserted = {};
508
- var container;
509
- var nodesToHydrate = [];
510
-
511
- if (isBrowser) {
512
- container = options.container || document.head;
513
- Array.prototype.forEach.call( // this means we will ignore elements which don't have a space in them which
514
- // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
515
- document.querySelectorAll("style[data-emotion^=\"" + key + " \"]"), function (node) {
516
- var attrib = node.getAttribute("data-emotion").split(' '); // $FlowFixMe
517
-
518
- for (var i = 1; i < attrib.length; i++) {
519
- inserted[attrib[i]] = true;
520
- }
521
-
522
- nodesToHydrate.push(node);
523
- });
524
- }
525
-
526
- var _insert;
527
-
528
- var omnipresentPlugins = [compat, removeLabel];
529
-
530
- if (process.env.NODE_ENV !== 'production') {
531
- omnipresentPlugins.push(createUnsafeSelectorsAlarm({
532
- get compat() {
533
- return cache.compat;
534
- }
535
-
536
- }), incorrectImportAlarm);
537
- }
538
-
539
- if (isBrowser) {
540
- var currentSheet;
541
- var finalizingPlugins = [stringify, process.env.NODE_ENV !== 'production' ? function (element) {
542
- if (!element.root) {
543
- if (element["return"]) {
544
- currentSheet.insert(element["return"]);
545
- } else if (element.value && element.type !== COMMENT) {
546
- // insert empty rule in non-production environments
547
- // so @emotion/jest can grab `key` from the (JS)DOM for caches without any rules inserted yet
548
- currentSheet.insert(element.value + "{}");
549
- }
550
- }
551
- } : rulesheet(function (rule) {
552
- currentSheet.insert(rule);
553
- })];
554
- var serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
555
-
556
- var stylis = function stylis(styles) {
557
- return serialize(compile(styles), serializer);
558
- };
559
-
560
- _insert = function insert(selector, serialized, sheet, shouldCache) {
561
- currentSheet = sheet;
562
-
563
- if (process.env.NODE_ENV !== 'production' && serialized.map !== undefined) {
564
- currentSheet = {
565
- insert: function insert(rule) {
566
- sheet.insert(rule + serialized.map);
567
- }
568
- };
569
- }
570
-
571
- stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
572
-
573
- if (shouldCache) {
574
- cache.inserted[serialized.name] = true;
575
- }
576
- };
577
- } else {
578
- var _finalizingPlugins = [stringify];
579
-
580
- var _serializer = middleware(omnipresentPlugins.concat(stylisPlugins, _finalizingPlugins));
581
-
582
- var _stylis = function _stylis(styles) {
583
- return serialize(compile(styles), _serializer);
584
- }; // $FlowFixMe
585
-
586
-
587
- var serverStylisCache = getServerStylisCache(stylisPlugins)(key);
588
-
589
- var getRules = function getRules(selector, serialized) {
590
- var name = serialized.name;
591
-
592
- if (serverStylisCache[name] === undefined) {
593
- serverStylisCache[name] = _stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
594
- }
595
-
596
- return serverStylisCache[name];
597
- };
598
-
599
- _insert = function _insert(selector, serialized, sheet, shouldCache) {
600
- var name = serialized.name;
601
- var rules = getRules(selector, serialized);
602
-
603
- if (cache.compat === undefined) {
604
- // in regular mode, we don't set the styles on the inserted cache
605
- // since we don't need to and that would be wasting memory
606
- // we return them so that they are rendered in a style tag
607
- if (shouldCache) {
608
- cache.inserted[name] = true;
609
- }
610
-
611
- if ( // using === development instead of !== production
612
- // because if people do ssr in tests, the source maps showing up would be annoying
613
- process.env.NODE_ENV === 'development' && serialized.map !== undefined) {
614
- return rules + serialized.map;
615
- }
616
-
617
- return rules;
618
- } else {
619
- // in compat mode, we put the styles on the inserted cache so
620
- // that emotion-server can pull out the styles
621
- // except when we don't want to cache it which was in Global but now
622
- // is nowhere but we don't want to do a major right now
623
- // and just in case we're going to leave the case here
624
- // it's also not affecting client side bundle size
625
- // so it's really not a big deal
626
- if (shouldCache) {
627
- cache.inserted[name] = rules;
628
- } else {
629
- return rules;
630
- }
631
- }
632
- };
633
- }
634
-
635
- var cache = {
636
- key: key,
637
- sheet: new StyleSheet({
638
- key: key,
639
- container: container,
640
- nonce: options.nonce,
641
- speedy: options.speedy,
642
- prepend: options.prepend,
643
- insertionPoint: options.insertionPoint
644
- }),
645
- nonce: options.nonce,
646
- inserted: inserted,
647
- registered: {},
648
- insert: _insert
649
- };
650
- cache.sheet.hydrate(nodesToHydrate);
651
- return cache;
652
- };
653
-
654
- export { createCache as default };
@@ -1,10 +0,0 @@
1
- 'use client';
2
- function memoize(fn) {
3
- var cache = Object.create(null);
4
- return function (arg) {
5
- if (cache[arg] === undefined) cache[arg] = fn(arg);
6
- return cache[arg];
7
- };
8
- }
9
-
10
- export { memoize as default };