@team-monolith/cds 1.43.0 → 1.43.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.
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import { Theme } from "@emotion/react";
2
3
  export declare const light: {
3
4
  fontFamily: {
4
5
  ui: string;
@@ -222,6 +223,7 @@ export declare const dark: {
222
223
  };
223
224
  };
224
225
  interface CodleDesignSystemContext {
226
+ theme?: Theme;
225
227
  lexical?: {
226
228
  uploadByFile: (file: File) => Promise<string>;
227
229
  };
@@ -242,9 +242,10 @@ export default function (props) {
242
242
  },
243
243
  },
244
244
  });
245
+ const { theme = light } = props;
245
246
  return (_jsxs(_Fragment, { children: [_jsx(Global, { styles: css `
246
247
  body {
247
248
  font-family: ${FONT.pretendard};
248
249
  }
249
- ` }), _jsx(MuiThemeProvider, Object.assign({ theme: muiTheme }, { children: _jsx(ThemeProvider, Object.assign({ theme: light }, { children: _jsx(CodleDesignSystemContext.Provider, Object.assign({ value: props }, { children: props.children })) })) }))] }));
250
+ ` }), _jsx(MuiThemeProvider, Object.assign({ theme: muiTheme }, { children: _jsx(ThemeProvider, Object.assign({ theme: theme }, { children: _jsx(CodleDesignSystemContext.Provider, Object.assign({ value: props }, { children: props.children })) })) }))] }));
250
251
  }
package/dist/index.d.ts CHANGED
@@ -32,7 +32,7 @@ export { default as color } from "./foundation/color";
32
32
  export { default as shadows } from "./foundation/shadows";
33
33
  export * from "./foundation/breakpoints";
34
34
  export { default as CodleDesignSystemProvider } from "./CodleDesignSystemProvider";
35
- export { light } from "./CodleDesignSystemProvider";
35
+ export * from "./CodleDesignSystemProvider";
36
36
  export * from "./icons";
37
37
  export * from "./icons/Custom";
38
38
  export * from "./utils/hover";
package/dist/index.js CHANGED
@@ -32,7 +32,7 @@ export { default as color } from "./foundation/color";
32
32
  export { default as shadows } from "./foundation/shadows";
33
33
  export * from "./foundation/breakpoints";
34
34
  export { default as CodleDesignSystemProvider } from "./CodleDesignSystemProvider";
35
- export { light } from "./CodleDesignSystemProvider";
35
+ export * from "./CodleDesignSystemProvider";
36
36
  export * from "./icons";
37
37
  export * from "./icons/Custom";
38
38
  export * from "./utils/hover";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@team-monolith/cds",
3
- "version": "1.43.0",
3
+ "version": "1.43.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "sideEffects": false,