@cellarnode/ui 0.17.4 → 0.19.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (353) hide show
  1. package/dist/chat/unified-timeline.d.ts +15 -0
  2. package/dist/chat/unified-timeline.d.ts.map +1 -1
  3. package/dist/chat/unified-timeline.js.map +1 -1
  4. package/dist/index.d.ts +8 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +6 -0
  7. package/dist/index.js.map +1 -1
  8. package/dist/offer/attachments-card.d.ts +9 -0
  9. package/dist/offer/attachments-card.d.ts.map +1 -0
  10. package/dist/offer/attachments-card.js +16 -0
  11. package/dist/offer/attachments-card.js.map +1 -0
  12. package/dist/offer/attachments-card.stories.d.ts +17 -0
  13. package/dist/offer/attachments-card.stories.d.ts.map +1 -0
  14. package/dist/offer/attachments-card.stories.js +24 -0
  15. package/dist/offer/attachments-card.stories.js.map +1 -0
  16. package/dist/offer/buyer-notes-card.d.ts +7 -0
  17. package/dist/offer/buyer-notes-card.d.ts.map +1 -0
  18. package/dist/offer/buyer-notes-card.js +6 -0
  19. package/dist/offer/buyer-notes-card.js.map +1 -0
  20. package/dist/offer/buyer-notes-card.stories.d.ts +16 -0
  21. package/dist/offer/buyer-notes-card.stories.d.ts.map +1 -0
  22. package/dist/offer/buyer-notes-card.stories.js +25 -0
  23. package/dist/offer/buyer-notes-card.stories.js.map +1 -0
  24. package/dist/offer/counter-slide-over.d.ts +44 -0
  25. package/dist/offer/counter-slide-over.d.ts.map +1 -0
  26. package/dist/offer/counter-slide-over.js +81 -0
  27. package/dist/offer/counter-slide-over.js.map +1 -0
  28. package/dist/offer/counter-slide-over.stories.d.ts +23 -0
  29. package/dist/offer/counter-slide-over.stories.d.ts.map +1 -0
  30. package/dist/offer/counter-slide-over.stories.js +235 -0
  31. package/dist/offer/counter-slide-over.stories.js.map +1 -0
  32. package/dist/offer/facts-card.d.ts +32 -0
  33. package/dist/offer/facts-card.d.ts.map +1 -0
  34. package/dist/offer/facts-card.js +87 -0
  35. package/dist/offer/facts-card.js.map +1 -0
  36. package/dist/offer/facts-card.stories.d.ts +25 -0
  37. package/dist/offer/facts-card.stories.d.ts.map +1 -0
  38. package/dist/offer/facts-card.stories.js +177 -0
  39. package/dist/offer/facts-card.stories.js.map +1 -0
  40. package/dist/offer/index.d.ts +39 -0
  41. package/dist/offer/index.d.ts.map +1 -1
  42. package/dist/offer/index.js +21 -0
  43. package/dist/offer/index.js.map +1 -1
  44. package/dist/offer/inline-counter-form.d.ts +16 -0
  45. package/dist/offer/inline-counter-form.d.ts.map +1 -1
  46. package/dist/offer/inline-counter-form.js +8 -0
  47. package/dist/offer/inline-counter-form.js.map +1 -1
  48. package/dist/offer/match-compatibility-card.d.ts +16 -0
  49. package/dist/offer/match-compatibility-card.d.ts.map +1 -0
  50. package/dist/offer/match-compatibility-card.js +27 -0
  51. package/dist/offer/match-compatibility-card.js.map +1 -0
  52. package/dist/offer/match-compatibility-card.stories.d.ts +19 -0
  53. package/dist/offer/match-compatibility-card.stories.d.ts.map +1 -0
  54. package/dist/offer/match-compatibility-card.stories.js +111 -0
  55. package/dist/offer/match-compatibility-card.stories.js.map +1 -0
  56. package/dist/offer/match-glyph.d.ts +14 -0
  57. package/dist/offer/match-glyph.d.ts.map +1 -0
  58. package/dist/offer/match-glyph.js +40 -0
  59. package/dist/offer/match-glyph.js.map +1 -0
  60. package/dist/offer/match-glyph.stories.d.ts +26 -0
  61. package/dist/offer/match-glyph.stories.d.ts.map +1 -0
  62. package/dist/offer/match-glyph.stories.js +26 -0
  63. package/dist/offer/match-glyph.stories.js.map +1 -0
  64. package/dist/offer/match-headline-bar.d.ts +11 -0
  65. package/dist/offer/match-headline-bar.d.ts.map +1 -0
  66. package/dist/offer/match-headline-bar.js +28 -0
  67. package/dist/offer/match-headline-bar.js.map +1 -0
  68. package/dist/offer/match-headline-bar.stories.d.ts +17 -0
  69. package/dist/offer/match-headline-bar.stories.d.ts.map +1 -0
  70. package/dist/offer/match-headline-bar.stories.js +39 -0
  71. package/dist/offer/match-headline-bar.stories.js.map +1 -0
  72. package/dist/offer/match-preview.d.ts +18 -0
  73. package/dist/offer/match-preview.d.ts.map +1 -0
  74. package/dist/offer/match-preview.js +13 -0
  75. package/dist/offer/match-preview.js.map +1 -0
  76. package/dist/offer/match-preview.stories.d.ts +18 -0
  77. package/dist/offer/match-preview.stories.d.ts.map +1 -0
  78. package/dist/offer/match-preview.stories.js +103 -0
  79. package/dist/offer/match-preview.stories.js.map +1 -0
  80. package/dist/offer/negotiation-section.d.ts +11 -0
  81. package/dist/offer/negotiation-section.d.ts.map +1 -0
  82. package/dist/offer/negotiation-section.js +99 -0
  83. package/dist/offer/negotiation-section.js.map +1 -0
  84. package/dist/offer/negotiation-section.stories.d.ts +18 -0
  85. package/dist/offer/negotiation-section.stories.d.ts.map +1 -0
  86. package/dist/offer/negotiation-section.stories.js +156 -0
  87. package/dist/offer/negotiation-section.stories.js.map +1 -0
  88. package/dist/offer/new-activity-pill.d.ts +7 -0
  89. package/dist/offer/new-activity-pill.d.ts.map +1 -0
  90. package/dist/offer/new-activity-pill.js +8 -0
  91. package/dist/offer/new-activity-pill.js.map +1 -0
  92. package/dist/offer/new-activity-pill.stories.d.ts +17 -0
  93. package/dist/offer/new-activity-pill.stories.d.ts.map +1 -0
  94. package/dist/offer/new-activity-pill.stories.js +22 -0
  95. package/dist/offer/new-activity-pill.stories.js.map +1 -0
  96. package/dist/offer/offer-document.d.ts +33 -0
  97. package/dist/offer/offer-document.d.ts.map +1 -0
  98. package/dist/offer/offer-document.js +125 -0
  99. package/dist/offer/offer-document.js.map +1 -0
  100. package/dist/offer/offer-document.stories.d.ts +25 -0
  101. package/dist/offer/offer-document.stories.d.ts.map +1 -0
  102. package/dist/offer/offer-document.stories.js +168 -0
  103. package/dist/offer/offer-document.stories.js.map +1 -0
  104. package/dist/offer/offer-export-button.d.ts +8 -0
  105. package/dist/offer/offer-export-button.d.ts.map +1 -0
  106. package/dist/offer/offer-export-button.js +11 -0
  107. package/dist/offer/offer-export-button.js.map +1 -0
  108. package/dist/offer/offer-export-button.stories.d.ts +15 -0
  109. package/dist/offer/offer-export-button.stories.d.ts.map +1 -0
  110. package/dist/offer/offer-export-button.stories.js +11 -0
  111. package/dist/offer/offer-export-button.stories.js.map +1 -0
  112. package/dist/offer/offer-product-card.d.ts +32 -0
  113. package/dist/offer/offer-product-card.d.ts.map +1 -0
  114. package/dist/offer/offer-product-card.js +10 -0
  115. package/dist/offer/offer-product-card.js.map +1 -0
  116. package/dist/offer/offer-product-card.stories.d.ts +16 -0
  117. package/dist/offer/offer-product-card.stories.d.ts.map +1 -0
  118. package/dist/offer/offer-product-card.stories.js +40 -0
  119. package/dist/offer/offer-product-card.stories.js.map +1 -0
  120. package/dist/offer/opportunity-card.d.ts +16 -0
  121. package/dist/offer/opportunity-card.d.ts.map +1 -0
  122. package/dist/offer/opportunity-card.js +9 -0
  123. package/dist/offer/opportunity-card.js.map +1 -0
  124. package/dist/offer/opportunity-card.stories.d.ts +16 -0
  125. package/dist/offer/opportunity-card.stories.d.ts.map +1 -0
  126. package/dist/offer/opportunity-card.stories.js +33 -0
  127. package/dist/offer/opportunity-card.stories.js.map +1 -0
  128. package/dist/offer/parties-card.d.ts +11 -0
  129. package/dist/offer/parties-card.d.ts.map +1 -0
  130. package/dist/offer/parties-card.js +14 -0
  131. package/dist/offer/parties-card.js.map +1 -0
  132. package/dist/offer/parties-card.stories.d.ts +17 -0
  133. package/dist/offer/parties-card.stories.d.ts.map +1 -0
  134. package/dist/offer/parties-card.stories.js +37 -0
  135. package/dist/offer/parties-card.stories.js.map +1 -0
  136. package/dist/offer/terms-card.d.ts +17 -0
  137. package/dist/offer/terms-card.d.ts.map +1 -0
  138. package/dist/offer/terms-card.js +50 -0
  139. package/dist/offer/terms-card.js.map +1 -0
  140. package/dist/offer/terms-card.stories.d.ts +17 -0
  141. package/dist/offer/terms-card.stories.d.ts.map +1 -0
  142. package/dist/offer/terms-card.stories.js +42 -0
  143. package/dist/offer/terms-card.stories.js.map +1 -0
  144. package/dist/offer/timeline-event.d.ts +12 -0
  145. package/dist/offer/timeline-event.d.ts.map +1 -0
  146. package/dist/offer/timeline-event.js +57 -0
  147. package/dist/offer/timeline-event.js.map +1 -0
  148. package/dist/offer/timeline-event.stories.d.ts +21 -0
  149. package/dist/offer/timeline-event.stories.d.ts.map +1 -0
  150. package/dist/offer/timeline-event.stories.js +57 -0
  151. package/dist/offer/timeline-event.stories.js.map +1 -0
  152. package/dist/offer/types.d.ts +118 -0
  153. package/dist/offer/types.d.ts.map +1 -1
  154. package/dist/opportunities/__a11y__/opportunity-card-actions-menu.a11y.test.d.ts +2 -0
  155. package/dist/opportunities/__a11y__/opportunity-card-actions-menu.a11y.test.d.ts.map +1 -0
  156. package/dist/opportunities/__a11y__/opportunity-card-actions-menu.a11y.test.js +40 -0
  157. package/dist/opportunities/__a11y__/opportunity-card-actions-menu.a11y.test.js.map +1 -0
  158. package/dist/opportunities/__a11y__/opportunity-celebration.a11y.test.d.ts +2 -0
  159. package/dist/opportunities/__a11y__/opportunity-celebration.a11y.test.d.ts.map +1 -0
  160. package/dist/opportunities/__a11y__/opportunity-celebration.a11y.test.js +31 -0
  161. package/dist/opportunities/__a11y__/opportunity-celebration.a11y.test.js.map +1 -0
  162. package/dist/opportunities/__a11y__/opportunity-detail-panel.a11y.test.d.ts +2 -0
  163. package/dist/opportunities/__a11y__/opportunity-detail-panel.a11y.test.d.ts.map +1 -0
  164. package/dist/opportunities/__a11y__/opportunity-detail-panel.a11y.test.js +42 -0
  165. package/dist/opportunities/__a11y__/opportunity-detail-panel.a11y.test.js.map +1 -0
  166. package/dist/opportunities/__a11y__/opportunity-filter-bar.a11y.test.d.ts +2 -0
  167. package/dist/opportunities/__a11y__/opportunity-filter-bar.a11y.test.d.ts.map +1 -0
  168. package/dist/opportunities/__a11y__/opportunity-filter-bar.a11y.test.js +59 -0
  169. package/dist/opportunities/__a11y__/opportunity-filter-bar.a11y.test.js.map +1 -0
  170. package/dist/opportunities/__a11y__/opportunity-stacked-card.a11y.test.d.ts +2 -0
  171. package/dist/opportunities/__a11y__/opportunity-stacked-card.a11y.test.d.ts.map +1 -0
  172. package/dist/opportunities/__a11y__/opportunity-stacked-card.a11y.test.js +54 -0
  173. package/dist/opportunities/__a11y__/opportunity-stacked-card.a11y.test.js.map +1 -0
  174. package/dist/opportunities/__a11y__/opportunity-stacked-list.a11y.test.d.ts +2 -0
  175. package/dist/opportunities/__a11y__/opportunity-stacked-list.a11y.test.d.ts.map +1 -0
  176. package/dist/opportunities/__a11y__/opportunity-stacked-list.a11y.test.js +40 -0
  177. package/dist/opportunities/__a11y__/opportunity-stacked-list.a11y.test.js.map +1 -0
  178. package/dist/opportunities/__tests__/opportunity-add-to-journey-button.test.d.ts +2 -0
  179. package/dist/opportunities/__tests__/opportunity-add-to-journey-button.test.d.ts.map +1 -0
  180. package/dist/opportunities/__tests__/opportunity-add-to-journey-button.test.js +40 -0
  181. package/dist/opportunities/__tests__/opportunity-add-to-journey-button.test.js.map +1 -0
  182. package/dist/opportunities/__tests__/opportunity-card-actions-menu.test.d.ts +2 -0
  183. package/dist/opportunities/__tests__/opportunity-card-actions-menu.test.d.ts.map +1 -0
  184. package/dist/opportunities/__tests__/opportunity-card-actions-menu.test.js +74 -0
  185. package/dist/opportunities/__tests__/opportunity-card-actions-menu.test.js.map +1 -0
  186. package/dist/opportunities/__tests__/opportunity-celebration.test.d.ts +2 -0
  187. package/dist/opportunities/__tests__/opportunity-celebration.test.d.ts.map +1 -0
  188. package/dist/opportunities/__tests__/opportunity-celebration.test.js +46 -0
  189. package/dist/opportunities/__tests__/opportunity-celebration.test.js.map +1 -0
  190. package/dist/opportunities/__tests__/opportunity-filter-bar-drawer.test.d.ts +2 -0
  191. package/dist/opportunities/__tests__/opportunity-filter-bar-drawer.test.d.ts.map +1 -0
  192. package/dist/opportunities/__tests__/opportunity-filter-bar-drawer.test.js +77 -0
  193. package/dist/opportunities/__tests__/opportunity-filter-bar-drawer.test.js.map +1 -0
  194. package/dist/opportunities/__tests__/opportunity-filter-bar.test.d.ts +2 -0
  195. package/dist/opportunities/__tests__/opportunity-filter-bar.test.d.ts.map +1 -0
  196. package/dist/opportunities/__tests__/opportunity-filter-bar.test.js +107 -0
  197. package/dist/opportunities/__tests__/opportunity-filter-bar.test.js.map +1 -0
  198. package/dist/opportunities/__tests__/opportunity-reopen-button.test.d.ts +2 -0
  199. package/dist/opportunities/__tests__/opportunity-reopen-button.test.d.ts.map +1 -0
  200. package/dist/opportunities/__tests__/opportunity-reopen-button.test.js +29 -0
  201. package/dist/opportunities/__tests__/opportunity-reopen-button.test.js.map +1 -0
  202. package/dist/opportunities/__tests__/opportunity-republish-button.test.d.ts +2 -0
  203. package/dist/opportunities/__tests__/opportunity-republish-button.test.d.ts.map +1 -0
  204. package/dist/opportunities/__tests__/opportunity-republish-button.test.js +29 -0
  205. package/dist/opportunities/__tests__/opportunity-republish-button.test.js.map +1 -0
  206. package/dist/opportunities/__tests__/opportunity-resume-draft-button.test.d.ts +2 -0
  207. package/dist/opportunities/__tests__/opportunity-resume-draft-button.test.d.ts.map +1 -0
  208. package/dist/opportunities/__tests__/opportunity-resume-draft-button.test.js +19 -0
  209. package/dist/opportunities/__tests__/opportunity-resume-draft-button.test.js.map +1 -0
  210. package/dist/opportunities/__tests__/opportunity-view-offers-button.test.d.ts +2 -0
  211. package/dist/opportunities/__tests__/opportunity-view-offers-button.test.d.ts.map +1 -0
  212. package/dist/opportunities/__tests__/opportunity-view-offers-button.test.js +23 -0
  213. package/dist/opportunities/__tests__/opportunity-view-offers-button.test.js.map +1 -0
  214. package/dist/opportunities/index.d.ts +51 -1
  215. package/dist/opportunities/index.d.ts.map +1 -1
  216. package/dist/opportunities/index.js +35 -0
  217. package/dist/opportunities/index.js.map +1 -1
  218. package/dist/opportunities/opportunities-table.d.ts +4 -0
  219. package/dist/opportunities/opportunities-table.d.ts.map +1 -1
  220. package/dist/opportunities/opportunities-table.js +4 -0
  221. package/dist/opportunities/opportunities-table.js.map +1 -1
  222. package/dist/opportunities/opportunity-add-to-journey-button.d.ts +12 -0
  223. package/dist/opportunities/opportunity-add-to-journey-button.d.ts.map +1 -0
  224. package/dist/opportunities/opportunity-add-to-journey-button.js +42 -0
  225. package/dist/opportunities/opportunity-add-to-journey-button.js.map +1 -0
  226. package/dist/opportunities/opportunity-card-actions-menu.d.ts +9 -0
  227. package/dist/opportunities/opportunity-card-actions-menu.d.ts.map +1 -0
  228. package/dist/opportunities/opportunity-card-actions-menu.js +33 -0
  229. package/dist/opportunities/opportunity-card-actions-menu.js.map +1 -0
  230. package/dist/opportunities/opportunity-card-actions-menu.stories.d.ts +14 -0
  231. package/dist/opportunities/opportunity-card-actions-menu.stories.d.ts.map +1 -0
  232. package/dist/opportunities/opportunity-card-actions-menu.stories.js +12 -0
  233. package/dist/opportunities/opportunity-card-actions-menu.stories.js.map +1 -0
  234. package/dist/opportunities/opportunity-celebration.d.ts +8 -0
  235. package/dist/opportunities/opportunity-celebration.d.ts.map +1 -0
  236. package/dist/opportunities/opportunity-celebration.js +17 -0
  237. package/dist/opportunities/opportunity-celebration.js.map +1 -0
  238. package/dist/opportunities/opportunity-celebration.stories.d.ts +17 -0
  239. package/dist/opportunities/opportunity-celebration.stories.d.ts.map +1 -0
  240. package/dist/opportunities/opportunity-celebration.stories.js +30 -0
  241. package/dist/opportunities/opportunity-celebration.stories.js.map +1 -0
  242. package/dist/opportunities/opportunity-filter-bar-drawer.d.ts +10 -0
  243. package/dist/opportunities/opportunity-filter-bar-drawer.d.ts.map +1 -0
  244. package/dist/opportunities/opportunity-filter-bar-drawer.js +54 -0
  245. package/dist/opportunities/opportunity-filter-bar-drawer.js.map +1 -0
  246. package/dist/opportunities/opportunity-filter-bar.d.ts +14 -0
  247. package/dist/opportunities/opportunity-filter-bar.d.ts.map +1 -0
  248. package/dist/opportunities/opportunity-filter-bar.js +65 -0
  249. package/dist/opportunities/opportunity-filter-bar.js.map +1 -0
  250. package/dist/opportunities/opportunity-filter-bar.stories.d.ts +25 -0
  251. package/dist/opportunities/opportunity-filter-bar.stories.d.ts.map +1 -0
  252. package/dist/opportunities/opportunity-filter-bar.stories.js +63 -0
  253. package/dist/opportunities/opportunity-filter-bar.stories.js.map +1 -0
  254. package/dist/opportunities/opportunity-reopen-button.d.ts +11 -0
  255. package/dist/opportunities/opportunity-reopen-button.d.ts.map +1 -0
  256. package/dist/opportunities/opportunity-reopen-button.js +20 -0
  257. package/dist/opportunities/opportunity-reopen-button.js.map +1 -0
  258. package/dist/opportunities/opportunity-republish-button.d.ts +7 -0
  259. package/dist/opportunities/opportunity-republish-button.d.ts.map +1 -0
  260. package/dist/opportunities/opportunity-republish-button.js +14 -0
  261. package/dist/opportunities/opportunity-republish-button.js.map +1 -0
  262. package/dist/opportunities/opportunity-resume-draft-button.d.ts +7 -0
  263. package/dist/opportunities/opportunity-resume-draft-button.d.ts.map +1 -0
  264. package/dist/opportunities/opportunity-resume-draft-button.js +7 -0
  265. package/dist/opportunities/opportunity-resume-draft-button.js.map +1 -0
  266. package/dist/opportunities/opportunity-stacked-list.d.ts.map +1 -1
  267. package/dist/opportunities/opportunity-stacked-list.js +3 -1
  268. package/dist/opportunities/opportunity-stacked-list.js.map +1 -1
  269. package/dist/opportunities/opportunity-view-offers-button.d.ts +7 -0
  270. package/dist/opportunities/opportunity-view-offers-button.d.ts.map +1 -0
  271. package/dist/opportunities/opportunity-view-offers-button.js +8 -0
  272. package/dist/opportunities/opportunity-view-offers-button.js.map +1 -0
  273. package/dist/opportunities/two-column-section.d.ts.map +1 -1
  274. package/dist/opportunities/two-column-section.js +4 -3
  275. package/dist/opportunities/two-column-section.js.map +1 -1
  276. package/dist/opportunities/wizard/__a11y__/opportunity-wizard.a11y.test.d.ts +2 -0
  277. package/dist/opportunities/wizard/__a11y__/opportunity-wizard.a11y.test.d.ts.map +1 -0
  278. package/dist/opportunities/wizard/__a11y__/opportunity-wizard.a11y.test.js +53 -0
  279. package/dist/opportunities/wizard/__a11y__/opportunity-wizard.a11y.test.js.map +1 -0
  280. package/dist/opportunities/wizard/__a11y__/wizard-stepper.a11y.test.d.ts +2 -0
  281. package/dist/opportunities/wizard/__a11y__/wizard-stepper.a11y.test.d.ts.map +1 -0
  282. package/dist/opportunities/wizard/__a11y__/wizard-stepper.a11y.test.js +32 -0
  283. package/dist/opportunities/wizard/__a11y__/wizard-stepper.a11y.test.js.map +1 -0
  284. package/dist/opportunities/wizard/__tests__/opportunity-wizard.test.d.ts +2 -0
  285. package/dist/opportunities/wizard/__tests__/opportunity-wizard.test.d.ts.map +1 -0
  286. package/dist/opportunities/wizard/__tests__/opportunity-wizard.test.js +127 -0
  287. package/dist/opportunities/wizard/__tests__/opportunity-wizard.test.js.map +1 -0
  288. package/dist/opportunities/wizard/__tests__/step-opportunities.test.d.ts +2 -0
  289. package/dist/opportunities/wizard/__tests__/step-opportunities.test.d.ts.map +1 -0
  290. package/dist/opportunities/wizard/__tests__/step-opportunities.test.js +93 -0
  291. package/dist/opportunities/wizard/__tests__/step-opportunities.test.js.map +1 -0
  292. package/dist/opportunities/wizard/__tests__/step-pricing-timeline.test.d.ts +2 -0
  293. package/dist/opportunities/wizard/__tests__/step-pricing-timeline.test.d.ts.map +1 -0
  294. package/dist/opportunities/wizard/__tests__/step-pricing-timeline.test.js +141 -0
  295. package/dist/opportunities/wizard/__tests__/step-pricing-timeline.test.js.map +1 -0
  296. package/dist/opportunities/wizard/__tests__/step-review.test.d.ts +2 -0
  297. package/dist/opportunities/wizard/__tests__/step-review.test.d.ts.map +1 -0
  298. package/dist/opportunities/wizard/__tests__/step-review.test.js +80 -0
  299. package/dist/opportunities/wizard/__tests__/step-review.test.js.map +1 -0
  300. package/dist/opportunities/wizard/__tests__/step-tender-basics.test.d.ts +2 -0
  301. package/dist/opportunities/wizard/__tests__/step-tender-basics.test.d.ts.map +1 -0
  302. package/dist/opportunities/wizard/__tests__/step-tender-basics.test.js +76 -0
  303. package/dist/opportunities/wizard/__tests__/step-tender-basics.test.js.map +1 -0
  304. package/dist/opportunities/wizard/__tests__/use-wizard-draft.test.d.ts +2 -0
  305. package/dist/opportunities/wizard/__tests__/use-wizard-draft.test.d.ts.map +1 -0
  306. package/dist/opportunities/wizard/__tests__/use-wizard-draft.test.js +192 -0
  307. package/dist/opportunities/wizard/__tests__/use-wizard-draft.test.js.map +1 -0
  308. package/dist/opportunities/wizard/__tests__/wizard-stepper.test.d.ts +2 -0
  309. package/dist/opportunities/wizard/__tests__/wizard-stepper.test.d.ts.map +1 -0
  310. package/dist/opportunities/wizard/__tests__/wizard-stepper.test.js +61 -0
  311. package/dist/opportunities/wizard/__tests__/wizard-stepper.test.js.map +1 -0
  312. package/dist/opportunities/wizard/opportunity-wizard.d.ts +29 -0
  313. package/dist/opportunities/wizard/opportunity-wizard.d.ts.map +1 -0
  314. package/dist/opportunities/wizard/opportunity-wizard.js +196 -0
  315. package/dist/opportunities/wizard/opportunity-wizard.js.map +1 -0
  316. package/dist/opportunities/wizard/opportunity-wizard.stories.d.ts +12 -0
  317. package/dist/opportunities/wizard/opportunity-wizard.stories.d.ts.map +1 -0
  318. package/dist/opportunities/wizard/opportunity-wizard.stories.js +49 -0
  319. package/dist/opportunities/wizard/opportunity-wizard.stories.js.map +1 -0
  320. package/dist/opportunities/wizard/step-opportunities.d.ts +9 -0
  321. package/dist/opportunities/wizard/step-opportunities.d.ts.map +1 -0
  322. package/dist/opportunities/wizard/step-opportunities.js +80 -0
  323. package/dist/opportunities/wizard/step-opportunities.js.map +1 -0
  324. package/dist/opportunities/wizard/step-pricing-timeline.d.ts +9 -0
  325. package/dist/opportunities/wizard/step-pricing-timeline.d.ts.map +1 -0
  326. package/dist/opportunities/wizard/step-pricing-timeline.js +64 -0
  327. package/dist/opportunities/wizard/step-pricing-timeline.js.map +1 -0
  328. package/dist/opportunities/wizard/step-review.d.ts +9 -0
  329. package/dist/opportunities/wizard/step-review.d.ts.map +1 -0
  330. package/dist/opportunities/wizard/step-review.js +34 -0
  331. package/dist/opportunities/wizard/step-review.js.map +1 -0
  332. package/dist/opportunities/wizard/step-tender-basics.d.ts +16 -0
  333. package/dist/opportunities/wizard/step-tender-basics.d.ts.map +1 -0
  334. package/dist/opportunities/wizard/step-tender-basics.js +39 -0
  335. package/dist/opportunities/wizard/step-tender-basics.js.map +1 -0
  336. package/dist/opportunities/wizard/use-wizard-draft.d.ts +41 -0
  337. package/dist/opportunities/wizard/use-wizard-draft.d.ts.map +1 -0
  338. package/dist/opportunities/wizard/use-wizard-draft.js +214 -0
  339. package/dist/opportunities/wizard/use-wizard-draft.js.map +1 -0
  340. package/dist/opportunities/wizard/wizard-stepper.d.ts +20 -0
  341. package/dist/opportunities/wizard/wizard-stepper.d.ts.map +1 -0
  342. package/dist/opportunities/wizard/wizard-stepper.js +26 -0
  343. package/dist/opportunities/wizard/wizard-stepper.js.map +1 -0
  344. package/dist/opportunities/wizard/wizard-stepper.stories.d.ts +22 -0
  345. package/dist/opportunities/wizard/wizard-stepper.stories.d.ts.map +1 -0
  346. package/dist/opportunities/wizard/wizard-stepper.stories.js +47 -0
  347. package/dist/opportunities/wizard/wizard-stepper.stories.js.map +1 -0
  348. package/dist/opportunities/wizard/wizard.types.d.ts +176 -0
  349. package/dist/opportunities/wizard/wizard.types.d.ts.map +1 -0
  350. package/dist/opportunities/wizard/wizard.types.js +62 -0
  351. package/dist/opportunities/wizard/wizard.types.js.map +1 -0
  352. package/package.json +13 -4
  353. package/src/offer/offer-document.print.css +72 -0
