@fewangsit/wangsvue-presets 1.0.99-alpha.6 → 1.0.99-alpha.8

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.
@@ -1137,6 +1137,10 @@
1137
1137
  margin: 0px !important;
1138
1138
  }
1139
1139
 
1140
+ .\!m-\[2px\]{
1141
+ margin: 2px !important;
1142
+ }
1143
+
1140
1144
  .m-0{
1141
1145
  margin: 0px;
1142
1146
  }
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var core_1 = require("@wangs-ui/core");
4
4
  exports.default = (0, core_1.definePreset)('WANGS-TAB-MENU', {
5
5
  root: {
6
- class: 'overflow-x-visible',
6
+ class: 'overflow-x-auto',
7
7
  style: 'scrollbar-width: none',
8
8
  },
9
9
  menu: function (_a) {
@@ -18,7 +18,7 @@ exports.default = (0, core_1.definePreset)('WANGS-TAB-MENU', {
18
18
  // Colors
19
19
  'text-general-100',
20
20
  {
21
- 'w-max ring-1 ring-inset ring-general-100 rounded': props.type === 'segmented',
21
+ 'w-max ring-1 ring-inset ring-general-100 rounded !m-[2px]': props.type === 'segmented',
22
22
  },
23
23
  ],
24
24
  });
@@ -1,12 +1,13 @@
1
1
  declare namespace _default {
2
- function root({ props }: {
2
+ function root({ props, state }: {
3
3
  props: any;
4
+ state: any;
4
5
  }): {
5
6
  class: (string | {
6
- 'bg-white': boolean;
7
+ 'bg-white': any;
7
8
  'bg-general-50': boolean;
8
9
  'ring-general-100': boolean;
9
- 'ring-primary-500': boolean;
10
+ 'ring-primary-500': any;
10
11
  'ring-general-200': any;
11
12
  '!ring-danger-500'?: undefined;
12
13
  } | {
@@ -20,8 +21,9 @@ declare namespace _default {
20
21
  'data-wv-name': string;
21
22
  'data-wv-section': string;
22
23
  };
23
- function box({ props }: {
24
+ function box({ props, state }: {
24
25
  props: any;
26
+ state: any;
25
27
  }): {
26
28
  class: (string | {
27
29
  'bg-primary-500': boolean;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var toggleswitch_1 = require("../toggleswitch");
4
4
  exports.default = {
5
5
  root: function (_a) {
6
- var props = _a.props;
6
+ var props = _a.props, state = _a.state;
7
7
  return ({
8
8
  'class': [
9
9
  'relative',
@@ -17,10 +17,10 @@ exports.default = {
17
17
  'rounded-full',
18
18
  // Colors
19
19
  {
20
- 'bg-white': !props.disabled || props.value == props.modelValue,
21
- 'bg-general-50': props.disabled && props.value != props.modelValue,
22
- 'ring-general-100': !props.disabled && props.value != props.modelValue,
23
- 'ring-primary-500': !props.disabled && props.value == props.modelValue,
20
+ 'bg-white': !props.disabled || state.checked,
21
+ 'bg-general-50': props.disabled && !state.checked,
22
+ 'ring-general-100': !props.disabled && !state.checked,
23
+ 'ring-primary-500': !props.disabled && state.checked,
24
24
  'ring-general-200': props.disabled,
25
25
  },
26
26
  {
@@ -34,7 +34,7 @@ exports.default = {
34
34
  });
35
35
  },
36
36
  box: function (_a) {
37
- var props = _a.props;
37
+ var props = _a.props, state = _a.state;
38
38
  return ({
39
39
  class: [
40
40
  // Size
@@ -50,12 +50,8 @@ exports.default = {
50
50
  'transition duration-200 ease-in-out',
51
51
  // Colors
52
52
  {
53
- 'bg-primary-500': props.value == props.modelValue &&
54
- props.value !== undefined &&
55
- !props.disabled,
56
- 'bg-general-200': props.value == props.modelValue &&
57
- props.value !== undefined &&
58
- props.disabled,
53
+ 'bg-primary-500': state.checked && props.value !== undefined && !props.disabled,
54
+ 'bg-general-200': state.checked && props.value !== undefined && props.disabled,
59
55
  },
60
56
  // States
61
57
  {