@aquera/nile-elements 1.2.1-beta-1.6 → 1.2.1-beta-1.7

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 (43) hide show
  1. package/demo/index.html +83 -100
  2. package/demo/variables.css +2 -3
  3. package/dist/index.js +369 -656
  4. package/dist/nile-calendar/nile-calendar.cjs.js +1 -1
  5. package/dist/nile-calendar/nile-calendar.cjs.js.map +1 -1
  6. package/dist/nile-calendar/nile-calendar.css.cjs.js +1 -1
  7. package/dist/nile-calendar/nile-calendar.css.cjs.js.map +1 -1
  8. package/dist/nile-calendar/nile-calendar.css.esm.js +38 -220
  9. package/dist/nile-calendar/nile-calendar.esm.js +98 -204
  10. package/dist/nile-select/nile-select.cjs.js +1 -1
  11. package/dist/nile-select/nile-select.cjs.js.map +1 -1
  12. package/dist/nile-select/nile-select.esm.js +4 -4
  13. package/dist/nile-select/virtual-scroll-helper.cjs.js +1 -1
  14. package/dist/nile-select/virtual-scroll-helper.cjs.js.map +1 -1
  15. package/dist/nile-select/virtual-scroll-helper.esm.js +1 -0
  16. package/dist/nile-virtual-select/nile-virtual-select.cjs.js +1 -1
  17. package/dist/nile-virtual-select/nile-virtual-select.cjs.js.map +1 -1
  18. package/dist/nile-virtual-select/nile-virtual-select.esm.js +1 -1
  19. package/dist/src/nile-calendar/nile-calendar.css.js +36 -218
  20. package/dist/src/nile-calendar/nile-calendar.css.js.map +1 -1
  21. package/dist/src/nile-calendar/nile-calendar.d.ts +0 -15
  22. package/dist/src/nile-calendar/nile-calendar.js +93 -318
  23. package/dist/src/nile-calendar/nile-calendar.js.map +1 -1
  24. package/dist/src/nile-rich-text-editor/utils.d.ts +0 -13
  25. package/dist/src/nile-rich-text-editor/utils.js +1 -537
  26. package/dist/src/nile-rich-text-editor/utils.js.map +1 -1
  27. package/dist/src/nile-select/nile-select.d.ts +1 -0
  28. package/dist/src/nile-select/nile-select.js +30 -9
  29. package/dist/src/nile-select/nile-select.js.map +1 -1
  30. package/dist/src/nile-select/virtual-scroll-helper.js +1 -0
  31. package/dist/src/nile-select/virtual-scroll-helper.js.map +1 -1
  32. package/dist/src/nile-virtual-select/nile-virtual-select.js +1 -0
  33. package/dist/src/nile-virtual-select/nile-virtual-select.js.map +1 -1
  34. package/dist/src/version.js +1 -1
  35. package/dist/src/version.js.map +1 -1
  36. package/dist/tsconfig.tsbuildinfo +1 -1
  37. package/package.json +1 -1
  38. package/src/nile-calendar/nile-calendar.css.ts +36 -218
  39. package/src/nile-calendar/nile-calendar.ts +106 -343
  40. package/src/nile-select/nile-select.ts +25 -15
  41. package/src/nile-select/virtual-scroll-helper.ts +2 -0
  42. package/src/nile-virtual-select/nile-virtual-select.ts +1 -0
  43. package/vscode-html-custom-data.json +17 -41
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Webcomponent nile-elements following open-wc recommendations",
4
4
  "license": "MIT",
5
5
  "author": "nile-elements",
6
- "version": "1.2.1-beta-1.6",
6
+ "version": "1.2.1-beta-1.7",
7
7
  "main": "dist/src/index.js",
8
8
  "type": "module",
9
9
  "module": "dist/src/index.js",
