@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.
Files changed (46) hide show
  1. package/dist/{chunk-4KFAGTGA.mjs → chunk-3GNK4XIP.mjs} +1 -1
  2. package/dist/{chunk-MWYNO42Z.mjs → chunk-5IVN54XY.mjs} +1 -1
  3. package/dist/{chunk-BFIYTA3E.mjs → chunk-72XR5ZIW.mjs} +6 -2
  4. package/dist/{chunk-XCIQNTJN.mjs → chunk-77L52YWC.mjs} +37 -5
  5. package/dist/chunk-7L5MXXHC.mjs +85 -0
  6. package/dist/{chunk-FZQAYEIU.mjs → chunk-AIONRIMJ.mjs} +1 -1
  7. package/dist/{chunk-ETJ4QD6U.mjs → chunk-AYCK22RG.mjs} +1 -1
  8. package/dist/{chunk-35JLHFUT.mjs → chunk-ETW3MBHS.mjs} +22 -1
  9. package/dist/{chunk-ZHAIO7DA.mjs → chunk-GAIFRCYZ.mjs} +6 -3
  10. package/dist/chunk-GFSZU7EJ.mjs +98 -0
  11. package/dist/{chunk-TQEN6GDE.mjs → chunk-IKM3NBMK.mjs} +5 -6
  12. package/dist/chunk-JUSJUVFQ.mjs +76 -0
  13. package/dist/chunk-OEHI4BZZ.mjs +168 -0
  14. package/dist/{chunk-ZW2VXGO3.mjs → chunk-RBST5GCI.mjs} +6 -3
  15. package/dist/{chunk-HSKBYNCP.mjs → chunk-ZMSGID63.mjs} +7 -5
  16. package/dist/components/ActivityFeed.mjs +2 -2
  17. package/dist/components/Anchor.mjs +1 -1
  18. package/dist/components/BackTop.mjs +1 -1
  19. package/dist/components/Calendar.d.mts +12 -3
  20. package/dist/components/Calendar.mjs +1 -1
  21. package/dist/components/Code.d.mts +19 -1
  22. package/dist/components/Code.mjs +1 -1
  23. package/dist/components/CodeEditor.d.mts +2 -2
  24. package/dist/components/CommentThread.mjs +2 -2
  25. package/dist/components/DataTableWithToolbar.mjs +1 -1
  26. package/dist/components/DatePicker.mjs +2 -2
  27. package/dist/components/Drag.d.mts +62 -0
  28. package/dist/components/Drag.mjs +9 -0
  29. package/dist/components/Footer.d.mts +10 -0
  30. package/dist/components/Footer.mjs +1 -1
  31. package/dist/components/FullscreenButton.d.mts +58 -0
  32. package/dist/components/FullscreenButton.mjs +10 -0
  33. package/dist/components/Icon.d.mts +3 -3
  34. package/dist/components/Loading.d.mts +1 -1
  35. package/dist/components/Menu.d.mts +4 -4
  36. package/dist/components/Menu.mjs +1 -1
  37. package/dist/components/NotificationCenter.mjs +2 -2
  38. package/dist/components/ScrollSpy.mjs +1 -1
  39. package/dist/components/Text.d.mts +23 -73
  40. package/dist/components/Text.mjs +2 -1
  41. package/dist/composables/useFullscreen.d.mts +14 -0
  42. package/dist/composables/useFullscreen.mjs +6 -0
  43. package/dist/index.d.mts +5 -2
  44. package/dist/index.mjs +37 -0
  45. package/package.json +17 -2
  46. package/dist/chunk-I77GUQV4.mjs +0 -93
@@ -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
- };