@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 CHANGED
@@ -391,7 +391,7 @@ const useRootAriaHidden = (hidden) => {
391
391
  }
392
392
  context.setAriaHidden(hidden);
393
393
  };
394
- exports.breakpointQuery = styles_lib_css_atoms_breakpoints_cjs.breakpointQuery;
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, breakpointQuery, classnames, createAsChildTemplate, makeComponentTheme, makeTheme, style, useComponentStyleDefaultProps, useComponentStyles, useIsomorphicLayoutEffect, useKeyboard, usePreventBodyScroll, useRootAriaHidden, vars } from './momotaro.chunk.js';
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, breakpointQuery, classnames, createAsChildTemplate, makeComponentTheme, makeTheme, style, useComponentStyleDefaultProps, useComponentStyles, useIsomorphicLayoutEffect, useKeyboard, usePreventBodyScroll, useRootAriaHidden, vars } from './momotaro.chunk.js';
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 { breakpointQuery } from "./styles/lib/css/atoms/breakpoints.mjs";
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,
@@ -244,7 +244,7 @@ declare const breakpoints: {
244
244
  readonly wide: 1200;
245
245
  };
246
246
  type Breakpoint = keyof typeof breakpoints;
247
- declare const breakpointQuery: (key: Breakpoint) => string;
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, breakpointQuery, classnames, createAsChildTemplate, makeComponentTheme, makeTheme, momotaro, style, useComponentStyleDefaultProps, useComponentStyles, useIsomorphicLayoutEffect, useKeyboard, usePreventBodyScroll, useRootAriaHidden, vars };
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
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ require("./styles/lib/css/atoms/sprinkles.css.cjs");
3
+ require("./styles/lib/css/reset/reset.css.cjs");
package/dist/reset.mjs ADDED
@@ -0,0 +1,2 @@
1
+ import "./styles/lib/css/atoms/sprinkles.css.mjs";
2
+ import "./styles/lib/css/reset/reset.css.mjs";
@@ -1 +1,2 @@
1
1
  "use strict";
2
+ require("./sprinkles.css.cjs");
@@ -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
- const breakpointQuery = (key) => `screen and (min-width: ${breakpoints[key]}px)`;
9
+ function minMediaQuery(breakpoint) {
10
+ return `screen and (min-width: ${breakpoints[breakpoint]}px)`;
11
+ }
10
12
  exports.breakpointNames = breakpointNames;
11
- exports.breakpointQuery = breakpointQuery;
13
+ exports.minMediaQuery = minMediaQuery;
@@ -5,8 +5,10 @@ const breakpoints = {
5
5
  desktop: 992,
6
6
  wide: 1200
7
7
  };
8
- const breakpointQuery = (key) => `screen and (min-width: ${breakpoints[key]}px)`;
8
+ function minMediaQuery(breakpoint) {
9
+ return `screen and (min-width: ${breakpoints[breakpoint]}px)`;
10
+ }
9
11
  export {
10
12
  breakpointNames,
11
- breakpointQuery
13
+ minMediaQuery
12
14
  };
@@ -1 +1,2 @@
1
1
  "use strict";
2
+ require("./sprinkles.css.cjs");
@@ -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.breakpointQuery("tablet")
18
+ "@media": styles_lib_css_atoms_breakpoints_cjs.minMediaQuery("tablet")
19
19
  },
20
20
  desktop: {
21
- "@media": styles_lib_css_atoms_breakpoints_cjs.breakpointQuery("desktop")
21
+ "@media": styles_lib_css_atoms_breakpoints_cjs.minMediaQuery("desktop")
22
22
  },
23
23
  wide: {
24
- "@media": styles_lib_css_atoms_breakpoints_cjs.breakpointQuery("wide")
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 { breakpointQuery, breakpointNames } from "./breakpoints.mjs";
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": breakpointQuery("tablet")
17
+ "@media": minMediaQuery("tablet")
18
18
  },
19
19
  desktop: {
20
- "@media": breakpointQuery("desktop")
20
+ "@media": minMediaQuery("desktop")
21
21
  },
22
22
  wide: {
23
- "@media": breakpointQuery("wide")
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();
@@ -36,9 +36,9 @@ const tokens = {
36
36
  xlarge: "2rem"
37
37
  },
38
38
  transition: {
39
- slow: "0.5s",
40
- normal: "0.3s",
41
- fast: "0.1s"
39
+ slow: "500ms",
40
+ normal: "300ms",
41
+ fast: "100ms"
42
42
  },
43
43
  border: {
44
44
  radius: {
@@ -35,9 +35,9 @@ const tokens = {
35
35
  xlarge: "2rem"
36
36
  },
37
37
  transition: {
38
- slow: "0.5s",
39
- normal: "0.3s",
40
- fast: "0.1s"
38
+ slow: "500ms",
39
+ normal: "300ms",
40
+ fast: "100ms"
41
41
  },
42
42
  border: {
43
43
  radius: {
@@ -1 +1,2 @@
1
1
  "use strict";
2
+ require("./momotaro.css.cjs");
@@ -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.15.3",
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
- "./src/lib/theme/globalTheme.ts",
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.css": {
25
+ "./reset": {
23
26
  "types": {
24
- "import": "./dist/reset.css.d.mts",
25
- "require": "./dist/reset.css.d.ts"
27
+ "import": "./dist/reset.d.mts",
28
+ "require": "./dist/reset.d.ts"
26
29
  },
27
- "import": "./dist/reset.css.mjs",
28
- "require": "./dist/reset.css.cjs"
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.css",
48
+ "reset",
46
49
  "themes/momotaro"
47
50
  ],
48
51
  "scripts": {
@@ -0,0 +1 @@
1
+ export * from "../dist/reset";
@@ -0,0 +1,5 @@
1
+ {
2
+ "main": "../dist/reset.cjs",
3
+ "module": "../dist/reset.mjs",
4
+ "types": "./index.d.ts"
5
+ }
@@ -1,4 +0,0 @@
1
- "use strict";
2
- const fileScope = require("@vanilla-extract/css/fileScope");
3
- fileScope.setFileScope("src/entries/reset.css.ts", "@blockle/blocks");
4
- fileScope.endFileScope();
@@ -1,3 +0,0 @@
1
- import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
- setFileScope("src/entries/reset.css.ts", "@blockle/blocks");
3
- endFileScope();
@@ -1 +0,0 @@
1
- export * from "../dist/reset.css";
@@ -1,5 +0,0 @@
1
- {
2
- "main": "../dist/reset.css.cjs",
3
- "module": "../dist/reset.css.mjs",
4
- "types": "./index.d.ts"
5
- }
File without changes
File without changes