@pine-ds/core 4.1.0 → 4.3.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 (481) hide show
  1. package/components/index.d.ts +8 -0
  2. package/components/index.js +1 -1
  3. package/components/mock-pds-modal.js +1 -1
  4. package/components/pds-button2.js +1 -1
  5. package/components/pds-checkbox2.js +1 -1
  6. package/components/pds-chip2.js +1 -1
  7. package/components/pds-combobox.js +1 -1
  8. package/components/pds-copytext.js +1 -1
  9. package/components/pds-drawer-content.d.ts +11 -0
  10. package/components/pds-drawer-content.js +1 -0
  11. package/components/pds-drawer-footer.d.ts +11 -0
  12. package/components/pds-drawer-footer.js +1 -0
  13. package/components/pds-drawer-header.d.ts +11 -0
  14. package/components/pds-drawer-header.js +1 -0
  15. package/components/pds-drawer.d.ts +11 -0
  16. package/components/pds-drawer.js +1 -0
  17. package/components/pds-dropdown-menu-item.js +1 -1
  18. package/components/pds-dropdown-menu-separator.js +1 -1
  19. package/components/pds-dropdown-menu.js +1 -1
  20. package/components/pds-filter.js +1 -1
  21. package/components/pds-filters.js +1 -1
  22. package/components/pds-icon2.js +1 -1
  23. package/components/pds-image.js +1 -1
  24. package/components/pds-input.js +1 -1
  25. package/components/pds-link2.js +1 -1
  26. package/components/pds-loader2.js +1 -1
  27. package/components/pds-modal-content.js +1 -1
  28. package/components/pds-modal-footer.js +1 -1
  29. package/components/pds-modal-header.js +1 -1
  30. package/components/pds-modal.js +1 -1
  31. package/components/pds-modal2.js +1 -0
  32. package/components/pds-multiselect.js +1 -1
  33. package/components/pds-popover.js +1 -1
  34. package/components/pds-progress.js +1 -1
  35. package/components/pds-property.js +1 -1
  36. package/components/pds-radio-group.js +1 -1
  37. package/components/pds-radio.js +1 -1
  38. package/components/pds-row.js +1 -1
  39. package/components/pds-select.js +1 -1
  40. package/components/pds-sortable-item.js +1 -1
  41. package/components/pds-sortable.js +2 -2
  42. package/components/pds-switch.js +1 -1
  43. package/components/pds-table-body.js +1 -1
  44. package/components/pds-table-cell2.js +1 -1
  45. package/components/pds-table-head-cell2.js +1 -1
  46. package/components/pds-table-head.js +1 -1
  47. package/components/pds-table-row.js +1 -1
  48. package/components/pds-tabpanel.js +1 -1
  49. package/components/pds-tabs.js +1 -1
  50. package/components/pds-text2.js +1 -1
  51. package/components/pds-textarea.js +1 -1
  52. package/components/pds-toast.js +1 -1
  53. package/components/pds-tooltip.js +1 -1
  54. package/components/truncation-tooltip.js +1 -1
  55. package/dist/cjs/{index-CuQil7H0.js → index-CaLa1zy9.js} +1 -1
  56. package/dist/cjs/{index-BMV0nzMk.js → index-DYvijwA6.js} +1 -1
  57. package/dist/cjs/index.cjs.js +20 -0
  58. package/dist/cjs/loader.cjs.js +2 -2
  59. package/dist/cjs/mock-pds-modal.cjs.entry.js +3 -3
  60. package/dist/cjs/pds-accordion.cjs.entry.js +2 -2
  61. package/dist/cjs/pds-alert.cjs.entry.js +1 -1
  62. package/dist/cjs/pds-avatar.cjs.entry.js +2 -2
  63. package/dist/cjs/pds-box.cjs.entry.js +2 -2
  64. package/dist/cjs/pds-button.cjs.entry.js +4 -4
  65. package/dist/cjs/pds-checkbox.cjs.entry.js +3 -3
  66. package/dist/cjs/pds-chip.cjs.entry.js +46 -12
  67. package/dist/cjs/pds-combobox.cjs.entry.js +3 -3
  68. package/dist/cjs/pds-container.cjs.entry.js +1 -1
  69. package/dist/cjs/pds-copytext.cjs.entry.js +8 -4
  70. package/dist/cjs/pds-divider.cjs.entry.js +1 -1
  71. package/dist/cjs/pds-drawer-content.cjs.entry.js +23 -0
  72. package/dist/cjs/pds-drawer-footer.cjs.entry.js +23 -0
  73. package/dist/cjs/pds-drawer-header.cjs.entry.js +23 -0
  74. package/dist/cjs/pds-drawer.cjs.entry.js +137 -0
  75. package/dist/cjs/pds-dropdown-menu-item.cjs.entry.js +2 -2
  76. package/dist/cjs/pds-dropdown-menu-separator.cjs.entry.js +2 -2
  77. package/dist/cjs/pds-dropdown-menu.cjs.entry.js +2 -2
  78. package/dist/cjs/pds-filter.cjs.entry.js +3 -3
  79. package/dist/cjs/pds-filters.cjs.entry.js +2 -2
  80. package/dist/cjs/pds-icon.cjs.entry.js +2 -2
  81. package/dist/cjs/pds-image.cjs.entry.js +3 -3
  82. package/dist/cjs/pds-input.cjs.entry.js +5 -5
  83. package/dist/cjs/pds-link.cjs.entry.js +5 -5
  84. package/dist/cjs/pds-loader.cjs.entry.js +2 -2
  85. package/dist/cjs/pds-modal-content.cjs.entry.js +3 -3
  86. package/dist/cjs/pds-modal-footer.cjs.entry.js +2 -2
  87. package/dist/cjs/pds-modal-header.cjs.entry.js +2 -2
  88. package/dist/cjs/pds-modal.cjs.entry.js +173 -14
  89. package/dist/cjs/pds-multiselect.cjs.entry.js +6 -6
  90. package/dist/cjs/pds-popover.cjs.entry.js +2 -2
  91. package/dist/cjs/pds-progress.cjs.entry.js +4 -2
  92. package/dist/cjs/pds-property.cjs.entry.js +2 -2
  93. package/dist/cjs/pds-radio-group.cjs.entry.js +5 -5
  94. package/dist/cjs/pds-radio.cjs.entry.js +6 -6
  95. package/dist/cjs/pds-row.cjs.entry.js +2 -2
  96. package/dist/cjs/pds-select.cjs.entry.js +3 -3
  97. package/dist/cjs/pds-sortable-item.cjs.entry.js +3 -3
  98. package/dist/cjs/pds-sortable.cjs.entry.js +2 -2
  99. package/dist/cjs/pds-switch.cjs.entry.js +6 -6
  100. package/dist/cjs/pds-tab.cjs.entry.js +1 -1
  101. package/dist/cjs/pds-table-body.cjs.entry.js +2 -2
  102. package/dist/cjs/pds-table-cell.cjs.entry.js +4 -4
  103. package/dist/cjs/pds-table-head-cell.cjs.entry.js +4 -4
  104. package/dist/cjs/pds-table-head.cjs.entry.js +2 -2
  105. package/dist/cjs/pds-table-row.cjs.entry.js +2 -2
  106. package/dist/cjs/pds-table.cjs.entry.js +1 -1
  107. package/dist/cjs/pds-tabpanel.cjs.entry.js +2 -2
  108. package/dist/cjs/pds-tabs.cjs.entry.js +2 -2
  109. package/dist/cjs/pds-text.cjs.entry.js +7 -25
  110. package/dist/cjs/pds-textarea.cjs.entry.js +7 -7
  111. package/dist/cjs/pds-toast.cjs.entry.js +4 -4
  112. package/dist/cjs/pds-tooltip.cjs.entry.js +3 -3
  113. package/dist/cjs/pine-core.cjs.js +2 -2
  114. package/dist/cjs/{truncation-tooltip-CVzAha5B.js → truncation-tooltip-Bps7_rUy.js} +51 -1
  115. package/dist/cjs/{utils-7jx8T2mW.js → utils-KWALOgy9.js} +16 -2
  116. package/dist/collection/collection-manifest.json +4 -0
  117. package/dist/collection/components/pds-button/pds-button.css +1 -2
  118. package/dist/collection/components/pds-checkbox/pds-checkbox.css +6 -4
  119. package/dist/collection/components/pds-chip/pds-chip.css +60 -6
  120. package/dist/collection/components/pds-chip/pds-chip.js +82 -8
  121. package/dist/collection/components/pds-chip/pds-chip.tokens.css +16 -0
  122. package/dist/collection/components/pds-chip/stories/pds-chip.stories.js +39 -1
  123. package/dist/collection/components/pds-combobox/pds-combobox.css +1 -2
  124. package/dist/collection/components/pds-combobox/pds-combobox.js +1 -1
  125. package/dist/collection/components/pds-copytext/pds-copytext.js +5 -1
  126. package/dist/collection/components/pds-drawer/pds-drawer-content/pds-drawer-content.css +22 -0
  127. package/dist/collection/components/pds-drawer/pds-drawer-content/pds-drawer-content.js +29 -0
  128. package/dist/collection/components/pds-drawer/pds-drawer-footer/pds-drawer-footer.css +15 -0
  129. package/dist/collection/components/pds-drawer/pds-drawer-footer/pds-drawer-footer.js +23 -0
  130. package/dist/collection/components/pds-drawer/pds-drawer-header/pds-drawer-header.css +15 -0
  131. package/dist/collection/components/pds-drawer/pds-drawer-header/pds-drawer-header.js +23 -0
  132. package/dist/collection/components/pds-drawer/pds-drawer.css +36 -0
  133. package/dist/collection/components/pds-drawer/pds-drawer.js +362 -0
  134. package/dist/collection/components/pds-drawer/stories/pds-drawer.stories.js +72 -0
  135. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.js +1 -1
  136. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-separator/pds-dropdown-menu-separator.js +1 -1
  137. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu.js +1 -1
  138. package/dist/collection/components/pds-filters/pds-filter/pds-filter.js +1 -1
  139. package/dist/collection/components/pds-filters/pds-filters.js +1 -1
  140. package/dist/collection/components/pds-image/pds-image.js +2 -2
  141. package/dist/collection/components/pds-input/pds-input.js +2 -2
  142. package/dist/collection/components/pds-link/pds-link.js +2 -2
  143. package/dist/collection/components/pds-loader/pds-loader.js +1 -1
  144. package/dist/collection/components/pds-modal/pds-modal-content/pds-modal-content.js +2 -2
  145. package/dist/collection/components/pds-modal/pds-modal-footer/pds-modal-footer.js +1 -1
  146. package/dist/collection/components/pds-modal/pds-modal-header/pds-modal-header.js +1 -1
  147. package/dist/collection/components/pds-modal/pds-modal.css +4 -0
  148. package/dist/collection/components/pds-modal/pds-modal.js +209 -16
  149. package/dist/collection/components/pds-modal/stories/pds-modal.stories.js +14 -0
  150. package/dist/collection/components/pds-modal/test/mock-pds-modal.js +1 -1
  151. package/dist/collection/components/pds-multiselect/pds-multiselect.js +3 -3
  152. package/dist/collection/components/pds-popover/pds-popover.js +1 -1
  153. package/dist/collection/components/pds-progress/pds-progress.js +3 -1
  154. package/dist/collection/components/pds-property/pds-property.js +1 -1
  155. package/dist/collection/components/pds-radio/pds-radio.css +1 -2
  156. package/dist/collection/components/pds-radio/pds-radio.js +3 -3
  157. package/dist/collection/components/pds-radio-group/pds-radio-group.js +3 -3
  158. package/dist/collection/components/pds-row/pds-row.js +1 -1
  159. package/dist/collection/components/pds-select/pds-select.js +1 -1
  160. package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js +1 -1
  161. package/dist/collection/components/pds-sortable/pds-sortable.js +1 -1
  162. package/dist/collection/components/pds-switch/pds-switch.css +1 -1
  163. package/dist/collection/components/pds-switch/pds-switch.js +3 -3
  164. package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js +1 -1
  165. package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js +3 -3
  166. package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js +1 -1
  167. package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js +2 -2
  168. package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js +1 -1
  169. package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js +1 -1
  170. package/dist/collection/components/pds-tabs/pds-tabs.js +1 -1
  171. package/dist/collection/components/pds-text/pds-text.js +2 -2
  172. package/dist/collection/components/pds-textarea/pds-textarea.js +4 -4
  173. package/dist/collection/components/pds-toast/pds-toast.js +3 -3
  174. package/dist/collection/components/pds-tooltip/pds-tooltip.js +2 -2
  175. package/dist/collection/index.js +1 -0
  176. package/dist/collection/utils/test/reduced-motion.js +78 -0
  177. package/dist/collection/utils/truncation-tooltip.js +51 -1
  178. package/dist/collection/utils/utils.js +16 -2
  179. package/dist/docs.json +492 -15
  180. package/dist/esm/{index-Bu9gFIxM.js → index-BU1hN5Vy.js} +1 -1
  181. package/dist/esm/{index-CTLu1TM4.js → index-DcT8--Dn.js} +1 -1
  182. package/dist/esm/index.js +19 -0
  183. package/dist/esm/loader.js +3 -3
  184. package/dist/esm/mock-pds-modal.entry.js +3 -3
  185. package/dist/esm/pds-accordion.entry.js +2 -2
  186. package/dist/esm/pds-alert.entry.js +1 -1
  187. package/dist/esm/pds-avatar.entry.js +2 -2
  188. package/dist/esm/pds-box.entry.js +2 -2
  189. package/dist/esm/pds-button.entry.js +4 -4
  190. package/dist/esm/pds-checkbox.entry.js +3 -3
  191. package/dist/esm/pds-chip.entry.js +46 -12
  192. package/dist/esm/pds-combobox.entry.js +3 -3
  193. package/dist/esm/pds-container.entry.js +1 -1
  194. package/dist/esm/pds-copytext.entry.js +8 -4
  195. package/dist/esm/pds-divider.entry.js +1 -1
  196. package/dist/esm/pds-drawer-content.entry.js +21 -0
  197. package/dist/esm/pds-drawer-footer.entry.js +21 -0
  198. package/dist/esm/pds-drawer-header.entry.js +21 -0
  199. package/dist/esm/pds-drawer.entry.js +135 -0
  200. package/dist/esm/pds-dropdown-menu-item.entry.js +2 -2
  201. package/dist/esm/pds-dropdown-menu-separator.entry.js +2 -2
  202. package/dist/esm/pds-dropdown-menu.entry.js +2 -2
  203. package/dist/esm/pds-filter.entry.js +3 -3
  204. package/dist/esm/pds-filters.entry.js +2 -2
  205. package/dist/esm/pds-icon.entry.js +2 -2
  206. package/dist/esm/pds-image.entry.js +3 -3
  207. package/dist/esm/pds-input.entry.js +5 -5
  208. package/dist/esm/pds-link.entry.js +5 -5
  209. package/dist/esm/pds-loader.entry.js +2 -2
  210. package/dist/esm/pds-modal-content.entry.js +3 -3
  211. package/dist/esm/pds-modal-footer.entry.js +2 -2
  212. package/dist/esm/pds-modal-header.entry.js +2 -2
  213. package/dist/esm/pds-modal.entry.js +173 -14
  214. package/dist/esm/pds-multiselect.entry.js +6 -6
  215. package/dist/esm/pds-popover.entry.js +2 -2
  216. package/dist/esm/pds-progress.entry.js +4 -2
  217. package/dist/esm/pds-property.entry.js +2 -2
  218. package/dist/esm/pds-radio-group.entry.js +5 -5
  219. package/dist/esm/pds-radio.entry.js +6 -6
  220. package/dist/esm/pds-row.entry.js +2 -2
  221. package/dist/esm/pds-select.entry.js +3 -3
  222. package/dist/esm/pds-sortable-item.entry.js +3 -3
  223. package/dist/esm/pds-sortable.entry.js +2 -2
  224. package/dist/esm/pds-switch.entry.js +6 -6
  225. package/dist/esm/pds-tab.entry.js +1 -1
  226. package/dist/esm/pds-table-body.entry.js +2 -2
  227. package/dist/esm/pds-table-cell.entry.js +4 -4
  228. package/dist/esm/pds-table-head-cell.entry.js +4 -4
  229. package/dist/esm/pds-table-head.entry.js +2 -2
  230. package/dist/esm/pds-table-row.entry.js +2 -2
  231. package/dist/esm/pds-table.entry.js +1 -1
  232. package/dist/esm/pds-tabpanel.entry.js +2 -2
  233. package/dist/esm/pds-tabs.entry.js +2 -2
  234. package/dist/esm/pds-text.entry.js +5 -23
  235. package/dist/esm/pds-textarea.entry.js +7 -7
  236. package/dist/esm/pds-toast.entry.js +4 -4
  237. package/dist/esm/pds-tooltip.entry.js +3 -3
  238. package/dist/esm/pine-core.js +3 -3
  239. package/dist/esm/{truncation-tooltip-Blk4GigP.js → truncation-tooltip-CdtEBn_5.js} +51 -1
  240. package/dist/esm/{utils-tJa4KYNO.js → utils-u_0lxWnH.js} +16 -2
  241. package/dist/esm-es5/{index-CTLu1TM4.js → index-DcT8--Dn.js} +2 -2
  242. package/dist/esm-es5/index.js +1 -0
  243. package/dist/esm-es5/loader.js +1 -1
  244. package/dist/esm-es5/mock-pds-modal.entry.js +1 -1
  245. package/dist/esm-es5/pds-accordion.entry.js +1 -1
  246. package/dist/esm-es5/pds-alert.entry.js +1 -1
  247. package/dist/esm-es5/pds-avatar.entry.js +1 -1
  248. package/dist/esm-es5/pds-box.entry.js +1 -1
  249. package/dist/esm-es5/pds-button.entry.js +1 -1
  250. package/dist/esm-es5/pds-checkbox.entry.js +1 -1
  251. package/dist/esm-es5/pds-chip.entry.js +1 -1
  252. package/dist/esm-es5/pds-combobox.entry.js +2 -2
  253. package/dist/esm-es5/pds-container.entry.js +1 -1
  254. package/dist/esm-es5/pds-copytext.entry.js +1 -1
  255. package/dist/esm-es5/pds-divider.entry.js +1 -1
  256. package/dist/esm-es5/pds-drawer-content.entry.js +1 -0
  257. package/dist/esm-es5/pds-drawer-footer.entry.js +1 -0
  258. package/dist/esm-es5/pds-drawer-header.entry.js +1 -0
  259. package/dist/esm-es5/pds-drawer.entry.js +1 -0
  260. package/dist/esm-es5/pds-dropdown-menu-item.entry.js +1 -1
  261. package/dist/esm-es5/pds-dropdown-menu-separator.entry.js +1 -1
  262. package/dist/esm-es5/pds-dropdown-menu.entry.js +1 -1
  263. package/dist/esm-es5/pds-filter.entry.js +1 -1
  264. package/dist/esm-es5/pds-filters.entry.js +1 -1
  265. package/dist/esm-es5/pds-icon.entry.js +1 -1
  266. package/dist/esm-es5/pds-image.entry.js +1 -1
  267. package/dist/esm-es5/pds-input.entry.js +1 -1
  268. package/dist/esm-es5/pds-link.entry.js +1 -1
  269. package/dist/esm-es5/pds-loader.entry.js +1 -1
  270. package/dist/esm-es5/pds-modal-content.entry.js +1 -1
  271. package/dist/esm-es5/pds-modal-footer.entry.js +1 -1
  272. package/dist/esm-es5/pds-modal-header.entry.js +1 -1
  273. package/dist/esm-es5/pds-modal.entry.js +1 -1
  274. package/dist/esm-es5/pds-multiselect.entry.js +1 -1
  275. package/dist/esm-es5/pds-popover.entry.js +1 -1
  276. package/dist/esm-es5/pds-progress.entry.js +1 -1
  277. package/dist/esm-es5/pds-property.entry.js +1 -1
  278. package/dist/esm-es5/pds-radio-group.entry.js +1 -1
  279. package/dist/esm-es5/pds-radio.entry.js +1 -1
  280. package/dist/esm-es5/pds-row.entry.js +1 -1
  281. package/dist/esm-es5/pds-select.entry.js +1 -1
  282. package/dist/esm-es5/pds-sortable-item.entry.js +1 -1
  283. package/dist/esm-es5/pds-sortable.entry.js +2 -2
  284. package/dist/esm-es5/pds-switch.entry.js +1 -1
  285. package/dist/esm-es5/pds-tab.entry.js +1 -1
  286. package/dist/esm-es5/pds-table-body.entry.js +1 -1
  287. package/dist/esm-es5/pds-table-cell.entry.js +1 -1
  288. package/dist/esm-es5/pds-table-head-cell.entry.js +1 -1
  289. package/dist/esm-es5/pds-table-head.entry.js +1 -1
  290. package/dist/esm-es5/pds-table-row.entry.js +1 -1
  291. package/dist/esm-es5/pds-table.entry.js +1 -1
  292. package/dist/esm-es5/pds-tabpanel.entry.js +1 -1
  293. package/dist/esm-es5/pds-tabs.entry.js +1 -1
  294. package/dist/esm-es5/pds-text.entry.js +1 -1
  295. package/dist/esm-es5/pds-textarea.entry.js +1 -1
  296. package/dist/esm-es5/pds-toast.entry.js +1 -1
  297. package/dist/esm-es5/pds-tooltip.entry.js +1 -1
  298. package/dist/esm-es5/pine-core.js +1 -1
  299. package/dist/esm-es5/truncation-tooltip-CdtEBn_5.js +1 -0
  300. package/dist/pine-core/index.esm.js +1 -0
  301. package/dist/pine-core/p-003df3b3.entry.js +1 -0
  302. package/dist/pine-core/{p-92ef1608.system.entry.js → p-02452806.system.entry.js} +1 -1
  303. package/dist/pine-core/{p-5d585aa8.entry.js → p-026ee6de.entry.js} +1 -1
  304. package/dist/pine-core/{p-463eb0e6.system.entry.js → p-03f3fc92.system.entry.js} +1 -1
  305. package/dist/pine-core/p-06375326.system.entry.js +1 -0
  306. package/dist/pine-core/p-08196d6c.entry.js +1 -0
  307. package/dist/pine-core/{p-bf3afa16.system.entry.js → p-089606b8.system.entry.js} +1 -1
  308. package/dist/pine-core/p-12941e0d.entry.js +1 -0
  309. package/dist/pine-core/{p-3b9e77b3.entry.js → p-13bb89ff.entry.js} +1 -1
  310. package/dist/pine-core/{p-1649dd61.system.entry.js → p-15a0fa0a.system.entry.js} +1 -1
  311. package/dist/pine-core/{p-3050c66f.entry.js → p-1abae35f.entry.js} +1 -1
  312. package/dist/pine-core/p-1df5e088.entry.js +1 -0
  313. package/dist/pine-core/{p-460aa66f.system.entry.js → p-20753e42.system.entry.js} +1 -1
  314. package/dist/pine-core/{p-12ec8186.system.entry.js → p-24214ab9.system.entry.js} +1 -1
  315. package/dist/pine-core/p-250011ba.entry.js +1 -0
  316. package/dist/pine-core/{p-9b68669f.entry.js → p-2b420257.entry.js} +1 -1
  317. package/dist/pine-core/{p-86bc2a0c.entry.js → p-2bb101c2.entry.js} +1 -1
  318. package/dist/pine-core/{p-6089d811.entry.js → p-2dbc90ba.entry.js} +1 -1
  319. package/dist/pine-core/{p-2fd71a0c.entry.js → p-317337e4.entry.js} +1 -1
  320. package/dist/pine-core/{p-a9e54964.entry.js → p-32fc82c2.entry.js} +1 -1
  321. package/dist/pine-core/{p-714bfdbd.entry.js → p-35edd8b0.entry.js} +1 -1
  322. package/dist/pine-core/p-375eb7f4.entry.js +1 -0
  323. package/dist/pine-core/{p-e1653d75.system.entry.js → p-3b555f06.system.entry.js} +1 -1
  324. package/dist/pine-core/p-3b796898.entry.js +1 -0
  325. package/dist/pine-core/{p-c0753d9f.entry.js → p-3c5489ce.entry.js} +1 -1
  326. package/dist/pine-core/{p-8702635d.system.entry.js → p-3e868906.system.entry.js} +1 -1
  327. package/dist/pine-core/{p-eb4058ed.system.entry.js → p-441682f4.system.entry.js} +1 -1
  328. package/dist/pine-core/{p-7b1e3e91.entry.js → p-44222439.entry.js} +1 -1
  329. package/dist/pine-core/p-45d55983.entry.js +1 -0
  330. package/dist/pine-core/{p-544ccf67.entry.js → p-464f23e6.entry.js} +1 -1
  331. package/dist/pine-core/{p-aecaff12.entry.js → p-49c6112a.entry.js} +1 -1
  332. package/dist/pine-core/p-4bd57896.system.entry.js +1 -0
  333. package/dist/pine-core/{p-b0531455.entry.js → p-4cbb691f.entry.js} +1 -1
  334. package/dist/pine-core/{p-46f0dda5.system.entry.js → p-4ebdb90b.system.entry.js} +1 -1
  335. package/dist/pine-core/{p-b109de2e.entry.js → p-4f5aacd9.entry.js} +1 -1
  336. package/dist/pine-core/{p-9187c26c.system.entry.js → p-55532d56.system.entry.js} +1 -1
  337. package/dist/pine-core/{p-f35596cd.entry.js → p-558ac401.entry.js} +1 -1
  338. package/dist/pine-core/{p-c09dab1a.system.entry.js → p-57784f2f.system.entry.js} +1 -1
  339. package/dist/pine-core/p-5a8345e2.entry.js +1 -0
  340. package/dist/pine-core/{p-4923a3fe.entry.js → p-5c5bd609.entry.js} +1 -1
  341. package/dist/pine-core/p-5d2f95bd.entry.js +1 -0
  342. package/dist/pine-core/p-5f3d0c86.system.entry.js +1 -0
  343. package/dist/pine-core/{p-a3c4c0ee.entry.js → p-5f5339ab.entry.js} +1 -1
  344. package/dist/pine-core/{p-bfa640f4.system.entry.js → p-67fc26e5.system.entry.js} +1 -1
  345. package/dist/pine-core/p-6a6a767b.system.entry.js +1 -0
  346. package/dist/pine-core/p-6b260a97.entry.js +1 -0
  347. package/dist/pine-core/{p-d804d37b.system.entry.js → p-6b3d8c2b.system.entry.js} +1 -1
  348. package/dist/pine-core/p-6dabeebc.system.entry.js +3 -0
  349. package/dist/pine-core/{p-d157a33a.entry.js → p-70891202.entry.js} +1 -1
  350. package/dist/pine-core/p-70fb83d4.entry.js +1 -0
  351. package/dist/pine-core/{p-7a1971ec.entry.js → p-73c3a73f.entry.js} +1 -1
  352. package/dist/pine-core/p-73fa955a.system.entry.js +1 -0
  353. package/dist/pine-core/p-755e0b3c.system.entry.js +1 -0
  354. package/dist/pine-core/p-77082557.system.entry.js +1 -0
  355. package/dist/pine-core/{p-65557500.entry.js → p-7e4729e0.entry.js} +1 -1
  356. package/dist/pine-core/p-8b051229.entry.js +1 -0
  357. package/dist/pine-core/{p-c713ffc6.system.entry.js → p-8d1e7b3c.system.entry.js} +1 -1
  358. package/dist/pine-core/{p-63f5f66f.system.entry.js → p-8d8a8550.system.entry.js} +1 -1
  359. package/dist/pine-core/{p-2d4b9253.entry.js → p-93486f2e.entry.js} +1 -1
  360. package/dist/pine-core/{p-b255d3b7.entry.js → p-93ae562d.entry.js} +1 -1
  361. package/dist/pine-core/{p-ce79321b.system.entry.js → p-93c52e2b.system.entry.js} +1 -1
  362. package/dist/pine-core/{p-08151143.system.entry.js → p-95b8bece.system.entry.js} +1 -1
  363. package/dist/pine-core/{p-af4a24d9.entry.js → p-95defb53.entry.js} +1 -1
  364. package/dist/pine-core/{p-92c79ed4.system.entry.js → p-99f300ef.system.entry.js} +1 -1
  365. package/dist/pine-core/p-9d77f2f8.system.entry.js +1 -0
  366. package/dist/pine-core/p-9d902000.system.entry.js +1 -0
  367. package/dist/pine-core/p-9ef355b7.entry.js +1 -0
  368. package/dist/pine-core/p-B2nn1gSd.js +1 -0
  369. package/dist/pine-core/{p-CRCxGYgw.system.js → p-B2qvvB3q.system.js} +1 -1
  370. package/dist/pine-core/p-BI7Ml0VF.system.js +1 -0
  371. package/dist/pine-core/p-CJ8t3EBJ.system.js +2 -0
  372. package/dist/pine-core/p-DcT8--Dn.js +2 -0
  373. package/dist/pine-core/p-G3CPPJEt.system.js +1 -0
  374. package/dist/pine-core/p-a009ab10.system.entry.js +1 -0
  375. package/dist/pine-core/p-a616385b.system.entry.js +1 -0
  376. package/dist/pine-core/{p-bba759f8.system.entry.js → p-a6a269da.system.entry.js} +1 -1
  377. package/dist/pine-core/p-a8cd2ab5.entry.js +1 -0
  378. package/dist/pine-core/p-a8f1a48d.entry.js +1 -0
  379. package/dist/pine-core/p-b0becff3.system.entry.js +1 -0
  380. package/dist/pine-core/p-b45b8f8b.system.entry.js +1 -0
  381. package/dist/pine-core/{p-e16dfb32.system.entry.js → p-b53d9620.system.entry.js} +1 -1
  382. package/dist/pine-core/p-b85bb61d.system.entry.js +1 -0
  383. package/dist/pine-core/{p-ae296598.entry.js → p-b8a5597d.entry.js} +1 -1
  384. package/dist/pine-core/p-b9a857fc.system.entry.js +1 -0
  385. package/dist/pine-core/p-bd9b2931.system.entry.js +1 -0
  386. package/dist/pine-core/p-bdded57a.system.entry.js +1 -0
  387. package/dist/pine-core/{p-4dad0878.entry.js → p-bf025e38.entry.js} +1 -1
  388. package/dist/pine-core/{p-0fcda1ec.entry.js → p-c08b1697.entry.js} +1 -1
  389. package/dist/pine-core/p-c1a65082.entry.js +1 -0
  390. package/dist/pine-core/p-c1d1befb.system.entry.js +1 -0
  391. package/dist/pine-core/{p-1e952dbb.entry.js → p-c5b6b545.entry.js} +2 -2
  392. package/dist/pine-core/{p-ce63f726.system.entry.js → p-c6426e16.system.entry.js} +1 -1
  393. package/dist/pine-core/{p-d54af26c.system.entry.js → p-cfcb89d1.system.entry.js} +1 -1
  394. package/dist/pine-core/{p-aa208514.entry.js → p-d33d65f6.entry.js} +1 -1
  395. package/dist/pine-core/p-d70aa0c7.system.entry.js +1 -0
  396. package/dist/pine-core/{p-902b3e8b.system.entry.js → p-d9c1ee36.system.entry.js} +1 -1
  397. package/dist/pine-core/{p-e450eb27.system.entry.js → p-df285ece.system.entry.js} +1 -1
  398. package/dist/pine-core/{p-04a30a2d.system.entry.js → p-e039ebb6.system.entry.js} +1 -1
  399. package/dist/pine-core/{p-4d6944aa.entry.js → p-e055c543.entry.js} +1 -1
  400. package/dist/pine-core/{p-2af19aa7.entry.js → p-e08e4ca7.entry.js} +1 -1
  401. package/dist/pine-core/p-ea986474.system.entry.js +1 -0
  402. package/dist/pine-core/{p-afd07d5b.entry.js → p-ec04d4c3.entry.js} +1 -1
  403. package/dist/pine-core/p-ee114aef.entry.js +1 -0
  404. package/dist/pine-core/{p-d415bb01.entry.js → p-ee997fbf.entry.js} +2 -2
  405. package/dist/pine-core/{p-8e6a8a8e.entry.js → p-f1365550.entry.js} +1 -1
  406. package/dist/pine-core/{p-fcf91f14.system.entry.js → p-f26dcbc2.system.entry.js} +1 -1
  407. package/dist/pine-core/{p-cf72e9b1.system.entry.js → p-f5cf98be.system.entry.js} +1 -1
  408. package/dist/pine-core/{p-b17fa86a.system.entry.js → p-f682f08a.system.entry.js} +1 -1
  409. package/dist/pine-core/p-f89197c9.entry.js +1 -0
  410. package/dist/pine-core/p-f9f7101e.entry.js +1 -0
  411. package/dist/pine-core/{p-226232a7.system.entry.js → p-fa2a786d.system.entry.js} +1 -1
  412. package/dist/pine-core/{p-7c18e9e8.system.entry.js → p-fa8d3155.system.entry.js} +2 -2
  413. package/dist/pine-core/p-fb774f89.system.entry.js +1 -0
  414. package/dist/pine-core/{p-ba8bd9dc.system.entry.js → p-fbb72e66.system.entry.js} +1 -1
  415. package/dist/pine-core/pine-core.css +1 -1
  416. package/dist/pine-core/pine-core.esm.js +1 -1
  417. package/dist/pine-core/pine-core.js +1 -1
  418. package/dist/types/components/pds-chip/pds-chip.d.ts +12 -0
  419. package/dist/types/components/pds-drawer/pds-drawer-content/pds-drawer-content.d.ts +11 -0
  420. package/dist/types/components/pds-drawer/pds-drawer-footer/pds-drawer-footer.d.ts +5 -0
  421. package/dist/types/components/pds-drawer/pds-drawer-header/pds-drawer-header.d.ts +5 -0
  422. package/dist/types/components/pds-drawer/pds-drawer.d.ts +78 -0
  423. package/dist/types/components/pds-modal/pds-modal.d.ts +47 -2
  424. package/dist/types/components/pds-table/pds-table-cell/pds-table-cell.d.ts +2 -1
  425. package/dist/types/components/pds-text/pds-text.d.ts +2 -1
  426. package/dist/types/components.d.ts +253 -11
  427. package/dist/types/index.d.ts +1 -0
  428. package/dist/types/utils/test/reduced-motion.d.ts +30 -0
  429. package/dist/types/utils/truncation-tooltip.d.ts +12 -0
  430. package/dist/types/utils/types.d.ts +2 -1
  431. package/dist/types/utils/utils.d.ts +16 -1
  432. package/dist/vscode.html-data.json +169 -6
  433. package/hydrate/index.js +623 -115
  434. package/hydrate/index.mjs +623 -115
  435. package/package.json +7 -3
  436. package/dist/esm-es5/truncation-tooltip-Blk4GigP.js +0 -1
  437. package/dist/pine-core/p-056667f0.entry.js +0 -1
  438. package/dist/pine-core/p-0d73d473.entry.js +0 -1
  439. package/dist/pine-core/p-0e89a189.entry.js +0 -1
  440. package/dist/pine-core/p-1ba361cb.entry.js +0 -1
  441. package/dist/pine-core/p-210f0994.system.entry.js +0 -1
  442. package/dist/pine-core/p-222ff58e.system.entry.js +0 -1
  443. package/dist/pine-core/p-228a9068.system.entry.js +0 -1
  444. package/dist/pine-core/p-2e214db6.entry.js +0 -1
  445. package/dist/pine-core/p-33de0eb7.system.entry.js +0 -1
  446. package/dist/pine-core/p-3aec9079.entry.js +0 -1
  447. package/dist/pine-core/p-3cdc1a5b.entry.js +0 -1
  448. package/dist/pine-core/p-4faff617.entry.js +0 -1
  449. package/dist/pine-core/p-50e0f726.system.entry.js +0 -1
  450. package/dist/pine-core/p-520f7a5b.entry.js +0 -1
  451. package/dist/pine-core/p-53999cd6.system.entry.js +0 -1
  452. package/dist/pine-core/p-5c239f0a.entry.js +0 -1
  453. package/dist/pine-core/p-611f68b7.system.entry.js +0 -1
  454. package/dist/pine-core/p-7691a875.system.entry.js +0 -3
  455. package/dist/pine-core/p-85434de8.system.entry.js +0 -1
  456. package/dist/pine-core/p-897fe88c.entry.js +0 -1
  457. package/dist/pine-core/p-9487ff20.system.entry.js +0 -1
  458. package/dist/pine-core/p-9507eb49.system.entry.js +0 -1
  459. package/dist/pine-core/p-97198cb6.system.entry.js +0 -1
  460. package/dist/pine-core/p-9a7294e7.system.entry.js +0 -1
  461. package/dist/pine-core/p-9fd1e8f4.system.entry.js +0 -1
  462. package/dist/pine-core/p-BNSGedhN.js +0 -1
  463. package/dist/pine-core/p-CTLu1TM4.js +0 -2
  464. package/dist/pine-core/p-DAIsVNlL.system.js +0 -2
  465. package/dist/pine-core/p-Dr-FzkdE.system.js +0 -1
  466. package/dist/pine-core/p-YWpyar7R.system.js +0 -1
  467. package/dist/pine-core/p-a53222f7.entry.js +0 -1
  468. package/dist/pine-core/p-a7eabc0c.system.entry.js +0 -1
  469. package/dist/pine-core/p-a8ab4d9b.entry.js +0 -1
  470. package/dist/pine-core/p-b52deffb.entry.js +0 -1
  471. package/dist/pine-core/p-b6c2090f.system.entry.js +0 -1
  472. package/dist/pine-core/p-d27ef352.system.entry.js +0 -1
  473. package/dist/pine-core/p-e11795db.system.entry.js +0 -1
  474. package/dist/pine-core/p-f09ce49e.entry.js +0 -1
  475. package/dist/pine-core/p-f3683be8.entry.js +0 -1
  476. /package/dist/esm-es5/{index-Bu9gFIxM.js → index-BU1hN5Vy.js} +0 -0
  477. /package/dist/esm-es5/{utils-tJa4KYNO.js → utils-u_0lxWnH.js} +0 -0
  478. /package/dist/pine-core/{p-Bu9gFIxM.js → p-BU1hN5Vy.js} +0 -0
  479. /package/dist/pine-core/{p-BG6uGRQj.system.js → p-D_I-k33A.system.js} +0 -0
  480. /package/dist/pine-core/{p-Bjc6fc_Y.system.js → p-ctdGub9B.system.js} +0 -0
  481. /package/dist/pine-core/{p-tJa4KYNO.js → p-u_0lxWnH.js} +0 -0
