@pine-ds/core 4.2.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 (345) hide show
  1. package/components/mock-pds-modal.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-icon2.js +1 -1
  7. package/components/pds-modal2.js +1 -1
  8. package/components/pds-progress.js +1 -1
  9. package/components/pds-radio.js +1 -1
  10. package/dist/cjs/{index-CuQil7H0.js → index-CaLa1zy9.js} +1 -1
  11. package/dist/cjs/{index-Bu3NXpbK.js → index-DYvijwA6.js} +1 -1
  12. package/dist/cjs/loader.cjs.js +2 -2
  13. package/dist/cjs/mock-pds-modal.cjs.entry.js +2 -2
  14. package/dist/cjs/pds-accordion.cjs.entry.js +2 -2
  15. package/dist/cjs/pds-alert.cjs.entry.js +1 -1
  16. package/dist/cjs/pds-avatar.cjs.entry.js +2 -2
  17. package/dist/cjs/pds-box.cjs.entry.js +2 -2
  18. package/dist/cjs/pds-button.cjs.entry.js +4 -4
  19. package/dist/cjs/pds-checkbox.cjs.entry.js +3 -3
  20. package/dist/cjs/pds-chip.cjs.entry.js +32 -7
  21. package/dist/cjs/pds-combobox.cjs.entry.js +3 -3
  22. package/dist/cjs/pds-container.cjs.entry.js +1 -1
  23. package/dist/cjs/pds-copytext.cjs.entry.js +2 -2
  24. package/dist/cjs/pds-divider.cjs.entry.js +1 -1
  25. package/dist/cjs/pds-drawer-content.cjs.entry.js +1 -1
  26. package/dist/cjs/pds-drawer-footer.cjs.entry.js +1 -1
  27. package/dist/cjs/pds-drawer-header.cjs.entry.js +1 -1
  28. package/dist/cjs/pds-drawer.cjs.entry.js +1 -1
  29. package/dist/cjs/pds-dropdown-menu-item.cjs.entry.js +1 -1
  30. package/dist/cjs/pds-dropdown-menu-separator.cjs.entry.js +1 -1
  31. package/dist/cjs/pds-dropdown-menu.cjs.entry.js +1 -1
  32. package/dist/cjs/pds-filter.cjs.entry.js +2 -2
  33. package/dist/cjs/pds-filters.cjs.entry.js +1 -1
  34. package/dist/cjs/pds-icon.cjs.entry.js +2 -2
  35. package/dist/cjs/pds-image.cjs.entry.js +1 -1
  36. package/dist/cjs/pds-input.cjs.entry.js +3 -3
  37. package/dist/cjs/pds-link.cjs.entry.js +3 -3
  38. package/dist/cjs/pds-loader.cjs.entry.js +1 -1
  39. package/dist/cjs/pds-modal-content.cjs.entry.js +1 -1
  40. package/dist/cjs/pds-modal-footer.cjs.entry.js +1 -1
  41. package/dist/cjs/pds-modal-header.cjs.entry.js +1 -1
  42. package/dist/cjs/pds-modal.cjs.entry.js +35 -7
  43. package/dist/cjs/pds-multiselect.cjs.entry.js +3 -3
  44. package/dist/cjs/pds-popover.cjs.entry.js +1 -1
  45. package/dist/cjs/pds-progress.cjs.entry.js +4 -2
  46. package/dist/cjs/pds-property.cjs.entry.js +1 -1
  47. package/dist/cjs/pds-radio-group.cjs.entry.js +2 -2
  48. package/dist/cjs/pds-radio.cjs.entry.js +3 -3
  49. package/dist/cjs/pds-row.cjs.entry.js +1 -1
  50. package/dist/cjs/pds-select.cjs.entry.js +2 -2
  51. package/dist/cjs/pds-sortable-item.cjs.entry.js +2 -2
  52. package/dist/cjs/pds-sortable.cjs.entry.js +1 -1
  53. package/dist/cjs/pds-switch.cjs.entry.js +2 -2
  54. package/dist/cjs/pds-tab.cjs.entry.js +1 -1
  55. package/dist/cjs/pds-table-body.cjs.entry.js +1 -1
  56. package/dist/cjs/pds-table-cell.cjs.entry.js +1 -1
  57. package/dist/cjs/pds-table-head-cell.cjs.entry.js +2 -2
  58. package/dist/cjs/pds-table-head.cjs.entry.js +1 -1
  59. package/dist/cjs/pds-table-row.cjs.entry.js +1 -1
  60. package/dist/cjs/pds-table.cjs.entry.js +1 -1
  61. package/dist/cjs/pds-tabpanel.cjs.entry.js +1 -1
  62. package/dist/cjs/pds-tabs.cjs.entry.js +1 -1
  63. package/dist/cjs/pds-text.cjs.entry.js +2 -2
  64. package/dist/cjs/pds-textarea.cjs.entry.js +3 -3
  65. package/dist/cjs/pds-toast.cjs.entry.js +1 -1
  66. package/dist/cjs/pds-tooltip.cjs.entry.js +1 -1
  67. package/dist/cjs/pine-core.cjs.js +2 -2
  68. package/dist/cjs/{utils-7jx8T2mW.js → utils-KWALOgy9.js} +16 -2
  69. package/dist/collection/components/pds-button/pds-button.css +1 -2
  70. package/dist/collection/components/pds-checkbox/pds-checkbox.css +6 -4
  71. package/dist/collection/components/pds-chip/pds-chip.css +60 -6
  72. package/dist/collection/components/pds-chip/pds-chip.js +69 -4
  73. package/dist/collection/components/pds-chip/pds-chip.tokens.css +16 -0
  74. package/dist/collection/components/pds-chip/stories/pds-chip.stories.js +39 -1
  75. package/dist/collection/components/pds-combobox/pds-combobox.css +1 -2
  76. package/dist/collection/components/pds-combobox/pds-combobox.js +1 -1
  77. package/dist/collection/components/pds-modal/pds-modal.css +4 -0
  78. package/dist/collection/components/pds-modal/pds-modal.js +48 -9
  79. package/dist/collection/components/pds-modal/stories/pds-modal.stories.js +14 -0
  80. package/dist/collection/components/pds-progress/pds-progress.js +3 -1
  81. package/dist/collection/components/pds-radio/pds-radio.css +1 -2
  82. package/dist/collection/utils/utils.js +16 -2
  83. package/dist/docs.json +108 -11
  84. package/dist/esm/{index-DdPaBxPo.js → index-BU1hN5Vy.js} +1 -1
  85. package/dist/esm/{index-CTLu1TM4.js → index-DcT8--Dn.js} +1 -1
  86. package/dist/esm/loader.js +3 -3
  87. package/dist/esm/mock-pds-modal.entry.js +2 -2
  88. package/dist/esm/pds-accordion.entry.js +2 -2
  89. package/dist/esm/pds-alert.entry.js +1 -1
  90. package/dist/esm/pds-avatar.entry.js +2 -2
  91. package/dist/esm/pds-box.entry.js +2 -2
  92. package/dist/esm/pds-button.entry.js +4 -4
  93. package/dist/esm/pds-checkbox.entry.js +3 -3
  94. package/dist/esm/pds-chip.entry.js +32 -7
  95. package/dist/esm/pds-combobox.entry.js +3 -3
  96. package/dist/esm/pds-container.entry.js +1 -1
  97. package/dist/esm/pds-copytext.entry.js +2 -2
  98. package/dist/esm/pds-divider.entry.js +1 -1
  99. package/dist/esm/pds-drawer-content.entry.js +1 -1
  100. package/dist/esm/pds-drawer-footer.entry.js +1 -1
  101. package/dist/esm/pds-drawer-header.entry.js +1 -1
  102. package/dist/esm/pds-drawer.entry.js +1 -1
  103. package/dist/esm/pds-dropdown-menu-item.entry.js +1 -1
  104. package/dist/esm/pds-dropdown-menu-separator.entry.js +1 -1
  105. package/dist/esm/pds-dropdown-menu.entry.js +1 -1
  106. package/dist/esm/pds-filter.entry.js +2 -2
  107. package/dist/esm/pds-filters.entry.js +1 -1
  108. package/dist/esm/pds-icon.entry.js +2 -2
  109. package/dist/esm/pds-image.entry.js +1 -1
  110. package/dist/esm/pds-input.entry.js +3 -3
  111. package/dist/esm/pds-link.entry.js +3 -3
  112. package/dist/esm/pds-loader.entry.js +1 -1
  113. package/dist/esm/pds-modal-content.entry.js +1 -1
  114. package/dist/esm/pds-modal-footer.entry.js +1 -1
  115. package/dist/esm/pds-modal-header.entry.js +1 -1
  116. package/dist/esm/pds-modal.entry.js +35 -7
  117. package/dist/esm/pds-multiselect.entry.js +3 -3
  118. package/dist/esm/pds-popover.entry.js +1 -1
  119. package/dist/esm/pds-progress.entry.js +4 -2
  120. package/dist/esm/pds-property.entry.js +1 -1
  121. package/dist/esm/pds-radio-group.entry.js +2 -2
  122. package/dist/esm/pds-radio.entry.js +3 -3
  123. package/dist/esm/pds-row.entry.js +1 -1
  124. package/dist/esm/pds-select.entry.js +2 -2
  125. package/dist/esm/pds-sortable-item.entry.js +2 -2
  126. package/dist/esm/pds-sortable.entry.js +1 -1
  127. package/dist/esm/pds-switch.entry.js +2 -2
  128. package/dist/esm/pds-tab.entry.js +1 -1
  129. package/dist/esm/pds-table-body.entry.js +1 -1
  130. package/dist/esm/pds-table-cell.entry.js +1 -1
  131. package/dist/esm/pds-table-head-cell.entry.js +2 -2
  132. package/dist/esm/pds-table-head.entry.js +1 -1
  133. package/dist/esm/pds-table-row.entry.js +1 -1
  134. package/dist/esm/pds-table.entry.js +1 -1
  135. package/dist/esm/pds-tabpanel.entry.js +1 -1
  136. package/dist/esm/pds-tabs.entry.js +1 -1
  137. package/dist/esm/pds-text.entry.js +2 -2
  138. package/dist/esm/pds-textarea.entry.js +3 -3
  139. package/dist/esm/pds-toast.entry.js +1 -1
  140. package/dist/esm/pds-tooltip.entry.js +1 -1
  141. package/dist/esm/pine-core.js +3 -3
  142. package/dist/esm/{utils-tJa4KYNO.js → utils-u_0lxWnH.js} +16 -2
  143. package/dist/esm-es5/{index-CTLu1TM4.js → index-DcT8--Dn.js} +2 -2
  144. package/dist/esm-es5/loader.js +1 -1
  145. package/dist/esm-es5/mock-pds-modal.entry.js +1 -1
  146. package/dist/esm-es5/pds-accordion.entry.js +1 -1
  147. package/dist/esm-es5/pds-alert.entry.js +1 -1
  148. package/dist/esm-es5/pds-avatar.entry.js +1 -1
  149. package/dist/esm-es5/pds-box.entry.js +1 -1
  150. package/dist/esm-es5/pds-button.entry.js +1 -1
  151. package/dist/esm-es5/pds-checkbox.entry.js +1 -1
  152. package/dist/esm-es5/pds-chip.entry.js +1 -1
  153. package/dist/esm-es5/pds-combobox.entry.js +2 -2
  154. package/dist/esm-es5/pds-container.entry.js +1 -1
  155. package/dist/esm-es5/pds-copytext.entry.js +1 -1
  156. package/dist/esm-es5/pds-divider.entry.js +1 -1
  157. package/dist/esm-es5/pds-drawer-content.entry.js +1 -1
  158. package/dist/esm-es5/pds-drawer-footer.entry.js +1 -1
  159. package/dist/esm-es5/pds-drawer-header.entry.js +1 -1
  160. package/dist/esm-es5/pds-drawer.entry.js +1 -1
  161. package/dist/esm-es5/pds-dropdown-menu-item.entry.js +1 -1
  162. package/dist/esm-es5/pds-dropdown-menu-separator.entry.js +1 -1
  163. package/dist/esm-es5/pds-dropdown-menu.entry.js +1 -1
  164. package/dist/esm-es5/pds-filter.entry.js +1 -1
  165. package/dist/esm-es5/pds-filters.entry.js +1 -1
  166. package/dist/esm-es5/pds-icon.entry.js +1 -1
  167. package/dist/esm-es5/pds-image.entry.js +1 -1
  168. package/dist/esm-es5/pds-input.entry.js +1 -1
  169. package/dist/esm-es5/pds-link.entry.js +1 -1
  170. package/dist/esm-es5/pds-loader.entry.js +1 -1
  171. package/dist/esm-es5/pds-modal-content.entry.js +1 -1
  172. package/dist/esm-es5/pds-modal-footer.entry.js +1 -1
  173. package/dist/esm-es5/pds-modal-header.entry.js +1 -1
  174. package/dist/esm-es5/pds-modal.entry.js +1 -1
  175. package/dist/esm-es5/pds-multiselect.entry.js +1 -1
  176. package/dist/esm-es5/pds-popover.entry.js +1 -1
  177. package/dist/esm-es5/pds-progress.entry.js +1 -1
  178. package/dist/esm-es5/pds-property.entry.js +1 -1
  179. package/dist/esm-es5/pds-radio-group.entry.js +1 -1
  180. package/dist/esm-es5/pds-radio.entry.js +1 -1
  181. package/dist/esm-es5/pds-row.entry.js +1 -1
  182. package/dist/esm-es5/pds-select.entry.js +1 -1
  183. package/dist/esm-es5/pds-sortable-item.entry.js +1 -1
  184. package/dist/esm-es5/pds-sortable.entry.js +1 -1
  185. package/dist/esm-es5/pds-switch.entry.js +1 -1
  186. package/dist/esm-es5/pds-tab.entry.js +1 -1
  187. package/dist/esm-es5/pds-table-body.entry.js +1 -1
  188. package/dist/esm-es5/pds-table-cell.entry.js +1 -1
  189. package/dist/esm-es5/pds-table-head-cell.entry.js +1 -1
  190. package/dist/esm-es5/pds-table-head.entry.js +1 -1
  191. package/dist/esm-es5/pds-table-row.entry.js +1 -1
  192. package/dist/esm-es5/pds-table.entry.js +1 -1
  193. package/dist/esm-es5/pds-tabpanel.entry.js +1 -1
  194. package/dist/esm-es5/pds-tabs.entry.js +1 -1
  195. package/dist/esm-es5/pds-text.entry.js +1 -1
  196. package/dist/esm-es5/pds-textarea.entry.js +1 -1
  197. package/dist/esm-es5/pds-toast.entry.js +1 -1
  198. package/dist/esm-es5/pds-tooltip.entry.js +1 -1
  199. package/dist/esm-es5/pine-core.js +1 -1
  200. package/dist/pine-core/p-003df3b3.entry.js +1 -0
  201. package/dist/pine-core/{p-92ef1608.system.entry.js → p-02452806.system.entry.js} +1 -1
  202. package/dist/pine-core/{p-5d585aa8.entry.js → p-026ee6de.entry.js} +1 -1
  203. package/dist/pine-core/{p-4661259e.system.entry.js → p-03f3fc92.system.entry.js} +1 -1
  204. package/dist/pine-core/{p-18a59cdd.system.entry.js → p-06375326.system.entry.js} +1 -1
  205. package/dist/pine-core/{p-e5bbe8cc.entry.js → p-08196d6c.entry.js} +1 -1
  206. package/dist/pine-core/{p-bf3afa16.system.entry.js → p-089606b8.system.entry.js} +1 -1
  207. package/dist/pine-core/p-12941e0d.entry.js +1 -0
  208. package/dist/pine-core/{p-8eef80d5.entry.js → p-13bb89ff.entry.js} +1 -1
  209. package/dist/pine-core/{p-e410b0d8.system.entry.js → p-15a0fa0a.system.entry.js} +1 -1
  210. package/dist/pine-core/{p-51b8490d.entry.js → p-1abae35f.entry.js} +1 -1
  211. package/dist/pine-core/{p-a4a58477.entry.js → p-1df5e088.entry.js} +1 -1
  212. package/dist/pine-core/{p-5dd393cd.system.entry.js → p-20753e42.system.entry.js} +1 -1
  213. package/dist/pine-core/{p-12ec8186.system.entry.js → p-24214ab9.system.entry.js} +1 -1
  214. package/dist/pine-core/p-250011ba.entry.js +1 -0
  215. package/dist/pine-core/{p-8be301b6.entry.js → p-2b420257.entry.js} +1 -1
  216. package/dist/pine-core/{p-86bc2a0c.entry.js → p-2bb101c2.entry.js} +1 -1
  217. package/dist/pine-core/{p-049681fc.entry.js → p-2dbc90ba.entry.js} +1 -1
  218. package/dist/pine-core/{p-5aea1082.entry.js → p-317337e4.entry.js} +1 -1
  219. package/dist/pine-core/{p-e3a7d2db.entry.js → p-32fc82c2.entry.js} +1 -1
  220. package/dist/pine-core/{p-714bfdbd.entry.js → p-35edd8b0.entry.js} +1 -1
  221. package/dist/pine-core/{p-02a47ebb.entry.js → p-375eb7f4.entry.js} +1 -1
  222. package/dist/pine-core/{p-e1653d75.system.entry.js → p-3b555f06.system.entry.js} +1 -1
  223. package/dist/pine-core/{p-db5703f2.entry.js → p-3b796898.entry.js} +1 -1
  224. package/dist/pine-core/{p-17dc3f87.entry.js → p-3c5489ce.entry.js} +1 -1
  225. package/dist/pine-core/{p-76286a68.system.entry.js → p-3e868906.system.entry.js} +1 -1
  226. package/dist/pine-core/{p-869ed1c0.system.entry.js → p-441682f4.system.entry.js} +1 -1
  227. package/dist/pine-core/{p-7b1e3e91.entry.js → p-44222439.entry.js} +1 -1
  228. package/dist/pine-core/{p-c1f8a187.entry.js → p-45d55983.entry.js} +1 -1
  229. package/dist/pine-core/{p-ed297f3e.entry.js → p-464f23e6.entry.js} +1 -1
  230. package/dist/pine-core/{p-ac0098fd.entry.js → p-49c6112a.entry.js} +1 -1
  231. package/dist/pine-core/{p-43338f77.system.entry.js → p-4bd57896.system.entry.js} +1 -1
  232. package/dist/pine-core/{p-09413b07.entry.js → p-4cbb691f.entry.js} +1 -1
  233. package/dist/pine-core/{p-3c4236a8.system.entry.js → p-4ebdb90b.system.entry.js} +1 -1
  234. package/dist/pine-core/{p-b109de2e.entry.js → p-4f5aacd9.entry.js} +1 -1
  235. package/dist/pine-core/{p-9187c26c.system.entry.js → p-55532d56.system.entry.js} +1 -1
  236. package/dist/pine-core/{p-f35596cd.entry.js → p-558ac401.entry.js} +1 -1
  237. package/dist/pine-core/{p-c09dab1a.system.entry.js → p-57784f2f.system.entry.js} +1 -1
  238. package/dist/pine-core/{p-2016c878.entry.js → p-5a8345e2.entry.js} +1 -1
  239. package/dist/pine-core/{p-e3600c53.entry.js → p-5c5bd609.entry.js} +1 -1
  240. package/dist/pine-core/{p-12182cab.entry.js → p-5d2f95bd.entry.js} +1 -1
  241. package/dist/pine-core/p-5f3d0c86.system.entry.js +1 -0
  242. package/dist/pine-core/{p-f7a5062f.entry.js → p-5f5339ab.entry.js} +1 -1
  243. package/dist/pine-core/{p-2eb8d697.system.entry.js → p-67fc26e5.system.entry.js} +1 -1
  244. package/dist/pine-core/{p-d0d2a886.system.entry.js → p-6a6a767b.system.entry.js} +1 -1
  245. package/dist/pine-core/{p-f94667b5.entry.js → p-6b260a97.entry.js} +1 -1
  246. package/dist/pine-core/{p-be819bff.system.entry.js → p-6b3d8c2b.system.entry.js} +1 -1
  247. package/dist/pine-core/p-6dabeebc.system.entry.js +3 -0
  248. package/dist/pine-core/{p-32f10aa9.entry.js → p-70891202.entry.js} +1 -1
  249. package/dist/pine-core/p-70fb83d4.entry.js +1 -0
  250. package/dist/pine-core/{p-d7865297.entry.js → p-73c3a73f.entry.js} +1 -1
  251. package/dist/pine-core/p-73fa955a.system.entry.js +1 -0
  252. package/dist/pine-core/p-755e0b3c.system.entry.js +1 -0
  253. package/dist/pine-core/p-77082557.system.entry.js +1 -0
  254. package/dist/pine-core/{p-376f8286.entry.js → p-7e4729e0.entry.js} +1 -1
  255. package/dist/pine-core/{p-7e44106e.entry.js → p-8b051229.entry.js} +1 -1
  256. package/dist/pine-core/{p-1e2a9b5d.system.entry.js → p-8d1e7b3c.system.entry.js} +1 -1
  257. package/dist/pine-core/{p-324a7ae4.system.entry.js → p-8d8a8550.system.entry.js} +1 -1
  258. package/dist/pine-core/{p-6f7a7d55.entry.js → p-93486f2e.entry.js} +1 -1
  259. package/dist/pine-core/{p-957dbb0c.entry.js → p-93ae562d.entry.js} +1 -1
  260. package/dist/pine-core/{p-a11a9c40.system.entry.js → p-93c52e2b.system.entry.js} +1 -1
  261. package/dist/pine-core/{p-8cc270f0.system.entry.js → p-95b8bece.system.entry.js} +1 -1
  262. package/dist/pine-core/{p-31e1722e.entry.js → p-95defb53.entry.js} +1 -1
  263. package/dist/pine-core/{p-4d388957.system.entry.js → p-99f300ef.system.entry.js} +1 -1
  264. package/dist/pine-core/{p-053b0898.system.entry.js → p-9d77f2f8.system.entry.js} +1 -1
  265. package/dist/pine-core/{p-cf24ed1e.system.entry.js → p-9d902000.system.entry.js} +1 -1
  266. package/dist/pine-core/{p-84ade640.entry.js → p-9ef355b7.entry.js} +1 -1
  267. package/dist/pine-core/{p-Dr-FzkdE.system.js → p-BI7Ml0VF.system.js} +1 -1
  268. package/dist/pine-core/p-CJ8t3EBJ.system.js +2 -0
  269. package/dist/pine-core/p-DcT8--Dn.js +2 -0
  270. package/dist/pine-core/{p-dd6d9807.system.entry.js → p-a009ab10.system.entry.js} +1 -1
  271. package/dist/pine-core/{p-78fd593d.system.entry.js → p-a616385b.system.entry.js} +1 -1
  272. package/dist/pine-core/{p-1614c000.system.entry.js → p-a6a269da.system.entry.js} +1 -1
  273. package/dist/pine-core/{p-fbf5f315.entry.js → p-a8cd2ab5.entry.js} +1 -1
  274. package/dist/pine-core/{p-591fbff5.entry.js → p-a8f1a48d.entry.js} +1 -1
  275. package/dist/pine-core/p-b0becff3.system.entry.js +1 -0
  276. package/dist/pine-core/p-b45b8f8b.system.entry.js +1 -0
  277. package/dist/pine-core/{p-51dff5af.system.entry.js → p-b53d9620.system.entry.js} +1 -1
  278. package/dist/pine-core/p-b85bb61d.system.entry.js +1 -0
  279. package/dist/pine-core/{p-7e2b934d.entry.js → p-b8a5597d.entry.js} +1 -1
  280. package/dist/pine-core/p-b9a857fc.system.entry.js +1 -0
  281. package/dist/pine-core/{p-e0da17aa.system.entry.js → p-bd9b2931.system.entry.js} +1 -1
  282. package/dist/pine-core/{p-c0b3f2c1.system.entry.js → p-bdded57a.system.entry.js} +1 -1
  283. package/dist/pine-core/{p-e95225cf.entry.js → p-bf025e38.entry.js} +1 -1
  284. package/dist/pine-core/{p-3f12afb1.entry.js → p-c08b1697.entry.js} +1 -1
  285. package/dist/pine-core/p-c1a65082.entry.js +1 -0
  286. package/dist/pine-core/{p-8cea0d7a.system.entry.js → p-c1d1befb.system.entry.js} +1 -1
  287. package/dist/pine-core/{p-d46adf7d.entry.js → p-c5b6b545.entry.js} +2 -2
  288. package/dist/pine-core/{p-1f307e59.system.entry.js → p-c6426e16.system.entry.js} +1 -1
  289. package/dist/pine-core/{p-56b34569.system.entry.js → p-cfcb89d1.system.entry.js} +1 -1
  290. package/dist/pine-core/{p-d21739eb.entry.js → p-d33d65f6.entry.js} +1 -1
  291. package/dist/pine-core/{p-15d3a4bc.system.entry.js → p-d70aa0c7.system.entry.js} +1 -1
  292. package/dist/pine-core/{p-34e38037.system.entry.js → p-d9c1ee36.system.entry.js} +1 -1
  293. package/dist/pine-core/{p-630f33d6.system.entry.js → p-df285ece.system.entry.js} +1 -1
  294. package/dist/pine-core/{p-e3cd4627.system.entry.js → p-e039ebb6.system.entry.js} +1 -1
  295. package/dist/pine-core/{p-c5ce6dea.entry.js → p-e055c543.entry.js} +1 -1
  296. package/dist/pine-core/{p-b923a70b.entry.js → p-e08e4ca7.entry.js} +1 -1
  297. package/dist/pine-core/{p-53a4852e.system.entry.js → p-ea986474.system.entry.js} +1 -1
  298. package/dist/pine-core/{p-3e0c6384.entry.js → p-ec04d4c3.entry.js} +1 -1
  299. package/dist/pine-core/{p-d280741f.entry.js → p-ee114aef.entry.js} +1 -1
  300. package/dist/pine-core/{p-d415bb01.entry.js → p-ee997fbf.entry.js} +2 -2
  301. package/dist/pine-core/{p-3605a5f5.entry.js → p-f1365550.entry.js} +1 -1
  302. package/dist/pine-core/{p-f21aea90.system.entry.js → p-f26dcbc2.system.entry.js} +1 -1
  303. package/dist/pine-core/{p-5772f260.system.entry.js → p-f5cf98be.system.entry.js} +1 -1
  304. package/dist/pine-core/{p-3464b456.system.entry.js → p-f682f08a.system.entry.js} +1 -1
  305. package/dist/pine-core/{p-be4a6cc2.entry.js → p-f89197c9.entry.js} +1 -1
  306. package/dist/pine-core/{p-3eca0b00.entry.js → p-f9f7101e.entry.js} +1 -1
  307. package/dist/pine-core/{p-d9ffb2d9.system.entry.js → p-fa2a786d.system.entry.js} +1 -1
  308. package/dist/pine-core/{p-fec298bb.system.entry.js → p-fa8d3155.system.entry.js} +2 -2
  309. package/dist/pine-core/p-fb774f89.system.entry.js +1 -0
  310. package/dist/pine-core/{p-0ab735aa.system.entry.js → p-fbb72e66.system.entry.js} +1 -1
  311. package/dist/pine-core/pine-core.css +1 -1
  312. package/dist/pine-core/pine-core.esm.js +1 -1
  313. package/dist/pine-core/pine-core.js +1 -1
  314. package/dist/types/components/pds-chip/pds-chip.d.ts +12 -0
  315. package/dist/types/components/pds-modal/pds-modal.d.ts +9 -2
  316. package/dist/types/components.d.ts +25 -7
  317. package/dist/types/utils/types.d.ts +2 -1
  318. package/dist/types/utils/utils.d.ts +16 -1
  319. package/dist/vscode.html-data.json +30 -4
  320. package/hydrate/index.js +92 -21
  321. package/hydrate/index.mjs +92 -21
  322. package/package.json +2 -2
  323. package/dist/pine-core/p-222ff58e.system.entry.js +0 -1
  324. package/dist/pine-core/p-33c0f3c9.system.entry.js +0 -1
  325. package/dist/pine-core/p-3873f55b.entry.js +0 -1
  326. package/dist/pine-core/p-3aec9079.entry.js +0 -1
  327. package/dist/pine-core/p-3c229a00.system.entry.js +0 -1
  328. package/dist/pine-core/p-585ad368.system.entry.js +0 -1
  329. package/dist/pine-core/p-613a64f1.entry.js +0 -1
  330. package/dist/pine-core/p-63686e2a.system.entry.js +0 -1
  331. package/dist/pine-core/p-6fd863e5.system.entry.js +0 -1
  332. package/dist/pine-core/p-7691a875.system.entry.js +0 -3
  333. package/dist/pine-core/p-CTLu1TM4.js +0 -2
  334. package/dist/pine-core/p-DAIsVNlL.system.js +0 -2
  335. package/dist/pine-core/p-a98bf89f.system.entry.js +0 -1
  336. package/dist/pine-core/p-b32e3174.system.entry.js +0 -1
  337. package/dist/pine-core/p-c8bffb08.system.entry.js +0 -1
  338. package/dist/pine-core/p-d12ef40d.entry.js +0 -1
  339. package/dist/pine-core/p-d43db3ba.entry.js +0 -1
  340. /package/dist/esm-es5/{index-DdPaBxPo.js → index-BU1hN5Vy.js} +0 -0
  341. /package/dist/esm-es5/{utils-tJa4KYNO.js → utils-u_0lxWnH.js} +0 -0
  342. /package/dist/pine-core/{p-DdPaBxPo.js → p-BU1hN5Vy.js} +0 -0
  343. /package/dist/pine-core/{p-BG6uGRQj.system.js → p-D_I-k33A.system.js} +0 -0
  344. /package/dist/pine-core/{p--Llh7wKm.system.js → p-ctdGub9B.system.js} +0 -0
  345. /package/dist/pine-core/{p-tJa4KYNO.js → p-u_0lxWnH.js} +0 -0
