@coreui/react 4.9.0-beta.0 → 4.9.0-beta.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.
package/README.md CHANGED
@@ -46,7 +46,7 @@
46
46
 
47
47
  Several quick start options are available:
48
48
 
49
- - [Download the latest release](https://github.com/coreui/coreui-react/archive/v4.9.0-beta.0.zip)
49
+ - [Download the latest release](https://github.com/coreui/coreui-react/archive/v4.9.0-beta.1.zip)
50
50
  - Clone the repo: `git clone https://github.com/coreui/coreui-react.git`
51
51
  - Install with [npm](https://www.npmjs.com/): `npm install @coreui/react`
52
52
  - Install with [yarn](https://yarnpkg.com/): `yarn add @coreui/react`
@@ -1,5 +1,6 @@
1
1
  interface UseColorModesOutput {
2
2
  getColorMode: () => string;
3
+ isColorModeSet: () => boolean;
3
4
  setColorMode: (mode: string) => void;
4
5
  }
5
6
  export declare const useColorModes: (localStorageItemName?: string) => UseColorModesOutput;
package/dist/index.es.js CHANGED
@@ -2508,6 +2508,7 @@ var useColorModes = function (localStorageItemName) {
2508
2508
  }, []);
2509
2509
  return {
2510
2510
  getColorMode: function () { return colorMode; },
2511
+ isColorModeSet: function () { return Boolean(getStoredTheme(localStorageItemName)); },
2511
2512
  setColorMode: function (mode) { return setColorMode(mode); },
2512
2513
  };
2513
2514
  };