@aquera/nile-elements 1.2.1-beta-1.5 → 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 -657
  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 -221
  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 -219
  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 -219
  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.5",
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,16 +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
- color: var(--nile-colors-neutral-700, var(--ng-colors-text-secondary-700));
239
- }
240
220
 
241
221
  .calendar-switcher {
242
222
  width: 100%;
223
+ margin: var(--nile-spacing-none, var(--ng-spacing-none)) var(--nile-spacing-lg, var(--ng-spacing-lg));
243
224
  margin-top: var(--nile-spacing-xl, var(--ng-spacing-xl));
244
225
  }
245
226
 
@@ -248,26 +229,22 @@ color: var(--nile-colors-neutral-700, var(--ng-colors-text-secondary-700));
248
229
  margin:auto;
249
230
  }
250
231
 
251
- .unit-container {
252
- display: flex;
253
- flex-direction: column;
254
- gap: var(--nile-spacing-xl, var(--ng-spacing-xl));
255
- }
256
-
257
- .unit-group {
258
- display: flex;
259
- flex-direction: column;
260
- gap: 6px;
261
- }
262
-
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
+ }
263
240
 
264
241
  .duration-name{
265
242
  display:flex;
266
243
  align-items:center;
267
- 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));
268
245
  font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));
269
246
  font-style: normal;
270
- 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));
271
248
  line-height: var(--nile-line-height-small, var(--ng-line-height-text-sm));
272
249
  }
273
250
 
@@ -278,7 +255,6 @@ color: var(--nile-colors-neutral-700, var(--ng-colors-text-secondary-700));
278
255
  font-style: normal;
279
256
  font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-regular));
280
257
  line-height: var(--nile-line-height-small, var(--ng-line-height-text-sm));
281
- gap: 6px;
282
258
  }
283
259
 
284
260
  .duration__value{
@@ -288,25 +264,19 @@ color: var(--nile-colors-neutral-700, var(--ng-colors-text-secondary-700));
288
264
  height: 34px;
289
265
  cursor: pointer;
290
266
  border-radius: var(--nile-radius-radius-xs, var(--ng-radius-xs));
291
- border: 1px solid var(--nile-colors-neutral-500, var(--ng-colors-border-secondary-alt));
292
267
  }
293
268
 
294
269
  .duration__value:hover{
295
- background: var(--nile-colors-neutral-400);
270
+ background: var(--nile-colors-neutral-100);
296
271
  }
297
272
 
298
273
  .duration__value--selected{
299
- background-color:var(--nile-colors-blue-400, var(--ng-colors-bg-brand-solid));
300
- color: var(--nile-colors-dark-900, var(--ng-colors-text-white));
301
- font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-semi-bold));
302
- border: 1px solid transparent;
303
- 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));
304
276
  }
305
277
 
306
278
  .duration__value--selected:hover{
307
- background:var(--nile-colors-blue-500, var(--ng-colors-bg-brand-solid-hover));
308
- font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-semi-bold));
309
- 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));
310
280
  }
311
281
 
312
282
  nile-input::part(input)::-webkit-inner-spin-button,
@@ -320,168 +290,15 @@ color: var(--nile-colors-neutral-700, var(--ng-colors-text-secondary-700));
320
290
 
321
291
  .unit-input-container {
322
292
  display: flex;
323
- line-height: 0;
324
293
  justify-content: space-between;
325
294
  gap: var(--nile-spacing-md, var(--ng-spacing-md));
326
- padding: var(--nile-spacing-none, var(--ng-spacing-none))
327
- var(--nile-spacing-xl, var(--ng-spacing-xl))
328
- var(--nile-spacing-none, var(--ng-spacing-xl))
329
- var(--nile-spacing-xl, var(--ng-spacing-xl));
330
-
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));
331
297
  }
332
298
 
333
299
  .duration-input,.time-input,.manual-input {
334
300
  width: 125px;
335
301
  }
