@primevue/mcp 4.5.5 → 5.0.0-rc.2

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 (173) hide show
  1. package/LICENSE.md +45 -21
  2. package/README.md +48 -250
  3. package/data/components.json +47269 -0
  4. package/data/llms/components/accordion.md +629 -0
  5. package/data/llms/components/animateonscroll.md +165 -0
  6. package/data/llms/components/autocomplete.md +995 -0
  7. package/data/llms/components/avatar.md +264 -0
  8. package/data/llms/components/badge.md +200 -0
  9. package/data/llms/components/blockui.md +99 -0
  10. package/data/llms/components/breadcrumb.md +269 -0
  11. package/data/llms/components/button.md +902 -0
  12. package/data/llms/components/card.md +209 -0
  13. package/data/llms/components/carousel.md +506 -0
  14. package/data/llms/components/cascadeselect.md +1207 -0
  15. package/data/llms/components/chart.md +1022 -0
  16. package/data/llms/components/checkbox.md +401 -0
  17. package/data/llms/components/chip.md +206 -0
  18. package/data/llms/components/colorpicker.md +213 -0
  19. package/data/llms/components/commandmenu.md +660 -0
  20. package/data/llms/components/compare.md +407 -0
  21. package/data/llms/components/confirmdialog.md +343 -0
  22. package/data/llms/components/confirmpopup.md +252 -0
  23. package/data/llms/components/contextmenu.md +522 -0
  24. package/data/llms/components/datatable.md +5266 -0
  25. package/data/llms/components/dataview.md +569 -0
  26. package/data/llms/components/datepicker.md +964 -0
  27. package/data/llms/components/deferredcontent.md +96 -0
  28. package/data/llms/components/dialog.md +702 -0
  29. package/data/llms/components/divider.md +152 -0
  30. package/data/llms/components/dock.md +488 -0
  31. package/data/llms/components/drawer.md +469 -0
  32. package/data/llms/components/dynamicdialog.md +214 -0
  33. package/data/llms/components/editor.md +205 -0
  34. package/data/llms/components/fieldset.md +253 -0
  35. package/data/llms/components/fileupload.md +459 -0
  36. package/data/llms/components/floatlabel.md +144 -0
  37. package/data/llms/components/fluid.md +104 -0
  38. package/data/llms/components/focustrap.md +59 -0
  39. package/data/llms/components/forms.md +344 -0
  40. package/data/llms/components/galleria.md +1119 -0
  41. package/data/llms/components/gallery.md +1003 -0
  42. package/data/llms/components/iconfield.md +283 -0
  43. package/data/llms/components/iftalabel.md +96 -0
  44. package/data/llms/components/image.md +179 -0
  45. package/data/llms/components/imagecompare.md +108 -0
  46. package/data/llms/components/inplace.md +183 -0
  47. package/data/llms/components/inputcolor.md +869 -0
  48. package/data/llms/components/inputgroup.md +419 -0
  49. package/data/llms/components/inputmask.md +345 -0
  50. package/data/llms/components/inputnumber.md +551 -0
  51. package/data/llms/components/inputotp.md +345 -0
  52. package/data/llms/components/inputpassword.md +738 -0
  53. package/data/llms/components/inputtags.md +432 -0
  54. package/data/llms/components/inputtext.md +569 -0
  55. package/data/llms/components/installation.md +1 -0
  56. package/data/llms/components/keyfilter.md +116 -0
  57. package/data/llms/components/knob.md +318 -0
  58. package/data/llms/components/label.md +151 -0
  59. package/data/llms/components/laravel.md +53 -0
  60. package/data/llms/components/listbox.md +636 -0
  61. package/data/llms/components/mask.md +203 -0
  62. package/data/llms/components/mcp.md +39 -0
  63. package/data/llms/components/megamenu.md +563 -0
  64. package/data/llms/components/menu.md +651 -0
  65. package/data/llms/components/menubar.md +446 -0
  66. package/data/llms/components/message.md +497 -0
  67. package/data/llms/components/metergroup.md +281 -0
  68. package/data/llms/components/multiselect.md +752 -0
  69. package/data/llms/components/orderlist.md +224 -0
  70. package/data/llms/components/organizationchart.md +418 -0
  71. package/data/llms/components/paginator.md +221 -0
  72. package/data/llms/components/panel.md +321 -0
  73. package/data/llms/components/panelmenu.md +703 -0
  74. package/data/llms/components/password.md +657 -0
  75. package/data/llms/components/picklist.md +286 -0
  76. package/data/llms/components/popover.md +145 -0
  77. package/data/llms/components/progressbar.md +242 -0
  78. package/data/llms/components/progressspinner.md +104 -0
  79. package/data/llms/components/radiobutton.md +427 -0
  80. package/data/llms/components/rating.md +312 -0
  81. package/data/llms/components/ripple.md +91 -0
  82. package/data/llms/components/scrollarea.md +700 -0
  83. package/data/llms/components/scrollpanel.md +131 -0
  84. package/data/llms/components/scrolltop.md +87 -0
  85. package/data/llms/components/select.md +1251 -0
  86. package/data/llms/components/selectbutton.md +268 -0
  87. package/data/llms/components/sidebar.md +2232 -0
  88. package/data/llms/components/skeleton.md +302 -0
  89. package/data/llms/components/slider.md +416 -0
  90. package/data/llms/components/speeddial.md +402 -0
  91. package/data/llms/components/splitbutton.md +840 -0
  92. package/data/llms/components/splitter.md +447 -0
  93. package/data/llms/components/stepper.md +551 -0
  94. package/data/llms/components/styleclass.md +226 -0
  95. package/data/llms/components/tabs.md +609 -0
  96. package/data/llms/components/tag.md +178 -0
  97. package/data/llms/components/terminal.md +123 -0
  98. package/data/llms/components/textarea.md +519 -0
  99. package/data/llms/components/tieredmenu.md +578 -0
  100. package/data/llms/components/timeline.md +494 -0
  101. package/data/llms/components/toast.md +472 -0
  102. package/data/llms/components/togglebutton.md +276 -0
  103. package/data/llms/components/toggleswitch.md +271 -0
  104. package/data/llms/components/toolbar.md +140 -0
  105. package/data/llms/components/tooltip.md +160 -0
  106. package/data/llms/components/tree.md +1076 -0
  107. package/data/llms/components/treeselect.md +660 -0
  108. package/data/llms/components/treetable.md +2493 -0
  109. package/data/llms/components/virtualscroller.md +265 -0
  110. package/data/llms/guides/autoimport.md +28 -0
  111. package/data/llms/guides/cdn.md +72 -0
  112. package/data/llms/guides/configuration.md +158 -0
  113. package/data/llms/guides/customicons.md +67 -0
  114. package/data/llms/guides/guides/accessibility.md +27 -0
  115. package/data/llms/guides/guides/animations.md +119 -0
  116. package/data/llms/guides/guides/rtl.md +7 -0
  117. package/data/llms/guides/icons.md +136 -0
  118. package/data/llms/guides/installation.md +3 -0
  119. package/data/llms/guides/laravel.md +66 -0
  120. package/data/llms/guides/llms.md +15 -0
  121. package/data/llms/guides/mcp.md +104 -0
  122. package/data/llms/guides/migration/v4.md +15 -0
  123. package/data/llms/guides/migration/v5.md +15 -0
  124. package/data/llms/guides/nuxt.md +141 -0
  125. package/data/llms/guides/passthrough.md +137 -0
  126. package/data/llms/guides/primeclt.md +43 -0
  127. package/data/llms/guides/tailwind.md +151 -0
  128. package/data/llms/guides/theming/styled.md +497 -0
  129. package/data/llms/guides/theming/unstyled.md +57 -0
  130. package/data/llms/guides/uikit.md +3 -0
  131. package/data/llms/guides/vite.md +90 -0
  132. package/data/llms/llms-full.txt +54465 -0
  133. package/data/llms/llms.txt +132 -0
  134. package/data/llms/pages/accessibility.md +27 -0
  135. package/data/llms/pages/animations.md +119 -0
  136. package/data/llms/pages/autoimport.md +28 -0
  137. package/data/llms/pages/cdn.md +72 -0
  138. package/data/llms/pages/configuration.md +158 -0
  139. package/data/llms/pages/contribution.md +31 -0
  140. package/data/llms/pages/customicons.md +67 -0
  141. package/data/llms/pages/designer.md +79 -0
  142. package/data/llms/pages/dynamicimports.md +7 -0
  143. package/data/llms/pages/forms.md +63 -0
  144. package/data/llms/pages/guides/accessibility.md +27 -0
  145. package/data/llms/pages/guides/animations.md +119 -0
  146. package/data/llms/pages/guides/rtl.md +7 -0
  147. package/data/llms/pages/icons.md +136 -0
  148. package/data/llms/pages/installation.md +3 -0
  149. package/data/llms/pages/introduction.md +23 -0
  150. package/data/llms/pages/laravel.md +66 -0
  151. package/data/llms/pages/llms.md +15 -0
  152. package/data/llms/pages/mcp.md +104 -0
  153. package/data/llms/pages/migration/v4.md +15 -0
  154. package/data/llms/pages/migration/v5.md +15 -0
  155. package/data/llms/pages/nuxt.md +141 -0
  156. package/data/llms/pages/passthrough.md +137 -0
  157. package/data/llms/pages/primeclt.md +43 -0
  158. package/data/llms/pages/rtl.md +7 -0
  159. package/data/llms/pages/setup.md +3 -0
  160. package/data/llms/pages/styled.md +497 -0
  161. package/data/llms/pages/tailwind.md +151 -0
  162. package/data/llms/pages/theming/styled.md +497 -0
  163. package/data/llms/pages/theming/unstyled.md +57 -0
  164. package/data/llms/pages/uikit.md +3 -0
  165. package/data/llms/pages/unstyled.md +57 -0
  166. package/data/llms/pages/v4.md +15 -0
  167. package/data/llms/pages/v5.md +15 -0
  168. package/data/llms/pages/vite.md +90 -0
  169. package/data/manifest.json +11117 -0
  170. package/data/mcp-data.json +55940 -0
  171. package/dist/index.d.ts +17 -1
  172. package/dist/index.js +66066 -72541
  173. package/package.json +10 -12
