plugin-ui-for-kzt 0.0.66 → 0.0.67
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/dist/components/BaseCalendar/BaseCalendar.vue.d.ts +1 -1
- package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +2 -2
- package/dist/components/BaseDropdown/BaseDropdown.vue.d.ts +1 -1
- package/dist/components/BaseInput/BaseInput.vue.d.ts +2 -2
- package/dist/components/BaseInputCalendar/BaseInputCalendar.vue.d.ts +2 -2
- package/dist/components/BaseInputCurrency/BaseInputCurrency.vue.d.ts +2 -2
- package/dist/components/BaseInputEmail/BaseInputEmail.vue.d.ts +2 -2
- package/dist/components/BaseInputPhone/BaseInputPhone.vue.d.ts +2 -2
- package/dist/components/BaseRadio/BaseRadio.vue.d.ts +2 -2
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +1 -1
- package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +2 -2
- package/dist/components/BaseToggle/BaseToggle.vue.d.ts +2 -2
- package/dist/index.js +1 -1
- package/example/App.vue +0 -1
- package/package.json +3 -3
- package/src/components/BaseBadge/BaseBadge.vue +62 -38
- package/src/components/BaseBadge/README.md +1 -1
- package/src/types/utils.d.ts +1 -1
package/example/App.vue
CHANGED
|
@@ -80,7 +80,6 @@ import { ref } from 'vue';
|
|
|
80
80
|
import { useModal } from '../src/composables/useModal';
|
|
81
81
|
import BaseTextarea from '../src/components/BaseTextarea/BaseTextarea.vue';
|
|
82
82
|
import BaseInputCalendar from '../src/components/BaseInputCalendar/BaseInputCalendar.vue';
|
|
83
|
-
import MyCustomModal from './MyCustomModal.vue';
|
|
84
83
|
import BaseIcon from "../src/components/BaseIcon/BaseIcon.vue";
|
|
85
84
|
import BaseInputWithSelector from "../src/components/BaseInputWithSelector/BaseInputWithSelector.vue";
|
|
86
85
|
import BaseInput from "../src/components/BaseInput/BaseInput.vue";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "plugin-ui-for-kzt",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.67",
|
|
4
4
|
"description": "plugin-ui for kazaktelekom",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
"sass-loader": "^12.6.0",
|
|
38
38
|
"style-loader": "^4.0.0",
|
|
39
39
|
"svg-sprite-loader": "^6.0.11",
|
|
40
|
-
"svgo": "
|
|
40
|
+
"svgo": "4.0.1",
|
|
41
41
|
"svgo-loader": "^4.0.0",
|
|
42
42
|
"ts-loader": "^9.0.0",
|
|
43
43
|
"vue-loader": "^17.0.0",
|
|
44
|
-
"webpack": "
|
|
44
|
+
"webpack": "5.104.1",
|
|
45
45
|
"webpack-cli": "^5.0.0",
|
|
46
46
|
"webpack-dev-server": "^5.2.1"
|
|
47
47
|
},
|
|
@@ -14,7 +14,9 @@
|
|
|
14
14
|
<div class="base-badge__text">
|
|
15
15
|
<slot name="text"></slot>
|
|
16
16
|
</div>
|
|
17
|
-
|
|
17
|
+
<div
|
|
18
|
+
v-if="closable || arrowRightIcon"
|
|
19
|
+
class="base-badge__close">
|
|
18
20
|
<base-icon
|
|
19
21
|
v-if="closable"
|
|
20
22
|
class="base-badge__icon"
|
|
@@ -60,8 +62,6 @@ const classList = computed(() => [
|
|
|
60
62
|
@import '@/styles/root';
|
|
61
63
|
|
|
62
64
|
.base-badge {
|
|
63
|
-
cursor: pointer;
|
|
64
|
-
|
|
65
65
|
&__wrapper {
|
|
66
66
|
display: flex;
|
|
67
67
|
align-items: center;
|
|
@@ -83,6 +83,7 @@ const classList = computed(() => [
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
&__close {
|
|
86
|
+
cursor: pointer;
|
|
86
87
|
display: flex;
|
|
87
88
|
align-items: center;
|
|
88
89
|
}
|
|
@@ -92,41 +93,7 @@ const classList = computed(() => [
|
|
|
92
93
|
height: 8px;
|
|
93
94
|
border-radius: 50%;
|
|
94
95
|
background-color: currentColor;
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
&.--primary-color {
|
|
98
|
-
color: var(--primary-blue);
|
|
99
|
-
.base-badge__wrapper {
|
|
100
|
-
background: var(--primary-blue-50);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
&.--gray-color {
|
|
105
|
-
color: var(--primary-black-700);
|
|
106
|
-
.base-badge__wrapper {
|
|
107
|
-
background: var(--primary-black-100);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
&.--error-color {
|
|
112
|
-
color: var(--error-red);
|
|
113
|
-
.base-badge__wrapper {
|
|
114
|
-
background: var(--error-red-light-05);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
&.--warning-color {
|
|
119
|
-
color: var(--warning-orange);
|
|
120
|
-
.base-badge__wrapper {
|
|
121
|
-
background: var(--warning-orange-light-05);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
&.--success-color {
|
|
126
|
-
color: var(--success-green);
|
|
127
|
-
.base-badge__wrapper {
|
|
128
|
-
background: var(--success-green-light-05);
|
|
129
|
-
}
|
|
96
|
+
margin-right: var(--spacing-2s);
|
|
130
97
|
}
|
|
131
98
|
|
|
132
99
|
&.--extra-small-size {
|
|
@@ -184,5 +151,62 @@ const classList = computed(() => [
|
|
|
184
151
|
height: 20px;
|
|
185
152
|
}
|
|
186
153
|
}
|
|
154
|
+
|
|
155
|
+
&.--primary-color {
|
|
156
|
+
color: var(--primary-blue);
|
|
157
|
+
|
|
158
|
+
.base-badge__wrapper {
|
|
159
|
+
background: var(--primary-blue-50);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
&.--light-blue-color {
|
|
164
|
+
color: var(--primary-blue);
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
.base-badge__text {
|
|
168
|
+
background: var(--primary-black-white);
|
|
169
|
+
border: 1px solid var(--primary-blue-200);
|
|
170
|
+
border-radius: 16px;
|
|
171
|
+
padding: 1px 10px;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.base-badge__wrapper {
|
|
175
|
+
background: var(--primary-blue-50);
|
|
176
|
+
padding: 4px 4px 4px 14px;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
&.--gray-color {
|
|
181
|
+
color: var(--primary-black-700);
|
|
182
|
+
|
|
183
|
+
.base-badge__wrapper {
|
|
184
|
+
background: var(--primary-black-100);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
&.--error-color {
|
|
189
|
+
color: var(--error-red);
|
|
190
|
+
|
|
191
|
+
.base-badge__wrapper {
|
|
192
|
+
background: var(--error-red-light-05);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
&.--warning-color {
|
|
197
|
+
color: var(--warning-orange);
|
|
198
|
+
|
|
199
|
+
.base-badge__wrapper {
|
|
200
|
+
background: var(--warning-orange-light-05);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
&.--success-color {
|
|
205
|
+
color: var(--success-green);
|
|
206
|
+
|
|
207
|
+
.base-badge__wrapper {
|
|
208
|
+
background: var(--success-green-light-05);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
187
211
|
}
|
|
188
212
|
</style>
|
|
@@ -21,7 +21,7 @@ import BaseBadge from './BaseBadge.vue';
|
|
|
21
21
|
| Параметр | Тип | По умолчанию | Описание |
|
|
22
22
|
|-------------------|----------------------|----------------|--------------------------------------------|
|
|
23
23
|
| `size` | `'extra-small' | 'small' | 'medium' | 'large'` | `'medium'` | Размер бейджа (влияет на шрифт и отступы). |
|
|
24
|
-
| `color` | `'primary' | 'gray' | 'error' | 'warning' | 'success'` | Цветовая схема бейджа. |
|
|
24
|
+
| `color` | `'primary' | 'light-blue' | 'gray' | 'error' | 'warning' | 'success'` | Цветовая схема бейджа. |
|
|
25
25
|
| `hasDot` | `boolean` | `false` | Отображение точки-индикатора слева. |
|
|
26
26
|
| `closable` | `boolean` | `false` | Отображение иконки закрытия справа. |
|
|
27
27
|
| `arrowUpIcon` | `boolean` | `false` | Отображение иконки стрелки вверх слева. |
|
package/src/types/utils.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export type Nullable<T> = T | null;
|
|
|
2
2
|
|
|
3
3
|
export type TCoreSize = 'large' | 'medium' | 'small' | 'extra-small' | 'custom';
|
|
4
4
|
|
|
5
|
-
export type TCoreColor = string | 'primary' | 'secondary' | 'tertiary-gray' | 'tertiary-blue' | 'quaternary-gray' | 'quaternary-blue' | 'link-blue' | 'link-critical' | 'link-gray' | 'gray' | 'error' | 'warning' | 'success' | 'custom';
|
|
5
|
+
export type TCoreColor = string | 'primary' | 'secondary' | 'tertiary-gray' | 'tertiary-blue' | 'quaternary-gray' | 'quaternary-blue' | 'link-blue' | 'link-critical' | 'link-gray' | 'gray' | 'error' | 'warning' | 'success' | 'light-blue' | 'custom';
|
|
6
6
|
export type TCoreInteractiveTag = 'link' | 'button' | 'span' | 'div' | 'a';
|
|
7
7
|
|
|
8
8
|
export interface ICoreSize {
|