@varlet/ui 3.2.15-alpha.1718198850293 → 3.3.1

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
@@ -5665,6 +5665,10 @@ const props$Y = {
5665
5665
  type: Boolean,
5666
5666
  default: true
5667
5667
  },
5668
+ elevation: {
5669
+ type: [Boolean, Number, String],
5670
+ default: false
5671
+ },
5668
5672
  block: Boolean,
5669
5673
  closeable: Boolean,
5670
5674
  onClose: defineListenerProp()
@@ -5679,7 +5683,7 @@ function __render__$12(_ctx, _cache) {
5679
5683
  vue.createElementVNode(
5680
5684
  "span",
5681
5685
  vue.mergeProps({
5682
- class: _ctx.classes(_ctx.n(), _ctx.n("$--box"), ..._ctx.contentClass),
5686
+ class: _ctx.classes(_ctx.n(), _ctx.n("$--box"), _ctx.formatElevation(_ctx.elevation, 1), ..._ctx.contentClass),
5683
5687
  style: _ctx.chipStyle
5684
5688
  }, _ctx.$attrs),
5685
5689
  [
@@ -5757,6 +5761,7 @@ const __sfc__$14 = vue.defineComponent({
5757
5761
  contentClass,
5758
5762
  n: n$13,
5759
5763
  classes: classes$S,
5764
+ formatElevation,
5760
5765
  handleClose
5761
5766
  };
5762
5767
  }
@@ -17793,7 +17798,11 @@ function useMenuSelect() {
17793
17798
  const props$u = {
17794
17799
  label: {},
17795
17800
  value: {},
17796
- disabled: Boolean
17801
+ disabled: Boolean,
17802
+ ripple: {
17803
+ type: Boolean,
17804
+ default: true
17805
+ }
17797
17806
  };
17798
17807
  const { name: name$v, n: n$x, classes: classes$r } = createNamespace("menu-option");
17799
17808
  const _hoisted_1$h = ["tabindex"];
@@ -17847,7 +17856,7 @@ function __render__$z(_ctx, _cache) {
17847
17856
  focusing: _ctx.isFocusing && !_ctx.disabled
17848
17857
  }, null, 8, ["hovering", "focusing"])
17849
17858
  ], 42, _hoisted_1$h)), [
17850
- [_directive_ripple, { disabled: _ctx.disabled }],
17859
+ [_directive_ripple, { disabled: _ctx.disabled || !_ctx.ripple }],
17851
17860
  [_directive_hover, _ctx.handleHovering, "desktop"]
17852
17861
  ]);
17853
17862
  }
@@ -18243,7 +18252,7 @@ function __render__$x(_ctx, _cache) {
18243
18252
  }, ["stop"])),
18244
18253
  onChange: _ctx.handleSelect
18245
18254
  }, null, 8, ["modelValue", "checked-color", "disabled", "onChange"])) : vue.createCommentVNode("v-if", true),
18246
- vue.renderSlot(_ctx.$slots, "default", {}, () => [
18255
+ vue.renderSlot(_ctx.$slots, "default", { selected: _ctx.optionSelected }, () => [
18247
18256
  vue.createElementVNode(
18248
18257
  "div",
18249
18258
  {
@@ -25715,7 +25724,7 @@ var stdin_default$1H = {
25715
25724
  var stdin_default$1G = {
25716
25725
  "--picker-background": "var(--color-body)",
25717
25726
  "--picker-cancel-button-text-color": "var(--color-primary)",
25718
- "--picker-mask-background-image": "linear-gradient(180deg, rgba(254, 247, 255, 0.9), rgba(254, 247, 255, 0.4)), linear-gradient(0deg, rgba(254, 247, 255, 0.9), rgba(254, 247, 255, 0.4)",
25727
+ "--picker-mask-background-image": "linear-gradient(180deg, rgba(254, 247, 255, 0.9), rgba(254, 247, 255, 0.4)), linear-gradient(0deg, rgba(254, 247, 255, 0.9), rgba(254, 247, 255, 0.4))",
25719
25728
  "--picker-toolbar-height": "44px",
25720
25729
  "--picker-confirm-button-text-color": "var(--color-primary)",
25721
25730
  "--picker-picked-border": "1px solid var(--color-outline)",
@@ -28891,7 +28900,7 @@ withInstall(stdin_default$1);
28891
28900
  withPropsDefaultsSetter(stdin_default$1, props);
28892
28901
  const _WatermarkComponent = stdin_default$1;
28893
28902
  var stdin_default = stdin_default$1;
28894
- const version = "3.2.15-alpha.1718198850293";
28903
+ const version = "3.3.1";
28895
28904
  function install(app) {
28896
28905
  stdin_default$5I.install && app.use(stdin_default$5I);
28897
28906
  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.2.15-alpha.1718198850293",
3
+ "version": "3.3.1",
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.2.15-alpha.1718198850293",
52
- "@varlet/shared": "3.2.15-alpha.1718198850293",
53
- "@varlet/use": "3.2.15-alpha.1718198850293"
51
+ "@varlet/icons": "3.3.1",
52
+ "@varlet/use": "3.3.1",
53
+ "@varlet/shared": "3.3.1"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@vue/runtime-core": "3.4.21",
@@ -64,9 +64,9 @@
64
64
  "typescript": "^5.1.5",
65
65
  "vue": "3.4.21",
66
66
  "vue-router": "4.2.0",
67
- "@varlet/cli": "3.2.15-alpha.1718198850293",
68
- "@varlet/ui": "3.2.15-alpha.1718198850293",
69
- "@varlet/touch-emulator": "3.2.15-alpha.1718198850293"
67
+ "@varlet/cli": "3.3.1",
68
+ "@varlet/ui": "3.3.1",
69
+ "@varlet/touch-emulator": "3.3.1"
70
70
  },
71
71
  "scripts": {
72
72
  "dev": "varlet-cli dev",
package/types/chip.d.ts CHANGED
@@ -21,6 +21,7 @@ export interface ChipProps extends BasicAttributes {
21
21
  namespace?: string
22
22
  plain?: boolean
23
23
  round?: boolean
24
+ elevation?: boolean | number | string
24
25
  block?: boolean
25
26
  closeable?: boolean
26
27
  onClose?: ListenerProp<(e: Event) => void>
@@ -7,6 +7,7 @@ export interface MenuOptionProps extends BasicAttributes {
7
7
  label?: any
8
8
  value?: any
9
9
  disabled?: boolean
10
+ ripple?: boolean
10
11
  }
11
12
 
12
13
  export class MenuOption extends VarComponent {
package/types/option.d.ts CHANGED
@@ -9,13 +9,17 @@ export interface OptionProps extends BasicAttributes {
9
9
  disabled?: boolean
10
10
  }
11
11
 
12
+ export interface OptionData {
13
+ selected: boolean
14
+ }
15
+
12
16
  export class Option extends VarComponent {
13
17
  static setPropsDefaults: SetPropsDefaults<OptionProps>
14
18
 
15
19
  $props: OptionProps
16
20
 
17
21
  $slots: {
18
- default(): VNode[]
22
+ default(data: OptionData): VNode[]
19
23
  }
20
24
  }
21
25