plugin-ui-for-kzt 0.0.11 → 0.0.12
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/BaseBreadCrumbs/BaseBreadCrumbs.vue.d.ts +16 -0
- package/dist/components/BaseButton/BaseButton.vue.d.ts +86 -0
- package/dist/components/BaseCalendar/BaseCalendar.vue.d.ts +40 -0
- package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +77 -0
- package/dist/components/BaseDropdown/BaseDropdown.vue.d.ts +83 -0
- package/dist/components/BaseIcon/BaseIcon.vue.d.ts +16 -0
- package/dist/components/BaseInput/BaseInput.vue.d.ts +108 -0
- package/dist/components/BaseInputCalendar/BaseInputCalendar.vue.d.ts +119 -0
- package/dist/components/BaseInputCurrency/BaseInputCurrency.vue.d.ts +103 -0
- package/dist/components/BaseInputEmail/BaseInputEmail.vue.d.ts +105 -0
- package/dist/components/BaseInputPhone/BaseInputPhone.vue.d.ts +103 -0
- package/dist/components/BaseLoader/BaseLoader.vue.d.ts +4 -0
- package/dist/components/BaseOpenedListItem/BaseOpenedListItem.vue.d.ts +66 -0
- package/dist/components/BaseRadio/BaseRadio.vue.d.ts +77 -0
- package/dist/components/BaseSegmentedButtons/BaseSegmentedButtons.vue.d.ts +87 -0
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +122 -0
- package/dist/components/BaseSiteInput/BaseSiteInput.vue.d.ts +53 -0
- package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +98 -0
- package/dist/components/BaseToggle/BaseToggle.vue.d.ts +75 -0
- package/dist/components/BaseTooltip/BaseTooltip.vue.d.ts +41 -0
- package/dist/components/DataTable/DataTable.vue.d.ts +12 -0
- package/dist/components/Modal/Modal.vue.d.ts +16 -0
- package/dist/components/Spinner/Spinner.vue.d.ts +20 -0
- package/dist/{src/components → components}/Toaster/Toaster.vue.d.ts +5 -42
- package/dist/components/Tooltip/Tooltip.vue.d.ts +28 -0
- package/dist/index.js +2 -58230
- package/dist/index.js.LICENSE.txt +1 -0
- package/package.json +2 -2
- package/src/components/BaseCalendar/BaseCalendar.vue +12 -11
- package/src/components/BaseInputPhone/BaseInputPhone.vue +6 -1
- package/src/components/BaseSelect/BaseSelect.vue +275 -265
- package/src/types/input.d.ts +2 -2
- package/dist/example/App.vue.d.ts +0 -46
- package/dist/example/main.d.ts +0 -1
- package/dist/index.js.map +0 -1
- package/dist/src/components/BaseBreadCrumbs/BaseBreadCrumbs.vue.d.ts +0 -34
- package/dist/src/components/BaseButton/BaseButton.vue.d.ts +0 -189
- package/dist/src/components/BaseCalendar/BaseCalendar.vue.d.ts +0 -176
- package/dist/src/components/BaseCheckbox/BaseCheckbox.vue.d.ts +0 -174
- package/dist/src/components/BaseDropdown/BaseDropdown.vue.d.ts +0 -151
- package/dist/src/components/BaseIcon/BaseIcon.vue.d.ts +0 -29
- package/dist/src/components/BaseInputCalendar/BaseInputCalendar.vue.d.ts +0 -202
- package/dist/src/components/BaseInputEmail/BaseInputEmail.vue.d.ts +0 -176
- package/dist/src/components/BaseInputPhone/BaseInputPhone.vue.d.ts +0 -251
- package/dist/src/components/BaseLoader/BaseLoader.vue.d.ts +0 -4
- package/dist/src/components/BaseOpenedListItem/BaseOpenedListItem.vue.d.ts +0 -148
- package/dist/src/components/BaseRadio/BaseRadio.vue.d.ts +0 -173
- package/dist/src/components/BaseSegmentedButtons/BaseSegmentedButtons.vue.d.ts +0 -142
- package/dist/src/components/BaseSelect/BaseSelect.vue.d.ts +0 -265
- package/dist/src/components/BaseSiteInput/BaseSiteInput.vue.d.ts +0 -119
- package/dist/src/components/BaseTextarea/BaseTextarea.vue.d.ts +0 -195
- package/dist/src/components/BaseToggle/BaseToggle.vue.d.ts +0 -166
- package/dist/src/components/BaseTooltip/BaseTooltip.vue.d.ts +0 -76
- package/dist/src/components/DataTable/DataTable.vue.d.ts +0 -42
- package/dist/src/components/Modal/Modal.vue.d.ts +0 -36
- package/dist/src/components/Spinner/Spinner.vue.d.ts +0 -46
- package/dist/src/components/Tooltip/Tooltip.vue.d.ts +0 -43
- /package/dist/{src/components → components}/Toaster/timer.d.ts +0 -0
- /package/dist/{src/composables → composables}/kit/color.d.ts +0 -0
- /package/dist/{src/composables → composables}/kit/interactive.d.ts +0 -0
- /package/dist/{src/composables → composables}/kit/size.d.ts +0 -0
- /package/dist/{src/composables → composables}/kit/state.d.ts +0 -0
- /package/dist/{src/composables → composables}/kit/style.d.ts +0 -0
- /package/dist/{src/composables → composables}/kit/utils.d.ts +0 -0
- /package/dist/{src/icons → icons}/index.d.ts +0 -0
- /package/dist/{src/index.d.ts → index.d.ts} +0 -0
- /package/dist/{src/plugins → plugins}/modalPlugin.d.ts +0 -0
- /package/dist/{src/plugins → plugins}/toasterPlugin.d.ts +0 -0
- /package/dist/{src/store → store}/modal.d.ts +0 -0
- /package/dist/{src/types → types}/index.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! #__NO_SIDE_EFFECTS__ */
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "plugin-ui-for-kzt",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"description": "plugin-ui for kazaktelekom",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"build": "webpack --config webpack.config.js",
|
|
8
|
+
"build": "webpack --config webpack.config.js --mode production",
|
|
9
9
|
"dev": "webpack serve --config webpack.config.js --mode development",
|
|
10
10
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
11
11
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
<div class="base-calendar" :class="classList">
|
|
3
|
+
<vue-date-picker
|
|
4
4
|
v-model="computedModelValue"
|
|
5
5
|
:range="range"
|
|
6
6
|
locale="ru"
|
|
@@ -14,15 +14,12 @@
|
|
|
14
14
|
:day-names="dayNames"
|
|
15
15
|
:action-row="{ showPreview: false, showSelect: false, showCancel: false }"
|
|
16
16
|
:day-class="getDayClass"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
</template>
|
|
24
|
-
</vue-date-picker>
|
|
25
|
-
</div>
|
|
17
|
+
>
|
|
18
|
+
<template #dp-input="{ value, isMenuOpen }: DpInputSlotProps">
|
|
19
|
+
<slot :value="value" :is-menu-open="isMenuOpen" />
|
|
20
|
+
</template>
|
|
21
|
+
</vue-date-picker>
|
|
22
|
+
</div>
|
|
26
23
|
</template>
|
|
27
24
|
|
|
28
25
|
<script setup lang="ts">
|
|
@@ -32,6 +29,10 @@ import '@vuepic/vue-datepicker/dist/main.css';
|
|
|
32
29
|
import type { DateRange, TCoreCalendarProps } from '../../types/calendar';
|
|
33
30
|
import { useKitSize } from '../../composables/kit/size'
|
|
34
31
|
|
|
32
|
+
interface DpInputSlotProps {
|
|
33
|
+
value: string
|
|
34
|
+
isMenuOpen: boolean
|
|
35
|
+
}
|
|
35
36
|
const props = withDefaults(defineProps<TCoreCalendarProps>(), {
|
|
36
37
|
range: false,
|
|
37
38
|
minDate: null,
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
:error="error"
|
|
10
10
|
class="base-input-phone__select"
|
|
11
11
|
>
|
|
12
|
-
<template #iconItem="{ item }">
|
|
12
|
+
<template #iconItem="{ item }: ICoreButtonProps">
|
|
13
13
|
<base-icon
|
|
14
14
|
:name="item.icon"
|
|
15
15
|
:size="size"
|
|
@@ -39,6 +39,11 @@ import { useKitState } from '../../composables/kit/state';
|
|
|
39
39
|
import { useKitSize } from '../../composables/kit/size';
|
|
40
40
|
import type { ICoreInputProps } from '../../types/input';
|
|
41
41
|
|
|
42
|
+
interface ICoreButtonProps {
|
|
43
|
+
item:{
|
|
44
|
+
icon:string
|
|
45
|
+
}
|
|
46
|
+
}
|
|
42
47
|
const props = withDefaults(defineProps<ICoreInputProps>(), {
|
|
43
48
|
size: 'medium',
|
|
44
49
|
type: 'text',
|
|
@@ -1,103 +1,101 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="base-select" :class="[classList]">
|
|
3
|
-
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
>
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
2
|
+
<div class="base-select" :class="[classList]">
|
|
3
|
+
<div class="base-select__wrapper">
|
|
4
|
+
<label v-if="label" :for="id" class="base-select__label">{{ label }}</label>
|
|
5
|
+
|
|
6
|
+
<base-dropdown
|
|
7
|
+
v-model="dropdownVisible"
|
|
8
|
+
transition-name="top"
|
|
9
|
+
auto-close
|
|
10
|
+
:disabled="actualDisabled"
|
|
11
|
+
>
|
|
12
|
+
<template #top>
|
|
13
|
+
<div
|
|
14
|
+
:data-error="Boolean(error)"
|
|
15
|
+
:data-disabled="disabled"
|
|
16
|
+
class="base-select__header"
|
|
17
|
+
>
|
|
18
|
+
<slot
|
|
19
|
+
name="header"
|
|
20
|
+
:value="actualOption"
|
|
21
|
+
>
|
|
22
|
+
<div v-if="$slots.headerIcon" class="base-select__header_prefix_icon">
|
|
23
|
+
<slot name="headerIcon" />
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
<div
|
|
27
|
+
v-if="actualOption"
|
|
28
|
+
class="base-select__header_value"
|
|
29
|
+
>
|
|
30
|
+
{{ actualOption.name }}
|
|
31
|
+
</div>
|
|
32
|
+
|
|
33
|
+
<div
|
|
34
|
+
v-else
|
|
35
|
+
class="base-select__placeholder"
|
|
36
|
+
>
|
|
37
|
+
{{ placeholder }}
|
|
38
|
+
</div>
|
|
39
|
+
</slot>
|
|
40
|
+
|
|
41
|
+
<div
|
|
42
|
+
v-if="!readonly"
|
|
43
|
+
class="base-select__arrow-wrapper"
|
|
44
|
+
>
|
|
45
|
+
<div class="base-select__arrow">
|
|
46
|
+
<base-icon
|
|
47
|
+
name="arrow-down"
|
|
48
|
+
:size="size"
|
|
49
|
+
/>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
</template>
|
|
54
|
+
|
|
55
|
+
<template #dropdown>
|
|
56
|
+
<div
|
|
57
|
+
v-if="(options ?? []).length"
|
|
58
|
+
class="base-select__dropdown"
|
|
59
|
+
>
|
|
60
|
+
<dynamic-scroller
|
|
61
|
+
:items="options as ICoreSelectBaseProps[]"
|
|
62
|
+
:min-item-size="36"
|
|
63
|
+
key-field="id"
|
|
64
|
+
class="base-select__list"
|
|
65
|
+
>
|
|
66
|
+
<template #default="{ item, index, active } : SlotProps">
|
|
67
|
+
<dynamic-scroller-item
|
|
68
|
+
:item="item"
|
|
69
|
+
:active="active"
|
|
70
|
+
:size-dependencies="[item.name]"
|
|
71
|
+
:data-index="index"
|
|
18
72
|
>
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
73
|
+
<div class="base-select__item-wrapper">
|
|
74
|
+
<base-opened-list-item
|
|
75
|
+
v-bind="listItemAttrs(item)"
|
|
76
|
+
:key="item.id"
|
|
77
|
+
:size="size"
|
|
22
78
|
>
|
|
23
|
-
|
|
24
|
-
<
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
<div
|
|
28
|
-
v-if="actualOption"
|
|
29
|
-
class="base-select__header_value"
|
|
30
|
-
>
|
|
31
|
-
{{ actualOption.name }}
|
|
79
|
+
<template #icon>
|
|
80
|
+
<div v-if="$slots.iconItem">
|
|
81
|
+
<slot name="iconItem" :item="item" />
|
|
32
82
|
</div>
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
name="arrow-down"
|
|
50
|
-
:size="size"
|
|
51
|
-
/>
|
|
52
|
-
</div>
|
|
53
|
-
</div>
|
|
54
|
-
</div>
|
|
55
|
-
</template>
|
|
56
|
-
|
|
57
|
-
<template #dropdown>
|
|
58
|
-
<div
|
|
59
|
-
v-if="(options ?? []).length"
|
|
60
|
-
class="base-select__dropdown"
|
|
61
|
-
>
|
|
62
|
-
<dynamic-scroller
|
|
63
|
-
:items="options"
|
|
64
|
-
:min-item-size="36"
|
|
65
|
-
key-field="id"
|
|
66
|
-
class="base-select__list"
|
|
67
|
-
>
|
|
68
|
-
<template #default="{ item, index, active }">
|
|
69
|
-
<dynamic-scroller-item
|
|
70
|
-
:item="item"
|
|
71
|
-
:active="active"
|
|
72
|
-
:size-dependencies="[item.name]"
|
|
73
|
-
:data-index="index"
|
|
74
|
-
>
|
|
75
|
-
<div class="base-select__item-wrapper">
|
|
76
|
-
<base-opened-list-item
|
|
77
|
-
v-bind="listItemAttrs(item)"
|
|
78
|
-
:key="item.id"
|
|
79
|
-
:size="size"
|
|
80
|
-
>
|
|
81
|
-
<template #icon>
|
|
82
|
-
<div v-if="$slots.iconItem">
|
|
83
|
-
<slot name="iconItem" :item="item" />
|
|
84
|
-
</div>
|
|
85
|
-
</template>
|
|
86
|
-
{{ listItemAttrs(item).title }}
|
|
87
|
-
</base-opened-list-item>
|
|
88
|
-
</div>
|
|
89
|
-
</dynamic-scroller-item>
|
|
90
|
-
</template>
|
|
91
|
-
</dynamic-scroller>
|
|
92
|
-
</div>
|
|
93
|
-
</template>
|
|
94
|
-
</base-dropdown>
|
|
95
|
-
|
|
96
|
-
<div v-if="(error && typeof error === 'string') || hint" class="base-select__hint">
|
|
97
|
-
{{ error || hint }}
|
|
98
|
-
</div>
|
|
99
|
-
</div>
|
|
100
|
-
</div>
|
|
83
|
+
</template>
|
|
84
|
+
{{ listItemAttrs(item).title }}
|
|
85
|
+
</base-opened-list-item>
|
|
86
|
+
</div>
|
|
87
|
+
</dynamic-scroller-item>
|
|
88
|
+
</template>
|
|
89
|
+
</dynamic-scroller>
|
|
90
|
+
</div>
|
|
91
|
+
</template>
|
|
92
|
+
</base-dropdown>
|
|
93
|
+
|
|
94
|
+
<div v-if="(error && typeof error === 'string') || hint" class="base-select__hint">
|
|
95
|
+
{{ error || hint }}
|
|
96
|
+
</div>
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
101
99
|
</template>
|
|
102
100
|
|
|
103
101
|
<script setup lang="ts">
|
|
@@ -111,6 +109,13 @@ import { useKitSize } from '../../composables/kit/size';
|
|
|
111
109
|
import { useKitState } from '../../composables/kit/state';
|
|
112
110
|
import { useKitStyle } from '../../composables/kit/style';
|
|
113
111
|
|
|
112
|
+
// Определяем тип для slotProps
|
|
113
|
+
interface SlotProps {
|
|
114
|
+
item: ICoreSelectBaseProps;
|
|
115
|
+
index: number;
|
|
116
|
+
active: boolean;
|
|
117
|
+
}
|
|
118
|
+
|
|
114
119
|
const props = withDefaults(defineProps<ICoreSelectProps & {
|
|
115
120
|
modelValue?: TSelectValue
|
|
116
121
|
}>(), {
|
|
@@ -137,6 +142,7 @@ function handleInput(value: TSelectValue) {
|
|
|
137
142
|
emit('update:modelValue', value);
|
|
138
143
|
emit('change', value);
|
|
139
144
|
}
|
|
145
|
+
|
|
140
146
|
const actualDisabled = computed(() => props.disabled || !props.options?.length);
|
|
141
147
|
const dropdownVisible = ref(false);
|
|
142
148
|
const { sizeClassList } = useKitSize(props);
|
|
@@ -146,7 +152,7 @@ const { styleClassList } = useKitStyle(props);
|
|
|
146
152
|
const listItemAttrs = computed(() => (item: ICoreSelectBaseProps) => ({
|
|
147
153
|
icon: item.icon,
|
|
148
154
|
active: actualValue.value === item.id,
|
|
149
|
-
title: item.name,
|
|
155
|
+
title: item.name || item.label || '',
|
|
150
156
|
style: item.style,
|
|
151
157
|
disabled: item.disabled,
|
|
152
158
|
class: 'base-select__item',
|
|
@@ -162,209 +168,213 @@ const classList = computed(() => [
|
|
|
162
168
|
'--is-disabled': actualDisabled.value,
|
|
163
169
|
},
|
|
164
170
|
]);
|
|
165
|
-
</script>
|
|
166
171
|
|
|
172
|
+
defineSlots<{
|
|
173
|
+
default(props: SlotProps): any;
|
|
174
|
+
iconItem(props: { item: ICoreSelectBaseProps }): any;
|
|
175
|
+
}>();
|
|
176
|
+
</script>
|
|
167
177
|
|
|
168
178
|
<style lang="scss">
|
|
169
179
|
@import '../../styles/variables';
|
|
170
180
|
@import '../../styles/root';
|
|
171
181
|
|
|
172
182
|
.base-select {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
&__header {
|
|
185
|
-
border: 1px solid var(--primary-black-300);
|
|
186
|
-
outline: 4px solid var(--effects-primary-focus);
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.dropdown__dropdown {
|
|
191
|
-
margin-top: 4px;
|
|
192
|
-
transition: all var(--transition);
|
|
193
|
-
}
|
|
183
|
+
$select: &;
|
|
184
|
+
|
|
185
|
+
min-width: 320px;
|
|
186
|
+
|
|
187
|
+
.dropdown {
|
|
188
|
+
&.--is-opened {
|
|
189
|
+
#{$select} {
|
|
190
|
+
&__arrow {
|
|
191
|
+
transform: translate3d(0, -50%, 0) rotate(180deg);
|
|
194
192
|
}
|
|
195
|
-
}
|
|
196
193
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
194
|
+
&__header {
|
|
195
|
+
border: 1px solid var(--primary-black-300);
|
|
196
|
+
outline: 4px solid var(--effects-primary-focus);
|
|
197
|
+
}
|
|
200
198
|
}
|
|
201
199
|
|
|
202
|
-
|
|
203
|
-
|
|
200
|
+
.dropdown__dropdown {
|
|
201
|
+
margin-top: 4px;
|
|
202
|
+
transition: all var(--transition);
|
|
204
203
|
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
205
206
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
207
|
+
&.--is-error {
|
|
208
|
+
#{$select}__hint {
|
|
209
|
+
color: var(--error-red);
|
|
210
|
+
}
|
|
209
211
|
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
}
|
|
212
|
+
#{$select}__label {
|
|
213
|
+
border-color: var(--error-red-light-01);
|
|
213
214
|
}
|
|
214
215
|
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
flex-direction: column;
|
|
218
|
-
gap: var(--spacing-2s);
|
|
219
|
-
width: 100%;
|
|
220
|
-
height: 100%;
|
|
216
|
+
#{$select}__arrow > * {
|
|
217
|
+
color: var(--error-red);
|
|
221
218
|
}
|
|
222
219
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
display: flex;
|
|
226
|
-
column-gap: var(--spacing-s);
|
|
227
|
-
align-items: center;
|
|
228
|
-
user-select: none;
|
|
229
|
-
background: var(--bg-light);
|
|
230
|
-
border: 1px solid var(--primary-black-300);
|
|
231
|
-
border-radius: var(--corner-radius-m);
|
|
220
|
+
#{$select}__header {
|
|
221
|
+
border: 1px solid var(--error-red-light-01);
|
|
232
222
|
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
&__wrapper {
|
|
226
|
+
display: flex;
|
|
227
|
+
flex-direction: column;
|
|
228
|
+
gap: var(--spacing-2s);
|
|
229
|
+
width: 100%;
|
|
230
|
+
height: 100%;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
&__header {
|
|
234
|
+
position: relative;
|
|
235
|
+
display: flex;
|
|
236
|
+
column-gap: var(--spacing-s);
|
|
237
|
+
align-items: center;
|
|
238
|
+
user-select: none;
|
|
239
|
+
background: var(--bg-light);
|
|
240
|
+
border: 1px solid var(--primary-black-300);
|
|
241
|
+
border-radius: var(--corner-radius-m);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
&__placeholder {
|
|
245
|
+
@include text-clamp(1);
|
|
246
|
+
|
|
247
|
+
color: var(--primary-text-tertiary);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
&__arrow-wrapper {
|
|
251
|
+
position: relative;
|
|
252
|
+
flex-shrink: 0;
|
|
253
|
+
margin-left: auto;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
&__arrow {
|
|
257
|
+
position: absolute;
|
|
258
|
+
top: 50%;
|
|
259
|
+
color: var(--ui-colors-input-icon-default);
|
|
260
|
+
transition: transform var(--transition);
|
|
261
|
+
transform: translate3d(0, -50%, 0);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
&__dropdown {
|
|
265
|
+
width: 100%;
|
|
266
|
+
height: 100%;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
&__list {
|
|
270
|
+
width: 100%;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
&__item {
|
|
274
|
+
width: 100%;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
&.--small-size {
|
|
278
|
+
#{$select} {
|
|
279
|
+
&__label {
|
|
280
|
+
font: var(--typography-text-s-medium);
|
|
281
|
+
}
|
|
233
282
|
|
|
234
|
-
|
|
235
|
-
|
|
283
|
+
&__hint {
|
|
284
|
+
font: var(--typography-text-s-regular);
|
|
285
|
+
}
|
|
236
286
|
|
|
237
|
-
|
|
238
|
-
|
|
287
|
+
&__header_value {
|
|
288
|
+
font: var(--typography-text-m-regular);
|
|
289
|
+
}
|
|
239
290
|
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
margin-left: auto;
|
|
244
|
-
}
|
|
291
|
+
&__dropdown {
|
|
292
|
+
border-radius: var(--corner-radius-s);
|
|
293
|
+
}
|
|
245
294
|
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
transform: translate3d(0, -50%, 0);
|
|
252
|
-
}
|
|
295
|
+
&__header {
|
|
296
|
+
height: 22px;
|
|
297
|
+
padding: var(--spacing-s) var(--spacing-2l);
|
|
298
|
+
border-radius: var(--corner-radius-s);
|
|
299
|
+
}
|
|
253
300
|
|
|
254
|
-
|
|
255
|
-
width:
|
|
256
|
-
height:
|
|
301
|
+
&__arrow, &__header_prefix_icon, &__arrow-wrapper {
|
|
302
|
+
width: 20px;
|
|
303
|
+
height: 20px;
|
|
304
|
+
}
|
|
257
305
|
}
|
|
306
|
+
}
|
|
258
307
|
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
308
|
+
&.--medium-size {
|
|
309
|
+
#{$select} {
|
|
310
|
+
&__label {
|
|
311
|
+
font: var(--typography-text-s-medium);
|
|
312
|
+
}
|
|
262
313
|
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
314
|
+
&__hint {
|
|
315
|
+
font: var(--typography-text-s-regular);
|
|
316
|
+
}
|
|
266
317
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
font: var(--typography-text-s-medium);
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
&__hint {
|
|
274
|
-
font: var(--typography-text-s-regular);
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
&__header_value {
|
|
278
|
-
font: var(--typography-text-m-regular);
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
&__dropdown {
|
|
282
|
-
border-radius: var(--corner-radius-s);
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
&__header {
|
|
286
|
-
height: 22px;
|
|
287
|
-
padding: var(--spacing-s) var(--spacing-2l);
|
|
288
|
-
border-radius: var(--corner-radius-s);
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
&__arrow, &__header_prefix_icon, &__arrow-wrapper {
|
|
292
|
-
width: 20px;
|
|
293
|
-
height: 20px;
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
}
|
|
318
|
+
&__header_value {
|
|
319
|
+
font: var(--typography-text-m-regular);
|
|
320
|
+
}
|
|
297
321
|
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
&__header_value {
|
|
309
|
-
font: var(--typography-text-m-regular);
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
&__header {
|
|
313
|
-
height: 22px;
|
|
314
|
-
padding: var(--spacing-m) var(--spacing-2l);
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
&__arrow, &__header_prefix_icon, &__arrow-wrapper {
|
|
318
|
-
width: 24px;
|
|
319
|
-
height: 24px;
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
+
&__header {
|
|
323
|
+
height: 22px;
|
|
324
|
+
padding: var(--spacing-m) var(--spacing-2l);
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
&__arrow, &__header_prefix_icon, &__arrow-wrapper {
|
|
328
|
+
width: 24px;
|
|
329
|
+
height: 24px;
|
|
330
|
+
}
|
|
322
331
|
}
|
|
332
|
+
}
|
|
323
333
|
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
}
|
|
334
|
+
&.--large-size {
|
|
335
|
+
#{$select} {
|
|
336
|
+
&__label {
|
|
337
|
+
font: var(--typography-text-m-medium);
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
&__hint {
|
|
341
|
+
font: var(--typography-text-m-regular);
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
&__header_value {
|
|
345
|
+
font: var(--typography-text-l-regular);
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
&__header {
|
|
349
|
+
height: 30px;
|
|
350
|
+
padding: var(--spacing-m) var(--spacing-l);
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
&__arrow, &__header_prefix_icon, &__arrow-wrapper {
|
|
354
|
+
width: 32px;
|
|
355
|
+
height: 32px;
|
|
356
|
+
}
|
|
348
357
|
}
|
|
358
|
+
}
|
|
349
359
|
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
360
|
+
&.--is-disabled {
|
|
361
|
+
#{$select} {
|
|
362
|
+
&__placeholder {
|
|
363
|
+
color: var(--ui-colors-input-text-disabled);
|
|
364
|
+
}
|
|
355
365
|
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
}
|
|
366
|
+
&__arrow {
|
|
367
|
+
color: var(--ui-colors-input-icon-disabled);
|
|
368
|
+
}
|
|
360
369
|
}
|
|
370
|
+
}
|
|
361
371
|
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
}
|
|
372
|
+
&.--is-readonly {
|
|
373
|
+
#{$select} {
|
|
374
|
+
&__header {
|
|
375
|
+
pointer-events: none;
|
|
376
|
+
}
|
|
368
377
|
}
|
|
378
|
+
}
|
|
369
379
|
}
|
|
370
|
-
</style>
|
|
380
|
+
</style>
|