vira 31.31.1 → 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.
@@ -134,16 +134,27 @@ export const ViraModal = defineViraElement()({
134
134
  }
135
135
  }
136
136
 
137
- ${hostClasses['vira-modal-no-content-padding'].selector} {
138
- & dialog .modal-content-wrapper .body {
139
- padding: 0;
140
- }
141
- }
142
-
143
137
  ${hostClasses['vira-modal-phone-size'].selector} {
144
138
  & dialog {
145
139
  width: 100dvw;
146
140
  max-width: 100dvw;
141
+ /* Phones have little vertical space to spare, so nearly all of it goes to the
142
+ modal instead of the desktop-sized gap above and below it. */
143
+ max-height: calc(100dvh - 24px);
144
+
145
+ & .modal-content-wrapper {
146
+ & .header,
147
+ & .body {
148
+ padding: 12px 16px;
149
+ }
150
+ }
151
+ }
152
+ }
153
+
154
+ /* Placed last so it also overrides the phone-size body padding above. */
155
+ ${hostClasses['vira-modal-no-content-padding'].selector} {
156
+ & dialog .modal-content-wrapper .body {
157
+ padding: 0;
147
158
  }
148
159
  }
149
160
  `;
@@ -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': '8px',
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vira",
3
- "version": "31.31.1",
3
+ "version": "31.31.3",
4
4
  "description": "A simple and highly versatile design system using element-vir.",
5
5
  "keywords": [
6
6
  "design",