@persona/design-system 0.5.0 → 0.5.1

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 (559) hide show
  1. package/CHANGELOG.md +5 -1
  2. package/dist/{Action-C2waxwIy.d.mts → Action-C2FTJhnQ.d.mts} +3 -3
  3. package/dist/Action.d.mts +1 -1
  4. package/dist/AdvancedFilterRuleRow.d.mts +2 -2
  5. package/dist/AdvancedFilterRulesPopover.d.mts +2 -2
  6. package/dist/ArrayValueControl.d.mts +1 -1
  7. package/dist/Attribute.d.mts +8 -6
  8. package/dist/{Badge-CM2TzkdE.mjs → Badge-BtNIvtDZ.mjs} +3 -3
  9. package/dist/{Badge-CM2TzkdE.mjs.map → Badge-BtNIvtDZ.mjs.map} +1 -1
  10. package/dist/BooleanValueControl.d.mts +1 -1
  11. package/dist/{Breadcrumb-Df06cTnA.d.mts → Breadcrumb-BlAhp45l.d.mts} +1 -1
  12. package/dist/Breadcrumb.d.mts +1 -1
  13. package/dist/{Breadcrumbs-BEYQlGbW.mjs → Breadcrumbs-ClKHNIr-.mjs} +15 -14
  14. package/dist/Breadcrumbs-ClKHNIr-.mjs.map +1 -0
  15. package/dist/{Breadcrumbs-D_Gzd4_J.d.mts → Breadcrumbs-DdZ14ZFw.d.mts} +2 -2
  16. package/dist/Breadcrumbs.d.mts +1 -1
  17. package/dist/{Button-CRFbWv3l.d.mts → Button-CTgyA3gc.d.mts} +5 -4
  18. package/dist/Button.d.mts +1 -1
  19. package/dist/{Calendar-DjnoZVcT.d.mts → Calendar-_gM6U5ET.d.mts} +1 -1
  20. package/dist/Calendar.d.mts +1 -1
  21. package/dist/CalendarBase.d.mts +1 -1
  22. package/dist/Card-Dorym91P.d.mts +75 -0
  23. package/dist/{Card-CKrJtn1f.mjs → Card-vQIPtdXi.mjs} +12 -10
  24. package/dist/Card-vQIPtdXi.mjs.map +1 -0
  25. package/dist/Card.d.mts +1 -1
  26. package/dist/Card2.d.mts +1 -1
  27. package/dist/{CardV2-B2wx1NE3.mjs → CardV2-CFTjYWoO.mjs} +18 -17
  28. package/dist/CardV2-CFTjYWoO.mjs.map +1 -0
  29. package/dist/{Checkbox-DwZEsi7x.mjs → Checkbox-CyeitZ5q.mjs} +26 -22
  30. package/dist/Checkbox-CyeitZ5q.mjs.map +1 -0
  31. package/dist/{Checkbox-CwPXPLCi.d.mts → Checkbox-DRJXDs2T.d.mts} +1 -1
  32. package/dist/Checkbox.d.mts +1 -1
  33. package/dist/CheckboxGroupField.d.mts +1 -1
  34. package/dist/ChoicesValueControl.d.mts +1 -1
  35. package/dist/CodeHighlight.d.mts +40 -0
  36. package/dist/{Combobox-BQN5OwB-.d.mts → Combobox-DX4DLe1b.d.mts} +3 -3
  37. package/dist/{Combobox-CKaVX-32.mjs → Combobox-Ddas5FN-.mjs} +22 -21
  38. package/dist/Combobox-Ddas5FN-.mjs.map +1 -0
  39. package/dist/Combobox.d.mts +2 -2
  40. package/dist/{ComboboxBase-nfHr19x-.d.mts → ComboboxBase-Ds_i3K2m.d.mts} +18 -29
  41. package/dist/ComboboxBase.d.mts +1 -1
  42. package/dist/{ComboboxMultiSelect-DRNj2Mtx.d.mts → ComboboxMultiSelect-S6oFJcOS.d.mts} +2 -2
  43. package/dist/ComboboxMultiSelect.d.mts +1 -1
  44. package/dist/{ComboboxSingleSelect-BkhbEx-F.d.mts → ComboboxSingleSelect-DFzCwW1Y.d.mts} +4 -4
  45. package/dist/ComboboxSingleSelect.d.mts +1 -1
  46. package/dist/{CompactBar-CyHbWTv4.d.mts → CompactBar-DEqItiZr.d.mts} +3 -3
  47. package/dist/CompactBar.d.mts +1 -1
  48. package/dist/{ConfigFormGroup-CmCRJyse.mjs → ConfigFormGroup-DcsM-u8o.mjs} +2 -2
  49. package/dist/{ConfigFormGroup-CmCRJyse.mjs.map → ConfigFormGroup-DcsM-u8o.mjs.map} +1 -1
  50. package/dist/{ControlBar-DwAhPcb5.d.mts → ControlBar-BVG5Pbvh.d.mts} +2 -2
  51. package/dist/ControlBar.d.mts +1 -1
  52. package/dist/DataTable.d.mts +17 -6
  53. package/dist/{DateField-tOyrGcx1.d.mts → DateField-CBCo8_d3.d.mts} +2 -2
  54. package/dist/DateField.d.mts +1 -1
  55. package/dist/{DatePicker-Bs9JODNg.d.mts → DatePicker-BZ4_I4Db.d.mts} +2 -2
  56. package/dist/{DatePicker-D2SfjS-N.mjs → DatePicker-DTT-mJ8r.mjs} +45 -34
  57. package/dist/DatePicker-DTT-mJ8r.mjs.map +1 -0
  58. package/dist/DatePicker.d.mts +1 -1
  59. package/dist/{DateRangePicker-BT6-j8V7.d.mts → DateRangePicker-BMKJquPT.d.mts} +3 -3
  60. package/dist/DateRangePicker.d.mts +1 -1
  61. package/dist/DateRangeValueControl.d.mts +2 -2
  62. package/dist/DateValueControl.d.mts +1 -1
  63. package/dist/{DropdownButton-dpGAmVlN.mjs → DropdownButton-DV5if_uG.mjs} +3 -3
  64. package/dist/{DropdownButton-dpGAmVlN.mjs.map → DropdownButton-DV5if_uG.mjs.map} +1 -1
  65. package/dist/DropdownButton.d.mts +2 -2
  66. package/dist/{DropdownMenu-RTxQ0Zu1.d.mts → DropdownMenu-CbhEzWy1.d.mts} +3 -3
  67. package/dist/{DropdownMenu-CyxizDxJ.mjs → DropdownMenu-DovtBJBs.mjs} +3 -3
  68. package/dist/{DropdownMenu-CyxizDxJ.mjs.map → DropdownMenu-DovtBJBs.mjs.map} +1 -1
  69. package/dist/DropdownMenu.d.mts +1 -1
  70. package/dist/{ErrorProps-C9T857Wk.d.mts → ErrorProps-7eWoxSes.d.mts} +1 -1
  71. package/dist/ErrorProps.d.mts +1 -1
  72. package/dist/{FieldRegistry-D6niLExM.d.mts → FieldRegistry-BslyuPZw.d.mts} +2 -2
  73. package/dist/FieldRegistry.d.mts +1 -1
  74. package/dist/{FilterBar-DfBV7yKM.d.mts → FilterBar-DjZE4PoB.d.mts} +4 -4
  75. package/dist/FilterBar.d.mts +1 -1
  76. package/dist/FilterPickerMenu.d.mts +2 -2
  77. package/dist/FilterPill.d.mts +1 -1
  78. package/dist/FilterPopover.d.mts +1 -1
  79. package/dist/FloatValueControl.d.mts +1 -1
  80. package/dist/{FormControl-DQFefbrI.mjs → FormControl-BvRzRknE.mjs} +6 -5
  81. package/dist/FormControl-BvRzRknE.mjs.map +1 -0
  82. package/dist/{FormControl-BMYRsFkI.d.mts → FormControl-gpLZZpNs.d.mts} +3 -3
  83. package/dist/FormControl.d.mts +1 -1
  84. package/dist/FormControlLabel.d.mts +2 -2
  85. package/dist/{FormField-C7bW-O6H.mjs → FormField-BDJ6zNE6.mjs} +14 -14
  86. package/dist/{FormField-C7bW-O6H.mjs.map → FormField-BDJ6zNE6.mjs.map} +1 -1
  87. package/dist/{FormField-C1DaUT5U.d.mts → FormField-CZXKvCGt.d.mts} +2 -2
  88. package/dist/FormField.d.mts +1 -1
  89. package/dist/{Header-BKk3qESS.d.mts → Header-1laYnwRP.d.mts} +2 -2
  90. package/dist/Header.d.mts +1 -1
  91. package/dist/{HelperTooltip-CD_yy7Hp.d.mts → HelperTooltip-BPJS3EwC.d.mts} +2 -2
  92. package/dist/HelperTooltip.d.mts +1 -1
  93. package/dist/{HoverCopyableField-Bgt639FR.mjs → HoverCopyableField-WP6DPjy1.mjs} +8 -8
  94. package/dist/{HoverCopyableField-Bgt639FR.mjs.map → HoverCopyableField-WP6DPjy1.mjs.map} +1 -1
  95. package/dist/{IconButton-BnSEV7eR.mjs → IconButton-CnJNIJVQ.mjs} +124 -25
  96. package/dist/IconButton-CnJNIJVQ.mjs.map +1 -0
  97. package/dist/{IconButton-Bh-JJ-0x.d.mts → IconButton-PnrnqQ1s.d.mts} +2 -2
  98. package/dist/IconButton.d.mts +1 -1
  99. package/dist/ImageTile.d.mts +1 -1
  100. package/dist/InlineCombobox.d.mts +1 -1
  101. package/dist/InlineInput.d.mts +1 -1
  102. package/dist/{Input-D7of_GtJ.mjs → Input-DbfwNzS_.mjs} +11 -9
  103. package/dist/Input-DbfwNzS_.mjs.map +1 -0
  104. package/dist/{Input-1bDdMAgO.d.mts → Input-Diztxhle.d.mts} +5 -9
  105. package/dist/Input.d.mts +1 -1
  106. package/dist/{InputProps-BBShwi8N.d.mts → InputProps-BILq1X-n.d.mts} +2 -2
  107. package/dist/InputProps.d.mts +1 -1
  108. package/dist/IntegerValueControl.d.mts +1 -1
  109. package/dist/{ListBox-jzXQDraS.mjs → ListBox-CXh9Jfb-.mjs} +36 -28
  110. package/dist/ListBox-CXh9Jfb-.mjs.map +1 -0
  111. package/dist/{ListBox-DeFHRX2T.d.mts → ListBox-P1eTecdo.d.mts} +3 -3
  112. package/dist/ListBox.d.mts +1 -1
  113. package/dist/ListBoxField.d.mts +2 -2
  114. package/dist/{LoadingShimmer-a2Hv0kAq.mjs → LoadingShimmer-DeVCDCjT.mjs} +13 -5
  115. package/dist/LoadingShimmer-DeVCDCjT.mjs.map +1 -0
  116. package/dist/LoadingShimmer.d.mts +2 -2
  117. package/dist/{LogicRow-BOhB0uNS.d.mts → LogicRow-DtZYOzQ8.d.mts} +3 -3
  118. package/dist/LogicRow.d.mts +1 -1
  119. package/dist/MaskedInput.d.mts +2 -2
  120. package/dist/MatchHighlight.d.mts +1 -1
  121. package/dist/{Menu-DVI8l-4Q.mjs → Menu-CAGTCBqj.mjs} +42 -25
  122. package/dist/Menu-CAGTCBqj.mjs.map +1 -0
  123. package/dist/{Menu-BCVhmNEe.d.mts → Menu-_loh8pe3.d.mts} +4 -4
  124. package/dist/Menu.d.mts +1 -1
  125. package/dist/{MiddleTruncatedText-DnF7F_1D.mjs → MiddleTruncatedText-CO58jrNF.mjs} +2 -2
  126. package/dist/{MiddleTruncatedText-DnF7F_1D.mjs.map → MiddleTruncatedText-CO58jrNF.mjs.map} +1 -1
  127. package/dist/Modal.d.mts +4 -4
  128. package/dist/{PageHeader-BpGT-BM0.mjs → PageHeader-wpvRRTaa.mjs} +9 -6
  129. package/dist/PageHeader-wpvRRTaa.mjs.map +1 -0
  130. package/dist/PageHeader.d.mts +2 -2
  131. package/dist/PageLayout.d.mts +1 -1
  132. package/dist/{PageSelector-D6tffcGW.d.mts → PageSelector-CIa3Zts9.d.mts} +3 -3
  133. package/dist/PageSelector.d.mts +1 -1
  134. package/dist/{Pagination-BkjmybcI.d.mts → Pagination-C2eZEM7K.d.mts} +2 -2
  135. package/dist/{Pagination-CVRTcKSG.mjs → Pagination-wjr3W3xf.mjs} +9 -8
  136. package/dist/Pagination-wjr3W3xf.mjs.map +1 -0
  137. package/dist/Pagination.d.mts +1 -1
  138. package/dist/{Pii-CA7aCuYT.mjs → Pii-Bm-qkweh.mjs} +2 -2
  139. package/dist/{Pii-CA7aCuYT.mjs.map → Pii-Bm-qkweh.mjs.map} +1 -1
  140. package/dist/{PillShell-CVqpZ5iV.d.mts → PillShell-D6dN9sWk.d.mts} +2 -2
  141. package/dist/PillShell.d.mts +1 -1
  142. package/dist/{Popover-DlXyKYL5.mjs → Popover-DUyzmq3e.mjs} +9 -5
  143. package/dist/Popover-DUyzmq3e.mjs.map +1 -0
  144. package/dist/{PseudoClassProps-BPdn-ofQ.d.mts → PseudoClassProps-DnlHhW5u.d.mts} +1 -1
  145. package/dist/PseudoClassProps.d.mts +1 -1
  146. package/dist/{Radio-DYGEt0FT.mjs → Radio-CkugnL91.mjs} +21 -17
  147. package/dist/Radio-CkugnL91.mjs.map +1 -0
  148. package/dist/{RadioGroup-pegXtLwD.mjs → RadioGroup-8dI8gljw.mjs} +3 -3
  149. package/dist/{RadioGroup-pegXtLwD.mjs.map → RadioGroup-8dI8gljw.mjs.map} +1 -1
  150. package/dist/{RadioGroup-DYIfRj02.d.mts → RadioGroup-Dg_gydUp.d.mts} +1 -1
  151. package/dist/RadioGroup.d.mts +1 -1
  152. package/dist/RangeCalendar.d.mts +1 -1
  153. package/dist/RangeCalendarPresets.d.mts +1 -1
  154. package/dist/RuleEditorFields.d.mts +2 -2
  155. package/dist/RulesPill.d.mts +1 -1
  156. package/dist/{SearchInput-Dc90GLTF.d.mts → SearchInput-CNg109M5.d.mts} +2 -2
  157. package/dist/SearchInput.d.mts +1 -1
  158. package/dist/SectionHeading.d.mts +1 -1
  159. package/dist/{SegmentedControl-DIHonamg.d.mts → SegmentedControl-BBIHKcvo.d.mts} +1 -1
  160. package/dist/{SegmentedControl-DwbltwDQ.mjs → SegmentedControl-DQE0hN57.mjs} +9 -8
  161. package/dist/SegmentedControl-DQE0hN57.mjs.map +1 -0
  162. package/dist/SegmentedControl.d.mts +1 -1
  163. package/dist/{Select-CBVvPyRJ.mjs → Select-D9OVjzPR.mjs} +15 -14
  164. package/dist/Select-D9OVjzPR.mjs.map +1 -0
  165. package/dist/{Select-DwqWnWBi.d.mts → Select-wnr46ROZ.d.mts} +3 -3
  166. package/dist/Select.d.mts +1 -1
  167. package/dist/{Spacer-BsK8tTwA.mjs → Spacer-D58qwuXR.mjs} +2 -2
  168. package/dist/{Spacer-BsK8tTwA.mjs.map → Spacer-D58qwuXR.mjs.map} +1 -1
  169. package/dist/{Spinner-e725Rxkd.mjs → Spinner-gBNWIwOn.mjs} +6 -8
  170. package/dist/Spinner-gBNWIwOn.mjs.map +1 -0
  171. package/dist/{Stack-Bre2oiov.mjs → Stack-BqQndGI9.mjs} +2 -2
  172. package/dist/{Stack-Bre2oiov.mjs.map → Stack-BqQndGI9.mjs.map} +1 -1
  173. package/dist/{Stack-6eOrxjJi.d.mts → Stack-DgC83-nw.d.mts} +2 -2
  174. package/dist/Stack.d.mts +1 -1
  175. package/dist/{Sticker-By3F8Aip.mjs → Sticker-BDyejPZa.mjs} +159 -14
  176. package/dist/Sticker-BDyejPZa.mjs.map +1 -0
  177. package/dist/{Sticker-Ep6N4Exq.d.mts → Sticker-qvWkqEMw.d.mts} +5 -5
  178. package/dist/Sticker.d.mts +1 -1
  179. package/dist/StringValueControl.d.mts +1 -1
  180. package/dist/Tab.d.mts +3 -4
  181. package/dist/{TabBar-CWF65Tv4.mjs → TabBar-B__54oO3.mjs} +17 -16
  182. package/dist/TabBar-B__54oO3.mjs.map +1 -0
  183. package/dist/TabBarIconButton.d.mts +1 -5
  184. package/dist/{Table-BOcWdwpv.d.mts → Table-CPvIH27_.d.mts} +1 -1
  185. package/dist/{Table-nWd5ZVbm.mjs → Table-CqIi5mVF.mjs} +86 -39
  186. package/dist/Table-CqIi5mVF.mjs.map +1 -0
  187. package/dist/Table.d.mts +1 -1
  188. package/dist/{TableBody-BFPFaZnD.d.mts → TableBody-CQYijW_3.d.mts} +1 -1
  189. package/dist/TableBody.d.mts +1 -1
  190. package/dist/{TableBox-Bd-H5oyh.mjs → TableBox-C-8RxZT4.mjs} +56 -46
  191. package/dist/TableBox-C-8RxZT4.mjs.map +1 -0
  192. package/dist/TableBox.d.mts +2 -2
  193. package/dist/{TableBoxCell-Cjlc_xJz.d.mts → TableBoxCell-CQ3zT1jG.d.mts} +7 -7
  194. package/dist/TableBoxCell.d.mts +1 -1
  195. package/dist/TableBoxField.d.mts +3 -3
  196. package/dist/{TableBoxRow-CKDjNUsU.d.mts → TableBoxRow-ClK2pceY.d.mts} +3 -3
  197. package/dist/TableBoxRow.d.mts +1 -1
  198. package/dist/{TableBoxRowActions-BJ8ue3Bk.d.mts → TableBoxRowActions-CoF3DuUQ.d.mts} +2 -2
  199. package/dist/TableBoxRowActions.d.mts +1 -1
  200. package/dist/{index-CvBvfQAY.d.mts → TableCell-BQv4ASkE.d.mts} +5 -26
  201. package/dist/TableCell.d.mts +1 -1
  202. package/dist/{TableControls-D8xMNgyS.d.mts → TableControls-CtEL3ioz.d.mts} +3 -3
  203. package/dist/{TableControls-BnesnTue.mjs → TableControls-DplArh-9.mjs} +76 -64
  204. package/dist/TableControls-DplArh-9.mjs.map +1 -0
  205. package/dist/TableControls.d.mts +1 -1
  206. package/dist/{TableControlsContext-ChFsFEjR.d.mts → TableControlsContext-X-Lupvc6.d.mts} +2 -2
  207. package/dist/TableControlsContext.d.mts +1 -1
  208. package/dist/{TableHead-CWDxuy5V.d.mts → TableHead-DLLn0zoP.d.mts} +1 -1
  209. package/dist/TableHead.d.mts +1 -1
  210. package/dist/{TableHeaderCell-C_sIU1d7.d.mts → TableHeaderCell-DiJ2jyw4.d.mts} +3 -1
  211. package/dist/TableHeaderCell.d.mts +1 -1
  212. package/dist/{TableLayout-CgGhKU_A.d.mts → TableLayout-BgnUz8NO.d.mts} +1 -1
  213. package/dist/TableLayout.d.mts +1 -1
  214. package/dist/{TableRow-B1UKlbze.d.mts → TableRow-Dgg8hGy5.d.mts} +2 -2
  215. package/dist/TableRow.d.mts +1 -1
  216. package/dist/TableTH.d.mts +1 -1
  217. package/dist/{TableViewConfigurationDropdown-BqB7pOh8.d.mts → TableViewConfigurationDropdown-DRxd562-.d.mts} +2 -2
  218. package/dist/TableViewConfigurationDropdown.d.mts +1 -1
  219. package/dist/{TechnicalSticker-Ct2WnNzJ.mjs → TechnicalSticker-D6MO_IfT.mjs} +27 -22
  220. package/dist/TechnicalSticker-D6MO_IfT.mjs.map +1 -0
  221. package/dist/{Text-B0orb-cZ.mjs → Text-Dn_p7ZvT.mjs} +16 -12
  222. package/dist/Text-Dn_p7ZvT.mjs.map +1 -0
  223. package/dist/{Text-BzzUdBdc.d.mts → Text-tgFz40XD.d.mts} +4 -4
  224. package/dist/Text.d.mts +1 -1
  225. package/dist/{TextArea-CGpY5xqX.d.mts → TextArea-BxxXQSwP.d.mts} +2 -2
  226. package/dist/{TextArea-CospIXEO.mjs → TextArea-CYirq-B2.mjs} +2 -2
  227. package/dist/{TextArea-CospIXEO.mjs.map → TextArea-CYirq-B2.mjs.map} +1 -1
  228. package/dist/TextArea.d.mts +1 -1
  229. package/dist/{TextUnderlineTooltip-DZYGjJq1.d.mts → TextUnderlineTooltip-DQVYsLqM.d.mts} +3 -3
  230. package/dist/TextUnderlineTooltip.d.mts +1 -1
  231. package/dist/Tile.d.mts +1 -1
  232. package/dist/Toast.d.mts +1 -1
  233. package/dist/{Toggle-BjAivdyX.d.mts → Toggle-BmUl78kH.d.mts} +1 -1
  234. package/dist/{Toggle-Do5z1VcO.mjs → Toggle-CqgFNIYS.mjs} +19 -10
  235. package/dist/Toggle-CqgFNIYS.mjs.map +1 -0
  236. package/dist/Toggle.d.mts +1 -1
  237. package/dist/{Tooltip-DSKGD33G.mjs → Tooltip-BsuYG0fw.mjs} +12 -9
  238. package/dist/Tooltip-BsuYG0fw.mjs.map +1 -0
  239. package/dist/{Tooltip-n3XkX4dp.d.mts → Tooltip-eSaiYjxT.d.mts} +3 -3
  240. package/dist/Tooltip.d.mts +1 -1
  241. package/dist/{TruncatedText-C-MJPIRi.d.mts → TruncatedText-B2v53Y11.d.mts} +2 -2
  242. package/dist/{codec-B0dZTwlG.d.mts → codec-D5qlDVgU.d.mts} +2 -2
  243. package/dist/codec.d.mts +1 -1
  244. package/dist/color-fQTsW4gq.d.mts +20 -0
  245. package/dist/components/Attribute/index.mjs +34 -9
  246. package/dist/components/Attribute/index.mjs.map +1 -1
  247. package/dist/components/Badge/index.mjs +1 -1
  248. package/dist/components/Banner/index.mjs +19 -8
  249. package/dist/components/Banner/index.mjs.map +1 -1
  250. package/dist/components/BottomPanel/index.mjs +4 -4
  251. package/dist/components/Breadcrumbs/index.d.mts +1 -1
  252. package/dist/components/Breadcrumbs/index.mjs +1 -1
  253. package/dist/components/Button/index.d.mts +2 -2
  254. package/dist/components/Button/index.mjs +1 -1
  255. package/dist/components/ButtonGroup/index.mjs +12 -4
  256. package/dist/components/ButtonGroup/index.mjs.map +1 -1
  257. package/dist/components/Card/index.d.mts +2 -2
  258. package/dist/components/Card/index.mjs +1 -1
  259. package/dist/components/CardV2/index.d.mts +1 -1
  260. package/dist/components/CardV2/index.mjs +1 -1
  261. package/dist/components/Checkbox/index.d.mts +1 -1
  262. package/dist/components/Checkbox/index.mjs +1 -1
  263. package/dist/components/CodeHighlight/PrismWithLanguages.d.mts +2 -0
  264. package/dist/components/CodeHighlight/PrismWithLanguages.mjs +48 -0
  265. package/dist/components/CodeHighlight/PrismWithLanguages.mjs.map +1 -0
  266. package/dist/components/CodeHighlight/index.d.mts +2 -0
  267. package/dist/components/CodeHighlight/index.mjs +381 -0
  268. package/dist/components/CodeHighlight/index.mjs.map +1 -0
  269. package/dist/components/Combobox/index.d.mts +2 -2
  270. package/dist/components/Combobox/index.mjs +1 -1
  271. package/dist/components/ConfigFormGroup/index.mjs +1 -1
  272. package/dist/components/DataTable/TableControls/index.d.mts +19 -19
  273. package/dist/components/DataTable/TableControls/index.mjs +1 -1
  274. package/dist/components/DataTable/index.mjs +84 -44
  275. package/dist/components/DataTable/index.mjs.map +1 -1
  276. package/dist/components/DataTable/types.d.mts +2 -2
  277. package/dist/components/DatePicker/index.d.mts +4 -4
  278. package/dist/components/DatePicker/index.mjs +1 -1
  279. package/dist/components/DropdownButton/index.mjs +1 -1
  280. package/dist/components/DropdownMenu/index.d.mts +1 -1
  281. package/dist/components/DropdownMenu/index.mjs +1 -1
  282. package/dist/components/FloatingPanel/index.mjs +5 -5
  283. package/dist/components/FormControl/index.d.mts +2 -2
  284. package/dist/components/FormControl/index.mjs +1 -1
  285. package/dist/components/FormField/index.d.mts +1 -1
  286. package/dist/components/FormField/index.mjs +1 -1
  287. package/dist/components/Grid/index.mjs +1 -1
  288. package/dist/components/HoverCopyableField/index.mjs +1 -1
  289. package/dist/components/ImageTile/index.mjs +18 -17
  290. package/dist/components/ImageTile/index.mjs.map +1 -1
  291. package/dist/components/Input/index.d.mts +1 -1
  292. package/dist/components/Input/index.mjs +1 -1
  293. package/dist/components/Link/index.mjs +7 -8
  294. package/dist/components/Link/index.mjs.map +1 -1
  295. package/dist/components/ListBox/index.d.mts +3 -3
  296. package/dist/components/ListBox/index.mjs +1 -1
  297. package/dist/components/LoadingShimmer/index.mjs +1 -1
  298. package/dist/components/MaskedInput/index.mjs +1 -1
  299. package/dist/components/MatchHighlight/index.mjs +6 -4
  300. package/dist/components/MatchHighlight/index.mjs.map +1 -1
  301. package/dist/components/Menu/index.d.mts +1 -1
  302. package/dist/components/Menu/index.mjs +1 -1
  303. package/dist/components/Modal/index.mjs +10 -8
  304. package/dist/components/Modal/index.mjs.map +1 -1
  305. package/dist/components/PageHeader/index.mjs +1 -1
  306. package/dist/components/Pagination/index.d.mts +3 -3
  307. package/dist/components/Pagination/index.mjs +1 -1
  308. package/dist/components/Pii/index.mjs +1 -1
  309. package/dist/components/Popover/index.mjs +1 -1
  310. package/dist/components/ProgressBar/index.mjs +16 -19
  311. package/dist/components/ProgressBar/index.mjs.map +1 -1
  312. package/dist/components/ProgressIndicator/index.mjs +25 -19
  313. package/dist/components/ProgressIndicator/index.mjs.map +1 -1
  314. package/dist/components/Radio/index.mjs +1 -1
  315. package/dist/components/RadioGroup/index.d.mts +1 -1
  316. package/dist/components/RadioGroup/index.mjs +1 -1
  317. package/dist/components/RightPanel/index.mjs +5 -5
  318. package/dist/components/SegmentedControl/index.d.mts +1 -1
  319. package/dist/components/SegmentedControl/index.mjs +1 -1
  320. package/dist/components/Select/index.d.mts +1 -1
  321. package/dist/components/Select/index.mjs +1 -1
  322. package/dist/components/Slider/index.mjs +22 -13
  323. package/dist/components/Slider/index.mjs.map +1 -1
  324. package/dist/components/SmartTextInput/PillType.d.mts +10 -0
  325. package/dist/components/SmartTextInput/PillType.mjs +31 -0
  326. package/dist/components/SmartTextInput/PillType.mjs.map +1 -0
  327. package/dist/components/SmartTextInput/parser/method-chain/parser.d.mts +21 -0
  328. package/dist/components/SmartTextInput/parser/method-chain/parser.mjs +2 -0
  329. package/dist/components/SmartTextInput/parser/method-chain/types.d.mts +105 -0
  330. package/dist/components/SmartTextInput/parser/method-chain/types.mjs +31 -0
  331. package/dist/components/SmartTextInput/parser/method-chain/types.mjs.map +1 -0
  332. package/dist/components/SmartTextInput/parser/smart-text/parser.d.mts +17 -0
  333. package/dist/components/SmartTextInput/parser/smart-text/parser.mjs +814 -0
  334. package/dist/components/SmartTextInput/parser/smart-text/parser.mjs.map +1 -0
  335. package/dist/components/SmartTextInput/parser/smart-text/types.d.mts +72 -0
  336. package/dist/components/SmartTextInput/parser/smart-text/types.mjs +38 -0
  337. package/dist/components/SmartTextInput/parser/smart-text/types.mjs.map +1 -0
  338. package/dist/components/Spacer/index.mjs +1 -1
  339. package/dist/components/Spinner/index.mjs +1 -1
  340. package/dist/components/Stack/index.d.mts +1 -1
  341. package/dist/components/Stack/index.mjs +1 -1
  342. package/dist/components/StatusIndicator/index.mjs +112 -13
  343. package/dist/components/StatusIndicator/index.mjs.map +1 -1
  344. package/dist/components/Sticker/index.d.mts +1 -1
  345. package/dist/components/Sticker/index.mjs +1 -1
  346. package/dist/components/SwatchPicker/index.mjs +5 -4
  347. package/dist/components/SwatchPicker/index.mjs.map +1 -1
  348. package/dist/components/TabBar/index.mjs +1 -1
  349. package/dist/components/Table/index.d.mts +8 -7
  350. package/dist/components/Table/index.mjs +1 -1
  351. package/dist/components/TableBox/index.d.mts +2 -2
  352. package/dist/components/TableBox/index.mjs +1 -1
  353. package/dist/components/TechnicalSticker/index.mjs +1 -1
  354. package/dist/components/Text/index.d.mts +1 -1
  355. package/dist/components/Text/index.mjs +1 -1
  356. package/dist/components/TextArea/index.d.mts +1 -1
  357. package/dist/components/TextArea/index.mjs +1 -1
  358. package/dist/components/Tile/index.mjs +9 -8
  359. package/dist/components/Tile/index.mjs.map +1 -1
  360. package/dist/components/Toast/index.mjs +18 -12
  361. package/dist/components/Toast/index.mjs.map +1 -1
  362. package/dist/components/Toggle/index.d.mts +1 -1
  363. package/dist/components/Toggle/index.mjs +1 -1
  364. package/dist/components/Tooltip/index.d.mts +3 -3
  365. package/dist/components/Tooltip/index.mjs +1 -1
  366. package/dist/compound-expression.d.mts +1 -1
  367. package/dist/{constants-Bs94Jw4y.d.mts → constants-zZyl7QbX.d.mts} +1 -1
  368. package/dist/constants.d.mts +1 -1
  369. package/dist/{date-filter-BbWgAXy3.mjs → date-filter-DMZnJwGs.mjs} +1 -1
  370. package/dist/{date-filter-BbWgAXy3.mjs.map → date-filter-DMZnJwGs.mjs.map} +1 -1
  371. package/dist/{date-range-rule-value-DBEEWTQp.d.mts → date-range-rule-value-zJaa_jR9.d.mts} +2 -2
  372. package/dist/date-range-rule-value.d.mts +1 -1
  373. package/dist/{date-rule-intent-BArNGT2E.d.mts → date-rule-intent-CdWv68my.d.mts} +3 -3
  374. package/dist/date-rule-intent.d.mts +1 -1
  375. package/dist/display.d.mts +1 -1
  376. package/dist/fieldPickerOptions.d.mts +2 -2
  377. package/dist/fieldSchemaTypes-COEJOqYL.d.mts +39 -0
  378. package/dist/{filter-size-context-D1UhTwOG.d.mts → filter-size-context-DYkfYMkX.d.mts} +2 -2
  379. package/dist/filter-size-context.d.mts +1 -1
  380. package/dist/helpers.d.mts +1 -1
  381. package/dist/{index-I_Cy3X5R.d.mts → index-BJr_obTf.d.mts} +3 -3
  382. package/dist/{index-DASkW991.d.mts → index-BX8dSNcy.d.mts} +2 -2
  383. package/dist/index-DxIXll2Z.d.mts +21 -0
  384. package/dist/index.d.mts +1 -1
  385. package/dist/index2.d.mts +1 -1
  386. package/dist/index3.d.mts +3 -3
  387. package/dist/index4.d.mts +1 -1
  388. package/dist/index5.d.mts +14 -14
  389. package/dist/{input-M7BEIewR.d.mts → input-DN_8iHVD.d.mts} +3 -3
  390. package/dist/inputFields.d.mts +10 -10
  391. package/dist/jsonSchema-B1VonQij.d.mts +222 -0
  392. package/dist/lib/GlobalStyles.mjs +1 -1
  393. package/dist/lib/HeadlessAriaButton.d.mts +1 -2
  394. package/dist/lib/HeadlessAriaButton.mjs +1 -1
  395. package/dist/lib/MiddleTruncatedText.mjs +1 -1
  396. package/dist/lib/PDSProvider.d.mts +1 -1
  397. package/dist/lib/PDSProvider.mjs +1 -1
  398. package/dist/lib/TruncatedText.d.mts +1 -1
  399. package/dist/lib/TruncatedText.mjs +1 -1
  400. package/dist/lib/TruncatedTextWithTooltip.d.mts +1 -1
  401. package/dist/lib/TruncatedTextWithTooltip.mjs +1 -1
  402. package/dist/lib/color.d.mts +2 -0
  403. package/dist/lib/color.mjs +21 -0
  404. package/dist/lib/color.mjs.map +1 -0
  405. package/dist/lib/date-filter/index.d.mts +2 -2
  406. package/dist/lib/date-filter/index.mjs +1 -1
  407. package/dist/lib/errorReporter.d.mts +7 -0
  408. package/dist/lib/errorReporter.mjs +15 -0
  409. package/dist/lib/errorReporter.mjs.map +1 -0
  410. package/dist/lib/fieldSchemaTypes.d.mts +2 -0
  411. package/dist/lib/fieldSchemaTypes.mjs +41 -0
  412. package/dist/lib/fieldSchemaTypes.mjs.map +1 -0
  413. package/dist/lib/jsonSchema.d.mts +2 -0
  414. package/dist/lib/jsonSchema.mjs +260 -0
  415. package/dist/lib/jsonSchema.mjs.map +1 -0
  416. package/dist/lib/message.d.mts +1 -1
  417. package/dist/lib/methodChain.d.mts +66 -0
  418. package/dist/lib/methodChain.mjs +239 -0
  419. package/dist/lib/methodChain.mjs.map +1 -0
  420. package/dist/lib/methodChainNormalize.d.mts +14 -0
  421. package/dist/lib/methodChainNormalize.mjs +53 -0
  422. package/dist/lib/methodChainNormalize.mjs.map +1 -0
  423. package/dist/lib/methodChainTypes.d.mts +23 -0
  424. package/dist/lib/methodChainTypes.mjs +0 -0
  425. package/dist/lib/objectSchemaTypes.d.mts +2 -0
  426. package/dist/lib/objectSchemaTypes.mjs +0 -0
  427. package/dist/lib/pseudoClass.d.mts +1 -1
  428. package/dist/lib/selectHelper.mjs.map +1 -1
  429. package/dist/lib/semanticColor.d.mts +2 -0
  430. package/dist/lib/semanticColor.mjs +17 -0
  431. package/dist/lib/semanticColor.mjs.map +1 -0
  432. package/dist/lib/useControlled.mjs.map +1 -1
  433. package/dist/{message-CyxgAWZl.d.mts → message-DfEpU8lV.d.mts} +1 -1
  434. package/dist/mixins/focus.d.mts +4 -4
  435. package/dist/mixins/focus.mjs +7 -5
  436. package/dist/mixins/focus.mjs.map +1 -1
  437. package/dist/mixins/hoverable.d.mts +2 -2
  438. package/dist/mixins/hoverable.mjs +2 -2
  439. package/dist/mixins/input.d.mts +1 -1
  440. package/dist/mixins/input.mjs +56 -23
  441. package/dist/mixins/input.mjs.map +1 -1
  442. package/dist/mixins/menuItem.d.mts +2 -2
  443. package/dist/mixins/menuItem.mjs +78 -50
  444. package/dist/mixins/menuItem.mjs.map +1 -1
  445. package/dist/mixins/print/index.mjs +4 -2
  446. package/dist/mixins/print/index.mjs.map +1 -1
  447. package/dist/mixins/text.d.mts +1 -1
  448. package/dist/mixins/text.mjs +1 -1
  449. package/dist/{operators-CXkmvFpP.d.mts → operators-F8X0hyQB.d.mts} +2 -2
  450. package/dist/operators.d.mts +1 -1
  451. package/dist/palette-BANY1Xfs.d.mts +21 -0
  452. package/dist/palette.d.mts +2 -0
  453. package/dist/parser-Kxos6siN.mjs +2156 -0
  454. package/dist/parser-Kxos6siN.mjs.map +1 -0
  455. package/dist/patterns/LayoutLoadingShimmer/index.mjs +6 -6
  456. package/dist/patterns/LayoutLoadingSpinner/index.mjs +1 -1
  457. package/dist/patterns/PageLayout/index.mjs +1 -1
  458. package/dist/relative-date-label.d.mts +1 -1
  459. package/dist/semantic-Dy7mTyBP.d.mts +133 -0
  460. package/dist/semanticColor-DkVQjcbc.d.mts +29 -0
  461. package/dist/{styledComponentsInterop-8zScIQyC.mjs → styledComponentsInterop-NxwFjeA4.mjs} +2 -2
  462. package/dist/{styledComponentsInterop-8zScIQyC.mjs.map → styledComponentsInterop-NxwFjeA4.mjs.map} +1 -1
  463. package/dist/{text-DjTGRUM1.d.mts → text-BaQdW8qa.d.mts} +1 -1
  464. package/dist/{theme-Biwx2eJZ.d.mts → theme-D02MOaH6.d.mts} +22 -5
  465. package/dist/theme.d.mts +2 -2
  466. package/dist/theme.mjs +22 -1
  467. package/dist/theme.mjs.map +1 -1
  468. package/dist/tone.d.mts +17 -0
  469. package/dist/{types-V8UJX-rk.d.mts → types-1_JSe9Wr.d.mts} +2 -2
  470. package/dist/{types-DBBfOCX1.d.mts → types-C2s9yhgO.d.mts} +2 -2
  471. package/dist/{types-Bsf1VsW6.d.mts → types-COeginAF.d.mts} +1 -1
  472. package/dist/{types-Df0D37uh.d.mts → types-CtLY82w5.d.mts} +1 -1
  473. package/dist/{types-Ds43XULD.d.mts → types-Ok2lRZeu.d.mts} +1 -1
  474. package/dist/types.d.mts +1 -1
  475. package/dist/types2.d.mts +1 -1
  476. package/dist/types3.d.mts +1 -1
  477. package/dist/types4.d.mts +1 -1
  478. package/dist/types5.d.mts +1 -1
  479. package/dist/{url-state-M64mdtQ2.d.mts → url-state-DP78aDol.d.mts} +2 -2
  480. package/dist/url-state.d.mts +1 -1
  481. package/dist/useComboboxFooterAction.d.mts +1 -1
  482. package/dist/{useFilterStateV2-gALqONXf.d.mts → useFilterStateV2-DC2rGXHK.d.mts} +3 -3
  483. package/dist/useFilterStateV2.d.mts +1 -1
  484. package/dist/{useFormField-Bo7oHMof.d.mts → useFormField--_14te0K.d.mts} +2 -2
  485. package/dist/useFormField.d.mts +1 -1
  486. package/dist/{useTableBoxDragAndDrop-BrJFRSaG.d.mts → useTableBoxDragAndDrop-DkCxC7Mi.d.mts} +1 -1
  487. package/dist/useTableBoxDragAndDrop.d.mts +1 -1
  488. package/dist/{useToggle-Bo3yd14Y.mjs → useToggle-0zLL1E7s.mjs} +1 -1
  489. package/dist/{useToggle-Bo3yd14Y.mjs.map → useToggle-0zLL1E7s.mjs.map} +1 -1
  490. package/dist/useTruncation.d.mts +1 -1
  491. package/dist/{utilities-BHMNnJ8h.d.mts → utilities-C1hOxjt_.d.mts} +1 -1
  492. package/dist/utilities.d.mts +1 -1
  493. package/dist/utils/storybook.mjs +1 -1
  494. package/dist/utils/storybook.mjs.map +1 -1
  495. package/dist/utils/testing.mjs.map +1 -1
  496. package/dist/utils.d.mts +1 -1
  497. package/dist/{validation-BCBIvN6H.d.mts → validation-CpDsI-TM.d.mts} +3 -3
  498. package/dist/validation.d.mts +1 -1
  499. package/dist/{value-control-resolver-qKTH1ErF.d.mts → value-control-resolver-DhaqxKmK.d.mts} +2 -2
  500. package/dist/value-control-resolver.d.mts +1 -1
  501. package/dist/variables/effect.d.mts +14 -3
  502. package/dist/variables/effect.mjs +5 -3
  503. package/dist/variables/effect.mjs.map +1 -1
  504. package/dist/variables/keyframes.mjs +1 -1
  505. package/dist/variables/semantic.d.mts +2 -0
  506. package/dist/variables/semantic.mjs +241 -0
  507. package/dist/variables/semantic.mjs.map +1 -0
  508. package/package.json +68 -7
  509. package/skills/ui-authoring/COMPONENTS.md +1 -1
  510. package/skills/ui-authoring/TOKENS.md +1 -1
  511. package/dist/Breadcrumbs-BEYQlGbW.mjs.map +0 -1
  512. package/dist/Card-BoGV5tY2.d.mts +0 -52
  513. package/dist/Card-CKrJtn1f.mjs.map +0 -1
  514. package/dist/CardV2-B2wx1NE3.mjs.map +0 -1
  515. package/dist/Checkbox-DwZEsi7x.mjs.map +0 -1
  516. package/dist/Combobox-CKaVX-32.mjs.map +0 -1
  517. package/dist/DatePicker-D2SfjS-N.mjs.map +0 -1
  518. package/dist/FormControl-DQFefbrI.mjs.map +0 -1
  519. package/dist/IconButton-BnSEV7eR.mjs.map +0 -1
  520. package/dist/Input-D7of_GtJ.mjs.map +0 -1
  521. package/dist/ListBox-jzXQDraS.mjs.map +0 -1
  522. package/dist/LoadingShimmer-a2Hv0kAq.mjs.map +0 -1
  523. package/dist/Menu-DVI8l-4Q.mjs.map +0 -1
  524. package/dist/PageHeader-BpGT-BM0.mjs.map +0 -1
  525. package/dist/Pagination-CVRTcKSG.mjs.map +0 -1
  526. package/dist/Popover-DlXyKYL5.mjs.map +0 -1
  527. package/dist/Radio-DYGEt0FT.mjs.map +0 -1
  528. package/dist/SegmentedControl-DwbltwDQ.mjs.map +0 -1
  529. package/dist/Select-CBVvPyRJ.mjs.map +0 -1
  530. package/dist/Spinner-e725Rxkd.mjs.map +0 -1
  531. package/dist/Sticker-By3F8Aip.mjs.map +0 -1
  532. package/dist/TabBar-CWF65Tv4.mjs.map +0 -1
  533. package/dist/Table-nWd5ZVbm.mjs.map +0 -1
  534. package/dist/TableBox-Bd-H5oyh.mjs.map +0 -1
  535. package/dist/TableControls-BnesnTue.mjs.map +0 -1
  536. package/dist/TechnicalSticker-Ct2WnNzJ.mjs.map +0 -1
  537. package/dist/Text-B0orb-cZ.mjs.map +0 -1
  538. package/dist/Toggle-Do5z1VcO.mjs.map +0 -1
  539. package/dist/Tooltip-DSKGD33G.mjs.map +0 -1
  540. /package/dist/{index-8SLBz2NH.d.mts → index-1-AkepUA.d.mts} +0 -0
  541. /package/dist/{index-Bt4QNofW.d.mts → index-BFnNtGdX.d.mts} +0 -0
  542. /package/dist/{index-BwAfCVZH2.d.mts → index-BO_854F2.d.mts} +0 -0
  543. /package/dist/{index-BwFl_eS0.d.mts → index-BPiqSRRl.d.mts} +0 -0
  544. /package/dist/{index-CCKHlTA4.d.mts → index-BSVhZrWN.d.mts} +0 -0
  545. /package/dist/{index-CDGG7lCB.d.mts → index-BYd3Btr1.d.mts} +0 -0
  546. /package/dist/{index-CRo77wc3.d.mts → index-B_BBnMou.d.mts} +0 -0
  547. /package/dist/{index-CX869wwk.d.mts → index-BrGZHEgX.d.mts} +0 -0
  548. /package/dist/{index-D13oYj4_.d.mts → index-Ci-uuV07.d.mts} +0 -0
  549. /package/dist/{index-D4DUvwPf.d.mts → index-CknANNvQ2.d.mts} +0 -0
  550. /package/dist/{index-D7UbuJwP.d.mts → index-CtJuGxUp.d.mts} +0 -0
  551. /package/dist/{index-DA6_cwf8.d.mts → index-CuYZJcK3.d.mts} +0 -0
  552. /package/dist/{index-DMRtRo7y.d.mts → index-DWfPppPU.d.mts} +0 -0
  553. /package/dist/{index-Dflz2i1X.d.mts → index-DYX_PQ7T2.d.mts} +0 -0
  554. /package/dist/{index-DvmLVvRD.d.mts → index-DZlqSwCF.d.mts} +0 -0
  555. /package/dist/{index-Es5nKSSL.d.mts → index-De7MV8-j.d.mts} +0 -0
  556. /package/dist/{index-Wc1llEvP.d.mts → index-Deol7ZWO.d.mts} +0 -0
  557. /package/dist/{index-dhjtMp5F.d.mts → index-N-OgGgfF.d.mts} +0 -0
  558. /package/dist/{index-e6k85DKM.d.mts → index-VWno75SQ.d.mts} +0 -0
  559. /package/dist/{index-ehD5GjMH.d.mts → index-hcx6LMSC.d.mts} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,9 +1,13 @@
