@varlet/ui 3.18.0-alpha.1781276267923 → 3.18.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/action-sheet/style/index.mjs +1 -1
- package/es/avatar/avatar.css +1 -1
- package/es/card/card.css +1 -1
- package/es/data-table/dataTable.css +1 -1
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/paper/Paper.mjs +4 -2
- package/es/paper/paper.css +1 -1
- package/es/paper/props.mjs +4 -0
- package/es/themes/dark/card.mjs +1 -0
- package/es/themes/dark/dataTable.mjs +9 -3
- package/es/themes/dark/paper.mjs +3 -0
- package/es/themes/md3-dark/card.mjs +1 -0
- package/es/themes/md3-dark/dataTable.mjs +9 -3
- package/es/themes/md3-dark/paper.mjs +3 -0
- package/es/themes/md3-light/card.mjs +1 -0
- package/es/themes/md3-light/dataTable.mjs +9 -3
- package/es/themes/md3-light/paper.mjs +3 -0
- package/es/varlet.css +1 -1
- package/es/varlet.esm.js +198 -164
- package/highlight/web-types.en-US.json +11 -2
- package/highlight/web-types.zh-CN.json +11 -2
- package/lib/varlet.cjs.js +46 -12
- package/lib/varlet.css +1 -1
- package/package.json +7 -7
- package/types/paper.d.ts +3 -0
- package/types/styleVars.d.ts +13 -3
- package/umd/varlet.js +6 -6
|
@@ -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.18.0
|
|
4
|
+
"version": "3.18.0",
|
|
5
5
|
"name": "VARLET",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -6317,9 +6317,18 @@
|
|
|
6317
6317
|
"kind": "expression"
|
|
6318
6318
|
}
|
|
6319
6319
|
},
|
|
6320
|
+
{
|
|
6321
|
+
"name": "variant",
|
|
6322
|
+
"description": "Paper variant, options `standard`, `outlined`, and `filled`. The `outlined` and `filled` modes do not mount elevation styles",
|
|
6323
|
+
"default": "standard",
|
|
6324
|
+
"value": {
|
|
6325
|
+
"type": "string",
|
|
6326
|
+
"kind": "expression"
|
|
6327
|
+
}
|
|
6328
|
+
},
|
|
6320
6329
|
{
|
|
6321
6330
|
"name": "surface",
|
|
6322
|
-
"description": "Background preset, optional value is `low`. It currently only takes effect in the MD3 dark theme",
|
|
6331
|
+
"description": "Background preset, optional value is `low`, invalid when `variant` is `filled`. It currently only takes effect in the MD3 dark theme",
|
|
6323
6332
|
"default": "-",
|
|
6324
6333
|
"value": {
|
|
6325
6334
|
"type": "string",
|
|
@@ -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.18.0
|
|
4
|
+
"version": "3.18.0",
|
|
5
5
|
"name": "VARLET",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -6084,9 +6084,18 @@
|
|
|
6084
6084
|
"kind": "expression"
|
|
6085
6085
|
}
|
|
6086
6086
|
},
|
|
6087
|
+
{
|
|
6088
|
+
"name": "variant",
|
|
6089
|
+
"description": "纸张变体,可选值为 `standard`、`outlined`、`filled`,`outlined` 和 `filled` 模式不挂载海拔样式",
|
|
6090
|
+
"default": "standard",
|
|
6091
|
+
"value": {
|
|
6092
|
+
"type": "string",
|
|
6093
|
+
"kind": "expression"
|
|
6094
|
+
}
|
|
6095
|
+
},
|
|
6087
6096
|
{
|
|
6088
6097
|
"name": "surface",
|
|
6089
|
-
"description": "背景色预设,可选值 `low
|
|
6098
|
+
"description": "背景色预设,可选值 `low`,在 `variant` 为 `filled` 时无效,目前只作用在 MD3 暗色主题",
|
|
6090
6099
|
"default": "-",
|
|
6091
6100
|
"value": {
|
|
6092
6101
|
"type": "string",
|
package/lib/varlet.cjs.js
CHANGED
|
@@ -20245,6 +20245,10 @@ var props$54 = {
|
|
|
20245
20245
|
height: [Number, String],
|
|
20246
20246
|
round: Boolean,
|
|
20247
20247
|
inline: Boolean,
|
|
20248
|
+
variant: {
|
|
20249
|
+
type: String,
|
|
20250
|
+
default: "standard"
|
|
20251
|
+
},
|
|
20248
20252
|
surface: String,
|
|
20249
20253
|
hoverable: {
|
|
20250
20254
|
type: [Boolean, Object],
|
|
@@ -20260,7 +20264,7 @@ function __render__$38(_ctx, _cache) {
|
|
|
20260
20264
|
const _directive_ripple = (0, vue.resolveDirective)("ripple");
|
|
20261
20265
|
const _directive_hover = (0, vue.resolveDirective)("hover");
|
|
20262
20266
|
return (0, vue.withDirectives)(((0, vue.openBlock)(), (0, vue.createElementBlock)("div", {
|
|
20263
|
-
class: (0, vue.normalizeClass)(_ctx.classes(_ctx.n(), _ctx.n("$--box"), _ctx.formatElevation(_ctx.elevation, 2), [_ctx.onClick || !_ctx.normalizedHoverable.disabled, _ctx.n("--cursor")], [_ctx.round, _ctx.n("--round")], [_ctx.surfaceLow, _ctx.n("--surface-low")], [_ctx.inline, _ctx.n("$--inline-flex")])),
|
|
20267
|
+
class: (0, vue.normalizeClass)(_ctx.classes(_ctx.n(), _ctx.n("$--box"), [_ctx.variant === "standard", _ctx.formatElevation(_ctx.elevation, 2)], [_ctx.onClick || !_ctx.normalizedHoverable.disabled, _ctx.n("--cursor")], [_ctx.round, _ctx.n("--round")], [_ctx.surfaceLow, _ctx.n("--surface-low")], [_ctx.variant === "outlined", _ctx.n("--outlined")], [_ctx.variant === "filled", _ctx.n("--filled")], [_ctx.inline, _ctx.n("$--inline-flex")])),
|
|
20264
20268
|
style: (0, vue.normalizeStyle)({
|
|
20265
20269
|
width: _ctx.toSizeUnit(_ctx.width),
|
|
20266
20270
|
height: _ctx.toSizeUnit(_ctx.height),
|
|
@@ -20288,7 +20292,7 @@ var __sfc__$38 = (0, vue.defineComponent)({
|
|
|
20288
20292
|
components: { VarHoverOverlay: stdin_default$41 },
|
|
20289
20293
|
props: props$54,
|
|
20290
20294
|
setup(props2) {
|
|
20291
|
-
const surfaceLow = (0, vue.computed)(() => props2.surface === "low");
|
|
20295
|
+
const surfaceLow = (0, vue.computed)(() => props2.surface === "low" && props2.variant !== "filled");
|
|
20292
20296
|
const { hovering, handleHovering } = useHoverOverlay();
|
|
20293
20297
|
const normalizedRipple = (0, vue.computed)(() => normalizeRipple(props2.ripple));
|
|
20294
20298
|
const normalizedHoverable = (0, vue.computed)(() => normalizeHoverable(props2.hoverable));
|
|
@@ -25666,6 +25670,7 @@ var stdin_default$322 = {
|
|
|
25666
25670
|
"--card-description-color": "#aaaaaa",
|
|
25667
25671
|
"--card-padding": "0 0 15px 0",
|
|
25668
25672
|
"--card-background": "var(--color-surface-container-highest)",
|
|
25673
|
+
"--card-outlined-background": "transparent",
|
|
25669
25674
|
"--card-filled-background": "var(--color-surface-container-highest)",
|
|
25670
25675
|
"--card-outline-color": "var(--color-outline)",
|
|
25671
25676
|
"--card-border-radius": "4px",
|
|
@@ -25830,9 +25835,15 @@ var stdin_default$314 = {
|
|
|
25830
25835
|
"--data-table-resize-trigger-color": "hsla(var(--hsl-on-surface-variant), 0.36)",
|
|
25831
25836
|
"--data-table-fixed-shadow-color": "rgba(0, 0, 0, 0.04)",
|
|
25832
25837
|
"--data-table-border-radius": "2px",
|
|
25833
|
-
"--data-table-cell-padding": "8px 16px",
|
|
25834
|
-
"--data-table-
|
|
25835
|
-
"--data-table-
|
|
25838
|
+
"--data-table-cell-normal-padding": "8px 16px",
|
|
25839
|
+
"--data-table-cell-small-padding": "4px 16px",
|
|
25840
|
+
"--data-table-cell-large-padding": "11px 16px",
|
|
25841
|
+
"--data-table-selection-cell-normal-padding": "8px 8px",
|
|
25842
|
+
"--data-table-selection-cell-small-padding": "4px 8px",
|
|
25843
|
+
"--data-table-selection-cell-large-padding": "11px 8px",
|
|
25844
|
+
"--data-table-expand-cell-normal-padding": "8px 8px",
|
|
25845
|
+
"--data-table-expand-cell-small-padding": "4px 8px",
|
|
25846
|
+
"--data-table-expand-cell-large-padding": "11px 8px",
|
|
25836
25847
|
"--data-table-cell-font-size": "14px",
|
|
25837
25848
|
"--data-table-header-font-size": "14px",
|
|
25838
25849
|
"--data-table-header-font-weight": "500",
|
|
@@ -26182,6 +26193,9 @@ var stdin_default$291 = {
|
|
|
26182
26193
|
//#region es/themes/dark/paper.mjs
|
|
26183
26194
|
var stdin_default$290 = {
|
|
26184
26195
|
"--paper-background": "var(--color-surface-container-highest)",
|
|
26196
|
+
"--paper-outlined-background": "transparent",
|
|
26197
|
+
"--paper-filled-background": "var(--color-surface-container-highest)",
|
|
26198
|
+
"--paper-outline-color": "var(--color-outline)",
|
|
26185
26199
|
"--paper-border-radius": "4px"
|
|
26186
26200
|
};
|
|
26187
26201
|
//#endregion
|
|
@@ -27007,6 +27021,7 @@ var stdin_default$248 = {
|
|
|
27007
27021
|
"--card-border-radius": "12px",
|
|
27008
27022
|
"--card-background": "var(--color-surface-container-highest)",
|
|
27009
27023
|
"--card-surface-low-background": "#1c1b1d",
|
|
27024
|
+
"--card-outlined-background": "transparent",
|
|
27010
27025
|
"--card-filled-background": "var(--color-surface-container-highest)",
|
|
27011
27026
|
"--card-image-height": "188px",
|
|
27012
27027
|
"--card-title-color": "var(--color-inverse-surface)",
|
|
@@ -27174,9 +27189,15 @@ var stdin_default$240 = {
|
|
|
27174
27189
|
"--data-table-resize-trigger-color": "hsla(var(--hsl-on-surface-variant), 0.36)",
|
|
27175
27190
|
"--data-table-fixed-shadow-color": "rgba(0, 0, 0, 0.04)",
|
|
27176
27191
|
"--data-table-border-radius": "2px",
|
|
27177
|
-
"--data-table-cell-padding": "8px 16px",
|
|
27178
|
-
"--data-table-
|
|
27179
|
-
"--data-table-
|
|
27192
|
+
"--data-table-cell-normal-padding": "8px 16px",
|
|
27193
|
+
"--data-table-cell-small-padding": "4px 16px",
|
|
27194
|
+
"--data-table-cell-large-padding": "11px 16px",
|
|
27195
|
+
"--data-table-selection-cell-normal-padding": "8px 8px",
|
|
27196
|
+
"--data-table-selection-cell-small-padding": "4px 8px",
|
|
27197
|
+
"--data-table-selection-cell-large-padding": "11px 8px",
|
|
27198
|
+
"--data-table-expand-cell-normal-padding": "8px 8px",
|
|
27199
|
+
"--data-table-expand-cell-small-padding": "4px 8px",
|
|
27200
|
+
"--data-table-expand-cell-large-padding": "11px 8px",
|
|
27180
27201
|
"--data-table-cell-font-size": "14px",
|
|
27181
27202
|
"--data-table-header-font-size": "14px",
|
|
27182
27203
|
"--data-table-header-font-weight": "500",
|
|
@@ -27526,6 +27547,9 @@ var stdin_default$217 = {
|
|
|
27526
27547
|
var stdin_default$216 = {
|
|
27527
27548
|
"--paper-background": "var(--color-surface-container-highest)",
|
|
27528
27549
|
"--paper-surface-low-background": "#1c1b1d",
|
|
27550
|
+
"--paper-outlined-background": "transparent",
|
|
27551
|
+
"--paper-filled-background": "var(--color-surface-container-highest)",
|
|
27552
|
+
"--paper-outline-color": "var(--color-outline)",
|
|
27529
27553
|
"--paper-border-radius": "12px"
|
|
27530
27554
|
};
|
|
27531
27555
|
//#endregion
|
|
@@ -28336,6 +28360,7 @@ var stdin_default$174 = {
|
|
|
28336
28360
|
"--card-border-radius": "12px",
|
|
28337
28361
|
"--card-background": "var(--color-surface-container-low)",
|
|
28338
28362
|
"--card-surface-low-background": "var(--color-surface-container-low)",
|
|
28363
|
+
"--card-outlined-background": "transparent",
|
|
28339
28364
|
"--card-filled-background": "var(--color-surface-container-highest)",
|
|
28340
28365
|
"--card-image-height": "188px",
|
|
28341
28366
|
"--card-title-color": "#1D1B20",
|
|
@@ -28503,9 +28528,15 @@ var stdin_default$166 = {
|
|
|
28503
28528
|
"--data-table-resize-trigger-color": "hsla(var(--hsl-on-surface-variant), 0.36)",
|
|
28504
28529
|
"--data-table-fixed-shadow-color": "rgba(0, 0, 0, 0.04)",
|
|
28505
28530
|
"--data-table-border-radius": "2px",
|
|
28506
|
-
"--data-table-cell-padding": "8px 16px",
|
|
28507
|
-
"--data-table-
|
|
28508
|
-
"--data-table-
|
|
28531
|
+
"--data-table-cell-normal-padding": "8px 16px",
|
|
28532
|
+
"--data-table-cell-small-padding": "4px 16px",
|
|
28533
|
+
"--data-table-cell-large-padding": "11px 16px",
|
|
28534
|
+
"--data-table-selection-cell-normal-padding": "8px 8px",
|
|
28535
|
+
"--data-table-selection-cell-small-padding": "4px 8px",
|
|
28536
|
+
"--data-table-selection-cell-large-padding": "11px 8px",
|
|
28537
|
+
"--data-table-expand-cell-normal-padding": "8px 8px",
|
|
28538
|
+
"--data-table-expand-cell-small-padding": "4px 8px",
|
|
28539
|
+
"--data-table-expand-cell-large-padding": "11px 8px",
|
|
28509
28540
|
"--data-table-cell-font-size": "14px",
|
|
28510
28541
|
"--data-table-header-font-size": "14px",
|
|
28511
28542
|
"--data-table-header-font-weight": "500",
|
|
@@ -28855,6 +28886,9 @@ var stdin_default$143 = {
|
|
|
28855
28886
|
var stdin_default$142 = {
|
|
28856
28887
|
"--paper-background": "var(--color-surface-container-low)",
|
|
28857
28888
|
"--paper-surface-low-background": "var(--color-surface-container-low)",
|
|
28889
|
+
"--paper-outlined-background": "transparent",
|
|
28890
|
+
"--paper-filled-background": "var(--color-surface-container-highest)",
|
|
28891
|
+
"--paper-outline-color": "var(--color-outline)",
|
|
28858
28892
|
"--paper-border-radius": "12px"
|
|
28859
28893
|
};
|
|
28860
28894
|
//#endregion
|
|
@@ -31239,7 +31273,7 @@ var _WatermarkComponent = stdin_default$106;
|
|
|
31239
31273
|
var stdin_default$100 = stdin_default$106;
|
|
31240
31274
|
//#endregion
|
|
31241
31275
|
//#region es/index.bundle.mjs
|
|
31242
|
-
var version = "3.18.0
|
|
31276
|
+
var version = "3.18.0";
|
|
31243
31277
|
function install(app) {
|
|
31244
31278
|
stdin_default.install && app.use(stdin_default);
|
|
31245
31279
|
stdin_default$1.install && app.use(stdin_default$1);
|