@fewangsit/wangsvue-presets 1.0.104 → 1.0.105-alpha.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.
@@ -54,7 +54,7 @@ exports.default = (0, core_1.definePreset)('WANGS-TAB-MENU', {
54
54
  'border-primary-500': context.active,
55
55
  'border-grayscale-400': !context.active,
56
56
  'text-grayscale-600': !context.active,
57
- 'text-primary-500': context.active,
57
+ 'text-primary-500': context.active && props.type !== 'segmented',
58
58
  'bg-primary-50 text-primary-500': props.type === 'pill' && context.active,
59
59
  'bg-grayscale-200 text-grayscale-800': props.type === 'pill' && !context.active,
60
60
  'bg-primary-500 text-white shadow-[-2px_2px_2px_rgba(0,0,0,0.25)]': props.type === 'segmented' && context.active,
@@ -31,7 +31,7 @@ exports.default = {
31
31
  'text-white',
32
32
  {
33
33
  'border-general-200': props.disabled,
34
- 'border-general-100': !props.disabled,
34
+ 'border-general-100': !props.disabled && !context.checked && !context.partialChecked,
35
35
  'bg-white': !(context.checked || context.partialChecked) && !props.disabled,
36
36
  'bg-general-50': !(context.checked || context.partialChecked) && props.disabled,
37
37
  'bg-primary-500 border-primary-500': (context.checked || context.partialChecked) && !props.disabled,
@@ -123,18 +123,31 @@ declare namespace _default {
123
123
  context: any;
124
124
  }): {
125
125
  class: (string | {
126
+ 'text-center': any;
127
+ 'text-left': boolean;
128
+ 'bg-primary-500'?: undefined;
129
+ 'bg-primary-300'?: undefined;
130
+ 'sticky right-0 hover:bg-primary-500/90'?: undefined;
131
+ '!cursor-default'?: undefined;
132
+ } | {
126
133
  'bg-primary-500': boolean;
134
+ 'text-center'?: undefined;
135
+ 'text-left'?: undefined;
127
136
  'bg-primary-300'?: undefined;
128
137
  'sticky right-0 hover:bg-primary-500/90'?: undefined;
129
138
  '!cursor-default'?: undefined;
130
139
  } | {
131
140
  'bg-primary-300': any;
141
+ 'text-center'?: undefined;
142
+ 'text-left'?: undefined;
132
143
  'bg-primary-500'?: undefined;
133
144
  'sticky right-0 hover:bg-primary-500/90'?: undefined;
134
145
  '!cursor-default'?: undefined;
135
146
  } | {
136
147
  'sticky right-0 hover:bg-primary-500/90': any;
137
148
  '!cursor-default': boolean;
149
+ 'text-center'?: undefined;
150
+ 'text-left'?: undefined;
138
151
  'bg-primary-500'?: undefined;
139
152
  'bg-primary-300'?: undefined;
140
153
  })[];
@@ -74,7 +74,11 @@ exports.default = {
74
74
  var context = _a.context;
75
75
  return {
76
76
  'class': [
77
- 'text-xs font-bold text-white p-2 text-left cursor-pointer tracking-[0.02em]',
77
+ 'text-xs font-bold text-white p-2 cursor-pointer tracking-[0.02em]',
78
+ {
79
+ 'text-center': context.isParentHeader,
80
+ 'text-left': !context.isParentHeader,
81
+ },
78
82
  { 'bg-primary-500': !context.sorted || !context.sortable },
79
83
  { 'bg-primary-300': context.sorted },
80
84
  {
@@ -1358,7 +1358,7 @@ const A = {
1358
1358
  "text-white",
1359
1359
  {
1360
1360
  "border-general-200": e.disabled,
1361
- "border-general-100": !e.disabled,
1361
+ "border-general-100": !e.disabled && !t.checked && !t.partialChecked,
1362
1362
  "bg-white": !(t.checked || t.partialChecked) && !e.disabled,
1363
1363
  "bg-general-50": !(t.checked || t.partialChecked) && e.disabled,
1364
1364
  "bg-primary-500 border-primary-500": (t.checked || t.partialChecked) && !e.disabled,
@@ -1549,7 +1549,11 @@ const A = {
1549
1549
  }),
1550
1550
  headercell: ({ context: e }) => ({
1551
1551
  class: [
1552
- "text-xs font-bold text-white p-2 text-left cursor-pointer tracking-[0.02em]",
1552
+ "text-xs font-bold text-white p-2 cursor-pointer tracking-[0.02em]",
1553
+ {
1554
+ "text-center": e.isParentHeader,
1555
+ "text-left": !e.isParentHeader
1556
+ },
1553
1557
  { "bg-primary-500": !e.sorted || !e.sortable },
1554
1558
  { "bg-primary-300": e.sorted },
1555
1559
  {
@@ -2509,7 +2513,7 @@ const A = {
2509
2513
  },
2510
2514
  "ring-inset",
2511
2515
  "ring-general-200"
2512
- ], K = {
2516
+ ], H = {
2513
2517
  css: `
2514
2518
  *[data-pd-ripple="true"]{
2515
2519
  overflow: hidden;
@@ -2586,7 +2590,7 @@ const A = {
2586
2590
  }
2587
2591
  }
2588
2592
  `
2589
- }, Y = {
2593
+ }, K = {
2590
2594
  root: ({ props: e }) => ({
2591
2595
  class: [
2592
2596
  "relative inline-block",
@@ -2720,7 +2724,7 @@ const A = {
2720
2724
  leaveActiveClass: "transition-all duration-150 ease-in",
2721
2725
  leaveToClass: "opacity-0 scale-75"
2722
2726
  }
2723
- }, H = {
2727
+ }, Y = {
2724
2728
  root: ({ props: e }) => ({
2725
2729
  class: [
2726
2730
  "rounded-md p-3",
@@ -5601,7 +5605,7 @@ const oe = x("WANGS-TAB-MENU", {
5601
5605
  ripple: le,
5602
5606
  tooltip: fe
5603
5607
  }, Te = {
5604
- global: K,
5608
+ global: H,
5605
5609
  directives: Ae,
5606
5610
  // Forms
5607
5611
  form: D,
@@ -5656,14 +5660,14 @@ const oe = x("WANGS-TAB-MENU", {
5656
5660
  overlaypanel: ae,
5657
5661
  // Messages
5658
5662
  message: te,
5659
- inlinemessage: H,
5663
+ inlinemessage: Y,
5660
5664
  toast: ue,
5661
5665
  // Media
5662
5666
  carousel: U,
5663
5667
  // Misc
5664
5668
  badge: d,
5665
5669
  badgegroup: ye,
5666
- image: Y,
5670
+ image: K,
5667
5671
  loading: ze,
5668
5672
  codesnippet: $,
5669
5673
  username: _e