1
+ ## 0.5.1 (2026-09-23)
2
+
3
+ This was a version bump only for design-system to align it with other projects, there were no code changes.
4
+
1
5
  # Changelog
2
6
 
3
7
  Summary of changes to the @persona/design-system package.
4
8
 
5
9
  > **Do not edit this file by hand as part of a feature change.** It is generated at release time
6
- > from the commits since the last release (see `CONTRIBUTING.md` → Releasing, step 2). Adding an
10
+ > from Conventional Commits by Nx Release. Adding an
7
11
  > entry alongside a feature PR only creates conflicts and duplicates — ship the change and let the
8
12
  > release regenerate the entry.
9
13
 
@@ -1,5 +1,5 @@
1
- import { n as Tooltip } from "./Tooltip-n3XkX4dp.mjs";
2
- import { t as RequireOneOf } from "./utilities-BHMNnJ8h.mjs";
1
+ import { n as Tooltip } from "./Tooltip-eSaiYjxT.mjs";
2
+ import { t as RequireOneOf } from "./utilities-C1hOxjt_.mjs";
3
3
  import { ComponentProps, ComponentPropsWithoutRef, ReactElement } from "react";
4
4
 
5
5
  //#region types/Action.d.ts
@@ -32,4 +32,4 @@ type MenuAction = Action & {
32
32
  };
