@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
@@ -1,10 +1,8 @@
1
+ /// <reference types="react" />
1
2
  import { BoxProps } from '@mui/material';
2
- import React from 'react';
3
3
  import { BusyProps } from '../../BusyProps';
4
- interface BusyBoxProps extends BusyProps, BoxProps {
4
+ export interface BusyBoxProps extends BusyProps, BoxProps {
5
5
  paper?: boolean;
6
6
  background?: boolean;
7
7
  }
8
- declare const BusyBox: React.FC<BusyBoxProps>;
9
- export { BusyBox };
10
- export type { BusyBoxProps };
8
+ export declare const BusyBox: React.FC<BusyBoxProps>;
@@ -3,11 +3,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { Box, Paper, useTheme } from '@mui/material';
4
4
  import { BusyCircularProgress } from '../BusyCircularProgress';
5
5
  import { BusyLinearProgress } from '../BusyLinearProgress';
6
- const BusyBox = (_a) => {
6
+ export const BusyBox = (_a) => {
7
7
  var { background, children, component, busyVariant = 'circular', busySize, busyOpacity = 0.85, busyColor, busy, busyCircularProps, busyLinearProps, paper, style } = _a, props = __rest(_a, ["background", "children", "component", "busyVariant", "busySize", "busyOpacity", "busyColor", "busy", "busyCircularProps", "busyLinearProps", "paper", "style"]);
8
8
  const theme = useTheme();
9
9
  return (_jsxs(Box, Object.assign({ component: paper ? Paper : component, position: "relative", style: background
10
10
  ? Object.assign({ backgroundColor: theme.palette.background.default, color: theme.palette.text.primary }, style) : style }, props, { children: [children, busy && busyVariant === 'linear' ? (_jsx(BusyLinearProgress, Object.assign({ color: busyColor, opacity: busyOpacity }, busyLinearProps))) : null, busy && busyVariant === 'circular' ? (_jsx(BusyCircularProgress, Object.assign({ color: busyColor, opacity: busyOpacity, size: busySize }, busyCircularProps))) : null] })));
11
11
  };
12
- export { BusyBox };
13
12
  //# sourceMappingURL=BusyBox.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BusyBox.js","sourceRoot":"","sources":["../../../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C,KAAC,oBAAoB,kBAAC,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,IAAM,iBAAiB,EAAI,CACxG,CAAC,CAAC,CAAC,IAAI,KACJ,CACP,CAAA;AACH,CAAC,CAAA"}
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { ComponentMeta, ComponentStory } from '@storybook/react';
3
- declare const StorybookEntry: ComponentMeta<import("react").FC<import("../FlexBox/BusyBox").BusyBoxProps>>;
4
- declare const Default: ComponentStory<import("react").FC<import("../FlexBox/BusyBox").BusyBoxProps>>;
3
+ declare const StorybookEntry: ComponentMeta<import("react").FC<import("..").BusyBoxProps>>;
4
+ declare const Default: ComponentStory<import("react").FC<import("..").BusyBoxProps>>;
5
5
  export { Default };
6
6
  export default StorybookEntry;
@@ -1,4 +1,4 @@
1
1
  import { ReactNode } from 'react';
2
- export declare type WithChildren<T = unknown> = T & {
2
+ export declare type WithChildren<T = unknown> = Omit<T, 'children'> & {
3
3
  children?: ReactNode;
4
4
  };
@@ -1,10 +1,8 @@
1
+ /// <reference types="react" />
1
2
  import { BoxProps } from '@mui/material';
2
- import React from 'react';
3
3
  import { BusyProps } from '../../BusyProps';
4
- interface BusyBoxProps extends BusyProps, BoxProps {
4
+ export interface BusyBoxProps extends BusyProps, BoxProps {
5
5
  paper?: boolean;
6
6
  background?: boolean;
7
7
  }
8
- declare const BusyBox: React.FC<BusyBoxProps>;
9
- export { BusyBox };
10
- export type { BusyBoxProps };
8
+ export declare const BusyBox: React.FC<BusyBoxProps>;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { ComponentMeta, ComponentStory } from '@storybook/react';
3
- declare const StorybookEntry: ComponentMeta<import("react").FC<import("../FlexBox/BusyBox").BusyBoxProps>>;
4
- declare const Default: ComponentStory<import("react").FC<import("../FlexBox/BusyBox").BusyBoxProps>>;
3
+ declare const StorybookEntry: ComponentMeta<import("react").FC<import("..").BusyBoxProps>>;
4
+ declare const Default: ComponentStory<import("react").FC<import("..").BusyBoxProps>>;
5
5
  export { Default };
6
6
  export default StorybookEntry;