@@ -1,9 +1,22 @@
1
1
  import { downSmall, remove } from "@pine-ds/icons/icons";
2
2
  import { Host, h } from "@stencil/core";
3
3
  import { setupTruncationTooltip } from "../../utils/truncation-tooltip";
4
+ import { normalizeColorValue } from "../../utils/utils";
5
+ const SENTIMENT_DOT_COLORS = {
6
+ accent: 'var(--pine-chip-color-accent-dot)',
7
+ danger: 'var(--pine-chip-color-danger-dot)',
8
+ info: 'var(--pine-chip-color-info-dot)',
9
+ neutral: 'var(--pine-chip-color-neutral-dot)',
10
+ solid: 'var(--pine-chip-color-solid-dot)',
11
+ subtle: 'var(--pine-chip-color-subtle-dot)',
12
+ success: 'var(--pine-chip-color-success-dot)',
13
+ warning: 'var(--pine-chip-color-warning-dot)',
14
+ };
4
15
  /**
5
16
  * @slot (default) - The chip's label text.
6
17
  * @part button
18
+ * @part dot - Exposes the dot for styling, such as a custom color. Appears only when `dot` is set.
19
+ * @part icon - Exposes the icon component for styling, such as a custom color. Appears only when `icon` is set.
7
20
  */
