@blockle/blocks 0.9.1 → 0.11.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.
Files changed (161) hide show
  1. package/dist/index.cjs +258 -8
  2. package/dist/index.d.mts +1 -1
  3. package/dist/index.d.ts +1 -1
  4. package/dist/index.mjs +259 -8
  5. package/dist/momotaro.chunk.d.ts +317 -271
  6. package/dist/reset.css.cjs +3 -1
  7. package/dist/reset.css.mjs +3 -1
  8. package/dist/style.css +2851 -0
  9. package/dist/styles/components/display/Divider/Divider.cjs +1 -0
  10. package/dist/styles/components/display/Divider/Divider.mjs +1 -0
  11. package/dist/styles/components/display/Divider/divider.css.cjs +4 -11
  12. package/dist/styles/components/display/Divider/divider.css.mjs +4 -11
  13. package/dist/styles/components/form/Button/Button.css.cjs +4 -11
  14. package/dist/styles/components/form/Button/Button.css.mjs +4 -11
  15. package/dist/styles/components/form/Button/Button.css.ts.vanilla.cjs +1 -0
  16. package/dist/styles/components/form/Button/Button.css.ts.vanilla.mjs +1 -0
  17. package/dist/styles/components/form/Checkbox/checkbox.css.cjs +6 -25
  18. package/dist/styles/components/form/Checkbox/checkbox.css.mjs +6 -25
  19. package/dist/styles/components/form/Checkbox/checkbox.css.ts.vanilla.cjs +1 -0
  20. package/dist/styles/components/form/Checkbox/checkbox.css.ts.vanilla.mjs +1 -0
  21. package/dist/styles/components/form/Input/input.css.cjs +4 -15
  22. package/dist/styles/components/form/Input/input.css.mjs +4 -15
  23. package/dist/styles/components/form/Input/input.css.ts.vanilla.cjs +1 -0
  24. package/dist/styles/components/form/Input/input.css.ts.vanilla.mjs +1 -0
  25. package/dist/styles/components/form/Radio/radio.css.cjs +6 -25
  26. package/dist/styles/components/form/Radio/radio.css.mjs +6 -25
  27. package/dist/styles/components/form/Radio/radio.css.ts.vanilla.cjs +1 -0
  28. package/dist/styles/components/form/Radio/radio.css.ts.vanilla.mjs +1 -0
  29. package/dist/styles/components/form/Select/Select.cjs +2 -2
  30. package/dist/styles/components/form/Select/Select.mjs +2 -2
  31. package/dist/styles/components/form/Select/select.css.cjs +6 -31
  32. package/dist/styles/components/form/Select/select.css.mjs +6 -31
  33. package/dist/styles/components/form/Select/select.css.ts.vanilla.cjs +1 -0
  34. package/dist/styles/components/form/Select/select.css.ts.vanilla.mjs +1 -0
  35. package/dist/styles/components/form/Slider/Slider.cjs +155 -0
  36. package/dist/styles/components/form/Slider/Slider.mjs +156 -0
  37. package/dist/styles/components/form/Slider/slider.css.cjs +16 -0
  38. package/dist/styles/components/form/Slider/slider.css.mjs +17 -0
  39. package/dist/styles/components/form/Slider/slider.css.ts.vanilla.cjs +1 -0
  40. package/dist/styles/components/form/Slider/slider.css.ts.vanilla.mjs +1 -0
  41. package/dist/styles/components/form/Switch/switch.css.cjs +5 -21
  42. package/dist/styles/components/form/Switch/switch.css.mjs +5 -21
  43. package/dist/styles/components/form/Switch/switch.css.ts.vanilla.cjs +1 -0
  44. package/dist/styles/components/form/Switch/switch.css.ts.vanilla.mjs +1 -0
  45. package/dist/styles/components/overlay/Dialog/Dialog.cjs +3 -0
  46. package/dist/styles/components/overlay/Dialog/Dialog.mjs +4 -1
  47. package/dist/styles/components/overlay/Dialog/dialog.css.cjs +4 -19
  48. package/dist/styles/components/overlay/Dialog/dialog.css.mjs +4 -19
  49. package/dist/styles/components/overlay/Dialog/dialog.css.ts.vanilla.cjs +1 -0
  50. package/dist/styles/components/overlay/Dialog/dialog.css.ts.vanilla.mjs +1 -0
  51. package/dist/styles/components/typography/Heading/heading.css.cjs +4 -11
  52. package/dist/styles/components/typography/Heading/heading.css.mjs +4 -11
  53. package/dist/styles/components/typography/Heading/heading.css.ts.vanilla.cjs +1 -0
  54. package/dist/styles/components/typography/Heading/heading.css.ts.vanilla.mjs +1 -0
  55. package/dist/styles/components/typography/Text/text.css.cjs +4 -11
  56. package/dist/styles/components/typography/Text/text.css.mjs +4 -11
  57. package/dist/styles/components/typography/Text/text.css.ts.vanilla.cjs +1 -0
  58. package/dist/styles/components/typography/Text/text.css.ts.vanilla.mjs +1 -0
  59. package/dist/styles/entries/reset.css.ts.vanilla.cjs +1 -0
  60. package/dist/styles/entries/reset.css.ts.vanilla.mjs +1 -0
  61. package/dist/styles/lib/css/atoms/sprinkles.css.cjs +2089 -32
  62. package/dist/styles/lib/css/atoms/sprinkles.css.mjs +2089 -32
  63. package/dist/styles/lib/css/atoms/sprinkles.css.ts.vanilla.cjs +1 -0
  64. package/dist/styles/lib/css/atoms/sprinkles.css.ts.vanilla.mjs +1 -0
  65. package/dist/styles/lib/css/layers/layers.css.ts.vanilla.cjs +1 -0
  66. package/dist/styles/lib/css/layers/layers.css.ts.vanilla.mjs +1 -0
  67. package/dist/styles/lib/css/reset/reset.css.ts.vanilla.cjs +1 -0
  68. package/dist/styles/lib/css/reset/reset.css.ts.vanilla.mjs +1 -0
  69. package/dist/styles/lib/theme/makeTheme.cjs +18 -2
  70. package/dist/styles/lib/theme/makeTheme.mjs +17 -1
  71. package/dist/styles/lib/theme/vars.css.cjs +77 -5
  72. package/dist/styles/lib/theme/vars.css.mjs +77 -5
  73. package/dist/styles/lib/theme/vars.css.ts.vanilla.cjs +1 -0
  74. package/dist/styles/lib/theme/vars.css.ts.vanilla.mjs +1 -0
  75. package/dist/styles/themes/momotaro/components/button.css.ts.vanilla.cjs +1 -0
  76. package/dist/styles/themes/momotaro/components/button.css.ts.vanilla.mjs +1 -0
  77. package/dist/styles/themes/momotaro/components/checkbox.css.ts.vanilla.cjs +1 -0
  78. package/dist/styles/themes/momotaro/components/checkbox.css.ts.vanilla.mjs +1 -0
  79. package/dist/styles/themes/momotaro/components/dialog.css.ts.vanilla.cjs +1 -0
  80. package/dist/styles/themes/momotaro/components/dialog.css.ts.vanilla.mjs +1 -0
  81. package/dist/styles/themes/momotaro/components/divider.css.ts.vanilla.cjs +1 -0
  82. package/dist/styles/themes/momotaro/components/divider.css.ts.vanilla.mjs +1 -0
  83. package/dist/styles/themes/momotaro/components/dropdown.css.ts.vanilla.cjs +1 -0
  84. package/dist/styles/themes/momotaro/components/dropdown.css.ts.vanilla.mjs +1 -0
  85. package/dist/styles/themes/momotaro/components/helpers.css.ts.vanilla.cjs +1 -0
  86. package/dist/styles/themes/momotaro/components/helpers.css.ts.vanilla.mjs +1 -0
  87. package/dist/styles/themes/momotaro/components/input.css.ts.vanilla.cjs +1 -0
  88. package/dist/styles/themes/momotaro/components/input.css.ts.vanilla.mjs +1 -0
  89. package/dist/styles/themes/momotaro/components/label.css.ts.vanilla.cjs +1 -0
  90. package/dist/styles/themes/momotaro/components/label.css.ts.vanilla.mjs +1 -0
  91. package/dist/styles/themes/momotaro/components/link.css.ts.vanilla.cjs +1 -0
  92. package/dist/styles/themes/momotaro/components/link.css.ts.vanilla.mjs +1 -0
  93. package/dist/styles/themes/momotaro/components/progress.css.ts.vanilla.cjs +1 -0
  94. package/dist/styles/themes/momotaro/components/progress.css.ts.vanilla.mjs +1 -0
  95. package/dist/styles/themes/momotaro/components/radio.css.ts.vanilla.cjs +1 -0
  96. package/dist/styles/themes/momotaro/components/radio.css.ts.vanilla.mjs +1 -0
  97. package/dist/styles/themes/momotaro/components/select.css.ts.vanilla.cjs +1 -0
  98. package/dist/styles/themes/momotaro/components/select.css.ts.vanilla.mjs +1 -0
  99. package/dist/styles/themes/momotaro/components/slider.css.ts.vanilla.cjs +1 -0
  100. package/dist/styles/themes/momotaro/components/slider.css.ts.vanilla.mjs +1 -0
  101. package/dist/styles/themes/momotaro/components/spinner.css.ts.vanilla.cjs +1 -0
  102. package/dist/styles/themes/momotaro/components/spinner.css.ts.vanilla.mjs +1 -0
  103. package/dist/styles/themes/momotaro/components/switch.css.ts.vanilla.cjs +1 -0
  104. package/dist/styles/themes/momotaro/components/switch.css.ts.vanilla.mjs +1 -0
  105. package/dist/styles/themes/momotaro/momotaro.css.cjs +192 -8
  106. package/dist/styles/themes/momotaro/momotaro.css.mjs +192 -8
  107. package/dist/styles/themes/momotaro/momotaro.css.ts.vanilla.cjs +1 -0
  108. package/dist/styles/themes/momotaro/momotaro.css.ts.vanilla.mjs +1 -0
  109. package/dist/styles/themes/momotaro/tokens.css.ts.vanilla.cjs +1 -0
  110. package/dist/styles/themes/momotaro/tokens.css.ts.vanilla.mjs +1 -0
  111. package/package.json +33 -33
  112. package/dist/styles/lib/css/atoms/atomicProperties.cjs +0 -83
  113. package/dist/styles/lib/css/atoms/atomicProperties.mjs +0 -84
  114. package/dist/styles/lib/css/atoms/breakpoints.cjs +0 -11
  115. package/dist/styles/lib/css/atoms/breakpoints.mjs +0 -12
  116. package/dist/styles/lib/css/layers/layers.css.cjs +0 -7
  117. package/dist/styles/lib/css/layers/layers.css.mjs +0 -8
  118. package/dist/styles/lib/css/style/style.cjs +0 -28
  119. package/dist/styles/lib/css/style/style.mjs +0 -29
  120. package/dist/styles/lib/theme/makeComponentTheme.cjs +0 -5
  121. package/dist/styles/lib/theme/makeComponentTheme.mjs +0 -6
  122. package/dist/styles/lib/theme/makeVanillaTheme.cjs +0 -19
  123. package/dist/styles/lib/theme/makeVanillaTheme.mjs +0 -20
  124. package/dist/styles/lib/theme/tokens.cjs +0 -81
  125. package/dist/styles/lib/theme/tokens.mjs +0 -82
  126. package/dist/styles/themes/momotaro/components/button.css.cjs +0 -103
  127. package/dist/styles/themes/momotaro/components/button.css.mjs +0 -104
  128. package/dist/styles/themes/momotaro/components/checkbox.css.cjs +0 -59
  129. package/dist/styles/themes/momotaro/components/checkbox.css.mjs +0 -60
  130. package/dist/styles/themes/momotaro/components/dialog.css.cjs +0 -68
  131. package/dist/styles/themes/momotaro/components/dialog.css.mjs +0 -69
  132. package/dist/styles/themes/momotaro/components/divider.css.cjs +0 -11
  133. package/dist/styles/themes/momotaro/components/divider.css.mjs +0 -12
  134. package/dist/styles/themes/momotaro/components/dropdown.css.cjs +0 -54
  135. package/dist/styles/themes/momotaro/components/dropdown.css.mjs +0 -55
  136. package/dist/styles/themes/momotaro/components/helpers.css.cjs +0 -43
  137. package/dist/styles/themes/momotaro/components/helpers.css.mjs +0 -44
  138. package/dist/styles/themes/momotaro/components/index.cjs +0 -30
  139. package/dist/styles/themes/momotaro/components/index.mjs +0 -31
  140. package/dist/styles/themes/momotaro/components/input.css.cjs +0 -41
  141. package/dist/styles/themes/momotaro/components/input.css.mjs +0 -42
  142. package/dist/styles/themes/momotaro/components/label.css.cjs +0 -33
  143. package/dist/styles/themes/momotaro/components/label.css.mjs +0 -34
  144. package/dist/styles/themes/momotaro/components/link.css.cjs +0 -47
  145. package/dist/styles/themes/momotaro/components/link.css.mjs +0 -48
  146. package/dist/styles/themes/momotaro/components/progress.css.cjs +0 -55
  147. package/dist/styles/themes/momotaro/components/progress.css.mjs +0 -56
  148. package/dist/styles/themes/momotaro/components/radio.css.cjs +0 -60
  149. package/dist/styles/themes/momotaro/components/radio.css.mjs +0 -61
  150. package/dist/styles/themes/momotaro/components/select.css.cjs +0 -35
  151. package/dist/styles/themes/momotaro/components/select.css.mjs +0 -36
  152. package/dist/styles/themes/momotaro/components/spinner.css.cjs +0 -43
  153. package/dist/styles/themes/momotaro/components/spinner.css.mjs +0 -44
  154. package/dist/styles/themes/momotaro/components/switch.css.cjs +0 -58
  155. package/dist/styles/themes/momotaro/components/switch.css.mjs +0 -59
  156. package/dist/styles/themes/momotaro/components/transitions.cjs +0 -3
  157. package/dist/styles/themes/momotaro/components/transitions.mjs +0 -4
  158. package/dist/styles/themes/momotaro/tokens.css.cjs +0 -84
  159. package/dist/styles/themes/momotaro/tokens.css.mjs +0 -85
  160. /package/dist/styles/{lib/css/reset/reset.css.cjs → components/display/Divider/divider.css.ts.vanilla.cjs} +0 -0
  161. /package/dist/styles/{lib/css/reset/reset.css.mjs → components/display/Divider/divider.css.ts.vanilla.mjs} +0 -0
