lesli 5.1.14 → 5.1.15

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4da34c1a44fb5e4c8c194e2118c171198c4d82dd852e6099c5762d5025e16b5a
4
- data.tar.gz: a2b47bc59dd2cbb27f870048fdb3c3c660e1c0e57781f611301e6d64ad51493e
3
+ metadata.gz: 10ebb40b1f83e7bf7a2970d8a9f67c082a2f7a47446130dd969ab209bfb34344
4
+ data.tar.gz: 37bec10c5fa241c51a01ab3a036ef97441c2224d256ef3ad45befff5c4c6183c
5
5
  SHA512:
6
- metadata.gz: 50e1cdb2ed1ac0c89148eae0f040ddd9887e299637f183d05579f4bda2a1737b5915ac16b8c82b1e4229ec6a4e2b620db0ecbf5728d3f3c3681494f2eb1dddf6
7
- data.tar.gz: eded5fd73abcb17f93d043c9eaf1111ad8b104e090c9e89b635e84aaffc541478d047583096312a11fbe454403fffb3d3412f4f2abea55315196e8be6868a246
6
+ metadata.gz: 394cfe9a65d5fcfb3eadd7495c24e5b740aade1867b570ae5b536480916aa030599e49222ca1f36c91286ece0828980e7ad7720df54b4122cf1e7e000d82dfb3
7
+ data.tar.gz: fcb499c3ae098e2cd520fa54b421c9131143b97e5f700ec52acc62c10d34016898438e68bd38a3148dba5765d3a79869ce6c69ff4ea2e799c6ee51f946317def
@@ -1,4 +1,4 @@
1
- /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
1
+ /*! tailwindcss v4.3.4 | MIT License | https://tailwindcss.com */
2
2
  /*!
3
3
 
4
4
  Lesli
@@ -30,42 +30,559 @@ Building a better future, one line of code at a time.
30
30
  // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
31
31
  // ·
32
32
  */
33
+ @layer properties;
33
34
  @layer theme, utilities;
34
- @layer theme {
35
- :root, :host {
36
- --spacing: 0.25rem;
37
- }
38
- }
39
35
  @layer utilities {
36
+ .absolute {
37
+ position: absolute;
38
+ }
39
+ .relative {
40
+ position: relative;
41
+ }
42
+ .top-5 {
43
+ top: calc(var(--spacing, 0.25rem) * 5);
44
+ }
45
+ .right-5 {
46
+ right: calc(var(--spacing, 0.25rem) * 5);
47
+ }
48
+ .mt-2 {
49
+ margin-top: calc(var(--spacing, 0.25rem) * 2);
50
+ }
51
+ .mb-5 {
52
+ margin-bottom: calc(var(--spacing, 0.25rem) * 5);
53
+ }
54
+ .mb-10 {
55
+ margin-bottom: calc(var(--spacing, 0.25rem) * 10);
56
+ }
57
+ .block {
58
+ display: block;
59
+ }
60
+ .flex {
61
+ display: flex;
62
+ }
40
63
  .grid {
41
64
  display: grid;
42
65
  }
43
66
  .hidden {
44
67
  display: none;
45
68
  }
69
+ .inline {
70
+ display: inline;
71
+ }
72
+ .h-16 {
73
+ height: calc(var(--spacing, 0.25rem) * 16);
74
+ }
75
+ .min-h-\[210px\] {
76
+ min-height: 210px;
77
+ }
78
+ .w-16 {
79
+ width: calc(var(--spacing, 0.25rem) * 16);
80
+ }
81
+ .w-full {
82
+ width: 100%;
83
+ }
84
+ .transform {
85
+ transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, );
86
+ }
46
87
  .grid-cols-1 {
47
88
  grid-template-columns: repeat(1, minmax(0, 1fr));
48
89
  }
