@aquera/nile-elements 0.1.58 → 0.1.59-beta-1.1

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.
Files changed (151) hide show
  1. package/README.md +7 -0
  2. package/demo/index.html +150 -33
  3. package/dist/index.cjs.js +1 -1
  4. package/dist/index.esm.js +1 -1
  5. package/dist/index.js +1420 -654
  6. package/dist/internal/form.cjs.js +1 -1
  7. package/dist/internal/form.cjs.js.map +1 -1
  8. package/dist/internal/form.esm.js +1 -1
  9. package/dist/nile-accordion/nile-accordian.test.cjs.js +1 -1
  10. package/dist/nile-auto-complete/index.cjs.js +1 -1
  11. package/dist/nile-auto-complete/index.esm.js +1 -1
  12. package/dist/nile-auto-complete/nile-auto-complete.cjs.js +1 -17
  13. package/dist/nile-auto-complete/nile-auto-complete.cjs.js.map +1 -1
  14. package/dist/nile-auto-complete/nile-auto-complete.esm.js +8 -29
  15. package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js +1 -1
  16. package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js.map +1 -1
  17. package/dist/nile-auto-complete/nile-auto-complete.test.esm.js +1 -1
  18. package/dist/nile-avatar/nile-avatar.test.cjs.js +1 -1
  19. package/dist/nile-badge/nile-badge.test.cjs.js +1 -1
  20. package/dist/nile-button/nile-button.test.cjs.js +1 -1
  21. package/dist/nile-button-toggle-group/nile-button-toggle-group.test.cjs.js +1 -1
  22. package/dist/nile-calendar/nile-calendar.test.cjs.js +1 -1
  23. package/dist/nile-calendar/nile-calendar.test.cjs.js.map +1 -1
  24. package/dist/nile-calendar/nile-calendar.test.esm.js +1 -1
  25. package/dist/nile-card/nile-card.test.cjs.js +1 -1
  26. package/dist/nile-checkbox/nile-checkbox.test.cjs.js +1 -1
  27. package/dist/nile-chip/nile-chip.test.cjs.js +1 -1
  28. package/dist/nile-chip/nile-chip.test.cjs.js.map +1 -1
  29. package/dist/nile-chip/nile-chip.test.esm.js +1 -1
  30. package/dist/nile-dialog/nile-dialog.test.cjs.js +1 -1
  31. package/dist/nile-drawer/nile-drawer.test.cjs.js +1 -1
  32. package/dist/nile-dropdown/nile-dropdown.test.cjs.js +1 -1
  33. package/dist/nile-empty-state/nile-empty-state.test.cjs.js +1 -1
  34. package/dist/nile-error-message/nile-error-message.test.cjs.js +1 -1
  35. package/dist/nile-filter-chip/nile-filter-chip.test.cjs.js +1 -1
  36. package/dist/nile-form-group/nile-form-group.test.cjs.js +1 -1
  37. package/dist/nile-form-help-text/nile-form-help-text.test.cjs.js +1 -1
  38. package/dist/nile-hero/nile-hero.test.cjs.js +1 -1
  39. package/dist/nile-icon/nile-icon.test.cjs.js +1 -1
  40. package/dist/nile-input/nile-input.test.cjs.js +1 -1
  41. package/dist/nile-link/nile-link.test.cjs.js +1 -1
  42. package/dist/nile-loader/nile-loader.test.cjs.js +1 -1
  43. package/dist/nile-option/nile-option.cjs.js +1 -1
  44. package/dist/nile-option/nile-option.cjs.js.map +1 -1
  45. package/dist/nile-option/nile-option.css.cjs.js +1 -1
  46. package/dist/nile-option/nile-option.css.cjs.js.map +1 -1
  47. package/dist/nile-option/nile-option.css.esm.js +1 -1
  48. package/dist/nile-option/nile-option.esm.js +2 -2
  49. package/dist/nile-popover/nile-popover.test.cjs.js +1 -1
  50. package/dist/nile-popup/nile-popup.test.cjs.js +1 -1
  51. package/dist/nile-progress-bar/nile-progress-bar.test.cjs.js +1 -1
  52. package/dist/nile-radio/nile-radio.test.cjs.js +1 -1
  53. package/dist/nile-radio-group/nile-radio-group.test.cjs.js +1 -1
  54. package/dist/nile-select/index.cjs.js +1 -1
  55. package/dist/nile-select/index.esm.js +1 -1
  56. package/dist/nile-select/nile-select.cjs.js +1 -1
  57. package/dist/nile-select/nile-select.cjs.js.map +1 -1
  58. package/dist/nile-select/nile-select.esm.js +2 -2
  59. package/dist/nile-select/nile-select.test.cjs.js +1 -1
  60. package/dist/nile-select/nile-select.test.cjs.js.map +1 -1
  61. package/dist/nile-select/nile-select.test.esm.js +2 -2
  62. package/dist/nile-select/virtual-scroll-helper.cjs.js +2 -0
  63. package/dist/nile-select/virtual-scroll-helper.cjs.js.map +1 -0
  64. package/dist/nile-select/virtual-scroll-helper.esm.js +38 -0
  65. package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js +1 -1
  66. package/dist/nile-tab-group/nile-tab-group.test.cjs.js +1 -1
  67. package/dist/nile-textarea/nile-textarea.test.cjs.js +1 -1
  68. package/dist/nile-virtual-select/index.cjs.js +2 -0
  69. package/dist/nile-virtual-select/index.cjs.js.map +1 -0
  70. package/dist/nile-virtual-select/index.esm.js +1 -0
  71. package/dist/nile-virtual-select/nile-virtual-select.cjs.js +2 -0
  72. package/dist/nile-virtual-select/nile-virtual-select.cjs.js.map +1 -0
  73. package/dist/nile-virtual-select/nile-virtual-select.css.cjs.js +2 -0
  74. package/dist/nile-virtual-select/nile-virtual-select.css.cjs.js.map +1 -0
  75. package/dist/nile-virtual-select/nile-virtual-select.css.esm.js +477 -0
  76. package/dist/nile-virtual-select/nile-virtual-select.esm.js +227 -0
  77. package/dist/nile-virtual-select/nile-virtual-select.test.cjs.js +2 -0
  78. package/dist/nile-virtual-select/nile-virtual-select.test.cjs.js.map +1 -0
  79. package/dist/nile-virtual-select/nile-virtual-select.test.esm.js +93 -0
  80. package/dist/nile-virtual-select/renderer.cjs.js +2 -0
  81. package/dist/nile-virtual-select/renderer.cjs.js.map +1 -0
  82. package/dist/nile-virtual-select/renderer.esm.js +28 -0
  83. package/dist/nile-virtual-select/search-manager.cjs.js +2 -0
  84. package/dist/nile-virtual-select/search-manager.cjs.js.map +1 -0
  85. package/dist/nile-virtual-select/search-manager.esm.js +1 -0
  86. package/dist/nile-virtual-select/selection-manager.cjs.js +2 -0
  87. package/dist/nile-virtual-select/selection-manager.cjs.js.map +1 -0
  88. package/dist/nile-virtual-select/selection-manager.esm.js +1 -0
  89. package/dist/nile-virtual-select/types.cjs.js +2 -0
  90. package/dist/nile-virtual-select/types.cjs.js.map +1 -0
  91. package/dist/nile-virtual-select/types.esm.js +1 -0
  92. package/dist/src/index.d.ts +1 -0
  93. package/dist/src/index.js +1 -0
  94. package/dist/src/index.js.map +1 -1
  95. package/dist/src/internal/form.js +2 -2
  96. package/dist/src/internal/form.js.map +1 -1
  97. package/dist/src/nile-option/nile-option.css.js +1 -1
  98. package/dist/src/nile-option/nile-option.css.js.map +1 -1
  99. package/dist/src/nile-option/nile-option.d.ts +5 -1
  100. package/dist/src/nile-option/nile-option.js +21 -6
  101. package/dist/src/nile-option/nile-option.js.map +1 -1
  102. package/dist/src/nile-select/nile-select.d.ts +11 -2
  103. package/dist/src/nile-select/nile-select.js +37 -18
  104. package/dist/src/nile-select/nile-select.js.map +1 -1
  105. package/dist/src/nile-select/virtual-scroll-helper.d.ts +9 -0
  106. package/dist/src/nile-select/virtual-scroll-helper.js +51 -0
  107. package/dist/src/nile-select/virtual-scroll-helper.js.map +1 -0
  108. package/dist/src/nile-virtual-select/index.d.ts +1 -0
  109. package/dist/src/nile-virtual-select/index.js +2 -0
  110. package/dist/src/nile-virtual-select/index.js.map +1 -0
  111. package/dist/src/nile-virtual-select/nile-virtual-select.css.d.ts +12 -0
  112. package/dist/src/nile-virtual-select/nile-virtual-select.css.js +489 -0
  113. package/dist/src/nile-virtual-select/nile-virtual-select.css.js.map +1 -0
  114. package/dist/src/nile-virtual-select/nile-virtual-select.d.ts +266 -0
  115. package/dist/src/nile-virtual-select/nile-virtual-select.js +1226 -0
  116. package/dist/src/nile-virtual-select/nile-virtual-select.js.map +1 -0
  117. package/dist/src/nile-virtual-select/nile-virtual-select.test.d.ts +7 -0
  118. package/dist/src/nile-virtual-select/nile-virtual-select.test.js +631 -0
  119. package/dist/src/nile-virtual-select/nile-virtual-select.test.js.map +1 -0
  120. package/dist/src/nile-virtual-select/renderer.d.ts +16 -0
  121. package/dist/src/nile-virtual-select/renderer.js +72 -0
  122. package/dist/src/nile-virtual-select/renderer.js.map +1 -0
  123. package/dist/src/nile-virtual-select/search-manager.d.ts +12 -0
  124. package/dist/src/nile-virtual-select/search-manager.js +40 -0
  125. package/dist/src/nile-virtual-select/search-manager.js.map +1 -0
  126. package/dist/src/nile-virtual-select/selection-manager.d.ts +12 -0
  127. package/dist/src/nile-virtual-select/selection-manager.js +64 -0
  128. package/dist/src/nile-virtual-select/selection-manager.js.map +1 -0
  129. package/dist/src/nile-virtual-select/types.d.ts +50 -0
  130. package/dist/src/nile-virtual-select/types.js +8 -0
  131. package/dist/src/nile-virtual-select/types.js.map +1 -0
  132. package/dist/tsconfig.tsbuildinfo +1 -1
  133. package/dist/virtualize-a4a40d96.esm.js +22 -0
  134. package/dist/virtualize-b6a2fbe0.cjs.js +18 -0
  135. package/dist/virtualize-b6a2fbe0.cjs.js.map +1 -0
  136. package/package.json +1 -1
  137. package/src/index.ts +3 -1
  138. package/src/internal/form.ts +2 -2
  139. package/src/nile-option/nile-option.css.ts +1 -1
  140. package/src/nile-option/nile-option.ts +17 -3
  141. package/src/nile-select/nile-select.ts +35 -9
  142. package/src/nile-select/virtual-scroll-helper.ts +56 -0
  143. package/src/nile-virtual-select/index.ts +1 -0
  144. package/src/nile-virtual-select/nile-virtual-select.css.ts +491 -0
  145. package/src/nile-virtual-select/nile-virtual-select.test.ts +774 -0
  146. package/src/nile-virtual-select/nile-virtual-select.ts +1314 -0
  147. package/src/nile-virtual-select/renderer.ts +100 -0
  148. package/src/nile-virtual-select/search-manager.ts +50 -0
  149. package/src/nile-virtual-select/selection-manager.ts +75 -0
  150. package/src/nile-virtual-select/types.ts +54 -0
  151. package/vscode-html-custom-data.json +229 -2
