cherry-styled-components 0.1.12 → 0.1.13

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.
@@ -5,16 +5,16 @@ import { useServerInsertedHTML } from "next/navigation";
5
5
  import { ServerStyleSheet, StyleSheetManager } from "styled-components";
6
6
  function StyledComponentsRegistry({ children }) {
7
7
  const [styledComponentsStyleSheet] = useState(() => new ServerStyleSheet());
8
+ const isServer = typeof window === "undefined";
8
9
  useServerInsertedHTML(() => {
9
10
  const styles = styledComponentsStyleSheet.getStyleElement();
10
11
  styledComponentsStyleSheet.instance.clearTag();
11
12
  return /* @__PURE__ */ jsx(Fragment, { children: styles });
12
13
  });
13
- if (typeof window !== "undefined") return /* @__PURE__ */ jsx(Fragment, { children });
14
14
  return /* @__PURE__ */ jsx(
15
15
  StyleSheetManager,
16
16
  {
17
- sheet: styledComponentsStyleSheet.instance,
17
+ sheet: isServer ? styledComponentsStyleSheet.instance : void 0,
18
18
  enableVendorPrefixes: true,
19
19
  children
20
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cherry-styled-components",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "description": "Cherry is a design system for the modern web. Designed in Figma, built in React using Typescript.",
5
5
  "private": false,
6
6
  "type": "module",
@@ -17,7 +17,7 @@
17
17
  ],
18
18
  "sideEffects": false,
19
19
  "author": "Luan Gjokaj <luan@riangle.com>",
20
- "homepage": "https://cherry.design",
20
+ "homepage": "https://cherry.al",
21
21
  "repository": "https://github.com/cherry-design-system/styled-components",
22
22
  "license": "MIT",
23
23
  "engines": {
@@ -41,7 +41,7 @@
41
41
  "format": "prettier --write ."
42
42
  },
43
43
  "dependencies": {
44
- "lucide-react": "^0.574.0",
44
+ "lucide-react": "^0.575.0",
45
45
  "polished": "^4.3.1"
46
46
  },
47
47
  "peerDependencies": {
@@ -50,7 +50,7 @@
50
50
  "styled-components": "^6.0.0"
51
51
  },
52
52
  "devDependencies": {
53
- "@types/node": "^25.2.3",
53
+ "@types/node": "^25.3.0",
54
54
  "@types/react": "^19.2.14",
55
55
  "@types/react-dom": "^19.2.3",
56
56
  "@vitejs/plugin-react": "^5.1.4",
@@ -61,7 +61,7 @@
61
61
  "react": "^19.2.4",
62
62
  "react-dom": "^19.2.4",
63
63
  "rollup-plugin-preserve-directives": "^0.4.0",
64
- "styled-components": "^6.3.9",
64
+ "styled-components": "^6.3.11",
65
65
  "typescript": "^5.9.3",
66
66
  "vite": "^7.3.1",
67
67
  "vite-plugin-dts": "^4.5.4"