@persona/design-system 0.10.7 → 0.10.9

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 (523) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/{Action-BLMJwLBV.d.mts → Action-CHWYwpYR.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 +2 -2
  8. package/dist/{Badge-8YzapjWf.mjs → Badge-BCdsVKuj.mjs} +2 -2
  9. package/dist/{Badge-8YzapjWf.mjs.map → Badge-BCdsVKuj.mjs.map} +1 -1
  10. package/dist/BooleanValueControl.d.mts +1 -1
  11. package/dist/{Breadcrumb-chGXhl3V.d.mts → Breadcrumb-uK4v6_P1.d.mts} +1 -1
  12. package/dist/Breadcrumb.d.mts +1 -1
  13. package/dist/{Breadcrumbs-ChKWIuRq.d.mts → Breadcrumbs-3MtvzTPi.d.mts} +2 -2
  14. package/dist/{Breadcrumbs-Dft2TR4v.mjs → Breadcrumbs-CMf3Uvow.mjs} +4 -4
  15. package/dist/{Breadcrumbs-Dft2TR4v.mjs.map → Breadcrumbs-CMf3Uvow.mjs.map} +1 -1
  16. package/dist/Breadcrumbs.d.mts +1 -1
  17. package/dist/{Button-B79_aXfC.d.mts → Button-DjD8QxcY.d.mts} +4 -4
  18. package/dist/Button.d.mts +1 -1
  19. package/dist/{Calendar-50D7poM_.d.mts → Calendar-DRJljp8S.d.mts} +1 -1
  20. package/dist/Calendar.d.mts +1 -1
  21. package/dist/CalendarBase.d.mts +1 -1
  22. package/dist/CalendarCell.d.mts +1 -1
  23. package/dist/CalendarGrid.d.mts +1 -1
  24. package/dist/{Card-DOIqF954.d.mts → Card-DiUHtYg_.d.mts} +3 -3
  25. package/dist/Card.d.mts +1 -1
  26. package/dist/CardGrouping.d.mts +2 -2
  27. package/dist/{CardV2-BRJbRSts.mjs → CardV2-ACI5RIzF.mjs} +5 -5
  28. package/dist/{CardV2-BRJbRSts.mjs.map → CardV2-ACI5RIzF.mjs.map} +1 -1
  29. package/dist/{Checkbox-EgYclGfH.d.mts → Checkbox-Clt9mCTk.d.mts} +1 -1
  30. package/dist/Checkbox.d.mts +1 -1
  31. package/dist/{CheckboxGroupField-Cw-1UxIW.d.mts → CheckboxGroupField-DnVqlpwi.d.mts} +3 -3
  32. package/dist/CheckboxGroupField.d.mts +1 -1
  33. package/dist/ChoicesValueControl.d.mts +1 -1
  34. package/dist/{Combobox-DQxaOCLA.mjs → Combobox-Gb_j1dg6.mjs} +5 -5
  35. package/dist/{Combobox-DQxaOCLA.mjs.map → Combobox-Gb_j1dg6.mjs.map} +1 -1
  36. package/dist/{Combobox-BkDYZlUh.d.mts → Combobox-fYZjpn5-.d.mts} +3 -3
  37. package/dist/Combobox.d.mts +2 -2
  38. package/dist/{ComboboxBase-1Xy4pnRV.d.mts → ComboboxBase-Mb8HyeAI.d.mts} +6 -6
  39. package/dist/ComboboxBase.d.mts +1 -1
  40. package/dist/{ComboboxMultiSelect-DHf7NK7Z.d.mts → ComboboxMultiSelect-C87lkXr7.d.mts} +2 -2
  41. package/dist/ComboboxMultiSelect.d.mts +1 -1
  42. package/dist/{ComboboxSingleSelect-Ble5PcXQ.d.mts → ComboboxSingleSelect-CIYakRW5.d.mts} +4 -4
  43. package/dist/ComboboxSingleSelect.d.mts +1 -1
  44. package/dist/{CompactBar-DmoFq5i6.d.mts → CompactBar-BLZZWtIE.d.mts} +3 -3
  45. package/dist/CompactBar.d.mts +1 -1
  46. package/dist/{ControlBar-dqzVo6e6.d.mts → ControlBar-B3Jn8G0k.d.mts} +6 -5
  47. package/dist/ControlBar.d.mts +1 -1
  48. package/dist/{DataTable-Cblw6bLk.d.mts → DataTable-Bf1WDY0z.d.mts} +6 -6
  49. package/dist/{DataTable-B7QqP6YU.mjs → DataTable-CIZJ1vO8.mjs} +10 -10
  50. package/dist/{DataTable-B7QqP6YU.mjs.map → DataTable-CIZJ1vO8.mjs.map} +1 -1
  51. package/dist/DataTable.d.mts +1 -1
  52. package/dist/{DateField-CbTxDzYF.d.mts → DateField-BIPqfQzC.d.mts} +2 -2
  53. package/dist/DateField.d.mts +1 -1
  54. package/dist/{DatePicker-1BADH9Pi.d.mts → DatePicker-BdOqWdwx.d.mts} +2 -2
  55. package/dist/{DatePicker-CHaNe2Es.mjs → DatePicker-C9redLBr.mjs} +5 -5
  56. package/dist/{DatePicker-CHaNe2Es.mjs.map → DatePicker-C9redLBr.mjs.map} +1 -1
  57. package/dist/DatePicker.d.mts +1 -1
  58. package/dist/{DateRangePicker-fq-_pFpg.d.mts → DateRangePicker-DlHC2q--.d.mts} +3 -3
  59. package/dist/DateRangePicker.d.mts +1 -1
  60. package/dist/DateRangeValueControl.d.mts +2 -2
  61. package/dist/DateValueControl.d.mts +1 -1
  62. package/dist/{DropdownButton-BiFRlSVD.mjs → DropdownButton-DpLG-cIj.mjs} +3 -3
  63. package/dist/{DropdownButton-BiFRlSVD.mjs.map → DropdownButton-DpLG-cIj.mjs.map} +1 -1
  64. package/dist/DropdownButton.d.mts +2 -2
  65. package/dist/{DropdownMenu-DjdNBJqP.d.mts → DropdownMenu-DVxXQDRC.d.mts} +2 -2
  66. package/dist/{DropdownMenu-Q8S-9rXm.mjs → DropdownMenu-c8XK2Lr4.mjs} +2 -2
  67. package/dist/{DropdownMenu-Q8S-9rXm.mjs.map → DropdownMenu-c8XK2Lr4.mjs.map} +1 -1
  68. package/dist/DropdownMenu.d.mts +1 -1
  69. package/dist/{ErrorProps-D4G9EWX2.d.mts → ErrorProps-4Ohsinrf.d.mts} +1 -1
  70. package/dist/ErrorProps.d.mts +1 -1
  71. package/dist/{FieldRegistry-CPr7YoG5.d.mts → FieldRegistry-C2NVPhMO.d.mts} +2 -2
  72. package/dist/FieldRegistry.d.mts +1 -1
  73. package/dist/{FilterBar-DPCPfr4_.d.mts → FilterBar-BE_gBM0H.d.mts} +4 -4
  74. package/dist/FilterBar.d.mts +1 -1
  75. package/dist/FilterPickerMenu.d.mts +2 -2
  76. package/dist/FilterPill.d.mts +1 -1
  77. package/dist/FilterPopover.d.mts +1 -1
  78. package/dist/FloatValueControl.d.mts +1 -1
  79. package/dist/{FloatingActionBar-u3TJcigs.d.mts → FloatingActionBar-BUgSKimy.d.mts} +1 -1
  80. package/dist/FloatingActionBar.d.mts +1 -1
  81. package/dist/{FloatingToolbar-Df90f7Dm.mjs → FloatingToolbar-DLRaE0o7.mjs} +3 -3
  82. package/dist/{FloatingToolbar-Df90f7Dm.mjs.map → FloatingToolbar-DLRaE0o7.mjs.map} +1 -1
  83. package/dist/{FormControl-D8vpeAPI.d.mts → FormControl-BQe3GRhi.d.mts} +2 -2
  84. package/dist/FormControl.d.mts +1 -1
  85. package/dist/FormControlLabel.d.mts +1 -1
  86. package/dist/{FormField-C6vp1Vfe.d.mts → FormField-BW5uMzId.d.mts} +2 -2
  87. package/dist/{FormField-BStxmlZT.mjs → FormField-Cf1VMvoa.mjs} +7 -7
  88. package/dist/{FormField-BStxmlZT.mjs.map → FormField-Cf1VMvoa.mjs.map} +1 -1
  89. package/dist/FormField.d.mts +1 -1
  90. package/dist/{Header-C9oYPBLv.d.mts → Header-CV0Lcf0C.d.mts} +1 -1
  91. package/dist/Header.d.mts +1 -1
  92. package/dist/{HelperTooltip-jHTdkLQq.d.mts → HelperTooltip-BNM3pTM-.d.mts} +2 -2
  93. package/dist/HelperTooltip.d.mts +1 -1
  94. package/dist/HighlightedText.d.mts +2 -2
  95. package/dist/{HoverCopyableField-CW7Jxmni.mjs → HoverCopyableField-XHC_n9tp.mjs} +2 -2
  96. package/dist/{HoverCopyableField-CW7Jxmni.mjs.map → HoverCopyableField-XHC_n9tp.mjs.map} +1 -1
  97. package/dist/{I18nContext-DzV-RDIh.d.mts → I18nContext-Dt5VraO8.d.mts} +2 -2
  98. package/dist/I18nContext.d.mts +1 -1
  99. package/dist/{IconButton-CaEvsrOn.d.mts → IconButton-C_ReZm8v.d.mts} +2 -2
  100. package/dist/{IconButton-DftINsp7.mjs → IconButton-DxHB2g80.mjs} +2 -2
  101. package/dist/{IconButton-DftINsp7.mjs.map → IconButton-DxHB2g80.mjs.map} +1 -1
  102. package/dist/IconButton.d.mts +1 -1
  103. package/dist/ImageTile.d.mts +1 -1
  104. package/dist/IndexTableLayout.d.mts +5 -5
  105. package/dist/InlineCombobox.d.mts +1 -1
  106. package/dist/InlineInput.d.mts +1 -1
  107. package/dist/{Input-DQ2J9wlC.d.mts → Input-DH-5dKor.d.mts} +3 -3
  108. package/dist/{Input-DtO3qMnE.mjs → Input-RHXujO9u.mjs} +2 -2
  109. package/dist/{Input-DtO3qMnE.mjs.map → Input-RHXujO9u.mjs.map} +1 -1
  110. package/dist/Input.d.mts +1 -1
  111. package/dist/{InputProps-DrG94eFF.d.mts → InputProps-B363l4_k.d.mts} +2 -2
  112. package/dist/InputProps.d.mts +1 -1
  113. package/dist/{Inserter-CZeKlPqj.d.mts → Inserter-BtUatmsd.d.mts} +1 -1
  114. package/dist/Inserter.d.mts +1 -1
  115. package/dist/IntegerValueControl.d.mts +1 -1
  116. package/dist/{Link-DKYmdL9t.mjs → Link-D_kCyLYX.mjs} +2 -2
  117. package/dist/{Link-DKYmdL9t.mjs.map → Link-D_kCyLYX.mjs.map} +1 -1
  118. package/dist/Link.d.mts +1 -1
  119. package/dist/{ListBox-CDG0EAPg.mjs → ListBox-BZp6exb8.mjs} +6 -6
  120. package/dist/{ListBox-CDG0EAPg.mjs.map → ListBox-BZp6exb8.mjs.map} +1 -1
  121. package/dist/{ListBox-DxbXE_EE.d.mts → ListBox-DxOACf6N.d.mts} +3 -3
  122. package/dist/ListBox.d.mts +1 -1
  123. package/dist/{ListBoxField-DVLggscv.d.mts → ListBoxField-CgnDuhUw.d.mts} +4 -4
  124. package/dist/ListBoxField.d.mts +1 -1
  125. package/dist/{LogicRow-DG06PsUe.d.mts → LogicRow-Dv_1G1TC.d.mts} +3 -3
  126. package/dist/LogicRow.d.mts +1 -1
  127. package/dist/MaskedInput.d.mts +2 -2
  128. package/dist/{Menu-EIT_MwK6.mjs → Menu-BVn1jh46.mjs} +2 -2
  129. package/dist/{Menu-EIT_MwK6.mjs.map → Menu-BVn1jh46.mjs.map} +1 -1
  130. package/dist/{Menu-Bq6Lij2L.d.mts → Menu-BfjvH8mr.d.mts} +3 -3
  131. package/dist/Menu.d.mts +1 -1
  132. package/dist/{Modal-kEgKwLg4.d.mts → Modal-CujB7DuB.d.mts} +6 -3
  133. package/dist/{Modal-BBlilB-B.mjs → Modal-De5_bPJ_.mjs} +49 -41
  134. package/dist/Modal-De5_bPJ_.mjs.map +1 -0
  135. package/dist/Modal.d.mts +1 -1
  136. package/dist/PageHeader-7_Hf6rHl.mjs +81 -0
  137. package/dist/PageHeader-7_Hf6rHl.mjs.map +1 -0
  138. package/dist/{PageHeader-BGGhOS81.d.mts → PageHeader-UPiqJpIF.d.mts} +12 -4
  139. package/dist/PageHeader.d.mts +1 -1
  140. package/dist/{PageLayout-B_LKPZD8.d.mts → PageLayout-BdVM37bV.d.mts} +1 -1
  141. package/dist/PageLayout.d.mts +1 -1
  142. package/dist/{PageLayoutFrame-uf17F41p.d.mts → PageLayoutFrame-4QGs7x-t.d.mts} +1 -1
  143. package/dist/PageLayoutFrame.d.mts +1 -1
  144. package/dist/{PageSelector-CLeG2gFh.d.mts → PageSelector-B5CcAzss.d.mts} +3 -3
  145. package/dist/PageSelector.d.mts +1 -1
  146. package/dist/{Pagination-y3kn2X_A.d.mts → Pagination-CCKuudiz.d.mts} +2 -2
  147. package/dist/{Pagination-C8hPOu0l.mjs → Pagination-DMH2IaV0.mjs} +5 -5
  148. package/dist/{Pagination-C8hPOu0l.mjs.map → Pagination-DMH2IaV0.mjs.map} +1 -1
  149. package/dist/Pagination.d.mts +1 -1
  150. package/dist/{Pii-Bvh_kfGN.mjs → Pii-24D_nSRQ.mjs} +2 -2
  151. package/dist/{Pii-Bvh_kfGN.mjs.map → Pii-24D_nSRQ.mjs.map} +1 -1
  152. package/dist/{PillShell-Clv4b-2w.d.mts → PillShell-B7Bm-dsE.d.mts} +2 -2
  153. package/dist/PillShell.d.mts +1 -1
  154. package/dist/{ProgressIndicator-tVvf0cY5.d.mts → ProgressIndicator-BoB5JOfV.d.mts} +1 -1
  155. package/dist/ProgressIndicator.d.mts +1 -1
  156. package/dist/{PseudoClassProps-D-sdJdnG.d.mts → PseudoClassProps-CIuO49a4.d.mts} +1 -1
  157. package/dist/PseudoClassProps.d.mts +1 -1
  158. package/dist/{RadioGroup-9AnTQbh9.d.mts → RadioGroup-D_z37ZOU.d.mts} +1 -1
  159. package/dist/RadioGroup.d.mts +1 -1
  160. package/dist/{RangeCalendar-D86xh2yV.d.mts → RangeCalendar-CLCp70w6.d.mts} +2 -2
  161. package/dist/RangeCalendar.d.mts +1 -1
  162. package/dist/RangeCalendarPresets.d.mts +2 -2
  163. package/dist/{RouterContext-Bgg29ZJo.d.mts → RouterContext-DchdVyIX.d.mts} +2 -2
  164. package/dist/RouterContext.d.mts +1 -1
  165. package/dist/{RouterLink-CMCsV5H-.d.mts → RouterLink-B6ikC5Kq.d.mts} +2 -2
  166. package/dist/RouterLink.d.mts +1 -1
  167. package/dist/RuleEditorFields.d.mts +2 -2
  168. package/dist/RulesPill.d.mts +1 -1
  169. package/dist/{SearchInput-NlIspWun.d.mts → SearchInput-D42v7MLp.d.mts} +2 -2
  170. package/dist/SearchInput.d.mts +1 -1
  171. package/dist/SectionHeading.d.mts +1 -1
  172. package/dist/{SegmentedControl-C4C5ge4p.d.mts → SegmentedControl-yVK6kkcx.d.mts} +1 -1
  173. package/dist/SegmentedControl.d.mts +1 -1
  174. package/dist/{Select-By_LoM1n.d.mts → Select-CaG6OQi1.d.mts} +3 -3
  175. package/dist/{Select-DkUMz4LG.mjs → Select-DOlw_LPR.mjs} +4 -4
  176. package/dist/{Select-DkUMz4LG.mjs.map → Select-DOlw_LPR.mjs.map} +1 -1
  177. package/dist/Select.d.mts +1 -1
  178. package/dist/{SingleColumnLayout-C4qrVyMf.d.mts → SingleColumnLayout-D2bpX7X1.d.mts} +2 -2
  179. package/dist/SingleColumnLayout.d.mts +1 -1
  180. package/dist/SmartTextInput.d.mts +6 -6
  181. package/dist/SmartTextInputField.d.mts +2 -2
  182. package/dist/SmartTextInputFunctionDialog.d.mts +4 -4
  183. package/dist/SmartTextInputListbox.d.mts +2 -2
  184. package/dist/SmartTextInputPopover.d.mts +1 -1
  185. package/dist/{SplitColumnLayout-BXT7AeNx.d.mts → SplitColumnLayout-CRDSDHHm.d.mts} +2 -2
  186. package/dist/SplitColumnLayout.d.mts +1 -1
  187. package/dist/{Stack-BqRcxDQM.d.mts → Stack-CODxfzhl.d.mts} +1 -1
  188. package/dist/Stack.d.mts +1 -1
  189. package/dist/{StatusIndicator-Zf75KK3O.mjs → StatusIndicator-CzRaEFSz.mjs} +2 -2
  190. package/dist/{StatusIndicator-Zf75KK3O.mjs.map → StatusIndicator-CzRaEFSz.mjs.map} +1 -1
  191. package/dist/{Sticker-Bi_fezCO.mjs → Sticker-C1_6I08u.mjs} +3 -3
  192. package/dist/{Sticker-Bi_fezCO.mjs.map → Sticker-C1_6I08u.mjs.map} +1 -1
  193. package/dist/{Sticker-C2zp47FB.d.mts → Sticker-CLvRB8V5.d.mts} +4 -4
  194. package/dist/Sticker.d.mts +1 -1
  195. package/dist/StringValueControl.d.mts +1 -1
  196. package/dist/Tab.d.mts +1 -1
  197. package/dist/{TabBar-DpXYsWgS.mjs → TabBar-BCFO38E0.mjs} +3 -3
  198. package/dist/{TabBar-DpXYsWgS.mjs.map → TabBar-BCFO38E0.mjs.map} +1 -1
  199. package/dist/{Table-DGl3mDwc.d.mts → Table-qsIo7V-R.d.mts} +1 -1
  200. package/dist/Table.d.mts +1 -1
  201. package/dist/{TableBody-BbC-H2qj.d.mts → TableBody-1fqZP2Cb.d.mts} +1 -1
  202. package/dist/TableBody.d.mts +1 -1
  203. package/dist/{TableBox-BfSF36Gy.mjs → TableBox-DNQsgQ8x.mjs} +4 -4
  204. package/dist/{TableBox-BfSF36Gy.mjs.map → TableBox-DNQsgQ8x.mjs.map} +1 -1
  205. package/dist/TableBox.d.mts +2 -2
  206. package/dist/{TableBoxCell-DuvWTwOm.d.mts → TableBoxCell-B9KMWebc.d.mts} +6 -6
  207. package/dist/TableBoxCell.d.mts +1 -1
  208. package/dist/{TableBoxField-DRx24VAz.d.mts → TableBoxField-0uIGzBhF.d.mts} +5 -5
  209. package/dist/TableBoxField.d.mts +1 -1
  210. package/dist/{TableBoxRow-DFPTf-bZ.d.mts → TableBoxRow-PjBBDcEk.d.mts} +3 -3
  211. package/dist/TableBoxRow.d.mts +1 -1
  212. package/dist/{TableBoxRowActions-CFCnGc7D.d.mts → TableBoxRowActions-B7stm6Q3.d.mts} +2 -2
  213. package/dist/TableBoxRowActions.d.mts +1 -1
  214. package/dist/{TableCell-Do9W49SJ.d.mts → TableCell-CQsF7t4e.d.mts} +2 -2
  215. package/dist/TableCell.d.mts +1 -1
  216. package/dist/{TableControls-Dgle87OP.mjs → TableControls-BrP_BqnF.mjs} +14 -14
  217. package/dist/TableControls-BrP_BqnF.mjs.map +1 -0
  218. package/dist/{TableControls-r58fZb_C.d.mts → TableControls-ODHrCDJM.d.mts} +5 -5
  219. package/dist/TableControls.d.mts +1 -1
  220. package/dist/{TableControlsContext-nz8GXmXc.d.mts → TableControlsContext-CHuLxfa7.d.mts} +2 -2
  221. package/dist/TableControlsContext.d.mts +1 -1
  222. package/dist/{TableHead-CIXIrZGE.d.mts → TableHead-Dq0Fi4hP.d.mts} +1 -1
  223. package/dist/TableHead.d.mts +1 -1
  224. package/dist/{TableHeaderCell-wKcp8rZj.d.mts → TableHeaderCell-CAfcFwJy.d.mts} +1 -1
  225. package/dist/TableHeaderCell.d.mts +1 -1
  226. package/dist/{TableLayout-0-9FnNvt.d.mts → TableLayout-CM8wiU3C.d.mts} +1 -1
  227. package/dist/TableLayout.d.mts +1 -1
  228. package/dist/{TableRow-C011thJ3.d.mts → TableRow-C4eHuRF3.d.mts} +2 -2
  229. package/dist/TableRow.d.mts +1 -1
  230. package/dist/TableTH.d.mts +1 -1
  231. package/dist/{TableViewConfigurationDropdown-D0VcRmd4.d.mts → TableViewConfigurationDropdown-BWBBUXCs.d.mts} +2 -2
  232. package/dist/TableViewConfigurationDropdown.d.mts +1 -1
  233. package/dist/{TechnicalSticker-B_JlBkXZ.mjs → TechnicalSticker-Cq5jzYKQ.mjs} +2 -2
  234. package/dist/{TechnicalSticker-B_JlBkXZ.mjs.map → TechnicalSticker-Cq5jzYKQ.mjs.map} +1 -1
  235. package/dist/{Text-BgSW0yDb.d.mts → Text-CvaqognH.d.mts} +2 -2
  236. package/dist/Text.d.mts +1 -1
  237. package/dist/{TextArea-CyWv8jaV.d.mts → TextArea-BJWEaURJ.d.mts} +2 -2
  238. package/dist/TextArea.d.mts +1 -1
  239. package/dist/{TextUnderlineTooltip-CcyG4VkJ.d.mts → TextUnderlineTooltip-Bd5e8KH3.d.mts} +2 -2
  240. package/dist/TextUnderlineTooltip.d.mts +1 -1
  241. package/dist/Tile.d.mts +1 -1
  242. package/dist/Toast.d.mts +1 -1
  243. package/dist/{Toggle-BIJoB1AA.d.mts → Toggle-CeIDF9yS.d.mts} +1 -1
  244. package/dist/Toggle.d.mts +1 -1
  245. package/dist/{Tooltip-CrpfAAfA.d.mts → Tooltip-Ddy2Jq0K.d.mts} +2 -2
  246. package/dist/Tooltip.d.mts +1 -1
  247. package/dist/{TruncatedText-DaGx3CX6.d.mts → TruncatedText-sr9Fhm3N.d.mts} +1 -1
  248. package/dist/VersionHistory.d.mts +1 -1
  249. package/dist/{VersionHistoryItem-Bo78T7y7.d.mts → VersionHistoryItem-DnKlzuDe.d.mts} +1 -1
  250. package/dist/VersionHistoryItem.d.mts +1 -1
  251. package/dist/WizardModal.d.mts +2 -2
  252. package/dist/{chainTypes-CLKwXymd.d.mts → chainTypes-C5mXGz6T.d.mts} +4 -4
  253. package/dist/charting-C_WcP3tn.d.mts +16 -0
  254. package/dist/{clientFilterUtils-BnASP9Tt.d.mts → clientFilterUtils-scLlIuP_.d.mts} +2 -2
  255. package/dist/clientFilterUtils.d.mts +1 -1
  256. package/dist/{codec-C4WJftW6.d.mts → codec-BTVOuowZ.d.mts} +2 -2
  257. package/dist/codec.d.mts +1 -1
  258. package/dist/complete-typography.d.mts +1 -1
  259. package/dist/components/Accordion/index.mjs +1 -1
  260. package/dist/components/Attribute/index.mjs +2 -2
  261. package/dist/components/Badge/index.mjs +1 -1
  262. package/dist/components/Banner/index.mjs +1 -1
  263. package/dist/components/BottomPanel/index.mjs +4 -4
  264. package/dist/components/Breadcrumbs/index.d.mts +1 -1
  265. package/dist/components/Breadcrumbs/index.mjs +1 -1
  266. package/dist/components/Button/index.d.mts +2 -2
  267. package/dist/components/Button/index.mjs +1 -1
  268. package/dist/components/ButtonGroup/index.mjs +1 -1
  269. package/dist/components/Card/index.d.mts +2 -2
  270. package/dist/components/CardV2/index.d.mts +1 -1
  271. package/dist/components/CardV2/index.mjs +1 -1
  272. package/dist/components/Checkbox/index.d.mts +1 -1
  273. package/dist/components/CodeHighlight/index.mjs +1 -1
  274. package/dist/components/Combobox/index.d.mts +2 -2
  275. package/dist/components/Combobox/index.mjs +1 -1
  276. package/dist/components/DataTable/TableControls/index.d.mts +21 -21
  277. package/dist/components/DataTable/TableControls/index.mjs +1 -1
  278. package/dist/components/DataTable/index.d.mts +8 -8
  279. package/dist/components/DataTable/index.mjs +1 -1
  280. package/dist/components/DataTable/types.d.mts +1 -1
  281. package/dist/components/DatePicker/index.d.mts +5 -5
  282. package/dist/components/DatePicker/index.mjs +1 -1
  283. package/dist/components/DropdownButton/index.mjs +1 -1
  284. package/dist/components/DropdownMenu/index.d.mts +1 -1
  285. package/dist/components/DropdownMenu/index.mjs +1 -1
  286. package/dist/components/FloatingPanel/index.mjs +2 -2
  287. package/dist/components/FloatingToolbar/index.mjs +1 -1
  288. package/dist/components/FormControl/index.d.mts +2 -2
  289. package/dist/components/FormField/index.d.mts +5 -5
  290. package/dist/components/FormField/index.mjs +1 -1
  291. package/dist/components/HoverCopyableField/index.mjs +1 -1
  292. package/dist/components/ImageTile/index.mjs +2 -2
  293. package/dist/components/Input/index.d.mts +1 -1
  294. package/dist/components/Input/index.mjs +1 -1
  295. package/dist/components/Link/index.mjs +1 -1
  296. package/dist/components/ListBox/index.d.mts +3 -3
  297. package/dist/components/ListBox/index.mjs +1 -1
  298. package/dist/components/MaskedInput/index.mjs +1 -1
  299. package/dist/components/Menu/index.d.mts +1 -1
  300. package/dist/components/Menu/index.mjs +1 -1
  301. package/dist/components/Modal/index.d.mts +1 -1
  302. package/dist/components/Modal/index.mjs +1 -1
  303. package/dist/components/PageHeader/index.d.mts +1 -1
  304. package/dist/components/PageHeader/index.mjs +1 -1
  305. package/dist/components/Pagination/index.d.mts +3 -3
  306. package/dist/components/Pagination/index.mjs +1 -1
  307. package/dist/components/Pii/index.mjs +1 -1
  308. package/dist/components/ProgressIndicator/index.d.mts +1 -1
  309. package/dist/components/RadioGroup/index.d.mts +1 -1
  310. package/dist/components/RichTextEditor/index.mjs +4 -4
  311. package/dist/components/RightPanel/index.mjs +1 -1
  312. package/dist/components/SegmentedControl/index.d.mts +1 -1
  313. package/dist/components/Select/index.d.mts +1 -1
  314. package/dist/components/Select/index.mjs +1 -1
  315. package/dist/components/SmartTextInput/index.d.mts +2 -2
  316. package/dist/components/SmartTextInput/index.mjs +3 -3
  317. package/dist/components/SmartTextInput/parser/method-chain/types.d.mts +1 -1
  318. package/dist/components/SmartTextInput/parser/smart-text/types.d.mts +2 -2
  319. package/dist/components/Stack/index.d.mts +1 -1
  320. package/dist/components/StatusIndicator/index.mjs +1 -1
  321. package/dist/components/Sticker/index.d.mts +1 -1
  322. package/dist/components/Sticker/index.mjs +1 -1
  323. package/dist/components/TabBar/index.mjs +1 -1
  324. package/dist/components/Table/index.d.mts +8 -8
  325. package/dist/components/TableBox/index.d.mts +2 -2
  326. package/dist/components/TableBox/index.mjs +1 -1
  327. package/dist/components/TechnicalSticker/index.mjs +1 -1
  328. package/dist/components/Text/index.d.mts +1 -1
  329. package/dist/components/TextArea/index.d.mts +1 -1
  330. package/dist/components/Tile/index.mjs +1 -1
  331. package/dist/components/Toast/index.mjs +1 -1
  332. package/dist/components/Toggle/index.d.mts +1 -1
  333. package/dist/components/Tooltip/index.d.mts +3 -3
  334. package/dist/components/VersionHistory/index.d.mts +1 -1
  335. package/dist/components/VersionHistory/index.mjs +4 -4
  336. package/dist/compound-expression.d.mts +1 -1
  337. package/dist/{constants-B2NIZBD6.d.mts → constants-ByOakXpZ.d.mts} +1 -1
  338. package/dist/{constants-ChVceduh.d.mts → constants-DMTL6rF3.d.mts} +1 -1
  339. package/dist/constants.d.mts +1 -1
  340. package/dist/constants2.d.mts +1 -1
  341. package/dist/{createPath-D_opTH9A.d.mts → createPath-BgyL9FVF.d.mts} +2 -2
  342. package/dist/createPath.d.mts +1 -1
  343. package/dist/{date-range-rule-value-3izEoXmi.d.mts → date-range-rule-value-ASr06ClE.d.mts} +2 -2
  344. package/dist/date-range-rule-value.d.mts +1 -1
  345. package/dist/{date-rule-intent-DjYIGcGO.d.mts → date-rule-intent-DDDCA6kc.d.mts} +3 -3
  346. package/dist/date-rule-intent.d.mts +1 -1
  347. package/dist/display.d.mts +2 -2
  348. package/dist/fieldPickerOptions.d.mts +2 -2
  349. package/dist/{filter-size-context-BcpjykVw.d.mts → filter-size-context-CmFyIPCm.d.mts} +2 -2
  350. package/dist/filter-size-context.d.mts +1 -1
  351. package/dist/{filters-DUI7TLSn.d.mts → filters-yfzOlqKx.d.mts} +2 -2
  352. package/dist/filters.d.mts +1 -1
  353. package/dist/{formatDateTime-CgQvW3A5.d.mts → formatDateTime-Cj9XxTNy.d.mts} +1 -1
  354. package/dist/formatDateTime.d.mts +1 -1
  355. package/dist/{helpers-CDZ7Zk9G.d.mts → helpers-BeCjgAeE.d.mts} +4 -4
  356. package/dist/helpers.d.mts +1 -1
  357. package/dist/{index-CDFw-zKW.d.mts → index-BEHNqAZa.d.mts} +3 -3
  358. package/dist/{index-B9kfFACl.d.mts → index-CLAjbq8g.d.mts} +1 -1
  359. package/dist/{index-DntqThoS.d.mts → index-aK04IR94.d.mts} +2 -2
  360. package/dist/{index-_D_TMpPU.d.mts → index-kIon1vPp.d.mts} +2 -2
  361. package/dist/index2.d.mts +1 -1
  362. package/dist/index3.d.mts +1 -1
  363. package/dist/index4.d.mts +3 -3
  364. package/dist/index5.d.mts +1 -1
  365. package/dist/index6.d.mts +14 -14
  366. package/dist/{input-RTMLTvG1.d.mts → input-JDU1Goyr.d.mts} +3 -3
  367. package/dist/{inputFields-iRg_emVK.d.mts → inputFields-BnCdmuBt.d.mts} +11 -11
  368. package/dist/inputFields.d.mts +1 -1
  369. package/dist/{jsonSchema-BJpNaFc4.d.mts → jsonSchema-C4lfpDrt.d.mts} +1 -1
  370. package/dist/lib/GlobalStyles.d.mts +19 -2
  371. package/dist/lib/GlobalStyles.mjs +50 -1
  372. package/dist/lib/GlobalStyles.mjs.map +1 -1
  373. package/dist/lib/PDSProvider.d.mts +3 -3
  374. package/dist/lib/TruncatedText.d.mts +1 -1
  375. package/dist/lib/TruncatedTextWithTooltip.d.mts +1 -1
  376. package/dist/lib/chainTypes.d.mts +1 -1
  377. package/dist/lib/colorMode.d.mts +1 -1
  378. package/dist/lib/customFunctionSchema.d.mts +1 -1
  379. package/dist/lib/date-filter/index.d.mts +2 -2
  380. package/dist/lib/i18n/index.d.mts +3 -3
  381. package/dist/lib/jsonSchema.d.mts +1 -1
  382. package/dist/lib/jsonSchemaType.d.mts +1 -1
  383. package/dist/lib/message.d.mts +1 -1
  384. package/dist/lib/methodChain.d.mts +2 -2
  385. package/dist/lib/methodChainNormalize.d.mts +2 -2
  386. package/dist/lib/methodChainTypes.d.mts +1 -1
  387. package/dist/lib/objectSchemaTypes.d.mts +1 -1
  388. package/dist/lib/platformObject.d.mts +1 -1
  389. package/dist/lib/pseudoClass.d.mts +1 -1
  390. package/dist/lib/router/adapters/reactRouter.d.mts +1 -1
  391. package/dist/lib/router/adapters/tanstack.d.mts +1 -1
  392. package/dist/lib/router/index.d.mts +5 -5
  393. package/dist/lib/schemaOptions.d.mts +1 -1
  394. package/dist/lib/semanticColor.d.mts +2 -2
  395. package/dist/lib/semanticColor.mjs +8 -1
  396. package/dist/lib/semanticColor.mjs.map +1 -1
  397. package/dist/lib/useChain.d.mts +1 -1
  398. package/dist/lint/index.d.mts +1 -1
  399. package/dist/{listbox-options-D0JmYWjB.d.mts → listbox-options-CDAOiyUH.d.mts} +3 -3
  400. package/dist/listbox-options.d.mts +1 -1
  401. package/dist/{message-Bk5UTw75.d.mts → message-BwRBPJXD.d.mts} +1 -1
  402. package/dist/{methodChain-C3u60_V8.d.mts → methodChain-COb4t-sM.d.mts} +4 -4
  403. package/dist/{methodChainTypes-Di4GCMX7.d.mts → methodChainTypes-De6sHGyd.d.mts} +2 -2
  404. package/dist/min-copy-size.d.mts +1 -1
  405. package/dist/mixins/focus.d.mts +1 -1
  406. package/dist/mixins/hoverable.d.mts +2 -2
  407. package/dist/mixins/input.d.mts +1 -1
  408. package/dist/mixins/menuItem.d.mts +2 -2
  409. package/dist/mixins/scrollbar.d.mts +1 -1
  410. package/dist/no-raw-table.d.mts +1 -1
  411. package/dist/{operators-BTCnQpeu.d.mts → operators-BHxKZcpD.d.mts} +3 -3
  412. package/dist/operators.d.mts +1 -1
  413. package/dist/{palette-D61sDyDI.d.mts → palette-DzmqrF_5.d.mts} +2 -2
  414. package/dist/palette.d.mts +1 -1
  415. package/dist/patterns/CardGrouping/index.mjs +4 -4
  416. package/dist/patterns/IndexTableLayout/index.mjs +2 -2
  417. package/dist/patterns/LayoutLoadingShimmer/index.mjs +2 -2
  418. package/dist/patterns/PageLayout/index.d.mts +4 -4
  419. package/dist/patterns/WizardModal/index.mjs +2 -2
  420. package/dist/reactRouterFallback.d.mts +1 -1
  421. package/dist/reduced-motion.d.mts +1 -1
  422. package/dist/relative-date-label.d.mts +1 -1
  423. package/dist/safe-parse.d.mts +1 -1
  424. package/dist/{schemaOptions-BKtrXvjR.d.mts → schemaOptions-DMq37JC5.d.mts} +3 -3
  425. package/dist/semantic-color.d.mts +1 -1
  426. package/dist/{semanticColor-y9byerSl.d.mts → semanticColor-BKbCliyl.d.mts} +13 -2
  427. package/dist/shared.d.mts +1 -1
  428. package/dist/{strings-T-gsdqiJ.d.mts → strings-DQZIO-n7.d.mts} +1 -1
  429. package/dist/strings.d.mts +1 -1
  430. package/dist/{theme-BFP-_PEh.d.mts → theme-CeA8jBRG.d.mts} +7 -3
  431. package/dist/theme.d.mts +1 -1
  432. package/dist/theme.mjs +7 -3
  433. package/dist/theme.mjs.map +1 -1
  434. package/dist/tone.d.mts +1 -1
  435. package/dist/tree.d.mts +1 -1
  436. package/dist/{types-BnXYfNrd.d.mts → types-02Ij0dgs.d.mts} +4 -4
  437. package/dist/{types-B5RbKp2V.d.mts → types-BRYGqFVm.d.mts} +1 -1
  438. package/dist/{types-BiRayNak.d.mts → types-BXJ6qAGy.d.mts} +3 -3
  439. package/dist/{types-C31ecr0j.d.mts → types-BeFBvQ1c.d.mts} +3 -3
  440. package/dist/{types-QYT1VZgy.d.mts → types-CRymR_J9.d.mts} +1 -1
  441. package/dist/{types-1p-ij0cd.d.mts → types-CqcbWyUY.d.mts} +2 -2
  442. package/dist/{types-Bu5rhBdH.d.mts → types-D9LBWGw5.d.mts} +1 -1
  443. package/dist/{types-K57NVM0M.d.mts → types-DLnCkvTt.d.mts} +2 -2
  444. package/dist/{types-FG-jOit9.d.mts → types-DQVUNrrN.d.mts} +1 -1
  445. package/dist/{types-Bg_sfqXE.d.mts → types-DeVO4sCM.d.mts} +2 -2
  446. package/dist/types.d.mts +1 -1
  447. package/dist/types2.d.mts +1 -1
  448. package/dist/types3.d.mts +1 -1
  449. package/dist/types4.d.mts +1 -1
  450. package/dist/types5.d.mts +1 -1
  451. package/dist/types6.d.mts +1 -1
  452. package/dist/types8.d.mts +1 -1
  453. package/dist/{url-state-DmhG0Qg-.d.mts → url-state-CXUuK3_r.d.mts} +2 -2
  454. package/dist/url-state.d.mts +1 -1
  455. package/dist/{useChain-CIwI4Xop.d.mts → useChain-B--KAtdN.d.mts} +6 -6
  456. package/dist/useChainAtCursor.d.mts +6 -6
  457. package/dist/useCodeChainFunctionPanel.d.mts +1 -1
  458. package/dist/useColumnConfiguration.d.mts +2 -2
  459. package/dist/useComboboxFooterAction.d.mts +1 -1
  460. package/dist/{useFilterStateV2-DPzkJpGT.d.mts → useFilterStateV2-DBpbxAEC.d.mts} +3 -3
  461. package/dist/useFilterStateV2.d.mts +1 -1
  462. package/dist/{useFormField-ATKyX8CU.d.mts → useFormField-CTgW_8x0.d.mts} +2 -2
  463. package/dist/useFormField.d.mts +1 -1
  464. package/dist/{useLocationPathname-DPMpqO1_.d.mts → useLocationPathname-CClZoIGm.d.mts} +1 -1
  465. package/dist/useLocationPathname.d.mts +1 -1
  466. package/dist/{useTableBoxDragAndDrop-CCMADt-F.d.mts → useTableBoxDragAndDrop-MwbXWWDQ.d.mts} +1 -1
  467. package/dist/useTableBoxDragAndDrop.d.mts +1 -1
  468. package/dist/{useTableColumns-Bw0HvnP4.d.mts → useTableColumns-DJFy0Gp8.d.mts} +2 -2
  469. package/dist/useTableColumns.d.mts +1 -1
  470. package/dist/useTruncation.d.mts +1 -1
  471. package/dist/{utilities-BfXjJZQt.d.mts → utilities-BDkho6-f.d.mts} +1 -1
  472. package/dist/utilities.d.mts +1 -1
  473. package/dist/utils/testing.d.mts +1 -1
  474. package/dist/utils.d.mts +1 -1
  475. package/dist/utils4.d.mts +5 -5
  476. package/dist/{validation-yhA0siru.d.mts → validation-Tgg3AhuP.d.mts} +3 -3
  477. package/dist/validation.d.mts +1 -1
  478. package/dist/validation2.d.mts +4 -4
  479. package/dist/{value-control-resolver-Df0AmGFe.d.mts → value-control-resolver-XQbGCdsP.d.mts} +2 -2
  480. package/dist/value-control-resolver.d.mts +1 -1
  481. package/dist/variables/charting.d.mts +2 -0
  482. package/dist/variables/charting.mjs +134 -0
  483. package/dist/variables/charting.mjs.map +1 -0
  484. package/dist/variables/effect.d.mts +1 -1
  485. package/llms.txt +1 -1
  486. package/package.json +5 -3
  487. package/skills/ui-authoring/TOKENS.md +5 -0
  488. package/dist/Modal-BBlilB-B.mjs.map +0 -1
  489. package/dist/PageHeader-DEKTopzU.mjs +0 -75
  490. package/dist/PageHeader-DEKTopzU.mjs.map +0 -1
  491. package/dist/TableControls-Dgle87OP.mjs.map +0 -1
  492. /package/dist/{index-BAJc0Rej.d.mts → index-0-W_aPej.d.mts} +0 -0
  493. /package/dist/{index-BFHp82YL.d.mts → index-1-AkepUA.d.mts} +0 -0
  494. /package/dist/{index-BYd3Btr1.d.mts → index-B33elXxm.d.mts} +0 -0
  495. /package/dist/{index-CEUVsenl.d.mts → index-B6T7ov8p.d.mts} +0 -0
  496. /package/dist/{index-CEqOS-7M.d.mts → index-B9SJORI12.d.mts} +0 -0
  497. /package/dist/{index-CNxS4Tlu.d.mts → index-BINnViIh.d.mts} +0 -0
  498. /package/dist/{index-CP2eJYlK.d.mts → index-BNRXMhlr.d.mts} +0 -0
  499. /package/dist/{index-CQQezDJQ2.d.mts → index-BRJ_6A42.d.mts} +0 -0
  500. /package/dist/{index-CWB6exYm.d.mts → index-BsHUlSyF.d.mts} +0 -0
  501. /package/dist/{index-CcSfkYLp2.d.mts → index-CCKHlTA4.d.mts} +0 -0
  502. /package/dist/{index-CjDodOH2.d.mts → index-CCt0lwyI.d.mts} +0 -0
  503. /package/dist/{index-Cm-1i165.d.mts → index-CIABef8t.d.mts} +0 -0
  504. /package/dist/{index-D-giXKyu.d.mts → index-CaqYCRmZ.d.mts} +0 -0
  505. /package/dist/{index-D4DUvwPf.d.mts → index-CoUVmp_Q.d.mts} +0 -0
  506. /package/dist/{index-DCTy4zg0.d.mts → index-CuYZJcK3.d.mts} +0 -0
  507. /package/dist/{index-DWIh4oP5.d.mts → index-CuheJfs-.d.mts} +0 -0
  508. /package/dist/{index-Dflz2i1X.d.mts → index-Cx0vQ6ld.d.mts} +0 -0
  509. /package/dist/{index-DhiymMxa.d.mts → index-CzUpNo0e.d.mts} +0 -0
  510. /package/dist/{index-DkrC-i1D.d.mts → index-CzdAgLVp.d.mts} +0 -0
  511. /package/dist/{index-Dp7lwkTl2.d.mts → index-DG59sVPG2.d.mts} +0 -0
  512. /package/dist/{index-DqCA6utX.d.mts → index-DMRtRo7y.d.mts} +0 -0
  513. /package/dist/{index-Iujpc9_6.d.mts → index-DNjQe1D8.d.mts} +0 -0
  514. /package/dist/{index-Jh0C5PIG.d.mts → index-DeVKzGce.d.mts} +0 -0
  515. /package/dist/{index-N-OgGgfF.d.mts → index-DedbSZMv.d.mts} +0 -0
  516. /package/dist/{index-Oio5ygqN.d.mts → index-Deol7ZWO.d.mts} +0 -0
  517. /package/dist/{index-Rvd9MEUQ.d.mts → index-Es5nKSSL.d.mts} +0 -0
  518. /package/dist/{index-YB8V3VRW.d.mts → index-K614ZhWK.d.mts} +0 -0
  519. /package/dist/{index-aKlsLnwy.d.mts → index-KEHKKJEa.d.mts} +0 -0
  520. /package/dist/{index-fxXoW-qc.d.mts → index-PQbV5sXG2.d.mts} +0 -0
  521. /package/dist/{index-ikHBE458.d.mts → index-dhjtMp5F.d.mts} +0 -0
  522. /package/dist/{index-luywJTzJ.d.mts → index-dzI_9J-Z.d.mts} +0 -0
  523. /package/dist/{index-xmouCHX9.d.mts → index-lTcag11w.d.mts} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,25 @@
1
+ ## 0.10.9 (2026-10-30)
2
+
3
+ ### Features
4
+
5
+ - **design-system:** offer Reset on the starred default view ([#489](https://github.com/persona-id/persona-design-system/pull/489))
6
+ - **design-system:** restyle PageHeader and add usage guidelines
7
+
8
+ ### Bug Fixes
9
+
10
+ - **design-system:** paint GlobalStyles page chrome from the semantic theme
11
+
12
+ ## 0.10.8 (2026-10-29)
13
+
14
+ ### Features
15
+
16
+ - **design-system:** add light and dark charting palettes
17
+
18
+ ### Bug Fixes
19
+
20
+ - **modal:** preserve ModalClose onClick result
21
+ - **modal:** avoid PressResponder warning without trigger and nested close button
22
+
1
23
  ## 0.10.7 (2026-10-28)
2
24
 
3
25
  ### Features
@@ -1,5 +1,5 @@
1
- import { n as Tooltip } from "./Tooltip-CrpfAAfA.mjs";
2
- import { t as RequireOneOf } from "./utilities-BfXjJZQt.mjs";
1
+ import { n as Tooltip } from "./Tooltip-Ddy2Jq0K.mjs";
2
+ import { t as RequireOneOf } from "./utilities-BDkho6-f.mjs";
3
3
  import { ComponentProps, ComponentPropsWithoutRef, ReactElement } from "react";
4
4
 
5
5
  //#region src/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-BLMJwLBV.d.mts.map
35
+ //# sourceMappingURL=Action-CHWYwpYR.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-BLMJwLBV.mjs";
1
+ import { i as TextAction, n as IconAction, r as MenuAction, t as Action } from "./Action-CHWYwpYR.mjs";
2
2
  export { Action, IconAction, MenuAction, TextAction };
@@ -1,5 +1,5 @@
1
- import { d as FilterRuleValue, f as FilterRuleValueChange, l as FilterOperator, o as FilterField, p as FilterSize, u as FilterRule } from "./types-K57NVM0M.mjs";
2
- import { t as FieldRegistry } from "./FieldRegistry-CPr7YoG5.mjs";
1
+ import { d as FilterRuleValue, f as FilterRuleValueChange, l as FilterOperator, o as FilterField, p as FilterSize, u as FilterRule } from "./types-DLnCkvTt.mjs";
2
+ import { t as FieldRegistry } from "./FieldRegistry-C2NVPhMO.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 { d as FilterRuleValue, f as FilterRuleValueChange, l as FilterOperator, n as CompoundExpression, o as FilterField, p as FilterSize, u as FilterRule } from "./types-K57NVM0M.mjs";
2
- import { t as FieldRegistry } from "./FieldRegistry-CPr7YoG5.mjs";
1
+ import { d as FilterRuleValue, f as FilterRuleValueChange, l as FilterOperator, n as CompoundExpression, o as FilterField, p as FilterSize, u as FilterRule } from "./types-DLnCkvTt.mjs";
2
+ import { t as FieldRegistry } from "./FieldRegistry-C2NVPhMO.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-1p-ij0cd.mjs";
1
+ import { t as ValueControlProps } from "./types-CqcbWyUY.mjs";
2
2
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/DataTable/TableControls/FiltersV2/value-controls/ArrayValueControl/ArrayValueControl.d.ts
@@ -1,6 +1,6 @@
1
1
  import { i as ParagraphSize } from "./text-CKLxMlG4.mjs";
2
- import { c as ParagraphProps, u as SpanProps } from "./Text-BgSW0yDb.mjs";
3
- import { t as MaybeSemanticTheme } from "./semanticColor-y9byerSl.mjs";
2
+ import { c as ParagraphProps, u as SpanProps } from "./Text-CvaqognH.mjs";
3
+ import { n as MaybeSemanticTheme } from "./semanticColor-BKbCliyl.mjs";
4
4
  import * as _$react from "react";
5
5
  import { ComponentPropsWithoutRef, ComponentType, FC, PropsWithChildren, ReactNode } from "react";
6
6
  import * as _$styled_components0 from "styled-components";
@@ -1,5 +1,5 @@
1
1
  import { a as styled, r as css } from "./styledComponentsInterop-Cs5CCPRy.mjs";
2
- import { n as Sticker } from "./Sticker-Bi_fezCO.mjs";
2
+ import { n as Sticker } from "./Sticker-C1_6I08u.mjs";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  //#region src/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-8YzapjWf.mjs.map
31
+ //# sourceMappingURL=Badge-BCdsVKuj.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Badge-8YzapjWf.mjs","names":[],"sources":["../src/components/Badge/Badge.tsx"],"sourcesContent":["import styled, { css, type DefaultTheme, type StyledComponent } from 'styled-components';\n\nimport Sticker, { type StickerProps } from '#src/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-BCdsVKuj.mjs","names":[],"sources":["../src/components/Badge/Badge.tsx"],"sourcesContent":["import styled, { css, type DefaultTheme, type StyledComponent } from 'styled-components';\n\nimport Sticker, { type StickerProps } from '#src/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-1p-ij0cd.mjs";
1
+ import { t as ValueControlProps } from "./types-CqcbWyUY.mjs";
2
2
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/DataTable/TableControls/FiltersV2/value-controls/BooleanValueControl/BooleanValueControl.d.ts
@@ -54,4 +54,4 @@ declare const Breadcrumb: ({
54
54
  }: BreadcrumbProps) => _$react_jsx_runtime0.JSX.Element;
55
55
  //#endregion
56
56
  export { getInlineActionCount as a, BreadcrumbSize as i, BreadcrumbHeadingAs as n, BreadcrumbProps as r, Breadcrumb as t };
57
- //# sourceMappingURL=Breadcrumb-chGXhl3V.d.mts.map
57
+ //# sourceMappingURL=Breadcrumb-uK4v6_P1.d.mts.map
@@ -1,2 +1,2 @@
1
- import { a as getInlineActionCount, i as BreadcrumbSize, n as BreadcrumbHeadingAs, r as BreadcrumbProps, t as Breadcrumb } from "./Breadcrumb-chGXhl3V.mjs";
1
+ import { a as getInlineActionCount, i as BreadcrumbSize, n as BreadcrumbHeadingAs, r as BreadcrumbProps, t as Breadcrumb } from "./Breadcrumb-uK4v6_P1.mjs";
2
2
  export { BreadcrumbHeadingAs, BreadcrumbProps, BreadcrumbSize, Breadcrumb as default, getInlineActionCount };
@@ -1,4 +1,4 @@
1
- import { i as BreadcrumbSize, n as BreadcrumbHeadingAs, r as BreadcrumbProps } from "./Breadcrumb-chGXhl3V.mjs";
1
+ import { i as BreadcrumbSize, n as BreadcrumbHeadingAs, r as BreadcrumbProps } from "./Breadcrumb-uK4v6_P1.mjs";
2
2
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/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-ChKWIuRq.d.mts.map
26
+ //# sourceMappingURL=Breadcrumbs-3MtvzTPi.d.mts.map
@@ -1,6 +1,6 @@
1
1
  import { a as styled, r as css } from "./styledComponentsInterop-Cs5CCPRy.mjs";
2
- import { n as RouterLink } from "./router-BxmA940v.mjs";
3
2
  import { semanticColor } from "./lib/semanticColor.mjs";
3
+ import { n as RouterLink } from "./router-BxmA940v.mjs";
4
4
  import { paragraphMixins } from "./mixins/text.mjs";
5
5
  import { i as Paragraph } from "./Text-D0vEReED.mjs";
6
6
  import "./variables/transitions.mjs";
@@ -8,10 +8,10 @@ import { a as Tooltip } from "./Tooltip-YViXzMdm.mjs";
8
8
  import { TruncatedTextWithTooltip } from "./lib/TruncatedTextWithTooltip.mjs";
9
9
  import { focusOutline } from "./mixins/focus.mjs";
10
10
  import { t as HStack } from "./Stack-Bzom2BTR.mjs";
11
- import { t as IconButton } from "./IconButton-DftINsp7.mjs";
11
+ import { t as IconButton } from "./IconButton-DxHB2g80.mjs";
12
12
  import { t as intersperse } from "./intersperse-DvJsBw5D.mjs";
13
13
  import Input_default from "./components/Input/index.mjs";
14
- import { t as TechnicalSticker } from "./TechnicalSticker-B_JlBkXZ.mjs";
14
+ import { t as TechnicalSticker } from "./TechnicalSticker-Cq5jzYKQ.mjs";
15
15
  import { useEffect, useRef, useState } from "react";
16
16
  import { Spacing } from "@persona/design-tokens";
17
17
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -343,4 +343,4 @@ const Breadcrumbs = ({ items, size = "md", headingAs = "h1", "aria-label": ariaL
343
343
  //#endregion
344
344
  export { Breadcrumbs as t };
345
345
 
346
- //# sourceMappingURL=Breadcrumbs-Dft2TR4v.mjs.map
346
+ //# sourceMappingURL=Breadcrumbs-CMf3Uvow.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Breadcrumbs-Dft2TR4v.mjs","names":["Input"],"sources":["../src/components/Breadcrumbs/Breadcrumb.tsx","../src/components/Breadcrumbs/Breadcrumbs.tsx"],"sourcesContent":["import { type ChangeEvent, useEffect, useRef, useState } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport { Spacing } from '@persona/design-tokens';\nimport { CopyIcon, EditIcon } from '@persona/icons';\n\nimport { IconButton } from '#src/components/Button';\nimport Input from '#src/components/Input';\nimport { HStack } from '#src/components/Stack';\nimport TechnicalSticker from '#src/components/TechnicalSticker';\nimport { Paragraph } from '#src/components/Text';\nimport Tooltip from '#src/components/Tooltip';\nimport { RouterLink } from '#src/lib/router';\nimport { semanticColor } from '#src/lib/semanticColor';\nimport TruncatedTextWithTooltip from '#src/lib/TruncatedTextWithTooltip';\nimport { focusOutline } from '#src/mixins/focus';\nimport { paragraphMixins } from '#src/mixins/text';\nimport { TransitionDuration } from '#src/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 path (e.g. `/cases`), rendered as a router-aware link. */\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\nexport const getInlineActionCount = ({\n onEdit,\n showCopyAction,\n copyValue,\n}: Pick<BreadcrumbProps, 'onEdit' | 'showCopyAction' | 'copyValue'>) =>\n Number(onEdit != null) + (showCopyAction && copyValue != null ? 1 : 0);\n\nconst CrumbRow = styled(HStack)`\n align-items: center;\n min-width: 0;\n`;\n\nconst InlineActions = styled(HStack)`\n flex-shrink: 0;\n`;\n\nconst BreadcrumbLabel = styled.span`\n overflow-wrap: anywhere;\n`;\n\nconst TruncatedBreadcrumbLabel = ({ label }: { label: string }) => (\n <TruncatedTextWithTooltip tooltipProps={{ maxWidth: '400px' }}>\n <BreadcrumbLabel>{label}</BreadcrumbLabel>\n </TruncatedTextWithTooltip>\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(RouterLink)<{ $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 inlineActionCount = getInlineActionCount({ onEdit, showCopyAction, copyValue });\n const inlineActions = !isEditing && inlineActionCount > 0 && (\n <InlineActions spacing={ACTION_BUTTON_GAP} align='center'>\n {onEdit != null && (\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 </InlineActions>\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 <TruncatedBreadcrumbLabel label={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 <TruncatedBreadcrumbLabel label={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 <TruncatedBreadcrumbLabel label={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';\n\nimport { intersperse } from '#src/lib/intersperse';\nimport { semanticColor } from '#src/lib/semanticColor';\nimport { paragraphMixins } from '#src/mixins/text';\n\nimport Breadcrumb, {\n type BreadcrumbHeadingAs,\n type BreadcrumbProps,\n type BreadcrumbSize,\n getInlineActionCount,\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 ANCESTOR_MIN_CHARS = 8;\nconst CURRENT_MIN_CHARS = 12;\n\nconst BreadcrumbNav = styled.nav`\n min-width: 0;\n`;\n\nconst BreadcrumbList = styled.ol`\n max-width: 100%;\n display: flex;\n flex-wrap: nowrap;\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 $size: BreadcrumbSize;\n $isCurrent: boolean;\n $isShort: boolean;\n $minWidth?: string;\n}>`\n display: flex;\n align-items: center;\n ${({ $size }) => ($size === 'lg' ? paragraphMixins.lg : paragraphMixins.md)};\n ${({ $isShort, $isCurrent }) =>\n $isShort ? 'flex-shrink: 0;' : $isCurrent ? 'flex: 0 1 auto;' : 'flex: 0 100000 auto;'}\n ${({ $minWidth }) => $minWidth != null && `min-width: ${$minWidth};`}\n\n &:has(input) {\n flex-shrink: 1;\n }\n`;\n\nconst SeparatorListItem = styled.li`\n display: flex;\n align-items: center;\n flex-shrink: 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 const minChars = isCurrent ? CURRENT_MIN_CHARS : ANCESTOR_MIN_CHARS;\n const actionCount = getInlineActionCount(item);\n const actionsWidth =\n actionCount === 0\n ? 0\n : Number.parseFloat(Spacing[2]) +\n actionCount * 24 +\n (actionCount - 1) * Number.parseFloat(Spacing[1]);\n\n return (\n <BreadcrumbListItem\n key={`${item.label}-${index}`}\n aria-current={isCurrent ? 'page' : undefined}\n $size={size}\n $isCurrent={isCurrent}\n $isShort={item.label.length <= minChars}\n $minWidth={\n item.label.length > minChars ? `calc(${minChars}ch + ${actionsWidth}px)` : undefined\n }\n >\n <Breadcrumb {...item} size={size} current={isCurrent} headingAs={headingAs} />\n </BreadcrumbListItem>\n );\n });\n\n const listItems = intersperse(crumbNodes, (separatorIndex: number) => (\n <SeparatorListItem key={`separator-${separatorIndex}`} aria-hidden='true'>\n <Separator $size={size}>/</Separator>\n </SeparatorListItem>\n ));\n\n return (\n <BreadcrumbNav aria-label={ariaLabel} className={className}>\n <BreadcrumbList>{listItems}</BreadcrumbList>\n </BreadcrumbNav>\n );\n};\n\nexport default Breadcrumbs;\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAuBA,MAAM,qBAAqB;AAC3B,MAAM,uBAAuB;AAC7B,MAAM,0BAA0B;AAChC,MAAM,iCAAiC;AACvC,MAAM,yCAAyC;AAiC/C,MAAM,mBAAmB,QAAQ;AACjC,MAAM,oBAAoB,QAAQ;AAElC,MAAa,wBAAwB,EACnC,QACA,gBACA,gBAEA,OAAO,UAAU,KAAK,IAAI,kBAAkB,aAAa,OAAO,IAAI;AAEtE,MAAM,WAAW,OAAO,OAAO;;;;AAK/B,MAAM,gBAAgB,OAAO,OAAO;;;AAIpC,MAAM,kBAAkB,OAAO,IAAI;;;AAInC,MAAM,4BAA4B,EAAE,YAClC,oBAAC,0BAAD;CAA0B,cAAc,EAAE,UAAU,SAAS;WAC3D,oBAAC,iBAAD,EAAA,UAAkB,OAAwB,CAAA;CACjB,CAAA;AAG7B,MAAM,qBAAqB,SAAyB,GAAG;;;;iBAItC,EAAE,YAAY,MAAM,QAAQ,OAAO,GAAG;IAEnD,SAAS,OACL,GAAG;sBACW,EAAE,YAAY,MAAM,KAAK,UAAU,GAAG,SAAS;wBAC7C,EAAE,YAAY,MAAM,KAAK,UAAU,GAAG,WAAW;UAEjE,GAAG,GACR;;AAGH,MAAM,uBAAuB,MAAsB,YAAqB;AACtE,KAAI,QACF,QAAO,SAAS,OAAO,gBAAgB,SAAS,gBAAgB;AAElE,QAAO,SAAS,OAAO,gBAAgB,KAAK,gBAAgB;;AAG9D,MAAM,sBAAsB,GAA8B;IACtD,gBAAgB,GAAG;YACX,EAAE,YAAY,cAAc,OAAO,eAAe,MAAM,MAAM,KAAK,UAAU,CAAC;;8BAEvC;IAC/C,aAAa;KACZ,EAAE,YAAY,kBAAkB,MAAM,CAAC;;;cAG9B,EAAE,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UACE,oBAAC,oBAAD;IAEE,gBAAc,YAAY,SAAS,KAAA;IACnC,OAAO;IACP,YAAY;IACZ,UAAU,KAAK,MAAM,UAAU;IAC/B,WACE,KAAK,MAAM,SAAS,WAAW,QAAQ,SAAS,OAAO,aAAa,OAAO,KAAA;cAG7E,oBAAC,YAAD;KAAY,GAAI;KAAY;KAAM,SAAS;KAAsB;KAAa,CAAA;IAC3D,EAVd,GAAG,KAAK,MAAM,GAAG,QAUH;IAIe,GAAG,mBACzC,oBAAC,mBAAD;GAAuD,eAAY;aACjE,oBAAC,WAAD;IAAW,OAAO;cAAM;IAAa,CAAA;GACnB,EAFI,aAAa,iBAEjB,CAKQ,EAAkB,CAAA;EAC9B,CAAA"}
1
+ {"version":3,"file":"Breadcrumbs-CMf3Uvow.mjs","names":["Input"],"sources":["../src/components/Breadcrumbs/Breadcrumb.tsx","../src/components/Breadcrumbs/Breadcrumbs.tsx"],"sourcesContent":["import { type ChangeEvent, useEffect, useRef, useState } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport { Spacing } from '@persona/design-tokens';\nimport { CopyIcon, EditIcon } from '@persona/icons';\n\nimport { IconButton } from '#src/components/Button';\nimport Input from '#src/components/Input';\nimport { HStack } from '#src/components/Stack';\nimport TechnicalSticker from '#src/components/TechnicalSticker';\nimport { Paragraph } from '#src/components/Text';\nimport Tooltip from '#src/components/Tooltip';\nimport { RouterLink } from '#src/lib/router';\nimport { semanticColor } from '#src/lib/semanticColor';\nimport TruncatedTextWithTooltip from '#src/lib/TruncatedTextWithTooltip';\nimport { focusOutline } from '#src/mixins/focus';\nimport { paragraphMixins } from '#src/mixins/text';\nimport { TransitionDuration } from '#src/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 path (e.g. `/cases`), rendered as a router-aware link. */\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\nexport const getInlineActionCount = ({\n onEdit,\n showCopyAction,\n copyValue,\n}: Pick<BreadcrumbProps, 'onEdit' | 'showCopyAction' | 'copyValue'>) =>\n Number(onEdit != null) + (showCopyAction && copyValue != null ? 1 : 0);\n\nconst CrumbRow = styled(HStack)`\n align-items: center;\n min-width: 0;\n`;\n\nconst InlineActions = styled(HStack)`\n flex-shrink: 0;\n`;\n\nconst BreadcrumbLabel = styled.span`\n overflow-wrap: anywhere;\n`;\n\nconst TruncatedBreadcrumbLabel = ({ label }: { label: string }) => (\n <TruncatedTextWithTooltip tooltipProps={{ maxWidth: '400px' }}>\n <BreadcrumbLabel>{label}</BreadcrumbLabel>\n </TruncatedTextWithTooltip>\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(RouterLink)<{ $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 inlineActionCount = getInlineActionCount({ onEdit, showCopyAction, copyValue });\n const inlineActions = !isEditing && inlineActionCount > 0 && (\n <InlineActions spacing={ACTION_BUTTON_GAP} align='center'>\n {onEdit != null && (\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 </InlineActions>\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 <TruncatedBreadcrumbLabel label={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 <TruncatedBreadcrumbLabel label={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 <TruncatedBreadcrumbLabel label={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';\n\nimport { intersperse } from '#src/lib/intersperse';\nimport { semanticColor } from '#src/lib/semanticColor';\nimport { paragraphMixins } from '#src/mixins/text';\n\nimport Breadcrumb, {\n type BreadcrumbHeadingAs,\n type BreadcrumbProps,\n type BreadcrumbSize,\n getInlineActionCount,\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 ANCESTOR_MIN_CHARS = 8;\nconst CURRENT_MIN_CHARS = 12;\n\nconst BreadcrumbNav = styled.nav`\n min-width: 0;\n`;\n\nconst BreadcrumbList = styled.ol`\n max-width: 100%;\n display: flex;\n flex-wrap: nowrap;\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 $size: BreadcrumbSize;\n $isCurrent: boolean;\n $isShort: boolean;\n $minWidth?: string;\n}>`\n display: flex;\n align-items: center;\n ${({ $size }) => ($size === 'lg' ? paragraphMixins.lg : paragraphMixins.md)};\n ${({ $isShort, $isCurrent }) =>\n $isShort ? 'flex-shrink: 0;' : $isCurrent ? 'flex: 0 1 auto;' : 'flex: 0 100000 auto;'}\n ${({ $minWidth }) => $minWidth != null && `min-width: ${$minWidth};`}\n\n &:has(input) {\n flex-shrink: 1;\n }\n`;\n\nconst SeparatorListItem = styled.li`\n display: flex;\n align-items: center;\n flex-shrink: 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 const minChars = isCurrent ? CURRENT_MIN_CHARS : ANCESTOR_MIN_CHARS;\n const actionCount = getInlineActionCount(item);\n const actionsWidth =\n actionCount === 0\n ? 0\n : Number.parseFloat(Spacing[2]) +\n actionCount * 24 +\n (actionCount - 1) * Number.parseFloat(Spacing[1]);\n\n return (\n <BreadcrumbListItem\n key={`${item.label}-${index}`}\n aria-current={isCurrent ? 'page' : undefined}\n $size={size}\n $isCurrent={isCurrent}\n $isShort={item.label.length <= minChars}\n $minWidth={\n item.label.length > minChars ? `calc(${minChars}ch + ${actionsWidth}px)` : undefined\n }\n >\n <Breadcrumb {...item} size={size} current={isCurrent} headingAs={headingAs} />\n </BreadcrumbListItem>\n );\n });\n\n const listItems = intersperse(crumbNodes, (separatorIndex: number) => (\n <SeparatorListItem key={`separator-${separatorIndex}`} aria-hidden='true'>\n <Separator $size={size}>/</Separator>\n </SeparatorListItem>\n ));\n\n return (\n <BreadcrumbNav aria-label={ariaLabel} className={className}>\n <BreadcrumbList>{listItems}</BreadcrumbList>\n </BreadcrumbNav>\n );\n};\n\nexport default Breadcrumbs;\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAuBA,MAAM,qBAAqB;AAC3B,MAAM,uBAAuB;AAC7B,MAAM,0BAA0B;AAChC,MAAM,iCAAiC;AACvC,MAAM,yCAAyC;AAiC/C,MAAM,mBAAmB,QAAQ;AACjC,MAAM,oBAAoB,QAAQ;AAElC,MAAa,wBAAwB,EACnC,QACA,gBACA,gBAEA,OAAO,UAAU,KAAK,IAAI,kBAAkB,aAAa,OAAO,IAAI;AAEtE,MAAM,WAAW,OAAO,OAAO;;;;AAK/B,MAAM,gBAAgB,OAAO,OAAO;;;AAIpC,MAAM,kBAAkB,OAAO,IAAI;;;AAInC,MAAM,4BAA4B,EAAE,YAClC,oBAAC,0BAAD;CAA0B,cAAc,EAAE,UAAU,SAAS;WAC3D,oBAAC,iBAAD,EAAA,UAAkB,OAAwB,CAAA;CACjB,CAAA;AAG7B,MAAM,qBAAqB,SAAyB,GAAG;;;;iBAItC,EAAE,YAAY,MAAM,QAAQ,OAAO,GAAG;IAEnD,SAAS,OACL,GAAG;sBACW,EAAE,YAAY,MAAM,KAAK,UAAU,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,YAAY,MACZ,cAAc,YAAY,eAC1B,gBACsB;AACtB,KAAI,MAAM,WAAW,EACnB,QAAO;AAoCT,QACE,oBAAC,eAAD;EAAe,cAAY;EAAsB;YAC/C,oBAAC,gBAAD,EAAA,UARc,YA3BC,MAAM,KAAK,MAAM,UAAU;GAC5C,MAAM,YAAY,UAAU,MAAM,SAAS;GAC3C,MAAM,WAAW,YAAY,oBAAoB;GACjD,MAAM,cAAc,qBAAqB,KAAK;GAC9C,MAAM,eACJ,gBAAgB,IACZ,IACA,OAAO,WAAW,QAAQ,GAAG,GAC7B,cAAc,MACb,cAAc,KAAK,OAAO,WAAW,QAAQ,GAAG;AAEvD,UACE,oBAAC,oBAAD;IAEE,gBAAc,YAAY,SAAS,KAAA;IACnC,OAAO;IACP,YAAY;IACZ,UAAU,KAAK,MAAM,UAAU;IAC/B,WACE,KAAK,MAAM,SAAS,WAAW,QAAQ,SAAS,OAAO,aAAa,OAAO,KAAA;cAG7E,oBAAC,YAAD;KAAY,GAAI;KAAY;KAAM,SAAS;KAAsB;KAAa,CAAA;IAC3D,EAVd,GAAG,KAAK,MAAM,GAAG,QAUH;IAIe,GAAG,mBACzC,oBAAC,mBAAD;GAAuD,eAAY;aACjE,oBAAC,WAAD;IAAW,OAAO;cAAM;IAAa,CAAA;GACnB,EAFI,aAAa,iBAEjB,CAKQ,EAAkB,CAAA;EAC9B,CAAA"}
@@ -1,2 +1,2 @@
1
- import { n as BreadcrumbsItemProps, r as BreadcrumbsProps, t as Breadcrumbs } from "./Breadcrumbs-ChKWIuRq.mjs";
1
+ import { n as BreadcrumbsItemProps, r as BreadcrumbsProps, t as Breadcrumbs } from "./Breadcrumbs-3MtvzTPi.mjs";
2
2
  export { Breadcrumbs, Breadcrumbs as default, BreadcrumbsItemProps, BreadcrumbsProps };
@@ -1,6 +1,6 @@
1
- import { i as To } from "./types-B5RbKp2V.mjs";
2
- import { t as PseudoClassProps } from "./PseudoClassProps-D-sdJdnG.mjs";
3
- import { n as ButtonVariant } from "./palette-D61sDyDI.mjs";
1
+ import { i as To } from "./types-BRYGqFVm.mjs";
2
+ import { t as PseudoClassProps } from "./PseudoClassProps-CIuO49a4.mjs";
3
+ import { n as ButtonVariant } from "./palette-DzmqrF_5.mjs";
4
4
  import * as _$react from "react";
5
5
  import { ComponentPropsWithoutRef, HTMLAttributeAnchorTarget, MouseEvent, ReactNode, Ref } from "react";
6
6
  import * as _$styled_components0 from "styled-components";
@@ -108,4 +108,4 @@ interface ButtonProps extends ComponentPropsWithoutRef<'button'>, Omit<PseudoCla
108
108
  declare const Button: _$react.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & _$react.RefAttributes<HTMLButtonElement>>;
109
109
  //#endregion
110
110
  export { SuffixIconContainer as a, StyledButton as i, ButtonChildren as n, ButtonProps as r, Button as t };
111
- //# sourceMappingURL=Button-B79_aXfC.d.mts.map
111
+ //# sourceMappingURL=Button-DjD8QxcY.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-B79_aXfC.mjs";
1
+ import { a as SuffixIconContainer, i as StyledButton, n as ButtonChildren, r as ButtonProps, t as Button } from "./Button-DjD8QxcY.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-50D7poM_.d.mts.map
12
+ //# sourceMappingURL=Calendar-DRJljp8S.d.mts.map
@@ -1,2 +1,2 @@
1
- import { t as Calendar } from "./Calendar-50D7poM_.mjs";
1
+ import { t as Calendar } from "./Calendar-DRJljp8S.mjs";
2
2
  export { Calendar as default };
@@ -1,4 +1,4 @@
1
- import { n as IconButtonProps } from "./IconButton-CaEvsrOn.mjs";
1
+ import { n as IconButtonProps } from "./IconButton-C_ReZm8v.mjs";
2
2
  import * as _$styled_components0 from "styled-components";
3
3
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
4
4
 
@@ -1,6 +1,6 @@
1
1
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
- import { CalendarDate, DateValue } from "@internationalized/date";
3
2
  import { CalendarState, RangeCalendarState } from "react-stately";
3
+ import { CalendarDate, DateValue } from "@internationalized/date";
4
4
 
5
5
  //#region src/components/DatePicker/Calendar/CalendarCell.d.ts
6
6
  interface CalendarCellProps {
@@ -1,6 +1,6 @@
1
1
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
- import { DateDuration } from "@internationalized/date";
3
2
  import { CalendarState, RangeCalendarState } from "react-stately";
3
+ import { DateDuration } from "@internationalized/date";
4
4
 
5
5
  //#region src/components/DatePicker/Calendar/CalendarGrid.d.ts
6
6
  interface CalendarGridProps {
@@ -1,5 +1,5 @@
1
- import { c as ParagraphProps, u as SpanProps } from "./Text-BgSW0yDb.mjs";
2
- import { i as HeaderProps } from "./Header-C9oYPBLv.mjs";
1
+ import { c as ParagraphProps, u as SpanProps } from "./Text-CvaqognH.mjs";
2
+ import { i as HeaderProps } from "./Header-CV0Lcf0C.mjs";
3
3
  import { ComponentPropsWithoutRef, FC, PropsWithChildren, ReactElement, ReactNode } from "react";
4
4
  import * as _$styled_components0 from "styled-components";
5
5
  import { Spacing } from "@persona/design-tokens";
@@ -72,4 +72,4 @@ declare const _default: typeof Card & {
72
72
  };
73
73
  //#endregion
74
74
  export { SectionProps as n, _default as r, CardProps as t };
75
- //# sourceMappingURL=Card-DOIqF954.d.mts.map
75
+ //# sourceMappingURL=Card-DiUHtYg_.d.mts.map
package/dist/Card.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { n as SectionProps, r as _default, t as CardProps } from "./Card-DOIqF954.mjs";
1
+ import { n as SectionProps, r as _default, t as CardProps } from "./Card-DiUHtYg_.mjs";
2
2
  export { CardProps, SectionProps, _default as default };
@@ -1,5 +1,5 @@
1
- import { i as TextAction, n as IconAction } from "./Action-BLMJwLBV.mjs";
2
- import { n as SingleColumnLayoutProps } from "./SingleColumnLayout-C4qrVyMf.mjs";
1
+ import { i as TextAction, n as IconAction } from "./Action-CHWYwpYR.mjs";
2
+ import { n as SingleColumnLayoutProps } from "./SingleColumnLayout-D2bpX7X1.mjs";
3
3
  import { ReactElement, ReactNode } from "react";
4
4
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
5
5
 
@@ -1,8 +1,8 @@
1
1
  import ConfigContext from "./lib/ConfigContext.mjs";
2
2
  import { a as styled, r as css } from "./styledComponentsInterop-Cs5CCPRy.mjs";
3
+ import { semanticColor } from "./lib/semanticColor.mjs";
3
4
  import { HeadlessAriaButton } from "./lib/HeadlessAriaButton.mjs";
4
5
  import { TruncatedText } from "./lib/TruncatedText.mjs";
5
- import { semanticColor } from "./lib/semanticColor.mjs";
6
6
  import { i as Paragraph, n as Heading$1 } from "./Text-D0vEReED.mjs";
7
7
  import "./variables/transitions.mjs";
8
8
  import { a as Tooltip } from "./Tooltip-YViXzMdm.mjs";
@@ -10,10 +10,10 @@ import { Z_INDICES } from "./lib/zindex.mjs";
10
10
  import { focusStyle } from "./mixins/focus.mjs";
11
11
  import { semanticScrollbar } from "./mixins/scrollbar.mjs";
12
12
  import { t as HStack } from "./Stack-Bzom2BTR.mjs";
13
- import { n as Button$1, t as IconButton } from "./IconButton-DftINsp7.mjs";
13
+ import { n as Button$1, t as IconButton } from "./IconButton-DxHB2g80.mjs";
14
14
  import { t as intersperse } from "./intersperse-DvJsBw5D.mjs";
15
- import { n as DropdownMenu_default } from "./DropdownMenu-Q8S-9rXm.mjs";
16
- import { t as DropdownButton } from "./DropdownButton-BiFRlSVD.mjs";
15
+ import { n as DropdownMenu_default } from "./DropdownMenu-c8XK2Lr4.mjs";
16
+ import { t as DropdownButton } from "./DropdownButton-DpLG-cIj.mjs";
17
17
  import { t as LoadingShimmer } from "./LoadingShimmer-oPIv2ESr.mjs";
18
18
  import { createContext, useContext } from "react";
19
19
  import { Color, Spacing, Typography } from "@persona/design-tokens";
@@ -417,4 +417,4 @@ var Card_default = Object.assign(Card, {
417
417
  //#endregion
418
418
  export { CARD_HEADING_STICKY_OFFSET as n, Card_default as t };
419
419
 
420
- //# sourceMappingURL=CardV2-BRJbRSts.mjs.map
420
+ //# sourceMappingURL=CardV2-ACI5RIzF.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"CardV2-BRJbRSts.mjs","names":["CardLoadingShimmer","Heading","Button","DropdownMenu"],"sources":["../src/components/CardV2/SectionHeading.tsx","../src/components/CardV2/Section.tsx","../src/components/CardV2/Card.tsx"],"sourcesContent":["import type { ComponentPropsWithoutRef, FC, ReactElement, ReactNode } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport { Color, Spacing, Typography } from '@persona/design-tokens';\nimport { ChevronDownIcon, MoreIcon } from '@persona/icons';\n\nimport Button, { IconButton } from '#src/components/Button';\nimport DropdownButton from '#src/components/DropdownButton';\nimport DropdownMenu from '#src/components/DropdownMenu';\nimport { LoadingShimmer } from '#src/components/LoadingShimmer';\nimport { HStack } from '#src/components/Stack';\nimport { Heading } from '#src/components/Text';\nimport Tooltip from '#src/components/Tooltip';\nimport { HeadlessAriaButton } from '#src/lib/HeadlessAriaButton';\nimport { semanticColor } from '#src/lib/semanticColor';\nimport { TruncatedText } from '#src/lib/TruncatedText';\nimport { focusStyle } from '#src/mixins/focus';\nimport type { HeadingSize } from '#src/mixins/text';\nimport type { IconAction, MenuAction, TextAction } from '#src/types/Action';\nimport { TransitionDuration } from '#src/variables/transitions';\n\n/**\n * Distance from the top of a card to the underside of an expanded top-section heading: the\n * `Spacing[4]` padding above and below a 24px title line, plus the divider. Sticky content inside\n * the card pins here so the heading's divider stays the only line between them.\n */\nexport const CARD_HEADING_STICKY_OFFSET = `calc(${Spacing[9]} + 1px)`;\n\nconst CardLoadingShimmer = styled(LoadingShimmer)`\n border-radius: ${({ theme }) => theme.card.borderRadius};\n`;\n\nconst StickerContainer = styled.div`\n display: flex;\n max-width: 180px;\n`;\n\ntype AccordionContainerProps = {\n $isTopSection: boolean;\n $expanded: boolean;\n};\nconst AccordionContainer = styled.div<AccordionContainerProps>`\n transition: opacity ${TransitionDuration.Faster};\n position: absolute;\n opacity: 0;\n\n height: 12px;\n width: 12px;\n display: flex;\n align-items: center;\n /* Because of padding in the top section heading we need to offset differently. */\n /* We want a 12px icon to be off-center in 24px padding, 4px on the right and 8px on the left */\n left: ${({ $isTopSection }) => ($isTopSection ? '8px' : '-16px')};\n /* center the icon vertically */\n top: calc(50% - 6px);\n\n border-radius: 1px;\n\n & svg {\n transition: transform ${TransitionDuration.Faster} ease-out;\n transform: rotate(${({ $expanded }) => ($expanded ? '0' : '-90deg')});\n }\n`;\n\nconst HeaderButton = styled(HeadlessAriaButton)`\n min-width: 0;\n flex: 1;\n\n &:hover ~ ${AccordionContainer} {\n opacity: 1;\n }\n\n &:focus-visible ~ ${AccordionContainer} {\n opacity: 1;\n ${focusStyle}\n }\n`;\n\ntype HeadingContainerProps = {\n $isTopSection: boolean;\n $divider: boolean;\n $hasFooter: boolean;\n $isExpanded: boolean;\n};\nconst HeadingContainer = styled(HStack)<HeadingContainerProps>`\n position: relative;\n\n ${({ $isTopSection }) =>\n $isTopSection &&\n css`\n padding: ${Spacing[4]} ${Spacing[5]};\n `}\n ${({ $divider }) =>\n $divider &&\n css`\n border-bottom: 1px solid ${({ theme }) => semanticColor(theme, 'BorderSubtle', Color.BorderDivider)};\n `}\n ${({ $isTopSection, $hasFooter, $isExpanded }) =>\n $isTopSection &&\n !$hasFooter &&\n !$isExpanded &&\n css`\n // We apply 4px of whitespace to the bottom of the card container so that content has a buffer\n // when being scrolled and still appears inside the card. Here we adjust, subtracting\n // 4px from the 16px padding.\n padding-bottom: ${Spacing[3]};\n `}\n`;\n\ntype StyledHeadingProps = {\n $isCollapsible: boolean;\n $isTopSection: boolean;\n size: HeadingSize;\n};\nconst StyledHeading = styled(Heading)<StyledHeadingProps>`\n flex: 1;\n display: flex;\n align-items: center;\n gap: ${Spacing[2]};\n line-height: 24px; // We want an adjusted line-height to hit the target header size.\n overflow: hidden;\n\n ${({ $isCollapsible }) => $isCollapsible && 'cursor: pointer;'}\n ${({ $isTopSection }) =>\n !$isTopSection &&\n css`\n ${Typography.TextLargeBold};\n `}\n`;\n\nconst isIconAction = (action: IconAction | TextAction): action is IconAction => 'icon' in action;\n\nconst ButtonRow: FC<{\n actions: (IconAction | TextAction)[];\n menuActions: MenuAction[];\n}> = ({ actions, menuActions }) => {\n const buttons = actions\n .filter((action) => !action.hidden)\n .map((action, i) => {\n const key = isIconAction(action)\n ? (action.id ?? action.ariaLabel ?? `action-${i}`)\n : (action.id ?? action.label ?? `action-${i}`);\n\n const button = isIconAction(action) ? (\n <IconButton\n id={action.id}\n key={key}\n to={action.to}\n onClick={(e) => {\n e.stopPropagation();\n return action.onClick?.(e);\n }}\n disabled={action.disabled}\n aria-label={action.ariaLabel}\n size='sm'\n >\n {action.icon}\n </IconButton>\n ) : (\n <Button\n id={action.id}\n key={key}\n aria-label={action.ariaLabel}\n to={action.to}\n onClick={(e) => {\n e.stopPropagation();\n return action.onClick?.(e);\n }}\n disabled={action.disabled}\n variant={action.variant ?? 'basic'}\n size='sm'\n width='auto'\n prefixIcon={action.prefixIcon}\n suffixIcon={action.suffixIcon}\n >\n {action.label}\n </Button>\n );\n\n return action.tooltip ? (\n <Tooltip key={key} {...action.tooltipProps} trigger={button}>\n {action.tooltip}\n </Tooltip>\n ) : (\n button\n );\n });\n\n return (\n <HStack>\n {buttons}\n {menuActions.length > 0 && (\n <DropdownButton\n variant='text'\n width='icon'\n size='sm'\n suffixIcon={undefined}\n style={{ justifySelf: 'flex-end' }}\n aria-label='More actions'\n menuProps={{\n portal: true,\n }}\n menuItems={menuActions\n .filter((action) => !action.hidden)\n .map((action) => (\n <DropdownMenu.Item\n id={action.id ?? action.label}\n key={action.id ?? action.label}\n onClick={action.onClick}\n disabled={action.disabled}\n >\n {action.label}\n </DropdownMenu.Item>\n ))}\n >\n <MoreIcon />\n </DropdownButton>\n )}\n </HStack>\n );\n};\n\n/**\n * Private component for rendering the heading of a section, both the primary card heading and\n * section headings.\n */\nexport const SectionHeading: FC<{\n /**\n * Whether this is the top-level section of the card which has different visual treatment.\n */\n isTopSection: boolean;\n\n /**\n * Whether this heading's section has content.\n */\n sectionHasContent: boolean;\n\n /**\n * Whether this heading's section has a footer.\n */\n hasFooter: boolean;\n\n loading: boolean;\n\n /**\n * Title text to render in the heading.\n */\n title: string;\n\n /**\n * Optional sticker to render after the title.\n */\n sticker?: ReactElement;\n\n /**\n * Optional icon to render before the title text.\n *\n * Usage of this icon slot should be avoided if possible to maintain left-text alignement. If\n * using this icon slot for a section heading use it for all sections.\n */\n leftDecorativeIcon?: ReactElement;\n\n /**\n * Optional actions to render in the heading.\n * Only accepts IconButton or Button components with specific prop restrictions.\n */\n actions?: (IconAction | TextAction | undefined)[];\n\n /**\n * Optional actions to render in the heading in a menu.\n */\n menuActions?: (MenuAction | undefined)[];\n\n /**\n * Optional custom content to render in the heading in the button row. Prefer setting `actions` or\n * `menuActions` if possible.\n */\n headerActionsRowContent?: ReactNode;\n\n /**\n * Callback to toggle collapsed state of the section. Omit to disable collapsing.\n */\n toggle?: () => void;\n\n /**\n * Whether the section is currently expanded or collapsed.\n */\n isExpanded: boolean;\n\n /**\n * Optional props to pass to the heading element. Accepts an `as` key to override the\n * rendered heading level. Defaults to `h2` for the top-level card heading and `h3` for\n * section headings so that the document heading hierarchy reflects the visual hierarchy.\n */\n headingProps?: Omit<ComponentPropsWithoutRef<'span'>, 'color'> & {\n as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';\n };\n}> = ({\n isTopSection,\n sectionHasContent,\n hasFooter,\n loading,\n title,\n actions = [],\n menuActions = [],\n headerActionsRowContent,\n sticker,\n leftDecorativeIcon,\n toggle,\n isExpanded,\n headingProps,\n}) => {\n const renderButtonRow = actions.length > 0 || menuActions.length > 0;\n const { as: headingAs, ...restHeadingProps } = headingProps ?? {};\n\n return (\n <HeadingContainer\n $isTopSection={isTopSection}\n $hasFooter={hasFooter}\n $isExpanded={isExpanded}\n $divider={isTopSection && isExpanded && sectionHasContent}\n align='center'\n justify='space-between'\n spacing={Spacing[2]}\n >\n {loading ? (\n <CardLoadingShimmer height='24px' width='200px' />\n ) : (\n <>\n {/* https://github.com/adobe/react-spectrum/issues/7444 */}\n <HeaderButton slot='trigger' isDisabled={!toggle}>\n <StyledHeading\n forwardedAs={headingAs ?? (isTopSection ? 'h2' : 'h3')}\n size='xsm'\n $isCollapsible={!!toggle}\n $isTopSection={isTopSection}\n aria-label={title}\n {...restHeadingProps}\n >\n {leftDecorativeIcon}\n <TruncatedText>{title}</TruncatedText>\n {sticker && <StickerContainer>{sticker}</StickerContainer>}\n </StyledHeading>\n </HeaderButton>\n {headerActionsRowContent}\n {renderButtonRow && (\n <ButtonRow\n actions={actions.filter((action) => action != null)}\n menuActions={menuActions.filter((action) => action != null)}\n />\n )}\n {toggle && (\n <AccordionContainer $isTopSection={isTopSection} $expanded={isExpanded}>\n <ChevronDownIcon />\n </AccordionContainer>\n )}\n </>\n )}\n </HeadingContainer>\n );\n};\n","import type { ComponentProps, FC, ReactNode } from 'react';\nimport { Disclosure, DisclosurePanel } from 'react-aria-components';\nimport styled, { css } from 'styled-components';\n\nimport { Color, Spacing } from '@persona/design-tokens';\n\nimport { SectionHeading } from '#src/components/CardV2/SectionHeading';\nimport { LoadingShimmer } from '#src/components/LoadingShimmer';\nimport { HStack } from '#src/components/Stack';\nimport { Paragraph } from '#src/components/Text';\nimport { intersperse } from '#src/lib/intersperse';\nimport { semanticColor } from '#src/lib/semanticColor';\nimport { Z_INDICES } from '#src/lib/zindex';\n\nconst FooterParagraph = styled(Paragraph)`\n line-height: 16px;\n`;\n\ntype FooterContainerProps = {\n $divider: boolean;\n};\nconst FooterContainer = styled.div<FooterContainerProps>`\n ${({ $divider }) =>\n $divider &&\n css`\n border-top: 1px solid ${({ theme }) => semanticColor(theme, 'BorderSubtle', Color.BorderDivider)};\n `}\n padding: ${Spacing[3]} ${Spacing[5]} ${Spacing[2]};\n`;\n\ntype MaybeStickyContainerProps = {\n $enabled: boolean;\n $bottom?: boolean;\n};\nconst MaybeStickyContainer = styled.div<MaybeStickyContainerProps>`\n ${({ $enabled }) =>\n $enabled &&\n css`\n // We are using sticky positioning here to have consistent scrollbar behavior between\n // different card configurations. Usage of sticky allows us to keep the scroll container at\n // the top of the card DOM structure regardless of whether the heading or footer is sticky.\n //\n // This also afaict helps eliminate the need to carry height values through the card DOM\n // structure to the content container (and possibly needing to adjust heights for heading and footer).\n position: sticky;\n top: 0;\n background-color: ${({ theme }) => semanticColor(theme, 'SurfacePrimary', theme.color.background.primary)};\n z-index: ${Z_INDICES.sticky};\n `}\n\n ${({ $bottom = false }) =>\n $bottom &&\n css`\n top: unset;\n bottom: 0;\n `}\n`;\n\ntype StyledDisclosureProps = {\n $fullHeight: boolean;\n};\nconst StyledDisclosure = styled(Disclosure)<StyledDisclosureProps>`\n display: flex;\n flex-direction: column;\n gap: 0;\n ${({ $fullHeight }) =>\n $fullHeight &&\n css`\n height: 100%;\n `}\n`;\n\ntype StyledDisclosurePanelProps = {\n $isTopSection: boolean;\n};\nconst StyledDisclosurePanel = styled(DisclosurePanel)<StyledDisclosurePanelProps>`\n flex: 1;\n ${({ $isTopSection }) =>\n $isTopSection &&\n css`\n // Safari does not support hidden='until-found' so react-aria uses display: none instead.\n // Since react-aria is using display to hide content we need to not set display ourselves.\n &:not([aria-hidden='true']) {\n display: flex;\n }\n `}\n`;\n\nconst CardLoadingShimmer = styled(LoadingShimmer)`\n border-radius: ${({ theme }) => theme.card.borderRadius};\n`;\n\ntype SectionContentContainerProps = {\n $isTopSection: boolean;\n $hasHeading: boolean;\n $hasFooter: boolean;\n};\nconst SectionContentContainer = styled.div<SectionContentContainerProps>`\n ${({ $isTopSection }) =>\n $isTopSection &&\n css`\n padding: ${Spacing[5]};\n display: flex;\n flex-direction: column;\n gap: ${Spacing[5]};\n flex: 1;\n /* Prevent grid blowout https://css-tricks.com/preventing-a-grid-blowout/ */\n min-width: 0;\n `}\n\n ${({ $isTopSection, $hasHeading }) =>\n !$isTopSection &&\n $hasHeading &&\n css`\n padding-top: ${Spacing[3]};\n `}\n\n ${({ $isTopSection, $hasFooter }) =>\n $isTopSection &&\n !$hasFooter &&\n css`\n // We apply 4px of whitespace to the bottom of the card container so that content has a buffer\n // when being scrolled and still appears inside the card. Here we adjust, subtracting\n // 4px from the 24px padding.\n padding-bottom: 20px;\n `}\n`;\n\n/**\n * Private component for rendering sections of the card, both the primary card section and\n * individual sections.\n */\nexport const Section: FC<{\n children?: ReactNode;\n\n /**\n * Whether this is the top-level section of the card which has different visual treatment.\n */\n isTopSection: boolean;\n\n /**\n * Available props for the section's heading.\n */\n heading?: Pick<\n ComponentProps<typeof SectionHeading>,\n | 'title'\n | 'actions'\n | 'menuActions'\n | 'headerActionsRowContent'\n | 'sticker'\n | 'leftDecorativeIcon'\n | 'headingProps'\n >;\n\n /**\n * Optional footer to render at the bottom of the card. Footer content is rendered as a\n * paragraph with the items separated by a dot.\n */\n footer?: ReactNode[];\n\n /**\n * Optional arbitrary footer content to render as-is.\n */\n footerContent?: ReactNode;\n\n /**\n * Whether the section is collapsible.\n */\n collapsible?: boolean;\n\n /**\n * Whether the section heading and footer are sticky.\n */\n sticky?: boolean;\n\n /**\n * Whether the section is initially collapsed.\n */\n defaultCollapsed?: boolean;\n\n /**\n * If true, the section will be rendered in a loading state.\n */\n loading?: boolean;\n\n /**\n * Set height of the loading state.\n */\n loadingProps?: {\n height?: string;\n };\n\n /**\n * Control display of the empty state.\n */\n empty?: boolean;\n\n /**\n * Props for the empty state.\n */\n emptyProps?: {\n /**\n * Empty state message.\n */\n message?: string;\n };\n\n fullHeight?: boolean;\n}> = ({\n children,\n isTopSection,\n heading,\n footer,\n footerContent,\n loading = false,\n loadingProps,\n empty = false,\n emptyProps,\n defaultCollapsed = false,\n collapsible = false,\n sticky = false,\n fullHeight = false,\n}) => {\n let content: ReactNode;\n if (loading) {\n content = <CardLoadingShimmer height={loadingProps?.height ?? '200px'} width='100%' />;\n } else if (empty) {\n content = <Paragraph>{emptyProps?.message ?? 'No data collected'}</Paragraph>;\n } else {\n content = children;\n }\n\n const hasFooter = !!(footer || footerContent);\n const hasContent = !!content;\n\n // Normally we would have `isDisabled` as well but there's a react-aria-components quirk\n // that sets `hidden` on the disclosure panel if both `defaultExpanded` and `isDisabled` are true.\n // https://github.com/adobe/react-spectrum/issues/7444\n return (\n <StyledDisclosure defaultExpanded={!defaultCollapsed} $fullHeight={fullHeight}>\n {({ isExpanded, state }) => (\n <>\n {heading && (\n <MaybeStickyContainer $enabled={sticky}>\n <SectionHeading\n isTopSection={isTopSection}\n hasFooter={hasFooter}\n sectionHasContent={hasContent}\n loading={loading}\n toggle={collapsible ? state.toggle : undefined}\n isExpanded={isExpanded}\n {...heading}\n />\n </MaybeStickyContainer>\n )}\n {hasContent && (\n <StyledDisclosurePanel $isTopSection={isTopSection}>\n <SectionContentContainer\n $isTopSection={isTopSection}\n $hasHeading={!!heading}\n $hasFooter={hasFooter}\n >\n {content}\n </SectionContentContainer>\n </StyledDisclosurePanel>\n )}\n {hasFooter && (\n <MaybeStickyContainer $enabled={sticky} $bottom>\n <FooterContainer $divider={hasContent}>\n {loading ? (\n <HStack>\n <CardLoadingShimmer height='16px' width='120px' />\n <CardLoadingShimmer height='16px' width='120px' />\n </HStack>\n ) : (\n <>\n {footer && (\n <FooterParagraph size='sm'>\n <HStack spacing={Spacing[1]}>\n {intersperse(\n footer\n .filter((item) => item != null)\n .map((item, i) => <span key={`footer-item-${i}`}>{item}</span>),\n (i) => (\n <span key={i}>•</span>\n ),\n )}\n </HStack>\n </FooterParagraph>\n )}\n {footerContent}\n </>\n )}\n </FooterContainer>\n </MaybeStickyContainer>\n )}\n </>\n )}\n </StyledDisclosure>\n );\n};\n","import { type ComponentProps, createContext, type FC, type ReactNode, useContext } from 'react';\nimport { ErrorBoundary } from 'react-error-boundary';\nimport styled from 'styled-components';\n\nimport { Color } from '@persona/design-tokens';\n\nimport { Section } from '#src/components/CardV2/Section';\nimport { Paragraph } from '#src/components/Text';\nimport ConfigContext from '#src/lib/ConfigContext';\nimport { intersperse } from '#src/lib/intersperse';\nimport { semanticColor } from '#src/lib/semanticColor';\nimport { semanticScrollbar } from '#src/mixins/scrollbar';\n\nconst CardContainer = styled.div`\n border-radius: ${({ theme }) => theme.card.borderRadius};\n background-color: ${({ theme }) => semanticColor(theme, 'SurfacePrimary', theme.color.background.primary)};\n // Height has been tricky here.\n // inherit seems to work well for both grid and flexbox layouts. In a grid we want this\n // container to receive the full cell height, In a flexbox we want this container to flex, maintaining\n // the minimum height for it's content.\n height: inherit;\n overflow-y: auto;\n ${semanticScrollbar}\n\n box-sizing: border-box;\n // Small buffer so that content is not scrolling right on the edge of the card.\n border-bottom: 4px solid ${({ theme }) => semanticColor(theme, 'SurfacePrimary', theme.color.background.primary)};\n`;\n\nconst CardContext = createContext<{ isStacked?: boolean }>({});\n\nconst Divider = styled.hr`\n margin: 0;\n border: none;\n border-top: 1px solid ${({ theme }) => semanticColor(theme, 'BorderSubtle', Color.BorderDivider)};\n`;\n\n/**\n * Renders a card section.\n */\nconst PublicSection: FC<\n Pick<\n ComponentProps<typeof Section>,\n | 'children'\n | 'collapsible'\n | 'defaultCollapsed'\n | 'heading'\n | 'loading'\n | 'loadingProps'\n | 'empty'\n | 'emptyProps'\n >\n> = (props) => {\n return <Section isTopSection={false} {...props} />;\n};\n\n/**\n * Render the card in a \"stacked\" mode. Used for rendering multiple cards on top of each other\n * that appear visually as a single card.\n */\nconst Stacked: FC<{\n children: ReactNode[];\n}> = ({ children }) => {\n return (\n <CardContext.Provider value={{ isStacked: true }}>\n <CardContainer>\n {intersperse(children, (i) => (\n <Divider key={i} />\n ))}\n </CardContainer>\n </CardContext.Provider>\n );\n};\n\nconst DEFAULT_ERROR_MESSAGE = 'Something went wrong loading this card.';\n\n/**\n * Renders a PDS Card.\n *\n * To render sections of the card use `<Card.Section>...</Card.Section>`\n */\nconst Card: FC<\n {\n /**\n * Optional footer to render at the bottom of the card. Footer content is rendered as a\n * paragraph with the items separated by a dot.\n */\n footer?: ReactNode[];\n\n /**\n * Optional arbitrary footer content to render as-is.\n */\n footerContent?: ReactNode;\n\n /**\n * Whether the card heading and footer are sticky.\n */\n sticky?: boolean;\n\n /**\n * Force the card to render in an errored state. Errors bubbling up from children will also\n * render the errored state.\n */\n errored?: boolean;\n\n /**\n * Props for the errored state.\n */\n erroredProps?: {\n /**\n * Message to render in the errored state.\n */\n message?: string;\n /**\n * Callback to handle errors. Note this callback is only called when the error is bubbled up\n * from children, not when `errored` is set to true.\n */\n onError?: (error: Error) => void;\n };\n\n containerProps?: ComponentProps<typeof CardContainer>;\n\n /**\n * Whether the card should render its content with 100% height. This is a bit of a hack for cards\n * that want full control of their content and don't use sections.\n */\n fullHeight?: boolean;\n } & ComponentProps<typeof PublicSection>\n> = ({ children, errored, erroredProps, containerProps, sticky = true, ...sectionProps }) => {\n const { isStacked = false } = useContext(CardContext);\n const { captureException } = useContext(ConfigContext);\n\n const errorFallback = (\n <Section isTopSection {...sectionProps}>\n <Paragraph>{erroredProps?.message ?? DEFAULT_ERROR_MESSAGE}</Paragraph>\n </Section>\n );\n\n const section = (\n <Section isTopSection sticky={sticky} {...sectionProps}>\n {children}\n </Section>\n );\n\n return (\n <ErrorBoundary\n fallback={\n isStacked ? (\n errorFallback\n ) : (\n <CardContainer {...containerProps}>{errorFallback}</CardContainer>\n )\n }\n onError={erroredProps?.onError ?? ((error) => captureException(error))}\n >\n {isStacked ? (\n <>{errored ? <>{errorFallback}</> : <>{section}</>}</>\n ) : (\n <CardContainer {...containerProps}>\n {errored ? <>{errorFallback}</> : <>{section}</>}\n </CardContainer>\n )}\n </ErrorBoundary>\n );\n};\n\nexport default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QACE,oBAAC,YAAY,UAAb;EAAsB,OAAO,EAAE,WAAW,MAAM;YAC9C,oBAAC,eAAD,EAAA,UACG,YAAY,WAAW,MACtB,oBAAC,SAAD,EAAmB,EAAL,EAAK,CACnB,EACY,CAAA;EACK,CAAA;;AAI3B,MAAM,wBAAwB;;;;;;AAO9B,MAAM,QA+CD,EAAE,UAAU,SAAS,cAAc,gBAAgB,SAAS,MAAM,GAAG,mBAAmB;CAC3F,MAAM,EAAE,YAAY,UAAU,WAAW,YAAY;CACrD,MAAM,EAAE,qBAAqB,WAAW,cAAc;CAEtD,MAAM,gBACJ,oBAAC,SAAD;EAAS,cAAA;EAAa,GAAI;YACxB,oBAAC,WAAD,EAAA,UAAY,cAAc,WAAW,uBAAkC,CAAA;EAC/D,CAAA;CAGZ,MAAM,UACJ,oBAAC,SAAD;EAAS,cAAA;EAAqB;EAAQ,GAAI;EACvC;EACO,CAAA;AAGZ,QACE,oBAAC,eAAD;EACE,UACE,YACE,gBAEA,oBAAC,eAAD;GAAe,GAAI;aAAiB;GAA8B,CAAA;EAGtE,SAAS,cAAc,aAAa,UAAU,iBAAiB,MAAM;YAEpE,YACC,oBAAA,YAAA,EAAA,UAAG,UAAU,oBAAA,YAAA,EAAA,UAAG,eAAiB,CAAA,GAAG,oBAAA,YAAA,EAAA,UAAG,SAAW,CAAA,EAAI,CAAA,GAEtD,oBAAC,eAAD;GAAe,GAAI;aAChB,UAAU,oBAAA,YAAA,EAAA,UAAG,eAAiB,CAAA,GAAG,oBAAA,YAAA,EAAA,UAAG,SAAW,CAAA;GAClC,CAAA;EAEJ,CAAA;;AAIpB,IAAA,eAAe,OAAO,OAAO,MAAM;CACjC,SAAS;CACA;CACV,CAAC"}
1
+ {"version":3,"file":"CardV2-ACI5RIzF.mjs","names":["CardLoadingShimmer","Heading","Button","DropdownMenu"],"sources":["../src/components/CardV2/SectionHeading.tsx","../src/components/CardV2/Section.tsx","../src/components/CardV2/Card.tsx"],"sourcesContent":["import type { ComponentPropsWithoutRef, FC, ReactElement, ReactNode } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport { Color, Spacing, Typography } from '@persona/design-tokens';\nimport { ChevronDownIcon, MoreIcon } from '@persona/icons';\n\nimport Button, { IconButton } from '#src/components/Button';\nimport DropdownButton from '#src/components/DropdownButton';\nimport DropdownMenu from '#src/components/DropdownMenu';\nimport { LoadingShimmer } from '#src/components/LoadingShimmer';\nimport { HStack } from '#src/components/Stack';\nimport { Heading } from '#src/components/Text';\nimport Tooltip from '#src/components/Tooltip';\nimport { HeadlessAriaButton } from '#src/lib/HeadlessAriaButton';\nimport { semanticColor } from '#src/lib/semanticColor';\nimport { TruncatedText } from '#src/lib/TruncatedText';\nimport { focusStyle } from '#src/mixins/focus';\nimport type { HeadingSize } from '#src/mixins/text';\nimport type { IconAction, MenuAction, TextAction } from '#src/types/Action';\nimport { TransitionDuration } from '#src/variables/transitions';\n\n/**\n * Distance from the top of a card to the underside of an expanded top-section heading: the\n * `Spacing[4]` padding above and below a 24px title line, plus the divider. Sticky content inside\n * the card pins here so the heading's divider stays the only line between them.\n */\nexport const CARD_HEADING_STICKY_OFFSET = `calc(${Spacing[9]} + 1px)`;\n\nconst CardLoadingShimmer = styled(LoadingShimmer)`\n border-radius: ${({ theme }) => theme.card.borderRadius};\n`;\n\nconst StickerContainer = styled.div`\n display: flex;\n max-width: 180px;\n`;\n\ntype AccordionContainerProps = {\n $isTopSection: boolean;\n $expanded: boolean;\n};\nconst AccordionContainer = styled.div<AccordionContainerProps>`\n transition: opacity ${TransitionDuration.Faster};\n position: absolute;\n opacity: 0;\n\n height: 12px;\n width: 12px;\n display: flex;\n align-items: center;\n /* Because of padding in the top section heading we need to offset differently. */\n /* We want a 12px icon to be off-center in 24px padding, 4px on the right and 8px on the left */\n left: ${({ $isTopSection }) => ($isTopSection ? '8px' : '-16px')};\n /* center the icon vertically */\n top: calc(50% - 6px);\n\n border-radius: 1px;\n\n & svg {\n transition: transform ${TransitionDuration.Faster} ease-out;\n transform: rotate(${({ $expanded }) => ($expanded ? '0' : '-90deg')});\n }\n`;\n\nconst HeaderButton = styled(HeadlessAriaButton)`\n min-width: 0;\n flex: 1;\n\n &:hover ~ ${AccordionContainer} {\n opacity: 1;\n }\n\n &:focus-visible ~ ${AccordionContainer} {\n opacity: 1;\n ${focusStyle}\n }\n`;\n\ntype HeadingContainerProps = {\n $isTopSection: boolean;\n $divider: boolean;\n $hasFooter: boolean;\n $isExpanded: boolean;\n};\nconst HeadingContainer = styled(HStack)<HeadingContainerProps>`\n position: relative;\n\n ${({ $isTopSection }) =>\n $isTopSection &&\n css`\n padding: ${Spacing[4]} ${Spacing[5]};\n `}\n ${({ $divider }) =>\n $divider &&\n css`\n border-bottom: 1px solid ${({ theme }) => semanticColor(theme, 'BorderSubtle', Color.BorderDivider)};\n `}\n ${({ $isTopSection, $hasFooter, $isExpanded }) =>\n $isTopSection &&\n !$hasFooter &&\n !$isExpanded &&\n css`\n // We apply 4px of whitespace to the bottom of the card container so that content has a buffer\n // when being scrolled and still appears inside the card. Here we adjust, subtracting\n // 4px from the 16px padding.\n padding-bottom: ${Spacing[3]};\n `}\n`;\n\ntype StyledHeadingProps = {\n $isCollapsible: boolean;\n $isTopSection: boolean;\n size: HeadingSize;\n};\nconst StyledHeading = styled(Heading)<StyledHeadingProps>`\n flex: 1;\n display: flex;\n align-items: center;\n gap: ${Spacing[2]};\n line-height: 24px; // We want an adjusted line-height to hit the target header size.\n overflow: hidden;\n\n ${({ $isCollapsible }) => $isCollapsible && 'cursor: pointer;'}\n ${({ $isTopSection }) =>\n !$isTopSection &&\n css`\n ${Typography.TextLargeBold};\n `}\n`;\n\nconst isIconAction = (action: IconAction | TextAction): action is IconAction => 'icon' in action;\n\nconst ButtonRow: FC<{\n actions: (IconAction | TextAction)[];\n menuActions: MenuAction[];\n}> = ({ actions, menuActions }) => {\n const buttons = actions\n .filter((action) => !action.hidden)\n .map((action, i) => {\n const key = isIconAction(action)\n ? (action.id ?? action.ariaLabel ?? `action-${i}`)\n : (action.id ?? action.label ?? `action-${i}`);\n\n const button = isIconAction(action) ? (\n <IconButton\n id={action.id}\n key={key}\n to={action.to}\n onClick={(e) => {\n e.stopPropagation();\n return action.onClick?.(e);\n }}\n disabled={action.disabled}\n aria-label={action.ariaLabel}\n size='sm'\n >\n {action.icon}\n </IconButton>\n ) : (\n <Button\n id={action.id}\n key={key}\n aria-label={action.ariaLabel}\n to={action.to}\n onClick={(e) => {\n e.stopPropagation();\n return action.onClick?.(e);\n }}\n disabled={action.disabled}\n variant={action.variant ?? 'basic'}\n size='sm'\n width='auto'\n prefixIcon={action.prefixIcon}\n suffixIcon={action.suffixIcon}\n >\n {action.label}\n </Button>\n );\n\n return action.tooltip ? (\n <Tooltip key={key} {...action.tooltipProps} trigger={button}>\n {action.tooltip}\n </Tooltip>\n ) : (\n button\n );\n });\n\n return (\n <HStack>\n {buttons}\n {menuActions.length > 0 && (\n <DropdownButton\n variant='text'\n width='icon'\n size='sm'\n suffixIcon={undefined}\n style={{ justifySelf: 'flex-end' }}\n aria-label='More actions'\n menuProps={{\n portal: true,\n }}\n menuItems={menuActions\n .filter((action) => !action.hidden)\n .map((action) => (\n <DropdownMenu.Item\n id={action.id ?? action.label}\n key={action.id ?? action.label}\n onClick={action.onClick}\n disabled={action.disabled}\n >\n {action.label}\n </DropdownMenu.Item>\n ))}\n >\n <MoreIcon />\n </DropdownButton>\n )}\n </HStack>\n );\n};\n\n/**\n * Private component for rendering the heading of a section, both the primary card heading and\n * section headings.\n */\nexport const SectionHeading: FC<{\n /**\n * Whether this is the top-level section of the card which has different visual treatment.\n */\n isTopSection: boolean;\n\n /**\n * Whether this heading's section has content.\n */\n sectionHasContent: boolean;\n\n /**\n * Whether this heading's section has a footer.\n */\n hasFooter: boolean;\n\n loading: boolean;\n\n /**\n * Title text to render in the heading.\n */\n title: string;\n\n /**\n * Optional sticker to render after the title.\n */\n sticker?: ReactElement;\n\n /**\n * Optional icon to render before the title text.\n *\n * Usage of this icon slot should be avoided if possible to maintain left-text alignement. If\n * using this icon slot for a section heading use it for all sections.\n */\n leftDecorativeIcon?: ReactElement;\n\n /**\n * Optional actions to render in the heading.\n * Only accepts IconButton or Button components with specific prop restrictions.\n */\n actions?: (IconAction | TextAction | undefined)[];\n\n /**\n * Optional actions to render in the heading in a menu.\n */\n menuActions?: (MenuAction | undefined)[];\n\n /**\n * Optional custom content to render in the heading in the button row. Prefer setting `actions` or\n * `menuActions` if possible.\n */\n headerActionsRowContent?: ReactNode;\n\n /**\n * Callback to toggle collapsed state of the section. Omit to disable collapsing.\n */\n toggle?: () => void;\n\n /**\n * Whether the section is currently expanded or collapsed.\n */\n isExpanded: boolean;\n\n /**\n * Optional props to pass to the heading element. Accepts an `as` key to override the\n * rendered heading level. Defaults to `h2` for the top-level card heading and `h3` for\n * section headings so that the document heading hierarchy reflects the visual hierarchy.\n */\n headingProps?: Omit<ComponentPropsWithoutRef<'span'>, 'color'> & {\n as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';\n };\n}> = ({\n isTopSection,\n sectionHasContent,\n hasFooter,\n loading,\n title,\n actions = [],\n menuActions = [],\n headerActionsRowContent,\n sticker,\n leftDecorativeIcon,\n toggle,\n isExpanded,\n headingProps,\n}) => {\n const renderButtonRow = actions.length > 0 || menuActions.length > 0;\n const { as: headingAs, ...restHeadingProps } = headingProps ?? {};\n\n return (\n <HeadingContainer\n $isTopSection={isTopSection}\n $hasFooter={hasFooter}\n $isExpanded={isExpanded}\n $divider={isTopSection && isExpanded && sectionHasContent}\n align='center'\n justify='space-between'\n spacing={Spacing[2]}\n >\n {loading ? (\n <CardLoadingShimmer height='24px' width='200px' />\n ) : (\n <>\n {/* https://github.com/adobe/react-spectrum/issues/7444 */}\n <HeaderButton slot='trigger' isDisabled={!toggle}>\n <StyledHeading\n forwardedAs={headingAs ?? (isTopSection ? 'h2' : 'h3')}\n size='xsm'\n $isCollapsible={!!toggle}\n $isTopSection={isTopSection}\n aria-label={title}\n {...restHeadingProps}\n >\n {leftDecorativeIcon}\n <TruncatedText>{title}</TruncatedText>\n {sticker && <StickerContainer>{sticker}</StickerContainer>}\n </StyledHeading>\n </HeaderButton>\n {headerActionsRowContent}\n {renderButtonRow && (\n <ButtonRow\n actions={actions.filter((action) => action != null)}\n menuActions={menuActions.filter((action) => action != null)}\n />\n )}\n {toggle && (\n <AccordionContainer $isTopSection={isTopSection} $expanded={isExpanded}>\n <ChevronDownIcon />\n </AccordionContainer>\n )}\n </>\n )}\n </HeadingContainer>\n );\n};\n","import type { ComponentProps, FC, ReactNode } from 'react';\nimport { Disclosure, DisclosurePanel } from 'react-aria-components';\nimport styled, { css } from 'styled-components';\n\nimport { Color, Spacing } from '@persona/design-tokens';\n\nimport { SectionHeading } from '#src/components/CardV2/SectionHeading';\nimport { LoadingShimmer } from '#src/components/LoadingShimmer';\nimport { HStack } from '#src/components/Stack';\nimport { Paragraph } from '#src/components/Text';\nimport { intersperse } from '#src/lib/intersperse';\nimport { semanticColor } from '#src/lib/semanticColor';\nimport { Z_INDICES } from '#src/lib/zindex';\n\nconst FooterParagraph = styled(Paragraph)`\n line-height: 16px;\n`;\n\ntype FooterContainerProps = {\n $divider: boolean;\n};\nconst FooterContainer = styled.div<FooterContainerProps>`\n ${({ $divider }) =>\n $divider &&\n css`\n border-top: 1px solid ${({ theme }) => semanticColor(theme, 'BorderSubtle', Color.BorderDivider)};\n `}\n padding: ${Spacing[3]} ${Spacing[5]} ${Spacing[2]};\n`;\n\ntype MaybeStickyContainerProps = {\n $enabled: boolean;\n $bottom?: boolean;\n};\nconst MaybeStickyContainer = styled.div<MaybeStickyContainerProps>`\n ${({ $enabled }) =>\n $enabled &&\n css`\n // We are using sticky positioning here to have consistent scrollbar behavior between\n // different card configurations. Usage of sticky allows us to keep the scroll container at\n // the top of the card DOM structure regardless of whether the heading or footer is sticky.\n //\n // This also afaict helps eliminate the need to carry height values through the card DOM\n // structure to the content container (and possibly needing to adjust heights for heading and footer).\n position: sticky;\n top: 0;\n background-color: ${({ theme }) => semanticColor(theme, 'SurfacePrimary', theme.color.background.primary)};\n z-index: ${Z_INDICES.sticky};\n `}\n\n ${({ $bottom = false }) =>\n $bottom &&\n css`\n top: unset;\n bottom: 0;\n `}\n`;\n\ntype StyledDisclosureProps = {\n $fullHeight: boolean;\n};\nconst StyledDisclosure = styled(Disclosure)<StyledDisclosureProps>`\n display: flex;\n flex-direction: column;\n gap: 0;\n ${({ $fullHeight }) =>\n $fullHeight &&\n css`\n height: 100%;\n `}\n`;\n\ntype StyledDisclosurePanelProps = {\n $isTopSection: boolean;\n};\nconst StyledDisclosurePanel = styled(DisclosurePanel)<StyledDisclosurePanelProps>`\n flex: 1;\n ${({ $isTopSection }) =>\n $isTopSection &&\n css`\n // Safari does not support hidden='until-found' so react-aria uses display: none instead.\n // Since react-aria is using display to hide content we need to not set display ourselves.\n &:not([aria-hidden='true']) {\n display: flex;\n }\n `}\n`;\n\nconst CardLoadingShimmer = styled(LoadingShimmer)`\n border-radius: ${({ theme }) => theme.card.borderRadius};\n`;\n\ntype SectionContentContainerProps = {\n $isTopSection: boolean;\n $hasHeading: boolean;\n $hasFooter: boolean;\n};\nconst SectionContentContainer = styled.div<SectionContentContainerProps>`\n ${({ $isTopSection }) =>\n $isTopSection &&\n css`\n padding: ${Spacing[5]};\n display: flex;\n flex-direction: column;\n gap: ${Spacing[5]};\n flex: 1;\n /* Prevent grid blowout https://css-tricks.com/preventing-a-grid-blowout/ */\n min-width: 0;\n `}\n\n ${({ $isTopSection, $hasHeading }) =>\n !$isTopSection &&\n $hasHeading &&\n css`\n padding-top: ${Spacing[3]};\n `}\n\n ${({ $isTopSection, $hasFooter }) =>\n $isTopSection &&\n !$hasFooter &&\n css`\n // We apply 4px of whitespace to the bottom of the card container so that content has a buffer\n // when being scrolled and still appears inside the card. Here we adjust, subtracting\n // 4px from the 24px padding.\n padding-bottom: 20px;\n `}\n`;\n\n/**\n * Private component for rendering sections of the card, both the primary card section and\n * individual sections.\n */\nexport const Section: FC<{\n children?: ReactNode;\n\n /**\n * Whether this is the top-level section of the card which has different visual treatment.\n */\n isTopSection: boolean;\n\n /**\n * Available props for the section's heading.\n */\n heading?: Pick<\n ComponentProps<typeof SectionHeading>,\n | 'title'\n | 'actions'\n | 'menuActions'\n | 'headerActionsRowContent'\n | 'sticker'\n | 'leftDecorativeIcon'\n | 'headingProps'\n >;\n\n /**\n * Optional footer to render at the bottom of the card. Footer content is rendered as a\n * paragraph with the items separated by a dot.\n */\n footer?: ReactNode[];\n\n /**\n * Optional arbitrary footer content to render as-is.\n */\n footerContent?: ReactNode;\n\n /**\n * Whether the section is collapsible.\n */\n collapsible?: boolean;\n\n /**\n * Whether the section heading and footer are sticky.\n */\n sticky?: boolean;\n\n /**\n * Whether the section is initially collapsed.\n */\n defaultCollapsed?: boolean;\n\n /**\n * If true, the section will be rendered in a loading state.\n */\n loading?: boolean;\n\n /**\n * Set height of the loading state.\n */\n loadingProps?: {\n height?: string;\n };\n\n /**\n * Control display of the empty state.\n */\n empty?: boolean;\n\n /**\n * Props for the empty state.\n */\n emptyProps?: {\n /**\n * Empty state message.\n */\n message?: string;\n };\n\n fullHeight?: boolean;\n}> = ({\n children,\n isTopSection,\n heading,\n footer,\n footerContent,\n loading = false,\n loadingProps,\n empty = false,\n emptyProps,\n defaultCollapsed = false,\n collapsible = false,\n sticky = false,\n fullHeight = false,\n}) => {\n let content: ReactNode;\n if (loading) {\n content = <CardLoadingShimmer height={loadingProps?.height ?? '200px'} width='100%' />;\n } else if (empty) {\n content = <Paragraph>{emptyProps?.message ?? 'No data collected'}</Paragraph>;\n } else {\n content = children;\n }\n\n const hasFooter = !!(footer || footerContent);\n const hasContent = !!content;\n\n // Normally we would have `isDisabled` as well but there's a react-aria-components quirk\n // that sets `hidden` on the disclosure panel if both `defaultExpanded` and `isDisabled` are true.\n // https://github.com/adobe/react-spectrum/issues/7444\n return (\n <StyledDisclosure defaultExpanded={!defaultCollapsed} $fullHeight={fullHeight}>\n {({ isExpanded, state }) => (\n <>\n {heading && (\n <MaybeStickyContainer $enabled={sticky}>\n <SectionHeading\n isTopSection={isTopSection}\n hasFooter={hasFooter}\n sectionHasContent={hasContent}\n loading={loading}\n toggle={collapsible ? state.toggle : undefined}\n isExpanded={isExpanded}\n {...heading}\n />\n </MaybeStickyContainer>\n )}\n {hasContent && (\n <StyledDisclosurePanel $isTopSection={isTopSection}>\n <SectionContentContainer\n $isTopSection={isTopSection}\n $hasHeading={!!heading}\n $hasFooter={hasFooter}\n >\n {content}\n </SectionContentContainer>\n </StyledDisclosurePanel>\n )}\n {hasFooter && (\n <MaybeStickyContainer $enabled={sticky} $bottom>\n <FooterContainer $divider={hasContent}>\n {loading ? (\n <HStack>\n <CardLoadingShimmer height='16px' width='120px' />\n <CardLoadingShimmer height='16px' width='120px' />\n </HStack>\n ) : (\n <>\n {footer && (\n <FooterParagraph size='sm'>\n <HStack spacing={Spacing[1]}>\n {intersperse(\n footer\n .filter((item) => item != null)\n .map((item, i) => <span key={`footer-item-${i}`}>{item}</span>),\n (i) => (\n <span key={i}>•</span>\n ),\n )}\n </HStack>\n </FooterParagraph>\n )}\n {footerContent}\n </>\n )}\n </FooterContainer>\n </MaybeStickyContainer>\n )}\n </>\n )}\n </StyledDisclosure>\n );\n};\n","import { type ComponentProps, createContext, type FC, type ReactNode, useContext } from 'react';\nimport { ErrorBoundary } from 'react-error-boundary';\nimport styled from 'styled-components';\n\nimport { Color } from '@persona/design-tokens';\n\nimport { Section } from '#src/components/CardV2/Section';\nimport { Paragraph } from '#src/components/Text';\nimport ConfigContext from '#src/lib/ConfigContext';\nimport { intersperse } from '#src/lib/intersperse';\nimport { semanticColor } from '#src/lib/semanticColor';\nimport { semanticScrollbar } from '#src/mixins/scrollbar';\n\nconst CardContainer = styled.div`\n border-radius: ${({ theme }) => theme.card.borderRadius};\n background-color: ${({ theme }) => semanticColor(theme, 'SurfacePrimary', theme.color.background.primary)};\n // Height has been tricky here.\n // inherit seems to work well for both grid and flexbox layouts. In a grid we want this\n // container to receive the full cell height, In a flexbox we want this container to flex, maintaining\n // the minimum height for it's content.\n height: inherit;\n overflow-y: auto;\n ${semanticScrollbar}\n\n box-sizing: border-box;\n // Small buffer so that content is not scrolling right on the edge of the card.\n border-bottom: 4px solid ${({ theme }) => semanticColor(theme, 'SurfacePrimary', theme.color.background.primary)};\n`;\n\nconst CardContext = createContext<{ isStacked?: boolean }>({});\n\nconst Divider = styled.hr`\n margin: 0;\n border: none;\n border-top: 1px solid ${({ theme }) => semanticColor(theme, 'BorderSubtle', Color.BorderDivider)};\n`;\n\n/**\n * Renders a card section.\n */\nconst PublicSection: FC<\n Pick<\n ComponentProps<typeof Section>,\n | 'children'\n | 'collapsible'\n | 'defaultCollapsed'\n | 'heading'\n | 'loading'\n | 'loadingProps'\n | 'empty'\n | 'emptyProps'\n >\n> = (props) => {\n return <Section isTopSection={false} {...props} />;\n};\n\n/**\n * Render the card in a \"stacked\" mode. Used for rendering multiple cards on top of each other\n * that appear visually as a single card.\n */\nconst Stacked: FC<{\n children: ReactNode[];\n}> = ({ children }) => {\n return (\n <CardContext.Provider value={{ isStacked: true }}>\n <CardContainer>\n {intersperse(children, (i) => (\n <Divider key={i} />\n ))}\n </CardContainer>\n </CardContext.Provider>\n );\n};\n\nconst DEFAULT_ERROR_MESSAGE = 'Something went wrong loading this card.';\n\n/**\n * Renders a PDS Card.\n *\n * To render sections of the card use `<Card.Section>...</Card.Section>`\n */\nconst Card: FC<\n {\n /**\n * Optional footer to render at the bottom of the card. Footer content is rendered as a\n * paragraph with the items separated by a dot.\n */\n footer?: ReactNode[];\n\n /**\n * Optional arbitrary footer content to render as-is.\n */\n footerContent?: ReactNode;\n\n /**\n * Whether the card heading and footer are sticky.\n */\n sticky?: boolean;\n\n /**\n * Force the card to render in an errored state. Errors bubbling up from children will also\n * render the errored state.\n */\n errored?: boolean;\n\n /**\n * Props for the errored state.\n */\n erroredProps?: {\n /**\n * Message to render in the errored state.\n */\n message?: string;\n /**\n * Callback to handle errors. Note this callback is only called when the error is bubbled up\n * from children, not when `errored` is set to true.\n */\n onError?: (error: Error) => void;\n };\n\n containerProps?: ComponentProps<typeof CardContainer>;\n\n /**\n * Whether the card should render its content with 100% height. This is a bit of a hack for cards\n * that want full control of their content and don't use sections.\n */\n fullHeight?: boolean;\n } & ComponentProps<typeof PublicSection>\n> = ({ children, errored, erroredProps, containerProps, sticky = true, ...sectionProps }) => {\n const { isStacked = false } = useContext(CardContext);\n const { captureException } = useContext(ConfigContext);\n\n const errorFallback = (\n <Section isTopSection {...sectionProps}>\n <Paragraph>{erroredProps?.message ?? DEFAULT_ERROR_MESSAGE}</Paragraph>\n </Section>\n );\n\n const section = (\n <Section isTopSection sticky={sticky} {...sectionProps}>\n {children}\n </Section>\n );\n\n return (\n <ErrorBoundary\n fallback={\n isStacked ? (\n errorFallback\n ) : (\n <CardContainer {...containerProps}>{errorFallback}</CardContainer>\n )\n }\n onError={erroredProps?.onError ?? ((error) => captureException(error))}\n >\n {isStacked ? (\n <>{errored ? <>{errorFallback}</> : <>{section}</>}</>\n ) : (\n <CardContainer {...containerProps}>\n {errored ? <>{errorFallback}</> : <>{section}</>}\n </CardContainer>\n )}\n </ErrorBoundary>\n );\n};\n\nexport default Object.assign(Card, {\n Section: PublicSection,\n Stacked: Stacked,\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,MAAa,6BAA6B,QAAQ,QAAQ,GAAG;AAE7D,MAAMA,uBAAqB,OAAO,eAAe;oBAC7B,EAAE,YAAY,MAAM,KAAK,aAAa;;AAG1D,MAAM,mBAAmB,OAAO,GAAG;;;;AASnC,MAAM,qBAAqB,OAAO,GAA4B;gCACZ;;;;;;;;;;WAUvC,EAAE,oBAAqB,gBAAgB,QAAQ,QAAS;;;;;;;oCAOb;yBAC7B,EAAE,gBAAiB,YAAY,MAAM,SAAU;;;AAIxE,MAAM,eAAe,OAAO,mBAAmB;;;;cAIjC,mBAAmB;;;;sBAIX,mBAAmB;;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A;EAC/D,CAAA;CAGZ,MAAM,UACJ,oBAAC,SAAD;EAAS,cAAA;EAAqB;EAAQ,GAAI;EACvC;EACO,CAAA;AAGZ,QACE,oBAAC,eAAD;EACE,UACE,YACE,gBAEA,oBAAC,eAAD;GAAe,GAAI;aAAiB;GAA8B,CAAA;EAGtE,SAAS,cAAc,aAAa,UAAU,iBAAiB,MAAM;YAEpE,YACC,oBAAA,YAAA,EAAA,UAAG,UAAU,oBAAA,YAAA,EAAA,UAAG,eAAiB,CAAA,GAAG,oBAAA,YAAA,EAAA,UAAG,SAAW,CAAA,EAAI,CAAA,GAEtD,oBAAC,eAAD;GAAe,GAAI;aAChB,UAAU,oBAAA,YAAA,EAAA,UAAG,eAAiB,CAAA,GAAG,oBAAA,YAAA,EAAA,UAAG,SAAW,CAAA;GAClC,CAAA;EAEJ,CAAA;;AAIpB,IAAA,eAAe,OAAO,OAAO,MAAM;CACjC,SAAS;CACA;CACV,CAAC"}
@@ -43,4 +43,4 @@ interface CheckboxProps extends Omit<ComponentPropsWithoutRef<'input'>, 'value'
43
43
  declare const Checkbox: _$react.ForwardRefExoticComponent<CheckboxProps & _$react.RefAttributes<HTMLInputElement>>;
44
44
  //#endregion
45
45
  export { CheckboxProps as n, Checkbox as t };
46
- //# sourceMappingURL=Checkbox-EgYclGfH.d.mts.map
46
+ //# sourceMappingURL=Checkbox-Clt9mCTk.d.mts.map
@@ -1,2 +1,2 @@
1
- import { n as CheckboxProps, t as Checkbox } from "./Checkbox-EgYclGfH.mjs";
1
+ import { n as CheckboxProps, t as Checkbox } from "./Checkbox-Clt9mCTk.mjs";
2
2
  export { Checkbox, Checkbox as default, CheckboxProps };
@@ -1,5 +1,5 @@
1
- import { n as CheckboxProps } from "./Checkbox-EgYclGfH.mjs";
2
- import { o as ImplementsFormField } from "./inputFields-iRg_emVK.mjs";
1
+ import { n as CheckboxProps } from "./Checkbox-Clt9mCTk.mjs";
2
+ import { o as ImplementsFormField } from "./inputFields-BnCdmuBt.mjs";
3
3
  import { ReactElement } from "react";
4
4
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
5
5
  import { AriaCheckboxGroupProps } from "react-aria";
@@ -22,4 +22,4 @@ declare const CheckboxGroupField: ({
22
22
  }: CheckboxGroupFieldProps) => _$react_jsx_runtime0.JSX.Element;
23
23
  //#endregion
24
24
  export { CheckboxGroupField as t };
25
- //# sourceMappingURL=CheckboxGroupField-Cw-1UxIW.d.mts.map
25
+ //# sourceMappingURL=CheckboxGroupField-DnVqlpwi.d.mts.map