@primereact/mcp 11.0.0-rc.2 → 11.0.0-rc.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.
Files changed (61) hide show
  1. package/README.md +10 -9
  2. package/data/llms/headless/components/carousel/api.json +1 -1
  3. package/data/llms/headless/components/contextmenu/api.json +2 -2
  4. package/data/llms/headless/components/inputcolor/api.json +1 -1
  5. package/data/llms/headless/components/menu/api.json +2 -2
  6. package/data/llms/headless/components/textarea/api.json +6 -0
  7. package/data/llms/headless/guides/ai/mcp.md +113 -0
  8. package/data/llms/headless/guides/ai/plugin.md +139 -0
  9. package/data/llms/headless/guides/installation.md +1 -1
  10. package/data/llms/hooks/use-filter.md +2 -5
  11. package/data/llms/llms-full.txt +1199 -266
  12. package/data/llms/llms.txt +8 -0
  13. package/data/llms/primitive/components/carousel/api.json +1 -1
  14. package/data/llms/primitive/components/contextmenu/api.json +2 -2
  15. package/data/llms/primitive/components/inputcolor/api.json +1 -1
  16. package/data/llms/primitive/components/menu/api.json +8 -8
  17. package/data/llms/primitive/components/textarea/api.json +6 -6
  18. package/data/llms/primitive/guides/ai/mcp.md +113 -0
  19. package/data/llms/primitive/guides/ai/plugin.md +139 -0
  20. package/data/llms/primitive/guides/icons/primeicons.md +3 -3
  21. package/data/llms/primitive/guides/installation.md +1 -1
  22. package/data/llms/styled/components/datatable.md +20 -40
  23. package/data/llms/styled/components/dataview.md +12 -17
  24. package/data/llms/styled/components/dialog.md +11 -17
  25. package/data/llms/styled/components/fileupload.md +3 -3
  26. package/data/llms/styled/components/inputgroup.md +0 -65
  27. package/data/llms/styled/components/select.md +3 -5
  28. package/data/llms/styled/components/slider.md +1 -2
  29. package/data/llms/styled/components/stepper.md +1 -2
  30. package/data/llms/styled/components/toolbar.md +10 -10
  31. package/data/llms/styled/components/tooltip.md +46 -0
  32. package/data/llms/styled/guides/ai/mcp.md +113 -0
  33. package/data/llms/styled/guides/ai/plugin.md +139 -0
  34. package/data/llms/styled/guides/icons/primeicons.md +3 -3
  35. package/data/llms/styled/guides/installation/astro.md +1 -1
  36. package/data/llms/styled/guides/installation/configuration.md +135 -0
  37. package/data/llms/styled/guides/installation/nextjs.md +1 -1
  38. package/data/llms/styled/guides/installation/react-router.md +1 -1
  39. package/data/llms/styled/guides/installation/tanstack.md +1 -1
  40. package/data/llms/styled/guides/installation/vite.md +1 -1
  41. package/data/llms/tailwind/components/datatable.md +17 -34
  42. package/data/llms/tailwind/components/dataview.md +12 -17
  43. package/data/llms/tailwind/components/dialog.md +12 -17
  44. package/data/llms/tailwind/components/select.md +1 -2
  45. package/data/llms/tailwind/components/slider.md +1 -2
  46. package/data/llms/tailwind/components/toolbar.md +10 -7
  47. package/data/llms/tailwind/guides/ai/mcp.md +113 -0
  48. package/data/llms/tailwind/guides/ai/plugin.md +139 -0
  49. package/data/llms/tailwind/guides/icons/primeicons.md +3 -3
  50. package/data/llms/tailwind/guides/installation/astro.md +1 -1
  51. package/data/llms/tailwind/guides/installation/nextjs.md +1 -1
  52. package/data/llms/tailwind/guides/installation/react-router.md +1 -1
  53. package/data/llms/tailwind/guides/installation/tanstack.md +1 -1
  54. package/data/llms/tailwind/guides/installation/vite.md +1 -1
  55. package/data/manifest.json +2400 -1694
  56. package/data/mcp-data.json +1375 -542
  57. package/dist/index.d.ts +2 -3
  58. package/dist/index.js +1 -1
  59. package/package.json +9 -4
  60. package/data/llms/manifest.json +0 -12409
  61. package/data/llms/mcp-data.json +0 -14481
