@pequity/squirrel 8.4.4 → 8.5.0

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 (175) hide show
  1. package/README.md +31 -1
  2. package/dist/cjs/chunks/index.js +530 -179
  3. package/dist/cjs/chunks/p-alert.js +14 -16
  4. package/dist/cjs/chunks/p-avatar.js +16 -0
  5. package/dist/cjs/chunks/p-btn.js +4 -1
  6. package/dist/cjs/chunks/p-card.js +4 -0
  7. package/dist/cjs/chunks/p-dropdown-select.js +34 -0
  8. package/dist/cjs/chunks/p-input-number.js +32 -0
  9. package/dist/cjs/chunks/p-input-percent.js +15 -4
  10. package/dist/cjs/chunks/p-input.js +28 -0
  11. package/dist/cjs/chunks/p-pagination-info.js +9 -5
  12. package/dist/cjs/chunks/p-pagination.js +23 -13
  13. package/dist/cjs/chunks/p-select-btn.js +2 -1
  14. package/dist/cjs/chunks/p-select.js +33 -0
  15. package/dist/cjs/chunks/p-table-loader.js +20 -0
  16. package/dist/cjs/chunks/p-tabs.js +12 -0
  17. package/dist/cjs/chunks/p-textarea.js +20 -0
  18. package/dist/cjs/index.js +72 -29
  19. package/dist/cjs/inputClasses.js +3 -3
  20. package/dist/cjs/p-checkbox.js +8 -1
  21. package/dist/cjs/p-chips.js +17 -1
  22. package/dist/cjs/p-close-btn.js +6 -1
  23. package/dist/cjs/p-drawer.js +90 -2
  24. package/dist/cjs/p-dropdown.js +2 -1
  25. package/dist/cjs/p-icon.js +2 -1
  26. package/dist/cjs/p-input-search.js +13 -1
  27. package/dist/cjs/p-loading.js +3 -3
  28. package/dist/cjs/p-modal.js +125 -43
  29. package/dist/cjs/p-select-pill.js +36 -2
  30. package/dist/cjs/p-skeleton-loader.js +17 -1
  31. package/dist/cjs/p-table-filter-icon.js +4 -1
  32. package/dist/cjs/p-table-header-cell.js +32 -2
  33. package/dist/cjs/p-table-td.js +1 -1
  34. package/dist/cjs/p-table.js +2 -0
  35. package/dist/cjs/p-toggle.js +22 -1
  36. package/dist/cjs/usePTableHeaderWrap.js +38 -0
  37. package/dist/es/chunks/index.js +530 -179
  38. package/dist/es/chunks/p-alert.js +14 -16
  39. package/dist/es/chunks/p-avatar.js +16 -0
  40. package/dist/es/chunks/p-btn.js +5 -2
  41. package/dist/es/chunks/p-card.js +4 -0
  42. package/dist/es/chunks/p-dropdown-select.js +34 -0
  43. package/dist/es/chunks/p-input-number.js +32 -0
  44. package/dist/es/chunks/p-input-percent.js +15 -4
  45. package/dist/es/chunks/p-input.js +28 -0
  46. package/dist/es/chunks/p-pagination-info.js +9 -5
  47. package/dist/es/chunks/p-pagination.js +24 -14
  48. package/dist/es/chunks/p-select-btn.js +2 -1
  49. package/dist/es/chunks/p-select.js +33 -0
  50. package/dist/es/chunks/p-table-loader.js +20 -0
  51. package/dist/es/chunks/p-tabs.js +12 -0
  52. package/dist/es/chunks/p-textarea.js +20 -0
  53. package/dist/es/index.js +77 -34
  54. package/dist/es/inputClasses.js +4 -4
  55. package/dist/es/p-checkbox.js +8 -1
  56. package/dist/es/p-chips.js +17 -1
  57. package/dist/es/p-close-btn.js +6 -1
  58. package/dist/es/p-drawer.js +90 -2
  59. package/dist/es/p-dropdown.js +2 -1
  60. package/dist/es/p-icon.js +2 -1
  61. package/dist/es/p-input-search.js +13 -1
  62. package/dist/es/p-loading.js +3 -3
  63. package/dist/es/p-modal.js +125 -43
  64. package/dist/es/p-select-pill.js +36 -2
  65. package/dist/es/p-skeleton-loader.js +17 -1
  66. package/dist/es/p-table-filter-icon.js +4 -1
  67. package/dist/es/p-table-header-cell.js +32 -2
  68. package/dist/es/p-table-td.js +1 -1
  69. package/dist/es/p-table.js +2 -0
  70. package/dist/es/p-toggle.js +22 -1
  71. package/dist/es/usePTableHeaderWrap.js +38 -0
  72. package/dist/squirrel/components/p-action-bar/p-action-bar.vue.d.ts +15 -3
  73. package/dist/squirrel/components/p-alert/p-alert.vue.d.ts +18 -5
  74. package/dist/squirrel/components/p-avatar/p-avatar.vue.d.ts +36 -1
  75. package/dist/squirrel/components/p-btn/p-btn.vue.d.ts +21 -5
  76. package/dist/squirrel/components/p-card/p-card.vue.d.ts +21 -8
  77. package/dist/squirrel/components/p-checkbox/p-checkbox.vue.d.ts +26 -8
  78. package/dist/squirrel/components/p-chips/p-chips.vue.d.ts +24 -0
  79. package/dist/squirrel/components/p-close-btn/p-close-btn.vue.d.ts +14 -1
  80. package/dist/squirrel/components/p-date-picker/p-date-picker.vue.d.ts +17 -1
  81. package/dist/squirrel/components/p-drawer/p-drawer.vue.d.ts +153 -15
  82. package/dist/squirrel/components/p-dropdown/p-dropdown.vue.d.ts +11 -2
  83. package/dist/squirrel/components/p-dropdown-select/p-dropdown-select.vue.d.ts +70 -2
  84. package/dist/squirrel/components/p-file-upload/p-file-upload.vue.d.ts +71 -7
  85. package/dist/squirrel/components/p-icon/p-icon.types.d.ts +1 -0
  86. package/dist/squirrel/components/p-icon/p-icon.vue.d.ts +5 -1
  87. package/dist/squirrel/components/p-info-icon/p-info-icon.vue.d.ts +12 -5
  88. package/dist/squirrel/components/p-inline-date-picker/p-inline-date-picker.vue.d.ts +28 -8
  89. package/dist/squirrel/components/p-input/p-input.vue.d.ts +74 -9
  90. package/dist/squirrel/components/p-input-number/p-input-number.vue.d.ts +83 -12
  91. package/dist/squirrel/components/p-input-percent/p-input-percent.vue.d.ts +23 -3
  92. package/dist/squirrel/components/p-input-search/p-input-search.vue.d.ts +25 -1
  93. package/dist/squirrel/components/p-link/p-link.vue.d.ts +1 -1
  94. package/dist/squirrel/components/p-loading/p-loading.vue.d.ts +1 -1
  95. package/dist/squirrel/components/p-modal/p-modal.vue.d.ts +190 -16
  96. package/dist/squirrel/components/p-pagination/p-pagination.vue.d.ts +23 -13
  97. package/dist/squirrel/components/p-pagination-info/p-pagination-info.vue.d.ts +17 -9
  98. package/dist/squirrel/components/p-progress-bar/p-progress-bar.vue.d.ts +21 -1
  99. package/dist/squirrel/components/p-ring-loader/p-ring-loader.vue.d.ts +11 -1
  100. package/dist/squirrel/components/p-select/p-select.vue.d.ts +77 -7
  101. package/dist/squirrel/components/p-select-btn/p-select-btn.vue.d.ts +68 -11
  102. package/dist/squirrel/components/p-select-list/p-select-list.vue.d.ts +2 -2
  103. package/dist/squirrel/components/p-select-pill/p-select-pill.vue.d.ts +72 -2
  104. package/dist/squirrel/components/p-skeleton-loader/p-skeleton-loader.vue.d.ts +40 -0
  105. package/dist/squirrel/components/p-steps/p-steps.vue.d.ts +13 -1
  106. package/dist/squirrel/components/p-table/p-table.types.d.ts +1 -0
  107. package/dist/squirrel/components/p-table/p-table.vue.d.ts +33 -1
  108. package/dist/squirrel/components/p-table/usePTableHeaderWrap.d.ts +4 -0
  109. package/dist/squirrel/components/p-table-header-cell/p-table-filter-icon.vue.d.ts +7 -1
  110. package/dist/squirrel/components/p-table-header-cell/p-table-header-cell.vue.d.ts +59 -4
  111. package/dist/squirrel/components/p-table-loader/p-table-loader.vue.d.ts +41 -1
  112. package/dist/squirrel/components/p-table-sort/p-table-sort.vue.d.ts +13 -3
  113. package/dist/squirrel/components/p-table-td/p-table-td.vue.d.ts +13 -1
  114. package/dist/squirrel/components/p-tabs/p-tabs.vue.d.ts +34 -3
  115. package/dist/squirrel/components/p-tabs-pills/p-tabs-pills.vue.d.ts +23 -1
  116. package/dist/squirrel/components/p-textarea/p-textarea.vue.d.ts +53 -9
  117. package/dist/squirrel/components/p-toggle/p-toggle.vue.d.ts +51 -4
  118. package/dist/squirrel.css +68 -68
  119. package/package.json +24 -22
  120. package/squirrel/components/p-action-bar/p-action-bar.stories.js +5 -5
  121. package/squirrel/components/p-action-bar/p-action-bar.vue +30 -3
  122. package/squirrel/components/p-alert/p-alert.spec.js +4 -4
  123. package/squirrel/components/p-alert/p-alert.stories.js +19 -13
  124. package/squirrel/components/p-alert/p-alert.vue +33 -11
  125. package/squirrel/components/p-avatar/p-avatar.vue +28 -0
  126. package/squirrel/components/p-btn/p-btn.vue +35 -0
  127. package/squirrel/components/p-card/p-card.vue +24 -1
  128. package/squirrel/components/p-checkbox/p-checkbox.vue +23 -1
  129. package/squirrel/components/p-chips/p-chips.vue +24 -0
  130. package/squirrel/components/p-close-btn/p-close-btn.vue +15 -0
  131. package/squirrel/components/p-date-picker/p-date-picker.vue +23 -1
  132. package/squirrel/components/p-drawer/p-drawer.vue +95 -0
  133. package/squirrel/components/p-dropdown/p-dropdown.vue +12 -1
  134. package/squirrel/components/p-dropdown-select/p-dropdown-select.vue +41 -0
  135. package/squirrel/components/p-file-upload/p-file-upload.vue +58 -3
  136. package/squirrel/components/p-icon/p-icon.types.ts +1 -0
  137. package/squirrel/components/p-icon/p-icon.vue +16 -0
  138. package/squirrel/components/p-info-icon/p-info-icon.vue +19 -0
  139. package/squirrel/components/p-inline-date-picker/p-inline-date-picker.vue +32 -0
  140. package/squirrel/components/p-input/p-input.vue +61 -1
  141. package/squirrel/components/p-input-number/p-input-number.vue +78 -1
  142. package/squirrel/components/p-input-percent/p-input-percent.vue +27 -3
  143. package/squirrel/components/p-input-search/p-input-search.vue +30 -2
  144. package/squirrel/components/p-link/p-link.vue +13 -0
  145. package/squirrel/components/p-loading/p-loading.vue +9 -2
  146. package/squirrel/components/p-modal/p-modal-basic.spec.js +29 -3
  147. package/squirrel/components/p-modal/p-modal.vue +182 -35
  148. package/squirrel/components/p-pagination/p-pagination.vue +28 -8
  149. package/squirrel/components/p-pagination-info/p-pagination-info.vue +16 -4
  150. package/squirrel/components/p-progress-bar/p-progress-bar.vue +31 -4
  151. package/squirrel/components/p-ring-loader/p-ring-loader.vue +17 -0
  152. package/squirrel/components/p-select/p-select.vue +50 -1
  153. package/squirrel/components/p-select-btn/p-select-btn.vue +90 -2
  154. package/squirrel/components/p-select-list/p-select-list.vue +7 -0
  155. package/squirrel/components/p-select-pill/p-select-pill.vue +52 -2
  156. package/squirrel/components/p-skeleton-loader/p-skeleton-loader.vue +24 -0
  157. package/squirrel/components/p-steps/p-steps.vue +25 -0
  158. package/squirrel/components/p-table/p-table.spec.js +51 -15
  159. package/squirrel/components/p-table/p-table.types.ts +2 -0
  160. package/squirrel/components/p-table/p-table.vue +46 -4
  161. package/squirrel/components/p-table/usePTableHeaderWrap.spec.js +118 -0
  162. package/squirrel/components/p-table/usePTableHeaderWrap.ts +45 -0
  163. package/squirrel/components/p-table-header-cell/p-table-filter-icon.vue +9 -0
  164. package/squirrel/components/p-table-header-cell/p-table-header-cell.spec.js +5 -1
  165. package/squirrel/components/p-table-header-cell/p-table-header-cell.vue +38 -1
  166. package/squirrel/components/p-table-loader/p-table-loader.vue +28 -0
  167. package/squirrel/components/p-table-sort/p-table-sort.vue +19 -1
  168. package/squirrel/components/p-table-td/p-table-td.vue +20 -0
  169. package/squirrel/components/p-tabs/p-tabs.stories.js +2 -2
  170. package/squirrel/components/p-tabs/p-tabs.vue +33 -1
  171. package/squirrel/components/p-tabs-pills/p-tabs-pills.vue +33 -0
  172. package/squirrel/components/p-textarea/p-textarea.vue +43 -1
  173. package/squirrel/components/p-toggle/p-toggle.vue +44 -1
  174. package/squirrel/assets/pagination-left-icon.svg +0 -5
  175. package/squirrel/assets/pagination-right-icon.svg +0 -5
