@tempots/beatui 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +172 -0
- package/dist/beatui.css +1 -0
- package/dist/index.es.js +2227 -0
- package/dist/index.umd.js +5 -0
- package/dist/types/components/button/button.d.ts +14 -0
- package/dist/types/components/button/index.d.ts +1 -0
- package/dist/types/components/data/icon.d.ts +9 -0
- package/dist/types/components/data/index.d.ts +2 -0
- package/dist/types/components/data/tag.d.ts +8 -0
- package/dist/types/components/form/control/control-input-wrapper.d.ts +8 -0
- package/dist/types/components/form/control/control-options.d.ts +19 -0
- package/dist/types/components/form/control/date-control.d.ts +2 -0
- package/dist/types/components/form/control/date-time-control.d.ts +2 -0
- package/dist/types/components/form/control/email-control.d.ts +2 -0
- package/dist/types/components/form/control/form-status.d.ts +20 -0
- package/dist/types/components/form/control/index.d.ts +21 -0
- package/dist/types/components/form/control/lazy-native-select-control.d.ts +16 -0
- package/dist/types/components/form/control/native-select-control.d.ts +9 -0
- package/dist/types/components/form/control/nullable-date-control.d.ts +2 -0
- package/dist/types/components/form/control/nullable-date-time-control.d.ts +2 -0
- package/dist/types/components/form/control/nullable-string-date-control.d.ts +2 -0
- package/dist/types/components/form/control/nullable-string-date-time-control.d.ts +2 -0
- package/dist/types/components/form/control/nullable-text-area-control.d.ts +7 -0
- package/dist/types/components/form/control/nullable-text-control.d.ts +2 -0
- package/dist/types/components/form/control/number-control.d.ts +9 -0
- package/dist/types/components/form/control/password-control.d.ts +2 -0
- package/dist/types/components/form/control/segmented-control.d.ts +12 -0
- package/dist/types/components/form/control/string-date-control.d.ts +2 -0
- package/dist/types/components/form/control/tags-control.d.ts +2 -0
- package/dist/types/components/form/control/text-area-control.d.ts +7 -0
- package/dist/types/components/form/control/text-control.d.ts +7 -0
- package/dist/types/components/form/controller/form-controller.d.ts +4 -0
- package/dist/types/components/form/controller/group-controller.d.ts +15 -0
- package/dist/types/components/form/controller/index.d.ts +6 -0
- package/dist/types/components/form/controller/list-controller.d.ts +22 -0
- package/dist/types/components/form/controller/path.d.ts +5 -0
- package/dist/types/components/form/controller/validation-result.d.ts +12 -0
- package/dist/types/components/form/controller/value-controller.d.ts +27 -0
- package/dist/types/components/form/index.d.ts +5 -0
- package/dist/types/components/form/input/checkbox-input.d.ts +2 -0
- package/dist/types/components/form/input/date-input.d.ts +2 -0
- package/dist/types/components/form/input/date-time-input.d.ts +2 -0
- package/dist/types/components/form/input/editable-text.d.ts +8 -0
- package/dist/types/components/form/input/email-input.d.ts +2 -0
- package/dist/types/components/form/input/index.d.ts +18 -0
- package/dist/types/components/form/input/input-container.d.ts +11 -0
- package/dist/types/components/form/input/input-options.d.ts +34 -0
- package/dist/types/components/form/input/lazy-native-select.d.ts +16 -0
- package/dist/types/components/form/input/native-select.d.ts +31 -0
- package/dist/types/components/form/input/nullable-date-input.d.ts +2 -0
- package/dist/types/components/form/input/nullable-date-time-input.d.ts +2 -0
- package/dist/types/components/form/input/nullable-text-area.d.ts +7 -0
- package/dist/types/components/form/input/nullable-text-input.d.ts +4 -0
- package/dist/types/components/form/input/number-input.d.ts +9 -0
- package/dist/types/components/form/input/password-input.d.ts +2 -0
- package/dist/types/components/form/input/tags-input.d.ts +2 -0
- package/dist/types/components/form/input/text-area.d.ts +7 -0
- package/dist/types/components/form/input/text-input.d.ts +2 -0
- package/dist/types/components/form/schema/index.d.ts +2 -0
- package/dist/types/components/form/schema/schema-utils.d.ts +4 -0
- package/dist/types/components/form/schema/standard-schema-v1.d.ts +55 -0
- package/dist/types/components/form/use-form.d.ts +14 -0
- package/dist/types/components/layout/app-shell.d.ts +42 -0
- package/dist/types/components/layout/card.d.ts +9 -0
- package/dist/types/components/layout/center.d.ts +7 -0
- package/dist/types/components/layout/group.d.ts +2 -0
- package/dist/types/components/layout/index.d.ts +7 -0
- package/dist/types/components/layout/sink.d.ts +9 -0
- package/dist/types/components/layout/stack.d.ts +2 -0
- package/dist/types/components/layout/with-breakpoint.d.ts +48 -0
- package/dist/types/components/misc/expando.d.ts +4 -0
- package/dist/types/components/misc/index.d.ts +1 -0
- package/dist/types/components/overlay/index.d.ts +1 -0
- package/dist/types/components/overlay/overlay.d.ts +14 -0
- package/dist/types/components/theme/index.d.ts +2 -0
- package/dist/types/components/theme/theme.d.ts +5 -0
- package/dist/types/components/theme/types.d.ts +110 -0
- package/dist/types/components/typography/index.d.ts +1 -0
- package/dist/types/components/typography/label.d.ts +5 -0
- package/dist/types/index.d.ts +9 -0
- package/dist/types/theme/beatui-theme.d.ts +19 -0
- package/dist/types/tokens/base-colors.d.ts +288 -0
- package/dist/types/tokens/breakpoints.d.ts +12 -0
- package/dist/types/tokens/colors.d.ts +28 -0
- package/dist/types/tokens/index.d.ts +6 -0
- package/dist/types/tokens/radius.d.ts +14 -0
- package/dist/types/tokens/spacing.d.ts +18 -0
- package/dist/types/tokens/typography.d.ts +89 -0
- package/dist/types/utils/delay-signal.d.ts +2 -0
- package/dist/types/utils/use-animated-toggle.d.ts +51 -0
- package/package.json +123 -0
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
export declare const colors: {
|
|
2
|
+
readonly red: {
|
|
3
|
+
readonly 50: "oklch(0.971 0.013 17.38)";
|
|
4
|
+
readonly 100: "oklch(0.936 0.032 17.717)";
|
|
5
|
+
readonly 200: "oklch(0.885 0.062 18.334)";
|
|
6
|
+
readonly 300: "oklch(0.808 0.114 19.571)";
|
|
7
|
+
readonly 400: "oklch(0.704 0.191 22.216)";
|
|
8
|
+
readonly 500: "oklch(0.637 0.237 25.331)";
|
|
9
|
+
readonly 600: "oklch(0.577 0.245 27.325)";
|
|
10
|
+
readonly 700: "oklch(0.505 0.213 27.518)";
|
|
11
|
+
readonly 800: "oklch(0.444 0.177 26.899)";
|
|
12
|
+
readonly 900: "oklch(0.396 0.141 25.723)";
|
|
13
|
+
readonly 950: "oklch(0.258 0.092 26.042)";
|
|
14
|
+
};
|
|
15
|
+
readonly orange: {
|
|
16
|
+
readonly 50: "oklch(0.98 0.016 73.684)";
|
|
17
|
+
readonly 100: "oklch(0.954 0.038 75.164)";
|
|
18
|
+
readonly 200: "oklch(0.901 0.076 70.697)";
|
|
19
|
+
readonly 300: "oklch(0.837 0.128 66.29)";
|
|
20
|
+
readonly 400: "oklch(0.75 0.183 55.934)";
|
|
21
|
+
readonly 500: "oklch(0.705 0.213 47.604)";
|
|
22
|
+
readonly 600: "oklch(0.646 0.222 41.116)";
|
|
23
|
+
readonly 700: "oklch(0.553 0.195 38.402)";
|
|
24
|
+
readonly 800: "oklch(0.47 0.157 37.304)";
|
|
25
|
+
readonly 900: "oklch(0.408 0.123 38.172)";
|
|
26
|
+
readonly 950: "oklch(0.266 0.079 36.259)";
|
|
27
|
+
};
|
|
28
|
+
readonly amber: {
|
|
29
|
+
readonly 50: "oklch(0.987 0.022 95.277)";
|
|
30
|
+
readonly 100: "oklch(0.962 0.059 95.617)";
|
|
31
|
+
readonly 200: "oklch(0.924 0.12 95.746)";
|
|
32
|
+
readonly 300: "oklch(0.879 0.169 91.605)";
|
|
33
|
+
readonly 400: "oklch(0.828 0.189 84.429)";
|
|
34
|
+
readonly 500: "oklch(0.769 0.188 70.08)";
|
|
35
|
+
readonly 600: "oklch(0.666 0.179 58.318)";
|
|
36
|
+
readonly 700: "oklch(0.555 0.163 48.998)";
|
|
37
|
+
readonly 800: "oklch(0.473 0.137 46.201)";
|
|
38
|
+
readonly 900: "oklch(0.414 0.112 45.904)";
|
|
39
|
+
readonly 950: "oklch(0.279 0.077 45.635)";
|
|
40
|
+
};
|
|
41
|
+
readonly yellow: {
|
|
42
|
+
readonly 50: "oklch(0.987 0.026 102.212)";
|
|
43
|
+
readonly 100: "oklch(0.973 0.071 103.193)";
|
|
44
|
+
readonly 200: "oklch(0.945 0.129 101.54)";
|
|
45
|
+
readonly 300: "oklch(0.905 0.182 98.111)";
|
|
46
|
+
readonly 400: "oklch(0.852 0.199 91.936)";
|
|
47
|
+
readonly 500: "oklch(0.795 0.184 86.047)";
|
|
48
|
+
readonly 600: "oklch(0.681 0.162 75.834)";
|
|
49
|
+
readonly 700: "oklch(0.554 0.135 66.442)";
|
|
50
|
+
readonly 800: "oklch(0.476 0.114 61.907)";
|
|
51
|
+
readonly 900: "oklch(0.421 0.095 57.708)";
|
|
52
|
+
readonly 950: "oklch(0.286 0.066 53.813)";
|
|
53
|
+
};
|
|
54
|
+
readonly lime: {
|
|
55
|
+
readonly 50: "oklch(0.986 0.031 120.757)";
|
|
56
|
+
readonly 100: "oklch(0.967 0.067 122.328)";
|
|
57
|
+
readonly 200: "oklch(0.938 0.127 124.321)";
|
|
58
|
+
readonly 300: "oklch(0.897 0.196 126.665)";
|
|
59
|
+
readonly 400: "oklch(0.841 0.238 128.85)";
|
|
60
|
+
readonly 500: "oklch(0.768 0.233 130.85)";
|
|
61
|
+
readonly 600: "oklch(0.648 0.2 131.684)";
|
|
62
|
+
readonly 700: "oklch(0.532 0.157 131.589)";
|
|
63
|
+
readonly 800: "oklch(0.453 0.124 130.933)";
|
|
64
|
+
readonly 900: "oklch(0.405 0.101 131.063)";
|
|
65
|
+
readonly 950: "oklch(0.274 0.072 132.109)";
|
|
66
|
+
};
|
|
67
|
+
readonly green: {
|
|
68
|
+
readonly 50: "oklch(0.982 0.018 155.826)";
|
|
69
|
+
readonly 100: "oklch(0.962 0.044 156.743)";
|
|
70
|
+
readonly 200: "oklch(0.925 0.084 155.995)";
|
|
71
|
+
readonly 300: "oklch(0.871 0.15 154.449)";
|
|
72
|
+
readonly 400: "oklch(0.792 0.209 151.711)";
|
|
73
|
+
readonly 500: "oklch(0.723 0.219 149.579)";
|
|
74
|
+
readonly 600: "oklch(0.627 0.194 149.214)";
|
|
75
|
+
readonly 700: "oklch(0.527 0.154 150.069)";
|
|
76
|
+
readonly 800: "oklch(0.448 0.119 151.328)";
|
|
77
|
+
readonly 900: "oklch(0.393 0.095 152.535)";
|
|
78
|
+
readonly 950: "oklch(0.266 0.065 152.934)";
|
|
79
|
+
};
|
|
80
|
+
readonly emerald: {
|
|
81
|
+
readonly 50: "oklch(0.979 0.021 166.113)";
|
|
82
|
+
readonly 100: "oklch(0.95 0.052 163.051)";
|
|
83
|
+
readonly 200: "oklch(0.905 0.093 164.15)";
|
|
84
|
+
readonly 300: "oklch(0.845 0.143 164.978)";
|
|
85
|
+
readonly 400: "oklch(0.765 0.177 163.223)";
|
|
86
|
+
readonly 500: "oklch(0.696 0.17 162.48)";
|
|
87
|
+
readonly 600: "oklch(0.596 0.145 163.225)";
|
|
88
|
+
readonly 700: "oklch(0.508 0.118 165.612)";
|
|
89
|
+
readonly 800: "oklch(0.432 0.095 166.913)";
|
|
90
|
+
readonly 900: "oklch(0.378 0.077 168.94)";
|
|
91
|
+
readonly 950: "oklch(0.262 0.051 172.552)";
|
|
92
|
+
};
|
|
93
|
+
readonly teal: {
|
|
94
|
+
readonly 50: "oklch(0.984 0.014 180.72)";
|
|
95
|
+
readonly 100: "oklch(0.953 0.051 180.801)";
|
|
96
|
+
readonly 200: "oklch(0.91 0.096 180.426)";
|
|
97
|
+
readonly 300: "oklch(0.855 0.138 181.071)";
|
|
98
|
+
readonly 400: "oklch(0.777 0.152 181.912)";
|
|
99
|
+
readonly 500: "oklch(0.704 0.14 182.503)";
|
|
100
|
+
readonly 600: "oklch(0.6 0.118 184.704)";
|
|
101
|
+
readonly 700: "oklch(0.511 0.096 186.391)";
|
|
102
|
+
readonly 800: "oklch(0.437 0.078 188.216)";
|
|
103
|
+
readonly 900: "oklch(0.386 0.063 188.416)";
|
|
104
|
+
readonly 950: "oklch(0.277 0.046 192.524)";
|
|
105
|
+
};
|
|
106
|
+
readonly cyan: {
|
|
107
|
+
readonly 50: "oklch(0.984 0.019 200.873)";
|
|
108
|
+
readonly 100: "oklch(0.956 0.045 203.388)";
|
|
109
|
+
readonly 200: "oklch(0.917 0.08 205.041)";
|
|
110
|
+
readonly 300: "oklch(0.865 0.127 207.078)";
|
|
111
|
+
readonly 400: "oklch(0.789 0.154 211.53)";
|
|
112
|
+
readonly 500: "oklch(0.715 0.143 215.221)";
|
|
113
|
+
readonly 600: "oklch(0.609 0.126 221.723)";
|
|
114
|
+
readonly 700: "oklch(0.52 0.105 223.128)";
|
|
115
|
+
readonly 800: "oklch(0.45 0.085 224.283)";
|
|
116
|
+
readonly 900: "oklch(0.398 0.07 227.392)";
|
|
117
|
+
readonly 950: "oklch(0.302 0.056 229.695)";
|
|
118
|
+
};
|
|
119
|
+
readonly sky: {
|
|
120
|
+
readonly 50: "oklch(0.977 0.013 236.62)";
|
|
121
|
+
readonly 100: "oklch(0.951 0.026 236.824)";
|
|
122
|
+
readonly 200: "oklch(0.901 0.058 230.902)";
|
|
123
|
+
readonly 300: "oklch(0.828 0.111 230.318)";
|
|
124
|
+
readonly 400: "oklch(0.746 0.16 232.661)";
|
|
125
|
+
readonly 500: "oklch(0.685 0.169 237.323)";
|
|
126
|
+
readonly 600: "oklch(0.588 0.158 241.966)";
|
|
127
|
+
readonly 700: "oklch(0.5 0.134 242.749)";
|
|
128
|
+
readonly 800: "oklch(0.443 0.11 240.79)";
|
|
129
|
+
readonly 900: "oklch(0.391 0.09 240.876)";
|
|
130
|
+
readonly 950: "oklch(0.293 0.066 243.157)";
|
|
131
|
+
};
|
|
132
|
+
readonly blue: {
|
|
133
|
+
readonly 50: "oklch(0.97 0.014 254.604)";
|
|
134
|
+
readonly 100: "oklch(0.932 0.032 255.585)";
|
|
135
|
+
readonly 200: "oklch(0.882 0.059 254.128)";
|
|
136
|
+
readonly 300: "oklch(0.809 0.105 251.813)";
|
|
137
|
+
readonly 400: "oklch(0.707 0.165 254.624)";
|
|
138
|
+
readonly 500: "oklch(0.623 0.214 259.815)";
|
|
139
|
+
readonly 600: "oklch(0.546 0.245 262.881)";
|
|
140
|
+
readonly 700: "oklch(0.488 0.243 264.376)";
|
|
141
|
+
readonly 800: "oklch(0.424 0.199 265.638)";
|
|
142
|
+
readonly 900: "oklch(0.379 0.146 265.522)";
|
|
143
|
+
readonly 950: "oklch(0.282 0.091 267.935)";
|
|
144
|
+
};
|
|
145
|
+
readonly indigo: {
|
|
146
|
+
readonly 50: "oklch(0.962 0.018 272.314)";
|
|
147
|
+
readonly 100: "oklch(0.93 0.034 272.788)";
|
|
148
|
+
readonly 200: "oklch(0.87 0.065 274.039)";
|
|
149
|
+
readonly 300: "oklch(0.785 0.115 274.713)";
|
|
150
|
+
readonly 400: "oklch(0.673 0.182 276.935)";
|
|
151
|
+
readonly 500: "oklch(0.585 0.233 277.117)";
|
|
152
|
+
readonly 600: "oklch(0.511 0.262 276.966)";
|
|
153
|
+
readonly 700: "oklch(0.457 0.24 277.023)";
|
|
154
|
+
readonly 800: "oklch(0.398 0.195 277.366)";
|
|
155
|
+
readonly 900: "oklch(0.359 0.144 278.697)";
|
|
156
|
+
readonly 950: "oklch(0.257 0.09 281.288)";
|
|
157
|
+
};
|
|
158
|
+
readonly violet: {
|
|
159
|
+
readonly 50: "oklch(0.969 0.016 293.756)";
|
|
160
|
+
readonly 100: "oklch(0.943 0.029 294.588)";
|
|
161
|
+
readonly 200: "oklch(0.894 0.057 293.283)";
|
|
162
|
+
readonly 300: "oklch(0.811 0.111 293.571)";
|
|
163
|
+
readonly 400: "oklch(0.702 0.183 293.541)";
|
|
164
|
+
readonly 500: "oklch(0.606 0.25 292.717)";
|
|
165
|
+
readonly 600: "oklch(0.541 0.281 293.009)";
|
|
166
|
+
readonly 700: "oklch(0.491 0.27 292.581)";
|
|
167
|
+
readonly 800: "oklch(0.432 0.232 292.759)";
|
|
168
|
+
readonly 900: "oklch(0.38 0.189 293.745)";
|
|
169
|
+
readonly 950: "oklch(0.283 0.141 291.089)";
|
|
170
|
+
};
|
|
171
|
+
readonly purple: {
|
|
172
|
+
readonly 50: "oklch(0.977 0.014 308.299)";
|
|
173
|
+
readonly 100: "oklch(0.946 0.033 307.174)";
|
|
174
|
+
readonly 200: "oklch(0.902 0.063 306.703)";
|
|
175
|
+
readonly 300: "oklch(0.827 0.119 306.383)";
|
|
176
|
+
readonly 400: "oklch(0.714 0.203 305.504)";
|
|
177
|
+
readonly 500: "oklch(0.627 0.265 303.9)";
|
|
178
|
+
readonly 600: "oklch(0.558 0.288 302.321)";
|
|
179
|
+
readonly 700: "oklch(0.496 0.265 301.924)";
|
|
180
|
+
readonly 800: "oklch(0.438 0.218 303.724)";
|
|
181
|
+
readonly 900: "oklch(0.381 0.176 304.987)";
|
|
182
|
+
readonly 950: "oklch(0.291 0.149 302.717)";
|
|
183
|
+
};
|
|
184
|
+
readonly fuchsia: {
|
|
185
|
+
readonly 50: "oklch(0.977 0.017 320.058)";
|
|
186
|
+
readonly 100: "oklch(0.952 0.037 318.852)";
|
|
187
|
+
readonly 200: "oklch(0.903 0.076 319.62)";
|
|
188
|
+
readonly 300: "oklch(0.833 0.145 321.434)";
|
|
189
|
+
readonly 400: "oklch(0.74 0.238 322.16)";
|
|
190
|
+
readonly 500: "oklch(0.667 0.295 322.15)";
|
|
191
|
+
readonly 600: "oklch(0.591 0.293 322.896)";
|
|
192
|
+
readonly 700: "oklch(0.518 0.253 323.949)";
|
|
193
|
+
readonly 800: "oklch(0.452 0.211 324.591)";
|
|
194
|
+
readonly 900: "oklch(0.401 0.17 325.612)";
|
|
195
|
+
readonly 950: "oklch(0.293 0.136 325.661)";
|
|
196
|
+
};
|
|
197
|
+
readonly pink: {
|
|
198
|
+
readonly 50: "oklch(0.971 0.014 343.198)";
|
|
199
|
+
readonly 100: "oklch(0.948 0.028 342.258)";
|
|
200
|
+
readonly 200: "oklch(0.899 0.061 343.231)";
|
|
201
|
+
readonly 300: "oklch(0.823 0.12 346.018)";
|
|
202
|
+
readonly 400: "oklch(0.718 0.202 349.761)";
|
|
203
|
+
readonly 500: "oklch(0.656 0.241 354.308)";
|
|
204
|
+
readonly 600: "oklch(0.592 0.249 0.584)";
|
|
205
|
+
readonly 700: "oklch(0.525 0.223 3.958)";
|
|
206
|
+
readonly 800: "oklch(0.459 0.187 3.815)";
|
|
207
|
+
readonly 900: "oklch(0.408 0.153 2.432)";
|
|
208
|
+
readonly 950: "oklch(0.284 0.109 3.907)";
|
|
209
|
+
};
|
|
210
|
+
readonly rose: {
|
|
211
|
+
readonly 50: "oklch(0.969 0.015 12.422)";
|
|
212
|
+
readonly 100: "oklch(0.941 0.03 12.58)";
|
|
213
|
+
readonly 200: "oklch(0.892 0.058 10.001)";
|
|
214
|
+
readonly 300: "oklch(0.81 0.117 11.638)";
|
|
215
|
+
readonly 400: "oklch(0.712 0.194 13.428)";
|
|
216
|
+
readonly 500: "oklch(0.645 0.246 16.439)";
|
|
217
|
+
readonly 600: "oklch(0.586 0.253 17.585)";
|
|
218
|
+
readonly 700: "oklch(0.514 0.222 16.935)";
|
|
219
|
+
readonly 800: "oklch(0.455 0.188 13.697)";
|
|
220
|
+
readonly 900: "oklch(0.41 0.159 10.272)";
|
|
221
|
+
readonly 950: "oklch(0.271 0.105 12.094)";
|
|
222
|
+
};
|
|
223
|
+
readonly slate: {
|
|
224
|
+
readonly 50: "oklch(0.984 0.003 247.858)";
|
|
225
|
+
readonly 100: "oklch(0.968 0.007 247.896)";
|
|
226
|
+
readonly 200: "oklch(0.929 0.013 255.508)";
|
|
227
|
+
readonly 300: "oklch(0.869 0.022 252.894)";
|
|
228
|
+
readonly 400: "oklch(0.704 0.04 256.788)";
|
|
229
|
+
readonly 500: "oklch(0.554 0.046 257.417)";
|
|
230
|
+
readonly 600: "oklch(0.446 0.043 257.281)";
|
|
231
|
+
readonly 700: "oklch(0.372 0.044 257.287)";
|
|
232
|
+
readonly 800: "oklch(0.279 0.041 260.031)";
|
|
233
|
+
readonly 900: "oklch(0.208 0.042 265.755)";
|
|
234
|
+
readonly 950: "oklch(0.129 0.042 264.695)";
|
|
235
|
+
};
|
|
236
|
+
readonly gray: {
|
|
237
|
+
readonly 50: "oklch(0.985 0.002 247.839)";
|
|
238
|
+
readonly 100: "oklch(0.967 0.003 264.542)";
|
|
239
|
+
readonly 200: "oklch(0.928 0.006 264.531)";
|
|
240
|
+
readonly 300: "oklch(0.872 0.01 258.338)";
|
|
241
|
+
readonly 400: "oklch(0.707 0.022 261.325)";
|
|
242
|
+
readonly 500: "oklch(0.551 0.027 264.364)";
|
|
243
|
+
readonly 600: "oklch(0.446 0.03 256.802)";
|
|
244
|
+
readonly 700: "oklch(0.373 0.034 259.733)";
|
|
245
|
+
readonly 800: "oklch(0.278 0.033 256.848)";
|
|
246
|
+
readonly 900: "oklch(0.21 0.034 264.665)";
|
|
247
|
+
readonly 950: "oklch(0.13 0.028 261.692)";
|
|
248
|
+
};
|
|
249
|
+
readonly zinc: {
|
|
250
|
+
readonly 50: "oklch(0.985 0 0)";
|
|
251
|
+
readonly 100: "oklch(0.967 0.001 286.375)";
|
|
252
|
+
readonly 200: "oklch(0.92 0.004 286.32)";
|
|
253
|
+
readonly 300: "oklch(0.871 0.006 286.286)";
|
|
254
|
+
readonly 400: "oklch(0.705 0.015 286.067)";
|
|
255
|
+
readonly 500: "oklch(0.552 0.016 285.938)";
|
|
256
|
+
readonly 600: "oklch(0.442 0.017 285.786)";
|
|
257
|
+
readonly 700: "oklch(0.37 0.013 285.805)";
|
|
258
|
+
readonly 800: "oklch(0.274 0.006 286.033)";
|
|
259
|
+
readonly 900: "oklch(0.21 0.006 285.885)";
|
|
260
|
+
readonly 950: "oklch(0.141 0.005 285.823)";
|
|
261
|
+
};
|
|
262
|
+
readonly neutral: {
|
|
263
|
+
readonly 50: "oklch(0.985 0 0)";
|
|
264
|
+
readonly 100: "oklch(0.97 0 0)";
|
|
265
|
+
readonly 200: "oklch(0.922 0 0)";
|
|
266
|
+
readonly 300: "oklch(0.87 0 0)";
|
|
267
|
+
readonly 400: "oklch(0.708 0 0)";
|
|
268
|
+
readonly 500: "oklch(0.556 0 0)";
|
|
269
|
+
readonly 600: "oklch(0.439 0 0)";
|
|
270
|
+
readonly 700: "oklch(0.371 0 0)";
|
|
271
|
+
readonly 800: "oklch(0.269 0 0)";
|
|
272
|
+
readonly 900: "oklch(0.205 0 0)";
|
|
273
|
+
readonly 950: "oklch(0.145 0 0)";
|
|
274
|
+
};
|
|
275
|
+
readonly stone: {
|
|
276
|
+
readonly 50: "oklch(0.985 0.001 106.423)";
|
|
277
|
+
readonly 100: "oklch(0.97 0.001 106.424)";
|
|
278
|
+
readonly 200: "oklch(0.923 0.003 48.717)";
|
|
279
|
+
readonly 300: "oklch(0.869 0.005 56.366)";
|
|
280
|
+
readonly 400: "oklch(0.709 0.01 56.259)";
|
|
281
|
+
readonly 500: "oklch(0.553 0.013 58.071)";
|
|
282
|
+
readonly 600: "oklch(0.444 0.011 73.639)";
|
|
283
|
+
readonly 700: "oklch(0.374 0.01 67.558)";
|
|
284
|
+
readonly 800: "oklch(0.268 0.007 34.298)";
|
|
285
|
+
readonly 900: "oklch(0.216 0.006 56.043)";
|
|
286
|
+
readonly 950: "oklch(0.147 0.004 49.25)";
|
|
287
|
+
};
|
|
288
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const breakpoints: {
|
|
2
|
+
readonly sm: "40rem";
|
|
3
|
+
readonly md: "48rem";
|
|
4
|
+
readonly lg: "64rem";
|
|
5
|
+
readonly xl: "80rem";
|
|
6
|
+
readonly '2xl': "96rem";
|
|
7
|
+
};
|
|
8
|
+
export type BreakpointName = keyof typeof breakpoints;
|
|
9
|
+
export declare function getBreakpointVarName(size: BreakpointName): string;
|
|
10
|
+
export declare function getBreakpointVar(size: BreakpointName): string;
|
|
11
|
+
export declare function getBreakpointMediaQuery(size: BreakpointName): string;
|
|
12
|
+
export declare function generateBreakpointVariables(): Record<string, string>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { colors } from './base-colors';
|
|
2
|
+
export type ColorName = keyof typeof colors;
|
|
3
|
+
export type ColorShade = 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 950;
|
|
4
|
+
export declare const colorShades: ColorShade[];
|
|
5
|
+
export type SemanticColorName = 'primary' | 'secondary' | 'base' | 'success' | 'warning' | 'error' | 'info';
|
|
6
|
+
export type ThemeColorName = ColorName | SemanticColorName;
|
|
7
|
+
export declare const semanticColorNames: readonly ["primary", "secondary", "base", "success", "warning", "error", "info"];
|
|
8
|
+
export declare const themeColorNames: ("primary" | "secondary" | "base" | "success" | "warning" | "error" | "info" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" | "slate" | "gray" | "zinc" | "neutral" | "stone")[];
|
|
9
|
+
export declare const semanticColors: Record<SemanticColorName, ColorName>;
|
|
10
|
+
export type BackgroundColorName = 'background' | 'surface' | 'subtle' | 'elevated' | 'raised' | 'overlay';
|
|
11
|
+
export declare const bgColors: {
|
|
12
|
+
light: Record<BackgroundColorName, [ThemeColorName, ColorShade]>;
|
|
13
|
+
dark: Record<BackgroundColorName, [ThemeColorName, ColorShade]>;
|
|
14
|
+
};
|
|
15
|
+
export type TextColorName = 'normal' | 'muted' | 'inverted';
|
|
16
|
+
export declare const textColors: {
|
|
17
|
+
light: Record<TextColorName, [ThemeColorName, ColorShade]>;
|
|
18
|
+
dark: Record<TextColorName, [ThemeColorName, ColorShade]>;
|
|
19
|
+
};
|
|
20
|
+
export type BorderColorName = 'border' | 'divider' | 'inverted';
|
|
21
|
+
export declare const borderColors: {
|
|
22
|
+
light: Record<BorderColorName, [ThemeColorName, ColorShade]>;
|
|
23
|
+
dark: Record<BorderColorName, [ThemeColorName, ColorShade]>;
|
|
24
|
+
};
|
|
25
|
+
export declare function normalizeColorName(color: ThemeColorName): ThemeColorName;
|
|
26
|
+
export declare function getColorVarName(color: ThemeColorName, shade: ColorShade): `--color-${ThemeColorName}-${ColorShade}`;
|
|
27
|
+
export declare function getColorVar(color: ThemeColorName, shade: ColorShade): string;
|
|
28
|
+
export declare function generateColorVariables(): Record<string, string>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './colors';
|
|
2
|
+
export * from './spacing';
|
|
3
|
+
export * from './typography';
|
|
4
|
+
export * from './breakpoints';
|
|
5
|
+
export declare function generateAllTokenVariables(): Record<string, string>;
|
|
6
|
+
export declare function getTokenValue(tokenName: string, element?: HTMLElement): string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const radius: {
|
|
2
|
+
readonly none: "0";
|
|
3
|
+
readonly xs: "calc(var(--spacing-base) / 2)";
|
|
4
|
+
readonly sm: "var(--spacing-base)";
|
|
5
|
+
readonly md: "calc(var(--spacing-base) * 1.5)";
|
|
6
|
+
readonly lg: "calc(var(--spacing-base) * 2)";
|
|
7
|
+
readonly xl: "calc(var(--spacing-base) * 3)";
|
|
8
|
+
readonly full: "9999px";
|
|
9
|
+
};
|
|
10
|
+
export type RadiusName = keyof typeof radius;
|
|
11
|
+
export declare function getRadiusVarName(size: RadiusName): string;
|
|
12
|
+
export declare function getRadiusVar(size: RadiusName): string;
|
|
13
|
+
export declare function getRadiusMediaQuery(size: RadiusName): string;
|
|
14
|
+
export declare function generateRadiusVariables(): Record<string, string>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const baseSpacing = "0.25rem";
|
|
2
|
+
export declare const spacing: {
|
|
3
|
+
readonly none: "0";
|
|
4
|
+
readonly px: "1px";
|
|
5
|
+
readonly base: "0.25rem";
|
|
6
|
+
readonly xs: "calc(var(--spacing-base) / 2)";
|
|
7
|
+
readonly sm: "var(--spacing-base)";
|
|
8
|
+
readonly md: "calc(var(--spacing-base) * 1.5)";
|
|
9
|
+
readonly lg: "calc(var(--spacing-base) * 2)";
|
|
10
|
+
readonly xl: "calc(var(--spacing-base) * 3)";
|
|
11
|
+
readonly '2xl': "calc(var(--spacing-base) * 4)";
|
|
12
|
+
readonly '3xl': "calc(var(--spacing-base) * 6)";
|
|
13
|
+
readonly full: "9999px";
|
|
14
|
+
};
|
|
15
|
+
export type SpacingName = keyof typeof spacing;
|
|
16
|
+
export declare function getSpacingVarName(size: SpacingName): string;
|
|
17
|
+
export declare function getSpacingVar(size: SpacingName): string;
|
|
18
|
+
export declare function generateSpacingVariables(): Record<string, string>;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
export declare const fontSize: {
|
|
2
|
+
readonly xs: readonly ["0.75rem", {
|
|
3
|
+
readonly lineHeight: "1rem";
|
|
4
|
+
}];
|
|
5
|
+
readonly sm: readonly ["0.875rem", {
|
|
6
|
+
readonly lineHeight: "1.25rem";
|
|
7
|
+
}];
|
|
8
|
+
readonly base: readonly ["1rem", {
|
|
9
|
+
readonly lineHeight: "1.5rem";
|
|
10
|
+
}];
|
|
11
|
+
readonly lg: readonly ["1.125rem", {
|
|
12
|
+
readonly lineHeight: "1.75rem";
|
|
13
|
+
}];
|
|
14
|
+
readonly xl: readonly ["1.25rem", {
|
|
15
|
+
readonly lineHeight: "1.75rem";
|
|
16
|
+
}];
|
|
17
|
+
readonly '2xl': readonly ["1.5rem", {
|
|
18
|
+
readonly lineHeight: "2rem";
|
|
19
|
+
}];
|
|
20
|
+
readonly '3xl': readonly ["1.875rem", {
|
|
21
|
+
readonly lineHeight: "2.25rem";
|
|
22
|
+
}];
|
|
23
|
+
readonly '4xl': readonly ["2.25rem", {
|
|
24
|
+
readonly lineHeight: "2.5rem";
|
|
25
|
+
}];
|
|
26
|
+
readonly '5xl': readonly ["3rem", {
|
|
27
|
+
readonly lineHeight: "1";
|
|
28
|
+
}];
|
|
29
|
+
readonly '6xl': readonly ["3.75rem", {
|
|
30
|
+
readonly lineHeight: "1";
|
|
31
|
+
}];
|
|
32
|
+
readonly '7xl': readonly ["4.5rem", {
|
|
33
|
+
readonly lineHeight: "1";
|
|
34
|
+
}];
|
|
35
|
+
readonly '8xl': readonly ["6rem", {
|
|
36
|
+
readonly lineHeight: "1";
|
|
37
|
+
}];
|
|
38
|
+
readonly '9xl': readonly ["8rem", {
|
|
39
|
+
readonly lineHeight: "1";
|
|
40
|
+
}];
|
|
41
|
+
};
|
|
42
|
+
export type FontSize = keyof typeof fontSize;
|
|
43
|
+
export declare const fontWeight: {
|
|
44
|
+
readonly thin: "100";
|
|
45
|
+
readonly extralight: "200";
|
|
46
|
+
readonly light: "300";
|
|
47
|
+
readonly normal: "400";
|
|
48
|
+
readonly medium: "500";
|
|
49
|
+
readonly semibold: "600";
|
|
50
|
+
readonly bold: "700";
|
|
51
|
+
readonly extrabold: "800";
|
|
52
|
+
readonly black: "900";
|
|
53
|
+
};
|
|
54
|
+
export type FontWeight = keyof typeof fontWeight;
|
|
55
|
+
export declare const lineHeight: {
|
|
56
|
+
readonly none: "1";
|
|
57
|
+
readonly tight: "1.25";
|
|
58
|
+
readonly snug: "1.375";
|
|
59
|
+
readonly normal: "1.5";
|
|
60
|
+
readonly relaxed: "1.625";
|
|
61
|
+
readonly loose: "2";
|
|
62
|
+
};
|
|
63
|
+
export type LineHeight = keyof typeof lineHeight;
|
|
64
|
+
export declare const letterSpacing: {
|
|
65
|
+
readonly tighter: "-0.05em";
|
|
66
|
+
readonly tight: "-0.025em";
|
|
67
|
+
readonly normal: "0em";
|
|
68
|
+
readonly wide: "0.025em";
|
|
69
|
+
readonly wider: "0.05em";
|
|
70
|
+
readonly widest: "0.1em";
|
|
71
|
+
};
|
|
72
|
+
export type LetterSpacing = keyof typeof letterSpacing;
|
|
73
|
+
export declare const fontFamily: {
|
|
74
|
+
readonly sans: readonly ["system-ui", "-apple-system", "BlinkMacSystemFont", "\"Segoe UI\"", "Roboto", "\"Helvetica Neue\"", "Arial", "\"Noto Sans\"", "sans-serif", "\"Apple Color Emoji\"", "\"Segoe UI Emoji\"", "\"Segoe UI Symbol\"", "\"Noto Color Emoji\""];
|
|
75
|
+
readonly serif: readonly ["ui-serif", "Georgia", "Cambria", "\"Times New Roman\"", "Times", "serif"];
|
|
76
|
+
readonly mono: readonly ["ui-monospace", "SFMono-Regular", "\"SF Mono\"", "Consolas", "\"Liberation Mono\"", "Menlo", "monospace"];
|
|
77
|
+
};
|
|
78
|
+
export type FontFamily = keyof typeof fontFamily;
|
|
79
|
+
export declare function getFontSizeVarName(size: FontSize): string;
|
|
80
|
+
export declare function getFontSizeVar(size: FontSize): string;
|
|
81
|
+
export declare function getFontWeightVarName(weight: FontWeight): string;
|
|
82
|
+
export declare function getFontWeightVar(weight: FontWeight): string;
|
|
83
|
+
export declare function getLineHeightVarName(height: LineHeight): string;
|
|
84
|
+
export declare function getLineHeightVar(height: LineHeight): string;
|
|
85
|
+
export declare function getLetterSpacingVarName(spacing: LetterSpacing): string;
|
|
86
|
+
export declare function getLetterSpacingVar(spacing: LetterSpacing): string;
|
|
87
|
+
export declare function getFontFamilyVarName(family: FontFamily): string;
|
|
88
|
+
export declare function getFontFamilyVar(family: FontFamily): string;
|
|
89
|
+
export declare function generateTypographyVariables(): Record<string, string>;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { type Signal } from '@tempots/dom';
|
|
2
|
+
export type ToggleStatus = 'closed' | 'start-opening' | 'opening' | 'open' | 'closing';
|
|
3
|
+
export type AnimatedToggleOptions = {
|
|
4
|
+
initialStatus?: Exclude<ToggleStatus, 'start-opening'>;
|
|
5
|
+
openedAfter: (cb: () => void) => () => void;
|
|
6
|
+
closedAfter: (cb: () => void) => () => void;
|
|
7
|
+
};
|
|
8
|
+
export declare function useAnimatedToggle({ initialStatus, openedAfter, closedAfter, }: AnimatedToggleOptions): {
|
|
9
|
+
status: Signal<ToggleStatus>;
|
|
10
|
+
open: () => void;
|
|
11
|
+
close: () => void;
|
|
12
|
+
toggle: () => void;
|
|
13
|
+
setOpen: (v: boolean) => void;
|
|
14
|
+
isOpen: import("@tempots/dom").Computed<boolean>;
|
|
15
|
+
displayOpen: import("@tempots/dom").Computed<boolean>;
|
|
16
|
+
dispose: () => void;
|
|
17
|
+
onClosed: (fn: () => void) => () => void;
|
|
18
|
+
};
|
|
19
|
+
export type TimedToggleOptions = {
|
|
20
|
+
initialStatus?: Exclude<ToggleStatus, 'start-opening'>;
|
|
21
|
+
openDuration?: number;
|
|
22
|
+
closeDuration?: number;
|
|
23
|
+
duration?: number;
|
|
24
|
+
};
|
|
25
|
+
export declare function useTimedToggle({ initialStatus, duration, openDuration, closeDuration, }?: TimedToggleOptions): {
|
|
26
|
+
status: Signal<ToggleStatus>;
|
|
27
|
+
open: () => void;
|
|
28
|
+
close: () => void;
|
|
29
|
+
toggle: () => void;
|
|
30
|
+
setOpen: (v: boolean) => void;
|
|
31
|
+
isOpen: import("@tempots/dom").Computed<boolean>;
|
|
32
|
+
displayOpen: import("@tempots/dom").Computed<boolean>;
|
|
33
|
+
dispose: () => void;
|
|
34
|
+
onClosed: (fn: () => void) => () => void;
|
|
35
|
+
};
|
|
36
|
+
export type AnimatedElementToggleOptions = {
|
|
37
|
+
initialStatus?: Exclude<ToggleStatus, 'start-opening'>;
|
|
38
|
+
element?: HTMLElement;
|
|
39
|
+
};
|
|
40
|
+
export declare function useAnimatedElementToggle({ initialStatus, element, }?: AnimatedElementToggleOptions): {
|
|
41
|
+
status: Signal<ToggleStatus>;
|
|
42
|
+
open: () => void;
|
|
43
|
+
close: () => void;
|
|
44
|
+
toggle: () => void;
|
|
45
|
+
setOpen: (v: boolean) => void;
|
|
46
|
+
isOpen: import("@tempots/dom").Computed<boolean>;
|
|
47
|
+
displayOpen: import("@tempots/dom").Computed<boolean>;
|
|
48
|
+
dispose: () => void;
|
|
49
|
+
onClosed: (fn: () => void) => () => void;
|
|
50
|
+
setElement: (value: HTMLElement) => void;
|
|
51
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@tempots/beatui",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "dist/index.umd.js",
|
|
6
|
+
"module": "dist/index.es.js",
|
|
7
|
+
"types": "dist/types/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/types/index.d.ts",
|
|
11
|
+
"import": "./dist/index.es.js",
|
|
12
|
+
"require": "./dist/index.umd.js",
|
|
13
|
+
"default": "./dist/index.es.js"
|
|
14
|
+
},
|
|
15
|
+
"./css": "./dist/beatui.css",
|
|
16
|
+
"./dist/*": "./dist/*",
|
|
17
|
+
"./package.json": "./package.json"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"dist",
|
|
21
|
+
"README.md",
|
|
22
|
+
"LICENSE"
|
|
23
|
+
],
|
|
24
|
+
"sideEffects": [
|
|
25
|
+
"**/*.css"
|
|
26
|
+
],
|
|
27
|
+
"keywords": [
|
|
28
|
+
"ui",
|
|
29
|
+
"components",
|
|
30
|
+
"typescript",
|
|
31
|
+
"beatui",
|
|
32
|
+
"design-system",
|
|
33
|
+
"css-layers",
|
|
34
|
+
"tempo-ts"
|
|
35
|
+
],
|
|
36
|
+
"author": "Franco Ponticelli <franco.ponticelli@gmail.com>",
|
|
37
|
+
"license": "MIT",
|
|
38
|
+
"description": "BeatUI - Modern TypeScript UI component library built with @tempots/dom, featuring layered CSS architecture and design tokens",
|
|
39
|
+
"homepage": "https://github.com/fponticelli/beatui#readme",
|
|
40
|
+
"repository": {
|
|
41
|
+
"type": "git",
|
|
42
|
+
"url": "https://github.com/fponticelli/beatui.git",
|
|
43
|
+
"directory": "packages/beatui"
|
|
44
|
+
},
|
|
45
|
+
"bugs": {
|
|
46
|
+
"url": "https://github.com/fponticelli/beatui/issues"
|
|
47
|
+
},
|
|
48
|
+
"engines": {
|
|
49
|
+
"node": ">=18.0.0",
|
|
50
|
+
"pnpm": ">=8.0.0"
|
|
51
|
+
},
|
|
52
|
+
"publishConfig": {
|
|
53
|
+
"access": "public",
|
|
54
|
+
"registry": "https://registry.npmjs.org/"
|
|
55
|
+
},
|
|
56
|
+
"peerDependencies": {
|
|
57
|
+
"@tempots/dom": ">=26.11.0",
|
|
58
|
+
"@tempots/std": ">=0.18.0",
|
|
59
|
+
"@tempots/ui": ">=3.1.0"
|
|
60
|
+
},
|
|
61
|
+
"peerDependenciesMeta": {
|
|
62
|
+
"@tempots/dom": {
|
|
63
|
+
"optional": false
|
|
64
|
+
},
|
|
65
|
+
"@tempots/std": {
|
|
66
|
+
"optional": false
|
|
67
|
+
},
|
|
68
|
+
"@tempots/ui": {
|
|
69
|
+
"optional": false
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"devDependencies": {
|
|
73
|
+
"@playwright/test": "1.52.0",
|
|
74
|
+
"@storybook/html-vite": "9.0.4",
|
|
75
|
+
"@testing-library/dom": "10.4.0",
|
|
76
|
+
"@types/node": "22.15.18",
|
|
77
|
+
"@typescript-eslint/eslint-plugin": "8.32.1",
|
|
78
|
+
"@typescript-eslint/parser": "8.32.1",
|
|
79
|
+
"eslint": "9.27.0",
|
|
80
|
+
"eslint-config-prettier": "10.1.5",
|
|
81
|
+
"eslint-plugin-prettier": "5.4.0",
|
|
82
|
+
"eslint-plugin-storybook": "9.0.4",
|
|
83
|
+
"jsdom": "26.1.0",
|
|
84
|
+
"prettier": "3.5.3",
|
|
85
|
+
"start-server-and-test": "^2.0.12",
|
|
86
|
+
"storybook": "9.0.4",
|
|
87
|
+
"tsx": "^4.19.4",
|
|
88
|
+
"typescript": "5.8.3",
|
|
89
|
+
"typescript-eslint": "8.32.1",
|
|
90
|
+
"vite": "6.3.5",
|
|
91
|
+
"vitest": "3.1.3",
|
|
92
|
+
"zod": "^3.25.32"
|
|
93
|
+
},
|
|
94
|
+
"scripts": {
|
|
95
|
+
"dev": "vite",
|
|
96
|
+
"build": "vite build && tsc -p tsconfig.build.json",
|
|
97
|
+
"test": "vitest run",
|
|
98
|
+
"test:watch": "vitest",
|
|
99
|
+
"test:e2e": "playwright test",
|
|
100
|
+
"test:e2e:ci": "PLAYWRIGHT_TEST_BASE_URL=http://localhost:6006 playwright test --project=chromium",
|
|
101
|
+
"test:all": "pnpm test && pnpm storybook:ci && pnpm test:e2e",
|
|
102
|
+
"storybook:ci": "start-server-and-test storybook http://localhost:6006 test:e2e:ci",
|
|
103
|
+
"lint": "eslint . --ext .ts",
|
|
104
|
+
"format": "prettier --write \"src/**/*.ts\" \"stories/**/*.ts\"",
|
|
105
|
+
"storybook": "storybook dev -p 6006",
|
|
106
|
+
"storybook:build": "storybook build",
|
|
107
|
+
"clean": "rm -rf dist storybook-static",
|
|
108
|
+
"release:patch": "pnpm run release:prepare && pnpm version patch && pnpm run release:publish",
|
|
109
|
+
"release:minor": "pnpm run release:prepare && pnpm version minor && pnpm run release:publish",
|
|
110
|
+
"release:major": "pnpm run release:prepare && pnpm version major && pnpm run release:publish",
|
|
111
|
+
"release:prerelease": "pnpm run release:prepare && pnpm version prerelease && pnpm run release:publish:next",
|
|
112
|
+
"release:prepare": "pnpm run clean && pnpm run build && pnpm run test",
|
|
113
|
+
"release:publish": "pnpm publish --no-git-checks",
|
|
114
|
+
"release:publish:next": "pnpm publish --tag next --no-git-checks",
|
|
115
|
+
"release:dry": "pnpm publish --dry-run --no-git-checks",
|
|
116
|
+
"version:show": "node -p \"'Current version: ' + require('./package.json').version\"",
|
|
117
|
+
"version:next:patch": "pnpm version patch --dry-run",
|
|
118
|
+
"version:next:minor": "pnpm version minor --dry-run",
|
|
119
|
+
"version:next:major": "pnpm version major --dry-run",
|
|
120
|
+
"version:next:prerelease": "pnpm version prerelease --dry-run",
|
|
121
|
+
"version:check": "pnpm version --help"
|
|
122
|
+
}
|
|
123
|
+
}
|