webcake-ui-kit 1.3.0 → 1.3.2
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 +1 -1
- package/src/components/badge/badge.css +2 -2
- package/src/components/button/Button.vue +3 -1
- package/src/components/button/button.css +16 -8
- package/src/components/input/input.css +6 -0
- package/src/components/input-counter/input-counter.css +5 -0
- package/src/components/input-number/input-number.css +5 -0
- package/src/components/sidebar-item/sidebar_item.css +1 -1
- package/src/components/table/style/table-wrapper.css +6 -3
- package/src/components/tag/Tag.vue +9 -3
- package/src/components/tag/tag.css +26 -5
- package/src/components/textarea/textarea.css +4 -0
- package/src/styles/chart_colors.css +4 -4
- package/src/styles/color_general.css +11 -6
- package/src/styles/shadow.css +1 -1
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
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:
|
|
11
|
+
font-weight: 500;
|
|
12
12
|
white-space: nowrap;
|
|
13
13
|
transition: box-shadow 0.15s ease;
|
|
14
14
|
border-width: 1px;
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
border-color: var(--positive-border-subtle);
|
|
29
29
|
}
|
|
30
30
|
.ui-badge--secondary {
|
|
31
|
-
background: var(--
|
|
31
|
+
background: var(--tertiary-bg);
|
|
32
32
|
color: var(--secondary-fg);
|
|
33
33
|
border: none;
|
|
34
34
|
}
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
`ui-btn--${size}`,
|
|
7
7
|
`ui-btn--round-${roundness}`,
|
|
8
8
|
isIconOnly && 'ui-btn--icon-only',
|
|
9
|
-
loading && 'ui-btn--loading'
|
|
9
|
+
loading && 'ui-btn--loading',
|
|
10
|
+
active && 'ui-btn--active'
|
|
10
11
|
]"
|
|
11
12
|
:type="htmlType"
|
|
12
13
|
:disabled="disabled || loading"
|
|
@@ -64,6 +65,7 @@ export default {
|
|
|
64
65
|
label: { type: String, default: '' },
|
|
65
66
|
disabled: { type: Boolean, default: false },
|
|
66
67
|
loading: { type: Boolean, default: false },
|
|
68
|
+
active: { type: Boolean, default: false },
|
|
67
69
|
htmlType: {
|
|
68
70
|
type: String,
|
|
69
71
|
default: 'button',
|
|
@@ -156,7 +156,8 @@
|
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
.ui-btn--primary:hover,
|
|
159
|
-
.ui-btn--primary:active
|
|
159
|
+
.ui-btn--primary:active,
|
|
160
|
+
.ui-btn--primary.ui-btn--active {
|
|
160
161
|
background: var(--primary-brand-hover);
|
|
161
162
|
}
|
|
162
163
|
|
|
@@ -167,7 +168,8 @@
|
|
|
167
168
|
}
|
|
168
169
|
|
|
169
170
|
.ui-btn--neutral:hover,
|
|
170
|
-
.ui-btn--neutral:active
|
|
171
|
+
.ui-btn--neutral:active,
|
|
172
|
+
.ui-btn--neutral.ui-btn--active {
|
|
171
173
|
background: var(--button-black-hover);
|
|
172
174
|
}
|
|
173
175
|
|
|
@@ -178,7 +180,8 @@
|
|
|
178
180
|
}
|
|
179
181
|
|
|
180
182
|
.ui-btn--secondary:hover,
|
|
181
|
-
.ui-btn--secondary:active
|
|
183
|
+
.ui-btn--secondary:active,
|
|
184
|
+
.ui-btn--secondary.ui-btn--active {
|
|
182
185
|
background: var(--secondary-hover);
|
|
183
186
|
}
|
|
184
187
|
|
|
@@ -191,7 +194,8 @@
|
|
|
191
194
|
}
|
|
192
195
|
|
|
193
196
|
.ui-btn--outline:hover,
|
|
194
|
-
.ui-btn--outline:active
|
|
197
|
+
.ui-btn--outline:active,
|
|
198
|
+
.ui-btn--outline.ui-btn--active {
|
|
195
199
|
background: var(--outline-hover);
|
|
196
200
|
box-shadow: none;
|
|
197
201
|
}
|
|
@@ -203,7 +207,8 @@
|
|
|
203
207
|
}
|
|
204
208
|
|
|
205
209
|
.ui-btn--ghost:hover,
|
|
206
|
-
.ui-btn--ghost:active
|
|
210
|
+
.ui-btn--ghost:active,
|
|
211
|
+
.ui-btn--ghost.ui-btn--active {
|
|
207
212
|
background: var(--ghost-hover);
|
|
208
213
|
}
|
|
209
214
|
|
|
@@ -214,7 +219,8 @@
|
|
|
214
219
|
}
|
|
215
220
|
|
|
216
221
|
.ui-btn--destructive:hover,
|
|
217
|
-
.ui-btn--destructive:active
|
|
222
|
+
.ui-btn--destructive:active,
|
|
223
|
+
.ui-btn--destructive.ui-btn--active {
|
|
218
224
|
background: var(--destructive-hover);
|
|
219
225
|
}
|
|
220
226
|
|
|
@@ -225,7 +231,8 @@
|
|
|
225
231
|
}
|
|
226
232
|
|
|
227
233
|
.ui-btn--ghost-destructive:hover,
|
|
228
|
-
.ui-btn--ghost-destructive:active
|
|
234
|
+
.ui-btn--ghost-destructive:active,
|
|
235
|
+
.ui-btn--ghost-destructive.ui-btn--active {
|
|
229
236
|
background: var(--destructive-subtle);
|
|
230
237
|
}
|
|
231
238
|
|
|
@@ -239,7 +246,8 @@
|
|
|
239
246
|
}
|
|
240
247
|
|
|
241
248
|
.ui-btn--link:hover,
|
|
242
|
-
.ui-btn--link:active
|
|
249
|
+
.ui-btn--link:active,
|
|
250
|
+
.ui-btn--link.ui-btn--active {
|
|
243
251
|
color: var(--primary-brand-hover);
|
|
244
252
|
}
|
|
245
253
|
|
|
@@ -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);
|
|
@@ -72,12 +72,15 @@
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
.ui-table__wrapper--ping-left ::v-deep .ui-table__cell--fixed-left__last {
|
|
75
|
-
box-shadow: var(--shadow-fixed-column-left);
|
|
76
75
|
border-inline-end: none !important;
|
|
77
76
|
}
|
|
78
77
|
|
|
79
|
-
.ui-table__wrapper--ping-
|
|
80
|
-
box-shadow:
|
|
78
|
+
.ui-table__wrapper--ping-left ::v-deep .ui-table__cell--fixed-left__last::after {
|
|
79
|
+
box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, 0.12);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.ui-table__wrapper--ping-right ::v-deep .ui-table__cell--fixed-right__first::before {
|
|
83
|
+
box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, 0.12);
|
|
81
84
|
}
|
|
82
85
|
|
|
83
86
|
.ui-table__wrapper ::v-deep .ui-table__cell--fixed-left,
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<span
|
|
3
|
-
:class="[
|
|
3
|
+
:class="[
|
|
4
|
+
'ui-tag',
|
|
5
|
+
`ui-tag--type-${type}`,
|
|
6
|
+
`ui-tag--${size}`,
|
|
7
|
+
{ 'ui-tag--with-icon': hasIcon, 'ui-tag--active': active }
|
|
8
|
+
]"
|
|
4
9
|
@click="handleClick"
|
|
5
10
|
>
|
|
6
11
|
<span v-if="hasIcon" class="ui-tag__icon"><slot name="icon" /></span>
|
|
@@ -31,12 +36,13 @@ export default {
|
|
|
31
36
|
type: String,
|
|
32
37
|
default: 'md',
|
|
33
38
|
validator: function (v) {
|
|
34
|
-
return ['sm', 'md', 'lg'].includes(v)
|
|
39
|
+
return ['sm', 'md', 'lg', 'xl', 'huge'].includes(v)
|
|
35
40
|
}
|
|
36
41
|
},
|
|
37
42
|
counter: { type: Number, default: 0 },
|
|
38
43
|
closable: { type: Boolean, default: false },
|
|
39
|
-
label: { type: String, default: '' }
|
|
44
|
+
label: { type: String, default: '' },
|
|
45
|
+
active: { type: Boolean, default: false }
|
|
40
46
|
},
|
|
41
47
|
emits: ['close', 'click'],
|
|
42
48
|
computed: {
|
|
@@ -15,11 +15,12 @@
|
|
|
15
15
|
|
|
16
16
|
/* — type — */
|
|
17
17
|
.ui-tag--type-default {
|
|
18
|
-
background: var(--
|
|
18
|
+
background: var(--tertiary-bg);
|
|
19
19
|
color: var(--primary-fg);
|
|
20
20
|
}
|
|
21
|
-
.ui-tag--type-default:hover
|
|
22
|
-
|
|
21
|
+
.ui-tag--type-default:hover,
|
|
22
|
+
.ui-tag--type-default.ui-tag--active {
|
|
23
|
+
background: var(--tertiary-hover);
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
.ui-tag--type-outline {
|
|
@@ -27,7 +28,8 @@
|
|
|
27
28
|
border: 1px solid var(--border-primary);
|
|
28
29
|
color: var(--secondary-fg);
|
|
29
30
|
}
|
|
30
|
-
.ui-tag--type-outline:hover
|
|
31
|
+
.ui-tag--type-outline:hover,
|
|
32
|
+
.ui-tag--type-outline.ui-tag--active {
|
|
31
33
|
background: rgba(0, 0, 0, 0.05);
|
|
32
34
|
color: var(--primary-fg);
|
|
33
35
|
}
|
|
@@ -37,19 +39,38 @@
|
|
|
37
39
|
|
|
38
40
|
.ui-tag--sm {
|
|
39
41
|
gap: var(--spacing-2xs);
|
|
42
|
+
height: 20px;
|
|
40
43
|
}
|
|
41
44
|
|
|
42
45
|
.ui-tag--md {
|
|
43
46
|
border-radius: var(--radius);
|
|
44
47
|
font-size: var(--paragraph-small-font-size);
|
|
45
48
|
line-height: var(--paragraph-small-line-height);
|
|
49
|
+
height: 24px;
|
|
46
50
|
}
|
|
47
51
|
|
|
48
52
|
.ui-tag--lg {
|
|
49
53
|
padding: var(--spacing-2xs) 10px;
|
|
50
|
-
border-radius: var(--
|
|
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);
|
|
51
71
|
font-size: var(--paragraph-small-font-size);
|
|
52
72
|
line-height: var(--paragraph-small-line-height);
|
|
73
|
+
height: 36px;
|
|
53
74
|
}
|
|
54
75
|
|
|
55
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-
|
|
33
|
-
--
|
|
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-
|
|
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-
|
|
164
|
-
--
|
|
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-
|
|
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);
|
package/src/styles/shadow.css
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
--shadow-2xl: 0px 25px 50px -12px var(--color-black-alpha-10);
|
|
11
11
|
--shadow-sonner: 0px 4px 12px 0px var(--color-black-alpha-10);
|
|
12
12
|
--shadow-fixed-column-left: 6px 0 6px -4px var(--color-black-alpha-10);
|
|
13
|
-
--shadow-fixed-column-right: -
|
|
13
|
+
--shadow-fixed-column-right: -10px 0 8px -8px rgba(5, 5, 5, 0.06);
|
|
14
14
|
|
|
15
15
|
--shadow-focus-ring: 0 0 0 3px var(--focus-ring);
|
|
16
16
|
--shadow-focus-ring-error: 0 0 0 3px var(--focus-ring-error);
|