90
+ .flex-col {
91
+ flex-direction: column;
92
+ }
93
+ .flex-wrap {
94
+ flex-wrap: wrap;
95
+ }
96
+ .items-center {
97
+ align-items: center;
98
+ }
99
+ .justify-center {
100
+ justify-content: center;
101
+ }
102
+ .gap-4 {
103
+ gap: calc(var(--spacing, 0.25rem) * 4);
104
+ }
49
105
  .gap-5 {
50
- gap: calc(var(--spacing) * 5);
106
+ gap: calc(var(--spacing, 0.25rem) * 5);
107
+ }
108
+ .overflow-hidden {
109
+ overflow: hidden;
110
+ }
111
+ .rounded-2xl {
112
+ border-radius: var(--radius-2xl, 1rem);
113
+ }
114
+ .border {
115
+ border-style: var(--tw-border-style);
116
+ border-width: 1px;
117
+ }
118
+ .border-\[var\(--lesli-color-primary\)\] {
119
+ border-color: var(--lesli-color-primary);
120
+ }
121
+ .border-neutral-200 {
122
+ border-color: var(--lesli-color-neutral-200);
123
+ }
124
+ .bg-primary-soft {
125
+ background-color: var(--lesli-color-primary-soft);
126
+ }
127
+ .bg-white {
128
+ background-color: var(--color-white, #fff);
129
+ }
130
+ .px-2 {
131
+ padding-inline: calc(var(--spacing, 0.25rem) * 2);
132
+ }
133
+ .px-4 {
134
+ padding-inline: calc(var(--spacing, 0.25rem) * 4);
135
+ }
136
+ .px-6 {
137
+ padding-inline: calc(var(--spacing, 0.25rem) * 6);
138
+ }
139
+ .py-3 {
140
+ padding-block: calc(var(--spacing, 0.25rem) * 3);
51
141
  }
52
142
  .py-6 {
53
- padding-block: calc(var(--spacing) * 6);
143
+ padding-block: calc(var(--spacing, 0.25rem) * 6);
144
+ }
145
+ .py-8 {
146
+ padding-block: calc(var(--spacing, 0.25rem) * 8);
147
+ }
148
+ .text-center {
149
+ text-align: center;
150
+ }
151
+ .font-\[OpenSans\] {
152
+ font-family: OpenSans;
153
+ }
154
+ .text-base {
155
+ font-size: var(--text-base, 1rem);
156
+ line-height: var(--tw-leading, var(--text-base--line-height, calc(1.5 / 1)));
157
+ }
158
+ .text-lg {
159
+ font-size: var(--text-lg, 1.125rem);
160
+ line-height: var(--tw-leading, var(--text-lg--line-height, calc(1.75 / 1.125)));
161
+ }
162
+ .text-sm {
163
+ font-size: var(--text-sm, 0.875rem);
164
+ line-height: var(--tw-leading, var(--text-sm--line-height, calc(1.25 / 0.875)));
165
+ }
166
+ .text-xl {
167
+ font-size: var(--text-xl, 1.25rem);
168
+ line-height: var(--tw-leading, var(--text-xl--line-height, calc(1.75 / 1.25)));
169
+ }
170
+ .text-\[24px\] {
171
+ font-size: 24px;
172
+ }
173
+ .leading-5 {
174
+ --tw-leading: calc(var(--spacing, 0.25rem) * 5);
175
+ line-height: calc(var(--spacing, 0.25rem) * 5);
176
+ }
177
+ .leading-6 {
178
+ --tw-leading: calc(var(--spacing, 0.25rem) * 6);
179
+ line-height: calc(var(--spacing, 0.25rem) * 6);
180
+ }
181
+ .leading-none {
182
+ --tw-leading: 1;
183
+ line-height: 1;
184
+ }
185
+ .font-medium {
186
+ --tw-font-weight: var(--font-weight-medium, 500);
187
+ font-weight: var(--font-weight-medium, 500);
188
+ }
189
+ .font-normal {
190
+ --tw-font-weight: var(--font-weight-normal, 400);
191
+ font-weight: var(--font-weight-normal, 400);
192
+ }
193
+ .font-semibold {
194
+ --tw-font-weight: var(--font-weight-semibold, 600);
195
+ font-weight: var(--font-weight-semibold, 600);
196
+ }
197
+ .tracking-tight {
198
+ --tw-tracking: var(--tracking-tight, -0.025em);
199
+ letter-spacing: var(--tracking-tight, -0.025em);
200
+ }
201
+ .text-wrap {
202
+ text-wrap: wrap;
203
+ }
204
+ .text-\[var\(--lesli-color-primary\)\] {
205
+ color: var(--lesli-color-primary);
206
+ }
207
+ .text-neutral-500 {
208
+ color: var(--lesli-color-neutral-500);
209
+ }
210
+ .text-neutral-600 {
211
+ color: var(--lesli-color-neutral-600);
212
+ }
213
+ .text-primary {
214
+ color: var(--lesli-color-primary);
215
+ }
216
+ .text-primary-strong {
217
+ color: var(--lesli-color-primary-strong);
218
+ }
219
+ .opacity-0 {
220
+ opacity: 0%;
221
+ }
222
+ .opacity-100 {
223
+ opacity: 100%;
224
+ }
225
+ .shadow-sm {
226
+ --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
227
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
228
+ }
229
+ .outline {
230
+ outline-style: var(--tw-outline-style);
231
+ outline-width: 1px;
232
+ }
233
+ .backdrop-filter {
234
+ -webkit-backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );
235
+ backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );
236
+ }
237
+ .transition {
238
+ transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
239
+ transition-timing-function: var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(0.4, 0, 0.2, 1)));
240
+ transition-duration: var(--tw-duration, var(--default-transition-duration, 150ms));
241
+ }
242
+ .transition-all {
243
+ transition-property: all;
244
+ transition-timing-function: var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(0.4, 0, 0.2, 1)));
245
+ transition-duration: var(--tw-duration, var(--default-transition-duration, 150ms));
246
+ }
247
+ .duration-200 {
248
+ --tw-duration: 200ms;
249
+ transition-duration: 200ms;
250
+ }
251
+ .ease-out {
252
+ --tw-ease: var(--ease-out, cubic-bezier(0, 0, 0.2, 1));
253
+ transition-timing-function: var(--ease-out, cubic-bezier(0, 0, 0.2, 1));
254
+ }
255
+ @media (hover: hover) {
256
+ :is(:where(.group):hover .group-hover\:translate-x-0\.5) {
257
+ --tw-translate-x: calc(var(--spacing, 0.25rem) * 0.5);
258
+ translate: var(--tw-translate-x) var(--tw-translate-y);
259
+ }
260
+ :is(:where(.group):hover .group-hover\:scale-105) {
261
+ --tw-scale-x: 105%;
262
+ --tw-scale-y: 105%;
263
+ --tw-scale-z: 105%;
264
+ scale: var(--tw-scale-x) var(--tw-scale-y);
265
+ }
266
+ :is(:where(.group):hover .group-hover\:text-neutral-900) {
267
+ color: var(--lesli-color-neutral-900);
268
+ }
269
+ :is(:where(.group):hover .group-hover\:opacity-100) {
270
+ opacity: 100%;
271
+ }
272
+ .hover\:-translate-y-0\.5:hover {
273
+ --tw-translate-y: calc(var(--spacing, 0.25rem) * -0.5);
274
+ translate: var(--tw-translate-x) var(--tw-translate-y);
275
+ }
276
+ .hover\:border-\[var\(--lesli-color-primary\)\]:hover {
277
+ border-color: var(--lesli-color-primary);
278
+ }
279
+ .hover\:bg-neutral-50:hover {
280
+ background-color: var(--lesli-color-neutral-50);
281
+ }
282
+ .hover\:text-neutral-900:hover {
283
+ color: var(--lesli-color-neutral-900);
284
+ }
285
+ .hover\:shadow-lg:hover {
286
+ --tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
287
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
288
+ }
289
+ }
290
+ .focus\:ring-2:focus {
291
+ --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
292
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
293
+ }
294
+ .focus\:ring-primary\/30:focus {
295
+ --tw-ring-color: var(--lesli-color-primary);
296
+ @supports (color: color-mix(in lab, red, red)) {
297
+ --tw-ring-color: color-mix(in oklab, var(--lesli-color-primary) 30%, transparent);
298
+ }
299
+ }
300
+ .focus\:outline-none:focus {
301
+ --tw-outline-style: none;
302
+ outline-style: none;
303
+ }
304
+ .focus-visible\:ring-4:focus-visible {
305
+ --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
306
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
307
+ }
308
+ .focus-visible\:ring-\[var\(--lesli-color-primary\)\]\/15:focus-visible {
309
+ --tw-ring-color: var(--lesli-color-primary);
310
+ @supports (color: color-mix(in lab, red, red)) {
311
+ --tw-ring-color: color-mix(in oklab, var(--lesli-color-primary) 15%, transparent);
312
+ }
54
313
  }
55
314
  @media (width >= 40rem) {
56
315
  .sm\:grid-cols-2 {
57
316
  grid-template-columns: repeat(2, minmax(0, 1fr));
58
317
  }
59
318
  .sm\:gap-6 {
60
- gap: calc(var(--spacing) * 6);
319
+ gap: calc(var(--spacing, 0.25rem) * 6);
61
320
  }
62
321
  .sm\:py-8 {
63
- padding-block: calc(var(--spacing) * 8);
322
+ padding-block: calc(var(--spacing, 0.25rem) * 8);
64
323
  }
65
324
  }