@@ -0,0 +1,489 @@
1
+ /**
2
+ * Copyright Aquera Inc 2025
3
+ *
4
+ * This source code is licensed under the BSD-3-Clause license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import { css } from 'lit';
8
+ /**
9
+ * Select_2 CSS
10
+ */
11
+ export const styles = css `
12
+ :host {
13
+ box-sizing: border-box;
14
+ }
15
+
16
+ .virtualized{
17
+ min-width: 110px;
18
+ width: 100%;
19
+ }
20
+
21
+ .virtualized ::slotted(nile-option),
22
+ .virtualized nile-option {
23
+ width: 100%;
24
+ display: block;
25
+ }
26
+
27
+ /* Ensure proper sizing for non-virtualized options (small datasets) */
28
+ .virtualized:not(:has(lit-virtualizer)) {
29
+ display: flex;
30
+ flex-direction: column;
31
+ }
32
+
33
+ .virtualized:not(:has(lit-virtualizer)) nile-option {
34
+ flex-shrink: 0;
35
+ }
36
+
37
+ :host *,
38
+ :host *::before,
39
+ :host *::after {
40
+ box-sizing: inherit;
41
+ }
42
+
43
+ [hidden] {
44
+ display: none !important;
45
+ }
46
+
47
+ .form-control .form-control__label {
48
+ display: none;
49
+ }
50
+
51
+ .form-control .form-control__help-text {
52
+ display: none;
53
+ }
54
+
55
+ /* Label */
56
+ .form-control--has-label .form-control__label {
57
+ display: block;
58
+ margin-bottom: 6px;
59
+ color: var(--nile-colors-dark-900);
60
+ font-family: Colfax-regular;
61
+ font-size: 14px;
62
+ font-style: normal;
63
+ font-weight: 400;
64
+ line-height: 20px;
65
+ letter-spacing: 0.2px;
66
+ }
67
+
68
+ .form-control--has-label.form-control--medium .form-control__label {
69
+ font-size: 14px;
70
+ }
71
+
72
+ :host([required]) .form-control--has-label .form-control__label::after {
73
+ content: '*';
74
+ margin-inline-start: -2px;
75
+ color: var(--nile-colors-red-700);
76
+ }
77
+
78
+ /* Help text */
79
+ .form-control--has-help-text .form-control__help-text {
80
+ display: block;
81
+ color: var(--nile-colors-dark-500);
82
+ margin-top: 0.75rem;
83
+ }
84
+
85
+ .form-control--has-help-text.form-control--medium .form-control__help-text {
86
+ font-size: 0.875rem;
87
+ }
88
+
89
+ .form-control--has-help-text.form-control--radio-group
90
+ .form-control__help-text {
91
+ margin-top: 0.25rem;
92
+ }
93
+
94
+ :host {
95
+ display: block;
96
+ }
97
+
98
+ /** The popup */
99
+ .select {
100
+ flex: 1 1 auto;
101
+ display: inline-flex;
102
+ width: 100%;
103
+ position: relative;
104
+ vertical-align: middle;
105
+ }
106
+
107
+ .select::part(popup) {
108
+ z-index: 9999;
109
+ }
110
+
111
+ .select[data-current-placement^='top']::part(popup) {
112
+ transform-origin: bottom;
113
+ }
114
+
115
+ .select[data-current-placement^='bottom']::part(popup) {
116
+ transform-origin: top;
117
+ }
118
+
119
+ /* Combobox */
120
+ .select__combobox {
121
+ flex: 1;
122
+ display: flex;
123
+ width: 100%;
124
+ min-width: 0;
125
+ position: relative;
126
+ align-items: center;
127
+ justify-content: start;
128
+ font-family: var(--nile-font-family-sans-serif);
129
+ font-weight: 400;
130
+ letter-spacing: normal;
131
+ vertical-align: middle;
132
+ overflow: hidden;
133
+ cursor: pointer;
134
+ transition: 150ms color, 150ms border, 150ms box-shadow,
135
+ 150ms background-color;
136
+ }
137
+
138
+ .select__display-input {
139
+ position: relative;
140
+ width: 100%;
141
+ font: inherit;
142
+ border: none;
143
+ background: none;
144
+ color: var(--nile-colors-dark-900);
145
+ cursor: inherit;
146
+ overflow: hidden;
147
+ padding: 0;
148
+ margin: 0;
149
+ -webkit-appearance: none;
150
+ font-family: var(--nile-font-family-serif);
151
+ }
152
+
153
+ .select__display-input::placeholder {
154
+ font-family: var(--nile-font-family-serif);
155
+ }
156
+
157
+ .select:not(.select--disabled):hover .select__display-input {
158
+ color: var(--nile-colors-dark-900);
159
+ }
160
+
161
+ .select__display-input:focus {
162
+ outline: none;
163
+ }
164
+
165
+ /* Visually hide the display input when multiple is enabled */
166
+ .select--multiple:not(.select--placeholder-visible) .select__display-input {
167
+ position: absolute;
168
+ z-index: -1;
169
+ top: 0;
170
+ left: 0;
171
+ width: 100%;
172
+ height: 100%;
173
+ opacity: 0;
174
+ }
175
+
176
+ .select__value-input {
177
+ position: absolute;
178
+ top: 0;
179
+ left: 0;
180
+ width: 100%;
181
+ height: 100%;
182
+ padding: 0;
183
+ margin: 0;
184
+ opacity: 0;
185
+ z-index: -1;
186
+ }
187
+
188
+ .select__tags {
189
+ display: flex;
190
+ flex: 1;
191
+ align-items: center;
192
+ flex-wrap: no-wrap;
193
+ margin-inline-start: 0.5rem;
194
+ width: 100%;
195
+ overflow: hidden;
196
+ }
197
+
198
+ .select__tags-count {
199
+ color: var(--nile-colors-primary-600);
200
+ font-family: Colfax-regular;
201
+ font-size: 14px;
202
+ font-style: normal;
203
+ font-weight: 400;
204
+ line-height: 14px;
205
+ letter-spacing: 0.2px;
206
+ margin: 6px;
207
+ }
208
+
209
+ .select__tags-count-clearable {
210
+ margin-right: 50px;
211
+ }
212
+
213
+ .select__tags::slotted(nile-tag) {
214
+ cursor: pointer !important;
215
+ }
216
+
217
+ .select--disabled .select__tags,
218
+ .select--disabled .select__tags::slotted(nile-tag) {
219
+ cursor: not-allowed !important;
220
+ }
221
+
222
+ /* Standard selects */
223
+ .select--standard .select__combobox {
224
+ background-color: var(--nile-colors-white-base);
225
+ border: solid 1px var(--nile-colors-neutral-500);
226
+ }
227
+
228
+ .select--standard .select__combobox:hover {
229
+ border: 1px solid var(--nile-colors-dark-900);
230
+ background: var(--nile-colors-white-base);
231
+ }
232
+
233
+ .select--standard.select--disabled .select__combobox {
234
+ background-color: var(--nile-colors-neutral-100);
235
+ border-color: var(--nile-colors-neutral-500);
236
+ color: var(--nile-colors-dark-500);
237
+ opacity: 0.5;
238
+ cursor: not-allowed;
239
+ outline: none;
240
+ }
241
+
242
+ .select--standard:not(.select--disabled).select--open .select__combobox,
243
+ .select--standard:not(.select--disabled).select--focused .select__combobox {
244
+ background-color: var(--nile-colors-neutral-100);
245
+ }
246
+
247
+ .select--warning .select__combobox {
248
+ border-color: var(--nile-colors-yellow-500);
249
+ }
250
+
251
+ .select--error .select__combobox {
252
+ border-color: var(--nile-colors-red-500);
253
+ }
254
+
255
+ .select--success {
256
+ border-color: var(--nile-colors-green-500);
257
+ }
258
+
259
+ /* Filled selects */
260
+ .select--filled .select__combobox {
261
+ border: none;
262
+ background-color: var(--nile-colors-neutral-100);
263
+ color: var(--nile-colors-dark-900);
264
+ }
265
+
266
+ .select--filled:hover:not(.select--disabled) .select__combobox {
267
+ background-color: var(--nile-colors-neutral-100);
268
+ }
269
+
270
+ .select--filled.select--disabled .select__combobox {
271
+ background-color: var(--nile-colors-neutral-100);
272
+ opacity: 0.5;
273
+ cursor: not-allowed;
274
+ }
275
+
276
+ .select--filled:not(.select--disabled).select--open .select__combobox,
277
+ .select--filled:not(.select--disabled).select--focused .select__combobox {
278
+ background-color: var(--nile-colors-neutral-100);
279
+ outline: 3px solid rgba(0, 89, 255, 0.4);
280
+ }
281
+
282
+ .select--medium .select__combobox {
283
+ border-radius: 4px;
284
+ font-size: 14px;
285
+ padding: 12px;
286
+ height: 40px;
287
+ box-sizing: border-box;
288
+ }
289
+
290
+ .select--medium .select__clear {
291
+ margin-inline-start: 0.75rem;
292
+ }
293
+
294
+ .select--medium .select__prefix::slotted(*) {
295
+ margin-inline-end: 0.75rem;
296
+ }
297
+
298
+ .select--medium .select__prefix.multiple::slotted(*) {
299
+ margin-inline-start: 0.75rem;
300
+ }
301
+
302
+ .select--medium.select--multiple:not(.select--placeholder-visible)
303
+ .select__combobox {
304
+ padding-inline-start: 0;
305
+ }
306
+
307
+ .select--medium .select__tags {
308
+ gap: 3px;
309
+ }
310
+
311
+ /* Pills */
312
+ .select--pill.select--medium .select__combobox {
313
+ border-radius: 2.5rem;
314
+ }
315
+
316
+ /* Prefix */
317
+ .select__prefix {
318
+ flex: 0;
319
+ display: inline-flex;
320
+ align-items: center;
321
+ color: var(--nile-colors-dark-500);
322
+ }
323
+
324
+ .select__suffix {
325
+ flex: 0;
326
+ display: inline-flex;
327
+ align-items: center;
328
+ color: var(--nile-colors-dark-500);
329
+ }
330
+
331
+ /* Clear button */
332
+ .select__clear {
333
+ display: inline-flex;
334
+ align-items: center;
335
+ justify-content: center;
336
+ font-size: inherit;
337
+ color: var(--nile-colors-primary-600);
338
+ border: none;
339
+ background: none;
340
+ padding: 0;
341
+ transition: 150ms color;
342
+ cursor: pointer;
343
+ }
344
+
345
+ .select__clear:hover {
346
+ color: var(--nile-colors-dark-500);
347
+ }
348
+
349
+ .select__clear:focus {
350
+ outline: none;
351
+ }
352
+
353
+ /* Expand icon */
354
+ .select__expand-icon {
355
+ flex: 0 0 auto;
356
+ display: flex;
357
+ align-items: center;
358
+ transition: 250ms rotate ease;
359
+ rotate: 0;
360
+ margin-inline-start: 0.25rem;
361
+ }
362
+
363
+ .select--open .select__expand-icon {
364
+ rotate: -180deg;
365
+ }
366
+
367
+ /* Listbox */
368
+ .select__listbox {
369
+ display: block;
370
+ position: relative;
371
+ font-size: 1rem;
372
+ font-weight: 400;
373
+ background: var(--nile-colors-white-base);
374
+ border: solid 1px var(--nile-colors-neutral-500);
375
+ border-radius: 0.25rem;
376
+ padding-block: 0;
377
+ padding-inline: 0;
378
+ overflow: auto;
379
+ overscroll-behavior: none;
380
+ /* Make sure it adheres to the popup's auto size */
381
+ max-width: var(--auto-size-available-width);
382
+ max-height: var(--auto-size-available-height);
383
+ }
384
+
385
+ .select__options {
386
+ font-size: 14px;
387
+ color: rgb(133, 129, 129);
388
+ width: 100%;
389
+ }
390
+
391
+ .select__options__search-enabled {
392
+ padding-top: 10px;
393
+ width: 100%;
394
+ }
395
+
396
+ .select__listbox::slotted(nile-divider) {
397
+ --spacing: 0.25rem;
398
+ }
399
+
400
+ .select__listbox::slotted(small) {
401
+ font-size: 0.875rem;
402
+ font-weight: 600;
403
+ color: var(--nile-colors-dark-500);
404
+ padding-block: 0.25rem;
405
+ padding-inline: 1rem;
406
+ }
407
+
408
+ .select__search {
409
+ position: sticky;
410
+ top: 0px;
411
+ z-index: 1;
412
+ width: calc(100% - 16px);
413
+ padding: 8px;
414
+ background-color: white;
415
+ margin-bottom: -8px;
416
+ }
417
+
418
+ .select__footer {
419
+ position: sticky;
420
+ bottom: 0px;
421
+ background: var(--nile-colors-neutral-100);
422
+ border: 1px solid var(--nile-colors-neutral-400);
423
+ display: flex;
424
+ height: 15px;
425
+ /* Auto layout */
426
+ display: flex;
427
+ flex-direction: row;
428
+ align-items: flex-start;
429
+ padding: 8px 12px 16px;
430
+ gap: 12px;
431
+ justify-content: space-between;
432
+ }
433
+
434
+ .tag__prefix[slot='prefix'] {
435
+ height: 14px;
436
+ display: inline-block;
437
+ overflow: hidden;
438
+ }
439
+
440
+ .tag__prefix[slot='prefix'] img {
441
+ max-height: 100%;
442
+ }
443
+
444
+ .select__loader {
445
+ width: 100%;
446
+ text-align: center;
447
+ display: block;
448
+ }
449
+
450
+ .select__loader--icon {
451
+ margin-top: 20px;
452
+ animation: spin 0.6s linear infinite;
453
+ }
454
+
455
+ .select__no-results {
456
+ padding: 10px;
457
+ }
458
+
459
+ @keyframes spin {
460
+ 0% {
461
+ transform: rotate(0deg);
462
+ }
463
+ 100% {
464
+ transform: rotate(360deg);
465
+ }
466
+ }
467
+
468
+ .select__invisible{
469
+ opacity: 0;
470
+ }
471
+
472
+ .select__prefix--from-options {
473
+ margin-inline-end: 12px;
474
+ }
475
+
476
+ .select__hide-default{
477
+ display: none;
478
+ }
479
+
480
+ .virtualized nile-option[selected] {
481
+ background-color: var(--nile-colors-neutral-100);
482
+ }
483
+
484
+ .virtualized nile-option[selected]::part(base) {
485
+ color: var(--nile-colors-primary-600);
486
+ }
487
+ `;
488
+ export default [styles];
489
+ //# sourceMappingURL=nile-virtual-select.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-virtual-select.css.js","sourceRoot":"","sources":["../../../src/nile-virtual-select/nile-virtual-select.css.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4dxB,CAAC;AAEF,eAAe,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {css} from 'lit';\n\n/**\n * Select_2 CSS\n */\nexport const styles = css`\n :host {\n box-sizing: border-box;\n }\n\n .virtualized{\n min-width: 110px;\n width: 100%;\n }\n\n .virtualized ::slotted(nile-option),\n .virtualized nile-option {\n width: 100%;\n display: block;\n }\n\n /* Ensure proper sizing for non-virtualized options (small datasets) */\n .virtualized:not(:has(lit-virtualizer)) {\n display: flex;\n flex-direction: column;\n }\n\n .virtualized:not(:has(lit-virtualizer)) nile-option {\n flex-shrink: 0;\n }\n\n :host *,\n :host *::before,\n :host *::after {\n box-sizing: inherit;\n }\n\n [hidden] {\n display: none !important;\n }\n\n .form-control .form-control__label {\n display: none;\n }\n\n .form-control .form-control__help-text {\n display: none;\n }\n\n /* Label */\n .form-control--has-label .form-control__label {\n display: block;\n margin-bottom: 6px;\n color: var(--nile-colors-dark-900);\n font-family: Colfax-regular;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n letter-spacing: 0.2px;\n }\n\n .form-control--has-label.form-control--medium .form-control__label {\n font-size: 14px;\n }\n\n :host([required]) .form-control--has-label .form-control__label::after {\n content: '*';\n margin-inline-start: -2px;\n color: var(--nile-colors-red-700);\n }\n\n /* Help text */\n .form-control--has-help-text .form-control__help-text {\n display: block;\n color: var(--nile-colors-dark-500);\n margin-top: 0.75rem;\n }\n\n .form-control--has-help-text.form-control--medium .form-control__help-text {\n font-size: 0.875rem;\n }\n\n .form-control--has-help-text.form-control--radio-group\n .form-control__help-text {\n margin-top: 0.25rem;\n }\n\n :host {\n display: block;\n }\n\n /** The popup */\n .select {\n flex: 1 1 auto;\n display: inline-flex;\n width: 100%;\n position: relative;\n vertical-align: middle;\n }\n\n .select::part(popup) {\n z-index: 9999;\n }\n\n .select[data-current-placement^='top']::part(popup) {\n transform-origin: bottom;\n }\n\n .select[data-current-placement^='bottom']::part(popup) {\n transform-origin: top;\n }\n\n /* Combobox */\n .select__combobox {\n flex: 1;\n display: flex;\n width: 100%;\n min-width: 0;\n position: relative;\n align-items: center;\n justify-content: start;\n font-family: var(--nile-font-family-sans-serif);\n font-weight: 400;\n letter-spacing: normal;\n vertical-align: middle;\n overflow: hidden;\n cursor: pointer;\n transition: 150ms color, 150ms border, 150ms box-shadow,\n 150ms background-color;\n }\n\n .select__display-input {\n position: relative;\n width: 100%;\n font: inherit;\n border: none;\n background: none;\n color: var(--nile-colors-dark-900);\n cursor: inherit;\n overflow: hidden;\n padding: 0;\n margin: 0;\n -webkit-appearance: none;\n font-family: var(--nile-font-family-serif);\n }\n\n .select__display-input::placeholder {\n font-family: var(--nile-font-family-serif);\n }\n\n .select:not(.select--disabled):hover .select__display-input {\n color: var(--nile-colors-dark-900);\n }\n\n .select__display-input:focus {\n outline: none;\n }\n\n /* Visually hide the display input when multiple is enabled */\n .select--multiple:not(.select--placeholder-visible) .select__display-input {\n position: absolute;\n z-index: -1;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n opacity: 0;\n }\n\n .select__value-input {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n padding: 0;\n margin: 0;\n opacity: 0;\n z-index: -1;\n }\n\n .select__tags {\n display: flex;\n flex: 1;\n align-items: center;\n flex-wrap: no-wrap;\n margin-inline-start: 0.5rem;\n width: 100%;\n overflow: hidden;\n }\n\n .select__tags-count {\n color: var(--nile-colors-primary-600);\n font-family: Colfax-regular;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 14px;\n letter-spacing: 0.2px;\n margin: 6px;\n }\n\n .select__tags-count-clearable {\n margin-right: 50px;\n }\n\n .select__tags::slotted(nile-tag) {\n cursor: pointer !important;\n }\n\n .select--disabled .select__tags,\n .select--disabled .select__tags::slotted(nile-tag) {\n cursor: not-allowed !important;\n }\n\n /* Standard selects */\n .select--standard .select__combobox {\n background-color: var(--nile-colors-white-base);\n border: solid 1px var(--nile-colors-neutral-500);\n }\n\n .select--standard .select__combobox:hover {\n border: 1px solid var(--nile-colors-dark-900);\n background: var(--nile-colors-white-base);\n }\n\n .select--standard.select--disabled .select__combobox {\n background-color: var(--nile-colors-neutral-100);\n border-color: var(--nile-colors-neutral-500);\n color: var(--nile-colors-dark-500);\n opacity: 0.5;\n cursor: not-allowed;\n outline: none;\n }\n\n .select--standard:not(.select--disabled).select--open .select__combobox,\n .select--standard:not(.select--disabled).select--focused .select__combobox {\n background-color: var(--nile-colors-neutral-100);\n }\n\n .select--warning .select__combobox {\n border-color: var(--nile-colors-yellow-500);\n }\n\n .select--error .select__combobox {\n border-color: var(--nile-colors-red-500);\n }\n\n .select--success {\n border-color: var(--nile-colors-green-500);\n }\n\n /* Filled selects */\n .select--filled .select__combobox {\n border: none;\n background-color: var(--nile-colors-neutral-100);\n color: var(--nile-colors-dark-900);\n }\n\n .select--filled:hover:not(.select--disabled) .select__combobox {\n background-color: var(--nile-colors-neutral-100);\n }\n\n .select--filled.select--disabled .select__combobox {\n background-color: var(--nile-colors-neutral-100);\n opacity: 0.5;\n cursor: not-allowed;\n }\n\n .select--filled:not(.select--disabled).select--open .select__combobox,\n .select--filled:not(.select--disabled).select--focused .select__combobox {\n background-color: var(--nile-colors-neutral-100);\n outline: 3px solid rgba(0, 89, 255, 0.4);\n }\n\n .select--medium .select__combobox {\n border-radius: 4px;\n font-size: 14px;\n padding: 12px;\n height: 40px;\n box-sizing: border-box;\n }\n\n .select--medium .select__clear {\n margin-inline-start: 0.75rem;\n }\n\n .select--medium .select__prefix::slotted(*) {\n margin-inline-end: 0.75rem;\n }\n\n .select--medium .select__prefix.multiple::slotted(*) {\n margin-inline-start: 0.75rem;\n }\n\n .select--medium.select--multiple:not(.select--placeholder-visible)\n .select__combobox {\n padding-inline-start: 0;\n }\n\n .select--medium .select__tags {\n gap: 3px;\n }\n\n /* Pills */\n .select--pill.select--medium .select__combobox {\n border-radius: 2.5rem;\n }\n\n /* Prefix */\n .select__prefix {\n flex: 0;\n display: inline-flex;\n align-items: center;\n color: var(--nile-colors-dark-500);\n }\n\n .select__suffix {\n flex: 0;\n display: inline-flex;\n align-items: center;\n color: var(--nile-colors-dark-500);\n }\n\n /* Clear button */\n .select__clear {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n font-size: inherit;\n color: var(--nile-colors-primary-600);\n border: none;\n background: none;\n padding: 0;\n transition: 150ms color;\n cursor: pointer;\n }\n\n .select__clear:hover {\n color: var(--nile-colors-dark-500);\n }\n\n .select__clear:focus {\n outline: none;\n }\n\n /* Expand icon */\n .select__expand-icon {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n transition: 250ms rotate ease;\n rotate: 0;\n margin-inline-start: 0.25rem;\n }\n\n .select--open .select__expand-icon {\n rotate: -180deg;\n }\n\n /* Listbox */\n .select__listbox {\n display: block;\n position: relative;\n font-size: 1rem;\n font-weight: 400;\n background: var(--nile-colors-white-base);\n border: solid 1px var(--nile-colors-neutral-500);\n border-radius: 0.25rem;\n padding-block: 0;\n padding-inline: 0;\n overflow: auto;\n overscroll-behavior: none;\n /* Make sure it adheres to the popup's auto size */\n max-width: var(--auto-size-available-width);\n max-height: var(--auto-size-available-height);\n }\n\n .select__options {\n font-size: 14px;\n color: rgb(133, 129, 129);\n width: 100%;\n }\n\n .select__options__search-enabled {\n padding-top: 10px;\n width: 100%;\n }\n\n .select__listbox::slotted(nile-divider) {\n --spacing: 0.25rem;\n }\n\n .select__listbox::slotted(small) {\n font-size: 0.875rem;\n font-weight: 600;\n color: var(--nile-colors-dark-500);\n padding-block: 0.25rem;\n padding-inline: 1rem;\n }\n\n .select__search {\n position: sticky;\n top: 0px;\n z-index: 1;\n width: calc(100% - 16px);\n padding: 8px;\n background-color: white;\n margin-bottom: -8px;\n }\n\n .select__footer {\n position: sticky;\n bottom: 0px;\n background: var(--nile-colors-neutral-100);\n border: 1px solid var(--nile-colors-neutral-400);\n display: flex;\n height: 15px;\n /* Auto layout */\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n padding: 8px 12px 16px;\n gap: 12px;\n justify-content: space-between;\n }\n\n .tag__prefix[slot='prefix'] {\n height: 14px;\n display: inline-block;\n overflow: hidden;\n }\n\n .tag__prefix[slot='prefix'] img {\n max-height: 100%;\n }\n\n .select__loader {\n width: 100%;\n text-align: center;\n display: block;\n }\n\n .select__loader--icon {\n margin-top: 20px;\n animation: spin 0.6s linear infinite;\n }\n\n .select__no-results {\n padding: 10px;\n }\n\n @keyframes spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n }\n\n .select__invisible{\n opacity: 0;\n }\n\n .select__prefix--from-options {\n margin-inline-end: 12px;\n }\n \n .select__hide-default{\n display: none;\n }\n\n .virtualized nile-option[selected] {\n background-color: var(--nile-colors-neutral-100);\n }\n\n .virtualized nile-option[selected]::part(base) {\n color: var(--nile-colors-primary-600);\n }\n`;\n\nexport default [styles];\n"]}