@coreui/react-pro 4.12.0-beta.0 → 4.12.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
@@ -42,7 +42,7 @@
42
42
 
43
43
  Several quick start options are available:
44
44
 
45
- - [Download the latest release](https://github.com/coreui/coreui-react-pro/archive/v4.12.0-beta.0.zip)
45
+ - [Download the latest release](https://github.com/coreui/coreui-react-pro/archive/v4.12.0-beta.1.zip)
46
46
  - Clone the repo: `git clone https://github.com/coreui/coreui-react.git`
47
47
  - Install with [npm](https://www.npmjs.com/): `npm install @coreui/react`
48
48
  - Install with [yarn](https://yarnpkg.com/): `yarn add @coreui/react`
@@ -76,13 +76,13 @@ export interface CMultiSelectProps extends Omit<CFormControlWrapperProps, 'float
76
76
  /**
77
77
  * Custom template for options.
78
78
  *
79
- * @since 4.12.0-beta.0
79
+ * @since 4.12.0-beta.1
80
80
  */
81
81
  optionsTemplate?: (option: Option) => ReactNode;
82
82
  /**
83
83
  * Custom template for options groups.
84
84
  *
85
- * @since 4.12.0-beta.0
85
+ * @since 4.12.0-beta.1
86
86
  */
87
87
  optionsGroupsTemplate?: (option: OptionsGroup) => ReactNode;
88
88
  /**
@@ -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
@@ -2510,6 +2510,7 @@ var useColorModes = function (localStorageItemName) {
2510
2510
  }, []);
2511
2511
  return {
2512
2512
  getColorMode: function () { return colorMode; },
2513
+ isColorModeSet: function () { return Boolean(getStoredTheme(localStorageItemName)); },
2513
2514
  setColorMode: function (mode) { return setColorMode(mode); },
2514
2515
  };
2515
2516
  };