@blockle/blocks 0.9.1 → 0.10.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.
- package/dist/index.cjs +2 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +2 -0
- package/dist/momotaro.chunk.d.ts +29 -1
- package/dist/reset.css.cjs +1 -1
- package/dist/reset.css.mjs +1 -1
- package/dist/styles/components/display/Divider/divider.css.cjs +1 -1
- package/dist/styles/components/display/Divider/divider.css.mjs +1 -1
- package/dist/styles/components/form/Button/Button.css.cjs +1 -1
- package/dist/styles/components/form/Button/Button.css.mjs +1 -1
- package/dist/styles/components/form/Checkbox/checkbox.css.cjs +1 -1
- package/dist/styles/components/form/Checkbox/checkbox.css.mjs +1 -1
- package/dist/styles/components/form/Input/input.css.cjs +1 -1
- package/dist/styles/components/form/Input/input.css.mjs +1 -1
- package/dist/styles/components/form/Radio/radio.css.cjs +1 -1
- package/dist/styles/components/form/Radio/radio.css.mjs +1 -1
- package/dist/styles/components/form/Select/select.css.cjs +1 -1
- package/dist/styles/components/form/Select/select.css.mjs +1 -1
- package/dist/styles/components/form/Slider/Slider.cjs +155 -0
- package/dist/styles/components/form/Slider/Slider.mjs +156 -0
- package/dist/styles/components/form/Slider/slider.css.cjs +73 -0
- package/dist/styles/components/form/Slider/slider.css.mjs +74 -0
- package/dist/styles/components/form/Switch/switch.css.cjs +1 -1
- package/dist/styles/components/form/Switch/switch.css.mjs +1 -1
- package/dist/styles/components/overlay/Dialog/dialog.css.cjs +1 -1
- package/dist/styles/components/overlay/Dialog/dialog.css.mjs +1 -1
- package/dist/styles/components/typography/Heading/heading.css.cjs +1 -1
- package/dist/styles/components/typography/Heading/heading.css.mjs +1 -1
- package/dist/styles/components/typography/Text/text.css.cjs +1 -1
- package/dist/styles/components/typography/Text/text.css.mjs +1 -1
- package/dist/styles/lib/css/atoms/sprinkles.css.cjs +1 -1
- package/dist/styles/lib/css/atoms/sprinkles.css.mjs +1 -1
- package/dist/styles/lib/css/layers/layers.css.cjs +1 -1
- package/dist/styles/lib/css/layers/layers.css.mjs +1 -1
- package/dist/styles/lib/theme/vars.css.cjs +1 -1
- package/dist/styles/lib/theme/vars.css.mjs +1 -1
- package/dist/styles/themes/momotaro/components/button.css.cjs +1 -1
- package/dist/styles/themes/momotaro/components/button.css.mjs +1 -1
- package/dist/styles/themes/momotaro/components/checkbox.css.cjs +1 -1
- package/dist/styles/themes/momotaro/components/checkbox.css.mjs +1 -1
- package/dist/styles/themes/momotaro/components/dialog.css.cjs +1 -1
- package/dist/styles/themes/momotaro/components/dialog.css.mjs +1 -1
- package/dist/styles/themes/momotaro/components/divider.css.cjs +1 -1
- package/dist/styles/themes/momotaro/components/divider.css.mjs +1 -1
- package/dist/styles/themes/momotaro/components/dropdown.css.cjs +1 -1
- package/dist/styles/themes/momotaro/components/dropdown.css.mjs +1 -1
- package/dist/styles/themes/momotaro/components/helpers.css.cjs +1 -1
- package/dist/styles/themes/momotaro/components/helpers.css.mjs +1 -1
- package/dist/styles/themes/momotaro/components/index.cjs +3 -1
- package/dist/styles/themes/momotaro/components/index.mjs +3 -1
- package/dist/styles/themes/momotaro/components/input.css.cjs +1 -1
- package/dist/styles/themes/momotaro/components/input.css.mjs +1 -1
- package/dist/styles/themes/momotaro/components/label.css.cjs +1 -1
- package/dist/styles/themes/momotaro/components/label.css.mjs +1 -1
- package/dist/styles/themes/momotaro/components/link.css.cjs +1 -1
- package/dist/styles/themes/momotaro/components/link.css.mjs +1 -1
- package/dist/styles/themes/momotaro/components/progress.css.cjs +1 -1
- package/dist/styles/themes/momotaro/components/progress.css.mjs +1 -1
- package/dist/styles/themes/momotaro/components/radio.css.cjs +1 -1
- package/dist/styles/themes/momotaro/components/radio.css.mjs +1 -1
- package/dist/styles/themes/momotaro/components/select.css.cjs +1 -1
- package/dist/styles/themes/momotaro/components/select.css.mjs +1 -1
- package/dist/styles/themes/momotaro/components/slider.css.cjs +65 -0
- package/dist/styles/themes/momotaro/components/slider.css.mjs +66 -0
- package/dist/styles/themes/momotaro/components/spinner.css.cjs +1 -1
- package/dist/styles/themes/momotaro/components/spinner.css.mjs +1 -1
- package/dist/styles/themes/momotaro/components/switch.css.cjs +1 -1
- package/dist/styles/themes/momotaro/components/switch.css.mjs +1 -1
- package/dist/styles/themes/momotaro/momotaro.css.cjs +1 -1
- package/dist/styles/themes/momotaro/momotaro.css.mjs +1 -1
- package/dist/styles/themes/momotaro/tokens.css.cjs +3 -3
- package/dist/styles/themes/momotaro/tokens.css.mjs +3 -3
- package/package.json +20 -20
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
+
import { style } from "@vanilla-extract/css";
|
|
3
|
+
import { blocksLayer } from "../../../lib/css/layers/layers.css.mjs";
|
|
4
|
+
setFileScope("src/components/form/Slider/slider.css.ts", "@blockle/blocks");
|
|
5
|
+
const container = style({
|
|
6
|
+
"@layer": {
|
|
7
|
+
[blocksLayer]: {
|
|
8
|
+
position: "relative",
|
|
9
|
+
writingMode: "horizontal-tb"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}, "container");
|
|
13
|
+
const containerVertical = style({
|
|
14
|
+
"@layer": {
|
|
15
|
+
[blocksLayer]: {
|
|
16
|
+
writingMode: "vertical-lr"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}, "containerVertical");
|
|
20
|
+
const track = style({
|
|
21
|
+
"@layer": {
|
|
22
|
+
[blocksLayer]: {
|
|
23
|
+
cursor: "pointer",
|
|
24
|
+
position: "absolute",
|
|
25
|
+
inlineSize: "100%",
|
|
26
|
+
insetBlockStart: "50%",
|
|
27
|
+
transform: "translateY(-50%)",
|
|
28
|
+
selectors: {
|
|
29
|
+
[`${containerVertical} &`]: {
|
|
30
|
+
transform: "translateX(-50%)"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}, "track");
|
|
36
|
+
const filledTrack = style({
|
|
37
|
+
"@layer": {
|
|
38
|
+
[blocksLayer]: {
|
|
39
|
+
position: "absolute",
|
|
40
|
+
blockSize: "100%",
|
|
41
|
+
borderRadius: "inherit",
|
|
42
|
+
selectors: {
|
|
43
|
+
[`${containerVertical} &`]: {
|
|
44
|
+
insetInlineEnd: "0%"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}, "filledTrack");
|
|
50
|
+
const thumb = style({
|
|
51
|
+
"@layer": {
|
|
52
|
+
[blocksLayer]: {
|
|
53
|
+
cursor: "pointer",
|
|
54
|
+
position: "absolute",
|
|
55
|
+
blockSize: "100%",
|
|
56
|
+
insetBlockStart: "50%",
|
|
57
|
+
transform: "translate(-50%, -50%)",
|
|
58
|
+
touchAction: "none",
|
|
59
|
+
selectors: {
|
|
60
|
+
[`${containerVertical} &`]: {
|
|
61
|
+
transform: "translate(-50%, 50%)"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}, "thumb");
|
|
67
|
+
endFileScope();
|
|
68
|
+
export {
|
|
69
|
+
container,
|
|
70
|
+
containerVertical,
|
|
71
|
+
filledTrack,
|
|
72
|
+
thumb,
|
|
73
|
+
track
|
|
74
|
+
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
3
|
const css = require("@vanilla-extract/css");
|
|
4
4
|
const styles_lib_css_layers_layers_css_cjs = require("../../../lib/css/layers/layers.css.cjs");
|
|
5
|
-
fileScope.setFileScope("src/components/form/Switch/switch.css.ts", "blocks");
|
|
5
|
+
fileScope.setFileScope("src/components/form/Switch/switch.css.ts", "@blockle/blocks");
|
|
6
6
|
const container = css.style({
|
|
7
7
|
"@layer": {
|
|
8
8
|
[styles_lib_css_layers_layers_css_cjs.blocksLayer]: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
2
|
import { style } from "@vanilla-extract/css";
|
|
3
3
|
import { blocksLayer } from "../../../lib/css/layers/layers.css.mjs";
|
|
4
|
-
setFileScope("src/components/form/Switch/switch.css.ts", "blocks");
|
|
4
|
+
setFileScope("src/components/form/Switch/switch.css.ts", "@blockle/blocks");
|
|
5
5
|
const container = style({
|
|
6
6
|
"@layer": {
|
|
7
7
|
[blocksLayer]: {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
3
|
const css = require("@vanilla-extract/css");
|
|
4
4
|
const styles_lib_css_layers_layers_css_cjs = require("../../../lib/css/layers/layers.css.cjs");
|
|
5
|
-
fileScope.setFileScope("src/components/overlay/Dialog/dialog.css.ts", "blocks");
|
|
5
|
+
fileScope.setFileScope("src/components/overlay/Dialog/dialog.css.ts", "@blockle/blocks");
|
|
6
6
|
const backdrop = css.style({
|
|
7
7
|
"@layer": {
|
|
8
8
|
[styles_lib_css_layers_layers_css_cjs.blocksLayer]: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
2
|
import { style } from "@vanilla-extract/css";
|
|
3
3
|
import { blocksLayer } from "../../../lib/css/layers/layers.css.mjs";
|
|
4
|
-
setFileScope("src/components/overlay/Dialog/dialog.css.ts", "blocks");
|
|
4
|
+
setFileScope("src/components/overlay/Dialog/dialog.css.ts", "@blockle/blocks");
|
|
5
5
|
const backdrop = style({
|
|
6
6
|
"@layer": {
|
|
7
7
|
[blocksLayer]: {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
3
|
const css = require("@vanilla-extract/css");
|
|
4
4
|
const styles_lib_css_layers_layers_css_cjs = require("../../../lib/css/layers/layers.css.cjs");
|
|
5
|
-
fileScope.setFileScope("src/components/typography/Heading/heading.css.ts", "blocks");
|
|
5
|
+
fileScope.setFileScope("src/components/typography/Heading/heading.css.ts", "@blockle/blocks");
|
|
6
6
|
const heading = css.style({
|
|
7
7
|
"@layer": {
|
|
8
8
|
[styles_lib_css_layers_layers_css_cjs.blocksLayer]: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
2
|
import { style } from "@vanilla-extract/css";
|
|
3
3
|
import { blocksLayer } from "../../../lib/css/layers/layers.css.mjs";
|
|
4
|
-
setFileScope("src/components/typography/Heading/heading.css.ts", "blocks");
|
|
4
|
+
setFileScope("src/components/typography/Heading/heading.css.ts", "@blockle/blocks");
|
|
5
5
|
const heading = style({
|
|
6
6
|
"@layer": {
|
|
7
7
|
[blocksLayer]: {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
3
|
const css = require("@vanilla-extract/css");
|
|
4
4
|
const styles_lib_css_layers_layers_css_cjs = require("../../../lib/css/layers/layers.css.cjs");
|
|
5
|
-
fileScope.setFileScope("src/components/typography/Text/text.css.ts", "blocks");
|
|
5
|
+
fileScope.setFileScope("src/components/typography/Text/text.css.ts", "@blockle/blocks");
|
|
6
6
|
const text = css.style({
|
|
7
7
|
"@layer": {
|
|
8
8
|
[styles_lib_css_layers_layers_css_cjs.blocksLayer]: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
2
|
import { style } from "@vanilla-extract/css";
|
|
3
3
|
import { blocksLayer } from "../../../lib/css/layers/layers.css.mjs";
|
|
4
|
-
setFileScope("src/components/typography/Text/text.css.ts", "blocks");
|
|
4
|
+
setFileScope("src/components/typography/Text/text.css.ts", "@blockle/blocks");
|
|
5
5
|
const text = style({
|
|
6
6
|
"@layer": {
|
|
7
7
|
[blocksLayer]: {
|
|
@@ -3,7 +3,7 @@ const fileScope = require("@vanilla-extract/css/fileScope");
|
|
|
3
3
|
const sprinkles = require("@vanilla-extract/sprinkles");
|
|
4
4
|
const styles_lib_css_atoms_atomicProperties_cjs = require("./atomicProperties.cjs");
|
|
5
5
|
const styles_lib_css_atoms_breakpoints_cjs = require("./breakpoints.cjs");
|
|
6
|
-
fileScope.setFileScope("src/lib/css/atoms/sprinkles.css.ts", "blocks");
|
|
6
|
+
fileScope.setFileScope("src/lib/css/atoms/sprinkles.css.ts", "@blockle/blocks");
|
|
7
7
|
const unresponsiveAtomicProperties = sprinkles.defineProperties({
|
|
8
8
|
properties: styles_lib_css_atoms_atomicProperties_cjs.unresponsiveProperties,
|
|
9
9
|
shorthands: {
|
|
@@ -2,7 +2,7 @@ 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
4
|
import { breakpointQuery, breakpointNames } from "./breakpoints.mjs";
|
|
5
|
-
setFileScope("src/lib/css/atoms/sprinkles.css.ts", "blocks");
|
|
5
|
+
setFileScope("src/lib/css/atoms/sprinkles.css.ts", "@blockle/blocks");
|
|
6
6
|
const unresponsiveAtomicProperties = defineProperties({
|
|
7
7
|
properties: unresponsiveProperties,
|
|
8
8
|
shorthands: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
3
|
const css = require("@vanilla-extract/css");
|
|
4
|
-
fileScope.setFileScope("src/lib/css/layers/layers.css.ts", "blocks");
|
|
4
|
+
fileScope.setFileScope("src/lib/css/layers/layers.css.ts", "@blockle/blocks");
|
|
5
5
|
const blocksLayer = css.layer("blockle-blocks");
|
|
6
6
|
fileScope.endFileScope();
|
|
7
7
|
exports.blocksLayer = blocksLayer;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
2
|
import { layer } from "@vanilla-extract/css";
|
|
3
|
-
setFileScope("src/lib/css/layers/layers.css.ts", "blocks");
|
|
3
|
+
setFileScope("src/lib/css/layers/layers.css.ts", "@blockle/blocks");
|
|
4
4
|
const blocksLayer = layer("blockle-blocks");
|
|
5
5
|
endFileScope();
|
|
6
6
|
export {
|
|
@@ -3,7 +3,7 @@ const fileScope = require("@vanilla-extract/css/fileScope");
|
|
|
3
3
|
const css = require("@vanilla-extract/css");
|
|
4
4
|
const styles_lib_theme_makeVanillaTheme_cjs = require("./makeVanillaTheme.cjs");
|
|
5
5
|
const styles_lib_theme_tokens_cjs = require("./tokens.cjs");
|
|
6
|
-
fileScope.setFileScope("src/lib/theme/vars.css.ts", "blocks");
|
|
6
|
+
fileScope.setFileScope("src/lib/theme/vars.css.ts", "@blockle/blocks");
|
|
7
7
|
const vars = css.createThemeContract(styles_lib_theme_makeVanillaTheme_cjs.makeVanillaTheme(styles_lib_theme_tokens_cjs.tokens));
|
|
8
8
|
fileScope.endFileScope();
|
|
9
9
|
exports.vars = vars;
|
|
@@ -2,7 +2,7 @@ import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
|
2
2
|
import { createThemeContract } from "@vanilla-extract/css";
|
|
3
3
|
import { makeVanillaTheme } from "./makeVanillaTheme.mjs";
|
|
4
4
|
import { tokens } from "./tokens.mjs";
|
|
5
|
-
setFileScope("src/lib/theme/vars.css.ts", "blocks");
|
|
5
|
+
setFileScope("src/lib/theme/vars.css.ts", "@blockle/blocks");
|
|
6
6
|
const vars = createThemeContract(makeVanillaTheme(tokens));
|
|
7
7
|
endFileScope();
|
|
8
8
|
export {
|
|
@@ -5,7 +5,7 @@ const styles_lib_css_style_style_cjs = require("../../../lib/css/style/style.cjs
|
|
|
5
5
|
const styles_lib_theme_makeComponentTheme_cjs = require("../../../lib/theme/makeComponentTheme.cjs");
|
|
6
6
|
const styles_lib_theme_vars_css_cjs = require("../../../lib/theme/vars.css.cjs");
|
|
7
7
|
const styles_themes_momotaro_components_helpers_css_cjs = require("./helpers.css.cjs");
|
|
8
|
-
fileScope.setFileScope("src/themes/momotaro/components/button.css.ts", "blocks");
|
|
8
|
+
fileScope.setFileScope("src/themes/momotaro/components/button.css.ts", "@blockle/blocks");
|
|
9
9
|
const intentColor = css.createVar("intentColor");
|
|
10
10
|
const hoverBackgroundColor = css.createVar("hoverBackgroundColor");
|
|
11
11
|
const button = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("button", {
|
|
@@ -4,7 +4,7 @@ import { style } from "../../../lib/css/style/style.mjs";
|
|
|
4
4
|
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.mjs";
|
|
5
5
|
import { vars } from "../../../lib/theme/vars.css.mjs";
|
|
6
6
|
import { clickable, focusRingColor } from "./helpers.css.mjs";
|
|
7
|
-
setFileScope("src/themes/momotaro/components/button.css.ts", "blocks");
|
|
7
|
+
setFileScope("src/themes/momotaro/components/button.css.ts", "@blockle/blocks");
|
|
8
8
|
const intentColor = createVar("intentColor");
|
|
9
9
|
const hoverBackgroundColor = createVar("hoverBackgroundColor");
|
|
10
10
|
const button = makeComponentTheme("button", {
|
|
@@ -6,7 +6,7 @@ const styles_lib_theme_vars_css_cjs = require("../../../lib/theme/vars.css.cjs")
|
|
|
6
6
|
const styles_themes_momotaro_components_helpers_css_cjs = require("./helpers.css.cjs");
|
|
7
7
|
const styles_themes_momotaro_components_transitions_cjs = require("./transitions.cjs");
|
|
8
8
|
const styles_lib_css_atoms_sprinkles_css_cjs = require("../../../lib/css/atoms/sprinkles.css.cjs");
|
|
9
|
-
fileScope.setFileScope("src/themes/momotaro/components/checkbox.css.ts", "blocks");
|
|
9
|
+
fileScope.setFileScope("src/themes/momotaro/components/checkbox.css.ts", "@blockle/blocks");
|
|
10
10
|
const checkbox = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("checkbox", {
|
|
11
11
|
base: css.style([{
|
|
12
12
|
display: "flex",
|
|
@@ -5,7 +5,7 @@ import { vars } from "../../../lib/theme/vars.css.mjs";
|
|
|
5
5
|
import { focusable } from "./helpers.css.mjs";
|
|
6
6
|
import { bounceOut } from "./transitions.mjs";
|
|
7
7
|
import { atoms } from "../../../lib/css/atoms/sprinkles.css.mjs";
|
|
8
|
-
setFileScope("src/themes/momotaro/components/checkbox.css.ts", "blocks");
|
|
8
|
+
setFileScope("src/themes/momotaro/components/checkbox.css.ts", "@blockle/blocks");
|
|
9
9
|
const checkbox = makeComponentTheme("checkbox", {
|
|
10
10
|
base: style([{
|
|
11
11
|
display: "flex",
|
|
@@ -3,7 +3,7 @@ const fileScope = require("@vanilla-extract/css/fileScope");
|
|
|
3
3
|
const css = require("@vanilla-extract/css");
|
|
4
4
|
const styles_lib_theme_makeComponentTheme_cjs = require("../../../lib/theme/makeComponentTheme.cjs");
|
|
5
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", "blocks");
|
|
6
|
+
fileScope.setFileScope("src/themes/momotaro/components/dialog.css.ts", "@blockle/blocks");
|
|
7
7
|
const dialog = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("dialog", {
|
|
8
8
|
dialog: css.style([styles_lib_css_atoms_sprinkles_css_cjs.atoms({
|
|
9
9
|
display: "flex",
|
|
@@ -2,7 +2,7 @@ import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
|
2
2
|
import { style } from "@vanilla-extract/css";
|
|
3
3
|
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.mjs";
|
|
4
4
|
import { atoms } from "../../../lib/css/atoms/sprinkles.css.mjs";
|
|
5
|
-
setFileScope("src/themes/momotaro/components/dialog.css.ts", "blocks");
|
|
5
|
+
setFileScope("src/themes/momotaro/components/dialog.css.ts", "@blockle/blocks");
|
|
6
6
|
const dialog = makeComponentTheme("dialog", {
|
|
7
7
|
dialog: style([atoms({
|
|
8
8
|
display: "flex",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
3
|
const styles_lib_theme_makeComponentTheme_cjs = require("../../../lib/theme/makeComponentTheme.cjs");
|
|
4
|
-
fileScope.setFileScope("src/themes/momotaro/components/divider.css.ts", "blocks");
|
|
4
|
+
fileScope.setFileScope("src/themes/momotaro/components/divider.css.ts", "@blockle/blocks");
|
|
5
5
|
const divider = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("divider", {
|
|
6
6
|
defaultVariants: {
|
|
7
7
|
color: "textLight"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
2
|
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.mjs";
|
|
3
|
-
setFileScope("src/themes/momotaro/components/divider.css.ts", "blocks");
|
|
3
|
+
setFileScope("src/themes/momotaro/components/divider.css.ts", "@blockle/blocks");
|
|
4
4
|
const divider = makeComponentTheme("divider", {
|
|
5
5
|
defaultVariants: {
|
|
6
6
|
color: "textLight"
|
|
@@ -2,7 +2,7 @@
|
|
|
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", "blocks");
|
|
5
|
+
fileScope.setFileScope("src/themes/momotaro/components/dropdown.css.ts", "@blockle/blocks");
|
|
6
6
|
const dropdown = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("dropdown", {
|
|
7
7
|
base: styles_lib_css_style_style_cjs.style({
|
|
8
8
|
backgroundColor: "white",
|
|
@@ -1,7 +1,7 @@
|
|
|
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", "blocks");
|
|
4
|
+
setFileScope("src/themes/momotaro/components/dropdown.css.ts", "@blockle/blocks");
|
|
5
5
|
const dropdown = makeComponentTheme("dropdown", {
|
|
6
6
|
base: style({
|
|
7
7
|
backgroundColor: "white",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
3
|
const css = require("@vanilla-extract/css");
|
|
4
4
|
const styles_lib_theme_vars_css_cjs = require("../../../lib/theme/vars.css.cjs");
|
|
5
|
-
fileScope.setFileScope("src/themes/momotaro/components/helpers.css.ts", "blocks");
|
|
5
|
+
fileScope.setFileScope("src/themes/momotaro/components/helpers.css.ts", "@blockle/blocks");
|
|
6
6
|
const focusRingColor = css.createVar("focusRingColor");
|
|
7
7
|
const focusable = css.style({
|
|
8
8
|
"@media": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
2
|
import { createVar, style, fallbackVar } from "@vanilla-extract/css";
|
|
3
3
|
import { vars } from "../../../lib/theme/vars.css.mjs";
|
|
4
|
-
setFileScope("src/themes/momotaro/components/helpers.css.ts", "blocks");
|
|
4
|
+
setFileScope("src/themes/momotaro/components/helpers.css.ts", "@blockle/blocks");
|
|
5
5
|
const focusRingColor = createVar("focusRingColor");
|
|
6
6
|
const focusable = style({
|
|
7
7
|
"@media": {
|
|
@@ -10,6 +10,7 @@ const styles_themes_momotaro_components_link_css_cjs = require("./link.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
|
+
const styles_themes_momotaro_components_slider_css_cjs = require("./slider.css.cjs");
|
|
13
14
|
const styles_themes_momotaro_components_spinner_css_cjs = require("./spinner.css.cjs");
|
|
14
15
|
const styles_themes_momotaro_components_switch_css_cjs = require("./switch.css.cjs");
|
|
15
16
|
const components = {
|
|
@@ -25,6 +26,7 @@ const components = {
|
|
|
25
26
|
radio: styles_themes_momotaro_components_radio_css_cjs.radio,
|
|
26
27
|
select: styles_themes_momotaro_components_select_css_cjs.select,
|
|
27
28
|
spinner: styles_themes_momotaro_components_spinner_css_cjs.spinner,
|
|
28
|
-
switch: styles_themes_momotaro_components_switch_css_cjs.switchTheme
|
|
29
|
+
switch: styles_themes_momotaro_components_switch_css_cjs.switchTheme,
|
|
30
|
+
slider: styles_themes_momotaro_components_slider_css_cjs.slider
|
|
29
31
|
};
|
|
30
32
|
exports.components = components;
|
|
@@ -9,6 +9,7 @@ import { link } from "./link.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
|
+
import { slider } from "./slider.css.mjs";
|
|
12
13
|
import { spinner } from "./spinner.css.mjs";
|
|
13
14
|
import { switchTheme } from "./switch.css.mjs";
|
|
14
15
|
const components = {
|
|
@@ -24,7 +25,8 @@ const components = {
|
|
|
24
25
|
radio,
|
|
25
26
|
select,
|
|
26
27
|
spinner,
|
|
27
|
-
switch: switchTheme
|
|
28
|
+
switch: switchTheme,
|
|
29
|
+
slider
|
|
28
30
|
};
|
|
29
31
|
export {
|
|
30
32
|
components
|
|
@@ -4,7 +4,7 @@ const css = require("@vanilla-extract/css");
|
|
|
4
4
|
const styles_lib_theme_makeComponentTheme_cjs = require("../../../lib/theme/makeComponentTheme.cjs");
|
|
5
5
|
const styles_lib_theme_vars_css_cjs = require("../../../lib/theme/vars.css.cjs");
|
|
6
6
|
const styles_lib_css_atoms_sprinkles_css_cjs = require("../../../lib/css/atoms/sprinkles.css.cjs");
|
|
7
|
-
fileScope.setFileScope("src/themes/momotaro/components/input.css.ts", "blocks");
|
|
7
|
+
fileScope.setFileScope("src/themes/momotaro/components/input.css.ts", "@blockle/blocks");
|
|
8
8
|
const input = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("input", {
|
|
9
9
|
input: css.style([styles_lib_css_atoms_sprinkles_css_cjs.atoms({
|
|
10
10
|
color: "text",
|
|
@@ -3,7 +3,7 @@ import { style } from "@vanilla-extract/css";
|
|
|
3
3
|
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.mjs";
|
|
4
4
|
import { vars } from "../../../lib/theme/vars.css.mjs";
|
|
5
5
|
import { atoms } from "../../../lib/css/atoms/sprinkles.css.mjs";
|
|
6
|
-
setFileScope("src/themes/momotaro/components/input.css.ts", "blocks");
|
|
6
|
+
setFileScope("src/themes/momotaro/components/input.css.ts", "@blockle/blocks");
|
|
7
7
|
const input = makeComponentTheme("input", {
|
|
8
8
|
input: style([atoms({
|
|
9
9
|
color: "text",
|
|
@@ -3,7 +3,7 @@ const fileScope = require("@vanilla-extract/css/fileScope");
|
|
|
3
3
|
const css = require("@vanilla-extract/css");
|
|
4
4
|
const styles_lib_theme_makeComponentTheme_cjs = require("../../../lib/theme/makeComponentTheme.cjs");
|
|
5
5
|
const styles_lib_theme_vars_css_cjs = require("../../../lib/theme/vars.css.cjs");
|
|
6
|
-
fileScope.setFileScope("src/themes/momotaro/components/label.css.ts", "blocks");
|
|
6
|
+
fileScope.setFileScope("src/themes/momotaro/components/label.css.ts", "@blockle/blocks");
|
|
7
7
|
const label = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("label", {
|
|
8
8
|
base: css.style({}, "label_base"),
|
|
9
9
|
variants: {
|
|
@@ -2,7 +2,7 @@ import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
|
2
2
|
import { style } from "@vanilla-extract/css";
|
|
3
3
|
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.mjs";
|
|
4
4
|
import { vars } from "../../../lib/theme/vars.css.mjs";
|
|
5
|
-
setFileScope("src/themes/momotaro/components/label.css.ts", "blocks");
|
|
5
|
+
setFileScope("src/themes/momotaro/components/label.css.ts", "@blockle/blocks");
|
|
6
6
|
const label = makeComponentTheme("label", {
|
|
7
7
|
base: style({}, "label_base"),
|
|
8
8
|
variants: {
|
|
@@ -4,7 +4,7 @@ const css = require("@vanilla-extract/css");
|
|
|
4
4
|
const styles_lib_theme_makeComponentTheme_cjs = require("../../../lib/theme/makeComponentTheme.cjs");
|
|
5
5
|
const styles_themes_momotaro_components_helpers_css_cjs = require("./helpers.css.cjs");
|
|
6
6
|
const styles_lib_css_atoms_sprinkles_css_cjs = require("../../../lib/css/atoms/sprinkles.css.cjs");
|
|
7
|
-
fileScope.setFileScope("src/themes/momotaro/components/link.css.ts", "blocks");
|
|
7
|
+
fileScope.setFileScope("src/themes/momotaro/components/link.css.ts", "@blockle/blocks");
|
|
8
8
|
const link = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("link", {
|
|
9
9
|
base: css.style([{
|
|
10
10
|
outline: "none",
|
|
@@ -3,7 +3,7 @@ import { style } from "@vanilla-extract/css";
|
|
|
3
3
|
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.mjs";
|
|
4
4
|
import { focusable } from "./helpers.css.mjs";
|
|
5
5
|
import { atoms } from "../../../lib/css/atoms/sprinkles.css.mjs";
|
|
6
|
-
setFileScope("src/themes/momotaro/components/link.css.ts", "blocks");
|
|
6
|
+
setFileScope("src/themes/momotaro/components/link.css.ts", "@blockle/blocks");
|
|
7
7
|
const link = makeComponentTheme("link", {
|
|
8
8
|
base: style([{
|
|
9
9
|
outline: "none",
|
|
@@ -4,7 +4,7 @@ const css = require("@vanilla-extract/css");
|
|
|
4
4
|
const styles_lib_theme_makeComponentTheme_cjs = require("../../../lib/theme/makeComponentTheme.cjs");
|
|
5
5
|
const styles_lib_theme_vars_css_cjs = require("../../../lib/theme/vars.css.cjs");
|
|
6
6
|
const styles_lib_css_atoms_sprinkles_css_cjs = require("../../../lib/css/atoms/sprinkles.css.cjs");
|
|
7
|
-
fileScope.setFileScope("src/themes/momotaro/components/progress.css.ts", "blocks");
|
|
7
|
+
fileScope.setFileScope("src/themes/momotaro/components/progress.css.ts", "@blockle/blocks");
|
|
8
8
|
const indeterminateAnimation = css.keyframes({
|
|
9
9
|
"0%": {
|
|
10
10
|
transform: "translateX(-100%)"
|
|
@@ -3,7 +3,7 @@ import { keyframes, style } from "@vanilla-extract/css";
|
|
|
3
3
|
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.mjs";
|
|
4
4
|
import { vars } from "../../../lib/theme/vars.css.mjs";
|
|
5
5
|
import { atoms } from "../../../lib/css/atoms/sprinkles.css.mjs";
|
|
6
|
-
setFileScope("src/themes/momotaro/components/progress.css.ts", "blocks");
|
|
6
|
+
setFileScope("src/themes/momotaro/components/progress.css.ts", "@blockle/blocks");
|
|
7
7
|
const indeterminateAnimation = keyframes({
|
|
8
8
|
"0%": {
|
|
9
9
|
transform: "translateX(-100%)"
|
|
@@ -6,7 +6,7 @@ const styles_lib_theme_vars_css_cjs = require("../../../lib/theme/vars.css.cjs")
|
|
|
6
6
|
const styles_themes_momotaro_components_helpers_css_cjs = require("./helpers.css.cjs");
|
|
7
7
|
const styles_themes_momotaro_components_transitions_cjs = require("./transitions.cjs");
|
|
8
8
|
const styles_lib_css_atoms_sprinkles_css_cjs = require("../../../lib/css/atoms/sprinkles.css.cjs");
|
|
9
|
-
fileScope.setFileScope("src/themes/momotaro/components/radio.css.ts", "blocks");
|
|
9
|
+
fileScope.setFileScope("src/themes/momotaro/components/radio.css.ts", "@blockle/blocks");
|
|
10
10
|
const radio = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("radio", {
|
|
11
11
|
base: css.style([{
|
|
12
12
|
display: "flex",
|
|
@@ -5,7 +5,7 @@ import { vars } from "../../../lib/theme/vars.css.mjs";
|
|
|
5
5
|
import { focusable } from "./helpers.css.mjs";
|
|
6
6
|
import { bounceOut } from "./transitions.mjs";
|
|
7
7
|
import { atoms } from "../../../lib/css/atoms/sprinkles.css.mjs";
|
|
8
|
-
setFileScope("src/themes/momotaro/components/radio.css.ts", "blocks");
|
|
8
|
+
setFileScope("src/themes/momotaro/components/radio.css.ts", "@blockle/blocks");
|
|
9
9
|
const radio = makeComponentTheme("radio", {
|
|
10
10
|
base: style([{
|
|
11
11
|
display: "flex",
|
|
@@ -4,7 +4,7 @@ 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
5
|
const styles_lib_theme_vars_css_cjs = require("../../../lib/theme/vars.css.cjs");
|
|
6
6
|
const styles_themes_momotaro_components_helpers_css_cjs = require("./helpers.css.cjs");
|
|
7
|
-
fileScope.setFileScope("src/themes/momotaro/components/select.css.ts", "blocks");
|
|
7
|
+
fileScope.setFileScope("src/themes/momotaro/components/select.css.ts", "@blockle/blocks");
|
|
8
8
|
const select = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("select", {
|
|
9
9
|
// wrapper: style({}),
|
|
10
10
|
select: styles_lib_css_style_style_cjs.style([{
|
|
@@ -3,7 +3,7 @@ import { style } from "../../../lib/css/style/style.mjs";
|
|
|
3
3
|
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.mjs";
|
|
4
4
|
import { vars } from "../../../lib/theme/vars.css.mjs";
|
|
5
5
|
import { focusable } from "./helpers.css.mjs";
|
|
6
|
-
setFileScope("src/themes/momotaro/components/select.css.ts", "blocks");
|
|
6
|
+
setFileScope("src/themes/momotaro/components/select.css.ts", "@blockle/blocks");
|
|
7
7
|
const select = makeComponentTheme("select", {
|
|
8
8
|
// wrapper: style({}),
|
|
9
9
|
select: style([{
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
|
+
const css = require("@vanilla-extract/css");
|
|
4
|
+
const styles_lib_css_style_style_cjs = require("../../../lib/css/style/style.cjs");
|
|
5
|
+
const styles_lib_theme_makeComponentTheme_cjs = require("../../../lib/theme/makeComponentTheme.cjs");
|
|
6
|
+
const styles_lib_theme_vars_css_cjs = require("../../../lib/theme/vars.css.cjs");
|
|
7
|
+
const styles_themes_momotaro_components_helpers_css_cjs = require("./helpers.css.cjs");
|
|
8
|
+
fileScope.setFileScope("src/themes/momotaro/components/slider.css.ts", "@blockle/blocks");
|
|
9
|
+
const trackBackground = css.createVar("trackBackground");
|
|
10
|
+
const filledTrackBackground = css.createVar("filledTrackBackground");
|
|
11
|
+
const thumbBackground = css.createVar("thumbBackground");
|
|
12
|
+
const slider = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("slider", {
|
|
13
|
+
base: styles_lib_css_style_style_cjs.style({
|
|
14
|
+
blockSize: "20px"
|
|
15
|
+
}),
|
|
16
|
+
track: styles_lib_css_style_style_cjs.style({
|
|
17
|
+
blockSize: "4px",
|
|
18
|
+
backgroundColor: trackBackground,
|
|
19
|
+
borderRadius: "small"
|
|
20
|
+
}),
|
|
21
|
+
filledTrack: styles_lib_css_style_style_cjs.style({
|
|
22
|
+
backgroundColor: filledTrackBackground
|
|
23
|
+
}),
|
|
24
|
+
thumb: styles_lib_css_style_style_cjs.style([{
|
|
25
|
+
backgroundColor: thumbBackground,
|
|
26
|
+
borderRadius: "50%",
|
|
27
|
+
height: "16px",
|
|
28
|
+
width: "16px"
|
|
29
|
+
}, styles_themes_momotaro_components_helpers_css_cjs.focusable]),
|
|
30
|
+
variants: {
|
|
31
|
+
size: {
|
|
32
|
+
small: styles_lib_css_style_style_cjs.style({
|
|
33
|
+
inlineSize: "100px"
|
|
34
|
+
}),
|
|
35
|
+
medium: styles_lib_css_style_style_cjs.style({
|
|
36
|
+
inlineSize: "200px"
|
|
37
|
+
}),
|
|
38
|
+
large: styles_lib_css_style_style_cjs.style({
|
|
39
|
+
inlineSize: "300px"
|
|
40
|
+
})
|
|
41
|
+
},
|
|
42
|
+
colorScheme: {
|
|
43
|
+
primary: styles_lib_css_style_style_cjs.style({
|
|
44
|
+
vars: {
|
|
45
|
+
[trackBackground]: styles_lib_theme_vars_css_cjs.vars.color.primaryLight,
|
|
46
|
+
[filledTrackBackground]: styles_lib_theme_vars_css_cjs.vars.color.primary,
|
|
47
|
+
[thumbBackground]: styles_lib_theme_vars_css_cjs.vars.color.primary
|
|
48
|
+
}
|
|
49
|
+
}),
|
|
50
|
+
secondary: styles_lib_css_style_style_cjs.style({
|
|
51
|
+
vars: {
|
|
52
|
+
[trackBackground]: styles_lib_theme_vars_css_cjs.vars.color.primaryLight,
|
|
53
|
+
[filledTrackBackground]: styles_lib_theme_vars_css_cjs.vars.color.secondary,
|
|
54
|
+
[thumbBackground]: styles_lib_theme_vars_css_cjs.vars.color.secondary
|
|
55
|
+
}
|
|
56
|
+
})
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
defaultVariants: {
|
|
60
|
+
size: "medium",
|
|
61
|
+
colorScheme: "primary"
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
fileScope.endFileScope();
|
|
65
|
+
exports.slider = slider;
|