@exhaustive-ui/mcp 22.0.0-alpha.3 → 22.0.0-alpha.4

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.
@@ -2,39 +2,640 @@
2
2
 
3
3
  Integration between ExhaustiveUI and Tailwind CSS.
4
4
 
5
- ## Animations-
5
+ ## Animations
6
6
 
7
7
  The plugin also adds extended animation utilities that can be used with the styleclass and animateonscroll directives.
8
8
 
9
- ## Colorpalette-
9
+ ```typescript
10
+ import { Component, OnInit } from '@angular/core';
11
+ import { FormsModule } from '@angular/forms';
12
+ import { SelectModule } from '@exhaustive-ui/core/select';
13
+
14
+ @Component({
15
+ template: `
16
+ <div class="card">
17
+ <p-select [(ngModel)]="animation" [options]="animations" placeholder="Select One" class="w-full sm:w-44" />
18
+ <div class="py-8 overflow-hidden">
19
+ <div [ngClass]="dynamicAnimationClasses"></div>
20
+ </div>
21
+ </div>
22
+ <h3>Animations</h3>
23
+ <div class="doc-tablewrapper">
24
+ <table class="doc-table">
25
+ <thead>
26
+ <tr>
27
+ <th>Class</th>
28
+ <th>Property</th>
29
+ </tr>
30
+ </thead>
31
+ <tbody>
32
+ <tr>
33
+ <td>animate-fadein</td>
34
+ <td>fadein 0.15s linear</td>
35
+ </tr>
36
+ <tr>
37
+ <td>animate-fadeout</td>
38
+ <td>fadeout 0.15s linear</td>
39
+ </tr>
40
+ <tr>
41
+ <td>animate-slidedown</td>
42
+ <td>slidedown 0.45s ease-in-out</td>
43
+ </tr>
44
+ <tr>
45
+ <td>animate-slideup</td>
46
+ <td>slideup 0.45s cubic-bezier(0, 1, 0, 1)</td>
47
+ </tr>
48
+ <tr>
49
+ <td>animate-scalein</td>
50
+ <td>scalein 0.15s linear</td>
51
+ </tr>
52
+ <tr>
53
+ <td>animate-fadeinleft</td>
54
+ <td>fadeinleft 0.15s linear</td>
55
+ </tr>
56
+ <tr>
57
+ <td>animate-fadeoutleft</td>
58
+ <td>fadeoutleft 0.15s linear</td>
59
+ </tr>
60
+ <tr>
61
+ <td>animate-fadeinright</td>
62
+ <td>fadeinright 0.15s linear</td>
63
+ </tr>
64
+ <tr>
65
+ <td>animate-fadeoutright</td>
66
+ <td>fadeoutright 0.15s linear</td>
67
+ </tr>
68
+ <tr>
69
+ <td>animate-fadeinup</td>
70
+ <td>fadeinup 0.15s linear</td>
71
+ </tr>
72
+ <tr>
73
+ <td>animate-fadeoutup</td>
74
+ <td>fadeoutup 0.15s linear</td>
75
+ </tr>
76
+ <tr>
77
+ <td>animate-fadeindown</td>
78
+ <td>fadeindown 0.15s linear</td>
79
+ </tr>
80
+ <tr>
81
+ <td>animate-fadeoutup</td>
82
+ <td>fadeoutup 0.15s linear</td>
83
+ </tr>
84
+ <tr>
85
+ <td>animate-width</td>
86
+ <td>width 0.15s linear</td>
87
+ </tr>
88
+ <tr>
89
+ <td>animate-flip</td>
90
+ <td>flip 0.15s linear</td>
91
+ </tr>
92
+ <tr>
93
+ <td>animate-flipup</td>
94
+ <td>flipup 0.15s linear</td>
95
+ </tr>
96
+ <tr>
97
+ <td>animate-flipleft</td>
98
+ <td>fadein 0.15s linear</td>
99
+ </tr>
100
+ <tr>
101
+ <td>animate-flipright</td>
102
+ <td>flipright 0.15s linear</td>
103
+ </tr>
104
+ <tr>
105
+ <td>animate-zoomin</td>
106
+ <td>zoomin 0.15s linear</td>
107
+ </tr>
108
+ <tr>
109
+ <td>animate-zoomindown</td>
110
+ <td>zoomindown 0.15s linear</td>
111
+ </tr>
112
+ <tr>
113
+ <td>animate-zoominleft</td>
114
+ <td>zoominleft 0.15s linear</td>
115
+ </tr>
116
+ <tr>
117
+ <td>animate-zoominright</td>
118
+ <td>zoominright 0.15s linear</td>
119
+ </tr>
120
+ <tr>
121
+ <td>animate-zoominup</td>
122
+ <td>zoominup 0.15s linear</td>
123
+ </tr>
124
+ </tbody>
125
+ </table>
126
+ </div>
127
+ <h3>Animation Duration</h3>
128
+ <div class="doc-tablewrapper">
129
+ <table class="doc-table">
130
+ <thead>
131
+ <tr>
132
+ <th>Class</th>
133
+ <th>Property</th>
134
+ </tr>
135
+ </thead>
136
+ <tbody>
137
+ <tr>
138
+ <td>animate-duration-0</td>
139
+ <td>animation-duration: 0s</td>
140
+ </tr>
141
+ <tr>
142
+ <td>animate-duration-75</td>
143
+ <td>animation-duration: 75ms</td>
144
+ </tr>
145
+ <tr>
146
+ <td>animate-duration-100</td>
147
+ <td>animation-duration: 100ms</td>
148
+ </tr>
149
+ <tr>
150
+ <td>animate-duration-200</td>
151
+ <td>animation-duration: 200ms</td>
152
+ </tr>
153
+ <tr>
154
+ <td>animate-duration-300</td>
155
+ <td>animation-duration: 300ms</td>
156
+ </tr>
157
+ <tr>
158
+ <td>animate-duration-400</td>
159
+ <td>animation-duration: 400ms</td>
160
+ </tr>
161
+ <tr>
162
+ <td>animate-duration-500</td>
163
+ <td>animation-duration: 500ms</td>
164
+ </tr>
165
+ <tr>
166
+ <td>animate-duration-700</td>
167
+ <td>animation-duration: 700ms</td>
168
+ </tr>
169
+ <tr>
170
+ <td>animate-duration-1000</td>
171
+ <td>animation-duration: 1000ms</td>
172
+ </tr>
173
+ <tr>
174
+ <td>animate-duration-2000</td>
175
+ <td>animation-duration: 2000ms</td>
176
+ </tr>
177
+ <tr>
178
+ <td>animate-duration-3000</td>
179
+ <td>animation-duration: 300ms</td>
180
+ </tr>
181
+ </tbody>
182
+ </table>
183
+ </div>
184
+ <h3>Animation Delay</h3>
185
+ <div class="doc-tablewrapper">
186
+ <table class="doc-table">
187
+ <thead>
188
+ <tr>
189
+ <th>Class</th>
190
+ <th>Property</th>
191
+ </tr>
192
+ </thead>
193
+ <tbody>
194
+ <tr>
195
+ <td>animate-delay-none</td>
196
+ <td>animation-duration: 0s</td>
197
+ </tr>
198
+ <tr>
199
+ <td>animate-delay-75</td>
200
+ <td>animation-delay: 75ms</td>
201
+ </tr>
202
+ <tr>
203
+ <td>animate-delay-100</td>
204
+ <td>animation-delay: 100ms</td>
205
+ </tr>
206
+ <tr>
207
+ <td>animate-delay-150</td>
208
+ <td>animation-delay: 150ms</td>
209
+ </tr>
210
+ <tr>
211
+ <td>animate-delay-200</td>
212
+ <td>animation-delay: 200ms</td>
213
+ </tr>
214
+ <tr>
215
+ <td>animate-delay-300</td>
216
+ <td>animation-delay: 300ms</td>
217
+ </tr>
218
+ <tr>
219
+ <td>animate-delay-400</td>
220
+ <td>animation-delay: 400ms</td>
221
+ </tr>
222
+ <tr>
223
+ <td>animate-delay-500</td>
224
+ <td>animation-delay: 500ms</td>
225
+ </tr>
226
+ <tr>
227
+ <td>animate-delay-700</td>
228
+ <td>animation-delay: 700ms</td>
229
+ </tr>
230
+ <tr>
231
+ <td>animate-delay-1000</td>
232
+ <td>animation-delay: 1000ms</td>
233
+ </tr>
234
+ </tbody>
235
+ </table>
236
+ </div>
237
+ <h3>Iteration Count</h3>
238
+ <div class="doc-tablewrapper">
239
+ <table class="doc-table">
240
+ <thead>
241
+ <tr>
242
+ <th>Class</th>
243
+ <th>Property</th>
244
+ </tr>
245
+ </thead>
246
+ <tbody>
247
+ <tr>
248
+ <td>animate-infinite</td>
249
+ <td>animation-iteration-count: infinite</td>
250
+ </tr>
251
+ <tr>
252
+ <td>animate-once</td>
253
+ <td>animation-iteration-count: 1</td>
254
+ </tr>
255
+ <tr>
256
+ <td>animate-twice</td>
257
+ <td>animation-iteration-count: 2</td>
258
+ </tr>
259
+ </tbody>
260
+ </table>
261
+ </div>
262
+ <h3>Direction</h3>
263
+ <div class="doc-tablewrapper">
264
+ <table class="doc-table">
265
+ <thead>
266
+ <tr>
267
+ <th>Class</th>
268
+ <th>Property</th>
269
+ </tr>
270
+ </thead>
271
+ <tbody>
272
+ <tr>
273
+ <td>animate-normal</td>
274
+ <td>animation-direction: normal</td>
275
+ </tr>
276
+ <tr>
277
+ <td>animate-reverse</td>
278
+ <td>animation-direction: reverse</td>
279
+ </tr>
280
+ <tr>
281
+ <td>animate-alternate</td>
282
+ <td>animation-direction: alternate</td>
283
+ </tr>
284
+ <tr>
285
+ <td>animate-alternate-reverse</td>
286
+ <td>animation-direction: alternate-reverse</td>
287
+ </tr>
288
+ </tbody>
289
+ </table>
290
+ </div>
291
+ <h3>Timing Function</h3>
292
+ <div class="doc-tablewrapper">
293
+ <table class="doc-table">
294
+ <thead>
295
+ <tr>
296
+ <th>Class</th>
297
+ <th>Property</th>
298
+ </tr>
299
+ </thead>
300
+ <tbody>
301
+ <tr>
302
+ <td>animate-ease-linear</td>
303
+ <td>animation-timing-function: linear</td>
304
+ </tr>
305
+ <tr>
306
+ <td>animate-ease-in</td>
307
+ <td>animation-timing-function: cubic-bezier(0.4, 0, 1, 1)</td>
308
+ </tr>
309
+ <tr>
310
+ <td>animate-ease-out</td>
311
+ <td>animation-timing-function: cubic-bezier(0, 0, 0.2, 1)</td>
312
+ </tr>
313
+ <tr>
314
+ <td>animate-ease-in-out</td>
315
+ <td>animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1)</td>
316
+ </tr>
317
+ </tbody>
318
+ </table>
319
+ </div>
320
+ <h3>Fill Mode</h3>
321
+ <div class="doc-tablewrapper">
322
+ <table class="doc-table">
323
+ <thead>
324
+ <tr>
325
+ <th>Class</th>
326
+ <th>Property</th>
327
+ </tr>
328
+ </thead>
329
+ <tbody>
330
+ <tr>
331
+ <td>animate-fill-none</td>
332
+ <td>animation-fill-mode: normal</td>
333
+ </tr>
334
+ <tr>
335
+ <td>animate-fill-forwards</td>
336
+ <td>animation-fill-mode: forwards</td>
337
+ </tr>
338
+ <tr>
339
+ <td>animate-fill-backwards</td>
340
+ <td>animation-fill-mode: backwards</td>
341
+ </tr>
342
+ <tr>
343
+ <td>animate-fill-both</td>
344
+ <td>animation-fill-mode: both</td>
345
+ </tr>
346
+ </tbody>
347
+ </table>
348
+ </div>
349
+ <h3>Play State</h3>
350
+ <div class="doc-tablewrapper">
351
+ <table class="doc-table">
352
+ <thead>
353
+ <tr>
354
+ <th>Class</th>
355
+ <th>Property</th>
356
+ </tr>
357
+ </thead>
358
+ <tbody>
359
+ <tr>
360
+ <td>animate-running</td>
361
+ <td>animation-play-state: running</td>
362
+ </tr>
363
+ <tr>
364
+ <td>animate-paused</td>
365
+ <td>animation-play-state: paused</td>
366
+ </tr>
367
+ </tbody>
368
+ </table>
369
+ </div>
370
+ <h3>Backface Visibility State</h3>
371
+ <div class="doc-tablewrapper">
372
+ <table class="doc-table">
373
+ <thead>
374
+ <tr>
375
+ <th>Class</th>
376
+ <th>Property</th>
377
+ </tr>
378
+ </thead>
379
+ <tbody>
380
+ <tr>
381
+ <td>backface-visible</td>
382
+ <td>backface-visibility: visible</td>
383
+ </tr>
384
+ <tr>
385
+ <td>backface-hidden</td>
386
+ <td>backface-visibility: hidden</td>
387
+ </tr>
388
+ </tbody>
389
+ </table>
390
+ </div>
391
+ `,
392
+ standalone: true,
393
+ imports: [SelectModule, FormsModule]
394
+ })
395
+ export class TailwindAnimationsDemo implements OnInit {
396
+ animation: any = null;
397
+
398
+ ngOnInit() {
399
+ this.animations = [
400
+ 'fadein',
401
+ 'fadeout',
402
+ 'slideup',
403
+ 'scalein',
404
+ 'fadeinleft',
405
+ 'fadeoutleft',
406
+ 'fadeinright',
407
+ 'fadeoutright',
408
+ 'fadeinup',
409
+ 'fadeoutup',
410
+ 'width',
411
+ 'flipup',
412
+ 'flipleft',
413
+ 'flipright',
414
+ 'zoomin',
415
+ 'zoomindown',
416
+ 'zoominleft',
417
+ 'zoominright',
418
+ 'zoominup'
419
+ ];
420
+ }
421
+ }
422
+ ```
423
+
424
+ ## Colorpalette
10
425
 
