@cratis/scene.primereact 3.1.0 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (228) hide show
  1. package/dist/cjs/button/PrimeButton.js.map +1 -1
  2. package/dist/cjs/button/PrimeButtonGroup.js.map +1 -1
  3. package/dist/cjs/button/PrimeSpeedDial.js.map +1 -1
  4. package/dist/cjs/button/PrimeSplitButton.js.map +1 -1
  5. package/dist/cjs/button/SplitButton.js.map +1 -1
  6. package/dist/cjs/data/Column.js.map +1 -1
  7. package/dist/cjs/data/Pagination.js.map +1 -1
  8. package/dist/cjs/data/PrimeColumn.js.map +1 -1
  9. package/dist/cjs/data/PrimeDataTable.js.map +1 -1
  10. package/dist/cjs/data/PrimeDataView.js.map +1 -1
  11. package/dist/cjs/data/PrimeOrderList.js.map +1 -1
  12. package/dist/cjs/data/PrimeOrganizationChart.js.map +1 -1
  13. package/dist/cjs/data/PrimePaginator.js.map +1 -1
  14. package/dist/cjs/data/PrimePickList.js.map +1 -1
  15. package/dist/cjs/data/PrimeTimeline.js.map +1 -1
  16. package/dist/cjs/data/PrimeTree.js.map +1 -1
  17. package/dist/cjs/data/columnDefinitions.js.map +1 -1
  18. package/dist/cjs/data/primeTreeNodes.js.map +1 -1
  19. package/dist/cjs/data/selectOptions.js.map +1 -1
  20. package/dist/cjs/form/PrimeAutoComplete.js.map +1 -1
  21. package/dist/cjs/form/PrimeCalendar.js.map +1 -1
  22. package/dist/cjs/form/PrimeCheckbox.js.map +1 -1
  23. package/dist/cjs/form/PrimeChips.js.map +1 -1
  24. package/dist/cjs/form/PrimeColorPicker.js.map +1 -1
  25. package/dist/cjs/form/PrimeDropdown.js.map +1 -1
  26. package/dist/cjs/form/PrimeFloatLabel.js.map +1 -1
  27. package/dist/cjs/form/PrimeIconField.js.map +1 -1
  28. package/dist/cjs/form/PrimeInputNumber.js.map +1 -1
  29. package/dist/cjs/form/PrimeInputText.js.map +1 -1
  30. package/dist/cjs/form/PrimeInputTextarea.js.map +1 -1
  31. package/dist/cjs/form/PrimeKnob.js.map +1 -1
  32. package/dist/cjs/form/PrimeListBox.js.map +1 -1
  33. package/dist/cjs/form/PrimeMultiSelect.js.map +1 -1
  34. package/dist/cjs/form/PrimePassword.js.map +1 -1
  35. package/dist/cjs/form/PrimeRadioButton.js.map +1 -1
  36. package/dist/cjs/form/PrimeRating.js.map +1 -1
  37. package/dist/cjs/form/PrimeSelectButton.js.map +1 -1
  38. package/dist/cjs/form/PrimeSlider.js.map +1 -1
  39. package/dist/cjs/form/PrimeToggleSwitch.js.map +1 -1
  40. package/dist/cjs/form/PrimeTreeSelect.js.map +1 -1
  41. package/dist/cjs/form/TreeSelect.js.map +1 -1
  42. package/dist/cjs/media/Image.js.map +1 -1
  43. package/dist/cjs/media/PrimeCarousel.js.map +1 -1
  44. package/dist/cjs/media/PrimeGalleria.js.map +1 -1
  45. package/dist/cjs/media/PrimeImage.js.map +1 -1
  46. package/dist/cjs/menu/Dock.js.map +1 -1
  47. package/dist/cjs/menu/DockPosition.js.map +1 -1
  48. package/dist/cjs/menu/MegaMenu.js.map +1 -1
  49. package/dist/cjs/menu/MenuItemAction.js.map +1 -1
  50. package/dist/cjs/menu/MenuItemContent.js.map +1 -1
  51. package/dist/cjs/menu/Menubar.js.map +1 -1
  52. package/dist/cjs/menu/PanelMenu.js.map +1 -1
  53. package/dist/cjs/menu/PrimeBreadcrumb.js.map +1 -1
  54. package/dist/cjs/menu/PrimeContextMenu.js.map +1 -1
  55. package/dist/cjs/menu/PrimeDock.js.map +1 -1
  56. package/dist/cjs/menu/PrimeMegaMenu.js.map +1 -1
  57. package/dist/cjs/menu/PrimeMenu.js.map +1 -1
  58. package/dist/cjs/menu/PrimeMenubar.js.map +1 -1
  59. package/dist/cjs/menu/PrimePanelMenu.js.map +1 -1
  60. package/dist/cjs/menu/PrimeSteps.js.map +1 -1
  61. package/dist/cjs/menu/PrimeTabMenu.js.map +1 -1
  62. package/dist/cjs/menu/PrimeTieredMenu.js.map +1 -1
  63. package/dist/cjs/menu/Steps.js.map +1 -1
  64. package/dist/cjs/menu/TabMenu.js.map +1 -1
  65. package/dist/cjs/menu/TieredMenu.js.map +1 -1
  66. package/dist/cjs/menuItems.js.map +1 -1
  67. package/dist/cjs/messages/PrimeInlineMessage.js.map +1 -1
  68. package/dist/cjs/messages/PrimeMessage.js.map +1 -1
  69. package/dist/cjs/messages/PrimeToast.js.map +1 -1
  70. package/dist/cjs/misc/BlockUI.js.map +1 -1
  71. package/dist/cjs/misc/PrimeAvatar.js.map +1 -1
  72. package/dist/cjs/misc/PrimeBadge.js.map +1 -1
  73. package/dist/cjs/misc/PrimeBlockUI.js.map +1 -1
  74. package/dist/cjs/misc/PrimeChip.js.map +1 -1
  75. package/dist/cjs/misc/PrimeInplace.js.map +1 -1
  76. package/dist/cjs/misc/PrimeProgressBar.js.map +1 -1
  77. package/dist/cjs/misc/PrimeProgressSpinner.js.map +1 -1
  78. package/dist/cjs/misc/PrimeScrollTop.js.map +1 -1
  79. package/dist/cjs/misc/PrimeSkeleton.js.map +1 -1
  80. package/dist/cjs/misc/PrimeTag.js.map +1 -1
  81. package/dist/cjs/misc/PrimeTerminal.js.map +1 -1
  82. package/dist/cjs/misc/ScrollTop.js.map +1 -1
  83. package/dist/cjs/overlay/ConfirmDialog.js.map +1 -1
  84. package/dist/cjs/overlay/PrimeConfirmDialog.js.map +1 -1
  85. package/dist/cjs/overlay/PrimeDialog.js.map +1 -1
  86. package/dist/cjs/overlay/PrimeOverlayPanel.js.map +1 -1
  87. package/dist/cjs/overlay/PrimeSidebar.js.map +1 -1
  88. package/dist/cjs/overlay/PrimeTooltip.js.map +1 -1
  89. package/dist/cjs/panel/PrimeAccordion.js.map +1 -1
  90. package/dist/cjs/panel/PrimeCard.js.map +1 -1
  91. package/dist/cjs/panel/PrimeDivider.js.map +1 -1
  92. package/dist/cjs/panel/PrimeFieldset.js.map +1 -1
  93. package/dist/cjs/panel/PrimePanel.js.map +1 -1
  94. package/dist/cjs/panel/PrimeScrollPanel.js.map +1 -1
  95. package/dist/cjs/panel/PrimeSplitter.js.map +1 -1
  96. package/dist/cjs/panel/PrimeStepper.js.map +1 -1
  97. package/dist/cjs/panel/PrimeTabView.js.map +1 -1
  98. package/dist/cjs/panel/PrimeToolbar.js.map +1 -1
  99. package/dist/cjs/primeReactComponents.js.map +1 -1
  100. package/dist/cjs/primeReactPackage.js.map +1 -1
  101. package/dist/cjs/properties.js.map +1 -1
  102. package/dist/cjs/screen/PrimeAction.js.map +1 -1
  103. package/dist/cjs/screen/PrimeField.js.map +1 -1
  104. package/dist/cjs/screen/PrimeSection.js.map +1 -1
  105. package/dist/cjs/screen/PrimeSummary.js.map +1 -1
  106. package/dist/cjs/screen/PrimeText.js.map +1 -1
  107. package/dist/cjs/screen/PrimeTitle.js.map +1 -1
  108. package/dist/cjs/theme/PrimeReactThemeFamily.js.map +1 -1
  109. package/dist/cjs/theme/primeReactThemePreset.js.map +1 -1
  110. package/dist/cjs/theme/primeReactThemes.js.map +1 -1
  111. package/dist/cjs/theme/themePresets.js.map +1 -1
  112. package/dist/cjs/theme/usePrimeReactTheme.js.map +1 -1
  113. package/dist/cjs/treeNodes.js.map +1 -1
  114. package/dist/esm/button/PrimeButton.js.map +1 -1
  115. package/dist/esm/button/PrimeButtonGroup.js.map +1 -1
  116. package/dist/esm/button/PrimeSpeedDial.js.map +1 -1
  117. package/dist/esm/button/PrimeSplitButton.js.map +1 -1
  118. package/dist/esm/button/SplitButton.js.map +1 -1
  119. package/dist/esm/data/Column.js.map +1 -1
  120. package/dist/esm/data/Pagination.js.map +1 -1
  121. package/dist/esm/data/PrimeColumn.js.map +1 -1
  122. package/dist/esm/data/PrimeDataTable.js.map +1 -1
  123. package/dist/esm/data/PrimeDataView.js.map +1 -1
  124. package/dist/esm/data/PrimeOrderList.js.map +1 -1
  125. package/dist/esm/data/PrimeOrganizationChart.js.map +1 -1
  126. package/dist/esm/data/PrimePaginator.js.map +1 -1
  127. package/dist/esm/data/PrimePickList.js.map +1 -1
  128. package/dist/esm/data/PrimeTimeline.js.map +1 -1
  129. package/dist/esm/data/PrimeTree.js.map +1 -1
  130. package/dist/esm/data/columnDefinitions.js.map +1 -1
  131. package/dist/esm/data/primeTreeNodes.js.map +1 -1
  132. package/dist/esm/data/selectOptions.js.map +1 -1
  133. package/dist/esm/form/PrimeAutoComplete.js.map +1 -1
  134. package/dist/esm/form/PrimeCalendar.js.map +1 -1
  135. package/dist/esm/form/PrimeCheckbox.js.map +1 -1
  136. package/dist/esm/form/PrimeChips.js.map +1 -1
  137. package/dist/esm/form/PrimeColorPicker.js.map +1 -1
  138. package/dist/esm/form/PrimeDropdown.js.map +1 -1
  139. package/dist/esm/form/PrimeFloatLabel.js.map +1 -1
  140. package/dist/esm/form/PrimeIconField.js.map +1 -1
  141. package/dist/esm/form/PrimeInputNumber.js.map +1 -1
  142. package/dist/esm/form/PrimeInputText.js.map +1 -1
  143. package/dist/esm/form/PrimeInputTextarea.js.map +1 -1
  144. package/dist/esm/form/PrimeKnob.js.map +1 -1
  145. package/dist/esm/form/PrimeListBox.js.map +1 -1
  146. package/dist/esm/form/PrimeMultiSelect.js.map +1 -1
  147. package/dist/esm/form/PrimePassword.js.map +1 -1
  148. package/dist/esm/form/PrimeRadioButton.js.map +1 -1
  149. package/dist/esm/form/PrimeRating.js.map +1 -1
  150. package/dist/esm/form/PrimeSelectButton.js.map +1 -1
  151. package/dist/esm/form/PrimeSlider.js.map +1 -1
  152. package/dist/esm/form/PrimeToggleSwitch.js.map +1 -1
  153. package/dist/esm/form/PrimeTreeSelect.js.map +1 -1
  154. package/dist/esm/form/TreeSelect.js.map +1 -1
  155. package/dist/esm/media/Image.js.map +1 -1
  156. package/dist/esm/media/PrimeCarousel.js.map +1 -1
  157. package/dist/esm/media/PrimeGalleria.js.map +1 -1
  158. package/dist/esm/media/PrimeImage.js.map +1 -1
  159. package/dist/esm/menu/Dock.js.map +1 -1
  160. package/dist/esm/menu/DockPosition.js.map +1 -1
  161. package/dist/esm/menu/MegaMenu.js.map +1 -1
  162. package/dist/esm/menu/MenuItemAction.js.map +1 -1
  163. package/dist/esm/menu/MenuItemContent.js.map +1 -1
  164. package/dist/esm/menu/Menubar.js.map +1 -1
  165. package/dist/esm/menu/PanelMenu.js.map +1 -1
  166. package/dist/esm/menu/PrimeBreadcrumb.js.map +1 -1
  167. package/dist/esm/menu/PrimeContextMenu.js.map +1 -1
  168. package/dist/esm/menu/PrimeDock.js.map +1 -1
  169. package/dist/esm/menu/PrimeMegaMenu.js.map +1 -1
  170. package/dist/esm/menu/PrimeMenu.js.map +1 -1
  171. package/dist/esm/menu/PrimeMenubar.js.map +1 -1
  172. package/dist/esm/menu/PrimePanelMenu.js.map +1 -1
  173. package/dist/esm/menu/PrimeSteps.js.map +1 -1
  174. package/dist/esm/menu/PrimeTabMenu.js.map +1 -1
  175. package/dist/esm/menu/PrimeTieredMenu.js.map +1 -1
  176. package/dist/esm/menu/Steps.js.map +1 -1
  177. package/dist/esm/menu/TabMenu.js.map +1 -1
  178. package/dist/esm/menu/TieredMenu.js.map +1 -1
  179. package/dist/esm/menuItems.js.map +1 -1
  180. package/dist/esm/messages/PrimeInlineMessage.js.map +1 -1
  181. package/dist/esm/messages/PrimeMessage.js.map +1 -1
  182. package/dist/esm/messages/PrimeToast.js.map +1 -1
  183. package/dist/esm/misc/BlockUI.js.map +1 -1
  184. package/dist/esm/misc/PrimeAvatar.js.map +1 -1
  185. package/dist/esm/misc/PrimeBadge.js.map +1 -1
  186. package/dist/esm/misc/PrimeBlockUI.js.map +1 -1
  187. package/dist/esm/misc/PrimeChip.js.map +1 -1
  188. package/dist/esm/misc/PrimeInplace.js.map +1 -1
  189. package/dist/esm/misc/PrimeProgressBar.js.map +1 -1
  190. package/dist/esm/misc/PrimeProgressSpinner.js.map +1 -1
  191. package/dist/esm/misc/PrimeScrollTop.js.map +1 -1
  192. package/dist/esm/misc/PrimeSkeleton.js.map +1 -1
  193. package/dist/esm/misc/PrimeTag.js.map +1 -1
  194. package/dist/esm/misc/PrimeTerminal.js.map +1 -1
  195. package/dist/esm/misc/ScrollTop.js.map +1 -1
  196. package/dist/esm/overlay/ConfirmDialog.js.map +1 -1
  197. package/dist/esm/overlay/PrimeConfirmDialog.js.map +1 -1
  198. package/dist/esm/overlay/PrimeDialog.js.map +1 -1
  199. package/dist/esm/overlay/PrimeOverlayPanel.js.map +1 -1
  200. package/dist/esm/overlay/PrimeSidebar.js.map +1 -1
  201. package/dist/esm/overlay/PrimeTooltip.js.map +1 -1
  202. package/dist/esm/panel/PrimeAccordion.js.map +1 -1
  203. package/dist/esm/panel/PrimeCard.js.map +1 -1
  204. package/dist/esm/panel/PrimeDivider.js.map +1 -1
  205. package/dist/esm/panel/PrimeFieldset.js.map +1 -1
  206. package/dist/esm/panel/PrimePanel.js.map +1 -1
  207. package/dist/esm/panel/PrimeScrollPanel.js.map +1 -1
  208. package/dist/esm/panel/PrimeSplitter.js.map +1 -1
  209. package/dist/esm/panel/PrimeStepper.js.map +1 -1
  210. package/dist/esm/panel/PrimeTabView.js.map +1 -1
  211. package/dist/esm/panel/PrimeToolbar.js.map +1 -1
  212. package/dist/esm/primeReactComponents.js.map +1 -1
  213. package/dist/esm/primeReactPackage.js.map +1 -1
  214. package/dist/esm/properties.js.map +1 -1
  215. package/dist/esm/screen/PrimeAction.js.map +1 -1
  216. package/dist/esm/screen/PrimeField.js.map +1 -1
  217. package/dist/esm/screen/PrimeSection.js.map +1 -1
  218. package/dist/esm/screen/PrimeSummary.js.map +1 -1
  219. package/dist/esm/screen/PrimeText.js.map +1 -1
  220. package/dist/esm/screen/PrimeTitle.js.map +1 -1
  221. package/dist/esm/theme/PrimeReactThemeFamily.js.map +1 -1
  222. package/dist/esm/theme/primeReactThemePreset.js.map +1 -1
  223. package/dist/esm/theme/primeReactThemes.js.map +1 -1
  224. package/dist/esm/theme/themePresets.js.map +1 -1
  225. package/dist/esm/theme/usePrimeReactTheme.js.map +1 -1
  226. package/dist/esm/treeNodes.js.map +1 -1
  227. package/dist/esm/tsconfig.tsbuildinfo +1 -1
  228. package/package.json +14 -14
