dirk-cfx-react 1.1.75 → 1.1.77
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/dist/components/index.cjs +1 -0
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +1 -0
- package/dist/components/index.js.map +1 -1
- package/dist/index.cjs +6 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/providers/index.cjs +5 -0
- package/dist/providers/index.cjs.map +1 -1
- package/dist/providers/index.js +5 -0
- package/dist/providers/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -6154,6 +6154,7 @@ function ThemeOverrideSection({
|
|
|
6154
6154
|
{
|
|
6155
6155
|
label: locale("UseCustomPalette") || "Use custom palette",
|
|
6156
6156
|
size: "md",
|
|
6157
|
+
mt: "xs",
|
|
6157
6158
|
checked: useCustom,
|
|
6158
6159
|
onChange: (e) => set("primaryColor", e.currentTarget.checked ? "custom" : "dirk"),
|
|
6159
6160
|
styles: {
|
|
@@ -6582,6 +6583,11 @@ function DirkProvider({ children, overideResourceName, themeOverride }) {
|
|
|
6582
6583
|
}, []);
|
|
6583
6584
|
useNuiEvent("UPDATE_DIRK_LIB_SETTINGS", (data) => {
|
|
6584
6585
|
if (!data || typeof data !== "object") return;
|
|
6586
|
+
const carriesOverrideFlag = Object.prototype.hasOwnProperty.call(data, "themeOverride");
|
|
6587
|
+
if (carriesOverrideFlag) {
|
|
6588
|
+
useSettings.setState(data);
|
|
6589
|
+
return;
|
|
6590
|
+
}
|
|
6585
6591
|
const current = useSettings.getState();
|
|
6586
6592
|
if (current.themeOverride) {
|
|
6587
6593
|
const { primaryColor: _pc, primaryShade: _ps, customTheme: _ct, ...rest } = data;
|