@blockle/blocks 0.11.2 → 0.12.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.
@@ -3,30 +3,32 @@ const styles_themes_momotaro_components_button_css_cjs = require("./button.css.c
3
3
  const styles_themes_momotaro_components_checkbox_css_cjs = require("./checkbox.css.cjs");
4
4
  const styles_themes_momotaro_components_dialog_css_cjs = require("./dialog.css.cjs");
5
5
  const styles_themes_momotaro_components_divider_css_cjs = require("./divider.css.cjs");
6
- const styles_themes_momotaro_components_dropdown_css_cjs = require("./dropdown.css.cjs");
7
6
  const styles_themes_momotaro_components_input_css_cjs = require("./input.css.cjs");
8
7
  const styles_themes_momotaro_components_label_css_cjs = require("./label.css.cjs");
9
8
  const styles_themes_momotaro_components_link_css_cjs = require("./link.css.cjs");
9
+ const styles_themes_momotaro_components_popover_css_cjs = require("./popover.css.cjs");
10
10
  const styles_themes_momotaro_components_progress_css_cjs = require("./progress.css.cjs");
11
11
  const styles_themes_momotaro_components_radio_css_cjs = require("./radio.css.cjs");
12
12
  const styles_themes_momotaro_components_select_css_cjs = require("./select.css.cjs");
13
13
  const styles_themes_momotaro_components_slider_css_cjs = require("./slider.css.cjs");
14
14
  const styles_themes_momotaro_components_spinner_css_cjs = require("./spinner.css.cjs");
15
15
  const styles_themes_momotaro_components_switch_css_cjs = require("./switch.css.cjs");
16
+ const styles_themes_momotaro_components_tooltip_css_cjs = require("./tooltip.css.cjs");
16
17
  const components = {
17
18
  button: styles_themes_momotaro_components_button_css_cjs.button,
18
19
  checkbox: styles_themes_momotaro_components_checkbox_css_cjs.checkbox,
19
20
  dialog: styles_themes_momotaro_components_dialog_css_cjs.dialog,
20
21
  divider: styles_themes_momotaro_components_divider_css_cjs.divider,
21
- dropdown: styles_themes_momotaro_components_dropdown_css_cjs.dropdown,
22
22
  input: styles_themes_momotaro_components_input_css_cjs.input,
23
23
  label: styles_themes_momotaro_components_label_css_cjs.label,
24
24
  link: styles_themes_momotaro_components_link_css_cjs.link,
25
+ popover: styles_themes_momotaro_components_popover_css_cjs.popover,
25
26
  progress: styles_themes_momotaro_components_progress_css_cjs.progress,
26
27
  radio: styles_themes_momotaro_components_radio_css_cjs.radio,
27
28
  select: styles_themes_momotaro_components_select_css_cjs.select,
29
+ slider: styles_themes_momotaro_components_slider_css_cjs.slider,
28
30
  spinner: styles_themes_momotaro_components_spinner_css_cjs.spinner,
29
31
  switch: styles_themes_momotaro_components_switch_css_cjs.switchTheme,
30
- slider: styles_themes_momotaro_components_slider_css_cjs.slider
32
+ tooltip: styles_themes_momotaro_components_tooltip_css_cjs.tooltip
31
33
  };
32
34
  exports.components = components;
@@ -2,31 +2,33 @@ import { button } from "./button.css.mjs";
2
2
  import { checkbox } from "./checkbox.css.mjs";
3
3
  import { dialog } from "./dialog.css.mjs";
4
4
  import { divider } from "./divider.css.mjs";
5
- import { dropdown } from "./dropdown.css.mjs";
6
5
  import { input } from "./input.css.mjs";
7
6
  import { label } from "./label.css.mjs";
8
7
  import { link } from "./link.css.mjs";
8
+ import { popover } from "./popover.css.mjs";
9
9
  import { progress } from "./progress.css.mjs";
10
10
  import { radio } from "./radio.css.mjs";
11
11
  import { select } from "./select.css.mjs";
12
12
  import { slider } from "./slider.css.mjs";
13
13
  import { spinner } from "./spinner.css.mjs";
14
14
  import { switchTheme } from "./switch.css.mjs";
15
+ import { tooltip } from "./tooltip.css.mjs";
15
16
  const components = {
16
17
  button,
17
18
  checkbox,
18
19
  dialog,
19
20
  divider,
20
- dropdown,
21
21
  input,
22
22
  label,
23
23
  link,
24
+ popover,
24
25
  progress,
25
26
  radio,
26
27
  select,
28
+ slider,
27
29
  spinner,
28
30
  switch: switchTheme,
29
- slider
31
+ tooltip
30
32
  };
31
33
  export {
32
34
  components
@@ -2,16 +2,15 @@
2
2
  const fileScope = require("@vanilla-extract/css/fileScope");
3
3
  const styles_lib_css_style_style_cjs = require("../../../lib/css/style/style.cjs");
4
4
  const styles_lib_theme_makeComponentTheme_cjs = require("../../../lib/theme/makeComponentTheme.cjs");
5
- fileScope.setFileScope("src/themes/momotaro/components/dropdown.css.ts", "@blockle/blocks");
6
- const dropdown = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("dropdown", {
5
+ fileScope.setFileScope("src/themes/momotaro/components/popover.css.ts", "@blockle/blocks");
6
+ const popover = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("popover", {
7
7
  base: styles_lib_css_style_style_cjs.style({
8
8
  backgroundColor: "white",
9
9
  borderRadius: "small",
10
10
  boxShadow: "medium",
11
11
  padding: "medium",
12
- vars: {
13
- "--spacing": "0.5rem"
14
- },
12
+ margin: "small",
13
+ // Space between the popover and the anchor element
15
14
  selectors: {
16
15
  "&[data-open]": {
17
16
  transform: "scale(1)",
@@ -26,28 +25,7 @@ const dropdown = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("dro
26
25
  opacity: 0
27
26
  }
28
27
  }
29
- }),
30
- variants: {
31
- variant: {
32
- solid: styles_lib_css_style_style_cjs.style({
33
- backgroundColor: "white",
34
- border: "none",
35
- boxShadow: "medium",
36
- color: "black",
37
- padding: "medium"
38
- }),
39
- outline: styles_lib_css_style_style_cjs.style({
40
- backgroundColor: "transparent",
41
- border: "1px solid black",
42
- boxShadow: "none",
43
- color: "black",
44
- padding: "medium"
45
- })
46
- }
47
- },
48
- defaultVariants: {
49
- variant: "solid"
50
- }
28
+ })
51
29
  });
52
30
  fileScope.endFileScope();
53
- exports.dropdown = dropdown;
31
+ exports.popover = popover;
@@ -1,16 +1,15 @@
1
1
  import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
2
  import { style } from "../../../lib/css/style/style.mjs";
3
3
  import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.mjs";
4
- setFileScope("src/themes/momotaro/components/dropdown.css.ts", "@blockle/blocks");
5
- const dropdown = makeComponentTheme("dropdown", {
4
+ setFileScope("src/themes/momotaro/components/popover.css.ts", "@blockle/blocks");
5
+ const popover = makeComponentTheme("popover", {
6
6
  base: style({
7
7
  backgroundColor: "white",
8
8
  borderRadius: "small",
9
9
  boxShadow: "medium",
10
10
  padding: "medium",
11
- vars: {
12
- "--spacing": "0.5rem"
13
- },
11
+ margin: "small",
12
+ // Space between the popover and the anchor element
14
13
  selectors: {
15
14
  "&[data-open]": {
16
15
  transform: "scale(1)",
@@ -25,30 +24,9 @@ const dropdown = makeComponentTheme("dropdown", {
25
24
  opacity: 0
26
25
  }
27
26
  }
28
- }),
29
- variants: {
30
- variant: {
31
- solid: style({
32
- backgroundColor: "white",
33
- border: "none",
34
- boxShadow: "medium",
35
- color: "black",
36
- padding: "medium"
37
- }),
38
- outline: style({
39
- backgroundColor: "transparent",
40
- border: "1px solid black",
41
- boxShadow: "none",
42
- color: "black",
43
- padding: "medium"
44
- })
45
- }
46
- },
47
- defaultVariants: {
48
- variant: "solid"
49
- }
27
+ })
50
28
  });
51
29
  endFileScope();
52
30
  export {
53
- dropdown
31
+ popover
54
32
  };
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ const fileScope = require("@vanilla-extract/css/fileScope");
3
+ const styles_lib_css_style_style_cjs = require("../../../lib/css/style/style.cjs");
4
+ const styles_lib_theme_makeComponentTheme_cjs = require("../../../lib/theme/makeComponentTheme.cjs");
5
+ fileScope.setFileScope("src/themes/momotaro/components/tooltip.css.ts", "@blockle/blocks");
6
+ const tooltip = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("tooltip", {
7
+ base: styles_lib_css_style_style_cjs.style({
8
+ backgroundColor: "primary",
9
+ padding: "small"
10
+ }),
11
+ variants: {
12
+ colorScheme: {
13
+ primary: styles_lib_css_style_style_cjs.style({
14
+ backgroundColor: "rgba(0, 0, 0, 0.8)",
15
+ boxShadow: "0 0 0 1px rgba(255, 255, 255, 0.1)",
16
+ color: "white"
17
+ }),
18
+ secondary: styles_lib_css_style_style_cjs.style({
19
+ backgroundColor: "rgba(255, 255, 255, 0.8)",
20
+ boxShadow: "0 0 0 1px rgba(0, 0, 0, 0.1)",
21
+ color: "black"
22
+ })
23
+ }
24
+ },
25
+ defaultVariants: {
26
+ colorScheme: "primary"
27
+ }
28
+ });
29
+ fileScope.endFileScope();
30
+ exports.tooltip = tooltip;
@@ -0,0 +1,31 @@
1
+ import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
+ import { style } from "../../../lib/css/style/style.mjs";
3
+ import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.mjs";
4
+ setFileScope("src/themes/momotaro/components/tooltip.css.ts", "@blockle/blocks");
5
+ const tooltip = makeComponentTheme("tooltip", {
6
+ base: style({
7
+ backgroundColor: "primary",
8
+ padding: "small"
9
+ }),
10
+ variants: {
11
+ colorScheme: {
12
+ primary: style({
13
+ backgroundColor: "rgba(0, 0, 0, 0.8)",
14
+ boxShadow: "0 0 0 1px rgba(255, 255, 255, 0.1)",
15
+ color: "white"
16
+ }),
17
+ secondary: style({
18
+ backgroundColor: "rgba(255, 255, 255, 0.8)",
19
+ boxShadow: "0 0 0 1px rgba(0, 0, 0, 0.1)",
20
+ color: "black"
21
+ })
22
+ }
23
+ },
24
+ defaultVariants: {
25
+ colorScheme: "primary"
26
+ }
27
+ });
28
+ endFileScope();
29
+ export {
30
+ tooltip
31
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockle/blocks",
3
- "version": "0.11.2",
3
+ "version": "0.12.0",
4
4
  "description": "Blocks design system",
5
5
  "repository": "git@github.com:Blockle/blocks.git",
6
6
  "license": "MIT",
@@ -105,7 +105,9 @@
105
105
  },
106
106
  "peerDependencies": {
107
107
  "@vanilla-extract/css": "^1.14",
108
- "react": "^18"
108
+ "@vanilla-extract/sprinkles": "^1.6",
109
+ "react": "^18",
110
+ "react-dom": "^18"
109
111
  },
110
112
  "packageManager": "yarn@1.22.19"
111
113
  }