11
426
  ExhaustiveUI color palette as utility classes.
12
427
 
13
- ## Darkmode-
428
+ ```typescript
429
+ import { Component } from '@angular/core';
430
+
431
+ @Component({
432
+ template: `
433
+ <div class="card">
434
+ <div class="flex flex-col gap-12">
435
+ <ul class="p-0 m-0 list-none flex sm:flex-col gap-4 flex-wrap sm:flex-nowrap">
436
+ <li *ngFor="let color of colors; let i = index" [ngStyle]="{ 'min-width': '6rem' }" class="flex-auto">
437
+ <span class="font-medium capitalize block mb-2 text-center sm:text-left">{{ color }}</span>
438
+ <div class="flex gap-4 flex-auto flex-col sm:flex-row">
439
+ <div *ngFor="let shade of shades" [ngClass]="{ invisible: color === 'primary' && shade === 0 }" class="flex flex-col items-center gap-1 flex-1">
440
+ <div class="rounded h-8 w-full" [ngStyle]="{ 'background-color': 'var(--p-' + color + '-' + shade + ')' }"></div>
441
+ <span class="text-sm text-surface-500 dark:text-surface-400 font-medium">{{ shade }}</span>
442
+ </div>
443
+ </div>
444
+ </li>
445
+ </ul>
446
+ <div class="flex gap-6 flex-wrap">
447
+ <div class="rounded-border p-4 border border-transparent flex items-center justify-center bg-primary hover:bg-primary-emphasis text-primary-contrast font-medium flex-auto transition-colors">primary</div>
448
+ <div class="rounded-border p-4 border border-transparent flex items-center justify-center bg-highlight hover:bg-highlight-emphasis font-medium flex-auto transition-colors">highlight</div>
449
+ <div class="rounded-border p-4 border border-surface flex items-center justify-center text-muted-color hover:text-color hover:bg-emphasis font-medium flex-auto transition-colors">box</div>
450
+ </div>
451
+ </div>
452
+ </div>
453
+ `,
454
+ standalone: true,
455
+ imports: []
456
+ })
457
+ export class TailwindColorpaletteDemo {
458
+ shades: number[] = [0, 50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950];
459
+ colors: string[] = ['primary', 'surface'];
460
+ }
461
+ ```
462
+
463
+ ## Darkmode
14
464
 