@@ -1,13 +1,197 @@
1
1
  import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
- import { makeTheme } from "../../lib/theme/makeTheme.mjs";
3
- import { components } from "./components/index.mjs";
4
- import { tokens } from "./tokens.css.mjs";
5
- setFileScope("src/themes/momotaro/momotaro.css.ts", "blocks");
6
- const momotaro = makeTheme({
2
+ import "./tokens.css.ts.vanilla.mjs";
3
+ import "./components/button.css.ts.vanilla.mjs";
4
+ import "./components/checkbox.css.ts.vanilla.mjs";
5
+ import "./components/dialog.css.ts.vanilla.mjs";
6
+ import "./components/divider.css.ts.vanilla.mjs";
7
+ import "./components/dropdown.css.ts.vanilla.mjs";
8
+ import "./components/input.css.ts.vanilla.mjs";
9
+ import "./components/label.css.ts.vanilla.mjs";
10
+ import "./components/link.css.ts.vanilla.mjs";
11
+ import "./components/progress.css.ts.vanilla.mjs";
12
+ import "./components/radio.css.ts.vanilla.mjs";
13
+ import "./components/select.css.ts.vanilla.mjs";
14
+ import "./components/slider.css.ts.vanilla.mjs";
15
+ import "./components/spinner.css.ts.vanilla.mjs";
16
+ import "./components/switch.css.ts.vanilla.mjs";
17
+ import "./components/helpers.css.ts.vanilla.mjs";
18
+ import "../../lib/css/atoms/sprinkles.css.ts.vanilla.mjs";
19
+ import "./momotaro.css.ts.vanilla.mjs";
20
+ setFileScope("src/themes/momotaro/momotaro.css.ts", "@blockle/blocks");
21
+ var momotaro = {
7
22
  name: "momotaro",
8
- tokens,
9
- components
10
- });
23
+ vars: "_1htisiw0",
24
+ components: {
25
+ button: {
26
+ base: "ta7q6b8 ta7q6b2 rvxbw5s ta7q6b3 rvxbw98 rvxbw40 ta7q6b4 rvxbw7w ta7q6b5 rvxbwv ta7q6b6 rvxbw1z ta7q6b7 rvxbw8k _1pwcvlj2 _1pwcvlj1",
27
+ variants: {
28
+ variant: {
29
+ solid: "ta7q6ba ta7q6b9 rvxbw11",
30
+ outline: "ta7q6bc ta7q6bb rvxbwy",
31
+ ghost: "ta7q6bd"
32
+ },
33
+ size: {
34
+ small: "ta7q6bf ta7q6be rvxbwgw",
35
+ medium: "ta7q6bh ta7q6bg rvxbwh0",
36
+ large: "ta7q6bj ta7q6bi rvxbwh0"
37
+ },
38
+ intent: {
39
+ neutral: "ta7q6bk",
40
+ danger: "ta7q6bl"
41
+ }
42
+ },
43
+ compoundVariants: [{
44
+ variants: {
45
+ variant: "solid",
46
+ intent: "neutral"
47
+ },
48
+ style: "ta7q6bm"
49
+ }, {
50
+ variants: {
51
+ variant: "solid",
52
+ intent: "danger"
53
+ },
54
+ style: "ta7q6bn"
55
+ }],
56
+ defaultVariants: {
57
+ size: "small",
58
+ variant: "solid",
59
+ intent: "neutral"
60
+ }
61
+ },
62
+ checkbox: {
63
+ base: "_1cqtsrz1 _1cqtsrz0 rvxbw3 rvxbwu _1pwcvlj1",
64
+ icon: "_1cqtsrz2",
65
+ label: "_1cqtsrz3 rvxbw5o rvxbw6k rvxbwdg rvxbw8o rvxbw1r"
66
+ },
67
+ dialog: {
68
+ dialog: "_6gb0ay1 _6gb0ay0 rvxbw5o rvxbw6s rvxbwdc rvxbw11 rvxbw2n rvxbwv rvxbw1a",
69
+ backdrop: "_6gb0ay2",
70
+ variants: {
71
+ size: {
72
+ small: "_6gb0ay3",
73
+ medium: "_6gb0ay4",
74
+ large: "_6gb0ay5"
75
+ }
76
+ },
77
+ defaultVariants: {
78
+ size: "small"
79
+ }
80
+ },
81
+ divider: {
82
+ defaultVariants: {
83
+ color: "textLight"
84
+ }
85
+ },
86
+ dropdown: {
87
+ base: "dgheqo4 dgheqo0 rvxbw1 dgheqo1 rvxbwu dgheqo2 rvxbw19 dgheqo3 rvxbwdo",
88
+ variants: {
89
+ variant: {
90
+ solid: "dgheqoa dgheqo5 rvxbw1 dgheqo6 rvxbw11 dgheqo7 rvxbw19 dgheqo8 rvxbw1b dgheqo9 rvxbwdo",
91
+ outline: "dgheqod dgheqob rvxbw1b dgheqoc rvxbwdo"
92
+ }
93
+ },
94
+ defaultVariants: {
95
+ variant: "solid"
96
+ }
97
+ },
98
+ input: {
99
+ input: "thlqfd1 thlqfd0 rvxbw1k rvxbwds rvxbw11 rvxbwu",
100
+ container: "thlqfd3 thlqfd2 rvxbw1 rvxbwv rvxbw19"
101
+ },
102
+ label: {
103
+ base: "_1426p3v0",
104
+ variants: {
105
+ size: {
106
+ small: "_1426p3v1",
107
+ medium: "_1426p3v2",
108
+ large: "_1426p3v3"
109
+ },
110
+ required: "_1426p3v4"
111
+ },
112
+ defaultVariants: {
113
+ size: "large"
114
+ }
115
+ },
116
+ link: {
117
+ base: "zujos30 _1pwcvlj1",
118
+ variants: {
119
+ variant: {
120
+ inherit: "zujos31",
121
+ primary: "zujos32 rvxbw1f rvxbw1z",
122
+ secondary: "zujos33 rvxbw1i rvxbw1z"
123
+ },
124
+ underline: "zujos34"
125
+ },
126
+ defaultVariants: {
127
+ variant: "primary"
128
+ }
129
+ },
130
+ progress: {
131
+ base: "_185khh42 _185khh41 rvxbw2d rvxbwu rvxbwa rvxbw1f rvxbw2k",
132
+ bar: "_185khh43",
133
+ variants: {
134
+ indeterminate: "_185khh44"
135
+ }
136
+ },
137
+ radio: {
138
+ base: "fipgc31 fipgc30 rvxbw3 _1pwcvlj1",
139
+ icon: "fipgc32",
140
+ label: "fipgc33 rvxbw5o rvxbw6k rvxbwdg rvxbw8o rvxbw1r"
141
+ },
142
+ select: {
143
+ select: "_1q59vpe7 _1q59vpe0 rvxbw1k _1q59vpe1 rvxbwds _1q59vpe2 rvxbw11 _1q59vpe3 rvxbwd4 _1q59vpe4 rvxbw1 _1q59vpe5 rvxbwv _1q59vpe6 rvxbw19 _1pwcvlj1",
144
+ variants: {
145
+ variant: {
146
+ outline: "_1q59vpea _1q59vpe8 rvxbwy _1q59vpe9 rvxbwj",
147
+ solid: "_1q59vpeb"
148
+ }
149
+ },
150
+ icon: "_1q59vped _1q59vpec rvxbwgw",
151
+ defaultVariants: {
152
+ variant: "solid"
153
+ }
154
+ },
155
+ spinner: {
156
+ base: "ilkbcn1",
157
+ variants: {
158
+ size: {
159
+ small: "ilkbcn2",
160
+ medium: "ilkbcn3",
161
+ large: "ilkbcn4"
162
+ }
163
+ },
164
+ defaultVariants: {
165
+ size: "small"
166
+ }
167
+ },
168
+ "switch": {
169
+ base: "pzg9zr3 pzg9zr1 rvxbwx pzg9zr2 rvxbwa _1pwcvlj1",
170
+ slider: "pzg9zr7 pzg9zr4 rvxbwiw pzg9zr5 rvxbw1 pzg9zr6 rvxbwx"
171
+ },
172
+ slider: {
173
+ base: "nczc033",
174
+ track: "nczc035 nczc034 rvxbwu",
175
+ filledTrack: "nczc036",
176
+ thumb: "nczc037 _1pwcvlj1",
177
+ variants: {
178
+ size: {
179
+ small: "nczc038",
180
+ medium: "nczc039",
181
+ large: "nczc03a"
182
+ },
183
+ colorScheme: {
184
+ primary: "nczc03b",
185
+ secondary: "nczc03c"
186
+ }
187
+ },
188
+ defaultVariants: {
189
+ size: "medium",
190
+ colorScheme: "primary"
191
+ }
192
+ }
193
+ }
194
+ };
11
195
  endFileScope();