66
325
  @media (width >= 64rem) {
67
326
  .lg\:grid-cols-4 {
68
327
  grid-template-columns: repeat(4, minmax(0, 1fr));
69
328
  }
329
+ .lg\:gap-2 {
330
+ gap: calc(var(--spacing, 0.25rem) * 2);
331
+ }
332
+ .lg\:rounded-xl {
333
+ border-radius: var(--radius-xl, 0.75rem);
334
+ }
335
+ .lg\:px-4 {
336
+ padding-inline: calc(var(--spacing, 0.25rem) * 4);
337
+ }
338
+ .lg\:py-2 {
339
+ padding-block: calc(var(--spacing, 0.25rem) * 2);
340
+ }
341
+ .lg\:text-\[18px\] {
342
+ font-size: 18px;
343
+ }
344
+ .lg\:text-neutral-500 {
345
+ color: var(--lesli-color-neutral-500);
346
+ }
347
+ }
348
+ .\[\&_svg\]\:h-12 svg {
349
+ height: calc(var(--spacing, 0.25rem) * 12);
350
+ }
351
+ .\[\&_svg\]\:w-12 svg {
352
+ width: calc(var(--spacing, 0.25rem) * 12);
353
+ }
354
+ .\[\&_svg\]\:fill-\[var\(--lesli-color-primary\)\] svg {
355
+ fill: var(--lesli-color-primary);
356
+ }
357
+ .\[\&_svg_path\]\:fill-\[var\(--lesli-color-primary\)\] svg path {
358
+ fill: var(--lesli-color-primary);
359
+ }
360
+ }
361
+ @property --tw-rotate-x {
362
+ syntax: "*";
363
+ inherits: false;
364
+ }
365
+ @property --tw-rotate-y {
366
+ syntax: "*";
367
+ inherits: false;
368
+ }
369
+ @property --tw-rotate-z {
370
+ syntax: "*";
371
+ inherits: false;
372
+ }
373
+ @property --tw-skew-x {
374
+ syntax: "*";
375
+ inherits: false;
376
+ }
377
+ @property --tw-skew-y {
378
+ syntax: "*";
379
+ inherits: false;
380
+ }
381
+ @property --tw-border-style {
382
+ syntax: "*";
383
+ inherits: false;
384
+ initial-value: solid;
385
+ }
386
+ @property --tw-leading {
387
+ syntax: "*";
388
+ inherits: false;
389
+ }
390
+ @property --tw-font-weight {
391
+ syntax: "*";
392
+ inherits: false;
393
+ }
394
+ @property --tw-tracking {
395
+ syntax: "*";
396
+ inherits: false;
397
+ }
398
+ @property --tw-shadow {
399
+ syntax: "*";
400
+ inherits: false;
401
+ initial-value: 0 0 #0000;
402
+ }
403
+ @property --tw-shadow-color {
404
+ syntax: "*";
405
+ inherits: false;
406
+ }
407
+ @property --tw-shadow-alpha {
408
+ syntax: "<percentage>";
409
+ inherits: false;
410
+ initial-value: 100%;
411
+ }
412
+ @property --tw-inset-shadow {
413
+ syntax: "*";
414
+ inherits: false;
415
+ initial-value: 0 0 #0000;
416
+ }
417
+ @property --tw-inset-shadow-color {
418
+ syntax: "*";
419
+ inherits: false;
420
+ }
421
+ @property --tw-inset-shadow-alpha {
422
+ syntax: "<percentage>";
423
+ inherits: false;
424
+ initial-value: 100%;
425
+ }
426
+ @property --tw-ring-color {
427
+ syntax: "*";
428
+ inherits: false;
429
+ }
430
+ @property --tw-ring-shadow {
431
+ syntax: "*";
432
+ inherits: false;
433
+ initial-value: 0 0 #0000;
434
+ }
435
+ @property --tw-inset-ring-color {
436
+ syntax: "*";
437
+ inherits: false;
438
+ }
439
+ @property --tw-inset-ring-shadow {
440
+ syntax: "*";
441
+ inherits: false;
442
+ initial-value: 0 0 #0000;
443
+ }
444
+ @property --tw-ring-inset {
445
+ syntax: "*";
446
+ inherits: false;
447
+ }
448
+ @property --tw-ring-offset-width {
449
+ syntax: "<length>";
450
+ inherits: false;
451
+ initial-value: 0px;
452
+ }
453
+ @property --tw-ring-offset-color {
454
+ syntax: "*";
455
+ inherits: false;
456
+ initial-value: #fff;
457
+ }
458
+ @property --tw-ring-offset-shadow {
459
+ syntax: "*";
460
+ inherits: false;
461
+ initial-value: 0 0 #0000;
462
+ }
463
+ @property --tw-outline-style {
464
+ syntax: "*";
465
+ inherits: false;
466
+ initial-value: solid;
467
+ }
468
+ @property --tw-backdrop-blur {
469
+ syntax: "*";
470
+ inherits: false;
471
+ }
472
+ @property --tw-backdrop-brightness {
473
+ syntax: "*";
474
+ inherits: false;
475
+ }
476
+ @property --tw-backdrop-contrast {
477
+ syntax: "*";
478
+ inherits: false;
479
+ }
480
+ @property --tw-backdrop-grayscale {
481
+ syntax: "*";
482
+ inherits: false;
483
+ }
484
+ @property --tw-backdrop-hue-rotate {
485
+ syntax: "*";
486
+ inherits: false;
487
+ }
488
+ @property --tw-backdrop-invert {
489
+ syntax: "*";
490
+ inherits: false;
491
+ }
492
+ @property --tw-backdrop-opacity {
493
+ syntax: "*";
494
+ inherits: false;
495
+ }
496
+ @property --tw-backdrop-saturate {
497
+ syntax: "*";
498
+ inherits: false;
499
+ }
500
+ @property --tw-backdrop-sepia {
501
+ syntax: "*";
502
+ inherits: false;
503
+ }
504
+ @property --tw-duration {
505
+ syntax: "*";
506
+ inherits: false;
507
+ }
508
+ @property --tw-ease {
509
+ syntax: "*";
510
+ inherits: false;
511
+ }
512
+ @property --tw-translate-x {
513
+ syntax: "*";
514
+ inherits: false;
515
+ initial-value: 0;
516
+ }
517
+ @property --tw-translate-y {
518
+ syntax: "*";
519
+ inherits: false;
520
+ initial-value: 0;
521
+ }
522
+ @property --tw-translate-z {
523
+ syntax: "*";
524
+ inherits: false;
525
+ initial-value: 0;
526
+ }
527
+ @property --tw-scale-x {
528
+ syntax: "*";
529
+ inherits: false;
530
+ initial-value: 1;
531
+ }
532
+ @property --tw-scale-y {
533
+ syntax: "*";
534
+ inherits: false;
535
+ initial-value: 1;
536
+ }
537
+ @property --tw-scale-z {
538
+ syntax: "*";
539
+ inherits: false;
540
+ initial-value: 1;
541
+ }
542
+ @layer properties {
543
+ @supports ((-webkit-hyphens: none) and (not (margin-trim: block))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
544
+ *, ::before, ::after, ::backdrop {
545
+ --tw-rotate-x: initial;
546
+ --tw-rotate-y: initial;
547
+ --tw-rotate-z: initial;
548
+ --tw-skew-x: initial;
549
+ --tw-skew-y: initial;
550
+ --tw-border-style: solid;
551
+ --tw-leading: initial;
552
+ --tw-font-weight: initial;
553
+ --tw-tracking: initial;
554
+ --tw-shadow: 0 0 #0000;
555
+ --tw-shadow-color: initial;
556
+ --tw-shadow-alpha: 100%;
557
+ --tw-inset-shadow: 0 0 #0000;
558
+ --tw-inset-shadow-color: initial;
559
+ --tw-inset-shadow-alpha: 100%;
560
+ --tw-ring-color: initial;
561
+ --tw-ring-shadow: 0 0 #0000;
562
+ --tw-inset-ring-color: initial;
563
+ --tw-inset-ring-shadow: 0 0 #0000;
564
+ --tw-ring-inset: initial;
565
+ --tw-ring-offset-width: 0px;
566
+ --tw-ring-offset-color: #fff;
567
+ --tw-ring-offset-shadow: 0 0 #0000;
568
+ --tw-outline-style: solid;
569
+ --tw-backdrop-blur: initial;
570
+ --tw-backdrop-brightness: initial;
571
+ --tw-backdrop-contrast: initial;
572
+ --tw-backdrop-grayscale: initial;
573
+ --tw-backdrop-hue-rotate: initial;
574
+ --tw-backdrop-invert: initial;
575
+ --tw-backdrop-opacity: initial;
576
+ --tw-backdrop-saturate: initial;
577
+ --tw-backdrop-sepia: initial;
578
+ --tw-duration: initial;
579
+ --tw-ease: initial;
580
+ --tw-translate-x: 0;
581
+ --tw-translate-y: 0;
582
+ --tw-translate-z: 0;
583
+ --tw-scale-x: 1;
584
+ --tw-scale-y: 1;
585
+ --tw-scale-z: 1;
586
+ }
70
587
  }
71
588
  }
