@aquera/nile-elements 1.2.8-beta-1.1 → 1.2.8-beta-1.3

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 (42) hide show
  1. package/README.md +5 -0
  2. package/demo/index.html +33 -93
  3. package/demo/nxtgen.css +0 -6
  4. package/demo/variables.css +0 -4
  5. package/dist/index.js +411 -699
  6. package/dist/nile-calendar/nile-calendar.cjs.js +1 -1
  7. package/dist/nile-calendar/nile-calendar.cjs.js.map +1 -1
  8. package/dist/nile-calendar/nile-calendar.css.cjs.js +1 -1
  9. package/dist/nile-calendar/nile-calendar.css.cjs.js.map +1 -1
  10. package/dist/nile-calendar/nile-calendar.css.esm.js +46 -234
  11. package/dist/nile-calendar/nile-calendar.esm.js +106 -220
  12. package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js +1 -1
  13. package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js.map +1 -1
  14. package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js +1 -1
  15. package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js.map +1 -1
  16. package/dist/nile-rich-text-editor/nile-rich-text-editor.css.esm.js +32 -18
  17. package/dist/nile-rich-text-editor/nile-rich-text-editor.esm.js +1 -1
  18. package/dist/nile-virtual-select/nile-virtual-select.cjs.js +2 -2
  19. package/dist/nile-virtual-select/nile-virtual-select.cjs.js.map +1 -1
  20. package/dist/nile-virtual-select/nile-virtual-select.esm.js +3 -3
  21. package/dist/src/nile-calendar/nile-calendar.css.js +44 -232
  22. package/dist/src/nile-calendar/nile-calendar.css.js.map +1 -1
  23. package/dist/src/nile-calendar/nile-calendar.d.ts +0 -15
  24. package/dist/src/nile-calendar/nile-calendar.js +101 -340
  25. package/dist/src/nile-calendar/nile-calendar.js.map +1 -1
  26. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.js +30 -16
  27. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.js.map +1 -1
  28. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.d.ts +1 -0
  29. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js +12 -0
  30. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js.map +1 -1
  31. package/dist/src/nile-virtual-select/nile-virtual-select.js +19 -1
  32. package/dist/src/nile-virtual-select/nile-virtual-select.js.map +1 -1
  33. package/dist/src/version.js +2 -2
  34. package/dist/src/version.js.map +1 -1
  35. package/dist/tsconfig.tsbuildinfo +1 -1
  36. package/package.json +1 -1
  37. package/src/nile-calendar/nile-calendar.css.ts +44 -232
  38. package/src/nile-calendar/nile-calendar.ts +115 -369
  39. package/src/nile-rich-text-editor/nile-rich-text-editor.css.ts +30 -16
  40. package/src/nile-rich-text-editor/nile-rich-text-editor.ts +12 -0
  41. package/src/nile-virtual-select/nile-virtual-select.ts +26 -2
  42. package/vscode-html-custom-data.json +27 -47
@@ -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: var(--nile-width-288px, var(--ng-width-312));
7
- border: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-secondary-alt));
8
- box-shadow: var(--nile-box-shadow-15, 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));
@@ -53,30 +53,30 @@ import{css as n}from"lit";const a=n`
53
53
  }
54
54
 
55
55
  .day_date ,.day_name{
56
- font-family: var(--nile-font-family-serif-colfax-medium, var(--ng-font-family-body));
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
- width: 100%;
62
- height: var(--nile-width-32px, var(--ng-width-10));
61
+
62
+ /* width: 40px;
63
+ height: 30px; */
64
+ padding: 5px 8px;
63
65
  display:grid;
64
66
  place-items:center;
65
67
  }
66
68
 
67
69
  .day_name{
68
- font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-semibold));
69
- font-family: var(--nile-font-family-serif-colfax-medium, var(--ng-font-family-body))
70
+ font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-medium));
70
71
  }
71
72
 
72
73
  .day_date{
73
74
  font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-regular));
74
- font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
75
75
  user-select:none;
76
76
  }
77
77
 
78
78
  .current__date__dot{
79
- background-color:var(--nile-colors-primary-600, var(--ng-colors-text-white));
79
+ background-color:white;
80
80
  position:absolute;
81
81
  border-radius:50%;
82
82
  height:5px;
@@ -113,35 +113,27 @@ import{css as n}from"lit";const a=n`
113
113
  .range-start,
114
114
  .range-end {
115
115
  border-radius: var(--nile-radius-radius-xs, var(--ng-radius-xs));
116
- background: var(--nile-colors-blue-400, var(--ng-colors-bg-brand-solid));
117
- color: var(--nile-colors-dark-900, var(--ng-colors-text-white));
118
- font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-regular));
119
- 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;
120
118
  }
121
119
 
122
120
  .selected-date:hover,
123
121
  .range-start:hover,
124
122
  .range-end:hover,
125
123
  .day_date.in-range:hover {
126
- 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));
127
125
  }
128
126
 
129
127
  .range-start.in-range {
130
- 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));
131
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));
132
- color: var(--nile-colors-dark-900, var(--ng-colors-bg-primary));
133
- font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
134
- 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));
135
131
  }
136
132
 
137
133
  .range-end {
138
- 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));
139
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));
140
- color: var(--nile-colors-dark-900, var(--ng-colors-bg-primary));
141
- font-size: var(--nile-type-scale-2, var(--ng-font-size-text-sm));
142
- letter-spacing: 0.2px;
143
- font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
144
- 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));
145
137
  }
146
138
 