33
33
  //#endregion
34
34
  export { TextAction as i, IconAction as n, MenuAction as r, Action as t };
35
- //# sourceMappingURL=Action-C2waxwIy.d.mts.map
35
+ //# sourceMappingURL=Action-C2FTJhnQ.d.mts.map
package/dist/Action.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { i as TextAction, n as IconAction, r as MenuAction, t as Action } from "./Action-C2waxwIy.mjs";
1
+ import { i as TextAction, n as IconAction, r as MenuAction, t as Action } from "./Action-C2FTJhnQ.mjs";
2
2
  export { Action, IconAction, MenuAction, TextAction };
@@ -1,5 +1,5 @@
1
- import { a as FilterField, c as FilterOperator, d as FilterRuleValueChange, f as FilterSize, l as FilterRule, u as FilterRuleValue } from "./types-V8UJX-rk.mjs";
2
- import { t as FieldRegistry } from "./FieldRegistry-D6niLExM.mjs";
1
+ import { a as FilterField, c as FilterOperator, d as FilterRuleValueChange, f as FilterSize, l as FilterRule, u as FilterRuleValue } from "./types-1_JSe9Wr.mjs";
2
+ import { t as FieldRegistry } from "./FieldRegistry-BslyuPZw.mjs";
3
3
  import { ReactNode } from "react";