8
21
  export class PdsChip {
9
22
  constructor() {
@@ -60,6 +73,11 @@ export class PdsChip {
60
73
  hostEl: this.el,
61
74
  contentEl: this.labelTextEl,
62
75
  getTooltipText: () => this.el.textContent || '',
76
+ // The dropdown variant's label span already sits inside
77
+ // `<button class="pds-chip__button">`, which is already focusable and
78
+ // bubbles focusin to the host — a tabindex on the span too would nest
79
+ // a second tab stop inside the button.
80
+ manageTabIndex: this.effectiveVariant !== 'dropdown',
63
81
  });
64
82
  this.tooltipBoundEl = this.labelTextEl;
65
83
  }
@@ -110,11 +128,15 @@ export class PdsChip {
110
128
  // node — and a plain `<pds-chip>Some text</pds-chip>` slots text with no
111
129
  // wrapping element. Wrapping the slot itself in an internal span gives
112
130
  // maxWidth something to ellipsize regardless of what's slotted.
113
- // A focus-triggered tooltip needs a focusable anchor. The dropdown's own
114
- // button already takes focus (focusin bubbles to the host), so only the
115
- // text/tag label span needs a tabindex — and only when it can truncate.
116
- const labelTabindex = this.maxWidth ? '0' : undefined;
117
- const chipContent = isDropdown ? (h("button", { class: "pds-chip__button", type: "button", part: "button" }, this.icon && h("pds-icon", { icon: this.icon, size: this.iconSize, "aria-hidden": "true" }), showDot && h("i", { class: "pds-chip__dot", "aria-hidden": "true" }), h("span", { class: "pds-chip__label-text", ref: (el) => (this.labelTextEl = el) }, h("slot", null)), h("pds-icon", { icon: downSmall, size: this.iconSize, "aria-hidden": "true" }))) : (h("span", { class: "pds-chip__label" }, this.icon && h("pds-icon", { icon: this.icon, size: this.iconSize, "aria-hidden": "true" }), showDot && h("i", { class: "pds-chip__dot", "aria-hidden": "true" }), h("span", { class: "pds-chip__label-text", tabindex: labelTabindex, ref: (el) => (this.labelTextEl = el) }, h("slot", null))));
131
+ // A focus-triggered tooltip needs a focusable anchor, but the label span
132
+ // only earns a tab stop while its text is actually clipped — a chip whose
133
+ // label fits has nothing to reveal. setupTruncationTooltip owns that
134
+ // tabindex off the measurement for every variant except dropdown: its
135
+ // label span already sits inside `<button class="pds-chip__button">`,
136
+ // which is already focusable and bubbles focusin to the host, so
137
+ // initTruncationTooltip passes `manageTabIndex: false` there to avoid
138
+ // nesting a second tab stop inside the button.
139
+ const chipContent = isDropdown ? (h("button", { class: "pds-chip__button", type: "button", part: "button" }, this.icon && h("pds-icon", { class: "pds-chip__icon", part: "icon", icon: this.icon, size: this.iconSize, "aria-hidden": "true" }), showDot && h("i", { class: "pds-chip__dot", part: "dot", "aria-hidden": "true" }), h("span", { class: "pds-chip__label-text", ref: (el) => (this.labelTextEl = el) }, h("slot", null)), h("pds-icon", { icon: downSmall, size: this.iconSize, "aria-hidden": "true" }))) : (h("span", { class: "pds-chip__label" }, this.icon && h("pds-icon", { class: "pds-chip__icon", part: "icon", icon: this.icon, size: this.iconSize, "aria-hidden": "true" }), showDot && h("i", { class: "pds-chip__dot", part: "dot", "aria-hidden": "true" }), h("span", { class: "pds-chip__label-text", ref: (el) => (this.labelTextEl = el) }, h("slot", null))));
118
140
  return chipContent;
119
141
  }
