@gluhar/core 3.0.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +372 -353
- package/README.md +94 -94
- package/dist/module.json +1 -1
- package/dist/runtime/composables/useResponsive.d.ts +7 -15
- package/dist/runtime/composables/useResponsive.js +21 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,357 +3,376 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
# [
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
###
|
|
88
|
-
|
|
89
|
-
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
## [1.1.
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
## [1.1.
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
## [1.
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
## [0.1.
|
|
278
|
-
|
|
279
|
-
**📝 Note:** Version bump only for package @pezak/hui-core
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
## [0.1.
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
###
|
|
337
|
-
|
|
338
|
-
-
|
|
339
|
-
|
|
340
|
-
###
|
|
341
|
-
|
|
342
|
-
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
-
|
|
347
|
-
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
6
|
+
# [4.0.0](https://github.com/gluharco/gluhar/compare/@gluhar/core@3.0.0...@gluhar/core@4.0.0) (2026-03-13)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
* feat(core)!: replace useResponsive with full breakpoint implementation ([887729a](https://github.com/gluharco/gluhar/commit/887729af8659b6b6529ac8463a382e8d1825d885))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### BREAKING CHANGES
|
|
13
|
+
|
|
14
|
+
* useResponsive now returns { mobile, tablet, tabletExact, desktop, desktopExact, wide, touch }
|
|
15
|
+
instead of { isMobile, breakpoints }.
|
|
16
|
+
|
|
17
|
+
Supersedes the project-level useMobile composable used across all projects.
|
|
18
|
+
Breakpoints: tablet 768, desktop 1200, wide 2000 (hardcoded for now — will derive from Tailwind config in future).
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.0.0](https://github.com/gluharry/gluhar/compare/@gluhar/core@2.0.0...@gluhar/core@3.0.0) (2025-05-13)
|
|
26
|
+
|
|
27
|
+
**📝 Note:** Version bump only for package @gluhar/core
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
# 2.0.0 (2025-01-21)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### 🩹 Fixes
|
|
37
|
+
|
|
38
|
+
- A small change again ([e664a0f](https://github.com/harryyaprakov/hui/commit/e664a0f22f5f6a9977064181b7d66f4e91ac7988))
|
|
39
|
+
- Copy readme and changelog to dist on build ([5b27677](https://github.com/harryyaprakov/hui/commit/5b27677f8a18a21d1ccbea85bb0d8a611c43938e))
|
|
40
|
+
- Core build ([a2228e7](https://github.com/harryyaprakov/hui/commit/a2228e70f3fb18ddc7bd79961e9c8e161d3dfbe2))
|
|
41
|
+
- **core:** Making a test change to core ([00b9629](https://github.com/harryyaprakov/hui/commit/00b9629ab3dd209931dc2cf1cc222beb5a89cfa4))
|
|
42
|
+
- GetRandomBetween returning something wildly incorrect ([76dfb02](https://github.com/harryyaprakov/hui/commit/76dfb02b7b1f6063496ef47b7f0300749245be65))
|
|
43
|
+
- Hui-core module name ([51c45dc](https://github.com/harryyaprakov/hui/commit/51c45dc55bd675fc0899aca4efb2a456d942c9c6))
|
|
44
|
+
- Package json fixes ([a5823da](https://github.com/harryyaprakov/hui/commit/a5823daef779c4d9be0e0794cee20ee120ed6c6b))
|
|
45
|
+
- Pimp changelog ([c813e4a](https://github.com/harryyaprakov/hui/commit/c813e4a4a7ce19d09ee46a20ae6d351086472f1c))
|
|
46
|
+
- Type imports, core types export ([866186a](https://github.com/harryyaprakov/hui/commit/866186aca1ad1bab03b5b6b0d0621a29f67518f6))
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
### 🚀 Enhancements
|
|
50
|
+
|
|
51
|
+
- Hui-core is in v1 ([30acbca](https://github.com/harryyaprakov/hui/commit/30acbcaa732a8ec92b472c1144da83342b2c3775))
|
|
52
|
+
- Initiate hui-core as a package for basic shared composables, utils and types. ([0570751](https://github.com/harryyaprakov/hui/commit/0570751b8e8810c135557b42ed8d4d03ab389b30))
|
|
53
|
+
- Pimp changelogs to be like Nuxt / unjs/changelogen ([afeb9cc](https://github.com/harryyaprakov/hui/commit/afeb9cce1b507e51beb1b8aa8e919c841b28ba02))
|
|
54
|
+
- Proper build and dist process for core and sanity ([3699c59](https://github.com/harryyaprakov/hui/commit/3699c59cd24dc9a9a34779c89924101c938a59de))
|
|
55
|
+
- Some test feature added ([012c975](https://github.com/harryyaprakov/hui/commit/012c97562d237a5c762ad9d2f82c7d2e76d5a605))
|
|
56
|
+
- UseBaseUrl ([cb32c71](https://github.com/harryyaprakov/hui/commit/cb32c714fde766e7394fac792b7d86acf84d17e8))
|
|
57
|
+
- Version bump ([32cd173](https://github.com/harryyaprakov/hui/commit/32cd173ed800a4d4ede5286e65b9c5728ce39950))
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
## 0.0.5 (2024-02-25)
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
### 🚀 Enhancements
|
|
65
|
+
|
|
66
|
+
- Init dev with two example packages ([416ecc4](https://github.com/harryyaprakov/hui/commit/416ecc45457acec888806c58bdcb7f5f0fba9472))
|
|
67
|
+
- **repo:** Added lerna ([dadeca9](https://github.com/harryyaprakov/hui/commit/dadeca9b503dbe2b0f3c25eaaf7a85e7f2dd21c4))
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
# [1.3.0](https://github.com/harryyaprakov/hui/compare/@pezak/hui-core@1.2.0...@pezak/hui-core@1.3.0) (2024-09-12)
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
### 🚀 Enhancements
|
|
77
|
+
|
|
78
|
+
- UseBaseUrl ([cb32c71](https://github.com/harryyaprakov/hui/commit/cb32c714fde766e7394fac792b7d86acf84d17e8))
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
# [1.2.0](https://github.com/harryyaprakov/hui/compare/@pezak/hui-core@1.1.5...@pezak/hui-core@1.2.0) (2024-09-12)
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
### 🚀 Enhancements
|
|
88
|
+
|
|
89
|
+
- Version bump ([32cd173](https://github.com/harryyaprakov/hui/commit/32cd173ed800a4d4ede5286e65b9c5728ce39950))
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
## [1.1.5](https://github.com/harryyaprakov/hui/compare/@pezak/hui-core@1.1.4...@pezak/hui-core@1.1.5) (2024-09-12)
|
|
96
|
+
|
|
97
|
+
**📝 Note:** Version bump only for package @pezak/hui-core
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
## [1.1.4](https://github.com/harryyaprakov/hui/compare/@pezak/hui-core@1.1.3...@pezak/hui-core@1.1.4) (2024-05-10)
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
### 🩹 Fixes
|
|
107
|
+
|
|
108
|
+
- GetRandomBetween returning something wildly incorrect ([76dfb02](https://github.com/harryyaprakov/hui/commit/76dfb02b7b1f6063496ef47b7f0300749245be65))
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
## [1.1.3](https://github.com/harryyaprakov/hui/compare/@pezak/hui-core@1.1.2...@pezak/hui-core@1.1.3) (2024-04-10)
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
### 🩹 Fixes
|
|
118
|
+
|
|
119
|
+
- Type imports, core types export ([866186a](https://github.com/harryyaprakov/hui/commit/866186aca1ad1bab03b5b6b0d0621a29f67518f6))
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
## [1.1.2](https://github.com/harryyaprakov/hui/compare/@pezak/hui-core@1.1.1...@pezak/hui-core@1.1.2) (2024-03-31)
|
|
126
|
+
|
|
127
|
+
**📝 Note:** Version bump only for package @pezak/hui-core
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
## [1.1.1](https://github.com/harryyaprakov/hui/compare/@pezak/hui-core@1.1.0...@pezak/hui-core@1.1.1) (2024-03-27)
|
|
134
|
+
|
|
135
|
+
**📝 Note:** Version bump only for package @pezak/hui-core
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
# [1.1.0](https://github.com/harryyaprakov/hui/compare/@pezak/hui-core@1.0.4...@pezak/hui-core@1.1.0) (2024-03-27)
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
### 🚀 Enhancements
|
|
145
|
+
|
|
146
|
+
- Proper build and dist process for core and sanity ([3699c59](https://github.com/harryyaprakov/hui/commit/3699c59cd24dc9a9a34779c89924101c938a59de))
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
## [1.0.4](https://github.com/harryyaprakov/hui/compare/@pezak/hui-core@1.0.3...@pezak/hui-core@1.0.4) (2024-03-26)
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
### 🩹 Fixes
|
|
156
|
+
|
|
157
|
+
- Package json fixes ([a5823da](https://github.com/harryyaprakov/hui/commit/a5823daef779c4d9be0e0794cee20ee120ed6c6b))
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
## [1.0.3](https://github.com/harryyaprakov/hui/compare/@pezak/hui-core@1.0.2...@pezak/hui-core@1.0.3) (2024-03-26)
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
### 🩹 Fixes
|
|
167
|
+
|
|
168
|
+
- Copy readme and changelog to dist on build ([5b27677](https://github.com/harryyaprakov/hui/commit/5b27677f8a18a21d1ccbea85bb0d8a611c43938e))
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
## [1.0.2](https://github.com/harryyaprakov/hui/compare/@pezak/hui-core@1.0.0...@pezak/hui-core@1.0.2) (2024-03-26)
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
### 🩹 Fixes
|
|
178
|
+
|
|
179
|
+
- Hui-core module name ([51c45dc](https://github.com/harryyaprakov/hui/commit/51c45dc55bd675fc0899aca4efb2a456d942c9c6))
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
## [1.0.1](https://github.com/harryyaprakov/hui/compare/@pezak/hui-core@1.0.0...@pezak/hui-core@1.0.1) (2024-03-26)
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
### 🩹 Fixes
|
|
189
|
+
|
|
190
|
+
- Hui-core module name ([51c45dc](https://github.com/harryyaprakov/hui/commit/51c45dc55bd675fc0899aca4efb2a456d942c9c6))
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
# [1.0.0](https://github.com/harryyaprakov/hui/compare/@pezak/hui-core@0.5.0...@pezak/hui-core@1.0.0) (2024-03-26)
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
### 🚀 Enhancements
|
|
200
|
+
|
|
201
|
+
- Hui-core is in v1 ([30acbca](https://github.com/harryyaprakov/hui/commit/30acbcaa732a8ec92b472c1144da83342b2c3775))
|
|
202
|
+
- Initiate hui-core as a package for basic shared composables, utils and types. ([0570751](https://github.com/harryyaprakov/hui/commit/0570751b8e8810c135557b42ed8d4d03ab389b30))
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
# [0.5.0](https://github.com/harryyaprakov/hui/compare/@pezak/hui-core@0.2.0...@pezak/hui-core@0.5.0) (2024-03-26)
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
### 🩹 Fixes
|
|
212
|
+
|
|
213
|
+
- A small change again ([e664a0f](https://github.com/harryyaprakov/hui/commit/e664a0f22f5f6a9977064181b7d66f4e91ac7988))
|
|
214
|
+
- Pimp changelog ([c813e4a](https://github.com/harryyaprakov/hui/commit/c813e4a4a7ce19d09ee46a20ae6d351086472f1c))
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
### 🚀 Enhancements
|
|
218
|
+
|
|
219
|
+
- Pimp changelogs to be like Nuxt / unjs/changelogen ([afeb9cc](https://github.com/harryyaprakov/hui/commit/afeb9cce1b507e51beb1b8aa8e919c841b28ba02))
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
# [0.4.0](https://github.com/harryyaprakov/hui/compare/@pezak/hui-core@0.2.0...@pezak/hui-core@0.4.0) (2024-03-26)
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
### 🩹 Fixes
|
|
229
|
+
|
|
230
|
+
- A small change again ([e664a0f](https://github.com/harryyaprakov/hui/commit/e664a0f22f5f6a9977064181b7d66f4e91ac7988))
|
|
231
|
+
- Pimp changelog ([c813e4a](https://github.com/harryyaprakov/hui/commit/c813e4a4a7ce19d09ee46a20ae6d351086472f1c))
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
### 🚀 Enhancements
|
|
235
|
+
|
|
236
|
+
- Pimp changelogs to be like Nuxt / unjs/changelogen ([afeb9cc](https://github.com/harryyaprakov/hui/commit/afeb9cce1b507e51beb1b8aa8e919c841b28ba02))
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
# [0.3.0](https://github.com/harryyaprakov/hui/compare/@pezak/hui-core@0.2.0...@pezak/hui-core@0.3.0) (2024-03-26)
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
### 🩹 Fixes
|
|
246
|
+
|
|
247
|
+
- A small change again ([e664a0f](https://github.com/harryyaprakov/hui/commit/e664a0f22f5f6a9977064181b7d66f4e91ac7988))
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
### 🚀 Enhancements
|
|
251
|
+
|
|
252
|
+
- Pimp changelogs to be like Nuxt / unjs/changelogen ([afeb9cc](https://github.com/harryyaprakov/hui/commit/afeb9cce1b507e51beb1b8aa8e919c841b28ba02))
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
# [0.2.0](https://github.com/harryyaprakov/hui/compare/@pezak/hui-core@0.1.5...@pezak/hui-core@0.2.0) (2024-03-25)
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
### 🚀 Enhancements
|
|
262
|
+
|
|
263
|
+
- Some test feature added ([012c975](https://github.com/harryyaprakov/hui/commit/012c97562d237a5c762ad9d2f82c7d2e76d5a605))
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
## [0.1.5](https://github.com/harryyaprakov/hui/compare/@pezak/hui-core@0.1.4...@pezak/hui-core@0.1.5) (2024-03-25)
|
|
270
|
+
|
|
271
|
+
**📝 Note:** Version bump only for package @pezak/hui-core
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
## [0.1.4](https://github.com/harryyaprakov/hui/compare/@pezak/hui-core@0.1.3...@pezak/hui-core@0.1.4) (2024-03-25)
|
|
278
|
+
|
|
279
|
+
**📝 Note:** Version bump only for package @pezak/hui-core
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
## [0.1.3](https://github.com/harryyaprakov/hui/compare/@pezak/hui-core@0.1.2...@pezak/hui-core@0.1.3) (2024-03-25)
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
### 🩹 Fixes
|
|
289
|
+
|
|
290
|
+
- Core build ([a2228e7](https://github.com/harryyaprakov/hui/commit/a2228e70f3fb18ddc7bd79961e9c8e161d3dfbe2))
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
## [0.1.2](https://github.com/harryyaprakov/hui/compare/@pezak/hui-core@0.1.0...@pezak/hui-core@0.1.2) (2024-03-25)
|
|
297
|
+
|
|
298
|
+
**📝 Note:** Version bump only for package @pezak/hui-core
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
## [0.1.1](https://github.com/harryyaprakov/hui/compare/@pezak/hui-core@0.1.0...@pezak/hui-core@0.1.1) (2024-03-25)
|
|
305
|
+
|
|
306
|
+
**📝 Note:** Version bump only for package @pezak/hui-core
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
# 0.1.0 (2024-02-25)
|
|
313
|
+
|
|
314
|
+
### 🩹 Fixes
|
|
315
|
+
|
|
316
|
+
- **core:** making a test change to core ([00b9629](https://github.com/harryyaprakov/hui/commit/00b9629ab3dd209931dc2cf1cc222beb5a89cfa4))
|
|
317
|
+
|
|
318
|
+
## 0.0.5 (2024-02-25)
|
|
319
|
+
|
|
320
|
+
### 🚀 Enhancements
|
|
321
|
+
|
|
322
|
+
- init dev with two example packages ([416ecc4](https://github.com/harryyaprakov/hui/commit/416ecc45457acec888806c58bdcb7f5f0fba9472))
|
|
323
|
+
- **repo:** added lerna ([dadeca9](https://github.com/harryyaprakov/hui/commit/dadeca9b503dbe2b0f3c25eaaf7a85e7f2dd21c4))
|
|
324
|
+
|
|
325
|
+
# @pezak/hui-core
|
|
326
|
+
|
|
327
|
+
## v0.0.5
|
|
328
|
+
|
|
329
|
+
[compare changes](https://github.com/harryyaprakov/hui/compare/v0.0.3...v0.0.5)
|
|
330
|
+
|
|
331
|
+
### 🚀 Enhancements
|
|
332
|
+
|
|
333
|
+
- Init dev with two example packages ([416ecc4](https://github.com/harryyaprakov/hui/commit/416ecc4))
|
|
334
|
+
- **repo:** Added lerna ([dadeca9](https://github.com/harryyaprakov/hui/commit/dadeca9))
|
|
335
|
+
|
|
336
|
+
### 🩹 Fixes
|
|
337
|
+
|
|
338
|
+
- Publish without release label ([c233f3d](https://github.com/harryyaprakov/hui/commit/c233f3d))
|
|
339
|
+
|
|
340
|
+
### 🏡 Chore
|
|
341
|
+
|
|
342
|
+
- Testing out changeset ([c8ab5f3](https://github.com/harryyaprakov/hui/commit/c8ab5f3))
|
|
343
|
+
- Add auto for versioning and publishing ([ec5caf9](https://github.com/harryyaprakov/hui/commit/ec5caf9))
|
|
344
|
+
- Remove turbo and add lerna ([1ae9159](https://github.com/harryyaprakov/hui/commit/1ae9159))
|
|
345
|
+
- Add workspaces scripts ([4020d94](https://github.com/harryyaprakov/hui/commit/4020d94))
|
|
346
|
+
- **release:** V0.0.3 ([e0bcb93](https://github.com/harryyaprakov/hui/commit/e0bcb93))
|
|
347
|
+
- **release:** V0.0.3 ([b32aa79](https://github.com/harryyaprakov/hui/commit/b32aa79))
|
|
348
|
+
|
|
349
|
+
### ❤️ Contributors
|
|
350
|
+
|
|
351
|
+
- Harry Yaprakov <h@yaprakov.com>
|
|
352
|
+
|
|
353
|
+
## v0.0.3
|
|
354
|
+
|
|
355
|
+
### 🚀 Enhancements
|
|
356
|
+
|
|
357
|
+
- Init dev with two example packages ([416ecc4](https://github.com/harryyaprakov/hui/commit/416ecc4))
|
|
358
|
+
|
|
359
|
+
### 🩹 Fixes
|
|
360
|
+
|
|
361
|
+
- Publish without release label ([c233f3d](https://github.com/harryyaprakov/hui/commit/c233f3d))
|
|
362
|
+
|
|
363
|
+
### 🏡 Chore
|
|
364
|
+
|
|
365
|
+
- Testing out changeset ([c8ab5f3](https://github.com/harryyaprakov/hui/commit/c8ab5f3))
|
|
366
|
+
- Add auto for versioning and publishing ([ec5caf9](https://github.com/harryyaprakov/hui/commit/ec5caf9))
|
|
367
|
+
- Remove turbo and add lerna ([1ae9159](https://github.com/harryyaprakov/hui/commit/1ae9159))
|
|
368
|
+
- Add workspaces scripts ([4020d94](https://github.com/harryyaprakov/hui/commit/4020d94))
|
|
369
|
+
|
|
370
|
+
### ❤️ Contributors
|
|
371
|
+
|
|
372
|
+
- Harry Yaprakov <h@yaprakov.com>
|
|
373
|
+
|
|
374
|
+
## 0.0.2
|
|
375
|
+
|
|
376
|
+
### Patch Changes
|
|
377
|
+
|
|
359
378
|
- chore: Initializing hui-core and hui-sanity packages.
|
package/README.md
CHANGED
|
@@ -1,94 +1,94 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
Get your module up and running quickly.
|
|
3
|
-
|
|
4
|
-
Find and replace all on all files (CMD+SHIFT+F):
|
|
5
|
-
- Name: My Module
|
|
6
|
-
- Package name: my-module
|
|
7
|
-
- Description: My new Nuxt module
|
|
8
|
-
-->
|
|
9
|
-
|
|
10
|
-
# My Module
|
|
11
|
-
|
|
12
|
-
[![npm version][npm-version-src]][npm-version-href]
|
|
13
|
-
[![npm downloads][npm-downloads-src]][npm-downloads-href]
|
|
14
|
-
[![License][license-src]][license-href]
|
|
15
|
-
[![Nuxt][nuxt-src]][nuxt-href]
|
|
16
|
-
|
|
17
|
-
My new Nuxt module for doing amazing things.
|
|
18
|
-
|
|
19
|
-
- [✨ Release Notes](/CHANGELOG.md)
|
|
20
|
-
<!-- - [🏀 Online playground](https://stackblitz.com/github/your-org/my-module?file=playground%2Fapp.vue) -->
|
|
21
|
-
<!-- - [📖 Documentation](https://example.com) -->
|
|
22
|
-
|
|
23
|
-
## Features
|
|
24
|
-
|
|
25
|
-
<!-- Highlight some of the features your module provide here -->
|
|
26
|
-
- ⛰ Foo
|
|
27
|
-
- 🚠 Bar
|
|
28
|
-
- 🌲 Baz
|
|
29
|
-
|
|
30
|
-
## Quick Setup
|
|
31
|
-
|
|
32
|
-
1. Add `my-module` dependency to your project
|
|
33
|
-
|
|
34
|
-
```bash
|
|
35
|
-
# Using pnpm
|
|
36
|
-
pnpm add -D my-module
|
|
37
|
-
|
|
38
|
-
# Using yarn
|
|
39
|
-
yarn add --dev my-module
|
|
40
|
-
|
|
41
|
-
# Using npm
|
|
42
|
-
npm install --save-dev my-module
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
2. Add `my-module` to the `modules` section of `nuxt.config.ts`
|
|
46
|
-
|
|
47
|
-
```js
|
|
48
|
-
export default defineNuxtConfig({
|
|
49
|
-
modules: [
|
|
50
|
-
'my-module'
|
|
51
|
-
]
|
|
52
|
-
})
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
That's it! You can now use My Module in your Nuxt app ✨
|
|
56
|
-
|
|
57
|
-
## Development
|
|
58
|
-
|
|
59
|
-
```bash
|
|
60
|
-
# Install dependencies
|
|
61
|
-
npm install
|
|
62
|
-
|
|
63
|
-
# Generate type stubs
|
|
64
|
-
npm run dev:prepare
|
|
65
|
-
|
|
66
|
-
# Develop with the playground
|
|
67
|
-
npm run dev
|
|
68
|
-
|
|
69
|
-
# Build the playground
|
|
70
|
-
npm run dev:build
|
|
71
|
-
|
|
72
|
-
# Run ESLint
|
|
73
|
-
npm run lint
|
|
74
|
-
|
|
75
|
-
# Run Vitest
|
|
76
|
-
npm run test
|
|
77
|
-
npm run test:watch
|
|
78
|
-
|
|
79
|
-
# Release new version
|
|
80
|
-
npm run release
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
<!-- Badges -->
|
|
84
|
-
[npm-version-src]: https://img.shields.io/npm/v/my-module/latest.svg?style=flat&colorA=020420&colorB=00DC82
|
|
85
|
-
[npm-version-href]: https://npmjs.com/package/my-module
|
|
86
|
-
|
|
87
|
-
[npm-downloads-src]: https://img.shields.io/npm/dm/my-module.svg?style=flat&colorA=020420&colorB=00DC82
|
|
88
|
-
[npm-downloads-href]: https://npmjs.com/package/my-module
|
|
89
|
-
|
|
90
|
-
[license-src]: https://img.shields.io/npm/l/my-module.svg?style=flat&colorA=020420&colorB=00DC82
|
|
91
|
-
[license-href]: https://npmjs.com/package/my-module
|
|
92
|
-
|
|
93
|
-
[nuxt-src]: https://img.shields.io/badge/Nuxt-020420?logo=nuxt.js
|
|
94
|
-
[nuxt-href]: https://nuxt.com
|
|
1
|
+
<!--
|
|
2
|
+
Get your module up and running quickly.
|
|
3
|
+
|
|
4
|
+
Find and replace all on all files (CMD+SHIFT+F):
|
|
5
|
+
- Name: My Module
|
|
6
|
+
- Package name: my-module
|
|
7
|
+
- Description: My new Nuxt module
|
|
8
|
+
-->
|
|
9
|
+
|
|
10
|
+
# My Module
|
|
11
|
+
|
|
12
|
+
[![npm version][npm-version-src]][npm-version-href]
|
|
13
|
+
[![npm downloads][npm-downloads-src]][npm-downloads-href]
|
|
14
|
+
[![License][license-src]][license-href]
|
|
15
|
+
[![Nuxt][nuxt-src]][nuxt-href]
|
|
16
|
+
|
|
17
|
+
My new Nuxt module for doing amazing things.
|
|
18
|
+
|
|
19
|
+
- [✨ Release Notes](/CHANGELOG.md)
|
|
20
|
+
<!-- - [🏀 Online playground](https://stackblitz.com/github/your-org/my-module?file=playground%2Fapp.vue) -->
|
|
21
|
+
<!-- - [📖 Documentation](https://example.com) -->
|
|
22
|
+
|
|
23
|
+
## Features
|
|
24
|
+
|
|
25
|
+
<!-- Highlight some of the features your module provide here -->
|
|
26
|
+
- ⛰ Foo
|
|
27
|
+
- 🚠 Bar
|
|
28
|
+
- 🌲 Baz
|
|
29
|
+
|
|
30
|
+
## Quick Setup
|
|
31
|
+
|
|
32
|
+
1. Add `my-module` dependency to your project
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
# Using pnpm
|
|
36
|
+
pnpm add -D my-module
|
|
37
|
+
|
|
38
|
+
# Using yarn
|
|
39
|
+
yarn add --dev my-module
|
|
40
|
+
|
|
41
|
+
# Using npm
|
|
42
|
+
npm install --save-dev my-module
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
2. Add `my-module` to the `modules` section of `nuxt.config.ts`
|
|
46
|
+
|
|
47
|
+
```js
|
|
48
|
+
export default defineNuxtConfig({
|
|
49
|
+
modules: [
|
|
50
|
+
'my-module'
|
|
51
|
+
]
|
|
52
|
+
})
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
That's it! You can now use My Module in your Nuxt app ✨
|
|
56
|
+
|
|
57
|
+
## Development
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
# Install dependencies
|
|
61
|
+
npm install
|
|
62
|
+
|
|
63
|
+
# Generate type stubs
|
|
64
|
+
npm run dev:prepare
|
|
65
|
+
|
|
66
|
+
# Develop with the playground
|
|
67
|
+
npm run dev
|
|
68
|
+
|
|
69
|
+
# Build the playground
|
|
70
|
+
npm run dev:build
|
|
71
|
+
|
|
72
|
+
# Run ESLint
|
|
73
|
+
npm run lint
|
|
74
|
+
|
|
75
|
+
# Run Vitest
|
|
76
|
+
npm run test
|
|
77
|
+
npm run test:watch
|
|
78
|
+
|
|
79
|
+
# Release new version
|
|
80
|
+
npm run release
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
<!-- Badges -->
|
|
84
|
+
[npm-version-src]: https://img.shields.io/npm/v/my-module/latest.svg?style=flat&colorA=020420&colorB=00DC82
|
|
85
|
+
[npm-version-href]: https://npmjs.com/package/my-module
|
|
86
|
+
|
|
87
|
+
[npm-downloads-src]: https://img.shields.io/npm/dm/my-module.svg?style=flat&colorA=020420&colorB=00DC82
|
|
88
|
+
[npm-downloads-href]: https://npmjs.com/package/my-module
|
|
89
|
+
|
|
90
|
+
[license-src]: https://img.shields.io/npm/l/my-module.svg?style=flat&colorA=020420&colorB=00DC82
|
|
91
|
+
[license-href]: https://npmjs.com/package/my-module
|
|
92
|
+
|
|
93
|
+
[nuxt-src]: https://img.shields.io/badge/Nuxt-020420?logo=nuxt.js
|
|
94
|
+
[nuxt-href]: https://nuxt.com
|
package/dist/module.json
CHANGED
|
@@ -1,17 +1,9 @@
|
|
|
1
1
|
export declare const useResponsive: () => {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
isGreater(k: import("@vueuse/shared").MaybeRefOrGetter<"sm" | "md" | "lg" | "xl" | "2xl">): boolean;
|
|
10
|
-
isGreaterOrEqual(k: import("@vueuse/shared").MaybeRefOrGetter<"sm" | "md" | "lg" | "xl" | "2xl">): boolean;
|
|
11
|
-
isSmaller(k: import("@vueuse/shared").MaybeRefOrGetter<"sm" | "md" | "lg" | "xl" | "2xl">): boolean;
|
|
12
|
-
isSmallerOrEqual(k: import("@vueuse/shared").MaybeRefOrGetter<"sm" | "md" | "lg" | "xl" | "2xl">): boolean;
|
|
13
|
-
isInBetween(a: import("@vueuse/shared").MaybeRefOrGetter<"sm" | "md" | "lg" | "xl" | "2xl">, b: import("@vueuse/shared").MaybeRefOrGetter<"sm" | "md" | "lg" | "xl" | "2xl">): boolean;
|
|
14
|
-
current: () => import("vue").ComputedRef<string[]>;
|
|
15
|
-
active(): import("vue").ComputedRef<string | undefined>;
|
|
16
|
-
};
|
|
2
|
+
mobile: import("vue").ComputedRef<boolean>;
|
|
3
|
+
tablet: import("vue").Ref<boolean, boolean>;
|
|
4
|
+
tabletExact: import("vue").ComputedRef<boolean>;
|
|
5
|
+
desktop: import("vue").Ref<boolean, boolean>;
|
|
6
|
+
desktopExact: import("vue").ComputedRef<boolean>;
|
|
7
|
+
wide: import("vue").Ref<boolean, boolean>;
|
|
8
|
+
touch: import("vue").ComputedRef<boolean>;
|
|
17
9
|
};
|
|
@@ -1,8 +1,26 @@
|
|
|
1
|
+
import { computed } from "#imports";
|
|
1
2
|
import { useBreakpoints, breakpointsTailwind } from "@vueuse/core";
|
|
2
3
|
import { useDevice } from "#imports";
|
|
3
4
|
export const useResponsive = () => {
|
|
4
|
-
const breakpoints = useBreakpoints(
|
|
5
|
+
const breakpoints = useBreakpoints({
|
|
6
|
+
...breakpointsTailwind,
|
|
7
|
+
tablet: 768,
|
|
8
|
+
desktop: 1200,
|
|
9
|
+
wide: 2e3
|
|
10
|
+
});
|
|
5
11
|
const { isMobile } = useDevice();
|
|
6
|
-
const mobile =
|
|
7
|
-
|
|
12
|
+
const mobile = computed(
|
|
13
|
+
() => breakpoints.smaller("tablet").value || isMobile
|
|
14
|
+
);
|
|
15
|
+
const tablet = breakpoints.greater("tablet");
|
|
16
|
+
const tabletExact = computed(
|
|
17
|
+
() => breakpoints.isInBetween("tablet", "desktop")
|
|
18
|
+
);
|
|
19
|
+
const desktop = breakpoints.greater("desktop");
|
|
20
|
+
const desktopExact = computed(
|
|
21
|
+
() => breakpoints.isInBetween("desktop", "wide")
|
|
22
|
+
);
|
|
23
|
+
const touch = computed(() => !desktop.value);
|
|
24
|
+
const wide = breakpoints.greater("wide");
|
|
25
|
+
return { mobile, tablet, tabletExact, desktop, desktopExact, wide, touch };
|
|
8
26
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gluhar/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "Gluhar Core packages.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"nuxt": "^3.13.1",
|
|
54
54
|
"vitest": "^2.0.5"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "37c79c38049ee2d91e649523539808c2fdbffd88"
|
|
57
57
|
}
|