@fewangsit/wangsvue-presets 1.0.83 → 1.0.84-alpha.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,12 +3,12 @@ declare namespace _default {
3
3
  props: any;
4
4
  }): {
5
5
  class: (string | {
6
- '!text-general-400 !bg-general-100': any;
7
- 'text-success-800 bg-success-100': boolean;
8
- 'text-primary-800 bg-primary-200': boolean;
9
- 'text-grayscale-900 bg-grayscale-500': boolean;
6
+ 'text-general-400 bg-general-100': any;
7
+ 'text-success-500 bg-success-100': boolean;
8
+ 'text-primary-500 bg-primary-50': boolean;
9
+ 'text-grayscale-800 bg-grayscale-200': boolean;
10
10
  'text-warning-600 bg-warning-100': boolean;
11
- 'text-danger-700 bg-danger-200': boolean;
11
+ 'text-danger-600 bg-danger-100': boolean;
12
12
  })[];
13
13
  'data-wv-name': string;
14
14
  'data-wv-section': string;
@@ -18,7 +18,7 @@ declare namespace _default {
18
18
  context: any;
19
19
  }): {
20
20
  class: (string | {
21
- 'caret-surface-700': any;
21
+ 'caret-primary-700': any;
22
22
  'cursor-default': boolean;
23
23
  })[];
24
24
  };