@@ -13,7 +13,7 @@
13
13
  }
14
14
  :host(.pds-chip--accent) .pds-chip__dot {
15
15
  /* stylelint-disable-next-line */
16
- background: var(--pine-chip-color-accent-dot);
16
+ background: var(--pds-chip-dot-color, var(--pine-chip-color-accent-dot));
17
17
  }
18
18
  :host(.pds-chip--accent) .pds-chip__label, :host(.pds-chip--accent) .pds-chip__button, :host(.pds-chip--accent) .pds-chip__close {
19
19
  /* stylelint-disable-next-line */
@@ -36,7 +36,7 @@
36
36
  }
37
37
  :host(.pds-chip--danger) .pds-chip__dot {
38
38
  /* stylelint-disable-next-line */
39
- background: var(--pine-chip-color-danger-dot);
39
+ background: var(--pds-chip-dot-color, var(--pine-chip-color-danger-dot));
40
40
  }
41
41
  :host(.pds-chip--danger) .pds-chip__label, :host(.pds-chip--danger) .pds-chip__button, :host(.pds-chip--danger) .pds-chip__close {
42
42
  /* stylelint-disable-next-line */
@@ -59,7 +59,7 @@
59
59
  }
60
60
  :host(.pds-chip--info) .pds-chip__dot {
61
61
  /* stylelint-disable-next-line */
62
- background: var(--pine-chip-color-info-dot);
62
+ background: var(--pds-chip-dot-color, var(--pine-chip-color-info-dot));
63
63
  }
