@fewangsit/wangsvue-presets 1.0.99-alpha.3 → 1.0.99-alpha.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.
@@ -1249,6 +1249,10 @@
1249
1249
  margin-right: -1.75rem;
1250
1250
  }
1251
1251
 
1252
+ .-mt-0\.5{
1253
+ margin-top: -0.125rem;
1254
+ }
1255
+
1252
1256
  .-mt-1\.5{
1253
1257
  margin-top: -0.375rem;
1254
1258
  }
@@ -2519,6 +2523,10 @@
2519
2523
  overflow: hidden;
2520
2524
  }
2521
2525
 
2526
+ .overflow-visible{
2527
+ overflow: visible;
2528
+ }
2529
+
2522
2530
  .overflow-scroll{
2523
2531
  overflow: scroll;
2524
2532
  }
@@ -2539,6 +2547,10 @@
2539
2547
  overflow-y: hidden;
2540
2548
  }
2541
2549
 
2550
+ .overflow-x-visible{
2551
+ overflow-x: visible;
2552
+ }
2553
+
2542
2554
  .overscroll-auto{
2543
2555
  overscroll-behavior: auto;
2544
2556
  }
@@ -4329,6 +4341,12 @@
4329
4341
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
4330
4342
  }
4331
4343
 
4344
+ .shadow-\[-2px_2px_2px_rgba\(0\2c 0\2c 0\2c 0\.25\)\]{
4345
+ --tw-shadow: -2px 2px 2px rgba(0,0,0,0.25);
4346
+ --tw-shadow-colored: -2px 2px 2px var(--tw-shadow-color);
4347
+ box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
4348
+ }
4349
+
4332
4350
  .shadow-\[-4px_4px_20px_0px_\#0000001A\]{
4333
4351
  --tw-shadow: -4px 4px 20px 0px #0000001A;
4334
4352
  --tw-shadow-colored: -4px 4px 20px 0px var(--tw-shadow-color);
@@ -3,19 +3,25 @@ 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-auto',
6
+ class: 'overflow-x-visible',
7
7
  style: 'scrollbar-width: none',
8
8
  },
9
- menu: {
10
- class: [
11
- // Flexbox
12
- 'flex flex-1',
13
- // Spacing
14
- 'list-none',
15
- 'p-0 m-0',
16
- // Colors
17
- 'text-general-100',
18
- ],
9
+ menu: function (_a) {
10
+ var props = _a.props;
11
+ return ({
12
+ class: [
13
+ // Flexbox
14
+ 'flex flex-1',
15
+ // Spacing
16
+ 'list-none',
17
+ 'p-0 m-0',
18
+ // Colors
19
+ 'text-general-100',
20
+ {
21
+ 'w-max ring-1 ring-inset ring-general-100 rounded': props.type === 'segmented',
22
+ },
23
+ ],
24
+ });
19
25
  },
20
26
  menuitem: {
21
27
  class: 'mr-0',
@@ -34,12 +40,14 @@ exports.default = (0, core_1.definePreset)('WANGS-TAB-MENU', {
34
40
  // Spacing
35
41
  {
36
42
  'rounded-xl py-1 px-3': props.type === 'pill',
37
- 'p-2 pb-1.5 pt-0.5 !h-6': props.type !== 'pill',
43
+ 'rounded': props.type === 'segmented',
44
+ 'p-2 pb-1.5 pt-0.5 !h-6': props.type === 'tab',
45
+ 'py-[5px] px-3 !h-6': props.type === 'segmented',
38
46
  'ml-1': props.type === 'pill' && context.index !== 0,
39
47
  },
40
48
  // Shape
41
49
  {
42
- 'border-b-2': props.type !== 'pill',
50
+ 'border-b-2': props.type === 'tab',
43
51
  },
44
52
  // Colors and Conditions
45
53
  {
@@ -49,6 +57,8 @@ exports.default = (0, core_1.definePreset)('WANGS-TAB-MENU', {
49
57
  'text-primary-500': context.active,
50
58
  'bg-primary-50 text-primary-500': props.type === 'pill' && context.active,
51
59
  'bg-grayscale-200 text-grayscale-800': props.type === 'pill' && !context.active,
60
+ 'bg-primary-500 text-white shadow-[-2px_2px_2px_rgba(0,0,0,0.25)] -mt-0.5': props.type === 'segmented' && context.active,
61
+ '!text-general-800': props.type === 'segmented' && !context.active,
52
62
  'bg-transparent ': props.type !== 'pill' && !context.active,
53
63
  },
54
64
  // States
@@ -80,7 +90,11 @@ exports.default = (0, core_1.definePreset)('WANGS-TAB-MENU', {
80
90
  return ({
81
91
  class: [
82
92
  'grow border-b-2 border-primary-100',
83
- { hidden: props.type === 'pill' || props.useTrailingLine === false },
93
+ {
94
+ hidden: props.type === 'pill' ||
95
+ props.useTrailingLine === false ||
96
+ props.type === 'segmented',
97
+ },
84
98
  ],
85
99
  });
86
100
  },