webcake-ui-kit 1.2.19 → 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 +1 -1
- package/src/components/button/Button.vue +3 -1
- package/src/components/button/button.css +16 -8
- package/src/components/input-number/InputNumber.vue +14 -4
- 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 +8 -2
- package/src/components/tag/tag.css +4 -2
- package/src/styles/shadow.css +1 -1
- package/src/styles/.omc/state/agent-replay-645326b7-372b-463d-ab45-0adaafe31a51.jsonl +0 -2
- package/src/styles/.omc/state/subagent-tracking.json +0 -7
package/package.json
CHANGED
|
@@ -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
|
|
|
@@ -68,7 +68,8 @@ export default {
|
|
|
68
68
|
},
|
|
69
69
|
error: { type: Boolean, default: false },
|
|
70
70
|
centered: { type: Boolean, default: false },
|
|
71
|
-
draggable: { type: Boolean, default: false }
|
|
71
|
+
draggable: { type: Boolean, default: false },
|
|
72
|
+
shiftStep: { type: Number, default: 10 }
|
|
72
73
|
},
|
|
73
74
|
emits: ['input', 'update:modelValue', 'change', 'focus', 'blur', 'pressEnter'],
|
|
74
75
|
data() {
|
|
@@ -77,13 +78,18 @@ export default {
|
|
|
77
78
|
inputText: '',
|
|
78
79
|
dragActive: false,
|
|
79
80
|
dragStartX: 0,
|
|
80
|
-
dragStartValue: 0
|
|
81
|
+
dragStartValue: 0,
|
|
82
|
+
dragShiftHeld: false,
|
|
81
83
|
}
|
|
82
84
|
},
|
|
83
85
|
computed: {
|
|
84
86
|
currentValue() {
|
|
85
87
|
return this.modelValue !== undefined ? this.modelValue : this.value
|
|
86
88
|
},
|
|
89
|
+
effectiveStep() {
|
|
90
|
+
if (this.shiftStep !== null && this.dragShiftHeld) return this.shiftStep
|
|
91
|
+
return this.step
|
|
92
|
+
},
|
|
87
93
|
hasPrefix() {
|
|
88
94
|
return !!((this.$scopedSlots && this.$scopedSlots['prefix']) || this.$slots['prefix'])
|
|
89
95
|
},
|
|
@@ -195,6 +201,7 @@ export default {
|
|
|
195
201
|
this.dragStartValue =
|
|
196
202
|
this.currentValue !== null && this.currentValue !== undefined ? Number(this.currentValue) : 0
|
|
197
203
|
this.dragActive = false
|
|
204
|
+
this.dragShiftHeld = e.shiftKey
|
|
198
205
|
document.addEventListener('mousemove', this.onDragMove)
|
|
199
206
|
document.addEventListener('mouseup', this.onDragEnd)
|
|
200
207
|
},
|
|
@@ -206,20 +213,23 @@ export default {
|
|
|
206
213
|
document.body.style.cursor = 'ew-resize'
|
|
207
214
|
if (this.$refs.input) this.$refs.input.blur()
|
|
208
215
|
}
|
|
209
|
-
|
|
216
|
+
this.dragShiftHeld = e.shiftKey
|
|
217
|
+
const newVal = this.clamp(this.toPrecision(this.dragStartValue + delta * this.effectiveStep))
|
|
210
218
|
this.$emit('input', newVal)
|
|
211
219
|
this.$emit('update:modelValue', newVal)
|
|
220
|
+
this.$emit('change', newVal)
|
|
212
221
|
},
|
|
213
222
|
onDragEnd(e) {
|
|
214
223
|
document.removeEventListener('mousemove', this.onDragMove)
|
|
215
224
|
document.removeEventListener('mouseup', this.onDragEnd)
|
|
216
225
|
if (this.dragActive) {
|
|
217
226
|
const delta = e.clientX - this.dragStartX
|
|
218
|
-
const newVal = this.clamp(this.toPrecision(this.dragStartValue + delta * this.
|
|
227
|
+
const newVal = this.clamp(this.toPrecision(this.dragStartValue + delta * this.effectiveStep))
|
|
219
228
|
this.$emit('change', newVal)
|
|
220
229
|
document.body.style.cursor = ''
|
|
221
230
|
}
|
|
222
231
|
this.dragActive = false
|
|
232
|
+
this.dragShiftHeld = false
|
|
223
233
|
},
|
|
224
234
|
onKeydown(e) {
|
|
225
235
|
if (e.key === 'ArrowUp') {
|
|
@@ -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>
|
|
@@ -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
|
}
|
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);
|