@varlet/ui 3.20.2 → 3.20.4

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.
@@ -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.20.2",
4
+ "version": "3.20.4",
5
5
  "name": "VARLET",
6
6
  "contributions": {
7
7
  "html": {
@@ -10117,9 +10117,18 @@
10117
10117
  "kind": "expression"
10118
10118
  }
10119
10119
  },
10120
+ {
10121
+ "name": "variant",
10122
+ "description": "Appearance variant, optional values are `standard` `outlined` `filled`",
10123
+ "default": "standard",
10124
+ "value": {
10125
+ "type": "string",
10126
+ "kind": "expression"
10127
+ }
10128
+ },
10120
10129
  {
10121
10130
  "name": "elevation",
10122
- "description": "Elevation level, options `true` `false` and level of `0-24`, not in simple mode",
10131
+ "description": "Elevation level, options `true` `false` and level of `0-24`, only effective with the `standard` variant",
10123
10132
  "default": "true",
10124
10133
  "value": {
10125
10134
  "type": "string | number | boolean",
@@ -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.20.2",
4
+ "version": "3.20.4",
5
5
  "name": "VARLET",
6
6
  "contributions": {
7
7
  "html": {
@@ -10036,9 +10036,18 @@
10036
10036
  "kind": "expression"
10037
10037
  }
10038
10038
  },
10039
+ {
10040
+ "name": "variant",
10041
+ "description": "外观类型,可选值为 `standard` `outlined` `filled`",
10042
+ "default": "standard",
10043
+ "value": {
10044
+ "type": "string",
10045
+ "kind": "expression"
10046
+ }
10047
+ },
10039
10048
  {
10040
10049
  "name": "elevation",
10041
- "description": "海拔高度,可选值为 `true` `false` 和 `0-24` 的等级, 不为简单模式时生效",
10050
+ "description": "海拔高度,可选值为 `true` `false` 和 `0-24` 的等级,仅在 `standard` 外观下生效",
10042
10051
  "default": "true",
10043
10052
  "value": {
10044
10053
  "type": "string | number | boolean",
package/lib/varlet.cjs.js CHANGED
@@ -27196,7 +27196,9 @@ var stdin_default$329 = {
27196
27196
  "--cell-description-color": "#aaa",
27197
27197
  "--cell-color": "var(--color-text)",
27198
27198
  "--cell-font-size": "var(--font-size-md)",
27199
+ "--cell-title-line-height": "1.5",
27199
27200
  "--cell-description-font-size": "var(--font-size-sm)",
27201
+ "--cell-description-line-height": "1.5",
27200
27202
  "--cell-description-margin-top": "4px",
27201
27203
  "--cell-padding": "10px 12px",
27202
27204
  "--cell-min-height": "40px",
@@ -28194,6 +28196,9 @@ var stdin_default$268 = {
28194
28196
  "--uploader-file-name-background": "#303030",
28195
28197
  "--uploader-file-name-color": "#aaa",
28196
28198
  "--uploader-file-cover-background": "#303030",
28199
+ "--uploader-outlined-background": "transparent",
28200
+ "--uploader-filled-background": "var(--color-surface-container-highest)",
28201
+ "--uploader-outline-color": "var(--color-outline)",
28197
28202
  "--uploader-action-icon-size": "24px",
28198
28203
  "--uploader-action-margin": "0 10px 10px 0",
28199
28204
  "--uploader-file-size": "80px",
@@ -28570,7 +28575,9 @@ var stdin_default$253 = {
28570
28575
  "--cell-description-color": "var(--color-on-surface-variant)",
28571
28576
  "--cell-color": "var(--color-text)",
28572
28577
  "--cell-font-size": "var(--font-size-md)",
28578
+ "--cell-title-line-height": "1.5",
28573
28579
  "--cell-description-font-size": "var(--font-size-sm)",
28580
+ "--cell-description-line-height": "1.5",
28574
28581
  "--cell-description-margin-top": "4px",
28575
28582
  "--cell-padding": "10px 12px",
28576
28583
  "--cell-min-height": "40px",
@@ -29568,6 +29575,9 @@ var stdin_default$192 = {
29568
29575
  "--uploader-action-background": "var(--color-surface-container-highest)",
29569
29576
  "--uploader-file-name-background": "var(--color-surface-container-highest)",
29570
29577
  "--uploader-file-cover-background": "var(--color-surface-container-highest)",
29578
+ "--uploader-outlined-background": "transparent",
29579
+ "--uploader-filled-background": "var(--color-surface-container-highest)",
29580
+ "--uploader-outline-color": "var(--color-outline)",
29571
29581
  "--uploader-action-icon-color": "var(--color-on-surface-variant)",
29572
29582
  "--uploader-file-name-color": "var(--color-on-surface-variant)",
29573
29583
  "--uploader-action-icon-size": "24px",
@@ -29930,7 +29940,9 @@ var stdin_default$177 = {
29930
29940
  "--cell-description-color": "var(--color-on-surface-variant)",
29931
29941
  "--cell-color": "var(--color-text)",
29932
29942
  "--cell-font-size": "var(--font-size-md)",
29943
+ "--cell-title-line-height": "1.5",
29933
29944
  "--cell-description-font-size": "var(--font-size-sm)",
29945
+ "--cell-description-line-height": "1.5",
29934
29946
  "--cell-description-margin-top": "4px",
29935
29947
  "--cell-padding": "10px 12px",
29936
29948
  "--cell-min-height": "40px",
@@ -30926,6 +30938,9 @@ var stdin_default$116 = {
30926
30938
  "--uploader-action-background": "var(--color-surface-container-low)",
30927
30939
  "--uploader-file-name-background": "var(--color-surface-container-low)",
30928
30940
  "--uploader-file-cover-background": "var(--color-surface-container-low)",
30941
+ "--uploader-outlined-background": "transparent",
30942
+ "--uploader-filled-background": "var(--color-surface-container-highest)",
30943
+ "--uploader-outline-color": "var(--color-outline)",
30929
30944
  "--uploader-action-icon-color": "var(--color-on-surface-variant)",
30930
30945
  "--uploader-file-name-color": "var(--color-on-surface-variant)",
30931
30946
  "--uploader-action-icon-size": "24px",
@@ -32149,6 +32164,10 @@ var props$90 = {
32149
32164
  ],
32150
32165
  default: true
32151
32166
  },
32167
+ variant: {
32168
+ type: String,
32169
+ default: "standard"
32170
+ },
32152
32171
  resolveType: {
32153
32172
  type: String,
32154
32173
  default: "default"
@@ -32234,7 +32253,7 @@ function __render__$1(_ctx, _cache) {
32234
32253
  (0, vue.createElementVNode)("div", { class: (0, vue.normalizeClass)(_ctx.n("file-list")) }, [((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)(_ctx.files, (f) => {
32235
32254
  return (0, vue.withDirectives)(((0, vue.openBlock)(), (0, vue.createElementBlock)("div", {
32236
32255
  key: f.id,
32237
- class: (0, vue.normalizeClass)(_ctx.classes(_ctx.n("file"), _ctx.formatElevation(_ctx.elevation, 2), [f.state === "loading", _ctx.n("--loading")])),
32256
+ class: (0, vue.normalizeClass)(_ctx.classes(_ctx.n("file"), [_ctx.variant === "standard", _ctx.formatElevation(_ctx.elevation, 2)], [_ctx.variant === "outlined", _ctx.n("--outlined")], [_ctx.variant === "filled", _ctx.n("--filled")], [f.state === "loading", _ctx.n("--loading")])),
32238
32257
  onClick: ($event) => _ctx.preview(f)
32239
32258
  }, [
32240
32259
  (0, vue.createElementVNode)("div", { class: (0, vue.normalizeClass)(_ctx.n("file-name")) }, (0, vue.toDisplayString)(f.name || f.url), 3),
@@ -32267,7 +32286,7 @@ function __render__$1(_ctx, _cache) {
32267
32286
  }), 128)), !_ctx.maxlength || _ctx.modelValue.length < _ctx.toNumber(_ctx.maxlength) ? (0, vue.withDirectives)(((0, vue.openBlock)(), (0, vue.createElementBlock)("div", {
32268
32287
  key: 0,
32269
32288
  ref: "actionRef",
32270
- class: (0, vue.normalizeClass)(_ctx.classes(_ctx.n("--outline-none"), [!_ctx.$slots.default, `${_ctx.n("action")} ${_ctx.formatElevation(_ctx.elevation, 2)}`], [_ctx.disabled || _ctx.formDisabled, _ctx.n("--disabled")])),
32289
+ class: (0, vue.normalizeClass)(_ctx.classes(_ctx.n("--outline-none"), [!_ctx.$slots.default, _ctx.n("action")], [!_ctx.$slots.default && _ctx.variant === "standard", _ctx.formatElevation(_ctx.elevation, 2)], [!_ctx.$slots.default && _ctx.variant === "outlined", _ctx.n("--outlined")], [!_ctx.$slots.default && _ctx.variant === "filled", _ctx.n("--filled")], [_ctx.disabled || _ctx.formDisabled, _ctx.n("--disabled")])),
32271
32290
  tabindex: _ctx.disabled || _ctx.formDisabled ? void 0 : "0",
32272
32291
  onClick: _cache[2] || (_cache[2] = (...args) => _ctx.handleActionClick && _ctx.handleActionClick(...args)),
32273
32292
  onFocus: _cache[3] || (_cache[3] = ($event) => _ctx.isFocusing = true),
@@ -32817,7 +32836,7 @@ var _WatermarkComponent = stdin_default$108;
32817
32836
  var stdin_default$102 = stdin_default$108;
32818
32837
  //#endregion
32819
32838
  //#region es/index.bundle.mjs
32820
- var version = "3.20.2";
32839
+ var version = "3.20.4";
32821
32840
  function install(app) {
32822
32841
  stdin_default.install && app.use(stdin_default);
32823
32842
  stdin_default$1.install && app.use(stdin_default$1);