@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 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("-", "."), fallback);
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 ? root : "", className) }, children));
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("-", "."), fallback);
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 ? root : "", className) }, children));
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.6.0",
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.10.2",
27
+ "@react-aria/i18n": "3.11.0",
28
28
  "class-variance-authority": "0.7.0",
29
- "deepmerge": "^4.2.2",
30
- "react-fast-compare": "^3.2.0",
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": "16.x || 17.x || 18.x",
36
- "react-dom": "16.x || 17.x || 18.x"
35
+ "react": "18.x",
36
+ "react-dom": "18.x"
37
37
  },
38
38
  "devDependencies": {
39
- "@babel/core": "7.24.3",
39
+ "@babel/core": "7.24.4",
40
40
  "postcss": "8.4.35",
41
41
  "react": "18.2.0",
42
42
  "tailwindcss": "3.4.1",