@blockle/blocks 0.8.8 → 0.8.10

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.
Files changed (90) hide show
  1. package/dist/index.cjs +79 -738
  2. package/dist/index.d.mts +1 -0
  3. package/dist/index.mjs +58 -716
  4. package/dist/momotaro.chunk.d.ts +159 -146
  5. package/dist/reset.css.d.mts +2 -0
  6. package/dist/reset.css.d.ts +1 -1
  7. package/dist/styles/components/display/Divider/Divider.cjs +226 -0
  8. package/dist/styles/components/display/Divider/Divider.mjs +227 -0
  9. package/dist/styles/components/{Divider → display/Divider}/divider.css.cjs +2 -2
  10. package/dist/styles/components/{Divider → display/Divider}/divider.css.mjs +2 -2
  11. package/dist/styles/components/form/Button/Button.cjs +55 -0
  12. package/dist/styles/components/{Button → form/Button}/Button.css.cjs +2 -2
  13. package/dist/styles/components/{Button → form/Button}/Button.css.mjs +2 -2
  14. package/dist/styles/components/form/Button/Button.mjs +56 -0
  15. package/dist/styles/components/form/Checkbox/Checkbox.cjs +47 -0
  16. package/dist/styles/components/form/Checkbox/Checkbox.mjs +48 -0
  17. package/dist/styles/components/{Checkbox → form/Checkbox}/checkbox.css.cjs +2 -2
  18. package/dist/styles/components/{Checkbox → form/Checkbox}/checkbox.css.mjs +2 -2
  19. package/dist/styles/components/form/Input/Input.cjs +27 -0
  20. package/dist/styles/components/form/Input/Input.mjs +28 -0
  21. package/dist/styles/components/{Input → form/Input}/input.css.cjs +2 -2
  22. package/dist/styles/components/{Input → form/Input}/input.css.mjs +2 -2
  23. package/dist/styles/components/form/Radio/Radio.cjs +23 -0
  24. package/dist/styles/components/form/Radio/Radio.mjs +24 -0
  25. package/dist/styles/components/{Radio → form/Radio}/radio.css.cjs +2 -2
  26. package/dist/styles/components/{Radio → form/Radio}/radio.css.mjs +2 -2
  27. package/dist/styles/components/form/Switch/Switch.cjs +61 -0
  28. package/dist/styles/components/form/Switch/Switch.mjs +62 -0
  29. package/dist/styles/components/{Switch → form/Switch}/switch.css.cjs +2 -2
  30. package/dist/styles/components/{Switch → form/Switch}/switch.css.mjs +2 -2
  31. package/dist/styles/components/other/BlocksProvider/BlocksProvider.cjs +20 -0
  32. package/dist/styles/components/other/BlocksProvider/BlocksProvider.mjs +21 -0
  33. package/dist/styles/components/overlay/Dialog/Dialog.cjs +245 -0
  34. package/dist/styles/components/overlay/Dialog/Dialog.mjs +246 -0
  35. package/dist/styles/components/{Dialog → overlay/Dialog}/dialog.css.cjs +2 -2
  36. package/dist/styles/components/{Dialog → overlay/Dialog}/dialog.css.mjs +2 -2
  37. package/dist/styles/components/typography/Heading/Heading.cjs +14 -0
  38. package/dist/styles/components/typography/Heading/Heading.mjs +15 -0
  39. package/dist/styles/components/{Heading → typography/Heading}/heading.css.cjs +2 -2
  40. package/dist/styles/components/{Heading → typography/Heading}/heading.css.mjs +2 -2
  41. package/dist/styles/components/typography/Text/Text.cjs +9 -0
  42. package/dist/styles/components/typography/Text/Text.mjs +10 -0
  43. package/dist/styles/components/{Text → typography/Text}/text.css.cjs +2 -2
  44. package/dist/styles/components/{Text → typography/Text}/text.css.mjs +2 -2
  45. package/dist/styles/lib/css/atoms/atoms.cjs +1 -0
  46. package/dist/styles/lib/css/atoms/atoms.mjs +1 -0
  47. package/dist/styles/lib/css/atoms/sprinkles.css.cjs +2 -6
  48. package/dist/styles/lib/css/atoms/sprinkles.css.mjs +2 -6
  49. package/dist/styles/lib/css/layers/layers.css.cjs +1 -1
  50. package/dist/styles/lib/css/layers/layers.css.mjs +1 -1
  51. package/dist/styles/lib/theme/vars.css.cjs +1 -1
  52. package/dist/styles/lib/theme/vars.css.mjs +1 -1
  53. package/dist/styles/lib/utils/atom-props.cjs +15 -0
  54. package/dist/styles/lib/utils/atom-props.mjs +16 -0
  55. package/dist/styles/themes/momotaro/components/button.css.cjs +1 -1
  56. package/dist/styles/themes/momotaro/components/button.css.mjs +1 -1
  57. package/dist/styles/themes/momotaro/components/checkbox.css.cjs +1 -1
  58. package/dist/styles/themes/momotaro/components/checkbox.css.mjs +1 -1
  59. package/dist/styles/themes/momotaro/components/dialog.css.cjs +1 -1
  60. package/dist/styles/themes/momotaro/components/dialog.css.mjs +1 -1
  61. package/dist/styles/themes/momotaro/components/divider.css.cjs +1 -1
  62. package/dist/styles/themes/momotaro/components/divider.css.mjs +1 -1
  63. package/dist/styles/themes/momotaro/components/dropdown.css.cjs +54 -0
  64. package/dist/styles/themes/momotaro/components/dropdown.css.mjs +55 -0
  65. package/dist/styles/themes/momotaro/components/helpers.css.cjs +1 -1
  66. package/dist/styles/themes/momotaro/components/helpers.css.mjs +1 -1
  67. package/dist/styles/themes/momotaro/components/index.cjs +2 -0
  68. package/dist/styles/themes/momotaro/components/index.mjs +2 -0
  69. package/dist/styles/themes/momotaro/components/input.css.cjs +1 -1
  70. package/dist/styles/themes/momotaro/components/input.css.mjs +1 -1
  71. package/dist/styles/themes/momotaro/components/label.css.cjs +1 -1
  72. package/dist/styles/themes/momotaro/components/label.css.mjs +1 -1
  73. package/dist/styles/themes/momotaro/components/link.css.cjs +1 -1
  74. package/dist/styles/themes/momotaro/components/link.css.mjs +1 -1
  75. package/dist/styles/themes/momotaro/components/progress.css.cjs +1 -1
  76. package/dist/styles/themes/momotaro/components/progress.css.mjs +1 -1
  77. package/dist/styles/themes/momotaro/components/radio.css.cjs +1 -1
  78. package/dist/styles/themes/momotaro/components/radio.css.mjs +1 -1
  79. package/dist/styles/themes/momotaro/components/spinner.css.cjs +1 -1
  80. package/dist/styles/themes/momotaro/components/spinner.css.mjs +1 -1
  81. package/dist/styles/themes/momotaro/components/switch.css.cjs +1 -1
  82. package/dist/styles/themes/momotaro/components/switch.css.mjs +1 -1
  83. package/dist/styles/themes/momotaro/index.cjs +1 -0
  84. package/dist/styles/themes/momotaro/index.mjs +1 -0
  85. package/dist/styles/themes/momotaro/momotaro.css.cjs +1 -1
  86. package/dist/styles/themes/momotaro/momotaro.css.mjs +1 -1
  87. package/dist/styles/themes/momotaro/tokens.css.cjs +1 -1
  88. package/dist/styles/themes/momotaro/tokens.css.mjs +1 -1
  89. package/dist/themes/momotaro.d.mts +1 -0
  90. package/package.json +47 -37
