vira 31.31.2 → 31.31.3
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.
|
@@ -41,4 +41,4 @@ export declare const ViraSelect: import("element-vir").DeclarativeElementDefinit
|
|
|
41
41
|
cleanupListeners: undefined | (() => void);
|
|
42
42
|
}, {
|
|
43
43
|
valueChange: import("element-vir").DefineEvent<string>;
|
|
44
|
-
}, "vira-select-disabled" | "vira-select-error" | "vira-select-not-raw", "vira-select-padding-horizontal" | "vira-select-padding-vertical" | "vira-select-icon-padding", readonly [], readonly []>;
|
|
44
|
+
}, "vira-select-disabled" | "vira-select-error" | "vira-select-has-label" | "vira-select-not-raw", "vira-select-padding-horizontal" | "vira-select-padding-vertical" | "vira-select-icon-padding", readonly [], readonly []>;
|
|
@@ -49,12 +49,13 @@ export const ViraSelect = defineViraElement()({
|
|
|
49
49
|
},
|
|
50
50
|
cssVars: {
|
|
51
51
|
'vira-select-padding-horizontal': '12px',
|
|
52
|
-
'vira-select-padding-vertical': '
|
|
52
|
+
'vira-select-padding-vertical': '4px',
|
|
53
53
|
'vira-select-icon-padding': '44px',
|
|
54
54
|
},
|
|
55
55
|
hostClasses: {
|
|
56
56
|
'vira-select-disabled': ({ inputs }) => !!inputs.disabled,
|
|
57
57
|
'vira-select-error': ({ inputs }) => !!inputs.hasError,
|
|
58
|
+
'vira-select-has-label': ({ inputs }) => !!inputs.label,
|
|
58
59
|
'vira-select-not-raw': ({ inputs }) => !inputs.rawSelect,
|
|
59
60
|
},
|
|
60
61
|
styles: ({ hostClasses, cssVars }) => {
|
|
@@ -63,12 +64,18 @@ export const ViraSelect = defineViraElement()({
|
|
|
63
64
|
position: relative;
|
|
64
65
|
display: inline-flex;
|
|
65
66
|
width: 223px;
|
|
67
|
+
height: 32px;
|
|
66
68
|
box-sizing: border-box;
|
|
67
69
|
color: ${viraFormCssVars['vira-form-foreground-color'].value};
|
|
68
70
|
}
|
|
69
71
|
|
|
72
|
+
${hostClasses['vira-select-has-label'].selector} {
|
|
73
|
+
height: auto;
|
|
74
|
+
}
|
|
75
|
+
|
|
70
76
|
.select-wrapper {
|
|
71
77
|
${noNativeFormStyles};
|
|
78
|
+
height: inherit;
|
|
72
79
|
max-width: 100%;
|
|
73
80
|
flex-grow: 1;
|
|
74
81
|
display: inline-flex;
|
|
@@ -89,6 +96,8 @@ export const ViraSelect = defineViraElement()({
|
|
|
89
96
|
background: none;
|
|
90
97
|
border-radius: inherit;
|
|
91
98
|
cursor: pointer;
|
|
99
|
+
height: 100%;
|
|
100
|
+
box-sizing: border-box;
|
|
92
101
|
/* Prevent the left pixel of text getting cut off. */
|
|
93
102
|
padding-left: 0.5px;
|
|
94
103
|
padding-right: 28px;
|
|
@@ -184,6 +193,10 @@ export const ViraSelect = defineViraElement()({
|
|
|
184
193
|
flex-shrink: 0;
|
|
185
194
|
flex-wrap: wrap;
|
|
186
195
|
}
|
|
196
|
+
|
|
197
|
+
& .select-wrapper {
|
|
198
|
+
height: 32px;
|
|
199
|
+
}
|
|
187
200
|
}
|
|
188
201
|
|
|
189
202
|
.readonly-value {
|