64
64
  :host(.pds-chip--info) .pds-chip__label, :host(.pds-chip--info) .pds-chip__button, :host(.pds-chip--info) .pds-chip__close {
65
65
  /* stylelint-disable-next-line */
@@ -82,7 +82,7 @@
82
82
  }
83
83
  :host(.pds-chip--neutral) .pds-chip__dot {
84
84
  /* stylelint-disable-next-line */
85
- background: var(--pine-chip-color-neutral-dot);
85
+ background: var(--pds-chip-dot-color, var(--pine-chip-color-neutral-dot));
86
86
  }
87
87
  :host(.pds-chip--neutral) .pds-chip__label, :host(.pds-chip--neutral) .pds-chip__button, :host(.pds-chip--neutral) .pds-chip__close {
88
88
  /* stylelint-disable-next-line */
@@ -99,13 +99,59 @@
99
99
  background: var(--pine-chip-color-neutral-hover);
100
100
  }
101
101
 
102
+ :host(.pds-chip--solid) {
103
+ background: var(--pine-chip-color-solid);
104
+ border: var(--pine-border-width) solid var(--pine-chip-color-solid-hover);
105
+ }
106
+ :host(.pds-chip--solid) .pds-chip__dot {
107
+ /* stylelint-disable-next-line */
108
+ background: var(--pds-chip-dot-color, var(--pine-chip-color-solid-dot));
109
+ }
110
+ :host(.pds-chip--solid) .pds-chip__label, :host(.pds-chip--solid) .pds-chip__button, :host(.pds-chip--solid) .pds-chip__close {
111
+ /* stylelint-disable-next-line */
112
+ color: var(--pine-chip-color-solid-text);
113
+ font-weight: var(--pine-font-weight-medium);
114
+ }
115
+ :host(.pds-chip--solid) .pds-chip__close:hover {
116
+ /* stylelint-disable-next-line */
117
+ background: var(--pine-chip-color-solid-hover);
118
+ }
119
+
120
+ :host(.pds-chip--solid.pds-chip--dropdown:hover) {
121
+ /* stylelint-disable-next-line */
122
+ background: var(--pine-chip-color-solid-hover);
123
+ }
124
+
125
+ :host(.pds-chip--subtle) {
126
+ background: var(--pine-chip-color-subtle);
127
+ border: var(--pine-border-width) solid var(--pine-chip-color-subtle-hover);
128
+ }
129
+ :host(.pds-chip--subtle) .pds-chip__dot {
130
+ /* stylelint-disable-next-line */
131
+ background: var(--pds-chip-dot-color, var(--pine-chip-color-subtle-dot));
132
+ }
133
+ :host(.pds-chip--subtle) .pds-chip__label, :host(.pds-chip--subtle) .pds-chip__button, :host(.pds-chip--subtle) .pds-chip__close {
134
+ /* stylelint-disable-next-line */
135
+ color: var(--pine-chip-color-subtle-text);
136
+ font-weight: var(--pine-font-weight-medium);
137
+ }
138
+ :host(.pds-chip--subtle) .pds-chip__close:hover {
139
+ /* stylelint-disable-next-line */
140
+ background: var(--pine-chip-color-subtle-hover);
141
+ }
142
+
143
+ :host(.pds-chip--subtle.pds-chip--dropdown:hover) {
144
+ /* stylelint-disable-next-line */
145
+ background: var(--pine-chip-color-subtle-hover);
146
+ }
147
+
102
148
  :host(.pds-chip--success) {
103
149
  background: var(--pine-chip-color-success);
104
150
  border: var(--pine-border-width) solid var(--pine-chip-color-success-hover);
105
151
  }
