@pequity/squirrel 8.4.4 → 8.4.5

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 (151) hide show
  1. package/README.md +2 -1
  2. package/dist/cjs/chunks/p-alert.js +3 -0
  3. package/dist/cjs/chunks/p-avatar.js +16 -0
  4. package/dist/cjs/chunks/p-btn.js +3 -0
  5. package/dist/cjs/chunks/p-card.js +4 -0
  6. package/dist/cjs/chunks/p-dropdown-select.js +34 -0
  7. package/dist/cjs/chunks/p-input-number.js +32 -0
  8. package/dist/cjs/chunks/p-input-percent.js +13 -2
  9. package/dist/cjs/chunks/p-input.js +28 -0
  10. package/dist/cjs/chunks/p-pagination-info.js +9 -5
  11. package/dist/cjs/chunks/p-pagination.js +23 -13
  12. package/dist/cjs/chunks/p-select-btn.js +2 -1
  13. package/dist/cjs/chunks/p-select.js +33 -0
  14. package/dist/cjs/chunks/p-table-loader.js +20 -0
  15. package/dist/cjs/chunks/p-tabs.js +12 -0
  16. package/dist/cjs/chunks/p-textarea.js +20 -0
  17. package/dist/cjs/index.js +40 -3
  18. package/dist/cjs/p-checkbox.js +8 -1
  19. package/dist/cjs/p-chips.js +17 -1
  20. package/dist/cjs/p-close-btn.js +6 -1
  21. package/dist/cjs/p-drawer.js +90 -2
  22. package/dist/cjs/p-dropdown.js +2 -1
  23. package/dist/cjs/p-input-search.js +13 -1
  24. package/dist/cjs/p-loading.js +1 -1
  25. package/dist/cjs/p-modal.js +82 -2
  26. package/dist/cjs/p-select-pill.js +36 -2
  27. package/dist/cjs/p-skeleton-loader.js +17 -1
  28. package/dist/cjs/p-table-filter-icon.js +4 -1
  29. package/dist/cjs/p-table-header-cell.js +29 -0
  30. package/dist/cjs/p-table-td.js +1 -1
  31. package/dist/cjs/p-toggle.js +22 -1
  32. package/dist/es/chunks/p-alert.js +3 -0
  33. package/dist/es/chunks/p-avatar.js +16 -0
  34. package/dist/es/chunks/p-btn.js +3 -0
  35. package/dist/es/chunks/p-card.js +4 -0
  36. package/dist/es/chunks/p-dropdown-select.js +34 -0
  37. package/dist/es/chunks/p-input-number.js +32 -0
  38. package/dist/es/chunks/p-input-percent.js +13 -2
  39. package/dist/es/chunks/p-input.js +28 -0
  40. package/dist/es/chunks/p-pagination-info.js +9 -5
  41. package/dist/es/chunks/p-pagination.js +24 -14
  42. package/dist/es/chunks/p-select-btn.js +2 -1
  43. package/dist/es/chunks/p-select.js +33 -0
  44. package/dist/es/chunks/p-table-loader.js +20 -0
  45. package/dist/es/chunks/p-tabs.js +12 -0
  46. package/dist/es/chunks/p-textarea.js +20 -0
  47. package/dist/es/index.js +40 -3
  48. package/dist/es/p-checkbox.js +8 -1
  49. package/dist/es/p-chips.js +17 -1
  50. package/dist/es/p-close-btn.js +6 -1
  51. package/dist/es/p-drawer.js +90 -2
  52. package/dist/es/p-dropdown.js +2 -1
  53. package/dist/es/p-input-search.js +13 -1
  54. package/dist/es/p-loading.js +1 -1
  55. package/dist/es/p-modal.js +82 -2
  56. package/dist/es/p-select-pill.js +36 -2
  57. package/dist/es/p-skeleton-loader.js +17 -1
  58. package/dist/es/p-table-filter-icon.js +4 -1
  59. package/dist/es/p-table-header-cell.js +29 -0
  60. package/dist/es/p-table-td.js +1 -1
  61. package/dist/es/p-toggle.js +22 -1
  62. package/dist/squirrel/components/p-action-bar/p-action-bar.vue.d.ts +14 -2
  63. package/dist/squirrel/components/p-alert/p-alert.vue.d.ts +16 -3
  64. package/dist/squirrel/components/p-avatar/p-avatar.vue.d.ts +35 -0
  65. package/dist/squirrel/components/p-btn/p-btn.vue.d.ts +18 -2
  66. package/dist/squirrel/components/p-card/p-card.vue.d.ts +20 -7
  67. package/dist/squirrel/components/p-checkbox/p-checkbox.vue.d.ts +25 -7
  68. package/dist/squirrel/components/p-chips/p-chips.vue.d.ts +24 -0
  69. package/dist/squirrel/components/p-close-btn/p-close-btn.vue.d.ts +13 -0
  70. package/dist/squirrel/components/p-date-picker/p-date-picker.vue.d.ts +16 -0
  71. package/dist/squirrel/components/p-drawer/p-drawer.vue.d.ts +141 -3
  72. package/dist/squirrel/components/p-dropdown/p-dropdown.vue.d.ts +11 -2
  73. package/dist/squirrel/components/p-dropdown-select/p-dropdown-select.vue.d.ts +69 -1
  74. package/dist/squirrel/components/p-file-upload/p-file-upload.vue.d.ts +70 -6
  75. package/dist/squirrel/components/p-icon/p-icon.vue.d.ts +4 -0
  76. package/dist/squirrel/components/p-info-icon/p-info-icon.vue.d.ts +11 -4
  77. package/dist/squirrel/components/p-inline-date-picker/p-inline-date-picker.vue.d.ts +27 -7
  78. package/dist/squirrel/components/p-input/p-input.vue.d.ts +73 -8
  79. package/dist/squirrel/components/p-input-number/p-input-number.vue.d.ts +83 -12
  80. package/dist/squirrel/components/p-input-percent/p-input-percent.vue.d.ts +22 -2
  81. package/dist/squirrel/components/p-input-search/p-input-search.vue.d.ts +24 -0
  82. package/dist/squirrel/components/p-modal/p-modal.vue.d.ts +185 -15
  83. package/dist/squirrel/components/p-pagination/p-pagination.vue.d.ts +22 -12
  84. package/dist/squirrel/components/p-pagination-info/p-pagination-info.vue.d.ts +16 -8
  85. package/dist/squirrel/components/p-progress-bar/p-progress-bar.vue.d.ts +20 -0
  86. package/dist/squirrel/components/p-ring-loader/p-ring-loader.vue.d.ts +10 -0
  87. package/dist/squirrel/components/p-select/p-select.vue.d.ts +76 -6
  88. package/dist/squirrel/components/p-select-btn/p-select-btn.vue.d.ts +67 -10
  89. package/dist/squirrel/components/p-select-list/p-select-list.vue.d.ts +1 -1
  90. package/dist/squirrel/components/p-select-pill/p-select-pill.vue.d.ts +72 -2
  91. package/dist/squirrel/components/p-skeleton-loader/p-skeleton-loader.vue.d.ts +40 -0
  92. package/dist/squirrel/components/p-steps/p-steps.vue.d.ts +12 -0
  93. package/dist/squirrel/components/p-table/p-table.vue.d.ts +32 -0
  94. package/dist/squirrel/components/p-table-header-cell/p-table-filter-icon.vue.d.ts +6 -0
  95. package/dist/squirrel/components/p-table-header-cell/p-table-header-cell.vue.d.ts +56 -1
  96. package/dist/squirrel/components/p-table-loader/p-table-loader.vue.d.ts +40 -0
  97. package/dist/squirrel/components/p-table-sort/p-table-sort.vue.d.ts +12 -2
  98. package/dist/squirrel/components/p-table-td/p-table-td.vue.d.ts +12 -0
  99. package/dist/squirrel/components/p-tabs/p-tabs.vue.d.ts +33 -2
  100. package/dist/squirrel/components/p-tabs-pills/p-tabs-pills.vue.d.ts +22 -0
  101. package/dist/squirrel/components/p-textarea/p-textarea.vue.d.ts +52 -8
  102. package/dist/squirrel/components/p-toggle/p-toggle.vue.d.ts +50 -3
  103. package/dist/squirrel.css +68 -68
  104. package/package.json +15 -15
  105. package/squirrel/components/p-action-bar/p-action-bar.stories.js +5 -5
  106. package/squirrel/components/p-action-bar/p-action-bar.vue +30 -3
  107. package/squirrel/components/p-alert/p-alert.vue +24 -0
  108. package/squirrel/components/p-avatar/p-avatar.vue +28 -0
  109. package/squirrel/components/p-btn/p-btn.vue +35 -0
  110. package/squirrel/components/p-card/p-card.vue +24 -1
  111. package/squirrel/components/p-checkbox/p-checkbox.vue +23 -1
  112. package/squirrel/components/p-chips/p-chips.vue +24 -0
  113. package/squirrel/components/p-close-btn/p-close-btn.vue +15 -0
  114. package/squirrel/components/p-date-picker/p-date-picker.vue +23 -1
  115. package/squirrel/components/p-drawer/p-drawer.vue +95 -0
  116. package/squirrel/components/p-dropdown/p-dropdown.vue +12 -1
  117. package/squirrel/components/p-dropdown-select/p-dropdown-select.vue +41 -0
  118. package/squirrel/components/p-file-upload/p-file-upload.vue +58 -3
  119. package/squirrel/components/p-icon/p-icon.vue +16 -0
  120. package/squirrel/components/p-info-icon/p-info-icon.vue +19 -0
  121. package/squirrel/components/p-inline-date-picker/p-inline-date-picker.vue +32 -0
  122. package/squirrel/components/p-input/p-input.vue +61 -1
  123. package/squirrel/components/p-input-number/p-input-number.vue +78 -1
  124. package/squirrel/components/p-input-percent/p-input-percent.vue +27 -3
  125. package/squirrel/components/p-input-search/p-input-search.vue +30 -2
  126. package/squirrel/components/p-link/p-link.vue +13 -0
  127. package/squirrel/components/p-loading/p-loading.vue +9 -2
  128. package/squirrel/components/p-modal/p-modal.vue +138 -2
  129. package/squirrel/components/p-pagination/p-pagination.vue +28 -8
  130. package/squirrel/components/p-pagination-info/p-pagination-info.vue +16 -4
  131. package/squirrel/components/p-progress-bar/p-progress-bar.vue +31 -4
  132. package/squirrel/components/p-ring-loader/p-ring-loader.vue +17 -0
  133. package/squirrel/components/p-select/p-select.vue +50 -1
  134. package/squirrel/components/p-select-btn/p-select-btn.vue +90 -2
  135. package/squirrel/components/p-select-list/p-select-list.vue +7 -0
  136. package/squirrel/components/p-select-pill/p-select-pill.vue +52 -2
  137. package/squirrel/components/p-skeleton-loader/p-skeleton-loader.vue +24 -0
  138. package/squirrel/components/p-steps/p-steps.vue +25 -0
  139. package/squirrel/components/p-table/p-table.vue +39 -0
  140. package/squirrel/components/p-table-header-cell/p-table-filter-icon.vue +9 -0
  141. package/squirrel/components/p-table-header-cell/p-table-header-cell.vue +36 -0
  142. package/squirrel/components/p-table-loader/p-table-loader.vue +28 -0
  143. package/squirrel/components/p-table-sort/p-table-sort.vue +19 -1
  144. package/squirrel/components/p-table-td/p-table-td.vue +20 -0
  145. package/squirrel/components/p-tabs/p-tabs.stories.js +2 -2
  146. package/squirrel/components/p-tabs/p-tabs.vue +33 -1
  147. package/squirrel/components/p-tabs-pills/p-tabs-pills.vue +33 -0
  148. package/squirrel/components/p-textarea/p-textarea.vue +43 -1
  149. package/squirrel/components/p-toggle/p-toggle.vue +44 -1
  150. package/squirrel/assets/pagination-left-icon.svg +0 -5
  151. package/squirrel/assets/pagination-right-icon.svg +0 -5
