@blockle/blocks 0.15.3 → 0.16.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/dist/index.cjs +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +2 -2
- package/dist/momotaro.chunk.d.ts +2 -2
- package/dist/reset.cjs +3 -0
- package/dist/reset.mjs +2 -0
- package/dist/styles/lib/css/atoms/atoms.cjs +1 -0
- package/dist/styles/lib/css/atoms/atoms.mjs +1 -1
- package/dist/styles/lib/css/atoms/breakpoints.cjs +4 -2
- package/dist/styles/lib/css/atoms/breakpoints.mjs +4 -2
- package/dist/styles/lib/css/atoms/index.cjs +1 -0
- package/dist/styles/lib/css/atoms/index.mjs +1 -1
- package/dist/styles/lib/css/atoms/sprinkles.css.cjs +3 -3
- package/dist/styles/lib/css/atoms/sprinkles.css.mjs +4 -4
- package/dist/styles/lib/css/reset/reset.css.cjs +37 -0
- package/dist/styles/lib/css/reset/reset.css.mjs +37 -1
- package/dist/styles/lib/theme/tokens.cjs +3 -3
- package/dist/styles/lib/theme/tokens.mjs +3 -3
- package/dist/styles/themes/momotaro/index.cjs +1 -0
- package/dist/styles/themes/momotaro/index.mjs +1 -1
- package/package.json +11 -8
- package/reset/index.d.ts +1 -0
- package/reset/package.json +5 -0
- package/dist/reset.css.cjs +0 -4
- package/dist/reset.css.mjs +0 -3
- package/reset.css/index.d.ts +0 -1
- package/reset.css/package.json +0 -5
- /package/dist/{reset.css.d.mts → reset.d.mts} +0 -0
- /package/dist/{reset.css.d.ts → reset.d.ts} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -391,7 +391,7 @@ const useRootAriaHidden = (hidden) => {
|
|
|
391
391
|
}
|
|
392
392
|
context.setAriaHidden(hidden);
|
|
393
393
|
};
|
|
394
|
-
exports.
|
|
394
|
+
exports.minMediaQuery = styles_lib_css_atoms_breakpoints_cjs.minMediaQuery;
|
|
395
395
|
exports.style = styles_lib_css_style_style_cjs.style;
|
|
396
396
|
exports.makeComponentTheme = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme;
|
|
397
397
|
exports.makeTheme = styles_lib_theme_makeTheme_cjs.makeTheme;
|
package/dist/index.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { BlocksProvider, BlocksProviderProps, Box, BoxProps, Button, ButtonProps, Checkbox, CheckboxProps, Dialog, DialogProps, Divider, DividerProps, Heading, HeadingProps, Inline, InlineProps, Input, InputProps, Label, LabelProps, Link, LinkProps, Portal, PortalProps, Progress, ProgressProps, Radio, RadioProps, Select, SelectProps, Slider, SliderProps, Spinner, SpinnerProps, Stack, StackProps, Switch, SwitchProps, Text, TextProps, ThemeComponentsStyles, ThemeTokens, Tooltip, TooltipProps, atoms,
|
|
1
|
+
export { BlocksProvider, BlocksProviderProps, Box, BoxProps, Button, ButtonProps, Checkbox, CheckboxProps, Dialog, DialogProps, Divider, DividerProps, Heading, HeadingProps, Inline, InlineProps, Input, InputProps, Label, LabelProps, Link, LinkProps, Portal, PortalProps, Progress, ProgressProps, Radio, RadioProps, Select, SelectProps, Slider, SliderProps, Spinner, SpinnerProps, Stack, StackProps, Switch, SwitchProps, Text, TextProps, ThemeComponentsStyles, ThemeTokens, Tooltip, TooltipProps, atoms, classnames, createAsChildTemplate, makeComponentTheme, makeTheme, minMediaQuery, style, useComponentStyleDefaultProps, useComponentStyles, useIsomorphicLayoutEffect, useKeyboard, usePreventBodyScroll, useRootAriaHidden, vars } from './momotaro.chunk.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { BlocksProvider, BlocksProviderProps, Box, BoxProps, Button, ButtonProps, Checkbox, CheckboxProps, Dialog, DialogProps, Divider, DividerProps, Heading, HeadingProps, Inline, InlineProps, Input, InputProps, Label, LabelProps, Link, LinkProps, Portal, PortalProps, Progress, ProgressProps, Radio, RadioProps, Select, SelectProps, Slider, SliderProps, Spinner, SpinnerProps, Stack, StackProps, Switch, SwitchProps, Text, TextProps, ThemeComponentsStyles, ThemeTokens, Tooltip, TooltipProps, atoms,
|
|
1
|
+
export { BlocksProvider, BlocksProviderProps, Box, BoxProps, Button, ButtonProps, Checkbox, CheckboxProps, Dialog, DialogProps, Divider, DividerProps, Heading, HeadingProps, Inline, InlineProps, Input, InputProps, Label, LabelProps, Link, LinkProps, Portal, PortalProps, Progress, ProgressProps, Radio, RadioProps, Select, SelectProps, Slider, SliderProps, Spinner, SpinnerProps, Stack, StackProps, Switch, SwitchProps, Text, TextProps, ThemeComponentsStyles, ThemeTokens, Tooltip, TooltipProps, atoms, classnames, createAsChildTemplate, makeComponentTheme, makeTheme, minMediaQuery, style, useComponentStyleDefaultProps, useComponentStyles, useIsomorphicLayoutEffect, useKeyboard, usePreventBodyScroll, useRootAriaHidden, vars } from './momotaro.chunk.js';
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { minMediaQuery } from "./styles/lib/css/atoms/breakpoints.mjs";
|
|
4
4
|
import { style } from "./styles/lib/css/style/style.mjs";
|
|
5
5
|
import { makeComponentTheme } from "./styles/lib/theme/makeComponentTheme.mjs";
|
|
6
6
|
import { makeTheme } from "./styles/lib/theme/makeTheme.mjs";
|
|
@@ -416,11 +416,11 @@ export {
|
|
|
416
416
|
Text,
|
|
417
417
|
Tooltip,
|
|
418
418
|
atoms,
|
|
419
|
-
breakpointQuery,
|
|
420
419
|
classnames,
|
|
421
420
|
createAsChildTemplate,
|
|
422
421
|
makeComponentTheme,
|
|
423
422
|
makeTheme,
|
|
423
|
+
minMediaQuery,
|
|
424
424
|
style,
|
|
425
425
|
useComponentStyleDefaultProps,
|
|
426
426
|
useComponentStyles,
|
package/dist/momotaro.chunk.d.ts
CHANGED
|
@@ -244,7 +244,7 @@ declare const breakpoints: {
|
|
|
244
244
|
readonly wide: 1200;
|
|
245
245
|
};
|
|
246
246
|
type Breakpoint = keyof typeof breakpoints;
|
|
247
|
-
declare
|
|
247
|
+
declare function minMediaQuery(breakpoint: Exclude<Breakpoint, 'mobile'>): string;
|
|
248
248
|
|
|
249
249
|
type AnyString = string & {};
|
|
250
250
|
/**
|
|
@@ -1174,4 +1174,4 @@ declare const classnames: (...args: Args[]) => string | undefined;
|
|
|
1174
1174
|
|
|
1175
1175
|
declare const momotaro: Theme;
|
|
1176
1176
|
|
|
1177
|
-
export { BlocksProvider, type BlocksProviderProps, Box, type BoxProps, Button, type ButtonProps, Checkbox, type CheckboxProps, Dialog, type DialogProps, Divider, type DividerProps, Heading, type HeadingProps, Inline, type InlineProps, Input, type InputProps, Label, type LabelProps, Link, type LinkProps, Portal, type PortalProps, Progress, type ProgressProps, Radio, type RadioProps, Select, type SelectProps, Slider, type SliderProps, Spinner, type SpinnerProps, Stack, type StackProps, Switch, type SwitchProps, Text, type TextProps, type ThemeComponentsStyles, type ThemeTokens, Tooltip, type TooltipProps, atoms,
|
|
1177
|
+
export { BlocksProvider, type BlocksProviderProps, Box, type BoxProps, Button, type ButtonProps, Checkbox, type CheckboxProps, Dialog, type DialogProps, Divider, type DividerProps, Heading, type HeadingProps, Inline, type InlineProps, Input, type InputProps, Label, type LabelProps, Link, type LinkProps, Portal, type PortalProps, Progress, type ProgressProps, Radio, type RadioProps, Select, type SelectProps, Slider, type SliderProps, Spinner, type SpinnerProps, Stack, type StackProps, Switch, type SwitchProps, Text, type TextProps, type ThemeComponentsStyles, type ThemeTokens, Tooltip, type TooltipProps, atoms, classnames, createAsChildTemplate, makeComponentTheme, makeTheme, minMediaQuery, momotaro, style, useComponentStyleDefaultProps, useComponentStyles, useIsomorphicLayoutEffect, useKeyboard, usePreventBodyScroll, useRootAriaHidden, vars };
|
package/dist/reset.cjs
ADDED
package/dist/reset.mjs
ADDED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import "./sprinkles.css.mjs";
|
|
@@ -6,6 +6,8 @@ const breakpoints = {
|
|
|
6
6
|
desktop: 992,
|
|
7
7
|
wide: 1200
|
|
8
8
|
};
|
|
9
|
-
|
|
9
|
+
function minMediaQuery(breakpoint) {
|
|
10
|
+
return `screen and (min-width: ${breakpoints[breakpoint]}px)`;
|
|
11
|
+
}
|
|
10
12
|
exports.breakpointNames = breakpointNames;
|
|
11
|
-
exports.
|
|
13
|
+
exports.minMediaQuery = minMediaQuery;
|
|
@@ -5,8 +5,10 @@ const breakpoints = {
|
|
|
5
5
|
desktop: 992,
|
|
6
6
|
wide: 1200
|
|
7
7
|
};
|
|
8
|
-
|
|
8
|
+
function minMediaQuery(breakpoint) {
|
|
9
|
+
return `screen and (min-width: ${breakpoints[breakpoint]}px)`;
|
|
10
|
+
}
|
|
9
11
|
export {
|
|
10
12
|
breakpointNames,
|
|
11
|
-
|
|
13
|
+
minMediaQuery
|
|
12
14
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import "./sprinkles.css.mjs";
|
|
@@ -15,13 +15,13 @@ const responsiveAtomicProperties = sprinkles.defineProperties({
|
|
|
15
15
|
conditions: {
|
|
16
16
|
mobile: {},
|
|
17
17
|
tablet: {
|
|
18
|
-
"@media": styles_lib_css_atoms_breakpoints_cjs.
|
|
18
|
+
"@media": styles_lib_css_atoms_breakpoints_cjs.minMediaQuery("tablet")
|
|
19
19
|
},
|
|
20
20
|
desktop: {
|
|
21
|
-
"@media": styles_lib_css_atoms_breakpoints_cjs.
|
|
21
|
+
"@media": styles_lib_css_atoms_breakpoints_cjs.minMediaQuery("desktop")
|
|
22
22
|
},
|
|
23
23
|
wide: {
|
|
24
|
-
"@media": styles_lib_css_atoms_breakpoints_cjs.
|
|
24
|
+
"@media": styles_lib_css_atoms_breakpoints_cjs.minMediaQuery("wide")
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
responsiveArray: styles_lib_css_atoms_breakpoints_cjs.breakpointNames,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
2
|
import { defineProperties, createSprinkles } from "@vanilla-extract/sprinkles";
|
|
3
3
|
import { unresponsiveProperties, responsiveProperties } from "./atomicProperties.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { minMediaQuery, breakpointNames } from "./breakpoints.mjs";
|
|
5
5
|
setFileScope("src/lib/css/atoms/sprinkles.css.ts", "@blockle/blocks");
|
|
6
6
|
const unresponsiveAtomicProperties = defineProperties({
|
|
7
7
|
properties: unresponsiveProperties,
|
|
@@ -14,13 +14,13 @@ const responsiveAtomicProperties = defineProperties({
|
|
|
14
14
|
conditions: {
|
|
15
15
|
mobile: {},
|
|
16
16
|
tablet: {
|
|
17
|
-
"@media":
|
|
17
|
+
"@media": minMediaQuery("tablet")
|
|
18
18
|
},
|
|
19
19
|
desktop: {
|
|
20
|
-
"@media":
|
|
20
|
+
"@media": minMediaQuery("desktop")
|
|
21
21
|
},
|
|
22
22
|
wide: {
|
|
23
|
-
"@media":
|
|
23
|
+
"@media": minMediaQuery("wide")
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
responsiveArray: breakpointNames,
|
|
@@ -1 +1,38 @@
|
|
|
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", "@blockle/blocks");
|
|
5
|
+
css.globalStyle(":where(*, *::before, *::after)", {
|
|
6
|
+
boxSizing: "inherit",
|
|
7
|
+
WebkitTapHighlightColor: "transparent"
|
|
8
|
+
});
|
|
9
|
+
css.globalStyle(":where(html)", {
|
|
10
|
+
lineHeight: 1.5,
|
|
11
|
+
boxSizing: "border-box",
|
|
12
|
+
WebkitFontSmoothing: "antialiased"
|
|
13
|
+
});
|
|
14
|
+
css.globalStyle(":where(body)", {
|
|
15
|
+
margin: 0,
|
|
16
|
+
padding: 0,
|
|
17
|
+
fontFamily: "Calibri, sans-serif"
|
|
18
|
+
});
|
|
19
|
+
css.globalStyle(":where(button, input, optgroup, select, textarea)", {
|
|
20
|
+
fontFamily: "inherit",
|
|
21
|
+
fontSize: "100%",
|
|
22
|
+
lineHeight: "inherit",
|
|
23
|
+
margin: 0,
|
|
24
|
+
padding: 0
|
|
25
|
+
});
|
|
26
|
+
css.globalStyle(":where(p, ul, ol, pre, blockquote)", {
|
|
27
|
+
margin: 0,
|
|
28
|
+
padding: 0
|
|
29
|
+
});
|
|
30
|
+
css.globalStyle(":where(h1, h2, h3, h4, h5, h6)", {
|
|
31
|
+
margin: 0,
|
|
32
|
+
padding: 0,
|
|
33
|
+
fontSize: "inherit"
|
|
34
|
+
});
|
|
35
|
+
css.globalStyle(":where(pre)", {
|
|
36
|
+
whiteSpace: "pre-wrap"
|
|
37
|
+
});
|
|
38
|
+
fileScope.endFileScope();
|
|
@@ -1 +1,37 @@
|
|
|
1
|
-
|
|
1
|
+
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
+
import { globalStyle } from "@vanilla-extract/css";
|
|
3
|
+
setFileScope("src/lib/css/reset/reset.css.ts", "@blockle/blocks");
|
|
4
|
+
globalStyle(":where(*, *::before, *::after)", {
|
|
5
|
+
boxSizing: "inherit",
|
|
6
|
+
WebkitTapHighlightColor: "transparent"
|
|
7
|
+
});
|
|
8
|
+
globalStyle(":where(html)", {
|
|
9
|
+
lineHeight: 1.5,
|
|
10
|
+
boxSizing: "border-box",
|
|
11
|
+
WebkitFontSmoothing: "antialiased"
|
|
12
|
+
});
|
|
13
|
+
globalStyle(":where(body)", {
|
|
14
|
+
margin: 0,
|
|
15
|
+
padding: 0,
|
|
16
|
+
fontFamily: "Calibri, sans-serif"
|
|
17
|
+
});
|
|
18
|
+
globalStyle(":where(button, input, optgroup, select, textarea)", {
|
|
19
|
+
fontFamily: "inherit",
|
|
20
|
+
fontSize: "100%",
|
|
21
|
+
lineHeight: "inherit",
|
|
22
|
+
margin: 0,
|
|
23
|
+
padding: 0
|
|
24
|
+
});
|
|
25
|
+
globalStyle(":where(p, ul, ol, pre, blockquote)", {
|
|
26
|
+
margin: 0,
|
|
27
|
+
padding: 0
|
|
28
|
+
});
|
|
29
|
+
globalStyle(":where(h1, h2, h3, h4, h5, h6)", {
|
|
30
|
+
margin: 0,
|
|
31
|
+
padding: 0,
|
|
32
|
+
fontSize: "inherit"
|
|
33
|
+
});
|
|
34
|
+
globalStyle(":where(pre)", {
|
|
35
|
+
whiteSpace: "pre-wrap"
|
|
36
|
+
});
|
|
37
|
+
endFileScope();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import "./momotaro.css.mjs";
|
package/package.json
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockle/blocks",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.1",
|
|
4
4
|
"description": "Blocks design system",
|
|
5
5
|
"repository": "git@github.com:Blockle/blocks.git",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Niek Saarberg <n.saarberg@gmail.com>",
|
|
8
8
|
"sideEffects": [
|
|
9
|
-
"
|
|
9
|
+
"**/entries/reset.ts",
|
|
10
|
+
"**/reset/**",
|
|
11
|
+
"*.css.*",
|
|
12
|
+
"dist/reset.*",
|
|
10
13
|
"dist/side-effects/**"
|
|
11
14
|
],
|
|
12
15
|
"type": "module",
|
|
@@ -19,13 +22,13 @@
|
|
|
19
22
|
"import": "./dist/index.mjs",
|
|
20
23
|
"require": "./dist/index.cjs"
|
|
21
24
|
},
|
|
22
|
-
"./reset
|
|
25
|
+
"./reset": {
|
|
23
26
|
"types": {
|
|
24
|
-
"import": "./dist/reset.
|
|
25
|
-
"require": "./dist/reset.
|
|
27
|
+
"import": "./dist/reset.d.mts",
|
|
28
|
+
"require": "./dist/reset.d.ts"
|
|
26
29
|
},
|
|
27
|
-
"import": "./dist/reset.
|
|
28
|
-
"require": "./dist/reset.
|
|
30
|
+
"import": "./dist/reset.mjs",
|
|
31
|
+
"require": "./dist/reset.cjs"
|
|
29
32
|
},
|
|
30
33
|
"./themes/momotaro": {
|
|
31
34
|
"types": {
|
|
@@ -42,7 +45,7 @@
|
|
|
42
45
|
"types": "./dist/index.d.ts",
|
|
43
46
|
"files": [
|
|
44
47
|
"dist",
|
|
45
|
-
"reset
|
|
48
|
+
"reset",
|
|
46
49
|
"themes/momotaro"
|
|
47
50
|
],
|
|
48
51
|
"scripts": {
|
package/reset/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../dist/reset";
|
package/dist/reset.css.cjs
DELETED
package/dist/reset.css.mjs
DELETED
package/reset.css/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "../dist/reset.css";
|
package/reset.css/package.json
DELETED
|
File without changes
|
|
File without changes
|