@@ -1,64 +1,137 @@
1
+ /**
2
+ * A drawer component that slides in from the side with backdrop and animations.
3
+ * Provides a side panel interface with customizable position, width, and content areas.
4
+ * Supports teleporting to different DOM elements and comprehensive lifecycle events.
5
+ *
6
+ * @displayName PDrawer
7
+ */
1
8
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
9
+ /**
10
+ * Target element to append the drawer to.
11
+ * Usually 'body' for proper z-index stacking.
12
+ */
2
13
  appendTo: {
3
14
  type: StringConstructor;
4
15
  default: string;
5
16
  };
17
+ /**
18
+ * Title displayed in the drawer header.
19
+ * Used for accessibility and visual identification.
20
+ */
6
21
  title: {
7
22
  type: StringConstructor;
8
23
  default: string;
9
24
  };
25
+ /**
26
+ * Whether the drawer content is disabled.
27
+ * Prevents user interaction with drawer content.
28
+ */
10
29
  disabled: {
11
30
  type: BooleanConstructor;
12
31
  default: boolean;
13
32
  };
33
+ /**
34
+ * Error message to display in the drawer.
35
+ * Shows an error alert above the drawer content.
36
+ */
14
37
  errorMsg: {
15
38
  type: StringConstructor;
16
39
  default: string;
17
40
  };
