srcdev-nuxt-components 6.1.8 → 6.1.9

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,5 +1,12 @@
1
1
  <template>
2
- <component :is="tag" class="layout-row" :class="elementClasses" :id :tab-index="isLandmark ? 0 : null" :aria-label="isLandmark ? 'Layout Row Landmark' : undefined">
2
+ <component
3
+ :is="tag"
4
+ class="layout-row"
5
+ :class="elementClasses"
6
+ :id
7
+ :tab-index="isLandmark ? 0 : null"
8
+ :aria-label="isLandmark ? 'Layout Row Landmark' : undefined"
9
+ >
3
10
  <div :data-testid="dataTestid" class="layout-row-inner" :class="variant">
4
11
  <div>
5
12
  <slot name="default"></slot>
@@ -9,46 +16,57 @@
9
16
  </template>
10
17
 
11
18
  <script lang="ts">
12
- const TAGS_ALLOWED = <string[]>['div', 'section', 'article', 'aside', 'header', 'footer', 'main', 'nav', 'ul', 'ol'];
19
+ export const TAGS_ALLOWED = <string[]>[
20
+ "div",
21
+ "section",
22
+ "article",
23
+ "aside",
24
+ "header",
25
+ "footer",
26
+ "main",
27
+ "nav",
28
+ "ul",
29
+ "ol",
30
+ ]
13
31
 
14
- const VARIANT_CLASSES = <string[]>[
15
- 'full',
16
- 'full-start',
17
- 'full-end',
18
- 'popout',
19
- 'popout-start',
20
- 'popout-end',
21
- 'content',
22
- 'content-start',
23
- 'content-end',
24
- 'inset-content',
25
- 'inset-content-start',
26
- 'inset-content-end',
27
- 'full-width',
28
- 'full-content',
29
- 'full-content-nopad',
30
- 'full-content',
31
- ];
32
+ export const VARIANT_CLASSES = <string[]>[
33
+ "full",
34
+ "full-start",
35
+ "full-end",
36
+ "popout",
37
+ "popout-start",
38
+ "popout-end",
39
+ "content",
40
+ "content-start",
41
+ "content-end",
42
+ "inset-content",
43
+ "inset-content-start",
44
+ "inset-content-end",
45
+ "full-width",
46
+ "full-content",
47
+ "full-content-nopad",
48
+ "full-content",
49
+ ]
32
50
  </script>
33
51
 
34
52
  <script setup lang="ts">
35
53
  const props = defineProps({
36
54
  dataTestid: {
37
55
  type: String,
38
- default: 'layout-row',
56
+ default: "layout-row",
39
57
  },
40
58
  tag: {
41
59
  type: String,
42
- default: 'div',
60
+ default: "div",
43
61
  validator(value: string) {
44
- return TAGS_ALLOWED.includes(value);
62
+ return TAGS_ALLOWED.includes(value)
45
63
  },
46
64
  },
47
65
  variant: {
48
66
  type: String,
49
67
  required: true,
50
68
  validator(value: string) {
51
- return VARIANT_CLASSES.includes(value);
69
+ return VARIANT_CLASSES.includes(value)
52
70
  },
53
71
  },
54
72
  id: {
@@ -63,9 +81,9 @@ const props = defineProps({
63
81
  type: Boolean,
64
82
  default: false,
65
83
  },
66
- });
84
+ })
67
85
 
68
- const { elementClasses } = useStyleClassPassthrough(props.styleClassPassthrough);
86
+ const { elementClasses } = useStyleClassPassthrough(props.styleClassPassthrough)
69
87
  </script>
70
88
 
71
89
  <style lang="css">
package/nuxt.config.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  export default defineNuxtConfig({
3
3
  devtools: { enabled: true },
4
4
  // css: ["modern-normalize", "./app/assets/styles/main.css"],
5
- modules: ["@nuxt/eslint", "@nuxt/icon", "@nuxt/image"],
5
+ modules: ["@nuxt/eslint", "@nuxt/icon", "@nuxt/image", "@nuxtjs/i18n"],
6
6
  app: {
7
7
  head: {
8
8
  htmlAttrs: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "srcdev-nuxt-components",
3
3
  "type": "module",
4
- "version": "6.1.8",
4
+ "version": "6.1.9",
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",
@@ -36,6 +36,7 @@
36
36
  "typescript": "5.9.2"
37
37
  },
38
38
  "dependencies": {
39
+ "@nuxtjs/i18n": "^10.0.6",
39
40
  "focus-trap-vue": "4.0.3"
40
41
  },
41
42
  "release-it": {