@pine-ds/core 4.7.1 → 4.8.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 (233) hide show
  1. package/components/pds-avatar.js +1 -1
  2. package/components/pds-button2.js +1 -1
  3. package/components/pds-checkbox2.js +1 -1
  4. package/components/pds-chip2.js +1 -1
  5. package/components/pds-combobox.js +1 -1
  6. package/components/pds-drawer.js +1 -1
  7. package/components/pds-dropdown-menu-item.js +1 -1
  8. package/components/pds-dropdown-menu.js +1 -1
  9. package/components/pds-modal-content.js +1 -1
  10. package/components/pds-modal2.js +1 -1
  11. package/components/pds-multiselect.js +1 -1
  12. package/components/pds-popover.js +1 -1
  13. package/components/pds-radio-group.js +1 -1
  14. package/components/pds-radio.js +1 -1
  15. package/components/pds-switch.js +1 -1
  16. package/components/pds-table-head-cell2.js +1 -1
  17. package/components/pds-textarea.js +1 -1
  18. package/components/pds-toast.js +1 -1
  19. package/components/truncation-tooltip.js +1 -1
  20. package/dist/cjs/{index-5Azb8EQG.js → index-Do70atou.js} +1 -1
  21. package/dist/cjs/loader.cjs.js +1 -1
  22. package/dist/cjs/pds-accordion.cjs.entry.js +1 -1
  23. package/dist/cjs/pds-avatar.cjs.entry.js +3 -3
  24. package/dist/cjs/pds-button.cjs.entry.js +24 -21
  25. package/dist/cjs/pds-checkbox.cjs.entry.js +2 -2
  26. package/dist/cjs/pds-chip.cjs.entry.js +4 -4
  27. package/dist/cjs/pds-combobox.cjs.entry.js +4 -4
  28. package/dist/cjs/pds-copytext.cjs.entry.js +2 -2
  29. package/dist/cjs/pds-datepicker.cjs.entry.js +1 -1
  30. package/dist/cjs/pds-drawer.cjs.entry.js +1 -1
  31. package/dist/cjs/pds-dropdown-menu-item.cjs.entry.js +31 -2
  32. package/dist/cjs/pds-dropdown-menu.cjs.entry.js +4 -4
  33. package/dist/cjs/pds-filter.cjs.entry.js +1 -1
  34. package/dist/cjs/pds-input.cjs.entry.js +1 -1
  35. package/dist/cjs/pds-link.cjs.entry.js +1 -1
  36. package/dist/cjs/pds-modal-content.cjs.entry.js +32 -30
  37. package/dist/cjs/pds-modal.cjs.entry.js +4 -4
  38. package/dist/cjs/pds-multiselect.cjs.entry.js +6 -6
  39. package/dist/cjs/pds-popover.cjs.entry.js +187 -11
  40. package/dist/cjs/pds-radio-group.cjs.entry.js +2 -2
  41. package/dist/cjs/pds-radio.cjs.entry.js +3 -3
  42. package/dist/cjs/pds-select.cjs.entry.js +1 -1
  43. package/dist/cjs/pds-sortable-item.cjs.entry.js +1 -1
  44. package/dist/cjs/pds-switch.cjs.entry.js +2 -2
  45. package/dist/cjs/pds-table-cell.cjs.entry.js +1 -1
  46. package/dist/cjs/pds-table-head-cell.cjs.entry.js +2 -2
  47. package/dist/cjs/pds-text.cjs.entry.js +1 -1
  48. package/dist/cjs/pds-textarea.cjs.entry.js +2 -2
  49. package/dist/cjs/pds-toast.cjs.entry.js +1 -1
  50. package/dist/cjs/pine-core.cjs.js +1 -1
  51. package/dist/cjs/{truncation-tooltip-DO9xli2e.js → truncation-tooltip-BtuiXLV0.js} +31 -6
  52. package/dist/collection/components/pds-avatar/pds-avatar.js +2 -2
  53. package/dist/collection/components/pds-button/pds-button.js +24 -22
  54. package/dist/collection/components/pds-button/stories/pds-button.stories.js +3 -3
  55. package/dist/collection/components/pds-checkbox/pds-checkbox.js +1 -1
  56. package/dist/collection/components/pds-chip/pds-chip.js +2 -2
  57. package/dist/collection/components/pds-combobox/pds-combobox.js +4 -4
  58. package/dist/collection/components/pds-datepicker/stories/pds-datepicker.stories.js +1 -1
  59. package/dist/collection/components/pds-drawer/pds-drawer.css +4 -0
  60. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.css +8 -0
  61. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.js +58 -6
  62. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu.js +4 -4
  63. package/dist/collection/components/pds-dropdown-menu/stories/pds-dropdown-menu.stories.js +39 -0
  64. package/dist/collection/components/pds-modal/pds-modal-content/pds-modal-content.js +32 -30
  65. package/dist/collection/components/pds-modal/pds-modal.js +4 -4
  66. package/dist/collection/components/pds-multiselect/pds-multiselect.js +5 -5
  67. package/dist/collection/components/pds-popover/pds-popover.js +240 -11
  68. package/dist/collection/components/pds-popover/stories/pds-popover.stories.js +31 -0
  69. package/dist/collection/components/pds-radio/pds-radio.js +2 -2
  70. package/dist/collection/components/pds-radio-group/pds-radio-group.js +1 -1
  71. package/dist/collection/components/pds-switch/pds-switch.js +1 -1
  72. package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js +1 -1
  73. package/dist/collection/components/pds-table/stories/pds-table.stories.js +1 -1
  74. package/dist/collection/components/pds-text/stories/pds-text.stories.js +1 -1
  75. package/dist/collection/components/pds-textarea/pds-textarea.js +1 -1
  76. package/dist/collection/components/pds-toast/pds-toast.js +1 -1
  77. package/dist/collection/utils/truncation-tooltip.js +31 -6
  78. package/dist/docs.json +124 -7
  79. package/dist/esm/{index-BJXk71tO.js → index-BWDu62Mo.js} +1 -1
  80. package/dist/esm/loader.js +1 -1
  81. package/dist/esm/pds-accordion.entry.js +1 -1
  82. package/dist/esm/pds-avatar.entry.js +3 -3
  83. package/dist/esm/pds-button.entry.js +24 -21
  84. package/dist/esm/pds-checkbox.entry.js +2 -2
  85. package/dist/esm/pds-chip.entry.js +4 -4
  86. package/dist/esm/pds-combobox.entry.js +4 -4
  87. package/dist/esm/pds-copytext.entry.js +2 -2
  88. package/dist/esm/pds-datepicker.entry.js +1 -1
  89. package/dist/esm/pds-drawer.entry.js +1 -1
  90. package/dist/esm/pds-dropdown-menu-item.entry.js +31 -2
  91. package/dist/esm/pds-dropdown-menu.entry.js +4 -4
  92. package/dist/esm/pds-filter.entry.js +1 -1
  93. package/dist/esm/pds-input.entry.js +1 -1
  94. package/dist/esm/pds-link.entry.js +1 -1
  95. package/dist/esm/pds-modal-content.entry.js +32 -30
  96. package/dist/esm/pds-modal.entry.js +4 -4
  97. package/dist/esm/pds-multiselect.entry.js +6 -6
  98. package/dist/esm/pds-popover.entry.js +187 -11
  99. package/dist/esm/pds-radio-group.entry.js +2 -2
  100. package/dist/esm/pds-radio.entry.js +3 -3
  101. package/dist/esm/pds-select.entry.js +1 -1
  102. package/dist/esm/pds-sortable-item.entry.js +1 -1
  103. package/dist/esm/pds-switch.entry.js +2 -2
  104. package/dist/esm/pds-table-cell.entry.js +1 -1
  105. package/dist/esm/pds-table-head-cell.entry.js +2 -2
  106. package/dist/esm/pds-text.entry.js +1 -1
  107. package/dist/esm/pds-textarea.entry.js +2 -2
  108. package/dist/esm/pds-toast.entry.js +1 -1
  109. package/dist/esm/pine-core.js +1 -1
  110. package/dist/esm/{truncation-tooltip-DRXsdKk1.js → truncation-tooltip-FaW67DiY.js} +31 -6
  111. package/dist/esm-es5/loader.js +1 -1
  112. package/dist/esm-es5/pds-accordion.entry.js +1 -1
  113. package/dist/esm-es5/pds-avatar.entry.js +1 -1
  114. package/dist/esm-es5/pds-button.entry.js +1 -1
  115. package/dist/esm-es5/pds-checkbox.entry.js +1 -1
  116. package/dist/esm-es5/pds-chip.entry.js +1 -1
  117. package/dist/esm-es5/pds-combobox.entry.js +1 -1
  118. package/dist/esm-es5/pds-copytext.entry.js +1 -1
  119. package/dist/esm-es5/pds-datepicker.entry.js +1 -1
  120. package/dist/esm-es5/pds-drawer.entry.js +1 -1
  121. package/dist/esm-es5/pds-dropdown-menu-item.entry.js +1 -1
  122. package/dist/esm-es5/pds-dropdown-menu.entry.js +1 -1
  123. package/dist/esm-es5/pds-filter.entry.js +1 -1
  124. package/dist/esm-es5/pds-input.entry.js +1 -1
  125. package/dist/esm-es5/pds-link.entry.js +1 -1
  126. package/dist/esm-es5/pds-modal-content.entry.js +1 -1
  127. package/dist/esm-es5/pds-modal.entry.js +1 -1
  128. package/dist/esm-es5/pds-multiselect.entry.js +1 -1
  129. package/dist/esm-es5/pds-popover.entry.js +1 -1
  130. package/dist/esm-es5/pds-radio-group.entry.js +1 -1
  131. package/dist/esm-es5/pds-radio.entry.js +1 -1
  132. package/dist/esm-es5/pds-select.entry.js +1 -1
  133. package/dist/esm-es5/pds-sortable-item.entry.js +1 -1
  134. package/dist/esm-es5/pds-switch.entry.js +1 -1
  135. package/dist/esm-es5/pds-table-cell.entry.js +1 -1
  136. package/dist/esm-es5/pds-table-head-cell.entry.js +1 -1
  137. package/dist/esm-es5/pds-text.entry.js +1 -1
  138. package/dist/esm-es5/pds-textarea.entry.js +1 -1
  139. package/dist/esm-es5/pds-toast.entry.js +1 -1
  140. package/dist/esm-es5/pine-core.js +1 -1
  141. package/dist/esm-es5/truncation-tooltip-FaW67DiY.js +1 -0
  142. package/dist/pine-core/{p-e836f3ec.system.entry.js → p-00a50de5.system.entry.js} +2 -2
  143. package/dist/pine-core/{p-1437585e.system.entry.js → p-047433a4.system.entry.js} +1 -1
  144. package/dist/pine-core/{p-7fa66cad.entry.js → p-089c3e60.entry.js} +1 -1
  145. package/dist/pine-core/{p-341c38f1.system.entry.js → p-0af0d752.system.entry.js} +1 -1
  146. package/dist/pine-core/{p-3a959459.system.entry.js → p-121612a7.system.entry.js} +1 -1
  147. package/dist/pine-core/{p-cde8eb81.entry.js → p-138b278b.entry.js} +1 -1
  148. package/dist/pine-core/{p-cfd012d4.entry.js → p-158b2f51.entry.js} +1 -1
  149. package/dist/pine-core/p-17f97f1a.entry.js +1 -0
  150. package/dist/pine-core/{p-5c90091e.system.entry.js → p-19ba2788.system.entry.js} +1 -1
  151. package/dist/pine-core/p-1dc5a7e0.system.entry.js +1 -0
  152. package/dist/pine-core/{p-355e4cf9.entry.js → p-25ea48d1.entry.js} +1 -1
  153. package/dist/pine-core/{p-c81d8ac8.entry.js → p-295f64ea.entry.js} +1 -1
  154. package/dist/pine-core/{p-576cf904.system.entry.js → p-29cd4113.system.entry.js} +1 -1
  155. package/dist/pine-core/{p-1ee86d87.system.entry.js → p-332590c7.system.entry.js} +1 -1
  156. package/dist/pine-core/p-36cb4bf6.entry.js +1 -0
  157. package/dist/pine-core/{p-080cb087.system.entry.js → p-3c977d8d.system.entry.js} +1 -1
  158. package/dist/pine-core/p-3d51891a.entry.js +1 -0
  159. package/dist/pine-core/{p-72865997.entry.js → p-44f546ae.entry.js} +1 -1
  160. package/dist/pine-core/{p-b60ac7eb.system.entry.js → p-4bfc8b3e.system.entry.js} +1 -1
  161. package/dist/pine-core/p-5833a072.system.entry.js +1 -0
  162. package/dist/pine-core/p-5cfd4d41.system.entry.js +1 -0
  163. package/dist/pine-core/{p-f2c253d8.entry.js → p-62433f32.entry.js} +1 -1
  164. package/dist/pine-core/{p-ebd0bff2.entry.js → p-631f5bcc.entry.js} +1 -1
  165. package/dist/pine-core/p-717323e4.entry.js +1 -0
  166. package/dist/pine-core/{p-e7a95a49.system.entry.js → p-719542e1.system.entry.js} +1 -1
  167. package/dist/pine-core/p-73f931a1.entry.js +1 -0
  168. package/dist/pine-core/{p-f77905aa.system.entry.js → p-884cb31d.system.entry.js} +1 -1
  169. package/dist/pine-core/{p-4435fff6.system.entry.js → p-8987fd45.system.entry.js} +1 -1
  170. package/dist/pine-core/{p-02088776.entry.js → p-8c588ca0.entry.js} +1 -1
  171. package/dist/pine-core/p-8e3ff75d.entry.js +1 -0
  172. package/dist/pine-core/{p-bd26a5e8.entry.js → p-90d5edc6.entry.js} +1 -1
  173. package/dist/pine-core/p-91f60173.entry.js +1 -0
  174. package/dist/pine-core/{p-258770cf.system.entry.js → p-9265497e.system.entry.js} +1 -1
  175. package/dist/pine-core/p-9713fb36.entry.js +1 -0
  176. package/dist/pine-core/p-99fdf70f.entry.js +1 -0
  177. package/dist/pine-core/{p-0a84d220.entry.js → p-9aaedded.entry.js} +1 -1
  178. package/dist/pine-core/p-9df5e204.entry.js +1 -0
  179. package/dist/pine-core/p-CuSNnuFu.system.js +1 -1
  180. package/dist/pine-core/p-D04W0cAO.system.js +1 -0
  181. package/dist/pine-core/{p-6d603d16.system.entry.js → p-acca5f7b.system.entry.js} +1 -1
  182. package/dist/pine-core/{p-a19cd59c.entry.js → p-aff411d0.entry.js} +1 -1
  183. package/dist/pine-core/{p-bb73ad66.entry.js → p-b182f806.entry.js} +1 -1
  184. package/dist/pine-core/{p-01aa382c.system.entry.js → p-b9d145f8.system.entry.js} +1 -1
  185. package/dist/pine-core/p-bdac8f2b.entry.js +1 -0
  186. package/dist/pine-core/{p-aa032a5e.system.entry.js → p-be9b6e63.system.entry.js} +1 -1
  187. package/dist/pine-core/{p-ff3de72e.entry.js → p-c483997a.entry.js} +1 -1
  188. package/dist/pine-core/p-c4e12f0a.entry.js +1 -0
  189. package/dist/pine-core/{p-e8cb76e8.entry.js → p-c97bfac9.entry.js} +1 -1
  190. package/dist/pine-core/{p-bd67156b.system.entry.js → p-ca4ee736.system.entry.js} +1 -1
  191. package/dist/pine-core/p-cccfe60f.system.entry.js +1 -0
  192. package/dist/pine-core/{p-c5c9ed36.system.entry.js → p-d3d69ca4.system.entry.js} +1 -1
  193. package/dist/pine-core/{p-f0d24298.system.entry.js → p-ea340c55.system.entry.js} +1 -1
  194. package/dist/pine-core/{p-88ff1604.entry.js → p-ea8f5d29.entry.js} +1 -1
  195. package/dist/pine-core/{p-d8570b4b.system.entry.js → p-eaf85be6.system.entry.js} +1 -1
  196. package/dist/pine-core/{p-fc25b956.system.entry.js → p-ecc7a531.system.entry.js} +1 -1
  197. package/dist/pine-core/{p-cfc52b95.system.entry.js → p-ee0e30bf.system.entry.js} +1 -1
  198. package/dist/pine-core/{p-e803f629.system.entry.js → p-ef13f665.system.entry.js} +1 -1
  199. package/dist/pine-core/{p-97d0b89e.system.entry.js → p-f3067d90.system.entry.js} +1 -1
  200. package/dist/pine-core/{p-JtdHT_W5.js → p-jrkGLEPe.js} +1 -1
  201. package/dist/pine-core/pine-core.esm.js +1 -1
  202. package/dist/types/components/pds-button/pds-button.d.ts +3 -4
  203. package/dist/types/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.d.ts +13 -3
  204. package/dist/types/components/pds-modal/pds-modal-content/pds-modal-content.d.ts +2 -0
  205. package/dist/types/components/pds-popover/pds-popover.d.ts +43 -1
  206. package/dist/types/components.d.ts +43 -10
  207. package/dist/types/utils/truncation-tooltip.d.ts +4 -4
  208. package/dist/types/utils/types.d.ts +1 -0
  209. package/dist/vscode.html-data.json +50 -7
  210. package/hydrate/index.js +341 -104
  211. package/hydrate/index.mjs +341 -104
  212. package/package.json +2 -2
  213. package/dist/esm-es5/truncation-tooltip-DRXsdKk1.js +0 -1
  214. package/dist/pine-core/p-153ba77b.entry.js +0 -1
  215. package/dist/pine-core/p-645a482b.system.entry.js +0 -1
  216. package/dist/pine-core/p-74a05bcc.entry.js +0 -1
  217. package/dist/pine-core/p-7bf6563a.system.entry.js +0 -1
  218. package/dist/pine-core/p-80a698ae.entry.js +0 -1
  219. package/dist/pine-core/p-82cf4ec6.entry.js +0 -1
  220. package/dist/pine-core/p-8d292b48.entry.js +0 -1
  221. package/dist/pine-core/p-92ae6082.entry.js +0 -1
  222. package/dist/pine-core/p-993d1043.entry.js +0 -1
  223. package/dist/pine-core/p-a787b34a.system.entry.js +0 -1
  224. package/dist/pine-core/p-b69f04b7.entry.js +0 -1
  225. package/dist/pine-core/p-beb23781.entry.js +0 -1
  226. package/dist/pine-core/p-bf5887e8.system.entry.js +0 -1
  227. package/dist/pine-core/p-c36b490e.entry.js +0 -1
  228. package/dist/pine-core/p-ca0d48e8.entry.js +0 -1
  229. package/dist/pine-core/p-f474d7de.entry.js +0 -1
  230. package/dist/pine-core/p-qhdoK1Jp.system.js +0 -1
  231. /package/dist/esm-es5/{index-BJXk71tO.js → index-BWDu62Mo.js} +0 -0
  232. /package/dist/pine-core/{p-BJXk71tO.js → p-BWDu62Mo.js} +0 -0
  233. /package/dist/pine-core/{p-n3_ytl_p.system.js → p-ClDiSG97.system.js} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { EventEmitter } from '../../stencil-public-runtime';