120
142
  get hostStyles() {
@@ -123,7 +145,21 @@ export class PdsChip {
123
145
  // query) without !important — the same pattern pds-box uses for min-width.
124
146
  // The width and the min-width/box-sizing that make it work are applied in
125
147
  // pds-chip.scss under :host([max-width]).
126
- return this.maxWidth ? { '--pds-chip-max-width': this.maxWidth } : {};
148
+ const styles = {};
149
+ if (this.maxWidth) {
150
+ styles['--pds-chip-max-width'] = this.maxWidth;
151
+ }
152
+ // Custom properties rather than inline colors on the dot/icon, so a
153
+ // consumer's ::part(dot) or ::part(icon) rule still wins over the prop.
154
+ const dotColor = normalizeColorValue(this.dotColor, { semanticMap: SENTIMENT_DOT_COLORS });
155
+ if (dotColor !== undefined) {
156
+ styles['--pds-chip-dot-color'] = dotColor;
157
+ }
158
+ const iconColor = normalizeColorValue(this.iconColor, { semanticMap: SENTIMENT_DOT_COLORS });
159
+ if (iconColor !== undefined) {
160
+ styles['--pds-chip-icon-color'] = iconColor;
161
+ }
162
+ return styles;
127
163
  }
128
164
  renderCloseButton() {
129
165
  const CloseElement = this.removeUrl ? 'a' : 'button';
@@ -170,7 +206,7 @@ export class PdsChip {
170
206
  return (h(CloseElement, Object.assign({}, closeAttributes(), { onClick: this.handleCloseClick }), h("pds-icon", { icon: remove, size: this.iconSize })));
171
207
  }
172
208
  render() {
173
- return (h(Host, { key: 'fd689f64fe35685c7e8e0f5e73a01c8564ad3c66', class: this.classNames(), id: this.componentId, style: this.hostStyles }, this.setChipContent(), this.effectiveVariant === 'tag' && this.renderCloseButton()));
209
+ return (h(Host, { key: '323831a875b5f0e786e1e835c230d6950c71d009', class: this.classNames(), id: this.componentId, style: this.hostStyles }, this.setChipContent(), this.effectiveVariant === 'tag' && this.renderCloseButton()));
174
210
  }
175
211
  static get is() { return "pds-chip"; }
176
212
  static get encapsulation() { return "shadow"; }
@@ -228,6 +264,25 @@ export class PdsChip {
228
264
  "attribute": "dot",
229
265
  "defaultValue": "false"
230
266
  },
267
+ "dotColor": {
268
+ "type": "string",
269
+ "mutable": false,
270
+ "complexType": {
271
+ "original": "string",
272
+ "resolved": "string",
273
+ "references": {}
274
+ },
275
+ "required": false,
276
+ "optional": true,
277
+ "docs": {
278
+ "tags": [],
279
+ "text": "Sets the dot color. Accepts a sentiment name other than `brand` (e.g. `success`), a color token, or a [valid color value](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value).\nDefaults to the dot color of the chip's sentiment. Only applies when `dot` is set."
280
+ },
281
+ "getter": false,
282
+ "setter": false,
283
+ "reflect": false,
284
+ "attribute": "dot-color"
285
+ },
231
286
  "icon": {
232
287
  "type": "string",
233
288
  "mutable": false,
@@ -247,6 +302,25 @@ export class PdsChip {
247
302
  "reflect": false,
248
303
  "attribute": "icon"
249
304
  },
305
+ "iconColor": {
306
+ "type": "string",
307
+ "mutable": false,
308
+ "complexType": {
309
+ "original": "string",
310
+ "resolved": "string",
311
+ "references": {}
312
+ },
313
+ "required": false,
314
+ "optional": true,
315
+ "docs": {
316
+ "tags": [],
317
+ "text": "Sets the icon color. Accepts a sentiment name other than `brand` (e.g. `success`), a color token, or a [valid color value](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value).\nDefaults to the chip's text color. Only applies when `icon` is set."
318
+ },
319
+ "getter": false,
320
+ "setter": false,
321
+ "reflect": false,
322
+ "attribute": "icon-color"
323
+ },
250
324
  "size": {
251
325
  "type": "string",
252
326
  "mutable": false,
@@ -281,7 +355,7 @@ export class PdsChip {
281
355
  "mutable": false,
282
356
  "complexType": {
283
357
  "original": "ChipSentimentType",
284
- "resolved": "\"accent\" | \"brand\" | \"danger\" | \"info\" | \"neutral\" | \"success\" | \"warning\"",
358
+ "resolved": "\"accent\" | \"brand\" | \"danger\" | \"info\" | \"neutral\" | \"solid\" | \"subtle\" | \"success\" | \"warning\"",
285
359
  "references": {
286
360
  "ChipSentimentType": {
287
361
  "location": "import",
@@ -15,6 +15,14 @@
15
15
  --pine-chip-color-neutral-hover: var(--pine-color-grey-300);
16
16
  --pine-chip-color-neutral-dot: var(--pine-color-grey-600);
17
17
  --pine-chip-color-neutral-text: var(--pine-color-grey-950);
18
+ --pine-chip-color-solid: var(--pine-color-grey-900);
19
+ --pine-chip-color-solid-hover: var(--pine-color-grey-950);
20
+ --pine-chip-color-solid-dot: var(--pine-color-white);
21
+ --pine-chip-color-solid-text: var(--pine-color-white);
22
+ --pine-chip-color-subtle: var(--pine-color-white);
23
+ --pine-chip-color-subtle-hover: var(--pine-color-grey-300);
24
+ --pine-chip-color-subtle-dot: var(--pine-color-grey-900);
25
+ --pine-chip-color-subtle-text: var(--pine-color-grey-900);
18
26
  --pine-chip-color-success: var(--pine-color-green-100);
19
27
  --pine-chip-color-success-hover: var(--pine-color-green-300);
20
28
  --pine-chip-color-success-dot: var(--pine-color-green-600);
@@ -42,6 +50,14 @@
42
50
  --pine-chip-color-neutral-hover: var(--pine-color-grey-600);
43
51
  --pine-chip-color-neutral-dot: var(--pine-color-grey-300);
44
52
  --pine-chip-color-neutral-text: var(--pine-color-grey-100);
53
+ --pine-chip-color-solid: var(--pine-color-white);
54
+ --pine-chip-color-solid-hover: var(--pine-color-grey-100);
55
+ --pine-chip-color-solid-dot: var(--pine-color-grey-900);
56
+ --pine-chip-color-solid-text: var(--pine-color-grey-900);
57
+ --pine-chip-color-subtle: var(--pine-color-grey-900);
58
+ --pine-chip-color-subtle-hover: var(--pine-color-grey-500);
59
+ --pine-chip-color-subtle-dot: var(--pine-color-white);
60
+ --pine-chip-color-subtle-text: var(--pine-color-white);
45
61
  --pine-chip-color-success: var(--pine-color-green-900);
46
62
  --pine-chip-color-success-hover: var(--pine-color-green-800);
47
63
  --pine-chip-color-success-dot: var(--pine-color-green-400);
@@ -2,10 +2,24 @@ import { html } from 'lit';
2
2
 
3
3
 
4
4
  export default {
5
+ args: {
6
+ dotColor: '',
7
+ iconColor: '',
8
+ },
5
9
  argTypes: {
10
+ // `dot` and `icon` are also CSS part names; without these the parts
11
+ // entries replace the prop controls in the Controls panel.
12
+ dot: {
13
+ control: { type: 'boolean' },
14
+ table: { category: 'properties' },
15
+ },
16
+ icon: {
17
+ control: { type: 'text' },
18
+ table: { category: 'properties' },
19
+ },
6
20
  sentiment: {
7
21
  control: { type: 'select' },
8
- options: ['accent', 'brand', 'danger', 'info', 'neutral', 'success', 'warning'],
22
+ options: ['accent', 'brand', 'danger', 'info', 'neutral', 'solid', 'subtle', 'success', 'warning'],
9
23
  },
10
24
  size: {
11
25
  control: { type: 'select' },
@@ -25,7 +39,9 @@ const BaseTemplate = (args) => html`
25
39
  <pds-chip
26
40
  component-id="${args.componentId}"
27
41
  ?dot=${args.dot}
42
+ dot-color="${args.dotColor}"
28
43
  icon="${args.icon}"
44
+ icon-color="${args.iconColor}"
29
45
  size="${args.size}"
30
46
  sentiment="${args.sentiment}"
31
47
  variant="${args.variant}"
@@ -77,6 +93,28 @@ Icon.args = {
77
93
  variant: "text",
78
94
  }
79
95
 
96
+ export const DotColor = BaseTemplate.bind();
97
+ DotColor.args = {
98
+ dot: true,
99
+ dotColor: "success",
100
+ icon: "",
101
+ size: "md",
102
+ sentiment: "neutral",
103
+ slot: "Active",
104
+ variant: "text",
105
+ }
106
+
107
+ export const IconColor = BaseTemplate.bind();
108
+ IconColor.args = {
109
+ dot: false,
110
+ icon: "check",
111
+ iconColor: "success",
112
+ size: "md",
113
+ sentiment: "neutral",
114
+ slot: "Paid",
115
+ variant: "text",
116
+ }
117
+
80
118
  export const Dropdown = BaseTemplate.bind();
81
119
  Dropdown.args = {
82
120
  dot: false,
@@ -279,8 +279,7 @@
279
279
  --color-border-hover: var(--pine-color-accent-hover);
280
280
  --color-border-disabled: var(--pine-color-accent-disabled);
281
281
  --color-border-focus: var(--pine-color-accent);
282
- /* stylelint-disable-next-line pine-design-system/prefer-semantic-tokens */
283
- --color-text-default: var(--pine-color-white);
282
+ --color-text-default: var(--pine-color-text-primary);
284
283
  --color-text-disabled: var(--pine-color-text-accent-disabled);
285
284
  --color-outline: var(--pine-color-focus-ring);
286
285
  }
@@ -1935,7 +1935,7 @@ export class PdsCombobox {
1935
1935
  "mutable": false,
1936
1936
  "complexType": {
1937
1937
  "original": "ChipSentimentType",
1938
- "resolved": "\"accent\" | \"brand\" | \"danger\" | \"info\" | \"neutral\" | \"success\" | \"warning\"",
1938
+ "resolved": "\"accent\" | \"brand\" | \"danger\" | \"info\" | \"neutral\" | \"solid\" | \"subtle\" | \"success\" | \"warning\"",
1939
1939
  "references": {
1940
1940
  "ChipSentimentType": {
1941
1941
  "location": "import",
@@ -63,6 +63,10 @@ export class PdsCopytext {
63
63
  hostEl: this.el,
64
64
  contentEl: this.valueSpanEl,
65
65
  getTooltipText: () => this.value || '',
66
+ // valueSpanEl already sits inside the `<pds-button>` below, which is
67
+ // already focusable and bubbles focusin to the host — a tabindex on
68
+ // the span too would nest a second tab stop inside the button.
69
+ manageTabIndex: false,
66
70
  });
67
71
  }
68
72
  }
@@ -86,7 +90,7 @@ export class PdsCopytext {
86
90
  return classNames.join(' ');
87
91
  }
88
92
  render() {
89
- return (h(Host, { key: '43a3870fa4c24416e2e6e99dd7c423a5c32ac91e', class: this.classNames(), id: this.componentId }, h("pds-button", { key: 'f0735d3f245dd7150e88b3dd1a191c3ee86b6293', type: "button", variant: "unstyled", onClick: this.handleClick }, h("span", { key: 'ddf7cf205f9bb11dd4b4111435bb7efc15b0af61', ref: (el) => this.valueSpanEl = el }, this.value), h("pds-icon", { key: '7ba6d0452e1726ff951ec46433f838669961c277', "aria-hidden": "true", icon: copyIcon, size: "16px" }))));
93
+ return (h(Host, { key: '6e3ff4eb0dc42e57156a162196a06a675cac6f91', class: this.classNames(), id: this.componentId }, h("pds-button", { key: '749a8dde35eb3c70941229d11dc6477aaf717ed1', type: "button", variant: "unstyled", onClick: this.handleClick }, h("span", { key: '7f457a164f3ae76a37814d37d7b5e3fce86bd803', ref: (el) => this.valueSpanEl = el }, this.value), h("pds-icon", { key: '0ff6dad44148c23ee9d693e82880598b91b0630e', "aria-hidden": "true", icon: copyIcon, size: "16px" }))));
90
94
  }
91
95
  static get is() { return "pds-copytext"; }
92
96
  static get encapsulation() { return "shadow"; }
@@ -0,0 +1,22 @@
1
+ pds-drawer-content {
2
+ display: block;
3
+ flex: 1 1 auto;
4
+ min-height: 0;
5
+ width: 100%;
6
+ }
7
+
8
+ .pds-drawer-content {
9
+ box-sizing: border-box;
10
+ display: block;
11
+ height: 100%;
12
+ padding: var(--pine-dimension-md);
13
+ width: 100%;
14
+ }
15
+
16
+ .pds-modal--scrollable pds-drawer-content {
17
+ overflow-y: auto;
18
+ }
19
+
20
+ .pds-modal:not(.pds-modal--scrollable) pds-drawer-content {
21
+ overflow-y: visible;
22
+ }
@@ -0,0 +1,29 @@
1
+ import { h } from "@stencil/core";
2
+ import { unwrapReconnectedContent } from "../../../utils/reconnected-content";
3
+ /**
4
+ * Fills the drawer panel's height by default — unlike `pds-modal-content`,
5
+ * which caps itself against the viewport for a centered, possibly-shorter
6
+ * modal, a drawer panel is already edge-to-edge, so its content can simply
7
+ * flex to fill whatever space the header and footer leave.
8
+ */
9
+ export class PdsDrawerContent {
10
+ // Unwraps a nested .pds-drawer-content left by a page-cache (Turbo, bfcache) reconnect.
11
+ componentDidRender() {
12
+ unwrapReconnectedContent(this.el.querySelector('.pds-drawer-content'), '.pds-drawer-content');
13
+ }
14
+ render() {
15
+ return (h("div", { key: '432db626c93ab42365ec1af83562eec7ae1c4674', class: "pds-drawer-content" }, h("slot", { key: '901ab074f31726023add709a4953bddb43842de2' })));
16
+ }
17
+ static get is() { return "pds-drawer-content"; }
18
+ static get originalStyleUrls() {
19
+ return {
20
+ "$": ["pds-drawer-content.scss"]
21
+ };
22
+ }
23
+ static get styleUrls() {
24
+ return {
25
+ "$": ["pds-drawer-content.css"]
26
+ };
27
+ }
28
+ static get elementRef() { return "el"; }
29
+ }
@@ -0,0 +1,15 @@
1
+ pds-drawer-footer {
2
+ display: block;
3
+ flex: 0 0 auto;
4
+ width: 100%;
5
+ }
6
+
7
+ .pds-drawer__footer {
8
+ border-block-start: 1px solid var(--pine-color-border-subtle);
9
+ box-sizing: border-box;
10
+ display: flex;
11
+ gap: var(--pine-dimension-sm);
12
+ justify-content: flex-end;
13
+ padding: var(--pine-dimension-md);
14
+ width: 100%;
15
+ }
@@ -0,0 +1,23 @@
1
+ import { h } from "@stencil/core";
2
+ import { unwrapReconnectedContent } from "../../../utils/reconnected-content";
3
+ export class PdsDrawerFooter {
4
+ // Unwraps a nested .pds-drawer__footer left by a page-cache (Turbo, bfcache) reconnect.
5
+ componentDidRender() {
6
+ unwrapReconnectedContent(this.el.querySelector('.pds-drawer__footer'), '.pds-drawer__footer');
7
+ }
8
+ render() {
9
+ return (h("footer", { key: '71cb35f7b1ccba9e4187eb8942771741f13510dc', class: "pds-drawer__footer" }, h("slot", { key: '28927c76ee8194c44f416ee5d4e9ea2e0376bf5a' })));
10
+ }
11
+ static get is() { return "pds-drawer-footer"; }
12
+ static get originalStyleUrls() {
13
+ return {
14
+ "$": ["pds-drawer-footer.scss"]
15
+ };
16
+ }
17
+ static get styleUrls() {
18
+ return {
19
+ "$": ["pds-drawer-footer.css"]
20
+ };
21
+ }
22
+ static get elementRef() { return "el"; }
23
+ }
@@ -0,0 +1,15 @@
1
+ pds-drawer-header {
2
+ display: block;
3
+ flex: 0 0 auto;
4
+ width: 100%;
5
+ }
6
+
7
+ .pds-drawer__header {
8
+ align-items: center;
9
+ border-block-end: 1px solid var(--pine-color-border-subtle);
10
+ box-sizing: border-box;
11
+ display: flex;
12
+ justify-content: space-between;
13
+ padding: var(--pine-dimension-md);
14
+ width: 100%;
15
+ }
@@ -0,0 +1,23 @@
1
+ import { h } from "@stencil/core";
2
+ import { unwrapReconnectedContent } from "../../../utils/reconnected-content";
3
+ export class PdsDrawerHeader {
4
+ // Unwraps a nested .pds-drawer__header left by a page-cache (Turbo, bfcache) reconnect.
5
+ componentDidRender() {
6
+ unwrapReconnectedContent(this.el.querySelector('.pds-drawer__header'), '.pds-drawer__header');
7
+ }
8
+ render() {
9
+ return (h("header", { key: '48d0585e0e20c9d3142635f0fc0184c0803413b8', class: "pds-drawer__header" }, h("slot", { key: '14d9d0bde0116c81892140b22a2b6e9a2b1d969f' })));
10
+ }
11
+ static get is() { return "pds-drawer-header"; }
12
+ static get originalStyleUrls() {
13
+ return {
14
+ "$": ["pds-drawer-header.scss"]
15
+ };
16
+ }
17
+ static get styleUrls() {
18
+ return {
19
+ "$": ["pds-drawer-header.css"]
20
+ };
21
+ }
22
+ static get elementRef() { return "el"; }
23
+ }
@@ -0,0 +1,36 @@
1
+ .pds-drawer__modal > .pds-modal__backdrop {
2
+ align-items: stretch;
3
+ background-color: transparent;
4
+ pointer-events: none;
5
+ }
6
+ @supports (backdrop-filter: blur(3px)) {
7
+ .pds-drawer__modal > .pds-modal__backdrop {
8
+ backdrop-filter: none;
9
+ }
10
+ }
11
+
12
+ .pds-drawer__modal > .pds-modal__backdrop > .pds-modal {
13
+ border-radius: 0;
14
+ height: 100%;
15
+ margin: 0;
16
+ max-height: 100%;
17
+ max-width: 100%;
18
+ pointer-events: auto;
19
+ width: var(--pds-drawer-width, 500px);
20
+ }
21
+
22
+ .pds-drawer {
23
+ display: contents;
24
+ }
25
+ .pds-drawer.pds-drawer--end .pds-drawer__modal > .pds-modal__backdrop {
26
+ justify-content: flex-end;
27
+ }
28
+ .pds-drawer.pds-drawer--start .pds-drawer__modal > .pds-modal__backdrop {
29
+ justify-content: flex-start;
30
+ }
31
+ .pds-drawer.pds-drawer--sm {
32
+ --pds-drawer-width: 360px;
33
+ }
34
+ .pds-drawer.pds-drawer--md {
35
+ --pds-drawer-width: 500px;
36
+ }