@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.
- package/dist/cjs/index.js +18 -21
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/aTempComponent/ATempComponent.d.ts +5 -0
- package/dist/cjs/types/components/aTempComponent/index.d.ts +1 -0
- package/dist/cjs/types/components/index.d.ts +1 -0
- package/dist/esm/index.js +18 -22
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/aTempComponent/ATempComponent.d.ts +5 -0
- package/dist/esm/types/components/aTempComponent/index.d.ts +1 -0
- package/dist/esm/types/components/index.d.ts +1 -0
- package/dist/index.d.ts +5 -1
- package/package.json +4 -2
package/dist/cjs/index.js
CHANGED
|
@@ -9230,7 +9230,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
9230
9230
|
}
|
|
9231
9231
|
var ThemeContext$1 = ThemeContext;
|
|
9232
9232
|
|
|
9233
|
-
function useTheme$
|
|
9233
|
+
function useTheme$2() {
|
|
9234
9234
|
const theme = reactExports.useContext(ThemeContext$1);
|
|
9235
9235
|
if (process.env.NODE_ENV !== 'production') {
|
|
9236
9236
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
@@ -9265,7 +9265,7 @@ function ThemeProvider$1(props) {
|
|
|
9265
9265
|
children,
|
|
9266
9266
|
theme: localTheme
|
|
9267
9267
|
} = props;
|
|
9268
|
-
const outerTheme = useTheme$
|
|
9268
|
+
const outerTheme = useTheme$2();
|
|
9269
9269
|
if (process.env.NODE_ENV !== 'production') {
|
|
9270
9270
|
if (outerTheme === null && typeof localTheme === 'function') {
|
|
9271
9271
|
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'));
|
|
@@ -9300,14 +9300,14 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
9300
9300
|
function isObjectEmpty(obj) {
|
|
9301
9301
|
return Object.keys(obj).length === 0;
|
|
9302
9302
|
}
|
|
9303
|
-
function useTheme$
|
|
9304
|
-
const contextTheme = useTheme$
|
|
9303
|
+
function useTheme$1(defaultTheme = null) {
|
|
9304
|
+
const contextTheme = useTheme$2();
|
|
9305
9305
|
return !contextTheme || isObjectEmpty(contextTheme) ? defaultTheme : contextTheme;
|
|
9306
9306
|
}
|
|
9307
9307
|
|
|
9308
9308
|
const systemDefaultTheme$1 = createTheme$1();
|
|
9309
|
-
function useTheme
|
|
9310
|
-
return useTheme$
|
|
9309
|
+
function useTheme(defaultTheme = systemDefaultTheme$1) {
|
|
9310
|
+
return useTheme$1(defaultTheme);
|
|
9311
9311
|
}
|
|
9312
9312
|
|
|
9313
9313
|
const _excluded$b = ["className", "component"];
|
|
@@ -9322,7 +9322,7 @@ function createBox(options = {}) {
|
|
|
9322
9322
|
shouldForwardProp: prop => prop !== 'theme' && prop !== 'sx' && prop !== 'as'
|
|
9323
9323
|
})(styleFunctionSx$1);
|
|
9324
9324
|
const Box = /*#__PURE__*/reactExports.forwardRef(function Box(inProps, ref) {
|
|
9325
|
-
const theme = useTheme
|
|
9325
|
+
const theme = useTheme(defaultTheme);
|
|
9326
9326
|
const _extendSxProp = extendSxProp(inProps),
|
|
9327
9327
|
{
|
|
9328
9328
|
className,
|
|
@@ -9601,7 +9601,7 @@ function useThemeProps({
|
|
|
9601
9601
|
name,
|
|
9602
9602
|
defaultTheme
|
|
9603
9603
|
}) {
|
|
9604
|
-
const theme = useTheme
|
|
9604
|
+
const theme = useTheme(defaultTheme);
|
|
9605
9605
|
const mergedProps = getThemeProps({
|
|
9606
9606
|
theme,
|
|
9607
9607
|
name,
|
|
@@ -9906,7 +9906,7 @@ function private_safeEmphasize(color, coefficient, warning) {
|
|
|
9906
9906
|
|
|
9907
9907
|
const EMPTY_THEME = {};
|
|
9908
9908
|
function InnerThemeProvider(props) {
|
|
9909
|
-
const theme = useTheme
|
|
9909
|
+
const theme = useTheme();
|
|
9910
9910
|
return /*#__PURE__*/jsxRuntime.exports.jsx(ThemeContext$2.Provider, {
|
|
9911
9911
|
value: typeof theme === 'object' ? theme : EMPTY_THEME,
|
|
9912
9912
|
children: props.children
|
|
@@ -10383,7 +10383,7 @@ function createCssVarsProvider(options) {
|
|
|
10383
10383
|
disableStyleSheetGeneration = false
|
|
10384
10384
|
}) {
|
|
10385
10385
|
const hasMounted = reactExports.useRef(false);
|
|
10386
|
-
const upperTheme = useTheme$
|
|
10386
|
+
const upperTheme = useTheme$2();
|
|
10387
10387
|
const ctx = reactExports.useContext(ColorSchemeContext);
|
|
10388
10388
|
const nested = !!ctx && !disableNestedContext;
|
|
10389
10389
|
const {
|
|
@@ -11149,7 +11149,7 @@ function createGrid(options = {}) {
|
|
|
11149
11149
|
const GridRoot = createStyledComponent(generateGridColumnsStyles, generateGridColumnSpacingStyles, generateGridRowSpacingStyles, generateGridSizeStyles, generateGridDirectionStyles, generateGridStyles, generateGridOffsetStyles);
|
|
11150
11150
|
const Grid = /*#__PURE__*/reactExports.forwardRef(function Grid(inProps, ref) {
|
|
11151
11151
|
var _inProps$columns, _inProps$spacing, _ref, _inProps$rowSpacing, _ref2, _inProps$columnSpacin, _ref3, _disableEqualOverflow;
|
|
11152
|
-
const theme = useTheme
|
|
11152
|
+
const theme = useTheme();
|
|
11153
11153
|
const themeProps = useThemeProps(inProps);
|
|
11154
11154
|
const props = extendSxProp(themeProps); // `color` type conflicts with html color attribute.
|
|
11155
11155
|
const nested = reactExports.useContext(NestedContext);
|
|
@@ -12291,15 +12291,6 @@ Please use another name.` : formatMuiErrorMessage(18));
|
|
|
12291
12291
|
|
|
12292
12292
|
const defaultTheme$2 = createTheme();
|
|
12293
12293
|
|
|
12294
|
-
function useTheme() {
|
|
12295
|
-
const theme = useTheme$1(defaultTheme$2);
|
|
12296
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
12297
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
12298
|
-
reactExports.useDebugValue(theme);
|
|
12299
|
-
}
|
|
12300
|
-
return theme;
|
|
12301
|
-
}
|
|
12302
|
-
|
|
12303
12294
|
const rootShouldForwardProp = prop => shouldForwardProp(prop) && prop !== 'classes';
|
|
12304
12295
|
const styled = createStyled({
|
|
12305
12296
|
defaultTheme: defaultTheme$2,
|
|
@@ -12631,7 +12622,6 @@ process.env.NODE_ENV !== "production" ? Box.propTypes /* remove-proptypes */ = {
|
|
|
12631
12622
|
// import Illustration from "../../components_old/foundations/illustration/Illustration";
|
|
12632
12623
|
// import TypographyComponent from "../typography/Typography";
|
|
12633
12624
|
var StyledAppTileWrapper = styled(Box)(function (_a) {
|
|
12634
|
-
useTheme();
|
|
12635
12625
|
return ({
|
|
12636
12626
|
boxSizing: 'border-box',
|
|
12637
12627
|
width: '100%',
|
|
@@ -12677,5 +12667,12 @@ var AppTileComponent = function (_a) {
|
|
|
12677
12667
|
return (jsxRuntime.exports.jsx(StyledAppTileWrapper, { children: jsxRuntime.exports.jsx(StyledHeaderDescriptionWrapper, { children: jsxRuntime.exports.jsx("p", { children: header }) }) }));
|
|
12678
12668
|
};
|
|
12679
12669
|
|
|
12670
|
+
// @ts-ignore
|
|
12671
|
+
var ATempComponent = function (_a) {
|
|
12672
|
+
var text = _a.text;
|
|
12673
|
+
return (jsxRuntime.exports.jsx("button", { children: text }));
|
|
12674
|
+
};
|
|
12675
|
+
|
|
12680
12676
|
exports.AppTile = AppTileComponent;
|
|
12677
|
+
exports.TempButton = ATempComponent;
|
|
12681
12678
|
//# sourceMappingURL=index.js.map
|