2
- import { PlacementType } from "../../utils/types";
2
+ import { PlacementType, PopoverPaddingType } from "../../utils/types";
3
3
  import { PdsPopoverEventDetail } from './popover-interface';
4
4
  /**
5
5
  * @slot trigger - The trigger element for the popover
@@ -56,6 +56,20 @@ export declare class PdsPopover {
56
56
  * Timestamp when popover was opened (for preventing immediate close)
57
57
  */
58
58
  private openTimestamp;
59
+ /**
60
+ * Set while hover holds the popover open, until a click pins it or it closes
61
+ */
62
+ private hoverOpened;
63
+ private hoverOpenTimer?;
64
+ private hoverCloseTimer?;
65
+ /**
66
+ * Set when the pointer left while focus was in the panel, so focus leaving it closes it instead
67
+ */
68
+ private closeWhenFocusLeaves;
69
+ /**
70
+ * How far the pointer was from the panel at its last move after leaving the trigger
71
+ */
72
+ private panelDistance;
59
73
  /**
60
74
  * Instance counter for unique IDs
61
75
  */
@@ -80,6 +94,13 @@ export declare class PdsPopover {
80
94
  * @defaultValue "show"
81
95
  */
82
96
  popoverTargetAction: 'show' | 'toggle' | 'hide';
97
+ /**
98
+ * Determines how the popover opens. With `hover`, it also opens when the pointer rests on the trigger and closes
99
+ * when the pointer leaves, until a click on the trigger keeps it open. Enter or Space on the trigger opens it either way.
100
+ * @defaultValue "click"
101
+ */
102
+ openOn?: 'click' | 'hover';
103
+ protected openOnChanged(): void;
83
104
  /**
84
105
  * Determines the type of popover. Auto popovers can be "light dismissed" by clicking outside of the popover.
85
106
  * Manual popovers require the consumer to handle the visibility of the popover.
@@ -94,6 +115,13 @@ export declare class PdsPopover {
94
115
  * @defaultValue 352
95
116
  */
96
117
  maxWidth?: number;
118
+ /**
119
+ * Sets the padding of the popover content
120
+ * @defaultValue "md"
121
+ */
122
+ padding?: PopoverPaddingType;
123
+ applyPadding(): void;
124
+ private paddingToken;
97
125
  /**
98
126
  * Determines the preferred position of the popover
99
127
  * @defaultValue "right"
@@ -116,6 +144,20 @@ export declare class PdsPopover {
116
144
  * Handles clicks on the trigger element
117
145
  */
118
146
  private handleTriggerClick;
147
+ private listenForHover;
148
+ private stopListeningForHover;
149
+ private handleHoverEnter;
150
+ private handleHoverLeave;
151
+ private handleMoveTowardPanel;
152
+ private distanceToPanel;
153
+ private handleHoverFocusOut;
154
+ private closeFromHover;
155
+ /**
156
+ * Keeps a popover that hover opened open, closing from then on as one opened by a click does. A
157
+ * manual one gives up Escape again, which it took only while hover held it.
158
+ */
159
+ private pin;
160
+ private clearHoverTimers;
119
161
  connectedCallback(): void;
120
162
  disconnectedCallback(): void;
121
163
  /**
@@ -8,7 +8,7 @@ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
8
  import { BoxColumnType, BoxShadowSizeType, BoxSpacingType, TextSizeType } from "./utils/types";
9
9
  import { Event } from "./stencil-public-runtime";
10
10
  import { CheckboxChangeEventDetail } from "./components/pds-checkbox/checkbox-interface";
11
- import { ChipSentimentType, ChipSizeType, ChipVariantType, ModalSizeType, PlacementType } from "./utils/types";
11
+ import { ChipSentimentType, ChipSizeType, ChipVariantType, ModalSizeType, PlacementType, PopoverPaddingType } from "./utils/types";
12
12
  import { ComboboxLoadOptionsEventDetail, ComboboxOption, ComboboxSearchEventDetail } from "./components/pds-combobox/combobox-interface";
13
13
  import { DatepickerChangeEventDetail, DatepickerPreset } from "./components/pds-datepicker/datepicker-interface";
14
14
  import { PdsFilterClearEventDetail, PdsFilterCloseEventDetail, PdsFilterOpenEventDetail, PdsFilterVariant } from "./components/pds-filters/pds-filter/filter-interface";
@@ -22,7 +22,7 @@ import { TextareaChangeEventDetail, TextareaInputEventDetail } from "./component
22
22
  export { BoxColumnType, BoxShadowSizeType, BoxSpacingType, TextSizeType } from "./utils/types";
23
23
  export { Event } from "./stencil-public-runtime";
24
24
  export { CheckboxChangeEventDetail } from "./components/pds-checkbox/checkbox-interface";
25
- export { ChipSentimentType, ChipSizeType, ChipVariantType, ModalSizeType, PlacementType } from "./utils/types";
25
+ export { ChipSentimentType, ChipSizeType, ChipVariantType, ModalSizeType, PlacementType, PopoverPaddingType } from "./utils/types";
26
26
  export { ComboboxLoadOptionsEventDetail, ComboboxOption, ComboboxSearchEventDetail } from "./components/pds-combobox/combobox-interface";
27
27
  export { DatepickerChangeEventDetail, DatepickerPreset } from "./components/pds-datepicker/datepicker-interface";
28
28
  export { PdsFilterClearEventDetail, PdsFilterCloseEventDetail, PdsFilterOpenEventDetail, PdsFilterVariant } from "./components/pds-filters/pds-filter/filter-interface";
@@ -1531,20 +1531,25 @@ export namespace Components {
1531
1531
  */
1532
1532
  "disabled": boolean;
1533
1533
  /**
1534
- * Prompts the user to save the linked URL instead of navigating to it. It can be used without a value to download with the default filename, or with a string value to suggest a specific filename for the download. Only applies when href is set.
1534
+ * Prompts the user to save the linked URL instead of navigating to it. It can be used without a value to download with the default filename, or with a string value to suggest a specific filename for the download. Only applies when href is set. Ignored when `informational` is set.
1535
1535
  */
1536
1536
  "download"?: string;
1537
1537
  /**
1538
- * Determines whether the link should open in a new tab and display an external icon. This is a simpler alternative to using `target="_blank"` for the common case.
1538
+ * Determines whether the link should open in a new tab and display an external icon. This is a simpler alternative to using `target="_blank"` for the common case. Ignored when `informational` is set.
1539
1539
  * @defaultValue false
1540
1540
  */
1541
1541
  "external": boolean;
1542
1542
  /**
1543
- * If provided, renders the dropdown-item as an anchor (`<a>`) element instead of a button.
1543
+ * If provided, renders the dropdown-item as an anchor (`<a>`) element instead of a button. Ignored when `informational` is set.
1544
1544
  */
1545
1545
  "href": string | undefined;
1546
1546
  /**
1547
- * Specifies where to open the linked document when href is provided. Takes precedence over the `external` prop if both are set. Only applies when href is set.
1547
+ * It determines whether or not the dropdown-item is informational: text that the arrow keys reach but that can't be activated. Takes precedence over `href` and `destructive`. Screen readers announce it as dimmed or unavailable, the same way as a disabled item.
1548
+ * @defaultValue false
1549
+ */
1550
+ "informational": boolean;
1551
+ /**
1552
+ * Specifies where to open the linked document when href is provided. Takes precedence over the `external` prop if both are set. Only applies when href is set. Ignored when `informational` is set.
1548
1553
  * @defaultValue undefined
1549
1554
  */
1550
1555
  "target"?: '_blank' | '_self' | '_parent' | '_top';
@@ -2156,6 +2161,16 @@ export namespace Components {
2156
2161
  * @defaultValue 352
2157
2162
  */
2158
2163
  "maxWidth"?: number;
2164
+ /**
2165
+ * Determines how the popover opens. With `hover`, it also opens when the pointer rests on the trigger and closes when the pointer leaves, until a click on the trigger keeps it open. Enter or Space on the trigger opens it either way.
2166
+ * @defaultValue "click"
2167
+ */
2168
+ "openOn"?: 'click' | 'hover';
2169
+ /**
2170
+ * Sets the padding of the popover content
2171
+ * @defaultValue "md"
2172
+ */
2173
+ "padding"?: PopoverPaddingType;
2159
2174
  /**
2160
2175
  * Determines the preferred position of the popover
2161
2176
  * @defaultValue "right"
@@ -5396,24 +5411,29 @@ declare namespace LocalJSX {
5396
5411
  */
5397
5412
  "disabled"?: boolean;
5398
5413
  /**
5399
- * Prompts the user to save the linked URL instead of navigating to it. It can be used without a value to download with the default filename, or with a string value to suggest a specific filename for the download. Only applies when href is set.
5414
+ * Prompts the user to save the linked URL instead of navigating to it. It can be used without a value to download with the default filename, or with a string value to suggest a specific filename for the download. Only applies when href is set. Ignored when `informational` is set.
5400
5415
  */
5401
5416
  "download"?: string;
5402
5417
  /**
5403
- * Determines whether the link should open in a new tab and display an external icon. This is a simpler alternative to using `target="_blank"` for the common case.
5418
+ * Determines whether the link should open in a new tab and display an external icon. This is a simpler alternative to using `target="_blank"` for the common case. Ignored when `informational` is set.
5404
5419
  * @defaultValue false
5405
5420
  */
5406
5421
  "external"?: boolean;
5407
5422
  /**
5408
- * If provided, renders the dropdown-item as an anchor (`<a>`) element instead of a button.
5423
+ * If provided, renders the dropdown-item as an anchor (`<a>`) element instead of a button. Ignored when `informational` is set.
5409
5424
  */
5410
5425
  "href"?: string | undefined;
5426
+ /**
5427
+ * It determines whether or not the dropdown-item is informational: text that the arrow keys reach but that can't be activated. Takes precedence over `href` and `destructive`. Screen readers announce it as dimmed or unavailable, the same way as a disabled item.
5428
+ * @defaultValue false
5429
+ */
5430
+ "informational"?: boolean;
5411
5431
  /**
5412
5432
  * Emitted when the dropdown-item is clicked.
5413
5433
  */
5414
5434
  "onPdsClick"?: (event: PdsDropdownMenuItemCustomEvent<{itemIndex: number, item: HTMLPdsDropdownMenuItemElement, content: string}>) => void;
5415
5435
  /**
5416
- * Specifies where to open the linked document when href is provided. Takes precedence over the `external` prop if both are set. Only applies when href is set.
5436
+ * Specifies where to open the linked document when href is provided. Takes precedence over the `external` prop if both are set. Only applies when href is set. Ignored when `informational` is set.
5417
5437
  * @defaultValue undefined
5418
5438
  */
5419
5439
  "target"?: '_blank' | '_self' | '_parent' | '_top';
@@ -6069,6 +6089,16 @@ declare namespace LocalJSX {
6069
6089
  * Emitted when the popover is opened
6070
6090
  */
6071
6091
  "onPdsPopoverOpen"?: (event: PdsPopoverCustomEvent<PdsPopoverEventDetail>) => void;
6092
+ /**
6093
+ * Determines how the popover opens. With `hover`, it also opens when the pointer rests on the trigger and closes when the pointer leaves, until a click on the trigger keeps it open. Enter or Space on the trigger opens it either way.
6094
+ * @defaultValue "click"
6095
+ */
6096
+ "openOn"?: 'click' | 'hover';
6097
+ /**
6098
+ * Sets the padding of the popover content
6099
+ * @defaultValue "md"
6100
+ */
6101
+ "padding"?: PopoverPaddingType;
6072
6102
  /**
6073
6103
  * Determines the preferred position of the popover
6074
6104
  * @defaultValue "right"
@@ -7227,6 +7257,7 @@ declare namespace LocalJSX {
7227
7257
  "disabled": boolean;
7228
7258
  "download": string;
7229
7259
  "href": string | undefined;
7260
+ "informational": boolean;
7230
7261
  "external": boolean;
7231
7262
  "target": '_blank' | '_self' | '_parent' | '_top';
7232
7263
  }
@@ -7368,9 +7399,11 @@ declare namespace LocalJSX {
7368
7399
  }
7369
7400
  interface PdsPopoverAttributes {
7370
7401
  "popoverTargetAction": 'show' | 'toggle' | 'hide';
7402
+ "openOn": 'click' | 'hover';
7371
7403
  "popoverType": 'auto' | 'manual';
7372
7404
  "componentId": string;
7373
7405
  "maxWidth": number;
7406
+ "padding": PopoverPaddingType;
7374
7407
  "placement": PlacementType;
7375
7408
  }
7376
7409
  interface PdsProgressAttributes {
@@ -25,7 +25,7 @@ export interface TruncationTooltipOptions {
25
25
  */
26
26
  manageTabIndex?: boolean;
27
27
  /**
28
- * The element whose focus shows the tooltip (default: `hostEl`).
28
+ * The element whose keyboard focus shows the tooltip (default: `hostEl`).
29
29
  *
30
30
  * Pass the wrapping control when it sits outside `hostEl`, so focusing it
31
31
  * still reveals the text once `manageTabIndex` is `false`.
@@ -35,9 +35,9 @@ export interface TruncationTooltipOptions {
35
35
  /**
36
36
  * Sets up automatic tooltip behavior for a truncated element.
37
37
  *
38
- * When the element's text overflows, hovering or focusing the host element
39
- * will display a tooltip showing the full text content. The tooltip is
40
- * rendered as a portal on document.body and positioned with Floating UI.
38
+ * When the element's text overflows, hovering the host element or giving it
39
+ * keyboard focus will display a tooltip showing the full text content. The
40
+ * tooltip is rendered as a portal on document.body and positioned with Floating UI.
41
41
  *
42
42
  * Also owns the element's `tabindex` while it is clipped — see syncTabIndex.
43
43
  *
@@ -6,5 +6,6 @@ export type ChipSentimentType = 'accent' | 'brand' | 'danger' | 'info' | 'neutra
6
6
  export type ModalSizeType = 'sm' | 'md' | 'lg' | 'fullscreen';
7
7
  export type ChipSizeType = 'sm' | 'md' | 'lg';
8
8
  export type ChipVariantType = 'text' | 'tag' | 'dropdown';
9
+ export type PopoverPaddingType = Extract<BoxSpacingType, 'none' | 'xs' | 'sm' | 'md'>;
9
10
  export declare const TEXT_SIZES: readonly ["2xl", "xl", "lg", "md", "sm", "xs", "2xs", "h1", "h2", "h3", "h4", "h5", "h6"];
10
11
  export type TextSizeType = (typeof TEXT_SIZES)[number];
@@ -8311,7 +8311,7 @@
8311
8311
  "name": "pds-dropdown-menu",
8312
8312
  "description": {
8313
8313
  "kind": "markdown",
8314
- "value": "Dropdown Menus reveal a list of actions from a button trigger, implementing the WAI-ARIA Menu Button pattern. Use them to conserve space when options do not need to be visible at all times.\n\n**Examples:**\n[Default](https://pine-design-system.netlify.app/?path=/docs/components-dropdown-menu--docs#default), [With Separator](https://pine-design-system.netlify.app/?path=/docs/components-dropdown-menu--docs#with-separator), [With Icons](https://pine-design-system.netlify.app/?path=/docs/components-dropdown-menu--docs#with-icons), [With Header](https://pine-design-system.netlify.app/?path=/docs/components-dropdown-menu--docs#with-header), [With Links](https://pine-design-system.netlify.app/?path=/docs/components-dropdown-menu--docs#with-links), [With External Links](https://pine-design-system.netlify.app/?path=/docs/components-dropdown-menu--docs#with-external-links), [Mixing Menu Items with Raw Elements](https://pine-design-system.netlify.app/?path=/docs/components-dropdown-menu--docs#mixing-menu-items-with-raw-elements), [With Disabled Items](https://pine-design-system.netlify.app/?path=/docs/components-dropdown-menu--docs#with-disabled-items), [With Custom Placement](https://pine-design-system.netlify.app/?path=/docs/components-dropdown-menu--docs#with-custom-placement), [Scrollable Menu](https://pine-design-system.netlify.app/?path=/docs/components-dropdown-menu--docs#scrollable-menu)\n\n**Slots:**\n- `header` - Non-interactive content displayed above the menu items inside the dropdown panel. It renders outside the menu role, so assistive tech reads it as plain content rather than as a menu item.\n\n**CSS Parts:**\n- `menu-panel` - Exposes the dropdown menu container for styling."
8314
+ "value": "Dropdown Menus reveal a list of actions from a button trigger, implementing the WAI-ARIA Menu Button pattern. Use them to conserve space when options do not need to be visible at all times.\n\n**Examples:**\n[Default](https://pine-design-system.netlify.app/?path=/docs/components-dropdown-menu--docs#default), [With Separator](https://pine-design-system.netlify.app/?path=/docs/components-dropdown-menu--docs#with-separator), [With Icons](https://pine-design-system.netlify.app/?path=/docs/components-dropdown-menu--docs#with-icons), [With Header](https://pine-design-system.netlify.app/?path=/docs/components-dropdown-menu--docs#with-header), [With Links](https://pine-design-system.netlify.app/?path=/docs/components-dropdown-menu--docs#with-links), [With External Links](https://pine-design-system.netlify.app/?path=/docs/components-dropdown-menu--docs#with-external-links), [With Informational Items](https://pine-design-system.netlify.app/?path=/docs/components-dropdown-menu--docs#with-informational-items), [Mixing Menu Items with Raw Elements](https://pine-design-system.netlify.app/?path=/docs/components-dropdown-menu--docs#mixing-menu-items-with-raw-elements), [With Disabled Items](https://pine-design-system.netlify.app/?path=/docs/components-dropdown-menu--docs#with-disabled-items), [With Custom Placement](https://pine-design-system.netlify.app/?path=/docs/components-dropdown-menu--docs#with-custom-placement), [Scrollable Menu](https://pine-design-system.netlify.app/?path=/docs/components-dropdown-menu--docs#scrollable-menu)\n\n**Slots:**\n- `header` - Non-interactive content displayed above the menu items inside the dropdown panel. It renders outside the menu role, so assistive tech reads it as plain content rather than as a menu item.\n\n**CSS Parts:**\n- `menu-panel` - Exposes the dropdown menu container for styling."
8315
8315
  },
8316
8316
  "attributes": [
8317
8317
  {
@@ -8378,7 +8378,7 @@
8378
8378
  "name": "pds-dropdown-menu-item",
8379
8379
  "description": {
8380
8380
  "kind": "markdown",
8381
- "value": "\n\n**CSS Parts:**\n- `button` - No description\n\n**Events:**\n- `pdsClick` - Emitted when the dropdown-item is clicked."
8381
+ "value": "\n\n**CSS Parts:**\n- `button` - Exposes the item's inner element for styling. Appears on button and informational items, not on links.\n\n**Events:**\n- `pdsClick` - Emitted when the dropdown-item is clicked."
8382
8382
  },
8383
8383
  "attributes": [
8384
8384
  {
@@ -8406,28 +8406,35 @@
8406
8406
  "name": "download",
8407
8407
  "description": {
8408
8408
  "kind": "markdown",
8409
- "value": "Prompts the user to save the linked URL instead of navigating to it.\nIt can be used without a value to download with the default filename,\nor with a string value to suggest a specific filename for the download.\nOnly applies when href is set."
8409
+ "value": "Prompts the user to save the linked URL instead of navigating to it.\nIt can be used without a value to download with the default filename,\nor with a string value to suggest a specific filename for the download.\nOnly applies when href is set. Ignored when `informational` is set."
8410
8410
  }
8411
8411
  },
8412
8412
  {
8413
8413
  "name": "external",
8414
8414
  "description": {
8415
8415
  "kind": "markdown",
8416
- "value": "Determines whether the link should open in a new tab and display an external icon.\nThis is a simpler alternative to using `target=\"_blank\"` for the common case.\n\n**Default:** `false`"
8416
+ "value": "Determines whether the link should open in a new tab and display an external icon.\nThis is a simpler alternative to using `target=\"_blank\"` for the common case.\nIgnored when `informational` is set.\n\n**Default:** `false`"
8417
8417
  }
8418
8418
  },
8419
8419
  {
8420
8420
  "name": "href",
8421
8421
  "description": {
8422
8422
  "kind": "markdown",
8423
- "value": "If provided, renders the dropdown-item as an anchor (`<a>`) element instead of a button."
8423
+ "value": "If provided, renders the dropdown-item as an anchor (`<a>`) element instead of a button.\nIgnored when `informational` is set."
8424
+ }
8425
+ },
8426
+ {
8427
+ "name": "informational",
8428
+ "description": {
8429
+ "kind": "markdown",
8430
+ "value": "It determines whether or not the dropdown-item is informational: text that the arrow keys\nreach but that can't be activated. Takes precedence over `href` and `destructive`.\nScreen readers announce it as dimmed or unavailable, the same way as a disabled item.\n\n**Default:** `false`"
8424
8431
  }
8425
8432
  },
8426
8433
  {
8427
8434
  "name": "target",
8428
8435
  "description": {
8429
8436
  "kind": "markdown",
8430
- "value": "Specifies where to open the linked document when href is provided.\nTakes precedence over the `external` prop if both are set.\nOnly applies when href is set.\n\n**Type:** `\"_blank\" | \"_parent\" | \"_self\" | \"_top\"`"
8437
+ "value": "Specifies where to open the linked document when href is provided.\nTakes precedence over the `external` prop if both are set.\nOnly applies when href is set. Ignored when `informational` is set.\n\n**Type:** `\"_blank\" | \"_parent\" | \"_self\" | \"_top\"`"
8431
8438
  },
8432
8439
  "values": [
8433
8440
  {
@@ -9579,7 +9586,7 @@
9579
9586
  "name": "pds-popover",
9580
9587
  "description": {
9581
9588
  "kind": "markdown",
9582
- "value": "Popovers display contextual information when users click or initiates a keyboard event on an element. They typically contain more information than tooltips and can include interactive elements.\n\n**Examples:**\n[Trigger Slot](https://pine-design-system.netlify.app/?path=/docs/components-popover--docs#trigger-slot), [Behavior Types](https://pine-design-system.netlify.app/?path=/docs/components-popover--docs#behavior-types), [Target Actions](https://pine-design-system.netlify.app/?path=/docs/components-popover--docs#target-actions), [Width/Sizing](https://pine-design-system.netlify.app/?path=/docs/components-popover--docs#width/sizing)\n\n**Slots:**\n- `(default)` - The content to display inside the popover\n- `trigger` - The trigger element for the popover\n\n**Events:**\n- `pdsPopoverClose` - Emitted when the popover is closed\n- `pdsPopoverOpen` - Emitted when the popover is opened"
9589
+ "value": "Popovers display contextual information when users click an element or activate it with the keyboard, and can also open when users hover over it. They typically contain more information than tooltips and can include interactive elements.\n\n**Examples:**\n[Trigger Slot](https://pine-design-system.netlify.app/?path=/docs/components-popover--docs#trigger-slot), [Behavior Types](https://pine-design-system.netlify.app/?path=/docs/components-popover--docs#behavior-types), [Target Actions](https://pine-design-system.netlify.app/?path=/docs/components-popover--docs#target-actions), [Open on hover](https://pine-design-system.netlify.app/?path=/docs/components-popover--docs#open-on-hover), [Width/Sizing](https://pine-design-system.netlify.app/?path=/docs/components-popover--docs#width/sizing), [Padding](https://pine-design-system.netlify.app/?path=/docs/components-popover--docs#padding)\n\n**Slots:**\n- `(default)` - The content to display inside the popover\n- `trigger` - The trigger element for the popover\n\n**Events:**\n- `pdsPopoverClose` - Emitted when the popover is closed\n- `pdsPopoverOpen` - Emitted when the popover is opened"
9583
9590
  },
9584
9591
  "attributes": [
9585
9592
  {
@@ -9596,6 +9603,42 @@
9596
9603
  "value": "Sets the maximum width of the popover content\n\n**Type:** `number`\n\n**Default:** `352`"
9597
9604
  }
9598
9605
  },
9606
+ {
9607
+ "name": "open-on",
9608
+ "description": {
9609
+ "kind": "markdown",
9610
+ "value": "Determines how the popover opens. With `hover`, it also opens when the pointer rests on the trigger and closes\nwhen the pointer leaves, until a click on the trigger keeps it open. Enter or Space on the trigger opens it either way.\n\n**Type:** `\"click\" | \"hover\"`\n\n**Default:** `'click'`"
9611
+ },
9612
+ "values": [
9613
+ {
9614
+ "name": "click"
9615
+ },
9616
+ {
9617
+ "name": "hover"
9618
+ }
9619
+ ]
9620
+ },
9621
+ {
9622
+ "name": "padding",
9623
+ "description": {
9624
+ "kind": "markdown",
9625
+ "value": "Sets the padding of the popover content\n\n**Type:** `\"md\" | \"none\" | \"sm\" | \"xs\"`\n\n**Default:** `'md'`"
9626
+ },
9627
+ "values": [
9628
+ {
9629
+ "name": "md"
9630
+ },
9631
+ {
9632
+ "name": "none"
9633
+ },
9634
+ {
9635
+ "name": "sm"
9636
+ },
9637
+ {
9638
+ "name": "xs"
9639
+ }
9640
+ ]
9641
+ },
9599
9642
  {
9600
9643
  "name": "placement",
9601
9644
  "description": {