@@ -76,19 +76,19 @@ module Lesli
76
76
  [lesli_instance_code, controller_path.sub("_","-").split("/"), action_name].join(" ")
77
77
  end
78
78
 
79
- # Return a string path to load the template stylesheet
80
- # by default we always return the latest version of the template
79
+ # Return the logical asset path for the current engine or an explicit package.
80
+ # Rails asset helpers resolve the fingerprinted URL.
81
81
  #
82
82
  # stylesheet from main App
83
- # lesli_stylesheet_path()
83
+ # lesli_asset_path()
84
84
  # /assets/application.css
85
85
  #
86
86
  # Specific stylesheet from Engine
87
- # lesli_stylesheet_path(:lesli, 'application')
87
+ # lesli_asset_path(:lesli, 'application')
88
88
  # /assets/lesli/application.css
89
89
  #
90
90
  # Specific stylesheet from gem
91
- # lesli_stylesheet_path(:lesli_assets, 'templates/application')
91
+ # lesli_asset_path(:lesli_assets, 'templates/application')
92
92
  # /assets/lesli_assets/templates/application.css
93
93
  def lesli_asset_path(engine = nil, stylesheet = 'application')
94
94
 
@@ -73,15 +73,15 @@ module Lesli
73
73
  active = current_page?(path)
74
74
 
75
75
  item_class = class_names(
76
- "group flex items-center gap-4 rounded-2xl px-4 py-3 text-base font-medium transition focus:outline-none focus:ring-2 focus:ring-sky-500/30",
76
+ "group flex items-center gap-4 rounded-2xl px-4 py-3 text-base font-medium transition focus:outline-none focus:ring-2 focus:ring-primary/30",
77
77
  "lg:gap-2 lg:rounded-xl lg:px-4 lg:py-2 lg:text-md",
78
- active ? "text-sky-700" : "text-slate-600 hover:bg-slate-50 hover:text-slate-950 lg:text-slate-500"
78
+ active ? "text-primary-strong" : "text-neutral-600 hover:bg-neutral-50 hover:text-neutral-900 lg:text-neutral-500"
79
79
  )
80
80
 
81
81
  icon_class = class_names(
82
82
  icon,
83
83
  "text-[24px] leading-none transition lg:text-[18px]",
84
- active ? "text-sky-600" : "text-slate-500 group-hover:text-slate-900"
84
+ active ? "text-primary" : "text-neutral-500 group-hover:text-neutral-900"
85
85
  )
86
86
 
87
87
  link_to(path, { class: item_class }, data: { turbo_frame: "_top" }) do
@@ -362,7 +362,7 @@ module Lesli
362
362
  "transition-all duration-200 ease-out",
363
363
  "hover:-translate-y-0.5 hover:border-[var(--lesli-color-primary)] hover:shadow-lg",
364
364
  "focus:outline-none focus-visible:ring-4 focus-visible:ring-[var(--lesli-color-primary)]/15",
365
- is_active ? "is-active border-[var(--lesli-color-primary)] bg-sky-50" : "border-slate-200"
365
+ is_active ? "is-active border-[var(--lesli-color-primary)] bg-primary-soft" : "border-neutral-200"
366
366
  )
367
367
 
368
368
  content_tag(:a, id: path.gsub("/", ""), href: path, class: card_classes, data: { turbo: false }) do
@@ -381,7 +381,7 @@ module Lesli
381
381
  content_tag(:div, class: "px-2") do
382
382
  safe_join([
383
383
  content_tag(:span, title, class: "block text-xl font-semibold leading-6 tracking-tight text-[var(--lesli-color-primary)]"),
384
- content_tag(:p, subtitle, class: "mt-2 font-[OpenSans] text-sm font-normal leading-5 text-slate-500")
384
+ content_tag(:p, subtitle, class: "mt-2 font-[OpenSans] text-sm font-normal leading-5 text-neutral-500")
385
385
  ])
386
386
  end,
387
387
 
@@ -1,42 +1,22 @@
1
1
  module Lesli
2
2
  module CustomizationInterface
3
3
 
4
- # set customization only for lesli_cloud instance
4
+ # Load the account theme for pages rendered by the shared application layout.
5
5
  def set_customizer
6
- =begin
7
- # @account is only for html and pdf requests
6
+ # Turbo redirects can negotiate HTML through the Turbo Stream MIME type.
8
7
  return unless request.format.html? || request.format.pdf?
8
+ return unless defined?(LesliAdmin) && respond_to?(:current_user, true) && current_user
9
9
 
10
- # return unless Lesli.instance[:code] == "lesli_cloud"
10
+ color = current_user.account.admin&.settings
11
+ &.where(name: "lesli_theme_color_primary", user_id: nil)
12
+ &.pick(:value)
11
13
 