41
+ /**
42
+ * The position of the drawer on the screen.
43
+ * Valid values: 'left', 'right'
44
+ * @values left, right
45
+ */
18
46
  position: {
19
47
  type: StringConstructor;
20
48
  default: string;
21
49
  };
50
+ /**
51
+ * Base z-index for the drawer.
52
+ * Higher values ensure the drawer appears above other content.
53
+ */
22
54
  zIndex: {
23
55
  type: NumberConstructor;
24
56
  default: number;
25
57
  };
58
+ /**
59
+ * Inline styles for the drawer element.
60
+ * Applied directly to the drawer element.
61
+ */
26
62
  drawerStyle: {
27
63
  type: ObjectConstructor;
28
64
  default: () => {};
29
65
  };
66
+ /**
67
+ * CSS class for the drawer container.
68
+ * Controls the base styling of the drawer.
69
+ */
30
70
  drawerClass: {
31
71
  type: StringConstructor;
32
72
  default: string;
33
73
  };
74
+ /**
75
+ * CSS class for the drawer entrance animation.
76
+ * Overrides the default position-based animation.
77
+ */
34
78
  inClass: {
35
79
  type: StringConstructor;
36
80
  default: string;
37
81
  };
82
+ /**
83
+ * CSS class for the drawer exit animation.
84
+ * Overrides the default position-based animation.
85
+ */
38
86
  outClass: {
39
87
  type: StringConstructor;
40
88
  default: string;
41
89
  };