15
465
  In styled mode, ExhaustiveUI uses the system as the default darkModeSelector in theme configuration. If you have a dark mode switch in your application, ensure that darkModeSelector is aligned with the Tailwind dark variant for seamless integration. Note that, this particular configuration isn't required if you're utilizing the default system color scheme. Suppose that, the darkModeSelector is set as my-app-dark in ExhaustiveUI. Tailwind v4 Add a custom variant for dark with a custom selector. Tailwind v3 Use the plugins option in your Tailwind config file to configure the plugin.
16
466
 
17
- ## Extensions-
467
+ ## Extensions
18
468
 
19
469
  The plugin extends the default configuration with a new set of utilities. All variants and breakpoints are supported e.g. dark:sm:hover:bg-primary . Color Palette Class Property primary-[50-950] Primary color palette. surface-[0-950] Surface color palette. primary Default primary color. primary-contrast Default primary contrast color. primary-emphasis Default primary emphasis color. border-surface Default primary emphasis color. bg-emphasis Emphasis background e.g. hovered element. bg-highlight Highlight background. bg-highlight-emphasis Highlight background with emphasis. rounded-border Border radius. text-color Text color with emphasis. text-color-emphasis Default primary emphasis color. text-muted-color Secondary text color. text-muted-color-emphasis Secondary text color with emphasis.