@@ -14,10 +14,10 @@ export const styles = css`
14
14
 
15
15
  .base {
16
16
  background-color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));
17
- border-radius: var(--nile-radius-radius-sm, var(--ng-radius-2xl));
18
- width: 288px;
19
- border: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-secondary-alt));
20
- box-shadow: var(--nile-box-shadow-13, 0px 20px 24px -4px var(--ng-colors-effects-shadow-xl-01)); // Need to fix the token for this
17
+ border-radius: var(--nile-radius-radius-xl, var(--ng-radius-2xl));
18
+ width: 300px;
19
+ box-shadow: 0px 8px 8px -4px var(--nile-colors-neutral-400);
20
+ box-shadow: 0px 20px 24px -4px var(--nile-colors-dark-100, var(--ng-colors-effects-shadow-xl-01));
21
21
  border: var(--nile-spacing-spacing-none, 1px solid var(--ng-colors-border-secondary-alt));
22
22
  -webkit-font-smoothing: var(--nile-webkit-font-smoothing, var(--ng-webkit-font-smoothing));
23
23
  -moz-osx-font-smoothing: var(--nile-moz-osx-font-smoothing, var(--ng-moz-osx-font-smoothing));
@@ -67,7 +67,7 @@ export const styles = css`
67
67
  .day_date ,.day_name{
68
68
  font-family: var( --nile-font-family-serif, var(--ng-font-family-body));
69
69
  font-style: normal;
70
- font-size: var(--nile-type-scale-2, var(--ng-font-size-text-sm));
70
+ font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));
71
71
  line-height: var(--nile-line-height-20px, var(--ng-line-height-text-sm));
72
72
  text-align: center;
73
73
 
@@ -79,8 +79,7 @@ export const styles = css`
79
79
  }
80
80
 
81
81
  .day_name{
82
- font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-semibold));
83
- font-family: var(--nile-font-family-medium, var(--ng-font-family-body))
82
+ font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-medium));
84
83
  }
85
84
 
86
85
  .day_date{
@@ -89,7 +88,7 @@ export const styles = css`
89
88
  }
90
89
 
91
90
  .current__date__dot{
92
- background-color:var(--nile-colors-primary-600, var(--ng-colors-text-white));
91
+ background-color:white;
93
92
  position:absolute;
94
93
  border-radius:50%;
95
94
  height:5px;
@@ -126,35 +125,27 @@ export const styles = css`
126
125
  .range-start,
127
126
  .range-end {
128
127
  border-radius: var(--nile-radius-radius-xs, var(--ng-radius-xs));
129
- background: var(--nile-colors-blue-400, var(--ng-colors-bg-brand-solid));
130
- color: var(--nile-colors-dark-900, var(--ng-colors-text-white));
131
- font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-regular));
132
- font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
128
+ background: var(--nile-colors-primary-600, var(--ng-colors-bg-brand-solid));
129
+ color: white;
133
130
  }
134
131
 
135
132
  .selected-date:hover,
136
133
  .range-start:hover,
137
134
  .range-end:hover,
138
135
  .day_date.in-range:hover {
139
- background: var(--nile-colors-blue-500, var(--ng-colors-bg-brand-solid-hover));
136
+ background: var(--nile-colors-primary-700, var(--ng-colors-bg-brand-solid-hover));
140
137
  }
141
138
 
142
139
  .range-start.in-range {
143
- background: var(--nile-colors-blue-400, var(--ng-colors-bg-brand-solid));
140
+ background: var(--nile-colors-primary-600, var(--ng-colors-bg-brand-solid));
144
141
  border-radius: var(--nile-radius-radius-xs, var(--ng-radius-xs)) var(--nile-radius-radius-none, var(--ng-radius-none)) var(--nile-radius-radius-none, var(--ng-radius-none)) var(--nile-radius-radius-xs, var(--ng-radius-xs));
145
- color: var(--nile-colors-dark-900, var(--ng-colors-bg-primary));
146
- font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
147
- font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-regular));
142
+ color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));
148
143
  }
149
144
 
150
145
  .range-end {
151
- background: var(--nile-colors-blue-400, var(--ng-colors-bg-brand-solid));
146
+ background: var(--nile-colors-primary-600, var(--ng-colors-bg-brand-solid));
152
147
  border-radius: var(--nile-radius-radius-none, var(--ng-radius-none)) var(--nile-radius-radius-xs, var(--ng-radius-xs)) var(--nile-radius-radius-xs, var(--ng-radius-xs)) var(--nile-radius-radius-none, var(--ng-radius-none));
153
- color: var(--nile-colors-dark-900, var(--ng-colors-bg-primary));
154
- font-size: var(--nile-type-scale-2, var(--ng-font-size-text-sm));
155
- letter-spacing: 0.2px;
156
- font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
157
- font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-regular));
148
+ color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));
158
149
  }
159
150
 
160
151
  .range-middle {
@@ -170,13 +161,13 @@ export const styles = css`
170
161
  }