@@ -1 +1 @@
1
- {"version":3,"file":"PrimeAccordion.js","sources":["../../../panel/PrimeAccordion.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { Accordion } from 'primereact/accordion';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { numberProperty, stringArrayProperty } from '../properties';\n\n/**\n * The `PrimeReact:accordion` component - stacked sections of which one is open at a time.\n *\n * Sections are paired by position: the `headers` property gives the titles and the `content` slot gives\n * the bodies. That pairing is a consequence of the Scene model rather than of PrimeReact - a slot arrives\n * as a flat list of already-rendered children with nowhere to hang a per-child title - so a screen puts as\n * many children in the slot as it lists headers.\n *\n * PrimeReact 11 replaced `AccordionTab` with a `Accordion.Panel` / `Header` / `Trigger` / `Content`\n * composition keyed by an explicit `value`, which retires the v10 constraint that sections had to *be*\n * `AccordionTab` elements for the accordion to recognize them. The index doubles as that value, so the\n * `activeIndex` property still means what it always did. It is passed as `defaultValue` rather than\n * `value` because a screen states which section starts open - binding it as the controlled value would\n * pin the accordion to that section and silently swallow every click.\n */\nexport function PrimeAccordion({ element, slots }: RegisteredComponentProps) {\n const headers = stringArrayProperty(element, 'headers');\n const bodies = slots.content ?? [];\n const count = Math.max(headers.length, bodies.length);\n return (\n <Accordion.Root data-scene-id={element.id} defaultValue={String(numberProperty(element, 'activeIndex', 0))}>\n {Array.from({ length: count }, (_, index) => (\n <Accordion.Panel key={index} value={String(index)}>\n <Accordion.Header>\n <Accordion.Trigger>\n {headers[index] ?? `Section ${index + 1}`}\n <Accordion.Indicator match='open'>\n <i className='pi pi-chevron-up' />\n </Accordion.Indicator>\n <Accordion.Indicator match='closed'>\n <i className='pi pi-chevron-down' />\n </Accordion.Indicator>\n </Accordion.Trigger>\n </Accordion.Header>\n <Accordion.Content>{bodies[index]}</Accordion.Content>\n </Accordion.Panel>\n ))}\n </Accordion.Root>\n );\n}\n"],"names":["PrimeAccordion","element","slots","headers","stringArrayProperty","bodies","content","count","Math","max","length","_jsx","Accordion","Root","data-scene-id","id","defaultValue","String","numberProperty","Array","from","_","index","_jsxs","Panel","value","Header","Trigger","Indicator","match","i","className","Content"],"mappings":";;;;;;AAOA;;;;;;;;;;;;;;AAcC,IACM,SAASA,cAAAA,CAAe,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;IACvE,MAAMC,OAAAA,GAAUC,+BAAoBH,OAAAA,EAAS,SAAA,CAAA;AAC7C,IAAA,MAAMI,MAAAA,GAASH,KAAAA,CAAMI,OAAO,IAAI,EAAE;IAClC,MAAMC,KAAAA,GAAQC,KAAKC,GAAG,CAACN,QAAQO,MAAM,EAAEL,OAAOK,MAAM,CAAA;IACpD,qBACIC,cAAA,CAACC,oBAAUC,IAAI,EAAA;AAACC,QAAAA,eAAAA,EAAeb,QAAQc,EAAE;QAAEC,YAAAA,EAAcC,MAAAA,CAAOC,yBAAAA,CAAejB,OAAAA,EAAS,aAAA,EAAe,CAAA,CAAA,CAAA;AAClGkB,QAAAA,QAAAA,EAAAA,KAAAA,CAAMC,IAAI,CAAC;YAAEV,MAAAA,EAAQH;AAAM,SAAA,EAAG,CAACc,CAAAA,EAAGC,KAAAA,iBAC/BC,eAAA,CAACX,oBAAUY,KAAK,EAAA;AAAaC,gBAAAA,KAAAA,EAAOR,MAAAA,CAAOK,KAAAA,CAAAA;;AACvC,kCAAAX,cAAA,CAACC,oBAAUc,MAAM,EAAA;gDACbH,eAAA,CAACX,oBAAUe,OAAO,EAAA;;AACbxB,gCAAAA,OAAO,CAACmB,KAAAA,CAAM,IAAI,CAAC,QAAQ,EAAEA,QAAQ,CAAA,CAAA,CAAG;AACzC,8CAAAX,cAAA,CAACC,oBAAUgB,SAAS,EAAA;oCAACC,KAAAA,EAAM,MAAA;AACvB,oCAAA,QAAA,gBAAAlB,cAAA,CAACmB,GAAAA,EAAAA;wCAAEC,SAAAA,EAAU;;;AAEjB,8CAAApB,cAAA,CAACC,oBAAUgB,SAAS,EAAA;oCAACC,KAAAA,EAAM,QAAA;AACvB,oCAAA,QAAA,gBAAAlB,cAAA,CAACmB,GAAAA,EAAAA;wCAAEC,SAAAA,EAAU;;;;;;AAIzB,kCAAApB,cAAA,CAACC,oBAAUoB,OAAO,EAAA;AAAE3B,wBAAAA,QAAAA,EAAAA,MAAM,CAACiB,KAAAA;;;AAZTA,aAAAA,EAAAA,KAAAA,CAAAA;;AAiBtC;;;;"}
1
+ {"version":3,"file":"PrimeAccordion.js","sources":["../../../panel/PrimeAccordion.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { Accordion } from 'primereact/accordion';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { numberProperty, stringArrayProperty } from '../properties';\n\n/**\n * The `PrimeReact:accordion` component - stacked sections of which one is open at a time.\n *\n * Sections are paired by position: the `headers` property gives the titles and the `content` slot gives\n * the bodies. That pairing is a consequence of the Scene model rather than of PrimeReact - a slot arrives\n * as a flat list of already-rendered children with nowhere to hang a per-child title - so a screen puts as\n * many children in the slot as it lists headers.\n *\n * PrimeReact 11 replaced `AccordionTab` with a `Accordion.Panel` / `Header` / `Trigger` / `Content`\n * composition keyed by an explicit `value`, which retires the v10 constraint that sections had to *be*\n * `AccordionTab` elements for the accordion to recognize them. The index doubles as that value, so the\n * `activeIndex` property still means what it always did. It is passed as `defaultValue` rather than\n * `value` because a screen states which section starts open - binding it as the controlled value would\n * pin the accordion to that section and silently swallow every click.\n */\nexport function PrimeAccordion({ element, slots }: RegisteredComponentProps) {\n const headers = stringArrayProperty(element, 'headers');\n const bodies = slots.content ?? [];\n const count = Math.max(headers.length, bodies.length);\n return (\n <Accordion.Root data-scene-id={element.id} defaultValue={String(numberProperty(element, 'activeIndex', 0))}>\n {Array.from({ length: count }, (_, index) => (\n <Accordion.Panel key={index} value={String(index)}>\n <Accordion.Header>\n <Accordion.Trigger>\n {headers[index] ?? `Section ${index + 1}`}\n <Accordion.Indicator match='open'>\n <i className='pi pi-chevron-up' />\n </Accordion.Indicator>\n <Accordion.Indicator match='closed'>\n <i className='pi pi-chevron-down' />\n </Accordion.Indicator>\n </Accordion.Trigger>\n </Accordion.Header>\n <Accordion.Content>{bodies[index]}</Accordion.Content>\n </Accordion.Panel>\n ))}\n </Accordion.Root>\n );\n}\n"],"names":["PrimeAccordion","element","slots","headers","stringArrayProperty","bodies","content","count","Math","max","length","_jsx","Accordion","Root","data-scene-id","id","defaultValue","String","numberProperty","Array","from","_","index","_jsxs","Panel","value","Header","Trigger","Indicator","match","i","className","Content"],"mappings":";;;;;;AAOA;;;;;;;;;;;;;;AAcC,IACM,SAASA,cAAAA,CAAe,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;IACvE,MAAMC,OAAAA,GAAUC,+BAAoBH,OAAAA,EAAS,SAAA,CAAA;AAC7C,IAAA,MAAMI,MAAAA,GAASH,KAAAA,CAAMI,OAAO,IAAI,EAAE;IAClC,MAAMC,KAAAA,GAAQC,KAAKC,GAAG,CAACN,QAAQO,MAAM,EAAEL,OAAOK,MAAM,CAAA;IACpD,qBACIC,cAAA,CAACC,oBAAUC,IAAI,EAAA;AAACC,QAAAA,eAAAA,EAAeb,QAAQc,EAAE;QAAEC,YAAAA,EAAcC,MAAAA,CAAOC,yBAAAA,CAAejB,OAAAA,EAAS,aAAA,EAAe,CAAA,CAAA,CAAA;AAClGkB,QAAAA,QAAAA,EAAAA,KAAAA,CAAMC,IAAI,CAAC;YAAEV,MAAAA,EAAQH;AAAM,SAAA,EAAG,CAACc,CAAAA,EAAGC,KAAAA,iBAC/BC,eAAA,CAACX,oBAAUY,KAAK,EAAA;AAAaC,gBAAAA,KAAAA,EAAOR,MAAAA,CAAOK,KAAAA,CAAAA;;AACvC,kCAAAX,cAAA,CAACC,oBAAUc,MAAM,EAAA;gDACbH,eAAA,CAACX,oBAAUe,OAAO,EAAA;;AACbxB,gCAAAA,OAAO,CAACmB,KAAAA,CAAM,IAAI,CAAC,QAAQ,EAAEA,QAAQ,CAAA,CAAA,CAAG;AACzC,8CAAAX,cAAA,CAACC,oBAAUgB,SAAS,EAAA;oCAACC,KAAAA,EAAM,MAAA;AACvB,oCAAA,QAAA,gBAAAlB,cAAA,CAACmB,GAAAA,EAAAA;wCAAEC,SAAAA,EAAU;;;AAEjB,8CAAApB,cAAA,CAACC,oBAAUgB,SAAS,EAAA;oCAACC,KAAAA,EAAM,QAAA;AACvB,oCAAA,QAAA,gBAAAlB,cAAA,CAACmB,GAAAA,EAAAA;wCAAEC,SAAAA,EAAU;;;;;;AAIzB,kCAAApB,cAAA,CAACC,oBAAUoB,OAAO,EAAA;AAAE3B,wBAAAA,QAAAA,EAAAA,MAAM,CAACiB,KAAAA;;;AAZTA,aAAAA,EAAAA,KAAAA,CAAAA;;AAiBtC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"PrimeCard.js","sources":["../../../panel/PrimeCard.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { Card } from 'primereact/card';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:card` component.\n *\n * One of the three names this package deliberately shares with `core` (alongside `text` and `button`), so\n * a profile that lists `core` and then `PrimeReact` upgrades every card on every screen to a themed one\n * without a single screen being edited.\n *\n * PrimeReact 11 turned `Card` into a namespace of parts, so the v10 `title` / `subTitle` props no longer\n * exist - the caption is something the adapter assembles. The caption block is omitted entirely when a\n * screen supplies neither, because an empty `Card.Caption` still reserves its spacing and would leave an\n * unexplained gap above the body of an untitled card.\n */\nexport function PrimeCard({ element, slots }: RegisteredComponentProps) {\n const title = stringProperty(element, 'title');\n const subtitle = stringProperty(element, 'subtitle');\n return (\n <Card.Root data-scene-id={element.id}>\n <Card.Body>\n {(title !== undefined || subtitle !== undefined) && (\n <Card.Caption>\n {title !== undefined && <Card.Title>{title}</Card.Title>}\n {subtitle !== undefined && <Card.Subtitle>{subtitle}</Card.Subtitle>}\n </Card.Caption>\n )}\n <Card.Content>{slots.content}</Card.Content>\n </Card.Body>\n </Card.Root>\n );\n}\n"],"names":["PrimeCard","element","slots","title","stringProperty","subtitle","_jsx","Card","Root","data-scene-id","id","_jsxs","Body","undefined","Caption","Title","Subtitle","Content","content"],"mappings":";;;;;;AAOA;;;;;;;;;;;AAWC,IACM,SAASA,SAAAA,CAAU,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;IAClE,MAAMC,KAAAA,GAAQC,0BAAeH,OAAAA,EAAS,OAAA,CAAA;IACtC,MAAMI,QAAAA,GAAWD,0BAAeH,OAAAA,EAAS,UAAA,CAAA;IACzC,qBACIK,cAAA,CAACC,UAAKC,IAAI,EAAA;AAACC,QAAAA,eAAAA,EAAeR,QAAQS,EAAE;gCAChCC,eAAA,CAACJ,UAAKK,IAAI,EAAA;;AACJT,gBAAAA,CAAAA,UAAUU,SAAAA,IAAaR,QAAAA,KAAaQ,SAAQ,mBAC1CF,eAAA,CAACJ,UAAKO,OAAO,EAAA;;wBACRX,KAAAA,KAAUU,SAAAA,kBAAaP,cAAA,CAACC,SAAAA,CAAKQ,KAAK,EAAA;AAAEZ,4BAAAA,QAAAA,EAAAA;;wBACpCE,QAAAA,KAAaQ,SAAAA,kBAAaP,cAAA,CAACC,SAAAA,CAAKS,QAAQ,EAAA;AAAEX,4BAAAA,QAAAA,EAAAA;;;;AAGnD,8BAAAC,cAAA,CAACC,UAAKU,OAAO,EAAA;AAAEf,oBAAAA,QAAAA,EAAAA,KAAAA,CAAMgB;;;;;AAIrC;;;;"}
1
+ {"version":3,"file":"PrimeCard.js","sources":["../../../panel/PrimeCard.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { Card } from 'primereact/card';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:card` component.\n *\n * One of the three names this package deliberately shares with `core` (alongside `text` and `button`), so\n * a profile that lists `core` and then `PrimeReact` upgrades every card on every screen to a themed one\n * without a single screen being edited.\n *\n * PrimeReact 11 turned `Card` into a namespace of parts, so the v10 `title` / `subTitle` props no longer\n * exist - the caption is something the adapter assembles. The caption block is omitted entirely when a\n * screen supplies neither, because an empty `Card.Caption` still reserves its spacing and would leave an\n * unexplained gap above the body of an untitled card.\n */\nexport function PrimeCard({ element, slots }: RegisteredComponentProps) {\n const title = stringProperty(element, 'title');\n const subtitle = stringProperty(element, 'subtitle');\n return (\n <Card.Root data-scene-id={element.id}>\n <Card.Body>\n {(title !== undefined || subtitle !== undefined) && (\n <Card.Caption>\n {title !== undefined && <Card.Title>{title}</Card.Title>}\n {subtitle !== undefined && <Card.Subtitle>{subtitle}</Card.Subtitle>}\n </Card.Caption>\n )}\n <Card.Content>{slots.content}</Card.Content>\n </Card.Body>\n </Card.Root>\n );\n}\n"],"names":["PrimeCard","element","slots","title","stringProperty","subtitle","_jsx","Card","Root","data-scene-id","id","_jsxs","Body","undefined","Caption","Title","Subtitle","Content","content"],"mappings":";;;;;;AAOA;;;;;;;;;;;AAWC,IACM,SAASA,SAAAA,CAAU,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;IAClE,MAAMC,KAAAA,GAAQC,0BAAeH,OAAAA,EAAS,OAAA,CAAA;IACtC,MAAMI,QAAAA,GAAWD,0BAAeH,OAAAA,EAAS,UAAA,CAAA;IACzC,qBACIK,cAAA,CAACC,UAAKC,IAAI,EAAA;AAACC,QAAAA,eAAAA,EAAeR,QAAQS,EAAE;gCAChCC,eAAA,CAACJ,UAAKK,IAAI,EAAA;;AACJT,gBAAAA,CAAAA,UAAUU,SAAAA,IAAaR,QAAAA,KAAaQ,SAAQ,mBAC1CF,eAAA,CAACJ,UAAKO,OAAO,EAAA;;wBACRX,KAAAA,KAAUU,SAAAA,kBAAaP,cAAA,CAACC,SAAAA,CAAKQ,KAAK,EAAA;AAAEZ,4BAAAA,QAAAA,EAAAA;;wBACpCE,QAAAA,KAAaQ,SAAAA,kBAAaP,cAAA,CAACC,SAAAA,CAAKS,QAAQ,EAAA;AAAEX,4BAAAA,QAAAA,EAAAA;;;;AAGnD,8BAAAC,cAAA,CAACC,UAAKU,OAAO,EAAA;AAAEf,oBAAAA,QAAAA,EAAAA,KAAAA,CAAMgB;;;;;AAIrC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"PrimeDivider.js","sources":["../../../panel/PrimeDivider.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { Divider } from 'primereact/divider';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:divider` component - a rule separating content, optionally with a caption in it.\n *\n * The last component in this family PrimeReact 11 left monolithic, so the port is only a prop rename:\n * v10's `layout` is v11's `orientation`. The Scene property keeps the name `layout`, because a screen's\n * property vocabulary is this package's contract with authored content and renaming it would break every\n * screen that set it to buy nothing.\n */\nexport function PrimeDivider({ element }: RegisteredComponentProps) {\n const label = stringProperty(element, 'label');\n return (\n <Divider\n data-scene-id={element.id}\n orientation={stringProperty(element, 'layout', 'horizontal') as 'horizontal' | 'vertical'}\n align={stringProperty(element, 'align') as 'center' | 'left' | 'right' | 'top' | 'bottom' | undefined}\n type={stringProperty(element, 'type', 'solid') as 'solid' | 'dashed' | 'dotted'}>\n {label}\n </Divider>\n );\n}\n"],"names":["PrimeDivider","element","label","stringProperty","_jsx","Divider","data-scene-id","id","orientation","align","type"],"mappings":";;;;;;AAOA;;;;;;;AAOC,IACM,SAASA,YAAAA,CAAa,EAAEC,OAAO,EAA4B,EAAA;IAC9D,MAAMC,KAAAA,GAAQC,0BAAeF,OAAAA,EAAS,OAAA,CAAA;AACtC,IAAA,qBACIG,cAAA,CAACC,eAAAA,EAAAA;AACGC,QAAAA,eAAAA,EAAeL,QAAQM,EAAE;QACzBC,WAAAA,EAAaL,yBAAAA,CAAeF,SAAS,QAAA,EAAU,YAAA,CAAA;AAC/CQ,QAAAA,KAAAA,EAAON,0BAAeF,OAAAA,EAAS,OAAA,CAAA;QAC/BS,IAAAA,EAAMP,yBAAAA,CAAeF,SAAS,MAAA,EAAQ,OAAA,CAAA;AACrCC,QAAAA,QAAAA,EAAAA;;AAGb;;;;"}
1
+ {"version":3,"file":"PrimeDivider.js","sources":["../../../panel/PrimeDivider.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { Divider } from 'primereact/divider';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:divider` component - a rule separating content, optionally with a caption in it.\n *\n * The last component in this family PrimeReact 11 left monolithic, so the port is only a prop rename:\n * v10's `layout` is v11's `orientation`. The Scene property keeps the name `layout`, because a screen's\n * property vocabulary is this package's contract with authored content and renaming it would break every\n * screen that set it to buy nothing.\n */\nexport function PrimeDivider({ element }: RegisteredComponentProps) {\n const label = stringProperty(element, 'label');\n return (\n <Divider\n data-scene-id={element.id}\n orientation={stringProperty(element, 'layout', 'horizontal') as 'horizontal' | 'vertical'}\n align={stringProperty(element, 'align') as 'center' | 'left' | 'right' | 'top' | 'bottom' | undefined}\n type={stringProperty(element, 'type', 'solid') as 'solid' | 'dashed' | 'dotted'}>\n {label}\n </Divider>\n );\n}\n"],"names":["PrimeDivider","element","label","stringProperty","_jsx","Divider","data-scene-id","id","orientation","align","type"],"mappings":";;;;;;AAOA;;;;;;;AAOC,IACM,SAASA,YAAAA,CAAa,EAAEC,OAAO,EAA4B,EAAA;IAC9D,MAAMC,KAAAA,GAAQC,0BAAeF,OAAAA,EAAS,OAAA,CAAA;AACtC,IAAA,qBACIG,cAAA,CAACC,eAAAA,EAAAA;AACGC,QAAAA,eAAAA,EAAeL,QAAQM,EAAE;QACzBC,WAAAA,EAAaL,yBAAAA,CAAeF,SAAS,QAAA,EAAU,YAAA,CAAA;AAC/CQ,QAAAA,KAAAA,EAAON,0BAAeF,OAAAA,EAAS,OAAA,CAAA;QAC/BS,IAAAA,EAAMP,yBAAAA,CAAeF,SAAS,MAAA,EAAQ,OAAA,CAAA;AACrCC,QAAAA,QAAAA,EAAAA;;AAGb;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"PrimeFieldset.js","sources":["../../../panel/PrimeFieldset.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { Fieldset } from 'primereact/fieldset';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { booleanProperty, stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:fieldset` component - a container whose legend sits on its border.\n *\n * PrimeReact 11 dropped the `toggleable` prop entirely: a compositional `Fieldset` is collapsible exactly\n * when its legend contains a `Fieldset.Trigger`, and inert when it does not. The Scene `toggleable`\n * property therefore selects between two legend shapes rather than setting a flag. Both are rendered as a\n * real `<legend>` either way, so the non-toggleable case does not pay for a button it never uses - which\n * also keeps a static fieldset out of the tab order.\n */\nexport function PrimeFieldset({ element, slots }: RegisteredComponentProps) {\n const legend = stringProperty(element, 'legend');\n return (\n <Fieldset.Root data-scene-id={element.id} defaultOpen>\n <Fieldset.Legend>\n {booleanProperty(element, 'toggleable', false) ? (\n <Fieldset.Trigger>\n <Fieldset.Title>{legend}</Fieldset.Title>\n <Fieldset.Indicator match='open'>\n <i className='pi pi-chevron-up' />\n </Fieldset.Indicator>\n <Fieldset.Indicator match='closed'>\n <i className='pi pi-chevron-down' />\n </Fieldset.Indicator>\n </Fieldset.Trigger>\n ) : (\n <Fieldset.Title>{legend}</Fieldset.Title>\n )}\n </Fieldset.Legend>\n <Fieldset.Content>{slots.content}</Fieldset.Content>\n </Fieldset.Root>\n );\n}\n"],"names":["PrimeFieldset","element","slots","legend","stringProperty","_jsxs","Fieldset","Root","data-scene-id","id","defaultOpen","_jsx","Legend","booleanProperty","Trigger","Title","Indicator","match","i","className","Content","content"],"mappings":";;;;;;AAOA;;;;;;;;AAQC,IACM,SAASA,aAAAA,CAAc,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;IACtE,MAAMC,MAAAA,GAASC,0BAAeH,OAAAA,EAAS,QAAA,CAAA;IACvC,qBACII,eAAA,CAACC,kBAASC,IAAI,EAAA;AAACC,QAAAA,eAAAA,EAAeP,QAAQQ,EAAE;QAAEC,WAAW,EAAA,IAAA;;AACjD,0BAAAC,cAAA,CAACL,kBAASM,MAAM,EAAA;AACXC,gBAAAA,QAAAA,EAAAA,0BAAAA,CAAgBZ,OAAAA,EAAS,YAAA,EAAc,KAAA,CAAA,iBACpCI,eAAA,CAACC,kBAASQ,OAAO,EAAA;;AACb,sCAAAH,cAAA,CAACL,kBAASS,KAAK,EAAA;AAAEZ,4BAAAA,QAAAA,EAAAA;;AACjB,sCAAAQ,cAAA,CAACL,kBAASU,SAAS,EAAA;4BAACC,KAAAA,EAAM,MAAA;AACtB,4BAAA,QAAA,gBAAAN,cAAA,CAACO,GAAAA,EAAAA;gCAAEC,SAAAA,EAAU;;;AAEjB,sCAAAR,cAAA,CAACL,kBAASU,SAAS,EAAA;4BAACC,KAAAA,EAAM,QAAA;AACtB,4BAAA,QAAA,gBAAAN,cAAA,CAACO,GAAAA,EAAAA;gCAAEC,SAAAA,EAAU;;;;AAIrB,iBAAA,CAAA,iBAAAR,cAAA,CAACL,kBAASS,KAAK,EAAA;AAAEZ,oBAAAA,QAAAA,EAAAA;;;AAGzB,0BAAAQ,cAAA,CAACL,kBAASc,OAAO,EAAA;AAAElB,gBAAAA,QAAAA,EAAAA,KAAAA,CAAMmB;;;;AAGrC;;;;"}
1
+ {"version":3,"file":"PrimeFieldset.js","sources":["../../../panel/PrimeFieldset.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { Fieldset } from 'primereact/fieldset';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { booleanProperty, stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:fieldset` component - a container whose legend sits on its border.\n *\n * PrimeReact 11 dropped the `toggleable` prop entirely: a compositional `Fieldset` is collapsible exactly\n * when its legend contains a `Fieldset.Trigger`, and inert when it does not. The Scene `toggleable`\n * property therefore selects between two legend shapes rather than setting a flag. Both are rendered as a\n * real `<legend>` either way, so the non-toggleable case does not pay for a button it never uses - which\n * also keeps a static fieldset out of the tab order.\n */\nexport function PrimeFieldset({ element, slots }: RegisteredComponentProps) {\n const legend = stringProperty(element, 'legend');\n return (\n <Fieldset.Root data-scene-id={element.id} defaultOpen>\n <Fieldset.Legend>\n {booleanProperty(element, 'toggleable', false) ? (\n <Fieldset.Trigger>\n <Fieldset.Title>{legend}</Fieldset.Title>\n <Fieldset.Indicator match='open'>\n <i className='pi pi-chevron-up' />\n </Fieldset.Indicator>\n <Fieldset.Indicator match='closed'>\n <i className='pi pi-chevron-down' />\n </Fieldset.Indicator>\n </Fieldset.Trigger>\n ) : (\n <Fieldset.Title>{legend}</Fieldset.Title>\n )}\n </Fieldset.Legend>\n <Fieldset.Content>{slots.content}</Fieldset.Content>\n </Fieldset.Root>\n );\n}\n"],"names":["PrimeFieldset","element","slots","legend","stringProperty","_jsxs","Fieldset","Root","data-scene-id","id","defaultOpen","_jsx","Legend","booleanProperty","Trigger","Title","Indicator","match","i","className","Content","content"],"mappings":";;;;;;AAOA;;;;;;;;AAQC,IACM,SAASA,aAAAA,CAAc,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;IACtE,MAAMC,MAAAA,GAASC,0BAAeH,OAAAA,EAAS,QAAA,CAAA;IACvC,qBACII,eAAA,CAACC,kBAASC,IAAI,EAAA;AAACC,QAAAA,eAAAA,EAAeP,QAAQQ,EAAE;QAAEC,WAAW,EAAA,IAAA;;AACjD,0BAAAC,cAAA,CAACL,kBAASM,MAAM,EAAA;AACXC,gBAAAA,QAAAA,EAAAA,0BAAAA,CAAgBZ,OAAAA,EAAS,YAAA,EAAc,KAAA,CAAA,iBACpCI,eAAA,CAACC,kBAASQ,OAAO,EAAA;;AACb,sCAAAH,cAAA,CAACL,kBAASS,KAAK,EAAA;AAAEZ,4BAAAA,QAAAA,EAAAA;;AACjB,sCAAAQ,cAAA,CAACL,kBAASU,SAAS,EAAA;4BAACC,KAAAA,EAAM,MAAA;AACtB,4BAAA,QAAA,gBAAAN,cAAA,CAACO,GAAAA,EAAAA;gCAAEC,SAAAA,EAAU;;;AAEjB,sCAAAR,cAAA,CAACL,kBAASU,SAAS,EAAA;4BAACC,KAAAA,EAAM,QAAA;AACtB,4BAAA,QAAA,gBAAAN,cAAA,CAACO,GAAAA,EAAAA;gCAAEC,SAAAA,EAAU;;;;AAIrB,iBAAA,CAAA,iBAAAR,cAAA,CAACL,kBAASS,KAAK,EAAA;AAAEZ,oBAAAA,QAAAA,EAAAA;;;AAGzB,0BAAAQ,cAAA,CAACL,kBAASc,OAAO,EAAA;AAAElB,gBAAAA,QAAAA,EAAAA,KAAAA,CAAMmB;;;;AAGrC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"PrimePanel.js","sources":["../../../panel/PrimePanel.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { Panel } from 'primereact/panel';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { booleanProperty, stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:panel` component - a titled container that can optionally collapse.\n *\n * PrimeReact 11 made `Panel` compositional, which moves one decision into the adapter that v10 made\n * internally: the collapse affordance exists only if something renders a `Panel.Trigger`. Rendering one\n * unconditionally would put a chevron on every panel, including the ones a screen declared as fixed, so\n * the trigger is tied to the same `toggleable` property that enables the behavior.\n *\n * The `collapsed` property is expressed as `defaultOpen` rather than a controlled `open`, because a\n * screen states the *initial* state; holding the panel open or shut against the user's clicks is not what\n * `collapsed: true` means.\n */\nexport function PrimePanel({ element, slots }: RegisteredComponentProps) {\n const toggleable = booleanProperty(element, 'toggleable', false);\n return (\n <Panel.Root data-scene-id={element.id} toggleable={toggleable} defaultOpen={!booleanProperty(element, 'collapsed', false)}>\n <Panel.Header>\n <Panel.Title>{stringProperty(element, 'header')}</Panel.Title>\n {toggleable && (\n <Panel.Trigger>\n <Panel.Indicator match='open'>\n <i className='pi pi-chevron-up' />\n </Panel.Indicator>\n <Panel.Indicator match='closed'>\n <i className='pi pi-chevron-down' />\n </Panel.Indicator>\n </Panel.Trigger>\n )}\n </Panel.Header>\n <Panel.Content>{slots.content}</Panel.Content>\n </Panel.Root>\n );\n}\n"],"names":["PrimePanel","element","slots","toggleable","booleanProperty","_jsxs","Panel","Root","data-scene-id","id","defaultOpen","Header","_jsx","Title","stringProperty","Trigger","Indicator","match","i","className","Content","content"],"mappings":";;;;;;AAOA;;;;;;;;;;;AAWC,IACM,SAASA,UAAAA,CAAW,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;IACnE,MAAMC,UAAAA,GAAaC,0BAAAA,CAAgBH,OAAAA,EAAS,YAAA,EAAc,KAAA,CAAA;IAC1D,qBACII,eAAA,CAACC,YAAMC,IAAI,EAAA;AAACC,QAAAA,eAAAA,EAAeP,QAAQQ,EAAE;QAAEN,UAAAA,EAAYA,UAAAA;QAAYO,WAAAA,EAAa,CAACN,0BAAAA,CAAgBH,OAAAA,EAAS,WAAA,EAAa,KAAA,CAAA;;AAC/G,0BAAAI,eAAA,CAACC,YAAMK,MAAM,EAAA;;AACT,kCAAAC,cAAA,CAACN,YAAMO,KAAK,EAAA;AAAEC,wBAAAA,QAAAA,EAAAA,yBAAAA,CAAeb,OAAAA,EAAS,QAAA;;oBACrCE,UAAAA,kBACGE,eAAA,CAACC,YAAMS,OAAO,EAAA;;AACV,0CAAAH,cAAA,CAACN,YAAMU,SAAS,EAAA;gCAACC,KAAAA,EAAM,MAAA;AACnB,gCAAA,QAAA,gBAAAL,cAAA,CAACM,GAAAA,EAAAA;oCAAEC,SAAAA,EAAU;;;AAEjB,0CAAAP,cAAA,CAACN,YAAMU,SAAS,EAAA;gCAACC,KAAAA,EAAM,QAAA;AACnB,gCAAA,QAAA,gBAAAL,cAAA,CAACM,GAAAA,EAAAA;oCAAEC,SAAAA,EAAU;;;;;;;AAK7B,0BAAAP,cAAA,CAACN,YAAMc,OAAO,EAAA;AAAElB,gBAAAA,QAAAA,EAAAA,KAAAA,CAAMmB;;;;AAGlC;;;;"}
1
+ {"version":3,"file":"PrimePanel.js","sources":["../../../panel/PrimePanel.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { Panel } from 'primereact/panel';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { booleanProperty, stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:panel` component - a titled container that can optionally collapse.\n *\n * PrimeReact 11 made `Panel` compositional, which moves one decision into the adapter that v10 made\n * internally: the collapse affordance exists only if something renders a `Panel.Trigger`. Rendering one\n * unconditionally would put a chevron on every panel, including the ones a screen declared as fixed, so\n * the trigger is tied to the same `toggleable` property that enables the behavior.\n *\n * The `collapsed` property is expressed as `defaultOpen` rather than a controlled `open`, because a\n * screen states the *initial* state; holding the panel open or shut against the user's clicks is not what\n * `collapsed: true` means.\n */\nexport function PrimePanel({ element, slots }: RegisteredComponentProps) {\n const toggleable = booleanProperty(element, 'toggleable', false);\n return (\n <Panel.Root data-scene-id={element.id} toggleable={toggleable} defaultOpen={!booleanProperty(element, 'collapsed', false)}>\n <Panel.Header>\n <Panel.Title>{stringProperty(element, 'header')}</Panel.Title>\n {toggleable && (\n <Panel.Trigger>\n <Panel.Indicator match='open'>\n <i className='pi pi-chevron-up' />\n </Panel.Indicator>\n <Panel.Indicator match='closed'>\n <i className='pi pi-chevron-down' />\n </Panel.Indicator>\n </Panel.Trigger>\n )}\n </Panel.Header>\n <Panel.Content>{slots.content}</Panel.Content>\n </Panel.Root>\n );\n}\n"],"names":["PrimePanel","element","slots","toggleable","booleanProperty","_jsxs","Panel","Root","data-scene-id","id","defaultOpen","Header","_jsx","Title","stringProperty","Trigger","Indicator","match","i","className","Content","content"],"mappings":";;;;;;AAOA;;;;;;;;;;;AAWC,IACM,SAASA,UAAAA,CAAW,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;IACnE,MAAMC,UAAAA,GAAaC,0BAAAA,CAAgBH,OAAAA,EAAS,YAAA,EAAc,KAAA,CAAA;IAC1D,qBACII,eAAA,CAACC,YAAMC,IAAI,EAAA;AAACC,QAAAA,eAAAA,EAAeP,QAAQQ,EAAE;QAAEN,UAAAA,EAAYA,UAAAA;QAAYO,WAAAA,EAAa,CAACN,0BAAAA,CAAgBH,OAAAA,EAAS,WAAA,EAAa,KAAA,CAAA;;AAC/G,0BAAAI,eAAA,CAACC,YAAMK,MAAM,EAAA;;AACT,kCAAAC,cAAA,CAACN,YAAMO,KAAK,EAAA;AAAEC,wBAAAA,QAAAA,EAAAA,yBAAAA,CAAeb,OAAAA,EAAS,QAAA;;oBACrCE,UAAAA,kBACGE,eAAA,CAACC,YAAMS,OAAO,EAAA;;AACV,0CAAAH,cAAA,CAACN,YAAMU,SAAS,EAAA;gCAACC,KAAAA,EAAM,MAAA;AACnB,gCAAA,QAAA,gBAAAL,cAAA,CAACM,GAAAA,EAAAA;oCAAEC,SAAAA,EAAU;;;AAEjB,0CAAAP,cAAA,CAACN,YAAMU,SAAS,EAAA;gCAACC,KAAAA,EAAM,QAAA;AACnB,gCAAA,QAAA,gBAAAL,cAAA,CAACM,GAAAA,EAAAA;oCAAEC,SAAAA,EAAU;;;;;;;AAK7B,0BAAAP,cAAA,CAACN,YAAMc,OAAO,EAAA;AAAElB,gBAAAA,QAAAA,EAAAA,KAAAA,CAAMmB;;;;AAGlC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"PrimeScrollPanel.js","sources":["../../../panel/PrimeScrollPanel.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { ScrollArea } from 'primereact/scrollarea';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { numberProperty } from '../properties';\n\n/**\n * The `PrimeReact:scrollPanel` component - a bounded region with themed scrollbars.\n *\n * A height is always applied: a scroll area with no bound grows to fit its content and never scrolls,\n * which looks like the component doing nothing at all.\n *\n * PrimeReact 11 renamed `ScrollPanel` to `ScrollArea` and split it into parts. The viewport, the content\n * wrapper and the scrollbar are all rendered here rather than by the component, because v11 renders no\n * part it was not given - a `ScrollArea.Root` on its own clips nothing and shows no bar. Only the\n * vertical scrollbar is composed in, matching the fixed-height-and-full-width shape this adapter imposes;\n * the part hides itself when the content happens to fit, so it costs nothing when it is not needed. The\n * abstract Scene name stays `scrollPanel` so existing screens keep resolving.\n */\nexport function PrimeScrollPanel({ element, slots }: RegisteredComponentProps) {\n return (\n <ScrollArea.Root data-scene-id={element.id} style={{ height: `${numberProperty(element, 'height', 200)}px`, width: '100%' }}>\n <ScrollArea.Viewport>\n <ScrollArea.Content>{slots.content}</ScrollArea.Content>\n </ScrollArea.Viewport>\n <ScrollArea.Scrollbar orientation='vertical'>\n <ScrollArea.Handle />\n </ScrollArea.Scrollbar>\n </ScrollArea.Root>\n );\n}\n"],"names":["PrimeScrollPanel","element","slots","_jsxs","ScrollArea","Root","data-scene-id","id","style","height","numberProperty","width","_jsx","Viewport","Content","content","Scrollbar","orientation","Handle"],"mappings":";;;;;;AAOA;;;;;;;;;;;;AAYC,IACM,SAASA,gBAAAA,CAAiB,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;IACzE,qBACIC,eAAA,CAACC,sBAAWC,IAAI,EAAA;AAACC,QAAAA,eAAAA,EAAeL,QAAQM,EAAE;QAAEC,KAAAA,EAAO;AAAEC,YAAAA,MAAAA,EAAQ,GAAGC,yBAAAA,CAAeT,OAAAA,EAAS,QAAA,EAAU,GAAA,CAAA,CAAK,EAAE,CAAC;YAAEU,KAAAA,EAAO;AAAO,SAAA;;AACtH,0BAAAC,cAAA,CAACR,sBAAWS,QAAQ,EAAA;wCAChBD,cAAA,CAACR,sBAAWU,OAAO,EAAA;AAAEZ,oBAAAA,QAAAA,EAAAA,KAAAA,CAAMa;;;AAE/B,0BAAAH,cAAA,CAACR,sBAAWY,SAAS,EAAA;gBAACC,WAAAA,EAAY,UAAA;wCAC9BL,cAAA,CAACR,sBAAWc,MAAM,EAAA,EAAA;;;;AAIlC;;;;"}
1
+ {"version":3,"file":"PrimeScrollPanel.js","sources":["../../../panel/PrimeScrollPanel.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { ScrollArea } from 'primereact/scrollarea';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { numberProperty } from '../properties';\n\n/**\n * The `PrimeReact:scrollPanel` component - a bounded region with themed scrollbars.\n *\n * A height is always applied: a scroll area with no bound grows to fit its content and never scrolls,\n * which looks like the component doing nothing at all.\n *\n * PrimeReact 11 renamed `ScrollPanel` to `ScrollArea` and split it into parts. The viewport, the content\n * wrapper and the scrollbar are all rendered here rather than by the component, because v11 renders no\n * part it was not given - a `ScrollArea.Root` on its own clips nothing and shows no bar. Only the\n * vertical scrollbar is composed in, matching the fixed-height-and-full-width shape this adapter imposes;\n * the part hides itself when the content happens to fit, so it costs nothing when it is not needed. The\n * abstract Scene name stays `scrollPanel` so existing screens keep resolving.\n */\nexport function PrimeScrollPanel({ element, slots }: RegisteredComponentProps) {\n return (\n <ScrollArea.Root data-scene-id={element.id} style={{ height: `${numberProperty(element, 'height', 200)}px`, width: '100%' }}>\n <ScrollArea.Viewport>\n <ScrollArea.Content>{slots.content}</ScrollArea.Content>\n </ScrollArea.Viewport>\n <ScrollArea.Scrollbar orientation='vertical'>\n <ScrollArea.Handle />\n </ScrollArea.Scrollbar>\n </ScrollArea.Root>\n );\n}\n"],"names":["PrimeScrollPanel","element","slots","_jsxs","ScrollArea","Root","data-scene-id","id","style","height","numberProperty","width","_jsx","Viewport","Content","content","Scrollbar","orientation","Handle"],"mappings":";;;;;;AAOA;;;;;;;;;;;;AAYC,IACM,SAASA,gBAAAA,CAAiB,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;IACzE,qBACIC,eAAA,CAACC,sBAAWC,IAAI,EAAA;AAACC,QAAAA,eAAAA,EAAeL,QAAQM,EAAE;QAAEC,KAAAA,EAAO;AAAEC,YAAAA,MAAAA,EAAQ,GAAGC,yBAAAA,CAAeT,OAAAA,EAAS,QAAA,EAAU,GAAA,CAAA,CAAK,EAAE,CAAC;YAAEU,KAAAA,EAAO;AAAO,SAAA;;AACtH,0BAAAC,cAAA,CAACR,sBAAWS,QAAQ,EAAA;wCAChBD,cAAA,CAACR,sBAAWU,OAAO,EAAA;AAAEZ,oBAAAA,QAAAA,EAAAA,KAAAA,CAAMa;;;AAE/B,0BAAAH,cAAA,CAACR,sBAAWY,SAAS,EAAA;gBAACC,WAAAA,EAAY,UAAA;wCAC9BL,cAAA,CAACR,sBAAWc,MAAM,EAAA,EAAA;;;;AAIlC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"PrimeSplitter.js","sources":["../../../panel/PrimeSplitter.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { Fragment } from 'react';\nimport { Splitter } from 'primereact/splitter';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { numberProperty, stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:splitter` component - regions separated by a bar the user can drag.\n *\n * One panel per child in the `content` slot, sized evenly. Splitter needs an explicit height because it\n * lays its panels out absolutely; without one the whole component collapses.\n *\n * PrimeReact 11 moved sizing off the individual panel and onto the root: a v10 `SplitterPanel size={50}`\n * is now one entry in the root's `defaultSizes` array, so the even split is computed once up front rather\n * than repeated per panel. It also stopped inserting the drag bars for you - `Splitter.Gutter` is a part\n * the composition supplies between panels, and a splitter rendered without them is simply not resizable.\n * `defaultSizes` is used rather than `sizes` so the component owns its sizes after the first drag; the\n * controlled form would snap the panels back to the even split on every render.\n *\n * The Scene property keeps the name `layout` even though v11 calls the prop `orientation`, because a\n * screen's property vocabulary is this package's contract with authored content.\n */\nexport function PrimeSplitter({ element, slots }: RegisteredComponentProps) {\n const panels = slots.content ?? [];\n const count = Math.max(panels.length, 2);\n return (\n <Splitter.Root\n data-scene-id={element.id}\n orientation={stringProperty(element, 'layout', 'horizontal') as 'horizontal' | 'vertical'}\n defaultSizes={Array.from({ length: count }, () => 100 / count)}\n style={{ height: `${numberProperty(element, 'height', 200)}px` }}>\n {Array.from({ length: count }, (_, index) => (\n <Fragment key={index}>\n {index > 0 && (\n <Splitter.Gutter>\n <Splitter.Handle />\n </Splitter.Gutter>\n )}\n <Splitter.Panel className='flex items-center justify-center'>{panels[index]}</Splitter.Panel>\n </Fragment>\n ))}\n </Splitter.Root>\n );\n}\n"],"names":["PrimeSplitter","element","slots","panels","content","count","Math","max","length","_jsx","Splitter","Root","data-scene-id","id","orientation","stringProperty","defaultSizes","Array","from","style","height","numberProperty","_","index","_jsxs","Fragment","Gutter","Handle","Panel","className"],"mappings":";;;;;;;AAQA;;;;;;;;;;;;;;;AAeC,IACM,SAASA,aAAAA,CAAc,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;AACtE,IAAA,MAAMC,MAAAA,GAASD,KAAAA,CAAME,OAAO,IAAI,EAAE;AAClC,IAAA,MAAMC,QAAQC,IAAAA,CAAKC,GAAG,CAACJ,MAAAA,CAAOK,MAAM,EAAE,CAAA,CAAA;IACtC,qBACIC,cAAA,CAACC,kBAASC,IAAI,EAAA;AACVC,QAAAA,eAAAA,EAAeX,QAAQY,EAAE;QACzBC,WAAAA,EAAaC,yBAAAA,CAAed,SAAS,QAAA,EAAU,YAAA,CAAA;QAC/Ce,YAAAA,EAAcC,KAAAA,CAAMC,IAAI,CAAC;YAAEV,MAAAA,EAAQH;AAAM,SAAA,EAAG,IAAM,GAAA,GAAMA,KAAAA,CAAAA;QACxDc,KAAAA,EAAO;AAAEC,YAAAA,MAAAA,EAAQ,GAAGC,yBAAAA,CAAepB,OAAAA,EAAS,QAAA,EAAU,GAAA,CAAA,CAAK,EAAE;AAAE,SAAA;AAC9DgB,QAAAA,QAAAA,EAAAA,KAAAA,CAAMC,IAAI,CAAC;YAAEV,MAAAA,EAAQH;SAAM,EAAG,CAACiB,CAAAA,EAAGC,KAAAA,iBAC/BC,eAAA,CAACC,cAAAA,EAAAA;;oBACIF,KAAAA,GAAQ,CAAA,kBACLd,cAAA,CAACC,iBAAAA,CAASgB,MAAM,EAAA;gDACZjB,cAAA,CAACC,kBAASiB,MAAM,EAAA,EAAA;;AAGxB,kCAAAlB,cAAA,CAACC,kBAASkB,KAAK,EAAA;wBAACC,SAAAA,EAAU,kCAAA;AAAoC1B,wBAAAA,QAAAA,EAAAA,MAAM,CAACoB,KAAAA;;;AAN1DA,aAAAA,EAAAA,KAAAA,CAAAA;;AAW/B;;;;"}
1
+ {"version":3,"file":"PrimeSplitter.js","sources":["../../../panel/PrimeSplitter.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { Fragment } from 'react';\nimport { Splitter } from 'primereact/splitter';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { numberProperty, stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:splitter` component - regions separated by a bar the user can drag.\n *\n * One panel per child in the `content` slot, sized evenly. Splitter needs an explicit height because it\n * lays its panels out absolutely; without one the whole component collapses.\n *\n * PrimeReact 11 moved sizing off the individual panel and onto the root: a v10 `SplitterPanel size={50}`\n * is now one entry in the root's `defaultSizes` array, so the even split is computed once up front rather\n * than repeated per panel. It also stopped inserting the drag bars for you - `Splitter.Gutter` is a part\n * the composition supplies between panels, and a splitter rendered without them is simply not resizable.\n * `defaultSizes` is used rather than `sizes` so the component owns its sizes after the first drag; the\n * controlled form would snap the panels back to the even split on every render.\n *\n * The Scene property keeps the name `layout` even though v11 calls the prop `orientation`, because a\n * screen's property vocabulary is this package's contract with authored content.\n */\nexport function PrimeSplitter({ element, slots }: RegisteredComponentProps) {\n const panels = slots.content ?? [];\n const count = Math.max(panels.length, 2);\n return (\n <Splitter.Root\n data-scene-id={element.id}\n orientation={stringProperty(element, 'layout', 'horizontal') as 'horizontal' | 'vertical'}\n defaultSizes={Array.from({ length: count }, () => 100 / count)}\n style={{ height: `${numberProperty(element, 'height', 200)}px` }}>\n {Array.from({ length: count }, (_, index) => (\n <Fragment key={index}>\n {index > 0 && (\n <Splitter.Gutter>\n <Splitter.Handle />\n </Splitter.Gutter>\n )}\n <Splitter.Panel className='flex items-center justify-center'>{panels[index]}</Splitter.Panel>\n </Fragment>\n ))}\n </Splitter.Root>\n );\n}\n"],"names":["PrimeSplitter","element","slots","panels","content","count","Math","max","length","_jsx","Splitter","Root","data-scene-id","id","orientation","stringProperty","defaultSizes","Array","from","style","height","numberProperty","_","index","_jsxs","Fragment","Gutter","Handle","Panel","className"],"mappings":";;;;;;;AAQA;;;;;;;;;;;;;;;AAeC,IACM,SAASA,aAAAA,CAAc,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;AACtE,IAAA,MAAMC,MAAAA,GAASD,KAAAA,CAAME,OAAO,IAAI,EAAE;AAClC,IAAA,MAAMC,QAAQC,IAAAA,CAAKC,GAAG,CAACJ,MAAAA,CAAOK,MAAM,EAAE,CAAA,CAAA;IACtC,qBACIC,cAAA,CAACC,kBAASC,IAAI,EAAA;AACVC,QAAAA,eAAAA,EAAeX,QAAQY,EAAE;QACzBC,WAAAA,EAAaC,yBAAAA,CAAed,SAAS,QAAA,EAAU,YAAA,CAAA;QAC/Ce,YAAAA,EAAcC,KAAAA,CAAMC,IAAI,CAAC;YAAEV,MAAAA,EAAQH;AAAM,SAAA,EAAG,IAAM,GAAA,GAAMA,KAAAA,CAAAA;QACxDc,KAAAA,EAAO;AAAEC,YAAAA,MAAAA,EAAQ,GAAGC,yBAAAA,CAAepB,OAAAA,EAAS,QAAA,EAAU,GAAA,CAAA,CAAK,EAAE;AAAE,SAAA;AAC9DgB,QAAAA,QAAAA,EAAAA,KAAAA,CAAMC,IAAI,CAAC;YAAEV,MAAAA,EAAQH;SAAM,EAAG,CAACiB,CAAAA,EAAGC,KAAAA,iBAC/BC,eAAA,CAACC,cAAAA,EAAAA;;oBACIF,KAAAA,GAAQ,CAAA,kBACLd,cAAA,CAACC,iBAAAA,CAASgB,MAAM,EAAA;gDACZjB,cAAA,CAACC,kBAASiB,MAAM,EAAA,EAAA;;AAGxB,kCAAAlB,cAAA,CAACC,kBAASkB,KAAK,EAAA;wBAACC,SAAAA,EAAU,kCAAA;AAAoC1B,wBAAAA,QAAAA,EAAAA,MAAM,CAACoB,KAAAA;;;AAN1DA,aAAAA,EAAAA,KAAAA,CAAAA;;AAW/B;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"PrimeStepper.js","sources":["../../../panel/PrimeStepper.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { useState } from 'react';\nimport { Button } from 'primereact/button';\nimport { Stepper } from 'primereact/stepper';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { booleanProperty, stringArrayProperty, stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:stepper` component - a wizard whose progress is shown as numbered steps.\n *\n * The adapter renders the Back and Next buttons itself. Without them the steps render but nothing can\n * move between them, which is a stepper that does not step.\n *\n * The reason changed with PrimeReact 11 even though the conclusion did not. In v10 the component owned\n * the active step and exposed `nextCallback` / `prevCallback` on a ref for someone else to call; v11 is\n * headless and owns nothing - the active step is `value` on `Stepper.Root`, so the adapter holds it in\n * state and the buttons set it. That also makes the step headers work: clicking one arrives as\n * `onValueChange`, which is routed into the same state rather than being handled separately.\n *\n * v11 also merged `primereact/stepperpanel` into `primereact/stepper`, splitting each step into a\n * `Stepper.Step` in the header list and a matching `Stepper.Panel` in the body, joined by value.\n *\n * **Dropped:** v10's `orientation` property has no equivalent - v11's headless stepper lays out\n * horizontally and leaves a vertical arrangement to CSS. The authored value is still forwarded as a\n * `data-orientation` attribute so a theme can act on it, but nothing in the component reads it.\n */\nexport function PrimeStepper({ element, slots }: RegisteredComponentProps) {\n const headers = stringArrayProperty(element, 'headers');\n const bodies = slots.content ?? [];\n const count = Math.max(headers.length, bodies.length);\n const [activeStep, setActiveStep] = useState(0);\n\n // A screen can shrink its step list between renders, which would leave the active step pointing past\n // the end and show no panel at all. Clamping keeps the value inside the set of steps that exist.\n const current = Math.min(activeStep, Math.max(count - 1, 0));\n\n return (\n <Stepper.Root\n data-scene-id={element.id}\n data-orientation={stringProperty(element, 'orientation', 'horizontal')}\n value={String(current)}\n linear={booleanProperty(element, 'linear', false)}\n onValueChange={(event) => {\n const selected = Number(event.value);\n if (!Number.isNaN(selected)) setActiveStep(selected);\n }}>\n <Stepper.List>\n {Array.from({ length: count }, (_, index) => (\n <Stepper.Step key={index} value={String(index)}>\n <Stepper.Header>\n <Stepper.Number>{index + 1}</Stepper.Number>\n <Stepper.Title>{headers[index] ?? `Step ${index + 1}`}</Stepper.Title>\n </Stepper.Header>\n {index < count - 1 && <Stepper.Separator />}\n </Stepper.Step>\n ))}\n </Stepper.List>\n <Stepper.Panels>\n {Array.from({ length: count }, (_, index) => (\n <Stepper.Panel key={index} value={String(index)}>\n <div className='flex flex-col gap-4'>\n {bodies[index]}\n <div className='flex gap-2'>\n {index > 0 && (\n <Button severity='secondary' onClick={() => setActiveStep(index - 1)}>\n Back\n </Button>\n )}\n {index < count - 1 && <Button onClick={() => setActiveStep(index + 1)}>Next</Button>}\n </div>\n </div>\n </Stepper.Panel>\n ))}\n </Stepper.Panels>\n </Stepper.Root>\n );\n}\n"],"names":["PrimeStepper","element","slots","headers","stringArrayProperty","bodies","content","count","Math","max","length","activeStep","setActiveStep","useState","current","min","_jsxs","Stepper","Root","data-scene-id","id","data-orientation","stringProperty","value","String","linear","booleanProperty","onValueChange","event","selected","Number","isNaN","_jsx","List","Array","from","_","index","Step","Header","Title","Separator","Panels","Panel","div","className","Button","severity","onClick"],"mappings":";;;;;;;;AASA;;;;;;;;;;;;;;;;;;AAkBC,IACM,SAASA,YAAAA,CAAa,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;IACrE,MAAMC,OAAAA,GAAUC,+BAAoBH,OAAAA,EAAS,SAAA,CAAA;AAC7C,IAAA,MAAMI,MAAAA,GAASH,KAAAA,CAAMI,OAAO,IAAI,EAAE;IAClC,MAAMC,KAAAA,GAAQC,KAAKC,GAAG,CAACN,QAAQO,MAAM,EAAEL,OAAOK,MAAM,CAAA;AACpD,IAAA,MAAM,CAACC,UAAAA,EAAYC,aAAAA,CAAc,GAAGC,cAAAA,CAAS,CAAA,CAAA;;;IAI7C,MAAMC,OAAAA,GAAUN,KAAKO,GAAG,CAACJ,YAAYH,IAAAA,CAAKC,GAAG,CAACF,KAAAA,GAAQ,CAAA,EAAG,CAAA,CAAA,CAAA;IAEzD,qBACIS,eAAA,CAACC,gBAAQC,IAAI,EAAA;AACTC,QAAAA,eAAAA,EAAelB,QAAQmB,EAAE;QACzBC,kBAAAA,EAAkBC,yBAAAA,CAAerB,SAAS,aAAA,EAAe,YAAA,CAAA;AACzDsB,QAAAA,KAAAA,EAAOC,MAAAA,CAAOV,OAAAA,CAAAA;QACdW,MAAAA,EAAQC,0BAAAA,CAAgBzB,SAAS,QAAA,EAAU,KAAA,CAAA;AAC3C0B,QAAAA,aAAAA,EAAe,CAACC,KAAAA,GAAAA;YACZ,MAAMC,QAAAA,GAAWC,MAAAA,CAAOF,KAAAA,CAAML,KAAK,CAAA;AACnC,YAAA,IAAI,CAACO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A;oCAAIC,SAAAA,EAAU,YAAA;;AACVR,wCAAAA,KAAAA,GAAQ,mBACLL,cAAA,CAACc,aAAAA,EAAAA;4CAAOC,QAAAA,EAAS,WAAA;4CAAYC,OAAAA,EAAS,IAAMpC,cAAcyB,KAAAA,GAAQ,CAAA,CAAA;AAAI,4CAAA,QAAA,EAAA;;wCAIzEA,KAAAA,GAAQ9B,KAAAA,GAAQ,mBAAKyB,cAAA,CAACc,aAAAA,EAAAA;4CAAOE,OAAAA,EAAS,IAAMpC,cAAcyB,KAAAA,GAAQ,CAAA,CAAA;AAAI,4CAAA,QAAA,EAAA;;;;;;AAT/DA,qBAAAA,EAAAA,KAAAA,CAAAA;;;;AAiBxC;;;;"}
1
+ {"version":3,"file":"PrimeStepper.js","sources":["../../../panel/PrimeStepper.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { useState } from 'react';\nimport { Button } from 'primereact/button';\nimport { Stepper } from 'primereact/stepper';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { booleanProperty, stringArrayProperty, stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:stepper` component - a wizard whose progress is shown as numbered steps.\n *\n * The adapter renders the Back and Next buttons itself. Without them the steps render but nothing can\n * move between them, which is a stepper that does not step.\n *\n * The reason changed with PrimeReact 11 even though the conclusion did not. In v10 the component owned\n * the active step and exposed `nextCallback` / `prevCallback` on a ref for someone else to call; v11 is\n * headless and owns nothing - the active step is `value` on `Stepper.Root`, so the adapter holds it in\n * state and the buttons set it. That also makes the step headers work: clicking one arrives as\n * `onValueChange`, which is routed into the same state rather than being handled separately.\n *\n * v11 also merged `primereact/stepperpanel` into `primereact/stepper`, splitting each step into a\n * `Stepper.Step` in the header list and a matching `Stepper.Panel` in the body, joined by value.\n *\n * **Dropped:** v10's `orientation` property has no equivalent - v11's headless stepper lays out\n * horizontally and leaves a vertical arrangement to CSS. The authored value is still forwarded as a\n * `data-orientation` attribute so a theme can act on it, but nothing in the component reads it.\n */\nexport function PrimeStepper({ element, slots }: RegisteredComponentProps) {\n const headers = stringArrayProperty(element, 'headers');\n const bodies = slots.content ?? [];\n const count = Math.max(headers.length, bodies.length);\n const [activeStep, setActiveStep] = useState(0);\n\n // A screen can shrink its step list between renders, which would leave the active step pointing past\n // the end and show no panel at all. Clamping keeps the value inside the set of steps that exist.\n const current = Math.min(activeStep, Math.max(count - 1, 0));\n\n return (\n <Stepper.Root\n data-scene-id={element.id}\n data-orientation={stringProperty(element, 'orientation', 'horizontal')}\n value={String(current)}\n linear={booleanProperty(element, 'linear', false)}\n onValueChange={(event) => {\n const selected = Number(event.value);\n if (!Number.isNaN(selected)) setActiveStep(selected);\n }}>\n <Stepper.List>\n {Array.from({ length: count }, (_, index) => (\n <Stepper.Step key={index} value={String(index)}>\n <Stepper.Header>\n <Stepper.Number>{index + 1}</Stepper.Number>\n <Stepper.Title>{headers[index] ?? `Step ${index + 1}`}</Stepper.Title>\n </Stepper.Header>\n {index < count - 1 && <Stepper.Separator />}\n </Stepper.Step>\n ))}\n </Stepper.List>\n <Stepper.Panels>\n {Array.from({ length: count }, (_, index) => (\n <Stepper.Panel key={index} value={String(index)}>\n <div className='flex flex-col gap-4'>\n {bodies[index]}\n <div className='flex gap-2'>\n {index > 0 && (\n <Button severity='secondary' onClick={() => setActiveStep(index - 1)}>\n Back\n </Button>\n )}\n {index < count - 1 && <Button onClick={() => setActiveStep(index + 1)}>Next</Button>}\n </div>\n </div>\n </Stepper.Panel>\n ))}\n </Stepper.Panels>\n </Stepper.Root>\n );\n}\n"],"names":["PrimeStepper","element","slots","headers","stringArrayProperty","bodies","content","count","Math","max","length","activeStep","setActiveStep","useState","current","min","_jsxs","Stepper","Root","data-scene-id","id","data-orientation","stringProperty","value","String","linear","booleanProperty","onValueChange","event","selected","Number","isNaN","_jsx","List","Array","from","_","index","Step","Header","Title","Separator","Panels","Panel","div","className","Button","severity","onClick"],"mappings":";;;;;;;;A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A,EAAAA;4CAAOE,OAAAA,EAAS,IAAMpC,cAAcyB,KAAAA,GAAQ,CAAA,CAAA;AAAI,4CAAA,QAAA,EAAA;;;;;;AAT/DA,qBAAAA,EAAAA,KAAAA,CAAAA;;;;AAiBxC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"PrimeTabView.js","sources":["../../../panel/PrimeTabView.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { Tabs } from 'primereact/tabs';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { numberProperty, stringArrayProperty } from '../properties';\n\n/**\n * The `PrimeReact:tabView` component - content behind selectable tabs.\n *\n * Pairs a `headers` property with the `content` slot by position, for the same reason\n * {@link PrimeAccordion} does.\n *\n * PrimeReact 11 merged the v10 `primereact/tabview` and `primereact/tabpanel` modules into a single\n * compositional `primereact/tabs`, where the strip of tabs and the stack of panels are two sibling\n * subtrees joined by matching `value`s rather than one list of `TabPanel` elements read twice. The\n * adapter therefore walks the same range twice - once for `Tabs.List`, once for `Tabs.Panels` - and uses\n * the index as the shared value. `Tabs.Indicator` is composed in explicitly because v11 renders no part\n * it was not given, and without it the active tab gets no underline at all.\n *\n * `activeIndex` is passed as `defaultValue` rather than `value` for the reason described on\n * {@link PrimeAccordion}: a controlled value would make every tab unselectable.\n *\n * The abstract Scene name stays `tabView` so existing screens keep resolving.\n */\nexport function PrimeTabView({ element, slots }: RegisteredComponentProps) {\n const headers = stringArrayProperty(element, 'headers');\n const bodies = slots.content ?? [];\n const count = Math.max(headers.length, bodies.length);\n return (\n <Tabs.Root data-scene-id={element.id} defaultValue={String(numberProperty(element, 'activeIndex', 0))}>\n <Tabs.List>\n {Array.from({ length: count }, (_, index) => (\n <Tabs.Tab key={index} value={String(index)}>\n {headers[index] ?? `Tab ${index + 1}`}\n </Tabs.Tab>\n ))}\n <Tabs.Indicator />\n </Tabs.List>\n <Tabs.Panels>\n {Array.from({ length: count }, (_, index) => (\n <Tabs.Panel key={index} value={String(index)}>\n {bodies[index]}\n </Tabs.Panel>\n ))}\n </Tabs.Panels>\n </Tabs.Root>\n );\n}\n"],"names":["PrimeTabView","element","slots","headers","stringArrayProperty","bodies","content","count","Math","max","length","_jsxs","Tabs","Root","data-scene-id","id","defaultValue","String","numberProperty","List","Array","from","_","index","_jsx","Tab","value","Indicator","Panels","Panel"],"mappings":";;;;;;AAOA;;;;;;;;;;;;;;;;;AAiBC,IACM,SAASA,YAAAA,CAAa,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;IACrE,MAAMC,OAAAA,GAAUC,+BAAoBH,OAAAA,EAAS,SAAA,CAAA;AAC7C,IAAA,MAAMI,MAAAA,GAASH,KAAAA,CAAMI,OAAO,IAAI,EAAE;IAClC,MAAMC,KAAAA,GAAQC,KAAKC,GAAG,CAACN,QAAQO,MAAM,EAAEL,OAAOK,MAAM,CAAA;IACpD,qBACIC,eAAA,CAACC,UAAKC,IAAI,EAAA;AAACC,QAAAA,eAAAA,EAAeb,QAAQc,EAAE;QAAEC,YAAAA,EAAcC,MAAAA,CAAOC,yBAAAA,CAAejB,OAAAA,EAAS,aAAA,EAAe,CAAA,CAAA,CAAA;;AAC9F,0BAAAU,eAAA,CAACC,UAAKO,IAAI,EAAA;;AACLC,oBAAAA,KAAAA,CAAMC,IAAI,CAAC;wBAAEX,MAAAA,EAAQH;AAAM,qBAAA,EAAG,CAACe,CAAAA,EAAGC,KAAAA,iBAC/BC,cAAA,CAACZ,UAAKa,GAAG,EAAA;AAAaC,4BAAAA,KAAAA,EAAOT,MAAAA,CAAOM,KAAAA,CAAAA;AAC/BpB,4BAAAA,QAAAA,EAAAA,OAAO,CAACoB,KAAAA,CAAM,IAAI,CAAC,IAAI,EAAEA,QAAQ,CAAA,CAAA;AADvBA,yBAAAA,EAAAA,KAAAA,CAAAA,CAAAA;AAInB,kCAAAC,cAAA,CAACZ,UAAKe,SAAS,EAAA,EAAA;;;AAEnB,0BAAAH,cAAA,CAACZ,UAAKgB,MAAM,EAAA;AACPR,gBAAAA,QAAAA,EAAAA,KAAAA,CAAMC,IAAI,CAAC;oBAAEX,MAAAA,EAAQH;AAAM,iBAAA,EAAG,CAACe,CAAAA,EAAGC,KAAAA,iBAC/BC,cAAA,CAACZ,UAAKiB,KAAK,EAAA;AAAaH,wBAAAA,KAAAA,EAAOT,MAAAA,CAAOM,KAAAA,CAAAA;AACjClB,wBAAAA,QAAAA,EAAAA,MAAM,CAACkB,KAAAA;AADKA,qBAAAA,EAAAA,KAAAA,CAAAA;;;;AAOrC;;;;"}
1
+ {"version":3,"file":"PrimeTabView.js","sources":["../../../panel/PrimeTabView.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { Tabs } from 'primereact/tabs';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { numberProperty, stringArrayProperty } from '../properties';\n\n/**\n * The `PrimeReact:tabView` component - content behind selectable tabs.\n *\n * Pairs a `headers` property with the `content` slot by position, for the same reason\n * {@link PrimeAccordion} does.\n *\n * PrimeReact 11 merged the v10 `primereact/tabview` and `primereact/tabpanel` modules into a single\n * compositional `primereact/tabs`, where the strip of tabs and the stack of panels are two sibling\n * subtrees joined by matching `value`s rather than one list of `TabPanel` elements read twice. The\n * adapter therefore walks the same range twice - once for `Tabs.List`, once for `Tabs.Panels` - and uses\n * the index as the shared value. `Tabs.Indicator` is composed in explicitly because v11 renders no part\n * it was not given, and without it the active tab gets no underline at all.\n *\n * `activeIndex` is passed as `defaultValue` rather than `value` for the reason described on\n * {@link PrimeAccordion}: a controlled value would make every tab unselectable.\n *\n * The abstract Scene name stays `tabView` so existing screens keep resolving.\n */\nexport function PrimeTabView({ element, slots }: RegisteredComponentProps) {\n const headers = stringArrayProperty(element, 'headers');\n const bodies = slots.content ?? [];\n const count = Math.max(headers.length, bodies.length);\n return (\n <Tabs.Root data-scene-id={element.id} defaultValue={String(numberProperty(element, 'activeIndex', 0))}>\n <Tabs.List>\n {Array.from({ length: count }, (_, index) => (\n <Tabs.Tab key={index} value={String(index)}>\n {headers[index] ?? `Tab ${index + 1}`}\n </Tabs.Tab>\n ))}\n <Tabs.Indicator />\n </Tabs.List>\n <Tabs.Panels>\n {Array.from({ length: count }, (_, index) => (\n <Tabs.Panel key={index} value={String(index)}>\n {bodies[index]}\n </Tabs.Panel>\n ))}\n </Tabs.Panels>\n </Tabs.Root>\n );\n}\n"],"names":["PrimeTabView","element","slots","headers","stringArrayProperty","bodies","content","count","Math","max","length","_jsxs","Tabs","Root","data-scene-id","id","defaultValue","String","numberProperty","List","Array","from","_","index","_jsx","Tab","value","Indicator","Panels","Panel"],"mappings":";;;;;;AAOA;;;;;;;;;;;;;;;;;AAiBC,IACM,SAASA,YAAAA,CAAa,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;IACrE,MAAMC,OAAAA,GAAUC,+BAAoBH,OAAAA,EAAS,SAAA,CAAA;AAC7C,IAAA,MAAMI,MAAAA,GAASH,KAAAA,CAAMI,OAAO,IAAI,EAAE;IAClC,MAAMC,KAAAA,GAAQC,KAAKC,GAAG,CAACN,QAAQO,MAAM,EAAEL,OAAOK,MAAM,CAAA;IACpD,qBACIC,eAAA,CAACC,UAAKC,IAAI,EAAA;AAACC,QAAAA,eAAAA,EAAeb,QAAQc,EAAE;QAAEC,YAAAA,EAAcC,MAAAA,CAAOC,yBAAAA,CAAejB,OAAAA,EAAS,aAAA,EAAe,CAAA,CAAA,CAAA;;AAC9F,0BAAAU,eAAA,CAACC,UAAKO,IAAI,EAAA;;AACLC,oBAAAA,KAAAA,CAAMC,IAAI,CAAC;wBAAEX,MAAAA,EAAQH;AAAM,qBAAA,EAAG,CAACe,CAAAA,EAAGC,KAAAA,iBAC/BC,cAAA,CAACZ,UAAKa,GAAG,EAAA;AAAaC,4BAAAA,KAAAA,EAAOT,MAAAA,CAAOM,KAAAA,CAAAA;AAC/BpB,4BAAAA,QAAAA,EAAAA,OAAO,CAACoB,KAAAA,CAAM,IAAI,CAAC,IAAI,EAAEA,QAAQ,CAAA,CAAA;AADvBA,yBAAAA,EAAAA,KAAAA,CAAAA,CAAAA;AAInB,kCAAAC,cAAA,CAACZ,UAAKe,SAAS,EAAA,EAAA;;;AAEnB,0BAAAH,cAAA,CAACZ,UAAKgB,MAAM,EAAA;AACPR,gBAAAA,QAAAA,EAAAA,KAAAA,CAAMC,IAAI,CAAC;oBAAEX,MAAAA,EAAQH;AAAM,iBAAA,EAAG,CAACe,CAAAA,EAAGC,KAAAA,iBAC/BC,cAAA,CAACZ,UAAKiB,KAAK,EAAA;AAAaH,wBAAAA,KAAAA,EAAOT,MAAAA,CAAOM,KAAAA,CAAAA;AACjClB,wBAAAA,QAAAA,EAAAA,MAAM,CAACkB,KAAAA;AADKA,qBAAAA,EAAAA,KAAAA,CAAAA;;;;AAOrC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"PrimeToolbar.js","sources":["../../../panel/PrimeToolbar.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { Toolbar } from 'primereact/toolbar';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\n\n/**\n * The `PrimeReact:toolbar` component - a bar with content anchored to its start, center and end.\n *\n * The three regions map onto three named slots rather than properties, because what goes into them is\n * other components - buttons, a search field, a menu - not values.\n *\n * PrimeReact 11 turned those regions from `start` / `center` / `end` render props into `Toolbar.Start`,\n * `Toolbar.Center` and `Toolbar.End` parts, which happens to be a closer match for what this adapter was\n * already doing: each region is now children rather than a prop holding elements. All three are always\n * rendered, so the flex layout keeps its three anchors and a toolbar with only an end region still pins\n * that region to the end instead of collapsing it leftwards.\n */\nexport function PrimeToolbar({ element, slots }: RegisteredComponentProps) {\n return (\n <Toolbar.Root data-scene-id={element.id}>\n <Toolbar.Start>{slots.start}</Toolbar.Start>\n <Toolbar.Center>{slots.center}</Toolbar.Center>\n <Toolbar.End>{slots.end ?? slots.content}</Toolbar.End>\n </Toolbar.Root>\n );\n}\n"],"names":["PrimeToolbar","element","slots","_jsxs","Toolbar","Root","data-scene-id","id","_jsx","Start","start","Center","center","End","end","content"],"mappings":";;;;;AAMA;;;;;;;;;;;AAWC,IACM,SAASA,YAAAA,CAAa,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;IACrE,qBACIC,eAAA,CAACC,gBAAQC,IAAI,EAAA;AAACC,QAAAA,eAAAA,EAAeL,QAAQM,EAAE;;AACnC,0BAAAC,cAAA,CAACJ,gBAAQK,KAAK,EAAA;AAAEP,gBAAAA,QAAAA,EAAAA,KAAAA,CAAMQ;;AACtB,0BAAAF,cAAA,CAACJ,gBAAQO,MAAM,EAAA;AAAET,gBAAAA,QAAAA,EAAAA,KAAAA,CAAMU;;AACvB,0BAAAJ,cAAA,CAACJ,gBAAQS,GAAG,EAAA;0BAAEX,KAAAA,CAAMY,GAAG,IAAIZ,KAAAA,CAAMa;;;;AAG7C;;;;"}
1
+ {"version":3,"file":"PrimeToolbar.js","sources":["../../../panel/PrimeToolbar.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { Toolbar } from 'primereact/toolbar';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\n\n/**\n * The `PrimeReact:toolbar` component - a bar with content anchored to its start, center and end.\n *\n * The three regions map onto three named slots rather than properties, because what goes into them is\n * other components - buttons, a search field, a menu - not values.\n *\n * PrimeReact 11 turned those regions from `start` / `center` / `end` render props into `Toolbar.Start`,\n * `Toolbar.Center` and `Toolbar.End` parts, which happens to be a closer match for what this adapter was\n * already doing: each region is now children rather than a prop holding elements. All three are always\n * rendered, so the flex layout keeps its three anchors and a toolbar with only an end region still pins\n * that region to the end instead of collapsing it leftwards.\n */\nexport function PrimeToolbar({ element, slots }: RegisteredComponentProps) {\n return (\n <Toolbar.Root data-scene-id={element.id}>\n <Toolbar.Start>{slots.start}</Toolbar.Start>\n <Toolbar.Center>{slots.center}</Toolbar.Center>\n <Toolbar.End>{slots.end ?? slots.content}</Toolbar.End>\n </Toolbar.Root>\n );\n}\n"],"names":["PrimeToolbar","element","slots","_jsxs","Toolbar","Root","data-scene-id","id","_jsx","Start","start","Center","center","End","end","content"],"mappings":";;;;;AAMA;;;;;;;;;;;AAWC,IACM,SAASA,YAAAA,CAAa,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;IACrE,qBACIC,eAAA,CAACC,gBAAQC,IAAI,EAAA;AAACC,QAAAA,eAAAA,EAAeL,QAAQM,EAAE;;AACnC,0BAAAC,cAAA,CAACJ,gBAAQK,KAAK,EAAA;AAAEP,gBAAAA,QAAAA,EAAAA,KAAAA,CAAMQ;;AACtB,0BAAAF,cAAA,CAACJ,gBAAQO,MAAM,EAAA;AAAET,gBAAAA,QAAAA,EAAAA,KAAAA,CAAMU;;AACvB,0BAAAJ,cAAA,CAACJ,gBAAQS,GAAG,EAAA;0BAAEX,KAAAA,CAAMY,GAAG,IAAIZ,KAAAA,CAAMa;;;;AAG7C;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"primeReactComponents.js","sources":["../../primeReactComponents.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { ComponentRegistry, componentRegistryKey } from '@cratis/scene.react';\nimport { PrimeButton, PrimeButtonGroup, PrimeSpeedDial, PrimeSplitButton } from './button';\nimport {\n PrimeColumn,\n PrimeDataTable,\n PrimeDataView,\n PrimeOrderList,\n PrimeOrganizationChart,\n PrimePaginator,\n PrimePickList,\n PrimeTimeline,\n PrimeTree,\n} from './data';\nimport {\n PrimeAutoComplete,\n PrimeCalendar,\n PrimeCheckbox,\n PrimeChips,\n PrimeColorPicker,\n PrimeDropdown,\n PrimeFloatLabel,\n PrimeIconField,\n PrimeInputNumber,\n PrimeInputText,\n PrimeInputTextarea,\n PrimeKnob,\n PrimeListBox,\n PrimeMultiSelect,\n PrimePassword,\n PrimeRadioButton,\n PrimeRating,\n PrimeSelectButton,\n PrimeSlider,\n PrimeToggleSwitch,\n PrimeTreeSelect,\n} from './form';\nimport { PrimeCarousel, PrimeGalleria, PrimeImage } from './media';\nimport {\n PrimeBreadcrumb,\n PrimeContextMenu,\n PrimeDock,\n PrimeMegaMenu,\n PrimeMenu,\n PrimeMenubar,\n PrimePanelMenu,\n PrimeSteps,\n PrimeTabMenu,\n PrimeTieredMenu,\n} from './menu';\nimport { PrimeInlineMessage, PrimeMessage, PrimeToast } from './messages';\nimport {\n PrimeAvatar,\n PrimeBadge,\n PrimeBlockUI,\n PrimeChip,\n PrimeInplace,\n PrimeProgressBar,\n PrimeProgressSpinner,\n PrimeScrollTop,\n PrimeSkeleton,\n PrimeTag,\n PrimeTerminal,\n} from './misc';\nimport { PrimeConfirmDialog, PrimeDialog, PrimeOverlayPanel, PrimeSidebar, PrimeTooltip } from './overlay';\nimport {\n PrimeAccordion,\n PrimeCard,\n PrimeDivider,\n PrimeFieldset,\n PrimePanel,\n PrimeScrollPanel,\n PrimeSplitter,\n PrimeStepper,\n PrimeTabView,\n PrimeToolbar,\n} from './panel';\nimport { PrimeAction, PrimeField, PrimeSection, PrimeSummary, PrimeText, PrimeTitle } from './screen';\n\n/**\n * The `PrimeReact` package's component registry - every abstract name this package answers to, mapped to\n * the adapter that renders it.\n *\n * Three of these names - `text`, `button` and `card` - are deliberately the same ones `core` declares.\n * That is not a collision to be avoided but the mechanism working as intended: a `ui profile` listing\n * `core` and then `PrimeReact` resolves those names here and records that `core` was shadowed, so an\n * existing screen gets real themed components without being edited.\n *\n * Seven more - `table`, `column`, `title`, `field`, `section`, `summary` and `action` - are the names\n * Screenplay's screen vocabulary emits as directive kinds. Declaring them means a screen compiled from a\n * `.play` file renders through this package directly, rather than through a translation layer that would\n * have to be kept in step with the compiler.\n *\n * `table` and `dataTable` share one adapter on purpose: they are the same component under two names a\n * screen might reasonably use, and duplicating the implementation would let the two drift.\n */\nexport const primeReactComponents: ComponentRegistry = {\n [componentRegistryKey('PrimeReact', 'inputText')]: PrimeInputText,\n [componentRegistryKey('PrimeReact', 'inputTextarea')]: PrimeInputTextarea,\n [componentRegistryKey('PrimeReact', 'inputNumber')]: PrimeInputNumber,\n [componentRegistryKey('PrimeReact', 'password')]: PrimePassword,\n [componentRegistryKey('PrimeReact', 'floatLabel')]: PrimeFloatLabel,\n [componentRegistryKey('PrimeReact', 'iconField')]: PrimeIconField,\n [componentRegistryKey('PrimeReact', 'dropdown')]: PrimeDropdown,\n [componentRegistryKey('PrimeReact', 'multiSelect')]: PrimeMultiSelect,\n [componentRegistryKey('PrimeReact', 'listBox')]: PrimeListBox,\n [componentRegistryKey('PrimeReact', 'selectButton')]: PrimeSelectButton,\n [componentRegistryKey('PrimeReact', 'checkbox')]: PrimeCheckbox,\n [componentRegistryKey('PrimeReact', 'radioButton')]: PrimeRadioButton,\n [componentRegistryKey('PrimeReact', 'toggleSwitch')]: PrimeToggleSwitch,\n [componentRegistryKey('PrimeReact', 'slider')]: PrimeSlider,\n [componentRegistryKey('PrimeReact', 'rating')]: PrimeRating,\n [componentRegistryKey('PrimeReact', 'knob')]: PrimeKnob,\n [componentRegistryKey('PrimeReact', 'calendar')]: PrimeCalendar,\n [componentRegistryKey('PrimeReact', 'colorPicker')]: PrimeColorPicker,\n [componentRegistryKey('PrimeReact', 'chips')]: PrimeChips,\n [componentRegistryKey('PrimeReact', 'autoComplete')]: PrimeAutoComplete,\n [componentRegistryKey('PrimeReact', 'treeSelect')]: PrimeTreeSelect,\n\n [componentRegistryKey('PrimeReact', 'button')]: PrimeButton,\n [componentRegistryKey('PrimeReact', 'splitButton')]: PrimeSplitButton,\n [componentRegistryKey('PrimeReact', 'speedDial')]: PrimeSpeedDial,\n [componentRegistryKey('PrimeReact', 'buttonGroup')]: PrimeButtonGroup,\n\n [componentRegistryKey('PrimeReact', 'dataTable')]: PrimeDataTable,\n [componentRegistryKey('PrimeReact', 'table')]: PrimeDataTable,\n [componentRegistryKey('PrimeReact', 'column')]: PrimeColumn,\n [componentRegistryKey('PrimeReact', 'dataView')]: PrimeDataView,\n [componentRegistryKey('PrimeReact', 'tree')]: PrimeTree,\n [componentRegistryKey('PrimeReact', 'timeline')]: PrimeTimeline,\n [componentRegistryKey('PrimeReact', 'paginator')]: PrimePaginator,\n [componentRegistryKey('PrimeReact', 'orderList')]: PrimeOrderList,\n [componentRegistryKey('PrimeReact', 'pickList')]: PrimePickList,\n [componentRegistryKey('PrimeReact', 'organizationChart')]: PrimeOrganizationChart,\n\n [componentRegistryKey('PrimeReact', 'card')]: PrimeCard,\n [componentRegistryKey('PrimeReact', 'panel')]: PrimePanel,\n [componentRegistryKey('PrimeReact', 'accordion')]: PrimeAccordion,\n [componentRegistryKey('PrimeReact', 'fieldset')]: PrimeFieldset,\n [componentRegistryKey('PrimeReact', 'divider')]: PrimeDivider,\n [componentRegistryKey('PrimeReact', 'splitter')]: PrimeSplitter,\n [componentRegistryKey('PrimeReact', 'scrollPanel')]: PrimeScrollPanel,\n [componentRegistryKey('PrimeReact', 'tabView')]: PrimeTabView,\n [componentRegistryKey('PrimeReact', 'toolbar')]: PrimeToolbar,\n [componentRegistryKey('PrimeReact', 'stepper')]: PrimeStepper,\n\n [componentRegistryKey('PrimeReact', 'dialog')]: PrimeDialog,\n [componentRegistryKey('PrimeReact', 'confirmDialog')]: PrimeConfirmDialog,\n [componentRegistryKey('PrimeReact', 'overlayPanel')]: PrimeOverlayPanel,\n [componentRegistryKey('PrimeReact', 'sidebar')]: PrimeSidebar,\n [componentRegistryKey('PrimeReact', 'tooltip')]: PrimeTooltip,\n\n [componentRegistryKey('PrimeReact', 'menu')]: PrimeMenu,\n [componentRegistryKey('PrimeReact', 'menubar')]: PrimeMenubar,\n [componentRegistryKey('PrimeReact', 'breadcrumb')]: PrimeBreadcrumb,\n [componentRegistryKey('PrimeReact', 'tabMenu')]: PrimeTabMenu,\n [componentRegistryKey('PrimeReact', 'steps')]: PrimeSteps,\n [componentRegistryKey('PrimeReact', 'tieredMenu')]: PrimeTieredMenu,\n [componentRegistryKey('PrimeReact', 'panelMenu')]: PrimePanelMenu,\n [componentRegistryKey('PrimeReact', 'contextMenu')]: PrimeContextMenu,\n [componentRegistryKey('PrimeReact', 'megaMenu')]: PrimeMegaMenu,\n [componentRegistryKey('PrimeReact', 'dock')]: PrimeDock,\n\n [componentRegistryKey('PrimeReact', 'message')]: PrimeMessage,\n [componentRegistryKey('PrimeReact', 'inlineMessage')]: PrimeInlineMessage,\n [componentRegistryKey('PrimeReact', 'toast')]: PrimeToast,\n\n [componentRegistryKey('PrimeReact', 'image')]: PrimeImage,\n [componentRegistryKey('PrimeReact', 'galleria')]: PrimeGalleria,\n [componentRegistryKey('PrimeReact', 'carousel')]: PrimeCarousel,\n\n [componentRegistryKey('PrimeReact', 'avatar')]: PrimeAvatar,\n [componentRegistryKey('PrimeReact', 'badge')]: PrimeBadge,\n [componentRegistryKey('PrimeReact', 'chip')]: PrimeChip,\n [componentRegistryKey('PrimeReact', 'tag')]: PrimeTag,\n [componentRegistryKey('PrimeReact', 'progressBar')]: PrimeProgressBar,\n [componentRegistryKey('PrimeReact', 'progressSpinner')]: PrimeProgressSpinner,\n [componentRegistryKey('PrimeReact', 'skeleton')]: PrimeSkeleton,\n [componentRegistryKey('PrimeReact', 'scrollTop')]: PrimeScrollTop,\n [componentRegistryKey('PrimeReact', 'blockUI')]: PrimeBlockUI,\n [componentRegistryKey('PrimeReact', 'inplace')]: PrimeInplace,\n [componentRegistryKey('PrimeReact', 'terminal')]: PrimeTerminal,\n\n [componentRegistryKey('PrimeReact', 'text')]: PrimeText,\n [componentRegistryKey('PrimeReact', 'title')]: PrimeTitle,\n [componentRegistryKey('PrimeReact', 'field')]: PrimeField,\n [componentRegistryKey('PrimeReact', 'section')]: PrimeSection,\n [componentRegistryKey('PrimeReact', 'summary')]: PrimeSummary,\n [componentRegistryKey('PrimeReact', 'action')]: PrimeAction,\n};\n"],"names":["primeReactComponents","componentRegistryKey","PrimeInputText","PrimeInputTextarea","PrimeInputNumber","PrimePassword","PrimeFloatLabel","PrimeIconField","PrimeDropdown","PrimeMultiSelect","PrimeListBox","PrimeSelectButton","PrimeCheckbox","PrimeRadioButton","PrimeToggleSwitch","PrimeSlider","PrimeRating","PrimeKnob","PrimeCalendar","PrimeColorPicker","PrimeChips","PrimeAutoComplete","PrimeTreeSelect","PrimeButton","PrimeSplitButton","PrimeSpeedDial","PrimeButtonGroup","PrimeDataTable","PrimeColumn","PrimeDataView","PrimeTree","PrimeTimeline","PrimePaginator","PrimeOrderList","PrimePickList","PrimeOrganizationChart","PrimeCard","PrimePanel","PrimeAccordion","PrimeFieldset","PrimeDivider","PrimeSplitter","PrimeScrollPanel","PrimeTabView","PrimeToolbar","PrimeStepper","PrimeDialog","PrimeConfirmDialog","PrimeOverlayPanel","PrimeSidebar","PrimeTooltip","PrimeMenu","PrimeMenubar","PrimeBreadcrumb","PrimeTabMenu","PrimeSteps","PrimeTieredMenu","PrimePanelMenu","PrimeContextMenu","PrimeMegaMenu","PrimeDock","PrimeMessage","PrimeInlineMessage","PrimeToast","PrimeImage","PrimeGalleria","PrimeCarousel","PrimeAvatar","PrimeBadge","PrimeChip","PrimeTag","PrimeProgressBar","PrimeProgressSpinner","PrimeSkeleton","PrimeScrollTop","PrimeBlockUI","PrimeInplace","PrimeTerminal","PrimeText","PrimeTitle","PrimeField","PrimeSection","PrimeSummary","PrimeAction"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AAgFA;;;;;;;;;;;;;;;;UAiBaA,oBAAAA,GAA0C;IACnD,CAACC,gCAAAA,CAAqB,YAAA,EAAc,WAAA,CAAA,GAAeC,6BAAAA;IACnD,CAACD,gCAAAA,CAAqB,YAAA,EAAc,eAAA,CAAA,GAAmBE,q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ACvE,gCAAAA,CAAqB,YAAA,EAAc,UAAA,CAAA,GAAcwE,2BAAAA;IAClD,CAACxE,gCAAAA,CAAqB,YAAA,EAAc,WAAA,CAAA,GAAeyE,6BAAAA;IACnD,CAACzE,gCAAAA,CAAqB,YAAA,EAAc,SAAA,CAAA,GAAa0E,yBAAAA;IACjD,CAAC1E,gCAAAA,CAAqB,YAAA,EAAc,SAAA,CAAA,GAAa2E,yBAAAA;IACjD,CAAC3E,gCAAAA,CAAqB,YAAA,EAAc,UAAA,CAAA,GAAc4E,2BAAAA;IAElD,CAAC5E,gCAAAA,CAAqB,YAAA,EAAc,MAAA,CAAA,GAAU6E,mBAAAA;IAC9C,CAAC7E,gCAAAA,CAAqB,YAAA,EAAc,OAAA,CAAA,GAAW8E,qBAAAA;IAC/C,CAAC9E,gCAAAA,CAAqB,YAAA,EAAc,OAAA,CAAA,GAAW+E,qBAAAA;IAC/C,CAAC/E,gCAAAA,CAAqB,YAAA,EAAc,SAAA,CAAA,GAAagF,yBAAAA;IACjD,CAAChF,gCAAAA,CAAqB,YAAA,EAAc,SAAA,CAAA,GAAaiF,yBAAAA;IACjD,CAACjF,gCAAAA,CAAqB,YAAA,EAAc,QAAA,CAAA,GAAYkF;AACpD;;;;"}
1
+ {"version":3,"file":"primeReactComponents.js","sources":["../../primeReactComponents.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { ComponentRegistry, componentRegistryKey } from '@cratis/scene.react';\nimport { PrimeButton, PrimeButtonGroup, PrimeSpeedDial, PrimeSplitButton } from './button';\nimport {\n PrimeColumn,\n PrimeDataTable,\n PrimeDataView,\n PrimeOrderList,\n PrimeOrganizationChart,\n PrimePaginator,\n PrimePickList,\n PrimeTimeline,\n PrimeTree,\n} from './data';\nimport {\n PrimeAutoComplete,\n PrimeCalendar,\n PrimeCheckbox,\n PrimeChips,\n PrimeColorPicker,\n PrimeDropdown,\n PrimeFloatLabel,\n PrimeIconField,\n PrimeInputNumber,\n PrimeInputText,\n PrimeInputTextarea,\n PrimeKnob,\n PrimeListBox,\n PrimeMultiSelect,\n PrimePassword,\n PrimeRadioButton,\n PrimeRating,\n PrimeSelectButton,\n PrimeSlider,\n PrimeToggleSwitch,\n PrimeTreeSelect,\n} from './form';\nimport { PrimeCarousel, PrimeGalleria, PrimeImage } from './media';\nimport {\n PrimeBreadcrumb,\n PrimeContextMenu,\n PrimeDock,\n PrimeMegaMenu,\n PrimeMenu,\n PrimeMenubar,\n PrimePanelMenu,\n PrimeSteps,\n PrimeTabMenu,\n PrimeTieredMenu,\n} from './menu';\nimport { PrimeInlineMessage, PrimeMessage, PrimeToast } from './messages';\nimport {\n PrimeAvatar,\n PrimeBadge,\n PrimeBlockUI,\n PrimeChip,\n PrimeInplace,\n PrimeProgressBar,\n PrimeProgressSpinner,\n PrimeScrollTop,\n PrimeSkeleton,\n PrimeTag,\n PrimeTerminal,\n} from './misc';\nimport { PrimeConfirmDialog, PrimeDialog, PrimeOverlayPanel, PrimeSidebar, PrimeTooltip } from './overlay';\nimport {\n PrimeAccordion,\n PrimeCard,\n PrimeDivider,\n PrimeFieldset,\n PrimePanel,\n PrimeScrollPanel,\n PrimeSplitter,\n PrimeStepper,\n PrimeTabView,\n PrimeToolbar,\n} from './panel';\nimport { PrimeAction, PrimeField, PrimeSection, PrimeSummary, PrimeText, PrimeTitle } from './screen';\n\n/**\n * The `PrimeReact` package's component registry - every abstract name this package answers to, mapped to\n * the adapter that renders it.\n *\n * Three of these names - `text`, `button` and `card` - are deliberately the same ones `core` declares.\n * That is not a collision to be avoided but the mechanism working as intended: a `ui profile` listing\n * `core` and then `PrimeReact` resolves those names here and records that `core` was shadowed, so an\n * existing screen gets real themed components without being edited.\n *\n * Seven more - `table`, `column`, `title`, `field`, `section`, `summary` and `action` - are the names\n * Screenplay's screen vocabulary emits as directive kinds. Declaring them means a screen compiled from a\n * `.play` file renders through this package directly, rather than through a translation layer that would\n * have to be kept in step with the compiler.\n *\n * `table` and `dataTable` share one adapter on purpose: they are the same component under two names a\n * screen might reasonably use, and duplicating the implementation would let the two drift.\n */\nexport const primeReactComponents: ComponentRegistry = {\n [componentRegistryKey('PrimeReact', 'inputText')]: PrimeInputText,\n [componentRegistryKey('PrimeReact', 'inputTextarea')]: PrimeInputTextarea,\n [componentRegistryKey('PrimeReact', 'inputNumber')]: PrimeInputNumber,\n [componentRegistryKey('PrimeReact', 'password')]: PrimePassword,\n [componentRegistryKey('PrimeReact', 'floatLabel')]: PrimeFloatLabel,\n [componentRegistryKey('PrimeReact', 'iconField')]: PrimeIconField,\n [componentRegistryKey('PrimeReact', 'dropdown')]: PrimeDropdown,\n [componentRegistryKey('PrimeReact', 'multiSelect')]: PrimeMultiSelect,\n [componentRegistryKey('PrimeReact', 'listBox')]: PrimeListBox,\n [componentRegistryKey('PrimeReact', 'selectButton')]: PrimeSelectButton,\n [componentRegistryKey('PrimeReact', 'checkbox')]: PrimeCheckbox,\n [componentRegistryKey('PrimeReact', 'radioButton')]: PrimeRadioButton,\n [componentRegistryKey('PrimeReact', 'toggleSwitch')]: PrimeToggleSwitch,\n [componentRegistryKey('PrimeReact', 'slider')]: PrimeSlider,\n [componentRegistryKey('PrimeReact', 'rating')]: PrimeRating,\n [componentRegistryKey('PrimeReact', 'knob')]: PrimeKnob,\n [componentRegistryKey('PrimeReact', 'calendar')]: PrimeCalendar,\n [componentRegistryKey('PrimeReact', 'colorPicker')]: PrimeColorPicker,\n [componentRegistryKey('PrimeReact', 'chips')]: PrimeChips,\n [componentRegistryKey('PrimeReact', 'autoComplete')]: PrimeAutoComplete,\n [componentRegistryKey('PrimeReact', 'treeSelect')]: PrimeTreeSelect,\n\n [componentRegistryKey('PrimeReact', 'button')]: PrimeButton,\n [componentRegistryKey('PrimeReact', 'splitButton')]: PrimeSplitButton,\n [componentRegistryKey('PrimeReact', 'speedDial')]: PrimeSpeedDial,\n [componentRegistryKey('PrimeReact', 'buttonGroup')]: PrimeButtonGroup,\n\n [componentRegistryKey('PrimeReact', 'dataTable')]: PrimeDataTable,\n [componentRegistryKey('PrimeReact', 'table')]: PrimeDataTable,\n [componentRegistryKey('PrimeReact', 'column')]: PrimeColumn,\n [componentRegistryKey('PrimeReact', 'dataView')]: PrimeDataView,\n [componentRegistryKey('PrimeReact', 'tree')]: PrimeTree,\n [componentRegistryKey('PrimeReact', 'timeline')]: PrimeTimeline,\n [componentRegistryKey('PrimeReact', 'paginator')]: PrimePaginator,\n [componentRegistryKey('PrimeReact', 'orderList')]: PrimeOrderList,\n [componentRegistryKey('PrimeReact', 'pickList')]: PrimePickList,\n [componentRegistryKey('PrimeReact', 'organizationChart')]: PrimeOrganizationChart,\n\n [componentRegistryKey('PrimeReact', 'card')]: PrimeCard,\n [componentRegistryKey('PrimeReact', 'panel')]: PrimePanel,\n [componentRegistryKey('PrimeReact', 'accordion')]: PrimeAccordion,\n [componentRegistryKey('PrimeReact', 'fieldset')]: PrimeFieldset,\n [componentRegistryKey('PrimeReact', 'divider')]: PrimeDivider,\n [componentRegistryKey('PrimeReact', 'splitter')]: PrimeSplitter,\n [componentRegistryKey('PrimeReact', 'scrollPanel')]: PrimeScrollPanel,\n [componentRegistryKey('PrimeReact', 'tabView')]: PrimeTabView,\n [componentRegistryKey('PrimeReact', 'toolbar')]: PrimeToolbar,\n [componentRegistryKey('PrimeReact', 'stepper')]: PrimeStepper,\n\n [componentRegistryKey('PrimeReact', 'dialog')]: PrimeDialog,\n [componentRegistryKey('PrimeReact', 'confirmDialog')]: PrimeConfirmDialog,\n [componentRegistryKey('PrimeReact', 'overlayPanel')]: PrimeOverlayPanel,\n [componentRegistryKey('PrimeReact', 'sidebar')]: PrimeSidebar,\n [componentRegistryKey('PrimeReact', 'tooltip')]: PrimeTooltip,\n\n [componentRegistryKey('PrimeReact', 'menu')]: PrimeMenu,\n [componentRegistryKey('PrimeReact', 'menubar')]: PrimeMenubar,\n [componentRegistryKey('PrimeReact', 'breadcrumb')]: PrimeBreadcrumb,\n [componentRegistryKey('PrimeReact', 'tabMenu')]: PrimeTabMenu,\n [componentRegistryKey('PrimeReact', 'steps')]: PrimeSteps,\n [componentRegistryKey('PrimeReact', 'tieredMenu')]: PrimeTieredMenu,\n [componentRegistryKey('PrimeReact', 'panelMenu')]: PrimePanelMenu,\n [componentRegistryKey('PrimeReact', 'contextMenu')]: PrimeContextMenu,\n [componentRegistryKey('PrimeReact', 'megaMenu')]: PrimeMegaMenu,\n [componentRegistryKey('PrimeReact', 'dock')]: PrimeDock,\n\n [componentRegistryKey('PrimeReact', 'message')]: PrimeMessage,\n [componentRegistryKey('PrimeReact', 'inlineMessage')]: PrimeInlineMessage,\n [componentRegistryKey('PrimeReact', 'toast')]: PrimeToast,\n\n [componentRegistryKey('PrimeReact', 'image')]: PrimeImage,\n [componentRegistryKey('PrimeReact', 'galleria')]: PrimeGalleria,\n [componentRegistryKey('PrimeReact', 'carousel')]: PrimeCarousel,\n\n [componentRegistryKey('PrimeReact', 'avatar')]: PrimeAvatar,\n [componentRegistryKey('PrimeReact', 'badge')]: PrimeBadge,\n [componentRegistryKey('PrimeReact', 'chip')]: PrimeChip,\n [componentRegistryKey('PrimeReact', 'tag')]: PrimeTag,\n [componentRegistryKey('PrimeReact', 'progressBar')]: PrimeProgressBar,\n [componentRegistryKey('PrimeReact', 'progressSpinner')]: PrimeProgressSpinner,\n [componentRegistryKey('PrimeReact', 'skeleton')]: PrimeSkeleton,\n [componentRegistryKey('PrimeReact', 'scrollTop')]: PrimeScrollTop,\n [componentRegistryKey('PrimeReact', 'blockUI')]: PrimeBlockUI,\n [componentRegistryKey('PrimeReact', 'inplace')]: PrimeInplace,\n [componentRegistryKey('PrimeReact', 'terminal')]: PrimeTerminal,\n\n [componentRegistryKey('PrimeReact', 'text')]: PrimeText,\n [componentRegistryKey('PrimeReact', 'title')]: PrimeTitle,\n [componentRegistryKey('PrimeReact', 'field')]: PrimeField,\n [componentRegistryKey('PrimeReact', 'section')]: PrimeSection,\n [componentRegistryKey('PrimeReact', 'summary')]: PrimeSummary,\n [componentRegistryKey('PrimeReact', 'action')]: PrimeAction,\n};\n"],"names":["primeReactComponents","componentRegistryKey","PrimeInputText","PrimeInputTextarea","PrimeInputNumber","PrimePassword","PrimeFloatLabel","PrimeIconField","PrimeDropdown","PrimeMultiSelect","PrimeListBox","PrimeSelectButton","PrimeCheckbox","PrimeRadioButton","PrimeToggleSwitch","PrimeSlider","PrimeRating","PrimeKnob","PrimeCalendar","PrimeColorPicker","PrimeChips","PrimeAutoComplete","PrimeTreeSelect","PrimeButton","PrimeSplitButton","PrimeSpeedDial","PrimeButtonGroup","PrimeDataTable","PrimeColumn","PrimeDataView","PrimeTree","PrimeTimeline","PrimePaginator","PrimeOrderList","PrimePickList","PrimeOrganizationChart","PrimeCard","PrimePanel","PrimeAccordion","PrimeFieldset","PrimeDivider","PrimeSplitter","PrimeScrollPanel","PrimeTabView","PrimeToolbar","PrimeStepper","PrimeDialog","PrimeConfirmDialog","PrimeOverlayPanel","PrimeSidebar","PrimeTooltip","PrimeMenu","PrimeMenubar","PrimeBreadcrumb","PrimeTabMenu","PrimeSteps","PrimeTieredMenu","PrimePanelMenu","PrimeContextMenu","PrimeMegaMenu","PrimeDock","PrimeMessage","PrimeInlineMessage","PrimeToast","PrimeImage","PrimeGalleria","PrimeCarousel","PrimeAvatar","PrimeBadge","PrimeChip","PrimeTag","PrimeProgressBar","PrimeProgressSpinner","PrimeSkeleton","PrimeScrollTop","PrimeBlockUI","PrimeInplace","PrimeTerminal","PrimeText","PrimeTitle","PrimeField","PrimeSection","PrimeSummary","PrimeAction"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AAgFA;;;;;;;;;;;;;;;;UAiBaA,oBAAAA,GAA0C;IACnD,CAACC,gCAAAA,CAAqB,YAAA,EAAc,WAAA,CAAA,GAAeC,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E,gCAAAA,CAAqB,YAAA,EAAc,iBAAA,CAAA,GAAqBuE,yCAAAA;IACzD,CAACvE,gCAAAA,CAAqB,YAAA,EAAc,UAAA,CAAA,GAAcwE,2BAAAA;IAClD,CAACxE,gCAAAA,CAAqB,YAAA,EAAc,WAAA,CAAA,GAAeyE,6BAAAA;IACnD,CAACzE,gCAAAA,CAAqB,YAAA,EAAc,SAAA,CAAA,GAAa0E,yBAAAA;IACjD,CAAC1E,gCAAAA,CAAqB,YAAA,EAAc,SAAA,CAAA,GAAa2E,yBAAAA;IACjD,CAAC3E,gCAAAA,CAAqB,YAAA,EAAc,UAAA,CAAA,GAAc4E,2BAAAA;IAElD,CAAC5E,gCAAAA,CAAqB,YAAA,EAAc,MAAA,CAAA,GAAU6E,mBAAAA;IAC9C,CAAC7E,gCAAAA,CAAqB,YAAA,EAAc,OAAA,CAAA,GAAW8E,qBAAAA;IAC/C,CAAC9E,gCAAAA,CAAqB,YAAA,EAAc,OAAA,CAAA,GAAW+E,qBAAAA;IAC/C,CAAC/E,gCAAAA,CAAqB,YAAA,EAAc,SAAA,CAAA,GAAagF,yBAAAA;IACjD,CAAChF,gCAAAA,CAAqB,YAAA,EAAc,SAAA,CAAA,GAAaiF,yBAAAA;IACjD,CAACjF,gCAAAA,CAAqB,YAAA,EAAc,QAAA,CAAA,GAAYkF;AACpD;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"primeReactPackage.js","sources":["../../primeReactPackage.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { PackageKind, ScenePackage } from '@cratis/scene.model';\nimport { ScenePackageBundle } from '@cratis/scene.react';\nimport { primeReactComponents } from './primeReactComponents';\nimport { primeReactThemeNames, primeReactThemes } from './theme';\n\n/**\n * The `PrimeReact` package's declaration - what a `ui profile` lists by name and what a\n * `PackageDependency` refers to.\n *\n * The component list is written out rather than derived from the registry, on purpose. A manifest is\n * read by Stage's build and Studio's design-time queries *without loading a single component*, so it has\n * to stand on its own as the statement of what this package offers. Keeping it as its own list is also\n * what gives `validatePackageBundle` something real to check: two independently maintained lists that\n * must agree, rather than one list compared against itself.\n */\nexport const primeReactPackageManifest: ScenePackage = {\n name: 'PrimeReact',\n version: '11.1.0',\n kind: PackageKind.ComponentLibrary,\n\n /**\n * PrimeReact's own components need nothing from Tailwind - they are skinned by the `--p-*` custom\n * properties the active `@primeuix/themes` preset emits. The dependency is here because *this\n * package's wrappers* use Tailwind utility classes\n * for the layout around them: the row a checkbox and its label sit on, the column a radio group\n * stacks into, the grid a summary lays its pairs out in. A profile that activates this package\n * without Tailwind renders those wrappers unstyled, so declaring it is what makes the profile picker\n * offer Tailwind alongside PrimeReact instead of leaving the gap to be discovered on screen.\n */\n dependencies: [{ name: 'Tailwind' }],\n\n components: [\n 'inputText', 'inputTextarea', 'inputNumber', 'password', 'floatLabel', 'iconField', 'dropdown', 'multiSelect',\n 'listBox', 'selectButton', 'checkbox', 'radioButton', 'toggleSwitch', 'slider', 'rating', 'knob', 'calendar', 'colorPicker',\n 'chips', 'autoComplete', 'treeSelect', 'button', 'splitButton', 'speedDial', 'buttonGroup', 'dataTable', 'table',\n 'column', 'dataView', 'tree', 'timeline', 'paginator', 'orderList', 'pickList', 'organizationChart',\n 'card', 'panel', 'accordion', 'fieldset', 'divider', 'splitter', 'scrollPanel', 'tabView', 'toolbar', 'stepper', 'dialog',\n 'confirmDialog', 'overlayPanel', 'sidebar', 'tooltip', 'menu', 'menubar', 'breadcrumb', 'tabMenu', 'steps', 'tieredMenu',\n 'panelMenu', 'contextMenu', 'megaMenu', 'dock', 'message', 'inlineMessage', 'toast', 'image', 'galleria', 'carousel', 'avatar',\n 'badge', 'chip', 'tag', 'progressBar', 'progressSpinner', 'skeleton', 'scrollTop', 'blockUI', 'inplace', 'terminal', 'text',\n 'title', 'field', 'section', 'summary', 'action',\n ],\n\n /**\n * Empty, and it stays empty. A layout is an application's base navigational look - one per\n * application - and choosing it is a decision about the product, not about which widgets are\n * available. A component library supplies the vocabulary a layout is built *from*; a\n * {@link PackageKind.Blueprint} package supplies the layout itself.\n */\n layouts: [],\n\n /**\n * Empty for the same reason `layouts` is. A screen template is a reusable page shape at module,\n * feature or slice level - \"list with filters and a detail pane\" - and it is composed *out of* the\n * names declared above. Shipping one here would mean this package had opinions about how a screen is\n * arranged, which is a Blueprint's job and not a component library's.\n */\n screenTemplates: [],\n\n /**\n * Empty, as above: a dialog template is a reusable dialog shape, composed from these components by a\n * Blueprint package rather than provided by the library the components come from.\n */\n dialogTemplates: [],\n\n themes: primeReactThemeNames,\n\n displayName: 'PrimeReact',\n description: 'PrimeReact 11 components and PrimeTek\\'s @primeuix/themes presets, mapped onto Scene\\'s abstract component names.',\n module: '@cratis/scene.primereact',\n // PrimeReact 11 is PrimeTek's commercial PrimeUI, not MIT as version 10 was. The Community\n // tier is free for eligible projects but still requires a key, so an author selecting this\n // package needs to see the terms before they select it, not after a banner appears.\n license: 'PrimeUI Community / Commercial',\n licenseUrl: 'https://primeui.dev/licenses/community',\n};\n\n/**\n * The `PrimeReact` package as a loadable bundle - the manifest plus the React components and themes\n * behind the names it declares.\n */\nexport const primeReactPackage: ScenePackageBundle = {\n manifest: primeReactPackageManifest,\n components: primeReactComponents,\n themes: primeReactThemes,\n};\n"],"names":["primeReactPackageManifest","name","version","kind","PackageKind","ComponentLibrary","dependencies","components","layouts","screenTemplates","dialogTemplates","themes","primeReactThemeNames","displayName","description","module","license","licenseUrl","primeReactPackage","manifest","primeReactComponents","primeReactThemes"],"mappings":";;;;;;;;;AAAA;AACA;AAOA;;;;;;;;;UAUaA,yBAAAA,GAA0C;IACnDC,IAAAA,EAAM,YAAA;IACNC,OAAAA,EAAS,QAAA;AACTC,IAAAA,IAAAA,EAAMC,wBAAYC,gBAAgB;AAElC;;;;;;;;AAQC,QACDC,YAAAA,EAAc;AAAC,QAAA;YAAEL,IAAAA,EAAM;AAAW;AAAE,KAAA;IAEpCM,UAAAA,EAAY;A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AAA,OAAA;AAAS,QAAA,MAAA;AAAQ,QAAA,KAAA;AAAO,QAAA,aAAA;AAAe,QAAA,iBAAA;AAAmB,QAAA,UAAA;AAAY,QAAA,WAAA;AAAa,QAAA,SAAA;AAAW,QAAA,SAAA;AAAW,QAAA,UAAA;AAAY,QAAA,MAAA;AACrH,QAAA,OAAA;AAAS,QAAA,OAAA;AAAS,QAAA,SAAA;AAAW,QAAA,SAAA;AAAW,QAAA;AAC3C,KAAA;AAED;;;;;AAKC,QACDC,SAAS,EAAE;AAEX;;;;;AAKC,QACDC,iBAAiB,EAAE;AAEnB;;;AAGC,QACDC,iBAAiB,EAAE;IAEnBC,MAAAA,EAAQC,qCAAAA;IAERC,WAAAA,EAAa,YAAA;IACbC,WAAAA,EAAa,mHAAA;IACbC,MAAAA,EAAQ,0BAAA;;;;IAIRC,OAAAA,EAAS,gCAAA;IACTC,UAAAA,EAAY;AAChB;AAEA;;;UAIaC,iBAAAA,GAAwC;IACjDC,QAAAA,EAAUnB,yBAAAA;IACVO,UAAAA,EAAYa,yCAAAA;IACZT,MAAAA,EAAQU;AACZ;;;;;"}
1
+ {"version":3,"file":"primeReactPackage.js","sources":["../../primeReactPackage.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { PackageKind, ScenePackage } from '@cratis/scene.model';\nimport { ScenePackageBundle } from '@cratis/scene.react';\nimport { primeReactComponents } from './primeReactComponents';\nimport { primeReactThemeNames, primeReactThemes } from './theme';\n\n/**\n * The `PrimeReact` package's declaration - what a `ui profile` lists by name and what a\n * `PackageDependency` refers to.\n *\n * The component list is written out rather than derived from the registry, on purpose. A manifest is\n * read by Stage's build and Studio's design-time queries *without loading a single component*, so it has\n * to stand on its own as the statement of what this package offers. Keeping it as its own list is also\n * what gives `validatePackageBundle` something real to check: two independently maintained lists that\n * must agree, rather than one list compared against itself.\n */\nexport const primeReactPackageManifest: ScenePackage = {\n name: 'PrimeReact',\n version: '11.1.0',\n kind: PackageKind.ComponentLibrary,\n\n /**\n * PrimeReact's own components need nothing from Tailwind - they are skinned by the `--p-*` custom\n * properties the active `@primeuix/themes` preset emits. The dependency is here because *this\n * package's wrappers* use Tailwind utility classes\n * for the layout around them: the row a checkbox and its label sit on, the column a radio group\n * stacks into, the grid a summary lays its pairs out in. A profile that activates this package\n * without Tailwind renders those wrappers unstyled, so declaring it is what makes the profile picker\n * offer Tailwind alongside PrimeReact instead of leaving the gap to be discovered on screen.\n */\n dependencies: [{ name: 'Tailwind' }],\n\n components: [\n 'inputText', 'inputTextarea', 'inputNumber', 'password', 'floatLabel', 'iconField', 'dropdown', 'multiSelect',\n 'listBox', 'selectButton', 'checkbox', 'radioButton', 'toggleSwitch', 'slider', 'rating', 'knob', 'calendar', 'colorPicker',\n 'chips', 'autoComplete', 'treeSelect', 'button', 'splitButton', 'speedDial', 'buttonGroup', 'dataTable', 'table',\n 'column', 'dataView', 'tree', 'timeline', 'paginator', 'orderList', 'pickList', 'organizationChart',\n 'card', 'panel', 'accordion', 'fieldset', 'divider', 'splitter', 'scrollPanel', 'tabView', 'toolbar', 'stepper', 'dialog',\n 'confirmDialog', 'overlayPanel', 'sidebar', 'tooltip', 'menu', 'menubar', 'breadcrumb', 'tabMenu', 'steps', 'tieredMenu',\n 'panelMenu', 'contextMenu', 'megaMenu', 'dock', 'message', 'inlineMessage', 'toast', 'image', 'galleria', 'carousel', 'avatar',\n 'badge', 'chip', 'tag', 'progressBar', 'progressSpinner', 'skeleton', 'scrollTop', 'blockUI', 'inplace', 'terminal', 'text',\n 'title', 'field', 'section', 'summary', 'action',\n ],\n\n /**\n * Empty, and it stays empty. A layout is an application's base navigational look - one per\n * application - and choosing it is a decision about the product, not about which widgets are\n * available. A component library supplies the vocabulary a layout is built *from*; a\n * {@link PackageKind.Blueprint} package supplies the layout itself.\n */\n layouts: [],\n\n /**\n * Empty for the same reason `layouts` is. A screen template is a reusable page shape at module,\n * feature or slice level - \"list with filters and a detail pane\" - and it is composed *out of* the\n * names declared above. Shipping one here would mean this package had opinions about how a screen is\n * arranged, which is a Blueprint's job and not a component library's.\n */\n screenTemplates: [],\n\n /**\n * Empty, as above: a dialog template is a reusable dialog shape, composed from these components by a\n * Blueprint package rather than provided by the library the components come from.\n */\n dialogTemplates: [],\n\n themes: primeReactThemeNames,\n\n displayName: 'PrimeReact',\n description: 'PrimeReact 11 components and PrimeTek\\'s @primeuix/themes presets, mapped onto Scene\\'s abstract component names.',\n module: '@cratis/scene.primereact',\n // PrimeReact 11 is PrimeTek's commercial PrimeUI, not MIT as version 10 was. The Community\n // tier is free for eligible projects but still requires a key, so an author selecting this\n // package needs to see the terms before they select it, not after a banner appears.\n license: 'PrimeUI Community / Commercial',\n licenseUrl: 'https://primeui.dev/licenses/community',\n};\n\n/**\n * The `PrimeReact` package as a loadable bundle - the manifest plus the React components and themes\n * behind the names it declares.\n */\nexport const primeReactPackage: ScenePackageBundle = {\n manifest: primeReactPackageManifest,\n components: primeReactComponents,\n themes: primeReactThemes,\n};\n"],"names":["primeReactPackageManifest","name","version","kind","PackageKind","ComponentLibrary","dependencies","components","layouts","screenTemplates","dialogTemplates","themes","primeReactThemeNames","displayName","description","module","license","licenseUrl","primeReactPackage","manifest","primeReactComponents","primeReactThemes"],"mappings":";;;;;;;;;AAAA;AACA;AAOA;;;;;;;;;UAUaA,yBAAAA,GAA0C;IACnDC,IAAAA,EAAM,YAAA;IACNC,OAAAA,EAAS,QAAA;AACTC,IAAAA,IAAAA,EAAMC,wBAAYC,gBAAgB;AAElC;;;;;;;;AAQC,QACDC,YAAAA,EAAc;AAAC,QAAA;YAAEL,IAAAA,EAAM;AAAW;AAAE,KAAA;IAEpCM,UAAAA,EAAY;AACR,QAAA,WAAA;AAAa,QAAA,eAAA;AAAiB,QAAA,aAAA;AAAe,QAAA,UAAA;AAAY,QAAA,YAAA;AAAc,QAAA,WAAA;AAAa,QAAA,UAAA;AAAY,QAAA,aAAA;AAChG,QAAA,SAAA;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AW,QAAA,UAAA;AAAY,QAAA,MAAA;AACrH,QAAA,OAAA;AAAS,QAAA,OAAA;AAAS,QAAA,SAAA;AAAW,QAAA,SAAA;AAAW,QAAA;AAC3C,KAAA;AAED;;;;;AAKC,QACDC,SAAS,EAAE;AAEX;;;;;AAKC,QACDC,iBAAiB,EAAE;AAEnB;;;AAGC,QACDC,iBAAiB,EAAE;IAEnBC,MAAAA,EAAQC,qCAAAA;IAERC,WAAAA,EAAa,YAAA;IACbC,WAAAA,EAAa,mHAAA;IACbC,MAAAA,EAAQ,0BAAA;;;;IAIRC,OAAAA,EAAS,gCAAA;IACTC,UAAAA,EAAY;AAChB;AAEA;;;UAIaC,iBAAAA,GAAwC;IACjDC,QAAAA,EAAUnB,yBAAAA;IACVO,UAAAA,EAAYa,yCAAAA;IACZT,MAAAA,EAAQU;AACZ;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"properties.js","sources":["../../properties.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { SceneElement } from '@cratis/scene.model';\nimport { PrimeSeverity } from './PrimeSeverity';\nimport { SelectOption } from './SelectOption';\n\n/** Every severity PrimeReact 11 knows, so an unrecognized one can fall back rather than reach a component. */\nconst severities: PrimeSeverity[] = ['secondary', 'info', 'success', 'warn', 'danger', 'help', 'contrast'];\n\n/**\n * Reads a string configuration value off a Scene element.\n *\n * `SceneElement.properties` is `Record<string, unknown>` because a screen's properties come from\n * authored model data, not from a compiler that knows this package's expectations. Every adapter\n * therefore has to narrow before it can use a value, and doing that with a cast would defeat the point -\n * a mistyped property would sail through and blow up inside PrimeReact instead of quietly falling back\n * here. These helpers are the single narrowing point, so a wrong type behaves exactly like an absent\n * one everywhere.\n *\n * @param element The element whose properties to read.\n * @param name The property name.\n * @param fallback The value to use when the property is missing or is not a string.\n * @returns The string value, or `fallback` (`undefined` when none was given).\n */\nexport function stringProperty(element: SceneElement, name: string): string | undefined;\nexport function stringProperty(element: SceneElement, name: string, fallback: string): string;\nexport function stringProperty(element: SceneElement, name: string, fallback?: string): string | undefined {\n const value = element.properties[name];\n return typeof value === 'string' ? value : fallback;\n}\n\n/**\n * Reads a boolean configuration value off a Scene element.\n *\n * @param element The element whose properties to read.\n * @param name The property name.\n * @param fallback The value to use when the property is missing or is not a boolean.\n * @returns The boolean value, or `fallback` (`undefined` when none was given).\n */\nexport function booleanProperty(element: SceneElement, name: string): boolean | undefined;\nexport function booleanProperty(element: SceneElement, name: string, fallback: boolean): boolean;\nexport function booleanProperty(element: SceneElement, name: string, fallback?: boolean): boolean | undefined {\n const value = element.properties[name];\n return typeof value === 'boolean' ? value : fallback;\n}\n\n/**\n * Reads a numeric configuration value off a Scene element.\n *\n * `NaN` is rejected alongside non-numbers: it is a number by `typeof` but never a usable size, count or\n * bound, and letting it through would surface as an unexplained blank component rather than a fallback.\n *\n * @param element The element whose properties to read.\n * @param name The property name.\n * @param fallback The value to use when the property is missing or is not a usable number.\n * @returns The numeric value, or `fallback` (`undefined` when none was given).\n */\nexport function numberProperty(element: SceneElement, name: string): number | undefined;\nexport function numberProperty(element: SceneElement, name: string, fallback: number): number;\nexport function numberProperty(element: SceneElement, name: string, fallback?: number): number | undefined {\n const value = element.properties[name];\n return typeof value === 'number' && !Number.isNaN(value) ? value : fallback;\n}\n\n/**\n * Reads an array configuration value off a Scene element, as raw entries.\n *\n * Always returns an array - an absent or wrongly typed property becomes an empty one - because every\n * caller is about to map over it, and a component rendering nothing is a far better failure than one\n * throwing on `undefined.map`.\n *\n * @param element The element whose properties to read.\n * @param name The property name.\n * @returns The entries, or an empty array when the property is missing or is not an array.\n */\nexport function arrayProperty(element: SceneElement, name: string): unknown[] {\n const value = element.properties[name];\n return Array.isArray(value) ? value : [];\n}\n\n/**\n * Reads an array of strings off a Scene element, dropping any entry that is not one.\n *\n * @param element The element whose properties to read.\n * @param name The property name.\n * @returns The string entries, in order.\n */\nexport function stringArrayProperty(element: SceneElement, name: string): string[] {\n return arrayProperty(element, name).filter((entry): entry is string => typeof entry === 'string');\n}\n\n/**\n * Reads an array of objects off a Scene element, dropping any entry that is not one.\n *\n * This is the shape row data, column definitions and menu items all arrive in, so it is the common\n * bottom step every structured reader in this package builds on.\n *\n * @param element The element whose properties to read.\n * @param name The property name.\n * @returns The object entries, in order.\n */\nexport function recordArrayProperty(element: SceneElement, name: string): Record<string, unknown>[] {\n return arrayProperty(element, name).filter(\n (entry): entry is Record<string, unknown> => typeof entry === 'object' && entry !== undefined && entry !== null && !Array.isArray(entry)\n );\n}\n\n/**\n * Reads a selection component's options off a Scene element, normalizing both shapes a screen may use.\n *\n * A screen written by hand tends to say `options: ['Draft', 'Published']`; one generated from a model\n * says `options: [{ label: 'Draft', value: 'draft' }]`. Both are reasonable, so both are accepted and\n * flattened to {@link SelectOption} - an entry with only a label uses that label as its value, which is\n * exactly what the shorthand means.\n *\n * @param element The element whose properties to read.\n * @param name The property name.\n * @returns The normalized options, in order, skipping entries that carry no usable label.\n */\nexport function optionsProperty(element: SceneElement, name: string): SelectOption[] {\n const options: SelectOption[] = [];\n for (const entry of arrayProperty(element, name)) {\n if (typeof entry === 'string') {\n options.push({ label: entry, value: entry });\n continue;\n }\n\n if (typeof entry !== 'object' || entry === undefined || entry === null || Array.isArray(entry)) continue;\n\n const record = entry as Record<string, unknown>;\n const label = typeof record.label === 'string' ? record.label : undefined;\n const value = typeof record.value === 'string' ? record.value : label;\n if (label !== undefined && value !== undefined) options.push({ label, value });\n }\n\n return options;\n}\n\n/**\n * Reads a severity off a Scene element, in the vocabulary PrimeReact 11 uses.\n *\n * This exists because PrimeReact renamed one severity between v10 and v11 - `warning` became `warn` - and\n * the rename is silent in the worst way. The v11 prop types are string-literal unions, so an unchanged\n * `warning` does not fail to compile when it arrives through `stringProperty`; it simply falls through to\n * the default color, and a screen authored against the old vocabulary loses its warning styling without\n * anything reporting a problem.\n *\n * Six adapters need that translation, which is five too many to leave copied. Putting it here also keeps\n * the promise the rest of this file makes: properties are narrowed in exactly one place, so an\n * unrecognized value behaves the same way everywhere - like an absent one, rather than like a broken one.\n *\n * @param element The element whose properties to read.\n * @param name The property name, `severity` for every current caller.\n * @param fallback The severity to use when the property is missing or is not one PrimeReact knows.\n * @returns The severity, or `fallback` (`undefined` when none was given).\n */\nexport function severityProperty(element: SceneElement, name: string): PrimeSeverity | undefined;\nexport function severityProperty(element: SceneElement, name: string, fallback: PrimeSeverity): PrimeSeverity;\nexport function severityProperty(element: SceneElement, name: string, fallback?: PrimeSeverity): PrimeSeverity | undefined {\n const authored = stringProperty(element, name);\n const translated = authored === 'warning' ? 'warn' : authored;\n return severities.includes(translated as PrimeSeverity) ? (translated as PrimeSeverity) : fallback;\n}\n"],"names":["severities","stringProperty","element","name","fallback","value","properties","booleanProperty","numberProperty","Number","isNaN","arrayProperty","Array","isArray","stringArrayProperty","filter","entry","recordArrayProperty","undefined","optionsProperty","options","push","label","record","severityProperty","authored","translated","includes"],"mappings":";;AAAA;AACA;AAMA,+GACA,MAAMA,UAAAA,GAA8B;AAAC,IAAA,WAAA;AAAa,IAAA,MAAA;AAAQ,IAAA,SAAA;AAAW,IAAA,MAAA;AAAQ,IAAA,QAAA;AAAU,IAAA,MAAA;AAAQ,IAAA;AAAW,CAAA;AAmBnG,SAASC,cAAAA,CAAeC,OAAqB,EAAEC,IAAY,EAAEC,QAAiB,EAAA;AACjF,IAAA,MAAMC,KAAAA,GAAQH,OAAAA,CAAQI,UAAU,CAACH,IAAAA,CAAK;IACtC,OAAO,OAAOE,KAAAA,KAAU,QAAA,GAAWA,KAAAA,GAAQD,QAAAA;AAC/C;AAYO,SAASG,eAAAA,CAAgBL,OAAqB,EAAEC,IAAY,EAAEC,QAAkB,EAAA;AACnF,IAAA,MAAMC,KAAAA,GAAQH,OAAAA,CAAQI,UAAU,CAACH,IAAAA,CAAK;IACtC,OAAO,OAAOE,KAAAA,KAAU,SAAA,GAAYA,KAAAA,GAAQD,QAAAA;AAChD;AAeO,SAASI,cAAAA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,IAAI,CAAC;gBAAEC,KAAAA,EAAON,KAAAA;gBAAOX,KAAAA,EAAOW;AAAM,aAAA,CAAA;AAC1C,YAAA;AACJ,QAAA;QAEA,IAAI,OAAOA,KAAAA,KAAU,QAAA,IAAYA,KAAAA,KAAUE,SAAAA,IAAaF,UAAU,IAAA,IAAQJ,KAAAA,CAAMC,OAAO,CAACG,KAAAA,CAAAA,EAAQ;AAEhG,QAAA,MAAMO,MAAAA,GAASP,KAAAA;QACf,MAAMM,KAAAA,GAAQ,OAAOC,MAAAA,CAAOD,KAAK,KAAK,QAAA,GAAWC,MAAAA,CAAOD,KAAK,GAAGJ,SAAAA;QAChE,MAAMb,KAAAA,GAAQ,OAAOkB,MAAAA,CAAOlB,KAAK,KAAK,QAAA,GAAWkB,MAAAA,CAAOlB,KAAK,GAAGiB,KAAAA;AAChE,QAAA,IAAIA,UAAUJ,SAAAA,IAAab,KAAAA,KAAUa,SAAAA,EAAWE,OAAAA,CAAQC,IAAI,CAAC;AAAEC,YAAAA,KAAAA;AAAOjB,YAAAA;AAAM,SAAA,CAAA;AAChF,IAAA;IAEA,OAAOe,OAAAA;AACX;AAsBO,SAASI,gBAAAA,CAAiBtB,OAAqB,EAAEC,IAAY,EAAEC,QAAwB,EAAA;IAC1F,MAAMqB,QAAAA,GAAWxB,eAAeC,OAAAA,EAASC,IAAAA,CAAAA;IACzC,MAAMuB,UAAAA,GAAaD,QAAAA,KAAa,SAAA,GAAY,MAAA,GAASA,QAAAA;AACrD,IAAA,OAAOzB,UAAAA,CAAW2B,QAAQ,CAACD,UAAAA,CAAAA,GAAgCA,UAAAA,GAA+BtB,QAAAA;AAC9F;;;;;;;;;;;"}
1
+ {"version":3,"file":"properties.js","sources":["../../properties.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { SceneElement } from '@cratis/scene.model';\nimport { PrimeSeverity } from './PrimeSeverity';\nimport { SelectOption } from './SelectOption';\n\n/** Every severity PrimeReact 11 knows, so an unrecognized one can fall back rather than reach a component. */\nconst severities: PrimeSeverity[] = ['secondary', 'info', 'success', 'warn', 'danger', 'help', 'contrast'];\n\n/**\n * Reads a string configuration value off a Scene element.\n *\n * `SceneElement.properties` is `Record<string, unknown>` because a screen's properties come from\n * authored model data, not from a compiler that knows this package's expectations. Every adapter\n * therefore has to narrow before it can use a value, and doing that with a cast would defeat the point -\n * a mistyped property would sail through and blow up inside PrimeReact instead of quietly falling back\n * here. These helpers are the single narrowing point, so a wrong type behaves exactly like an absent\n * one everywhere.\n *\n * @param element The element whose properties to read.\n * @param name The property name.\n * @param fallback The value to use when the property is missing or is not a string.\n * @returns The string value, or `fallback` (`undefined` when none was given).\n */\nexport function stringProperty(element: SceneElement, name: string): string | undefined;\nexport function stringProperty(element: SceneElement, name: string, fallback: string): string;\nexport function stringProperty(element: SceneElement, name: string, fallback?: string): string | undefined {\n const value = element.properties[name];\n return typeof value === 'string' ? value : fallback;\n}\n\n/**\n * Reads a boolean configuration value off a Scene element.\n *\n * @param element The element whose properties to read.\n * @param name The property name.\n * @param fallback The value to use when the property is missing or is not a boolean.\n * @returns The boolean value, or `fallback` (`undefined` when none was given).\n */\nexport function booleanProperty(element: SceneElement, name: string): boolean | undefined;\nexport function booleanProperty(element: SceneElement, name: string, fallback: boolean): boolean;\nexport function booleanProperty(element: SceneElement, name: string, fallback?: boolean): boolean | undefined {\n const value = element.properties[name];\n return typeof value === 'boolean' ? value : fallback;\n}\n\n/**\n * Reads a numeric configuration value off a Scene element.\n *\n * `NaN` is rejected alongside non-numbers: it is a number by `typeof` but never a usable size, count or\n * bound, and letting it through would surface as an unexplained blank component rather than a fallback.\n *\n * @param element The element whose properties to read.\n * @param name The property name.\n * @param fallback The value to use when the property is missing or is not a usable number.\n * @returns The numeric value, or `fallback` (`undefined` when none was given).\n */\nexport function numberProperty(element: SceneElement, name: string): number | undefined;\nexport function numberProperty(element: SceneElement, name: string, fallback: number): number;\nexport function numberProperty(element: SceneElement, name: string, fallback?: number): number | undefined {\n const value = element.properties[name];\n return typeof value === 'number' && !Number.isNaN(value) ? value : fallback;\n}\n\n/**\n * Reads an array configuration value off a Scene element, as raw entries.\n *\n * Always returns an array - an absent or wrongly typed property becomes an empty one - because every\n * caller is about to map over it, and a component rendering nothing is a far better failure than one\n * throwing on `undefined.map`.\n *\n * @param element The element whose properties to read.\n * @param name The property name.\n * @returns The entries, or an empty array when the property is missing or is not an array.\n */\nexport function arrayProperty(element: SceneElement, name: string): unknown[] {\n const value = element.properties[name];\n return Array.isArray(value) ? value : [];\n}\n\n/**\n * Reads an array of strings off a Scene element, dropping any entry that is not one.\n *\n * @param element The element whose properties to read.\n * @param name The property name.\n * @returns The string entries, in order.\n */\nexport function stringArrayProperty(element: SceneElement, name: string): string[] {\n return arrayProperty(element, name).filter((entry): entry is string => typeof entry === 'string');\n}\n\n/**\n * Reads an array of objects off a Scene element, dropping any entry that is not one.\n *\n * This is the shape row data, column definitions and menu items all arrive in, so it is the common\n * bottom step every structured reader in this package builds on.\n *\n * @param element The element whose properties to read.\n * @param name The property name.\n * @returns The object entries, in order.\n */\nexport function recordArrayProperty(element: SceneElement, name: string): Record<string, unknown>[] {\n return arrayProperty(element, name).filter(\n (entry): entry is Record<string, unknown> => typeof entry === 'object' && entry !== undefined && entry !== null && !Array.isArray(entry)\n );\n}\n\n/**\n * Reads a selection component's options off a Scene element, normalizing both shapes a screen may use.\n *\n * A screen written by hand tends to say `options: ['Draft', 'Published']`; one generated from a model\n * says `options: [{ label: 'Draft', value: 'draft' }]`. Both are reasonable, so both are accepted and\n * flattened to {@link SelectOption} - an entry with only a label uses that label as its value, which is\n * exactly what the shorthand means.\n *\n * @param element The element whose properties to read.\n * @param name The property name.\n * @returns The normalized options, in order, skipping entries that carry no usable label.\n */\nexport function optionsProperty(element: SceneElement, name: string): SelectOption[] {\n const options: SelectOption[] = [];\n for (const entry of arrayProperty(element, name)) {\n if (typeof entry === 'string') {\n options.push({ label: entry, value: entry });\n continue;\n }\n\n if (typeof entry !== 'object' || entry === undefined || entry === null || Array.isArray(entry)) continue;\n\n const record = entry as Record<string, unknown>;\n const label = typeof record.label === 'string' ? record.label : undefined;\n const value = typeof record.value === 'string' ? record.value : label;\n if (label !== undefined && value !== undefined) options.push({ label, value });\n }\n\n return options;\n}\n\n/**\n * Reads a severity off a Scene element, in the vocabulary PrimeReact 11 uses.\n *\n * This exists because PrimeReact renamed one severity between v10 and v11 - `warning` became `warn` - and\n * the rename is silent in the worst way. The v11 prop types are string-literal unions, so an unchanged\n * `warning` does not fail to compile when it arrives through `stringProperty`; it simply falls through to\n * the default color, and a screen authored against the old vocabulary loses its warning styling without\n * anything reporting a problem.\n *\n * Six adapters need that translation, which is five too many to leave copied. Putting it here also keeps\n * the promise the rest of this file makes: properties are narrowed in exactly one place, so an\n * unrecognized value behaves the same way everywhere - like an absent one, rather than like a broken one.\n *\n * @param element The element whose properties to read.\n * @param name The property name, `severity` for every current caller.\n * @param fallback The severity to use when the property is missing or is not one PrimeReact knows.\n * @returns The severity, or `fallback` (`undefined` when none was given).\n */\nexport function severityProperty(element: SceneElement, name: string): PrimeSeverity | undefined;\nexport function severityProperty(element: SceneElement, name: string, fallback: PrimeSeverity): PrimeSeverity;\nexport function severityProperty(element: SceneElement, name: string, fallback?: PrimeSeverity): PrimeSeverity | undefined {\n const authored = stringProperty(element, name);\n const translated = authored === 'warning' ? 'warn' : authored;\n return severities.includes(translated as PrimeSeverity) ? (translated as PrimeSeverity) : fallback;\n}\n"],"names":["severities","stringProperty","element","name","fallback","value","properties","booleanProperty","numberProperty","Number","isNaN","arrayProperty","Array","isArray","stringArrayProperty","filter","entry","recordArrayProperty","undefined","optionsProperty","options","push","label","record","severityProperty","authored","translated","includes"],"mappings":";;AAAA;AACA;AAMA,+GACA,MAAMA,UAAAA,GAA8B;AAAC,IAAA,WAAA;AAAa,IAAA,MAAA;AAAQ,IAAA,SAAA;AAAW,IAAA,MAAA;AAAQ,IAAA,QAAA;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OAAqB,EAAEC,IAAY,EAAEC,QAAwB,EAAA;IAC1F,MAAMqB,QAAAA,GAAWxB,eAAeC,OAAAA,EAASC,IAAAA,CAAAA;IACzC,MAAMuB,UAAAA,GAAaD,QAAAA,KAAa,SAAA,GAAY,MAAA,GAASA,QAAAA;AACrD,IAAA,OAAOzB,UAAAA,CAAW2B,QAAQ,CAACD,UAAAA,CAAAA,GAAgCA,UAAAA,GAA+BtB,QAAAA;AAC9F;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"PrimeAction.js","sources":["../../../screen/PrimeAction.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { Button } from 'primereact/button';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { booleanProperty, stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:action` component - one of Screenplay's screen directives: something the user can do.\n *\n * A button, but not the same adapter as `button`. Screenplay describes an action by its *intent* - is\n * this the main thing to do here, a secondary one, a destructive one - and that vocabulary is what a\n * screen author writes. Translating intent to PrimeReact's `severity` here keeps the mapping in one\n * place, so a change to how destructive actions look is one edit rather than one per screen.\n *\n * PrimeReact 11 renamed the `warning` severity to `warn`, which is why the union below is not the v10\n * one. No intent currently maps to it, but the type has to be right for the one that eventually does.\n */\nconst severityForIntent: Record<string, 'secondary' | 'success' | 'info' | 'warn' | 'danger' | 'help' | 'contrast' | undefined> = {\n primary: undefined,\n secondary: 'secondary',\n destructive: 'danger',\n danger: 'danger',\n positive: 'success',\n success: 'success',\n};\n\n/**\n * Renders the action.\n *\n * Two v10 conveniences are gone in PrimeReact 11 and are assembled here instead. `Button` no longer takes\n * `label` and `icon` props - it renders its children - so the icon element and the label text are composed\n * directly. And `outlined` is no longer a boolean; outlining is one of the values of `variant`.\n *\n * The icon is `aria-hidden` because the label already names the action; announcing a decorative glyph\n * beside it would have a screen reader say the same thing twice.\n */\nexport function PrimeAction({ element }: RegisteredComponentProps) {\n const intent = stringProperty(element, 'intent', 'primary');\n const icon = stringProperty(element, 'icon');\n return (\n <Button\n data-scene-id={element.id}\n severity={severityForIntent[intent]}\n variant={intent === 'secondary' ? 'outlined' : undefined}\n disabled={booleanProperty(element, 'disabled', false)}>\n {icon !== undefined && <i className={icon} aria-hidden='true' />}\n {stringProperty(element, 'label', '')}\n </Button>\n );\n}\n"],"names":["severityForIntent","primary","undefined","secondary","destructive","danger","positive","success","PrimeAction","element","intent","stringProperty","icon","_jsxs","Button","data-scene-id","id","severity","variant","disabled","booleanProperty","_jsx","i","className","aria-hidden"],"mappings":";;;;;;AAOA;;;;;;;;;;AAUC,IACD,MAAMA,iBAAAA,GAA4H;IAC9HC,OAAAA,EAASC,SAAAA;IACTC,SAAAA,EAAW,WAAA;IACXC,WAAAA,EAAa,QAAA;IACbC,MAAAA,EAAQ,QAAA;IACRC,QAAAA,EAAU,SAAA;IACVC,OAAAA,EAAS;AACb,CAAA;AAEA;;;;;;;;;AASC,IACM,SAASC,WAAAA,CAAY,EAAEC,OAAO,EAA4B,EAAA;IAC7D,MAAMC,MAAAA,GAASC,yBAAAA,CAAeF,OAAAA,EAAS,QAAA,EAAU,SAAA,CAAA;IACjD,MAAMG,IAAAA,GAAOD,0BAAeF,OAAAA,EAAS,MAAA,CAAA;AACrC,IAAA,qBACII,eAAA,CAACC,aAAAA,EAAAA;AACGC,QAAAA,eAAAA,EAAeN,QAAQO,EAAE;QACzBC,QAAAA,EAAUjB,iBAAiB,CAACU,MAAAA,CAAO;QACnCQ,OAAAA,EAASR,MAAAA,KAAW,cAAc,UAAA,GAAaR,SAAAA;QAC/CiB,QAAAA,EAAUC,0BAAAA,CAAgBX,SAAS,UAAA,EAAY,KAAA,CAAA;;AAC9CG,YAAAA,IAAAA,KAASV,2BAAamB,cAAA,CAACC,GAAAA,EAAAA;gBAAEC,SAAAA,EAAWX,IAAAA;gBAAMY,aAAAA,EAAY;;AACtDb,YAAAA,yBAAAA,CAAeF,SAAS,OAAA,EAAS,EAAA;;;AAG9C;;;;"}
1
+ {"version":3,"file":"PrimeAction.js","sources":["../../../screen/PrimeAction.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { Button } from 'primereact/button';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { booleanProperty, stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:action` component - one of Screenplay's screen directives: something the user can do.\n *\n * A button, but not the same adapter as `button`. Screenplay describes an action by its *intent* - is\n * this the main thing to do here, a secondary one, a destructive one - and that vocabulary is what a\n * screen author writes. Translating intent to PrimeReact's `severity` here keeps the mapping in one\n * place, so a change to how destructive actions look is one edit rather than one per screen.\n *\n * PrimeReact 11 renamed the `warning` severity to `warn`, which is why the union below is not the v10\n * one. No intent currently maps to it, but the type has to be right for the one that eventually does.\n */\nconst severityForIntent: Record<string, 'secondary' | 'success' | 'info' | 'warn' | 'danger' | 'help' | 'contrast' | undefined> = {\n primary: undefined,\n secondary: 'secondary',\n destructive: 'danger',\n danger: 'danger',\n positive: 'success',\n success: 'success',\n};\n\n/**\n * Renders the action.\n *\n * Two v10 conveniences are gone in PrimeReact 11 and are assembled here instead. `Button` no longer takes\n * `label` and `icon` props - it renders its children - so the icon element and the label text are composed\n * directly. And `outlined` is no longer a boolean; outlining is one of the values of `variant`.\n *\n * The icon is `aria-hidden` because the label already names the action; announcing a decorative glyph\n * beside it would have a screen reader say the same thing twice.\n */\nexport function PrimeAction({ element }: RegisteredComponentProps) {\n const intent = stringProperty(element, 'intent', 'primary');\n const icon = stringProperty(element, 'icon');\n return (\n <Button\n data-scene-id={element.id}\n severity={severityForIntent[intent]}\n variant={intent === 'secondary' ? 'outlined' : undefined}\n disabled={booleanProperty(element, 'disabled', false)}>\n {icon !== undefined && <i className={icon} aria-hidden='true' />}\n {stringProperty(element, 'label', '')}\n </Button>\n );\n}\n"],"names":["severityForIntent","primary","undefined","secondary","destructive","danger","positive","success","PrimeAction","element","intent","stringProperty","icon","_jsxs","Button","data-scene-id","id","severity","variant","disabled","booleanProperty","_jsx","i","className","aria-hidden"],"mappings":";;;;;;AAOA;;;;;;;;;;AAUC,IACD,MAAMA,iBAAAA,GAA4H;IAC9HC,OAAAA,EAASC,SAAAA;IACTC,SAAAA,EAAW,WAAA;IACXC,WAAAA,EAAa,QAAA;IACbC,MAAAA,EAAQ,QAAA;IACRC,QAAAA,EAAU,SAAA;IACVC,OAAAA,EAAS;AACb,CAAA;AAEA;;;;;;;;;AASC,IACM,SAASC,WAAAA,CAAY,EAAEC,OAAO,EAA4B,EAAA;IAC7D,MAAMC,MAAAA,GAASC,yBAAAA,CAAeF,OAAAA,EAAS,QAAA,EAAU,SAAA,CAAA;IACjD,MAAMG,IAAAA,GAAOD,0BAAeF,OAAAA,EAAS,MAAA,CAAA;AACrC,IAAA,qBACII,eAAA,CAACC,aAAAA,EAAAA;AACGC,QAAAA,eAAAA,EAAeN,QAAQO,EAAE;QACzBC,QAAAA,EAAUjB,iBAAiB,CAACU,MAAAA,CAAO;QACnCQ,OAAAA,EAASR,MAAAA,KAAW,cAAc,UAAA,GAAaR,SAAAA;QAC/CiB,QAAAA,EAAUC,0BAAAA,CAAgBX,SAAS,UAAA,EAAY,KAAA,CAAA;;AAC9CG,YAAAA,IAAAA,KAASV,2BAAamB,cAAA,CAACC,GAAAA,EAAAA;gBAAEC,SAAAA,EAAWX,IAAAA;gBAAMY,aAAAA,EAAY;;AACtDb,YAAAA,yBAAAA,CAAeF,SAAS,OAAA,EAAS,EAAA;;;AAG9C;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"PrimeField.js","sources":["../../../screen/PrimeField.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:field` component - one of Screenplay's screen directives: a labeled value.\n *\n * The label is bound to the value with `aria-labelledby` rather than left as two adjacent pieces of text,\n * so the pair is announced as one thing. When the `content` slot carries an editor, that editor is shown\n * instead of the static value - which is what lets the same directive serve a detail view and a form.\n */\nexport function PrimeField({ element, slots }: RegisteredComponentProps) {\n const labelId = `${element.id}-label`;\n return (\n <div data-scene-id={element.id} className='flex flex-col gap-1'>\n <span id={labelId} className='text-sm' style={{ color: 'var(--scene-text-muted-color)' }}>\n {stringProperty(element, 'label', '')}\n </span>\n <div aria-labelledby={labelId} style={{ color: 'var(--scene-text-color)' }}>\n {slots.content?.length ? slots.content : stringProperty(element, 'value', '')}\n </div>\n </div>\n );\n}\n"],"names":["PrimeField","element","slots","labelId","id","_jsxs","div","data-scene-id","className","_jsx","span","style","color","stringProperty","aria-labelledby","content","length"],"mappings":";;;;;AAAA;AACA;AAKA;;;;;;AAMC,IACM,SAASA,UAAAA,CAAW,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;AACnE,IAAA,MAAMC,UAAU,CAAA,EAAGF,OAAAA,CAAQG,EAAE,CAAC,MAAM,CAAC;AACrC,IAAA,qBACIC,eAAA,CAACC,KAAAA,EAAAA;AAAIC,QAAAA,eAAAA,EAAeN,QAAQG,EAAE;QAAEI,SAAAA,EAAU,qBAAA;;0BACtCC,cAAA,CAACC,MAAAA,EAAAA;gBAAKN,EAAAA,EAAID,OAAAA;gBAASK,SAAAA,EAAU,SAAA;gBAAUG,KAAAA,EAAO;oBAAEC,KAAAA,EAAO;AAAgC,iBAAA;AAClFC,gBAAAA,QAAAA,EAAAA,yBAAAA,CAAeZ,SAAS,OAAA,EAAS,EAAA;;0BAEtCQ,cAAA,CAACH,KAAAA,EAAAA;gBAAIQ,iBAAAA,EAAiBX,OAAAA;gBAASQ,KAAAA,EAAO;oBAAEC,KAAAA,EAAO;AAA0B,iBAAA;0BACpEV,KAAAA,CAAMa,OAAO,EAAEC,MAAAA,GAASd,KAAAA,CAAMa,OAAO,GAAGF,yBAAAA,CAAeZ,SAAS,OAAA,EAAS,EAAA;;;;AAI1F;;;;"}
1
+ {"version":3,"file":"PrimeField.js","sources":["../../../screen/PrimeField.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:field` component - one of Screenplay's screen directives: a labeled value.\n *\n * The label is bound to the value with `aria-labelledby` rather than left as two adjacent pieces of text,\n * so the pair is announced as one thing. When the `content` slot carries an editor, that editor is shown\n * instead of the static value - which is what lets the same directive serve a detail view and a form.\n */\nexport function PrimeField({ element, slots }: RegisteredComponentProps) {\n const labelId = `${element.id}-label`;\n return (\n <div data-scene-id={element.id} className='flex flex-col gap-1'>\n <span id={labelId} className='text-sm' style={{ color: 'var(--scene-text-muted-color)' }}>\n {stringProperty(element, 'label', '')}\n </span>\n <div aria-labelledby={labelId} style={{ color: 'var(--scene-text-color)' }}>\n {slots.content?.length ? slots.content : stringProperty(element, 'value', '')}\n </div>\n </div>\n );\n}\n"],"names":["PrimeField","element","slots","labelId","id","_jsxs","div","data-scene-id","className","_jsx","span","style","color","stringProperty","aria-labelledby","content","length"],"mappings":";;;;;AAAA;AACA;AAKA;;;;;;AAMC,IACM,SAASA,UAAAA,CAAW,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;AACnE,IAAA,MAAMC,UAAU,CAAA,EAAGF,OAAAA,CAAQG,EAAE,CAAC,MAAM,CAAC;AACrC,IAAA,qBACIC,eAAA,CAACC,KAAAA,EAAAA;AAAIC,QAAAA,eAAAA,EAAeN,QAAQG,EAAE;QAAEI,SAAAA,EAAU,qBAAA;;0BACtCC,cAAA,CAACC,MAAAA,EAAAA;gBAAKN,EAAAA,EAAID,OAAAA;gBAASK,SAAAA,EAAU,SAAA;gBAAUG,KAAAA,EAAO;oBAAEC,KAAAA,EAAO;AAAgC,iBAAA;AAClFC,gBAAAA,QAAAA,EAAAA,yBAAAA,CAAeZ,SAAS,OAAA,EAAS,EAAA;;0BAEtCQ,cAAA,CAACH,KAAAA,EAAAA;gBAAIQ,iBAAAA,EAAiBX,OAAAA;gBAASQ,KAAAA,EAAO;oBAAEC,KAAAA,EAAO;AAA0B,iBAAA;0BACpEV,KAAAA,CAAMa,OAAO,EAAEC,MAAAA,GAASd,KAAAA,CAAMa,OAAO,GAAGF,yBAAAA,CAAeZ,SAAS,OAAA,EAAS,EAAA;;;;AAI1F;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"PrimeSection.js","sources":["../../../screen/PrimeSection.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { Divider } from 'primereact/divider';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:section` component - one of Screenplay's screen directives: a titled grouping.\n *\n * A real `<section>` with a heading, not a styled `div`: the grouping is the point of the directive, and\n * only the semantic element actually creates one for assistive technology. The rule under the heading is\n * PrimeReact's `Divider`, so the separation is themed with everything else rather than hard-coded.\n */\nexport function PrimeSection({ element, slots }: RegisteredComponentProps) {\n const title = stringProperty(element, 'title');\n return (\n <section data-scene-id={element.id} className='flex flex-col'>\n {title !== undefined && (\n <>\n <h2 className='text-lg font-semibold' style={{ color: 'var(--scene-text-color)' }}>\n {title}\n </h2>\n <Divider />\n </>\n )}\n <div className='flex flex-col gap-3'>{slots.content}</div>\n </section>\n );\n}\n"],"names":["PrimeSection","element","slots","title","stringProperty","_jsxs","section","data-scene-id","id","className","undefined","_Fragment","_jsx","h2","style","color","Divider","div","content"],"mappings":";;;;;;AAOA;;;;;;AAMC,IACM,SAASA,YAAAA,CAAa,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;IACrE,MAAMC,KAAAA,GAAQC,0BAAeH,OAAAA,EAAS,OAAA,CAAA;AACtC,IAAA,qBACII,eAAA,CAACC,SAAAA,EAAAA;AAAQC,QAAAA,eAAAA,EAAeN,QAAQO,EAAE;QAAEC,SAAAA,EAAU,eAAA;;AACzCN,YAAAA,KAAAA,KAAUO,SAAAA,kBACPL,eAAA,CAAAM,mBAAA,EAAA;;kCACIC,cAAA,CAACC,IAAAA,EAAAA;wBAAGJ,SAAAA,EAAU,uBAAA;wBAAwBK,KAAAA,EAAO;4BAAEC,KAAAA,EAAO;AAA0B,yBAAA;AAC3EZ,wBAAAA,QAAAA,EAAAA;;kCAELS,cAAA,CAACI,eAAAA,EAAAA,EAAAA;;;0BAGTJ,cAAA,CAACK,KAAAA,EAAAA;gBAAIR,SAAAA,EAAU,qBAAA;AAAuBP,gBAAAA,QAAAA,EAAAA,KAAAA,CAAMgB;;;;AAGxD;;;;"}
1
+ {"version":3,"file":"PrimeSection.js","sources":["../../../screen/PrimeSection.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { Divider } from 'primereact/divider';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:section` component - one of Screenplay's screen directives: a titled grouping.\n *\n * A real `<section>` with a heading, not a styled `div`: the grouping is the point of the directive, and\n * only the semantic element actually creates one for assistive technology. The rule under the heading is\n * PrimeReact's `Divider`, so the separation is themed with everything else rather than hard-coded.\n */\nexport function PrimeSection({ element, slots }: RegisteredComponentProps) {\n const title = stringProperty(element, 'title');\n return (\n <section data-scene-id={element.id} className='flex flex-col'>\n {title !== undefined && (\n <>\n <h2 className='text-lg font-semibold' style={{ color: 'var(--scene-text-color)' }}>\n {title}\n </h2>\n <Divider />\n </>\n )}\n <div className='flex flex-col gap-3'>{slots.content}</div>\n </section>\n );\n}\n"],"names":["PrimeSection","element","slots","title","stringProperty","_jsxs","section","data-scene-id","id","className","undefined","_Fragment","_jsx","h2","style","color","Divider","div","content"],"mappings":";;;;;;AAOA;;;;;;AAMC,IACM,SAASA,YAAAA,CAAa,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;IACrE,MAAMC,KAAAA,GAAQC,0BAAeH,OAAAA,EAAS,OAAA,CAAA;AACtC,IAAA,qBACII,eAAA,CAACC,SAAAA,EAAAA;AAAQC,QAAAA,eAAAA,EAAeN,QAAQO,EAAE;QAAEC,SAAAA,EAAU,eAAA;;AACzCN,YAAAA,KAAAA,KAAUO,SAAAA,kBACPL,eAAA,CAAAM,mBAAA,EAAA;;kCACIC,cAAA,CAACC,IAAAA,EAAAA;wBAAGJ,SAAAA,EAAU,uBAAA;wBAAwBK,KAAAA,EAAO;4BAAEC,KAAAA,EAAO;AAA0B,yBAAA;AAC3EZ,wBAAAA,QAAAA,EAAAA;;kCAELS,cAAA,CAACI,eAAAA,EAAAA,EAAAA;;;0BAGTJ,cAAA,CAACK,KAAAA,EAAAA;gBAAIR,SAAAA,EAAU,qBAAA;AAAuBP,gBAAAA,QAAAA,EAAAA,KAAAA,CAAMgB;;;;AAGxD;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"PrimeSummary.js","sources":["../../../screen/PrimeSummary.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { Card } from 'primereact/card';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { recordArrayProperty, stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:summary` component - one of Screenplay's screen directives: the headline facts about\n * one thing.\n *\n * Rendered as a description list inside a card. A description list is the correct element for\n * label/value pairs and gets the pairing across to a screen reader for free, which a grid of `div`s does\n * not.\n *\n * PrimeReact 11 made `Card` compositional, so the v10 `<Card title=...>` form is assembled here from\n * `Card.Root` / `Card.Body` / `Card.Caption` / `Card.Title` / `Card.Content` instead.\n *\n * The nesting matters and is easy to get wrong. `Card.Body` is the part that carries the padding - it is\n * the only one of them the preset gives a `padding` token - so everything visible has to sit inside it.\n * A title placed in a `Card.Header` instead renders flush to the card edge with no styling at all,\n * because `header` is not a themed part: the preset's `card` tokens are exactly `root`, `body`,\n * `caption`, `title` and `subtitle`, and `p-card-header` is v11's slot for a media image above the body.\n *\n * The caption is rendered only when a title was authored. v10 collapsed an absent `title` to nothing, and\n * an empty `Card.Caption` still reserves its own gap, which would leave a stray band above a summary that\n * simply has no heading.\n */\nexport function PrimeSummary({ element, slots }: RegisteredComponentProps) {\n const items = recordArrayProperty(element, 'items');\n const title = stringProperty(element, 'title');\n return (\n <Card.Root data-scene-id={element.id}>\n <Card.Body>\n {title !== undefined && (\n <Card.Caption>\n <Card.Title>{title}</Card.Title>\n </Card.Caption>\n )}\n <Card.Content>\n <dl className='grid grid-cols-2 gap-2'>\n {items.map((item, index) => (\n <div key={index} className='flex flex-col'>\n <dt className='text-sm' style={{ color: 'var(--scene-text-muted-color)' }}>\n {String(item.label ?? '')}\n </dt>\n <dd style={{ color: 'var(--scene-text-color)' }}>{String(item.value ?? '')}</dd>\n </div>\n ))}\n </dl>\n {slots.content}\n </Card.Content>\n </Card.Body>\n </Card.Root>\n );\n}\n"],"names":["PrimeSummary","element","slots","items","recordArrayProperty","title","stringProperty","_jsx","Card","Root","data-scene-id","id","_jsxs","Body","undefined","Caption","Title","Content","dl","className","map","item","index","div","dt","style","color","String","label","dd","value","content"],"mappings":";;;;;;AAOA;;;;;;;;;;;;;;;;;;;;AAoBC,IACM,SAASA,YAAAA,CAAa,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;IACrE,MAAMC,KAAAA,GAAQC,+BAAoBH,OAAAA,EAAS,OAAA,CAAA;IAC3C,MAAMI,KAAAA,GAAQC,0BAAeL,OAAAA,EAAS,OAAA,CAAA;IACtC,qBACIM,cAAA,CAACC,UAAKC,IAAI,EAAA;AAACC,QAAAA,eAAAA,EAAeT,QAAQU,EAAE;gCAChCC,eAAA,CAACJ,UAAKK,IAAI,EAAA;;gBACLR,KAAAA,KAAUS,SAAAA,kBACPP,cAAA,CAACC,SAAAA,CAAKO,OAAO,EAAA;4CACTR,cAAA,CAACC,UAAKQ,KAAK,EAAA;AAAEX,wBAAAA,QAAAA,EAAAA;;;AAGrB,8BAAAO,eAAA,CAACJ,UAAKS,OAAO,EAAA;;sCACbV,cAAA,CAACW,IAAAA,EAAAA;4BAAGC,SAAAA,EAAU,wBAAA;AACThB,4BAAAA,QAAAA,EAAAA,KAAAA,CAAMiB,GAAG,CAAC,CAACC,IAAAA,EAAMC,sBACdV,eAAA,CAACW,KAAAA,EAAAA;oCAAgBJ,SAAAA,EAAU,eAAA;;sDACvBZ,cAAA,CAACiB,IAAAA,EAAAA;4CAAGL,SAAAA,EAAU,SAAA;4CAAUM,KAAAA,EAAO;gDAAEC,KAAAA,EAAO;AAAgC,6CAAA;sDACnEC,MAAAA,CAAON,IAAAA,CAAKO,KAAK,IAAI,EAAA;;sDAE1BrB,cAAA,CAACsB,IAAAA,EAAAA;4CAAGJ,KAAAA,EAAO;gDAAEC,KAAAA,EAAO;AAA0B,6CAAA;sDAAIC,MAAAA,CAAON,IAAAA,CAAKS,KAAK,IAAI,EAAA;;;AAJjER,iCAAAA,EAAAA,KAAAA,CAAAA;;AAQbpB,wBAAAA,KAAAA,CAAM6B;;;;;;AAK3B;;;;"}
1
+ {"version":3,"file":"PrimeSummary.js","sources":["../../../screen/PrimeSummary.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { Card } from 'primereact/card';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { recordArrayProperty, stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:summary` component - one of Screenplay's screen directives: the headline facts about\n * one thing.\n *\n * Rendered as a description list inside a card. A description list is the correct element for\n * label/value pairs and gets the pairing across to a screen reader for free, which a grid of `div`s does\n * not.\n *\n * PrimeReact 11 made `Card` compositional, so the v10 `<Card title=...>` form is assembled here from\n * `Card.Root` / `Card.Body` / `Card.Caption` / `Card.Title` / `Card.Content` instead.\n *\n * The nesting matters and is easy to get wrong. `Card.Body` is the part that carries the padding - it is\n * the only one of them the preset gives a `padding` token - so everything visible has to sit inside it.\n * A title placed in a `Card.Header` instead renders flush to the card edge with no styling at all,\n * because `header` is not a themed part: the preset's `card` tokens are exactly `root`, `body`,\n * `caption`, `title` and `subtitle`, and `p-card-header` is v11's slot for a media image above the body.\n *\n * The caption is rendered only when a title was authored. v10 collapsed an absent `title` to nothing, and\n * an empty `Card.Caption` still reserves its own gap, which would leave a stray band above a summary that\n * simply has no heading.\n */\nexport function PrimeSummary({ element, slots }: RegisteredComponentProps) {\n const items = recordArrayProperty(element, 'items');\n const title = stringProperty(element, 'title');\n return (\n <Card.Root data-scene-id={element.id}>\n <Card.Body>\n {title !== undefined && (\n <Card.Caption>\n <Card.Title>{title}</Card.Title>\n </Card.Caption>\n )}\n <Card.Content>\n <dl className='grid grid-cols-2 gap-2'>\n {items.map((item, index) => (\n <div key={index} className='flex flex-col'>\n <dt className='text-sm' style={{ color: 'var(--scene-text-muted-color)' }}>\n {String(item.label ?? '')}\n </dt>\n <dd style={{ color: 'var(--scene-text-color)' }}>{String(item.value ?? '')}</dd>\n </div>\n ))}\n </dl>\n {slots.content}\n </Card.Content>\n </Card.Body>\n </Card.Root>\n );\n}\n"],"names":["PrimeSummary","element","slots","items","recordArrayProperty","title","stringProperty","_jsx","Card","Root","data-scene-id","id","_jsxs","Body","undefined","Caption","Title","Content","dl","className","map","item","index","div","dt","style","color","String","label","dd","value","content"],"mappings":";;;;;;AAOA;;;;;;;;;;;;;;;;;;;;AAoBC,IACM,SAASA,YAAAA,CAAa,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;IACrE,MAAMC,KAAAA,GAAQC,+BAAoBH,OAAAA,EAAS,OAAA,CAAA;IAC3C,MAAMI,KAAAA,GAAQC,0BAAeL,OAAAA,EAAS,OAAA,CAAA;IACtC,qBACIM,cAAA,CAACC,UAAKC,IAAI,EAAA;AAACC,QAAAA,eAAAA,EAAeT,QAAQU,EAAE;gCAChCC,eAAA,CAACJ,UAAKK,IAAI,EAAA;;gBACLR,KAAAA,KAAUS,SAAAA,kBACPP,cAAA,CAACC,SAAAA,CAAKO,OAAO,EAAA;4CACTR,cAAA,CAACC,UAAKQ,KAAK,EAAA;AAAEX,wBAAAA,QAAAA,EAAAA;;;AAGrB,8BAAAO,eAAA,CAACJ,UAAKS,OAAO,EAAA;;sCACbV,cAAA,CAACW,IAAAA,EAAAA;4BAAGC,SAAAA,EAAU,wBAAA;AACThB,4BAAAA,QAAAA,EAAAA,KAAAA,CAAMiB,GAAG,CAAC,CAACC,IAAAA,EAAMC,sBACdV,eAAA,CAACW,KAAAA,EAAAA;oCAAgBJ,SAAAA,EAAU,eAAA;;sDACvBZ,cAAA,CAACiB,IAAAA,EAAAA;4CAAGL,SAAAA,EAAU,SAAA;4CAAUM,KAAAA,EAAO;gDAAEC,KAAAA,EAAO;AAAgC,6CAAA;sDACnEC,MAAAA,CAAON,IAAAA,CAAKO,KAAK,IAAI,EAAA;;sDAE1BrB,cAAA,CAACsB,IAAAA,EAAAA;4CAAGJ,KAAAA,EAAO;gDAAEC,KAAAA,EAAO;AAA0B,6CAAA;sDAAIC,MAAAA,CAAON,IAAAA,CAAKS,KAAK,IAAI,EAAA;;;AAJjER,iCAAAA,EAAAA,KAAAA,CAAAA;;AAQbpB,wBAAAA,KAAAA,CAAM6B;;;;;;AAK3B;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"PrimeText.js","sources":["../../../screen/PrimeText.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { booleanProperty, stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:text` component - a run of prose.\n *\n * PrimeReact has no text primitive, so this one is written directly rather than wrapped. It is still\n * worth shipping: it claims the bare name `core` also declares, and unlike core's unstyled span it picks\n * up the active theme's type color and muting through the Scene token bridge. That is the smallest\n * possible demonstration of why override priority exists - the same screen, the same name, better output\n * once a component library is in the profile.\n */\nexport function PrimeText({ element, slots }: RegisteredComponentProps) {\n const muted = booleanProperty(element, 'muted', false);\n const strong = booleanProperty(element, 'strong', false);\n return (\n <span\n data-scene-id={element.id}\n className={`${muted ? 'opacity-75' : ''} ${strong ? 'font-semibold' : ''}`.trim()}\n style={{ color: muted ? 'var(--scene-text-muted-color)' : 'var(--scene-text-color)' }}>\n {stringProperty(element, 'text', '')}\n {slots.content}\n </span>\n );\n}\n"],"names":["PrimeText","element","slots","muted","booleanProperty","strong","_jsxs","span","data-scene-id","id","className","trim","style","color","stringProperty","content"],"mappings":";;;;;AAAA;AACA;AAKA;;;;;;;;AAQC,IACM,SAASA,SAAAA,CAAU,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;IAClE,MAAMC,KAAAA,GAAQC,0BAAAA,CAAgBH,OAAAA,EAAS,OAAA,EAAS,KAAA,CAAA;IAChD,MAAMI,MAAAA,GAASD,0BAAAA,CAAgBH,OAAAA,EAAS,QAAA,EAAU,KAAA,CAAA;AAClD,IAAA,qBACIK,eAAA,CAACC,MAAAA,EAAAA;AACGC,QAAAA,eAAAA,EAAeP,QAAQQ,EAAE;QACzBC,SAAAA,EAAW,CAAA,EAAGP,KAAAA,GAAQ,YAAA,GAAe,EAAA,CAAG,CAAC,EAAEE,MAAAA,GAAS,eAAA,GAAkB,EAAA,CAAA,CAAI,CAACM,IAAI,EAAA;QAC/EC,KAAAA,EAAO;AAAEC,YAAAA,KAAAA,EAAOV,QAAQ,+BAAA,GAAkC;AAA0B,SAAA;;AACnFW,YAAAA,yBAAAA,CAAeb,SAAS,MAAA,EAAQ,EAAA,CAAA;AAChCC,YAAAA,KAAAA,CAAMa;;;AAGnB;;;;"}
1
+ {"version":3,"file":"PrimeText.js","sources":["../../../screen/PrimeText.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { booleanProperty, stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:text` component - a run of prose.\n *\n * PrimeReact has no text primitive, so this one is written directly rather than wrapped. It is still\n * worth shipping: it claims the bare name `core` also declares, and unlike core's unstyled span it picks\n * up the active theme's type color and muting through the Scene token bridge. That is the smallest\n * possible demonstration of why override priority exists - the same screen, the same name, better output\n * once a component library is in the profile.\n */\nexport function PrimeText({ element, slots }: RegisteredComponentProps) {\n const muted = booleanProperty(element, 'muted', false);\n const strong = booleanProperty(element, 'strong', false);\n return (\n <span\n data-scene-id={element.id}\n className={`${muted ? 'opacity-75' : ''} ${strong ? 'font-semibold' : ''}`.trim()}\n style={{ color: muted ? 'var(--scene-text-muted-color)' : 'var(--scene-text-color)' }}>\n {stringProperty(element, 'text', '')}\n {slots.content}\n </span>\n );\n}\n"],"names":["PrimeText","element","slots","muted","booleanProperty","strong","_jsxs","span","data-scene-id","id","className","trim","style","color","stringProperty","content"],"mappings":";;;;;AAAA;AACA;AAKA;;;;;;;;AAQC,IACM,SAASA,SAAAA,CAAU,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;IAClE,MAAMC,KAAAA,GAAQC,0BAAAA,CAAgBH,OAAAA,EAAS,OAAA,EAAS,KAAA,CAAA;IAChD,MAAMI,MAAAA,GAASD,0BAAAA,CAAgBH,OAAAA,EAAS,QAAA,EAAU,KAAA,CAAA;AAClD,IAAA,qBACIK,eAAA,CAACC,MAAAA,EAAAA;AACGC,QAAAA,eAAAA,EAAeP,QAAQQ,EAAE;QACzBC,SAAAA,EAAW,CAAA,EAAGP,KAAAA,GAAQ,YAAA,GAAe,EAAA,CAAG,CAAC,EAAEE,MAAAA,GAAS,eAAA,GAAkB,EAAA,CAAA,CAAI,CAACM,IAAI,EAAA;QAC/EC,KAAAA,EAAO;AAAEC,YAAAA,KAAAA,EAAOV,QAAQ,+BAAA,GAAkC;AAA0B,SAAA;;AACnFW,YAAAA,yBAAAA,CAAeb,SAAS,MAAA,EAAQ,EAAA,CAAA;AAChCC,YAAAA,KAAAA,CAAMa;;;AAGnB;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"PrimeTitle.js","sources":["../../../screen/PrimeTitle.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { createElement } from 'react';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { numberProperty, stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:title` component - one of Screenplay's screen directives.\n *\n * Renders a real heading element at the authored level rather than a styled span, because heading level\n * is the document outline a screen reader navigates by; getting it right is not a styling choice. The\n * level is clamped to 1-6 so an out-of-range value degrades to a valid heading instead of an invalid tag.\n */\nexport function PrimeTitle({ element }: RegisteredComponentProps) {\n const level = Math.min(6, Math.max(1, Math.round(numberProperty(element, 'level', 1))));\n const sizes = ['text-3xl', 'text-2xl', 'text-xl', 'text-lg', 'text-base', 'text-sm'];\n return createElement(\n `h${level}`,\n {\n 'data-scene-id': element.id,\n className: `${sizes[level - 1]} font-semibold`,\n style: { color: 'var(--scene-text-color)' },\n },\n stringProperty(element, 'text', '')\n );\n}\n"],"names":["PrimeTitle","element","level","Math","min","max","round","numberProperty","sizes","createElement","id","className","style","color","stringProperty"],"mappings":";;;;;AAAA;AACA;AAMA;;;;;;AAMC,IACM,SAASA,UAAAA,CAAW,EAAEC,OAAO,EAA4B,EAAA;AAC5D,IAAA,MAAMC,KAAAA,GAAQC,IAAAA,CAAKC,GAAG,CAAC,GAAGD,IAAAA,CAAKE,GAAG,CAAC,CAAA,EAAGF,IAAAA,CAAKG,KAAK,CAACC,yBAAAA,CAAeN,SAAS,OAAA,EAAS,CAAA,CAAA,CAAA,CAAA,CAAA;AAClF,IAAA,MAAMO,KAAAA,GAAQ;AAAC,QAAA,UAAA;AAAY,QAAA,UAAA;AAAY,QAAA,SAAA;AAAW,QAAA,SAAA;AAAW,QAAA,WAAA;AAAa,QAAA;AAAU,KAAA;AACpF,IAAA,qBAAOC,mBAAAA,CACH,CAAC,CAAC,EAAEP,OAAO,EACX;AACI,QAAA,eAAA,EAAiBD,QAAQS,EAAE;AAC3BC,QAAAA,SAAAA,EAAW,GAAGH,KAAK,CAACN,QAAQ,CAAA,CAAE,CAAC,cAAc,CAAC;QAC9CU,KAAAA,EAAO;YAAEC,KAAAA,EAAO;AAA0B;KAC9C,EACAC,yBAAAA,CAAeb,SAAS,MAAA,EAAQ,EAAA,CAAA,CAAA;AAExC;;;;"}
1
+ {"version":3,"file":"PrimeTitle.js","sources":["../../../screen/PrimeTitle.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { createElement } from 'react';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { numberProperty, stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:title` component - one of Screenplay's screen directives.\n *\n * Renders a real heading element at the authored level rather than a styled span, because heading level\n * is the document outline a screen reader navigates by; getting it right is not a styling choice. The\n * level is clamped to 1-6 so an out-of-range value degrades to a valid heading instead of an invalid tag.\n */\nexport function PrimeTitle({ element }: RegisteredComponentProps) {\n const level = Math.min(6, Math.max(1, Math.round(numberProperty(element, 'level', 1))));\n const sizes = ['text-3xl', 'text-2xl', 'text-xl', 'text-lg', 'text-base', 'text-sm'];\n return createElement(\n `h${level}`,\n {\n 'data-scene-id': element.id,\n className: `${sizes[level - 1]} font-semibold`,\n style: { color: 'var(--scene-text-color)' },\n },\n stringProperty(element, 'text', '')\n );\n}\n"],"names":["PrimeTitle","element","level","Math","min","max","round","numberProperty","sizes","createElement","id","className","style","color","stringProperty"],"mappings":";;;;;AAAA;AACA;AAMA;;;;;;AAMC,IACM,SAASA,UAAAA,CAAW,EAAEC,OAAO,EAA4B,EAAA;AAC5D,IAAA,MAAMC,KAAAA,GAAQC,IAAAA,CAAKC,GAAG,CAAC,GAAGD,IAAAA,CAAKE,GAAG,CAAC,CAAA,EAAGF,IAAAA,CAAKG,KAAK,CAACC,yBAAAA,CAAeN,SAAS,OAAA,EAAS,CAAA,CAAA,CAAA,CAAA,CAAA;AAClF,IAAA,MAAMO,KAAAA,GAAQ;AAAC,QAAA,UAAA;AAAY,QAAA,UAAA;AAAY,QAAA,SAAA;AAAW,QAAA,SAAA;AAAW,QAAA,WAAA;AAAa,QAAA;AAAU,KAAA;AACpF,IAAA,qBAAOC,mBAAAA,CACH,CAAC,CAAC,EAAEP,OAAO,EACX;AACI,QAAA,eAAA,EAAiBD,QAAQS,EAAE;AAC3BC,QAAAA,SAAAA,EAAW,GAAGH,KAAK,CAACN,QAAQ,CAAA,CAAE,CAAC,cAAc,CAAC;QAC9CU,KAAAA,EAAO;YAAEC,KAAAA,EAAO;AAA0B;KAC9C,EACAC,yBAAAA,CAAeb,SAAS,MAAA,EAAQ,EAAA,CAAA,CAAA;AAExC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"PrimeReactThemeFamily.js","sources":["../../../theme/PrimeReactThemeFamily.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n/**\n * The `@primeuix/themes` preset families a PrimeReact 11 theme can be built on.\n *\n * PrimeReact 10 had no concept like this: a theme was a folder name and a compiled stylesheet, and the\n * family it belonged to was a naming convention rather than anything the code could act on. In v11 the\n * family is the actual unit of design - a JavaScript preset object supplied to `PrimeReactProvider` -\n * and a Scene theme is that preset plus an accent color. Making it an enum rather than a string means a\n * theme cannot name a family that does not exist, and `primeReactThemePreset` gets an exhaustive\n * `switch` the compiler checks when PrimeTek adds a fifth family.\n */\nexport enum PrimeReactThemeFamily {\n /**\n * Aura - PrimeTek's flagship design language for v11, and the one their own documentation defaults\n * to. Softer radii and a lower-contrast surface ramp than Lara.\n */\n Aura = 'aura',\n\n /**\n * Lara - the family Scene shipped throughout PrimeReact 10. Carried forward so an application\n * upgrading from v10 can keep a recognisably similar look.\n */\n Lara = 'lara',\n\n /**\n * Nora - tighter spacing, squarer corners and heavier borders. The most compact of the four.\n */\n Nora = 'nora',\n\n /**\n * Material - PrimeTek's reading of Material Design, and the nearest thing v11 has to the v10\n * `md-*` and `mdc-*` themes.\n */\n Material = 'material',\n}\n"],"names":["PrimeReactThemeFamily"],"mappings":";;AAAA;AACA;AAEA;;;;;;;;;IAUO,IAAKA,qBAAAA,iBAAAA,SAAAA,qBAAAA,EAAAA;AACR;;;AAGC,QAAA,qBAAA,CAAA,MAAA,CAAA,GAAA,MAAA;AAGD;;;AAGC,QAAA,qBAAA,CAAA,MAAA,CAAA,GAAA,MAAA;AAGD;;AAEC,QAAA,qBAAA,CAAA,MAAA,CAAA,GAAA,MAAA;AAGD;;;AAGC,QAAA,qBAAA,CAAA,UAAA,CAAA,GAAA,UAAA;AArBOA,IAAAA,OAAAA,qBAAAA;AAuBX,CAAA,CAAA,EAAA;;;;"}
1
+ {"version":3,"file":"PrimeReactThemeFamily.js","sources":["../../../theme/PrimeReactThemeFamily.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n/**\n * The `@primeuix/themes` preset families a PrimeReact 11 theme can be built on.\n *\n * PrimeReact 10 had no concept like this: a theme was a folder name and a compiled stylesheet, and the\n * family it belonged to was a naming convention rather than anything the code could act on. In v11 the\n * family is the actual unit of design - a JavaScript preset object supplied to `PrimeReactProvider` -\n * and a Scene theme is that preset plus an accent color. Making it an enum rather than a string means a\n * theme cannot name a family that does not exist, and `primeReactThemePreset` gets an exhaustive\n * `switch` the compiler checks when PrimeTek adds a fifth family.\n */\nexport enum PrimeReactThemeFamily {\n /**\n * Aura - PrimeTek's flagship design language for v11, and the one their own documentation defaults\n * to. Softer radii and a lower-contrast surface ramp than Lara.\n */\n Aura = 'aura',\n\n /**\n * Lara - the family Scene shipped throughout PrimeReact 10. Carried forward so an application\n * upgrading from v10 can keep a recognisably similar look.\n */\n Lara = 'lara',\n\n /**\n * Nora - tighter spacing, squarer corners and heavier borders. The most compact of the four.\n */\n Nora = 'nora',\n\n /**\n * Material - PrimeTek's reading of Material Design, and the nearest thing v11 has to the v10\n * `md-*` and `mdc-*` themes.\n */\n Material = 'material',\n}\n"],"names":["PrimeReactThemeFamily"],"mappings":";;AAAA;AACA;AAEA;;;;;;;;;IAUO,IAAKA,qBAAAA,iBAAAA,SAAAA,qBAAAA,EAAAA;AACR;;;AAGC,QAAA,qBAAA,CAAA,MAAA,CAAA,GAAA,MAAA;AAGD;;;AAGC,QAAA,qBAAA,CAAA,MAAA,CAAA,GAAA,MAAA;AAGD;;AAEC,QAAA,qBAAA,CAAA,MAAA,CAAA,GAAA,MAAA;AAGD;;;AAGC,QAAA,qBAAA,CAAA,UAAA,CAAA,GAAA,UAAA;AArBOA,IAAAA,OAAAA,qBAAAA;AAuBX,CAAA,CAAA,EAAA;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"primeReactThemePreset.js","sources":["../../../theme/primeReactThemePreset.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { definePreset } from '@primeuix/themes';\nimport Aura from '@primeuix/themes/aura';\nimport Lara from '@primeuix/themes/lara';\nimport Material from '@primeuix/themes/material';\nimport Nora from '@primeuix/themes/nora';\nimport { PrimeReactThemeFamily } from './PrimeReactThemeFamily';\nimport { themePresets } from './themePresets';\n\n/**\n * A `@primeuix/themes` preset, as `PrimeReactProvider` wants it.\n *\n * `@primeuix/themes` types this as `Preset`, but the type is generic over the preset's own token shape\n * and the four families do not share one instantiation, so naming the union here rather than importing\n * `Preset` keeps the call sites free of casts.\n */\nexport type PrimeReactPreset = typeof Aura | typeof Lara | typeof Nora | typeof Material;\n\n/**\n * The base preset object for each family.\n *\n * These are PrimeTek's own preset exports, untouched. The accent binding in\n * {@link primeReactThemePreset} is applied on top with `definePreset`, which merges rather than mutates -\n * important, because these objects are module singletons and two themes tinted differently must not\n * fight over one shared object.\n */\nconst basePresets: Record<PrimeReactThemeFamily, PrimeReactPreset> = {\n [PrimeReactThemeFamily.Aura]: Aura,\n [PrimeReactThemeFamily.Lara]: Lara,\n [PrimeReactThemeFamily.Nora]: Nora,\n [PrimeReactThemeFamily.Material]: Material,\n};\n\n/**\n * Presets are built once per theme name and reused.\n *\n * `definePreset` deep-merges, so calling it per render would produce a new object every time - and\n * `PrimeReactProvider` treats a new preset identity as a theme change, which re-emits every `--p-*`\n * custom property. Caching keeps switching themes cheap and, more importantly, keeps *not* switching\n * free.\n */\nconst presetCache = new Map<string, PrimeReactPreset>();\n\n/**\n * Resolves one of this package's themes to the `@primeuix/themes` preset that renders it.\n *\n * This is what replaced `primeReactThemeStylesheet` in the PrimeReact 11 port, and the change is the\n * whole shape of theming in v11 in one function. A v10 theme was a *file*: the question was which URL to\n * load, the answer was a string, and applying it meant swapping a `<link>`. A v11 theme is an *object*:\n * the question is which preset to hand `PrimeReactProvider`, the answer is a value, and applying it\n * means re-rendering a provider. Nothing is fetched, so there is no unstyled flash on switch and no way\n * for a theme to 404.\n *\n * The accent is bound by overriding the preset's `primary` scale with a primitive color ramp the preset\n * already ships - so `lara-light-teal` is genuinely Lara with Lara's own teal, not an approximation\n * mixed here.\n *\n * @param themeName The theme name, as it appears in {@link themePresets}.\n * @returns The preset, or `undefined` when this package ships no theme by that name. `undefined` rather\n * than a default preset, because silently theming a screen as something other than what was asked for is\n * harder to notice than nothing happening.\n */\nexport function primeReactThemePreset(themeName: string): PrimeReactPreset | undefined {\n const cached = presetCache.get(themeName);\n if (cached !== undefined) return cached;\n\n const preset = themePresets.find((candidate) => candidate.name === themeName);\n if (preset === undefined) return undefined;\n\n const base = basePresets[preset.family];\n\n // The ramp is looked up by name, so its type has to be widened to index the primitives and then\n // narrowed again for `definePreset`. `ColorScale` is the shape every primitive color in a preset has -\n // the 50..950 steps - and `primaryColor` is only ever one of those names, guaranteed by the catalog.\n const primitives = base.primitive as unknown as Record<string, Record<string, string>>;\n const ramp = primitives[preset.primaryColor];\n const built = definePreset(base, { semantic: { primary: ramp } }) as PrimeReactPreset;\n\n presetCache.set(themeName, built);\n return built;\n}\n"],"names":["basePresets","PrimeReactThemeFamily","Aura","Lara","Nora","Material","presetCache","Map","primeReactThemePreset","themeName","cached","get","undefined","preset","themePresets","find","candidate","name","base","family","primitives","primitive","ramp","primaryColor","built","definePreset","semantic","primary","set"],"mappings":";;;;;;;;;;AAAA;AACA;AAmBA;;;;;;;AAOC,IACD,MAAMA,WAAAA,GAA+D;IACjE,CAACC,2CAAAA,CAAsBC,IAAI,GAAGA,IAAAA;IAC9B,CAACD,2CAAAA,CAAsBE,IAAI,GAAGA,IAAAA;IAC9B,CAACF,2CAAAA,CAAsBG,IAAI,GAAGA,IAAAA;IAC9B,CAACH,2CAAAA,CAAsBI,QAAQ,GAAGA;AACtC,CAAA;AAEA;;;;;;;IAQA,MAAMC,cAAc,IAAIC,GAAAA,EAAAA;AAExB;;;;;;;;;;;;;;;;;;IAmBO,SAASC,qBAAAA,CAAsBC,SAAiB,EAAA;IACnD,MAAMC,MAAAA,GAASJ,WAAAA,CAAYK,GAAG,CAACF,SAAAA,CAAAA;IAC/B,IAAIC,MAAAA,KAAWE,WAAW,OAAOF,MAAAA;IAEjC,MAAMG,MAAAA,GAASC,0BAAaC,IAAI,CAAC,CAACC,SAAAA,GAAcA,SAAAA,CAAUC,IAAI,KAAKR,SAAAA,CAAAA;IACnE,IAAII,MAAAA,KAAWD,WAAW,OAAOA,SAAAA;AAEjC,IAAA,MAAMM,IAAAA,GAAOlB,WAAW,CAACa,MAAAA,CAAOM,MAAM,CAAC;;;;IAKvC,MAAMC,UAAAA,GAAaF,KAAKG,SAAS;AACjC,IAAA,MAAMC,IAAAA,GAAOF,UAAU,CAACP,MAAAA,CAAOU,YAAY,CAAC;IAC5C,MAAMC,KAAAA,GAAQC,oBAAaP,IAAAA,EAAM;QAAEQ,QAAAA,EAAU;YAAEC,OAAAA,EAASL;AAAK;AAAE,KAAA,CAAA;IAE/DhB,WAAAA,CAAYsB,GAAG,CAACnB,SAAAA,EAAWe,KAAAA,CAAAA;IAC3B,OAAOA,KAAAA;AACX;;;;"}
1
+ {"version":3,"file":"primeReactThemePreset.js","sources":["../../../theme/primeReactThemePreset.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { definePreset } from '@primeuix/themes';\nimport Aura from '@primeuix/themes/aura';\nimport Lara from '@primeuix/themes/lara';\nimport Material from '@primeuix/themes/material';\nimport Nora from '@primeuix/themes/nora';\nimport { PrimeReactThemeFamily } from './PrimeReactThemeFamily';\nimport { themePresets } from './themePresets';\n\n/**\n * A `@primeuix/themes` preset, as `PrimeReactProvider` wants it.\n *\n * `@primeuix/themes` types this as `Preset`, but the type is generic over the preset's own token shape\n * and the four families do not share one instantiation, so naming the union here rather than importing\n * `Preset` keeps the call sites free of casts.\n */\nexport type PrimeReactPreset = typeof Aura | typeof Lara | typeof Nora | typeof Material;\n\n/**\n * The base preset object for each family.\n *\n * These are PrimeTek's own preset exports, untouched. The accent binding in\n * {@link primeReactThemePreset} is applied on top with `definePreset`, which merges rather than mutates -\n * important, because these objects are module singletons and two themes tinted differently must not\n * fight over one shared object.\n */\nconst basePresets: Record<PrimeReactThemeFamily, PrimeReactPreset> = {\n [PrimeReactThemeFamily.Aura]: Aura,\n [PrimeReactThemeFamily.Lara]: Lara,\n [PrimeReactThemeFamily.Nora]: Nora,\n [PrimeReactThemeFamily.Material]: Material,\n};\n\n/**\n * Presets are built once per theme name and reused.\n *\n * `definePreset` deep-merges, so calling it per render would produce a new object every time - and\n * `PrimeReactProvider` treats a new preset identity as a theme change, which re-emits every `--p-*`\n * custom property. Caching keeps switching themes cheap and, more importantly, keeps *not* switching\n * free.\n */\nconst presetCache = new Map<string, PrimeReactPreset>();\n\n/**\n * Resolves one of this package's themes to the `@primeuix/themes` preset that renders it.\n *\n * This is what replaced `primeReactThemeStylesheet` in the PrimeReact 11 port, and the change is the\n * whole shape of theming in v11 in one function. A v10 theme was a *file*: the question was which URL to\n * load, the answer was a string, and applying it meant swapping a `<link>`. A v11 theme is an *object*:\n * the question is which preset to hand `PrimeReactProvider`, the answer is a value, and applying it\n * means re-rendering a provider. Nothing is fetched, so there is no unstyled flash on switch and no way\n * for a theme to 404.\n *\n * The accent is bound by overriding the preset's `primary` scale with a primitive color ramp the preset\n * already ships - so `lara-light-teal` is genuinely Lara with Lara's own teal, not an approximation\n * mixed here.\n *\n * @param themeName The theme name, as it appears in {@link themePresets}.\n * @returns The preset, or `undefined` when this package ships no theme by that name. `undefined` rather\n * than a default preset, because silently theming a screen as something other than what was asked for is\n * harder to notice than nothing happening.\n */\nexport function primeReactThemePreset(themeName: string): PrimeReactPreset | undefined {\n const cached = presetCache.get(themeName);\n if (cached !== undefined) return cached;\n\n const preset = themePresets.find((candidate) => candidate.name === themeName);\n if (preset === undefined) return undefined;\n\n const base = basePresets[preset.family];\n\n // The ramp is looked up by name, so its type has to be widened to index the primitives and then\n // narrowed again for `definePreset`. `ColorScale` is the shape every primitive color in a preset has -\n // the 50..950 steps - and `primaryColor` is only ever one of those names, guaranteed by the catalog.\n const primitives = base.primitive as unknown as Record<string, Record<string, string>>;\n const ramp = primitives[preset.primaryColor];\n const built = definePreset(base, { semantic: { primary: ramp } }) as PrimeReactPreset;\n\n presetCache.set(themeName, built);\n return built;\n}\n"],"names":["basePresets","PrimeReactThemeFamily","Aura","Lara","Nora","Material","presetCache","Map","primeReactThemePreset","themeName","cached","get","undefined","preset","themePresets","find","candidate","name","base","family","primitives","primitive","ramp","primaryColor","built","definePreset","semantic","primary","set"],"mappings":";;;;;;;;;;AAAA;AACA;AAmBA;;;;;;;AAOC,IACD,MAAMA,WAAAA,GAA+D;IACjE,CAACC,2CAAAA,CAAsBC,IAAI,GAAGA,IAAAA;IAC9B,CAACD,2CAAAA,CAAsBE,IAAI,GAAGA,IAAAA;IAC9B,CAACF,2CAAAA,CAAsBG,IAAI,GAAGA,IAAAA;IAC9B,CAACH,2CAAAA,CAAsBI,QAAQ,GAAGA;AACtC,CAAA;AAEA;;;;;;;IAQA,MAAMC,cAAc,IAAIC,GAAAA,EAAAA;AAExB;;;;;;;;;;;;;;;;;;IAmBO,SAASC,qBAAAA,CAAsBC,SAAiB,EAAA;IACnD,MAAMC,MAAAA,GAASJ,WAAAA,CAAYK,GAAG,CAACF,SAAAA,CAAAA;IAC/B,IAAIC,MAAAA,KAAWE,WAAW,OAAOF,MAAAA;IAEjC,MAAMG,MAAAA,GAASC,0BAAaC,IAAI,CAAC,CAACC,SAAAA,GAAcA,SAAAA,CAAUC,IAAI,KAAKR,SAAAA,CAAAA;IACnE,IAAII,MAAAA,KAAWD,WAAW,OAAOA,SAAAA;AAEjC,IAAA,MAAMM,IAAAA,GAAOlB,WAAW,CAACa,MAAAA,CAAOM,MAAM,CAAC;;;;IAKvC,MAAMC,UAAAA,GAAaF,KAAKG,SAAS;AACjC,IAAA,MAAMC,IAAAA,GAAOF,UAAU,CAACP,MAAAA,CAAOU,YAAY,CAAC;IAC5C,MAAMC,KAAAA,GAAQC,oBAAaP,IAAAA,EAAM;QAAEQ,QAAAA,EAAU;YAAEC,OAAAA,EAASL;AAAK;AAAE,KAAA,CAAA;IAE/DhB,WAAAA,CAAYsB,GAAG,CAACnB,SAAAA,EAAWe,KAAAA,CAAAA;IAC3B,OAAOA,KAAAA;AACX;;"}