@varlet/ui 3.5.3 → 3.5.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.
package/lib/varlet.cjs.js CHANGED
@@ -8485,7 +8485,10 @@ const props$V = {
8485
8485
  },
8486
8486
  imageHeight: [String, Number],
8487
8487
  imageWidth: [String, Number],
8488
- outline: Boolean,
8488
+ variant: {
8489
+ type: String,
8490
+ default: "standard"
8491
+ },
8489
8492
  layout: {
8490
8493
  type: String,
8491
8494
  default: "column"
@@ -8505,7 +8508,9 @@ const props$V = {
8505
8508
  },
8506
8509
  ripple: Boolean,
8507
8510
  onClick: defineListenerProp(),
8508
- "onUpdate:floating": defineListenerProp()
8511
+ "onUpdate:floating": defineListenerProp(),
8512
+ // deprecated
8513
+ outline: Boolean
8509
8514
  };
8510
8515
  var __async$d = (__this, __arguments, generator) => {
8511
8516
  return new Promise((resolve, reject) => {
@@ -8538,7 +8543,15 @@ function __render__$10(_ctx, _cache) {
8538
8543
  "div",
8539
8544
  {
8540
8545
  ref: "card",
8541
- class: vue.normalizeClass(_ctx.classes(_ctx.n(), [_ctx.isRow, _ctx.n("--layout-row")], [_ctx.outline, _ctx.n("--outline")], _ctx.formatElevation(_ctx.elevation, 1))),
8546
+ class: vue.normalizeClass(
8547
+ _ctx.classes(
8548
+ _ctx.n(),
8549
+ [_ctx.isRow, _ctx.n("--layout-row")],
8550
+ [_ctx.variant === "outlined" || _ctx.outline, _ctx.n("--outline")],
8551
+ [_ctx.variant === "filled", _ctx.n("--filled")],
8552
+ [_ctx.variant === "standard" || _ctx.outline, _ctx.formatElevation(_ctx.elevation, 1)]
8553
+ )
8554
+ ),
8542
8555
  style: vue.normalizeStyle({
8543
8556
  zIndex: _ctx.floated ? _ctx.zIndex : void 0
8544
8557
  }),
@@ -24754,6 +24767,7 @@ var stdin_default$34 = {
24754
24767
  "--card-description-color": "#aaaaaa",
24755
24768
  "--card-padding": "0 0 15px 0",
24756
24769
  "--card-background": "var(--color-surface-container-highest)",
24770
+ "--card-filled-background": "var(--color-surface-container-highest)",
24757
24771
  "--card-outline-color": "var(--color-outline)",
24758
24772
  "--card-border-radius": "4px",
24759
24773
  "--card-image-width": "100%",
@@ -25838,6 +25852,7 @@ var stdin_default$1W = {
25838
25852
  var stdin_default$1V = {
25839
25853
  "--card-border-radius": "12px",
25840
25854
  "--card-background": "var(--color-surface-container-low)",
25855
+ "--card-filled-background": "var(--color-surface-container-highest)",
25841
25856
  "--card-image-height": "188px",
25842
25857
  "--card-title-color": "#1D1B20",
25843
25858
  "--card-title-font-size": "16px",
@@ -26813,6 +26828,7 @@ var stdin_default$W = {
26813
26828
  var stdin_default$V = {
26814
26829
  "--card-border-radius": "12px",
26815
26830
  "--card-background": "var(--color-surface-container-highest)",
26831
+ "--card-filled-background": "var(--color-surface-container-highest)",
26816
26832
  "--card-image-height": "188px",
26817
26833
  "--card-title-color": "var(--color-inverse-surface)",
26818
26834
  "--card-title-font-size": "16px",
@@ -29316,7 +29332,7 @@ withInstall(stdin_default$1);
29316
29332
  withPropsDefaultsSetter(stdin_default$1, props);
29317
29333
  const _WatermarkComponent = stdin_default$1;
29318
29334
  var stdin_default = stdin_default$1;
29319
- const version = "3.5.3";
29335
+ const version = "3.5.4";
29320
29336
  function install(app) {
29321
29337
  stdin_default$5I.install && app.use(stdin_default$5I);
29322
29338
  stdin_default$5G.install && app.use(stdin_default$5G);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varlet/ui",
3
- "version": "3.5.3",
3
+ "version": "3.5.4",
4
4
  "description": "A material like components library",
5
5
  "main": "lib/varlet.cjs.js",
6
6
  "module": "es/index.mjs",
@@ -48,9 +48,9 @@
48
48
  "@popperjs/core": "^2.11.6",
49
49
  "dayjs": "^1.10.4",
50
50
  "decimal.js": "^10.2.1",
51
- "@varlet/icons": "3.5.3",
52
- "@varlet/shared": "3.5.3",
53
- "@varlet/use": "3.5.3"
51
+ "@varlet/icons": "3.5.4",
52
+ "@varlet/shared": "3.5.4",
53
+ "@varlet/use": "3.5.4"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@vue/runtime-core": "3.4.21",
@@ -65,9 +65,9 @@
65
65
  "typescript": "^5.1.5",
66
66
  "vue": "3.4.21",
67
67
  "vue-router": "4.2.0",
68
- "@varlet/cli": "3.5.3",
69
- "@varlet/touch-emulator": "3.5.3",
70
- "@varlet/ui": "3.5.3"
68
+ "@varlet/cli": "3.5.4",
69
+ "@varlet/ui": "3.5.4",
70
+ "@varlet/touch-emulator": "3.5.4"
71
71
  },
72
72
  "scripts": {
73
73
  "dev": "varlet-cli dev",
package/types/card.d.ts CHANGED
@@ -7,7 +7,10 @@ export type CardFit = 'fill' | 'contain' | 'cover' | 'none' | 'scale-down'
7
7
 
8
8
  export type CardLayout = 'row' | 'column'
9
9
 
10
+ export type CardVariant = 'standard' | 'outlined' | 'filled'
11
+
10
12
  export interface CardProps extends BasicAttributes {
13
+ variant?: CardVariant
11
14
  src?: string
12
15
  fit?: CardFit
13
16
  imageHeight?: string | number
@@ -17,12 +20,18 @@ export interface CardProps extends BasicAttributes {
17
20
  subtitle?: string
18
21
  description?: string
19
22
  elevation?: boolean | number | string
23
+ filled?: boolean
20
24
  ripple?: boolean
21
- onClick?: ListenerProp<(e: Event) => void>
22
25
  layout?: CardLayout
23
26
  floating?: boolean
24
27
  floatingDuration?: number
28
+ onClick?: ListenerProp<(e: Event) => void>
25
29
  'onUpdate:floating'?: ListenerProp<(value: boolean) => void>
30
+
31
+ /**
32
+ * @deprecated
33
+ */
34
+ outline?: boolean
26
35
  }
27
36
 
28
37
  export interface CardTitleData {
@@ -130,6 +130,7 @@ interface BaseStyleVars {
130
130
  '--button-normal-font-size'?: string
131
131
  '--button-large-font-size'?: string
132
132
  '--card-background'?: string
133
+ '--card-filled-background'?: string
133
134
  '--card-padding'?: string
134
135
  '--card-border-radius'?: string
135
136
  '--card-outline-color'?: string