@blockle/blocks 0.11.0 → 0.11.2
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 +28 -60
- package/dist/index.mjs +4 -36
- package/dist/momotaro.chunk.d.ts +297 -293
- package/dist/reset.css.cjs +0 -2
- package/dist/reset.css.mjs +0 -2
- package/dist/styles/components/display/Divider/Divider.cjs +13 -13
- package/dist/styles/components/display/Divider/divider.css.cjs +10 -3
- package/dist/styles/components/display/Divider/divider.css.mjs +10 -3
- package/dist/styles/components/form/Button/Button.cjs +2 -2
- package/dist/styles/components/form/Button/Button.css.cjs +10 -3
- package/dist/styles/components/form/Button/Button.css.mjs +10 -3
- package/dist/styles/components/form/Checkbox/Checkbox.cjs +2 -2
- package/dist/styles/components/form/Checkbox/checkbox.css.cjs +24 -5
- package/dist/styles/components/form/Checkbox/checkbox.css.mjs +24 -5
- package/dist/styles/components/form/Input/Input.cjs +3 -3
- package/dist/styles/components/form/Input/input.css.cjs +14 -3
- package/dist/styles/components/form/Input/input.css.mjs +14 -3
- package/dist/styles/components/form/Radio/Radio.cjs +2 -2
- package/dist/styles/components/form/Radio/radio.css.cjs +24 -5
- package/dist/styles/components/form/Radio/radio.css.mjs +24 -5
- package/dist/styles/components/form/Select/Select.cjs +2 -2
- package/dist/styles/components/form/Select/select.css.cjs +30 -5
- package/dist/styles/components/form/Select/select.css.mjs +30 -5
- package/dist/styles/components/form/Slider/Slider.cjs +7 -7
- package/dist/styles/components/form/Slider/slider.css.cjs +64 -7
- package/dist/styles/components/form/Slider/slider.css.mjs +64 -7
- package/dist/styles/components/form/Switch/Switch.cjs +6 -6
- package/dist/styles/components/form/Switch/switch.css.cjs +20 -4
- package/dist/styles/components/form/Switch/switch.css.mjs +20 -4
- package/dist/styles/components/other/BlocksProvider/BlocksProvider.cjs +5 -5
- package/dist/styles/components/overlay/Dialog/Dialog.cjs +28819 -23
- package/dist/styles/components/overlay/Dialog/Dialog.mjs +28797 -3
- package/dist/styles/components/overlay/Dialog/dialog.css.cjs +18 -3
- package/dist/styles/components/overlay/Dialog/dialog.css.mjs +18 -3
- package/dist/styles/components/typography/Heading/heading.css.cjs +10 -3
- package/dist/styles/components/typography/Heading/heading.css.mjs +10 -3
- package/dist/styles/components/typography/Text/Text.cjs +2 -2
- package/dist/styles/components/typography/Text/text.css.cjs +10 -3
- package/dist/styles/components/typography/Text/text.css.mjs +10 -3
- package/dist/styles/lib/css/atoms/atomicProperties.cjs +83 -0
- package/dist/styles/lib/css/atoms/atomicProperties.mjs +84 -0
- package/dist/styles/lib/css/atoms/breakpoints.cjs +11 -0
- package/dist/styles/lib/css/atoms/breakpoints.mjs +12 -0
- package/dist/styles/lib/css/atoms/sprinkles.css.cjs +325 -2072
- package/dist/styles/lib/css/atoms/sprinkles.css.mjs +326 -2073
- package/dist/styles/lib/css/layers/layers.css.cjs +7 -0
- package/dist/styles/lib/css/layers/layers.css.mjs +8 -0
- package/dist/styles/lib/css/style/style.cjs +28 -0
- package/dist/styles/lib/css/style/style.mjs +29 -0
- package/dist/styles/lib/theme/makeComponentTheme.cjs +5 -0
- package/dist/styles/lib/theme/makeComponentTheme.mjs +6 -0
- package/dist/styles/lib/theme/makeTheme.cjs +2 -18
- package/dist/styles/lib/theme/makeTheme.mjs +1 -17
- package/dist/styles/lib/theme/makeVanillaTheme.cjs +19 -0
- package/dist/styles/lib/theme/makeVanillaTheme.mjs +20 -0
- package/dist/styles/lib/theme/tokens.cjs +81 -0
- package/dist/styles/lib/theme/tokens.mjs +82 -0
- package/dist/styles/lib/theme/vars.css.cjs +4 -76
- package/dist/styles/lib/theme/vars.css.mjs +4 -76
- package/dist/styles/themes/momotaro/components/button.css.cjs +103 -0
- package/dist/styles/themes/momotaro/components/button.css.mjs +104 -0
- package/dist/styles/themes/momotaro/components/checkbox.css.cjs +59 -0
- package/dist/styles/themes/momotaro/components/checkbox.css.mjs +60 -0
- package/dist/styles/themes/momotaro/components/dialog.css.cjs +68 -0
- package/dist/styles/themes/momotaro/components/dialog.css.mjs +69 -0
- package/dist/styles/themes/momotaro/components/divider.css.cjs +11 -0
- package/dist/styles/themes/momotaro/components/divider.css.mjs +12 -0
- package/dist/styles/themes/momotaro/components/dropdown.css.cjs +53 -0
- package/dist/styles/themes/momotaro/components/dropdown.css.mjs +54 -0
- package/dist/styles/themes/momotaro/components/helpers.css.cjs +43 -0
- package/dist/styles/themes/momotaro/components/helpers.css.mjs +44 -0
- package/dist/styles/themes/momotaro/components/index.cjs +32 -0
- package/dist/styles/themes/momotaro/components/index.mjs +33 -0
- package/dist/styles/themes/momotaro/components/input.css.cjs +41 -0
- package/dist/styles/themes/momotaro/components/input.css.mjs +42 -0
- package/dist/styles/themes/momotaro/components/label.css.cjs +33 -0
- package/dist/styles/themes/momotaro/components/label.css.mjs +34 -0
- package/dist/styles/themes/momotaro/components/link.css.cjs +47 -0
- package/dist/styles/themes/momotaro/components/link.css.mjs +48 -0
- package/dist/styles/themes/momotaro/components/progress.css.cjs +55 -0
- package/dist/styles/themes/momotaro/components/progress.css.mjs +56 -0
- package/dist/styles/themes/momotaro/components/radio.css.cjs +60 -0
- package/dist/styles/themes/momotaro/components/radio.css.mjs +61 -0
- package/dist/styles/themes/momotaro/components/select.css.cjs +44 -0
- package/dist/styles/themes/momotaro/components/select.css.mjs +45 -0
- 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 +43 -0
- package/dist/styles/themes/momotaro/components/spinner.css.mjs +44 -0
- package/dist/styles/themes/momotaro/components/switch.css.cjs +58 -0
- package/dist/styles/themes/momotaro/components/switch.css.mjs +59 -0
- package/dist/styles/themes/momotaro/components/transitions.cjs +3 -0
- package/dist/styles/themes/momotaro/components/transitions.mjs +4 -0
- package/dist/styles/themes/momotaro/momotaro.css.cjs +7 -191
- package/dist/styles/themes/momotaro/momotaro.css.mjs +7 -191
- package/dist/styles/themes/momotaro/tokens.css.cjs +84 -0
- package/dist/styles/themes/momotaro/tokens.css.mjs +85 -0
- package/package.json +11 -9
- package/dist/style.css +0 -2851
- package/dist/styles/components/form/Button/Button.css.ts.vanilla.cjs +0 -1
- package/dist/styles/components/form/Button/Button.css.ts.vanilla.mjs +0 -1
- package/dist/styles/components/form/Checkbox/checkbox.css.ts.vanilla.cjs +0 -1
- package/dist/styles/components/form/Checkbox/checkbox.css.ts.vanilla.mjs +0 -1
- package/dist/styles/components/form/Input/input.css.ts.vanilla.cjs +0 -1
- package/dist/styles/components/form/Input/input.css.ts.vanilla.mjs +0 -1
- package/dist/styles/components/form/Radio/radio.css.ts.vanilla.cjs +0 -1
- package/dist/styles/components/form/Radio/radio.css.ts.vanilla.mjs +0 -1
- package/dist/styles/components/form/Select/select.css.ts.vanilla.cjs +0 -1
- package/dist/styles/components/form/Select/select.css.ts.vanilla.mjs +0 -1
- package/dist/styles/components/form/Slider/slider.css.ts.vanilla.cjs +0 -1
- package/dist/styles/components/form/Slider/slider.css.ts.vanilla.mjs +0 -1
- package/dist/styles/components/form/Switch/switch.css.ts.vanilla.cjs +0 -1
- package/dist/styles/components/form/Switch/switch.css.ts.vanilla.mjs +0 -1
- package/dist/styles/components/overlay/Dialog/dialog.css.ts.vanilla.cjs +0 -1
- package/dist/styles/components/overlay/Dialog/dialog.css.ts.vanilla.mjs +0 -1
- package/dist/styles/components/typography/Heading/heading.css.ts.vanilla.cjs +0 -1
- package/dist/styles/components/typography/Heading/heading.css.ts.vanilla.mjs +0 -1
- package/dist/styles/components/typography/Text/text.css.ts.vanilla.cjs +0 -1
- package/dist/styles/components/typography/Text/text.css.ts.vanilla.mjs +0 -1
- package/dist/styles/entries/reset.css.ts.vanilla.cjs +0 -1
- package/dist/styles/entries/reset.css.ts.vanilla.mjs +0 -1
- package/dist/styles/lib/css/atoms/sprinkles.css.ts.vanilla.cjs +0 -1
- package/dist/styles/lib/css/atoms/sprinkles.css.ts.vanilla.mjs +0 -1
- package/dist/styles/lib/css/layers/layers.css.ts.vanilla.cjs +0 -1
- package/dist/styles/lib/css/layers/layers.css.ts.vanilla.mjs +0 -1
- package/dist/styles/lib/css/reset/reset.css.ts.vanilla.cjs +0 -1
- package/dist/styles/lib/css/reset/reset.css.ts.vanilla.mjs +0 -1
- package/dist/styles/lib/theme/vars.css.ts.vanilla.cjs +0 -1
- package/dist/styles/lib/theme/vars.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/components/button.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/components/button.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/components/checkbox.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/components/checkbox.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/components/dialog.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/components/dialog.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/components/divider.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/components/divider.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/components/dropdown.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/components/dropdown.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/components/helpers.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/components/helpers.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/components/input.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/components/input.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/components/label.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/components/label.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/components/link.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/components/link.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/components/progress.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/components/progress.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/components/radio.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/components/radio.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/components/select.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/components/select.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/components/slider.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/components/slider.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/components/spinner.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/components/spinner.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/components/switch.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/components/switch.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/momotaro.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/momotaro.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/tokens.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/tokens.css.ts.vanilla.mjs +0 -1
- /package/dist/styles/{components/display/Divider/divider.css.ts.vanilla.cjs → lib/css/reset/reset.css.cjs} +0 -0
- /package/dist/styles/{components/display/Divider/divider.css.ts.vanilla.mjs → lib/css/reset/reset.css.mjs} +0 -0
|
@@ -1,8 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
|
-
require("
|
|
4
|
-
require("
|
|
3
|
+
const css = require("@vanilla-extract/css");
|
|
4
|
+
const styles_lib_css_layers_layers_css_cjs = require("../../../lib/css/layers/layers.css.cjs");
|
|
5
5
|
fileScope.setFileScope("src/components/overlay/Dialog/dialog.css.ts", "@blockle/blocks");
|
|
6
|
-
|
|
6
|
+
const backdrop = css.style({
|
|
7
|
+
"@layer": {
|
|
8
|
+
[styles_lib_css_layers_layers_css_cjs.blocksLayer]: {
|
|
9
|
+
contain: "layout",
|
|
10
|
+
display: "flex",
|
|
11
|
+
placeItems: "center",
|
|
12
|
+
position: "fixed",
|
|
13
|
+
inlineSize: "100%",
|
|
14
|
+
blockSize: "100%",
|
|
15
|
+
insetInlineStart: 0,
|
|
16
|
+
insetBlockStart: 0,
|
|
17
|
+
overflow: "hidden",
|
|
18
|
+
zIndex: 1e3
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}, "backdrop");
|
|
7
22
|
fileScope.endFileScope();
|
|
8
23
|
exports.backdrop = backdrop;
|
|
@@ -1,8 +1,23 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
2
|
+
import { style } from "@vanilla-extract/css";
|
|
3
|
+
import { blocksLayer } from "../../../lib/css/layers/layers.css.mjs";
|
|
4
4
|
setFileScope("src/components/overlay/Dialog/dialog.css.ts", "@blockle/blocks");
|
|
5
|
-
|
|
5
|
+
const backdrop = style({
|
|
6
|
+
"@layer": {
|
|
7
|
+
[blocksLayer]: {
|
|
8
|
+
contain: "layout",
|
|
9
|
+
display: "flex",
|
|
10
|
+
placeItems: "center",
|
|
11
|
+
position: "fixed",
|
|
12
|
+
inlineSize: "100%",
|
|
13
|
+
blockSize: "100%",
|
|
14
|
+
insetInlineStart: 0,
|
|
15
|
+
insetBlockStart: 0,
|
|
16
|
+
overflow: "hidden",
|
|
17
|
+
zIndex: 1e3
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}, "backdrop");
|
|
6
21
|
endFileScope();
|
|
7
22
|
export {
|
|
8
23
|
backdrop
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
|
-
require("
|
|
4
|
-
require("
|
|
3
|
+
const css = require("@vanilla-extract/css");
|
|
4
|
+
const styles_lib_css_layers_layers_css_cjs = require("../../../lib/css/layers/layers.css.cjs");
|
|
5
5
|
fileScope.setFileScope("src/components/typography/Heading/heading.css.ts", "@blockle/blocks");
|
|
6
|
-
|
|
6
|
+
const heading = css.style({
|
|
7
|
+
"@layer": {
|
|
8
|
+
[styles_lib_css_layers_layers_css_cjs.blocksLayer]: {
|
|
9
|
+
margin: 0,
|
|
10
|
+
padding: 0
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}, "heading");
|
|
7
14
|
fileScope.endFileScope();
|
|
8
15
|
exports.heading = heading;
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
2
|
+
import { style } from "@vanilla-extract/css";
|
|
3
|
+
import { blocksLayer } from "../../../lib/css/layers/layers.css.mjs";
|
|
4
4
|
setFileScope("src/components/typography/Heading/heading.css.ts", "@blockle/blocks");
|
|
5
|
-
|
|
5
|
+
const heading = style({
|
|
6
|
+
"@layer": {
|
|
7
|
+
[blocksLayer]: {
|
|
8
|
+
margin: 0,
|
|
9
|
+
padding: 0
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}, "heading");
|
|
6
13
|
endFileScope();
|
|
7
14
|
export {
|
|
8
15
|
heading
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const jsxRuntime = require("react/jsx-runtime");
|
|
3
|
-
const
|
|
3
|
+
const require$$0 = require("react");
|
|
4
4
|
const styles_components_display_Divider_Divider_cjs = require("../../display/Divider/Divider.cjs");
|
|
5
5
|
const styles_components_typography_Text_text_css_cjs = require("./text.css.cjs");
|
|
6
|
-
const Text =
|
|
6
|
+
const Text = require$$0.forwardRef(function Text2({ tag: Tag = "span", asChild, children, className, ...restProps }, ref) {
|
|
7
7
|
return /* @__PURE__ */ jsxRuntime.jsx(styles_components_display_Divider_Divider_cjs.Box, { ref, asChild: true, className: styles_components_display_Divider_Divider_cjs.classnames(styles_components_typography_Text_text_css_cjs.text, className), ...restProps, children: asChild ? children : /* @__PURE__ */ jsxRuntime.jsx(Tag, { children }) });
|
|
8
8
|
});
|
|
9
9
|
exports.Text = Text;
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
|
-
require("
|
|
4
|
-
require("
|
|
3
|
+
const css = require("@vanilla-extract/css");
|
|
4
|
+
const styles_lib_css_layers_layers_css_cjs = require("../../../lib/css/layers/layers.css.cjs");
|
|
5
5
|
fileScope.setFileScope("src/components/typography/Text/text.css.ts", "@blockle/blocks");
|
|
6
|
-
|
|
6
|
+
const text = css.style({
|
|
7
|
+
"@layer": {
|
|
8
|
+
[styles_lib_css_layers_layers_css_cjs.blocksLayer]: {
|
|
9
|
+
margin: 0,
|
|
10
|
+
padding: 0
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}, "text");
|
|
7
14
|
fileScope.endFileScope();
|
|
8
15
|
exports.text = text;
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
2
|
+
import { style } from "@vanilla-extract/css";
|
|
3
|
+
import { blocksLayer } from "../../../lib/css/layers/layers.css.mjs";
|
|
4
4
|
setFileScope("src/components/typography/Text/text.css.ts", "@blockle/blocks");
|
|
5
|
-
|
|
5
|
+
const text = style({
|
|
6
|
+
"@layer": {
|
|
7
|
+
[blocksLayer]: {
|
|
8
|
+
margin: 0,
|
|
9
|
+
padding: 0
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}, "text");
|
|
6
13
|
endFileScope();
|
|
7
14
|
export {
|
|
8
15
|
text
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const styles_lib_theme_vars_css_cjs = require("../../theme/vars.css.cjs");
|
|
3
|
+
const colorsWithCurrentColor = { ...styles_lib_theme_vars_css_cjs.vars.color, currentColor: "currentColor" };
|
|
4
|
+
const size = { auto: "auto", full: "100%", "fit-content": "fit-content" };
|
|
5
|
+
const unresponsiveProperties = {
|
|
6
|
+
backgroundColor: colorsWithCurrentColor,
|
|
7
|
+
borderColor: colorsWithCurrentColor,
|
|
8
|
+
borderRadius: styles_lib_theme_vars_css_cjs.vars.borderRadius,
|
|
9
|
+
borderWidth: styles_lib_theme_vars_css_cjs.vars.borderWidth,
|
|
10
|
+
border: ["none"],
|
|
11
|
+
insetBlock: [0],
|
|
12
|
+
insetBlockStart: [0],
|
|
13
|
+
insetBlockEnd: [0],
|
|
14
|
+
insetInline: [0],
|
|
15
|
+
insetInlineStart: [0],
|
|
16
|
+
insetInlineEnd: [0],
|
|
17
|
+
boxShadow: styles_lib_theme_vars_css_cjs.vars.shadow,
|
|
18
|
+
color: colorsWithCurrentColor,
|
|
19
|
+
cursor: ["auto", "pointer"],
|
|
20
|
+
fontFamily: styles_lib_theme_vars_css_cjs.vars.fontFamily,
|
|
21
|
+
fontStyle: ["normal", "italic", "oblique"],
|
|
22
|
+
fontWeight: styles_lib_theme_vars_css_cjs.vars.fontWeight,
|
|
23
|
+
lineHeight: styles_lib_theme_vars_css_cjs.vars.lineHeight,
|
|
24
|
+
blockSize: size,
|
|
25
|
+
maxBlockSize: size,
|
|
26
|
+
inlineSize: size,
|
|
27
|
+
maxInlineSize: size,
|
|
28
|
+
opacity: [0, 1],
|
|
29
|
+
overflow: ["hidden", "scroll", "visible", "auto"],
|
|
30
|
+
overflowBlock: ["hidden", "scroll", "visible", "auto"],
|
|
31
|
+
overflowInline: ["hidden", "scroll", "visible", "auto"],
|
|
32
|
+
pointerEvents: ["none"],
|
|
33
|
+
textDecoration: ["overline", "line-through", "underline", "none"],
|
|
34
|
+
textTransform: ["lowercase", "uppercase", "capitalize"],
|
|
35
|
+
textWrap: ["balance", "wrap"],
|
|
36
|
+
transition: styles_lib_theme_vars_css_cjs.vars.transition,
|
|
37
|
+
userSelect: ["none"],
|
|
38
|
+
whiteSpace: ["nowrap", "pre", "pre-line", "pre-wrap"],
|
|
39
|
+
wordBreak: ["break-word"],
|
|
40
|
+
wordWrap: ["break-word"]
|
|
41
|
+
};
|
|
42
|
+
const marginSpace = { auto: "auto", ...styles_lib_theme_vars_css_cjs.vars.space };
|
|
43
|
+
const responsiveProperties = {
|
|
44
|
+
alignContent: ["stretch", "center", "flex-start", "flex-end"],
|
|
45
|
+
alignItems: ["stretch", "center", "flex-start", "flex-end"],
|
|
46
|
+
alignSelf: ["stretch", "center", "flex-start", "flex-end"],
|
|
47
|
+
columnGap: styles_lib_theme_vars_css_cjs.vars.space,
|
|
48
|
+
display: [
|
|
49
|
+
"none",
|
|
50
|
+
"flex",
|
|
51
|
+
"inline-flex",
|
|
52
|
+
"block",
|
|
53
|
+
"inline",
|
|
54
|
+
"inline-block",
|
|
55
|
+
"grid",
|
|
56
|
+
"inline-grid"
|
|
57
|
+
],
|
|
58
|
+
flex: [1],
|
|
59
|
+
flexDirection: ["row", "row-reverse", "column", "column-reverse"],
|
|
60
|
+
flexGrow: [0, 1],
|
|
61
|
+
flexShrink: [0, 1],
|
|
62
|
+
flexWrap: ["nowrap", "wrap"],
|
|
63
|
+
fontSize: styles_lib_theme_vars_css_cjs.vars.fontSize,
|
|
64
|
+
gap: styles_lib_theme_vars_css_cjs.vars.space,
|
|
65
|
+
justifyContent: ["flex-start", "flex-end", "center", "space-between", "space-around"],
|
|
66
|
+
marginBlockStart: marginSpace,
|
|
67
|
+
marginBlockEnd: marginSpace,
|
|
68
|
+
marginInlineStart: marginSpace,
|
|
69
|
+
marginInlineEnd: marginSpace,
|
|
70
|
+
outline: ["none"],
|
|
71
|
+
padding: styles_lib_theme_vars_css_cjs.vars.space,
|
|
72
|
+
paddingBlock: styles_lib_theme_vars_css_cjs.vars.space,
|
|
73
|
+
paddingBlockStart: styles_lib_theme_vars_css_cjs.vars.space,
|
|
74
|
+
paddingBlockEnd: styles_lib_theme_vars_css_cjs.vars.space,
|
|
75
|
+
paddingInline: styles_lib_theme_vars_css_cjs.vars.space,
|
|
76
|
+
paddingInlineStart: styles_lib_theme_vars_css_cjs.vars.space,
|
|
77
|
+
paddingInlineEnd: styles_lib_theme_vars_css_cjs.vars.space,
|
|
78
|
+
position: ["relative", "fixed", "absolute", "sticky", "static"],
|
|
79
|
+
rowGap: styles_lib_theme_vars_css_cjs.vars.space,
|
|
80
|
+
textAlign: ["center", "left", "right", "justify"]
|
|
81
|
+
};
|
|
82
|
+
exports.responsiveProperties = responsiveProperties;
|
|
83
|
+
exports.unresponsiveProperties = unresponsiveProperties;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { vars } from "../../theme/vars.css.mjs";
|
|
2
|
+
const colorsWithCurrentColor = { ...vars.color, currentColor: "currentColor" };
|
|
3
|
+
const size = { auto: "auto", full: "100%", "fit-content": "fit-content" };
|
|
4
|
+
const unresponsiveProperties = {
|
|
5
|
+
backgroundColor: colorsWithCurrentColor,
|
|
6
|
+
borderColor: colorsWithCurrentColor,
|
|
7
|
+
borderRadius: vars.borderRadius,
|
|
8
|
+
borderWidth: vars.borderWidth,
|
|
9
|
+
border: ["none"],
|
|
10
|
+
insetBlock: [0],
|
|
11
|
+
insetBlockStart: [0],
|
|
12
|
+
insetBlockEnd: [0],
|
|
13
|
+
insetInline: [0],
|
|
14
|
+
insetInlineStart: [0],
|
|
15
|
+
insetInlineEnd: [0],
|
|
16
|
+
boxShadow: vars.shadow,
|
|
17
|
+
color: colorsWithCurrentColor,
|
|
18
|
+
cursor: ["auto", "pointer"],
|
|
19
|
+
fontFamily: vars.fontFamily,
|
|
20
|
+
fontStyle: ["normal", "italic", "oblique"],
|
|
21
|
+
fontWeight: vars.fontWeight,
|
|
22
|
+
lineHeight: vars.lineHeight,
|
|
23
|
+
blockSize: size,
|
|
24
|
+
maxBlockSize: size,
|
|
25
|
+
inlineSize: size,
|
|
26
|
+
maxInlineSize: size,
|
|
27
|
+
opacity: [0, 1],
|
|
28
|
+
overflow: ["hidden", "scroll", "visible", "auto"],
|
|
29
|
+
overflowBlock: ["hidden", "scroll", "visible", "auto"],
|
|
30
|
+
overflowInline: ["hidden", "scroll", "visible", "auto"],
|
|
31
|
+
pointerEvents: ["none"],
|
|
32
|
+
textDecoration: ["overline", "line-through", "underline", "none"],
|
|
33
|
+
textTransform: ["lowercase", "uppercase", "capitalize"],
|
|
34
|
+
textWrap: ["balance", "wrap"],
|
|
35
|
+
transition: vars.transition,
|
|
36
|
+
userSelect: ["none"],
|
|
37
|
+
whiteSpace: ["nowrap", "pre", "pre-line", "pre-wrap"],
|
|
38
|
+
wordBreak: ["break-word"],
|
|
39
|
+
wordWrap: ["break-word"]
|
|
40
|
+
};
|
|
41
|
+
const marginSpace = { auto: "auto", ...vars.space };
|
|
42
|
+
const responsiveProperties = {
|
|
43
|
+
alignContent: ["stretch", "center", "flex-start", "flex-end"],
|
|
44
|
+
alignItems: ["stretch", "center", "flex-start", "flex-end"],
|
|
45
|
+
alignSelf: ["stretch", "center", "flex-start", "flex-end"],
|
|
46
|
+
columnGap: vars.space,
|
|
47
|
+
display: [
|
|
48
|
+
"none",
|
|
49
|
+
"flex",
|
|
50
|
+
"inline-flex",
|
|
51
|
+
"block",
|
|
52
|
+
"inline",
|
|
53
|
+
"inline-block",
|
|
54
|
+
"grid",
|
|
55
|
+
"inline-grid"
|
|
56
|
+
],
|
|
57
|
+
flex: [1],
|
|
58
|
+
flexDirection: ["row", "row-reverse", "column", "column-reverse"],
|
|
59
|
+
flexGrow: [0, 1],
|
|
60
|
+
flexShrink: [0, 1],
|
|
61
|
+
flexWrap: ["nowrap", "wrap"],
|
|
62
|
+
fontSize: vars.fontSize,
|
|
63
|
+
gap: vars.space,
|
|
64
|
+
justifyContent: ["flex-start", "flex-end", "center", "space-between", "space-around"],
|
|
65
|
+
marginBlockStart: marginSpace,
|
|
66
|
+
marginBlockEnd: marginSpace,
|
|
67
|
+
marginInlineStart: marginSpace,
|
|
68
|
+
marginInlineEnd: marginSpace,
|
|
69
|
+
outline: ["none"],
|
|
70
|
+
padding: vars.space,
|
|
71
|
+
paddingBlock: vars.space,
|
|
72
|
+
paddingBlockStart: vars.space,
|
|
73
|
+
paddingBlockEnd: vars.space,
|
|
74
|
+
paddingInline: vars.space,
|
|
75
|
+
paddingInlineStart: vars.space,
|
|
76
|
+
paddingInlineEnd: vars.space,
|
|
77
|
+
position: ["relative", "fixed", "absolute", "sticky", "static"],
|
|
78
|
+
rowGap: vars.space,
|
|
79
|
+
textAlign: ["center", "left", "right", "justify"]
|
|
80
|
+
};
|
|
81
|
+
export {
|
|
82
|
+
responsiveProperties,
|
|
83
|
+
unresponsiveProperties
|
|
84
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const breakpointNames = ["mobile", "tablet", "desktop", "wide"];
|
|
3
|
+
const breakpoints = {
|
|
4
|
+
mobile: 0,
|
|
5
|
+
tablet: 740,
|
|
6
|
+
desktop: 992,
|
|
7
|
+
wide: 1200
|
|
8
|
+
};
|
|
9
|
+
const breakpointQuery = (key) => `screen and (min-width: ${breakpoints[key]}px)`;
|
|
10
|
+
exports.breakpointNames = breakpointNames;
|
|
11
|
+
exports.breakpointQuery = breakpointQuery;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const breakpointNames = ["mobile", "tablet", "desktop", "wide"];
|
|
2
|
+
const breakpoints = {
|
|
3
|
+
mobile: 0,
|
|
4
|
+
tablet: 740,
|
|
5
|
+
desktop: 992,
|
|
6
|
+
wide: 1200
|
|
7
|
+
};
|
|
8
|
+
const breakpointQuery = (key) => `screen and (min-width: ${breakpoints[key]}px)`;
|
|
9
|
+
export {
|
|
10
|
+
breakpointNames,
|
|
11
|
+
breakpointQuery
|
|
12
|
+
};
|