veloce-vue 0.20.0 → 0.22.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/_virtual/_plugin-vue_export-helper.js +9 -0
- package/components/Accordion.vue.d.ts +19 -1
- package/components/Accordion.vue.js +91 -0
- package/components/Accordion.vue2.js +4 -0
- package/components/Badge.vue.d.ts +1 -0
- package/components/Badge.vue.js +47 -0
- package/components/Badge.vue2.js +4 -0
- package/components/Button.vue.d.ts +16 -8
- package/components/Button.vue.js +7 -0
- package/components/Button.vue2.js +114 -0
- package/components/Checkbox.vue.d.ts +6 -7
- package/components/Checkbox.vue.js +98 -0
- package/components/Checkbox.vue2.js +4 -0
- package/components/Chip.vue.d.ts +6 -7
- package/components/Chip.vue.js +61 -0
- package/components/Chip.vue2.js +4 -0
- package/components/Drawer.vue.js +94 -0
- package/components/Drawer.vue2.js +4 -0
- package/components/Fieldset.vue.d.ts +6 -7
- package/components/Fieldset.vue.js +49 -0
- package/components/Fieldset.vue2.js +4 -0
- package/components/Input.vue.d.ts +11 -12
- package/components/Input.vue.js +106 -0
- package/components/Input.vue2.js +4 -0
- package/components/JsonRenderer.vue.d.ts +14 -0
- package/components/JsonRenderer.vue.js +63 -0
- package/components/JsonRenderer.vue2.js +4 -0
- package/components/Layout.vue.js +83 -0
- package/components/Layout.vue2.js +4 -0
- package/components/Message.vue.d.ts +97 -8
- package/components/Message.vue.js +109 -0
- package/components/Message.vue2.js +4 -0
- package/components/MiniEditor.vue.d.ts +12 -0
- package/components/MiniEditor.vue.js +132 -0
- package/components/MiniEditor.vue2.js +4 -0
- package/components/Modal.vue.js +73 -0
- package/components/Modal.vue2.js +4 -0
- package/components/Popover.vue.js +78 -0
- package/components/Popover.vue2.js +4 -0
- package/components/ProgressBar.vue.js +51 -0
- package/components/ProgressBar.vue2.js +4 -0
- package/components/ProgressSpinner.vue.js +47 -0
- package/components/ProgressSpinner.vue2.js +4 -0
- package/components/RangeSlider.vue.js +61 -0
- package/components/RangeSlider.vue2.js +4 -0
- package/components/Select.vue.js +129 -0
- package/components/Select.vue2.js +4 -0
- package/components/Separator.vue.d.ts +8 -9
- package/components/Separator.vue.js +74 -0
- package/components/Separator.vue2.js +4 -0
- package/components/Skeleton.vue.d.ts +1 -1
- package/components/Skeleton.vue.js +7 -0
- package/components/Skeleton.vue2.js +24 -0
- package/components/Switch.vue.js +48 -0
- package/components/Switch.vue2.js +4 -0
- package/components/Tooltip.vue.js +35 -0
- package/components/Tooltip.vue2.js +4 -0
- package/components/icon/Icon.vue.d.ts +2 -3
- package/components/icon/Icon.vue.js +21 -0
- package/components/icon/Icon.vue2.js +4 -0
- package/components/icon/icons.d.ts +139 -139
- package/components/typography/Blockquote.vue.d.ts +151 -0
- package/components/typography/Blockquote.vue.js +55 -0
- package/components/typography/Blockquote.vue2.js +4 -0
- package/components/typography/Code.vue.d.ts +160 -0
- package/components/typography/Code.vue.js +74 -0
- package/components/typography/Code.vue2.js +4 -0
- package/components/typography/H1.vue.d.ts +151 -0
- package/components/typography/H1.vue.js +55 -0
- package/components/typography/H1.vue2.js +4 -0
- package/components/typography/H2.vue.d.ts +151 -0
- package/components/typography/H2.vue.js +55 -0
- package/components/typography/H2.vue2.js +4 -0
- package/components/typography/H3.vue.d.ts +151 -0
- package/components/typography/H3.vue.js +55 -0
- package/components/typography/H3.vue2.js +4 -0
- package/components/typography/H4.vue.d.ts +151 -0
- package/components/typography/H4.vue.js +55 -0
- package/components/typography/H4.vue2.js +4 -0
- package/components/typography/H5.vue.d.ts +151 -0
- package/components/typography/H5.vue.js +55 -0
- package/components/typography/H5.vue2.js +4 -0
- package/components/typography/H6.vue.d.ts +151 -0
- package/components/typography/H6.vue.js +55 -0
- package/components/typography/H6.vue2.js +4 -0
- package/components/typography/Label.vue.d.ts +160 -0
- package/components/typography/Label.vue.js +61 -0
- package/components/typography/Label.vue2.js +4 -0
- package/components/typography/List.vue.d.ts +123 -0
- package/components/typography/List.vue.js +60 -0
- package/components/typography/List.vue2.js +4 -0
- package/components/typography/P.vue.d.ts +151 -0
- package/components/typography/P.vue.js +55 -0
- package/components/typography/P.vue2.js +4 -0
- package/components/typography/Span.vue.d.ts +151 -0
- package/components/typography/Span.vue.js +55 -0
- package/components/typography/Span.vue2.js +4 -0
- package/config.js +2 -14
- package/exports/composables.d.ts +1 -0
- package/exports/icons.d.ts +2 -1
- package/exports/toast.d.ts +4 -0
- package/exports/types.d.ts +56 -3
- package/exports/typography.d.ts +12 -0
- package/exports/ui.d.ts +2 -0
- package/exports/utils.d.ts +3 -0
- package/icons/Alert.vue.js +31 -0
- package/icons/AlertCircle.vue.js +31 -0
- package/icons/Archive.vue.js +33 -0
- package/icons/ArrowDown.vue.js +26 -0
- package/icons/ArrowLeft.vue.js +26 -0
- package/icons/ArrowRight.vue.js +26 -0
- package/icons/ArrowUp.vue.js +26 -0
- package/icons/AtSign.vue.js +30 -0
- package/icons/Bell.vue.js +26 -0
- package/icons/Bold.vue.js +20 -0
- package/icons/Bookmark.vue.js +25 -0
- package/icons/Camera.vue.js +30 -0
- package/icons/Check.vue.js +20 -0
- package/icons/CheckCircle.vue.js +26 -0
- package/icons/CheckSquare.vue.js +26 -0
- package/icons/ChevronDown.vue.js +20 -0
- package/icons/ChevronLeft.vue.js +25 -0
- package/icons/ChevronRight.vue.js +25 -0
- package/icons/ChevronUp.vue.js +25 -0
- package/icons/Circle.vue.js +29 -0
- package/icons/Clock.vue.js +30 -0
- package/icons/Close.vue.js +20 -0
- package/icons/Cloud.vue.js +25 -0
- package/icons/CloudDownload.vue.js +27 -0
- package/icons/CloudUpload.vue.js +27 -0
- package/icons/Code.vue.js +26 -0
- package/icons/Command.vue.js +26 -0
- package/icons/Copy.vue.js +33 -0
- package/icons/CreditCard.vue.js +32 -0
- package/icons/Database.vue.js +32 -0
- package/icons/Download.vue.js +27 -0
- package/icons/Edit.vue.js +26 -0
- package/icons/ExternalLink.vue.js +27 -0
- package/icons/Eye.vue.js +30 -0
- package/icons/EyeOff.vue.js +26 -0
- package/icons/FastForward.vue.js +26 -0
- package/icons/File.vue.js +26 -0
- package/icons/FileAudio.vue.js +17 -0
- package/icons/FileImage.vue.js +27 -0
- package/icons/FilePdf.vue.js +17 -0
- package/icons/FileText.vue.js +17 -0
- package/icons/FileVideo.vue.js +27 -0
- package/icons/FileZip.vue.js +17 -0
- package/icons/Filter.vue.js +25 -0
- package/icons/Folder.vue.js +25 -0
- package/icons/FolderOpen.vue.js +25 -0
- package/icons/FolderPlus.vue.js +27 -0
- package/icons/Grid.vue.js +33 -0
- package/icons/Hamburger.vue.js +24 -0
- package/icons/Hash.vue.js +17 -0
- package/icons/Heart.vue.js +25 -0
- package/icons/HelpCircle.vue.js +31 -0
- package/icons/Highlight.vue.js +20 -0
- package/icons/Home.vue.js +26 -0
- package/icons/Image.vue.js +38 -0
- package/icons/Inbox.vue.js +26 -0
- package/icons/Info.vue.js +31 -0
- package/icons/Italic.vue.js +24 -0
- package/icons/Key.vue.js +31 -0
- package/icons/Layout.vue.js +33 -0
- package/icons/Link.vue.js +26 -0
- package/icons/Link2.vue.js +27 -0
- package/icons/List.vue.js +17 -0
- package/icons/Loading.vue.js +33 -0
- package/icons/Lock.vue.js +33 -0
- package/icons/LogIn.vue.js +27 -0
- package/icons/LogOut.vue.js +27 -0
- package/icons/Mail.vue.js +32 -0
- package/icons/Maximize.vue.js +25 -0
- package/icons/Menu.vue.js +42 -0
- package/icons/MessageCircle.vue.js +25 -0
- package/icons/MessageSquare.vue.js +25 -0
- package/icons/Mic.vue.js +17 -0
- package/icons/MicOff.vue.js +17 -0
- package/icons/Minimize.vue.js +25 -0
- package/icons/Minus.vue.js +25 -0
- package/icons/Moon.vue.js +24 -0
- package/icons/MoreHorizontal.vue.js +39 -0
- package/icons/MoreVertical.vue.js +39 -0
- package/icons/Move.vue.js +17 -0
- package/icons/Package.vue.js +17 -0
- package/icons/Paperclip.vue.js +25 -0
- package/icons/Pause.vue.js +36 -0
- package/icons/Phone.vue.js +25 -0
- package/icons/Play.vue.js +25 -0
- package/icons/Plus.vue.js +26 -0
- package/icons/Printer.vue.js +27 -0
- package/icons/RadioButton.vue.js +34 -0
- package/icons/RefreshCw.vue.js +17 -0
- package/icons/Repeat.vue.js +17 -0
- package/icons/Rewind.vue.js +26 -0
- package/icons/RotateCcw.vue.js +26 -0
- package/icons/RotateCw.vue.js +26 -0
- package/icons/Save.vue.js +26 -0
- package/icons/Scissors.vue.js +17 -0
- package/icons/Search.vue.js +30 -0
- package/icons/Send.vue.js +26 -0
- package/icons/Server.vue.js +17 -0
- package/icons/Settings.vue.js +30 -0
- package/icons/Share.vue.js +27 -0
- package/icons/Shield.vue.js +25 -0
- package/icons/Shuffle.vue.js +17 -0
- package/icons/Sidebar.vue.js +32 -0
- package/icons/SkipBack.vue.js +31 -0
- package/icons/SkipForward.vue.js +31 -0
- package/icons/Slider.vue.js +17 -0
- package/icons/Sliders.vue.js +17 -0
- package/icons/SortAsc.vue.js +17 -0
- package/icons/SortDesc.vue.js +17 -0
- package/icons/Square.vue.js +31 -0
- package/icons/Star.vue.js +25 -0
- package/icons/Stop.vue.js +31 -0
- package/icons/Sun.vue.js +20 -0
- package/icons/Tag.vue.js +31 -0
- package/icons/Tags.vue.js +27 -0
- package/icons/Terminal.vue.js +31 -0
- package/icons/ThumbsDown.vue.js +26 -0
- package/icons/ThumbsUp.vue.js +26 -0
- package/icons/ToggleLeft.vue.js +36 -0
- package/icons/ToggleRight.vue.js +36 -0
- package/icons/Trash.vue.js +27 -0
- package/icons/Trash2.vue.js +17 -0
- package/icons/Unlink.vue.js +17 -0
- package/icons/Unlock.vue.js +33 -0
- package/icons/Upload.vue.js +27 -0
- package/icons/User.vue.js +30 -0
- package/icons/Users.vue.js +31 -0
- package/icons/Video.vue.js +32 -0
- package/icons/VideoOff.vue.js +27 -0
- package/icons/Volume.vue.js +26 -0
- package/icons/Volume1.vue.js +26 -0
- package/icons/Volume2.vue.js +26 -0
- package/icons/VolumeMute.vue.js +25 -0
- package/icons/VolumeX.vue.js +27 -0
- package/icons/X.vue.js +26 -0
- package/icons/XCircle.vue.js +31 -0
- package/icons/Zap.vue.js +25 -0
- package/icons/ZoomIn.vue.js +17 -0
- package/icons/ZoomOut.vue.js +31 -0
- package/icons.js +280 -4
- package/package.json +6 -1
- package/ui.js +45 -7352
- package/utils/config.js +16 -0
- package/utils/margin.js +77 -0
- package/utils/padding.js +77 -0
- package/utils/typography.js +66 -0
- package/utils/useRandomId.js +10 -0
- package/veloce.css +1 -1
- package/components/icon/index.d.ts +0 -6
- package/index-Cqxg4hfC.js +0 -2928
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { TextColor, FontWeight, Margin, Padding, FontSize, LineHeight, LetterSpacing } from '../../exports/types';
|
|
2
|
+
import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
4
|
+
text: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
fontSize: {
|
|
9
|
+
type: () => FontSize;
|
|
10
|
+
default: FontSize;
|
|
11
|
+
};
|
|
12
|
+
color: {
|
|
13
|
+
type: () => TextColor;
|
|
14
|
+
default: TextColor;
|
|
15
|
+
};
|
|
16
|
+
fontWeight: {
|
|
17
|
+
type: () => FontWeight;
|
|
18
|
+
default: FontWeight;
|
|
19
|
+
};
|
|
20
|
+
lineHeight: {
|
|
21
|
+
type: () => LineHeight;
|
|
22
|
+
default: LineHeight;
|
|
23
|
+
};
|
|
24
|
+
letterSpacing: {
|
|
25
|
+
type: () => LetterSpacing;
|
|
26
|
+
default: LetterSpacing;
|
|
27
|
+
};
|
|
28
|
+
block: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
margin: {
|
|
33
|
+
type: () => Margin;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
marginLeft: {
|
|
37
|
+
type: () => Margin;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
40
|
+
marginRight: {
|
|
41
|
+
type: () => Margin;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
marginTop: {
|
|
45
|
+
type: () => Margin;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
marginBottom: {
|
|
49
|
+
type: () => Margin;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
padding: {
|
|
53
|
+
type: () => Padding;
|
|
54
|
+
default: string;
|
|
55
|
+
};
|
|
56
|
+
paddingLeft: {
|
|
57
|
+
type: () => Padding;
|
|
58
|
+
default: string;
|
|
59
|
+
};
|
|
60
|
+
paddingRight: {
|
|
61
|
+
type: () => Padding;
|
|
62
|
+
default: string;
|
|
63
|
+
};
|
|
64
|
+
paddingTop: {
|
|
65
|
+
type: () => Padding;
|
|
66
|
+
default: string;
|
|
67
|
+
};
|
|
68
|
+
paddingBottom: {
|
|
69
|
+
type: () => Padding;
|
|
70
|
+
default: string;
|
|
71
|
+
};
|
|
72
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
73
|
+
text: {
|
|
74
|
+
type: StringConstructor;
|
|
75
|
+
default: string;
|
|
76
|
+
};
|
|
77
|
+
fontSize: {
|
|
78
|
+
type: () => FontSize;
|
|
79
|
+
default: FontSize;
|
|
80
|
+
};
|
|
81
|
+
color: {
|
|
82
|
+
type: () => TextColor;
|
|
83
|
+
default: TextColor;
|
|
84
|
+
};
|
|
85
|
+
fontWeight: {
|
|
86
|
+
type: () => FontWeight;
|
|
87
|
+
default: FontWeight;
|
|
88
|
+
};
|
|
89
|
+
lineHeight: {
|
|
90
|
+
type: () => LineHeight;
|
|
91
|
+
default: LineHeight;
|
|
92
|
+
};
|
|
93
|
+
letterSpacing: {
|
|
94
|
+
type: () => LetterSpacing;
|
|
95
|
+
default: LetterSpacing;
|
|
96
|
+
};
|
|
97
|
+
block: {
|
|
98
|
+
type: BooleanConstructor;
|
|
99
|
+
default: boolean;
|
|
100
|
+
};
|
|
101
|
+
margin: {
|
|
102
|
+
type: () => Margin;
|
|
103
|
+
default: string;
|
|
104
|
+
};
|
|
105
|
+
marginLeft: {
|
|
106
|
+
type: () => Margin;
|
|
107
|
+
default: string;
|
|
108
|
+
};
|
|
109
|
+
marginRight: {
|
|
110
|
+
type: () => Margin;
|
|
111
|
+
default: string;
|
|
112
|
+
};
|
|
113
|
+
marginTop: {
|
|
114
|
+
type: () => Margin;
|
|
115
|
+
default: string;
|
|
116
|
+
};
|
|
117
|
+
marginBottom: {
|
|
118
|
+
type: () => Margin;
|
|
119
|
+
default: string;
|
|
120
|
+
};
|
|
121
|
+
padding: {
|
|
122
|
+
type: () => Padding;
|
|
123
|
+
default: string;
|
|
124
|
+
};
|
|
125
|
+
paddingLeft: {
|
|
126
|
+
type: () => Padding;
|
|
127
|
+
default: string;
|
|
128
|
+
};
|
|
129
|
+
paddingRight: {
|
|
130
|
+
type: () => Padding;
|
|
131
|
+
default: string;
|
|
132
|
+
};
|
|
133
|
+
paddingTop: {
|
|
134
|
+
type: () => Padding;
|
|
135
|
+
default: string;
|
|
136
|
+
};
|
|
137
|
+
paddingBottom: {
|
|
138
|
+
type: () => Padding;
|
|
139
|
+
default: string;
|
|
140
|
+
};
|
|
141
|
+
}>> & Readonly<{}>, {
|
|
142
|
+
text: string;
|
|
143
|
+
fontSize: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
|
|
144
|
+
color: TextColor;
|
|
145
|
+
fontWeight: FontWeight;
|
|
146
|
+
lineHeight: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
|
|
147
|
+
letterSpacing: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
|
|
148
|
+
margin: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
|
|
149
|
+
marginLeft: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
|
|
150
|
+
marginRight: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
|
|
151
|
+
marginTop: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
|
|
152
|
+
marginBottom: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
|
|
153
|
+
padding: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
|
|
154
|
+
paddingLeft: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
|
|
155
|
+
paddingRight: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
|
|
156
|
+
paddingTop: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
|
|
157
|
+
paddingBottom: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
|
|
158
|
+
block: boolean;
|
|
159
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLElement>;
|
|
160
|
+
export default _default;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { defineComponent as T, computed as v, ref as C, createElementBlock as x, openBlock as L, normalizeClass as R, createElementVNode as z, createVNode as _, toDisplayString as w, unref as i } from "vue";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import H from "../../icons/Check.vue.js";
|
|
4
|
+
import W from "../../icons/Copy.vue.js";
|
|
5
|
+
import "motion-v";
|
|
6
|
+
import E from "../Button.vue.js";
|
|
7
|
+
import { getTypography as N } from "../../utils/typography.js";
|
|
8
|
+
import { getMargin as P } from "../../utils/margin.js";
|
|
9
|
+
import { getPadding as V } from "../../utils/padding.js";
|
|
10
|
+
import "@vueuse/core";
|
|
11
|
+
/* empty css */
|
|
12
|
+
const U = /* @__PURE__ */ T({
|
|
13
|
+
__name: "Code",
|
|
14
|
+
props: {
|
|
15
|
+
text: { type: String, default: "" },
|
|
16
|
+
fontSize: { type: String, default: "" },
|
|
17
|
+
color: { type: String, default: "" },
|
|
18
|
+
fontWeight: { type: String, default: "" },
|
|
19
|
+
lineHeight: { type: String, default: "" },
|
|
20
|
+
letterSpacing: { type: String, default: "" },
|
|
21
|
+
block: { type: Boolean, default: !0 },
|
|
22
|
+
// margin
|
|
23
|
+
margin: { type: String, default: "" },
|
|
24
|
+
marginLeft: { type: String, default: "" },
|
|
25
|
+
marginRight: { type: String, default: "" },
|
|
26
|
+
marginTop: { type: String, default: "" },
|
|
27
|
+
marginBottom: { type: String, default: "md" },
|
|
28
|
+
// padding
|
|
29
|
+
padding: { type: String, default: "" },
|
|
30
|
+
paddingLeft: { type: String, default: "" },
|
|
31
|
+
paddingRight: { type: String, default: "" },
|
|
32
|
+
paddingTop: { type: String, default: "" },
|
|
33
|
+
paddingBottom: { type: String, default: "" }
|
|
34
|
+
},
|
|
35
|
+
setup(n) {
|
|
36
|
+
const { fontSizes: r, fontWeights: o, textColors: g, letterSpacings: p, lineHeights: d } = N(), { margin: l, marginLeft: m, marginRight: f, marginTop: u, marginBottom: s } = P(), { padding: c, paddingLeft: y, paddingRight: S, paddingTop: h, paddingBottom: b } = V(), t = n, k = v(() => [
|
|
37
|
+
r[t.fontSize],
|
|
38
|
+
g[t.color],
|
|
39
|
+
o[t.fontWeight],
|
|
40
|
+
d[t.lineHeight],
|
|
41
|
+
p[t.letterSpacing],
|
|
42
|
+
// margin
|
|
43
|
+
l[t.margin],
|
|
44
|
+
m[t.marginLeft],
|
|
45
|
+
f[t.marginRight],
|
|
46
|
+
u[t.marginTop],
|
|
47
|
+
s[t.marginBottom],
|
|
48
|
+
// padding
|
|
49
|
+
c[t.padding],
|
|
50
|
+
y[t.paddingLeft],
|
|
51
|
+
S[t.paddingRight],
|
|
52
|
+
h[t.paddingTop],
|
|
53
|
+
b[t.paddingBottom]
|
|
54
|
+
]), e = C(!1), B = async () => {
|
|
55
|
+
navigator.clipboard.writeText(t.text), e.value = !0, await new Promise((a) => setTimeout(a, 3e3)), e.value = !1;
|
|
56
|
+
};
|
|
57
|
+
return (a, D) => (L(), x("code", {
|
|
58
|
+
class: R([[k.value, n.block ? "block p-2.5" : "px-1.5 py-0.5"], "relative rounded border border-neutral-200 bg-neutral-100 dark:border-neutral-700 dark:bg-neutral-800"])
|
|
59
|
+
}, [
|
|
60
|
+
z("span", null, w(t.text), 1),
|
|
61
|
+
_(i(E), {
|
|
62
|
+
disabled: e.value,
|
|
63
|
+
icon: e.value ? i(H) : i(W),
|
|
64
|
+
class: "dark:hover:bg-neutral-700! p-1! absolute right-2 top-1/2 -translate-y-1/2",
|
|
65
|
+
size: "sm",
|
|
66
|
+
variant: "ghost",
|
|
67
|
+
onClick: B
|
|
68
|
+
}, null, 8, ["disabled", "icon"])
|
|
69
|
+
], 2));
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
export {
|
|
73
|
+
U as default
|
|
74
|
+
};
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { TextColor, FontWeight, Margin, Padding, FontSize, LineHeight, LetterSpacing } from '../../exports/types';
|
|
2
|
+
import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
4
|
+
text: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
fontSize: {
|
|
9
|
+
type: () => FontSize;
|
|
10
|
+
default: FontSize;
|
|
11
|
+
};
|
|
12
|
+
color: {
|
|
13
|
+
type: () => TextColor;
|
|
14
|
+
default: TextColor;
|
|
15
|
+
};
|
|
16
|
+
fontWeight: {
|
|
17
|
+
type: () => FontWeight;
|
|
18
|
+
default: FontWeight;
|
|
19
|
+
};
|
|
20
|
+
lineHeight: {
|
|
21
|
+
type: () => LineHeight;
|
|
22
|
+
default: LineHeight;
|
|
23
|
+
};
|
|
24
|
+
letterSpacing: {
|
|
25
|
+
type: () => LetterSpacing;
|
|
26
|
+
default: LetterSpacing;
|
|
27
|
+
};
|
|
28
|
+
margin: {
|
|
29
|
+
type: () => Margin;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
marginLeft: {
|
|
33
|
+
type: () => Margin;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
marginRight: {
|
|
37
|
+
type: () => Margin;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
40
|
+
marginTop: {
|
|
41
|
+
type: () => Margin;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
marginBottom: {
|
|
45
|
+
type: () => Margin;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
padding: {
|
|
49
|
+
type: () => Padding;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
paddingLeft: {
|
|
53
|
+
type: () => Padding;
|
|
54
|
+
default: string;
|
|
55
|
+
};
|
|
56
|
+
paddingRight: {
|
|
57
|
+
type: () => Padding;
|
|
58
|
+
default: string;
|
|
59
|
+
};
|
|
60
|
+
paddingTop: {
|
|
61
|
+
type: () => Padding;
|
|
62
|
+
default: string;
|
|
63
|
+
};
|
|
64
|
+
paddingBottom: {
|
|
65
|
+
type: () => Padding;
|
|
66
|
+
default: string;
|
|
67
|
+
};
|
|
68
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
69
|
+
text: {
|
|
70
|
+
type: StringConstructor;
|
|
71
|
+
default: string;
|
|
72
|
+
};
|
|
73
|
+
fontSize: {
|
|
74
|
+
type: () => FontSize;
|
|
75
|
+
default: FontSize;
|
|
76
|
+
};
|
|
77
|
+
color: {
|
|
78
|
+
type: () => TextColor;
|
|
79
|
+
default: TextColor;
|
|
80
|
+
};
|
|
81
|
+
fontWeight: {
|
|
82
|
+
type: () => FontWeight;
|
|
83
|
+
default: FontWeight;
|
|
84
|
+
};
|
|
85
|
+
lineHeight: {
|
|
86
|
+
type: () => LineHeight;
|
|
87
|
+
default: LineHeight;
|
|
88
|
+
};
|
|
89
|
+
letterSpacing: {
|
|
90
|
+
type: () => LetterSpacing;
|
|
91
|
+
default: LetterSpacing;
|
|
92
|
+
};
|
|
93
|
+
margin: {
|
|
94
|
+
type: () => Margin;
|
|
95
|
+
default: string;
|
|
96
|
+
};
|
|
97
|
+
marginLeft: {
|
|
98
|
+
type: () => Margin;
|
|
99
|
+
default: string;
|
|
100
|
+
};
|
|
101
|
+
marginRight: {
|
|
102
|
+
type: () => Margin;
|
|
103
|
+
default: string;
|
|
104
|
+
};
|
|
105
|
+
marginTop: {
|
|
106
|
+
type: () => Margin;
|
|
107
|
+
default: string;
|
|
108
|
+
};
|
|
109
|
+
marginBottom: {
|
|
110
|
+
type: () => Margin;
|
|
111
|
+
default: string;
|
|
112
|
+
};
|
|
113
|
+
padding: {
|
|
114
|
+
type: () => Padding;
|
|
115
|
+
default: string;
|
|
116
|
+
};
|
|
117
|
+
paddingLeft: {
|
|
118
|
+
type: () => Padding;
|
|
119
|
+
default: string;
|
|
120
|
+
};
|
|
121
|
+
paddingRight: {
|
|
122
|
+
type: () => Padding;
|
|
123
|
+
default: string;
|
|
124
|
+
};
|
|
125
|
+
paddingTop: {
|
|
126
|
+
type: () => Padding;
|
|
127
|
+
default: string;
|
|
128
|
+
};
|
|
129
|
+
paddingBottom: {
|
|
130
|
+
type: () => Padding;
|
|
131
|
+
default: string;
|
|
132
|
+
};
|
|
133
|
+
}>> & Readonly<{}>, {
|
|
134
|
+
text: string;
|
|
135
|
+
fontSize: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
|
|
136
|
+
color: TextColor;
|
|
137
|
+
fontWeight: FontWeight;
|
|
138
|
+
lineHeight: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
|
|
139
|
+
letterSpacing: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
|
|
140
|
+
margin: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
|
|
141
|
+
marginLeft: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
|
|
142
|
+
marginRight: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
|
|
143
|
+
marginTop: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
|
|
144
|
+
marginBottom: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
|
|
145
|
+
padding: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
|
|
146
|
+
paddingLeft: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
|
|
147
|
+
paddingRight: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
|
|
148
|
+
paddingTop: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
|
|
149
|
+
paddingBottom: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
|
|
150
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLHeadingElement>;
|
|
151
|
+
export default _default;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { defineComponent as h, computed as T, createElementBlock as B, openBlock as L, normalizeClass as _ } from "vue";
|
|
2
|
+
import { getTypography as x } from "../../utils/typography.js";
|
|
3
|
+
import { getMargin as H } from "../../utils/margin.js";
|
|
4
|
+
import { getPadding as R } from "../../utils/padding.js";
|
|
5
|
+
const z = ["innerHTML"], P = /* @__PURE__ */ h({
|
|
6
|
+
__name: "H1",
|
|
7
|
+
props: {
|
|
8
|
+
text: { type: String, default: "" },
|
|
9
|
+
fontSize: { type: String, default: "4xl" },
|
|
10
|
+
color: { type: String, default: "default" },
|
|
11
|
+
fontWeight: { type: String, default: "medium" },
|
|
12
|
+
lineHeight: { type: String, default: "xs" },
|
|
13
|
+
letterSpacing: { type: String, default: "md" },
|
|
14
|
+
// margin
|
|
15
|
+
margin: { type: String, default: "" },
|
|
16
|
+
marginLeft: { type: String, default: "" },
|
|
17
|
+
marginRight: { type: String, default: "" },
|
|
18
|
+
marginTop: { type: String, default: "lg" },
|
|
19
|
+
marginBottom: { type: String, default: "md" },
|
|
20
|
+
// padding
|
|
21
|
+
padding: { type: String, default: "" },
|
|
22
|
+
paddingLeft: { type: String, default: "" },
|
|
23
|
+
paddingRight: { type: String, default: "" },
|
|
24
|
+
paddingTop: { type: String, default: "" },
|
|
25
|
+
paddingBottom: { type: String, default: "" }
|
|
26
|
+
},
|
|
27
|
+
setup(e) {
|
|
28
|
+
const { fontSizes: n, fontWeights: i, textColors: g, letterSpacings: a, lineHeights: r } = x(), { margin: o, marginLeft: d, marginRight: p, marginTop: l, marginBottom: m } = H(), { padding: f, paddingLeft: s, paddingRight: u, paddingTop: c, paddingBottom: S } = R(), t = e, y = T(() => [
|
|
29
|
+
n[t.fontSize],
|
|
30
|
+
g[t.color],
|
|
31
|
+
i[t.fontWeight],
|
|
32
|
+
r[t.lineHeight],
|
|
33
|
+
a[t.letterSpacing],
|
|
34
|
+
// margin
|
|
35
|
+
o[t.margin],
|
|
36
|
+
d[t.marginLeft],
|
|
37
|
+
p[t.marginRight],
|
|
38
|
+
l[t.marginTop],
|
|
39
|
+
m[t.marginBottom],
|
|
40
|
+
// padding
|
|
41
|
+
f[t.padding],
|
|
42
|
+
s[t.paddingLeft],
|
|
43
|
+
u[t.paddingRight],
|
|
44
|
+
c[t.paddingTop],
|
|
45
|
+
S[t.paddingBottom]
|
|
46
|
+
]);
|
|
47
|
+
return (C, M) => (L(), B("h1", {
|
|
48
|
+
class: _(y.value),
|
|
49
|
+
innerHTML: t.text
|
|
50
|
+
}, null, 10, z));
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
export {
|
|
54
|
+
P as default
|
|
55
|
+
};
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { TextColor, FontWeight, Margin, Padding, FontSize, LineHeight, LetterSpacing } from '../../exports/types';
|
|
2
|
+
import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
4
|
+
text: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
fontSize: {
|
|
9
|
+
type: () => FontSize;
|
|
10
|
+
default: FontSize;
|
|
11
|
+
};
|
|
12
|
+
color: {
|
|
13
|
+
type: () => TextColor;
|
|
14
|
+
default: TextColor;
|
|
15
|
+
};
|
|
16
|
+
fontWeight: {
|
|
17
|
+
type: () => FontWeight;
|
|
18
|
+
default: FontWeight;
|
|
19
|
+
};
|
|
20
|
+
lineHeight: {
|
|
21
|
+
type: () => LineHeight;
|
|
22
|
+
default: LineHeight;
|
|
23
|
+
};
|
|
24
|
+
letterSpacing: {
|
|
25
|
+
type: () => LetterSpacing;
|
|
26
|
+
default: LetterSpacing;
|
|
27
|
+
};
|
|
28
|
+
margin: {
|
|
29
|
+
type: () => Margin;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
marginLeft: {
|
|
33
|
+
type: () => Margin;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
marginRight: {
|
|
37
|
+
type: () => Margin;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
40
|
+
marginTop: {
|
|
41
|
+
type: () => Margin;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
marginBottom: {
|
|
45
|
+
type: () => Margin;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
padding: {
|
|
49
|
+
type: () => Padding;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
paddingLeft: {
|
|
53
|
+
type: () => Padding;
|
|
54
|
+
default: string;
|
|
55
|
+
};
|
|
56
|
+
paddingRight: {
|
|
57
|
+
type: () => Padding;
|
|
58
|
+
default: string;
|
|
59
|
+
};
|
|
60
|
+
paddingTop: {
|
|
61
|
+
type: () => Padding;
|
|
62
|
+
default: string;
|
|
63
|
+
};
|
|
64
|
+
paddingBottom: {
|
|
65
|
+
type: () => Padding;
|
|
66
|
+
default: string;
|
|
67
|
+
};
|
|
68
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
69
|
+
text: {
|
|
70
|
+
type: StringConstructor;
|
|
71
|
+
default: string;
|
|
72
|
+
};
|
|
73
|
+
fontSize: {
|
|
74
|
+
type: () => FontSize;
|
|
75
|
+
default: FontSize;
|
|
76
|
+
};
|
|
77
|
+
color: {
|
|
78
|
+
type: () => TextColor;
|
|
79
|
+
default: TextColor;
|
|
80
|
+
};
|
|
81
|
+
fontWeight: {
|
|
82
|
+
type: () => FontWeight;
|
|
83
|
+
default: FontWeight;
|
|
84
|
+
};
|
|
85
|
+
lineHeight: {
|
|
86
|
+
type: () => LineHeight;
|
|
87
|
+
default: LineHeight;
|
|
88
|
+
};
|
|
89
|
+
letterSpacing: {
|
|
90
|
+
type: () => LetterSpacing;
|
|
91
|
+
default: LetterSpacing;
|
|
92
|
+
};
|
|
93
|
+
margin: {
|
|
94
|
+
type: () => Margin;
|
|
95
|
+
default: string;
|
|
96
|
+
};
|
|
97
|
+
marginLeft: {
|
|
98
|
+
type: () => Margin;
|
|
99
|
+
default: string;
|
|
100
|
+
};
|
|
101
|
+
marginRight: {
|
|
102
|
+
type: () => Margin;
|
|
103
|
+
default: string;
|
|
104
|
+
};
|
|
105
|
+
marginTop: {
|
|
106
|
+
type: () => Margin;
|
|
107
|
+
default: string;
|
|
108
|
+
};
|
|
109
|
+
marginBottom: {
|
|
110
|
+
type: () => Margin;
|
|
111
|
+
default: string;
|
|
112
|
+
};
|
|
113
|
+
padding: {
|
|
114
|
+
type: () => Padding;
|
|
115
|
+
default: string;
|
|
116
|
+
};
|
|
117
|
+
paddingLeft: {
|
|
118
|
+
type: () => Padding;
|
|
119
|
+
default: string;
|
|
120
|
+
};
|
|
121
|
+
paddingRight: {
|
|
122
|
+
type: () => Padding;
|
|
123
|
+
default: string;
|
|
124
|
+
};
|
|
125
|
+
paddingTop: {
|
|
126
|
+
type: () => Padding;
|
|
127
|
+
default: string;
|
|
128
|
+
};
|
|
129
|
+
paddingBottom: {
|
|
130
|
+
type: () => Padding;
|
|
131
|
+
default: string;
|
|
132
|
+
};
|
|
133
|
+
}>> & Readonly<{}>, {
|
|
134
|
+
text: string;
|
|
135
|
+
fontSize: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
|
|
136
|
+
color: TextColor;
|
|
137
|
+
fontWeight: FontWeight;
|
|
138
|
+
lineHeight: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
|
|
139
|
+
letterSpacing: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
|
|
140
|
+
margin: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
|
|
141
|
+
marginLeft: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
|
|
142
|
+
marginRight: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
|
|
143
|
+
marginTop: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
|
|
144
|
+
marginBottom: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
|
|
145
|
+
padding: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
|
|
146
|
+
paddingLeft: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
|
|
147
|
+
paddingRight: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
|
|
148
|
+
paddingTop: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
|
|
149
|
+
paddingBottom: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
|
|
150
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLHeadingElement>;
|
|
151
|
+
export default _default;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { defineComponent as h, computed as T, createElementBlock as B, openBlock as L, normalizeClass as _ } from "vue";
|
|
2
|
+
import { getTypography as x } from "../../utils/typography.js";
|
|
3
|
+
import { getMargin as H } from "../../utils/margin.js";
|
|
4
|
+
import { getPadding as R } from "../../utils/padding.js";
|
|
5
|
+
const z = ["innerHTML"], P = /* @__PURE__ */ h({
|
|
6
|
+
__name: "H2",
|
|
7
|
+
props: {
|
|
8
|
+
text: { type: String, default: "" },
|
|
9
|
+
fontSize: { type: String, default: "3xl" },
|
|
10
|
+
color: { type: String, default: "default" },
|
|
11
|
+
fontWeight: { type: String, default: "medium" },
|
|
12
|
+
lineHeight: { type: String, default: "xs" },
|
|
13
|
+
letterSpacing: { type: String, default: "md" },
|
|
14
|
+
// margin
|
|
15
|
+
margin: { type: String, default: "" },
|
|
16
|
+
marginLeft: { type: String, default: "" },
|
|
17
|
+
marginRight: { type: String, default: "" },
|
|
18
|
+
marginTop: { type: String, default: "lg" },
|
|
19
|
+
marginBottom: { type: String, default: "md" },
|
|
20
|
+
// padding
|
|
21
|
+
padding: { type: String, default: "" },
|
|
22
|
+
paddingLeft: { type: String, default: "" },
|
|
23
|
+
paddingRight: { type: String, default: "" },
|
|
24
|
+
paddingTop: { type: String, default: "" },
|
|
25
|
+
paddingBottom: { type: String, default: "" }
|
|
26
|
+
},
|
|
27
|
+
setup(e) {
|
|
28
|
+
const { fontSizes: n, fontWeights: i, textColors: g, letterSpacings: a, lineHeights: r } = x(), { margin: o, marginLeft: d, marginRight: p, marginTop: l, marginBottom: m } = H(), { padding: f, paddingLeft: s, paddingRight: u, paddingTop: c, paddingBottom: S } = R(), t = e, y = T(() => [
|
|
29
|
+
n[t.fontSize],
|
|
30
|
+
g[t.color],
|
|
31
|
+
i[t.fontWeight],
|
|
32
|
+
r[t.lineHeight],
|
|
33
|
+
a[t.letterSpacing],
|
|
34
|
+
// margin
|
|
35
|
+
o[t.margin],
|
|
36
|
+
d[t.marginLeft],
|
|
37
|
+
p[t.marginRight],
|
|
38
|
+
l[t.marginTop],
|
|
39
|
+
m[t.marginBottom],
|
|
40
|
+
// padding
|
|
41
|
+
f[t.padding],
|
|
42
|
+
s[t.paddingLeft],
|
|
43
|
+
u[t.paddingRight],
|
|
44
|
+
c[t.paddingTop],
|
|
45
|
+
S[t.paddingBottom]
|
|
46
|
+
]);
|
|
47
|
+
return (C, M) => (L(), B("h2", {
|
|
48
|
+
class: _(y.value),
|
|
49
|
+
innerHTML: t.text
|
|
50
|
+
}, null, 10, z));
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
export {
|
|
54
|
+
P as default
|
|
55
|
+
};
|