106
152
  :host(.pds-chip--success) .pds-chip__dot {
107
153
  /* stylelint-disable-next-line */
108
- background: var(--pine-chip-color-success-dot);
154
+ background: var(--pds-chip-dot-color, var(--pine-chip-color-success-dot));
109
155
  }
110
156
  :host(.pds-chip--success) .pds-chip__label, :host(.pds-chip--success) .pds-chip__button, :host(.pds-chip--success) .pds-chip__close {
111
157
  /* stylelint-disable-next-line */
@@ -128,7 +174,7 @@
128
174
  }
129
175
  :host(.pds-chip--warning) .pds-chip__dot {
130
176
  /* stylelint-disable-next-line */
131
- background: var(--pine-chip-color-warning-dot);
177
+ background: var(--pds-chip-dot-color, var(--pine-chip-color-warning-dot));
132
178
  }
133
179
  :host(.pds-chip--warning) .pds-chip__label, :host(.pds-chip--warning) .pds-chip__button, :host(.pds-chip--warning) .pds-chip__close {
134
180
  /* stylelint-disable-next-line */
@@ -145,6 +191,10 @@
145
191
  background: var(--pine-chip-color-warning-hover);
146
192
  }
147
193
 
194
+ :host(.pds-chip--solid) {
195
+ border-color: transparent;
196
+ }
197
+
148
198
  .pds-chip__dot {
149
199
  border: var(--pine-border-width) solid transparent;
150
200
  border-radius: var(--pine-border-radius-full);
@@ -155,6 +205,10 @@
155
205
  width: var(--pine-dimension-2xs);
156
206
  }
