@fewangsit/wangsvue-presets 1.0.89-alpha.9 → 1.0.89

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.
@@ -47,6 +47,7 @@ declare namespace _default {
47
47
  let _class: string[];
48
48
  export { _class as class };
49
49
  }
50
+ export function item(): string;
50
51
  }
51
52
  let applybutton: {
52
53
  class: string;
@@ -54,6 +54,7 @@ exports.default = {
54
54
  trigger: {
55
55
  class: ['text-primary-500 [&_i]:w-4 [&_i]:h-4 shrink-0'],
56
56
  },
57
+ item: function () { return ''; },
57
58
  },
58
59
  applybutton: {
59
60
  'class': 'shrink-0',
@@ -1,5 +1,8 @@
1
1
  declare namespace _default {
2
- function button(buttonClass: any): {
2
+ function button({ props, buttonClass }: {
3
+ props: any;
4
+ buttonClass: any;
5
+ }): {
3
6
  class: any[];
4
7
  'data-wv-section': string;
5
8
  };
@@ -1,12 +1,27 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = {
4
- button: function (buttonClass) { return ({
5
- 'class': [buttonClass, 'w-max'],
6
- 'data-wv-section': 'changelog-button',
7
- }); },
4
+ button: function (_a) {
5
+ var _b;
6
+ var props = _a.props, buttonClass = _a.buttonClass;
7
+ return ({
8
+ 'class': [
9
+ buttonClass,
10
+ 'w-max',
11
+ 'rounded p-[5px] ring-inset',
12
+ 'focus-within:ring-2 focus-within:ring-primary-500 focus-within:outline-none',
13
+ (_b = {},
14
+ _b["ring-1 ring-".concat(props.severity === 'secondary' ? 'general' : props.severity, "-500")] = props.outlined && !props.text,
15
+ _b['ring-0'] = !props.outlined || props.text,
16
+ _b),
17
+ "text-".concat(props.severity === 'secondary' ? 'general' : props.severity, "-500"),
18
+ "hover:bg-".concat(props.severity === 'secondary' ? 'general' : props.severity, "-500/[8%]"),
19
+ ],
20
+ 'data-wv-section': 'changelog-button',
21
+ });
22
+ },
8
23
  icon: {
9
- class: ['text-2xl'],
24
+ class: ['text-base'],
10
25
  },
11
26
  dialog: {
12
27
  'class': 'w-[800px] !z-50',
@@ -3,6 +3,10 @@ declare namespace _default {
3
3
  props: any;
4
4
  }): {
5
5
  class: any[];
6
+ style: {
7
+ width: string;
8
+ height: string;
9
+ };
6
10
  };
7
11
  function image({ props }: {
8
12
  props: any;
@@ -11,11 +11,17 @@ exports.default = {
11
11
  { 'rounded-lg': !props.rounded },
12
12
  props.class,
13
13
  {
14
- 'w-[125px] h-[125px]': props.size === 'big',
15
14
  'w-[30px] h-[30px]': props.size === 'small',
16
15
  'w-[80px] h-[80px]': props.size === 'medium',
16
+ 'w-[125px] h-[125px]': !props.size && !props.width,
17
17
  },
18
18
  ],
19
+ style: !props.size && props.width
20
+ ? {
21
+ width: "".concat(props.width, "px"),
22
+ height: "".concat(props.width, "px"),
23
+ }
24
+ : undefined,
19
25
  });
20
26
  },
21
27
  image: function (_a) {