fis-component 0.0.19 → 0.0.21

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,4 @@
1
- export { ThemeProvider } from "styled-components";
1
+ export { default as FISThemeProvider } from "./components/Provider";
2
2
  export type { ThemeType } from "./styles/design-system";
3
3
  export { default as FISButton } from "./components/Button";
4
4
  export { default as FISLinkButton } from "./components/LinkButton";
package/dist/index.d.ts CHANGED
@@ -1,6 +1,12 @@
1
- export { ThemeProvider } from 'styled-components';
2
1
  import * as React from 'react';
3
2
  import React__default, { ComponentPropsWithoutRef, ReactNode, Ref, JSX } from 'react';
3
+ import { DefaultTheme } from 'styled-components';
4
+
5
+ interface ThemeProviderProps {
6
+ theme?: DefaultTheme;
7
+ children: React__default.ReactNode;
8
+ }
9
+ declare const FISThemeProvider: React__default.FC<ThemeProviderProps>;
4
10
 
5
11
  declare const _default: {
6
12
  readonly "com/breadcrumbs/module/horizontal-gap": "4px";
@@ -2926,4 +2932,4 @@ interface InputTextProps extends Omit<InputFieldProps, "onChange" | "onEnter" |
2926
2932
  }
2927
2933
  declare const FISInputText: React__default.ForwardRefExoticComponent<InputTextProps & React__default.RefAttributes<HTMLInputElement>>;
2928
2934
 
2929
- export { FISButton, FISCheckbox, FISGroupButton, FISIconButton, FISInputField, FISInputLabel, FISInputText, FISLinkButton, FISRadio, type ThemeType };
2935
+ export { FISButton, FISCheckbox, FISGroupButton, FISIconButton, FISInputField, FISInputLabel, FISInputText, FISLinkButton, FISRadio, FISThemeProvider, type ThemeType };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "homepage": "https://vietdiemtran.github.io/fis-component/",
3
3
  "name": "fis-component",
4
- "version": "0.0.19",
4
+ "version": "0.0.21",
5
5
  "description": "",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/esm/index.js",
@@ -23,7 +23,8 @@
23
23
  "build:tokens": "style-dictionary build --verbose --config style-dictionary.config.mjs"
24
24
  },
25
25
  "peerDependencies": {
26
- "react": "^18.0.0"
26
+ "react": ">=18.0.0 <20.0.0",
27
+ "react-dom": ">=18.0.0 <20.0.0"
27
28
  },
28
29
  "keywords": [
29
30
  "react",