webcake-ui-kit 1.3.1 → 1.3.3

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webcake-ui-kit",
3
- "version": "1.3.1",
3
+ "version": "1.3.3",
4
4
  "description": "UI Kit for Vue 2 && 3 - Pure Options API",
5
5
  "main": "src/index.js",
6
6
  "module": "src/index.js",
@@ -8,11 +8,12 @@
8
8
  font-size: var(--paragraph-mini-font-size);
9
9
  line-height: var(--paragraph-mini-line-height);
10
10
  letter-spacing: var(--paragraph-mini-letter-spacing);
11
- font-weight: var(--paragraph-bold-font-weight);
11
+ font-weight: 500;
12
12
  white-space: nowrap;
13
13
  transition: box-shadow 0.15s ease;
14
14
  border-width: 1px;
15
15
  border-style: solid;
16
+ height: 20px;
16
17
  }
17
18
 
18
19
  .ui-badge--round-default {
@@ -28,7 +29,7 @@
28
29
  border-color: var(--positive-border-subtle);
29
30
  }
30
31
  .ui-badge--secondary {
31
- background: var(--secondary-bg);
32
+ background: var(--tertiary-bg);
32
33
  color: var(--secondary-fg);
33
34
  border: none;
34
35
  }
@@ -182,7 +182,7 @@ export default {
182
182
  size: {
183
183
  type: String,
184
184
  default: 'md',
185
- validator: v => ['sm', 'md', 'lg'].includes(v)
185
+ validator: v => ['xs', 'sm', 'md', 'lg'].includes(v)
186
186
  },
187
187
  todayText: { type: String, default: 'Today' },
188
188
  clearText: { type: String, default: 'Clear' },
@@ -24,6 +24,12 @@
24
24
  }
25
25
 
26
26
  .ui-date-picker__trigger--sm {
27
+ height: 32px;
28
+ gap: var(--spacing-6);
29
+ padding: 0 var(--spacing-xs);
30
+ }
31
+
32
+ .ui-date-picker__trigger--xs {
27
33
  height: 28px;
28
34
  padding: 0 var(--spacing-xs);
29
35
  font-size: var(--paragraph-mini-font-size);
@@ -75,6 +75,11 @@
75
75
  border-radius: var(--rounded-full);
76
76
  }
77
77
 
78
+ /* Hover */
79
+ .ui-input:hover:not(.ui-input--disabled):not(.ui-input--error) {
80
+ border-color: var(--border-focus);
81
+ }
82
+
78
83
  /* Focus (interactive) — wrapper highlights when inner field is focused. */
79
84
  .ui-input:focus-within {
80
85
  border-color: var(--border-focus);
@@ -116,6 +121,7 @@
116
121
  color: inherit;
117
122
  font: inherit;
118
123
  letter-spacing: inherit;
124
+ text-overflow: ellipsis;
119
125
  }
120
126
 
121
127
  .ui-input__field::placeholder {
@@ -77,6 +77,11 @@
77
77
  border-radius: var(--rounded-full);
78
78
  }
79
79
 
80
+ /* Hover */
81
+ .ui-input-counter:hover:not(.ui-input-counter--disabled):not(.ui-input-counter--error) {
82
+ border-color: var(--border-focus);
83
+ }
84
+
80
85
  /* Focus (interactive) — wrapper highlights when the inner field is focused. */
81
86
  .ui-input-counter:focus-within {
82
87
  border-color: var(--border-focus);
@@ -73,6 +73,11 @@
73
73
  border-radius: var(--rounded-full);
74
74
  }
75
75
 