171
162
 
172
163
  .day_date.in-range:not(.range-start,.range-end, .selected-date) {
173
- background: var(--nile-colors-neutral-100, var(--ng-colors-bg-active));
164
+ background: var(--nile-colors-neutral-400, var(--ng-colors-bg-active));
174
165
  }
175
166
 
176
167
  .selected-date {
177
- color: var(--nile-colors-dark-900, var(--ng-colors-bg-primary));
168
+ color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));
178
169
  border-radius: var(--nile-radius-radius-xs, var(--ng-radius-xs));
179
- background: var(--nile-colors-blue-400, var(--ng-colors-bg-brand-solid));
170
+ background: var(--nile-colors-primary-600, var(--ng-colors-bg-brand-solid));
180
171
  }
181
172
 
182
173
  .not-allowed{
@@ -201,10 +192,6 @@ export const styles = css`
201
192
  justify-content: space-between;
202
193
  gap: var(--nile-spacing-md, var(--ng-spacing-md));
203
194
  width: auto;
204
- align-items: flex-end;
205
- gap: var(--nile-spacing-md, var(--ng-spacing-md));
206
- flex-wrap: nowrap;
207
- width: 100%;
208
195
  }
209
196
 
210
197
  .manual-input-label {
@@ -220,8 +207,8 @@ export const styles = css`
220
207
  width: 100%;
221
208
  display:flex;
222
209
  justify-content: end;
223
- gap: var(--nile-spacing-xl, var(--ng-spacing-lg));
224
- padding: var(--nile-spacing-xl, var(--ng-spacing-lg)) var(--nile-spacing-spacing-xl, var(--ng-spacing-xl)) var(--nile-spacing-spacing-xl, var(--ng-spacing-xl)) var(--nile-spacing-spacing-xl, var(--ng-spacing-xl));
210
+ gap: var(--nile-spacing-10px, var(--ng-spacing-lg));
211
+ padding: var(--nile-spacing-lg, var(--ng-spacing-lg)) var(--nile-spacing-spacing-xl, var(--ng-spacing-xl)) var(--nile-spacing-spacing-xl, var(--ng-spacing-xl)) var(--nile-spacing-spacing-xl, var(--ng-spacing-xl));
225
212
  box-sizing: border-box;
226
213
  }
227
214
 
