@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.
Files changed (165) hide show
  1. package/dist/index.cjs +28 -60
  2. package/dist/index.mjs +4 -36
  3. package/dist/momotaro.chunk.d.ts +297 -293
  4. package/dist/reset.css.cjs +0 -2
  5. package/dist/reset.css.mjs +0 -2
  6. package/dist/styles/components/display/Divider/Divider.cjs +13 -13
  7. package/dist/styles/components/display/Divider/divider.css.cjs +10 -3
  8. package/dist/styles/components/display/Divider/divider.css.mjs +10 -3
  9. package/dist/styles/components/form/Button/Button.cjs +2 -2
  10. package/dist/styles/components/form/Button/Button.css.cjs +10 -3
  11. package/dist/styles/components/form/Button/Button.css.mjs +10 -3
  12. package/dist/styles/components/form/Checkbox/Checkbox.cjs +2 -2
  13. package/dist/styles/components/form/Checkbox/checkbox.css.cjs +24 -5
  14. package/dist/styles/components/form/Checkbox/checkbox.css.mjs +24 -5
  15. package/dist/styles/components/form/Input/Input.cjs +3 -3
  16. package/dist/styles/components/form/Input/input.css.cjs +14 -3
  17. package/dist/styles/components/form/Input/input.css.mjs +14 -3
  18. package/dist/styles/components/form/Radio/Radio.cjs +2 -2
  19. package/dist/styles/components/form/Radio/radio.css.cjs +24 -5
  20. package/dist/styles/components/form/Radio/radio.css.mjs +24 -5
  21. package/dist/styles/components/form/Select/Select.cjs +2 -2
  22. package/dist/styles/components/form/Select/select.css.cjs +30 -5
  23. package/dist/styles/components/form/Select/select.css.mjs +30 -5
  24. package/dist/styles/components/form/Slider/Slider.cjs +7 -7
  25. package/dist/styles/components/form/Slider/slider.css.cjs +64 -7
  26. package/dist/styles/components/form/Slider/slider.css.mjs +64 -7
  27. package/dist/styles/components/form/Switch/Switch.cjs +6 -6
  28. package/dist/styles/components/form/Switch/switch.css.cjs +20 -4
  29. package/dist/styles/components/form/Switch/switch.css.mjs +20 -4
  30. package/dist/styles/components/other/BlocksProvider/BlocksProvider.cjs +5 -5
  31. package/dist/styles/components/overlay/Dialog/Dialog.cjs +28819 -23
  32. package/dist/styles/components/overlay/Dialog/Dialog.mjs +28797 -3
  33. package/dist/styles/components/overlay/Dialog/dialog.css.cjs +18 -3
  34. package/dist/styles/components/overlay/Dialog/dialog.css.mjs +18 -3
  35. package/dist/styles/components/typography/Heading/heading.css.cjs +10 -3
  36. package/dist/styles/components/typography/Heading/heading.css.mjs +10 -3
  37. package/dist/styles/components/typography/Text/Text.cjs +2 -2
  38. package/dist/styles/components/typography/Text/text.css.cjs +10 -3
  39. package/dist/styles/components/typography/Text/text.css.mjs +10 -3
  40. package/dist/styles/lib/css/atoms/atomicProperties.cjs +83 -0
  41. package/dist/styles/lib/css/atoms/atomicProperties.mjs +84 -0
  42. package/dist/styles/lib/css/atoms/breakpoints.cjs +11 -0
  43. package/dist/styles/lib/css/atoms/breakpoints.mjs +12 -0
  44. package/dist/styles/lib/css/atoms/sprinkles.css.cjs +325 -2072
  45. package/dist/styles/lib/css/atoms/sprinkles.css.mjs +326 -2073
  46. package/dist/styles/lib/css/layers/layers.css.cjs +7 -0
  47. package/dist/styles/lib/css/layers/layers.css.mjs +8 -0
  48. package/dist/styles/lib/css/style/style.cjs +28 -0
  49. package/dist/styles/lib/css/style/style.mjs +29 -0
  50. package/dist/styles/lib/theme/makeComponentTheme.cjs +5 -0
  51. package/dist/styles/lib/theme/makeComponentTheme.mjs +6 -0
  52. package/dist/styles/lib/theme/makeTheme.cjs +2 -18
  53. package/dist/styles/lib/theme/makeTheme.mjs +1 -17
  54. package/dist/styles/lib/theme/makeVanillaTheme.cjs +19 -0
  55. package/dist/styles/lib/theme/makeVanillaTheme.mjs +20 -0
  56. package/dist/styles/lib/theme/tokens.cjs +81 -0
  57. package/dist/styles/lib/theme/tokens.mjs +82 -0
  58. package/dist/styles/lib/theme/vars.css.cjs +4 -76
  59. package/dist/styles/lib/theme/vars.css.mjs +4 -76
  60. package/dist/styles/themes/momotaro/components/button.css.cjs +103 -0
  61. package/dist/styles/themes/momotaro/components/button.css.mjs +104 -0
  62. package/dist/styles/themes/momotaro/components/checkbox.css.cjs +59 -0
  63. package/dist/styles/themes/momotaro/components/checkbox.css.mjs +60 -0
  64. package/dist/styles/themes/momotaro/components/dialog.css.cjs +68 -0
  65. package/dist/styles/themes/momotaro/components/dialog.css.mjs +69 -0
  66. package/dist/styles/themes/momotaro/components/divider.css.cjs +11 -0
  67. package/dist/styles/themes/momotaro/components/divider.css.mjs +12 -0
  68. package/dist/styles/themes/momotaro/components/dropdown.css.cjs +53 -0
  69. package/dist/styles/themes/momotaro/components/dropdown.css.mjs +54 -0
  70. package/dist/styles/themes/momotaro/components/helpers.css.cjs +43 -0
  71. package/dist/styles/themes/momotaro/components/helpers.css.mjs +44 -0
  72. package/dist/styles/themes/momotaro/components/index.cjs +32 -0
  73. package/dist/styles/themes/momotaro/components/index.mjs +33 -0
  74. package/dist/styles/themes/momotaro/components/input.css.cjs +41 -0
  75. package/dist/styles/themes/momotaro/components/input.css.mjs +42 -0
  76. package/dist/styles/themes/momotaro/components/label.css.cjs +33 -0
  77. package/dist/styles/themes/momotaro/components/label.css.mjs +34 -0
  78. package/dist/styles/themes/momotaro/components/link.css.cjs +47 -0
  79. package/dist/styles/themes/momotaro/components/link.css.mjs +48 -0
  80. package/dist/styles/themes/momotaro/components/progress.css.cjs +55 -0
  81. package/dist/styles/themes/momotaro/components/progress.css.mjs +56 -0
  82. package/dist/styles/themes/momotaro/components/radio.css.cjs +60 -0
  83. package/dist/styles/themes/momotaro/components/radio.css.mjs +61 -0
  84. package/dist/styles/themes/momotaro/components/select.css.cjs +44 -0
  85. package/dist/styles/themes/momotaro/components/select.css.mjs +45 -0
  86. package/dist/styles/themes/momotaro/components/slider.css.cjs +65 -0
  87. package/dist/styles/themes/momotaro/components/slider.css.mjs +66 -0
  88. package/dist/styles/themes/momotaro/components/spinner.css.cjs +43 -0
  89. package/dist/styles/themes/momotaro/components/spinner.css.mjs +44 -0
  90. package/dist/styles/themes/momotaro/components/switch.css.cjs +58 -0
  91. package/dist/styles/themes/momotaro/components/switch.css.mjs +59 -0
  92. package/dist/styles/themes/momotaro/components/transitions.cjs +3 -0
  93. package/dist/styles/themes/momotaro/components/transitions.mjs +4 -0
  94. package/dist/styles/themes/momotaro/momotaro.css.cjs +7 -191
  95. package/dist/styles/themes/momotaro/momotaro.css.mjs +7 -191
  96. package/dist/styles/themes/momotaro/tokens.css.cjs +84 -0
  97. package/dist/styles/themes/momotaro/tokens.css.mjs +85 -0
  98. package/package.json +11 -9
  99. package/dist/style.css +0 -2851
  100. package/dist/styles/components/form/Button/Button.css.ts.vanilla.cjs +0 -1
  101. package/dist/styles/components/form/Button/Button.css.ts.vanilla.mjs +0 -1
  102. package/dist/styles/components/form/Checkbox/checkbox.css.ts.vanilla.cjs +0 -1
  103. package/dist/styles/components/form/Checkbox/checkbox.css.ts.vanilla.mjs +0 -1
  104. package/dist/styles/components/form/Input/input.css.ts.vanilla.cjs +0 -1
  105. package/dist/styles/components/form/Input/input.css.ts.vanilla.mjs +0 -1
  106. package/dist/styles/components/form/Radio/radio.css.ts.vanilla.cjs +0 -1
  107. package/dist/styles/components/form/Radio/radio.css.ts.vanilla.mjs +0 -1
  108. package/dist/styles/components/form/Select/select.css.ts.vanilla.cjs +0 -1
  109. package/dist/styles/components/form/Select/select.css.ts.vanilla.mjs +0 -1
  110. package/dist/styles/components/form/Slider/slider.css.ts.vanilla.cjs +0 -1
  111. package/dist/styles/components/form/Slider/slider.css.ts.vanilla.mjs +0 -1
  112. package/dist/styles/components/form/Switch/switch.css.ts.vanilla.cjs +0 -1
  113. package/dist/styles/components/form/Switch/switch.css.ts.vanilla.mjs +0 -1
  114. package/dist/styles/components/overlay/Dialog/dialog.css.ts.vanilla.cjs +0 -1
  115. package/dist/styles/components/overlay/Dialog/dialog.css.ts.vanilla.mjs +0 -1
  116. package/dist/styles/components/typography/Heading/heading.css.ts.vanilla.cjs +0 -1
  117. package/dist/styles/components/typography/Heading/heading.css.ts.vanilla.mjs +0 -1
  118. package/dist/styles/components/typography/Text/text.css.ts.vanilla.cjs +0 -1
  119. package/dist/styles/components/typography/Text/text.css.ts.vanilla.mjs +0 -1
  120. package/dist/styles/entries/reset.css.ts.vanilla.cjs +0 -1
  121. package/dist/styles/entries/reset.css.ts.vanilla.mjs +0 -1
  122. package/dist/styles/lib/css/atoms/sprinkles.css.ts.vanilla.cjs +0 -1
  123. package/dist/styles/lib/css/atoms/sprinkles.css.ts.vanilla.mjs +0 -1
  124. package/dist/styles/lib/css/layers/layers.css.ts.vanilla.cjs +0 -1
  125. package/dist/styles/lib/css/layers/layers.css.ts.vanilla.mjs +0 -1
  126. package/dist/styles/lib/css/reset/reset.css.ts.vanilla.cjs +0 -1
  127. package/dist/styles/lib/css/reset/reset.css.ts.vanilla.mjs +0 -1
  128. package/dist/styles/lib/theme/vars.css.ts.vanilla.cjs +0 -1
  129. package/dist/styles/lib/theme/vars.css.ts.vanilla.mjs +0 -1
  130. package/dist/styles/themes/momotaro/components/button.css.ts.vanilla.cjs +0 -1
  131. package/dist/styles/themes/momotaro/components/button.css.ts.vanilla.mjs +0 -1
  132. package/dist/styles/themes/momotaro/components/checkbox.css.ts.vanilla.cjs +0 -1
  133. package/dist/styles/themes/momotaro/components/checkbox.css.ts.vanilla.mjs +0 -1
  134. package/dist/styles/themes/momotaro/components/dialog.css.ts.vanilla.cjs +0 -1
  135. package/dist/styles/themes/momotaro/components/dialog.css.ts.vanilla.mjs +0 -1
  136. package/dist/styles/themes/momotaro/components/divider.css.ts.vanilla.cjs +0 -1
  137. package/dist/styles/themes/momotaro/components/divider.css.ts.vanilla.mjs +0 -1
  138. package/dist/styles/themes/momotaro/components/dropdown.css.ts.vanilla.cjs +0 -1
  139. package/dist/styles/themes/momotaro/components/dropdown.css.ts.vanilla.mjs +0 -1
  140. package/dist/styles/themes/momotaro/components/helpers.css.ts.vanilla.cjs +0 -1
  141. package/dist/styles/themes/momotaro/components/helpers.css.ts.vanilla.mjs +0 -1
  142. package/dist/styles/themes/momotaro/components/input.css.ts.vanilla.cjs +0 -1
  143. package/dist/styles/themes/momotaro/components/input.css.ts.vanilla.mjs +0 -1
  144. package/dist/styles/themes/momotaro/components/label.css.ts.vanilla.cjs +0 -1
  145. package/dist/styles/themes/momotaro/components/label.css.ts.vanilla.mjs +0 -1
  146. package/dist/styles/themes/momotaro/components/link.css.ts.vanilla.cjs +0 -1
  147. package/dist/styles/themes/momotaro/components/link.css.ts.vanilla.mjs +0 -1
  148. package/dist/styles/themes/momotaro/components/progress.css.ts.vanilla.cjs +0 -1
  149. package/dist/styles/themes/momotaro/components/progress.css.ts.vanilla.mjs +0 -1
  150. package/dist/styles/themes/momotaro/components/radio.css.ts.vanilla.cjs +0 -1
  151. package/dist/styles/themes/momotaro/components/radio.css.ts.vanilla.mjs +0 -1
  152. package/dist/styles/themes/momotaro/components/select.css.ts.vanilla.cjs +0 -1
  153. package/dist/styles/themes/momotaro/components/select.css.ts.vanilla.mjs +0 -1
  154. package/dist/styles/themes/momotaro/components/slider.css.ts.vanilla.cjs +0 -1
  155. package/dist/styles/themes/momotaro/components/slider.css.ts.vanilla.mjs +0 -1
  156. package/dist/styles/themes/momotaro/components/spinner.css.ts.vanilla.cjs +0 -1
  157. package/dist/styles/themes/momotaro/components/spinner.css.ts.vanilla.mjs +0 -1
  158. package/dist/styles/themes/momotaro/components/switch.css.ts.vanilla.cjs +0 -1
  159. package/dist/styles/themes/momotaro/components/switch.css.ts.vanilla.mjs +0 -1
  160. package/dist/styles/themes/momotaro/momotaro.css.ts.vanilla.cjs +0 -1
  161. package/dist/styles/themes/momotaro/momotaro.css.ts.vanilla.mjs +0 -1
  162. package/dist/styles/themes/momotaro/tokens.css.ts.vanilla.cjs +0 -1
  163. package/dist/styles/themes/momotaro/tokens.css.ts.vanilla.mjs +0 -1
  164. /package/dist/styles/{components/display/Divider/divider.css.ts.vanilla.cjs → lib/css/reset/reset.css.cjs} +0 -0
  165. /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("../../../lib/css/layers/layers.css.ts.vanilla.cjs");
4
- require("./dialog.css.ts.vanilla.cjs");
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
- var backdrop = "_1j8hm8d0";
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 "../../../lib/css/layers/layers.css.ts.vanilla.mjs";
3
- import "./dialog.css.ts.vanilla.mjs";
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
- var backdrop = "_1j8hm8d0";
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("../../../lib/css/layers/layers.css.ts.vanilla.cjs");
4
- require("./heading.css.ts.vanilla.cjs");
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
- var heading = "_176zl350";
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 "../../../lib/css/layers/layers.css.ts.vanilla.mjs";
3
- import "./heading.css.ts.vanilla.mjs";
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
- var heading = "_176zl350";
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 react = require("react");
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 = react.forwardRef(function Text2({ tag: Tag = "span", asChild, children, className, ...restProps }, ref) {
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("../../../lib/css/layers/layers.css.ts.vanilla.cjs");
4
- require("./text.css.ts.vanilla.cjs");
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
- var text = "tiyd9n0";
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 "../../../lib/css/layers/layers.css.ts.vanilla.mjs";
3
- import "./text.css.ts.vanilla.mjs";
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
- var text = "tiyd9n0";
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
+ };