@varlet/ui 3.6.0-alpha.1728498016952 → 3.6.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/es/alert/Alert.mjs +136 -0
- package/es/alert/AlertSfc.css +0 -0
- package/es/alert/alert.css +1 -0
- package/es/alert/index.mjs +9 -0
- package/es/alert/props.mjs +23 -0
- package/es/alert/style/index.mjs +5 -0
- package/es/code/Code.mjs +3 -3
- package/es/code/props.mjs +7 -7
- package/es/index.bundle.mjs +7 -1
- package/es/index.mjs +6 -1
- package/es/style.css +1 -1
- package/es/style.mjs +1 -0
- package/es/themes/dark/alert.mjs +33 -0
- package/es/themes/dark/index.mjs +3 -2
- package/es/themes/md3-dark/alert.mjs +33 -0
- package/es/themes/md3-dark/index.mjs +3 -2
- package/es/themes/md3-light/alert.mjs +33 -0
- package/es/themes/md3-light/index.mjs +3 -2
- package/es/varlet.esm.js +4631 -4394
- package/highlight/web-types.en-US.json +115 -1
- package/highlight/web-types.zh-CN.json +115 -1
- package/lib/style.css +1 -1
- package/lib/varlet.cjs.js +1323 -1080
- package/package.json +7 -7
- package/types/alert.d.ts +35 -0
- package/types/code.d.ts +1 -0
- package/types/index.d.ts +2 -0
- package/types/styleVars.d.ts +28 -0
- package/umd/varlet.js +8 -8
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"framework": "vue",
|
|
4
|
-
"version": "3.6.0
|
|
4
|
+
"version": "3.6.0",
|
|
5
5
|
"name": "VARLET",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -159,6 +159,102 @@
|
|
|
159
159
|
}
|
|
160
160
|
]
|
|
161
161
|
},
|
|
162
|
+
{
|
|
163
|
+
"name": "var-alert",
|
|
164
|
+
"attributes": [
|
|
165
|
+
{
|
|
166
|
+
"name": "type",
|
|
167
|
+
"description": "Type, optional values are `info`, `success`, `warning`, `danger`",
|
|
168
|
+
"default": "info",
|
|
169
|
+
"value": {
|
|
170
|
+
"type": "string",
|
|
171
|
+
"kind": "expression"
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"name": "variant",
|
|
176
|
+
"description": "Variant, optional values are `standard` `outlined` `tonal`",
|
|
177
|
+
"default": "standard",
|
|
178
|
+
"value": {
|
|
179
|
+
"type": "string",
|
|
180
|
+
"kind": "expression"
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"name": "color",
|
|
185
|
+
"description": "Background color",
|
|
186
|
+
"default": "-",
|
|
187
|
+
"value": {
|
|
188
|
+
"type": "string",
|
|
189
|
+
"kind": "expression"
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"name": "title",
|
|
194
|
+
"description": "Title",
|
|
195
|
+
"default": "-",
|
|
196
|
+
"value": {
|
|
197
|
+
"type": "string",
|
|
198
|
+
"kind": "expression"
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"name": "message",
|
|
203
|
+
"description": "Message",
|
|
204
|
+
"default": "-",
|
|
205
|
+
"value": {
|
|
206
|
+
"type": "string",
|
|
207
|
+
"kind": "expression"
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"name": "elevation",
|
|
212
|
+
"description": "Elevation, optional values are true, false, and levels from 0-24",
|
|
213
|
+
"default": "false",
|
|
214
|
+
"value": {
|
|
215
|
+
"type": "string | number | boolean",
|
|
216
|
+
"kind": "expression"
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"name": "closeable",
|
|
221
|
+
"description": "Whether the alert is closeable",
|
|
222
|
+
"default": "false",
|
|
223
|
+
"value": {
|
|
224
|
+
"type": "boolean",
|
|
225
|
+
"kind": "expression"
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
],
|
|
229
|
+
"events": [
|
|
230
|
+
{
|
|
231
|
+
"name": "close",
|
|
232
|
+
"description": "Triggered when the Close button is clicked and can only be used when the Close button is displayed"
|
|
233
|
+
}
|
|
234
|
+
],
|
|
235
|
+
"slots": [
|
|
236
|
+
{
|
|
237
|
+
"name": "default",
|
|
238
|
+
"description": "The message of alert"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"name": "content",
|
|
242
|
+
"description": "The content of alert"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"name": "title",
|
|
246
|
+
"description": "The title of alert"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"name": "icon",
|
|
250
|
+
"description": "The prepend icon of alert"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"name": "close-icon",
|
|
254
|
+
"description": "The close icon of alert"
|
|
255
|
+
}
|
|
256
|
+
]
|
|
257
|
+
},
|
|
162
258
|
{
|
|
163
259
|
"name": "var-app-bar",
|
|
164
260
|
"attributes": [
|
|
@@ -1909,6 +2005,24 @@
|
|
|
1909
2005
|
"type": "string",
|
|
1910
2006
|
"kind": "expression"
|
|
1911
2007
|
}
|
|
2008
|
+
},
|
|
2009
|
+
{
|
|
2010
|
+
"name": "word-wrap",
|
|
2011
|
+
"description": "Whether to support automatic line wrapping when code overflows",
|
|
2012
|
+
"default": "false",
|
|
2013
|
+
"value": {
|
|
2014
|
+
"type": "boolean",
|
|
2015
|
+
"kind": "expression"
|
|
2016
|
+
}
|
|
2017
|
+
},
|
|
2018
|
+
{
|
|
2019
|
+
"name": "trim",
|
|
2020
|
+
"description": "Whether to remove the blank characters at the beginning and end of the code",
|
|
2021
|
+
"default": "true",
|
|
2022
|
+
"value": {
|
|
2023
|
+
"type": "boolean",
|
|
2024
|
+
"kind": "expression"
|
|
2025
|
+
}
|
|
1912
2026
|
}
|
|
1913
2027
|
],
|
|
1914
2028
|
"events": [],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"framework": "vue",
|
|
4
|
-
"version": "3.6.0
|
|
4
|
+
"version": "3.6.0",
|
|
5
5
|
"name": "VARLET",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -159,6 +159,102 @@
|
|
|
159
159
|
}
|
|
160
160
|
]
|
|
161
161
|
},
|
|
162
|
+
{
|
|
163
|
+
"name": "var-alert",
|
|
164
|
+
"attributes": [
|
|
165
|
+
{
|
|
166
|
+
"name": "type",
|
|
167
|
+
"description": "类型,可选值为 `info` `success` `warning` `danger`",
|
|
168
|
+
"default": "info",
|
|
169
|
+
"value": {
|
|
170
|
+
"type": "string",
|
|
171
|
+
"kind": "expression"
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"name": "variant",
|
|
176
|
+
"description": "变体,可选值为 `standard` `outlined` `tonal`",
|
|
177
|
+
"default": "standard",
|
|
178
|
+
"value": {
|
|
179
|
+
"type": "string",
|
|
180
|
+
"kind": "expression"
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"name": "color",
|
|
185
|
+
"description": "背景色",
|
|
186
|
+
"default": "-",
|
|
187
|
+
"value": {
|
|
188
|
+
"type": "string",
|
|
189
|
+
"kind": "expression"
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"name": "title",
|
|
194
|
+
"description": "标题",
|
|
195
|
+
"default": "-",
|
|
196
|
+
"value": {
|
|
197
|
+
"type": "string",
|
|
198
|
+
"kind": "expression"
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"name": "message",
|
|
203
|
+
"description": "信息",
|
|
204
|
+
"default": "-",
|
|
205
|
+
"value": {
|
|
206
|
+
"type": "string",
|
|
207
|
+
"kind": "expression"
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"name": "elevation",
|
|
212
|
+
"description": "海拔高度,可选值为 `true`、`false` 和 `0-24` 的等级",
|
|
213
|
+
"default": "false",
|
|
214
|
+
"value": {
|
|
215
|
+
"type": "string | number | boolean",
|
|
216
|
+
"kind": "expression"
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"name": "closeable",
|
|
221
|
+
"description": "是否为可关闭警告",
|
|
222
|
+
"default": "false",
|
|
223
|
+
"value": {
|
|
224
|
+
"type": "boolean",
|
|
225
|
+
"kind": "expression"
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
],
|
|
229
|
+
"events": [
|
|
230
|
+
{
|
|
231
|
+
"name": "close",
|
|
232
|
+
"description": "点击关闭按钮时触发,只有在显示关闭按钮的时候才能使用"
|
|
233
|
+
}
|
|
234
|
+
],
|
|
235
|
+
"slots": [
|
|
236
|
+
{
|
|
237
|
+
"name": "default",
|
|
238
|
+
"description": "警告信息"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"name": "content",
|
|
242
|
+
"description": "警告内容"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"name": "title",
|
|
246
|
+
"description": "警告标题"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"name": "icon",
|
|
250
|
+
"description": "警告的前置图标"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"name": "close-icon",
|
|
254
|
+
"description": "警告的关闭图标"
|
|
255
|
+
}
|
|
256
|
+
]
|
|
257
|
+
},
|
|
162
258
|
{
|
|
163
259
|
"name": "var-app-bar",
|
|
164
260
|
"attributes": [
|
|
@@ -2059,6 +2155,24 @@
|
|
|
2059
2155
|
"type": "string",
|
|
2060
2156
|
"kind": "expression"
|
|
2061
2157
|
}
|
|
2158
|
+
},
|
|
2159
|
+
{
|
|
2160
|
+
"name": "word-wrap",
|
|
2161
|
+
"description": "是否开启在代码溢出时自动换行",
|
|
2162
|
+
"default": "false",
|
|
2163
|
+
"value": {
|
|
2164
|
+
"type": "boolean",
|
|
2165
|
+
"kind": "expression"
|
|
2166
|
+
}
|
|
2167
|
+
},
|
|
2168
|
+
{
|
|
2169
|
+
"name": "trim",
|
|
2170
|
+
"description": "是否移除代码开头和结尾的空白字符",
|
|
2171
|
+
"default": "true",
|
|
2172
|
+
"value": {
|
|
2173
|
+
"type": "boolean",
|
|
2174
|
+
"kind": "expression"
|
|
2175
|
+
}
|
|
2062
2176
|
}
|
|
2063
2177
|
],
|
|
2064
2178
|
"events": [],
|