4
4
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
5
5
 
@@ -1,5 +1,5 @@
1
- import { a as FilterField, c as FilterOperator, d as FilterRuleValueChange, f as FilterSize, l as FilterRule, n as CompoundExpression, u as FilterRuleValue } from "./types-V8UJX-rk.mjs";
2
- import { t as FieldRegistry } from "./FieldRegistry-D6niLExM.mjs";
1
+ import { a as FilterField, c as FilterOperator, d as FilterRuleValueChange, f as FilterSize, l as FilterRule, n as CompoundExpression, u as FilterRuleValue } from "./types-1_JSe9Wr.mjs";
2
+ import { t as FieldRegistry } from "./FieldRegistry-BslyuPZw.mjs";
3
3
  import { ReactElement, ReactNode } from "react";
4
4
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
5
5
 
@@ -1,4 +1,4 @@
1
- import { t as ValueControlProps } from "./types-DBBfOCX1.mjs";
1
+ import { t as ValueControlProps } from "./types-C2s9yhgO.mjs";
2
2
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
3
 
4
4
  //#region components/DataTable/TableControls/FiltersV2/value-controls/ArrayValueControl/ArrayValueControl.d.ts
@@ -1,9 +1,9 @@
1
- import { n as IconButtonProps } from "./IconButton-Bh-JJ-0x.mjs";
2
- import { i as ParagraphSize } from "./text-DjTGRUM1.mjs";
3
- import { c as ParagraphProps, u as SpanProps } from "./Text-BzzUdBdc.mjs";
4
- import * as _$styled_components0 from "styled-components";
1
+ import { i as ParagraphSize } from "./text-BaQdW8qa.mjs";
2
+ import { c as ParagraphProps, u as SpanProps } from "./Text-tgFz40XD.mjs";
3
+ import { t as MaybeSemanticTheme } from "./semanticColor-DkVQjcbc.mjs";
5
4
  import * as _$react from "react";
6
5
  import { ComponentPropsWithoutRef, ComponentType, FC, PropsWithChildren, ReactNode } from "react";
6
+ import * as _$styled_components0 from "styled-components";
7
7
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
8
8
 
9
9
  //#region components/Attribute/Attribute.d.ts
@@ -16,7 +16,7 @@ declare const AttributeContext: _$react.Context<{
16
16
  horizontal?: boolean;
17
17
  size?: AttributeSize;
18
18
  }>;
