webcake-ui-kit 1.3.0 → 1.3.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webcake-ui-kit",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "UI Kit for Vue 2 && 3 - Pure Options API",
5
5
  "main": "src/index.js",
6
6
  "module": "src/index.js",
@@ -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
 
@@ -4,7 +4,7 @@
4
4
  gap: var(--spacing-xs);
5
5
  width: 100%;
6
6
  padding: var(--spacing-2xs) var(--spacing-xs);
7
- border-radius: var(--radius-6);
7
+ border-radius: var(--radius);
8
8
  color: var(--color-brand-neutrals-700);
9
9
  background: transparent;
10
10
  border: none;
@@ -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-right ::v-deep .ui-table__cell--fixed-right__first {
80
- box-shadow: var(--shadow-fixed-column-right);
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="['ui-tag', `ui-tag--type-${type}`, `ui-tag--${size}`, { 'ui-tag--with-icon': hasIcon }]"
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>
@@ -36,7 +41,8 @@ export default {
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: {
@@ -18,7 +18,8 @@
18
18
  background: var(--secondary-bg);
19
19
  color: var(--primary-fg);
20
20
  }
21
- .ui-tag--type-default:hover {
21
+ .ui-tag--type-default:hover,
22
+ .ui-tag--type-default.ui-tag--active {
22
23
  background: #f0f0f0;
23
24
  }
24
25
 
@@ -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
  }
@@ -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: -6px 0 6px -4px var(--color-black-alpha-10);
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);