90
+ /**
91
+ * Whether the drawer should be mounted immediately.
92
+ * Useful for drawers that are always present in the DOM.
93
+ */
42
94
  live: {
43
95
  type: BooleanConstructor;
44
96
  default: boolean;
45
97
  };
98
+ /**
99
+ * Controls the visibility of the drawer (v-model).
100
+ * Supports two-way binding for drawer state.
101
+ */
46
102
  modelValue: {
47
103
  type: BooleanConstructor;
48
104
  default: boolean;
49
105
  };
106
+ /**
107
+ * Accessibility label for the close button.
108
+ * Used by screen readers for better accessibility.
109
+ */
50
110
  closeLabel: {
51
111
  type: StringConstructor;
52
112
  default: string;
53
113
  };
114
+ /**
115
+ * Whether to show the backdrop behind the drawer.
116
+ * When true, displays a semi-transparent overlay.
117
+ */
54
118
  showBackdrop: {
55
119
  type: BooleanConstructor;
56
120
  default: boolean;
57
121
  };
122
+ /**
123
+ * Whether the drawer can be closed by user interaction.
124
+ * Controls close button visibility and backdrop click behavior.
125
+ */
58
126
  enableClose: {
59
127
  type: BooleanConstructor;
60
128
  default: boolean;
61
129
  };