336
-
337
-
338
- /* New Styles */
339
-
340
- nile-dropdown[open] > span[slot="trigger"] .calendar-header__caret {
341
- transform: rotate(180deg);
342
- }
343
-
344
-
345
- .calendar-header {
346
- display: flex;
347
- align-items: center;
348
- justify-content: space-between;
349
- font-size: 14px;
350
- font-weight: 600;
351
- line-height: 14px;
352
- letter-spacing: 0.2px;
353
- font-feature-settings: 'liga' off, 'clig' off;
354
- }
355
-
356
- .calendar-header__center {
357
- display: flex;
358
- align-items: center;
359
- gap: 6px;
360
- }
361
-
362
- .calendar-header__trigger {
363
- display: inline-flex;
364
- align-items: center;
365
- gap: 2px;
366
- font-size: 14px;
367
- font-weight: 600;
368
- line-height: 1;
369
- background: transparent;
370
- color: var(--nile-colors-dark-900);
371
- font-family: var(--nile-font-family-medium, var(--ng-font-family-body));
372
- }
373
-
374
- .calendar-header__caret {
375
- width: 16px;
376
- height: 16px;
377
- transition: transform 0.2s ease;
378
- transform-origin: center;
379
- }
380
-
381
- .calendar-menu {
382
- max-height: 194px;
383
- overflow-y: auto;
384
- width: 100px;
385
- }
386
-
387
-
388
-
389
- .month-scroll-wrapper {
390
- max-height: 196px;
391
- overflow-y: auto;
392
- width: 100px;
393
- overflow-x: hidden;
394
- }
395
-
396
- .month-dropdown nile-menu {
397
- overflow-y: auto;
398
- padding: var(--nile-spacing-spacing-lg) var(--nile-spacing-spacing-none);
399
- box-shadow: 0px 4px 8px 0px rgba(119, 125, 130, 0.15);
400
- }
401
-
402
-
403
- .year-scroll-wrapper {
404
- max-height: 196px;
405
- overflow-y: auto;
406
- width: 65px;
407
- overflow-x: hidden;
408
- }
409
-
410
- .year-dropdown nile-menu {
411
- overflow-y: auto;
412
- padding: var(--nile-spacing-spacing-lg) var(--nile-spacing-spacing-none);
413
- box-shadow: 0px 4px 8px 0px rgba(119, 125, 130, 0.15);
414
- }
415
-
416
- .month-dropdown nile-menu-item::part(base) {
417
- padding: 0px 12px;
418
- }
419
- .year-dropdown nile-menu-item::part(base) {
420
- padding: 0px 12px;
421
- }
422
- nile-menu-item[selected]{
423
- background: var(--nile-colors-primary-100);
424
- }
425
-
426
- nile-menu-item[selected]::part(base):hover {
427
- background: var(--nile-colors-primary-100);
428
- border-radius: 0px;
429
- }
430
-
431
-
432
- nile-icon[disabled] {
433
- opacity: 0.4;
434
- pointer-events: none;
435
- }
436
-
437
- .units-wrapper {
438
- display: flex;
439
- flex-direction: column;
440
- gap: var(--nile-spacing-xl, var(--ng-spacing-xl));
441
- padding: var(--nile-spacing-xl, var(--ng-spacing-xl));
442
- width: auto;
443
- }
444
-
445
-
446
-
447
- .duration-name {
448
- font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-regular));
449
- font-size: var(--nile-type-scale-3, var(--ng-font-size-text-md));
450
- }
451
-
452
-
453
-
454
- .calendar-input {
455
- display: flex;
456
- flex-direction: column;
457
- gap: var(--nile-spacing-md, 12px);
458
- padding: var(--nile-spacing-lg, 16px)
459
- var(--nile-spacing-xl, 24px)
460
- var(--nile-spacing-none, 0)
461
- var(--nile-spacing-xl, 24px);
462
- box-sizing: border-box;
463
- }
464
-
465
-
466
- .manual-input {
467
- flex: 1;
468
- min-width: 120px;
469
- }
470
-
471
- .date-input nile-input::part(base),
472
- .time-input nile-input::part(base) {
473
- width: 100%;
474
- }
475
-
476
- .manual-input-label {
477
- font-size: var(--nile-type-scale-2, var(--ng-font-size-text-xs));
478
- font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-medium));
479
- }
480
-
481
-
482
-
483
-
484
-
485
302
  `;
486
303
 
487
304
  export default [styles];