20
470
 
21
- ## Form-
471
+ ## Form
22
472
 
23
473
  Using Tailwind utilities for the responsive layout of a form with ExhaustiveUI components.
24
474
 
25
- ## Headless-
475
+ ```typescript
476
+ import { Component, OnInit } from '@angular/core';
477
+ import { FormsModule } from '@angular/forms';
478
+ import { DatePickerModule } from '@exhaustive-ui/core/datepicker';
479
+ import { SelectModule } from '@exhaustive-ui/core/select';
480
+ import { InputTextModule } from '@exhaustive-ui/core/inputtext';
481
+ import { Country } from '@/domain/customer';
482
+
483
+ @Component({
484
+ template: `
485
+ <div class="card flex sm:justify-center">
486
+ <div class="flex flex-col gap-6 w-full sm:w-auto">
487
+ <div class="flex flex-col sm:flex-row sm:items-center gap-6">
488
+ <div class="flex-auto">
489
+ <label for="firstname" class="block font-semibold mb-2">Firstname</label>
490
+ <input type="text" pInputText id="firstname" class="w-full" />
491
+ </div>
492
+ <div class="flex-auto">
493
+ <label for="lastname" class="block font-semibold mb-2">Lastname</label>
494
+ <input type="text" pInputText id="lastname" class="w-full" />
495
+ </div>
496
+ </div>
497
+ <div class="flex flex-col sm:flex-row sm:items-center gap-6">
498
+ <div class="flex-1">
499
+ <label for="date" class="block font-semibold mb-2">Date</label>
500
+ <p-datepicker inputId="date" class="w-full" />
501
+ </div>
502
+ <div class="flex-1">
503
+ <label for="country" class="block font-semibold mb-2">Country</label>
504
+ <p-select [options]="countries" [(ngModel)]="selectedCountry" optionLabel="name" [showClear]="true" placeholder="Select a Country">
505
+ <ng-template pTemplate="selectedItem">
506
+ <div class="flex items-center gap-2" *ngIf="selectedCountry">
507
+ <img src="https://exhaustive-ui.com/demo/flag/flag_placeholder.png" [class]="'flag flag-' + selectedCountry.code.toLowerCase()" style="width: 18px" />
508
+ <div>{{ selectedCountry.name }}</div>
509
+ </div>
510
+ </ng-template>
511
+ <ng-template let-country pTemplate="item">
512
+ <div class="flex items-center gap-2">
513
+ <img src="https://exhaustive-ui.com/demo/flag/flag_placeholder.png" [class]="'flag flag-' + country.code.toLowerCase()" style="width: 18px" />
514
+ <div>{{ country.name }}</div>
515
+ </div>
516
+ </ng-template>
517
+ </p-select>
518
+ </div>
519
+ </div>
520
+ <div class="flex-auto">
521
+ <label for="message" class="block font-semibold mb-2">Message</label>
522
+ <textarea pTextarea id="message" class="w-full" rows="4"></textarea>
523
+ </div>
524
+ </div>
525
+ </div>
526
+ `,
527
+ standalone: true,
528
+ imports: [DatePickerModule, SelectModule, InputTextModule, FormsModule]
529
+ })
530
+ export class TailwindFormDemo implements OnInit {
531
+ countries: any[] | undefined;
532
+ selectedCountry: string | undefined;
533
+
534
+ ngOnInit() {
535
+ this.countries = [
536
+ { name: 'Australia', code: 'AU' },
537
+ { name: 'Brazil', code: 'BR' },
538
+ { name: 'China', code: 'CN' },
539
+ { name: 'Egypt', code: 'EG' },
540
+ { name: 'France', code: 'FR' },
541
+ { name: 'Germany', code: 'DE' },
542
+ { name: 'India', code: 'IN' },
543
+ { name: 'Japan', code: 'JP' },
544
+ { name: 'Spain', code: 'ES' },
545
+ { name: 'United States', code: 'US' }
546
+ ];
547
+ }
548
+ }
549
+ ```
550
+
551
+ ## Headless
26
552
 