@@ -230,15 +217,10 @@ export const styles = css`
230
217
  align-items: center;
231
218
  justify-content: space-between;
232
219
  }
233
- nile-tab::part(base){
234
-
235
- padding-bottom: 12px;
236
- justify-content: center;
237
- font-family: var(--nile-font-family-medium, var(--ng-font-family-body));
238
- }
239
220
 
240
221
  .calendar-switcher {
241
222
  width: 100%;
223
+ margin: var(--nile-spacing-none, var(--ng-spacing-none)) var(--nile-spacing-lg, var(--ng-spacing-lg));
242
224
  margin-top: var(--nile-spacing-xl, var(--ng-spacing-xl));
243
225
  }
244
226
 
@@ -247,26 +229,22 @@ font-family: var(--nile-font-family-medium, var(--ng-font-family-body));
247
229
  margin:auto;
248
230
  }
249
231
 
250
- .unit-container {
251
- display: flex;
252
- flex-direction: column;
253
- gap: var(--nile-spacing-xl, var(--ng-spacing-xl));
254
- }
255
-
256
- .unit-group {
257
- display: flex;
258
- flex-direction: column;
259
- gap: 6px;
260
- }
261
-
232
+ .unit-container{
233
+ display:grid;
234
+ grid-template-columns: auto auto;
235
+ row-gap:var(--nile-spacing-spacing-2xl, var(--ng-spacing-2xl));
236
+ column-gap: var(--nile-spacing-spacing-sm, var(--ng-spacing-sm));
237
+ padding: var(--nile-spacing-xl, var(--ng-spacing-xl));
238
+ padding-bottom: var(--nile-spacing-none, var(--ng-spacing-none));
239
+ }
262
240
 
263
241
  .duration-name{
264
242
  display:flex;
265
243
  align-items:center;
266
- font-family: var( --nile-font-family-medium, var(--ng-font-family-body));
244
+ font-family: var( --nile-font-family-serif, var(--ng-font-family-body));
267
245
  font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));
268
246
  font-style: normal;
269
- font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-medium));
247
+ font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-medium));
270
248
  line-height: var(--nile-line-height-small, var(--ng-line-height-text-sm));
271
249
  }
272
250
 
@@ -277,7 +255,6 @@ font-family: var(--nile-font-family-medium, var(--ng-font-family-body));
277
255
  font-style: normal;
278
256
  font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-regular));
279
257
  line-height: var(--nile-line-height-small, var(--ng-line-height-text-sm));
280
- gap: 6px;
281
258
  }
282
259
 
283
260
  .duration__value{
@@ -287,25 +264,19 @@ font-family: var(--nile-font-family-medium, var(--ng-font-family-body));
287
264
  height: 34px;
288
265
  cursor: pointer;
289
266
  border-radius: var(--nile-radius-radius-xs, var(--ng-radius-xs));
290
- border: 1px solid var(--nile-colors-neutral-500, var(--ng-colors-border-secondary-alt));
291
267
  }
292
268
 
293
269
  .duration__value:hover{
294
- background: var(--nile-colors-neutral-400);
270
+ background: var(--nile-colors-neutral-100);
295
271
  }
296
272
 
297
273
  .duration__value--selected{
298
- background-color:var(--nile-colors-blue-400, var(--ng-colors-bg-brand-solid));
299
- color: var(--nile-colors-dark-900, var(--ng-colors-text-white));
300
- font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-semi-bold));
301
- border: 1px solid transparent;
302
- font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
274
+ background-color:var(--nile-colors-primary-600, var(--ng-colors-bg-brand-solid));
275
+ color: var(--nile-colors-white-base, var(--ng-colors-text-white));
303
276
  }
304
277
 
305
278
  .duration__value--selected:hover{
306
- background:var(--nile-colors-blue-500, var(--ng-colors-bg-brand-solid-hover));
307
- font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-semi-bold));
308
- font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
279
+ background:var(--nile-colors-primary-700, var(--ng-colors-bg-brand-solid-hover));
309
280
  }
310
281
 
311
282
  nile-input::part(input)::-webkit-inner-spin-button,
@@ -319,168 +290,15 @@ font-family: var(--nile-font-family-medium, var(--ng-font-family-body));
319
290
 
320
291
  .unit-input-container {
321
292
  display: flex;
322
- line-height: 0;
323
293
  justify-content: space-between;
324
294
  gap: var(--nile-spacing-md, var(--ng-spacing-md));
325
- padding: var(--nile-spacing-none, var(--ng-spacing-none))
326
- var(--nile-spacing-xl, var(--ng-spacing-xl))
327
- var(--nile-spacing-none, var(--ng-spacing-xl))
328
- var(--nile-spacing-xl, var(--ng-spacing-xl));
329
-
295
+ padding: var(--nile-spacing-none, var(--ng-spacing-xl)) var(--nile-spacing-xl, var(--ng-spacing-xl));
296
+ padding-top: var(--nile-spacing-xl, var(--ng-spacing-xl));
330
297
  }
331
298
 
332
299
  .duration-input,.time-input,.manual-input {
333
300
  width: 125px;
334
301
  }
335
-
336
-
337
- /* New Styles */
338
-
339
- nile-dropdown[open] > span[slot="trigger"] .calendar-header__caret {
340
- transform: rotate(180deg);
341
- }
342
-
343
-
344
- .calendar-header {
345
- display: flex;
346
- align-items: center;
347
- justify-content: space-between;
348
- font-size: 14px;
349
- font-weight: 600;
350
- line-height: 14px;
351
- letter-spacing: 0.2px;
352
- font-feature-settings: 'liga' off, 'clig' off;
353
- }
354
-
355
- .calendar-header__center {
356
- display: flex;
357
- align-items: center;
358
- gap: 6px;
359
- }
360
-
361
- .calendar-header__trigger {
362
- display: inline-flex;
363
- align-items: center;
364
- gap: 2px;
365
- font-size: 14px;
366
- font-weight: 600;
367
- line-height: 1;
368
- background: transparent;
369
- color: var(--nile-colors-dark-900);
370
- font-family: var(--nile-font-family-medium, var(--ng-font-family-body));
371
- }
372
-
373
- .calendar-header__caret {
374
- width: 16px;
375
- height: 16px;
376
- transition: transform 0.2s ease;
377
- transform-origin: center;
378
- }
379
-
380
- .calendar-menu {
381
- max-height: 194px;
382
- overflow-y: auto;
383
- width: 100px;
384
- }
385
-
386
-
387
-
388
- .month-scroll-wrapper {
389
- max-height: 196px;
390
- overflow-y: auto;
391
- width: 100px;
392
- overflow-x: hidden;
393
- }
394
-
395
- .month-dropdown nile-menu {
396
- overflow-y: auto;
397
- padding: var(--nile-spacing-spacing-lg) var(--nile-spacing-spacing-none);
398
- box-shadow: 0px 4px 8px 0px rgba(119, 125, 130, 0.15);
399
- }
400
-
401
-
402
- .year-scroll-wrapper {
403
- max-height: 196px;
404
- overflow-y: auto;
405
- width: 65px;
406
- overflow-x: hidden;
407
- }
408
-
409
- .year-dropdown nile-menu {
410
- overflow-y: auto;
411
- padding: var(--nile-spacing-spacing-lg) var(--nile-spacing-spacing-none);
412
- box-shadow: 0px 4px 8px 0px rgba(119, 125, 130, 0.15);
413
- }
414
-
415
- .month-dropdown nile-menu-item::part(base) {
416
- padding: 0px 12px;
417
- }
418
- .year-dropdown nile-menu-item::part(base) {
419
- padding: 0px 12px;
420
- }
421
- nile-menu-item[selected]{
422
- background: var(--nile-colors-primary-100);
423
- }
424
-
425
- nile-menu-item[selected]::part(base):hover {
426
- background: var(--nile-colors-primary-100);
427
- border-radius: 0px;
428
- }
429
-
430
-
431
- nile-icon[disabled] {
432
- opacity: 0.4;
433
- pointer-events: none;
434
- }
435
-
436
- .units-wrapper {
437
- display: flex;
438
- flex-direction: column;
439
- gap: var(--nile-spacing-xl, var(--ng-spacing-xl));
440
- padding: var(--nile-spacing-xl, var(--ng-spacing-xl));
441
- width: auto;
442
- }
443
-
444
-
445
-
446
- .duration-name {
447
- font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-regular));
448
- font-size: var(--nile-type-scale-3, var(--ng-font-size-text-md));
449
- }
450
-
451
-
452
-
453
- .calendar-input {
454
- display: flex;
455
- flex-direction: column;
456
- gap: var(--nile-spacing-md, 12px);
457
- padding: var(--nile-spacing-lg, 16px)
458
- var(--nile-spacing-xl, 24px)
459
- var(--nile-spacing-none, 0)
460
- var(--nile-spacing-xl, 24px);
461
- box-sizing: border-box;
462
- }
463
-
464
-
465
- .manual-input {
466
- flex: 1;
467
- min-width: 120px;
468
- }
469
-
470
- .date-input nile-input::part(base),
471
- .time-input nile-input::part(base) {
472
- width: 100%;
473
- }
474
-
475
- .manual-input-label {
476
- font-size: var(--nile-type-scale-2, var(--ng-font-size-text-xs));
477
- font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-medium));
478
- }
479
-
480
-
481
-
482
-
483
-
484
302
  `;
485
303
 
486
304
  export default [styles];