@xelto.npm/xc2-lib 0.0.4 → 0.0.6

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.
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ declare const ATempComponent: ({ text }: {
3
+ text: any;
4
+ }) => JSX.Element;
5
+ export default ATempComponent;
@@ -0,0 +1 @@
1
+ export { default } from "./ATempComponent";
@@ -1 +1,2 @@
1
1
  export { default as AppTile } from "./appTile";
2
+ export { default as TempButton } from "./aTempComponent";
package/dist/esm/index.js CHANGED
@@ -9228,7 +9228,7 @@ if (process.env.NODE_ENV !== 'production') {
9228
9228
  }
9229
9229
  var ThemeContext$1 = ThemeContext;
9230
9230
 
9231
- function useTheme$3() {
9231
+ function useTheme$2() {
9232
9232
  const theme = reactExports.useContext(ThemeContext$1);
9233
9233
  if (process.env.NODE_ENV !== 'production') {
9234
9234
  // eslint-disable-next-line react-hooks/rules-of-hooks
@@ -9263,7 +9263,7 @@ function ThemeProvider$1(props) {
9263
9263
  children,
9264
9264
  theme: localTheme
9265
9265
  } = props;
9266
- const outerTheme = useTheme$3();
9266
+ const outerTheme = useTheme$2();
9267
9267
  if (process.env.NODE_ENV !== 'production') {
9268
9268
  if (outerTheme === null && typeof localTheme === 'function') {
9269
9269
  console.error(['MUI: You are providing a theme function prop to the ThemeProvider component:', '<ThemeProvider theme={outerTheme => outerTheme} />', '', 'However, no outer theme is present.', 'Make sure a theme is already injected higher in the React tree ' + 'or provide a theme object.'].join('\n'));
@@ -9298,14 +9298,14 @@ if (process.env.NODE_ENV !== 'production') {
9298
9298
  function isObjectEmpty(obj) {
9299
9299
  return Object.keys(obj).length === 0;
9300
9300
  }
9301
- function useTheme$2(defaultTheme = null) {
9302
- const contextTheme = useTheme$3();
9301
+ function useTheme$1(defaultTheme = null) {
9302
+ const contextTheme = useTheme$2();
9303
9303
  return !contextTheme || isObjectEmpty(contextTheme) ? defaultTheme : contextTheme;
9304
9304
  }
9305
9305
 
9306
9306
  const systemDefaultTheme$1 = createTheme$1();
9307
- function useTheme$1(defaultTheme = systemDefaultTheme$1) {
9308
- return useTheme$2(defaultTheme);
9307
+ function useTheme(defaultTheme = systemDefaultTheme$1) {
9308
+ return useTheme$1(defaultTheme);
9309
9309
  }
9310
9310
 
9311
9311
  const _excluded$b = ["className", "component"];
@@ -9320,7 +9320,7 @@ function createBox(options = {}) {
9320
9320
  shouldForwardProp: prop => prop !== 'theme' && prop !== 'sx' && prop !== 'as'
9321
9321
  })(styleFunctionSx$1);
9322
9322
  const Box = /*#__PURE__*/reactExports.forwardRef(function Box(inProps, ref) {
9323
- const theme = useTheme$1(defaultTheme);
9323
+ const theme = useTheme(defaultTheme);
9324
9324
  const _extendSxProp = extendSxProp(inProps),
9325
9325
  {
9326
9326
  className,
@@ -9599,7 +9599,7 @@ function useThemeProps({
9599
9599
  name,
9600
9600
  defaultTheme
9601
9601
  }) {
9602
- const theme = useTheme$1(defaultTheme);
9602
+ const theme = useTheme(defaultTheme);
9603
9603
  const mergedProps = getThemeProps({
9604
9604
  theme,
9605
9605
  name,
@@ -9904,7 +9904,7 @@ function private_safeEmphasize(color, coefficient, warning) {
9904
9904
 
9905
9905
  const EMPTY_THEME = {};
9906
9906
  function InnerThemeProvider(props) {
9907
- const theme = useTheme$1();
9907
+ const theme = useTheme();
9908
9908
  return /*#__PURE__*/jsxRuntime.exports.jsx(ThemeContext$2.Provider, {
9909
9909
  value: typeof theme === 'object' ? theme : EMPTY_THEME,
9910
9910
  children: props.children
@@ -10381,7 +10381,7 @@ function createCssVarsProvider(options) {
10381
10381
  disableStyleSheetGeneration = false
10382
10382
  }) {
10383
10383
  const hasMounted = reactExports.useRef(false);
10384
- const upperTheme = useTheme$3();
10384
+ const upperTheme = useTheme$2();
10385
10385
  const ctx = reactExports.useContext(ColorSchemeContext);
10386
10386
  const nested = !!ctx && !disableNestedContext;
10387
10387
  const {
@@ -11147,7 +11147,7 @@ function createGrid(options = {}) {
11147
11147
  const GridRoot = createStyledComponent(generateGridColumnsStyles, generateGridColumnSpacingStyles, generateGridRowSpacingStyles, generateGridSizeStyles, generateGridDirectionStyles, generateGridStyles, generateGridOffsetStyles);
11148
11148
  const Grid = /*#__PURE__*/reactExports.forwardRef(function Grid(inProps, ref) {
11149
11149
  var _inProps$columns, _inProps$spacing, _ref, _inProps$rowSpacing, _ref2, _inProps$columnSpacin, _ref3, _disableEqualOverflow;
11150
- const theme = useTheme$1();
11150
+ const theme = useTheme();
11151
11151
  const themeProps = useThemeProps(inProps);
11152
11152
  const props = extendSxProp(themeProps); // `color` type conflicts with html color attribute.
11153
11153
  const nested = reactExports.useContext(NestedContext);
@@ -12289,15 +12289,6 @@ Please use another name.` : formatMuiErrorMessage(18));
12289
12289
 
12290
12290
  const defaultTheme$2 = createTheme();
12291
12291
 
12292
- function useTheme() {
12293
- const theme = useTheme$1(defaultTheme$2);
12294
- if (process.env.NODE_ENV !== 'production') {
12295
- // eslint-disable-next-line react-hooks/rules-of-hooks
12296
- reactExports.useDebugValue(theme);
12297
- }
12298
- return theme;
12299
- }
12300
-
12301
12292
  const rootShouldForwardProp = prop => shouldForwardProp(prop) && prop !== 'classes';
12302
12293
  const styled = createStyled({
12303
12294
  defaultTheme: defaultTheme$2,
@@ -12629,7 +12620,6 @@ process.env.NODE_ENV !== "production" ? Box.propTypes /* remove-proptypes */ = {
12629
12620
  // import Illustration from "../../components_old/foundations/illustration/Illustration";
12630
12621
  // import TypographyComponent from "../typography/Typography";
12631
12622
  var StyledAppTileWrapper = styled(Box)(function (_a) {
12632
- useTheme();
12633
12623
  return ({
12634
12624
  boxSizing: 'border-box',
12635
12625
  width: '100%',
@@ -12675,5 +12665,11 @@ var AppTileComponent = function (_a) {
12675
12665
  return (jsxRuntime.exports.jsx(StyledAppTileWrapper, { children: jsxRuntime.exports.jsx(StyledHeaderDescriptionWrapper, { children: jsxRuntime.exports.jsx("p", { children: header }) }) }));
12676
12666
  };
12677
12667
 
12678
- export { AppTileComponent as AppTile };
12668
+ // @ts-ignore
12669
+ var ATempComponent = function (_a) {
12670
+ var text = _a.text;
12671
+ return (jsxRuntime.exports.jsx("button", { children: text }));
12672
+ };
12673
+
12674
+ export { AppTileComponent as AppTile, ATempComponent as TempButton };
12679
12675
  //# sourceMappingURL=index.js.map