milk-lib 0.0.42 → 0.0.44
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.
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
display: flex;
|
|
92
92
|
flex-direction: column;
|
|
93
93
|
gap: 12px;
|
|
94
|
-
padding:
|
|
94
|
+
padding: 6px 16px 12px;
|
|
95
95
|
border: 1px solid var(--line-base, #e2e2e2);
|
|
96
96
|
border-radius: 10px;
|
|
97
97
|
background: var(--bg-base, #fff);
|
|
@@ -100,7 +100,6 @@
|
|
|
100
100
|
legend {
|
|
101
101
|
font-size: 14px;
|
|
102
102
|
font-weight: 600;
|
|
103
|
-
margin-bottom: 8px;
|
|
104
103
|
}
|
|
105
104
|
|
|
106
105
|
.checkbox-list {
|
|
@@ -29,7 +29,9 @@
|
|
|
29
29
|
menuGap,
|
|
30
30
|
menuMaxHeight,
|
|
31
31
|
searchable=true,
|
|
32
|
-
onClear
|
|
32
|
+
onClear,
|
|
33
|
+
size='lg',
|
|
34
|
+
variant='contained'
|
|
33
35
|
}: ISelectProps = $props();
|
|
34
36
|
|
|
35
37
|
const menuId = `select-menu-${crypto.randomUUID()}`;
|
|
@@ -173,8 +175,8 @@
|
|
|
173
175
|
onClear={onClear ? handleClear : undefined}
|
|
174
176
|
pseudoFocus={isMenuVisible}
|
|
175
177
|
onClick={handleControlClick}
|
|
176
|
-
variant=
|
|
177
|
-
size=
|
|
178
|
+
variant={variant}
|
|
179
|
+
size={size}
|
|
178
180
|
placeholder={placeholder}
|
|
179
181
|
bind:value={currentTitle}
|
|
180
182
|
bind:this={textInputBlock}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TextInputMilkSizes, TextInputMilkVariants } from '../TextInputMilk/TextInputMilk.types';
|
|
1
2
|
export interface ISelectItem {
|
|
2
3
|
title: string;
|
|
3
4
|
value: string;
|
|
@@ -16,5 +17,7 @@ export interface ISelectProps {
|
|
|
16
17
|
minWidthMenu?: number;
|
|
17
18
|
menuGap?: number;
|
|
18
19
|
menuMaxHeight?: number;
|
|
20
|
+
size?: TextInputMilkSizes;
|
|
21
|
+
variant?: TextInputMilkVariants;
|
|
19
22
|
onClear?: () => void;
|
|
20
23
|
}
|
|
@@ -197,6 +197,7 @@
|
|
|
197
197
|
}
|
|
198
198
|
.TextInput:focus:read-only {
|
|
199
199
|
border-color: var(--border-color-focus);
|
|
200
|
+
cursor: default;
|
|
200
201
|
}
|
|
201
202
|
.TextInput::placeholder {
|
|
202
203
|
color: var(--text-base-placeholder);
|
|
@@ -209,6 +210,7 @@
|
|
|
209
210
|
border-bottom-width: var(--border-bottom-width-readonly);
|
|
210
211
|
border-right-width: var(--border-right-width-readonly);
|
|
211
212
|
border-left-width: var(--border-left-width-readonly);
|
|
213
|
+
cursor: default;
|
|
212
214
|
}
|
|
213
215
|
.TextInput:disabled {
|
|
214
216
|
background: var(--background-disabled);
|