mediacube-ui 0.1.215 → 0.1.217

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/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.1.217](https://github.com/MediaCubeCo/mcui/compare/v0.1.216...v0.1.217) (2024-02-02)
6
+
7
+ ### [0.1.216](https://github.com/MediaCubeCo/mcui/compare/v0.1.215...v0.1.216) (2024-02-02)
8
+
5
9
  ### [0.1.215](https://github.com/MediaCubeCo/mcui/compare/v0.1.214...v0.1.215) (2024-01-30)
6
10
 
7
11
  ### [0.1.214](https://github.com/MediaCubeCo/mcui/compare/v0.1.213...v0.1.214) (2024-01-26)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mediacube-ui",
3
- "version": "0.1.215",
3
+ "version": "0.1.217",
4
4
  "description": "Design system for Mediacube services",
5
5
  "author": "Mediacube",
6
6
  "private": false,
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <label class="mc-field-radio-button" :class="classes">
2
+ <label class="mc-field-radio-button" :class="classes" :style="styles">
3
3
  <input v-bind="inputProps" @change="handleChange" />
4
4
  <span class="mc-field-radio-button__icon"></span>
5
5
  <span v-if="label || $slots.default" class="mc-field-radio-button__text">
@@ -76,6 +76,13 @@ export default {
76
76
  type: String,
77
77
  default: 'circle',
78
78
  },
79
+ /**
80
+ * цвет
81
+ */
82
+ color: {
83
+ type: String,
84
+ default: 'purple',
85
+ },
79
86
  },
80
87
  computed: {
81
88
  classes() {
@@ -96,6 +103,11 @@ export default {
96
103
  type: 'radio',
97
104
  }
98
105
  },
106
+ styles() {
107
+ return {
108
+ '--mc-field-radio-button-color': this.color && `var(--color-${this.color})`,
109
+ }
110
+ },
99
111
  },
100
112
  methods: {
101
113
  handleChange(event) {
@@ -111,8 +123,8 @@ export default {
111
123
 
112
124
  <style lang="scss">
113
125
  .mc-field-radio-button {
126
+ --mc-field-radio-button-color: initial;
114
127
  $block-name: &;
115
-
116
128
  display: inline-block;
117
129
  min-width: $size-250;
118
130
  min-height: $size-250;
@@ -161,10 +173,10 @@ export default {
161
173
 
162
174
  &:checked ~ #{$block-name}__icon {
163
175
  &::before {
164
- border-color: $color-purple;
176
+ border-color: var(--mc-field-radio-button-color);
165
177
  }
166
178
  &::after {
167
- background-color: $color-purple;
179
+ background-color: var(--mc-field-radio-button-color);
168
180
  }
169
181
  }
170
182
  }
@@ -346,7 +346,7 @@ export default {
346
346
  label: 'name',
347
347
  trackBy: 'value',
348
348
  value: this._value,
349
- loading: true,
349
+ loading: this.loading,
350
350
  options: this.computedOptions,
351
351
  searchable: this.searchable,
352
352
  showLabels: this.showLabels,