webcake-ui-kit 1.3.4 → 1.3.6
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/dialog/Dialog.vue +6 -1
- package/src/components/dialog/dialog.css +7 -1
- package/src/components/item/Item.vue +26 -12
- package/src/components/item/item.css +7 -0
- package/src/components/radio/Radio.vue +1 -1
- package/src/components/radio/radio.css +0 -1
- package/src/styles/.omc/state/agent-replay-645326b7-372b-463d-ab45-0adaafe31a51.jsonl +2 -0
- package/src/styles/.omc/state/subagent-tracking.json +7 -0
package/package.json
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
<div class="ui-dialog-header__row">
|
|
23
23
|
<slot name="header">
|
|
24
24
|
<div v-if="hasTitle" class="ui-dialog-header__content">
|
|
25
|
-
<div class="ui-dialog-header__title">
|
|
25
|
+
<div :class="['ui-dialog-header__title', `ui-dialog-header__title__size-${headerSize}`]">
|
|
26
26
|
<slot name="title">{{ title }}</slot>
|
|
27
27
|
</div>
|
|
28
28
|
</div>
|
|
@@ -117,6 +117,11 @@ export default {
|
|
|
117
117
|
closable: { type: Boolean, default: true },
|
|
118
118
|
showHeader: { type: Boolean, default: true },
|
|
119
119
|
headerDivider: { type: Boolean, default: true },
|
|
120
|
+
headerSize: {
|
|
121
|
+
type: String,
|
|
122
|
+
default: 'md',
|
|
123
|
+
validator: v => ['sm', 'md'].includes(v)
|
|
124
|
+
},
|
|
120
125
|
footer: { type: Boolean, default: true },
|
|
121
126
|
footerAlign: {
|
|
122
127
|
type: String,
|
|
@@ -133,13 +133,19 @@
|
|
|
133
133
|
.ui-dialog-header__title {
|
|
134
134
|
width: 100%;
|
|
135
135
|
font-family: var(--heading-4-font-family);
|
|
136
|
-
font-size: var(--heading-4-font-size);
|
|
137
136
|
line-height: var(--heading-4-line-height);
|
|
138
137
|
letter-spacing: var(--heading-4-letter-spacing);
|
|
139
138
|
font-weight: var(--heading-4-font-weight);
|
|
140
139
|
color: var(--primary-fg);
|
|
141
140
|
}
|
|
142
141
|
|
|
142
|
+
.ui-dialog-header__title__size-sm {
|
|
143
|
+
font-size: var(--paragraph-regular-font-size);
|
|
144
|
+
}
|
|
145
|
+
.ui-dialog-header__title__size-md {
|
|
146
|
+
font-size: var(--heading-4-font-size);
|
|
147
|
+
}
|
|
148
|
+
|
|
143
149
|
.ui-dialog-header__sub-text {
|
|
144
150
|
width: 100%;
|
|
145
151
|
font-family: var(--paragraph-small-font-family);
|
|
@@ -10,7 +10,13 @@
|
|
|
10
10
|
]"
|
|
11
11
|
:style="{ width: typeof width == 'string' ? width : `${width}px` }"
|
|
12
12
|
>
|
|
13
|
-
<div class="ui-item--
|
|
13
|
+
<div v-if="showRadio" class="ui-item-radio--container">
|
|
14
|
+
<Radio :checked="checked" />
|
|
15
|
+
</div>
|
|
16
|
+
<div v-if="showCheckbox" class="ui-item-checkbox--container">
|
|
17
|
+
<Checkbox :checked="checked" />
|
|
18
|
+
</div>
|
|
19
|
+
<div v-if="$slots.prefix" class="ui-item--prefix">
|
|
14
20
|
<slot name="prefix"></slot>
|
|
15
21
|
</div>
|
|
16
22
|
<slot>
|
|
@@ -18,20 +24,29 @@
|
|
|
18
24
|
<div class="ui-item--label wk-paragraph-small wk-weight-medium">
|
|
19
25
|
{{ label }}
|
|
20
26
|
</div>
|
|
21
|
-
<div v-if="description
|
|
27
|
+
<div v-if="description" class="ui-item--description wk-paragraph-mini">
|
|
22
28
|
{{ description }}
|
|
23
29
|
</div>
|
|
24
30
|
</div>
|
|
25
31
|
</slot>
|
|
26
|
-
<div class="ui-item--
|
|
32
|
+
<div v-if="showCheckboxSuffix" class="ui-item-checkbox--container">
|
|
33
|
+
<Checkbox :checked="checked" />
|
|
34
|
+
</div>
|
|
35
|
+
<div v-if="$slots.prefix" class="ui-item--suffix">
|
|
27
36
|
<slot name="suffix"></slot>
|
|
28
37
|
</div>
|
|
29
38
|
</div>
|
|
30
39
|
</template>
|
|
31
40
|
|
|
32
41
|
<script>
|
|
42
|
+
import Radio from '../radio/Radio.vue'
|
|
43
|
+
import Checkbox from '../checkbox/Checkbox.vue'
|
|
33
44
|
export default {
|
|
34
45
|
name: 'WkItem',
|
|
46
|
+
components: {
|
|
47
|
+
Radio,
|
|
48
|
+
Checkbox
|
|
49
|
+
},
|
|
35
50
|
props: {
|
|
36
51
|
label: String,
|
|
37
52
|
variant: {
|
|
@@ -54,17 +69,16 @@ export default {
|
|
|
54
69
|
description: String,
|
|
55
70
|
width: {
|
|
56
71
|
type: [String, Number]
|
|
57
|
-
}
|
|
72
|
+
},
|
|
73
|
+
showRadio: Boolean,
|
|
74
|
+
showCheckbox: Boolean,
|
|
75
|
+
showCheckboxSuffix: Boolean,
|
|
76
|
+
checked: Boolean
|
|
58
77
|
},
|
|
59
78
|
emits: [],
|
|
60
|
-
data() {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
computed: {
|
|
66
|
-
// Add computed properties
|
|
67
|
-
},
|
|
79
|
+
data() {},
|
|
80
|
+
mounted() {},
|
|
81
|
+
computed: {},
|
|
68
82
|
methods: {
|
|
69
83
|
// Add methods
|
|
70
84
|
}
|