@blockle/blocks 0.3.9 → 0.4.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.
@@ -0,0 +1,83 @@
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/Dialog/dialog.css.ts?used", "blocks");
6
+ const backdropEnterAnimation = css.keyframes({
7
+ "0%": {
8
+ opacity: 0
9
+ },
10
+ "100%": {
11
+ opacity: 1
12
+ }
13
+ }, "backdropEnterAnimation");
14
+ const backdropLeaveAnimation = css.keyframes({
15
+ "0%": {
16
+ opacity: 1
17
+ },
18
+ "100%": {
19
+ opacity: 0
20
+ }
21
+ }, "backdropLeaveAnimation");
22
+ const dialogEnterAnimation = css.keyframes({
23
+ "0%": {
24
+ transform: "translateY(-34px)"
25
+ },
26
+ "100%": {
27
+ transform: "translateY(0)"
28
+ }
29
+ }, "dialogEnterAnimation");
30
+ const dialogLeaveAnimation = css.keyframes({
31
+ "0%": {
32
+ transform: "translateY(0)"
33
+ },
34
+ "100%": {
35
+ transform: "translateY(-34px)"
36
+ }
37
+ }, "dialogLeaveAnimation");
38
+ const backdrop = css.style({
39
+ "@layer": {
40
+ [styles_lib_css_layers_layers_css_cjs.blocksLayer]: {
41
+ contain: "layout",
42
+ position: "fixed",
43
+ width: "100%",
44
+ height: "100%",
45
+ left: 0,
46
+ top: 0,
47
+ overflow: "hidden",
48
+ opacity: "0",
49
+ animationName: backdropEnterAnimation,
50
+ animationDuration: "100ms",
51
+ animationFillMode: "both"
52
+ }
53
+ }
54
+ }, "backdrop");
55
+ const backdropLeave = css.style({
56
+ "@layer": {
57
+ [styles_lib_css_layers_layers_css_cjs.blocksLayer]: {
58
+ animationName: backdropLeaveAnimation
59
+ }
60
+ }
61
+ }, "backdropLeave");
62
+ const dialog = css.style({
63
+ "@layer": {
64
+ [styles_lib_css_layers_layers_css_cjs.blocksLayer]: {
65
+ animationName: dialogEnterAnimation,
66
+ animationDuration: "160ms",
67
+ animationFillMode: "both"
68
+ }
69
+ }
70
+ }, "dialog");
71
+ const dialogLeave = css.style({
72
+ "@layer": {
73
+ [styles_lib_css_layers_layers_css_cjs.blocksLayer]: {
74
+ animationName: dialogLeaveAnimation
75
+ }
76
+ }
77
+ }, "dialogLeave");
78
+ fileScope.endFileScope();
79
+ exports.backdrop = backdrop;
80
+ exports.backdropLeave = backdropLeave;
81
+ exports.backdropLeaveAnimation = backdropLeaveAnimation;
82
+ exports.dialog = dialog;
83
+ exports.dialogLeave = dialogLeave;
@@ -0,0 +1,84 @@
1
+ import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
+ import { keyframes, style } from "@vanilla-extract/css";
3
+ import { blocksLayer } from "../../lib/css/layers/layers.css.mjs";
4
+ setFileScope("src/components/Dialog/dialog.css.ts?used", "blocks");
5
+ const backdropEnterAnimation = keyframes({
6
+ "0%": {
7
+ opacity: 0
8
+ },
9
+ "100%": {
10
+ opacity: 1
11
+ }
12
+ }, "backdropEnterAnimation");
13
+ const backdropLeaveAnimation = keyframes({
14
+ "0%": {
15
+ opacity: 1
16
+ },
17
+ "100%": {
18
+ opacity: 0
19
+ }
20
+ }, "backdropLeaveAnimation");
21
+ const dialogEnterAnimation = keyframes({
22
+ "0%": {
23
+ transform: "translateY(-34px)"
24
+ },
25
+ "100%": {
26
+ transform: "translateY(0)"
27
+ }
28
+ }, "dialogEnterAnimation");
29
+ const dialogLeaveAnimation = keyframes({
30
+ "0%": {
31
+ transform: "translateY(0)"
32
+ },
33
+ "100%": {
34
+ transform: "translateY(-34px)"
35
+ }
36
+ }, "dialogLeaveAnimation");
37
+ const backdrop = style({
38
+ "@layer": {
39
+ [blocksLayer]: {
40
+ contain: "layout",
41
+ position: "fixed",
42
+ width: "100%",
43
+ height: "100%",
44
+ left: 0,
45
+ top: 0,
46
+ overflow: "hidden",
47
+ opacity: "0",
48
+ animationName: backdropEnterAnimation,
49
+ animationDuration: "100ms",
50
+ animationFillMode: "both"
51
+ }
52
+ }
53
+ }, "backdrop");
54
+ const backdropLeave = style({
55
+ "@layer": {
56
+ [blocksLayer]: {
57
+ animationName: backdropLeaveAnimation
58
+ }
59
+ }
60
+ }, "backdropLeave");
61
+ const dialog = style({
62
+ "@layer": {
63
+ [blocksLayer]: {
64
+ animationName: dialogEnterAnimation,
65
+ animationDuration: "160ms",
66
+ animationFillMode: "both"
67
+ }
68
+ }
69
+ }, "dialog");
70
+ const dialogLeave = style({
71
+ "@layer": {
72
+ [blocksLayer]: {
73
+ animationName: dialogLeaveAnimation
74
+ }
75
+ }
76
+ }, "dialogLeave");
77
+ endFileScope();
78
+ export {
79
+ backdrop,
80
+ backdropLeave,
81
+ backdropLeaveAnimation,
82
+ dialog,
83
+ dialogLeave
84
+ };
@@ -5,6 +5,7 @@ const unresponsiveProperties = {
5
5
  backgroundColor: colorWithCurrentColor,
6
6
  borderColor: colorWithCurrentColor,
7
7
  borderRadius: styles_lib_css_theme_vars_css_cjs.vars.borderRadius,
8
+ border: ["none"],
8
9
  bottom: [0],
9
10
  boxShadow: styles_lib_css_theme_vars_css_cjs.vars.shadow,
10
11
  color: colorWithCurrentColor,
@@ -4,6 +4,7 @@ const unresponsiveProperties = {
4
4
  backgroundColor: colorWithCurrentColor,
5
5
  borderColor: colorWithCurrentColor,
6
6
  borderRadius: vars.borderRadius,
7
+ border: ["none"],
7
8
  bottom: [0],
8
9
  boxShadow: vars.shadow,
9
10
  color: colorWithCurrentColor,
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ const fileScope = require("@vanilla-extract/css/fileScope");
3
+ const css = require("@vanilla-extract/css");
4
+ const styles_lib_css_theme_makeComponentTheme_cjs = require("../../../lib/css/theme/makeComponentTheme.cjs");
5
+ const styles_lib_css_atoms_sprinkles_css_cjs = require("../../../lib/css/atoms/sprinkles.css.cjs");
6
+ fileScope.setFileScope("src/themes/momotaro/components/dialog.css.ts?used", "blocks");
7
+ const dialog = styles_lib_css_theme_makeComponentTheme_cjs.makeComponentTheme({
8
+ type: "dialog",
9
+ base: css.style([styles_lib_css_atoms_sprinkles_css_cjs.atoms({
10
+ display: "flex",
11
+ flexDirection: "column",
12
+ padding: "gutter",
13
+ border: "none",
14
+ overflow: "auto"
15
+ }), {
16
+ minWidth: "300px"
17
+ }], "dialog_base"),
18
+ variants: {
19
+ backdrop: css.style({
20
+ backgroundColor: "rgba(0, 0, 0, 0.5)"
21
+ }, "dialog_variants_backdrop")
22
+ }
23
+ });
24
+ fileScope.endFileScope();
25
+ exports.dialog = dialog;
@@ -0,0 +1,26 @@
1
+ import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
+ import { style } from "@vanilla-extract/css";
3
+ import { makeComponentTheme } from "../../../lib/css/theme/makeComponentTheme.mjs";
4
+ import { atoms } from "../../../lib/css/atoms/sprinkles.css.mjs";
5
+ setFileScope("src/themes/momotaro/components/dialog.css.ts?used", "blocks");
6
+ const dialog = makeComponentTheme({
7
+ type: "dialog",
8
+ base: style([atoms({
9
+ display: "flex",
10
+ flexDirection: "column",
11
+ padding: "gutter",
12
+ border: "none",
13
+ overflow: "auto"
14
+ }), {
15
+ minWidth: "300px"
16
+ }], "dialog_base"),
17
+ variants: {
18
+ backdrop: style({
19
+ backgroundColor: "rgba(0, 0, 0, 0.5)"
20
+ }, "dialog_variants_backdrop")
21
+ }
22
+ });
23
+ endFileScope();
24
+ export {
25
+ dialog
26
+ };
@@ -3,10 +3,12 @@ const styles_themes_momotaro_components_button_css_cjs = require("./button.css.c
3
3
  const styles_themes_momotaro_components_link_css_cjs = require("./link.css.cjs");
4
4
  const styles_themes_momotaro_components_spinner_css_cjs = require("./spinner.css.cjs");
5
5
  const styles_themes_momotaro_components_divider_css_cjs = require("./divider.css.cjs");
6
+ const styles_themes_momotaro_components_dialog_css_cjs = require("./dialog.css.cjs");
6
7
  const components = {
7
8
  button: styles_themes_momotaro_components_button_css_cjs.button,
8
9
  link: styles_themes_momotaro_components_link_css_cjs.link,
9
10
  spinner: styles_themes_momotaro_components_spinner_css_cjs.spinner,
10
- divider: styles_themes_momotaro_components_divider_css_cjs.divider
11
+ divider: styles_themes_momotaro_components_divider_css_cjs.divider,
12
+ dialog: styles_themes_momotaro_components_dialog_css_cjs.dialog
11
13
  };
12
14
  exports.components = components;
@@ -2,11 +2,13 @@ import { button } from "./button.css.mjs";
2
2
  import { link } from "./link.css.mjs";
3
3
  import { spinner } from "./spinner.css.mjs";
4
4
  import { divider } from "./divider.css.mjs";
5
+ import { dialog } from "./dialog.css.mjs";
5
6
  const components = {
6
7
  button,
7
8
  link,
8
9
  spinner,
9
- divider
10
+ divider,
11
+ dialog
10
12
  };
11
13
  export {
12
14
  components
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockle/blocks",
3
- "version": "0.3.9",
3
+ "version": "0.4.1",
4
4
  "description": "Blocks design system",
5
5
  "repository": "git@github.com:Blockle/blocks.git",
6
6
  "license": "MIT",