12
- @lesli[:customization] = {}
14
+ # Only emit a hex color. Missing or invalid settings keep the CSS fallback.
15
+ return unless color.to_s.match?(/\A#(?:\h{3}|\h{6})\z/)
13
16
 
14
- logos = {}
15
- # logo_identifiers = Account::File.file_types.keys
16
- # custom_logos = current_user.account.files.where("file_type in (?)", logo_identifiers).order(id: :desc).all
17
- # logo_identifiers.each do |logo_identifier|
18
- # custom_logo = custom_logos.find { |logo| logo.file_type == logo_identifier}
19
- # next unless custom_logo
20
-
21
- # custom_logo_url = "/administration/account/files/#{custom_logo.id}"
22
- # custo_logo_url = custom_logo.attachment_url if custom_logo.attachment_identifier
23
- # custom_logo_url = custom_logo.attachment_public_url if custom_logo.attachment_public_identifier
24
-
25
- # logos[logo_identifier.to_sym] = custom_logo_url
26
- # end
27
- @lesli[:customization][:logos] = logos
28
-
29
- colors = {}
30
- # color_identifiers = ::Account::Setting.theme_settings_keys
31
- # custom_colors = current_user.account.settings.where("name in (?)", color_identifiers).all
32
- # color_identifiers.each do |color_identifier|
33
- # custom_color = custom_colors.find { |color| color.name == color_identifier}
34
- # next unless custom_color
35
-
36
- # colors[color_identifier.to_sym] = custom_color.value
37
- # end
38
- @lesli[:customization][:colors] = colors
39
- =end
17
+ @lesli[:customization] ||= {}
18
+ @lesli[:customization][:colors] ||= {}
19
+ @lesli[:customization][:colors][:lesli_theme_color_primary] = color
40
20
  end
41
21
  end
42
22
  end
@@ -1,10 +1,10 @@
1
1
  <% content_for :head do %>
2
2
  <style>
3
3
  :root {
4
- --welcome-primary: var(--lesli-color-primary-500, #276AD6);
5
- --welcome-primary-light: var(--lesli-color-primary-400, #4C83EA);
6
- --welcome-primary-dark: var(--lesli-color-primary-900, #0C2856);
7
- --welcome-primary-soft: var(--lesli-color-primary-100, #E3EEFF);
4
+ --welcome-primary: var(--lesli-color-primary, var(--lesli-color-primary-700, #194A99));
5
+ --welcome-primary-light: color-mix(in srgb, var(--welcome-primary) 75%, white);
6
+ --welcome-primary-dark: var(--lesli-color-primary-strong, color-mix(in srgb, var(--welcome-primary) 80%, black));
7
+ --welcome-primary-soft: var(--lesli-color-primary-soft, color-mix(in srgb, var(--welcome-primary) 8%, white));
8
8
  --welcome-ink: var(--lesli-color-neutral-900, #1F2933);
9
9
  --welcome-muted: var(--lesli-color-neutral-600, #4B5663);
10
10
  --welcome-border: var(--lesli-color-neutral-200, #E5EAF0);
@@ -25,7 +25,7 @@ document.addEventListener('turbo:load', window.lesliFilterNavigationEngines)
25
25
  </script>
26
26
 
27
27
  <%= render(LesliView::Layout::Container.new("lesli-apps", dashboard: false)) do %>
28
- <%= render("lesli_dashboard/dashboards/shared/header") if defined?(LesliDashboard) %>
28
+ <%= render("lesli_dashboard/shared/header") if defined?(LesliDashboard) %>
29
29
  <section class="lesli-engines py-6 sm:py-8">
30
30
  <div class="grid grid-cols-1 gap-5 sm:grid-cols-2 sm:gap-6 lg:grid-cols-4">
31
31
  <%= navigation_engines %>
@@ -1,18 +1,11 @@
1
1
  <%= render(LesliView::Layout::Container.new("accounts")) do %>
2
- <section class="px-4 py-24 sm:px-6 sm:py-36" aria-labelledby="not-found-title">
3
- <div class="mx-auto max-w-2xl text-center">
4
-
5
- <div class="mb-6" aria-hidden="true">
6
- <%= render(LesliView::Elements::Empty.new(text:nil)) %>
7
- </div>
8
-
9
- <h2 id="not-found-title" class="mb-4 text-[2rem] font-semibold leading-tight text-[#3d211b]">
10
- 404 <%= I18n.t("lesli.shared.message_error_not_found") %>
11
- </h2>
12
-
13
- <p class="text-[1.4rem] font-light leading-relaxed text-neutral-700">
14
- <%= @message %>
15
- </p>
16
- </div>
17
- </section>
2
+ <%= render LesliView::Partials::Error.new(
3
+ id: "not-found",
4
+ title: "404 #{I18n.t('lesli.shared.message_error_not_found')}",
5
+ message: @message
6
+ ) do |error| %>
7
+ <% error.with_illustration do %>
8
+ <%= render LesliView::Elements::Empty.new(text: nil) %>
9
+ <% end %>
10
+ <% end %>
18
11
  <% end %>
@@ -1,30 +1,21 @@
1
1
  <%= render(LesliView::Layout::Container.new("accounts")) do %>
2
- <section class="px-4 py-24 sm:px-6 sm:py-36" aria-labelledby="unauthorized-title">
3
- <div class="mx-auto max-w-2xl text-center">
4
-
5
- <div class="mb-6" aria-hidden="true">
6
- <span class="material-symbols !text-[8rem] leading-none text-danger-800">
7
- shield_lock
8
- </span>
9
- </div>
10
-
11
- <h2 id="unauthorized-title" class="mb-4 text-[2rem] font-semibold leading-tight text-danger-800">
12
- 403 <%= I18n.t("lesli.shared.message_error_unauthorized") %>
13
- </h2>
14
-
15
- <p class="text-[1.4rem] font-light leading-relaxed text-neutral-700">
16
- <%= I18n.t("lesli.shared.message_error_unauthorized_credentials") %>
17
- </p>
18
-
19
- <div class="mx-auto mt-6 max-w-xl rounded-lg border border-neutral-200 bg-white p-5 text-sm text-neutral-600 shadow-sm">
20
- <ul class="space-y-1">
21
- <li>
22
- <%= @error_object.dig(:error_details, :controller) %>
23
- (<%= @error_object.dig(:error_details, :action) %>)
24
- </li>
25
- <li><%= @error_object[:error_role] %></li>
26
- </ul>
27
- </div>
28
- </div>
29
- </section>
2
+ <%= render LesliView::Partials::Error.new(
3
+ id: "unauthorized",
4
+ title: "403 #{I18n.t('lesli.shared.message_error_unauthorized')}",
5
+ message: I18n.t("lesli.shared.message_error_unauthorized_credentials"),
6
+ tone: :danger
7
+ ) do |error| %>
8
+ <% error.with_illustration do %>
9
+ <span class="material-symbols lesli-error-icon">shield_lock</span>
10
+ <% end %>
11
+ <% error.with_details do %>
12
+ <ul>
13
+ <li>
14
+ <%= @error_object.dig(:error_details, :controller) %>
15
+ (<%= @error_object.dig(:error_details, :action) %>)
16
+ </li>
17
+ <li><%= @error_object[:error_role] %></li>
18
+ </ul>
19
+ <% end %>
20
+ <% end %>
30
21
  <% end %>
@@ -38,6 +38,7 @@ Building a better future, one line of code at a time.
38
38
  <%= render(partial: "lesli/partials/application-lesli-head") %>
39
39
  <%= yield :head %>
40
40
  <%= stylesheet_link_tag(lesli_asset_path(:lesli_assets, "public"), media: "all") %>
41
+ <%= stylesheet_link_tag(lesli_asset_path(:lesli_view, "view"), media: "all") %>
41
42
  <%= stylesheet_link_tag(lesli_asset_path(:lesli_shield, public_app_controller), media: "all") %>
42
43
  <%# Prevent browser history from reopening an authenticated page after logout. %>
43
44
  <% if flash[:logout] == true %>
@@ -1,28 +1,18 @@
1
- <% if @lesli_announcements.present? %>
2
- <section id="application-lesli-announcements" class="mx-auto mt-6 w-full max-w-7xl space-y-3 px-4 sm:px-6 lg:px-8"
3
- aria-label="<%= t('lesli.announcements.title') %>">
4
- <% @lesli_announcements.each do |announcement| %>
5
- <% style = announcement_style(announcement.category) %>
6
- <div id="announcement-<%= announcement.id %>"
7
- class="flex items-center gap-3 rounded-lg border-2 p-4 shadow-sm <%= style.fetch(:classes) %>">
8
- <span class="material-symbols shrink-0" aria-hidden="true"><%= style.fetch(:icon) %></span>
9
- <div class="min-w-0 flex-1">
10
- <span class="sr-only"><%= t("lesli.announcements.categories.#{announcement.category}", default: t('lesli.announcements.categories.info')) %></span>
11
- <p id="announcement-<%= announcement.id %>-message" class="whitespace-pre-wrap break-words font-medium"><%= announcement.message %></p>
12
- <% if announcement.url.present? %>
13
- <%= link_to t('lesli.announcements.open_link'), announcement.url,
14
- class: "mt-2 inline-block rounded underline underline-offset-4 focus-visible:outline-2 focus-visible:outline-offset-2",
15
- data: { turbo_frame: "_top" } %>
16
- <% end %>
17
- </div>
18
- <% if announcement.can_be_closed? %>
19
- <%= button_to lesli_bell.dismiss_announcement_path(announcement), method: :post,
20
- class: "inline-flex h-10 w-10 shrink-0 items-center justify-center rounded hover:bg-black/5 focus-visible:outline-2 focus-visible:outline-offset-2",
21
- aria: { label: t('lesli.announcements.dismiss'), describedby: "announcement-#{announcement.id}-message" } do %>
22
- <span class="material-symbols" aria-hidden="true">close</span>
23
- <% end %>
24
- <% end %>
25
- </div>
26
- <% end %>
27
- </section>
28
- <% end %>
1
+ <%
2
+ announcements = Array(@lesli_announcements).map do |announcement|
3
+ {
4
+ id: announcement.id,
5
+ category: announcement.category,
6
+ category_label: t("lesli.announcements.categories_#{announcement.category}", default: t("lesli.announcements.categories_info")),
7
+ message: announcement.message,
8
+ url: announcement.url,
9
+ dismiss_url: announcement.can_be_closed? ? lesli_bell.dismiss_announcement_path(announcement) : nil
10
+ }
11
+ end
12
+ %>
13
+ <%= render LesliView::Partials::Announcements.new(
14
+ announcements: announcements,
15
+ label: t("lesli.announcements.title"),
16
+ link_label: t("lesli.announcements.open_link"),
17
+ dismiss_label: t("lesli.announcements.dismiss")
18
+ ) %>
@@ -31,30 +31,27 @@ Building a better future, one line of code at a time.
31
31
  %>
32
32
 
33
33
 
34
- <%
35
- # Defining color customization
36
- # colors will be override with the ones defined in the database if custom colors exists
37
- # if there is no custom colors defined, the var() function will return the lesli colors
38
- @colors = @lesli.dig(:customization, :colors) || {}
39
- %>
34
+ <% colors = @lesli.dig(:customization, :colors) || {} %>
40
35
 
41
36
 
42
- <%# Defining color palette from users preferences from the database %>
43
- <style>
44
- :root {
45
- <% @colors.each_pair do |key, value| %>
46
- <%= "--#{ key.to_s.gsub('_','-') }: #{ value.to_s };" if value %>
47
- <% end %>
48
- }
49
- </style>
37
+ <%# Override --lesli-theme-* variables; the shared stylesheet provides defaults. %>
38
+ <% if colors.present? %>
39
+ <style data-turbo-track="dynamic">
40
+ :root {
41
+ <% colors.each_pair do |key, value| %>
42
+ <%= "--#{key.to_s.tr('_', '-')}: #{value};" if value %>
43
+ <% end %>
44
+ }
45
+ </style>
46
+ <% end %>
50
47
 
51
48
 
52
- <%# Loading stylesheets from engines %>
53
- <%= stylesheet_link_tag(lesli_asset_path(:lesli_assets, 'application'), media: "all") %>
54
- <%= stylesheet_link_tag(lesli_asset_path(:lesli_view, 'view'), media: "all") %>
55
- <%= stylesheet_link_tag(lesli_asset_path(), media: "all") %>
49
+ <%# Shared assets reload after a deploy; engine styles leave with their pages. %>
50
+ <%= stylesheet_link_tag(lesli_asset_path(:lesli_assets, 'application'), media: "all", "data-turbo-track": "reload") %>
51
+ <%= stylesheet_link_tag(lesli_asset_path(:lesli_view, 'view'), media: "all", "data-turbo-track": "reload") %>
52
+ <%= stylesheet_link_tag(lesli_asset_path(), media: "all", "data-turbo-track": "dynamic") %>
56
53
 
57
54
 
58
55
  <%# Loading javascripts from engines %>
59
- <%= javascript_include_tag(lesli_asset_path(:lesli_assets, 'application'), :defer => "defer") %>
56
+ <%= javascript_include_tag(lesli_asset_path(:lesli_assets, 'application'), defer: true, "data-turbo-track": "reload") %>
60
57
  <%= yield(:application_lesli_javascript) %>
@@ -33,110 +33,54 @@ Building a better future, one line of code at a time.
33
33
  <%
34
34
  engine_navigation_partial = navigation_partial
35
35
  notifications_count = @lesli&.dig(:notifications).to_i
36
- dashboard_path = application_dashboard_path
37
-
38
- header_action_class = "relative flex h-10 w-10 shrink-0 items-center justify-center rounded-xl text-slate-500 transition-colors hover:bg-slate-100 hover:text-slate-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sky-500/40"
39
- logout_action_class = "relative flex h-10 w-10 shrink-0 items-center justify-center rounded-xl text-slate-500 transition-colors hover:bg-red-50 hover:text-red-600 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-red-500/30"
40
-
41
- dashboard_label = I18n.t("lesli.header.dashboard", default: "Lesli Dashboard")
42
- notifications_label = if notifications_count.positive?
43
- plural = notifications_count == 1 ? "one" : "other"
44
- I18n.t("lesli.header.notifications_unread_#{plural}", count: notifications_count, default: "%{count} unread notifications")
45
- else
46
- I18n.t("lesli.header.notifications", default: "Notifications")
36
+ actions = []
37
+
38
+ if defined?(LesliBell)
39
+ path = lesli_bell.notifications_path
40
+ label = if notifications_count.positive?
41
+ plural = notifications_count == 1 ? "one" : "other"
42
+ t("lesli.header.notifications_unread_#{plural}", count: notifications_count, default: "%{count} unread notifications")
43
+ else
44
+ t("lesli.header.notifications", default: "Notifications")
45
+ end
46
+ actions << {
47
+ url: path, label: label, active: current_page?(path),
48
+ icon: notifications_count.positive? ? "ri-notification-3-fill" : "ri-notification-3-line",
49
+ highlighted: notifications_count.positive?, count: notifications_count,
50
+ data: { turbo_frame: "_top" }
51
+ }
47
52
  end
48
- applications_label = I18n.t("lesli.header.applications", default: "Applications")
49
- profile_label = I18n.t("lesli.header.profile", default: "Profile")
50
- logout_label = I18n.t("lesli.header.logout", default: "Logout")
51
53
 
52
- action_class = ->(path) {
53
- class_names(
54
- header_action_class,
55
- current_page?(path) && "text-sky-700"
56
- )
54
+ actions << {
55
+ url: lesli.apps_path, label: t("lesli.header.applications", default: "Applications"),
56
+ icon: "ri-apps-2-line", active: current_page?(lesli.apps_path),
57
+ data: { turbo_frame: "_top" }
57
58
  }
58
- %>
59
-
60
- <header class="border-b border-slate-200/80 bg-white">
61
- <div class="mx-auto flex h-20 max-w-7xl items-center justify-between px-4 sm:px-6 lg:px-8">
62
-
63
- <!-- Logo -->
64
- <%= link_to dashboard_path,
65
- class: "flex items-center",
66
- aria: { label: dashboard_label },
67
- data: { turbo_frame: "_top" } do %>
68
59
 
69
- <div class="flex items-center [&_img]:h-12 [&_img]:w-auto">
70
- <%= customization_instance_logo_tag(
71
- logo: "app-logo",
72
- options: { alt: "Lesli app logo" }
73
- ) %>
74
- </div>
60
+ if defined?(LesliShield)
61
+ actions << {
62
+ url: lesli_shield.profile_path, label: t("lesli.header.profile", default: "Profile"),
63
+ icon: "ri-user-smile-line", data: { turbo_frame: "_top" }
64
+ }
65
+ actions << {
66
+ url: main_app.destroy_user_session_path, label: t("lesli.header.logout", default: "Logout"),
67
+ icon: "ri-logout-circle-r-line"
68
+ }
69
+ end
70
+ %>
71
+ <%= render LesliView::Partials::Header.new(
72
+ home_url: application_dashboard_path,
73
+ home_label: t("lesli.header.dashboard", default: "Lesli Dashboard"),
74
+ actions: actions,
75
+ actions_label: t("lesli.header.actions", default: "Application actions"),
76
+ navigation_label: t("lesli.header.navigation", default: "Module navigation")
77
+ ) do |header| %>
78
+ <% header.with_logo do %>
79
+ <%= customization_instance_logo_tag(logo: "app-logo", options: { alt: "Lesli app logo" }) %>
80
+ <% end %>
81
+ <% if engine_navigation_partial %>
82
+ <% header.with_navigation do %>
83
+ <%= render(engine_navigation_partial) %>
75
84
  <% end %>
76
-
77
- <%# Application actions %>
78
- <nav class="flex items-center gap-2" aria-label="Application actions">
79
-
80
- <% if defined?(LesliBell) %>
81
- <%= link_to lesli_bell.notifications_path,
82
- class: action_class.call(lesli_bell.notifications_path),
83
- aria: {
84
- label: notifications_label,
85
- current: current_page?(lesli_bell.notifications_path) ? "page" : nil
86
- },
87
- title: notifications_label,
88
- data: { turbo_frame: "_top" } do %>
89
-
90
- <i class="<%= notifications_count.positive? ? 'ri-notification-3-fill text-sky-600' : 'ri-notification-3-line' %> text-[24px] leading-none" aria-hidden="true"></i>
91
-
92
- <% if notifications_count.positive? %>
93
- <span class="absolute -right-0 -top-0 flex min-h-4 min-w-4 items-center justify-center rounded-full bg-sky-600 px-1 text-[9px] font-semibold leading-none text-white ring-2 ring-white" aria-hidden="true">
94
- <%= notifications_count > 99 ? "99+" : notifications_count %>
95
- </span>
96
- <% end %>
97
- <% end %>
98
- <% end %>
99
-
100
- <%= link_to lesli.apps_path,
101
- class: action_class.call(lesli.apps_path),
102
- aria: {
103
- label: applications_label,
104
- current: current_page?(lesli.apps_path) ? "page" : nil
105
- },
106
- title: applications_label,
107
- data: { turbo_frame: "_top" } do %>
108
- <i class="ri-apps-2-line text-[24px] leading-none" aria-hidden="true"></i>
109
- <% end %>
110
-
111
- <% if defined?(LesliShield) %>
112
-
113
- <%= link_to lesli_shield.profile_path,
114
- class: header_action_class,
115
- aria: { label: profile_label },
116
- title: profile_label,
117
- data: { turbo_frame: "_top" } do %>
118
- <i class="ri-user-smile-line text-[24px] leading-none" aria-hidden="true"></i>
119
- <% end %>
120
-
121
- <%= link_to main_app.destroy_user_session_path,
122
- class: logout_action_class,
123
- aria: { label: logout_label },
124
- title: logout_label do %>
125
- <i class="ri-logout-circle-r-line text-[24px] leading-none" aria-hidden="true"></i>
126
- <% end %>
127
- <% end %>
128
-
129
- </nav>
130
- </div>
131
- </header>
132
-
133
- <%# Build the engine navigation %>
134
- <% if engine_navigation_partial %>
135
- <nav class="border-b border-slate-200/80 bg-white" aria-label="Module navigation">
136
- <div class="mx-auto max-w-7xl overflow-x-auto px-4 sm:px-6 lg:px-8">
137
- <ul class="flex min-h-14 w-max min-w-full items-center justify-start gap-1 py-2 sm:justify-center">
138
- <%= render(engine_navigation_partial) %>
139
- </ul>
140
- </div>
141
- </nav>
85
+ <% end %>
142
86
  <% end %>
@@ -32,30 +32,5 @@ Building a better future, one line of code at a time.
32
32
  =end
33
33
  %>
34
34
 
35
- <%
36
- notification_classes = {
37
- "info" => "border-info-300 bg-info-50 text-info-900",
38
- "notice" => "border-success-300 bg-success-50 text-success-900",
39
- "success" => "border-success-300 bg-success-50 text-success-900",
40
- "warning" => "border-warning-300 bg-warning-50 text-warning-900",
41
- "alert" => "border-danger-300 bg-danger-50 text-danger-900",
42
- "danger" => "border-danger-300 bg-danger-50 text-danger-900",
43
- "error" => "border-danger-300 bg-danger-50 text-danger-900",
44
- "default" => "border-neutral-300 bg-neutral-50 text-neutral-900"
45
- }.freeze
46
- %>
47
-
48
- <section
49
- id="application-lesli-notifications"
50
- class="fixed inset-x-0 z-[999] mx-auto w-[90%] max-w-[600px]"
51
- aria-live="polite"
52
- aria-atomic="true">
53
- <% if flash.any? %>
54
- <% flash.each do |type, message| %>
55
- <div class="animate-lesli-notification my-1 break-words rounded-lg border-2 px-4 py-3 text-center text-sm font-medium shadow-sm <%= notification_classes.fetch(type.to_s, notification_classes["default"]) %>">
56
- <%= message %>
57
- </div>
58
- <% end %>
59
- <% flash.discard %>
60
- <% end %>
61
- </section>
35
+ <%= render LesliView::Partials::Notifications.new(messages: flash.to_hash) %>
36
+ <% flash.discard if flash.any? %>
@@ -30,4 +30,4 @@ Building a better future, one line of code at a time.
30
30
  // ·
31
31
  %>
32
32
 
33
- <%= render(template: "lesli_dashboard/dashboards/shared/edit") if defined?(LesliDashboard) %>
33
+ <%= render(template: "lesli_dashboard/shared/edit") if defined?(LesliDashboard) %>
@@ -30,4 +30,4 @@ Building a better future, one line of code at a time.
30
30
  // ·
31
31
  %>
32
32
 
33
- <%= render(template: "lesli_dashboard/dashboards/shared/show") if defined?(LesliDashboard) %>
33
+ <%= render(template: "lesli_dashboard/shared/show") if defined?(LesliDashboard) %>
@@ -5,11 +5,10 @@ en:
5
5
  title: "Announcements"
6
6
  open_link: "View details"
7
7
  dismiss: "Dismiss announcement"
8
- categories:
9
- info: "Information"
10
- success: "Success"
11
- warning: "Warning"
12
- danger: "Important notice"
8
+ categories_info: "Information"
9
+ categories_success: "Success"
10
+ categories_warning: "Warning"
11
+ categories_danger: "Important notice"
13
12
  abouts: {}
14
13
  apps: {}
15
14
  header:
@@ -5,11 +5,10 @@ es:
5
5
  title: "Anuncios"
6
6
  open_link: "Ver detalles"
7
7
  dismiss: "Cerrar anuncio"
8
- categories:
9
- info: "Información"
10
- success: "Éxito"
11
- warning: "Advertencia"
12
- danger: "Aviso importante"
8
+ categories_info: "Información"
9
+ categories_success: "Éxito"
10
+ categories_warning: "Advertencia"
11
+ categories_danger: "Aviso importante"
13
12
  abouts: {}
14
13
  apps: {}
15
14
  header:
data/lib/lesli/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Lesli
2
- VERSION = "5.1.14"
3
- BUILD = "1794793515"
2
+ VERSION = "5.1.15"
3
+ BUILD = "1795131688"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lesli
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.14
4
+ version: 5.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Lesli Development Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-11-16 00:00:00.000000000 Z
11
+ date: 2026-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -175,7 +175,6 @@ files:
175
175
  - app/controllers/lesli/roles_controller.rb
176
176
  - app/controllers/lesli/shared/dashboards_controller.rb
177
177
  - app/controllers/lesli/users_controller.rb
178
- - app/helpers/lesli/announcements_helper.rb
179
178
  - app/helpers/lesli/customization_helper.rb
180
179
  - app/helpers/lesli/html_helper.rb
181
180
  - app/helpers/lesli/navigation_helper.rb
@@ -227,7 +226,6 @@ files:
227
226
  - app/views/lesli/partials/_application-lesli-assets.html.erb
228
227
  - app/views/lesli/partials/_application-lesli-content.html.erb
229
228
  - app/views/lesli/partials/_application-lesli-data.html.erb
230
- - app/views/lesli/partials/_application-lesli-footer.html.erb
231
229
  - app/views/lesli/partials/_application-lesli-head.html.erb
232
230
  - app/views/lesli/partials/_application-lesli-header.html.erb
233
231
  - app/views/lesli/partials/_application-lesli-navigation.html.erb
@@ -1,14 +0,0 @@
1
- module Lesli
2
- module AnnouncementsHelper
3
- ANNOUNCEMENT_STYLES = {
4
- "info" => { icon: "info", classes: "border-info-300 bg-info-50 text-info-900" },
5
- "success" => { icon: "check_circle", classes: "border-success-300 bg-success-50 text-success-900" },
6
- "warning" => { icon: "warning", classes: "border-warning-300 bg-warning-50 text-warning-900" },
7
- "danger" => { icon: "error", classes: "border-danger-300 bg-danger-50 text-danger-900" }
8
- }.freeze
9
-
10
- def announcement_style(category)
11
- ANNOUNCEMENT_STYLES.fetch(category, ANNOUNCEMENT_STYLES.fetch("info"))
12
- end
13
- end
14
- end
@@ -1,82 +0,0 @@
1
- <%
2
- =begin
3
-
4
- Lesli
5
-
6
- Copyright (c) 2023, Lesli Technologies, S. A.
7
-
8
- This program is free software: you can redistribute it and/or modify
9
- it under the terms of the GNU General Public License as published by
10
- the Free Software Foundation, either version 3 of the License, or
11
- (at your option) any later version.
12
-
13
- This program is distributed in the hope that it will be useful,
14
- but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- GNU General Public License for more details.
17
-
18
- You should have received a copy of the GNU General Public License
19
- along with this program. If not, see http://www.gnu.org/licenses/.
20
-
21
- Lesli · Ruby on Rails SaaS development platform.
22
-
23
- Made with ♥ by https://www.lesli.tech
24
- Building a better future, one line of code at a time.
25
-
26
- @contact hello@lesli.tech
27
- @website https://www.lesli.tech
28
- @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
29
-
30
- // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
31
- // ·
32
- =end
33
- %>
34
-
35
-
36
- <% custom_footer_partial_path = "layouts/#{lesli_instance_code}/partials/application-footer" %>
37
- <% custom_footer_partial_exists = lookup_context.exists?(custom_footer_partial_path, nil, true) %>
38
-
39
-
40
-
41
- <%# render custom partial in builder module %>
42
- <% if custom_footer_partial_exists %>
43
- <%= render partial: custom_footer_partial_path %>
44
- <% end %>
45
-
46
-
47
-
48
- <%# core footer partial %>
49
- <% unless custom_footer_partial_exists %>
50
-
51
- <application-component-footer title="<%= @account[:company][:name] %> &bull; <%= @account[:company][:tag_line] %>">
52
-
53
- <template v-slot:navbar-end>
54
- <%# Show standard footer links for LesliClou %>
55
- <% if defined?(LesliCloud) %>
56
-
57
- <a class="navbar-item has-text-grey" href="#">
58
- Support
59
- </a>
60
- <span class="navbar-item has-text-grey-light">|</span>
61
- <a class="navbar-item has-text-grey" href="#">
62
- Privacy
63
- </a>
64
- <span class="navbar-item has-text-grey-light">|</span>
65
- <a class="navbar-item has-text-grey" href="#">
66
- About
67
- </a>
68
-
69
- <% else %>
70
-
71
- <%# Show platform version for custom instances %>
72
- <span class="navbar-item has-text-grey">
73
- version <%= @account[:revision][:version] %> -
74
- build <%= @account[:revision][:build] %>
75
- </span>
76
-
77
- <% end %>
78
- </template>
79
-
80
- </application-component-footer>
81
-
82
- <% end %>