@blockle/blocks 0.2.2 → 0.3.0
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/README.md +1 -1
- package/dist/index.cjs +134 -6
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +136 -6
- package/dist/momotaro.chunk.d.ts +516 -0
- package/dist/reset.css.cjs +0 -1
- package/dist/reset.css.d.ts +1 -408
- package/dist/reset.css.mjs +0 -1
- package/dist/styles/components/Button/Button.css.cjs +15 -0
- package/dist/styles/components/Button/Button.css.mjs +16 -0
- package/dist/styles/lib/css/atoms/index.cjs +1 -0
- package/dist/styles/lib/css/atoms/index.mjs +1 -0
- package/dist/styles/lib/css/layers/layers.css.cjs +7 -0
- package/dist/styles/lib/css/layers/layers.css.mjs +8 -0
- package/dist/styles/lib/css/reset/reset.css.cjs +0 -36
- package/dist/styles/lib/css/reset/reset.css.mjs +1 -36
- package/dist/styles/lib/css/theme/makeComponentTheme.cjs +3 -0
- package/dist/styles/lib/css/theme/makeComponentTheme.mjs +4 -0
- package/dist/styles/lib/css/theme/makeTheme.cjs +3 -2
- package/dist/styles/lib/css/theme/makeTheme.mjs +3 -2
- package/dist/styles/lib/css/theme/makeVanillaTheme.cjs +5 -2
- package/dist/styles/lib/css/theme/makeVanillaTheme.mjs +5 -2
- package/dist/styles/lib/css/theme/tokens.cjs +5 -2
- package/dist/styles/lib/css/theme/tokens.mjs +5 -2
- package/dist/styles/themes/momotaro/components/button.css.cjs +106 -0
- package/dist/styles/themes/momotaro/components/button.css.mjs +107 -0
- package/dist/styles/themes/momotaro/components/helpers.css.cjs +26 -0
- package/dist/styles/themes/momotaro/components/helpers.css.mjs +27 -0
- package/dist/styles/themes/momotaro/components/index.cjs +10 -0
- package/dist/styles/themes/momotaro/components/index.mjs +11 -0
- package/dist/styles/themes/momotaro/components/link.css.cjs +47 -0
- package/dist/styles/themes/momotaro/components/link.css.mjs +48 -0
- package/dist/styles/themes/momotaro/components/spinner.css.cjs +44 -0
- package/dist/styles/themes/momotaro/components/spinner.css.mjs +45 -0
- package/dist/styles/themes/momotaro/momotaro.css.cjs +13 -0
- package/dist/styles/themes/momotaro/{momotaroTheme.css.mjs → momotaro.css.mjs} +6 -4
- package/dist/styles/themes/momotaro/tokens.cjs +5 -2
- package/dist/styles/themes/momotaro/tokens.mjs +5 -2
- package/dist/themes/momotaro.cjs +2 -2
- package/dist/themes/momotaro.d.ts +1 -1
- package/dist/themes/momotaro.mjs +2 -2
- package/package.json +49 -20
- package/dist/styles/themes/momotaro/momotaroTheme.css.cjs +0 -11
package/dist/reset.css.d.ts
CHANGED
|
@@ -1,409 +1,2 @@
|
|
|
1
|
-
import { ForwardRefComponent } from '@radix-ui/react-polymorphic';
|
|
2
|
-
import * as _vanilla_extract_sprinkles from '@vanilla-extract/sprinkles';
|
|
3
|
-
import { HTMLProps } from 'react';
|
|
4
1
|
|
|
5
|
-
|
|
6
|
-
children: React.ReactNode;
|
|
7
|
-
theme: {
|
|
8
|
-
vars: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
declare const BlocksProvider: React.FC<BlocksProviderProps>;
|
|
12
|
-
|
|
13
|
-
declare const atoms: ((props: {
|
|
14
|
-
readonly backgroundColor?: ("white" | "black" | "body" | "primaryLight" | "primary" | "primaryDark" | "secondaryLight" | "secondary" | "secondaryDark" | "text" | "textLight" | "textDark" | "caution" | "link") | undefined;
|
|
15
|
-
readonly borderRadius?: ("small" | "medium" | "large" | "xlarge") | undefined;
|
|
16
|
-
readonly bottom?: 0 | undefined;
|
|
17
|
-
readonly boxShadow?: ("small" | "medium" | "large") | undefined;
|
|
18
|
-
readonly color?: "white" | "black" | "body" | "primaryLight" | "primary" | "primaryDark" | "secondaryLight" | "secondary" | "secondaryDark" | "text" | "textLight" | "textDark" | "caution" | "link" | "currentColor" | undefined;
|
|
19
|
-
readonly cursor?: "auto" | "pointer" | undefined;
|
|
20
|
-
readonly fontFamily?: "secondary" | "standard" | undefined;
|
|
21
|
-
readonly fontStyle?: "normal" | "italic" | "oblique" | undefined;
|
|
22
|
-
readonly fontWeight?: ("medium" | "regular" | "strong") | undefined;
|
|
23
|
-
readonly height?: "auto" | "full" | undefined;
|
|
24
|
-
readonly left?: 0 | undefined;
|
|
25
|
-
readonly lineHeight?: ("xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
26
|
-
readonly maxHeight?: "full" | undefined;
|
|
27
|
-
readonly maxWidth?: "full" | undefined;
|
|
28
|
-
readonly opacity?: 0 | 1 | undefined;
|
|
29
|
-
readonly overflow?: "auto" | "hidden" | "scroll" | "visible" | undefined;
|
|
30
|
-
readonly overflowX?: "auto" | "hidden" | "scroll" | "visible" | undefined;
|
|
31
|
-
readonly overflowY?: "auto" | "hidden" | "scroll" | "visible" | undefined;
|
|
32
|
-
readonly pointerEvents?: "none" | undefined;
|
|
33
|
-
readonly right?: 0 | undefined;
|
|
34
|
-
readonly textDecoration?: "none" | "overline" | "line-through" | "underline" | undefined;
|
|
35
|
-
readonly textTransform?: "lowercase" | "uppercase" | "capitalize" | undefined;
|
|
36
|
-
readonly textWrap?: "balance" | "wrap" | undefined;
|
|
37
|
-
readonly top?: 0 | undefined;
|
|
38
|
-
readonly transition?: ("slow" | "normal" | "fast") | undefined;
|
|
39
|
-
readonly userSelect?: "none" | undefined;
|
|
40
|
-
readonly whiteSpace?: "pre-wrap" | "nowrap" | "pre" | "pre-line" | undefined;
|
|
41
|
-
readonly width?: "auto" | "fit-content" | "full" | undefined;
|
|
42
|
-
readonly wordBreak?: "break-word" | undefined;
|
|
43
|
-
readonly wordWrap?: "break-word" | undefined;
|
|
44
|
-
inset?: 0 | undefined;
|
|
45
|
-
} & {
|
|
46
|
-
readonly alignItems?: ("stretch" | "center" | "flex-start" | "flex-end" | {
|
|
47
|
-
mobile?: "stretch" | "center" | "flex-start" | "flex-end" | undefined;
|
|
48
|
-
tablet?: "stretch" | "center" | "flex-start" | "flex-end" | undefined;
|
|
49
|
-
desktop?: "stretch" | "center" | "flex-start" | "flex-end" | undefined;
|
|
50
|
-
wide?: "stretch" | "center" | "flex-start" | "flex-end" | undefined;
|
|
51
|
-
} | undefined) | _vanilla_extract_sprinkles.ResponsiveArray<1 | 2 | 3 | 4, "stretch" | "center" | "flex-start" | "flex-end" | null>;
|
|
52
|
-
readonly columnGap?: (("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | {
|
|
53
|
-
mobile?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
54
|
-
tablet?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
55
|
-
desktop?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
56
|
-
wide?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
57
|
-
} | undefined) | _vanilla_extract_sprinkles.ResponsiveArray<1 | 2 | 3 | 4, ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | null>;
|
|
58
|
-
readonly display?: ("none" | "flex" | "grid" | "inline-flex" | "block" | "inline" | "inline-block" | "inline-grid" | {
|
|
59
|
-
mobile?: "none" | "flex" | "grid" | "inline-flex" | "block" | "inline" | "inline-block" | "inline-grid" | undefined;
|
|
60
|
-
tablet?: "none" | "flex" | "grid" | "inline-flex" | "block" | "inline" | "inline-block" | "inline-grid" | undefined;
|
|
61
|
-
desktop?: "none" | "flex" | "grid" | "inline-flex" | "block" | "inline" | "inline-block" | "inline-grid" | undefined;
|
|
62
|
-
wide?: "none" | "flex" | "grid" | "inline-flex" | "block" | "inline" | "inline-block" | "inline-grid" | undefined;
|
|
63
|
-
} | undefined) | _vanilla_extract_sprinkles.ResponsiveArray<1 | 2 | 3 | 4, "none" | "flex" | "grid" | "inline-flex" | "block" | "inline" | "inline-block" | "inline-grid" | null>;
|
|
64
|
-
readonly flex?: (1 | {
|
|
65
|
-
mobile?: 1 | undefined;
|
|
66
|
-
tablet?: 1 | undefined;
|
|
67
|
-
desktop?: 1 | undefined;
|
|
68
|
-
wide?: 1 | undefined;
|
|
69
|
-
} | undefined) | _vanilla_extract_sprinkles.ResponsiveArray<1 | 2 | 3 | 4, 1 | null>;
|
|
70
|
-
readonly flexDirection?: ("row" | "row-reverse" | "column" | "column-reverse" | {
|
|
71
|
-
mobile?: "row" | "row-reverse" | "column" | "column-reverse" | undefined;
|
|
72
|
-
tablet?: "row" | "row-reverse" | "column" | "column-reverse" | undefined;
|
|
73
|
-
desktop?: "row" | "row-reverse" | "column" | "column-reverse" | undefined;
|
|
74
|
-
wide?: "row" | "row-reverse" | "column" | "column-reverse" | undefined;
|
|
75
|
-
} | undefined) | _vanilla_extract_sprinkles.ResponsiveArray<1 | 2 | 3 | 4, "row" | "row-reverse" | "column" | "column-reverse" | null>;
|
|
76
|
-
readonly flexGrow?: (0 | 1 | {
|
|
77
|
-
mobile?: 0 | 1 | undefined;
|
|
78
|
-
tablet?: 0 | 1 | undefined;
|
|
79
|
-
desktop?: 0 | 1 | undefined;
|
|
80
|
-
wide?: 0 | 1 | undefined;
|
|
81
|
-
} | undefined) | _vanilla_extract_sprinkles.ResponsiveArray<1 | 2 | 3 | 4, 0 | 1 | null>;
|
|
82
|
-
readonly flexShrink?: (0 | 1 | {
|
|
83
|
-
mobile?: 0 | 1 | undefined;
|
|
84
|
-
tablet?: 0 | 1 | undefined;
|
|
85
|
-
desktop?: 0 | 1 | undefined;
|
|
86
|
-
wide?: 0 | 1 | undefined;
|
|
87
|
-
} | undefined) | _vanilla_extract_sprinkles.ResponsiveArray<1 | 2 | 3 | 4, 0 | 1 | null>;
|
|
88
|
-
readonly flexWrap?: ("nowrap" | "wrap" | {
|
|
89
|
-
mobile?: "nowrap" | "wrap" | undefined;
|
|
90
|
-
tablet?: "nowrap" | "wrap" | undefined;
|
|
91
|
-
desktop?: "nowrap" | "wrap" | undefined;
|
|
92
|
-
wide?: "nowrap" | "wrap" | undefined;
|
|
93
|
-
} | undefined) | _vanilla_extract_sprinkles.ResponsiveArray<1 | 2 | 3 | 4, "nowrap" | "wrap" | null>;
|
|
94
|
-
readonly fontSize?: (("xsmall" | "small" | "medium" | "large" | "xlarge") | {
|
|
95
|
-
mobile?: ("xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
96
|
-
tablet?: ("xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
97
|
-
desktop?: ("xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
98
|
-
wide?: ("xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
99
|
-
} | undefined) | _vanilla_extract_sprinkles.ResponsiveArray<1 | 2 | 3 | 4, ("xsmall" | "small" | "medium" | "large" | "xlarge") | null>;
|
|
100
|
-
readonly gap?: (("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | {
|
|
101
|
-
mobile?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
102
|
-
tablet?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
103
|
-
desktop?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
104
|
-
wide?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
105
|
-
} | undefined) | _vanilla_extract_sprinkles.ResponsiveArray<1 | 2 | 3 | 4, ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | null>;
|
|
106
|
-
readonly justifyContent?: ("center" | "flex-start" | "flex-end" | "space-between" | "space-around" | {
|
|
107
|
-
mobile?: "center" | "flex-start" | "flex-end" | "space-between" | "space-around" | undefined;
|
|
108
|
-
tablet?: "center" | "flex-start" | "flex-end" | "space-between" | "space-around" | undefined;
|
|
109
|
-
desktop?: "center" | "flex-start" | "flex-end" | "space-between" | "space-around" | undefined;
|
|
110
|
-
wide?: "center" | "flex-start" | "flex-end" | "space-between" | "space-around" | undefined;
|
|
111
|
-
} | undefined) | _vanilla_extract_sprinkles.ResponsiveArray<1 | 2 | 3 | 4, "center" | "flex-start" | "flex-end" | "space-between" | "space-around" | null>;
|
|
112
|
-
readonly marginBottom?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "auto" | {
|
|
113
|
-
mobile?: "none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "auto" | undefined;
|
|
114
|
-
tablet?: "none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "auto" | undefined;
|
|
115
|
-
desktop?: "none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "auto" | undefined;
|
|
116
|
-
wide?: "none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "auto" | undefined;
|
|
117
|
-
} | undefined) | _vanilla_extract_sprinkles.ResponsiveArray<1 | 2 | 3 | 4, "none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "auto" | null>;
|
|
118
|
-
readonly marginLeft?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "auto" | {
|
|
119
|
-
mobile?: "none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "auto" | undefined;
|
|
120
|
-
tablet?: "none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "auto" | undefined;
|
|
121
|
-
desktop?: "none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "auto" | undefined;
|
|
122
|
-
wide?: "none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "auto" | undefined;
|
|
123
|
-
} | undefined) | _vanilla_extract_sprinkles.ResponsiveArray<1 | 2 | 3 | 4, "none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "auto" | null>;
|
|
124
|
-
readonly marginRight?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "auto" | {
|
|
125
|
-
mobile?: "none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "auto" | undefined;
|
|
126
|
-
tablet?: "none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "auto" | undefined;
|
|
127
|
-
desktop?: "none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "auto" | undefined;
|
|
128
|
-
wide?: "none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "auto" | undefined;
|
|
129
|
-
} | undefined) | _vanilla_extract_sprinkles.ResponsiveArray<1 | 2 | 3 | 4, "none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "auto" | null>;
|
|
130
|
-
readonly marginTop?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "auto" | {
|
|
131
|
-
mobile?: "none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "auto" | undefined;
|
|
132
|
-
tablet?: "none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "auto" | undefined;
|
|
133
|
-
desktop?: "none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "auto" | undefined;
|
|
134
|
-
wide?: "none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "auto" | undefined;
|
|
135
|
-
} | undefined) | _vanilla_extract_sprinkles.ResponsiveArray<1 | 2 | 3 | 4, "none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "auto" | null>;
|
|
136
|
-
readonly outline?: ("none" | {
|
|
137
|
-
mobile?: "none" | undefined;
|
|
138
|
-
tablet?: "none" | undefined;
|
|
139
|
-
desktop?: "none" | undefined;
|
|
140
|
-
wide?: "none" | undefined;
|
|
141
|
-
} | undefined) | _vanilla_extract_sprinkles.ResponsiveArray<1 | 2 | 3 | 4, "none" | null>;
|
|
142
|
-
readonly paddingBottom?: (("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | {
|
|
143
|
-
mobile?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
144
|
-
tablet?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
145
|
-
desktop?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
146
|
-
wide?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
147
|
-
} | undefined) | _vanilla_extract_sprinkles.ResponsiveArray<1 | 2 | 3 | 4, ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | null>;
|
|
148
|
-
readonly paddingLeft?: (("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | {
|
|
149
|
-
mobile?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
150
|
-
tablet?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
151
|
-
desktop?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
152
|
-
wide?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
153
|
-
} | undefined) | _vanilla_extract_sprinkles.ResponsiveArray<1 | 2 | 3 | 4, ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | null>;
|
|
154
|
-
readonly paddingRight?: (("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | {
|
|
155
|
-
mobile?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
156
|
-
tablet?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
157
|
-
desktop?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
158
|
-
wide?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
159
|
-
} | undefined) | _vanilla_extract_sprinkles.ResponsiveArray<1 | 2 | 3 | 4, ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | null>;
|
|
160
|
-
readonly paddingTop?: (("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | {
|
|
161
|
-
mobile?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
162
|
-
tablet?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
163
|
-
desktop?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
164
|
-
wide?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
165
|
-
} | undefined) | _vanilla_extract_sprinkles.ResponsiveArray<1 | 2 | 3 | 4, ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | null>;
|
|
166
|
-
readonly position?: ("relative" | "fixed" | "absolute" | "sticky" | "static" | {
|
|
167
|
-
mobile?: "relative" | "fixed" | "absolute" | "sticky" | "static" | undefined;
|
|
168
|
-
tablet?: "relative" | "fixed" | "absolute" | "sticky" | "static" | undefined;
|
|
169
|
-
desktop?: "relative" | "fixed" | "absolute" | "sticky" | "static" | undefined;
|
|
170
|
-
wide?: "relative" | "fixed" | "absolute" | "sticky" | "static" | undefined;
|
|
171
|
-
} | undefined) | _vanilla_extract_sprinkles.ResponsiveArray<1 | 2 | 3 | 4, "relative" | "fixed" | "absolute" | "sticky" | "static" | null>;
|
|
172
|
-
readonly rowGap?: (("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | {
|
|
173
|
-
mobile?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
174
|
-
tablet?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
175
|
-
desktop?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
176
|
-
wide?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
177
|
-
} | undefined) | _vanilla_extract_sprinkles.ResponsiveArray<1 | 2 | 3 | 4, ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | null>;
|
|
178
|
-
readonly textAlign?: ("left" | "right" | "center" | "justify" | {
|
|
179
|
-
mobile?: "left" | "right" | "center" | "justify" | undefined;
|
|
180
|
-
tablet?: "left" | "right" | "center" | "justify" | undefined;
|
|
181
|
-
desktop?: "left" | "right" | "center" | "justify" | undefined;
|
|
182
|
-
wide?: "left" | "right" | "center" | "justify" | undefined;
|
|
183
|
-
} | undefined) | _vanilla_extract_sprinkles.ResponsiveArray<1 | 2 | 3 | 4, "left" | "right" | "center" | "justify" | null>;
|
|
184
|
-
margin?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "auto" | {
|
|
185
|
-
mobile?: "none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "auto" | undefined;
|
|
186
|
-
tablet?: "none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "auto" | undefined;
|
|
187
|
-
desktop?: "none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "auto" | undefined;
|
|
188
|
-
wide?: "none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "auto" | undefined;
|
|
189
|
-
} | undefined) | _vanilla_extract_sprinkles.ResponsiveArray<1 | 2 | 3 | 4, "none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "auto" | null>;
|
|
190
|
-
marginX?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "auto" | {
|
|
191
|
-
mobile?: "none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "auto" | undefined;
|
|
192
|
-
tablet?: "none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "auto" | undefined;
|
|
193
|
-
desktop?: "none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "auto" | undefined;
|
|
194
|
-
wide?: "none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "auto" | undefined;
|
|
195
|
-
} | undefined) | _vanilla_extract_sprinkles.ResponsiveArray<1 | 2 | 3 | 4, "none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "auto" | null>;
|
|
196
|
-
marginY?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "auto" | {
|
|
197
|
-
mobile?: "none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "auto" | undefined;
|
|
198
|
-
tablet?: "none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "auto" | undefined;
|
|
199
|
-
desktop?: "none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "auto" | undefined;
|
|
200
|
-
wide?: "none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "auto" | undefined;
|
|
201
|
-
} | undefined) | _vanilla_extract_sprinkles.ResponsiveArray<1 | 2 | 3 | 4, "none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "auto" | null>;
|
|
202
|
-
padding?: (("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | {
|
|
203
|
-
mobile?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
204
|
-
tablet?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
205
|
-
desktop?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
206
|
-
wide?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
207
|
-
} | undefined) | _vanilla_extract_sprinkles.ResponsiveArray<1 | 2 | 3 | 4, ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | null>;
|
|
208
|
-
paddingX?: (("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | {
|
|
209
|
-
mobile?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
210
|
-
tablet?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
211
|
-
desktop?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
212
|
-
wide?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
213
|
-
} | undefined) | _vanilla_extract_sprinkles.ResponsiveArray<1 | 2 | 3 | 4, ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | null>;
|
|
214
|
-
paddingY?: (("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | {
|
|
215
|
-
mobile?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
216
|
-
tablet?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
217
|
-
desktop?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
218
|
-
wide?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
219
|
-
} | undefined) | _vanilla_extract_sprinkles.ResponsiveArray<1 | 2 | 3 | 4, ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | null>;
|
|
220
|
-
placeItems?: ("center" | "flex-start" | "flex-end" | {
|
|
221
|
-
mobile?: "center" | "flex-start" | "flex-end" | undefined;
|
|
222
|
-
tablet?: "center" | "flex-start" | "flex-end" | undefined;
|
|
223
|
-
desktop?: "center" | "flex-start" | "flex-end" | undefined;
|
|
224
|
-
wide?: "center" | "flex-start" | "flex-end" | undefined;
|
|
225
|
-
} | undefined) | _vanilla_extract_sprinkles.ResponsiveArray<1 | 2 | 3 | 4, "center" | "flex-start" | "flex-end" | null>;
|
|
226
|
-
}) => string) & {
|
|
227
|
-
properties: Set<"borderRadius" | "color" | "fontFamily" | "fontSize" | "fontWeight" | "lineHeight" | "transition" | "alignItems" | "backgroundColor" | "bottom" | "boxShadow" | "columnGap" | "cursor" | "display" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontStyle" | "height" | "justifyContent" | "left" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "opacity" | "overflowX" | "overflowY" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "pointerEvents" | "position" | "right" | "rowGap" | "textAlign" | "textTransform" | "top" | "userSelect" | "whiteSpace" | "width" | "wordBreak" | "wordWrap" | "flex" | "gap" | "inset" | "margin" | "outline" | "overflow" | "padding" | "placeItems" | "textDecoration" | "textWrap" | "marginX" | "marginY" | "paddingX" | "paddingY">;
|
|
228
|
-
};
|
|
229
|
-
|
|
230
|
-
type Atoms = Parameters<typeof atoms>[0];
|
|
231
|
-
type ResponsiveValue<T> = T | [T] | [T, T] | [T, T, T] | [T, T, T, T];
|
|
232
|
-
type ResponsiveDisplayFlex = ResponsiveValue<'none' | 'flex' | 'inline-flex'>;
|
|
233
|
-
type MarginAtoms = {
|
|
234
|
-
margin?: Atoms['margin'];
|
|
235
|
-
marginLeft?: Atoms['marginLeft'];
|
|
236
|
-
marginRight?: Atoms['marginRight'];
|
|
237
|
-
marginTop?: Atoms['marginTop'];
|
|
238
|
-
marginBottom?: Atoms['marginBottom'];
|
|
239
|
-
marginX?: Atoms['marginX'];
|
|
240
|
-
marginY?: Atoms['marginY'];
|
|
241
|
-
};
|
|
242
|
-
type PaddingAtoms = {
|
|
243
|
-
padding?: Atoms['padding'];
|
|
244
|
-
paddingLeft?: Atoms['paddingLeft'];
|
|
245
|
-
paddingRight?: Atoms['paddingRight'];
|
|
246
|
-
paddingTop?: Atoms['paddingTop'];
|
|
247
|
-
paddingBottom?: Atoms['paddingBottom'];
|
|
248
|
-
paddingX?: Atoms['paddingX'];
|
|
249
|
-
paddingY?: Atoms['paddingY'];
|
|
250
|
-
};
|
|
251
|
-
type MarginAndPaddingAtoms = MarginAtoms & PaddingAtoms;
|
|
252
|
-
|
|
253
|
-
type BoxProps = {
|
|
254
|
-
children?: React.ReactNode;
|
|
255
|
-
className?: string;
|
|
256
|
-
} & Atoms;
|
|
257
|
-
type PolymorphicBox = ForwardRefComponent<'div', BoxProps>;
|
|
258
|
-
declare const Box: PolymorphicBox;
|
|
259
|
-
|
|
260
|
-
type HTMLElementProps<E extends Element> = Omit<HTMLProps<E>, keyof Atoms | 'as' | 'ref'>;
|
|
261
|
-
|
|
262
|
-
type HeadingProps = {
|
|
263
|
-
className?: string;
|
|
264
|
-
level: 1 | 2 | 3 | 4 | 5 | 6;
|
|
265
|
-
children: React.ReactNode;
|
|
266
|
-
align?: Atoms['textAlign'];
|
|
267
|
-
fontSize?: Atoms['fontSize'];
|
|
268
|
-
fontWeight?: Atoms['fontWeight'];
|
|
269
|
-
fontFamily?: Atoms['fontFamily'];
|
|
270
|
-
} & MarginAndPaddingAtoms & HTMLElementProps<HTMLHeadingElement>;
|
|
271
|
-
declare const Heading: React.FC<HeadingProps>;
|
|
272
|
-
|
|
273
|
-
declare const justifyContentMap: {
|
|
274
|
-
readonly left: "flex-start";
|
|
275
|
-
readonly right: "flex-end";
|
|
276
|
-
readonly center: "center";
|
|
277
|
-
readonly between: "space-between";
|
|
278
|
-
readonly around: "space-around";
|
|
279
|
-
};
|
|
280
|
-
type JustifyContentMap = typeof justifyContentMap;
|
|
281
|
-
declare const alignItemsMap: {
|
|
282
|
-
readonly left: "flex-start";
|
|
283
|
-
readonly right: "flex-end";
|
|
284
|
-
readonly center: "center";
|
|
285
|
-
readonly stretch: "stretch";
|
|
286
|
-
};
|
|
287
|
-
type AlignItemsMap = typeof alignItemsMap;
|
|
288
|
-
|
|
289
|
-
type InlineProps = {
|
|
290
|
-
as?: 'div' | 'ul' | 'ol' | 'nav';
|
|
291
|
-
children: React.ReactNode;
|
|
292
|
-
alignX?: keyof JustifyContentMap;
|
|
293
|
-
alignY?: keyof AlignItemsMap;
|
|
294
|
-
gap: Atoms['gap'];
|
|
295
|
-
display?: ResponsiveDisplayFlex;
|
|
296
|
-
} & MarginAndPaddingAtoms;
|
|
297
|
-
declare const Inline: React.FC<InlineProps>;
|
|
298
|
-
|
|
299
|
-
type StackProps = {
|
|
300
|
-
as?: 'div' | 'section' | 'ul' | 'ol';
|
|
301
|
-
children: React.ReactNode;
|
|
302
|
-
alignX?: keyof AlignItemsMap;
|
|
303
|
-
gap: Atoms['gap'];
|
|
304
|
-
display?: ResponsiveDisplayFlex;
|
|
305
|
-
className?: string;
|
|
306
|
-
/**
|
|
307
|
-
* Start prop is only valid when as="ol"
|
|
308
|
-
*/
|
|
309
|
-
start?: number;
|
|
310
|
-
} & MarginAndPaddingAtoms;
|
|
311
|
-
declare const Stack: React.FC<StackProps>;
|
|
312
|
-
|
|
313
|
-
type TextProps = {
|
|
314
|
-
children: React.ReactNode;
|
|
315
|
-
as?: 'span' | 'p' | 'strong' | 'em' | 'small' | 's' | 'del' | 'ins' | 'sub' | 'sup';
|
|
316
|
-
color?: Atoms['color'];
|
|
317
|
-
fontSize?: Atoms['fontSize'];
|
|
318
|
-
fontWeight?: Atoms['fontWeight'];
|
|
319
|
-
fontFamily?: Atoms['fontFamily'];
|
|
320
|
-
textAlign?: Atoms['textAlign'];
|
|
321
|
-
fontStyle?: Atoms['fontStyle'];
|
|
322
|
-
textDecoration?: Atoms['textDecoration'];
|
|
323
|
-
lineHeight?: Atoms['lineHeight'];
|
|
324
|
-
whiteSpace?: Atoms['whiteSpace'];
|
|
325
|
-
wordWrap?: Atoms['wordWrap'];
|
|
326
|
-
wordBreak?: Atoms['wordBreak'];
|
|
327
|
-
} & MarginAndPaddingAtoms;
|
|
328
|
-
declare const Text: React.FC<TextProps>;
|
|
329
|
-
|
|
330
|
-
declare const vars: {
|
|
331
|
-
space: {
|
|
332
|
-
none: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
333
|
-
gutter: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
334
|
-
xsmall: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
335
|
-
small: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
336
|
-
medium: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
337
|
-
large: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
338
|
-
xlarge: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
339
|
-
};
|
|
340
|
-
borderRadius: {
|
|
341
|
-
small: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
342
|
-
medium: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
343
|
-
large: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
344
|
-
xlarge: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
345
|
-
};
|
|
346
|
-
color: {
|
|
347
|
-
white: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
348
|
-
black: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
349
|
-
body: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
350
|
-
primaryLight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
351
|
-
primary: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
352
|
-
primaryDark: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
353
|
-
secondaryLight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
354
|
-
secondary: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
355
|
-
secondaryDark: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
356
|
-
text: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
357
|
-
textLight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
358
|
-
textDark: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
359
|
-
caution: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
360
|
-
link: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
361
|
-
};
|
|
362
|
-
borderWidth: {
|
|
363
|
-
small: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
364
|
-
medium: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
365
|
-
large: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
366
|
-
};
|
|
367
|
-
fontFamily: {
|
|
368
|
-
secondary: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
369
|
-
standard: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
370
|
-
};
|
|
371
|
-
fontSize: {
|
|
372
|
-
xsmall: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
373
|
-
small: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
374
|
-
medium: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
375
|
-
large: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
376
|
-
xlarge: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
377
|
-
};
|
|
378
|
-
fontWeight: {
|
|
379
|
-
medium: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
380
|
-
regular: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
381
|
-
strong: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
382
|
-
};
|
|
383
|
-
lineHeight: {
|
|
384
|
-
xsmall: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
385
|
-
small: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
386
|
-
medium: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
387
|
-
large: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
388
|
-
xlarge: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
389
|
-
};
|
|
390
|
-
transition: {
|
|
391
|
-
slow: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
392
|
-
normal: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
393
|
-
fast: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
394
|
-
};
|
|
395
|
-
shadow: {
|
|
396
|
-
small: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
397
|
-
medium: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
398
|
-
large: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
399
|
-
};
|
|
400
|
-
};
|
|
401
|
-
|
|
402
|
-
type Args = null | undefined | boolean | string;
|
|
403
|
-
declare const classnames: (...args: Args[]) => string | undefined;
|
|
404
|
-
|
|
405
|
-
declare const theme: {
|
|
406
|
-
vars: string;
|
|
407
|
-
};
|
|
408
|
-
|
|
409
|
-
export { BlocksProvider, BlocksProviderProps, Box, BoxProps, Heading, HeadingProps, Inline, InlineProps, Stack, StackProps, Text, TextProps, atoms, classnames, theme, vars };
|
|
2
|
+
export { }
|
package/dist/reset.css.mjs
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
|
+
const css = require("@vanilla-extract/css");
|
|
4
|
+
const styles_lib_css_layers_layers_css_cjs = require("../../lib/css/layers/layers.css.cjs");
|
|
5
|
+
fileScope.setFileScope("src/components/Button/Button.css.ts?used", "blocks");
|
|
6
|
+
const buttonReset = css.style({
|
|
7
|
+
"@layer": {
|
|
8
|
+
[styles_lib_css_layers_layers_css_cjs.blocksLayer]: {
|
|
9
|
+
all: "unset",
|
|
10
|
+
cursor: "pointer"
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}, "buttonReset");
|
|
14
|
+
fileScope.endFileScope();
|
|
15
|
+
exports.buttonReset = buttonReset;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
+
import { style } from "@vanilla-extract/css";
|
|
3
|
+
import { blocksLayer } from "../../lib/css/layers/layers.css.mjs";
|
|
4
|
+
setFileScope("src/components/Button/Button.css.ts?used", "blocks");
|
|
5
|
+
const buttonReset = style({
|
|
6
|
+
"@layer": {
|
|
7
|
+
[blocksLayer]: {
|
|
8
|
+
all: "unset",
|
|
9
|
+
cursor: "pointer"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}, "buttonReset");
|
|
13
|
+
endFileScope();
|
|
14
|
+
export {
|
|
15
|
+
buttonReset
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
|
+
const css = require("@vanilla-extract/css");
|
|
4
|
+
fileScope.setFileScope("src/lib/css/layers/layers.css.ts?used", "blocks");
|
|
5
|
+
const blocksLayer = css.layer("blockle-blocks");
|
|
6
|
+
fileScope.endFileScope();
|
|
7
|
+
exports.blocksLayer = blocksLayer;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
+
import { layer } from "@vanilla-extract/css";
|
|
3
|
+
setFileScope("src/lib/css/layers/layers.css.ts?used", "blocks");
|
|
4
|
+
const blocksLayer = layer("blockle-blocks");
|
|
5
|
+
endFileScope();
|
|
6
|
+
export {
|
|
7
|
+
blocksLayer
|
|
8
|
+
};
|
|
@@ -1,37 +1 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
|
-
const css = require("@vanilla-extract/css");
|
|
4
|
-
fileScope.setFileScope("src/lib/css/reset/reset.css.ts?used", "blocks");
|
|
5
|
-
css.globalStyle(":where(*, *::before, *::after)", {
|
|
6
|
-
boxSizing: "inherit"
|
|
7
|
-
});
|
|
8
|
-
css.globalStyle(":where(html)", {
|
|
9
|
-
lineHeight: 1.5,
|
|
10
|
-
boxSizing: "border-box",
|
|
11
|
-
WebkitFontSmoothing: "antialiased"
|
|
12
|
-
});
|
|
13
|
-
css.globalStyle(":where(body)", {
|
|
14
|
-
margin: 0,
|
|
15
|
-
padding: 0,
|
|
16
|
-
fontFamily: "Calibri, sans-serif"
|
|
17
|
-
});
|
|
18
|
-
css.globalStyle(":where(button, input, optgroup, select, textarea)", {
|
|
19
|
-
fontFamily: "inherit",
|
|
20
|
-
fontSize: "100%",
|
|
21
|
-
lineHeight: "inherit",
|
|
22
|
-
margin: 0,
|
|
23
|
-
padding: 0
|
|
24
|
-
});
|
|
25
|
-
css.globalStyle(":where(p, ul, ol, pre, blockquote)", {
|
|
26
|
-
margin: 0,
|
|
27
|
-
padding: 0
|
|
28
|
-
});
|
|
29
|
-
css.globalStyle(":where(h1, h2, h3, h4, h5, h6)", {
|
|
30
|
-
margin: 0,
|
|
31
|
-
padding: 0,
|
|
32
|
-
fontSize: "inherit"
|
|
33
|
-
});
|
|
34
|
-
css.globalStyle(":where(pre)", {
|
|
35
|
-
whiteSpace: "pre-wrap"
|
|
36
|
-
});
|
|
37
|
-
fileScope.endFileScope();
|
|
@@ -1,36 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { globalStyle } from "@vanilla-extract/css";
|
|
3
|
-
setFileScope("src/lib/css/reset/reset.css.ts?used", "blocks");
|
|
4
|
-
globalStyle(":where(*, *::before, *::after)", {
|
|
5
|
-
boxSizing: "inherit"
|
|
6
|
-
});
|
|
7
|
-
globalStyle(":where(html)", {
|
|
8
|
-
lineHeight: 1.5,
|
|
9
|
-
boxSizing: "border-box",
|
|
10
|
-
WebkitFontSmoothing: "antialiased"
|
|
11
|
-
});
|
|
12
|
-
globalStyle(":where(body)", {
|
|
13
|
-
margin: 0,
|
|
14
|
-
padding: 0,
|
|
15
|
-
fontFamily: "Calibri, sans-serif"
|
|
16
|
-
});
|
|
17
|
-
globalStyle(":where(button, input, optgroup, select, textarea)", {
|
|
18
|
-
fontFamily: "inherit",
|
|
19
|
-
fontSize: "100%",
|
|
20
|
-
lineHeight: "inherit",
|
|
21
|
-
margin: 0,
|
|
22
|
-
padding: 0
|
|
23
|
-
});
|
|
24
|
-
globalStyle(":where(p, ul, ol, pre, blockquote)", {
|
|
25
|
-
margin: 0,
|
|
26
|
-
padding: 0
|
|
27
|
-
});
|
|
28
|
-
globalStyle(":where(h1, h2, h3, h4, h5, h6)", {
|
|
29
|
-
margin: 0,
|
|
30
|
-
padding: 0,
|
|
31
|
-
fontSize: "inherit"
|
|
32
|
-
});
|
|
33
|
-
globalStyle(":where(pre)", {
|
|
34
|
-
whiteSpace: "pre-wrap"
|
|
35
|
-
});
|
|
36
|
-
endFileScope();
|
|
1
|
+
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const css = require("@vanilla-extract/css");
|
|
3
|
-
const styles_lib_css_theme_vars_css_cjs = require("./vars.css.cjs");
|
|
4
3
|
const styles_lib_css_theme_makeVanillaTheme_cjs = require("./makeVanillaTheme.cjs");
|
|
4
|
+
const styles_lib_css_theme_vars_css_cjs = require("./vars.css.cjs");
|
|
5
5
|
const makeTheme = (theme) => {
|
|
6
6
|
return {
|
|
7
|
-
vars: css.createTheme(styles_lib_css_theme_vars_css_cjs.vars, styles_lib_css_theme_makeVanillaTheme_cjs.makeVanillaTheme(theme.tokens))
|
|
7
|
+
vars: css.createTheme(styles_lib_css_theme_vars_css_cjs.vars, styles_lib_css_theme_makeVanillaTheme_cjs.makeVanillaTheme(theme.tokens)),
|
|
8
|
+
components: theme.components
|
|
8
9
|
};
|
|
9
10
|
};
|
|
10
11
|
exports.makeTheme = makeTheme;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { createTheme } from "@vanilla-extract/css";
|
|
2
|
-
import { vars } from "./vars.css.mjs";
|
|
3
2
|
import { makeVanillaTheme } from "./makeVanillaTheme.mjs";
|
|
3
|
+
import { vars } from "./vars.css.mjs";
|
|
4
4
|
const makeTheme = (theme) => {
|
|
5
5
|
return {
|
|
6
|
-
vars: createTheme(vars, makeVanillaTheme(theme.tokens))
|
|
6
|
+
vars: createTheme(vars, makeVanillaTheme(theme.tokens)),
|
|
7
|
+
components: theme.components
|
|
7
8
|
};
|
|
8
9
|
};
|
|
9
10
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const makeVanillaTheme = (tokens) => {
|
|
3
3
|
return {
|
|
4
|
-
space: tokens.
|
|
4
|
+
space: tokens.spacing,
|
|
5
5
|
borderRadius: tokens.border.radius,
|
|
6
6
|
color: tokens.color,
|
|
7
7
|
borderWidth: tokens.border.width,
|
|
@@ -10,7 +10,10 @@ const makeVanillaTheme = (tokens) => {
|
|
|
10
10
|
fontWeight: tokens.typography.fontWeight,
|
|
11
11
|
lineHeight: tokens.typography.lineHeight,
|
|
12
12
|
transition: tokens.transition,
|
|
13
|
-
shadow: tokens.shadow
|
|
13
|
+
shadow: tokens.shadow,
|
|
14
|
+
focus: {
|
|
15
|
+
boxShadow: tokens.focus.boxShadow
|
|
16
|
+
}
|
|
14
17
|
};
|
|
15
18
|
};
|
|
16
19
|
exports.makeVanillaTheme = makeVanillaTheme;
|