@expcat/tigercat-vue 2.1.4 → 2.2.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/dist/{chunk-4KFAGTGA.mjs → chunk-3GNK4XIP.mjs} +1 -1
- package/dist/{chunk-MWYNO42Z.mjs → chunk-5IVN54XY.mjs} +1 -1
- package/dist/{chunk-BFIYTA3E.mjs → chunk-72XR5ZIW.mjs} +6 -2
- package/dist/{chunk-XCIQNTJN.mjs → chunk-77L52YWC.mjs} +37 -5
- package/dist/chunk-7L5MXXHC.mjs +85 -0
- package/dist/{chunk-FZQAYEIU.mjs → chunk-AIONRIMJ.mjs} +1 -1
- package/dist/{chunk-ETJ4QD6U.mjs → chunk-AYCK22RG.mjs} +1 -1
- package/dist/{chunk-35JLHFUT.mjs → chunk-ETW3MBHS.mjs} +22 -1
- package/dist/{chunk-ZHAIO7DA.mjs → chunk-GAIFRCYZ.mjs} +6 -3
- package/dist/chunk-GFSZU7EJ.mjs +98 -0
- package/dist/{chunk-TQEN6GDE.mjs → chunk-IKM3NBMK.mjs} +5 -6
- package/dist/chunk-JUSJUVFQ.mjs +76 -0
- package/dist/chunk-OEHI4BZZ.mjs +168 -0
- package/dist/{chunk-ZW2VXGO3.mjs → chunk-RBST5GCI.mjs} +6 -3
- package/dist/{chunk-HSKBYNCP.mjs → chunk-ZMSGID63.mjs} +7 -5
- package/dist/components/ActivityFeed.mjs +2 -2
- package/dist/components/Anchor.mjs +1 -1
- package/dist/components/BackTop.mjs +1 -1
- package/dist/components/Calendar.d.mts +12 -3
- package/dist/components/Calendar.mjs +1 -1
- package/dist/components/Code.d.mts +19 -1
- package/dist/components/Code.mjs +1 -1
- package/dist/components/CodeEditor.d.mts +2 -2
- package/dist/components/CommentThread.mjs +2 -2
- package/dist/components/DataTableWithToolbar.mjs +1 -1
- package/dist/components/DatePicker.mjs +2 -2
- package/dist/components/Drag.d.mts +62 -0
- package/dist/components/Drag.mjs +9 -0
- package/dist/components/Footer.d.mts +10 -0
- package/dist/components/Footer.mjs +1 -1
- package/dist/components/FullscreenButton.d.mts +58 -0
- package/dist/components/FullscreenButton.mjs +10 -0
- package/dist/components/Icon.d.mts +3 -3
- package/dist/components/Loading.d.mts +1 -1
- package/dist/components/Menu.d.mts +4 -4
- package/dist/components/Menu.mjs +1 -1
- package/dist/components/NotificationCenter.mjs +2 -2
- package/dist/components/ScrollSpy.mjs +1 -1
- package/dist/components/Text.d.mts +23 -73
- package/dist/components/Text.mjs +2 -1
- package/dist/composables/useFullscreen.d.mts +14 -0
- package/dist/composables/useFullscreen.mjs +6 -0
- package/dist/index.d.mts +5 -2
- package/dist/index.mjs +37 -0
- package/package.json +17 -2
- package/dist/chunk-I77GUQV4.mjs +0 -93
package/dist/chunk-I77GUQV4.mjs
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
// src/components/Text.ts
|
|
2
|
-
import { defineComponent, computed, h } from "vue";
|
|
3
|
-
import {
|
|
4
|
-
getTextClasses,
|
|
5
|
-
resolveTextTag
|
|
6
|
-
} from "@expcat/tigercat-core";
|
|
7
|
-
var Text = defineComponent({
|
|
8
|
-
name: "TigerText",
|
|
9
|
-
inheritAttrs: false,
|
|
10
|
-
props: {
|
|
11
|
-
/**
|
|
12
|
-
* HTML tag to render. Only the TextTag whitelist is allowed.
|
|
13
|
-
* @default 'p'
|
|
14
|
-
*/
|
|
15
|
-
tag: {
|
|
16
|
-
type: String,
|
|
17
|
-
default: "p"
|
|
18
|
-
},
|
|
19
|
-
/**
|
|
20
|
-
* Text size
|
|
21
|
-
* @default 'base'
|
|
22
|
-
*/
|
|
23
|
-
size: {
|
|
24
|
-
type: String,
|
|
25
|
-
default: "base"
|
|
26
|
-
},
|
|
27
|
-
/**
|
|
28
|
-
* Font weight
|
|
29
|
-
* @default 'normal'
|
|
30
|
-
*/
|
|
31
|
-
weight: {
|
|
32
|
-
type: String,
|
|
33
|
-
default: "normal"
|
|
34
|
-
},
|
|
35
|
-
/**
|
|
36
|
-
* Logical text alignment (`start` / `center` / `end` / `justify`)
|
|
37
|
-
*/
|
|
38
|
-
align: {
|
|
39
|
-
type: String
|
|
40
|
-
},
|
|
41
|
-
/**
|
|
42
|
-
* Text color
|
|
43
|
-
* @default 'default'
|
|
44
|
-
*/
|
|
45
|
-
color: {
|
|
46
|
-
type: String,
|
|
47
|
-
default: "default"
|
|
48
|
-
},
|
|
49
|
-
/**
|
|
50
|
-
* Truncate text with ellipsis
|
|
51
|
-
* @default false
|
|
52
|
-
*/
|
|
53
|
-
truncate: {
|
|
54
|
-
type: Boolean,
|
|
55
|
-
default: false
|
|
56
|
-
},
|
|
57
|
-
/**
|
|
58
|
-
* Italic text style
|
|
59
|
-
* @default false
|
|
60
|
-
*/
|
|
61
|
-
italic: {
|
|
62
|
-
type: Boolean,
|
|
63
|
-
default: false
|
|
64
|
-
},
|
|
65
|
-
/**
|
|
66
|
-
* Underline text decoration
|
|
67
|
-
* @default false
|
|
68
|
-
*/
|
|
69
|
-
underline: {
|
|
70
|
-
type: Boolean,
|
|
71
|
-
default: false
|
|
72
|
-
},
|
|
73
|
-
/**
|
|
74
|
-
* Line-through text decoration
|
|
75
|
-
* @default false
|
|
76
|
-
*/
|
|
77
|
-
lineThrough: {
|
|
78
|
-
type: Boolean,
|
|
79
|
-
default: false
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
setup(props, { slots, attrs }) {
|
|
83
|
-
const textClasses = computed(() => getTextClasses(props));
|
|
84
|
-
const resolvedTag = computed(() => resolveTextTag(props.tag));
|
|
85
|
-
return () => h(resolvedTag.value, { ...attrs, class: [textClasses.value, attrs.class] }, slots.default?.());
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
var Text_default = Text;
|
|
89
|
-
|
|
90
|
-
export {
|
|
91
|
-
Text,
|
|
92
|
-
Text_default
|
|
93
|
-
};
|