130
+ /**
131
+ * Width of the drawer.
132
+ * Must be a valid CSS width value ending with 'px'.
133
+ * @values 460px, 600px, 800px, etc.
134
+ */
62
135
  width: {
63
136
  type: StringConstructor;
64
137
  default: string;
@@ -80,66 +153,132 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
80
153
  closing(): void;
81
154
  closed(): void;
82
155
  }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "closed" | "before-open" | "opening" | "opened" | "before-close" | "closing")[], "update:modelValue" | "closed" | "before-open" | "opening" | "opened" | "before-close" | "closing", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
156
+ /**
157
+ * Target element to append the drawer to.
158
+ * Usually 'body' for proper z-index stacking.
159
+ */
83
160
  appendTo: {
84
161
  type: StringConstructor;
85
162
  default: string;
86
163
  };
164
+ /**
165
+ * Title displayed in the drawer header.
166
+ * Used for accessibility and visual identification.
167
+ */
87
168
  title: {
88
169
  type: StringConstructor;
89
170
  default: string;
90
171
  };
172
+ /**
173
+ * Whether the drawer content is disabled.
174
+ * Prevents user interaction with drawer content.
175
+ */
91
176
  disabled: {
92
177
  type: BooleanConstructor;
93
178
  default: boolean;
94
179
  };
180
+ /**
181
+ * Error message to display in the drawer.
182
+ * Shows an error alert above the drawer content.
183
+ */
95
184
  errorMsg: {
96
185
  type: StringConstructor;
97
186
  default: string;
98
187
  };
188
+ /**
189
+ * The position of the drawer on the screen.
190
+ * Valid values: 'left', 'right'
191
+ * @values left, right
192
+ */
99
193
  position: {
100
194
  type: StringConstructor;
101
195
  default: string;
102
196
  };
197
+ /**
198
+ * Base z-index for the drawer.
199
+ * Higher values ensure the drawer appears above other content.
200
+ */
103
201
  zIndex: {
104
202
  type: NumberConstructor;
105
203
  default: number;
106
204
  };
205
+ /**
206
+ * Inline styles for the drawer element.
207
+ * Applied directly to the drawer element.
208
+ */
107
209
  drawerStyle: {
108
210
  type: ObjectConstructor;
109
211
  default: () => {};
110
212
  };
213
+ /**
214
+ * CSS class for the drawer container.
215
+ * Controls the base styling of the drawer.
216
+ */
111
217
  drawerClass: {
112
218
  type: StringConstructor;
113
219
  default: string;
114
220
  };
221
+ /**
222
+ * CSS class for the drawer entrance animation.
223
+ * Overrides the default position-based animation.
224
+ */
115
225
  inClass: {
116
226
  type: StringConstructor;
117
227
  default: string;
118
228
  };