19
- declare const IconButtonContainer: _$styled_components0.StyledComponent<_$react.ForwardRefExoticComponent<Omit<IconButtonProps, "ref"> & _$react.RefAttributes<HTMLButtonElement>>, any, {}, never>;
19
+ declare const IconButtonContainer: _$styled_components0.StyledComponent<any, any, any, any>;
20
20
  interface AttributeValueProps {
21
21
  placeholder: ReactNode;
22
22
  show?: boolean;
@@ -87,7 +87,9 @@ interface AttributeProps extends ComponentPropsWithoutRef<'div'> {
87
87
  */
88
88
  table?: TableLayoutValue;
89
89
  }
90
- declare const AttributeLabel: _$styled_components0.StyledComponent<FC<PropsWithChildren<SpanProps>>, any, ParagraphProps, never>;
90
+ declare const AttributeLabel: _$styled_components0.StyledComponent<FC<PropsWithChildren<SpanProps>>, any, ParagraphProps & {
91
+ theme?: MaybeSemanticTheme;
92
+ }, never>;
91
93
  declare const Attribute: ({
92
94
  label,
93
95
  value,
@@ -1,5 +1,5 @@
1
- import { a as styled, r as css } from "./styledComponentsInterop-8zScIQyC.mjs";
2
- import { n as Sticker } from "./Sticker-By3F8Aip.mjs";
1
+ import { a as styled, r as css } from "./styledComponentsInterop-NxwFjeA4.mjs";
2
+ import { n as Sticker } from "./Sticker-BDyejPZa.mjs";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  //#region components/Badge/Badge.tsx
5
5
  const Badge = styled(({ variant, ...rest }) => {
@@ -28,4 +28,4 @@ const Badge = styled(({ variant, ...rest }) => {
28
28
  //#endregion
29
29
  export { Badge as t };
30
30
 
31
- //# sourceMappingURL=Badge-CM2TzkdE.mjs.map
31
+ //# sourceMappingURL=Badge-BtNIvtDZ.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Badge-CM2TzkdE.mjs","names":[],"sources":["../components/Badge/Badge.tsx"],"sourcesContent":["import styled, { css, type DefaultTheme, type StyledComponent } from 'styled-components';\n\nimport Sticker, { type StickerProps } from 'design-system/components/Sticker';\n\nexport interface BadgeProps {\n /**\n * When rendered on a secondary background (e.g. inside a panel or card with\n * a grey fill), set this to true so the component adjusts its colours\n * appropriately for certain variants.\n */\n onSecondaryBackground?: boolean;\n /**\n * Semantic colour variant for the badge.\n *\n * - `basic` – neutral grey, for informational counts or labels (default).\n * - `active` – purple, to highlight an active or selected state.\n * - `alert` – red/danger, to draw attention to errors or urgent counts.\n *\n * @defaultValue 'basic'\n */\n variant?: 'alert' | 'active' | 'basic';\n}\n\nexport const Badge = styled(({ variant, ...rest }: BadgeProps) => {\n let variantProp: StickerProps['variant'];\n switch (variant) {\n case 'alert':\n variantProp = 'danger';\n break;\n case 'active':\n variantProp = 'purple';\n break;\n case 'basic':\n default:\n variantProp = 'grey';\n }\n\n return <Sticker {...rest} variant={variantProp} />;\n})<BadgeProps>(\n () => css`\n min-width: 16px;\n text-align: center;\n border-radius: 100px;\n span {\n font-size: 10px;\n }\n `,\n) as StyledComponent<'span', DefaultTheme, BadgeProps, never>;\n/**\n * The type workaround above makes the correct types available for Badge.\n * Having duplicate prop names between Badge and Sticker seems to cause some oddities.\n *\n * We insist on making this a styled component so the component itself can be targeted in styles.\n * See: https://styled-components.com/docs/advanced#referring-to-other-components\n */\n\nexport default Badge;\n"],"mappings":";;;;AAuBA,MAAa,QAAQ,QAAQ,EAAE,SAAS,GAAG,WAAuB;CAChE,IAAI;AACJ,SAAQ,SAAR;EACE,KAAK;AACH,iBAAc;AACd;EACF,KAAK;AACH,iBAAc;AACd;EAEF,QACE,eAAc;;AAGlB,QAAO,oBAAC,SAAD;EAAS,GAAI;EAAM,SAAS;EAAe,CAAA;EAClD,OACM,GAAG;;;;;;;IAQV"}
1
+ {"version":3,"file":"Badge-BtNIvtDZ.mjs","names":[],"sources":["../components/Badge/Badge.tsx"],"sourcesContent":["import styled, { css, type DefaultTheme, type StyledComponent } from 'styled-components';\n\nimport Sticker, { type StickerProps } from 'design-system/components/Sticker';\n\nexport interface BadgeProps {\n /**\n * When rendered on a secondary background (e.g. inside a panel or card with\n * a grey fill), set this to true so the component adjusts its colours\n * appropriately for certain variants.\n */\n onSecondaryBackground?: boolean;\n /**\n * Semantic colour variant for the badge.\n *\n * - `basic` – neutral grey, for informational counts or labels (default).\n * - `active` – purple, to highlight an active or selected state.\n * - `alert` – red/danger, to draw attention to errors or urgent counts.\n *\n * @defaultValue 'basic'\n */\n variant?: 'alert' | 'active' | 'basic';\n}\n\nexport const Badge = styled(({ variant, ...rest }: BadgeProps) => {\n let variantProp: StickerProps['variant'];\n switch (variant) {\n case 'alert':\n variantProp = 'danger';\n break;\n case 'active':\n variantProp = 'purple';\n break;\n case 'basic':\n default:\n variantProp = 'grey';\n }\n\n return <Sticker {...rest} variant={variantProp} />;\n})<BadgeProps>(\n () => css`\n min-width: 16px;\n text-align: center;\n border-radius: 100px;\n span {\n font-size: 10px;\n }\n `,\n) as StyledComponent<'span', DefaultTheme, BadgeProps, never>;\n/**\n * The type workaround above makes the correct types available for Badge.\n * Having duplicate prop names between Badge and Sticker seems to cause some oddities.\n *\n * We insist on making this a styled component so the component itself can be targeted in styles.\n * See: https://styled-components.com/docs/advanced#referring-to-other-components\n */\n\nexport default Badge;\n"],"mappings":";;;;AAuBA,MAAa,QAAQ,QAAQ,EAAE,SAAS,GAAG,WAAuB;CAChE,IAAI;AACJ,SAAQ,SAAR;EACE,KAAK;AACH,iBAAc;AACd;EACF,KAAK;AACH,iBAAc;AACd;EAEF,QACE,eAAc;;AAGlB,QAAO,oBAAC,SAAD;EAAS,GAAI;EAAM,SAAS;EAAe,CAAA;EAClD,OACM,GAAG;;;;;;;IAQV"}
@@ -1,4 +1,4 @@
1
- import { t as ValueControlProps } from "./types-DBBfOCX1.mjs";
1
+ import { t as ValueControlProps } from "./types-C2s9yhgO.mjs";
2
2
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
3
 
4
4
  //#region components/DataTable/TableControls/FiltersV2/value-controls/BooleanValueControl/BooleanValueControl.d.ts
@@ -49,4 +49,4 @@ declare const Breadcrumb: ({
49
49
  }: BreadcrumbProps) => _$react_jsx_runtime0.JSX.Element;
50
50
  //#endregion
51
51
  export { BreadcrumbSize as i, BreadcrumbHeadingAs as n, BreadcrumbProps as r, Breadcrumb as t };
52
- //# sourceMappingURL=Breadcrumb-Df06cTnA.d.mts.map
52
+ //# sourceMappingURL=Breadcrumb-BlAhp45l.d.mts.map
@@ -1,2 +1,2 @@
1
- import { i as BreadcrumbSize, n as BreadcrumbHeadingAs, r as BreadcrumbProps, t as Breadcrumb } from "./Breadcrumb-Df06cTnA.mjs";
1
+ import { i as BreadcrumbSize, n as BreadcrumbHeadingAs, r as BreadcrumbProps, t as Breadcrumb } from "./Breadcrumb-BlAhp45l.mjs";
2
2
  export { BreadcrumbHeadingAs, BreadcrumbProps, BreadcrumbSize, Breadcrumb as default };
@@ -1,14 +1,15 @@
1
- import { a as styled, r as css } from "./styledComponentsInterop-8zScIQyC.mjs";
2
- import { focusOutline } from "./mixins/focus.mjs";
3
- import "./variables/transitions.mjs";
1
+ import { a as styled, r as css } from "./styledComponentsInterop-NxwFjeA4.mjs";
2
+ import { semanticColor } from "./lib/semanticColor.mjs";
4
3
  import { paragraphMixins } from "./mixins/text.mjs";
5
- import { i as Paragraph } from "./Text-B0orb-cZ.mjs";
6
- import { a as Tooltip } from "./Tooltip-DSKGD33G.mjs";
7
- import { t as HStack } from "./Stack-Bre2oiov.mjs";
8
- import { t as IconButton } from "./IconButton-BnSEV7eR.mjs";
4
+ import { i as Paragraph } from "./Text-Dn_p7ZvT.mjs";
5
+ import "./variables/transitions.mjs";
6
+ import { a as Tooltip } from "./Tooltip-BsuYG0fw.mjs";
7
+ import { focusOutline } from "./mixins/focus.mjs";
8
+ import { t as HStack } from "./Stack-BqQndGI9.mjs";
9
+ import { t as IconButton } from "./IconButton-CnJNIJVQ.mjs";
9
10
  import { t as intersperse } from "./intersperse-CRUnXmnu.mjs";
10
11
  import Input_default from "./components/Input/index.mjs";
11
- import { t as TechnicalSticker } from "./TechnicalSticker-Ct2WnNzJ.mjs";
12
+ import { t as TechnicalSticker } from "./TechnicalSticker-D6MO_IfT.mjs";
12
13
  import { Spacing } from "@persona/design-tokens";
13
14
  import { useEffect, useRef, useState } from "react";
14
15
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -42,14 +43,14 @@ const editInputTextStyles = (size, current) => {
42
43
  };
43
44
  const ancestorCrumbStyles = css`
44
45
  ${paragraphMixins.md};
45
- color: ${({ theme }) => theme.color.text.secondary};
46
+ color: ${({ theme }) => semanticColor(theme, "FgSecondary", theme.color.text.secondary)};
46
47
  text-decoration: none;
47
48
  transition: color ${"100ms"} ease-out;
48
49
  ${focusOutline}
49
50
  ${({ $size }) => crumbLayoutStyles($size)}
50
51
 
51
52
  &:hover {
52
- color: ${({ theme }) => theme.color.text.primary};
53
+ color: ${({ theme }) => semanticColor(theme, "FgPrimary", theme.color.text.primary)};
53
54
  }
54
55
  `;
55
56
  const AncestorNavLink = styled(Link)`
@@ -71,8 +72,8 @@ const InlineEditInput = styled(Input_default)`
71
72
  field-sizing: content;
72
73
  display: inline-block;
73
74
  ${({ $size, $current }) => editInputTextStyles($size, $current)};
74
- background-color: ${({ theme }) => theme.color.background.primary};
75
- color: ${({ theme }) => theme.color.text.primary};
75
+ background-color: ${({ theme }) => semanticColor(theme, "SurfacePrimary", theme.color.background.primary)};
76
+ color: ${({ theme }) => semanticColor(theme, "FgPrimary", theme.color.text.primary)};
76
77
 
77
78
  &:not(:focus) {
78
79
  border-color: transparent;
@@ -270,7 +271,7 @@ const BreadcrumbListItem = styled.li`
270
271
  `;
271
272
  const Separator = styled.span`
272
273
  padding: 0 ${Spacing[2]};
273
- color: ${({ theme }) => theme.color.text.tertiary};
274
+ color: ${({ theme }) => semanticColor(theme, "FgSecondary", theme.color.text.tertiary)};
274
275
  user-select: none;
275
276
  ${({ $size }) => $size === "lg" ? paragraphMixins.lg : paragraphMixins.md};
276
277
  `;
@@ -302,4 +303,4 @@ const Breadcrumbs = ({ items, size = "md", headingAs = "h1", "aria-label": ariaL
302
303
  //#endregion
303
304
  export { Breadcrumbs as t };
304
305
 
305
- //# sourceMappingURL=Breadcrumbs-BEYQlGbW.mjs.map
306
+ //# sourceMappingURL=Breadcrumbs-ClKHNIr-.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Breadcrumbs-ClKHNIr-.mjs","names":["Input"],"sources":["../components/Breadcrumbs/Breadcrumb.tsx","../components/Breadcrumbs/Breadcrumbs.tsx"],"sourcesContent":["import { type ChangeEvent, useEffect, useRef, useState } from 'react';\nimport { Link } from 'react-router-dom';\nimport styled, { css } from 'styled-components';\n\nimport { Spacing } from '@persona/design-tokens';\nimport { CopyIcon, EditIcon } from '@persona/icons';\nimport { IconButton } from 'design-system/components/Button';\nimport Input from 'design-system/components/Input';\nimport { HStack } from 'design-system/components/Stack';\nimport TechnicalSticker from 'design-system/components/TechnicalSticker';\nimport { Paragraph } from 'design-system/components/Text';\nimport Tooltip from 'design-system/components/Tooltip';\nimport { semanticColor } from 'design-system/lib/semanticColor';\nimport { focusOutline } from 'design-system/mixins/focus';\nimport { paragraphMixins } from 'design-system/mixins/text';\nimport { TransitionDuration } from 'design-system/variables/transitions';\n\nexport type BreadcrumbSize = 'md' | 'lg';\n\nexport type BreadcrumbHeadingAs = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';\n\nconst COPY_TOOLTIP_LABEL = 'Copy ID';\nconst COPIED_TOOLTIP_LABEL = 'Copied!';\nconst DEFAULT_EDIT_MAX_LENGTH = 100;\nconst COPY_TOOLTIP_STICKER_MAX_WIDTH = '96px';\nconst COPY_TOOLTIP_STICKER_TOOLTIP_MAX_WIDTH = '250px';\n\nexport type BreadcrumbProps = {\n label: string;\n size?: BreadcrumbSize;\n current?: boolean;\n /**\n * Overrides the heading element rendered for the current crumb. Defaults to `h1`; use `h2` or\n * lower when the page already has an `h1`.\n */\n headingAs?: BreadcrumbHeadingAs;\n showCopyAction?: boolean;\n copyValue?: string;\n copyTooltipLabel?: string;\n /** Copy tooltip text shown after a successful copy. Defaults to `Copied!`. */\n copiedTooltipLabel?: string;\n /**\n * Appends `copyValue` to both copy tooltip texts as a `TechnicalSticker`, so the tooltip shows\n * which token is being copied.\n */\n showCopyValueInTooltip?: boolean;\n /** Internal dashboard path (e.g. `/cases`). Passed to the router `Link` as `to`. */\n href?: string;\n /**\n * Activates a non-current crumb without a route change, for trails that navigate in-place (e.g.\n * a control panel drilling into a sub-panel). Ignored when `href` is set.\n */\n onClick?: () => void;\n onEdit?: (newLabel: string) => void;\n editMaxLength?: number;\n onCopy?: () => void;\n};\n\nconst LABEL_ACTION_GAP = Spacing[2];\nconst ACTION_BUTTON_GAP = Spacing[1];\n\nconst CrumbRow = styled(HStack)`\n align-items: center;\n min-width: 0;\n`;\n\nconst crumbLayoutStyles = (size: BreadcrumbSize) => css`\n display: inline-flex;\n align-items: center;\n min-width: 0;\n min-height: ${({ theme }) => theme.element.height.xs};\n ${\n size === 'lg'\n ? css`\n font-size: ${({ theme }) => theme.text.paragraph.lg.fontSize};\n line-height: ${({ theme }) => theme.text.paragraph.lg.lineHeight};\n `\n : css``\n };\n`;\n\nconst editInputTextStyles = (size: BreadcrumbSize, current: boolean) => {\n if (current) {\n return size === 'lg' ? paragraphMixins.lgBold : paragraphMixins.mdBold;\n }\n return size === 'lg' ? paragraphMixins.lg : paragraphMixins.md;\n};\n\nconst ancestorCrumbStyles = css<{ $size: BreadcrumbSize }>`\n ${paragraphMixins.md};\n color: ${({ theme }) => semanticColor(theme, 'FgSecondary', theme.color.text.secondary)};\n text-decoration: none;\n transition: color ${TransitionDuration.ExtraFast} ease-out;\n ${focusOutline}\n ${({ $size }) => crumbLayoutStyles($size)}\n\n &:hover {\n color: ${({ theme }) => semanticColor(theme, 'FgPrimary', theme.color.text.primary)};\n }\n`;\n\nconst AncestorNavLink = styled(Link)<{ $size: BreadcrumbSize }>`\n ${ancestorCrumbStyles}\n`;\n\nconst AncestorNavButton = styled.button<{ $size: BreadcrumbSize }>`\n ${ancestorCrumbStyles}\n padding: 0;\n border: none;\n background: none;\n cursor: pointer;\n`;\n\nconst InlineEditInput = styled(Input)<{\n $size: BreadcrumbSize;\n $current: boolean;\n $editMinWidth?: number;\n}>`\n margin: 0;\n padding: 2px 10px;\n width: auto;\n max-width: 100%;\n min-width: ${({ $editMinWidth }) => ($editMinWidth != null ? `${$editMinWidth}px` : '0')};\n field-sizing: content;\n display: inline-block;\n ${({ $size, $current }) => editInputTextStyles($size, $current)};\n background-color: ${({ theme }) => semanticColor(theme, 'SurfacePrimary', theme.color.background.primary)};\n color: ${({ theme }) => semanticColor(theme, 'FgPrimary', theme.color.text.primary)};\n\n &:not(:focus) {\n border-color: transparent;\n }\n\n &:hover:not(:disabled) {\n border-style: solid;\n }\n`;\n\nconst CurrentLabel = styled(Paragraph)<{ $size: BreadcrumbSize }>`\n margin: 0;\n ${({ $size }) => crumbLayoutStyles($size)}\n`;\n\nconst copyToClipboard = async (value: string): Promise<boolean> => {\n try {\n if (navigator.clipboard?.writeText == null) {\n return false;\n }\n\n await navigator.clipboard.writeText(value);\n return true;\n } catch {\n return false;\n }\n};\n\nconst BreadcrumbCopyButton = ({\n copyValue,\n copyTooltipLabel = COPY_TOOLTIP_LABEL,\n copiedTooltipLabel = COPIED_TOOLTIP_LABEL,\n showCopyValueInTooltip = false,\n onCopy,\n}: {\n copyValue: string;\n copyTooltipLabel?: string;\n copiedTooltipLabel?: string;\n showCopyValueInTooltip?: boolean;\n onCopy?: () => void;\n}) => {\n const [tooltipOpen, setTooltipOpen] = useState(false);\n const [copied, setCopied] = useState(false);\n\n const handleCopy = async () => {\n const success = await copyToClipboard(copyValue);\n if (!success) {\n return;\n }\n\n setCopied(true);\n setTooltipOpen(true);\n onCopy?.();\n\n window.setTimeout(() => {\n setTooltipOpen(false);\n window.setTimeout(() => setCopied(false), 200);\n }, 1000);\n };\n\n const handleMouseEnter = () => {\n if (!copied) {\n setTooltipOpen(true);\n }\n };\n\n const handleMouseLeave = () => {\n if (!copied) {\n setTooltipOpen(false);\n }\n };\n\n const trigger = (\n <span onMouseEnter={handleMouseEnter} onMouseLeave={handleMouseLeave}>\n <IconButton\n type='button'\n size='sm'\n aria-label={`Copy ${copyValue}`}\n onClick={(event) => {\n event.preventDefault();\n event.stopPropagation();\n void handleCopy();\n }}\n >\n <CopyIcon />\n </IconButton>\n </span>\n );\n\n const tooltipLabel = copied ? copiedTooltipLabel : copyTooltipLabel;\n\n return (\n <Tooltip\n trigger={trigger}\n open={tooltipOpen}\n side='top'\n sideOffset={4}\n size='sm'\n contentAlignment='center'\n interactive={false}\n hideArrow\n portal={false}\n maxWidth={showCopyValueInTooltip ? COPY_TOOLTIP_STICKER_TOOLTIP_MAX_WIDTH : undefined}\n >\n {showCopyValueInTooltip ? (\n <HStack spacing={ACTION_BUTTON_GAP} align='center'>\n <span>{tooltipLabel}</span>\n <TechnicalSticker copyable={false} maxWidth={COPY_TOOLTIP_STICKER_MAX_WIDTH}>\n {copyValue}\n </TechnicalSticker>\n </HStack>\n ) : (\n tooltipLabel\n )}\n </Tooltip>\n );\n};\n\nconst Breadcrumb = ({\n label,\n size = 'md',\n current = false,\n headingAs = 'h1',\n showCopyAction = false,\n copyValue,\n copyTooltipLabel,\n copiedTooltipLabel,\n showCopyValueInTooltip,\n href,\n onClick,\n onEdit,\n editMaxLength = DEFAULT_EDIT_MAX_LENGTH,\n onCopy,\n}: BreadcrumbProps) => {\n const [isEditing, setIsEditing] = useState(false);\n const [editValue, setEditValue] = useState(label);\n const [editMinWidth, setEditMinWidth] = useState<number | undefined>();\n const editInputRef = useRef<HTMLInputElement>(null);\n\n useEffect(() => {\n if (!isEditing) {\n setEditValue(label);\n }\n }, [isEditing, label]);\n\n useEffect(() => {\n if (!isEditing) {\n setEditMinWidth(undefined);\n return;\n }\n\n const input = editInputRef.current;\n if (input == null) {\n return;\n }\n\n setEditMinWidth(input.offsetWidth);\n input.focus();\n input.select();\n }, [isEditing]);\n\n const commitEdit = () => {\n if (!isEditing) {\n return;\n }\n\n setIsEditing(false);\n if (editValue !== label) {\n onEdit?.(editValue);\n }\n };\n\n const inlineActions = !isEditing && (showCopyAction || onEdit) && (\n <HStack spacing={ACTION_BUTTON_GAP} align='center'>\n {onEdit && (\n <IconButton\n type='button'\n size='sm'\n aria-label={`Edit ${label}`}\n onClick={(event) => {\n event.preventDefault();\n event.stopPropagation();\n setIsEditing(true);\n }}\n >\n <EditIcon />\n </IconButton>\n )}\n {showCopyAction && copyValue != null && (\n <BreadcrumbCopyButton\n copyValue={copyValue}\n copyTooltipLabel={copyTooltipLabel}\n copiedTooltipLabel={copiedTooltipLabel}\n showCopyValueInTooltip={showCopyValueInTooltip}\n onCopy={onCopy}\n />\n )}\n </HStack>\n );\n\n if (isEditing) {\n return (\n <CrumbRow spacing={LABEL_ACTION_GAP}>\n <InlineEditInput\n ref={editInputRef}\n $size={size}\n $current={current}\n $editMinWidth={editMinWidth}\n size='md'\n aria-label={`Edit ${label}`}\n maxLength={editMaxLength}\n value={editValue}\n onChange={(event: ChangeEvent<HTMLInputElement>) => setEditValue(event.target.value)}\n onBlur={commitEdit}\n onKeyDown={(event) => {\n if (event.key === 'Enter') {\n event.preventDefault();\n commitEdit();\n }\n if (event.key === 'Escape') {\n setEditValue(label);\n setIsEditing(false);\n }\n }}\n />\n </CrumbRow>\n );\n }\n\n if (current) {\n return (\n <CrumbRow spacing={LABEL_ACTION_GAP}>\n <CurrentLabel\n $size={size}\n size={size === 'lg' ? 'lg' : 'md'}\n weight='bold'\n color='primary'\n as={headingAs}\n >\n {label}\n </CurrentLabel>\n {inlineActions}\n </CrumbRow>\n );\n }\n\n if (href == null && onClick != null) {\n return (\n <CrumbRow spacing={LABEL_ACTION_GAP}>\n <AncestorNavButton type='button' onClick={onClick} $size={size}>\n {label}\n </AncestorNavButton>\n {inlineActions}\n </CrumbRow>\n );\n }\n\n return (\n <CrumbRow spacing={LABEL_ACTION_GAP}>\n <AncestorNavLink to={href ?? ''} $size={size}>\n {label}\n </AncestorNavLink>\n {inlineActions}\n </CrumbRow>\n );\n};\n\nexport default Breadcrumb;\n","import styled from 'styled-components';\n\nimport { Spacing } from '@persona/design-tokens';\nimport { intersperse } from 'design-system/lib/intersperse';\nimport { semanticColor } from 'design-system/lib/semanticColor';\nimport { paragraphMixins } from 'design-system/mixins/text';\n\nimport Breadcrumb, {\n type BreadcrumbHeadingAs,\n type BreadcrumbProps,\n type BreadcrumbSize,\n} from './Breadcrumb';\n\nexport type BreadcrumbsItemProps = Omit<BreadcrumbProps, 'size' | 'current' | 'headingAs'>;\n\nexport type BreadcrumbsProps = {\n items: BreadcrumbsItemProps[];\n size?: BreadcrumbSize;\n /**\n * Overrides the heading element rendered for the current crumb. Defaults to `h1`; use `h2` or\n * lower when the page already has an `h1`.\n */\n headingAs?: BreadcrumbHeadingAs;\n 'aria-label'?: string;\n className?: string;\n};\n\nconst BreadcrumbList = styled.ol`\n max-width: 100%;\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n list-style: none;\n margin: 0;\n padding: 0;\n min-width: 0;\n`;\n\nconst BreadcrumbListItem = styled.li`\n display: flex;\n align-items: center;\n min-width: 0;\n`;\n\nconst Separator = styled.span<{ $size: BreadcrumbSize }>`\n padding: 0 ${Spacing[2]};\n color: ${({ theme }) => semanticColor(theme, 'FgSecondary', theme.color.text.tertiary)};\n user-select: none;\n ${({ $size }) => ($size === 'lg' ? paragraphMixins.lg : paragraphMixins.md)};\n`;\n\nexport const Breadcrumbs = ({\n items,\n size = 'md',\n headingAs = 'h1',\n 'aria-label': ariaLabel = 'Breadcrumbs',\n className,\n}: BreadcrumbsProps) => {\n if (items.length === 0) {\n return null;\n }\n\n const crumbNodes = items.map((item, index) => {\n const isCurrent = index === items.length - 1;\n\n return (\n <BreadcrumbListItem\n key={`${item.label}-${index}`}\n aria-current={isCurrent ? 'page' : undefined}\n >\n <Breadcrumb {...item} size={size} current={isCurrent} headingAs={headingAs} />\n </BreadcrumbListItem>\n );\n });\n\n const listItems = intersperse(crumbNodes, (separatorIndex: number) => (\n <BreadcrumbListItem key={`separator-${separatorIndex}`} aria-hidden='true'>\n <Separator $size={size}>/</Separator>\n </BreadcrumbListItem>\n ));\n\n return (\n <nav aria-label={ariaLabel} className={className}>\n <BreadcrumbList>{listItems}</BreadcrumbList>\n </nav>\n );\n};\n\nexport default Breadcrumbs;\n"],"mappings":"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"}
@@ -1,4 +1,4 @@
1
- import { i as BreadcrumbSize, n as BreadcrumbHeadingAs, r as BreadcrumbProps } from "./Breadcrumb-Df06cTnA.mjs";
1
+ import { i as BreadcrumbSize, n as BreadcrumbHeadingAs, r as BreadcrumbProps } from "./Breadcrumb-BlAhp45l.mjs";
2
2
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
3
 
4
4
  //#region components/Breadcrumbs/Breadcrumbs.d.ts
@@ -23,4 +23,4 @@ declare const Breadcrumbs: ({
23
23
  }: BreadcrumbsProps) => _$react_jsx_runtime0.JSX.Element | null;
24
24
  //#endregion
25
25
  export { BreadcrumbsItemProps as n, BreadcrumbsProps as r, Breadcrumbs as t };
26
- //# sourceMappingURL=Breadcrumbs-D_Gzd4_J.d.mts.map
26
+ //# sourceMappingURL=Breadcrumbs-DdZ14ZFw.d.mts.map
@@ -1,2 +1,2 @@
1
- import { n as BreadcrumbsItemProps, r as BreadcrumbsProps, t as Breadcrumbs } from "./Breadcrumbs-D_Gzd4_J.mjs";
1
+ import { n as BreadcrumbsItemProps, r as BreadcrumbsProps, t as Breadcrumbs } from "./Breadcrumbs-DdZ14ZFw.mjs";
2
2
  export { Breadcrumbs, Breadcrumbs as default, BreadcrumbsItemProps, BreadcrumbsProps };
@@ -1,7 +1,8 @@
1
- import { t as PseudoClassProps } from "./PseudoClassProps-BPdn-ofQ.mjs";
2
- import * as _$styled_components0 from "styled-components";
1
+ import { t as PseudoClassProps } from "./PseudoClassProps-DnlHhW5u.mjs";
2
+ import { n as ButtonVariant } from "./palette-BANY1Xfs.mjs";
3
3
  import * as _$react from "react";
4
4
  import { ComponentPropsWithoutRef, MouseEvent, ReactNode, Ref } from "react";
5
+ import * as _$styled_components0 from "styled-components";
5
6
  import { LinkProps } from "react-router-dom";
6
7
 
7
8
  //#region components/Button/Button.d.ts
@@ -29,7 +30,7 @@ interface ButtonProps extends ComponentPropsWithoutRef<'button'>, Omit<PseudoCla
29
30
  *
30
31
  * @defaultValue 'primary'
31
32
  */
32
- variant?: 'basic' | 'primary' | 'inverse' | 'danger' | 'text' | 'outline';
33
+ variant?: ButtonVariant;
33
34
  /**
34
35
  * Shows a loading spinner and disables the button. Also triggers automatically
35
36
  * when `onClick` returns a Promise, clearing once the promise settles.
@@ -98,4 +99,4 @@ interface ButtonProps extends ComponentPropsWithoutRef<'button'>, Omit<PseudoCla
98
99
  declare const Button: _$react.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & _$react.RefAttributes<HTMLButtonElement>>;
99
100
  //#endregion
100
101
  export { SuffixIconContainer as a, StyledButton as i, ButtonChildren as n, ButtonProps as r, Button as t };
101
- //# sourceMappingURL=Button-CRFbWv3l.d.mts.map
102
+ //# sourceMappingURL=Button-CTgyA3gc.d.mts.map
package/dist/Button.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as SuffixIconContainer, i as StyledButton, n as ButtonChildren, r as ButtonProps, t as Button } from "./Button-CRFbWv3l.mjs";
1
+ import { a as SuffixIconContainer, i as StyledButton, n as ButtonChildren, r as ButtonProps, t as Button } from "./Button-CTgyA3gc.mjs";
2
2
  export { ButtonChildren, ButtonProps, StyledButton, SuffixIconContainer, Button as default };
@@ -9,4 +9,4 @@ interface CalendarProps extends AriaCalendarProps<DateValue> {
9
9
  declare const Calendar: (props: CalendarProps) => _$react_jsx_runtime0.JSX.Element;
10
10
  //#endregion
11
11
  export { Calendar as t };
12
- //# sourceMappingURL=Calendar-DjnoZVcT.d.mts.map
12
+ //# sourceMappingURL=Calendar-_gM6U5ET.d.mts.map
@@ -1,2 +1,2 @@
1
- import { t as Calendar } from "./Calendar-DjnoZVcT.mjs";
1
+ import { t as Calendar } from "./Calendar-_gM6U5ET.mjs";
2
2
  export { Calendar as default };
@@ -1,4 +1,4 @@
1
- import { n as IconButtonProps } from "./IconButton-Bh-JJ-0x.mjs";
1
+ import { n as IconButtonProps } from "./IconButton-PnrnqQ1s.mjs";
2
2
  import * as _$styled_components0 from "styled-components";
3
3
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
4
4
 
@@ -0,0 +1,75 @@
1
+ import { c as ParagraphProps, u as SpanProps } from "./Text-tgFz40XD.mjs";
2
+ import { i as HeaderProps } from "./Header-1laYnwRP.mjs";
3
+ import { Spacing } from "@persona/design-tokens";
4
+ import { ComponentPropsWithoutRef, FC, PropsWithChildren, ReactElement, ReactNode } from "react";
5
+ import * as _$styled_components0 from "styled-components";
6
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
7
+
8
+ //#region components/Card/Card.d.ts
9
+ interface CardProps {
10
+ elevated?: boolean;
11
+ $matchCardV2?: boolean;
12
+ }
13
+ /**
14
+ * @deprecated Use CardV2 instead
15
+ */
16
+ declare const Card: _$styled_components0.StyledComponent<"div", any, CardProps, never>;
17
+ /**
18
+ * To be used within cards. Provides padding and basic layout. Should not be
19
+ * used if card's contents are edge-to-edge with no padding.
20
+ */
21
+ declare const Body: _$styled_components0.StyledComponent<"section", any, {
22
+ gap?: number;
23
+ padding?: Spacing;
24
+ $matchCardV2?: boolean;
25
+ }, never>;
26
+ interface TitleBaseProps {
27
+ icon?: ReactElement;
28
+ }
29
+ interface TitleProps extends TitleBaseProps, Pick<HeaderProps, 'actions' | 'subtitle'>, Omit<ComponentPropsWithoutRef<'h3'>, 'color' | 'size'> {
30
+ $matchCardV2?: boolean;
31
+ }
32
+ /**
33
+ * Label to be used within cards. Note that some cards lead with a Title while
34
+ * some others lead with a Subtitle (see below).
35
+ */
36
+ declare const Title: FC<TitleProps>;
37
+ /**
38
+ * Smaller label to be used within cards.
39
+ */
40
+ declare const Subtitle: _$styled_components0.StyledComponent<FC<PropsWithChildren<SpanProps>>, any, ParagraphProps & {
41
+ size: string;
42
+ }, "size">;
43
+ interface SectionProps extends Pick<HeaderProps, 'subtitle' | 'actions'>, Omit<ComponentPropsWithoutRef<'h3'>, 'color' | 'size'> {}
44
+ /**
45
+ * Header for section headers within a Card
46
+ */
47
+ declare const SectionHeader: ({
48
+ children,
49
+ ...elemProps
50
+ }: SectionProps) => _$react_jsx_runtime0.JSX.Element;
51
+ /**
52
+ * Wrapper for a full-width image to be used at the top of a card.
53
+ */
54
+ interface ImageProps {
55
+ height: number;
56
+ children: ReactNode;
57
+ }
58
+ declare const Image: FC<ImageProps>;
59
+ interface CollapsibleSectionProps {
60
+ id?: string;
61
+ defaultExpanded?: boolean;
62
+ title: ReactNode;
63
+ }
64
+ declare const CollapsibleSection: FC<PropsWithChildren<CollapsibleSectionProps>>;
65
+ declare const _default: typeof Card & {
66
+ Title: typeof Title;
67
+ SectionHeader: typeof SectionHeader;
68
+ Subtitle: typeof Subtitle;
69
+ Body: typeof Body;
70
+ Image: typeof Image;
71
+ CollapsibleSection: typeof CollapsibleSection;
72
+ };
73
+ //#endregion
74
+ export { SectionProps as n, _default as r, CardProps as t };
75
+ //# sourceMappingURL=Card-Dorym91P.d.mts.map
@@ -1,9 +1,10 @@
1
- import { a as styled, r as css } from "./styledComponentsInterop-8zScIQyC.mjs";
1
+ import { a as styled, r as css } from "./styledComponentsInterop-NxwFjeA4.mjs";
2
+ import { semanticColor, semanticOnly } from "./lib/semanticColor.mjs";
2
3
  import { headingMixins, paragraphMixins } from "./mixins/text.mjs";
3
4
  import "./variables/spacing.mjs";
4
- import { t as Spacer_default } from "./Spacer-BsK8tTwA.mjs";
5
- import { i as Paragraph } from "./Text-B0orb-cZ.mjs";
6
- import { t as useToggle } from "./useToggle-Bo3yd14Y.mjs";
5
+ import { t as Spacer_default } from "./Spacer-D58qwuXR.mjs";
6
+ import { i as Paragraph } from "./Text-Dn_p7ZvT.mjs";
7
+ import { t as useToggle } from "./useToggle-0zLL1E7s.mjs";
7
8
  import { Color, Spacing } from "@persona/design-tokens";
8
9
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
9
10
  import { ChevronDownIcon, ChevronUpIcon } from "@persona/icons";
@@ -20,7 +21,7 @@ const HeaderContainer = styled.div`
20
21
  `}
21
22
  }
22
23
  ${({ variant }) => variant === "section" && css`
23
- border-bottom: 1px solid ${({ theme }) => theme.color.border.primary};
24
+ border-bottom: 1px solid ${({ theme }) => semanticColor(theme, "BorderDivider", theme.color.border.primary)};
24
25
  `}
25
26
  `;
26
27
  const TitleContainer = styled.div`
@@ -33,6 +34,7 @@ const Title$1 = styled.h3`
33
34
  align-items: center;
34
35
  margin: 0px;
35
36
  gap: ${Spacing[2]};
37
+ ${semanticOnly((tokens) => `color: ${tokens.FgPrimary};`)}
36
38
  ${({ variant }) => {
37
39
  switch (variant) {
38
40
  case "section": return paragraphMixins.lgBold;
@@ -44,13 +46,13 @@ const Title$1 = styled.h3`
44
46
  `}
45
47
  `;
46
48
  const ActionsContainer = styled.div`
47
- color: ${({ theme }) => theme.color.text.secondary};
49
+ color: ${({ theme }) => semanticColor(theme, "FgSecondary", theme.color.text.secondary)};
48
50
  display: flex;
49
51
  align-items: center;
50
52
  gap: ${Spacing[2]};
51
53
  `;
52
54
  const FullDivider = styled.hr`
53
- border-top: 1px solid ${Color.BorderDivider};
55
+ border-top: 1px solid ${({ theme }) => semanticColor(theme, "BorderSubtle", Color.BorderDivider)};
54
56
  margin: 0;
55
57
 
56
58
  /* Use negative margin to bleed the divider out of the grid. */
@@ -82,7 +84,7 @@ const Card = styled("div")`
82
84
  display: flex;
83
85
  flex-direction: column;
84
86
  margin-bottom: ${Spacing[4]};
85
- background-color: ${({ theme }) => theme.color.background.primary};
87
+ background-color: ${({ theme }) => semanticColor(theme, "SurfacePrimary", theme.color.background.primary)};
86
88
  font-family: ${({ theme }) => theme.text.fontFamily.base};
87
89
  ${({ elevated }) => elevated && css`
88
90
  box-shadow: 0px 0px 14px 2px rgba(0, 0, 0, 0.12);
@@ -155,7 +157,7 @@ const Title = ({ icon, children, ...elemProps }) => /* @__PURE__ */ jsxs(Header,
155
157
  * Smaller label to be used within cards.
156
158
  */
157
159
  const Subtitle = styled(Paragraph).attrs(() => ({ size: "md" }))`
158
- color: ${({ theme }) => theme.color.text.tertiary};
160
+ color: ${({ theme }) => semanticColor(theme, "FgSecondary", theme.color.text.tertiary)};
159
161
  `;
160
162
  /**
161
163
  * Header for section headers within a Card
@@ -202,4 +204,4 @@ var Card_default = Object.assign(Card, {
202
204
  //#endregion
203
205
  export { Root as a, HeaderContainer as i, ActionsContainer as n, Title$1 as o, Header as r, TitleContainer as s, Card_default as t };
204
206
 
205
- //# sourceMappingURL=Card-CKrJtn1f.mjs.map
207
+ //# sourceMappingURL=Card-vQIPtdXi.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Card-vQIPtdXi.mjs","names":["Title","Spacer"],"sources":["../components/Card/Header/Header.tsx","../components/Card/Card.tsx"],"sourcesContent":["import type { ComponentPropsWithoutRef, ReactNode } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport { Color, Spacing } from '@persona/design-tokens';\nimport { semanticColor, semanticOnly } from 'design-system/lib/semanticColor';\nimport { headingMixins, paragraphMixins } from 'design-system/mixins/text';\n\nexport interface HeaderProps {\n children: ReactNode;\n subtitle?: ReactNode;\n variant?: 'title' | 'section';\n actions?: ReactNode;\n $matchCardV2?: boolean;\n}\n\nexport const HeaderContainer = styled.div<Pick<HeaderProps, 'variant' | '$matchCardV2'>>`\n ${paragraphMixins.md};\n display: flex;\n align-items: center;\n justify-content: space-between;\n &:not(:only-child) {\n margin: 0px 0px ${Spacing[4]} 0px;\n ${({ $matchCardV2 }) =>\n $matchCardV2 &&\n css`\n margin-bottom: ${Spacing[1]};\n `}\n }\n ${({ variant }) =>\n variant === 'section' &&\n css`\n border-bottom: 1px solid ${({ theme }) => semanticColor(theme, 'BorderDivider', theme.color.border.primary)};\n `}\n`;\n\nexport const TitleContainer = styled.div`\n display: flex;\n align-items: center;\n gap: ${Spacing[2]};\n`;\n\nexport const Title = styled.h3<Pick<HeaderProps, 'variant' | '$matchCardV2'>>`\n display: flex;\n align-items: center;\n margin: 0px;\n gap: ${Spacing[2]};\n ${semanticOnly((tokens) => `color: ${tokens.FgPrimary};`)}\n ${({ variant }) => {\n switch (variant) {\n case 'section':\n return paragraphMixins.lgBold;\n case 'title':\n default:\n return headingMixins.sm;\n }\n }}\n ${({ $matchCardV2 }) =>\n $matchCardV2 &&\n css`\n ${headingMixins.xsm};\n `}\n`;\n\nexport const ActionsContainer = styled.div`\n color: ${({ theme }) => semanticColor(theme, 'FgSecondary', theme.color.text.secondary)};\n display: flex;\n align-items: center;\n gap: ${Spacing[2]};\n`;\n\nconst FullDivider = styled.hr`\n border-top: 1px solid ${({ theme }) => semanticColor(theme, 'BorderSubtle', Color.BorderDivider)};\n margin: 0;\n\n /* Use negative margin to bleed the divider out of the grid. */\n margin-left: -${Spacing[5]};\n margin-right: -${Spacing[5]};\n`;\n\nconst Header = ({\n children,\n variant,\n actions,\n subtitle,\n $matchCardV2,\n ...elemProps\n}: HeaderProps & ComponentPropsWithoutRef<'div'>) => {\n return (\n <>\n <HeaderContainer variant={variant} {...elemProps} $matchCardV2={$matchCardV2}>\n <TitleContainer>\n <Title variant={variant} $matchCardV2={$matchCardV2}>\n {children}\n </Title>\n {subtitle}\n </TitleContainer>\n <ActionsContainer>{actions}</ActionsContainer>\n </HeaderContainer>\n {$matchCardV2 && <FullDivider />}\n </>\n );\n};\n\nexport const Root = Header;\n\nexport default Header;\n","import type {\n ComponentPropsWithoutRef,\n FC,\n PropsWithChildren,\n ReactElement,\n ReactNode,\n} from 'react';\nimport styled, { css } from 'styled-components';\n\nimport { Spacing } from '@persona/design-tokens';\nimport { ChevronDownIcon, ChevronUpIcon } from '@persona/icons';\nimport Header, { type HeaderProps } from 'design-system/components/Card/Header';\nimport Spacer from 'design-system/components/Spacer';\nimport { Paragraph } from 'design-system/components/Text';\nimport { semanticColor } from 'design-system/lib/semanticColor';\nimport useToggle from 'design-system/lib/useToggle';\nimport { BASE } from 'design-system/variables/spacing';\n\nexport interface CardProps {\n elevated?: boolean;\n $matchCardV2?: boolean;\n}\n\n/**\n * @deprecated Use CardV2 instead\n */\nconst Card = styled('div')<CardProps>`\n border-radius: ${({ theme }) => {\n return theme.card.borderRadius;\n }};\n display: flex;\n flex-direction: column;\n margin-bottom: ${Spacing[4]};\n background-color: ${({ theme }) => semanticColor(theme, 'SurfacePrimary', theme.color.background.primary)};\n font-family: ${({ theme }) => theme.text.fontFamily.base};\n ${({ elevated }) =>\n elevated &&\n css`\n box-shadow: 0px 0px 14px 2px rgba(0, 0, 0, 0.12);\n `}\n\n ${({ $matchCardV2 }) =>\n $matchCardV2 &&\n css`\n margin-bottom: 0;\n `}\n`;\n\n/**\n * To be used within cards. Provides padding and basic layout. Should not be\n * used if card's contents are edge-to-edge with no padding.\n */\nconst Body = styled('section')<{ gap?: number; padding?: Spacing; $matchCardV2?: boolean }>`\n margin: 0;\n padding: ${({ padding }) => padding ?? Spacing[5]};\n display: grid;\n grid-auto-flow: row;\n grid-gap: ${({ gap }) => (gap != null ? gap : BASE)}px;\n /**\n * Prevent grid blowout\n * https://css-tricks.com/preventing-a-grid-blowout/\n */\n grid-template-columns: minmax(0, 1fr);\n\n ${({ $matchCardV2 }) =>\n $matchCardV2 &&\n css`\n padding: ${Spacing[4]} ${Spacing[5]};\n grid-gap: ${Spacing[3]};\n `}\n`;\n\nconst IconContainer = styled('div')`\n margin-right: ${Spacing[3]};\n display: flex;\n align-items: center;\n\n > svg {\n height: 24px;\n width: 24px;\n }\n`;\n\nconst ImageWrapper = styled('div')<{ height: number }>`\n width: 100%;\n overflow: hidden;\n border-radius: ${({ theme }) => theme.card.borderRadius} ${({ theme }) => theme.card.borderRadius}\n 0px 0px;\n\n ${({ height }) => {\n return css`\n height: ${height}px;\n `;\n }};\n\n > img,\n svg {\n width: 100%;\n border-radius: ${({ theme }) => theme.card.borderRadius}\n ${({ theme }) => theme.card.borderRadius} 0px 0px;\n }\n`;\n\ninterface TitleBaseProps {\n icon?: ReactElement;\n}\n\ninterface TitleProps\n extends\n TitleBaseProps,\n Pick<HeaderProps, 'actions' | 'subtitle'>,\n Omit<ComponentPropsWithoutRef<'h3'>, 'color' | 'size'> {\n $matchCardV2?: boolean;\n}\n\n/**\n * Label to be used within cards. Note that some cards lead with a Title while\n * some others lead with a Subtitle (see below).\n */\nconst Title: FC<TitleProps> = ({ icon, children, ...elemProps }) => (\n <Header variant='title' {...elemProps}>\n {icon != null && <IconContainer>{icon}</IconContainer>}\n {children}\n </Header>\n);\n\n/**\n * Smaller label to be used within cards.\n */\nconst Subtitle = styled(Paragraph).attrs(() => ({ size: 'md' }))`\n color: ${({ theme }) => semanticColor(theme, 'FgSecondary', theme.color.text.tertiary)};\n`;\n\nexport interface SectionProps\n extends\n Pick<HeaderProps, 'subtitle' | 'actions'>,\n Omit<ComponentPropsWithoutRef<'h3'>, 'color' | 'size'> {}\n\n/**\n * Header for section headers within a Card\n */\nconst SectionHeader = ({ children, ...elemProps }: SectionProps) => (\n <Header variant='section' {...elemProps}>\n {children}\n </Header>\n);\n\n/**\n * Wrapper for a full-width image to be used at the top of a card.\n */\n\ninterface ImageProps {\n height: number;\n children: ReactNode;\n}\n\nconst Image: FC<ImageProps> = ({ height, children, ...elemProps }) => (\n <ImageWrapper {...elemProps} height={height}>\n {children}\n </ImageWrapper>\n);\n\ninterface CollapsibleSectionProps {\n id?: string;\n defaultExpanded?: boolean;\n title: ReactNode;\n}\n\nconst CollapsibleSection: FC<PropsWithChildren<CollapsibleSectionProps>> = ({\n id,\n defaultExpanded,\n title,\n children,\n}) => {\n const [isOpen, { toggle }] = useToggle(defaultExpanded);\n\n return (\n <section>\n <div id={id} onClick={toggle}>\n <Header variant='section'>\n <HeaderIcon>\n {isOpen ? <ChevronUpIcon /> : <ChevronDownIcon />}\n <Spacer width={0.5} height={0} />\n </HeaderIcon>\n {title}\n </Header>\n </div>\n <div>\n {isOpen && (\n <>\n <Spacer height={1} />\n {children}\n </>\n )}\n </div>\n <Spacer height={1} />\n </section>\n );\n};\n\nconst HeaderIcon = styled.div`\n display: flex;\n`;\n\nexport default Object.assign(Card, {\n Title,\n SectionHeader,\n Subtitle,\n Body,\n Image,\n CollapsibleSection,\n}) as typeof Card & {\n Title: typeof Title;\n SectionHeader: typeof SectionHeader;\n Subtitle: typeof Subtitle;\n Body: typeof Body;\n Image: typeof Image;\n CollapsibleSection: typeof CollapsibleSection;\n};\n"],"mappings":"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"}
package/dist/Card.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { n as SectionProps, r as _default, t as CardProps } from "./Card-BoGV5tY2.mjs";
1
+ import { n as SectionProps, r as _default, t as CardProps } from "./Card-Dorym91P.mjs";
2
2
  export { CardProps, SectionProps, _default as default };
package/dist/Card2.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { SectionHeading } from "./SectionHeading.mjs";
2
- import * as _$styled_components0 from "styled-components";
3
2
  import { ComponentProps, FC, ReactNode } from "react";
3
+ import * as _$styled_components0 from "styled-components";
4
4
 
5
5
  //#region components/CardV2/Card.d.ts
6
6
  declare const CardContainer: _$styled_components0.StyledComponent<"div", any, {}, never>;
@@ -1,18 +1,19 @@
1
- import { a as styled, r as css } from "./styledComponentsInterop-8zScIQyC.mjs";
2
- import { focusStyle } from "./mixins/focus.mjs";
3
- import "./variables/transitions.mjs";
4
1
  import ConfigContext from "./lib/ConfigContext.mjs";
2
+ import { a as styled, r as css } from "./styledComponentsInterop-NxwFjeA4.mjs";
5
3
  import { HeadlessAriaButton } from "./lib/HeadlessAriaButton.mjs";
6
4
  import { TruncatedText } from "./lib/TruncatedText.mjs";
7
- import { i as Paragraph, n as Heading$1 } from "./Text-B0orb-cZ.mjs";
8
- import { a as Tooltip } from "./Tooltip-DSKGD33G.mjs";
5
+ import { semanticColor } from "./lib/semanticColor.mjs";
6
+ import { i as Paragraph, n as Heading$1 } from "./Text-Dn_p7ZvT.mjs";
7
+ import "./variables/transitions.mjs";
8
+ import { a as Tooltip } from "./Tooltip-BsuYG0fw.mjs";
9
9
  import { Z_INDICES } from "./lib/zindex.mjs";
10
- import { t as HStack } from "./Stack-Bre2oiov.mjs";
11
- import { n as Button$1, t as IconButton } from "./IconButton-BnSEV7eR.mjs";
10
+ import { focusStyle } from "./mixins/focus.mjs";
11
+ import { t as HStack } from "./Stack-BqQndGI9.mjs";
12
+ import { n as Button$1, t as IconButton } from "./IconButton-CnJNIJVQ.mjs";
12
13
  import { t as intersperse } from "./intersperse-CRUnXmnu.mjs";
13
- import { n as DropdownMenu_default } from "./DropdownMenu-CyxizDxJ.mjs";
14
- import { t as DropdownButton } from "./DropdownButton-dpGAmVlN.mjs";
15
- import { t as LoadingShimmer } from "./LoadingShimmer-a2Hv0kAq.mjs";
14
+ import { n as DropdownMenu_default } from "./DropdownMenu-DovtBJBs.mjs";
15
+ import { t as DropdownButton } from "./DropdownButton-DV5if_uG.mjs";
16
+ import { t as LoadingShimmer } from "./LoadingShimmer-DeVCDCjT.mjs";
16
17
  import { Color, Spacing, Typography } from "@persona/design-tokens";
17
18
  import { createContext, useContext } from "react";
18
19
  import { Disclosure, DisclosurePanel } from "react-aria-components";
@@ -75,7 +76,7 @@ const HeadingContainer = styled(HStack)`
75
76
  padding: ${Spacing[4]} ${Spacing[5]};
76
77
  `}
77
78
  ${({ $divider }) => $divider && css`
78
- border-bottom: 1px solid ${Color.BorderDivider};
79
+ border-bottom: 1px solid ${({ theme }) => semanticColor(theme, "BorderSubtle", Color.BorderDivider)};
79
80
  `}
80
81
  ${({ $isTopSection, $hasFooter, $isExpanded }) => $isTopSection && !$hasFooter && !$isExpanded && css`
81
82
  // We apply 4px of whitespace to the bottom of the card container so that content has a buffer
@@ -206,7 +207,7 @@ const FooterParagraph = styled(Paragraph)`
206
207
  `;
207
208
  const FooterContainer = styled.div`
208
209
  ${({ $divider }) => $divider && css`
209
- border-top: 1px solid ${Color.BorderDivider};
210
+ border-top: 1px solid ${({ theme }) => semanticColor(theme, "BorderSubtle", Color.BorderDivider)};
210
211
  `}
211
212
  padding: ${Spacing[3]} ${Spacing[5]} ${Spacing[2]};
212
213
  `;
@@ -220,7 +221,7 @@ const MaybeStickyContainer = styled.div`
220
221
  // structure to the content container (and possibly needing to adjust heights for heading and footer).
221
222
  position: sticky;
222
223
  top: 0;
223
- background-color: ${({ theme }) => theme.color.background.primary};
224
+ background-color: ${({ theme }) => semanticColor(theme, "SurfacePrimary", theme.color.background.primary)};
224
225
  z-index: ${Z_INDICES.sticky};
225
226
  `}
226
227
 
@@ -338,7 +339,7 @@ const Section = ({ children, isTopSection, heading, footer, footerContent, loadi
338
339
  //#region components/CardV2/Card.tsx
339
340
  const CardContainer = styled.div`
340
341
  border-radius: ${({ theme }) => theme.card.borderRadius};
341
- background-color: ${({ theme }) => theme.color.background.primary};
342
+ background-color: ${({ theme }) => semanticColor(theme, "SurfacePrimary", theme.color.background.primary)};
342
343
  // Height has been tricky here.
343
344
  // inherit seems to work well for both grid and flexbox layouts. In a grid we want this
344
345
  // container to receive the full cell height, In a flexbox we want this container to flex, maintaining
@@ -348,13 +349,13 @@ const CardContainer = styled.div`
348
349
 
349
350
  box-sizing: border-box;
350
351
  // Small buffer so that content is not scrolling right on the edge of the card.
351
- border-bottom: 4px solid ${({ theme }) => theme.color.background.primary};
352
+ border-bottom: 4px solid ${({ theme }) => semanticColor(theme, "SurfacePrimary", theme.color.background.primary)};
352
353
  `;
353
354
  const CardContext = createContext({});
354
355
  const Divider = styled.hr`
355
356
  margin: 0;
356
357
  border: none;
357
- border-top: 1px solid ${Color.BorderDivider};
358
+ border-top: 1px solid ${({ theme }) => semanticColor(theme, "BorderSubtle", Color.BorderDivider)};
358
359
  `;
359
360
  /**
360
361
  * Renders a card section.
@@ -414,4 +415,4 @@ var Card_default = Object.assign(Card, {
414
415
  //#endregion
415
416
  export { CARD_HEADING_STICKY_OFFSET as n, Card_default as t };
416
417
 
417
- //# sourceMappingURL=CardV2-B2wx1NE3.mjs.map
418
+ //# sourceMappingURL=CardV2-CFTjYWoO.mjs.map