cherry-styled-components 0.2.17 → 0.2.19

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.
@@ -25,6 +25,10 @@ var iconButtonStyles = (theme, $size, $error, disabled, $active) => {
25
25
  ``,
26
26
  `;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;position:relative;width:`,
27
27
  `px;height:`,
28
+ `px;min-width:`,
29
+ `px;max-width:`,
30
+ `px;min-height:`,
31
+ `px;max-height:`,
28
32
  `px;border-radius:50%;background:`,
29
33
  `;border:solid 2px `,
30
34
  `;color:`,
@@ -35,7 +39,7 @@ var iconButtonStyles = (theme, $size, $error, disabled, $active) => {
35
39
  ` `,
36
40
  ` `,
37
41
  ``
38
- ], resetButton, box, box, theme.colors.light, theme.colors.grayLight, $error ? theme.colors.error : theme.colors.grayDark, $error ? tint(theme.colors.error, 10) : theme.colors.primaryLight, icon, icon, !disabled && ($error ? css([
42
+ ], resetButton, box, box, box, box, box, box, theme.colors.light, theme.colors.grayLight, $error ? theme.colors.error : theme.colors.grayDark, $error ? tint(theme.colors.error, 10) : theme.colors.primaryLight, icon, icon, !disabled && ($error ? css([
39
43
  `border-color:`,
40
44
  `;&:hover{border-color:`,
41
45
  `;color:`,
@@ -64,7 +68,7 @@ var iconButtonStyles = (theme, $size, $error, disabled, $active) => {
64
68
  };
65
69
  var StyledIconButton = styled.button.withConfig({
66
70
  displayName: "icon-button__StyledIconButton",
67
- componentId: "sc-3df98d32-0"
71
+ componentId: "sc-9fd4b85f-0"
68
72
  })([``, ``], ({ theme, $size, $error, disabled, $active }) => iconButtonStyles(theme, $size, $error, disabled, $active));
69
73
  function LocalIconButton({ ...props }, ref) {
70
74
  return /*#__PURE__*/ jsx(StyledIconButton, {
package/dist/toggle.js CHANGED
@@ -8,11 +8,11 @@ import styled from "styled-components";
8
8
  //#region src/lib/toggle.tsx
9
9
  var StyledToggleWrapper = styled.span.withConfig({
10
10
  displayName: "toggle__StyledToggleWrapper",
11
- componentId: "sc-279a0aa6-0"
11
+ componentId: "sc-aa895e38-0"
12
12
  })([`display:inline-block;margin:auto 0;position:relative;vertical-align:middle;`]);
13
13
  var StyledFakeToggle = styled.span.withConfig({
14
14
  displayName: "toggle__StyledFakeToggle",
15
- componentId: "sc-279a0aa6-1"
15
+ componentId: "sc-aa895e38-1"
16
16
  })([
17
17
  `display:block;border:solid 2px `,
18
18
  `;background:`,
@@ -32,7 +32,7 @@ var StyledFakeToggle = styled.span.withConfig({
32
32
  }, ({ theme }) => theme.spacing.radius.xl, ({ theme }) => theme.colors.light, ({ theme }) => theme.colors.primary, ({ $size }) => $size === "big" ? "32px" : $size === "small" ? "18px" : "22px", ({ $size }) => $size === "big" ? "32px" : $size === "small" ? "18px" : "22px");
33
33
  var StyledToggle = styled.input.withConfig({
34
34
  displayName: "toggle__StyledToggle",
35
- componentId: "sc-279a0aa6-2"
35
+ componentId: "sc-aa895e38-2"
36
36
  })([
37
37
  ``,
38
38
  `;position:absolute;left:0;top:0;width:100%;height:100%;outline:none;z-index:10;&:checked ~ .fake-toggle{&::before{max-width:46px;background:`,
@@ -41,21 +41,11 @@ var StyledToggle = styled.input.withConfig({
41
41
  `;}&:focus:not([disabled]) ~ .fake-toggle{outline:none;border-color:`,
42
42
  `;box-shadow:0 0 0 4px `,
43
43
  `;}&:active:not([disabled]) ~ .fake-toggle{box-shadow:0 0 0 2px `,
44
- `;}`,
45
- ``
46
- ], resetButton, ({ theme }) => theme.colors.primaryLight, ({ $size }) => $size === "big" ? "25px" : $size === "small" ? "20px" : "25px", ({ theme }) => theme.colors.primary, ({ theme }) => theme.colors.primary, ({ theme }) => theme.colors.primaryLight, ({ theme }) => theme.colors.primaryLight, ({ disabled, theme }) => disabled && `cursor: not-allowed;
47
-
48
- & ~ .fake-toggle {
49
- border-color: ${theme.colors.gray};
50
-
51
- &::before {
52
- background: ${theme.colors.grayLight};
53
- }
54
-
55
- &::after {
56
- background: ${theme.colors.gray};
57
- }
58
- }`);
44
+ `;}&:disabled{cursor:not-allowed;}&:disabled ~ .fake-toggle,&:disabled:checked ~ .fake-toggle{border-color:`,
45
+ `;&::before{background:`,
46
+ `;}&::after{background:`,
47
+ `;}}`
48
+ ], resetButton, ({ theme }) => theme.colors.primaryLight, ({ $size }) => $size === "big" ? "25px" : $size === "small" ? "20px" : "25px", ({ theme }) => theme.colors.primary, ({ theme }) => theme.colors.primary, ({ theme }) => theme.colors.primaryLight, ({ theme }) => theme.colors.primaryLight, ({ theme }) => theme.colors.gray, ({ theme }) => theme.colors.grayLight, ({ theme }) => theme.colors.gray);
59
49
  function LocalToggle({ type = "checkbox", ...props }, ref) {
60
50
  return /*#__PURE__*/ jsxs(StyledInputWrapper, {
61
51
  $fullWidth: props.$fullWidth,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cherry-styled-components",
3
- "version": "0.2.17",
3
+ "version": "0.2.19",
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",
@@ -28,7 +28,7 @@
28
28
  "homepage": "https://cherry.al",
29
29
  "repository": "https://github.com/cherry-design-system/styled-components",
30
30
  "license": "MIT",
31
- "packageManager": "pnpm@12.3.4",
31
+ "packageManager": "pnpm@12.4.1",
32
32
  "engines": {
33
33
  "node": ">=18.0.0"
34
34
  },
@@ -61,23 +61,23 @@
61
61
  "devDependencies": {
62
62
  "@swc/plugin-styled-components": "^14.0.0",
63
63
  "@types/node": "^26.4.1",
64
- "@types/react": "^19.2.18",
65
- "@types/react-dom": "^19.2.7",
64
+ "@types/react": "^19.3.0",
65
+ "@types/react-dom": "^19.3.0",
66
66
  "@typescript/typescript6": "^6.0.2",
67
67
  "@vitejs/plugin-react-swc": "^4.3.3",
68
68
  "eslint-plugin-react-hooks": "^7.1.1",
69
69
  "eslint-plugin-react-refresh": "^0.5.6",
70
- "lucide-react": "^1.41.0",
70
+ "lucide-react": "^1.44.0",
71
71
  "next": "^16.3.4",
72
72
  "playwright-core": "^1.63.0",
73
73
  "prettier": "^3.9.6",
74
- "react": "^19.2.8",
75
- "react-dom": "^19.2.8",
74
+ "react": "^19.3.0",
75
+ "react-dom": "^19.3.0",
76
76
  "rollup-plugin-preserve-directives": "^0.4.0",
77
77
  "sharp": "^0.35.4",
78
78
  "styled-components": "^6.5.3",
79
79
  "typescript": "^7.0.2",
80
- "vite": "^8.2.2",
80
+ "vite": "^8.3.0",
81
81
  "vite-plugin-dts": "^5.1.0"
82
82
  }
83
83
  }