cherry-styled-components 0.1.16 → 0.1.17

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.
Files changed (2) hide show
  1. package/dist/input.js +9 -9
  2. package/package.json +10 -10
package/dist/input.js CHANGED
@@ -8,16 +8,16 @@ import styled, { css } from "styled-components";
8
8
  //#region src/lib/input.tsx
9
9
  var StyledInputWrapper = styled.span.withConfig({
10
10
  displayName: "input__StyledInputWrapper",
11
- componentId: "sc-a617b4b1-0"
11
+ componentId: "sc-df1aa532-0"
12
12
  })([
13
13
  `display:inline-flex;flex-wrap:`,
14
14
  `;align-items:center;`,
15
15
  ` & .icon-calendar{position:absolute;top:50%;right:17px;left:initial;transform:translateY(-50%);pointer-events:none;width:24px;height:24px;@supports (-moz-appearance:none){display:none;}}`,
16
16
  ``
17
- ], ({ type }) => type === "checkbox" || type === "radio" ? "nowrap" : "wrap", ({ $label }) => $label && css([`gap:5px;align-items:flex-start;`]), ({ $fullWidth }) => fullWidthStyles($fullWidth));
17
+ ], ({ type }) => type === "checkbox" || type === "radio" ? "nowrap" : "wrap", ({ $label }) => $label && css([`gap:5px;align-items:flex-start;align-content:flex-start;`]), ({ $fullWidth }) => fullWidthStyles($fullWidth));
18
18
  var StyledLabel = styled.label.withConfig({
19
19
  displayName: "input__StyledLabel",
20
- componentId: "sc-a617b4b1-1"
20
+ componentId: "sc-df1aa532-1"
21
21
  })([
22
22
  `display:inline-block;color:`,
23
23
  `;font-size:`,
@@ -26,7 +26,7 @@ var StyledLabel = styled.label.withConfig({
26
26
  ], ({ theme }) => theme.colors.grayDark, ({ theme }) => theme.fontSizes.small.lg, ({ theme }) => theme.lineHeights.small.lg);
27
27
  var StyledInput = styled.input.withConfig({
28
28
  displayName: "input__StyledInput",
29
- componentId: "sc-a617b4b1-2"
29
+ componentId: "sc-df1aa532-2"
30
30
  })([
31
31
  ``,
32
32
  `;`,
@@ -35,7 +35,7 @@ var StyledInput = styled.input.withConfig({
35
35
  `;background:`,
36
36
  `;border:solid 2px `,
37
37
  `;box-shadow:0 0 0 0px `,
38
- `;transition:all 0.3s ease;word-break:keep-all;white-space:nowrap;display:inline-flex;&[type="date"],&[type="datetime-local"],&[type="month"],&[type="week"],&[type="time"]{padding:17px 45px 17px 15px;@supports (-moz-appearance:none){padding:13px 15px;}}&::-webkit-datetime-edit{padding:0;margin:0;vertical-align:middle;}&::-webkit-datetime-edit-fields-wrapper{padding:4px 0;margin:0;vertical-align:middle;}&::-webkit-calendar-picker-indicator{background:transparent;cursor:pointer;position:absolute;right:15px;top:50%;transform:translateY(-50%);width:24px;height:24px;}&::-webkit-datetime-edit-text{color:`,
38
+ `;transition:all 0.3s ease;word-break:keep-all;white-space:nowrap;display:inline-flex;&::-webkit-datetime-edit{padding:0;margin:0;vertical-align:middle;}&::-webkit-datetime-edit-fields-wrapper{padding:4px 0;margin:0;vertical-align:middle;}&::-webkit-calendar-picker-indicator{background:transparent;cursor:pointer;position:absolute;right:15px;top:50%;transform:translateY(-50%);width:24px;height:24px;}&::-webkit-datetime-edit-text{color:`,
39
39
  `;}&::-webkit-datetime-edit-month-field{&:focus{background:`,
40
40
  `;color:`,
41
41
  `;border-radius:4px;}}&::-webkit-datetime-edit-day-field{&:focus{background:`,
@@ -76,11 +76,11 @@ var StyledInput = styled.input.withConfig({
76
76
  `, ({ $fullWidth }) => fullWidthStyles($fullWidth));
77
77
  var StyledIconWrapper = styled.span.withConfig({
78
78
  displayName: "input__StyledIconWrapper",
79
- componentId: "sc-a617b4b1-3"
79
+ componentId: "sc-df1aa532-3"
80
80
  })([`display:inline-flex;position:relative;line-height:0;min-width:fit-content;& em{display:block;border-radius:50%;background:`, `;}& svg,& em{object-fit:contain;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) scale(0.7);opacity:0;pointer-events:none;transition:all 0.3s ease;}`], ({ theme }) => theme.colors.primary);
81
81
  var StyledRadioCheckboxInput = styled.input.withConfig({
82
82
  displayName: "input__StyledRadioCheckboxInput",
83
- componentId: "sc-a617b4b1-4"
83
+ componentId: "sc-df1aa532-4"
84
84
  })([
85
85
  ``,
86
86
  `;display:inline-block;background:`,
@@ -165,12 +165,12 @@ var StyledRadioCheckboxInput = styled.input.withConfig({
165
165
  });
166
166
  var StyledCustomIconWrapper = styled.span.withConfig({
167
167
  displayName: "input__StyledCustomIconWrapper",
168
- componentId: "sc-a617b4b1-5"
168
+ componentId: "sc-df1aa532-5"
169
169
  })([
170
170
  `position:relative;`,
171
171
  `;& svg{position:absolute;top:50%;transform:translateY(-50%);pointer-events:none;width:24px;height:24px;object-fit:contain;color:`,
172
172
  `;}`,
173
- ``
173
+ ` &:has(.icon-calendar) > input{padding-right:45px;@supports (-moz-appearance:none){padding-right:15px;}}`
174
174
  ], ({ $fullWidth }) => fullWidthStyles($fullWidth), ({ theme }) => theme.colors.primary, ({ $icon, $iconPosition }) => $icon && $iconPosition === "right" ? css([`& svg{right:16px;}& input{padding-right:50px;}`]) : css([`& svg{left:16px;}& svg ~ input{padding-left:50px;}`]));
175
175
  function LocalInput({ ...props }, ref) {
176
176
  if (props.type === "checkbox" || props.type === "radio") return /* @__PURE__ */ jsxs(StyledInputWrapper, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cherry-styled-components",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
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",
@@ -41,7 +41,7 @@
41
41
  "format": "prettier --write ."
42
42
  },
43
43
  "dependencies": {
44
- "lucide-react": "^1.7.0",
44
+ "lucide-react": "^1.8.0",
45
45
  "polished": "^4.3.1"
46
46
  },
47
47
  "peerDependencies": {
@@ -50,21 +50,21 @@
50
50
  "styled-components": "^6.0.0"
51
51
  },
52
52
  "devDependencies": {
53
- "@swc/plugin-styled-components": "^12.7.0",
54
- "@types/node": "^25.5.0",
53
+ "@swc/plugin-styled-components": "^12.8.0",
54
+ "@types/node": "^25.6.0",
55
55
  "@types/react": "^19.2.14",
56
56
  "@types/react-dom": "^19.2.3",
57
57
  "@vitejs/plugin-react-swc": "^4.3.0",
58
58
  "eslint-plugin-react-hooks": "^7.0.1",
59
59
  "eslint-plugin-react-refresh": "^0.5.2",
60
- "next": "^16.2.1",
61
- "prettier": "^3.8.1",
62
- "react": "^19.2.4",
63
- "react-dom": "^19.2.4",
60
+ "next": "^16.2.3",
61
+ "prettier": "^3.8.2",
62
+ "react": "^19.2.5",
63
+ "react-dom": "^19.2.5",
64
64
  "rollup-plugin-preserve-directives": "^0.4.0",
65
- "styled-components": "^6.3.12",
65
+ "styled-components": "^6.4.0",
66
66
  "typescript": "^6.0.2",
67
- "vite": "^8.0.3",
67
+ "vite": "^8.0.8",
68
68
  "vite-plugin-dts": "^4.5.4"
69
69
  }
70
70
  }