229
+ /**
230
+ * CSS class for the drawer exit animation.
231
+ * Overrides the default position-based animation.
232
+ */
119
233
  outClass: {
120
234
  type: StringConstructor;
121
235
  default: string;
122
236
  };
237
+ /**
238
+ * Whether the drawer should be mounted immediately.
239
+ * Useful for drawers that are always present in the DOM.
240
+ */
123
241
  live: {
124
242
  type: BooleanConstructor;
125
243
  default: boolean;
126
244
  };
245
+ /**
246
+ * Controls the visibility of the drawer (v-model).
247
+ * Supports two-way binding for drawer state.
248
+ */
127
249
  modelValue: {
128
250
  type: BooleanConstructor;
129
251
  default: boolean;
130
252
  };
253
+ /**
254
+ * Accessibility label for the close button.
255
+ * Used by screen readers for better accessibility.
256
+ */
131
257
  closeLabel: {
132
258
  type: StringConstructor;
133
259
  default: string;
134
260
  };
261
+ /**
262
+ * Whether to show the backdrop behind the drawer.
263
+ * When true, displays a semi-transparent overlay.
264
+ */
135
265
  showBackdrop: {
136
266
  type: BooleanConstructor;
137
267
  default: boolean;
138
268
  };
269
+ /**
270
+ * Whether the drawer can be closed by user interaction.
271
+ * Controls close button visibility and backdrop click behavior.
272
+ */
139
273
  enableClose: {
140
274
  type: BooleanConstructor;
141
275
  default: boolean;
142
276
  };
277
+ /**
278
+ * Width of the drawer.
279
+ * Must be a valid CSS width value ending with 'px'.
280
+ * @values 460px, 600px, 800px, etc.
281
+ */
143
282
  width: {
144
283
  type: StringConstructor;
145
284
  default: string;
@@ -174,12 +313,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
174
313
  PAlert: {
175
314
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
176
315
  type: {
177
- type: import("vue").PropType<"info" | "error" | "success" | "warning">;
316
+ type: import("vue").PropType<"info" | "warning" | "error" | "success">;
178
317
  default: string;
179
- validator(value: "info" | "error" | "success" | "warning"): boolean;
318
+ validator(value: "info" | "warning" | "error" | "success"): boolean;
180
319
  };
181
- }>> & Readonly<{}>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
182
- type: "info" | "error" | "success" | "warning";
320
+ }>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
321
+ type: "info" | "warning" | "error" | "success";
183
322
  }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
184
323
  P: {};
185
324
  B: {};
@@ -189,29 +328,28 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
189
328
  Defaults: {};
190
329
  }, Readonly<import("vue").ExtractPropTypes<{
191
330
  type: {
192
- type: import("vue").PropType<"info" | "error" | "success" | "warning">;
331
+ type: import("vue").PropType<"info" | "warning" | "error" | "success">;
193
332
  default: string;
194
- validator(value: "info" | "error" | "success" | "warning"): boolean;
333
+ validator(value: "info" | "warning" | "error" | "success"): boolean;
195
334
  };
196
335
  }>> & Readonly<{}>, {}, {}, {}, {}, {
197
- type: "info" | "error" | "success" | "warning";
336
+ type: "info" | "warning" | "error" | "success";
198
337
  }>;
199
338
  __isFragment?: never;
200
339
  __isTeleport?: never;
201
340
  __isSuspense?: never;
202
341
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
203
342
  type: {
204
- type: import("vue").PropType<"info" | "error" | "success" | "warning">;
343
+ type: import("vue").PropType<"info" | "warning" | "error" | "success">;
205
344
  default: string;
206
- validator(value: "info" | "error" | "success" | "warning"): boolean;
345
+ validator(value: "info" | "warning" | "error" | "success"): boolean;
207
346
  };
208
- }>> & Readonly<{}>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
209
- type: "info" | "error" | "success" | "warning";
347
+ }>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
348
+ type: "info" | "warning" | "error" | "success";
210
349
  }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
211
350
  $slots: {
212
- icon?: (props: {}) => any;
213
- } & {
214
- default?: (props: {}) => any;
351
+ icon?: () => unknown;
352
+ default?: () => unknown;
215
353
  };
216
354
  });
217
355
  PCloseBtn: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