12
196
  export {
13
197
  momotaro
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockle/blocks",
3
- "version": "0.9.1",
3
+ "version": "0.11.0",
4
4
  "description": "Blocks design system",
5
5
  "repository": "git@github.com:Blockle/blocks.git",
6
6
  "license": "MIT",
@@ -34,6 +34,7 @@
34
34
  "import": "./dist/themes/momotaro.mjs",
35
35
  "require": "./dist/themes/momotaro.cjs"
36
36
  },
37
+ "./dist/style.css": "./dist/style.css",
37
38
  "./package.json": "./package.json"
38
39
  },
39
40
  "main": "./dist/index.cjs",
@@ -59,7 +60,8 @@
59
60
  "string-width": "^4.2.2"
60
61
  },
61
62
  "dependencies": {
62
- "@vanilla-extract/css": "^1.14.0",
63
+ "@storybook/test": "^8.0.2",
64
+ "@vanilla-extract/css": "^1.14.1",
63
65
  "@vanilla-extract/css-utils": "^0.1.3",
64
66
  "@vanilla-extract/sprinkles": "^1.6.1",
65
67
  "react": "^18.2.0",
@@ -67,43 +69,41 @@
67
69
  },
68
70
  "devDependencies": {
69
71
  "@changesets/cli": "^2.27.1",
70
- "@crackle/cli": "^0.13.0",
71
- "@crackle/core": "^0.31.0",
72
- "@storybook/addon-a11y": "^7.6.17",
73
- "@storybook/addon-coverage": "^1.0.0",
74
- "@storybook/addon-essentials": "^7.6.17",
75
- "@storybook/addon-interactions": "^7.6.17",
76
- "@storybook/addon-links": "^7.6.17",
72
+ "@crackle/cli": "^0.15.2",
73
+ "@crackle/core": "^0.33.1",
74
+ "@storybook/addon-a11y": "^8.0.2",
75
+ "@storybook/addon-coverage": "^1.0.1",
76
+ "@storybook/addon-essentials": "^8.0.2",
77
+ "@storybook/addon-interactions": "^8.0.2",
78
+ "@storybook/addon-links": "^8.0.2",
77
79
  "@storybook/addons": "^7.6.17",
78
- "@storybook/blocks": "^7.6.17",
79
- "@storybook/jest": "^0.2.3",
80
- "@storybook/react": "^7.6.17",
81
- "@storybook/react-vite": "^7.6.17",
82
- "@storybook/testing-library": "^0.2.2",
83
- "@testing-library/jest-dom": "^6.2.0",
84
- "@testing-library/react": "^14.1.2",
85
- "@types/react": "^18.2.48",
86
- "@types/react-dom": "^18.2.18",
87
- "@typescript-eslint/eslint-plugin": "^6.19.0",
88
- "@typescript-eslint/parser": "^6.19.0",
89
- "@vanilla-extract/vite-plugin": "^3.9.3",
90
- "@vitest/coverage-v8": "^1.2.1",
91
- "autoprefixer": "^10.4.17",
80
+ "@storybook/blocks": "^8.0.2",
81
+ "@storybook/react": "^8.0.2",
82
+ "@storybook/react-vite": "^8.0.2",
83
+ "@testing-library/jest-dom": "^6.4.2",
84
+ "@testing-library/react": "^14.2.2",
85
+ "@types/react": "^18.2.67",
86
+ "@types/react-dom": "^18.2.22",
87
+ "@typescript-eslint/eslint-plugin": "^7.3.1",
88
+ "@typescript-eslint/parser": "^7.3.1",
89
+ "@vanilla-extract/vite-plugin": "^4.0.6",
90
+ "@vitest/coverage-v8": "^1.4.0",
91
+ "autoprefixer": "^10.4.18",
92
92
  "cross-env": "^7.0.3",
93
- "eslint": "^8.56.0",
93
+ "eslint": "^8.57.0",
94
94
  "eslint-config-prettier": "^9.1.0",
95
- "eslint-plugin-jest": "^27.6.3",
95
+ "eslint-plugin-jest": "^27.9.0",
96
96
  "eslint-plugin-prettier": "^5.1.3",
97
- "eslint-plugin-react": "^7.33.2",
97
+ "eslint-plugin-react": "^7.34.1",
98
98
  "eslint-plugin-react-hooks": "^4.6.0",
99
- "eslint-plugin-storybook": "^0.6.15",
100
- "eslint-plugin-unicorn": "^50.0.1",
101
- "jsdom": "^23.2.0",
102
- "prettier": "^3.2.4",
99
+ "eslint-plugin-storybook": "^0.8.0",
100
+ "eslint-plugin-unicorn": "^51.0.1",
101
+ "jsdom": "^24.0.0",
102
+ "prettier": "^3.2.5",
103
103
  "prop-types": "^15.8.1",
104
- "storybook": "^7.6.17",
105
- "typescript": "^5.3.3",
106
- "vitest": "^1.2.1"
104
+ "storybook": "^8.0.2",
105
+ "typescript": "^5.4.2",
106
+ "vitest": "^1.4.0"
107
107
  },
