@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
@@ -1,11 +1,11 @@
1
- import{css as n}from"lit";const a=n`
1
+ import{css as a}from"lit";const r=a`
2
2
 
3
3
  .base {
4
4
  background-color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));
5
- border-radius: var(--nile-radius-radius-sm, var(--ng-radius-2xl));
6
- width: 288px;
7
- border: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-secondary-alt));
8
- 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
5
+ border-radius: var(--nile-radius-radius-xl, var(--ng-radius-2xl));
6
+ width: 300px;
7
+ box-shadow: 0px 8px 8px -4px var(--nile-colors-neutral-400);
8
+ box-shadow: 0px 20px 24px -4px var(--nile-colors-dark-100, var(--ng-colors-effects-shadow-xl-01));
9
9
  border: var(--nile-spacing-spacing-none, 1px solid var(--ng-colors-border-secondary-alt));
10
10
  -webkit-font-smoothing: var(--nile-webkit-font-smoothing, var(--ng-webkit-font-smoothing));
11
11
  -moz-osx-font-smoothing: var(--nile-moz-osx-font-smoothing, var(--ng-moz-osx-font-smoothing));
@@ -55,7 +55,7 @@ import{css as n}from"lit";const a=n`
55
55
  .day_date ,.day_name{
56
56
  font-family: var( --nile-font-family-serif, var(--ng-font-family-body));
57
57
  font-style: normal;
58
- font-size: var(--nile-type-scale-2, var(--ng-font-size-text-sm));
58
+ font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));
59
59
  line-height: var(--nile-line-height-20px, var(--ng-line-height-text-sm));
60
60
  text-align: center;
61
61
 
@@ -67,8 +67,7 @@ import{css as n}from"lit";const a=n`
67
67
  }
68
68
 
69
69
  .day_name{
70
- font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-semibold));
71
- font-family: var(--nile-font-family-medium, var(--ng-font-family-body))
70
+ font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-medium));
72
71
  }
73
72
 
74
73
  .day_date{
@@ -77,7 +76,7 @@ import{css as n}from"lit";const a=n`
77
76
  }
78
77
 
79
78
  .current__date__dot{
80
- background-color:var(--nile-colors-primary-600, var(--ng-colors-text-white));
79
+ background-color:white;
81
80
  position:absolute;
82
81
  border-radius:50%;
83
82
  height:5px;
@@ -114,35 +113,27 @@ import{css as n}from"lit";const a=n`
114
113
  .range-start,
115
114
  .range-end {
116
115
  border-radius: var(--nile-radius-radius-xs, var(--ng-radius-xs));
117
- background: var(--nile-colors-blue-400, var(--ng-colors-bg-brand-solid));
118
- color: var(--nile-colors-dark-900, var(--ng-colors-text-white));
119
- font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-regular));
120
- font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
116
+ background: var(--nile-colors-primary-600, var(--ng-colors-bg-brand-solid));
117
+ color: white;
121
118
  }
122
119
 
123
120
  .selected-date:hover,
124
121
  .range-start:hover,
125
122
  .range-end:hover,
126
123
  .day_date.in-range:hover {
127
- background: var(--nile-colors-blue-500, var(--ng-colors-bg-brand-solid-hover));
124
+ background: var(--nile-colors-primary-700, var(--ng-colors-bg-brand-solid-hover));
128
125
  }
129
126
 
130
127
  .range-start.in-range {
131
- background: var(--nile-colors-blue-400, var(--ng-colors-bg-brand-solid));
128
+ background: var(--nile-colors-primary-600, var(--ng-colors-bg-brand-solid));
132
129
  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));
133
- color: var(--nile-colors-dark-900, var(--ng-colors-bg-primary));
134
- font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
135
- font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-regular));
130
+ color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));
136
131
  }
137
132
 
138
133
  .range-end {
139
- background: var(--nile-colors-blue-400, var(--ng-colors-bg-brand-solid));
134
+ background: var(--nile-colors-primary-600, var(--ng-colors-bg-brand-solid));
140
135
  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));
