cherry-styled-components 0.1.0-9 → 0.1.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/.claude/settings.local.json +7 -0
- package/.prettierrc +9 -9
- package/.supermaven/config.json +1 -0
- package/README.md +1 -1
- package/dist/App.d.ts +0 -1
- package/dist/cherry.js +4066 -2890
- package/dist/cherry.umd.cjs +916 -791
- package/dist/lib/box.d.ts +3 -3
- package/dist/lib/button.d.ts +6 -4
- package/dist/lib/col.d.ts +3 -3
- package/dist/lib/container.d.ts +3 -3
- package/dist/lib/flex.d.ts +5 -3
- package/dist/lib/grid.d.ts +3 -3
- package/dist/lib/index.d.ts +15 -15
- package/dist/lib/input.d.ts +16 -5
- package/dist/lib/max-width.d.ts +3 -2
- package/dist/lib/range.d.ts +3 -3
- package/dist/lib/select.d.ts +5 -4
- package/dist/lib/space.d.ts +2 -2
- package/dist/lib/styled-components/index.d.ts +2 -2
- package/dist/lib/styled-components/registry.d.ts +1 -1
- package/dist/lib/styled-components/theme-provider.d.ts +10 -4
- package/dist/lib/textarea.d.ts +4 -3
- package/dist/lib/toggle.d.ts +3 -3
- package/dist/lib/utils/global.d.ts +2 -2
- package/dist/lib/utils/icons.d.ts +6 -10
- package/dist/lib/utils/index.d.ts +5 -5
- package/dist/lib/utils/mixins.d.ts +11 -11
- package/dist/lib/utils/theme.d.ts +4 -0
- package/dist/lib/utils/typography.d.ts +19 -19
- package/dist/toggle-theme.d.ts +3 -0
- package/package.json +17 -15
- package/pnpm-workspace.yaml +3 -0
- package/src/App.tsx +80 -93
- package/src/lib/box.tsx +26 -21
- package/src/lib/button.tsx +162 -159
- package/src/lib/col.tsx +45 -43
- package/src/lib/container.tsx +59 -64
- package/src/lib/flex.tsx +92 -95
- package/src/lib/grid.tsx +64 -70
- package/src/lib/index.ts +15 -15
- package/src/lib/input.tsx +384 -267
- package/src/lib/max-width.tsx +50 -43
- package/src/lib/range.tsx +208 -226
- package/src/lib/select.tsx +121 -131
- package/src/lib/space.tsx +52 -54
- package/src/lib/styled-components/index.ts +2 -2
- package/src/lib/styled-components/registry.tsx +26 -26
- package/src/lib/styled-components/theme-provider.tsx +49 -21
- package/src/lib/textarea.tsx +94 -103
- package/src/lib/toggle.tsx +147 -160
- package/src/lib/utils/global.tsx +95 -79
- package/src/lib/utils/icons.tsx +84 -170
- package/src/lib/utils/index.ts +5 -5
- package/src/lib/utils/mixins.tsx +95 -108
- package/src/lib/utils/theme.ts +289 -242
- package/src/lib/utils/typography.tsx +204 -204
- package/src/main.tsx +14 -14
- package/src/toggle-theme.tsx +25 -0
- package/src/vite-env.d.ts +8 -1
package/dist/lib/box.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { ContainerProps } from
|
|
3
|
-
declare
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ContainerProps } from './container';
|
|
3
|
+
declare const Box: React.ForwardRefExoticComponent<ContainerProps & React.RefAttributes<HTMLDivElement>>;
|
|
4
4
|
export { Box };
|
package/dist/lib/button.d.ts
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { Theme } from
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Theme } from './utils';
|
|
3
3
|
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
4
|
children?: React.ReactNode;
|
|
5
5
|
$variant?: "primary" | "secondary" | "tertiary";
|
|
6
6
|
$size?: "default" | "big";
|
|
7
7
|
$outline?: boolean;
|
|
8
8
|
$fullWidth?: boolean;
|
|
9
|
+
$icon?: React.ReactNode;
|
|
10
|
+
$iconPosition?: "left" | "right";
|
|
9
11
|
theme?: Theme;
|
|
10
12
|
}
|
|
11
|
-
export declare const buttonStyles: (theme: Theme, $variant?: "primary" | "secondary" | "tertiary", $size?: "default" | "big", $outline?: boolean, $fullWidth?: boolean, disabled?: boolean) => import(
|
|
12
|
-
declare
|
|
13
|
+
export declare const buttonStyles: (theme: Theme, $variant?: "primary" | "secondary" | "tertiary", $size?: "default" | "big", $outline?: boolean, $fullWidth?: boolean, disabled?: boolean) => import('styled-components').RuleSet<object>;
|
|
14
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
13
15
|
export { Button };
|
package/dist/lib/col.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { Theme } from
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Theme } from './utils';
|
|
3
3
|
interface ColProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
4
|
children?: React.ReactNode;
|
|
5
5
|
$span?: number;
|
|
@@ -12,5 +12,5 @@ interface ColProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
12
12
|
$xxxlSpan?: number;
|
|
13
13
|
theme?: Theme;
|
|
14
14
|
}
|
|
15
|
-
declare
|
|
15
|
+
declare const Col: React.ForwardRefExoticComponent<ColProps & React.RefAttributes<HTMLDivElement>>;
|
|
16
16
|
export { Col };
|
package/dist/lib/container.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { Theme } from
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Theme } from './utils';
|
|
3
3
|
export interface ContainerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
4
|
className?: string;
|
|
5
5
|
children?: React.ReactNode;
|
|
@@ -15,5 +15,5 @@ export interface ContainerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
15
15
|
$xxxlPadding?: number | "none";
|
|
16
16
|
theme?: Theme;
|
|
17
17
|
}
|
|
18
|
-
declare
|
|
18
|
+
declare const Container: React.ForwardRefExoticComponent<ContainerProps & React.RefAttributes<HTMLDivElement>>;
|
|
19
19
|
export { Container };
|
package/dist/lib/flex.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { Theme } from
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Theme } from './utils';
|
|
3
3
|
type JustifyContentType = "center" | "flex-start" | "flex-end" | "space-between" | "space-around" | "space-evenly";
|
|
4
4
|
type GapType = number | "none";
|
|
5
5
|
interface FlexProps extends React.AllHTMLAttributes<FlexProps> {
|
|
@@ -21,7 +21,9 @@ interface FlexProps extends React.AllHTMLAttributes<FlexProps> {
|
|
|
21
21
|
$xlGap?: GapType;
|
|
22
22
|
$xxlGap?: GapType;
|
|
23
23
|
$xxxlGap?: GapType;
|
|
24
|
+
$direction?: "row" | "column" | "row-reverse" | "column-reverse";
|
|
25
|
+
$fullWidth?: boolean;
|
|
24
26
|
theme?: Theme;
|
|
25
27
|
}
|
|
26
|
-
declare
|
|
28
|
+
declare const Flex: React.ForwardRefExoticComponent<FlexProps & React.RefAttributes<HTMLDivElement>>;
|
|
27
29
|
export { Flex };
|
package/dist/lib/grid.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { Theme } from
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Theme } from './utils';
|
|
3
3
|
interface GridProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
4
|
children?: React.ReactNode;
|
|
5
5
|
$gap?: number | "none";
|
|
@@ -20,5 +20,5 @@ interface GridProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
20
20
|
$xxxlCols?: number;
|
|
21
21
|
theme?: Theme;
|
|
22
22
|
}
|
|
23
|
-
declare
|
|
23
|
+
declare const Grid: React.ForwardRefExoticComponent<GridProps & React.RefAttributes<HTMLDivElement>>;
|
|
24
24
|
export { Grid };
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
14
|
-
export * from
|
|
15
|
-
export * from
|
|
1
|
+
export * from './styled-components';
|
|
2
|
+
export * from './utils';
|
|
3
|
+
export * from './box';
|
|
4
|
+
export * from './button';
|
|
5
|
+
export * from './col';
|
|
6
|
+
export * from './container';
|
|
7
|
+
export * from './flex';
|
|
8
|
+
export * from './grid';
|
|
9
|
+
export * from './input';
|
|
10
|
+
export * from './max-width';
|
|
11
|
+
export * from './range';
|
|
12
|
+
export * from './select';
|
|
13
|
+
export * from './space';
|
|
14
|
+
export * from './textarea';
|
|
15
|
+
export * from './toggle';
|
package/dist/lib/input.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import {
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IStyledComponent } from 'styled-components';
|
|
3
|
+
import { Theme } from './utils';
|
|
3
4
|
interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
4
5
|
children?: React.ReactNode;
|
|
5
6
|
$label?: string;
|
|
@@ -7,9 +8,19 @@ interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
|
7
8
|
$error?: boolean;
|
|
8
9
|
$success?: boolean;
|
|
9
10
|
$fullWidth?: boolean;
|
|
11
|
+
$icon?: React.ReactNode;
|
|
12
|
+
$iconPosition?: "left" | "right";
|
|
10
13
|
theme?: Theme;
|
|
11
14
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
+
interface LabelProps extends React.LabelHTMLAttributes<HTMLLabelElement> {
|
|
16
|
+
$label?: string;
|
|
17
|
+
$size?: "default" | "big";
|
|
18
|
+
$error?: boolean;
|
|
19
|
+
$success?: boolean;
|
|
20
|
+
$fullWidth?: boolean;
|
|
21
|
+
theme?: Theme;
|
|
22
|
+
}
|
|
23
|
+
export declare const StyledInputWrapper: IStyledComponent<"web", React.HTMLAttributes<HTMLSpanElement> & Pick<InputProps, "$label" | "$fullWidth" | "type">>;
|
|
24
|
+
export declare const StyledLabel: IStyledComponent<"web", LabelProps>;
|
|
25
|
+
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
15
26
|
export { Input };
|
package/dist/lib/max-width.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import { default as React } from 'react';
|
|
2
2
|
interface MaxWidthProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
3
|
$size?: number;
|
|
4
4
|
$xs?: number;
|
|
@@ -8,6 +8,7 @@ interface MaxWidthProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
8
8
|
$xl?: number;
|
|
9
9
|
$xxl?: number;
|
|
10
10
|
$xxxl?: number;
|
|
11
|
+
$m0?: boolean;
|
|
11
12
|
}
|
|
12
|
-
declare
|
|
13
|
+
declare const MaxWidth: React.ForwardRefExoticComponent<MaxWidthProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
14
|
export { MaxWidth };
|
package/dist/lib/range.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { Theme } from
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Theme } from './utils';
|
|
3
3
|
interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
4
4
|
className?: string;
|
|
5
5
|
$label?: string;
|
|
@@ -9,5 +9,5 @@ interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "
|
|
|
9
9
|
$fullWidth?: boolean;
|
|
10
10
|
theme?: Theme;
|
|
11
11
|
}
|
|
12
|
-
declare
|
|
12
|
+
declare const Range: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
13
13
|
export { Range };
|
package/dist/lib/select.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import {
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IStyledComponent } from 'styled-components';
|
|
3
|
+
import { Theme } from './utils';
|
|
3
4
|
interface SelectProps extends React.InputHTMLAttributes<HTMLSelectElement> {
|
|
4
5
|
children?: React.ReactNode;
|
|
5
6
|
$label?: string;
|
|
@@ -9,6 +10,6 @@ interface SelectProps extends React.InputHTMLAttributes<HTMLSelectElement> {
|
|
|
9
10
|
$fullWidth?: boolean;
|
|
10
11
|
theme?: Theme;
|
|
11
12
|
}
|
|
12
|
-
export declare const StyledIconWrapper:
|
|
13
|
-
declare
|
|
13
|
+
export declare const StyledIconWrapper: IStyledComponent<"web", SelectProps>;
|
|
14
|
+
declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLSelectElement>>;
|
|
14
15
|
export { Select };
|
package/dist/lib/space.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import { default as React } from 'react';
|
|
2
2
|
interface SpaceProps {
|
|
3
3
|
$size?: number | "none";
|
|
4
4
|
$xs?: number | "none";
|
|
@@ -10,5 +10,5 @@ interface SpaceProps {
|
|
|
10
10
|
$xxxl?: number | "none";
|
|
11
11
|
$horizontal?: boolean;
|
|
12
12
|
}
|
|
13
|
-
declare
|
|
13
|
+
declare const Space: React.ForwardRefExoticComponent<SpaceProps & React.RefAttributes<HTMLSpanElement>>;
|
|
14
14
|
export { Space };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from './registry';
|
|
2
|
+
export * from './theme-provider';
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Theme } from '../utils';
|
|
3
|
+
interface ThemeContextProps {
|
|
4
|
+
setTheme: any;
|
|
5
|
+
}
|
|
6
|
+
export declare const ThemeContext: React.Context<ThemeContextProps>;
|
|
7
|
+
declare function CherryThemeProvider({ children, theme, themeDark, }: {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
theme: Theme;
|
|
10
|
+
themeDark?: Theme;
|
|
5
11
|
}): React.JSX.Element;
|
|
6
12
|
export { CherryThemeProvider };
|
package/dist/lib/textarea.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { Theme } from
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Theme } from './utils';
|
|
3
3
|
interface TextareaProps extends Omit<React.InputHTMLAttributes<HTMLTextAreaElement>, "size"> {
|
|
4
4
|
children?: React.ReactNode;
|
|
5
5
|
$label?: string;
|
|
@@ -8,6 +8,7 @@ interface TextareaProps extends Omit<React.InputHTMLAttributes<HTMLTextAreaEleme
|
|
|
8
8
|
$success?: boolean;
|
|
9
9
|
$fullWidth?: boolean;
|
|
10
10
|
theme?: Theme;
|
|
11
|
+
rows?: number;
|
|
11
12
|
}
|
|
12
|
-
declare
|
|
13
|
+
declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
13
14
|
export { Textarea };
|
package/dist/lib/toggle.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { Theme } from
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Theme } from './utils';
|
|
3
3
|
interface ToggleProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
4
4
|
children?: React.ReactNode;
|
|
5
5
|
type?: "checkbox" | "radio";
|
|
@@ -10,5 +10,5 @@ interface ToggleProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
|
10
10
|
$fullWidth?: boolean;
|
|
11
11
|
theme?: Theme;
|
|
12
12
|
}
|
|
13
|
-
declare
|
|
13
|
+
declare const Toggle: React.ForwardRefExoticComponent<ToggleProps & React.RefAttributes<HTMLInputElement>>;
|
|
14
14
|
export { Toggle };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const GlobalStyles: import(
|
|
1
|
+
import { Theme } from './theme';
|
|
2
|
+
declare const GlobalStyles: (theme: Theme) => import('react').NamedExoticComponent<import('styled-components').ExecutionProps & object>;
|
|
3
3
|
export { GlobalStyles };
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { Theme } from
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Theme } from './theme';
|
|
3
3
|
interface IconProps extends React.SVGProps<SVGSVGElement> {
|
|
4
4
|
theme?: Theme;
|
|
5
5
|
}
|
|
6
|
-
declare function IconCheck({
|
|
7
|
-
declare function IconArrow({
|
|
8
|
-
declare function
|
|
9
|
-
|
|
10
|
-
declare function IconDribbble({ theme, ...props }: IconProps): React.JSX.Element;
|
|
11
|
-
declare function IconThreads({ theme, ...props }: IconProps): React.JSX.Element;
|
|
12
|
-
declare function IconFigma({ theme, className, ...props }: IconProps): React.JSX.Element;
|
|
13
|
-
export { IconCheck, IconArrow, IconGitHub, IconDiscord, IconDribbble, IconThreads, IconFigma, };
|
|
6
|
+
declare function IconCheck({ ...props }: IconProps): React.JSX.Element;
|
|
7
|
+
declare function IconArrow({ ...props }: IconProps): React.JSX.Element;
|
|
8
|
+
declare function IconCalendar({ ...props }: IconProps): React.JSX.Element;
|
|
9
|
+
export { IconCheck, IconArrow, IconCalendar };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
1
|
+
export * from './global';
|
|
2
|
+
export * from './icons';
|
|
3
|
+
export * from './mixins';
|
|
4
|
+
export * from './theme';
|
|
5
|
+
export * from './typography';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Breakpoints, Theme } from
|
|
2
|
-
export declare const resetButton: import(
|
|
3
|
-
export declare const resetInput: import(
|
|
4
|
-
export declare const fullWidthStyles: (fullWidth: boolean) => import(
|
|
5
|
-
export declare const statusBorderStyles: ($error: boolean, $success: boolean, theme: Theme) => import(
|
|
6
|
-
export declare const formElementHeightStyles: ($size?: "default" | "big") => import(
|
|
7
|
-
export declare const generateGapStyles: (size: keyof Breakpoints<number>, gap: number | "none") => import(
|
|
8
|
-
export declare const generateColsStyles: (size: keyof Breakpoints<number>, cols: number) => import(
|
|
9
|
-
export declare const generateColSpanStyles: (size: keyof Breakpoints<number>, span: number) => import(
|
|
10
|
-
export declare const generatePaddingStyles: (size: keyof Breakpoints<number>, padding: number | "none") => import(
|
|
11
|
-
export declare const generateJustifyContentStyles: (size: keyof Breakpoints<number>, justifyContent?: "center" | "flex-start" | "flex-end" | "space-between" | "space-around" | "space-evenly") => import(
|
|
1
|
+
import { Breakpoints, Theme } from './theme';
|
|
2
|
+
export declare const resetButton: import('styled-components').RuleSet<object>;
|
|
3
|
+
export declare const resetInput: import('styled-components').RuleSet<object>;
|
|
4
|
+
export declare const fullWidthStyles: (fullWidth: boolean) => import('styled-components').RuleSet<object> | undefined;
|
|
5
|
+
export declare const statusBorderStyles: ($error: boolean, $success: boolean, theme: Theme) => import('styled-components').RuleSet<object> | undefined;
|
|
6
|
+
export declare const formElementHeightStyles: ($size?: "default" | "big") => import('styled-components').RuleSet<object>;
|
|
7
|
+
export declare const generateGapStyles: (size: keyof Breakpoints<number>, gap: number | "none") => import('styled-components').RuleSet<object>;
|
|
8
|
+
export declare const generateColsStyles: (size: keyof Breakpoints<number>, cols: number) => import('styled-components').RuleSet<object>;
|
|
9
|
+
export declare const generateColSpanStyles: (size: keyof Breakpoints<number>, span: number) => import('styled-components').RuleSet<object>;
|
|
10
|
+
export declare const generatePaddingStyles: (size: keyof Breakpoints<number>, padding: number | "none") => import('styled-components').RuleSet<object>;
|
|
11
|
+
export declare const generateJustifyContentStyles: (size: keyof Breakpoints<number>, justifyContent?: "center" | "flex-start" | "flex-end" | "space-between" | "space-around" | "space-evenly") => import('styled-components').RuleSet<object>;
|
|
@@ -2,11 +2,14 @@ export declare const breakpoints: Breakpoints;
|
|
|
2
2
|
export declare function mq(minWidth: keyof Breakpoints): string;
|
|
3
3
|
export declare const spacing: Spacing;
|
|
4
4
|
export declare const colors: Colors;
|
|
5
|
+
export declare const colorsDark: Colors;
|
|
5
6
|
export declare const shadows: Shadows;
|
|
7
|
+
export declare const shadowsDark: Shadows;
|
|
6
8
|
export declare const fonts: Fonts;
|
|
7
9
|
export declare const fontSizes: FontSizes;
|
|
8
10
|
export declare const lineHeights: LineHeights;
|
|
9
11
|
export declare const theme: Theme;
|
|
12
|
+
export declare const themeDark: Theme;
|
|
10
13
|
export interface Breakpoints<TNumber = number> {
|
|
11
14
|
xs: TNumber;
|
|
12
15
|
sm: TNumber;
|
|
@@ -223,5 +226,6 @@ export interface Theme {
|
|
|
223
226
|
fonts: Fonts;
|
|
224
227
|
fontSizes: FontSizes;
|
|
225
228
|
lineHeights: LineHeights;
|
|
229
|
+
isDark: boolean;
|
|
226
230
|
}
|
|
227
231
|
export {};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { Theme } from
|
|
2
|
-
declare const styledHero1: (theme: Theme) => import(
|
|
3
|
-
declare const styledHero2: (theme: Theme) => import(
|
|
4
|
-
declare const styledHero3: (theme: Theme) => import(
|
|
5
|
-
declare const styledH1: (theme: Theme) => import(
|
|
6
|
-
declare const styledH2: (theme: Theme) => import(
|
|
7
|
-
declare const styledH3: (theme: Theme) => import(
|
|
8
|
-
declare const styledH4: (theme: Theme) => import(
|
|
9
|
-
declare const styledH5: (theme: Theme) => import(
|
|
10
|
-
declare const styledH6: (theme: Theme) => import(
|
|
11
|
-
declare const styledText: (theme: Theme) => import(
|
|
12
|
-
declare const styledStrong: (theme: Theme) => import(
|
|
13
|
-
declare const styledSmall: (theme: Theme) => import(
|
|
14
|
-
declare const styledBlockquote: (theme: Theme) => import(
|
|
15
|
-
declare const styledCode: (theme: Theme) => import(
|
|
16
|
-
declare const styledButton: (theme: Theme) => import(
|
|
17
|
-
declare const styledButtonBig: (theme: Theme) => import(
|
|
18
|
-
declare const styledInput: (theme: Theme) => import(
|
|
19
|
-
declare const styledInputBig: (theme: Theme) => import(
|
|
1
|
+
import { Theme } from './theme';
|
|
2
|
+
declare const styledHero1: (theme: Theme) => import('styled-components').RuleSet<object>;
|
|
3
|
+
declare const styledHero2: (theme: Theme) => import('styled-components').RuleSet<object>;
|
|
4
|
+
declare const styledHero3: (theme: Theme) => import('styled-components').RuleSet<object>;
|
|
5
|
+
declare const styledH1: (theme: Theme) => import('styled-components').RuleSet<object>;
|
|
6
|
+
declare const styledH2: (theme: Theme) => import('styled-components').RuleSet<object>;
|
|
7
|
+
declare const styledH3: (theme: Theme) => import('styled-components').RuleSet<object>;
|
|
8
|
+
declare const styledH4: (theme: Theme) => import('styled-components').RuleSet<object>;
|
|
9
|
+
declare const styledH5: (theme: Theme) => import('styled-components').RuleSet<object>;
|
|
10
|
+
declare const styledH6: (theme: Theme) => import('styled-components').RuleSet<object>;
|
|
11
|
+
declare const styledText: (theme: Theme) => import('styled-components').RuleSet<object>;
|
|
12
|
+
declare const styledStrong: (theme: Theme) => import('styled-components').RuleSet<object>;
|
|
13
|
+
declare const styledSmall: (theme: Theme) => import('styled-components').RuleSet<object>;
|
|
14
|
+
declare const styledBlockquote: (theme: Theme) => import('styled-components').RuleSet<object>;
|
|
15
|
+
declare const styledCode: (theme: Theme) => import('styled-components').RuleSet<object>;
|
|
16
|
+
declare const styledButton: (theme: Theme) => import('styled-components').RuleSet<object>;
|
|
17
|
+
declare const styledButtonBig: (theme: Theme) => import('styled-components').RuleSet<object>;
|
|
18
|
+
declare const styledInput: (theme: Theme) => import('styled-components').RuleSet<object>;
|
|
19
|
+
declare const styledInputBig: (theme: Theme) => import('styled-components').RuleSet<object>;
|
|
20
20
|
export { styledHero1, styledHero2, styledHero3, styledH1, styledH2, styledH3, styledH4, styledH5, styledH6, styledText, styledStrong, styledSmall, styledBlockquote, styledCode, styledButton, styledButtonBig, styledInput, styledInputBig, };
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cherry-styled-components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Cherry is a design system for the modern web. Designed in Figma, built in React using Typescript.",
|
|
4
5
|
"private": false,
|
|
5
6
|
"type": "module",
|
|
6
7
|
"main": "./dist/cherry.umd.cjs",
|
|
@@ -13,7 +14,9 @@
|
|
|
13
14
|
"keywords": [
|
|
14
15
|
"cherry",
|
|
15
16
|
"react",
|
|
17
|
+
"figma",
|
|
16
18
|
"components",
|
|
19
|
+
"ui",
|
|
17
20
|
"css",
|
|
18
21
|
"framework",
|
|
19
22
|
"design",
|
|
@@ -26,23 +29,22 @@
|
|
|
26
29
|
"format": "prettier --write \"./src/**/*.{js,json,ts,tsx}\" \"!.node_modules/**\""
|
|
27
30
|
},
|
|
28
31
|
"dependencies": {
|
|
29
|
-
"react": "^
|
|
30
|
-
"react-dom": "^
|
|
32
|
+
"react": "^19",
|
|
33
|
+
"react-dom": "^19"
|
|
31
34
|
},
|
|
32
35
|
"devDependencies": {
|
|
33
|
-
"@types/node": "^
|
|
34
|
-
"@types/react": "^
|
|
35
|
-
"@types/react-dom": "^
|
|
36
|
-
"@vitejs/plugin-react": "^
|
|
37
|
-
"eslint": "^
|
|
38
|
-
"eslint-plugin-react-
|
|
39
|
-
"
|
|
40
|
-
"next": "^14.1.3",
|
|
36
|
+
"@types/node": "^25",
|
|
37
|
+
"@types/react": "^19",
|
|
38
|
+
"@types/react-dom": "^19",
|
|
39
|
+
"@vitejs/plugin-react": "^5.1.3",
|
|
40
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
41
|
+
"eslint-plugin-react-refresh": "^0.5.0",
|
|
42
|
+
"next": "^16.1.6",
|
|
41
43
|
"polished": "^4.3.1",
|
|
42
|
-
"prettier": "^3.
|
|
43
|
-
"styled-components": "^6.
|
|
44
|
+
"prettier": "^3.8.1",
|
|
45
|
+
"styled-components": "^6.3.8",
|
|
44
46
|
"typescript": "^5",
|
|
45
|
-
"vite": "^
|
|
46
|
-
"vite-plugin-dts": "^
|
|
47
|
+
"vite": "^7.3.1",
|
|
48
|
+
"vite-plugin-dts": "^4.5.4"
|
|
47
49
|
}
|
|
48
50
|
}
|