@ceed/cds 0.0.186 → 0.0.187-treeshaking.1

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 (334) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +30 -0
  2. package/dist/_virtual/bind-all.js +3 -0
  3. package/dist/_virtual/bind.js +3 -0
  4. package/dist/_virtual/colorManipulator.js +5 -0
  5. package/dist/_virtual/colorManipulator2.js +3 -0
  6. package/dist/_virtual/createStyled.js +7 -0
  7. package/dist/_virtual/createStyled2.js +3 -0
  8. package/dist/_virtual/extends.js +3 -0
  9. package/dist/_virtual/index.js +5 -0
  10. package/dist/_virtual/index10.js +6 -0
  11. package/dist/_virtual/index11.js +6 -0
  12. package/dist/_virtual/index12.js +6 -0
  13. package/dist/_virtual/index2.js +3 -0
  14. package/dist/_virtual/index3.js +7 -0
  15. package/dist/_virtual/index4.js +3 -0
  16. package/dist/_virtual/index5.js +6 -0
  17. package/dist/_virtual/index6.js +6 -0
  18. package/dist/_virtual/index7.js +6 -0
  19. package/dist/_virtual/index8.js +6 -0
  20. package/dist/_virtual/index9.js +6 -0
  21. package/dist/_virtual/interopRequireDefault.js +3 -0
  22. package/dist/_virtual/objectWithoutPropertiesLoose.js +3 -0
  23. package/dist/components/Accordions/Accordions.js +43 -0
  24. package/dist/components/Accordions/index.d.ts +2 -2
  25. package/dist/components/Autocomplete/Autocomplete.js +196 -0
  26. package/dist/components/Autocomplete/index.d.ts +2 -2
  27. package/dist/components/Autocomplete/index.js +5 -0
  28. package/dist/components/Avatar/Avatar.js +42 -0
  29. package/dist/components/Avatar/index.d.ts +2 -2
  30. package/dist/components/Box/Box.js +8 -0
  31. package/dist/components/Box/index.d.ts +2 -2
  32. package/dist/components/Box/index.js +5 -0
  33. package/dist/components/Breadcrumbs/Breadcrumbs.js +47 -0
  34. package/dist/components/Breadcrumbs/index.d.ts +2 -2
  35. package/dist/components/Button/Button.js +20 -0
  36. package/dist/components/Button/index.d.ts +2 -2
  37. package/dist/components/Button/index.js +5 -0
  38. package/dist/components/Calendar/Calendar.d.ts +1 -1
  39. package/dist/components/Calendar/Calendar.js +333 -0
  40. package/dist/components/Calendar/hooks/use-calendar-props.d.ts +3 -3
  41. package/dist/components/Calendar/hooks/use-calendar-props.js +74 -0
  42. package/dist/components/Calendar/hooks/use-calendar.d.ts +1 -1
  43. package/dist/components/Calendar/hooks/use-calendar.js +247 -0
  44. package/dist/components/Calendar/index.d.ts +2 -2
  45. package/dist/components/Calendar/index.js +5 -0
  46. package/dist/components/Calendar/utils/index.js +74 -0
  47. package/dist/components/Card/Card.js +20 -0
  48. package/dist/components/Card/index.d.ts +2 -2
  49. package/dist/components/Checkbox/Checkbox.js +19 -0
  50. package/dist/components/Checkbox/index.d.ts +2 -2
  51. package/dist/components/Checkbox/index.js +5 -0
  52. package/dist/components/Chip/Chip.js +8 -0
  53. package/dist/components/Chip/index.d.ts +2 -2
  54. package/dist/components/Chip/index.js +5 -0
  55. package/dist/components/Container/Container.js +49 -0
  56. package/dist/components/Container/index.d.ts +2 -2
  57. package/dist/components/CurrencyInput/CurrencyInput.js +91 -0
  58. package/dist/components/CurrencyInput/hooks/use-currency-setting.js +167 -0
  59. package/dist/components/CurrencyInput/index.d.ts +2 -2
  60. package/dist/components/CurrencyInput/index.js +5 -0
  61. package/dist/components/DataTable/DataTable.d.ts +1 -1
  62. package/dist/components/DataTable/DataTable.js +568 -0
  63. package/dist/components/DataTable/index.d.ts +2 -2
  64. package/dist/components/DataTable/types.d.ts +7 -7
  65. package/dist/components/DatePicker/DatePicker.d.ts +1 -1
  66. package/dist/components/DatePicker/DatePicker.js +210 -0
  67. package/dist/components/DatePicker/index.d.ts +2 -2
  68. package/dist/components/DatePicker/index.js +5 -0
  69. package/dist/components/DateRangePicker/DateRangePicker.d.ts +1 -1
  70. package/dist/components/DateRangePicker/DateRangePicker.js +213 -0
  71. package/dist/components/DateRangePicker/index.d.ts +2 -2
  72. package/dist/components/DialogActions/DialogActions.js +14 -0
  73. package/dist/components/DialogActions/index.d.ts +2 -2
  74. package/dist/components/DialogActions/index.js +5 -0
  75. package/dist/components/DialogContent/DialogContent.js +11 -0
  76. package/dist/components/DialogContent/index.d.ts +2 -2
  77. package/dist/components/DialogContent/index.js +5 -0
  78. package/dist/components/DialogFrame/DialogFrame.d.ts +1 -1
  79. package/dist/components/DialogFrame/DialogFrame.js +31 -0
  80. package/dist/components/DialogFrame/index.d.ts +2 -2
  81. package/dist/components/DialogTitle/DialogTitle.js +11 -0
  82. package/dist/components/DialogTitle/index.d.ts +2 -2
  83. package/dist/components/DialogTitle/index.js +5 -0
  84. package/dist/components/Divider/Divider.js +19 -0
  85. package/dist/components/Divider/index.d.ts +2 -2
  86. package/dist/components/Drawer/Drawer.js +40 -0
  87. package/dist/components/Drawer/index.d.ts +2 -2
  88. package/dist/components/Dropdown/Dropdown.js +8 -0
  89. package/dist/components/Dropdown/index.d.ts +2 -2
  90. package/dist/components/Dropdown/index.js +5 -0
  91. package/dist/components/FormControl/FormControl.js +15 -0
  92. package/dist/components/FormControl/index.d.ts +2 -2
  93. package/dist/components/FormControl/index.js +5 -0
  94. package/dist/components/FormHelperText/FormHelperText.js +8 -0
  95. package/dist/components/FormHelperText/index.d.ts +2 -2
  96. package/dist/components/FormHelperText/index.js +5 -0
  97. package/dist/components/FormLabel/FormLabel.js +8 -0
  98. package/dist/components/FormLabel/index.d.ts +2 -2
  99. package/dist/components/FormLabel/index.js +5 -0
  100. package/dist/components/Grid/index.d.ts +2 -2
  101. package/dist/components/IconButton/IconButton.js +20 -0
  102. package/dist/components/IconButton/index.d.ts +2 -2
  103. package/dist/components/IconButton/index.js +5 -0
  104. package/dist/components/Input/Input.d.ts +1 -1
  105. package/dist/components/Input/Input.js +60 -0
  106. package/dist/components/Input/index.d.ts +2 -2
  107. package/dist/components/Input/index.js +5 -0
  108. package/dist/components/InsetDrawer/InsetDrawer.js +30 -0
  109. package/dist/components/InsetDrawer/index.d.ts +2 -2
  110. package/dist/components/Markdown/Markdown.d.ts +6 -22
  111. package/dist/components/Markdown/Markdown.js +36 -0
  112. package/dist/components/Markdown/index.d.ts +2 -2
  113. package/dist/components/Menu/Menu.js +43 -0
  114. package/dist/components/Menu/index.d.ts +2 -2
  115. package/dist/components/Menu/index.js +6 -0
  116. package/dist/components/MenuButton/MenuButton.js +26 -0
  117. package/dist/components/Modal/Modal.d.ts +4 -4
  118. package/dist/components/Modal/Modal.js +43 -0
  119. package/dist/components/Modal/index.d.ts +2 -2
  120. package/dist/components/MonthPicker/MonthPicker.d.ts +1 -1
  121. package/dist/components/MonthPicker/MonthPicker.js +162 -0
  122. package/dist/components/MonthPicker/index.d.ts +2 -2
  123. package/dist/components/MonthRangePicker/MonthRangePicker.d.ts +1 -1
  124. package/dist/components/MonthRangePicker/MonthRangePicker.js +172 -0
  125. package/dist/components/MonthRangePicker/index.d.ts +2 -2
  126. package/dist/components/NavigationGroup/NavigationGroup.js +42 -0
  127. package/dist/components/NavigationGroup/index.d.ts +2 -2
  128. package/dist/components/NavigationItem/NavigationItem.js +45 -0
  129. package/dist/components/NavigationItem/index.d.ts +2 -2
  130. package/dist/components/Navigator/Navigator.js +30 -0
  131. package/dist/components/Navigator/index.d.ts +2 -2
  132. package/dist/components/Pagination/Pagination.d.ts +2 -2
  133. package/dist/components/Pagination/Pagination.js +117 -0
  134. package/dist/components/Pagination/index.d.ts +2 -2
  135. package/dist/components/Pagination/index.js +5 -0
  136. package/dist/components/PercentageInput/PercentageInput.js +85 -0
  137. package/dist/components/PercentageInput/index.d.ts +2 -2
  138. package/dist/components/Radio/Radio.js +11 -0
  139. package/dist/components/Radio/index.d.ts +2 -2
  140. package/dist/components/RadioList/RadioList.d.ts +1 -1
  141. package/dist/components/RadioList/RadioList.js +18 -0
  142. package/dist/components/RadioList/index.d.ts +2 -2
  143. package/dist/components/Select/Select.d.ts +1 -1
  144. package/dist/components/Select/Select.js +56 -0
  145. package/dist/components/Select/index.d.ts +2 -2
  146. package/dist/components/Select/index.js +6 -0
  147. package/dist/components/Sheet/Sheet.js +8 -0
  148. package/dist/components/Sheet/index.d.ts +2 -2
  149. package/dist/components/Sheet/index.js +5 -0
  150. package/dist/components/Stack/index.d.ts +2 -2
  151. package/dist/components/Stack/index.js +2 -0
  152. package/dist/components/Stepper/Stepper.js +66 -0
  153. package/dist/components/Stepper/index.d.ts +2 -2
  154. package/dist/components/Switch/Switch.js +46 -0
  155. package/dist/components/Switch/index.d.ts +2 -2
  156. package/dist/components/Table/Table.js +64 -0
  157. package/dist/components/Table/index.d.ts +2 -2
  158. package/dist/components/Tabs/Tabs.js +17 -0
  159. package/dist/components/Tabs/index.d.ts +2 -2
  160. package/dist/components/Textarea/Textarea.d.ts +3 -17
  161. package/dist/components/Textarea/Textarea.js +31 -0
  162. package/dist/components/Textarea/index.d.ts +2 -2
  163. package/dist/components/Textarea/index.js +5 -0
  164. package/dist/components/ThemeProvider/ThemeProvider.d.ts +7 -7
  165. package/dist/components/ThemeProvider/ThemeProvider.js +240 -0
  166. package/dist/components/ThemeProvider/index.d.ts +2 -2
  167. package/dist/components/Tooltip/Tooltip.js +19 -0
  168. package/dist/components/Tooltip/index.d.ts +2 -2
  169. package/dist/components/Tooltip/index.js +5 -0
  170. package/dist/components/Typography/Typography.js +19 -0
  171. package/dist/components/Typography/index.d.ts +2 -2
  172. package/dist/components/Typography/index.js +5 -0
  173. package/dist/components/Uploader/Uploader.d.ts +4 -3
  174. package/dist/components/Uploader/Uploader.js +402 -0
  175. package/dist/components/Uploader/index.d.ts +2 -2
  176. package/dist/components/index.d.ts +53 -53
  177. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/adapter/element-adapter-native-data-key.js +8 -0
  178. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/adapter/external-adapter.js +245 -0
  179. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/combine.js +1 -0
  180. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/external/adapter.js +1 -0
  181. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/external/file.js +1 -0
  182. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/prevent-unhandled.js +1 -0
  183. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/honey-pot-fix/get-element-from-point-without-honey-pot.js +19 -0
  184. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/honey-pot-fix/honey-pot-data-attribute.js +5 -0
  185. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/honey-pot-fix/is-honey-pot-element.js +7 -0
  186. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/ledger/dispatch-consumer-event.js +128 -0
  187. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/ledger/lifecycle-manager.js +340 -0
  188. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/ledger/usage-ledger.js +33 -0
  189. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/make-adapter/make-adapter.js +60 -0
  190. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/make-adapter/make-drop-target.js +312 -0
  191. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/make-adapter/make-monitor.js +96 -0
  192. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/public-utils/combine.js +13 -0
  193. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/public-utils/external/file.js +23 -0
  194. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/public-utils/once.js +18 -0
  195. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/public-utils/prevent-unhandled.js +102 -0
  196. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/add-attribute.js +10 -0
  197. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/android.js +3 -0
  198. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/changing-window/count-events-for-safari.js +123 -0
  199. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/changing-window/is-entering-window.js +55 -0
  200. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/changing-window/is-from-another-window.js +18 -0
  201. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/changing-window/is-leaving-window.js +55 -0
  202. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/detect-broken-drag.js +49 -0
  203. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/get-input.js +16 -0
  204. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/is-firefox.js +15 -0
  205. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/is-safari.js +18 -0
  206. package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/media-types/text-media-type.js +8 -0
  207. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/arrayLikeToArray.js +7 -0
  208. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/arrayWithHoles.js +5 -0
  209. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/arrayWithoutHoles.js +7 -0
  210. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/defineProperty.js +18 -0
  211. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/iterableToArray.js +5 -0
  212. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/iterableToArrayLimit.js +26 -0
  213. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/nonIterableRest.js +5 -0
  214. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/nonIterableSpread.js +5 -0
  215. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/slicedToArray.js +10 -0
  216. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/toConsumableArray.js +10 -0
  217. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/toPrimitive.js +14 -0
  218. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/toPropertyKey.js +9 -0
  219. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/typeof.js +11 -0
  220. package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +12 -0
  221. package/dist/external/@babel/runtime/helpers/esm/extends.js +16 -0
  222. package/dist/external/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +14 -0
  223. package/dist/external/@babel/runtime/helpers/extends.js +28 -0
  224. package/dist/external/@babel/runtime/helpers/interopRequireDefault.js +19 -0
  225. package/dist/external/@babel/runtime/helpers/objectWithoutPropertiesLoose.js +26 -0
  226. package/dist/external/@emotion/cache/dist/emotion-cache.esm.js +653 -0
  227. package/dist/external/@emotion/memoize/dist/emotion-memoize.esm.js +9 -0
  228. package/dist/external/@emotion/sheet/dist/emotion-sheet.esm.js +154 -0
  229. package/dist/external/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +16 -0
  230. package/dist/external/@mui/icons-material/esm/ArrowUpwardRounded.js +8 -0
  231. package/dist/external/@mui/icons-material/esm/CalendarToday.js +8 -0
  232. package/dist/external/@mui/icons-material/esm/Check.js +8 -0
  233. package/dist/external/@mui/icons-material/esm/ChevronLeft.js +8 -0
  234. package/dist/external/@mui/icons-material/esm/ChevronRight.js +8 -0
  235. package/dist/external/@mui/icons-material/esm/ClearRounded.js +8 -0
  236. package/dist/external/@mui/icons-material/esm/Close.js +8 -0
  237. package/dist/external/@mui/icons-material/esm/CloudUploadRounded.js +8 -0
  238. package/dist/external/@mui/icons-material/esm/ExpandMore.js +8 -0
  239. package/dist/external/@mui/icons-material/esm/Info.js +8 -0
  240. package/dist/external/@mui/icons-material/esm/UploadFileRounded.js +8 -0
  241. package/dist/external/@mui/material/SvgIcon/SvgIcon.js +186 -0
  242. package/dist/external/@mui/material/SvgIcon/svgIconClasses.js +9 -0
  243. package/dist/external/@mui/material/colors/blue.js +18 -0
  244. package/dist/external/@mui/material/colors/common.js +6 -0
  245. package/dist/external/@mui/material/colors/green.js +18 -0
  246. package/dist/external/@mui/material/colors/grey.js +18 -0
  247. package/dist/external/@mui/material/colors/lightBlue.js +18 -0
  248. package/dist/external/@mui/material/colors/orange.js +18 -0
  249. package/dist/external/@mui/material/colors/purple.js +18 -0
  250. package/dist/external/@mui/material/colors/red.js +18 -0
  251. package/dist/external/@mui/material/styles/createMixins.js +19 -0
  252. package/dist/external/@mui/material/styles/createPalette.js +308 -0
  253. package/dist/external/@mui/material/styles/createTheme.js +82 -0
  254. package/dist/external/@mui/material/styles/createTransitions.js +91 -0
  255. package/dist/external/@mui/material/styles/createTypography.js +93 -0
  256. package/dist/external/@mui/material/styles/defaultTheme.js +5 -0
  257. package/dist/external/@mui/material/styles/identifier.js +3 -0
  258. package/dist/external/@mui/material/styles/rootShouldForwardProp.js +5 -0
  259. package/dist/external/@mui/material/styles/shadows.js +11 -0
  260. package/dist/external/@mui/material/styles/slotShouldForwardProp.js +6 -0
  261. package/dist/external/@mui/material/styles/styled.js +12 -0
  262. package/dist/external/@mui/material/styles/useThemeProps.js +17 -0
  263. package/dist/external/@mui/material/styles/zIndex.js +14 -0
  264. package/dist/external/@mui/material/utils/capitalize.js +5 -0
  265. package/dist/external/@mui/material/utils/createSvgIcon.js +24 -0
  266. package/dist/external/@mui/styled-engine/GlobalStyles/GlobalStyles.js +24 -0
  267. package/dist/external/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider.js +37 -0
  268. package/dist/external/@mui/styled-engine/index.js +38 -0
  269. package/dist/external/@mui/system/colorManipulator.js +385 -0
  270. package/dist/external/@mui/system/createStyled.js +270 -0
  271. package/dist/external/@mui/system/esm/borders.js +51 -0
  272. package/dist/external/@mui/system/esm/breakpoints.js +66 -0
  273. package/dist/external/@mui/system/esm/compose.js +26 -0
  274. package/dist/external/@mui/system/esm/createTheme/applyStyles.js +76 -0
  275. package/dist/external/@mui/system/esm/createTheme/createBreakpoints.js +82 -0
  276. package/dist/external/@mui/system/esm/createTheme/createSpacing.js +34 -0
  277. package/dist/external/@mui/system/esm/createTheme/createTheme.js +45 -0
  278. package/dist/external/@mui/system/esm/createTheme/index.js +3 -0
  279. package/dist/external/@mui/system/esm/createTheme/shape.js +5 -0
  280. package/dist/external/@mui/system/esm/cssGrid.js +86 -0
  281. package/dist/external/@mui/system/esm/memoize.js +11 -0
  282. package/dist/external/@mui/system/esm/merge.js +12 -0
  283. package/dist/external/@mui/system/esm/palette.js +28 -0
  284. package/dist/external/@mui/system/esm/responsivePropType.js +5 -0
  285. package/dist/external/@mui/system/esm/sizing.js +67 -0
  286. package/dist/external/@mui/system/esm/spacing.js +144 -0
  287. package/dist/external/@mui/system/esm/style.js +77 -0
  288. package/dist/external/@mui/system/esm/styleFunctionSx/defaultSxConfig.js +293 -0
  289. package/dist/external/@mui/system/esm/styleFunctionSx/extendSxProp.js +51 -0
  290. package/dist/external/@mui/system/esm/styleFunctionSx/index.js +3 -0
  291. package/dist/external/@mui/system/esm/styleFunctionSx/styleFunctionSx.js +129 -0
  292. package/dist/external/@mui/system/esm/useTheme.js +9 -0
  293. package/dist/external/@mui/system/esm/useThemeProps/getThemeProps.js +15 -0
  294. package/dist/external/@mui/system/esm/useThemeProps/useThemeProps.js +22 -0
  295. package/dist/external/@mui/system/esm/useThemeWithoutDefault.js +12 -0
  296. package/dist/external/@mui/utils/ClassNameGenerator/ClassNameGenerator.js +18 -0
  297. package/dist/external/@mui/utils/capitalize/capitalize.js +14 -0
  298. package/dist/external/@mui/utils/capitalize/index.js +1 -0
  299. package/dist/external/@mui/utils/clamp/clamp.js +5 -0
  300. package/dist/external/@mui/utils/clamp/index.js +1 -0
  301. package/dist/external/@mui/utils/composeClasses/composeClasses.js +23 -0
  302. package/dist/external/@mui/utils/deepmerge/deepmerge.js +44 -0
  303. package/dist/external/@mui/utils/deepmerge/index.js +1 -0
  304. package/dist/external/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js +21 -0
  305. package/dist/external/@mui/utils/formatMuiErrorMessage/index.js +1 -0
  306. package/dist/external/@mui/utils/generateUtilityClass/generateUtilityClass.js +22 -0
  307. package/dist/external/@mui/utils/generateUtilityClasses/generateUtilityClasses.js +11 -0
  308. package/dist/external/@mui/utils/getDisplayName/getDisplayName.js +49 -0
  309. package/dist/external/@mui/utils/getDisplayName/index.js +1 -0
  310. package/dist/external/@mui/utils/resolveProps/resolveProps.js +37 -0
  311. package/dist/external/bind-event-listener/dist/bind-all.js +54 -0
  312. package/dist/external/bind-event-listener/dist/bind.js +21 -0
  313. package/dist/external/bind-event-listener/dist/index.js +21 -0
  314. package/dist/external/clsx/dist/clsx.js +3 -0
  315. package/dist/external/object-assign/index.js +99 -0
  316. package/dist/external/prop-types/checkPropTypes.js +115 -0
  317. package/dist/external/prop-types/factoryWithThrowingShims.js +74 -0
  318. package/dist/external/prop-types/factoryWithTypeCheckers.js +625 -0
  319. package/dist/external/prop-types/index.js +33 -0
  320. package/dist/external/prop-types/lib/ReactPropTypesSecret.js +21 -0
  321. package/dist/external/prop-types/lib/has.js +11 -0
  322. package/dist/external/raf-schd/dist/raf-schd.esm.js +34 -0
  323. package/dist/external/stylis/src/Enum.js +12 -0
  324. package/dist/external/stylis/src/Middleware.js +32 -0
  325. package/dist/external/stylis/src/Parser.js +193 -0
  326. package/dist/external/stylis/src/Serializer.js +38 -0
  327. package/dist/external/stylis/src/Tokenizer.js +223 -0
  328. package/dist/external/stylis/src/Utility.js +117 -0
  329. package/dist/hooks/use-controlled-state/index.js +23 -0
  330. package/dist/index.d.ts +1 -1
  331. package/dist/index.js +52 -2
  332. package/dist/libs/rehype-accent/index.js +39 -0
  333. package/framer/index.js +30 -30
  334. package/package.json +8 -4
