@marigold/system 7.6.0 → 7.7.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/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -101,7 +101,7 @@ var get = (obj, path, fallback) => {
|
|
|
101
101
|
return result === void 0 ? fallback : result;
|
|
102
102
|
};
|
|
103
103
|
var getColor = (theme, path, fallback) => {
|
|
104
|
-
const result = get(theme.colors || {}, path.replace(
|
|
104
|
+
const result = get(theme.colors || {}, path.replace(/-/g, "."), fallback);
|
|
105
105
|
return isObject(result) ? result["DEFAULT"] : result;
|
|
106
106
|
};
|
|
107
107
|
|
|
@@ -134,7 +134,7 @@ function ThemeProvider({
|
|
|
134
134
|
}) {
|
|
135
135
|
var _a;
|
|
136
136
|
const root = (_a = theme.root) == null ? void 0 : _a.call(theme);
|
|
137
|
-
return /* @__PURE__ */ import_react.default.createElement(InternalContext.Provider, { value: theme }, /* @__PURE__ */ import_react.default.createElement("div", { className: cn(root
|
|
137
|
+
return /* @__PURE__ */ import_react.default.createElement(InternalContext.Provider, { value: theme }, /* @__PURE__ */ import_react.default.createElement("div", { className: cn(root, className) }, children));
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
// src/hooks/useClassNames.tsx
|
package/dist/index.mjs
CHANGED
|
@@ -28,7 +28,7 @@ var get = (obj, path, fallback) => {
|
|
|
28
28
|
return result === void 0 ? fallback : result;
|
|
29
29
|
};
|
|
30
30
|
var getColor = (theme, path, fallback) => {
|
|
31
|
-
const result = get(theme.colors || {}, path.replace(
|
|
31
|
+
const result = get(theme.colors || {}, path.replace(/-/g, "."), fallback);
|
|
32
32
|
return isObject(result) ? result["DEFAULT"] : result;
|
|
33
33
|
};
|
|
34
34
|
|
|
@@ -61,7 +61,7 @@ function ThemeProvider({
|
|
|
61
61
|
}) {
|
|
62
62
|
var _a;
|
|
63
63
|
const root = (_a = theme.root) == null ? void 0 : _a.call(theme);
|
|
64
|
-
return /* @__PURE__ */ React.createElement(InternalContext.Provider, { value: theme }, /* @__PURE__ */ React.createElement("div", { className: cn(root
|
|
64
|
+
return /* @__PURE__ */ React.createElement(InternalContext.Provider, { value: theme }, /* @__PURE__ */ React.createElement("div", { className: cn(root, className) }, children));
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
// src/hooks/useClassNames.tsx
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marigold/system",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.7.1",
|
|
4
4
|
"description": "Marigold System Library",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -24,19 +24,19 @@
|
|
|
24
24
|
"directory": "packages/system"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@react-aria/i18n": "3.
|
|
27
|
+
"@react-aria/i18n": "3.11.0",
|
|
28
28
|
"class-variance-authority": "0.7.0",
|
|
29
|
-
"deepmerge": "
|
|
30
|
-
"react-fast-compare": "
|
|
29
|
+
"deepmerge": "4.2.2",
|
|
30
|
+
"react-fast-compare": "3.2.0",
|
|
31
31
|
"tailwind-merge": "2.2.1",
|
|
32
32
|
"@marigold/types": "1.1.0"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"react": "
|
|
36
|
-
"react-dom": "
|
|
35
|
+
"react": "18.x",
|
|
36
|
+
"react-dom": "18.x"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@babel/core": "7.24.
|
|
39
|
+
"@babel/core": "7.24.4",
|
|
40
40
|
"postcss": "8.4.35",
|
|
41
41
|
"react": "18.2.0",
|
|
42
42
|
"tailwindcss": "3.4.1",
|