@maizzle/framework 6.0.8 → 6.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,67 +1,67 @@
1
1
  {
2
- "hash": "3b54bef3",
3
- "configHash": "713dc748",
2
+ "hash": "cbb16bb0",
3
+ "configHash": "02cb2161",
4
4
  "lockfileHash": "e3b0c442",
5
- "browserHash": "ce701eeb",
5
+ "browserHash": "98d765c2",
6
6
  "optimized": {
7
7
  "@lucide/vue": {
8
8
  "src": "../../../../../node_modules/@lucide/vue/dist/esm/lucide-vue.mjs",
9
9
  "file": "@lucide_vue.js",
10
- "fileHash": "706ba87f",
10
+ "fileHash": "fcae4f29",
11
11
  "needsInterop": false
12
12
  },
13
13
  "@vueuse/core": {
14
14
  "src": "../../../../../node_modules/@vueuse/core/dist/index.js",
15
15
  "file": "@vueuse_core.js",
16
- "fileHash": "3cf62389",
16
+ "fileHash": "b01cea7a",
17
17
  "needsInterop": false
18
18
  },
19
19
  "@vueuse/shared": {
20
20
  "src": "../../../../../node_modules/@vueuse/shared/dist/index.js",
21
21
  "file": "@vueuse_shared.js",
22
- "fileHash": "9c0b3c8f",
22
+ "fileHash": "b5a784a1",
23
23
  "needsInterop": false
24
24
  },
25
25
  "class-variance-authority": {
26
26
  "src": "../../../../../node_modules/class-variance-authority/dist/index.mjs",
27
27
  "file": "class-variance-authority.js",
28
- "fileHash": "d7aca618",
28
+ "fileHash": "5cae1021",
29
29
  "needsInterop": false
30
30
  },
31
31
  "clsx": {
32
32
  "src": "../../../../../node_modules/clsx/dist/clsx.mjs",
33
33
  "file": "clsx.js",
34
- "fileHash": "a2824016",
34
+ "fileHash": "1099431c",
35
35
  "needsInterop": false
36
36
  },
37
37
  "culori": {
38
38
  "src": "../../../../../node_modules/culori/src/index.js",
39
39
  "file": "culori.js",
40
- "fileHash": "2168c639",
40
+ "fileHash": "897266f7",
41
41
  "needsInterop": false
42
42
  },
43
43
  "reka-ui": {
44
44
  "src": "../../../../../node_modules/reka-ui/dist/index.js",
45
45
  "file": "reka-ui.js",
46
- "fileHash": "73e1ad3a",
46
+ "fileHash": "13c5a14b",
47
47
  "needsInterop": false
48
48
  },
49
49
  "tailwind-merge": {
50
50
  "src": "../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js",
51
51
  "file": "tailwind-merge.js",
52
- "fileHash": "c8257a39",
52
+ "fileHash": "fa35c58c",
53
53
  "needsInterop": true
54
54
  },
55
55
  "vue-router": {
56
56
  "src": "../../../../../node_modules/vue-router/dist/vue-router.js",
57
57
  "file": "vue-router.js",
58
- "fileHash": "e47dc4d6",
58
+ "fileHash": "c1bf41a6",
59
59
  "needsInterop": false
60
60
  },
61
61
  "vue": {
62
62
  "src": "../../../../../node_modules/vue/dist/vue.runtime.esm-bundler.js",
63
63
  "file": "vue.js",
64
- "fileHash": "2ea5bfb6",
64
+ "fileHash": "aeeb6470",
65
65
  "needsInterop": false
66
66
  }
67
67
  },
@@ -290,6 +290,31 @@ function toggleDarkMode() {
290
290
  darkMode.value = !darkMode.value
291
291
  }
292
292
 
293
+ const vFade = {
294
+ mounted(el: HTMLElement) {
295
+ const update = () => {
296
+ const max = el.scrollWidth - el.clientWidth
297
+ el.style.setProperty('--fade-l', el.scrollLeft > 1 ? 'transparent' : '#000')
298
+ el.style.setProperty('--fade-r', el.scrollLeft < max - 1 ? 'transparent' : '#000')
299
+ }
300
+ ;(el as any)._fade = update
301
+ el.addEventListener('scroll', update, { passive: true })
302
+ window.addEventListener('resize', update)
303
+ const observer = new ResizeObserver(update)
304
+ observer.observe(el)
305
+ ;(el as any)._fadeObserver = observer
306
+ requestAnimationFrame(update)
307
+ },
308
+ updated(el: HTMLElement) {
309
+ requestAnimationFrame((el as any)._fade)
310
+ },
311
+ unmounted(el: HTMLElement) {
312
+ el.removeEventListener('scroll', (el as any)._fade)
313
+ window.removeEventListener('resize', (el as any)._fade)
314
+ ;(el as any)._fadeObserver?.disconnect()
315
+ },
316
+ }
317
+
293
318
  onMounted(() => {
294
319
  document.addEventListener('keydown', onKeydown)
295
320
  window.addEventListener('blur', onWindowBlur)
@@ -329,7 +354,9 @@ onUnmounted(() => {
329
354
  </SidebarGroup>
330
355
 
331
356
  <SidebarGroup v-for="(items, dir) in grouped" :key="dir" v-else>
332
- <SidebarGroupLabel>{{ dir }}</SidebarGroupLabel>
357
+ <SidebarGroupLabel>
358
+ <span v-fade class="min-w-0 overflow-x-auto whitespace-nowrap scrollbar-hide fade-scroll">{{ dir }}</span>
359
+ </SidebarGroupLabel>
333
360
  <SidebarGroupContent>
334
361
  <SidebarMenu>
335
362
  <SidebarMenuItem v-for="t in items" :key="t.path">
@@ -152,3 +152,18 @@
152
152
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22h6a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v6'/%3E%3Cpath d='M14 2v5a1 1 0 0 0 1 1h5'/%3E%3Cpath d='M3 22V14l4 4 4-4v8'/%3E%3C/svg%3E");
153
153
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22h6a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v6'/%3E%3Cpath d='M14 2v5a1 1 0 0 0 1 1h5'/%3E%3Cpath d='M3 22V14l4 4 4-4v8'/%3E%3C/svg%3E");
154
154
  }
155
+
156
+ @utility scrollbar-hide {
157
+ -ms-overflow-style: none;
158
+ scrollbar-width: none;
159
+ &::-webkit-scrollbar {
160
+ display: none;
161
+ }
162
+ }
163
+
164
+ @utility fade-scroll {
165
+ --fade-l: #000;
166
+ --fade-r: #000;
167
+ -webkit-mask-image: linear-gradient(to right, var(--fade-l) 0, #000 1.5rem, #000 calc(100% - 1.5rem), var(--fade-r) 100%);
168
+ mask-image: linear-gradient(to right, var(--fade-l) 0, #000 1.5rem, #000 calc(100% - 1.5rem), var(--fade-r) 100%);
169
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maizzle/framework",
3
- "version": "6.0.8",
3
+ "version": "6.0.10",
4
4
  "description": "Maizzle is a framework that helps you quickly build HTML emails with Tailwind CSS.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -58,7 +58,7 @@
58
58
  "markdown-exit": "^1.1.0-beta.2",
59
59
  "nodemailer": "^9.0.0",
60
60
  "ora": "^9.3.0",
61
- "oxfmt": "^0.60.0",
61
+ "oxfmt": "^0.61.0",
62
62
  "pathe": "^2.0.3",
63
63
  "postcss": "^8.5.6",
64
64
  "postcss-calc": "^10.1.1",