plugin-ui-for-kzt 0.0.67 → 0.0.68

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/example/App.vue CHANGED
@@ -77,17 +77,14 @@
77
77
  </template>
78
78
  <script setup lang="ts">
79
79
  import { ref } from 'vue';
80
- import { useModal } from '../src/composables/useModal';
81
80
  import BaseTextarea from '../src/components/BaseTextarea/BaseTextarea.vue';
82
81
  import BaseInputCalendar from '../src/components/BaseInputCalendar/BaseInputCalendar.vue';
83
82
  import BaseIcon from "../src/components/BaseIcon/BaseIcon.vue";
84
83
  import BaseInputWithSelector from "../src/components/BaseInputWithSelector/BaseInputWithSelector.vue";
85
84
  import BaseInput from "../src/components/BaseInput/BaseInput.vue";
86
85
 
87
- const { open } = useModal();
88
86
 
89
87
  const search = ref<string>( '' );
90
- const searchs = ref<any>( '' );
91
88
  const searchType = ref<string | number>( "iin" );
92
89
  const clearableSearch = ref<string>( 'Search text' );
93
90
  const clearableSearchType = ref<string | number>( "bin" );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plugin-ui-for-kzt",
3
- "version": "0.0.67",
3
+ "version": "0.0.68",
4
4
  "description": "plugin-ui for kazaktelekom",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -24,6 +24,7 @@ import { useKitColor } from "../../composables/kit/color";
24
24
 
25
25
  const props = withDefaults( defineProps<ICoreChipsProps>(), {
26
26
  size: 'medium',
27
+ multiply: false,
27
28
  } );
28
29
 
29
30
  const { sizeClassList } = useKitSize( props );
@@ -157,11 +158,27 @@ const classList = computed( () => [
157
158
  }
158
159
  }
159
160
 
160
- &.--is-active {
161
+ &.--light-blue-color {
161
162
  #{$chip} {
162
163
 
164
+ &__content {
165
+ color: var(--primary-blue);
166
+ }
167
+
163
168
  &__wrapper {
164
- background: var(--primary-blue);
169
+ border: 1px solid var(--primary-blue-800);
170
+ background: var(--primary-black-white);
171
+ }
172
+ }
173
+ }
174
+
175
+ &.--is-active {
176
+ #{$chip} {
177
+ &__content {
178
+ color: var(--primary-black-white);
179
+ }
180
+ &__wrapper {
181
+ background: v-bind('props.multiply ? `#1D2939`: `#0096D7`');
165
182
  color: var(--primary-black-white);
166
183
  border: none;
167
184
 
@@ -169,6 +186,10 @@ const classList = computed( () => [
169
186
  @include hover {
170
187
  background: var(--primary-black-300);
171
188
  color: var(--primary-black-900);
189
+
190
+ #{$chip}__content {
191
+ color: v-bind('props.multiply ? `#101828`: `#fff`');
192
+ }
172
193
  }
173
194
 
174
195
  @include pressed {
@@ -176,10 +197,6 @@ const classList = computed( () => [
176
197
  color: var(--primary-black);
177
198
  }
178
199
  }
179
-
180
- &__content {
181
- color: var(--primary-black-white);
182
- }
183
200
  }
184
201
  }
185
202
 
@@ -21,8 +21,9 @@
21
21
  | `active` | `boolean` | `false` | Определяет, находится ли чип в активном состоянии. |
22
22
  | `iconName` | `string` | `undefined` | Название иконки для отображения (требуется BaseIcon). |
23
23
  | `count` | `number` | `undefined` | Число для отображения в чипе. |
24
- | `size` | `'extra-small' | 'small'| 'medium'| 'large'` | `medium` | Размер чипа (влияет на высоту, шрифт и отступы). |
25
- | `color` | `'gray' | 'red' | 'green' | 'warning'` | `blue`|
24
+ | `size` | `'extra-small' \| 'small' \| 'medium' \| 'large'` | `medium` | Размер чипа (влияет на высоту, шрифт и отступы). |
25
+ | `color` | `'gray' \| 'red' \| 'green' \| 'warning' \| 'blue' \| 'light-blue'` | `blue` | Цветовая схема чипа. |
26
+ | `multiply` | `boolean` | `false` | В активном состоянии (`active: true`) переключает цветовую схему: `false` — синий фон (`#0096D7`); `true` — тёмно-синий фон (`#1D2939`). |
26
27
 
27
28
  ## События (Events)
28
29
 
@@ -6,6 +6,7 @@ export interface ICoreChipsBaseProps {
6
6
  iconName?: string;
7
7
  count?: number;
8
8
  color?: string;
9
+ multiply?: boolean;
9
10
  }
10
11
 
11
12
  export type ICoreChipsProps = ICoreChipsBaseProps & ICoreSize;