@@ -0,0 +1,39 @@
1
+ import { MatchHeadlineBar } from "./match-headline-bar";
2
+ const meta = {
3
+ title: "Offer/MatchHeadlineBar",
4
+ component: MatchHeadlineBar,
5
+ tags: ["autodocs"],
6
+ parameters: { layout: "padded" },
7
+ };
8
+ export default meta;
9
+ export const Strong = {
10
+ args: {
11
+ state: "strong",
12
+ summary: "All requirements met",
13
+ count: 11,
14
+ },
15
+ };
16
+ export const Partial = {
17
+ args: {
18
+ state: "partial",
19
+ summary: "Price is 4% over the ceiling",
20
+ count: 11,
21
+ },
22
+ };
23
+ export const Miss = {
24
+ args: {
25
+ state: "miss",
26
+ summary: "Beverage subtype does not match",
27
+ count: 11,
28
+ },
29
+ };
30
+ export const Expanded = {
31
+ args: {
32
+ state: "partial",
33
+ summary: "Price is 4% over the ceiling",
34
+ count: 11,
35
+ expanded: true,
36
+ onToggleExpand: () => { },
37
+ },
38
+ };
39
+ //# sourceMappingURL=match-headline-bar.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"match-headline-bar.stories.js","sourceRoot":"","sources":["../../src/offer/match-headline-bar.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,MAAM,IAAI,GAAG;IACX,KAAK,EAAE,wBAAwB;IAC/B,SAAS,EAAE,gBAAgB;IAC3B,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE;CACO,CAAC;AAE1C,eAAe,IAAI,CAAC;AAGpB,MAAM,CAAC,MAAM,MAAM,GAAU;IAC3B,IAAI,EAAE;QACJ,KAAK,EAAE,QAAQ;QACf,OAAO,EAAE,sBAAsB;QAC/B,KAAK,EAAE,EAAE;KACV;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE;QACJ,KAAK,EAAE,SAAS;QAChB,OAAO,EAAE,8BAA8B;QACvC,KAAK,EAAE,EAAE;KACV;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAU;IACzB,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM;QACb,OAAO,EAAE,iCAAiC;QAC1C,KAAK,EAAE,EAAE;KACV;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAU;IAC7B,IAAI,EAAE;QACJ,KAAK,EAAE,SAAS;QAChB,OAAO,EAAE,8BAA8B;QACvC,KAAK,EAAE,EAAE;QACT,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE,GAAG,EAAE,GAAE,CAAC;KACzB;CACF,CAAC"}
@@ -0,0 +1,18 @@
1
+ import type { MatchEvaluation, Perspective } from "./types";
2
+ export interface MatchPreviewProps {
3
+ evaluation: MatchEvaluation;
4
+ /**
5
+ * Viewer perspective. Informational only — colour polarity for each
6
+ * criterion row comes from the criterion's `viewerAdvantage` field
7
+ * (blocker B3). Perspective frames the aria-live sentence: "Producer
8
+ * view: match now partial — price 4.7% over ceiling".
9
+ */
10
+ perspective?: Perspective;
11
+ className?: string;
12
+ }
13
+ /**
14
+ * Compact match surface that appears inside the counter composer and re-grades
15
+ * as the composer's numeric fields change. Announces changes via aria-live.
16
+ */
17
+ export declare function MatchPreview({ evaluation, perspective, className }: MatchPreviewProps): import("react/jsx-runtime").JSX.Element;
18
+ //# sourceMappingURL=match-preview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"match-preview.d.ts","sourceRoot":"","sources":["../../src/offer/match-preview.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE5D,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,eAAe,CAAC;IAC5B;;;;;OAKG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAE,EAAE,iBAAiB,2CA+BrF"}
@@ -0,0 +1,13 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { cn } from "../lib/utils";
3
+ import { MatchHeadlineBar } from "./match-headline-bar";
4
+ import { MatchGlyph } from "./match-glyph";
5
+ /**
6
+ * Compact match surface that appears inside the counter composer and re-grades
7
+ * as the composer's numeric fields change. Announces changes via aria-live.
8
+ */
9
+ export function MatchPreview({ evaluation, perspective, className }) {
10
+ const exceptions = evaluation.criteria.filter((c) => c.state === "partial" || c.state === "miss");
11
+ return (_jsxs("div", { role: "status", "aria-live": "polite", "aria-label": `${perspective ? `${perspective === "producer" ? "Producer" : "Importer"} view · ` : ""}Match now: ${evaluation.headline} — ${evaluation.headlineSummary}`, className: cn("space-y-2 rounded-xl border border-border/60 bg-card/70 p-3", className), children: [_jsx(MatchHeadlineBar, { state: evaluation.headline, summary: evaluation.headlineSummary, count: evaluation.criteria.length }), exceptions.length > 0 && (_jsx("ul", { className: "space-y-1.5", children: exceptions.map((c) => (_jsxs("li", { className: "flex items-start justify-between gap-2 text-xs/5", children: [_jsxs("span", { className: "min-w-0", children: [_jsxs("span", { className: "font-medium", children: [c.label, ":"] }), " ", c.reason ?? "—"] }), _jsx(MatchGlyph, { state: c.state })] }, c.id))) }))] }));
12
+ }
13
+ //# sourceMappingURL=match-preview.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"match-preview.js","sourceRoot":"","sources":["../../src/offer/match-preview.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAe3C;;;GAGG;AACH,MAAM,UAAU,YAAY,CAAC,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAqB;IACpF,MAAM,UAAU,GAAG,UAAU,CAAC,QAAQ,CAAC,MAAM,CAC3C,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,SAAS,IAAI,CAAC,CAAC,KAAK,KAAK,MAAM,CACnD,CAAC;IACF,OAAO,CACL,eACE,IAAI,EAAC,QAAQ,eACH,QAAQ,gBACN,GAAG,WAAW,CAAC,CAAC,CAAC,GAAG,WAAW,KAAK,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,EAAE,cAAc,UAAU,CAAC,QAAQ,MAAM,UAAU,CAAC,eAAe,EAAE,EACtK,SAAS,EAAE,EAAE,CAAC,6DAA6D,EAAE,SAAS,CAAC,aAEvF,KAAC,gBAAgB,IACf,KAAK,EAAE,UAAU,CAAC,QAAQ,EAC1B,OAAO,EAAE,UAAU,CAAC,eAAe,EACnC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,MAAM,GACjC,EACD,UAAU,CAAC,MAAM,GAAG,CAAC,IAAI,CACxB,aAAI,SAAS,EAAC,aAAa,YACxB,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CACrB,cAAe,SAAS,EAAC,kDAAkD,aACzE,gBAAM,SAAS,EAAC,SAAS,aACvB,gBAAM,SAAS,EAAC,aAAa,aAAE,CAAC,CAAC,KAAK,SAAS,EAAC,GAAG,EAClD,CAAC,CAAC,MAAM,IAAI,GAAG,IACX,EACP,KAAC,UAAU,IAAC,KAAK,EAAE,CAAC,CAAC,KAAK,GAAI,KALvB,CAAC,CAAC,EAAE,CAMR,CACN,CAAC,GACC,CACN,IACG,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,18 @@
1
+ import type { StoryObj } from "@storybook/react-vite";
2
+ import { MatchPreview } from "./match-preview";
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof MatchPreview;
6
+ tags: string[];
7
+ parameters: {
8
+ layout: string;
9
+ };
10
+ };
11
+ export default meta;
12
+ type Story = StoryObj<typeof meta>;
13
+ export declare const Default: Story;
14
+ export declare const RegradeToPartial: Story;
15
+ export declare const RegradeToMiss: Story;
16
+ export declare const LiveDeltaChips: Story;
17
+ export declare const RegradeOnEdit: Story;
18
+ //# sourceMappingURL=match-preview.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"match-preview.stories.d.ts","sourceRoot":"","sources":["../../src/offer/match-preview.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C,QAAA,MAAM,IAAI;;;;;;;CAK2B,CAAC;AAEtC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AA+BnC,eAAO,MAAM,OAAO,EAAE,KAAwC,CAAC;AAC/D,eAAO,MAAM,gBAAgB,EAAE,KAAyC,CAAC;AACzE,eAAO,MAAM,aAAa,EAAE,KAAsC,CAAC;AASnE,eAAO,MAAM,cAAc,EAAE,KA2B5B,CAAC;AAmBF,eAAO,MAAM,aAAa,EAAE,KAoB3B,CAAC"}
@@ -0,0 +1,103 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useState } from "react";
3
+ import { MatchPreview } from "./match-preview";
4
+ const meta = {
5
+ title: "Offer/MatchPreview",
6
+ component: MatchPreview,
7
+ tags: ["autodocs"],
8
+ parameters: { layout: "padded" },
9
+ };
10
+ export default meta;
11
+ const strong = {
12
+ headline: "strong",
13
+ headlineSummary: "All requirements met",
14
+ criteria: [
15
+ { id: "price", label: "Price", state: "ok", offered: 4.1, required: 4.2, viewerAdvantage: "improved" },
16
+ { id: "volume", label: "Volume", state: "ok", offered: 20000, required: 20000, viewerAdvantage: "neutral" },
17
+ ],
18
+ freeTextFields: [],
19
+ hiddenReasons: [],
20
+ };
21
+ const partial = {
22
+ ...strong,
23
+ headline: "partial",
24
+ headlineSummary: "Price is 4.7% over ceiling",
25
+ criteria: [
26
+ { id: "price", label: "Price", state: "partial", offered: 4.4, required: 4.2, reason: "4.7% above ceiling", viewerAdvantage: "improved" },
27
+ strong.criteria[1],
28
+ ],
29
+ };
30
+ const miss = {
31
+ ...strong,
32
+ headline: "miss",
33
+ headlineSummary: "Volume under minimum",
34
+ criteria: [
35
+ strong.criteria[0],
36
+ { id: "volume", label: "Volume", state: "miss", offered: 5000, required: 20000, reason: "Below minimum acceptable volume", viewerAdvantage: "worsened" },
37
+ ],
38
+ };
39
+ export const Default = { args: { evaluation: strong } };
40
+ export const RegradeToPartial = { args: { evaluation: partial } };
41
+ export const RegradeToMiss = { args: { evaluation: miss } };
42
+ // Spec §14.1 explicitly lists these as required stories. They were
43
+ // omitted from the original plan; adding them here + in the
44
+ // CounterSlideOver story list below.
45
+ // Spec §7.2 "All numeric fields render a live delta chip (±value)". This
46
+ // story shows the delta chip inline and asserts the chip's aria-label
47
+ // reports the signed change.
48
+ export const LiveDeltaChips = {
49
+ args: {
50
+ evaluation: {
51
+ ...strong,
52
+ headline: "partial",
53
+ headlineSummary: "Price is now +€0.30 vs round 1",
54
+ criteria: [
55
+ {
56
+ id: "price",
57
+ label: "Price",
58
+ state: "partial",
59
+ offered: 4.4,
60
+ required: 4.2,
61
+ reason: "+€0.30 vs round 1 (still within 5% ceiling)",
62
+ viewerAdvantage: "improved",
63
+ },
64
+ strong.criteria[1],
65
+ ],
66
+ },
67
+ },
68
+ play: async ({ canvasElement }) => {
69
+ const { within } = await import("storybook/test");
70
+ const { expect } = await import("vitest");
71
+ const canvas = within(canvasElement);
72
+ const status = canvas.getByRole("status");
73
+ await expect(status).toHaveTextContent(/\+€0\.30/);
74
+ },
75
+ };
76
+ function RegradeOnEditDemo() {
77
+ const [evaluation, setEvaluation] = useState(strong);
78
+ return (_jsxs("div", { className: "space-y-2", children: [_jsxs("div", { className: "flex gap-2", children: [_jsx("button", { "data-testid": "set-strong", onClick: () => setEvaluation(strong), children: "Strong" }), _jsx("button", { "data-testid": "set-partial", onClick: () => setEvaluation(partial), children: "Partial" }), _jsx("button", { "data-testid": "set-miss", onClick: () => setEvaluation(miss), children: "Miss" })] }), _jsx(MatchPreview, { evaluation: evaluation })] }));
79
+ }
80
+ // Spec §6.8 "re-grades as the composer's numeric fields change". This
81
+ // story provides a toggle between two evaluations to prove the
82
+ // aria-live region updates when the evaluation prop changes.
83
+ export const RegradeOnEdit = {
84
+ args: { evaluation: strong },
85
+ render: () => _jsx(RegradeOnEditDemo, {}),
86
+ play: async ({ canvasElement, step }) => {
87
+ const { within, userEvent } = await import("storybook/test");
88
+ const { expect } = await import("vitest");
89
+ const canvas = within(canvasElement);
90
+ await step("initial state is strong", async () => {
91
+ await expect(canvas.getByRole("status")).toHaveTextContent(/strong/i);
92
+ });
93
+ await step("clicking Partial regrades the live region", async () => {
94
+ await userEvent.click(canvas.getByTestId("set-partial"));
95
+ await expect(canvas.getByRole("status")).toHaveTextContent(/partial/i);
96
+ });
97
+ await step("clicking Miss regrades to miss", async () => {
98
+ await userEvent.click(canvas.getByTestId("set-miss"));
99
+ await expect(canvas.getByRole("status")).toHaveTextContent(/miss/i);
100
+ });
101
+ },
102
+ };
103
+ //# sourceMappingURL=match-preview.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"match-preview.stories.js","sourceRoot":"","sources":["../../src/offer/match-preview.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C,MAAM,IAAI,GAAG;IACX,KAAK,EAAE,oBAAoB;IAC3B,SAAS,EAAE,YAAY;IACvB,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE;CACG,CAAC;AAEtC,eAAe,IAAI,CAAC;AAGpB,MAAM,MAAM,GAAoB;IAC9B,QAAQ,EAAE,QAAQ;IAClB,eAAe,EAAE,sBAAsB;IACvC,QAAQ,EAAE;QACR,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE,eAAe,EAAE,UAAU,EAAE;QACtG,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,I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,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;QACtE,CAAC,CAAC,CAAC;IACL,CAAC;CACF,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { TimelineEventData, ViewerAdvantage, Perspective } from "./types";
2
+ export interface NegotiationSectionProps {
3
+ events: TimelineEventData[];
4
+ viewerOrgId: string;
5
+ viewerRole?: Perspective;
6
+ viewerAdvantageFor?: (event: TimelineEventData) => ViewerAdvantage;
7
+ onOpenComposer?: () => void;
8
+ className?: string;
9
+ }
10
+ export declare function NegotiationSection({ events, viewerOrgId: _viewerOrgId, viewerRole: _viewerRole, viewerAdvantageFor, onOpenComposer, className, }: NegotiationSectionProps): import("react/jsx-runtime").JSX.Element;
11
+ //# sourceMappingURL=negotiation-section.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"negotiation-section.d.ts","sourceRoot":"","sources":["../../src/offer/negotiation-section.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,iBAAiB,EACjB,eAAe,EACf,WAAW,EACZ,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,iBAAiB,EAAE,CAAC;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,eAAe,CAAC;IACnE,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,WAAW,EAAE,YAAY,EACzB,UAAU,EAAE,WAAW,EACvB,kBAAkB,EAClB,cAAc,EACd,SAAS,GACV,EAAE,uBAAuB,2CAgLzB"}
@@ -0,0 +1,99 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useCallback, useEffect, useRef, useState } from "react";
3
+ import { ArrowLeftRight } from "lucide-react";
4
+ import { cn } from "../lib/utils";
5
+ import { ShadcnButton as Button } from "../components/shadcn-button";
6
+ import { useSafeVirtualizer } from "../chat/use-safe-virtualizer";
7
+ import { TimelineEvent } from "./timeline-event";
8
+ import { NewActivityPill } from "./new-activity-pill";
9
+ export function NegotiationSection({ events, viewerOrgId: _viewerOrgId, viewerRole: _viewerRole, viewerAdvantageFor, onOpenComposer, className, }) {
10
+ const scrollRef = useRef(null);
11
+ const [newEventCount, setNewEventCount] = useState(0);
12
+ const [focusedIndex, setFocusedIndex] = useState(0);
13
+ const lastCountRef = useRef(events.length);
14
+ // Roving tabindex requires imperative .focus() on the new element after
15
+ // state updates; React only updates tabIndex, it does not move DOM focus.
16
+ // We keep a keyed ref map so the arrow-key effect can call .focus() on the
17
+ // newly-focused <li>.
18
+ const eventListRef = useRef(new Map());
19
+ // Track whether the last focus movement was driven by the keyboard (vs a
20
+ // mount / programmatic state change) so we only call .focus() when the user
21
+ // intentionally pressed Arrow keys. Otherwise we'd steal focus on mount.
22
+ const keyboardDrivenRef = useRef(false);
23
+ useEffect(() => {
24
+ if (events.length > lastCountRef.current) {
25
+ const el = scrollRef.current;
26
+ if (el) {
27
+ const nearBottom = el.scrollHeight - el.scrollTop - el.clientHeight < 80;
28
+ if (!nearBottom) {
29
+ setNewEventCount((c) => c + (events.length - lastCountRef.current));
30
+ }
31
+ }
32
+ }
33
+ lastCountRef.current = events.length;
34
+ }, [events.length]);
35
+ // Roving-tabindex focus driver. Runs after state commit so the newly-active
36
+ // element has already had tabIndex=0 applied, then we imperatively move DOM
37
+ // focus. Without this effect the arrow-key handler would only update
38
+ // tabIndex visibly — DOM focus would remain on the old element and screen
39
+ // readers would not announce the move.
40
+ useEffect(() => {
41
+ if (!keyboardDrivenRef.current)
42
+ return;
43
+ const el = eventListRef.current.get(focusedIndex);
44
+ el?.focus();
45
+ keyboardDrivenRef.current = false;
46
+ }, [focusedIndex]);
47
+ const shouldVirtualize = events.length > 50;
48
+ const virtualizer = useSafeVirtualizer({
49
+ count: events.length,
50
+ getScrollElement: () => scrollRef.current,
51
+ estimateSize: () => 96,
52
+ overscan: 5,
53
+ enabled: shouldVirtualize,
54
+ });
55
+ const handleKeyDown = useCallback((e) => {
56
+ if (e.key === "ArrowDown") {
57
+ e.preventDefault();
58
+ keyboardDrivenRef.current = true;
59
+ setFocusedIndex((i) => Math.min(i + 1, events.length - 1));
60
+ }
61
+ else if (e.key === "ArrowUp") {
62
+ e.preventDefault();
63
+ keyboardDrivenRef.current = true;
64
+ setFocusedIndex((i) => Math.max(i - 1, 0));
65
+ }
66
+ else if (e.key === "Home") {
67
+ e.preventDefault();
68
+ keyboardDrivenRef.current = true;
69
+ setFocusedIndex(0);
70
+ }
71
+ else if (e.key === "End") {
72
+ e.preventDefault();
73
+ keyboardDrivenRef.current = true;
74
+ setFocusedIndex(events.length - 1);
75
+ }
76
+ }, [events.length]);
77
+ const setEventRef = useCallback((index, node) => {
78
+ if (node)
79
+ eventListRef.current.set(index, node);
80
+ else
81
+ eventListRef.current.delete(index);
82
+ }, []);
83
+ return (_jsxs("section", { "aria-labelledby": "negotiation-heading", className: cn("rounded-2xl border border-border/60 bg-card p-4", className), children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsx("h2", { id: "negotiation-heading", className: "text-xs/5 font-semibold uppercase tracking-wide text-muted-foreground", children: "Negotiation" }), onOpenComposer && (_jsxs(Button, { size: "sm", onClick: onOpenComposer, children: [_jsx(ArrowLeftRight, { "aria-hidden": true, className: "size-4" }), "Counter"] }))] }), _jsxs("div", { ref: scrollRef, className: "relative mt-3 max-h-[480px] overflow-y-auto", children: [events.length === 0 ? (_jsx("p", { className: "py-6 text-center text-sm text-muted-foreground", children: "No activity yet." })) : shouldVirtualize ? (_jsx("ol", { role: "list", "aria-label": "Negotiation timeline", className: "relative", style: { height: virtualizer.getTotalSize() }, onKeyDown: handleKeyDown, children: virtualizer.getVirtualItems().map((row) => {
84
+ const ev = events[row.index];
85
+ return (_jsx("div", { ref: virtualizer.measureElement, "data-index": row.index, style: {
86
+ position: "absolute",
87
+ top: 0,
88
+ left: 0,
89
+ right: 0,
90
+ transform: `translateY(${row.start}px)`,
91
+ }, children: _jsx(TimelineEvent, { ref: (node) => setEventRef(row.index, node), event: ev, viewerAdvantage: viewerAdvantageFor?.(ev) ?? "neutral", tabIndex: focusedIndex === row.index ? 0 : -1, onFocus: () => setFocusedIndex(row.index) }) }, ev.id));
92
+ }) })) : (_jsx("ol", { role: "list", "aria-label": "Negotiation timeline", className: "space-y-2", onKeyDown: handleKeyDown, children: events.map((ev, i) => (_jsx(TimelineEvent, { ref: (node) => setEventRef(i, node), event: ev, viewerAdvantage: viewerAdvantageFor?.(ev) ?? "neutral", tabIndex: focusedIndex === i ? 0 : -1, onFocus: () => setFocusedIndex(i) }, ev.id))) })), newEventCount > 0 && (_jsx("div", { className: "pointer-events-none sticky bottom-2 flex justify-center", children: _jsx("div", { className: "pointer-events-auto", children: _jsx(NewActivityPill, { count: newEventCount, onClick: () => {
93
+ const el = scrollRef.current;
94
+ if (el)
95
+ el.scrollTop = el.scrollHeight;
96
+ setNewEventCount(0);
97
+ } }) }) }))] })] }));
98
+ }
99
+ //# sourceMappingURL=negotiation-section.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"negotiation-section.js","sourceRoot":"","sources":["../../src/offer/negotiation-section.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,YAAY,IAAI,MAAM,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,kB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B,EACjC,SAAS,EAAC,WAAW,EACrB,SAAS,EAAE,aAAa,YAEvB,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CACrB,KAAC,aAAa,IAEZ,GAAG,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC,EAAE,IAAI,CAAC,EACnC,KAAK,EAAE,EAAE,EACT,eAAe,EAAE,kBAAkB,EAAE,CAAC,EAAE,CAAC,IAAI,SAAS,EACtD,QAAQ,EAAE,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EACrC,OAAO,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC,IAL5B,EAAE,CAAC,EAAE,CAMV,CACH,CAAC,GACC,CACN,EACA,aAAa,GAAG,CAAC,IAAI,CACpB,cAAK,SAAS,EAAC,yDAAyD,YACtE,cAAK,SAAS,EAAC,qBAAqB,YAClC,KAAC,eAAe,IACd,KAAK,EAAE,aAAa,EACpB,OAAO,EAAE,GAAG,EAAE;oCACZ,MAAM,EAAE,GAAG,SAAS,CAAC,OAAO,CAAC;oCAC7B,IAAI,EAAE;wCAAE,EAAE,CAAC,SAAS,GAAG,EAAE,CAAC,YAAY,CAAC;oCACvC,gBAAgB,CAAC,CAAC,CAAC,CAAC;gCACtB,CAAC,GACD,GACE,GACF,CACP,IACG,IACE,CACX,CAAC;AACJ,CAAC"}
@@ -0,0 +1,18 @@
1
+ import type { StoryObj } from "@storybook/react-vite";
2
+ import { NegotiationSection } from "./negotiation-section";
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof NegotiationSection;
6
+ tags: string[];
7
+ parameters: {
8
+ layout: string;
9
+ };
10
+ };
11
+ export default meta;
12
+ type Story = StoryObj<typeof meta>;
13
+ export declare const Default: Story;
14
+ export declare const Empty: Story;
15
+ export declare const ManyEvents: Story;
16
+ export declare const MixedKinds: Story;
17
+ export declare const ArrowKeyFocusMovement: Story;
18
+ //# sourceMappingURL=negotiation-section.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"negotiation-section.stories.d.ts","sourceRoot":"","sources":["../../src/offer/negotiation-section.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAG3D,QAAA,MAAM,IAAI;;;;;;;CAKiC,CAAC;AAE5C,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAgCnC,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AACF,eAAO,MAAM,KAAK,EAAE,KAMnB,CAAC;AACF,eAAO,MAAM,UAAU,EAAE,KAkBxB,CAAC;AAMF,eAAO,MAAM,UAAU,EAAE,KA6CxB,CAAC;AAMF,eAAO,MAAM,qBAAqB,EAAE,KAoCnC,CAAC"}
@@ -0,0 +1,156 @@
1
+ import { NegotiationSection } from "./negotiation-section";
2
+ const meta = {
3
+ title: "Offer/NegotiationSection",
4
+ component: NegotiationSection,
5
+ tags: ["autodocs"],
6
+ parameters: { layout: "padded" },
7
+ };
8
+ export default meta;
9
+ const events = [
10
+ {
11
+ id: "e1",
12
+ kind: "propose",
13
+ createdAt: "2026-04-18T10:00:00Z",
14
+ actorOrgId: "org-prod",
15
+ actorRole: "producer",
16
+ round: 1,
17
+ terms: { price: 4.1, currency: "EUR", volume: 20000 },
18
+ },
19
+ {
20
+ id: "e2",
21
+ kind: "message",
22
+ createdAt: "2026-04-18T11:30:00Z",
23
+ actorOrgId: "org-imp",
24
+ actorRole: "importer",
25
+ content: "Can we see the certificates?",
26
+ },
27
+ {
28
+ id: "e3",
29
+ kind: "counter",
30
+ createdAt: "2026-04-19T09:15:00Z",
31
+ actorOrgId: "org-imp",
32
+ actorRole: "importer",
33
+ round: 2,
34
+ terms: { price: 3.95, currency: "EUR", volume: 20000 },
35
+ previousTerms: { price: 4.1, currency: "EUR", volume: 20000 },
36
+ },
37
+ ];
38
+ export const Default = {
39
+ args: {
40
+ events,
41
+ viewerOrgId: "org-prod",
42
+ onOpenComposer: () => { },
43
+ },
44
+ };
45
+ export const Empty = {
46
+ args: {
47
+ events: [],
48
+ viewerOrgId: "org-prod",
49
+ onOpenComposer: () => { },
50
+ },
51
+ };
52
+ export const ManyEvents = {
53
+ args: {
54
+ events: Array.from({ length: 60 }, (_, i) => ({
55
+ id: `e-${i}`,
56
+ kind: i % 2 === 0 ? "message" : "counter",
57
+ createdAt: new Date(Date.UTC(2026, 3, 10, i)).toISOString(),
58
+ actorOrgId: i % 2 === 0 ? "org-imp" : "org-prod",
59
+ actorRole: i % 2 === 0 ? "importer" : "producer",
60
+ round: Math.floor(i / 10) + 1,
61
+ ...(i % 2 === 0
62
+ ? { content: `Message ${i}` }
63
+ : {
64
+ terms: { price: 4 + i * 0.01, currency: "EUR", volume: 20000 },
65
+ }),
66
+ })),
67
+ viewerOrgId: "org-prod",
68
+ onOpenComposer: () => { },
69
+ },
70
+ };
71
+ // Blocker B8 — virtualize at least one of each of the 8 TimelineEventKind
72
+ // values so virtualization regressions surface. The ManyEvents story only
73
+ // covered "message" + "counter"; this story covers all 8 kinds in the
74
+ // virtualization layer (>50 events).
75
+ export const MixedKinds = {
76
+ args: {
77
+ events: Array.from({ length: 64 }, (_, i) => {
78
+ const base = {
79
+ id: `e-${i}`,
80
+ createdAt: new Date(Date.UTC(2026, 3, 10, i)).toISOString(),
81
+ actorOrgId: i % 2 === 0 ? "org-prod" : "org-imp",
82
+ actorRole: (i % 2 === 0 ? "producer" : "importer"),
83
+ round: Math.floor(i / 8) + 1,
84
+ };
85
+ // Cycle through all 8 kinds so the virtualizer renders each one
86
+ const kind = ["propose", "counter", "accept", "decline", "withdraw", "expire", "message", "attachment"][i % 8];
87
+ switch (kind) {
88
+ case "propose":
89
+ case "counter":
90
+ return {
91
+ ...base,
92
+ kind,
93
+ terms: { price: 4 + i * 0.01, currency: "EUR", volume: 20000 },
94
+ previousTerms: kind === "counter" ? { price: 4, currency: "EUR", volume: 20000 } : undefined,
95
+ };
96
+ case "accept":
97
+ case "decline":
98
+ case "withdraw":
99
+ return { ...base, kind, message: `Reason ${i}` };
100
+ case "expire":
101
+ return { ...base, kind, expiredAt: base.createdAt };
102
+ case "message":
103
+ return { ...base, kind, content: `Free-form message #${i}` };
104
+ case "attachment":
105
+ return {
106
+ ...base,
107
+ kind,
108
+ fileName: `file-${i}.pdf`,
109
+ mimeType: "application/pdf",
110
+ sizeBytes: 100_000 + i,
111
+ source: ["chat", "round", "formal"][i % 3],
112
+ };
113
+ }
114
+ }),
115
+ viewerOrgId: "org-prod",
116
+ onOpenComposer: () => { },
117
+ },
118
+ };
119
+ // Blocker B1 — explicit assertion that ArrowUp / ArrowDown move DOM focus
120
+ // (not just tabIndex). Without the useEffect on focusedIndex the previous
121
+ // implementation left document.activeElement stuck on the mounted element.
122
+ // Storybook play functions run under Vitest (via @storybook/addon-vitest).
123
+ export const ArrowKeyFocusMovement = {
124
+ args: {
125
+ events,
126
+ viewerOrgId: "org-prod",
127
+ onOpenComposer: () => { },
128
+ },
129
+ play: async ({ canvasElement, step }) => {
130
+ const { within, userEvent } = await import("storybook/test");
131
+ const { expect } = await import("vitest");
132
+ const canvas = within(canvasElement);
133
+ await step("Focus the first timeline event", async () => {
134
+ const items = canvas.getAllByRole("listitem");
135
+ items[0].focus();
136
+ await expect(document.activeElement).toBe(items[0]);
137
+ });
138
+ await step("ArrowDown moves DOM focus to the next event", async () => {
139
+ await userEvent.keyboard("{ArrowDown}");
140
+ const items = canvas.getAllByRole("listitem");
141
+ // Assert DOM focus actually moved — not just aria-activedescendant
142
+ await expect(document.activeElement).toBe(items[1]);
143
+ });
144
+ await step("ArrowUp returns focus to the first event", async () => {
145
+ await userEvent.keyboard("{ArrowUp}");
146
+ const items = canvas.getAllByRole("listitem");
147
+ await expect(document.activeElement).toBe(items[0]);
148
+ });
149
+ await step("End jumps to the last event", async () => {
150
+ await userEvent.keyboard("{End}");
151
+ const items = canvas.getAllByRole("listitem");
152
+ await expect(document.activeElement).toBe(items[items.length - 1]);
153
+ });
154
+ },
155
+ };
156
+ //# sourceMappingURL=negotiation-section.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"negotiation-section.stories.js","sourceRoot":"","sources":["../../src/offer/negotiation-section.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAG3D,MAAM,IAAI,GAAG;IACX,KAAK,EAAE,0BAA0B;IACjC,SAAS,EAAE,kBAAkB;IAC7B,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE;CACS,CAAC;AAE5C,eAAe,IAAI,CAAC;AAGpB,MAAM,MAAM,GAAwB;IAClC;QACE,EAAE,EAAE,IAAI;QACR,IAAI,EAAE,SAAS;QACf,SAAS,EAAE,sBAAsB;QACjC,UAAU,EAAE,UAAU;QACtB,SAAS,EAAE,UAAU;QACrB,KAAK,EAAE,CAAC;QACR,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE;KACtD;IACD;QACE,EAAE,EAAE,IAAI;QACR,IAAI,EAAE,SAAS;QACf,SAAS,EAAE,sBAAsB;QACjC,UAAU,EAAE,SAAS;QACrB,SAAS,EAAE,UAAU;QACrB,OAAO,EAAE,8BAA8B;KACxC;IACD;QACE,EAAE,EAAE,IAAI;QACR,IAAI,EAAE,SAAS;QACf,SAAS,EAAE,sBAAsB;QACjC,UAAU,EAAE,SAAS;QACrB,SAAS,EAAE,UAAU;QACrB,KAAK,EAAE,CAAC;QACR,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE;QACtD,a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C,aAAa,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QACtD,CAAC,CAAC,CAAC;QAEH,MAAM,IAAI,CAAC,6BAA6B,EAAE,KAAK,IAAI,EAAE;YACnD,MAAM,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;YAClC,MAAM,KAAK,GAAG,MAAM,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;YAC9C,MAAM,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC;QACrE,CAAC,CAAC,CAAC;IACL,CAAC;CACF,CAAC"}
@@ -0,0 +1,7 @@
1
+ export interface NewActivityPillProps {
2
+ count: number;
3
+ onClick: () => void;
4
+ className?: string;
5
+ }
6
+ export declare function NewActivityPill({ count, onClick, className }: NewActivityPillProps): import("react/jsx-runtime").JSX.Element;
7
+ //# sourceMappingURL=new-activity-pill.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"new-activity-pill.d.ts","sourceRoot":"","sources":["../../src/offer/new-activity-pill.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,oBAAoB,2CAgBlF"}
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { ArrowDown } from "lucide-react";
3
+ import { cn } from "../lib/utils";
4
+ export function NewActivityPill({ count, onClick, className }) {
5
+ const display = count > 99 ? "99+" : count.toString();
6
+ return (_jsxs("button", { type: "button", onClick: onClick, "aria-label": `${count} new events — jump to timeline`, className: cn("inline-flex items-center gap-2 rounded-full border border-primary/30 bg-primary px-4 py-2 text-sm font-medium text-primary-foreground shadow-lg transition-opacity motion-safe:animate-in motion-safe:fade-in motion-reduce:transition-none", className), children: [_jsx(ArrowDown, { "aria-hidden": true, className: "size-4" }), display, " new event", count === 1 ? "" : "s", " \u00B7 jump to timeline"] }));
7
+ }
8
+ //# sourceMappingURL=new-activity-pill.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"new-activity-pill.js","sourceRoot":"","sources":["../../src/offer/new-activity-pill.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAQlC,MAAM,UAAU,eAAe,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAwB;IACjF,MAAM,OAAO,GAAG,KAAK,GAAG,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;IACtD,OAAO,CACL,kBACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,OAAO,gBACJ,GAAG,KAAK,gCAAgC,EACpD,SAAS,EAAE,EAAE,CACX,6OAA6O,EAC7O,SAAS,CACV,aAED,KAAC,SAAS,yBAAa,SAAS,EAAC,QAAQ,GAAG,EAC3C,OAAO,gBAAY,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,gCACnC,CACV,CAAC;AACJ,CAAC"}
@@ -0,0 +1,17 @@
1
+ import type { StoryObj } from "@storybook/react-vite";
2
+ import { NewActivityPill } from "./new-activity-pill";
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof NewActivityPill;
6
+ tags: string[];
7
+ parameters: {
8
+ layout: string;
9
+ };
10
+ };
11
+ export default meta;
12
+ type Story = StoryObj<typeof meta>;
13
+ export declare const Count1: Story;
14
+ export declare const Count5: Story;
15
+ export declare const Count99Plus: Story;
16
+ export declare const ReducedMotion: Story;
17
+ //# sourceMappingURL=new-activity-pill.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"new-activity-pill.stories.d.ts","sourceRoot":"","sources":["../../src/offer/new-activity-pill.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,QAAA,MAAM,IAAI;;;;;;;CAK8B,CAAC;AAEzC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,MAAM,EAAE,KAAiD,CAAC;AACvE,eAAO,MAAM,MAAM,EAAE,KAAiD,CAAC;AACvE,eAAO,MAAM,WAAW,EAAE,KAAmD,CAAC;AAC9E,eAAO,MAAM,aAAa,EAAE,KAS3B,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { NewActivityPill } from "./new-activity-pill";
2
+ const meta = {
3
+ title: "Offer/NewActivityPill",
4
+ component: NewActivityPill,
5
+ tags: ["autodocs"],
6
+ parameters: { layout: "centered" },
7
+ };
8
+ export default meta;
9
+ export const Count1 = { args: { count: 1, onClick: () => { } } };
10
+ export const Count5 = { args: { count: 5, onClick: () => { } } };
11
+ export const Count99Plus = { args: { count: 132, onClick: () => { } } };
12
+ export const ReducedMotion = {
13
+ args: { count: 3, onClick: () => { } },
14
+ parameters: {
15
+ docs: {
16
+ description: {
17
+ story: "Respects prefers-reduced-motion — no fade animation.",
18
+ },
19
+ },
20
+ },
21
+ };
22
+ //# sourceMappingURL=new-activity-pill.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"new-activity-pill.stories.js","sourceRoot":"","sources":["../../src/offer/new-activity-pill.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,MAAM,IAAI,GAAG;IACX,KAAK,EAAE,uBAAuB;IAC9B,SAAS,EAAE,eAAe;IAC1B,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE;CACI,CAAC;AAEzC,eAAe,IAAI,CAAC;AAGpB,MAAM,CAAC,MAAM,MAAM,GAAU,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC,EAAE,EAAE,CAAC;AACvE,MAAM,CAAC,MAAM,MAAM,GAAU,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC,EAAE,EAAE,CAAC;AACvE,MAAM,CAAC,MAAM,WAAW,GAAU,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC,EAAE,EAAE,CAAC;AAC9E,MAAM,CAAC,MAAM,aAAa,GAAU;IAClC,IAAI,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC,EAAE;IACrC,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,WAAW,EAAE;gBACX,KAAK,EAAE,sDAAsD;aAC9D;SACF;KACF;CACF,CAAC"}