@timus-networks/theme 2.4.107 → 2.4.109

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/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@timus-networks/theme",
3
3
  "configKey": "themeOptions",
4
- "version": "2.4.106",
4
+ "version": "2.4.108",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.4",
7
7
  "unbuild": "2.0.0"
package/dist/module.mjs CHANGED
@@ -11,7 +11,7 @@ const __filename = __cjs_url__.fileURLToPath(import.meta.url);
11
11
  const __dirname = __cjs_path__.dirname(__filename);
12
12
  const require = __cjs_mod__.createRequire(import.meta.url);
13
13
  const name = "@timus-networks/theme";
14
- const version = "2.4.106";
14
+ const version = "2.4.108";
15
15
  const description = "A comprehensive Nuxt.js module providing a tailored theme experience with integrated TailwindCSS support for applications.";
16
16
  const type = "module";
17
17
  const exports = {
@@ -47,12 +47,15 @@
47
47
  <el-card>
48
48
  <template #header> Underline </template>
49
49
  <div class="flex flex-col gap-3 items-start">
50
- <h2>Underline</h2>
51
- <p>Underline of link</p>
52
- <div class="flex gap-2">
53
- Some text, <el-link :underline="false">Without Underline</el-link> no - underline....
54
- <el-link :underline="true">With Underline</el-link>
55
- </div>
50
+ <p>
51
+ Default underline is <el-text tag="mark">hover</el-text>. Other underline props values is <el-text tag="mark">'always' | 'hover' | 'never'</el-text>. Boolean is
52
+ deprecated and will be removed in the future. Also gives an console warning.
53
+ </p>
54
+ <ul class="list-disc list-inside">
55
+ <li><el-link underline="never">Never</el-link> "underline='never'": Some text,</li>
56
+ <li><el-link underline="hover">Hover</el-link> "underline='hover'": Some text,</li>
57
+ <li><el-link underline="always">Always</el-link> "underline='always'": Some text</li>
58
+ </ul>
56
59
  </div>
57
60
  <template #footer> <html-encode :tag="snippets.underline" /> </template>
58
61
  </el-card>
@@ -85,7 +88,7 @@
85
88
  const snippets = ref({
86
89
  basic: `<el-link href="https://element-plus.org" target="_blank" type="secondary">default</el-link>`,
87
90
  disabled: `<el-link type="secondary" disabled>default</el-link>`,
88
- underline: `<el-link :underline="false">Without Underline</el-link>`,
91
+ underline: `<el-link underline="hover">With Underline</el-link>`,
89
92
  icon: `<el-link class="isax-add icon-right">Check</el-link>`,
90
93
  });
91
94
  </script>
@@ -35,13 +35,13 @@
35
35
  const match = line.match(/^\s*/);
36
36
  const indent = match ? match[0].length : 0;
37
37
 
38
- return line.trim() ? Math.min(min, indent) : min;
38
+ return line?.trim?.() ? Math.min(min, indent) : min;
39
39
  }, Infinity);
40
40
 
41
41
  return lines
42
- .filter((line) => line.trim() !== '') // Remove empty lines
42
+ .filter((line) => line?.trim?.() !== '') // Remove empty lines
43
43
  .map((line) => {
44
- const trimmedLine = line.trim();
44
+ const trimmedLine = line?.trim?.();
45
45
  const match = line.match(/^\s*/);
46
46
  const lineIndent = match ? match[0].length : 0;
47
47
  const indent = Math.max(0, lineIndent - baseIndent);
@@ -9942,7 +9942,6 @@ h6,
9942
9942
  gap: 4px;
9943
9943
  flex-direction: row;
9944
9944
  align-items: center;
9945
- justify-content: center;
9946
9945
  vertical-align: middle;
9947
9946
  position: relative;
9948
9947
  text-decoration: none;
@@ -9972,7 +9971,7 @@ h6,
9972
9971
  border-style: solid;
9973
9972
  }
9974
9973
 
9975
- .el-link.is-underline:hover:after {
9974
+ .el-link.is-underline:after {
9976
9975
  content: "";
9977
9976
  position: absolute;
9978
9977
  left: 0;
@@ -425,7 +425,6 @@ h6,
425
425
  gap: 4px;
426
426
  flex-direction: row;
427
427
  align-items: center;
428
- justify-content: center;
429
428
  vertical-align: middle;
430
429
  position: relative;
431
430
  text-decoration: none;
@@ -455,7 +454,7 @@ h6,
455
454
  border-style: solid;
456
455
  }
457
456
 
458
- .el-link.is-underline:hover:after {
457
+ .el-link.is-underline:after {
459
458
  content: "";
460
459
  position: absolute;
461
460
  left: 0;
@@ -16,7 +16,7 @@
16
16
  gap: 4px;
17
17
  flex-direction: row;
18
18
  align-items: center;
19
- justify-content: center;
19
+ // justify-content: center;
20
20
  vertical-align: middle;
21
21
  position: relative;
22
22
  text-decoration: none;
@@ -53,7 +53,7 @@
53
53
  }
54
54
 
55
55
  @include when(underline) {
56
- &:hover:after {
56
+ &:after {
57
57
  content: '';
58
58
  position: absolute;
59
59
  left: 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@timus-networks/theme",
3
- "version": "2.4.107",
3
+ "version": "2.4.109",
4
4
  "description": "A comprehensive Nuxt.js module providing a tailored theme experience with integrated TailwindCSS support for applications.",
5
5
  "type": "module",
6
6
  "exports": {