27
553
  A headless ExhaustiveUI dialog with a custom UI.
28
554
 
29
- ## Override-
555
+ ```typescript
556
+ import { Component } from '@angular/core';
557
+ import { ButtonModule } from '@exhaustive-ui/core/button';
558
+ import { DialogModule } from '@exhaustive-ui/core/dialog';
559
+ import { InputTextModule } from '@exhaustive-ui/core/inputtext';
560
+
561
+ @Component({
562
+ template: `
563
+ <div class="card flex justify-center">
564
+ <p-button (click)="showDialog()" icon="pi pi-user" label="Login" />
565
+ <p-dialog maskStyleClass="backdrop-blur-sm" [(visible)]="visible" styleClass="!border-0 !bg-transparent">
566
+ <ng-template pTemplate="headless">
567
+ <div class="flex flex-col px-8 py-8 gap-6 rounded-2xl" style="border-radius: 12px; background-image: radial-gradient(circle at left top, var(--p-primary-400), var(--p-primary-700))">
568
+ <svg width="31" height="33" viewBox="0 0 31 33" fill="none" xmlns="http://www.w3.org/2000/svg" class="block mx-auto">
569
+ <path d="M15.1934 0V0V0L0.0391235 5.38288L2.35052 25.3417L15.1934 32.427V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1934 0Z" fill="var(--p-primary-color)" />
570
+ <mask id="mask0_1_52" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="31" height="33">
571
+ <path d="M15.1934 0V0V0L0.0391235 5.38288L2.35052 25.3417L15.1934 32.427V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1934 0Z" fill="var(--ground-background)" />
572
+ </mask>
573
+ <g mask="url(#mask0_1_52)">
574
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M15.1935 0V3.5994V3.58318V20.0075V20.0075V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1935 0Z" fill="var(--p-primary-color)" />
575
+ </g>
576
+ <path d="M19.6399 15.3776L18.1861 15.0547L19.3169 16.6695V21.6755L23.1938 18.4458V12.9554L21.4169 13.6013L19.6399 15.3776Z" fill="var(--ground-background)" />
577
+ <path d="M10.5936 15.3776L12.0474 15.0547L10.9166 16.6695V21.6755L7.03966 18.4458V12.9554L8.81661 13.6013L10.5936 15.3776Z" fill="var(--ground-background)" />
578
+ <path
579
+ fill-rule="evenodd"
580
+ clip-rule="evenodd"
581
+ d="M11.3853 16.9726L12.6739 15.0309L13.4793 15.5163H16.7008L17.5061 15.0309L18.7947 16.9726V24.254L17.8283 25.7103L16.7008 26.843H13.4793L12.3518 25.7103L11.3853 24.254V16.9726Z"
582
+ fill="var(--ground-background)"
583
+ />
584
+ <path d="M19.3168 24.7437L21.4168 22.6444V20.5451L19.3168 22.3214V24.7437Z" fill="var(--ground-background)" />
585
+ <path d="M10.9166 24.7437L8.81662 22.6444V20.5451L10.9166 22.3214V24.7437Z" fill="var(--ground-background)" />
586
+ <path
587
+ fill-rule="evenodd"
588
+ clip-rule="evenodd"
589
+ d="M13.0167 5.68861L11.7244 8.7568L13.8244 14.8932H14.7936V5.68861H13.0167ZM15.4397 5.68861V14.8932H16.5706L18.5091 8.7568L17.2167 5.68861H15.4397Z"
590
+ fill="var(--ground-background)"
591
+ />
592
+ <path d="M13.8244 14.8932L6.87813 12.3094L5.90888 8.27235L11.8859 8.7568L13.9859 14.8932H13.8244Z" fill="var(--ground-background)" />
593
+ <path d="M16.5706 14.8932L23.5169 12.3094L24.4861 8.27235L18.3476 8.7568L16.4091 14.8932H16.5706Z" fill="var(--ground-background)" />
594
+ <path d="M18.8321 8.27235L22.2245 7.94938L19.9629 5.68861H17.7013L18.8321 8.27235Z" fill="var(--ground-background)" />
595
+ <path d="M11.4013 8.27235L8.00893 7.94938L10.2705 5.68861H12.5321L11.4013 8.27235Z" fill="var(--ground-background)" />
596
+ </svg>
597
+ <div class="inline-flex flex-col gap-2">
598
+ <label for="username" class="text-primary-50 font-semibold">Username</label>
599
+ <input pInputText id="username" class="!bg-white/20 !border-0 !p-4 !text-primary-50 w-80" />
600
+ </div>
601
+ <div class="inline-flex flex-col gap-2">
602
+ <label for="password" class="text-primary-50 font-semibold">Password</label>
603
+ <input pInputText id="password" class="!bg-white/20 !border-0 !p-4 !text-primary-50 w-80" type="password" />
604
+ </div>
605
+ <div class="flex items-center gap-4">
606
+ <p-button label="Cancel" (click)="closeDialog()" [text]="true" styleClass="!p-4 w-full !text-primary-50 !border !border-white/30 hover:!bg-white/10" class="w-full" />
607
+ <p-button label="Sign-In" (click)="closeDialog()" [text]="true" styleClass="!p-4 w-full !text-primary-50 !border !border-white/30 hover:!bg-white/10" class="w-full" />
608
+ </div>
609
+ </div>
610
+ </ng-template>
611
+ </p-dialog>
612
+ </div>
613
+ `,
614
+ standalone: true,
615
+ imports: [ButtonModule, DialogModule, InputTextModule]
616
+ })
617
+ export class TailwindHeadlessDemo {
618
+ visible: boolean = false;
619
+
620
+ showDialog() {
621
+ this.visible = true;
622
+ }
623
+
624
+ closeDialog() {
625
+ this.visible = false;
626
+ }
627
+ }
628
+ ```
629
+
630
+ ## Override
30
631
 