141
- color: var(--nile-colors-dark-900, var(--ng-colors-bg-primary));
142
- font-size: var(--nile-type-scale-2, var(--ng-font-size-text-sm));
143
- letter-spacing: 0.2px;
144
- font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
145
- font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-regular));
136
+ color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));
146
137
  }
147
138
 
148
139
  .range-middle {
@@ -158,13 +149,13 @@ import{css as n}from"lit";const a=n`
158
149
  }
159
150
 
160
151
  .day_date.in-range:not(.range-start,.range-end, .selected-date) {
161
- background: var(--nile-colors-neutral-100, var(--ng-colors-bg-active));
152
+ background: var(--nile-colors-neutral-400, var(--ng-colors-bg-active));
162
153
  }
163
154
 
164
155
  .selected-date {
165
- color: var(--nile-colors-dark-900, var(--ng-colors-bg-primary));
156
+ color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));
166
157
  border-radius: var(--nile-radius-radius-xs, var(--ng-radius-xs));
167
- background: var(--nile-colors-blue-400, var(--ng-colors-bg-brand-solid));
158
+ background: var(--nile-colors-primary-600, var(--ng-colors-bg-brand-solid));
168
159
  }
169
160
 
170
161
  .not-allowed{
@@ -189,10 +180,6 @@ import{css as n}from"lit";const a=n`
189
180
  justify-content: space-between;
190
181
  gap: var(--nile-spacing-md, var(--ng-spacing-md));
191
182
  width: auto;
192
- align-items: flex-end;
193
- gap: var(--nile-spacing-md, var(--ng-spacing-md));
194
- flex-wrap: nowrap;
195
- width: 100%;
196
183
  }
197
184
 
198
185
  .manual-input-label {
@@ -208,8 +195,8 @@ import{css as n}from"lit";const a=n`
208
195
  width: 100%;
209
196
  display:flex;
210
197
  justify-content: end;
211
- gap: var(--nile-spacing-xl, var(--ng-spacing-lg));
212
- 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));
198
+ gap: var(--nile-spacing-10px, var(--ng-spacing-lg));
199
+ 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));
213
200
  box-sizing: border-box;
214
201
  }
215
202
 
@@ -218,16 +205,10 @@ import{css as n}from"lit";const a=n`
218
205
  align-items: center;
219
206
  justify-content: space-between;
220
207
  }
221
- nile-tab::part(base){
222
-
223
- padding-bottom: 12px;
224
- justify-content: center;
225
- font-family: var(--nile-font-family-medium, var(--ng-font-family-body));
226
- color: var(--nile-colors-neutral-700, var(--ng-colors-text-secondary-700));
227
- }
228
208
 
229
209
  .calendar-switcher {
230
210
  width: 100%;
211
+ margin: var(--nile-spacing-none, var(--ng-spacing-none)) var(--nile-spacing-lg, var(--ng-spacing-lg));
231
212
  margin-top: var(--nile-spacing-xl, var(--ng-spacing-xl));
232
213
  }
233
214
 
@@ -236,26 +217,22 @@ color: var(--nile-colors-neutral-700, var(--ng-colors-text-secondary-700));
236
217
  margin:auto;
237
218
  }
238
219
 
239
- .unit-container {
240
- display: flex;
241
- flex-direction: column;
242
- gap: var(--nile-spacing-xl, var(--ng-spacing-xl));
243
- }
244
-
245
- .unit-group {
246
- display: flex;
247
- flex-direction: column;
248
- gap: 6px;
249
- }
250
-
220
+ .unit-container{
221
+ display:grid;
222
+ grid-template-columns: auto auto;
223
+ row-gap:var(--nile-spacing-spacing-2xl, var(--ng-spacing-2xl));
224
+ column-gap: var(--nile-spacing-spacing-sm, var(--ng-spacing-sm));
225
+ padding: var(--nile-spacing-xl, var(--ng-spacing-xl));
226
+ padding-bottom: var(--nile-spacing-none, var(--ng-spacing-none));
227
+ }
251
228
 
