cherry-styled-components 0.1.13 → 0.1.14
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/box.js +20 -11
- package/dist/button.js +80 -150
- package/dist/col.js +26 -18
- package/dist/container.js +32 -30
- package/dist/flex.js +39 -34
- package/dist/grid.js +36 -33
- package/dist/icon.js +14 -23
- package/dist/index.js +9 -76
- package/dist/input.js +136 -312
- package/dist/max-width.js +41 -26
- package/dist/range.js +74 -141
- package/dist/select.js +56 -100
- package/dist/space.js +38 -24
- package/dist/styled-components/registry.js +17 -19
- package/dist/styled-components/theme-provider.js +27 -31
- package/dist/textarea.js +49 -73
- package/dist/toggle.js +66 -121
- package/dist/utils/global.js +11 -92
- package/dist/utils/icons.js +66 -77
- package/dist/utils/mixins.js +41 -83
- package/dist/utils/theme.js +265 -142
- package/dist/utils/typography.js +31 -49
- package/package.json +10 -9
- /package/dist/{App.d.ts → src/App.d.ts} +0 -0
- /package/dist/{lib → src/lib}/box.d.ts +0 -0
- /package/dist/{lib → src/lib}/button.d.ts +0 -0
- /package/dist/{lib → src/lib}/col.d.ts +0 -0
- /package/dist/{lib → src/lib}/container.d.ts +0 -0
- /package/dist/{lib → src/lib}/flex.d.ts +0 -0
- /package/dist/{lib → src/lib}/grid.d.ts +0 -0
- /package/dist/{lib → src/lib}/icon.d.ts +0 -0
- /package/dist/{lib → src/lib}/index.d.ts +0 -0
- /package/dist/{lib → src/lib}/input.d.ts +0 -0
- /package/dist/{lib → src/lib}/max-width.d.ts +0 -0
- /package/dist/{lib → src/lib}/range.d.ts +0 -0
- /package/dist/{lib → src/lib}/select.d.ts +0 -0
- /package/dist/{lib → src/lib}/space.d.ts +0 -0
- /package/dist/{lib → src/lib}/styled-components/index.d.ts +0 -0
- /package/dist/{lib → src/lib}/styled-components/registry.d.ts +0 -0
- /package/dist/{lib → src/lib}/styled-components/theme-provider.d.ts +0 -0
- /package/dist/{lib → src/lib}/textarea.d.ts +0 -0
- /package/dist/{lib → src/lib}/toggle.d.ts +0 -0
- /package/dist/{lib → src/lib}/utils/global.d.ts +0 -0
- /package/dist/{lib → src/lib}/utils/icons.d.ts +0 -0
- /package/dist/{lib → src/lib}/utils/index.d.ts +0 -0
- /package/dist/{lib → src/lib}/utils/mixins.d.ts +0 -0
- /package/dist/{lib → src/lib}/utils/theme.d.ts +0 -0
- /package/dist/{lib → src/lib}/utils/typography.d.ts +0 -0
- /package/dist/{main.d.ts → src/main.d.ts} +0 -0
- /package/dist/{toggle-theme.d.ts → src/toggle-theme.d.ts} +0 -0
package/dist/box.js
CHANGED
|
@@ -1,17 +1,26 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
import { Container } from "./container.js";
|
|
2
4
|
import { jsx } from "react/jsx-runtime";
|
|
3
5
|
import { forwardRef } from "react";
|
|
4
6
|
import styled from "styled-components";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
//#region src/lib/box.tsx
|
|
8
|
+
var StyledBox = styled(Container).withConfig({
|
|
9
|
+
displayName: "box__StyledBox",
|
|
10
|
+
componentId: "sc-3e07b0c8-0"
|
|
11
|
+
})([
|
|
12
|
+
`background:`,
|
|
13
|
+
`;border-radius:`,
|
|
14
|
+
`;border:solid 1px `,
|
|
15
|
+
`;`
|
|
16
|
+
], ({ theme }) => theme.colors.light, ({ theme }) => theme.spacing.radius.lg, ({ theme }) => theme.colors.grayLight);
|
|
11
17
|
function LocalBox({ ...props }, ref) {
|
|
12
|
-
|
|
18
|
+
return /* @__PURE__ */ jsx(StyledBox, {
|
|
19
|
+
...props,
|
|
20
|
+
ref,
|
|
21
|
+
children: props.children
|
|
22
|
+
});
|
|
13
23
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
};
|
|
24
|
+
var Box = /* @__PURE__ */ forwardRef(LocalBox);
|
|
25
|
+
//#endregion
|
|
26
|
+
export { Box };
|
package/dist/button.js
CHANGED
|
@@ -1,167 +1,97 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
import { formElementHeightStyles, resetButton } from "./utils/mixins.js";
|
|
2
4
|
import { jsxs } from "react/jsx-runtime";
|
|
3
5
|
import { forwardRef } from "react";
|
|
4
6
|
import styled, { css } from "styled-components";
|
|
5
7
|
import { darken, lighten } from "polished";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
&:focus {
|
|
65
|
-
box-shadow: 0 0 0 4px ${theme.colors.secondaryLight};
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
&:active {
|
|
69
|
-
box-shadow: 0 0 0 2px ${theme.colors.secondaryLight};
|
|
70
|
-
}
|
|
71
|
-
`}
|
|
72
|
-
|
|
73
|
-
${!disabled && $variant === "tertiary" && css`
|
|
74
|
-
color: ${$outline ? theme.colors.tertiary : theme.isDark ? theme.colors.dark : theme.colors.light};
|
|
75
|
-
background: ${$outline ? "transparent" : theme.colors.tertiary};
|
|
76
|
-
border: solid 2px ${theme.colors.tertiary};
|
|
77
|
-
box-shadow: 0 0 0 0px ${theme.colors.tertiary};
|
|
78
|
-
|
|
79
|
-
&:hover {
|
|
80
|
-
background: ${$outline ? "transparent" : theme.colors.tertiaryDark};
|
|
81
|
-
border-color: ${theme.colors.tertiaryDark};
|
|
82
|
-
${$outline && `color: ${theme.colors.tertiaryDark}`};
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
&:focus {
|
|
86
|
-
box-shadow: 0 0 0 4px ${theme.colors.tertiaryLight};
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
&:active {
|
|
90
|
-
box-shadow: 0 0 0 2px ${theme.colors.tertiaryLight};
|
|
91
|
-
}
|
|
92
|
-
`}
|
|
93
|
-
|
|
94
|
-
${!disabled && $error && css`
|
|
95
|
-
color: ${$outline ? theme.colors.error : theme.isDark ? theme.colors.dark : theme.colors.light};
|
|
96
|
-
background: ${$outline ? "transparent" : theme.colors.error};
|
|
97
|
-
border: solid 2px ${theme.colors.error};
|
|
98
|
-
box-shadow: 0 0 0 0px ${theme.colors.error};
|
|
99
|
-
|
|
100
|
-
&:hover {
|
|
101
|
-
background: ${$outline ? "transparent" : darken(0.1, theme.colors.error)};
|
|
102
|
-
border-color: ${darken(0.1, theme.colors.error)};
|
|
103
|
-
${$outline && `color: ${darken(0.1, theme.colors.error)}`};
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
&:focus {
|
|
107
|
-
box-shadow: 0 0 0 4px ${lighten(0.1, theme.colors.error)};
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
&:active {
|
|
111
|
-
box-shadow: 0 0 0 2px ${lighten(0.1, theme.colors.error)};
|
|
112
|
-
}
|
|
113
|
-
`}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
${formElementHeightStyles($size)}
|
|
117
|
-
|
|
118
|
-
${$size === "big" ? `font-size: ${theme.fontSizes.buttonBig.lg};
|
|
8
|
+
//#region src/lib/button.tsx
|
|
9
|
+
var buttonStyles = (theme, $variant, $size, $outline, $fullWidth, $error, disabled) => css([
|
|
10
|
+
``,
|
|
11
|
+
`;font-family:inherit;display:inline-flex;padding:15px 30px;border-radius:100px;font-weight:600;white-space:nowrap;hyphens:auto;color:`,
|
|
12
|
+
`;text-decoration:none;transition:all 0.3s ease;text-align:center;gap:10px;text-overflow:ellipsis;justify-content:center;align-items:center;min-height:fit-content;& .icon,& .lucide{margin:auto 0;}`,
|
|
13
|
+
` `,
|
|
14
|
+
` `,
|
|
15
|
+
` `,
|
|
16
|
+
` `,
|
|
17
|
+
` `,
|
|
18
|
+
` `,
|
|
19
|
+
` `,
|
|
20
|
+
``
|
|
21
|
+
], resetButton, theme.isDark ? theme.colors.dark : theme.colors.light, !disabled && $variant === "primary" && css([
|
|
22
|
+
`color:`,
|
|
23
|
+
`;background:`,
|
|
24
|
+
`;border:solid 2px `,
|
|
25
|
+
`;box-shadow:0 0 0 0px `,
|
|
26
|
+
`;&:hover{background:`,
|
|
27
|
+
`;border-color:`,
|
|
28
|
+
`;`,
|
|
29
|
+
`;}&:focus{box-shadow:0 0 0 4px `,
|
|
30
|
+
`;}&:active{box-shadow:0 0 0 2px `,
|
|
31
|
+
`;}`
|
|
32
|
+
], $outline ? theme.colors.primary : theme.isDark ? theme.colors.dark : theme.colors.light, $outline ? "transparent" : theme.colors.primary, theme.colors.primary, theme.colors.primary, $outline ? "transparent" : theme.colors.primaryDark, theme.colors.primaryDark, $outline && `color: ${theme.colors.primaryDark}`, theme.colors.primaryLight, theme.colors.primaryLight), !disabled && $variant === "secondary" && css([
|
|
33
|
+
`color:`,
|
|
34
|
+
`;background:`,
|
|
35
|
+
`;border:solid 2px `,
|
|
36
|
+
`;box-shadow:0 0 0 0px `,
|
|
37
|
+
`;&:hover{background:`,
|
|
38
|
+
`;border-color:`,
|
|
39
|
+
`;`,
|
|
40
|
+
`;}&:focus{box-shadow:0 0 0 4px `,
|
|
41
|
+
`;}&:active{box-shadow:0 0 0 2px `,
|
|
42
|
+
`;}`
|
|
43
|
+
], $outline ? theme.colors.secondary : theme.isDark ? theme.colors.dark : theme.colors.light, $outline ? "transparent" : theme.colors.secondary, theme.colors.secondary, theme.colors.secondary, $outline ? "transparent" : theme.colors.secondaryDark, theme.colors.secondaryDark, $outline && `color: ${theme.colors.secondaryDark}`, theme.colors.secondaryLight, theme.colors.secondaryLight), !disabled && $variant === "tertiary" && css([
|
|
44
|
+
`color:`,
|
|
45
|
+
`;background:`,
|
|
46
|
+
`;border:solid 2px `,
|
|
47
|
+
`;box-shadow:0 0 0 0px `,
|
|
48
|
+
`;&:hover{background:`,
|
|
49
|
+
`;border-color:`,
|
|
50
|
+
`;`,
|
|
51
|
+
`;}&:focus{box-shadow:0 0 0 4px `,
|
|
52
|
+
`;}&:active{box-shadow:0 0 0 2px `,
|
|
53
|
+
`;}`
|
|
54
|
+
], $outline ? theme.colors.tertiary : theme.isDark ? theme.colors.dark : theme.colors.light, $outline ? "transparent" : theme.colors.tertiary, theme.colors.tertiary, theme.colors.tertiary, $outline ? "transparent" : theme.colors.tertiaryDark, theme.colors.tertiaryDark, $outline && `color: ${theme.colors.tertiaryDark}`, theme.colors.tertiaryLight, theme.colors.tertiaryLight), !disabled && $error && css([
|
|
55
|
+
`color:`,
|
|
56
|
+
`;background:`,
|
|
57
|
+
`;border:solid 2px `,
|
|
58
|
+
`;box-shadow:0 0 0 0px `,
|
|
59
|
+
`;&:hover{background:`,
|
|
60
|
+
`;border-color:`,
|
|
61
|
+
`;`,
|
|
62
|
+
`;}&:focus{box-shadow:0 0 0 4px `,
|
|
63
|
+
`;}&:active{box-shadow:0 0 0 2px `,
|
|
64
|
+
`;}`
|
|
65
|
+
], $outline ? theme.colors.error : theme.isDark ? theme.colors.dark : theme.colors.light, $outline ? "transparent" : theme.colors.error, theme.colors.error, theme.colors.error, $outline ? "transparent" : darken(.1, theme.colors.error), darken(.1, theme.colors.error), $outline && `color: ${darken(.1, theme.colors.error)}`, lighten(.1, theme.colors.error), lighten(.1, theme.colors.error)), formElementHeightStyles($size), $size === "big" ? `font-size: ${theme.fontSizes.buttonBig.lg};
|
|
119
66
|
line-height: ${theme.lineHeights.buttonBig.lg};
|
|
120
67
|
padding: 18px 30px;
|
|
121
68
|
` : $size === "small" ? `font-size: ${theme.fontSizes.buttonSmall.lg};
|
|
122
69
|
line-height: ${theme.lineHeights.buttonSmall.lg};
|
|
123
70
|
padding: 10px 20px;
|
|
124
71
|
` : `font-size: ${theme.fontSizes.button.lg};
|
|
125
|
-
line-height: ${theme.lineHeights.button.lg}
|
|
126
|
-
|
|
127
|
-
${disabled && `
|
|
72
|
+
line-height: ${theme.lineHeights.button.lg};`, disabled && `
|
|
128
73
|
cursor: not-allowed;
|
|
129
74
|
background: ${theme.colors.grayLight};
|
|
130
75
|
border: solid 2px ${theme.colors.grayLight};
|
|
131
76
|
color: ${theme.colors.gray};
|
|
132
|
-
`
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
${({ theme, $variant, $error, $size, $outline, $fullWidth, disabled }) => buttonStyles(
|
|
138
|
-
theme,
|
|
139
|
-
$variant,
|
|
140
|
-
$size,
|
|
141
|
-
$outline,
|
|
142
|
-
$fullWidth,
|
|
143
|
-
$error,
|
|
144
|
-
disabled
|
|
145
|
-
)}
|
|
146
|
-
`;
|
|
77
|
+
`, $fullWidth && `width: 100%;`);
|
|
78
|
+
var StyledButton = styled.button.withConfig({
|
|
79
|
+
displayName: "button__StyledButton",
|
|
80
|
+
componentId: "sc-f54d90ca-0"
|
|
81
|
+
})([``, ``], ({ theme, $variant, $error, $size, $outline, $fullWidth, disabled }) => buttonStyles(theme, $variant, $size, $outline, $fullWidth, $error, disabled));
|
|
147
82
|
function LocalButton({ $variant = "primary", ...props }, ref) {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
]
|
|
160
|
-
}
|
|
161
|
-
);
|
|
83
|
+
return /* @__PURE__ */ jsxs(StyledButton, {
|
|
84
|
+
$variant,
|
|
85
|
+
$error: props.$error,
|
|
86
|
+
...props,
|
|
87
|
+
ref,
|
|
88
|
+
children: [
|
|
89
|
+
props.$iconPosition !== "right" && props.$icon && props.$icon,
|
|
90
|
+
props.children,
|
|
91
|
+
props.$iconPosition === "right" && props.$icon && props.$icon
|
|
92
|
+
]
|
|
93
|
+
});
|
|
162
94
|
}
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
buttonStyles
|
|
167
|
-
};
|
|
95
|
+
var Button = /* @__PURE__ */ forwardRef(LocalButton);
|
|
96
|
+
//#endregion
|
|
97
|
+
export { Button, buttonStyles };
|
package/dist/col.js
CHANGED
|
@@ -1,25 +1,33 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
import { generateColSpanStyles } from "./utils/mixins.js";
|
|
2
4
|
import { jsx } from "react/jsx-runtime";
|
|
3
5
|
import { forwardRef } from "react";
|
|
4
6
|
import styled from "styled-components";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
//#region src/lib/col.tsx
|
|
8
|
+
var StyledCol = styled.div.withConfig({
|
|
9
|
+
displayName: "col__StyledCol",
|
|
10
|
+
componentId: "sc-23d5c96e-0"
|
|
11
|
+
})([
|
|
12
|
+
``,
|
|
13
|
+
` `,
|
|
14
|
+
` `,
|
|
15
|
+
` `,
|
|
16
|
+
` `,
|
|
17
|
+
` `,
|
|
18
|
+
` `,
|
|
19
|
+
` `,
|
|
20
|
+
``
|
|
21
|
+
], ({ $span }) => $span && `
|
|
8
22
|
grid-column: span ${$span};
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
${({ $xsSpan }) => $xsSpan && generateColSpanStyles("xs", $xsSpan)}
|
|
12
|
-
${({ $smSpan }) => $smSpan && generateColSpanStyles("sm", $smSpan)}
|
|
13
|
-
${({ $mdSpan }) => $mdSpan && generateColSpanStyles("md", $mdSpan)}
|
|
14
|
-
${({ $lgSpan }) => $lgSpan && generateColSpanStyles("lg", $lgSpan)}
|
|
15
|
-
${({ $xlSpan }) => $xlSpan && generateColSpanStyles("xl", $xlSpan)}
|
|
16
|
-
${({ $xxlSpan }) => $xxlSpan && generateColSpanStyles("xxl", $xxlSpan)}
|
|
17
|
-
${({ $xxxlSpan }) => $xxxlSpan && generateColSpanStyles("xxxl", $xxxlSpan)}
|
|
18
|
-
`;
|
|
23
|
+
`, ({ $xsSpan }) => $xsSpan && generateColSpanStyles("xs", $xsSpan), ({ $smSpan }) => $smSpan && generateColSpanStyles("sm", $smSpan), ({ $mdSpan }) => $mdSpan && generateColSpanStyles("md", $mdSpan), ({ $lgSpan }) => $lgSpan && generateColSpanStyles("lg", $lgSpan), ({ $xlSpan }) => $xlSpan && generateColSpanStyles("xl", $xlSpan), ({ $xxlSpan }) => $xxlSpan && generateColSpanStyles("xxl", $xxlSpan), ({ $xxxlSpan }) => $xxxlSpan && generateColSpanStyles("xxxl", $xxxlSpan));
|
|
19
24
|
function LocalCol({ ...props }, ref) {
|
|
20
|
-
|
|
25
|
+
return /* @__PURE__ */ jsx(StyledCol, {
|
|
26
|
+
...props,
|
|
27
|
+
ref,
|
|
28
|
+
children: props.children
|
|
29
|
+
});
|
|
21
30
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
};
|
|
31
|
+
var Col = /* @__PURE__ */ forwardRef(LocalCol);
|
|
32
|
+
//#endregion
|
|
33
|
+
export { Col };
|
package/dist/container.js
CHANGED
|
@@ -1,36 +1,38 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
import { mq } from "./utils/theme.js";
|
|
4
|
+
import { generatePaddingStyles } from "./utils/mixins.js";
|
|
2
5
|
import { jsx } from "react/jsx-runtime";
|
|
3
6
|
import { forwardRef } from "react";
|
|
4
7
|
import styled from "styled-components";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
${({ $xlPadding }) => $xlPadding && generatePaddingStyles("xl", $xlPadding)}
|
|
27
|
-
${({ $xxlPadding }) => $xxlPadding && generatePaddingStyles("xxl", $xxlPadding)}
|
|
28
|
-
${({ $xxxlPadding }) => $xxxlPadding && generatePaddingStyles("xxxl", $xxxlPadding)}
|
|
29
|
-
`;
|
|
8
|
+
//#region src/lib/container.tsx
|
|
9
|
+
var StyledContainer = styled.div.withConfig({
|
|
10
|
+
displayName: "container__StyledContainer",
|
|
11
|
+
componentId: "sc-1bc84909-0"
|
|
12
|
+
})([
|
|
13
|
+
`margin:auto;width:100%;max-width:`,
|
|
14
|
+
`;`,
|
|
15
|
+
`;padding:`,
|
|
16
|
+
`;`,
|
|
17
|
+
`{padding:`,
|
|
18
|
+
`;}`,
|
|
19
|
+
`{max-width:`,
|
|
20
|
+
`;}`,
|
|
21
|
+
` `,
|
|
22
|
+
` `,
|
|
23
|
+
` `,
|
|
24
|
+
` `,
|
|
25
|
+
` `,
|
|
26
|
+
` `,
|
|
27
|
+
``
|
|
28
|
+
], ({ theme, $fluid }) => $fluid ? `100%` : theme.spacing.maxWidth.xs, ({ $textAlign }) => $textAlign && `text-align: ${$textAlign}`, ({ $padding, theme }) => $padding && `${$padding}px` || theme.spacing.padding.xs, mq("lg"), ({ $padding, theme }) => $padding && `${$padding}px` || theme.spacing.padding.lg, mq("xxxl"), ({ theme, $fluid }) => $fluid ? `100%` : theme.spacing.maxWidth.xxxl, ({ $xsPadding }) => $xsPadding && generatePaddingStyles("xs", $xsPadding), ({ $smPadding }) => $smPadding && generatePaddingStyles("sm", $smPadding), ({ $mdPadding }) => $mdPadding && generatePaddingStyles("md", $mdPadding), ({ $lgPadding }) => $lgPadding && generatePaddingStyles("lg", $lgPadding), ({ $xlPadding }) => $xlPadding && generatePaddingStyles("xl", $xlPadding), ({ $xxlPadding }) => $xxlPadding && generatePaddingStyles("xxl", $xxlPadding), ({ $xxxlPadding }) => $xxxlPadding && generatePaddingStyles("xxxl", $xxxlPadding));
|
|
30
29
|
function LocalContainer({ ...props }, ref) {
|
|
31
|
-
|
|
30
|
+
return /* @__PURE__ */ jsx(StyledContainer, {
|
|
31
|
+
...props,
|
|
32
|
+
ref,
|
|
33
|
+
children: props.children
|
|
34
|
+
});
|
|
32
35
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
};
|
|
36
|
+
var Container = /* @__PURE__ */ forwardRef(LocalContainer);
|
|
37
|
+
//#endregion
|
|
38
|
+
export { Container };
|
package/dist/flex.js
CHANGED
|
@@ -1,40 +1,45 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
import { mq } from "./utils/theme.js";
|
|
4
|
+
import { fullWidthStyles, generateGapStyles, generateJustifyContentStyles } from "./utils/mixins.js";
|
|
2
5
|
import { jsx } from "react/jsx-runtime";
|
|
3
6
|
import { forwardRef } from "react";
|
|
4
7
|
import styled from "styled-components";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
`;
|
|
8
|
+
//#region src/lib/flex.tsx
|
|
9
|
+
var StyledFlex = styled.div.withConfig({
|
|
10
|
+
displayName: "flex__StyledFlex",
|
|
11
|
+
componentId: "sc-c58fa091-0"
|
|
12
|
+
})([
|
|
13
|
+
`display:flex;justify-content:`,
|
|
14
|
+
`;flex-wrap:`,
|
|
15
|
+
`;gap:`,
|
|
16
|
+
`;flex-direction:`,
|
|
17
|
+
`;`,
|
|
18
|
+
`{gap:`,
|
|
19
|
+
`;}`,
|
|
20
|
+
` `,
|
|
21
|
+
` `,
|
|
22
|
+
` `,
|
|
23
|
+
` `,
|
|
24
|
+
` `,
|
|
25
|
+
` `,
|
|
26
|
+
` `,
|
|
27
|
+
` `,
|
|
28
|
+
` `,
|
|
29
|
+
` `,
|
|
30
|
+
` `,
|
|
31
|
+
` `,
|
|
32
|
+
` `,
|
|
33
|
+
` `,
|
|
34
|
+
``
|
|
35
|
+
], ({ $justifyContent }) => $justifyContent || "flex-start", ({ $wrap }) => $wrap || "wrap", ({ $gap, theme }) => $gap !== void 0 && $gap !== "none" ? `${$gap}px` : theme.spacing.gridGap.xs, ({ $direction }) => $direction || "row", mq("lg"), ({ $gap, theme }) => $gap !== void 0 && $gap !== "none" ? `${$gap}px` : theme.spacing.gridGap.lg, ({ $xsGap }) => $xsGap !== void 0 && generateGapStyles("xs", $xsGap), ({ $xsJustifyContent }) => $xsJustifyContent && generateJustifyContentStyles("xs", $xsJustifyContent), ({ $smGap }) => $smGap !== void 0 && generateGapStyles("sm", $smGap), ({ $smJustifyContent }) => $smJustifyContent && generateJustifyContentStyles("sm", $smJustifyContent), ({ $mdGap }) => $mdGap !== void 0 && generateGapStyles("md", $mdGap), ({ $mdJustifyContent }) => $mdJustifyContent && generateJustifyContentStyles("md", $mdJustifyContent), ({ $lgGap }) => $lgGap !== void 0 && generateGapStyles("lg", $lgGap), ({ $lgJustifyContent }) => $lgJustifyContent && generateJustifyContentStyles("lg", $lgJustifyContent), ({ $xlGap }) => $xlGap !== void 0 && generateGapStyles("xl", $xlGap), ({ $xlJustifyContent }) => $xlJustifyContent && generateJustifyContentStyles("xl", $xlJustifyContent), ({ $xxlGap }) => $xxlGap !== void 0 && generateGapStyles("xxl", $xxlGap), ({ $xxlJustifyContent }) => $xxlJustifyContent && generateJustifyContentStyles("xxl", $xxlJustifyContent), ({ $xxxlGap }) => $xxxlGap !== void 0 && generateGapStyles("xxxl", $xxxlGap), ({ $xxxlJustifyContent }) => $xxxlJustifyContent && generateJustifyContentStyles("xxxl", $xxxlJustifyContent), ({ $fullWidth }) => fullWidthStyles($fullWidth));
|
|
34
36
|
function LocalFlex({ ...props }, ref) {
|
|
35
|
-
|
|
37
|
+
return /* @__PURE__ */ jsx(StyledFlex, {
|
|
38
|
+
...props,
|
|
39
|
+
ref,
|
|
40
|
+
children: props.children
|
|
41
|
+
});
|
|
36
42
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
};
|
|
43
|
+
var Flex = /* @__PURE__ */ forwardRef(LocalFlex);
|
|
44
|
+
//#endregion
|
|
45
|
+
export { Flex };
|
package/dist/grid.js
CHANGED
|
@@ -1,39 +1,42 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
import { mq } from "./utils/theme.js";
|
|
4
|
+
import { generateColsStyles, generateGapStyles } from "./utils/mixins.js";
|
|
2
5
|
import { jsx } from "react/jsx-runtime";
|
|
3
6
|
import { forwardRef } from "react";
|
|
4
7
|
import styled from "styled-components";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
${({ $xxlCols }) => $xxlCols && generateColsStyles("xxl", $xxlCols)}
|
|
31
|
-
${({ $xxxlCols }) => $xxxlCols && generateColsStyles("xxxl", $xxxlCols)}
|
|
32
|
-
`;
|
|
8
|
+
//#region src/lib/grid.tsx
|
|
9
|
+
var StyledGrid = styled.div.withConfig({
|
|
10
|
+
displayName: "grid__StyledGrid",
|
|
11
|
+
componentId: "sc-593ceaf6-0"
|
|
12
|
+
})([
|
|
13
|
+
`width:100%;display:grid;grid-template-columns:`,
|
|
14
|
+
`;gap:`,
|
|
15
|
+
`;`,
|
|
16
|
+
`{gap:`,
|
|
17
|
+
`;}`,
|
|
18
|
+
` `,
|
|
19
|
+
` `,
|
|
20
|
+
` `,
|
|
21
|
+
` `,
|
|
22
|
+
` `,
|
|
23
|
+
` `,
|
|
24
|
+
` `,
|
|
25
|
+
` `,
|
|
26
|
+
` `,
|
|
27
|
+
` `,
|
|
28
|
+
` `,
|
|
29
|
+
` `,
|
|
30
|
+
` `,
|
|
31
|
+
``
|
|
32
|
+
], ({ $cols }) => `repeat(${$cols || 3}, minmax(0, 1fr))`, ({ $gap, theme }) => $gap !== void 0 && $gap !== "none" ? `${$gap}px` : theme.spacing.gridGap.xs, mq("lg"), ({ $gap, theme }) => $gap !== void 0 && $gap !== "none" ? `${$gap}px` : theme.spacing.gridGap.lg, ({ $xsGap }) => $xsGap !== void 0 && generateGapStyles("xs", $xsGap), ({ $smGap }) => $smGap !== void 0 && generateGapStyles("sm", $smGap), ({ $mdGap }) => $mdGap !== void 0 && generateGapStyles("md", $mdGap), ({ $lgGap }) => $lgGap !== void 0 && generateGapStyles("lg", $lgGap), ({ $xlGap }) => $xlGap !== void 0 && generateGapStyles("xl", $xlGap), ({ $xxlGap }) => $xxlGap !== void 0 && generateGapStyles("xxl", $xxlGap), ({ $xxxlGap }) => $xxxlGap !== void 0 && generateGapStyles("xxxl", $xxxlGap), ({ $xsCols }) => $xsCols && generateColsStyles("xs", $xsCols), ({ $smCols }) => $smCols && generateColsStyles("sm", $smCols), ({ $mdCols }) => $mdCols && generateColsStyles("md", $mdCols), ({ $lgCols }) => $lgCols && generateColsStyles("lg", $lgCols), ({ $xlCols }) => $xlCols && generateColsStyles("xl", $xlCols), ({ $xxlCols }) => $xxlCols && generateColsStyles("xxl", $xxlCols), ({ $xxxlCols }) => $xxxlCols && generateColsStyles("xxxl", $xxxlCols));
|
|
33
33
|
function LocalGrid({ ...props }, ref) {
|
|
34
|
-
|
|
34
|
+
return /* @__PURE__ */ jsx(StyledGrid, {
|
|
35
|
+
...props,
|
|
36
|
+
ref,
|
|
37
|
+
children: props.children
|
|
38
|
+
});
|
|
35
39
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
};
|
|
40
|
+
var Grid = /* @__PURE__ */ forwardRef(LocalGrid);
|
|
41
|
+
//#endregion
|
|
42
|
+
export { Grid };
|
package/dist/icon.js
CHANGED
|
@@ -1,26 +1,17 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { icons } from "lucide-react";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
color,
|
|
16
|
-
size,
|
|
17
|
-
className,
|
|
18
|
-
"aria-label": ariaLabel,
|
|
19
|
-
"aria-hidden": !ariaLabel,
|
|
20
|
-
role: ariaLabel ? "img" : void 0
|
|
21
|
-
}
|
|
22
|
-
);
|
|
23
|
-
};
|
|
24
|
-
export {
|
|
25
|
-
Icon
|
|
3
|
+
//#region src/lib/icon.tsx
|
|
4
|
+
var Icon = ({ name, color, size, className, "aria-label": ariaLabel }) => {
|
|
5
|
+
const LucideIcon = icons[name];
|
|
6
|
+
if (!LucideIcon) return null;
|
|
7
|
+
return /* @__PURE__ */ jsx(LucideIcon, {
|
|
8
|
+
color,
|
|
9
|
+
size,
|
|
10
|
+
className,
|
|
11
|
+
"aria-label": ariaLabel,
|
|
12
|
+
"aria-hidden": !ariaLabel,
|
|
13
|
+
role: ariaLabel ? "img" : void 0
|
|
14
|
+
});
|
|
26
15
|
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export { Icon };
|