@xylabs/sdk-react 2.11.2 → 2.11.3

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 (32) hide show
  1. package/dist/WithChildren.d.ts +1 -1
  2. package/dist/cjs5/WithChildren.d.ts +1 -1
  3. package/dist/cjs5/components/FlexBox/BusyBox.d.ts +3 -5
  4. package/dist/cjs5/components/Pixel/PixelDebugger.stories.d.ts +2 -2
  5. package/dist/cjs5/index.js.map +1 -1
  6. package/dist/components/FlexBox/BusyBox.d.ts +3 -5
  7. package/dist/components/FlexBox/BusyBox.js +1 -2
  8. package/dist/components/FlexBox/BusyBox.js.map +1 -1
  9. package/dist/components/Pixel/PixelDebugger.stories.d.ts +2 -2
  10. package/dist/esm2015/WithChildren.d.ts +1 -1
  11. package/dist/esm2015/components/FlexBox/BusyBox.d.ts +3 -5
  12. package/dist/esm2015/components/Pixel/PixelDebugger.stories.d.ts +2 -2
  13. package/dist/esm2015/index.js.map +1 -1
  14. package/dist/esm2017/WithChildren.d.ts +1 -1
  15. package/dist/esm2017/components/FlexBox/BusyBox.d.ts +3 -5
  16. package/dist/esm2017/components/Pixel/PixelDebugger.stories.d.ts +2 -2
  17. package/dist/esm2017/index.js.map +1 -1
  18. package/dist/esm5/WithChildren.d.ts +1 -1
  19. package/dist/esm5/components/FlexBox/BusyBox.d.ts +3 -5
  20. package/dist/esm5/components/Pixel/PixelDebugger.stories.d.ts +2 -2
  21. package/dist/esm5/index.js.map +1 -1
  22. package/dist/node/WithChildren.d.ts +1 -1
  23. package/dist/node/components/FlexBox/BusyBox.d.ts +3 -5
  24. package/dist/node/components/Pixel/PixelDebugger.stories.d.ts +2 -2
  25. package/dist/node/index.js.map +1 -1
  26. package/dist/node-esm/WithChildren.d.ts +1 -1
  27. package/dist/node-esm/components/FlexBox/BusyBox.d.ts +3 -5
  28. package/dist/node-esm/components/Pixel/PixelDebugger.stories.d.ts +2 -2
  29. package/dist/node-esm/index.js.map +1 -1
  30. package/package.json +2 -1
  31. package/src/WithChildren.ts +3 -1
  32. package/src/components/FlexBox/BusyBox.tsx +2 -6
package/package.json CHANGED
@@ -48,6 +48,7 @@
48
48
  "@types/md5": "^2.3.2",
49
49
  "@types/node": "^17.0.23",
50
50
  "@types/numeral": "^2.0.2",
51
+ "@types/react": "^18.0.0",
51
52
  "@types/react-dom": "^18.0.0",
52
53
  "@types/react-helmet": "^6.1.5",
53
54
  "@xylabs/eslint-config-react": "^2.1.3",
@@ -118,6 +119,6 @@
118
119
  },
119
120
  "sideEffects": false,
120
121
  "types": "dist/index.d.ts",
121
- "version": "2.11.2",
122
+ "version": "2.11.3",
122
123
  "packageManager": "yarn@3.1.1"
123
124
  }
@@ -1,3 +1,5 @@
1
1
  import { ReactNode } from 'react'
2
2
 
3
- export type WithChildren<T = unknown> = T & { children?: ReactNode }
3
+ export type WithChildren<T = unknown> = Omit<T, 'children'> & {
4
+ children?: ReactNode
5
+ }
@@ -1,16 +1,15 @@
1
1
  import { Box, BoxProps, Paper, useTheme } from '@mui/material'
2
- import React from 'react'
3
2
 
4
3
  import { BusyProps } from '../../BusyProps'
5
4
  import { BusyCircularProgress } from '../BusyCircularProgress'
6
5
  import { BusyLinearProgress } from '../BusyLinearProgress'
7
6
 
8
- interface BusyBoxProps extends BusyProps, BoxProps {
7
+ export interface BusyBoxProps extends BusyProps, BoxProps {
9
8
  paper?: boolean
10
9
  background?: boolean
11
10
  }
12
11
 
13
- const BusyBox: React.FC<BusyBoxProps> = ({
12
+ export const BusyBox: React.FC<BusyBoxProps> = ({
14
13
  background,
15
14
  children,
16
15
  component,
@@ -51,6 +50,3 @@ const BusyBox: React.FC<BusyBoxProps> = ({
51
50
  </Box>
52
51
  )
53
52
  }
54
-
55
- export { BusyBox }
56
- export type { BusyBoxProps }