252
229
  .duration-name{
253
230
  display:flex;
254
231
  align-items:center;
255
- font-family: var( --nile-font-family-medium, var(--ng-font-family-body));
232
+ font-family: var( --nile-font-family-serif, var(--ng-font-family-body));
256
233
  font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));
257
234
  font-style: normal;
258
- font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-medium));
235
+ font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-medium));
259
236
  line-height: var(--nile-line-height-small, var(--ng-line-height-text-sm));
260
237
  }
261
238
 
@@ -266,7 +243,6 @@ color: var(--nile-colors-neutral-700, var(--ng-colors-text-secondary-700));
266
243
  font-style: normal;
267
244
  font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-regular));
268
245
  line-height: var(--nile-line-height-small, var(--ng-line-height-text-sm));
269
- gap: 6px;
270
246
  }
271
247
 
272
248
  .duration__value{
@@ -276,25 +252,19 @@ color: var(--nile-colors-neutral-700, var(--ng-colors-text-secondary-700));
276
252
  height: 34px;
277
253
  cursor: pointer;
278
254
  border-radius: var(--nile-radius-radius-xs, var(--ng-radius-xs));
279
- border: 1px solid var(--nile-colors-neutral-500, var(--ng-colors-border-secondary-alt));
280
255
  }
281
256
 
282
257
  .duration__value:hover{
283
- background: var(--nile-colors-neutral-400);
258
+ background: var(--nile-colors-neutral-100);
284
259
  }
285
260
 
286
261
  .duration__value--selected{
287
- background-color:var(--nile-colors-blue-400, var(--ng-colors-bg-brand-solid));
288
- color: var(--nile-colors-dark-900, var(--ng-colors-text-white));
289
- font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-semi-bold));
290
- border: 1px solid transparent;
291
- font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
262
+ background-color:var(--nile-colors-primary-600, var(--ng-colors-bg-brand-solid));
263
+ color: var(--nile-colors-white-base, var(--ng-colors-text-white));
292
264
  }
293
265
 
294
266
  .duration__value--selected:hover{
295
- background:var(--nile-colors-blue-500, var(--ng-colors-bg-brand-solid-hover));
296
- font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-semi-bold));
297
- font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
267
+ background:var(--nile-colors-primary-700, var(--ng-colors-bg-brand-solid-hover));
298
268
  }
299
269
 
300
270
  nile-input::part(input)::-webkit-inner-spin-button,
@@ -308,166 +278,13 @@ color: var(--nile-colors-neutral-700, var(--ng-colors-text-secondary-700));
308
278
 
309
279
  .unit-input-container {
310
280
  display: flex;
311
- line-height: 0;
312
281
  justify-content: space-between;
313
282
  gap: var(--nile-spacing-md, var(--ng-spacing-md));
314
- padding: var(--nile-spacing-none, var(--ng-spacing-none))
315
- var(--nile-spacing-xl, var(--ng-spacing-xl))
316
- var(--nile-spacing-none, var(--ng-spacing-xl))
317
- var(--nile-spacing-xl, var(--ng-spacing-xl));
318
-
283
+ padding: var(--nile-spacing-none, var(--ng-spacing-xl)) var(--nile-spacing-xl, var(--ng-spacing-xl));
284
+ padding-top: var(--nile-spacing-xl, var(--ng-spacing-xl));
319
285
  }
320
286
 
321
287
  .duration-input,.time-input,.manual-input {
322
288
  width: 125px;
323
289
  }
