@blockle/blocks 0.2.0 → 0.2.2
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/index.cjs +132 -3118
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +131 -3117
- package/dist/reset.css.d.ts +129 -15
- package/dist/styles/lib/css/atoms/atomicProperties.cjs +4 -2
- package/dist/styles/lib/css/atoms/atomicProperties.mjs +4 -2
- package/dist/styles/lib/css/reset/reset.css.cjs +3 -2
- package/dist/styles/lib/css/reset/reset.css.mjs +3 -2
- package/dist/styles/lib/css/theme/makeVanillaTheme.cjs +1 -0
- package/dist/styles/lib/css/theme/makeVanillaTheme.mjs +1 -0
- package/dist/styles/lib/css/theme/tokens.cjs +7 -0
- package/dist/styles/lib/css/theme/tokens.mjs +7 -0
- package/dist/styles/themes/momotaro/tokens.cjs +9 -2
- package/dist/styles/themes/momotaro/tokens.mjs +9 -2
- package/package.json +18 -16
- package/dist/side-effects/lib/css/atoms/atoms.cjs +0 -2
- package/dist/side-effects/lib/css/atoms/atoms.mjs +0 -1
- package/dist/side-effects/themes/momotaro/index.cjs +0 -2
- package/dist/side-effects/themes/momotaro/index.mjs +0 -1
package/dist/reset.css.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { ForwardRefComponent } from '@radix-ui/react-polymorphic';
|
|
1
2
|
import * as _vanilla_extract_sprinkles from '@vanilla-extract/sprinkles';
|
|
3
|
+
import { HTMLProps } from 'react';
|
|
2
4
|
|
|
3
5
|
type BlocksProviderProps = {
|
|
4
6
|
children: React.ReactNode;
|
|
@@ -20,6 +22,7 @@ declare const atoms: ((props: {
|
|
|
20
22
|
readonly fontWeight?: ("medium" | "regular" | "strong") | undefined;
|
|
21
23
|
readonly height?: "auto" | "full" | undefined;
|
|
22
24
|
readonly left?: 0 | undefined;
|
|
25
|
+
readonly lineHeight?: ("xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
23
26
|
readonly maxHeight?: "full" | undefined;
|
|
24
27
|
readonly maxWidth?: "full" | undefined;
|
|
25
28
|
readonly opacity?: 0 | 1 | undefined;
|
|
@@ -30,21 +33,22 @@ declare const atoms: ((props: {
|
|
|
30
33
|
readonly right?: 0 | undefined;
|
|
31
34
|
readonly textDecoration?: "none" | "overline" | "line-through" | "underline" | undefined;
|
|
32
35
|
readonly textTransform?: "lowercase" | "uppercase" | "capitalize" | undefined;
|
|
36
|
+
readonly textWrap?: "balance" | "wrap" | undefined;
|
|
33
37
|
readonly top?: 0 | undefined;
|
|
38
|
+
readonly transition?: ("slow" | "normal" | "fast") | undefined;
|
|
34
39
|
readonly userSelect?: "none" | undefined;
|
|
35
40
|
readonly whiteSpace?: "pre-wrap" | "nowrap" | "pre" | "pre-line" | undefined;
|
|
36
41
|
readonly width?: "auto" | "fit-content" | "full" | undefined;
|
|
37
42
|
readonly wordBreak?: "break-word" | undefined;
|
|
38
43
|
readonly wordWrap?: "break-word" | undefined;
|
|
39
|
-
readonly transition?: ("slow" | "normal" | "fast") | undefined;
|
|
40
44
|
inset?: 0 | undefined;
|
|
41
45
|
} & {
|
|
42
|
-
readonly alignItems?: ("
|
|
43
|
-
mobile?: "
|
|
44
|
-
tablet?: "
|
|
45
|
-
desktop?: "
|
|
46
|
-
wide?: "
|
|
47
|
-
} | undefined) | _vanilla_extract_sprinkles.ResponsiveArray<1 | 2 | 3 | 4, "
|
|
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>;
|
|
48
52
|
readonly columnGap?: (("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | {
|
|
49
53
|
mobile?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
50
54
|
tablet?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
@@ -159,12 +163,12 @@ declare const atoms: ((props: {
|
|
|
159
163
|
desktop?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
160
164
|
wide?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
161
165
|
} | undefined) | _vanilla_extract_sprinkles.ResponsiveArray<1 | 2 | 3 | 4, ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | null>;
|
|
162
|
-
readonly position?: ("
|
|
163
|
-
mobile?: "
|
|
164
|
-
tablet?: "
|
|
165
|
-
desktop?: "
|
|
166
|
-
wide?: "
|
|
167
|
-
} | undefined) | _vanilla_extract_sprinkles.ResponsiveArray<1 | 2 | 3 | 4, "
|
|
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>;
|
|
168
172
|
readonly rowGap?: (("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | {
|
|
169
173
|
mobile?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
170
174
|
tablet?: ("none" | "gutter" | "xsmall" | "small" | "medium" | "large" | "xlarge") | undefined;
|
|
@@ -220,8 +224,108 @@ declare const atoms: ((props: {
|
|
|
220
224
|
wide?: "center" | "flex-start" | "flex-end" | undefined;
|
|
221
225
|
} | undefined) | _vanilla_extract_sprinkles.ResponsiveArray<1 | 2 | 3 | 4, "center" | "flex-start" | "flex-end" | null>;
|
|
222
226
|
}) => string) & {
|
|
223
|
-
properties: Set<"borderRadius" | "color" | "fontFamily" | "fontSize" | "fontWeight" | "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" | "marginX" | "marginY" | "paddingX" | "paddingY">;
|
|
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'];
|
|
224
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>;
|
|
225
329
|
|
|
226
330
|
declare const vars: {
|
|
227
331
|
space: {
|
|
@@ -276,6 +380,13 @@ declare const vars: {
|
|
|
276
380
|
regular: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
277
381
|
strong: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
278
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
|
+
};
|
|
279
390
|
transition: {
|
|
280
391
|
slow: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
281
392
|
normal: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
@@ -288,8 +399,11 @@ declare const vars: {
|
|
|
288
399
|
};
|
|
289
400
|
};
|
|
290
401
|
|
|
402
|
+
type Args = null | undefined | boolean | string;
|
|
403
|
+
declare const classnames: (...args: Args[]) => string | undefined;
|
|
404
|
+
|
|
291
405
|
declare const theme: {
|
|
292
406
|
vars: string;
|
|
293
407
|
};
|
|
294
408
|
|
|
295
|
-
export { BlocksProvider, atoms, theme, vars };
|
|
409
|
+
export { BlocksProvider, BlocksProviderProps, Box, BoxProps, Heading, HeadingProps, Inline, InlineProps, Stack, StackProps, Text, TextProps, atoms, classnames, theme, vars };
|
|
@@ -12,6 +12,7 @@ const unresponsiveProperties = {
|
|
|
12
12
|
fontWeight: styles_lib_css_theme_vars_css_cjs.vars.fontWeight,
|
|
13
13
|
height: { auto: "auto", full: "100%" },
|
|
14
14
|
left: [0],
|
|
15
|
+
lineHeight: styles_lib_css_theme_vars_css_cjs.vars.lineHeight,
|
|
15
16
|
maxHeight: { full: "100%" },
|
|
16
17
|
maxWidth: { full: "100%" },
|
|
17
18
|
opacity: [0, 1],
|
|
@@ -22,13 +23,14 @@ const unresponsiveProperties = {
|
|
|
22
23
|
right: [0],
|
|
23
24
|
textDecoration: ["overline", "line-through", "underline", "none"],
|
|
24
25
|
textTransform: ["lowercase", "uppercase", "capitalize"],
|
|
26
|
+
textWrap: ["balance", "wrap"],
|
|
25
27
|
top: [0],
|
|
28
|
+
transition: styles_lib_css_theme_vars_css_cjs.vars.transition,
|
|
26
29
|
userSelect: ["none"],
|
|
27
30
|
whiteSpace: ["nowrap", "pre", "pre-line", "pre-wrap"],
|
|
28
31
|
width: { auto: "auto", full: "100%", "fit-content": "fit-content" },
|
|
29
32
|
wordBreak: ["break-word"],
|
|
30
|
-
wordWrap: ["break-word"]
|
|
31
|
-
transition: styles_lib_css_theme_vars_css_cjs.vars.transition
|
|
33
|
+
wordWrap: ["break-word"]
|
|
32
34
|
};
|
|
33
35
|
const marginSpace = { auto: "auto", ...styles_lib_css_theme_vars_css_cjs.vars.space };
|
|
34
36
|
const responsiveProperties = {
|
|
@@ -11,6 +11,7 @@ const unresponsiveProperties = {
|
|
|
11
11
|
fontWeight: vars.fontWeight,
|
|
12
12
|
height: { auto: "auto", full: "100%" },
|
|
13
13
|
left: [0],
|
|
14
|
+
lineHeight: vars.lineHeight,
|
|
14
15
|
maxHeight: { full: "100%" },
|
|
15
16
|
maxWidth: { full: "100%" },
|
|
16
17
|
opacity: [0, 1],
|
|
@@ -21,13 +22,14 @@ const unresponsiveProperties = {
|
|
|
21
22
|
right: [0],
|
|
22
23
|
textDecoration: ["overline", "line-through", "underline", "none"],
|
|
23
24
|
textTransform: ["lowercase", "uppercase", "capitalize"],
|
|
25
|
+
textWrap: ["balance", "wrap"],
|
|
24
26
|
top: [0],
|
|
27
|
+
transition: vars.transition,
|
|
25
28
|
userSelect: ["none"],
|
|
26
29
|
whiteSpace: ["nowrap", "pre", "pre-line", "pre-wrap"],
|
|
27
30
|
width: { auto: "auto", full: "100%", "fit-content": "fit-content" },
|
|
28
31
|
wordBreak: ["break-word"],
|
|
29
|
-
wordWrap: ["break-word"]
|
|
30
|
-
transition: vars.transition
|
|
32
|
+
wordWrap: ["break-word"]
|
|
31
33
|
};
|
|
32
34
|
const marginSpace = { auto: "auto", ...vars.space };
|
|
33
35
|
const responsiveProperties = {
|
|
@@ -6,8 +6,9 @@ css.globalStyle(":where(*, *::before, *::after)", {
|
|
|
6
6
|
boxSizing: "inherit"
|
|
7
7
|
});
|
|
8
8
|
css.globalStyle(":where(html)", {
|
|
9
|
-
lineHeight: 1.
|
|
10
|
-
boxSizing: "border-box"
|
|
9
|
+
lineHeight: 1.5,
|
|
10
|
+
boxSizing: "border-box",
|
|
11
|
+
WebkitFontSmoothing: "antialiased"
|
|
11
12
|
});
|
|
12
13
|
css.globalStyle(":where(body)", {
|
|
13
14
|
margin: 0,
|
|
@@ -5,8 +5,9 @@ globalStyle(":where(*, *::before, *::after)", {
|
|
|
5
5
|
boxSizing: "inherit"
|
|
6
6
|
});
|
|
7
7
|
globalStyle(":where(html)", {
|
|
8
|
-
lineHeight: 1.
|
|
9
|
-
boxSizing: "border-box"
|
|
8
|
+
lineHeight: 1.5,
|
|
9
|
+
boxSizing: "border-box",
|
|
10
|
+
WebkitFontSmoothing: "antialiased"
|
|
10
11
|
});
|
|
11
12
|
globalStyle(":where(body)", {
|
|
12
13
|
margin: 0,
|
|
@@ -8,6 +8,7 @@ const makeVanillaTheme = (tokens) => {
|
|
|
8
8
|
fontFamily: tokens.typography.fontFamily,
|
|
9
9
|
fontSize: tokens.typography.fontSize,
|
|
10
10
|
fontWeight: tokens.typography.fontWeight,
|
|
11
|
+
lineHeight: tokens.typography.lineHeight,
|
|
11
12
|
transition: tokens.transition,
|
|
12
13
|
shadow: tokens.shadow
|
|
13
14
|
};
|
|
@@ -7,6 +7,7 @@ const makeVanillaTheme = (tokens) => {
|
|
|
7
7
|
fontFamily: tokens.typography.fontFamily,
|
|
8
8
|
fontSize: tokens.typography.fontSize,
|
|
9
9
|
fontWeight: tokens.typography.fontWeight,
|
|
10
|
+
lineHeight: tokens.typography.lineHeight,
|
|
10
11
|
transition: tokens.transition,
|
|
11
12
|
shadow: tokens.shadow
|
|
12
13
|
};
|
|
@@ -50,8 +50,8 @@ const tokens = {
|
|
|
50
50
|
},
|
|
51
51
|
typography: {
|
|
52
52
|
fontFamily: {
|
|
53
|
-
standard: "
|
|
54
|
-
secondary: "
|
|
53
|
+
standard: '"Rubik", sans-serif',
|
|
54
|
+
secondary: '"Rubik", sans-serif'
|
|
55
55
|
},
|
|
56
56
|
fontSize: {
|
|
57
57
|
xsmall: "12px",
|
|
@@ -64,6 +64,13 @@ const tokens = {
|
|
|
64
64
|
regular: 400,
|
|
65
65
|
medium: 500,
|
|
66
66
|
strong: 700
|
|
67
|
+
},
|
|
68
|
+
lineHeight: {
|
|
69
|
+
xsmall: "1rem",
|
|
70
|
+
small: "1.25rem",
|
|
71
|
+
medium: "1.5rem",
|
|
72
|
+
large: "1.75rem",
|
|
73
|
+
xlarge: "2rem"
|
|
67
74
|
}
|
|
68
75
|
}
|
|
69
76
|
};
|
|
@@ -49,8 +49,8 @@ const tokens = {
|
|
|
49
49
|
},
|
|
50
50
|
typography: {
|
|
51
51
|
fontFamily: {
|
|
52
|
-
standard: "
|
|
53
|
-
secondary: "
|
|
52
|
+
standard: '"Rubik", sans-serif',
|
|
53
|
+
secondary: '"Rubik", sans-serif'
|
|
54
54
|
},
|
|
55
55
|
fontSize: {
|
|
56
56
|
xsmall: "12px",
|
|
@@ -63,6 +63,13 @@ const tokens = {
|
|
|
63
63
|
regular: 400,
|
|
64
64
|
medium: 500,
|
|
65
65
|
strong: 700
|
|
66
|
+
},
|
|
67
|
+
lineHeight: {
|
|
68
|
+
xsmall: "1rem",
|
|
69
|
+
small: "1.25rem",
|
|
70
|
+
medium: "1.5rem",
|
|
71
|
+
large: "1.75rem",
|
|
72
|
+
xlarge: "2rem"
|
|
66
73
|
}
|
|
67
74
|
}
|
|
68
75
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockle/blocks",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Blocks design system",
|
|
5
5
|
"repository": "git@github.com:Blockle/blocks.git",
|
|
6
6
|
"license": "MIT",
|
|
@@ -33,34 +33,36 @@
|
|
|
33
33
|
],
|
|
34
34
|
"scripts": {
|
|
35
35
|
"build": "crackle package",
|
|
36
|
-
"fix": "crackle fix"
|
|
36
|
+
"fix": "crackle fix",
|
|
37
|
+
"ts": "tsc --noemit --project ./tsconfig.json"
|
|
37
38
|
},
|
|
38
39
|
"dependencies": {
|
|
39
|
-
"@
|
|
40
|
+
"@radix-ui/react-polymorphic": "^0.0.14",
|
|
41
|
+
"@vanilla-extract/css": "^1.11.1",
|
|
40
42
|
"@vanilla-extract/css-utils": "^0.1.3",
|
|
41
|
-
"@vanilla-extract/sprinkles": "^1.6.0"
|
|
43
|
+
"@vanilla-extract/sprinkles": "^1.6.0",
|
|
44
|
+
"react": "^18.2.0",
|
|
45
|
+
"react-dom": "^18.2.0"
|
|
42
46
|
},
|
|
43
47
|
"devDependencies": {
|
|
44
|
-
"@crackle/cli": "^0.
|
|
45
|
-
"@crackle/core": "^0.
|
|
46
|
-
"@types/react": "^18.2.
|
|
47
|
-
"@types/react-dom": "^18.2.
|
|
48
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
49
|
-
"@typescript-eslint/parser": "^5.
|
|
48
|
+
"@crackle/cli": "^0.12.0",
|
|
49
|
+
"@crackle/core": "^0.25.0",
|
|
50
|
+
"@types/react": "^18.2.13",
|
|
51
|
+
"@types/react-dom": "^18.2.6",
|
|
52
|
+
"@typescript-eslint/eslint-plugin": "^5.60.0",
|
|
53
|
+
"@typescript-eslint/parser": "^5.60.0",
|
|
50
54
|
"cross-env": "^7.0.3",
|
|
51
|
-
"eslint": "^8.
|
|
55
|
+
"eslint": "^8.43.0",
|
|
52
56
|
"eslint-config-prettier": "^8.8.0",
|
|
53
|
-
"eslint-plugin-jest": "^27.2.
|
|
57
|
+
"eslint-plugin-jest": "^27.2.2",
|
|
54
58
|
"eslint-plugin-prettier": "^4.2.1",
|
|
55
59
|
"eslint-plugin-react": "^7.32.2",
|
|
56
60
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
57
61
|
"eslint-plugin-storybook": "^0.6.12",
|
|
58
62
|
"eslint-plugin-unicorn": "^47.0.0",
|
|
59
63
|
"prettier": "^2.8.8",
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"typescript": "^5.0.4",
|
|
63
|
-
"vitest": "^0.31.1"
|
|
64
|
+
"typescript": "^5.1.3",
|
|
65
|
+
"vitest": "^0.32.2"
|
|
64
66
|
},
|
|
65
67
|
"packageManager": "yarn@1.22.19"
|
|
66
68
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../../../../styles/lib/css/atoms/sprinkles.css.mjs";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../../../styles/themes/momotaro/momotaroTheme.css.mjs";
|