@@ -0,0 +1,209 @@
1
+ # Card
2
+
3
+ Card is a flexible container component.
4
+
5
+ ## Basic
6
+
7
+ A container with a header, body, and footer for structured content.
8
+
9
+ ```vue
10
+ <template>
11
+ <div class="flex justify-center">
12
+ <Card class="max-w-sm w-full">
13
+ <template #title>Starter Plan</template>
14
+ <template #subtitle>For personal projects</template>
15
+ <template #content>
16
+ <p class="m-0">Includes essential features, basic analytics and access to community support.</p>
17
+ </template>
18
+ <template #footer>
19
+ <span class="text-sm text-surface-500 dark:text-surface-400">Cancel anytime. No credit card required.</span>
20
+ </template>
21
+ </Card>
22
+ </div>
23
+ </template>
24
+
25
+ <script setup>
26
+ <\/script>
27
+ ```
28
+
29
+ ## With Form
30
+
31
+ Card can be used as a form container with input fields and action buttons.
32
+
33
+ ```vue
34
+ <template>
35
+ <div class="flex justify-center">
36
+ <Card class="max-w-sm w-full">
37
+ <template #title>Welcome back</template>
38
+ <template #subtitle>Sign in with your email to continue.</template>
39
+ <template #content>
40
+ <form class="space-y-6 mt-3">
41
+ <div class="flex flex-col gap-2">
42
+ <Label for="email">Email</Label>
43
+ <InputText id="email" v-model="email" type="email" />
44
+ </div>
45
+ <div class="flex flex-col gap-2">
46
+ <div class="flex items-center justify-between">
47
+ <Label for="password" class="flex-1">Password</Label>
48
+ <Button variant="link" class="p-0">Forgot password?</Button>
49
+ </div>
50
+ <InputText id="password" v-model="password" type="password" />
51
+ </div>
52
+ </form>
53
+ </template>
54
+ <template #footer>
55
+ <div class="flex flex-col gap-4">
56
+ <Button class="w-full">Login</Button>
57
+ <Button severity="secondary" variant="outlined" class="w-full">Login with Google</Button>
58
+ <div class="mt-2 text-center text-surface-500 text-sm">
59
+ Don't have an account?
60
+ <Button variant="link" class="p-0">Sign up</Button>
61
+ </div>
62
+ </div>
63
+ </template>
64
+ </Card>
65
+ </div>
66
+ </template>
67
+
68
+ <script setup>
69
+ import { ref } from 'vue';
70
+
71
+ const email = ref('');
72
+ const password = ref('');
73
+ <\/script>
74
+ ```
75
+
76
+ ## Advanced
77
+
78
+ Use the header template to place an image, avatar or other content in the header.
79
+
80
+ ```vue
81
+ <template>
82
+ <div class="flex justify-center">
83
+ <Card class="max-w-sm w-full overflow-hidden" :pt="{ body: { class: 'pt-16!' } }">
84
+ <template #header>
85
+ <div class="relative">
86
+ <img
87
+ class="w-full max-h-42 object-cover"
88
+ alt="user header"
89
+ src="https://images.unsplash.com/photo-1513649718256-1a7162666bad?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"
90
+ />
91
+ <Avatar shape="circle" class="w-24! h-24! border-3 border-surface-0 dark:border-surface-900 absolute! -bottom-12! left-4!">
92
+ <img src="https://images.unsplash.com/photo-1722495178488-c8056c4ec2c0?q=80&w=2081&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" />
93
+ </Avatar>
94
+ </div>
95
+ </template>
96
+ <template #title>
97
+ <span class="font-bold text-xl">Sakura Fresh Market</span>
98
+ </template>
99
+ <template #subtitle>
100
+ <div class="flex items-center gap-2">
101
+ <Tag severity="info" value="Daily" />
102
+ <Tag severity="info" value="Premium" />
103
+ </div>
104
+ </template>
105
+ <template #content>
106
+ <div class="space-y-4">
107
+ <p>Sakura Fresh Market is your go-to store for fresh local produce, Japanese snacks, and daily essentials — all in one place!</p>
108
+ <div class="flex items-center gap-2">
109
+ <StarFill class="text-yellow-500" />
110
+ <span><b>4.6</b> (200+ reviews)</span>
111
+ </div>
112
+ <div class="flex items-center gap-2">
113
+ <MapMarker />
114
+ <span>Tokyo, Shibuya-ku</span>
115
+ </div>
116
+ </div>
117
+ </template>
118
+ <template #footer>
119
+ <div class="flex items-center gap-2 mt-4">
120
+ <Button severity="secondary" outlined class="flex-1">
121
+ <Phone />
122
+ Call Us
123
+ </Button>
124
+ <Button class="flex-1">
125
+ <Globe />
126
+ Visit Site
127
+ </Button>
128
+ </div>
129
+ </template>
130
+ </Card>
131
+ </div>
132
+ </template>
133
+
134
+ <script setup>
135
+ import Globe from '@primeicons/vue/globe';
136
+ import MapMarker from '@primeicons/vue/map-marker';
137
+ import Phone from '@primeicons/vue/phone';
138
+ import StarFill from '@primeicons/vue/star-fill';
139
+ <\/script>
140
+ ```
141
+
142
+ ## Accessibility
143
+
144
+ Screen Reader A card can be utilized in many use cases as a result no role is enforced, in fact a role may not be necessary if the card is used for presentational purposes only. Any valid attribute is passed to the container element so if you require to use one of the landmark roles like region , you may use the role property. Keyboard Support Component does not include any interactive elements.
145
+
146
+ ```vue
147
+ <template>
148
+ <Card role="region">
149
+ Content
150
+ </Card>
151
+ </template>
152
+ ```
153
+
154
+ ## Card API
155
+
156
+ ### Props
157
+
158
+ | Name |Type |Default |Description |
159
+ | --- | --- | --- | --- |
160
+ | dt | any | - | It generates scoped CSS variables using design tokens for the component. |
161
+ | pt | PassThrough<CardPassThroughOptions> | - | Used to pass attributes to DOM elements inside the component. |
162
+ | ptOptions | any | - | Used to configure passthrough(pt) options of the component. |
163
+ | unstyled | boolean | false | When enabled, it removes component related styles in the core. |
164
+
165
+ ### Pass Through Options
166
+
167
+ | Name |Type |Description |
168
+ | --- | --- | --- |
169
+ | root | CardPassThroughOptionType | Used to pass attributes to the root's DOM element. |
170
+ | header | CardPassThroughOptionType | Used to pass attributes to the header's DOM element. |
171
+ | body | CardPassThroughOptionType | Used to pass attributes to the body's DOM element. |
172
+ | caption | CardPassThroughOptionType | Used to pass attributes to the caption's DOM element. |
173
+ | title | CardPassThroughOptionType | Used to pass attributes to the title's DOM element. |
174
+ | subtitle | CardPassThroughOptionType | Used to pass attributes to the subtitle's DOM element. |
175
+ | content | CardPassThroughOptionType | Used to pass attributes to the content's DOM element. |
176
+ | footer | CardPassThroughOptionType | Used to pass attributes to the footer's DOM element. |
177
+ | hooks | any | Used to manage all lifecycle hooks. |
178
+
179
+ ### Theming
180
+
181
+ ### CSS Classes
182
+
183
+ | Class |Description |
184
+ | --- | --- |
185
+ | p-card | Class name of the root element |
186
+ | p-card-header | Class name of the header element |
187
+ | p-card-body | Class name of the body element |
188
+ | p-card-caption | Class name of the caption element |
189
+ | p-card-title | Class name of the title element |
190
+ | p-card-subtitle | Class name of the subtitle element |
191
+ | p-card-content | Class name of the content element |
192
+ | p-card-footer | Class name of the footer element |
193
+
194
+ ### Design Tokens
195
+
196
+ | Token |CSS Variable |Description |
197
+ | --- | --- | --- |
198
+ | card.background | --p-card-background | Background of root |
199
+ | card.border.radius | --p-card-border-radius | Border radius of root |
200
+ | card.color | --p-card-color | Color of root |
201
+ | card.shadow | --p-card-shadow | Shadow of root |
202
+ | card.body.padding | --p-card-body-padding | Padding of body |
203
+ | card.body.gap | --p-card-body-gap | Gap of body |
204
+ | card.caption.gap | --p-card-caption-gap | Gap of caption |
205
+ | card.title.font.size | --p-card-title-font-size | Font size of title |
206
+ | card.title.font.weight | --p-card-title-font-weight | Font weight of title |
207
+ | card.subtitle.color | --p-card-subtitle-color | Color of subtitle |
208
+ | card.subtitle.font.size | --p-card-subtitle-font-size | Font size of subtitle |
209
+ | card.subtitle.font.weight | --p-card-subtitle-font-weight | Font weight of subtitle |