76
+ /* Hover */
77
+ .ui-input-number:hover:not(.ui-input-number--disabled):not(.ui-input-number--error) {
78
+ border-color: var(--border-focus);
79
+ }
80
+
76
81
  .ui-input-number:focus-within {
77
82
  border-color: var(--border-focus);
78
83
  box-shadow: 0 0 0 3px var(--focus-ring);
@@ -36,7 +36,7 @@ export default {
36
36
  type: String,
37
37
  default: 'md',
38
38
  validator: function (v) {
39
- return ['sm', 'md', 'lg'].includes(v)
39
+ return ['sm', 'md', 'lg', 'xl', 'huge'].includes(v)
40
40
  }
41
41
  },
42
42
  counter: { type: Number, default: 0 },
@@ -15,12 +15,12 @@
15
15
 
16
16
  /* — type — */
17
17
  .ui-tag--type-default {
18
- background: var(--secondary-bg);
18
+ background: var(--tertiary-bg);
19
19
  color: var(--primary-fg);
20
20
  }
21
21
  .ui-tag--type-default:hover,
22
22
  .ui-tag--type-default.ui-tag--active {
23
- background: #f0f0f0;
23
+ background: var(--tertiary-hover);
24
24
  }
25
25
 
26
26
  .ui-tag--type-outline {
@@ -39,19 +39,38 @@
39
39
 
40
40
  .ui-tag--sm {
41
41
  gap: var(--spacing-2xs);
42
+ height: 20px;
42
43
  }
43
44
 
44
45
  .ui-tag--md {
45
46
  border-radius: var(--radius);
46
47
  font-size: var(--paragraph-small-font-size);
47
48
  line-height: var(--paragraph-small-line-height);
49
+ height: 24px;
48
50
  }
49
51
 
50
52
  .ui-tag--lg {
51
53
  padding: var(--spacing-2xs) 10px;
52
- border-radius: var(--radius-10);
54
+ border-radius: var(--rounded-xl);
55
+ font-size: var(--paragraph-small-font-size);
56
+ line-height: var(--paragraph-small-line-height);
57
+ height: 28px;
58
+ }
59
+
60
+ .ui-tag--xl {
61
+ padding: var(--spacing-6) var(--spacing-10) var(--spacing-6) var(--spacing-xs);
62
+ border-radius: var(--rounded-xl);
63
+ font-size: var(--paragraph-small-font-size);
64
+ line-height: var(--paragraph-small-line-height);
65
+ height: 32px;
66
+ }
67
+
68
+ .ui-tag--huge {
69
+ padding: var(--spacing-xs) var(--spacing-sm) var(--spacing-xs) var(--spacing-10);
70
+ border-radius: var(--rounded-xl);
53
71
  font-size: var(--paragraph-small-font-size);
54
72
  line-height: var(--paragraph-small-line-height);
73
+ height: 36px;
55
74
  }
56
75
 
57
76
  /* reduce left padding when icon slot is present */
@@ -25,6 +25,10 @@
25
25
  border-radius: var(--radius-18);
26
26
  }
27
27
 
28
+ .ui-textarea:hover:not(.ui-textarea--disabled):not(.ui-textarea--error) {
29
+ border-color: var(--border-focus);
30
+ }
31
+
28
32
  /* Focus (interactive) — wrapper highlights when the field is focused. */
29
33
  .ui-textarea:focus-within {
30
34
  border-color: var(--border-focus);
@@ -9,9 +9,9 @@
9
9
  --chart-positive: #009689;
10
10
  --chart-negative: #f54a00;
11
11
 
12
- --fill: #bfdeffb3;
12
+ --chart-fill: #bfdeffb3;
13
13
  --chart-stroke: #8ec5ff;
14
- --fill-2: #aaccffb3;
14
+ --chart-fill-2: #aaccffb3;
15
15
  --chart-stroke-2: #3f8dff;
16
16
  }
17
17
 
@@ -26,8 +26,8 @@
26
26
  --chart-positive: #00bc7d;
27
27
  --chart-negative: #ff2056;
28
28
 
29
- --fill: #475d75b3;
29
+ --chart-fill: #475d75b3;
30
30
  --chart-stroke: #8ec5ff;
31
- --fill-2: #1f4176b3;
31
+ --chart-fill-2: #1f4176b3;
32
32
  --chart-stroke-2: #3f8dff;
33
33
  }
@@ -29,10 +29,11 @@
29
29
 
30
30
  /* Start: Unofficial */
31
31
  --primary-hover: var(--color-brand-neutrals-50);
32
- --secondary-hover: var(--color-brand-neutrals-50);
33
- --primary-brand-hover: var(--color-brand-shades-500);
32
+ --secondary-hover: var(--color-brand-neutrals-200);
33
+ --tertiary-hover: var(--color-brand-neutrals-300);
34
+ --primary-brand-hover: var(--color-brand-shades-700);
34
35
  --destructive-text: var(--color-red-600);
35
- --destructive-hover: var(--color-red-500);
36
+ --destructive-hover: var(--color-red-700);
36
37
  --destructive-subtle: var(--color-red-50);
37
38
  --destructive-border: var(--color-red-500);
38
39
  --destructive-border-subtle: var(--color-red-200);
@@ -128,6 +129,9 @@
128
129
  --non-delete-layer-hover: var(--color-violet-50);
129
130
  --non-delete-layer-accent: var(--color-violet-200);
130
131
 
132
+ --fill: rgba(63, 141, 255, 0.1);
133
+ --non-delete-fill: rgba(168, 85, 247, 0.1);
134
+
131
135
  --stroke: #3f8dff;
132
136
  --stroke-hover: #8fbcff;
133
137
  --non-delete-stroke: var(--color-violet-600);
@@ -160,10 +164,11 @@
160
164
 
161
165
  /* Start: Unofficial */
162
166
  --primary-hover: var(--color-brand-neutrals-950);
163
- --secondary-hover: var(--color-brand-neutrals-900);
164
- --primary-brand-hover: var(--color-brand-shades-500);
167
+ --secondary-hover: var(--color-brand-neutrals-800);
168
+ --tertiary-hover: var(--color-brand-neutrals-700);
169
+ --primary-brand-hover: var(--color-brand-shades-300);
165
170
  --destructive-text: var(--color-red-400);
166
- --destructive-hover: var(--color-red-500);
171
+ --destructive-hover: var(--color-red-300);
167
172
  --destructive-subtle: var(--color-red-950);
168
173
  --destructive-border: var(--color-red-500);
169
174
  --destructive-border-subtle: var(--color-red-800);