@@ -0,0 +1,245 @@
1
+ import _toConsumableArray from '../../../external/@babel/runtime/helpers/esm/toConsumableArray.js';
2
+ import { d as distExports } from '../../../../../../_virtual/index.js';
3
+ import { makeAdapter } from '../make-adapter/make-adapter.js';
4
+ import { androidFallbackText } from '../util/android.js';
5
+ import { isEnteringWindow } from '../util/changing-window/is-entering-window.js';
6
+ import { getBindingsForBrokenDrags } from '../util/detect-broken-drag.js';
7
+ import { textMediaType } from '../util/media-types/text-media-type.js';
8
+ import { elementAdapterNativeDataKey } from './element-adapter-native-data-key.js';
9
+
10
+ function isAnAvailableType(_ref) {
11
+ var type = _ref.type,
12
+ value = _ref.value;
13
+ // We don't want to expose our private elementAdapter key / value
14
+ if (type === elementAdapterNativeDataKey) {
15
+ return false;
16
+ }
17
+ // Not exposing "text/plain" if it contains the android fallback text
18
+ // We _could_ add an `isAndroid()` check, but it's probably safest
19
+ // to trim this data out, regardless of what OS we see it on.
20
+ if (type === textMediaType && value === androidFallbackText) {
21
+ return false;
22
+ }
23
+ return true;
24
+ }
25
+ function getAvailableTypes(transfer) {
26
+ return Array.from(transfer.types).filter(function (type) {
27
+ return isAnAvailableType({
28
+ type: type,
29
+ value: transfer.getData(type)
30
+ });
31
+ });
32
+ }
33
+ function getAvailableItems(dataTransfer) {
34
+ // item.kind is 'string' | 'file'
35
+ // For 'string' item.type is the mimeType (eg 'text/plain')
36
+ // For 'file' item.type is the file type (eg 'image/jpg')
37
+
38
+ return Array.from(dataTransfer.items).filter(function (item) {
39
+ return item.kind === 'file' || isAnAvailableType({
40
+ type: item.type,
41
+ value: dataTransfer.getData(item.type)
42
+ });
43
+ });
44
+ }
45
+ var didDragStartLocally = false;
46
+ var adapter = makeAdapter({
47
+ typeKey: 'external',
48
+ // for external drags, we are generally making a copy of something that is being dragged
49
+ defaultDropEffect: 'copy',
50
+ mount: function mount(api) {
51
+ // Binding to the `window` so that the element adapter
52
+ // has a chance to get in first on the`document`.
53
+ // We are giving preference to the element adapter.
54
+ return distExports.bind(window, {
55
+ type: 'dragenter',
56
+ listener: function listener(event) {
57
+ // drag operation was started within the document, it won't be an "external" drag
58
+ if (didDragStartLocally) {
59
+ return;
60
+ }
61
+
62
+ // Note: not checking if event was cancelled (`event.defaultPrevented`) as
63
+ // cancelling a "dragenter" accepts the drag operation (not prevent it)
64
+
65
+ // Something has gone wrong with our drag event
66
+ if (!event.dataTransfer) {
67
+ // Including this code on "test" and "development" environments:
68
+ // - Browser tests commonly run against "development" builds
69
+ // - Unit tests commonly run in "test"
70
+ if (process.env.NODE_ENV !== 'production') {
71
+ // eslint-disable-next-line no-console
72
+ console.warn("\n It appears as though you have are not testing DragEvents correctly.\n\n - If you are unit testing, ensure you have polyfilled DragEvent.\n - If you are browser testing, ensure you are dispatching drag events correctly.\n\n Please see our testing guides for more information:\n https://atlassian.design/components/pragmatic-drag-and-drop/core-package/testing\n ".replace(/ {2}/g, ''));
73
+ }
74
+ return;
75
+ }
76
+ if (!api.canStart(event)) {
77
+ return;
78
+ }
79
+ if (!isEnteringWindow({
80
+ dragEnter: event
81
+ })) {
82
+ return;
83
+ }
84
+
85
+ // Note: not checking types for `elementAdapterNativeDataKey` as we expect to see that
86
+ // key when pdnd started the drag in another document
87
+ var types = getAvailableTypes(event.dataTransfer);
88
+ if (!types.length) {
89
+ return;
90
+ }
91
+ var locked = {
92
+ types: types,
93
+ items: [],
94
+ getStringData: function getStringData() {
95
+ return null;
96
+ }
97
+ };
98
+ api.start({
99
+ event: event,
100
+ dragType: {
101
+ type: 'external',
102
+ startedFrom: 'external',
103
+ payload: locked,
104
+ getDropPayload: function getDropPayload(event) {
105
+ // this would be a platform error
106
+ // trying to handle it gracefully rather than throwing (for now)
107
+ if (!event.dataTransfer) {
108
+ return locked;
109
+ }
110
+ var items = getAvailableItems(event.dataTransfer);
111
+ // need to use `.bind` as `getData` is required
112
+ // to be run with `event.dataTransfer` as the "this" context
113
+ var nativeGetData = event.dataTransfer.getData.bind(event.dataTransfer);
114
+ return {
115
+ types: types,
116
+ items: items,
117
+ // return `null` if there is no result, otherwise string
118
+ getStringData: function getStringData(mediaType) {
119
+ // not dragging the requested type
120
+ // return `null` (no result)
121
+ if (!types.includes(mediaType)) {
122
+ return null;
123
+ }
124
+
125
+ // nativeGetData will return `""` when there is no value,
126
+ // but at this point we know we will only get explicitly set
127
+ // values back as we have checked the `types`.
128
+ // `""` can be an explicitly set value.
129
+ var value = nativeGetData(mediaType);
130
+
131
+ // not exposing data for unavailable types
132
+ if (!isAnAvailableType({
133
+ type: mediaType,
134
+ value: value
135
+ })) {
136
+ return null;
137
+ }
138
+ return value;
139
+ }
140
+ };
141
+ }
142
+ }
143
+ });
144
+ }
145
+ });
146
+ }
147
+ });
148
+
149
+ /**
150
+ * Some events don't make sense for the external adapter
151
+ *
152
+ * `onGenerateDragPreview`
153
+ * The browser creates the drag preview for external drags, so we don't
154
+ * need an event to generate the preview for _monitors_ or the _dropTarget_
155
+ *
156
+ * `onDragStart`
157
+ * An external drag can never start from in the `window`, so _dropTarget_'s
158
+ * don't need `onDragStart`
159
+ */
160
+
161
+ function dropTargetForExternal(args) {
162
+ // not removing unused events, just leaning on the type system
163
+ return adapter.dropTarget(args);
164
+ }
165
+ function monitorForExternal(args) {
166
+ // not removing unused events, just leaning on the type system
167
+ return adapter.monitor(args);
168
+ }
169
+ (function startup() {
170
+ // server side rendering check
171
+ if (typeof window === 'undefined') {
172
+ return;
173
+ }
174
+
175
+ // A shared single usage registration as we want to capture
176
+ // all external drag operations, even if there are no drop targets
177
+ // on the page yet
178
+ adapter.registerUsage();
179
+ // independent of pdnd, we need to keep track of
180
+ // all drag operations so that we can know if a drag operation
181
+ // has started locally
182
+
183
+ var idle = {
184
+ type: 'idle'
185
+ };
186
+ var state = idle;
187
+ function clear() {
188
+ if (state.type !== 'dragging') {
189
+ return;
190
+ }
191
+ didDragStartLocally = false;
192
+ state.cleanup();
193
+ state = idle;
194
+ }
195
+ function bindEndEvents() {
196
+ return distExports.bindAll(window, [{
197
+ type: 'dragend',
198
+ listener: clear
199
+ }].concat(_toConsumableArray(getBindingsForBrokenDrags({
200
+ onDragEnd: clear
201
+ }))),
202
+ // we want to make sure we get all the events,
203
+ // and this helps avoid not seeing events when folks stop
204
+ // them later on the event path
205
+ {
206
+ capture: true
207
+ });
208
+ }
209
+
210
+ // we always keep this event listener active
211
+ distExports.bind(window, {
212
+ type: 'dragstart',
213
+ listener: function listener() {
214
+ // something bad has happened if this is true!
215
+ if (state.type !== 'idle') {
216
+ return;
217
+ }
218
+ // set our global flag
219
+ didDragStartLocally = true;
220
+ state = {
221
+ type: 'dragging',
222
+ cleanup: bindEndEvents()
223
+ };
224
+ },
225
+ // binding in the capture phase so these listeners are called
226
+ // before our listeners in the adapters `mount` function
227
+ options: {
228
+ capture: true
229
+ }
230
+ });
231
+ })();
232
+
233
+ /** Common event payload for all events */
234
+
235
+ /** A map containing payloads for all events */
236
+
237
+ /** Common event payload for all drop target events */
238
+
239
+ /** A map containing payloads for all events on drop targets */
240
+
241
+ /** Arguments given to all feedback functions (eg `canDrop()`) on a `dropTargetForExternal` */
242
+
243
+ /** Arguments given to all monitor feedback functions (eg `canMonitor()`) for a `monitorForExternal` */
244
+
245
+ export { dropTargetForExternal, getAvailableItems, getAvailableTypes, isAnAvailableType, monitorForExternal };
@@ -0,0 +1 @@
1
+ export { combine } from '../public-utils/combine.js';
@@ -0,0 +1 @@
1
+ export { dropTargetForExternal, monitorForExternal } from '../../adapter/external-adapter.js';
@@ -0,0 +1 @@
1
+ export { containsFiles, getFiles } from '../../public-utils/external/file.js';
@@ -0,0 +1 @@
1
+ export { preventUnhandled } from '../public-utils/prevent-unhandled.js';
@@ -0,0 +1,19 @@
1
+ import _slicedToArray from '../../../external/@babel/runtime/helpers/esm/slicedToArray.js';
2
+ import { isHoneyPotElement } from './is-honey-pot-element.js';
3
+
4
+ function getElementFromPointWithoutHoneypot(client) {
5
+ // eslint-disable-next-line no-restricted-syntax
6
+ var _document$elementsFro = document.elementsFromPoint(client.x, client.y),
7
+ _document$elementsFro2 = _slicedToArray(_document$elementsFro, 2),
8
+ top = _document$elementsFro2[0],
9
+ second = _document$elementsFro2[1];
10
+ if (!top) {
11
+ return null;
12
+ }
13
+ if (isHoneyPotElement(top)) {
14
+ return second !== null && second !== undefined ? second : null;
15
+ }
16
+ return top;
17
+ }
18
+
19
+ export { getElementFromPointWithoutHoneypot };
@@ -0,0 +1,5 @@
1
+ // pulling this into a separate file so adapter(s) that don't
2
+ // need the honey pot can pay as little as possible for it.
3
+ var honeyPotDataAttribute = 'data-pdnd-honey-pot';
4
+
5
+ export { honeyPotDataAttribute };
@@ -0,0 +1,7 @@
1
+ import { honeyPotDataAttribute } from './honey-pot-data-attribute.js';
2
+
3
+ function isHoneyPotElement(target) {
4
+ return target instanceof Element && target.hasAttribute(honeyPotDataAttribute);
5
+ }
6
+
7
+ export { isHoneyPotElement };
@@ -0,0 +1,128 @@
1
+ import rafSchd from '../../../../../raf-schd/dist/raf-schd.esm.js';
2
+
3
+ var scheduleOnDrag = rafSchd(function (fn) {
4
+ return fn();
5
+ });
6
+ var dragStart = function () {
7
+ var scheduled = null;
8
+ function schedule(fn) {
9
+ var frameId = requestAnimationFrame(function () {
10
+ scheduled = null;
11
+ fn();
12
+ });
13
+ scheduled = {
14
+ frameId: frameId,
15
+ fn: fn
16
+ };
17
+ }
18
+ function flush() {
19
+ if (scheduled) {
20
+ cancelAnimationFrame(scheduled.frameId);
21
+ scheduled.fn();
22
+ scheduled = null;
23
+ }
24
+ }
25
+ return {
26
+ schedule: schedule,
27
+ flush: flush
28
+ };
29
+ }();
30
+ function makeDispatch(_ref) {
31
+ var source = _ref.source,
32
+ initial = _ref.initial,
33
+ dispatchEvent = _ref.dispatchEvent;
34
+ var previous = {
35
+ dropTargets: []
36
+ };
37
+ function safeDispatch(args) {
38
+ dispatchEvent(args);
39
+ previous = {
40
+ dropTargets: args.payload.location.current.dropTargets
41
+ };
42
+ }
43
+ var dispatch = {
44
+ start: function start(_ref2) {
45
+ var nativeSetDragImage = _ref2.nativeSetDragImage;
46
+ // Ensuring that both `onGenerateDragPreview` and `onDragStart` get the same location.
47
+ // We do this so that `previous` is`[]` in `onDragStart` (which is logical)
48
+ var location = {
49
+ current: initial,
50
+ previous: previous,
51
+ initial: initial
52
+ };
53
+ // a `onGenerateDragPreview` does _not_ add another entry for `previous`
54
+ // onDragPreview
55
+ safeDispatch({
56
+ eventName: 'onGenerateDragPreview',
57
+ payload: {
58
+ source: source,
59
+ location: location,
60
+ nativeSetDragImage: nativeSetDragImage
61
+ }
62
+ });
63
+ dragStart.schedule(function () {
64
+ safeDispatch({
65
+ eventName: 'onDragStart',
66
+ payload: {
67
+ source: source,
68
+ location: location
69
+ }
70
+ });
71
+ });
72
+ },
73
+ dragUpdate: function dragUpdate(_ref3) {
74
+ var current = _ref3.current;
75
+ dragStart.flush();
76
+ scheduleOnDrag.cancel();
77
+ safeDispatch({
78
+ eventName: 'onDropTargetChange',
79
+ payload: {
80
+ source: source,
81
+ location: {
82
+ initial: initial,
83
+ previous: previous,
84
+ current: current
85
+ }
86
+ }
87
+ });
88
+ },
89
+ drag: function drag(_ref4) {
90
+ var current = _ref4.current;
91
+ scheduleOnDrag(function () {
92
+ dragStart.flush();
93
+ var location = {
94
+ initial: initial,
95
+ previous: previous,
96
+ current: current
97
+ };
98
+ safeDispatch({
99
+ eventName: 'onDrag',
100
+ payload: {
101
+ source: source,
102
+ location: location
103
+ }
104
+ });
105
+ });
106
+ },
107
+ drop: function drop(_ref5) {
108
+ var current = _ref5.current,
109
+ updatedSourcePayload = _ref5.updatedSourcePayload;
110
+ dragStart.flush();
111
+ scheduleOnDrag.cancel();
112
+ safeDispatch({
113
+ eventName: 'onDrop',
114
+ payload: {
115
+ source: updatedSourcePayload !== null && updatedSourcePayload !== undefined ? updatedSourcePayload : source,
116
+ location: {
117
+ current: current,
118
+ previous: previous,
119
+ initial: initial
120
+ }
121
+ }
122
+ });
123
+ }
124
+ };
125
+ return dispatch;
126
+ }
127
+
128
+ export { makeDispatch };