147
139
  .range-middle {
@@ -157,13 +149,13 @@ import{css as n}from"lit";const a=n`
157
149
  }
158
150
 
159
151
  .day_date.in-range:not(.range-start,.range-end, .selected-date) {
160
- background: var(--nile-colors-neutral-100, var(--ng-colors-bg-active));
152
+ background: var(--nile-colors-neutral-400, var(--ng-colors-bg-active));
161
153
  }
162
154
 
163
155
  .selected-date {
164
- color: var(--nile-colors-dark-900, var(--ng-colors-bg-primary));
156
+ color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));
165
157
  border-radius: var(--nile-radius-radius-xs, var(--ng-radius-xs));
166
- 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));
167
159
  }
168
160
 
169
161
  .not-allowed{
@@ -188,10 +180,6 @@ import{css as n}from"lit";const a=n`
188
180
  justify-content: space-between;
189
181
  gap: var(--nile-spacing-md, var(--ng-spacing-md));
190
182
  width: auto;
191
- align-items: flex-end;
192
- gap: var(--nile-spacing-md, var(--ng-spacing-md));
193
- flex-wrap: nowrap;
194
- width: 100%;
195
183
  }
196
184
 
197
185
  .manual-input-label {
@@ -207,8 +195,8 @@ import{css as n}from"lit";const a=n`
207
195
  width: 100%;
208
196
  display:flex;
209
197
  justify-content: end;
210
- gap: var(--nile-spacing-xl, var(--ng-spacing-lg));
211
- 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));
212
200
  box-sizing: border-box;
213
201
  }
214
202
 
@@ -217,16 +205,10 @@ import{css as n}from"lit";const a=n`
217
205
  align-items: center;
218
206
  justify-content: space-between;
219
207
  }
220
- nile-tab::part(base){
221
- padding-bottom: 12px;
222
- justify-content: center;
223
- font-size: var(--nile-type-scale-3, var(--ng-font-size-text-md));
224
- font-family: var(--nile-font-family-colfax-medium, var(--ng-font-family-body));
225
- font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-semibold));
226
- }
227
208
 
228
209
  .calendar-switcher {
229
210
  width: 100%;
211
+ margin: var(--nile-spacing-none, var(--ng-spacing-none)) var(--nile-spacing-lg, var(--ng-spacing-lg));
230
212
  margin-top: var(--nile-spacing-xl, var(--ng-spacing-xl));
231
213
  }
232
214
 
@@ -235,26 +217,22 @@ font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-semibold));
235
217
  margin:auto;
236
218
  }
237
219
 
238
- .unit-container {
239
- display: flex;
240
- flex-direction: column;
241
- gap: var(--nile-spacing-xl, var(--ng-spacing-xl));
242
- }
243
-
244
- .unit-group {
245
- display: flex;
246
- flex-direction: column;
247
- gap: 6px;
248
- }
249
-
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
+ }
250
228
 
251
229
  .duration-name{
252
230
  display:flex;
253
231
  align-items:center;
254
- font-family: var( --nile-font-family-colfax-medium, var(--ng-font-family-body));
232
+ font-family: var( --nile-font-family-serif, var(--ng-font-family-body));
255
233
  font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));
256
234
  font-style: normal;
257
- font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-semibold));
235
+ font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-medium));
258
236
  line-height: var(--nile-line-height-small, var(--ng-line-height-text-sm));
259
237
  }
260
238
 
@@ -265,36 +243,28 @@ font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-semibold));
265
243
  font-style: normal;
266
244
  font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-regular));
267
245
  line-height: var(--nile-line-height-small, var(--ng-line-height-text-sm));
268
- gap: 6px;
269
246
  }
270
247
 
271
248
  .duration__value{
272
249
  display: grid;
273
250
  place-items:center;
274
- width: var(--nile-width-32px, var(--ng-width-10));
275
- height: var(--nile-width-32px, var(--ng-width-10));
251
+ width: 34px;
252
+ height: 34px;
276
253
  cursor: pointer;
277
- border-radius: var(--nile-radius-radius-xs, var(--ng-radius-md));
278
- border: 1px solid var(--nile-colors-neutral-500, var(--ng-colors-border-primary));
254
+ border-radius: var(--nile-radius-radius-xs, var(--ng-radius-xs));
279
255
  }
280
256
 
281
257
  .duration__value:hover{
282
- background: var(--nile-colors-neutral-400, var(--ng-colors-bg-quaternary));
283
- border:
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,171 +278,13 @@ font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-semibold));
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
- .calendar-input {
434
- display: flex;
435
- flex-direction: column;
436
- gap: var(--nile-spacing-md, 12px);
437
- padding: var(--nile-spacing-lg, 16px)
438
- var(--nile-spacing-xl, 24px)
439
- var(--nile-spacing-none, 0)
440
- var(--nile-spacing-xl, 24px);
441
- box-sizing: border-box;
442
- }
443
-
444
-
445
- .manual-input {
446
- flex: 1;
447
- min-width: 120px;
448
- }
449
-
450
- .date-input nile-input::part(base),
451
- .time-input nile-input::part(base) {
452
- width: 100%;
453
- }
454
-
455
- .manual-input-label {
456
- font-size: var(--nile-type-scale-2, var(--ng-font-size-text-xs));
457
- font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-medium));
458
- }
459
-
460
-
461
-
462
- .day_date.in-range:hover:not(.range-start):not(.range-end) {
463
- background-color: var(--nile-colors-neutral-400, var(--ng-colors-bg-quaternary));
464
- color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));
465
- }
466
-
467
-
468
- nile-input.date-input::part(base), .from-date{
469
- width: var(--nile-width-150px, var(--ng-width-164));
470
- }
471
-
472
- nile-input.time-input::part(base), .from-time{
473
- width: var(--nile-width-99px, var(--ng-width-108));
474
- }
475
-
476
-
477
-
478
- `;export{a as s};
290
+ `;export{r as s};