157
207
 
208
+ .pds-chip__icon {
209
+ color: var(--pds-chip-icon-color, currentColor);
210
+ }
211
+
158
212
  .pds-chip__label {
159
213
  align-items: center;
160
214
  display: flex;
@@ -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() {
@@ -123,7 +136,7 @@ export class PdsChip {
123
136
  // which is already focusable and bubbles focusin to the host, so
124
137
  // initTruncationTooltip passes `manageTabIndex: false` there to avoid
125
138
  // nesting a second tab stop inside the button.
126
- 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", ref: (el) => (this.labelTextEl = el) }, h("slot", null))));
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))));
127
140
  return chipContent;
128
141
  }
129
142
  get hostStyles() {
@@ -132,7 +145,21 @@ export class PdsChip {
132
145
  // query) without !important — the same pattern pds-box uses for min-width.
133
146
  // The width and the min-width/box-sizing that make it work are applied in
134
147
  // pds-chip.scss under :host([max-width]).
135
- 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;
136
163
  }
137
164
  renderCloseButton() {
138
165
  const CloseElement = this.removeUrl ? 'a' : 'button';
@@ -179,7 +206,7 @@ export class PdsChip {
179
206
  return (h(CloseElement, Object.assign({}, closeAttributes(), { onClick: this.handleCloseClick }), h("pds-icon", { icon: remove, size: this.iconSize })));
180
207
  }
181
208
  render() {
182
- return (h(Host, { key: '3b796c1340ac4e37569bf7904dbed05ba6938e4b', 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()));
183
210
  }
184
211
  static get is() { return "pds-chip"; }
185
212
  static get encapsulation() { return "shadow"; }
@@ -237,6 +264,25 @@ export class PdsChip {
237
264
  "attribute": "dot",
238
265
  "defaultValue": "false"
239
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
+ },
240
286
  "icon": {
241
287
  "type": "string",
242
288
  "mutable": false,
@@ -256,6 +302,25 @@ export class PdsChip {
256
302
  "reflect": false,
257
303
  "attribute": "icon"
258
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
+ },
259
324
  "size": {
260
325
  "type": "string",
261
326
  "mutable": false,
@@ -290,7 +355,7 @@ export class PdsChip {
290
355
  "mutable": false,
291
356
  "complexType": {
292
357
  "original": "ChipSentimentType",
293
- "resolved": "\"accent\" | \"brand\" | \"danger\" | \"info\" | \"neutral\" | \"success\" | \"warning\"",
358
+ "resolved": "\"accent\" | \"brand\" | \"danger\" | \"info\" | \"neutral\" | \"solid\" | \"subtle\" | \"success\" | \"warning\"",
294
359
  "references": {
295
360
  "ChipSentimentType": {
296
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",
@@ -86,6 +86,10 @@ pds-modal .pds-modal__backdrop {
86
86
  max-width: 900px;
87
87
  }
88
88
 
89
+ .pds-modal--custom {
90
+ max-width: var(--pds-modal-max-width, 700px);
91
+ }
92
+
89
93
  .pds-modal--fullscreen {
90
94
  border-radius: 0;
91
95
  height: 100%;
@@ -1,5 +1,9 @@
1
1
  import { h } from "@stencil/core";
2
2
  import { unwrapReconnectedContent } from "../../utils/reconnected-content";
3
+ const PRESET_SIZES = ['sm', 'md', 'lg', 'fullscreen'];
4
+ const isCustomLength = (value) => /^[a-z0-9.%+\-*/(), ]+$/i.test(value) &&
5
+ /\d/.test(value) &&
6
+ (typeof CSS === 'undefined' || CSS.supports('max-width', value));
3
7
  export class PdsModal {
4
8
  constructor() {
5
9
  this.focusableElements = [];
@@ -14,7 +18,9 @@ export class PdsModal {
14
18
  */
15
19
  this.open = false;
16
20
  /**
17
- * The size of the modal
21
+ * The size of the modal. Can be a predefined value ('sm', 'md', 'lg', 'fullscreen') or a custom
22
+ * max-width as a CSS length (e.g., '1250px', '80vw'). A custom width stays fluid below that size.
23
+ * A value that is neither falls back to 'md'.
18
24
  * @default 'md'
19
25
  */
20
26
  this.size = 'md';
@@ -140,6 +146,12 @@ export class PdsModal {
140
146
  }
141
147
  };
142
148
  }
149
+ componentWillLoad() {
150
+ this.warnOnInvalidSize();
151
+ }
152
+ sizeChanged() {
153
+ this.warnOnInvalidSize();
154
+ }
143
155
  componentDidLoad() {
144
156
  this.modalRef = this.el.querySelector('.pds-modal__backdrop');
145
157
  // Add keyboard event listener
@@ -398,15 +410,28 @@ export class PdsModal {
398
410
  const thisZIndex = this.getBackdropZIndex(this.el);
399
411
  return thisZIndex === maxZIndex;
400
412
  }
413
+ resolveSize() {
414
+ var _a;
415
+ const size = ((_a = this.size) !== null && _a !== void 0 ? _a : '').trim() || 'md';
416
+ if (PRESET_SIZES.includes(size))
417
+ return [size];
418
+ return isCustomLength(size) ? ['custom', size] : [undefined];
419
+ }
420
+ warnOnInvalidSize() {
421
+ if (this.resolveSize()[0] !== undefined)
422
+ return;
423
+ console.warn(`pds-modal: invalid size "${String(this.size).slice(0, 50)}", using md`);
424
+ }
401
425
  render() {
402
- return (h("dialog", { key: 'f35044ec9bca1189069faf083c824d8144800053', class: {
426
+ const [sizeClass = 'md', customSize] = this.resolveSize();
427
+ return (h("dialog", { key: 'bbc56f2aaf3fe861ae309eb1930d51a588b4c727', class: {
403
428
  'pds-modal__backdrop': true,
404
429
  'open': this.open
405
- }, "aria-modal": this.disableTopLayer ? 'false' : 'true', "aria-labelledby": `${this.componentId}-heading`, onClick: this.handleBackdropClick }, h("div", { key: '99a53b36e160ac14dfd6d598aeaa94114855dacc', class: {
430
+ }, "aria-modal": this.disableTopLayer ? 'false' : 'true', "aria-labelledby": `${this.componentId}-heading`, onClick: this.handleBackdropClick }, h("div", { key: 'b3d6f9c2a7854845ebe94c05ee507000c38a1326', class: {
406
431
  'pds-modal': true,
407
- [`pds-modal--${this.size}`]: true,
432
+ [`pds-modal--${sizeClass}`]: true,
408
433
  'pds-modal--scrollable': this.scrollable
409
- }, part: "modal" }, h("slot", { key: 'cfee7bdf3620d606b1d3130f4ebed4caa83084f1' }))));
434
+ }, style: customSize !== undefined ? { '--pds-modal-max-width': customSize } : undefined, part: "modal" }, h("slot", { key: '42ff9ae5e427bc69141c58e0824aad677f5c7756' }))));
410
435
  }
411
436
  static get is() { return "pds-modal"; }
412
437
  static get originalStyleUrls() {
@@ -490,9 +515,20 @@ export class PdsModal {
490
515
  "type": "string",
491
516
  "mutable": false,
492
517
  "complexType": {
493
- "original": "'sm' | 'md' | 'lg' | 'fullscreen'",
494
- "resolved": "\"fullscreen\" | \"lg\" | \"md\" | \"sm\"",
495
- "references": {}
518
+ "original": "ModalSizeType | (string & Record<never, never>)",
519
+ "resolved": "\"fullscreen\" | \"lg\" | \"md\" | \"sm\" | string & Record<never, never>",
520
+ "references": {
521
+ "ModalSizeType": {
522
+ "location": "import",
523
+ "path": "@utils/types",
524
+ "id": "src/utils/types.ts::ModalSizeType",
525
+ "referenceLocation": "ModalSizeType"
526
+ },
527
+ "Record": {
528
+ "location": "global",
529
+ "id": "global::Record"
530
+ }
531
+ }
496
532
  },
497
533
  "required": false,
498
534
  "optional": false,
@@ -501,7 +537,7 @@ export class PdsModal {
501
537
  "name": "default",
502
538
  "text": "'md'"
503
539
  }],
504
- "text": "The size of the modal"
540
+ "text": "The size of the modal. Can be a predefined value ('sm', 'md', 'lg', 'fullscreen') or a custom\nmax-width as a CSS length (e.g., '1250px', '80vw'). A custom width stays fluid below that size.\nA value that is neither falls back to 'md'."
505
541
  },
506
542
  "getter": false,
507
543
  "setter": false,
@@ -663,6 +699,9 @@ export class PdsModal {
663
699
  static get elementRef() { return "el"; }
664
700
  static get watchers() {
665
701
  return [{
702
+ "propName": "size",
703
+ "methodName": "sizeChanged"
704
+ }, {
666
705
  "propName": "open",
667
706
  "methodName": "handleOpenChange"
668
707
  }];
@@ -13,6 +13,12 @@ export default {
13
13
  scrollable: true,
14
14
  size: 'md',
15
15
  },
16
+ argTypes: {
17
+ size: {
18
+ control: 'text',
19
+ description: "A preset ('sm', 'md', 'lg', 'fullscreen') or a CSS length such as '1100px'.",
20
+ },
21
+ },
16
22
  parameters: {}
17
23
  }
18
24
 
@@ -89,6 +95,14 @@ Default.args = {
89
95
  open: false,
90
96
  };
91
97
 
98
+ // Any CSS length works as a size; it becomes the modal's max-width.
99
+ export const CustomSize = BaseTemplate.bind({});
100
+ CustomSize.args = {
101
+ componentId: 'custom-size-modal',
102
+ size: '1100px',
103
+ open: false,
104
+ };
105
+
92
106
  const DestructiveTemplate = (args) => html`
93
107
  <div>
94
108
  <pds-button id="show-modal" onClick="document.querySelector('#${args.componentId}').open = true">
@@ -1,4 +1,5 @@
1
1
  import { Host, h } from "@stencil/core";
2
+ import { normalizeColorValue } from "../../utils/utils";
2
3
  export class PdsProgress {
3
4
  constructor() {
4
5
  /**
@@ -18,7 +19,8 @@ export class PdsProgress {
18
19
  this.showPercent = false;
19
20
  }
20
21
  render() {
21
- return (h(Host, { key: '0ae02615ceeb094270d4d385d27dc1e539984e88', class: this.animated ? { 'is-animated': this.animated } : '' }, h("div", { key: '8da2f2a5b260cb19cda3021cc9289bde18fff9fc', class: "pds-progress" }, h("label", { key: 'a84106244fafed602c1f14b63d83b16f123732f4', class: "pds-progress__label", htmlFor: this.componentId }, this.label), h("progress", { key: '82fb1a46fb2e7c89d5b4ed4e8e3efa590c896d0d', id: this.componentId, max: "100", style: this.fillColor ? { '--color-progress-fill': this.fillColor } : {}, value: this.percent })), this.showPercent && h("div", { key: '36d041d1c5e656ac0864999200f48e15e53aa3f3', class: "pds-progress__percentage" }, this.percent, "%")));
22
+ const normalizedFillColor = normalizeColorValue(this.fillColor);
23
+ return (h(Host, { key: 'acca17890c316c056c61e4fad2917f0279126c39', class: this.animated ? { 'is-animated': this.animated } : '' }, h("div", { key: 'f8140ac930335bd67e3576a0f3739092d492d884', class: "pds-progress" }, h("label", { key: '66416d0472024ae14a6413e4e533f08970cbc857', class: "pds-progress__label", htmlFor: this.componentId }, this.label), h("progress", { key: '2bbbe4e1e3d186c2895401ac4b68dabac60a1df9', id: this.componentId, max: "100", style: normalizedFillColor ? { '--color-progress-fill': normalizedFillColor } : {}, value: this.percent })), this.showPercent && h("div", { key: '672956684adf944ea1de8769dbaba615c82a85b6', class: "pds-progress__percentage" }, this.percent, "%")));
22
24
  }
23
25
  static get is() { return "pds-progress"; }
24
26
  static get encapsulation() { return "shadow"; }
@@ -104,8 +104,7 @@ input:checked:hover {
104
104
  border-color: var(--pine-color-accent-hover);
105
105
  }
106
106
  input:checked::after {
107
- /* stylelint-disable-next-line pine-design-system/prefer-semantic-tokens */
108
- background: var(--pine-color-white);
107
+ background: var(--pine-color-text-primary);
109
108
  border-radius: var(--pine-border-radius-full);
110
109
  content: "";
111
110
  display: block;
@@ -15,9 +15,16 @@ export const debounce = (func, wait = 0) => {
15
15
  timer = setTimeout(func, wait, ...args);
16
16
  };
17
17
  };
18
- // Add shared color normalization utility to unify token handling across components
19
18
  /**
20
- * Normalizes color values to ensure consistent CSS variable usage
19
+ * Normalizes color values to ensure consistent CSS variable usage.
20
+ *
21
+ * This is the single low-level primitive for color-prop normalization in
22
+ * Pine. A component with its own semantic-keyword set (e.g. pds-chip's
23
+ * sentiment-to-dot-color map) should call this directly with its own
24
+ * `semanticMap` rather than inventing a new normalization helper. Reach for
25
+ * `setColor` below only when its specific text-role semantic set and
26
+ * `--color` output key already match what the component needs.
27
+ *
21
28
  * @param value - Raw token (--token), CSS variable (var(--token)), semantic name, or literal color
22
29
  * @param options.semanticMap - Optional mapping of semantic names to CSS variables
23
30
  * @returns Normalized color value or undefined for invalid inputs
@@ -42,6 +49,13 @@ export const normalizeColorValue = (value, options) => {
42
49
  // Otherwise treat as literal CSS color value
43
50
  return trimmed;
44
51
  };
52
+ /**
53
+ * Convenience wrapper around `normalizeColorValue` for the common text-role
54
+ * semantic set (primary/secondary/accent/etc.), returned as a `--color`
55
+ * custom property. If a component needs a different semantic map or a
56
+ * different custom-property name (e.g. pds-chip's dot/icon-specific tokens),
57
+ * call `normalizeColorValue` directly instead of extending this function.
58
+ */
45
59
  export const setColor = (color, customColors) => {
46
60
  // Return an empty object for empty/whitespace/undefined inputs to avoid invalid CSS styles
47
61
  if (!color)