@@ -1,7 +1,7 @@
1
1
  import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
2
  import { style } from "@vanilla-extract/css";
3
- import { blocksLayer } from "../../lib/css/layers/layers.css.mjs";
4
- setFileScope("src/components/Dialog/dialog.css.ts?used", "blocks");
3
+ import { blocksLayer } from "../../../lib/css/layers/layers.css.mjs";
4
+ setFileScope("src/components/overlay/Dialog/dialog.css.ts", "blocks");
5
5
  const backdrop = style({
6
6
  "@layer": {
7
7
  [blocksLayer]: {
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ const jsxRuntime = require("react/jsx-runtime");
3
+ const styles_components_display_Divider_Divider_cjs = require("../../display/Divider/Divider.cjs");
4
+ const styles_components_typography_Heading_heading_css_cjs = require("./heading.css.cjs");
5
+ const Heading = ({
6
+ className,
7
+ level = 1,
8
+ children,
9
+ ...restProps
10
+ }) => {
11
+ const Tag = `h${level}`;
12
+ return /* @__PURE__ */ jsxRuntime.jsx(styles_components_display_Divider_Divider_cjs.Box, { asChild: true, className: styles_components_display_Divider_Divider_cjs.classnames(styles_components_typography_Heading_heading_css_cjs.heading, className), ...restProps, children: /* @__PURE__ */ jsxRuntime.jsx(Tag, { children }) });
13
+ };
14
+ exports.Heading = Heading;
@@ -0,0 +1,15 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { Box, classnames } from "../../display/Divider/Divider.mjs";
3
+ import { heading } from "./heading.css.mjs";
4
+ const Heading = ({
5
+ className,
6
+ level = 1,
7
+ children,
8
+ ...restProps
9
+ }) => {
10
+ const Tag = `h${level}`;
11
+ return /* @__PURE__ */ jsx(Box, { asChild: true, className: classnames(heading, className), ...restProps, children: /* @__PURE__ */ jsx(Tag, { children }) });
12
+ };
13
+ export {
14
+ Heading
15
+ };
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  const fileScope = require("@vanilla-extract/css/fileScope");
3
3
  const css = require("@vanilla-extract/css");
4
- const styles_lib_css_layers_layers_css_cjs = require("../../lib/css/layers/layers.css.cjs");
5
- fileScope.setFileScope("src/components/Heading/heading.css.ts?used", "blocks");
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");
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
- import { blocksLayer } from "../../lib/css/layers/layers.css.mjs";
4
- setFileScope("src/components/Heading/heading.css.ts?used", "blocks");
3
+ import { blocksLayer } from "../../../lib/css/layers/layers.css.mjs";
4
+ setFileScope("src/components/typography/Heading/heading.css.ts", "blocks");
5
5
  const heading = style({
6
6
  "@layer": {
7
7
  [blocksLayer]: {
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ const jsxRuntime = require("react/jsx-runtime");
3
+ const react = require("react");
4
+ const styles_components_display_Divider_Divider_cjs = require("../../display/Divider/Divider.cjs");
5
+ const styles_components_typography_Text_text_css_cjs = require("./text.css.cjs");
6
+ const Text = react.forwardRef(function Text2({ tag: Tag = "span", asChild, children, className, ...restProps }, ref) {
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
+ });
9
+ exports.Text = Text;
@@ -0,0 +1,10 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { forwardRef } from "react";
3
+ import { Box, classnames } from "../../display/Divider/Divider.mjs";
4
+ import { text } from "./text.css.mjs";
5
+ const Text = forwardRef(function Text2({ tag: Tag = "span", asChild, children, className, ...restProps }, ref) {
6
+ return /* @__PURE__ */ jsx(Box, { ref, asChild: true, className: classnames(text, className), ...restProps, children: asChild ? children : /* @__PURE__ */ jsx(Tag, { children }) });
7
+ });
8
+ export {
9
+ Text
10
+ };
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  const fileScope = require("@vanilla-extract/css/fileScope");
3
3
  const css = require("@vanilla-extract/css");
4
- const styles_lib_css_layers_layers_css_cjs = require("../../lib/css/layers/layers.css.cjs");
5
- fileScope.setFileScope("src/components/Text/text.css.ts?used", "blocks");
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");
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
- import { blocksLayer } from "../../lib/css/layers/layers.css.mjs";
4
- setFileScope("src/components/Text/text.css.ts?used", "blocks");
3
+ import { blocksLayer } from "../../../lib/css/layers/layers.css.mjs";
4
+ setFileScope("src/components/typography/Text/text.css.ts", "blocks");
5
5
  const text = style({
6
6
  "@layer": {
7
7
  [blocksLayer]: {
@@ -0,0 +1 @@
1
+ "use strict";
@@ -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?used", "blocks");
6
+ fileScope.setFileScope("src/lib/css/atoms/sprinkles.css.ts", "blocks");
7
7
  const unresponsiveAtomicProperties = sprinkles.defineProperties({
8
8
  properties: styles_lib_css_atoms_atomicProperties_cjs.unresponsiveProperties,
9
9
  shorthands: {
@@ -36,10 +36,6 @@ const responsiveAtomicProperties = sprinkles.defineProperties({
36
36
  placeItems: ["justifyContent", "alignItems"]
37
37
  }
38
38
  });
39
- const atoms = sprinkles.createSprinkles(
40
- unresponsiveAtomicProperties,
41
- responsiveAtomicProperties
42
- // colorAtomicProperties,
43
- );
39
+ const atoms = sprinkles.createSprinkles(unresponsiveAtomicProperties, responsiveAtomicProperties);
44
40
  fileScope.endFileScope();
45
41
  exports.atoms = atoms;
@@ -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?used", "blocks");
5
+ setFileScope("src/lib/css/atoms/sprinkles.css.ts", "blocks");
6
6
  const unresponsiveAtomicProperties = defineProperties({
7
7
  properties: unresponsiveProperties,
8
8
  shorthands: {
@@ -35,11 +35,7 @@ const responsiveAtomicProperties = defineProperties({
35
35
  placeItems: ["justifyContent", "alignItems"]
36
36
  }
37
37
  });
38
- const atoms = createSprinkles(
39
- unresponsiveAtomicProperties,
40
- responsiveAtomicProperties
41
- // colorAtomicProperties,
42
- );
38
+ const atoms = createSprinkles(unresponsiveAtomicProperties, responsiveAtomicProperties);
43
39
  endFileScope();
44
40
  export {
45
41
  atoms
@@ -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?used", "blocks");
4
+ fileScope.setFileScope("src/lib/css/layers/layers.css.ts", "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?used", "blocks");
3
+ setFileScope("src/lib/css/layers/layers.css.ts", "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?used", "blocks");
6
+ fileScope.setFileScope("src/lib/theme/vars.css.ts", "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?used", "blocks");
5
+ setFileScope("src/lib/theme/vars.css.ts", "blocks");
6
6
  const vars = createThemeContract(makeVanillaTheme(tokens));
7
7
  endFileScope();
8
8
  export {
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ const styles_lib_css_atoms_sprinkles_css_cjs = require("../css/atoms/sprinkles.css.cjs");
3
+ function getAtomsAndProps(props) {
4
+ const atomProps = {};
5
+ const otherProps = {};
6
+ for (const [name, value] of Object.entries(props)) {
7
+ if (styles_lib_css_atoms_sprinkles_css_cjs.atoms.properties.has(name)) {
8
+ atomProps[name] = value;
9
+ } else {
10
+ otherProps[name] = value;
11
+ }
12
+ }
13
+ return [atomProps, otherProps];
14
+ }
15
+ exports.getAtomsAndProps = getAtomsAndProps;
@@ -0,0 +1,16 @@
1
+ import { atoms } from "../css/atoms/sprinkles.css.mjs";
2
+ function getAtomsAndProps(props) {
3
+ const atomProps = {};
4
+ const otherProps = {};
5
+ for (const [name, value] of Object.entries(props)) {
6
+ if (atoms.properties.has(name)) {
7
+ atomProps[name] = value;
8
+ } else {
9
+ otherProps[name] = value;
10
+ }
11
+ }
12
+ return [atomProps, otherProps];
13
+ }
14
+ export {
15
+ getAtomsAndProps
16
+ };
@@ -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?used", "blocks");
8
+ fileScope.setFileScope("src/themes/momotaro/components/button.css.ts", "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?used", "blocks");
7
+ setFileScope("src/themes/momotaro/components/button.css.ts", "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?used", "blocks");
9
+ fileScope.setFileScope("src/themes/momotaro/components/checkbox.css.ts", "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?used", "blocks");
8
+ setFileScope("src/themes/momotaro/components/checkbox.css.ts", "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?used", "blocks");
6
+ fileScope.setFileScope("src/themes/momotaro/components/dialog.css.ts", "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?used", "blocks");
5
+ setFileScope("src/themes/momotaro/components/dialog.css.ts", "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?used", "blocks");
4
+ fileScope.setFileScope("src/themes/momotaro/components/divider.css.ts", "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?used", "blocks");
3
+ setFileScope("src/themes/momotaro/components/divider.css.ts", "blocks");
4
4
  const divider = makeComponentTheme("divider", {
5
5
  defaultVariants: {
6
6
  color: "textLight"
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ const fileScope = require("@vanilla-extract/css/fileScope");
3
+ const styles_lib_css_style_style_cjs = require("../../../lib/css/style/style.cjs");
4
+ const styles_lib_theme_makeComponentTheme_cjs = require("../../../lib/theme/makeComponentTheme.cjs");
5
+ fileScope.setFileScope("src/themes/momotaro/components/dropdown.css.ts", "blocks");
6
+ const dropdown = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("dropdown", {
7
+ base: styles_lib_css_style_style_cjs.style({
8
+ backgroundColor: "white",
9
+ borderRadius: "small",
10
+ boxShadow: "medium",
11
+ padding: "medium",
12
+ vars: {
13
+ "--spacing": "0.5rem"
14
+ },
15
+ selectors: {
16
+ "&[data-open]": {
17
+ transform: "translate(0, 0)",
18
+ opacity: 1
19
+ }
20
+ },
21
+ // Apply the animation only if the user has not requested reduced motion
22
+ "@media": {
23
+ "(prefers-reduced-motion: no-preference)": {
24
+ // transform: 'scale(0.9)',
25
+ transform: "translateY(var(--spacing))",
26
+ transition: "opacity 80ms linear, transform 80ms",
27
+ opacity: 0
28
+ }
29
+ }
30
+ }),
31
+ variants: {
32
+ variant: {
33
+ solid: styles_lib_css_style_style_cjs.style({
34
+ backgroundColor: "white",
35
+ border: "none",
36
+ boxShadow: "medium",
37
+ color: "black",
38
+ padding: "medium"
39
+ }),
40
+ outline: styles_lib_css_style_style_cjs.style({
41
+ backgroundColor: "transparent",
42
+ border: "1px solid black",
43
+ boxShadow: "none",
44
+ color: "black",
45
+ padding: "medium"
46
+ })
47
+ }
48
+ },
49
+ defaultVariants: {
50
+ variant: "solid"
51
+ }
52
+ });
53
+ fileScope.endFileScope();
54
+ exports.dropdown = dropdown;
@@ -0,0 +1,55 @@
1
+ import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
+ import { style } from "../../../lib/css/style/style.mjs";
3
+ import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.mjs";
4
+ setFileScope("src/themes/momotaro/components/dropdown.css.ts", "blocks");
5
+ const dropdown = makeComponentTheme("dropdown", {
6
+ base: style({
7
+ backgroundColor: "white",
8
+ borderRadius: "small",
9
+ boxShadow: "medium",
10
+ padding: "medium",
11
+ vars: {
12
+ "--spacing": "0.5rem"
13
+ },
14
+ selectors: {
15
+ "&[data-open]": {
16
+ transform: "translate(0, 0)",
17
+ opacity: 1
18
+ }
19
+ },
20
+ // Apply the animation only if the user has not requested reduced motion
21
+ "@media": {
22
+ "(prefers-reduced-motion: no-preference)": {
23
+ // transform: 'scale(0.9)',
24
+ transform: "translateY(var(--spacing))",
25
+ transition: "opacity 80ms linear, transform 80ms",
26
+ opacity: 0
27
+ }
28
+ }
29
+ }),
30
+ variants: {
31
+ variant: {
32
+ solid: style({
33
+ backgroundColor: "white",
34
+ border: "none",
35
+ boxShadow: "medium",
36
+ color: "black",
37
+ padding: "medium"
38
+ }),
39
+ outline: style({
40
+ backgroundColor: "transparent",
41
+ border: "1px solid black",
42
+ boxShadow: "none",
43
+ color: "black",
44
+ padding: "medium"
45
+ })
46
+ }
47
+ },
48
+ defaultVariants: {
49
+ variant: "solid"
50
+ }
51
+ });
52
+ endFileScope();
53
+ export {
54
+ dropdown
55
+ };
@@ -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?used", "blocks");
5
+ fileScope.setFileScope("src/themes/momotaro/components/helpers.css.ts", "blocks");
6
6
  const focusRingColor = css.createVar("focusRingColor");
7
7
  const focusable = css.style({
8
8
  ":focus-visible": {
@@ -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?used", "blocks");
4
+ setFileScope("src/themes/momotaro/components/helpers.css.ts", "blocks");
5
5
  const focusRingColor = createVar("focusRingColor");
6
6
  const focusable = style({
7
7
  ":focus-visible": {
@@ -3,6 +3,7 @@ const styles_themes_momotaro_components_button_css_cjs = require("./button.css.c
3
3
  const styles_themes_momotaro_components_checkbox_css_cjs = require("./checkbox.css.cjs");
4
4
  const styles_themes_momotaro_components_dialog_css_cjs = require("./dialog.css.cjs");
5
5
  const styles_themes_momotaro_components_divider_css_cjs = require("./divider.css.cjs");
6
+ const styles_themes_momotaro_components_dropdown_css_cjs = require("./dropdown.css.cjs");
6
7
  const styles_themes_momotaro_components_input_css_cjs = require("./input.css.cjs");
7
8
  const styles_themes_momotaro_components_label_css_cjs = require("./label.css.cjs");
8
9
  const styles_themes_momotaro_components_link_css_cjs = require("./link.css.cjs");
@@ -21,6 +22,7 @@ const components = {
21
22
  progress: styles_themes_momotaro_components_progress_css_cjs.progress,
22
23
  radio: styles_themes_momotaro_components_radio_css_cjs.radio,
23
24
  spinner: styles_themes_momotaro_components_spinner_css_cjs.spinner,
25
+ dropdown: styles_themes_momotaro_components_dropdown_css_cjs.dropdown,
24
26
  switch: styles_themes_momotaro_components_switch_css_cjs.switchTheme
25
27
  };
26
28
  exports.components = components;
@@ -2,6 +2,7 @@ import { button } from "./button.css.mjs";
2
2
  import { checkbox } from "./checkbox.css.mjs";
3
3
  import { dialog } from "./dialog.css.mjs";
4
4
  import { divider } from "./divider.css.mjs";
5
+ import { dropdown } from "./dropdown.css.mjs";
5
6
  import { input } from "./input.css.mjs";
6
7
  import { label } from "./label.css.mjs";
7
8
  import { link } from "./link.css.mjs";
@@ -20,6 +21,7 @@ const components = {
20
21
  progress,
21
22
  radio,
22
23
  spinner,
24
+ dropdown,
23
25
  switch: switchTheme
24
26
  };
25
27
  export {
@@ -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?used", "blocks");
7
+ fileScope.setFileScope("src/themes/momotaro/components/input.css.ts", "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?used", "blocks");
6
+ setFileScope("src/themes/momotaro/components/input.css.ts", "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?used", "blocks");
6
+ fileScope.setFileScope("src/themes/momotaro/components/label.css.ts", "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?used", "blocks");
5
+ setFileScope("src/themes/momotaro/components/label.css.ts", "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?used", "blocks");
7
+ fileScope.setFileScope("src/themes/momotaro/components/link.css.ts", "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?used", "blocks");
6
+ setFileScope("src/themes/momotaro/components/link.css.ts", "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?used", "blocks");
7
+ fileScope.setFileScope("src/themes/momotaro/components/progress.css.ts", "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?used", "blocks");
6
+ setFileScope("src/themes/momotaro/components/progress.css.ts", "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?used", "blocks");
9
+ fileScope.setFileScope("src/themes/momotaro/components/radio.css.ts", "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?used", "blocks");
8
+ setFileScope("src/themes/momotaro/components/radio.css.ts", "blocks");
9
9
  const radio = makeComponentTheme("radio", {
10
10
  base: style([{
11
11
  display: "flex",
@@ -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_makeComponentTheme_cjs = require("../../../lib/theme/makeComponentTheme.cjs");
5
- fileScope.setFileScope("src/themes/momotaro/components/spinner.css.ts?used", "blocks");
5
+ fileScope.setFileScope("src/themes/momotaro/components/spinner.css.ts", "blocks");
6
6
  const spinAnimation = css.keyframes({
7
7
  "0%": {
8
8
  transform: "rotate(0deg)"
@@ -1,7 +1,7 @@
1
1
  import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
2
  import { keyframes, style } from "@vanilla-extract/css";
3
3
  import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.mjs";
4
- setFileScope("src/themes/momotaro/components/spinner.css.ts?used", "blocks");
4
+ setFileScope("src/themes/momotaro/components/spinner.css.ts", "blocks");
5
5
  const spinAnimation = keyframes({
6
6
  "0%": {
7
7
  transform: "rotate(0deg)"