@@ -26,19 +26,12 @@ declare namespace _default {
26
26
  props: any;
27
27
  }): {
28
28
  class: (string | {
29
- '!text-primary-800': boolean;
30
- '!text-success-800': boolean;
31
- '!text-danger-700': boolean;
32
- '!text-warning-600': boolean;
33
- '!text-grayscale-900': boolean;
34
- 'text-general-400'?: undefined;
35
- } | {
29
+ 'text-primary-500': boolean;
30
+ 'text-success-500': boolean;
31
+ 'text-danger-600': boolean;
32
+ 'text-warning-600': boolean;
33
+ 'text-grayscale-800 hover:bg-grayscale-300': boolean;
36
34
  'text-general-400': any;
37
- '!text-primary-800'?: undefined;
38
- '!text-success-800'?: undefined;
39
- '!text-danger-700'?: undefined;
40
- '!text-warning-600'?: undefined;
41
- '!text-grayscale-900'?: undefined;
42
35
  })[];
43
36
  'icon-class': string;
44
37
  'data-wv-section': string;
@@ -8,17 +8,18 @@ exports.default = {
8
8
  // Alignment
9
9
  'inline-flex items-center',
10
10
  // Size
11
- 'py-1 px-2',
11
+ 'p-1',
12
12
  // Shape
13
- 'rounded-[50px]',
13
+ 'rounded-lg ',
14
14
  // Color
15
15
  {
16
- '!text-general-400 !bg-general-100': props.disabled,
17
- 'text-success-800 bg-success-100': props.severity == 'success',
18
- 'text-primary-800 bg-primary-200': props.severity == null || props.severity == 'primary',
19
- 'text-grayscale-900 bg-grayscale-500': props.severity == 'dark',
20
- 'text-warning-600 bg-warning-100': props.severity == 'warning',
21
- 'text-danger-700 bg-danger-200': props.severity == 'danger',
16
+ 'text-general-400 bg-general-100': props.disabled,
17
+ 'text-success-500 bg-success-100': !props.disabled && props.severity == 'success',
18
+ 'text-primary-500 bg-primary-50': !props.disabled &&
19
+ (props.severity == null || props.severity == 'primary'),
20
+ 'text-grayscale-800 bg-grayscale-200': !props.disabled && props.severity == 'dark',
21
+ 'text-warning-600 bg-warning-100': !props.disabled && props.severity == 'warning',
22
+ 'text-danger-600 bg-danger-100': !props.disabled && props.severity == 'danger',
22
23
  },
23
24
  ],
24
25
  'data-wv-name': 'badge',
@@ -29,9 +30,9 @@ exports.default = {
29
30
  var props = _a.props, context = _a.context;
30
31
  return ({
31
32
  class: [
32
- 'text-nowrap whitespace-nowrap font-normal text-xs leading-4 tracking-[0.2488px]',
33
+ 'text-nowrap whitespace-nowrap font-semibold text-[9px] leading-3 tracking-[0.02em]',
33
34
  {
34
- 'caret-surface-700': props.editable,
35
+ 'caret-primary-700': props.editable,
35
36
  'cursor-default': !!context.badgeTooltip,
36
37
  },
37
38
  ],
@@ -41,19 +42,18 @@ exports.default = {
41
42
  var props = _a.props;
42
43
  return ({
43
44
  'class': [
44
- '!p-0 !w-3 !h-3 ml-1',
45
- {
46
- '!text-primary-800': !props.badgeSeverity || props.badgeSeverity === 'primary',
47
- '!text-success-800': props.badgeSeverity === 'success',
48
- '!text-danger-700': props.badgeSeverity === 'danger',
49
- '!text-warning-600': props.badgeSeverity === 'warning',
50
- '!text-grayscale-900': props.badgeSeverity === 'dark',
51
- },
45
+ '!p-0 !w-[10px] !h-[10px] ml-1',
52
46
  {
47
+ 'text-primary-500': !props.disabled &&
48
+ (!props.badgeSeverity || props.badgeSeverity === 'primary'),
49
+ 'text-success-500': !props.disabled && props.badgeSeverity === 'success',
50
+ 'text-danger-600': !props.disabled && props.badgeSeverity === 'danger',
51
+ 'text-warning-600': !props.disabled && props.badgeSeverity === 'warning',
52
+ 'text-grayscale-800 hover:bg-grayscale-300': !props.disabled && props.badgeSeverity === 'dark',
53
53
  'text-general-400': props.disabled,
54
54
  },
55
55
  ],
56
- 'icon-class': 'w-3 h-3',
56
+ 'icon-class': 'w-[10px] h-[10px]',
57
57
  'data-wv-section': 'removebutton',
58
58
  });
59
59
  },
@@ -8,7 +8,7 @@ exports.default = {
8
8
  'data-wv-section': 'root',
9
9
  },
10
10
  showmorebutton: {
11
- 'class': '!p-1 !h-auto',
11
+ 'class': '!p-1 !h-auto text-primary-500 !font-medium text-xs leading-4 tracking-[0.02em]',
12
12
  'data-wv-section': 'showmorebutton',
13
13
  },
14
14
  showmoredialog: {
@@ -8,8 +8,8 @@ declare namespace _default {
8
8
  context: any;
9
9
  }): {
10
10
  class: {
11
- 'font-semibold': any;
12
- 'text-primary-400': boolean;
11
+ 'font-bold text-general-400': any;
12
+ 'text-primary-500': boolean;
13
13
  };
14
14
  'data-wv-section': string;
15
15
  };
@@ -4,8 +4,8 @@ exports.default = {
4
4
  root: {
5
5
  'class': [
6
6
  'flex gap-[5px] items-center text-left h-[21px]',
7
- 'text-grayscale-900 ',
8
- 'text-xs font-normal leading-none',
7
+ 'text-general-800',
8
+ 'text-xs font-medium leading-4 tracking-[0.02em]',
9
9
  ],
10
10
  'data-wv-name': 'breadcrumb',
11
11
  'data-wv-section': 'root',
@@ -14,8 +14,8 @@ exports.default = {
14
14
  var context = _a.context;
15
15
  return ({
16
16
  'class': {
17
- 'font-semibold': context.lastItem,
18
- 'text-primary-400': !context.lastItem && !context.firstItem,
17
+ 'font-bold text-general-400': context.lastItem,
18
+ 'text-primary-500': !context.lastItem && !context.firstItem,
19
19
  },
20
20
  'data-wv-section': 'breadcrumb-menu',
21
21
  });
@@ -7,7 +7,7 @@ exports.default = {
7
7
  class: [
8
8
  'relative',
9
9
  // Alignments
10
- 'items-center inline-flex text-center align-bottom justify-center',
10
+ 'items-center inline-flex text-center align-bottom justify-center w-max',
11
11
  {
12
12
  'flex-col': (props.iconPos === 'top' || props.iconPos === 'bottom') &&
13
13
  props.label,
@@ -17,7 +17,7 @@ exports.default = {
17
17
  'flex-row-reverse': props.iconPos === 'right',
18
18
  },
19
19
  // Sizes & Spacing
20
- 'leading-none font-normal rounded-[50px]',
20
+ 'leading-none font-normal rounded',
21
21
  {
22
22
  '!text-xs px-3 py-[5px]': props.size === null && props.label,
23
23
  '!text-xs !p-0.5': props.size === 'small',
@@ -25,7 +25,7 @@ exports.default = {
25
25
  },
26
26
  { 'gap-1': props.label !== null },
27
27
  {
28
- 'p-[7px] w-max': props.label === null && props.icon && props.size === null,
28
+ 'p-[5px] w-max': props.label === null && props.icon && props.size === null,
29
29
  },
30
30
  {
31
31
  '!p-0.5 !h-4 !w-4': props.label === null && props.icon && props.size === 'small',
@@ -43,10 +43,10 @@ exports.default = {
43
43
  'text-white bg-gray-500 ring-1 ring-gray-500': props.plain && !props.outlined && !props.text,
44
44
  },
45
45
  // Plain Text Button
46
- { 'text-primary-400': props.plain && props.text },
46
+ { 'text-primary-500': props.plain && props.text },
47
47
  // Plain Outlined Button
48
48
  {
49
- 'text-primary-400 ring-1 ring-gray-500': props.plain && props.outlined,
49
+ 'text-primary-500 ring-1 ring-gray-500': props.plain && props.outlined,
50
50
  },
51
51
  // Text Button
52
52
  { 'bg-transparent ring-transparent': props.text && !props.plain },
@@ -79,28 +79,28 @@ exports.default = {
79
79
  {
80
80
  'text-grayscale-900 ring-1 ring-grayscale-900': props.outlined && props.severity === 'secondary' && !props.plain,
81
81
  },
82
- // Primary Gold Button
82
+ // Primary Blue Button
83
83
  {
84
84
  'text-white': props.severity === null &&
85
85
  !props.text &&
86
86
  !props.outlined &&
87
87
  !props.plain,
88
- 'bg-primary-400': props.severity === null &&
88
+ 'bg-primary-500': props.severity === null &&
89
89
  !props.text &&
90
90
  !props.outlined &&
91
91
  !props.plain,
92
- 'ring-1 ring-primary-400': props.severity === null &&
92
+ 'ring-1 ring-primary-500': props.severity === null &&
93
93
  !props.text &&
94
94
  !props.outlined &&
95
95
  !props.plain,
96
96
  },
97
- // Primary Gold Text Button
97
+ // Primary Blue Text Button
98
98
  {
99
- 'text-primary-400': props.text && props.severity === null && !props.plain,
99
+ 'text-primary-500': props.text && props.severity === null && !props.plain,
100
100
  },
101
- // Primary Gold Outlined Button
101
+ // Primary Blue Outlined Button
102
102
  {
103
- 'text-primary-400 ring-1 ring-primary-400 hover:bg-primary-400/20': props.outlined && props.severity === null && !props.plain,
103
+ 'text-primary-500 ring-1 ring-primary-500 hover:bg-primary-500/20': props.outlined && props.severity === null && !props.plain,
104
104
  },
105
105
  // Success Button
106
106
  {
@@ -250,7 +250,7 @@ exports.default = {
250
250
  },
251
251
  // Text & Outlined Button
252
252
  {
253
- 'hover:bg-primary-400/20': props.plain && (props.text || props.outlined),
253
+ 'hover:bg-primary-500/20': props.plain && (props.text || props.outlined),
254
254
  },
255
255
  // Secondary
256
256
  {
@@ -263,8 +263,8 @@ exports.default = {
263
263
  },
264
264
  // Primary
265
265
  {
266
- 'hover:bg-primary-400/[8%] active:bg-primary-400/[12%] ': props.severity === null,
267
- 'hover:shadow-hover active:!shadow-none hover:!bg-primary-400/90 active:bg-primary-400/90 hover:ring-0': !props.link &&
266
+ 'hover:bg-primary-500/[8%] active:bg-primary-500/[12%] ': props.severity === null,
267
+ 'hover:shadow-hover active:!shadow-none hover:!bg-primary-500/90 active:bg-primary-500/90 hover:ring-0': !props.link &&
268
268
  props.severity === null &&
269
269
  !props.text &&
270
270
  !props.outlined &&
@@ -350,7 +350,7 @@ exports.default = {
350
350
  !props.plain,
351
351
  },
352
352
  {
353
- 'focus:ring-primary-400': props.severity === 'contrast',
353
+ 'focus:ring-primary-500': props.severity === 'contrast',
354
354
  },
355
355
  // Text & Outlined Button
356
356
  {
@@ -380,7 +380,7 @@ exports.default = {
380
380
  class: [
381
381
  'duration-200',
382
382
  'font-normal text-xs',
383
- props.label ? 'leading-5' : 'leading-4',
383
+ 'leading-4 tracking-[0.02em]',
384
384
  {
385
385
  'hover:underline': props.link,
386
386
  },
@@ -22,6 +22,34 @@ declare namespace _default {
22
22
  'data-wv-section': string;
23
23
  };
24
24
  let bulkactiontoggle: {
25
+ class: string;
26
+ 'data-wv-section': string;
27
+ };
28
+ namespace dropdownmenu {
29
+ export function root_1({ props, state }: {
30
+ props: any;
31
+ state: any;
32
+ }): {
33
+ class: (string | {
34
+ 'opacity-60': any;
35
+ 'pointer-events-none': any;
36
+ })[];
37
+ 'data-wv-section': string;
38
+ };
39
+ export { root_1 as root };
40
+ export function input({ props, state }: {
41
+ props: any;
42
+ state: any;
43
+ }): {
44
+ class: string[];
45
+ };
46
+ export namespace trigger {
47
+ let _class: string[];
48
+ export { _class as class };
49
+ }
50
+ }
51
+ let applybutton: {
52
+ class: string;
25
53
  'data-wv-section': string;
26
54
  };
27
55
  let buttonclearselection: {
@@ -26,8 +26,39 @@ exports.default = {
26
26
  });
27
27
  },
28
28
  bulkactiontoggle: {
29
+ 'class': 'rounded-full',
29
30
  'data-wv-section': 'bulkactiontoggle',
30
31
  },
32
+ dropdownmenu: {
33
+ root: function (_a) {
34
+ var props = _a.props, state = _a.state;
35
+ return ({
36
+ 'class': [
37
+ 'flex items-center gap-1 transition-all shrink-0',
38
+ 'py-[5px] px-3',
39
+ 'ring-inset ring-1 ring-primary-500 rounded',
40
+ { 'opacity-60': props.disabled, 'pointer-events-none': props.disabled },
41
+ ],
42
+ 'data-wv-section': 'dropdownmenu',
43
+ });
44
+ },
45
+ input: function (_a) {
46
+ var props = _a.props, state = _a.state;
47
+ return ({
48
+ class: [
49
+ 'w-full h-full transition-transform !text-primary-500 cursor-pointer',
50
+ 'text-xs font-medium outline-none tracking-[0.02em] leading-4',
51
+ ],
52
+ });
53
+ },
54
+ trigger: {
55
+ class: ['text-primary-500 [&_i]:w-4 [&_i]:h-4 shrink-0'],
56
+ },
57
+ },
58
+ applybutton: {
59
+ 'class': 'shrink-0',
60
+ 'data-wv-section': 'applybutton',
61
+ },
31
62
  buttonclearselection: {
32
63
  'class': '!p-0 !w-6 !h-6 [&_.icon]:!w-5 [&_.icon]:!h-5',
33
64
  'data-wv-section': 'buttonclearselection',
@@ -7,13 +7,14 @@ exports.default = {
7
7
  return ({
8
8
  'class': [
9
9
  { 'w-max': !context.showSearchInput },
10
- 'focus-within:ring-2 focus-within:ring-primary-400 focus-within:outline-none rounded-sm',
10
+ 'ring-1 ring-general-500 rounded p-[5px]',
11
+ 'focus-within:ring-2 focus-within:ring-primary-500 focus-within:outline-none',
11
12
  ],
12
13
  'data-wv-section': 'buttontrigger',
13
14
  });
14
15
  },
15
16
  icon: {
16
- class: 'w-6 h-6 text-grayscale-900 shrink-0',
17
+ class: 'w-4 h-4 text-general-400 shrink-0',
17
18
  },
18
19
  },
19
20
  collapsebutton: {
@@ -22,13 +23,13 @@ exports.default = {
22
23
  return ({
23
24
  'class': [
24
25
  { 'w-max': !context.showSearchInput },
25
- 'focus-within:ring-2 focus-within:ring-primary-400 focus-within:outline-none rounded-sm',
26
+ 'focus-within:ring-2 focus-within:ring-primary-500 focus-within:outline-none rounded',
26
27
  ],
27
28
  'data-wv-section': 'collapsebutton',
28
29
  });
29
30
  },
30
31
  icon: {
31
- class: 'w-6 h-6 text-grayscale-900 shrink-0',
32
+ class: 'w-4 h-4 text-general-400 shrink-0',
32
33
  },
33
34
  },
34
35
  resetbutton: {
@@ -37,12 +38,12 @@ exports.default = {
37
38
  return ({
38
39
  'class': [
39
40
  { invisible: !query },
40
- 'focus-within:ring-2 focus-within:ring-primary-400 focus-within:outline-none rounded-sm',
41
+ 'focus-within:ring-2 focus-within:ring-primary-500 focus-within:outline-none rounded',
41
42
  ],
42
43
  'data-wv-section': 'resetbutton',
43
44
  });
44
45
  },
45
- icon: { class: ['text-2xl shrink-0'] },
46
+ icon: { class: ['text-base shrink-0'] },
46
47
  },
47
48
  hiddensubmit: { class: 'hidden' },
48
49
  form: function (_a) {
@@ -50,13 +51,14 @@ exports.default = {
50
51
  return ({
51
52
  'class': [
52
53
  { show: context.showSearchInput },
53
- 'grid grid-cols-[max-content,auto,max-content] items-center gap-0.5 max-w-[224px] h-6',
54
- 'border-b border-primary-100',
54
+ 'grid grid-cols-[max-content,auto,max-content] items-center gap-1',
55
+ 'py-[5px] px-2 h-max max-w-[224px]',
56
+ 'ring-inset ring-1 ring-general-500 rounded focus-within:outline-none focus-within:ring-primary-500 focus-within:ring-2',
55
57
  ],
56
58
  'data-wv-section': 'form',
57
59
  });
58
60
  },
59
61
  inputtext: {
60
- class: '!h-max',
62
+ class: '!h-max !py-0 !px-0',
61
63
  },
62
64
  };
@@ -1,54 +1,52 @@
1
1
  {
2
- "primary-50": "#F8F7EE",
3
- "primary-100": "#EEEBD3",
4
- "primary-200": "#DFD7A9",
5
- "primary-300": "#CDBC77",
6
- "primary-400": "#BDA552",
7
- "primary-500": "#9F7C3C",
8
- "primary-600": "#856732",
9
- "primary-700": "#785930",
10
- "primary-800": "#65492E",
11
- "primary-900": "#583F2B",
12
- "primary-950": "#322116",
13
- "primary-1000": "#695200",
2
+ "primary-50": "#e5f0ff",
3
+ "primary-100": "#cce0ff",
4
+ "primary-200": "#94bfff",
5
+ "primary-300": "#61a0ff",
6
+ "primary-400": "#2e82ff",
7
+ "primary-500": "#0063f7",
8
+ "primary-600": "#0050c7",
9
+ "primary-700": "#003b94",
10
+ "primary-800": "#002761",
11
+ "primary-900": "#001433",
12
+ "primary-950": "#000a19",
14
13
 
15
- "danger-50": "#E7C3B6",
16
- "danger-100": "#E7C3B6",
17
- "danger-200": "#DBA592",
18
- "danger-300": "#CF876D",
19
- "danger-400": "#C36948",
20
- "danger-500": "#B74B24",
21
- "danger-600": "#993F1E",
22
- "danger-700": "#7A3218",
23
- "danger-800": "#5C2612",
24
- "danger-900": "#3D190C",
25
- "danger-950": "#1F0D06",
14
+ "danger-50": "#ffe5e9",
15
+ "danger-100": "#ffccd3",
16
+ "danger-200": "#ff99a7",
17
+ "danger-300": "#ff667a",
18
+ "danger-400": "#ff334e",
19
+ "danger-500": "#ff0022",
20
+ "danger-600": "#cc001b",
21
+ "danger-700": "#990014",
22
+ "danger-800": "#66000e",
23
+ "danger-900": "#330007",
24
+ "danger-950": "#190003",
26
25
 
27
- "warning-50": "#F9EFD9",
28
- "warning-100": "#F3E0B3",
29
- "warning-200": "#EDD08E",
30
- "warning-300": "#E7C068",
31
- "warning-400": "#E1B142",
32
- "warning-500": "#DBA11C",
33
- "warning-600": "#B78617",
34
- "warning-700": "#926B13",
35
- "warning-800": "#6E510E",
36
- "warning-900": "#493609",
37
- "warning-950": "#251B05",
26
+ "warning-50": "#fff9e5",
27
+ "warning-100": "#fff4cc",
28
+ "warning-200": "#ffe999",
29
+ "warning-300": "#ffde66",
30
+ "warning-400": "#ffd333",
31
+ "warning-500": "#ffc700",
32
+ "warning-600": "#cca000",
33
+ "warning-700": "#997800",
34
+ "warning-800": "#665000",
35
+ "warning-900": "#332800",
36
+ "warning-950": "#191400",
37
+
38
+ "success-50": "#dbffee",
39
+ "success-100": "#b8ffdc",
40
+ "success-200": "#75ffbc",
41
+ "success-300": "#2eff9a",
42
+ "success-400": "#00eb79",
43
+ "success-500": "#00a455",
44
+ "success-600": "#008545",
45
+ "success-700": "#006132",
46
+ "success-800": "#004222",
47
+ "success-900": "#001f10",
48
+ "success-950": "#000f08",
38
49
 
39
- "success-50": "#D5EDEB",
40
- "success-100": "#AADBD6",
41
- "success-200": "#80C9C2",
42
- "success-300": "#55B7AD",
43
- "success-400": "#2AA599",
44
- "success-500": "#009384",
45
- "success-600": "#007B6E",
46
- "success-700": "#006258",
47
- "success-800": "#004A42",
48
- "success-900": "#00312C",
49
- "success-950": "#001916",
50
- "success-1000": "#00A455",
51
-
52
50
  "grayscale-50": "#f7f7f7",
53
51
  "grayscale-100": "#f2f2f2",
54
52
  "grayscale-200": "#e5e6e6",
@@ -61,17 +59,15 @@
61
59
  "grayscale-900": "#262627",
62
60
  "grayscale-950": "#121212",
63
61
 
64
- "general-50": "#EBEAF0",
65
- "general-100": "#DAD9E3",
66
- "general-200": "#B5B3C7",
67
- "general-300": "#908CAB",
68
- "general-400": "#6C688D",
69
- "general-500": "#4E4B66",
70
- "general-600": "#3F3C52",
71
- "general-700": "#2F2D3E",
72
- "general-800": "#201E29",
73
- "general-900": "#100F15",
74
- "general-950": "#070609",
75
-
76
- "link": "#0000EE"
77
- }
62
+ "general-50": "#ebeaf0",
63
+ "general-100": "#dad9e3",
64
+ "general-200": "#b5b3c7",
65
+ "general-300": "#908cab",
66
+ "general-400": "#6c688d",
67
+ "general-500": "#4e4b66",
68
+ "general-600": "#3f3c52",
69
+ "general-700": "#2f2d3e",
70
+ "general-800": "#201e29",
71
+ "general-900": "#100f15",
72
+ "general-950": "#070609"
73
+ }