@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,226 @@
1
+ # StyleClass
2
+
3
+ StyleClass manages CSS classes declaratively to during enter/leave animations or just to toggle classes on an element.
4
+
5
+ ## Basic
6
+
7
+ StyleClass applies enter and leave animations to a target element declaratively. The target is resolved with the selector option, here @next referring to the next sibling.
8
+
9
+ ```vue
10
+ <template>
11
+ <div class="flex flex-col items-center gap-4 h-32">
12
+ <button
13
+ type="button"
14
+ v-styleclass="{
15
+ selector: '@next',
16
+ enterFromClass: 'hidden',
17
+ enterActiveClass: 'animate-scalein',
18
+ leaveToClass: 'hidden',
19
+ leaveActiveClass: 'animate-fadeout',
20
+ hideOnOutsideClick: true
21
+ }"
22
+ class="inline-flex items-center gap-2 px-4 py-2 rounded-lg bg-primary text-primary-contrast hover:bg-primary/90 transition-colors cursor-pointer text-sm font-medium"
23
+ >
24
+ Toggle Panel
25
+ <ChevronDown class="w-3.5 h-3.5" />
26
+ </button>
27
+ <div class="hidden relative w-full max-w-md p-4 rounded-lg border border-surface-200 dark:border-surface-700 bg-surface-0 dark:bg-surface-900 shadow-md origin-top">
28
+ <p class="text-sm text-surface-700 dark:text-surface-200 leading-relaxed m-0">This panel is toggled using StyleClass with scale-in and fade-out animations. Click the button again or click outside to dismiss.</p>
29
+ </div>
30
+ </div>
31
+ </template>
32
+
33
+ <script setup>
34
+ import ChevronDown from '@primeicons/vue/chevron-down';
35
+ <\/script>
36
+ ```
37
+
38
+ ## Animation
39
+
40
+ Classes to apply during enter and leave animations are specified using the enterFromClass , enterActiveClass , enterToClass , leaveFromClass , leaveActiveClass , leaveToClass properties. In addition in case the target is an overlay, hideOnOutsideClick would be handy to hide the target if outside of the popup is clicked, or enable hideOnEscape to close the popup by listening escape key.
41
+
42
+ ```vue
43
+ <template>
44
+ <div class="flex items-center justify-center gap-7">
45
+ <div class="flex flex-col items-center">
46
+ <div>
47
+ <Button v-styleclass="{ selector: '.box1', enterFromClass: 'my-hidden', enterActiveClass: 'my-fadein' }" class="mr-2">FadeIn</Button>
48
+ <Button v-styleclass="{ selector: '.box1', leaveActiveClass: 'my-fadeout', leaveToClass: 'my-hidden' }" severity="secondary">FadeOut</Button>
49
+ </div>
50
+ <div class="h-32">
51
+ <div class="my-hidden animate-duration-500 box1">
52
+ <div class="flex bg-primary text-primary-contrast items-center justify-center py-3 rounded-md mt-4 font-bold text-sm w-28 h-28">Custom</div>
53
+ </div>
54
+ </div>
55
+ </div>
56
+ <div class="flex flex-col items-center">
57
+ <div>
58
+ <Button v-styleclass="{ selector: '.box2', enterFromClass: 'hidden', enterActiveClass: 'animate-slidedown' }" class="mr-2">SlideDown</Button>
59
+ <Button v-styleclass="{ selector: '.box2', leaveActiveClass: 'animate-slideup', leaveToClass: 'hidden' }" severity="secondary">SlideUp</Button>
60
+ </div>
61
+ <div class="h-32">
62
+ <div class="hidden animate-duration-500 box2 overflow-hidden">
63
+ <div class="flex bg-primary text-primary-contrast items-center justify-center py-3 rounded-md mt-4 font-bold text-sm w-28 h-28">Content</div>
64
+ </div>
65
+ </div>
66
+ </div>
67
+ </div>
68
+ </template>
69
+
70
+ <style scoped>
71
+ @keyframes my-fadein {
72
+ 0% {
73
+ opacity: 0;
74
+ }
75
+ 100% {
76
+ opacity: 1;
77
+ }
78
+ }
79
+
80
+ @keyframes my-fadeout {
81
+ 0% {
82
+ opacity: 1;
83
+ }
84
+ 100% {
85
+ opacity: 0;
86
+ }
87
+ }
88
+
89
+ .my-hidden {
90
+ display: none;
91
+ }
92
+
93
+ .my-fadein {
94
+ animation: my-fadein 150ms linear;
95
+ }
96
+
97
+ .my-fadeout {
98
+ animation: my-fadeout 150ms linear;
99
+ }
100
+ <\/style>
101
+ ```
102
+
103
+ ## Toggle Class
104
+
105
+ StyleClass has two modes, toggleClass to simply add-remove a class and enter/leave animations. The target element to change the styling is defined with the selector property that accepts any valid CSS selector or keywords including &#64;next , prev , parent , grandparent .
106
+
107
+ ```vue
108
+ <template>
109
+ <div class="flex flex-col items-center gap-4 h-40">
110
+ <button
111
+ type="button"
112
+ v-styleclass="{ selector: '@next', toggleClass: 'hidden' }"
113
+ class="inline-flex items-center gap-2 px-4 py-2 rounded-lg bg-primary text-primary-contrast hover:bg-primary/90 transition-colors cursor-pointer text-sm font-medium"
114
+ >
115
+ Toggle
116
+ </button>
117
+ <div class="w-full max-w-md p-4 rounded-lg border border-surface-200 dark:border-surface-700 bg-surface-0 dark:bg-surface-900 shadow-md">
118
+ <p class="text-sm text-surface-700 dark:text-surface-200 leading-relaxed m-0">
119
+ This panel is toggled instantly using <code class="text-xs bg-surface-100 dark:bg-surface-800 px-1.5 py-0.5 rounded">toggleClass</code> without any enter/leave animations.
120
+ </p>
121
+ </div>
122
+ </div>
123
+ </template>
124
+
125
+ <script setup>
126
+ <\/script>
127
+ ```
128
+
129
+ ## Selector
130
+
131
+ The target element is resolved with the selector option, which accepts keywords such as &#64;next , &#64;prev , &#64;parent and &#64;grandparent , or any valid CSS selector.
132
+
133
+ ```vue
134
+ <template>
135
+ <div class="flex flex-col gap-8">
136
+ <div class="flex flex-col gap-2">
137
+ <span class="text-sm font-medium text-surface-500 dark:text-surface-400">@next</span>
138
+ <div class="flex items-center gap-4">
139
+ <button
140
+ type="button"
141
+ v-styleclass="{ selector: '@next', enterFromClass: 'hidden', enterActiveClass: 'animate-fadein', leaveActiveClass: 'animate-fadeout', leaveToClass: 'hidden' }"
142
+ class="px-4 py-2 rounded-lg bg-primary text-primary-contrast hover:bg-primary/90 transition-colors cursor-pointer text-sm font-medium shrink-0"
143
+ >
144
+ @next
145
+ </button>
146
+ <div class="hidden px-4 py-2 rounded-lg bg-primary/10 text-primary text-sm font-medium">Next Sibling</div>
147
+ </div>
148
+ </div>
149
+ <div class="flex flex-col gap-2">
150
+ <span class="text-sm font-medium text-surface-500 dark:text-surface-400">@prev</span>
151
+ <div class="flex items-center gap-4">
152
+ <div class="hidden px-4 py-2 rounded-lg bg-primary/10 text-primary text-sm font-medium">Previous Sibling</div>
153
+ <button
154
+ type="button"
155
+ v-styleclass="{ selector: '@prev', enterFromClass: 'hidden', enterActiveClass: 'animate-fadein', leaveActiveClass: 'animate-fadeout', leaveToClass: 'hidden' }"
156
+ class="px-4 py-2 rounded-lg bg-primary text-primary-contrast hover:bg-primary/90 transition-colors cursor-pointer text-sm font-medium shrink-0"
157
+ >
158
+ @prev
159
+ </button>
160
+ </div>
161
+ </div>
162
+ <div class="flex flex-col gap-2">
163
+ <span class="text-sm font-medium text-surface-500 dark:text-surface-400">CSS Selector</span>
164
+ <div class="flex items-center gap-4">
165
+ <button
166
+ type="button"
167
+ v-styleclass="{ selector: '#remote-target', enterFromClass: 'hidden', enterActiveClass: 'animate-scalein', leaveActiveClass: 'animate-fadeout', leaveToClass: 'hidden' }"
168
+ class="px-4 py-2 rounded-lg bg-primary text-primary-contrast hover:bg-primary/90 transition-colors cursor-pointer text-sm font-medium shrink-0"
169
+ >
170
+ #remote-target
171
+ </button>
172
+ </div>
173
+ <div id="remote-target" class="hidden px-4 py-2 rounded-lg bg-primary/10 text-primary text-sm font-medium origin-top w-fit">Remote Target</div>
174
+ </div>
175
+ </div>
176
+ </template>
177
+
178
+ <script setup>
179
+ <\/script>
180
+ ```
181
+
182
+ ## Hide On Resize
183
+
184
+ When hideOnResize is enabled, the leave animation is triggered automatically when resizing occurs. Use the resizeSelector property to specify whether to listen to window resize events or element-specific resize events. Set resizeSelector to "window" (default) or "document" for browser resize, or a CSS selector to observe the target element's dimensions.
185
+
186
+ ```vue
187
+ <template>
188
+ <div class="flex flex-wrap justify-center gap-4">
189
+ <div class="flex flex-col items-center gap-4 w-100">
190
+ <Button v-styleclass="{ selector: '.window-responsive-box', enterFromClass: 'hidden', enterActiveClass: 'animate-fadein', leaveActiveClass: 'animate-fadeout', leaveToClass: 'hidden', hideOnResize: true, resizeSelector: 'window' }">Show Window Responsive Content</Button>
191
+ <div class="window-responsive-box hidden animate-duration-300 border border-lg border-surface">
192
+ <div class="p-3 flex flex-col gap-2">
193
+ <h3 class="text-lg font-bold">Window Responsive Panel</h3>
194
+ <p class="text-sm">This panel will hide when you resize the browser window.</p>
195
+ <p class="text-sm">Try resizing your browser window to see the effect.</p>
196
+ </div>
197
+ </div>
198
+ </div>
199
+
200
+ <div class="flex flex-col items-center gap-4 w-100">
201
+ <Button v-styleclass="{ selector: '.resizable-container', enterFromClass: 'hidden', enterActiveClass: 'animate-fadein', leaveActiveClass: 'animate-fadeout', leaveToClass: 'hidden', hideOnResize: true, resizeSelector: '.resizable-container' }">Show Resizable Panel</Button>
202
+
203
+ <div class="resizable-container hidden animate-duration-300 border border-lg border-surface w-xs w-max-[25rem] w-min-[15rem] overflow-auto resize">
204
+ <div class="p-4 h-full flex flex-col gap-2">
205
+ <h3 class="text-lg font-bold">Resizable Panel</h3>
206
+ <p class="text-sm">Drag the resize handle in the bottom-right corner to resize this panel.</p>
207
+ <p class="text-sm">The panel will hide when you resize it.</p>
208
+ </div>
209
+ </div>
210
+ </div>
211
+ </div>
212
+ </template>
213
+
214
+ <script setup>
215
+ <\/script>
216
+ ```
217
+
218
+ ## Style Class API
219
+
220
+ ### Pass Through Options
221
+
222
+ | Name |Type |Description |
223
+ | --- | --- | --- |
224
+ | hooks | any | Used to manage all lifecycle hooks. |
225
+
226
+ ### Theming