324
-
325
-
326
- /* New Styles */
327
-
328
- nile-dropdown[open] > span[slot="trigger"] .calendar-header__caret {
329
- transform: rotate(180deg);
330
- }
331
-
332
-
333
- .calendar-header {
334
- display: flex;
335
- align-items: center;
336
- justify-content: space-between;
337
- font-size: 14px;
338
- font-weight: 600;
339
- line-height: 14px;
340
- letter-spacing: 0.2px;
341
- font-feature-settings: 'liga' off, 'clig' off;
342
- }
343
-
344
- .calendar-header__center {
345
- display: flex;
346
- align-items: center;
347
- gap: 6px;
348
- }
349
-
350
- .calendar-header__trigger {
351
- display: inline-flex;
352
- align-items: center;
353
- gap: 2px;
354
- font-size: 14px;
355
- font-weight: 600;
356
- line-height: 1;
357
- background: transparent;
358
- color: var(--nile-colors-dark-900);
359
- font-family: var(--nile-font-family-medium, var(--ng-font-family-body));
360
- }
361
-
362
- .calendar-header__caret {
363
- width: 16px;
364
- height: 16px;
365
- transition: transform 0.2s ease;
366
- transform-origin: center;
367
- }
368
-
369
- .calendar-menu {
370
- max-height: 194px;
371
- overflow-y: auto;
372
- width: 100px;
373
- }
374
-
375
-
376
-
377
- .month-scroll-wrapper {
378
- max-height: 196px;
379
- overflow-y: auto;
380
- width: 100px;
381
- overflow-x: hidden;
382
- }
383
-
384
- .month-dropdown nile-menu {
385
- overflow-y: auto;
386
- padding: var(--nile-spacing-spacing-lg) var(--nile-spacing-spacing-none);
387
- box-shadow: 0px 4px 8px 0px rgba(119, 125, 130, 0.15);
388
- }
389
-
390
-
391
- .year-scroll-wrapper {
392
- max-height: 196px;
393
- overflow-y: auto;
394
- width: 65px;
395
- overflow-x: hidden;
396
- }
397
-
398
- .year-dropdown nile-menu {
399
- overflow-y: auto;
400
- padding: var(--nile-spacing-spacing-lg) var(--nile-spacing-spacing-none);
401
- box-shadow: 0px 4px 8px 0px rgba(119, 125, 130, 0.15);
402
- }
403
-
404
- .month-dropdown nile-menu-item::part(base) {
405
- padding: 0px 12px;
406
- }
407
- .year-dropdown nile-menu-item::part(base) {
408
- padding: 0px 12px;
409
- }
410
- nile-menu-item[selected]{
411
- background: var(--nile-colors-primary-100);
412
- }
413
-
414
- nile-menu-item[selected]::part(base):hover {
415
- background: var(--nile-colors-primary-100);
416
- border-radius: 0px;
417
- }
418
-
419
-
420
- nile-icon[disabled] {
421
- opacity: 0.4;
422
- pointer-events: none;
423
- }
424
-
425
- .units-wrapper {
426
- display: flex;
427
- flex-direction: column;
428
- gap: var(--nile-spacing-xl, var(--ng-spacing-xl));
429
- padding: var(--nile-spacing-xl, var(--ng-spacing-xl));
430
- width: auto;
431
- }
432
-
433
-
434
-
435
- .duration-name {
436
- font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-regular));
437
- font-size: var(--nile-type-scale-3, var(--ng-font-size-text-md));
438
- }
439
-
440
-
441
-
442
- .calendar-input {
443
- display: flex;
444
- flex-direction: column;
445
- gap: var(--nile-spacing-md, 12px);
446
- padding: var(--nile-spacing-lg, 16px)
447
- var(--nile-spacing-xl, 24px)
448
- var(--nile-spacing-none, 0)
449
- var(--nile-spacing-xl, 24px);
450
- box-sizing: border-box;
451
- }
452
-
453
-
454
- .manual-input {
455
- flex: 1;
456
- min-width: 120px;
457
- }
458
-
459
- .date-input nile-input::part(base),
460
- .time-input nile-input::part(base) {
461
- width: 100%;
462
- }
463
-
464
- .manual-input-label {
465
- font-size: var(--nile-type-scale-2, var(--ng-font-size-text-xs));
466
- font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-medium));
467
- }
468
-
469
-
470
-
471
-
472
-
473
- `;export{a as s};
290
+ `;export{r as s};