@@ -0,0 +1,135 @@
1
+ # Configuration
2
+
3
+ Application wide configuration for PrimeReact.
4
+
5
+ ## Provider
6
+
7
+ Wrap your app with `PrimeReactProvider` in your main file (like `main.tsx` or `App.tsx`). This enables PrimeReact features everywhere in your app:
8
+
9
+ ```tsx showLineNumbers {10, 12}
10
+ import { StrictMode } from 'react'
11
+ import { createRoot } from 'react-dom/client'
12
+ import App from './App.tsx'
13
+ import { PrimeReactProvider } from "@primereact/core";
14
+
15
+ ...
16
+
17
+ createRoot(document.getElementById('root')!).render(
18
+ <StrictMode>
19
+ <PrimeReactProvider>
20
+ <App />
21
+ </PrimeReactProvider>
22
+ </StrictMode>,
23
+ )
24
+
25
+ ```
26
+
27
+ ## Theme
28
+
29
+ Style mode offers theming based on a design token based architecture. See the [styled mode](/docs/theming/styled) documentation for details such as building your own theme.
30
+
31
+ ```tsx full showLineNumbers {2,5-12,16}
32
+ ...
33
+ import Aura from '@primeuix/themes/aura';
34
+ import { PrimeReactProvider } from '@primereact/core';
35
+
36
+ const theme = {
37
+ preset: Aura,
38
+ options: {
39
+ prefix: 'p',
40
+ darkModeSelector: 'system',
41
+ cssLayer: false
42
+ }
43
+ };
44
+
45
+ ReactDOM.createRoot(document.getElementById('root')).render(
46
+ <React.StrictMode>
47
+ <PrimeReactProvider theme={theme}>
48
+ <App />
49
+ </PrimeReactProvider>
50
+ </React.StrictMode>
51
+ );
52
+ ```
53
+
54
+ ## Unstyled
55
+
56
+ Unstyled mode instructs the components not to add any built-in style classes so that they can be styled using custom css or libraries like Tailwind and Bootstrap. Visit Unstyled mode documentation for more information.
57
+
58
+ ```tsx showLineNumbers {6}
59
+ import { PrimeReactProvider } from '@primereact/core';
60
+ ...
61
+
62
+ ReactDOM.createRoot(document.getElementById('root')).render(
63
+ <React.StrictMode>
64
+ <PrimeReactProvider unstyled>
65
+ <App />
66
+ </PrimeReactProvider>
67
+ </React.StrictMode>
68
+ );
69
+ ```
70
+
71
+ ## PassThrough
72
+
73
+ Defines the shared pass through properties per component type. Visit the [Pass Through Props](/docs/passthrough) documentation for more information.
74
+
75
+ ```tsx showLineNumbers {4-8,12}
76
+ import { PrimeReactProvider } from '@primereact/core';
77
+ ...
78
+
79
+ const pt = {
80
+ slider: {
81
+ handle: { className: 'bg-primary text-primary-contrast' }
82
+ }
83
+ };
84
+
85
+ ReactDOM.createRoot(document.getElementById('root')).render(
86
+ <React.StrictMode>
87
+ <PrimeReactProvider pt={pt}>
88
+ <App />
89
+ </PrimeReactProvider>
90
+ </React.StrictMode>
91
+ );
92
+ ```
93
+
94
+ ## PassThrough Options
95
+
96
+ Used to configure the `ptOptions` properties of components. The `mergeSections` defines whether the sections from the main configuration gets added and the `mergeProps` controls whether to override or merge the defined props.
97
+ Defaults are `true` for `mergeSections` and `false` for `mergeProps`.
98
+
99
+ ```tsx showLineNumbers {4-7,11}
100
+ import { PrimeReactProvider } from '@primereact/core';
101
+ ...
102
+
103
+ const ptOptions = {
104
+ mergeSections: true,
105
+ mergeProps: false
106
+ };
107
+
108
+ ReactDOM.createRoot(document.getElementById('root')).render(
109
+ <React.StrictMode>
110
+ <PrimeReactProvider ptOptions={ptOptions}>
111
+ <App />
112
+ </PrimeReactProvider>
113
+ </React.StrictMode>
114
+ );
115
+ ```
116
+
117
+ ## InputVariant
118
+
119
+ Input fields come in two styles, default is `outlined` with borders around the field whereas `filled` alternative adds a background color to the field.
120
+ Applying `p-variant-filled` to an ancestor of an input enables the filled style. If you prefer to use filled inputs in the entire application, use a global container such as the document body or the application element to apply the style class.
121
+ Note that in case you add it to the application element, components that are teleported to the document body such as Dialog will not be able to display filled inputs as they are not a descendant of the application root element in the DOM tree,
122
+ to resolve this case set inputVariant to `filled` at PrimeReactProvider as well.
123
+
124
+ ```tsx showLineNumbers {6}
125
+ import { PrimeReactProvider } from '@primereact/core';
126
+ ...
127
+
128
+ ReactDOM.createRoot(document.getElementById('root')).render(
129
+ <React.StrictMode>
130
+ <PrimeReactProvider inputVariant="filled">
131
+ <App />
132
+ </PrimeReactProvider>
133
+ </React.StrictMode>
134
+ );
135
+ ```
@@ -16,7 +16,7 @@ Start from our <a href="https://github.com/primefaces/primereact-examples/tree/m
16
16
  Install PrimeReact and a theme package using your favorite package manager:
17
17
 
18
18
  ```bash
19
- npm install @primereact/ui@11.0.0-rc.2 @primeuix/themes@3.0.0-rc.1 @primeicons/react@8.0.0-rc.1
19
+ npm install @primereact/ui @primeuix/themes @primeicons/react
20
20
  ```
21
21
 
22
22
  </DocStep>
@@ -16,7 +16,7 @@ Start from our <a href="https://github.com/primefaces/primereact-examples/tree/m
16
16
  Install PrimeReact and a theme package using your favorite package manager:
17
17
 
18
18
  ```bash
19
- npm install @primereact/ui@11.0.0-rc.2 @primeuix/themes@3.0.0-rc.1 @primeicons/react@8.0.0-rc.1
19
+ npm install @primereact/ui @primeuix/themes @primeicons/react
20
20
  ```
21
21
 
22
22
  </DocStep>
@@ -16,7 +16,7 @@ Start from our <a href="https://github.com/primefaces/primereact-examples/tree/m
16
16
  Install PrimeReact and a theme package using your favorite package manager:
17
17
 
18
18
  ```bash
19
- npm install @primereact/ui@11.0.0-rc.2 @primeuix/themes@3.0.0-rc.1 @primeicons/react@8.0.0-rc.1
19
+ npm install @primereact/ui @primeuix/themes @primeicons/react
20
20
  ```
21
21
 
22
22
  </DocStep>
@@ -16,7 +16,7 @@ Start from our <a href="https://github.com/primefaces/primereact-examples/tree/m
16
16
  Install PrimeReact and a theme package using your favorite package manager:
17
17
 
18
18
  ```bash
19
- npm install @primereact/ui@11.0.0-rc.2 @primeuix/themes@3.0.0-rc.1 @primeicons/react@8.0.0-rc.1
19
+ npm install @primereact/ui @primeuix/themes @primeicons/react
20
20
  ```
21
21
 
22
22
  </DocStep>
@@ -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
- <Image
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
- <Image
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
- <Image
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
- <Image
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
- <Image
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
- <Image
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
- <Image
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
- <Image
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
- <Image
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
- <Image
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
- <Image
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
- <Image
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
- <Image
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
- <Image
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
- <Image
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
- <Image
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
- <Image
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
- <Image
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
- <Image
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
- <Image
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
- <Image
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
- <Image
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
- <Image
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>