cherry-styled-components 0.2.8 → 0.2.9

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/input.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { IStyledComponent } from 'styled-components';
3
3
  export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
4
- children?: React.ReactNode;
5
4
  $wrapperClassName?: string;
6
5
  $label?: string;
7
6
  $size?: "default" | "big" | "small";
package/dist/input.js CHANGED
@@ -8,7 +8,7 @@ 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-5e52a0cd-0"
11
+ componentId: "sc-9415f689-0"
12
12
  })([
13
13
  `display:inline-flex;flex-wrap:`,
14
14
  `;align-items:center;`,
@@ -20,7 +20,7 @@ var StyledInputWrapper = styled.span.withConfig({
20
20
  ], ({ type }) => type === "checkbox" || type === "radio" ? "nowrap" : "wrap", ({ $label }) => $label && css([`gap:5px;align-items:flex-start;align-content:flex-start;`]), ({ $size }) => $size === "small" ? "14px" : "17px", ({ $size }) => $size === "small" ? "18px" : "24px", ({ $size }) => $size === "small" ? "18px" : "24px", ({ $fullWidth }) => fullWidthStyles($fullWidth));
21
21
  var StyledLabel = styled.label.withConfig({
22
22
  displayName: "input__StyledLabel",
23
- componentId: "sc-5e52a0cd-1"
23
+ componentId: "sc-9415f689-1"
24
24
  })([
25
25
  `display:inline-block;color:`,
26
26
  `;font-size:`,
@@ -29,7 +29,7 @@ var StyledLabel = styled.label.withConfig({
29
29
  ], ({ theme }) => theme.colors.grayDark, ({ theme }) => theme.fontSizes.small.lg, ({ theme }) => theme.lineHeights.small.lg);
30
30
  var StyledInput = styled.input.withConfig({
31
31
  displayName: "input__StyledInput",
32
- componentId: "sc-5e52a0cd-2"
32
+ componentId: "sc-9415f689-2"
33
33
  })([
34
34
  ``,
35
35
  `;`,
@@ -85,11 +85,11 @@ var StyledInput = styled.input.withConfig({
85
85
  `, ({ $fullWidth }) => fullWidthStyles($fullWidth));
86
86
  var StyledIconWrapper = styled.span.withConfig({
87
87
  displayName: "input__StyledIconWrapper",
88
- componentId: "sc-5e52a0cd-3"
88
+ componentId: "sc-9415f689-3"
89
89
  })([`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);
90
90
  var StyledRadioCheckboxInput = styled.input.withConfig({
91
91
  displayName: "input__StyledRadioCheckboxInput",
92
- componentId: "sc-5e52a0cd-4"
92
+ componentId: "sc-9415f689-4"
93
93
  })([
94
94
  ``,
95
95
  `;display:inline-block;background:`,
@@ -174,7 +174,7 @@ var StyledRadioCheckboxInput = styled.input.withConfig({
174
174
  });
175
175
  var StyledCustomIconWrapper = styled.span.withConfig({
176
176
  displayName: "input__StyledCustomIconWrapper",
177
- componentId: "sc-5e52a0cd-5"
177
+ componentId: "sc-9415f689-5"
178
178
  })([
179
179
  `position:relative;`,
180
180
  `;& svg{position:absolute;top:50%;transform:translateY(-50%);pointer-events:none;width:24px;height:24px;object-fit:contain;color:`,
@@ -6,8 +6,10 @@ var GlobalStyles = (theme) => createGlobalStyle([
6
6
  `html,body{margin:0;padding:0;min-height:100%;scroll-behavior:smooth;background-color:`,
7
7
  `;}body{font-family:"Inter",sans-serif;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%;-webkit-font-smoothing:antialiased;}*{box-sizing:border-box;min-width:0;}pre,code,kbd,samp{font-family:monospace,monospace;}pre,code,kbd,samp,blockquote,p,a,h1,h2,h3,h4,h5,h6,ul li,ol li{margin:0;padding:0;color:`,
8
8
  `;}a{color:`,
9
+ `;}a:focus-visible{outline:none;border-radius:`,
10
+ `;box-shadow:0 0 0 2px `,
9
11
  `;}ol,ul{list-style:none;margin:0;padding:0;}figure{margin:0;}fieldset{appearance:none;border:none;}button,input,a,img,svg,svg *{transition:all 0.3s ease;}strong,b{font-weight:700;}hr{margin:20px 0;border:none;border-bottom:1px solid `,
10
12
  `;}`
11
- ], theme.colors.light, theme.colors.dark, theme.isDark ? theme.colors.dark : theme.colors.primary, theme.colors.grayLight);
13
+ ], theme.colors.light, theme.colors.dark, theme.isDark ? theme.colors.dark : theme.colors.primary, theme.spacing.radius.xs, theme.colors.primaryLight, theme.colors.grayLight);
12
14
  //#endregion
13
15
  export { GlobalStyles };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cherry-styled-components",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
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",