108
108
  "packageManager": "yarn@1.22.19"
109
109
  }
@@ -1,83 +0,0 @@
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;
@@ -1,84 +0,0 @@
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
- };
@@ -1,11 +0,0 @@
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;
@@ -1,12 +0,0 @@
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
- };
@@ -1,7 +0,0 @@
1
- "use strict";
2
- const fileScope = require("@vanilla-extract/css/fileScope");
3
- const css = require("@vanilla-extract/css");
4
- fileScope.setFileScope("src/lib/css/layers/layers.css.ts", "blocks");
5
- const blocksLayer = css.layer("blockle-blocks");
6
- fileScope.endFileScope();
7
- exports.blocksLayer = blocksLayer;
@@ -1,8 +0,0 @@
1
- import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
- import { layer } from "@vanilla-extract/css";
3
- setFileScope("src/lib/css/layers/layers.css.ts", "blocks");
4
- const blocksLayer = layer("blockle-blocks");
5
- endFileScope();
6
- export {
7
- blocksLayer
8
- };
@@ -1,28 +0,0 @@
1
- "use strict";
2
- const css = require("@vanilla-extract/css");
3
- const styles_lib_css_atoms_sprinkles_css_cjs = require("../atoms/sprinkles.css.cjs");
4
- function style(props) {
5
- const styleRule = {};
6
- const atomClassNames = [];
7
- if (Array.isArray(props)) {
8
- return props.map((rule) => {
9
- if (typeof rule === "string") {
10
- return rule;
11
- }
12
- return style(rule);
13
- }).join(" ");
14
- }
15
- for (const [name, value] of Object.entries(props)) {
16
- if (styles_lib_css_atoms_sprinkles_css_cjs.atoms.properties.has(name)) {
17
- try {
18
- atomClassNames.push(styles_lib_css_atoms_sprinkles_css_cjs.atoms({ [name]: value }));
19
- } catch {
20
- styleRule[name] = value;
21
- }
22
- } else {
23
- styleRule[name] = value;
24
- }
25
- }
26
- return css.style([styleRule, ...atomClassNames]);
27
- }
28
- exports.style = style;
@@ -1,29 +0,0 @@
1
- import { style as style$1 } from "@vanilla-extract/css";
2
- import { atoms } from "../atoms/sprinkles.css.mjs";
3
- function style(props) {
4
- const styleRule = {};
5
- const atomClassNames = [];
6
- if (Array.isArray(props)) {
7
- return props.map((rule) => {
8
- if (typeof rule === "string") {
9
- return rule;
10
- }
11
- return style(rule);
12
- }).join(" ");
13
- }
14
- for (const [name, value] of Object.entries(props)) {
15
- if (atoms.properties.has(name)) {
16
- try {
17
- atomClassNames.push(atoms({ [name]: value }));
18
- } catch {
19
- styleRule[name] = value;
20
- }
21
- } else {
22
- styleRule[name] = value;
23
- }
24
- }
25
- return style$1([styleRule, ...atomClassNames]);
26
- }
27
- export {
28
- style
29
- };
@@ -1,5 +0,0 @@
1
- "use strict";
2
- function makeComponentTheme(component, componentTheme) {
3
- return componentTheme;
4
- }
5
- exports.makeComponentTheme = makeComponentTheme;
@@ -1,6 +0,0 @@
1
- function makeComponentTheme(component, componentTheme) {
2
- return componentTheme;
3
- }
4
- export {
5
- makeComponentTheme
6
- };
@@ -1,19 +0,0 @@
1
- "use strict";
2
- const makeVanillaTheme = (tokens) => {
3
- return {
4
- space: tokens.spacing,
5
- borderRadius: tokens.border.radius,
6
- color: tokens.color,
7
- borderWidth: tokens.border.width,
8
- fontFamily: tokens.typography.fontFamily,
9
- fontSize: tokens.typography.fontSize,
10
- fontWeight: tokens.typography.fontWeight,
11
- lineHeight: tokens.typography.lineHeight,
12
- transition: tokens.transition,
13
- shadow: tokens.shadow,
14
- focus: {
15
- boxShadow: tokens.focus.boxShadow
16
- }
17
- };
18
- };
19
- exports.makeVanillaTheme = makeVanillaTheme;
@@ -1,20 +0,0 @@
1
- const makeVanillaTheme = (tokens) => {
2
- return {
3
- space: tokens.spacing,
4
- borderRadius: tokens.border.radius,
5
- color: tokens.color,
6
- borderWidth: tokens.border.width,
7
- fontFamily: tokens.typography.fontFamily,
8
- fontSize: tokens.typography.fontSize,
9
- fontWeight: tokens.typography.fontWeight,
10
- lineHeight: tokens.typography.lineHeight,
11
- transition: tokens.transition,
12
- shadow: tokens.shadow,
13
- focus: {
14
- boxShadow: tokens.focus.boxShadow
15
- }
16
- };
17
- };
18
- export {
19
- makeVanillaTheme
20
- };