webcake-ui-kit 1.2.3 → 1.2.4
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/menu/menu.css +0 -1
- package/src/components/popover/Popover.vue +1 -1
- package/src/components/select/Select.vue +16 -0
- package/src/components/select-option/SelectOption.vue +4 -1
- package/src/styles/chart_colors.css +8 -8
- package/src/styles/color_general.css +12 -0
package/package.json
CHANGED
|
@@ -87,6 +87,9 @@
|
|
|
87
87
|
</div>
|
|
88
88
|
</template>
|
|
89
89
|
<div class="ui-select__list" :style="listStyle">
|
|
90
|
+
<div v-if="hasContentHeader">
|
|
91
|
+
<slot name="contentHeader"></slot>
|
|
92
|
+
</div>
|
|
90
93
|
<slot>
|
|
91
94
|
<SelectOption
|
|
92
95
|
v-for="opt in filteredOptions"
|
|
@@ -107,6 +110,9 @@
|
|
|
107
110
|
</template>
|
|
108
111
|
</Empty>
|
|
109
112
|
</slot>
|
|
113
|
+
<div v-if="hasContentFooter">
|
|
114
|
+
<slot name="contentFooter"></slot>
|
|
115
|
+
</div>
|
|
110
116
|
</div>
|
|
111
117
|
</Menu>
|
|
112
118
|
</template>
|
|
@@ -148,6 +154,10 @@ export default {
|
|
|
148
154
|
default: 'md',
|
|
149
155
|
validator: v => ['sm', 'md', 'lg'].indexOf(v) !== -1
|
|
150
156
|
},
|
|
157
|
+
showChecked: {
|
|
158
|
+
type: Boolean,
|
|
159
|
+
default: false
|
|
160
|
+
},
|
|
151
161
|
value: {
|
|
152
162
|
type: [String, Array],
|
|
153
163
|
default: null
|
|
@@ -287,6 +297,12 @@ export default {
|
|
|
287
297
|
if (this.normalizedOptions.length === 0 && Object.keys(this.slotOptionVisible).length === 0) return true
|
|
288
298
|
return false
|
|
289
299
|
},
|
|
300
|
+
hasContentFooter() {
|
|
301
|
+
return !!((this.$scopedSlots && this.$scopedSlots['contentFooter']) || this.$slots['contentFooter'])
|
|
302
|
+
},
|
|
303
|
+
hasContentHeader() {
|
|
304
|
+
return !!((this.$scopedSlots && this.$scopedSlots['contentHeader']) || this.$slots['contentHeader'])
|
|
305
|
+
},
|
|
290
306
|
hasIconSlot() {
|
|
291
307
|
return !!((this.$scopedSlots && this.$scopedSlots['icon']) || this.$slots['icon'])
|
|
292
308
|
},
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
<span v-if="hasSuffix" class="ui-select-option__suffix">
|
|
25
25
|
<slot name="suffix" />
|
|
26
26
|
</span>
|
|
27
|
-
<WkiCheck v-if="isSelected && isMultiMode" :size="16" color="var(--muted-fg)" />
|
|
27
|
+
<WkiCheck v-if="isSelected && (isMultiMode || isShowChecked)" :size="16" color="var(--muted-fg)" />
|
|
28
28
|
</div>
|
|
29
29
|
</template>
|
|
30
30
|
|
|
@@ -128,6 +128,9 @@ export default {
|
|
|
128
128
|
},
|
|
129
129
|
isMultiMode() {
|
|
130
130
|
return !!(this.select && this.select.isMultiMode)
|
|
131
|
+
},
|
|
132
|
+
isShowChecked() {
|
|
133
|
+
return !!(this.select && this.select.showChecked)
|
|
131
134
|
}
|
|
132
135
|
},
|
|
133
136
|
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
--chart-4: #ffb900;
|
|
7
7
|
--chart-5: #fe9a00;
|
|
8
8
|
|
|
9
|
-
--positive: #009689;
|
|
10
|
-
--negative: #f54a00;
|
|
9
|
+
--chart-positive: #009689;
|
|
10
|
+
--chart-negative: #f54a00;
|
|
11
11
|
|
|
12
12
|
--fill: #bfdeffb3;
|
|
13
|
-
--stroke: #8ec5ff;
|
|
13
|
+
--chart-stroke: #8ec5ff;
|
|
14
14
|
--fill-2: #aaccffb3;
|
|
15
|
-
--stroke-2: #3f8dff;
|
|
15
|
+
--chart-stroke-2: #3f8dff;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.dark {
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
--chart-4: #ad46ff;
|
|
24
24
|
--chart-5: #ff2056;
|
|
25
25
|
|
|
26
|
-
--positive: #00bc7d;
|
|
27
|
-
--negative: #ff2056;
|
|
26
|
+
--chart-positive: #00bc7d;
|
|
27
|
+
--chart-negative: #ff2056;
|
|
28
28
|
|
|
29
29
|
--fill: #475d75b3;
|
|
30
|
-
--stroke: #8ec5ff;
|
|
30
|
+
--chart-stroke: #8ec5ff;
|
|
31
31
|
--fill-2: #1f4176b3;
|
|
32
|
-
--stroke-2: #3f8dff;
|
|
32
|
+
--chart-stroke-2: #3f8dff;
|
|
33
33
|
}
|
|
@@ -120,6 +120,18 @@
|
|
|
120
120
|
/* Effect */
|
|
121
121
|
--focus-ring: var(--color-neutral-200);
|
|
122
122
|
--focus-ring-error: var(--color-red-300);
|
|
123
|
+
|
|
124
|
+
/* Builder */
|
|
125
|
+
--layer-fg: var(--color-brand-neutrals-700);
|
|
126
|
+
--layer-hover-bg: var(--color-brand-neutrals-50);
|
|
127
|
+
--layer-accent-bg: var(--color-brand-neutrals-200);
|
|
128
|
+
--non-delete-layer-hover: var(--color-violet-50);
|
|
129
|
+
--non-delete-layer-accent: var(--color-violet-200);
|
|
130
|
+
|
|
131
|
+
--stroke: #3f8dff;
|
|
132
|
+
--stroke-hover: #8fbcff;
|
|
133
|
+
--non-delete-stroke: var(--color-violet-600);
|
|
134
|
+
--non-delete-stroke-hover: var(--color-violet-400);
|
|
123
135
|
}
|
|
124
136
|
|
|
125
137
|
.dark {
|