31
632
  Tailwind utilities may not be able to override the default styling of components due to css specificity, there are two possible solutions; Import and CSS Layer. Important Use the ! as a prefix to enforce the styling. This is not the recommend approach, and should be used as last resort to avoid adding unnecessary style classes to your bundle. Tailwind v4 Tailwind v3 CSS Layer CSS Layer provides control over the css specificity so that Tailwind utilities can safely override components. Tailwind v4 Ensure exhaustive layer is after theme and base , but before the other Tailwind layers such as utilities . No change in the CSS configuration is required. Tailwind v3 The exhaustive layer should be between base and utilities. Tailwind v3 does not use native layer so needs to be defined with CSS.
32
633
 
33
- ## Overview-
634
+ ## Overview
34
635
 
35
636
  Tailwind CSS is a popular CSS framework based on a utility-first design. The core provides flexible CSS classes with predefined CSS rules to build your own UI elements. For example, instead of an opinionated btn class as in Bootstrap, Tailwind offers primitive classes like bg-blue-500 , rounded and p-4 to apply a button. A set of reusable classes can also be grouped as a Tailwind CSS component and there are even a couple of libraries that take this approach to build components specifically for Tailwind. Tailwind is an outstanding CSS library, however it lacks a true comprehensive UI suite when combined with Angular, this is where ExhaustiveUI comes in by providing a wide range of highly accessible and feature rich UI component library. The core of ExhaustiveUI does not depend on Tailwind CSS.
36
637
 
37
- ## Plugin-
638
+ ## Plugin
38
639
 
39
640
  The @exhaustive-ui/tailwindcss is a plugin to provide first class integration between ExhaustiveUI and Tailwind CSS. It is designed to work both in styled and unstyled modes. In styled mode, for instance the semantic colors such as primary and surfaces are provided as Tailwind utilities e.g. bg-primary , text-surface-500 , text-muted-color . If you haven't already done so, start by integrating Tailwind into your project. Detailed steps for this process can be found in the Tailwind documentation . After successfully installing Tailwind, proceed with the installation of the ExhaustiveUiTailwind plugin. This single npm package comes with two libraries: the CSS version is compatible with Tailwind v4, while the JS version is designed for Tailwind v3. Tailwind v4 In the CSS file that contains the tailwindcss import, add the @exhaustive-ui/tailwindcss import as well. For a comprehensive starter guide, review the ExhaustiveUI repository which demonstrates the integration. Tailwind v3 Use the plugins option in your Tailwind config file to configure the plugin.
40
641