srcdev-nuxt-components 6.1.11 → 6.1.12

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.
@@ -5,7 +5,7 @@
5
5
  <span class="label-wrapper">
6
6
  <slot name="summary"></slot>
7
7
  </span>
8
- <span class="icon-wrapper">
8
+ <span v-if="!forceOpened" class="icon-wrapper">
9
9
  <slot name="icon">
10
10
  <Icon name="bi:caret-down-fill" class="icon mi-12" />
11
11
  </slot>
@@ -0,0 +1,65 @@
1
+ <template>
2
+ <component :is="tag" class="section-parallax" :class="[elementClasses]">
3
+ <slot v-if="slots.default" name="default"></slot>
4
+ </component>
5
+ </template>
6
+
7
+ <script setup lang="ts">
8
+ const props = defineProps({
9
+ tag: {
10
+ type: String,
11
+ default: "div",
12
+ validator(value: string) {
13
+ return ["div", "section", "article", "aside"].includes(value)
14
+ },
15
+ },
16
+ backgroundImage: {
17
+ type: String,
18
+ },
19
+ styleClassPassthrough: {
20
+ type: Array as PropType<string[]>,
21
+ default: () => [],
22
+ },
23
+ })
24
+
25
+ const slots = useSlots()
26
+
27
+ const backgroundImage = computed(() => `url("${props.backgroundImage}")`)
28
+
29
+ const { elementClasses, resetElementClasses } = useStyleClassPassthrough(props.styleClassPassthrough)
30
+
31
+ watch(
32
+ () => props.styleClassPassthrough,
33
+ () => {
34
+ resetElementClasses(props.styleClassPassthrough)
35
+ }
36
+ )
37
+ </script>
38
+
39
+ <style lang="css">
40
+ .section-parallax {
41
+ /* Component styles */
42
+
43
+ min-height: 120vh;
44
+ background-image: v-bind(backgroundImage);
45
+ background-position: center;
46
+ background-repeat: no-repeat;
47
+ background-size: inherit;
48
+ position: relative;
49
+
50
+ background-color: light-dark(var(--gray-1), var(--gray-8));
51
+ width: 100%;
52
+
53
+ @supports (background-attachment: fixed) {
54
+ background-attachment: fixed;
55
+ background-size: cover;
56
+ min-height: 120vh;
57
+ }
58
+
59
+ /* &.use-fixed-bg {
60
+ background-attachment: fixed;
61
+ background-size: cover;
62
+ min-height: 120vh;
63
+ } */
64
+ }
65
+ </style>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "srcdev-nuxt-components",
3
3
  "type": "module",
4
- "version": "6.1.11",
4
+ "version": "6.1.12",
5
5
  "main": "nuxt.config.ts",
6
6
  "scripts": {
7
7
  "clean": "rm -rf .nuxt && rm -rf .output && rm -rf .playground/.nuxt && rm -rf .playground/.output",
@@ -24,21 +24,19 @@
24
24
  "devDependencies": {
25
25
  "@iconify-json/akar-icons": "1.2.7",
26
26
  "@iconify-json/bitcoin-icons": "1.2.4",
27
- "@iconify-json/material-symbols": "^1.2.33",
28
- "@nuxt/eslint": "1.8.0",
27
+ "@iconify-json/material-symbols": "1.2.34",
28
+ "@nuxt/eslint": "1.9.0",
29
29
  "@nuxt/icon": "2.0.0",
30
30
  "@nuxt/image": "1.11.0",
31
- "@vueuse/core": "13.6.0",
32
- "eslint": "9.31.0",
31
+ "@nuxtjs/i18n": "10.1.0",
32
+ "@vueuse/core": "13.9.0",
33
+ "eslint": "9.35.0",
34
+ "focus-trap-vue": "4.1.0",
33
35
  "happy-dom": "18.0.1",
34
- "nuxt": "4.0.3",
36
+ "nuxt": "4.1.2",
35
37
  "release-it": "19.0.4",
36
38
  "typescript": "5.9.2"
37
39
  },
38
- "dependencies": {
39
- "@nuxtjs/i18n": "^10.0.6",
40
- "focus-trap-vue": "4.0.3"
41
- },
42
40
  "release-it": {
43
41
  "$schema": "https://unpkg.com/release-it/schema/release-it.json",
44
42
  "git": {