@aquera/nile-elements 0.1.36-beta-1.4 → 0.1.37

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