@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 +1 -1
- package/dist/components/multi-select/CMultiSelect.d.ts +2 -2
- package/dist/hooks/useColorModes.d.ts +1 -0
- package/dist/index.es.js +1 -0
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/multi-select/CMultiSelect.tsx +2 -2
- package/src/hooks/useColorModes.ts +2 -0
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.
|
|
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.
|
|
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.
|
|
85
|
+
* @since 4.12.0-beta.1
|
|
86
86
|
*/
|
|
87
87
|
optionsGroupsTemplate?: (option: OptionsGroup) => ReactNode;
|
|
88
88
|
/**
|
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
|
};
|