@primereact/mcp 11.0.0-rc.2 → 11.0.0-rc.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.
- package/README.md +10 -8
- package/data/llms/headless/components/textarea/api.json +6 -0
- package/data/llms/headless/guides/ai/mcp.md +113 -0
- package/data/llms/headless/guides/ai/plugin.md +138 -0
- package/data/llms/headless/guides/installation.md +1 -1
- package/data/llms/hooks/use-filter.md +2 -5
- package/data/llms/llms-full.txt +1170 -247
- package/data/llms/llms.txt +8 -0
- package/data/llms/primitive/components/textarea/api.json +6 -6
- package/data/llms/primitive/guides/ai/mcp.md +113 -0
- package/data/llms/primitive/guides/ai/plugin.md +138 -0
- package/data/llms/primitive/guides/icons/primeicons.md +3 -3
- package/data/llms/primitive/guides/installation.md +1 -1
- package/data/llms/styled/components/datatable.md +20 -40
- package/data/llms/styled/components/dataview.md +12 -17
- package/data/llms/styled/components/dialog.md +0 -9
- package/data/llms/styled/components/inputgroup.md +0 -65
- package/data/llms/styled/components/select.md +3 -5
- package/data/llms/styled/components/slider.md +1 -2
- package/data/llms/styled/components/stepper.md +1 -2
- package/data/llms/styled/components/toolbar.md +10 -10
- package/data/llms/styled/components/tooltip.md +46 -0
- package/data/llms/styled/guides/ai/mcp.md +113 -0
- package/data/llms/styled/guides/ai/plugin.md +138 -0
- package/data/llms/styled/guides/icons/primeicons.md +3 -3
- package/data/llms/styled/guides/installation/astro.md +1 -1
- package/data/llms/styled/guides/installation/configuration.md +135 -0
- package/data/llms/styled/guides/installation/nextjs.md +1 -1
- package/data/llms/styled/guides/installation/react-router.md +1 -1
- package/data/llms/styled/guides/installation/tanstack.md +1 -1
- package/data/llms/styled/guides/installation/vite.md +1 -1
- package/data/llms/tailwind/components/datatable.md +17 -34
- package/data/llms/tailwind/components/dataview.md +12 -17
- package/data/llms/tailwind/components/dialog.md +1 -9
- package/data/llms/tailwind/components/select.md +1 -2
- package/data/llms/tailwind/components/slider.md +1 -2
- package/data/llms/tailwind/components/toolbar.md +10 -7
- package/data/llms/tailwind/guides/ai/mcp.md +113 -0
- package/data/llms/tailwind/guides/ai/plugin.md +138 -0
- package/data/llms/tailwind/guides/icons/primeicons.md +3 -3
- package/data/llms/tailwind/guides/installation/astro.md +1 -1
- package/data/llms/tailwind/guides/installation/nextjs.md +1 -1
- package/data/llms/tailwind/guides/installation/react-router.md +1 -1
- package/data/llms/tailwind/guides/installation/tanstack.md +1 -1
- package/data/llms/tailwind/guides/installation/vite.md +1 -1
- package/data/manifest.json +2379 -1673
- package/data/mcp-data.json +1375 -542
- package/dist/index.d.ts +2 -3
- package/dist/index.js +1 -1
- package/package.json +4 -3
- package/data/llms/manifest.json +0 -12409
- package/data/llms/mcp-data.json +0 -14481
|
@@ -20,7 +20,6 @@ import {
|
|
|
20
20
|
import { Tag } from '@/components/ui/tag';
|
|
21
21
|
import { ProductService, type Product } from '@/shared/services/product.service';
|
|
22
22
|
import { Database } from '@primeicons/react/database';
|
|
23
|
-
import Image from 'next/image';
|
|
24
23
|
import * as React from 'react';
|
|
25
24
|
|
|
26
25
|
const statusSeverity: Record<string, 'success' | 'warn' | 'danger'> = {
|
|
@@ -68,7 +67,7 @@ export default function Preview() {
|
|
|
68
67
|
<DataTableRow key={item.id}>
|
|
69
68
|
<DataTableCell>
|
|
70
69
|
<div className="flex items-center gap-3">
|
|
71
|
-
<
|
|
70
|
+
<img
|
|
72
71
|
src={`https://primefaces.org/cdn/primevue/images/product/${item.image}`}
|
|
73
72
|
alt={item.name}
|
|
74
73
|
width={48}
|
|
@@ -205,7 +204,6 @@ import {
|
|
|
205
204
|
} from '@/components/ui/datatable';
|
|
206
205
|
import { Tag } from '@/components/ui/tag';
|
|
207
206
|
import { ProductService, type Product } from '@/shared/services/product.service';
|
|
208
|
-
import Image from 'next/image';
|
|
209
207
|
import * as React from 'react';
|
|
210
208
|
|
|
211
209
|
const statusSeverity: Record<string, 'success' | 'warn' | 'danger'> = {
|
|
@@ -253,7 +251,7 @@ export default function BasicDemo() {
|
|
|
253
251
|
<DataTableRow key={item.id}>
|
|
254
252
|
<DataTableCell>
|
|
255
253
|
<div className="flex items-center gap-3">
|
|
256
|
-
<
|
|
254
|
+
<img
|
|
257
255
|
src={`https://primefaces.org/cdn/primevue/images/product/${item.image}`}
|
|
258
256
|
alt={item.name}
|
|
259
257
|
width={40}
|
|
@@ -396,7 +394,6 @@ One row at a time. Clicking a different row replaces the previous selection.
|
|
|
396
394
|
|
|
397
395
|
```tsx
|
|
398
396
|
'use client';
|
|
399
|
-
import Image from 'next/image';
|
|
400
397
|
import { Database } from '@primeicons/react/database';
|
|
401
398
|
import { ProductService, type Product } from '@/shared/services/product.service';
|
|
402
399
|
import type { DataTableSelectionEvent } from 'primereact/datatable';
|
|
@@ -471,7 +468,7 @@ export default function SingleSelectionDemo() {
|
|
|
471
468
|
<DataTableRow key={item.id}>
|
|
472
469
|
<DataTableCell>
|
|
473
470
|
<div className="flex items-center gap-3">
|
|
474
|
-
<
|
|
471
|
+
<img
|
|
475
472
|
src={`https://primefaces.org/cdn/primevue/images/product/${item.image}`}
|
|
476
473
|
alt={item.name}
|
|
477
474
|
width={40}
|
|
@@ -531,7 +528,6 @@ Multiple rows without a dedicated column. Pair with `metaKeySelection` so Ctrl/C
|
|
|
531
528
|
|
|
532
529
|
```tsx
|
|
533
530
|
'use client';
|
|
534
|
-
import Image from 'next/image';
|
|
535
531
|
import { ProductService, type Product } from '@/shared/services/product.service';
|
|
536
532
|
import { ShoppingCart } from '@primeicons/react/shopping-cart';
|
|
537
533
|
import { Database } from '@primeicons/react/database';
|
|
@@ -642,7 +638,7 @@ export default function MultipleSelectionDemo() {
|
|
|
642
638
|
<DataTableRow key={item.id}>
|
|
643
639
|
<DataTableCell>
|
|
644
640
|
<div className="flex items-center gap-3">
|
|
645
|
-
<
|
|
641
|
+
<img
|
|
646
642
|
src={`https://primefaces.org/cdn/primevue/images/product/${item.image}`}
|
|
647
643
|
alt={item.name}
|
|
648
644
|
width={40}
|
|
@@ -826,7 +822,6 @@ Arrow Up/Down moves focus between rows, Space or Enter toggles the focused row,
|
|
|
826
822
|
|
|
827
823
|
```tsx
|
|
828
824
|
'use client';
|
|
829
|
-
import Image from 'next/image';
|
|
830
825
|
import { Database } from '@primeicons/react/database';
|
|
831
826
|
import { ProductService, type Product } from '@/shared/services/product.service';
|
|
832
827
|
import type { DataTableSelectionEvent } from 'primereact/datatable';
|
|
@@ -918,7 +913,7 @@ export default function KeyboardDemo() {
|
|
|
918
913
|
<DataTableRow key={item.id}>
|
|
919
914
|
<DataTableCell>
|
|
920
915
|
<div className="flex items-center gap-3">
|
|
921
|
-
<
|
|
916
|
+
<img
|
|
922
917
|
src={`https://primefaces.org/cdn/primevue/images/product/${item.image}`}
|
|
923
918
|
alt={item.name}
|
|
924
919
|
width={36}
|
|
@@ -1004,7 +999,6 @@ import { SortAlt } from '@primeicons/react/sort-alt';
|
|
|
1004
999
|
import { SortAmountDown } from '@primeicons/react/sort-amount-down';
|
|
1005
1000
|
import { SortAmountUpAlt } from '@primeicons/react/sort-amount-up-alt';
|
|
1006
1001
|
import type { DataTableSortOrderInstance } from 'primereact/datatable';
|
|
1007
|
-
import Image from 'next/image';
|
|
1008
1002
|
import * as React from 'react';
|
|
1009
1003
|
|
|
1010
1004
|
const statusSeverity: Record<string, 'success' | 'warn' | 'danger'> = {
|
|
@@ -1091,7 +1085,7 @@ export default function SortDemo() {
|
|
|
1091
1085
|
<DataTableRow key={item.id}>
|
|
1092
1086
|
<DataTableCell>
|
|
1093
1087
|
<div className="flex items-center gap-3">
|
|
1094
|
-
<
|
|
1088
|
+
<img
|
|
1095
1089
|
src={`https://primefaces.org/cdn/primevue/images/product/${item.image}`}
|
|
1096
1090
|
alt={item.name}
|
|
1097
1091
|
width={40}
|
|
@@ -1151,7 +1145,6 @@ Hold Ctrl/Cmd and click multiple column headers to sort by several fields at onc
|
|
|
1151
1145
|
|
|
1152
1146
|
```tsx
|
|
1153
1147
|
'use client';
|
|
1154
|
-
import Image from 'next/image';
|
|
1155
1148
|
import { ProductService, type Product } from '@/shared/services/product.service';
|
|
1156
1149
|
import type { DataTableSortOrderInstance } from 'primereact/datatable';
|
|
1157
1150
|
import { SortAlt } from '@primeicons/react/sort-alt';
|
|
@@ -1263,7 +1256,7 @@ export default function MultiSortDemo() {
|
|
|
1263
1256
|
<DataTableRow key={item.id}>
|
|
1264
1257
|
<DataTableCell>
|
|
1265
1258
|
<div className="flex items-center gap-3">
|
|
1266
|
-
<
|
|
1259
|
+
<img
|
|
1267
1260
|
src={`https://primefaces.org/cdn/primevue/images/product/${item.image}`}
|
|
1268
1261
|
alt={item.name}
|
|
1269
1262
|
width={40}
|
|
@@ -1323,7 +1316,6 @@ Apply an initial sort on mount via `defaultSortField` + `defaultSortOrder`.
|
|
|
1323
1316
|
|
|
1324
1317
|
```tsx
|
|
1325
1318
|
'use client';
|
|
1326
|
-
import Image from 'next/image';
|
|
1327
1319
|
import { ProductService, type Product } from '@/shared/services/product.service';
|
|
1328
1320
|
import type { DataTableSortOrderInstance } from 'primereact/datatable';
|
|
1329
1321
|
import { SortAlt } from '@primeicons/react/sort-alt';
|
|
@@ -1435,7 +1427,7 @@ export default function PresortDemo() {
|
|
|
1435
1427
|
<DataTableRow key={item.id}>
|
|
1436
1428
|
<DataTableCell>
|
|
1437
1429
|
<div className="flex items-center gap-3">
|
|
1438
|
-
<
|
|
1430
|
+
<img
|
|
1439
1431
|
src={`https://primefaces.org/cdn/primevue/images/product/${item.image}`}
|
|
1440
1432
|
alt={item.name}
|
|
1441
1433
|
width={40}
|
|
@@ -1518,7 +1510,6 @@ import {
|
|
|
1518
1510
|
} from '@/components/ui/datatable';
|
|
1519
1511
|
import { OverlayBadge } from '@/components/ui/overlaybadge';
|
|
1520
1512
|
import { Tag } from '@/components/ui/tag';
|
|
1521
|
-
import Image from 'next/image';
|
|
1522
1513
|
import * as React from 'react';
|
|
1523
1514
|
|
|
1524
1515
|
const statusSeverity: Record<string, 'success' | 'warn' | 'danger'> = {
|
|
@@ -1612,7 +1603,7 @@ export default function PresortMultiDemo() {
|
|
|
1612
1603
|
<DataTableRow key={item.id}>
|
|
1613
1604
|
<DataTableCell>
|
|
1614
1605
|
<div className="flex items-center gap-3">
|
|
1615
|
-
<
|
|
1606
|
+
<img
|
|
1616
1607
|
src={`https://primefaces.org/cdn/primevue/images/product/${item.image}`}
|
|
1617
1608
|
alt={item.name}
|
|
1618
1609
|
width={40}
|
|
@@ -2445,7 +2436,6 @@ import {
|
|
|
2445
2436
|
DataTableTableContainer
|
|
2446
2437
|
} from '@/components/ui/datatable';
|
|
2447
2438
|
import { Tag } from '@/components/ui/tag';
|
|
2448
|
-
import Image from 'next/image';
|
|
2449
2439
|
import * as React from 'react';
|
|
2450
2440
|
|
|
2451
2441
|
const statusSeverity: Record<string, 'success' | 'warn' | 'danger'> = {
|
|
@@ -2498,7 +2488,7 @@ export default function ResizeDemo() {
|
|
|
2498
2488
|
<DataTableRow key={item.id}>
|
|
2499
2489
|
<DataTableCell>
|
|
2500
2490
|
<div className="flex items-center gap-3">
|
|
2501
|
-
<
|
|
2491
|
+
<img
|
|
2502
2492
|
src={`https://primefaces.org/cdn/primevue/images/product/${item.image}`}
|
|
2503
2493
|
alt={item.name}
|
|
2504
2494
|
width={36}
|
|
@@ -2552,7 +2542,6 @@ Dragging grows or shrinks the whole table; adjacent columns keep their widths.
|
|
|
2552
2542
|
|
|
2553
2543
|
```tsx
|
|
2554
2544
|
'use client';
|
|
2555
|
-
import Image from 'next/image';
|
|
2556
2545
|
import { Database } from '@primeicons/react/database';
|
|
2557
2546
|
import { ProductService, type Product } from '@/shared/services/product.service';
|
|
2558
2547
|
import {
|
|
@@ -2626,7 +2615,7 @@ export default function ResizeExpandDemo() {
|
|
|
2626
2615
|
<DataTableRow key={item.id}>
|
|
2627
2616
|
<DataTableCell>
|
|
2628
2617
|
<div className="flex items-center gap-3">
|
|
2629
|
-
<
|
|
2618
|
+
<img
|
|
2630
2619
|
src={`https://primefaces.org/cdn/primevue/images/product/${item.image}`}
|
|
2631
2620
|
alt={item.name}
|
|
2632
2621
|
width={36}
|
|
@@ -2683,7 +2672,6 @@ Drag and drop column headers to reorder columns.
|
|
|
2683
2672
|
|
|
2684
2673
|
```tsx
|
|
2685
2674
|
'use client';
|
|
2686
|
-
import Image from 'next/image';
|
|
2687
2675
|
import { ProductService, type Product } from '@/shared/services/product.service';
|
|
2688
2676
|
import type { DataTableColumnReorderEvent } from 'primereact/datatable';
|
|
2689
2677
|
import { ArrowDown } from '@primeicons/react/arrow-down';
|
|
@@ -2740,7 +2728,7 @@ function renderCell(field: string, item: Product) {
|
|
|
2740
2728
|
case 'name':
|
|
2741
2729
|
return (
|
|
2742
2730
|
<div className="flex items-center gap-3">
|
|
2743
|
-
<
|
|
2731
|
+
<img
|
|
2744
2732
|
src={`https://primefaces.org/cdn/primevue/images/product/${item.image}`}
|
|
2745
2733
|
alt={item.name}
|
|
2746
2734
|
width={36}
|
|
@@ -2849,7 +2837,6 @@ Drag and drop rows to reorder data.
|
|
|
2849
2837
|
|
|
2850
2838
|
```tsx
|
|
2851
2839
|
'use client';
|
|
2852
|
-
import Image from 'next/image';
|
|
2853
2840
|
import { ProductService, type Product } from '@/shared/services/product.service';
|
|
2854
2841
|
import { Bars } from '@primeicons/react/bars';
|
|
2855
2842
|
import { Database } from '@primeicons/react/database';
|
|
@@ -2927,7 +2914,7 @@ export default function RowReorderDemo() {
|
|
|
2927
2914
|
</DataTableCell>
|
|
2928
2915
|
<DataTableCell>
|
|
2929
2916
|
<div className="flex items-center gap-3">
|
|
2930
|
-
<
|
|
2917
|
+
<img
|
|
2931
2918
|
src={`https://primefaces.org/cdn/primevue/images/product/${item.image}`}
|
|
2932
2919
|
alt={item.name}
|
|
2933
2920
|
width={36}
|
|
@@ -3461,7 +3448,6 @@ import {
|
|
|
3461
3448
|
} from '@/components/ui/datatable';
|
|
3462
3449
|
import { Tag } from '@/components/ui/tag';
|
|
3463
3450
|
import { ProductService, type Product } from '@/shared/services/product.service';
|
|
3464
|
-
import Image from 'next/image';
|
|
3465
3451
|
import * as React from 'react';
|
|
3466
3452
|
|
|
3467
3453
|
const statusSeverity: Record<string, 'success' | 'warn' | 'danger'> = {
|
|
@@ -3507,7 +3493,7 @@ export default function TemplateDemo() {
|
|
|
3507
3493
|
<DataTableRow key={item.id}>
|
|
3508
3494
|
<DataTableCell>
|
|
3509
3495
|
<div className="flex items-center gap-3">
|
|
3510
|
-
<
|
|
3496
|
+
<img
|
|
3511
3497
|
src={`https://primefaces.org/cdn/primevue/images/product/${item.image}`}
|
|
3512
3498
|
alt={item.name}
|
|
3513
3499
|
width={40}
|
|
@@ -3548,7 +3534,6 @@ Export table data to CSV with customizable fields and headers.
|
|
|
3548
3534
|
|
|
3549
3535
|
```tsx
|
|
3550
3536
|
'use client';
|
|
3551
|
-
import Image from 'next/image';
|
|
3552
3537
|
import { ProductService, type Product } from '@/shared/services/product.service';
|
|
3553
3538
|
import { FileExport } from '@primeicons/react/file-export';
|
|
3554
3539
|
import { Database } from '@primeicons/react/database';
|
|
@@ -3630,7 +3615,7 @@ export default function ExportDemo() {
|
|
|
3630
3615
|
<DataTableRow key={item.id}>
|
|
3631
3616
|
<DataTableCell>
|
|
3632
3617
|
<div className="flex items-center gap-3">
|
|
3633
|
-
<
|
|
3618
|
+
<img
|
|
3634
3619
|
src={`https://primefaces.org/cdn/primevue/images/product/${item.image}`}
|
|
3635
3620
|
alt={item.name}
|
|
3636
3621
|
width={36}
|
|
@@ -3710,7 +3695,6 @@ import {
|
|
|
3710
3695
|
DataTableTableContainer
|
|
3711
3696
|
} from '@/components/ui/datatable';
|
|
3712
3697
|
import { Tag } from '@/components/ui/tag';
|
|
3713
|
-
import Image from 'next/image';
|
|
3714
3698
|
import * as React from 'react';
|
|
3715
3699
|
|
|
3716
3700
|
const statusSeverity: Record<string, 'success' | 'warn' | 'danger'> = {
|
|
@@ -3775,7 +3759,7 @@ export default function LoadingOverlayDemo() {
|
|
|
3775
3759
|
<DataTableRow key={item.id}>
|
|
3776
3760
|
<DataTableCell>
|
|
3777
3761
|
<div className="flex items-center gap-3">
|
|
3778
|
-
<
|
|
3762
|
+
<img
|
|
3779
3763
|
src={`https://primefaces.org/cdn/primevue/images/product/${item.image}`}
|
|
3780
3764
|
alt={item.name}
|
|
3781
3765
|
width={40}
|
|
@@ -3838,7 +3822,6 @@ import {
|
|
|
3838
3822
|
} from '@/components/ui/datatable';
|
|
3839
3823
|
import { Skeleton } from '@/components/ui/skeleton';
|
|
3840
3824
|
import { Tag } from '@/components/ui/tag';
|
|
3841
|
-
import Image from 'next/image';
|
|
3842
3825
|
import * as React from 'react';
|
|
3843
3826
|
|
|
3844
3827
|
const statusSeverity: Record<string, 'success' | 'warn' | 'danger'> = {
|
|
@@ -3929,7 +3912,7 @@ export default function LoadingSkeletonDemo() {
|
|
|
3929
3912
|
<DataTableRow key={item.id}>
|
|
3930
3913
|
<DataTableCell>
|
|
3931
3914
|
<div className="flex items-center gap-3">
|
|
3932
|
-
<
|
|
3915
|
+
<img
|
|
3933
3916
|
src={`https://primefaces.org/cdn/primevue/images/product/${item.image}`}
|
|
3934
3917
|
alt={item.name}
|
|
3935
3918
|
width={40}
|
|
@@ -9,7 +9,6 @@ import { DataView, DataViewContent } from '@/components/ui/dataview';
|
|
|
9
9
|
import { Tag } from '@/components/ui/tag';
|
|
10
10
|
import { ProductService } from '@/shared/services/product.service';
|
|
11
11
|
import { Heart, ShoppingCart, StarFill } from '@primeicons/react';
|
|
12
|
-
import Image from 'next/image';
|
|
13
12
|
import * as React from 'react';
|
|
14
13
|
|
|
15
14
|
interface Product {
|
|
@@ -59,14 +58,14 @@ export default function Preview() {
|
|
|
59
58
|
className={`flex flex-col sm:flex-row sm:items-center p-6 gap-4 ${index !== 0 ? 'border-t border-surface-200 dark:border-surface-700' : ''}`}
|
|
60
59
|
>
|
|
61
60
|
<div className="md:w-40 relative">
|
|
62
|
-
<
|
|
61
|
+
<img
|
|
63
62
|
className="mx-auto rounded w-full"
|
|
64
63
|
src={`https://primefaces.org/cdn/primevue/images/product/${product.image}`}
|
|
65
64
|
alt={product.name}
|
|
66
65
|
width={160}
|
|
67
66
|
height={160}
|
|
68
67
|
/>
|
|
69
|
-
<Tag severity={getSeverity(product)} className="absolute top-1 left-1">
|
|
68
|
+
<Tag severity={getSeverity(product)} className="absolute top-1 left-1 dark:bg-surface-900!">
|
|
70
69
|
{product.inventoryStatus}
|
|
71
70
|
</Tag>
|
|
72
71
|
</div>
|
|
@@ -161,7 +160,6 @@ import { DataView, DataViewContent } from '@/components/ui/dataview';
|
|
|
161
160
|
import { Tag } from '@/components/ui/tag';
|
|
162
161
|
import { ProductService } from '@/shared/services/product.service';
|
|
163
162
|
import { Heart, ShoppingCart, StarFill } from '@primeicons/react';
|
|
164
|
-
import Image from 'next/image';
|
|
165
163
|
import * as React from 'react';
|
|
166
164
|
|
|
167
165
|
interface Product {
|
|
@@ -211,14 +209,14 @@ export default function BasicDemo() {
|
|
|
211
209
|
className={`flex flex-col sm:flex-row sm:items-center p-6 gap-4 ${index !== 0 ? 'border-t border-surface-200 dark:border-surface-700' : ''}`}
|
|
212
210
|
>
|
|
213
211
|
<div className="md:w-40 relative">
|
|
214
|
-
<
|
|
212
|
+
<img
|
|
215
213
|
className="mx-auto rounded w-full"
|
|
216
214
|
src={`https://primefaces.org/cdn/primevue/images/product/${product.image}`}
|
|
217
215
|
alt={product.name}
|
|
218
216
|
width={160}
|
|
219
217
|
height={160}
|
|
220
218
|
/>
|
|
221
|
-
<Tag severity={getSeverity(product)} className="absolute top-1 left-1">
|
|
219
|
+
<Tag severity={getSeverity(product)} className="absolute top-1 left-1 dark:bg-surface-900!">
|
|
222
220
|
{product.inventoryStatus}
|
|
223
221
|
</Tag>
|
|
224
222
|
</div>
|
|
@@ -279,7 +277,6 @@ import { Paginator, PaginatorFirst, PaginatorLast, PaginatorNext, PaginatorPages
|
|
|
279
277
|
import { Tag } from '@/components/ui/tag';
|
|
280
278
|
import { ProductService } from '@/shared/services/product.service';
|
|
281
279
|
import { Heart, ShoppingCart, StarFill } from '@primeicons/react';
|
|
282
|
-
import Image from 'next/image';
|
|
283
280
|
import { PaginatorRootChangeEvent } from 'primereact/paginator';
|
|
284
281
|
import * as React from 'react';
|
|
285
282
|
|
|
@@ -332,14 +329,14 @@ export default function PaginationDemo() {
|
|
|
332
329
|
className={`flex flex-col sm:flex-row sm:items-center p-6 gap-4 ${index !== 0 ? 'border-t border-surface-200 dark:border-surface-700' : ''}`}
|
|
333
330
|
>
|
|
334
331
|
<div className="md:w-40 relative">
|
|
335
|
-
<
|
|
332
|
+
<img
|
|
336
333
|
className="mx-auto rounded w-full"
|
|
337
334
|
src={`https://primefaces.org/cdn/primevue/images/product/${product.image}`}
|
|
338
335
|
alt={product.name}
|
|
339
336
|
width={160}
|
|
340
337
|
height={160}
|
|
341
338
|
/>
|
|
342
|
-
<Tag severity={getSeverity(product)} className="absolute top-1 left-1">
|
|
339
|
+
<Tag severity={getSeverity(product)} className="absolute top-1 left-1 dark:bg-surface-900!">
|
|
343
340
|
{product.inventoryStatus}
|
|
344
341
|
</Tag>
|
|
345
342
|
</div>
|
|
@@ -415,7 +412,6 @@ import { ToggleButton } from '@/components/ui/togglebutton';
|
|
|
415
412
|
import { ToggleButtonGroup } from '@/components/ui/togglebuttongroup';
|
|
416
413
|
import { ProductService } from '@/shared/services/product.service';
|
|
417
414
|
import { Heart, ShoppingCart, StarFill } from '@primeicons/react';
|
|
418
|
-
import Image from 'next/image';
|
|
419
415
|
import { ToggleButtonGroupValueChangeEvent } from 'primereact/togglebuttongroup';
|
|
420
416
|
import * as React from 'react';
|
|
421
417
|
|
|
@@ -486,14 +482,14 @@ export default function SortDemo() {
|
|
|
486
482
|
className={`flex flex-col sm:flex-row sm:items-center p-6 gap-4 ${index !== 0 ? 'border-t border-surface-200 dark:border-surface-700' : ''}`}
|
|
487
483
|
>
|
|
488
484
|
<div className="md:w-40 relative">
|
|
489
|
-
<
|
|
485
|
+
<img
|
|
490
486
|
className="mx-auto rounded w-full"
|
|
491
487
|
src={`https://primefaces.org/cdn/primevue/images/product/${product.image}`}
|
|
492
488
|
alt={product.name}
|
|
493
489
|
width={160}
|
|
494
490
|
height={160}
|
|
495
491
|
/>
|
|
496
|
-
<Tag severity={getSeverity(product)} className="absolute top-1 left-1">
|
|
492
|
+
<Tag severity={getSeverity(product)} className="absolute top-1 left-1 dark:bg-surface-900!">
|
|
497
493
|
{product.inventoryStatus}
|
|
498
494
|
</Tag>
|
|
499
495
|
</div>
|
|
@@ -555,7 +551,6 @@ import { ToggleButton } from '@/components/ui/togglebutton';
|
|
|
555
551
|
import { ToggleButtonGroup } from '@/components/ui/togglebuttongroup';
|
|
556
552
|
import { ProductService } from '@/shared/services/product.service';
|
|
557
553
|
import { Bars, Heart, ShoppingCart, StarFill, Table } from '@primeicons/react';
|
|
558
|
-
import Image from 'next/image';
|
|
559
554
|
import { ToggleButtonGroupValueChangeEvent } from 'primereact/togglebuttongroup';
|
|
560
555
|
import * as React from 'react';
|
|
561
556
|
|
|
@@ -605,14 +600,14 @@ export default function LayoutDemo() {
|
|
|
605
600
|
className={`flex flex-col sm:flex-row sm:items-center p-6 gap-4 ${index !== 0 ? 'border-t border-surface-200 dark:border-surface-700' : ''}`}
|
|
606
601
|
>
|
|
607
602
|
<div className="md:w-40 relative">
|
|
608
|
-
<
|
|
603
|
+
<img
|
|
609
604
|
className="mx-auto rounded w-full"
|
|
610
605
|
src={`https://primefaces.org/cdn/primevue/images/product/${product.image}`}
|
|
611
606
|
alt={product.name}
|
|
612
607
|
width={160}
|
|
613
608
|
height={160}
|
|
614
609
|
/>
|
|
615
|
-
<Tag severity={getSeverity(product)} className="absolute top-1 left-1">
|
|
610
|
+
<Tag severity={getSeverity(product)} className="absolute top-1 left-1 dark:bg-surface-900!">
|
|
616
611
|
{product.inventoryStatus}
|
|
617
612
|
</Tag>
|
|
618
613
|
</div>
|
|
@@ -666,14 +661,14 @@ export default function LayoutDemo() {
|
|
|
666
661
|
<div className="p-6 border border-surface-200 dark:border-surface-700 bg-surface-0 dark:bg-surface-900 rounded flex flex-col">
|
|
667
662
|
<div className="bg-surface-50 flex justify-center rounded p-4">
|
|
668
663
|
<div className="relative mx-auto">
|
|
669
|
-
<
|
|
664
|
+
<img
|
|
670
665
|
src={`https://primefaces.org/cdn/primevue/images/product/${product.image}`}
|
|
671
666
|
alt={product.name}
|
|
672
667
|
width={300}
|
|
673
668
|
height={200}
|
|
674
669
|
className="rounded"
|
|
675
670
|
/>
|
|
676
|
-
<Tag severity={getSeverity(product)} className="absolute top-1 left-1">
|
|
671
|
+
<Tag severity={getSeverity(product)} className="absolute top-1 left-1 dark:bg-surface-900!">
|
|
677
672
|
{product.inventoryStatus}
|
|
678
673
|
</Tag>
|
|
679
674
|
</div>
|
|
@@ -292,7 +292,7 @@ import {
|
|
|
292
292
|
} from '@/components/ui/dialog';
|
|
293
293
|
import { InputText } from '@/components/ui/inputtext';
|
|
294
294
|
import { Label } from '@/components/ui/label';
|
|
295
|
-
import {
|
|
295
|
+
import { Times } from '@primeicons/react';
|
|
296
296
|
import { DialogRootChangeEvent, DialogRootProps } from 'primereact/dialog';
|
|
297
297
|
import * as React from 'react';
|
|
298
298
|
|
|
@@ -310,39 +310,31 @@ export default function PositionDemo() {
|
|
|
310
310
|
<div className="flex flex-wrap justify-center gap-2 mb-2">
|
|
311
311
|
<Button onClick={() => openPosition('left')} severity="secondary" style={{ minWidth: '10rem' }}>
|
|
312
312
|
Left
|
|
313
|
-
<ArrowLeft />
|
|
314
313
|
</Button>
|
|
315
314
|
<Button onClick={() => openPosition('right')} severity="secondary" style={{ minWidth: '10rem' }}>
|
|
316
315
|
Right
|
|
317
|
-
<ArrowRight />
|
|
318
316
|
</Button>
|
|
319
317
|
</div>
|
|
320
318
|
<div className="flex flex-wrap justify-center gap-2 mb-2">
|
|
321
319
|
<Button onClick={() => openPosition('topleft')} severity="secondary" style={{ minWidth: '10rem' }}>
|
|
322
320
|
TopLeft
|
|
323
|
-
<ArrowUpLeft />
|
|
324
321
|
</Button>
|
|
325
322
|
<Button onClick={() => openPosition('top')} severity="secondary" style={{ minWidth: '10rem' }}>
|
|
326
323
|
Top
|
|
327
|
-
<ArrowUp />
|
|
328
324
|
</Button>
|
|
329
325
|
<Button onClick={() => openPosition('topright')} severity="secondary" style={{ minWidth: '10rem' }}>
|
|
330
326
|
TopRight
|
|
331
|
-
<ArrowUpRight />
|
|
332
327
|
</Button>
|
|
333
328
|
</div>
|
|
334
329
|
<div className="flex flex-wrap justify-center gap-2">
|
|
335
330
|
<Button onClick={() => openPosition('bottomleft')} severity="secondary" style={{ minWidth: '10rem' }}>
|
|
336
331
|
BottomLeft
|
|
337
|
-
<ArrowDownLeft />
|
|
338
332
|
</Button>
|
|
339
333
|
<Button onClick={() => openPosition('bottom')} severity="secondary" style={{ minWidth: '10rem' }}>
|
|
340
334
|
Bottom
|
|
341
|
-
<ArrowDown />
|
|
342
335
|
</Button>
|
|
343
336
|
<Button onClick={() => openPosition('bottomright')} severity="secondary" style={{ minWidth: '10rem' }}>
|
|
344
337
|
BottomRight
|
|
345
|
-
<ArrowDownRight />
|
|
346
338
|
</Button>
|
|
347
339
|
</div>
|
|
348
340
|
<Dialog open={open} onOpenChange={(e: DialogRootChangeEvent) => setOpen(e.value as boolean)} position={position}>
|
|
@@ -469,7 +469,6 @@ import {
|
|
|
469
469
|
SelectValue
|
|
470
470
|
} from '@/components/ui/select';
|
|
471
471
|
import { Search } from '@primeicons/react';
|
|
472
|
-
import Image from 'next/image';
|
|
473
472
|
import type { SelectValueChangeEvent } from 'primereact/select';
|
|
474
473
|
import * as React from 'react';
|
|
475
474
|
|
|
@@ -532,7 +531,7 @@ export default function FilterDemo() {
|
|
|
532
531
|
{filteredCountries.map((country, index) => (
|
|
533
532
|
<SelectOption key={country.code} index={index} uKey={country.code}>
|
|
534
533
|
<div className="flex items-center gap-2">
|
|
535
|
-
<
|
|
534
|
+
<img
|
|
536
535
|
alt={country.name}
|
|
537
536
|
src="https://primefaces.org/cdn/primevue/images/flag/flag_placeholder.png"
|
|
538
537
|
className={`flag flag-${country.code.toLowerCase()} mr-2`}
|
|
@@ -224,7 +224,6 @@ import type { ToggleButtonGroupValueChangeEvent } from 'primereact/togglebuttong
|
|
|
224
224
|
import { Slider } from '@/components/ui/slider';
|
|
225
225
|
import { ToggleButton } from '@/components/ui/togglebutton';
|
|
226
226
|
import { ToggleButtonGroup } from '@/components/ui/togglebuttongroup';
|
|
227
|
-
import Image from 'next/image';
|
|
228
227
|
import * as React from 'react';
|
|
229
228
|
|
|
230
229
|
export default function FilterDemo() {
|
|
@@ -239,7 +238,7 @@ export default function FilterDemo() {
|
|
|
239
238
|
|
|
240
239
|
return (
|
|
241
240
|
<div className="flex flex-col items-center justify-center">
|
|
242
|
-
<
|
|
241
|
+
<img
|
|
243
242
|
alt="user header"
|
|
244
243
|
className="w-80 rounded mb-6"
|
|
245
244
|
src="https://primefaces.org/cdn/primevue/images/galleria/galleria1.jpg"
|
|
@@ -135,7 +135,10 @@ import { Search } from '@primeicons/react';
|
|
|
135
135
|
|
|
136
136
|
export default function CustomDemo() {
|
|
137
137
|
return (
|
|
138
|
-
<Toolbar
|
|
138
|
+
<Toolbar
|
|
139
|
+
className="@container"
|
|
140
|
+
style={{ borderRadius: '3rem', padding: '0.75rem 1rem 0.75rem 1.5rem', background: 'var(--p-surface-900)', border: 'none' }}
|
|
141
|
+
>
|
|
139
142
|
<ToolbarStart>
|
|
140
143
|
<div className="flex items-center gap-1">
|
|
141
144
|
<i className="pi pi-prime text-xl" style={{ color: 'var(--p-primary-400)' }} />
|
|
@@ -143,24 +146,24 @@ export default function CustomDemo() {
|
|
|
143
146
|
Brand
|
|
144
147
|
</span>
|
|
145
148
|
</div>
|
|
146
|
-
<div className="ml-6 flex gap-1">
|
|
147
|
-
<Button variant="text" size="small" className="text-surface-0 hover:bg-surface-700">
|
|
149
|
+
<div className="ml-6 hidden @min-[620px]:flex gap-1">
|
|
150
|
+
<Button variant="text" size="small" className="text-surface-0! hover:bg-surface-700!">
|
|
148
151
|
Products
|
|
149
152
|
</Button>
|
|
150
|
-
<Button variant="text" size="small" className="text-surface-0 hover:bg-surface-700">
|
|
153
|
+
<Button variant="text" size="small" className="text-surface-0! hover:bg-surface-700!">
|
|
151
154
|
Solutions
|
|
152
155
|
</Button>
|
|
153
|
-
<Button variant="text" size="small" className="text-surface-0 hover:bg-surface-700">
|
|
156
|
+
<Button variant="text" size="small" className="text-surface-0! hover:bg-surface-700!">
|
|
154
157
|
Resources
|
|
155
158
|
</Button>
|
|
156
|
-
<Button variant="text" size="small" className="text-surface-0 hover:bg-surface-700">
|
|
159
|
+
<Button variant="text" size="small" className="text-surface-0! hover:bg-surface-700!">
|
|
157
160
|
Pricing
|
|
158
161
|
</Button>
|
|
159
162
|
</div>
|
|
160
163
|
</ToolbarStart>
|
|
161
164
|
<ToolbarEnd>
|
|
162
165
|
<div className="flex items-center gap-2">
|
|
163
|
-
<Button variant="text" size="small" iconOnly aria-label="Search" className="text-surface-0 hover:bg-surface-700">
|
|
166
|
+
<Button variant="text" size="small" iconOnly aria-label="Search" className="text-surface-0! hover:bg-surface-700!">
|
|
164
167
|
<Search />
|
|
165
168
|
</Button>
|
|
166
169
|
<Button severity="contrast" size="small">
|