@@ -3,6 +3,9 @@ import PIcon from '../p-icon/p-icon.vue';
3
3
  import { type VariantProps } from 'tailwind-variants';
4
4
  import { type PropType } from 'vue';
5
5
  import { type RouteLocationRaw } from 'vue-router';
6
+ /**
7
+ * Type for the icon prop
8
+ */
6
9
  type Icon = InstanceType<typeof PIcon>['$props']['icon'];
7
10
  declare const btn: import("tailwind-variants").TVReturnType<{
8
11
  readonly type: {
@@ -212,6 +215,9 @@ declare const btn: import("tailwind-variants").TVReturnType<{
212
215
  readonly loader: "absolute bottom-0 left-0 right-0 top-0 flex items-center justify-center font-medium";
213
216
  readonly icon: "shrink-0";
214
217
  }, undefined, unknown, unknown, undefined>>;
218
+ /**
219
+ * Native button types (HTML attribute values)
220
+ */
215
221
  declare const BUTTON_NATIVE_TYPES: readonly ["button", "submit", "reset"];
216
222
  type ButtonNativeType = (typeof BUTTON_NATIVE_TYPES)[number];
217
223
  type ButtonType = NonNullable<VariantProps<typeof btn>['type']>;
@@ -269,6 +275,9 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<import("vu
269
275
  type: PropType<Icon>;
270
276
  default: string;
271
277
  };
278
+ /**
279
+ * The icon to display on the right side of the button
280
+ */
272
281
  iconRight: {
273
282
  type: PropType<Icon>;
274
283
  default: string;
@@ -327,21 +336,28 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<import("vu
327
336
  type: PropType<Icon>;
328
337
  default: string;
329
338
  };
339
+ /**
340
+ * The icon to display on the right side of the button
341
+ */
330
342
  iconRight: {
331
343
  type: PropType<Icon>;
332
344
  default: string;
333
345
  };
334
346
  }>> & Readonly<{}>, {
335
347
  icon: "delete" | "edit" | "send" | "settings" | "empty" | "chevron-left" | "chevron-right" | "chevron-up" | "chevron-down" | "ok-circle" | "cancel-circle" | "ok" | "cancel" | "ok-bold" | "cancel-bold" | "archive" | "lock" | "drag-horizontal" | "email" | "location" | "calendar" | "save" | "copy" | "plus" | "add" | "more" | "filters" | "bar-chart" | "list" | "formula" | "refresh" | "download" | "upload" | "info" | "help" | "search" | (string & {});
336
- type: ButtonType;
337
348
  size: "sm" | "md" | "lg";
349
+ type: ButtonType;
338
350
  nativeType: "button" | "submit" | "reset";
339
351
  loading: boolean;
340
352
  selected: boolean;
341
353
  to: string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric;
342
354
  iconRight: "delete" | "edit" | "send" | "settings" | "empty" | "chevron-left" | "chevron-right" | "chevron-up" | "chevron-down" | "ok-circle" | "cancel-circle" | "ok" | "cancel" | "ok-bold" | "cancel-bold" | "archive" | "lock" | "drag-horizontal" | "email" | "location" | "calendar" | "save" | "copy" | "plus" | "add" | "more" | "filters" | "bar-chart" | "list" | "formula" | "refresh" | "download" | "upload" | "info" | "help" | "search" | (string & {});
343
355
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
344
- default?: (props: {}) => any;
356
+ /**
357
+ * Default slot - the content of the button.
358
+ * This should contain the text or HTML to display inside the button.
359
+ */
360
+ default?: () => void;
345
361
  }>;
346
362
  export default _default;
347
363
  type __VLS_WithSlots<T, S> = T & {
@@ -1,17 +1,30 @@
1
- declare var __VLS_1: {
2
- titleClass: "text-xl font-medium leading-none text-p-purple-60";
3
- }, __VLS_3: {};
4
- type __VLS_Slots = {} & {
5
- title?: (props: typeof __VLS_1) => any;
6
- } & {
7
- default?: (props: typeof __VLS_3) => any;
1
+ type __VLS_Slots = {
2
+ /**
3
+ * Title slot - custom content for the card title.
4
+ * Receives the titleClass prop for consistent styling.
5
+ */
6
+ title?: (props: {
7
+ titleClass: string;
8
+ }) => void;
9
+ /**
10
+ * Default slot - the main content of the card.
11
+ */
12
+ default?: () => void;
8
13
  };
9
14
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
15
+ /**
16
+ * The title of the card - displayed at the top
17
+ * If not provided, you can use the title slot instead
18
+ */
10
19
  title: {
11
20
  type: StringConstructor;
12
21
  default: string;
13
22
  };
14
23
  }>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
24
+ /**
25
+ * The title of the card - displayed at the top
26
+ * If not provided, you can use the title slot instead
27
+ */
15
28
  title: {
16
29
  type: StringConstructor;
17
30
  default: string;
@@ -1,31 +1,49 @@
1
- declare var __VLS_1: {}, __VLS_3: {};
2
- type __VLS_Slots = {} & {
3
- 'label-before'?: (props: typeof __VLS_1) => any;
4
- } & {
5
- label?: (props: typeof __VLS_3) => any;
1
+ type __VLS_Slots = {
2
+ /**
3
+ * Content displayed before the checkbox
4
+ */
5
+ 'label-before'?: () => void;
6
+ /**
7
+ * Custom label content - overrides the label prop
8
+ */
9
+ label?: () => void;
6
10
  };
7
11
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
12
+ /**
13
+ * The checked state of the checkbox (v-model)
14
+ */
8
15
  modelValue: {
9
16
  type: BooleanConstructor;
10
17
  default: boolean;
11
18
  };
19
+ /**
20
+ * Text label for the checkbox
21
+ * Ignored if using the label slot
22
+ */
12
23
  label: {
13
24
  type: StringConstructor;
14
25
  default: string;
15
26
  };
16
27
  }>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
- "update:modelValue": (...args: any[]) => void;
28
+ "update:modelValue": (val: boolean) => any;
18
29
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
30
+ /**
31
+ * The checked state of the checkbox (v-model)
32
+ */
19
33
  modelValue: {
20
34
  type: BooleanConstructor;
21
35
  default: boolean;
22
36
  };
37
+ /**
38
+ * Text label for the checkbox
39
+ * Ignored if using the label slot
40
+ */
23
41
  label: {
24
42
  type: StringConstructor;
25
43
  default: string;
26
44
  };
27
45
  }>> & Readonly<{
28
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
46
+ "onUpdate:modelValue"?: ((val: boolean) => any) | undefined;
29
47
  }>, {
30
48
  label: string;
31
49
  modelValue: boolean;
@@ -1,8 +1,24 @@
1
+ /**
2
+ * A chips component that displays a horizontal list of items with overflow handling.
3
+ * Automatically calculates how many chips can fit in the available space and shows
4
+ * an overflow indicator when there are more items than can be displayed.
5
+ * Supports custom item text properties and before/after slot content.
6
+ *
7
+ * @displayName PChips
8
+ */
1
9
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
10
+ /**
11
+ * Array of items to display as chips.
12
+ * Can be strings or objects with a text property.
13
+ */
2
14
  items: {
3
15
  type: ArrayConstructor;
4
16
  default: () => never[];
5
17
  };
18
+ /**
19
+ * Property name to use as the item display text.
20
+ * Used when items are objects to extract the text value.
21
+ */
6
22
  itemText: {
7
23
  type: StringConstructor;
8
24
  default: string;
@@ -13,10 +29,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
13
29
  resizeFilterChips(): void;
14
30
  getItemText<T>(item: T): "" | (T & string) | (T & object)[keyof T];
15
31
  }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click:chip" | "click:overflow")[], "click:chip" | "click:overflow", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
32
+ /**
33
+ * Array of items to display as chips.
34
+ * Can be strings or objects with a text property.
35
+ */
16
36
  items: {
17
37
  type: ArrayConstructor;
18
38
  default: () => never[];
19
39
  };
40
+ /**
41
+ * Property name to use as the item display text.
42
+ * Used when items are objects to extract the text value.
43
+ */
20
44
  itemText: {
21
45
  type: StringConstructor;
22
46
  default: string;
@@ -1,11 +1,24 @@
1
1
  import { type PropType } from 'vue';
2
+ /**
3
+ * Available visual variants for the close button.
4
+ */
2
5
  type Variant = 'transparent' | 'gray' | 'dark';
3
6
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
7
+ /**
8
+ * The visual variant of the close button.
9
+ * Controls the background color and hover effects.
10
+ * Valid values: 'transparent', 'gray', 'dark'
11
+ */
4
12
  variant: {
5
13
  type: PropType<Variant>;
6
14
  default: string;
7
15
  };
8
16
  }>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
17
+ /**
18
+ * The visual variant of the close button.
19
+ * Controls the background color and hover effects.
20
+ * Valid values: 'transparent', 'gray', 'dark'
21
+ */
9
22
  variant: {
10
23
  type: PropType<Variant>;
11
24
  default: string;
@@ -1,11 +1,27 @@
1
1
  import { type VueDatePickerProps } from '@vuepic/vue-datepicker';
2
2
  type Props = {
3
+ /**
4
+ * Text label for the date picker field.
5
+ * Passed to the underlying PInput component.
6
+ */
3
7
  label?: string;
8
+ /**
9
+ * Error message to display below the date picker.
10
+ * Passed to the underlying PInput component and shows error styling.
11
+ */
4
12
  errorMsg?: string;
13
+ /**
14
+ * Whether the date picker is required.
15
+ * Passed to the underlying PInput component and adds visual indicator.
16
+ */
5
17
  required?: boolean;
6
18
  } & VueDatePickerProps;
7
19
  type __VLS_Props = Props;
8
20
  type __VLS_PublicProps = __VLS_Props & {
21
+ /**
22
+ * The selected date value (v-model).
23
+ * Supports two-way binding for form inputs.
24
+ */
9
25
  modelValue?: Date | string | null;
10
26
  };
11
27
  declare const _default: import("vue").DefineComponent<__VLS_PublicProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -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;
@@ -209,9 +348,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
209
348
  type: "info" | "error" | "success" | "warning";
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<{
@@ -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;