@@ -219,7 +357,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
219
357
  type: import("vue").PropType<"transparent" | "gray" | "dark">;
220
358
  default: string;
221
359
  };
222
- }>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
360
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
223
361
  variant: {
224
362
  type: import("vue").PropType<"transparent" | "gray" | "dark">;
225
363
  default: string;
@@ -1,4 +1,11 @@
1
1
  import { type ListKeyboardNavigationInstance } from '../../utils/listKeyboardNavigation';
2
+ /**
3
+ * A dropdown component that extends VDropdown with keyboard navigation and Pequity design system styling.
4
+ * Provides dropdown menu functionality with arrow key navigation, escape key closing, and customizable styling.
5
+ * Supports both dropdown lists and generic popover content with comprehensive accessibility features.
6
+ *
7
+ * @displayName PDropdown
8
+ */
2
9
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
10
  /**
4
11
  * Enables navigation for `.dropdown-item` using the up/down keys.
@@ -10,6 +17,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
10
17
  };
11
18
  /**
12
19
  * Enables closing the dropdown with the Escape key.
20
+ * When true, pressing Escape will close the dropdown.
13
21
  */
14
22
  enableCloseOnEsc: {
15
23
  type: BooleanConstructor;
@@ -17,7 +25,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
17
25
  };
18
26
  /**
19
27
  * v-tooltip wraps the popper trigger with a div that has `display: inline-block` set by default.
20
- * This prop is used to override the CSS style of that wrapper div
28
+ * This prop is used to override the CSS style of that wrapper div.
21
29
  */
22
30
  triggerStyle: {
23
31
  type: ObjectConstructor;
@@ -54,6 +62,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
54
62
  };
55
63
  /**
56
64
  * Enables closing the dropdown with the Escape key.
65
+ * When true, pressing Escape will close the dropdown.
57
66
  */
58
67
  enableCloseOnEsc: {
59
68
  type: BooleanConstructor;
@@ -61,7 +70,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
61
70
  };
62
71
  /**
63
72
  * v-tooltip wraps the popper trigger with a div that has `display: inline-block` set by default.
64
- * This prop is used to override the CSS style of that wrapper div
73
+ * This prop is used to override the CSS style of that wrapper div.
65
74
  */
66
75
  triggerStyle: {
67
76
  type: ObjectConstructor;
@@ -15,6 +15,10 @@ type __VLS_Slots = {
15
15
  }): unknown;
16
16
  };
17
17
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
18
+ /**
19
+ * The selected value(s) for the dropdown (v-model).
20
+ * Can be a single value or array of values depending on multiple prop.
21
+ */
18
22
  modelValue: {
19
23
  type: PropType<ModelValue>;
20
24
  default: null;
@@ -36,18 +40,30 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
36
40
  type: PropType<AnyValue[] | AnyObject[]>;
37
41
  default: () => never[];
38
42
  };
43
+ /**
44
+ * Label text displayed above the dropdown.
45
+ */
39
46
  label: {
40
47
  type: StringConstructor;
41
48
  default: string;
42
49
  };
50
+ /**
51
+ * Error message to display below the dropdown.
52
+ */
43
53
  errorMsg: {
44
54
  type: StringConstructor;
45
55
  default: string;
46
56
  };
57
+ /**
58
+ * Whether the field is required.
59
+ */
47
60
  required: {
48
61
  type: BooleanConstructor;
49
62
  default: boolean;
50
63
  };
64
+ /**
65
+ * The size of the dropdown component.
66
+ */
51
67
  size: {
52
68
  type: PropType<Size>;
53
69
  default: string;
@@ -82,26 +98,44 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
82
98
  type: NumberConstructor;
83
99
  default: number;
84
100
  };
101
+ /**
102
+ * Additional attributes to apply to the dropdown menu.
103
+ */
85
104
  dropdownMenuAttrs: {
86
105
  type: ObjectConstructor;
87
106
  default: () => {};
88
107
  };
108
+ /**
109
+ * CSS classes to apply to the dropdown menu.
110
+ */
89
111
  dropdownMenuClass: {
90
112
  type: StringConstructor;
91
113
  default: string;
92
114
  };
