@blockle/blocks 0.9.0 → 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 +3 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +4 -1
- package/dist/momotaro.chunk.d.ts +303 -267
- package/dist/reset.css.cjs +1 -1
- package/dist/reset.css.mjs +1 -1
- package/dist/styles/components/display/Divider/Divider.cjs +3 -3
- package/dist/styles/components/display/Divider/Divider.mjs +3 -3
- 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/other/BlocksProvider/BlocksProvider.cjs +21 -1
- package/dist/styles/components/other/BlocksProvider/BlocksProvider.mjs +21 -1
- package/dist/styles/components/overlay/Dialog/Dialog.cjs +9 -0
- package/dist/styles/components/overlay/Dialog/Dialog.mjs +12 -3
- 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 +9 -8
- package/dist/styles/themes/momotaro/components/dialog.css.mjs +9 -8
- 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 +28 -28
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const jsxRuntime = require("react/jsx-runtime");
|
|
3
|
+
const react = require("react");
|
|
3
4
|
const styles_lib_css_atoms_sprinkles_css_cjs = require("../../../lib/css/atoms/sprinkles.css.cjs");
|
|
4
5
|
const styles_components_display_Divider_Divider_cjs = require("../../display/Divider/Divider.cjs");
|
|
5
6
|
const BlocksProvider = ({
|
|
@@ -8,10 +9,29 @@ const BlocksProvider = ({
|
|
|
8
9
|
className,
|
|
9
10
|
...restProps
|
|
10
11
|
}) => {
|
|
11
|
-
|
|
12
|
+
const ref = react.useRef(null);
|
|
13
|
+
const [ariaHidden, setAriaHidden] = react.useState(false);
|
|
14
|
+
const contextValue = react.useMemo(
|
|
15
|
+
() => ({
|
|
16
|
+
theme,
|
|
17
|
+
setAriaHidden
|
|
18
|
+
}),
|
|
19
|
+
[theme, setAriaHidden]
|
|
20
|
+
);
|
|
21
|
+
react.useEffect(() => {
|
|
22
|
+
var _a, _b;
|
|
23
|
+
if (ariaHidden) {
|
|
24
|
+
(_a = ref.current) == null ? void 0 : _a.setAttribute("inert", "");
|
|
25
|
+
} else {
|
|
26
|
+
(_b = ref.current) == null ? void 0 : _b.removeAttribute("inert");
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
return /* @__PURE__ */ jsxRuntime.jsx(styles_components_display_Divider_Divider_cjs.BlocksProviderContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12
30
|
"div",
|
|
13
31
|
{
|
|
32
|
+
ref,
|
|
14
33
|
className: styles_components_display_Divider_Divider_cjs.classnames(theme.vars, styles_lib_css_atoms_sprinkles_css_cjs.atoms({ fontFamily: "primary" }), className),
|
|
34
|
+
"aria-hidden": ariaHidden,
|
|
15
35
|
...restProps,
|
|
16
36
|
children
|
|
17
37
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useRef, useState, useMemo, useEffect } from "react";
|
|
2
3
|
import { atoms } from "../../../lib/css/atoms/sprinkles.css.mjs";
|
|
3
4
|
import { BlocksProviderContext, classnames } from "../../display/Divider/Divider.mjs";
|
|
4
5
|
const BlocksProvider = ({
|
|
@@ -7,10 +8,29 @@ const BlocksProvider = ({
|
|
|
7
8
|
className,
|
|
8
9
|
...restProps
|
|
9
10
|
}) => {
|
|
10
|
-
|
|
11
|
+
const ref = useRef(null);
|
|
12
|
+
const [ariaHidden, setAriaHidden] = useState(false);
|
|
13
|
+
const contextValue = useMemo(
|
|
14
|
+
() => ({
|
|
15
|
+
theme,
|
|
16
|
+
setAriaHidden
|
|
17
|
+
}),
|
|
18
|
+
[theme, setAriaHidden]
|
|
19
|
+
);
|
|
20
|
+
useEffect(() => {
|
|
21
|
+
var _a, _b;
|
|
22
|
+
if (ariaHidden) {
|
|
23
|
+
(_a = ref.current) == null ? void 0 : _a.setAttribute("inert", "");
|
|
24
|
+
} else {
|
|
25
|
+
(_b = ref.current) == null ? void 0 : _b.removeAttribute("inert");
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
return /* @__PURE__ */ jsx(BlocksProviderContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx(
|
|
11
29
|
"div",
|
|
12
30
|
{
|
|
31
|
+
ref,
|
|
13
32
|
className: classnames(theme.vars, atoms({ fontFamily: "primary" }), className),
|
|
33
|
+
"aria-hidden": ariaHidden,
|
|
14
34
|
...restProps,
|
|
15
35
|
children
|
|
16
36
|
}
|
|
@@ -118,6 +118,13 @@ const useRestoreFocus = (active) => {
|
|
|
118
118
|
}
|
|
119
119
|
}, [active]);
|
|
120
120
|
};
|
|
121
|
+
const useRootAriaHidden = (hidden) => {
|
|
122
|
+
const context = react.useContext(styles_components_display_Divider_Divider_cjs.BlocksProviderContext);
|
|
123
|
+
if (!context) {
|
|
124
|
+
throw new Error("useRootAriaHidden must be used within a BlocksProvider");
|
|
125
|
+
}
|
|
126
|
+
context.setAriaHidden(hidden);
|
|
127
|
+
};
|
|
121
128
|
const useVisibilityState = (open) => {
|
|
122
129
|
const [visible, setVisible] = react.useState(open);
|
|
123
130
|
const hide = react.useCallback(() => {
|
|
@@ -179,6 +186,7 @@ const Dialog = ({
|
|
|
179
186
|
const isNested = useNestedDialog(visible);
|
|
180
187
|
usePreventBodyScroll(visible && !isNested);
|
|
181
188
|
useKeyboard("Escape", onRequestClose, { enabled: open && enabled });
|
|
189
|
+
useRootAriaHidden(visible);
|
|
182
190
|
useIsomorphicLayoutEffect(() => {
|
|
183
191
|
var _a, _b;
|
|
184
192
|
if (!open) {
|
|
@@ -243,3 +251,4 @@ exports.Portal = Portal;
|
|
|
243
251
|
exports.useIsomorphicLayoutEffect = useIsomorphicLayoutEffect;
|
|
244
252
|
exports.useKeyboard = useKeyboard;
|
|
245
253
|
exports.usePreventBodyScroll = usePreventBodyScroll;
|
|
254
|
+
exports.useRootAriaHidden = useRootAriaHidden;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useEffect, useLayoutEffect, useRef, useState, useCallback, createContext
|
|
3
|
-
import { useTheme, useComponentStyles, Box, classnames } from "../../display/Divider/Divider.mjs";
|
|
2
|
+
import { useEffect, useLayoutEffect, useRef, useContext, useState, useCallback, createContext } from "react";
|
|
3
|
+
import { useTheme, BlocksProviderContext, useComponentStyles, Box, classnames } from "../../display/Divider/Divider.mjs";
|
|
4
4
|
import { backdrop } from "./dialog.css.mjs";
|
|
5
5
|
import { createPortal } from "react-dom";
|
|
6
6
|
import { BlocksProvider } from "../../other/BlocksProvider/BlocksProvider.mjs";
|
|
@@ -117,6 +117,13 @@ const useRestoreFocus = (active) => {
|
|
|
117
117
|
}
|
|
118
118
|
}, [active]);
|
|
119
119
|
};
|
|
120
|
+
const useRootAriaHidden = (hidden) => {
|
|
121
|
+
const context = useContext(BlocksProviderContext);
|
|
122
|
+
if (!context) {
|
|
123
|
+
throw new Error("useRootAriaHidden must be used within a BlocksProvider");
|
|
124
|
+
}
|
|
125
|
+
context.setAriaHidden(hidden);
|
|
126
|
+
};
|
|
120
127
|
const useVisibilityState = (open) => {
|
|
121
128
|
const [visible, setVisible] = useState(open);
|
|
122
129
|
const hide = useCallback(() => {
|
|
@@ -178,6 +185,7 @@ const Dialog = ({
|
|
|
178
185
|
const isNested = useNestedDialog(visible);
|
|
179
186
|
usePreventBodyScroll(visible && !isNested);
|
|
180
187
|
useKeyboard("Escape", onRequestClose, { enabled: open && enabled });
|
|
188
|
+
useRootAriaHidden(visible);
|
|
181
189
|
useIsomorphicLayoutEffect(() => {
|
|
182
190
|
var _a, _b;
|
|
183
191
|
if (!open) {
|
|
@@ -242,5 +250,6 @@ export {
|
|
|
242
250
|
Portal,
|
|
243
251
|
useIsomorphicLayoutEffect,
|
|
244
252
|
useKeyboard,
|
|
245
|
-
usePreventBodyScroll
|
|
253
|
+
usePreventBodyScroll,
|
|
254
|
+
useRootAriaHidden
|
|
246
255
|
};
|
|
@@ -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",
|
|
@@ -14,7 +14,8 @@ const dialog = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("dialo
|
|
|
14
14
|
borderRadius: "medium",
|
|
15
15
|
boxShadow: "large"
|
|
16
16
|
}), {
|
|
17
|
-
|
|
17
|
+
maxHeight: "90%",
|
|
18
|
+
minWidth: "300px",
|
|
18
19
|
selectors: {
|
|
19
20
|
"&[data-open]": {
|
|
20
21
|
transform: "scale(1)"
|
|
@@ -46,16 +47,16 @@ const dialog = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("dialo
|
|
|
46
47
|
variants: {
|
|
47
48
|
size: {
|
|
48
49
|
small: css.style({
|
|
49
|
-
|
|
50
|
-
|
|
50
|
+
width: "400px",
|
|
51
|
+
maxWidth: "min(400px, 90%)"
|
|
51
52
|
}, "dialog_variants_size_small"),
|
|
52
53
|
medium: css.style({
|
|
53
|
-
|
|
54
|
-
|
|
54
|
+
width: "600px",
|
|
55
|
+
maxWidth: "min(600px, 90%)"
|
|
55
56
|
}, "dialog_variants_size_medium"),
|
|
56
57
|
large: css.style({
|
|
57
|
-
|
|
58
|
-
|
|
58
|
+
width: "800px",
|
|
59
|
+
maxWidth: "min(800px, 90%)"
|
|
59
60
|
}, "dialog_variants_size_large")
|
|
60
61
|
}
|
|
61
62
|
},
|
|
@@ -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",
|
|
@@ -13,7 +13,8 @@ const dialog = makeComponentTheme("dialog", {
|
|
|
13
13
|
borderRadius: "medium",
|
|
14
14
|
boxShadow: "large"
|
|
15
15
|
}), {
|
|
16
|
-
|
|
16
|
+
maxHeight: "90%",
|
|
17
|
+
minWidth: "300px",
|
|
17
18
|
selectors: {
|
|
18
19
|
"&[data-open]": {
|
|
19
20
|
transform: "scale(1)"
|
|
@@ -45,16 +46,16 @@ const dialog = makeComponentTheme("dialog", {
|
|
|
45
46
|
variants: {
|
|
46
47
|
size: {
|
|
47
48
|
small: style({
|
|
48
|
-
|
|
49
|
-
|
|
49
|
+
width: "400px",
|
|
50
|
+
maxWidth: "min(400px, 90%)"
|
|
50
51
|
}, "dialog_variants_size_small"),
|
|
51
52
|
medium: style({
|
|
52
|
-
|
|
53
|
-
|
|
53
|
+
width: "600px",
|
|
54
|
+
maxWidth: "min(600px, 90%)"
|
|
54
55
|
}, "dialog_variants_size_medium"),
|
|
55
56
|
large: style({
|
|
56
|
-
|
|
57
|
-
|
|
57
|
+
width: "800px",
|
|
58
|
+
maxWidth: "min(800px, 90%)"
|
|
58
59
|
}, "dialog_variants_size_large")
|
|
59
60
|
}
|
|
60
61
|
},
|
|
@@ -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([{
|