115
+ /**
116
+ * Inline styles to apply to the dropdown menu.
117
+ */
93
118
  dropdownMenuStyle: {
94
119
  type: ObjectConstructor;
95
120
  default: () => {};
96
121
  };
122
+ /**
123
+ * Props to pass to the underlying PDropdown component.
124
+ */
97
125
  pDropdownProps: {
98
126
  type: ObjectConstructor;
99
127
  default: () => {};
100
128
  };
129
+ /**
130
+ * Whether to enable search functionality within the dropdown.
131
+ */
101
132
  searchable: {
102
133
  type: BooleanConstructor;
103
134
  default: boolean;
104
135
  };
136
+ /**
137
+ * Whether to show a clear button when items are selected.
138
+ */
105
139
  clearable: {
106
140
  type: BooleanConstructor;
107
141
  default: boolean;
@@ -155,11 +189,15 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
155
189
  type: BooleanConstructor;
156
190
  default: boolean;
157
191
  };
158
- }>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
192
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
159
193
  select: (...args: any[]) => void;
160
194
  "update:modelValue": (...args: any[]) => void;
161
195
  create: (...args: any[]) => void;
162
196
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
197
+ /**
198
+ * The selected value(s) for the dropdown (v-model).
199
+ * Can be a single value or array of values depending on multiple prop.
200
+ */
163
201
  modelValue: {
164
202
  type: PropType<ModelValue>;
165
203
  default: null;
@@ -181,18 +219,30 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
181
219
  type: PropType<AnyValue[] | AnyObject[]>;
182
220
  default: () => never[];
183
221
  };
222
+ /**
223
+ * Label text displayed above the dropdown.
224
+ */
184
225
  label: {
185
226
  type: StringConstructor;
186
227
  default: string;
187
228
  };
229
+ /**
230
+ * Error message to display below the dropdown.
231
+ */
188
232
  errorMsg: {
189
233
  type: StringConstructor;
190
234
  default: string;
191
235
  };
236
+ /**
237
+ * Whether the field is required.
238
+ */
192
239
  required: {
193
240
  type: BooleanConstructor;
194
241
  default: boolean;
195
242
  };
243
+ /**
244
+ * The size of the dropdown component.
245
+ */
196
246
  size: {
197
247
  type: PropType<Size>;
198
248
  default: string;
@@ -227,26 +277,44 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
227
277
  type: NumberConstructor;
228
278
  default: number;
229
279
  };
280
+ /**
281
+ * Additional attributes to apply to the dropdown menu.
282
+ */
230
283
  dropdownMenuAttrs: {
231
284
  type: ObjectConstructor;
232
285
  default: () => {};
233
286
  };
287
+ /**
288
+ * CSS classes to apply to the dropdown menu.
289
+ */
234
290
  dropdownMenuClass: {
235
291
  type: StringConstructor;
236
292
  default: string;
237
293
  };
294
+ /**
295
+ * Inline styles to apply to the dropdown menu.
296
+ */
238
297
  dropdownMenuStyle: {
239
298
  type: ObjectConstructor;
240
299
  default: () => {};
241
300
  };
301
+ /**
302
+ * Props to pass to the underlying PDropdown component.
303
+ */
242
304
  pDropdownProps: {
243
305
  type: ObjectConstructor;
244
306
  default: () => {};
245
307
  };
308
+ /**
309
+ * Whether to enable search functionality within the dropdown.
310
+ */
246
311
  searchable: {
247
312
  type: BooleanConstructor;
248
313
  default: boolean;
249
314
  };
315
+ /**
316
+ * Whether to show a clear button when items are selected.
317
+ */
250
318
  clearable: {
251
319
  type: BooleanConstructor;
252
320
  default: boolean;
@@ -306,13 +374,13 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
306
374
  onCreate?: ((...args: any[]) => any) | undefined;
307
375
  }>, {
308
376
  size: "sm" | "md" | "lg";
377
+ placeholder: string;
309
378
  label: string;
310
379
  required: boolean;
311
380
  modelValue: ModelValue;
312
381
  items: AnyValue[] | AnyObject[];
313
382
  itemText: string;
314
383
  errorMsg: string;
315
- placeholder: string;
316
384
  clearable: boolean;
317
385
  valueIsObject: boolean;
318
386
  itemValue: string | number;